Towzai/dsh-restart ↗★ 0

dsh-restart

应用内整体重启:agent 或人工触发,协调忙碌会话,失败回滚并恢复任务。 适合需在会话中重启 DSH 的用户;要求 DSH 版本含 appRestart 服务。

套件
dsh-restart
相容性
待驗證
Harness 依賴範圍
*
Cordis 依賴範圍
*
版本
1.0.0
最近更新
2026年8月16日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Towzai/dsh-restart

方式三:本地路径(开发 / 本机使用)

dsh plugin --profile web add D:\path\to\dsh-restart

手动配置(任意方式安装后可选)

在 profile 的 cordis.patch.yml 中按需覆盖配置:

- id: dsh-restart
  name: 'dsh-restart'
  config:
    waitTimeoutMs: 900000   # when=wait 最大等待 ms(默认 15 分钟)

安装完成后重启一次 DSH:侧边栏出现「🔄 重启」按钮,agent 获得 dsh_restart 工具。

使用

Agent 自主

对 agent 说:

请重启 DSH,等其它会话任务完成后执行,原因:更新插件配置

agent 会调用 dsh_restart({ when: 'wait', reason: '...' });重启完成后本会话自动恢复,agent 继续原任务并向你汇报结果。

人工

侧边栏底部「🔄 重启」→ 立即重启 / 等任务完成后重启。

配置项

配置默认说明
waitTimeoutMs900000(15 分钟)when=wait 的最长等待时间(1000 ~ 24h)
stateDir/restartnotice 与诊断日志目录