← 返回列表
D

dsh-archived-tasks

v0.1.0 · 2 天前发布

DSH web GUI plugin: an "Archived Tasks" settings page that lists archived sessions and supports restore or permanent delete

deepseek-harnessdshdsh-pluginarchived-taskssettings

README

dsh-archived-tasks — DeepSeek Harness 已归档任务插件

English | 中文

DeepSeek Harness Web GUI 插件:在设置页新增一个已归档任务页面,列出所有

已归档会话,可一键恢复,或彻底删除其日志文件与注册表引用。

安装

已发布到 npm,作为 profile bundle 一条命令安装:

sh
dsh plugin --profile web add dsh-archived-tasks

安装后重启 dsh web,打开 设置 → 已归档任务 即可看到。

卸载:

sh
dsh plugin --profile web remove dsh-archived-tasks

功能

设置页列出 workspace 注册表中归档集合(archivedSessionIds)里的会话:

  • 恢复:把会话 id 从注册表的 archivedSessionIds 中移除;会话日志与

  • workspace 记账保持不变。
  • 删除:破坏性且不可恢复。会 rm -rf 删除 data/sessions 下的会话日志

  • 目录,从归档集合中移除该 id,摘除内存中的会话,并从所有 workspace 的
    记账列表中清除该 id。

    删除路由有刻意防护:

  • 仅接受 POST 且同源请求(对 Origin 头做轻量 CSRF 校验)。

  • 会话 id 必须匹配 ^session-[0-9a-f-]+$,杜绝路径穿越。

  • 删除前会确认解析出的会话路径恰好位于 data/sessions/<encoded-cwd>/

  • 下一层。
  • dataRoot 解析顺序:
  • 查看完整 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
    Apache-2.0
    npm
    dsh-archived-tasks
    Repo
    git+https://github.com/zhaoyw220716-oss/dsh-archived-tasks.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-settings"],"platform":"web"}}