SOH4C4759/dsh-plugin-restart ↗★ 0
dsh-plugin-restart
One-click DSH restart: a sidebar button plus a detached supervisor that relaunches the DeepSeek Harness desktop app, so a rebuilt plugin or profile change takes effect immediately.
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SOH4C4759/dsh-plugin-restart說明文件
閱讀完整 README ↗使用
- 重建你的插件(
pnpm build等)。 - 点左下角的「重启 DSH」图标 →「立即重启」。
- 应用自动退出并回来,页面重连后可继续同一会话。
- 若没回来:看
%USERPROFILE%\.dsh\dsh-plugin-restart\restart.log与restart-result.json,两者都记录了守护脚本每一步。
配置(profile 的 cordis.patch.yml,可选)
- id: dsh-plugin-restart
name: dsh-plugin-restart
config:
enabled: true # 关闭重启路由(返回 409)
armDelayMs: 1200 # Host 侧:HTTP 应答与守护脚本启动之间的延迟
graceMs: 2000 # 等待应用自行退出的时间,超时后强杀进程树
dryRun: true # 只返回计划、绝不真正重启(排障用)
relaunch: false # false = 不 spawn 守护脚本,改为写触发文件交给托盘处理
trayTriggerPath: '' # 默认为 /dsh-plugin-restart/restart-request.json
supervisorPath: '' # 覆盖守护脚本路径(一般不用)
loaderPackageDir: '' # 覆盖模块加载目录,用于从 link: 之外的布局定位本包
触发文件只在守护脚本启动失败(或 relaunch: false)时写出:如果每条请求都写,常驻托盘就成了与守护脚本赛跑的第二权威,可能在应用刚被拉起时又把它杀掉。
config 不使用 schema,所有值在 Host 内被钳制到合法区间:手写 patch 写错也只会退化为默认值,不会让 Host 起不来。