dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH plugin: double-click the sidebar restart button to fully relaunch DeepSeek Harness; it is greyed out while an agent session is running.
DSH 重启插件:双击侧边栏重启按钮即可整体重启 DeepSeek Harness,会话运行时按钮置灰禁用。 DSH plugin: double-click the sidebar restart button to fully relaunch DeepSeek Harness; it is greyed out while an agent session is running.
DeepSeek Harness 重启插件:在左侧边栏账号头像/设置上方放一个「⟳ 重启 DSH」按钮,双击即可整进程重启 DeepSeek Harness;当有 Agent 会话正在运行时,按钮自动置灰禁用,避免打断进行中的工作。
sidebar.footer.action 位置注入重启按钮(账号头像/设置上方)。taskkill /T 强杀整个 DSH 进程树,随后重新启动 DeepSeek Harness.exe。running)。前提:
dsh命令在 PATH 中(DeepSeek Harness 自带)。
# 用 link 方式装本地副本(推荐,便于维护/调试)
git clone https://github.com/<owner>/dsh-plugin-restart
dsh plugin --profile desktop add link:<克隆或本目录的绝对路径>
若发布到 registry:
dsh plugin --profile desktop add dsh-plugin-restart
装完重启 DeepSeek Harness,侧边栏底部账号头像上方即出现「⟳」按钮。
dsh plugin --profile desktop remove dsh-plugin-restart
然后重启 DSH 使改动生效。
lib/index.js(宿主/Cordis 插件):注册 /api/dsh-plugin-restart/* HTTP 路由;/restart 记录待办并调用 scheduleRestart,该函数用 schtasks 创建一个立即运行的重启任务,由计划任务服务启动(脱离 DSH 进程树),执行 restart/restart.ps1。restart/restart.ps1:taskkill /PID <主进程> /T /F 结束整个 DSH 进程树,等待退出后重新 Start-Process DeepSeek Harness.exe。lib/client.js(Web 客户端):注入 sidebar.footer.action 渲染按钮;用 useSessionStatus 判断是否有会话在运行以决定是否禁用。dsh-plugin-restart/
├─ package.json # 插件清单(dsh.client / dsh.bundle 声明)
├─ cordis.patch.yml # bundle 挂载声明
├─ lib/
│ ├─ index.js # 宿主端:HTTP 路由 + 重启调度
│ └─ client.js # 客户端端:侧边栏按钮
└─ restart/
└─ restart.ps1 # 重启脚本(杀进程树 + 重启 exe)
app.asar。/restart 的待办(~/.dsh/storages/dsh-plugin-restart/pending.json)基础上扩展(当前版本不自动填写输入框)。MIT