dp419936514/dsh-plugin-updater ↗★ 0
dsh-plugin-updater
Safe one-click plugin updater for DeepSeek Harness profiles: inventory, backup, verified update (compose + boot smoke test), automatic rollback on failure, and manual rollback. 深度求索 Harness 插件安全一键更新器:备份、更新、启动验证、失败自动回滚。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dp419936514/dsh-plugin-updater说明文档
阅读完整 README ↗使用
设置页
设置 → 插件更新:
- 打开即自动读取清单;也可点右上「刷新清单」;
- 勾选要更新的插件(精确锁定的默认不勾,标
已锁定),选模式; - 「一键更新所选」→ 二次确认 → 看进度日志(pnpm 输出、组合校验、启动冒烟逐条可见);
- 成功后点「重启 dsh」生效;失败则已自动回滚,日志里写明原因;
- 需要时在回滚区选任意备份一键回滚。
命令行(dsh 起不来时的恢复通道)
cd ~/.dsh/plugins/dsh-plugin-updater # 或 clone 目录
node bin/dpu.mjs check # 清单与可更新项(默认 profile 自动检测)
node bin/dpu.mjs update --yes # 升级所有可升级插件(精确锁定的跳过)
node bin/dpu.mjs update --targets dsh-cost-meter --yes # 只更一个(含锁定插件)
node bin/dpu.mjs rollback # 回滚到最新备份
node bin/dpu.mjs backups # 备份列表与操作历史
node bin/dpu.mjs restart [--unit dsh-web.service] --yes # 重启 systemd 用户服务
行配置(可选)
在 profile 的 cordis.patch.yml 里覆盖:
- id: plugin-updater
config:
profile: web # 管理哪个 profile(默认自动检测本插件所在 profile)
bootVerify: true # 更新后是否真实启动冒烟(默认开;关掉只剩组合校验)
环境变量:DPU_RESTART_MODE=self|systemd 与 DPU_RESTART_UNIT= 可强制重启方式。