← 返回列表
D

dsh-turn-fork

v0.1.0 · 1 天前发布

Turn-atomic message editing, retry, reroll and version-tree navigation for DeepSeek Harness conversations

deepseekdeepseek-harnessdshdsh-pluginpluginmessage-editretryrerollforkversion-tree

README

dsh-turn-fork

DeepSeek Harness 会话提供
回合级(turn-atomic)的消息编辑、重试、重新生成与版本树导航。

English

  • 编辑任意已落定的用户消息,并从该回合重新分支执行(后续回合 截断保留)。

  • 重试任意历史回合;重新生成最后一轮的回复。

  • 版本树 Timeline + 跨分支撤销/重做导航。

  • 分支日志在 dsh 进程重启后仍可读取——这正是社区插件 dsh-message-edit

  • 未通过的 P0 耐久性保证(见下文)。
  • 只使用官方插槽:Timeline 标签页、会话头部操作、每条助手消息的操作区。

  • 无 DOM 注入、无文本猜测定位。
  • 通过 dsh-client-locale 接入的中英双语界面。
  • 安装

    bash
    dsh plugin add dsh-turn-fork

    重启 dsh 后生效。插件会注册一个 回合分支(Turn Fork) 标签页(位于
    Trajectory 与 Prompt Studio 之间)、会话头部的撤销/重做/重新生成按钮,以及
    每条已落定助手消息上的重试/重新生成按钮。

    为什么会有这个插件

    dsh-message-edit(v0.2.3)存在一个 P0 致命缺陷:其持久化溯源事件
    message-edit/version 没有 ignorable 标记。live 写盘路径照单全收,
    但 dsh 重启后持久层的冷读词汇表守卫(assertEventsSupported)会以
    SessionFormatUnsupportedError 拒绝

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-turn-fork
    Repo
    git+https://github.com/ruby1304/dsh-turn-fork.git
    Engines
    {"node":">=22"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation"]}}