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
DSH 重启插件:双击侧边栏重启按钮即可整体重启 DeepSeek Harness,会话运行时按钮置灰禁用。
DeepSeek Harness 重启插件:在左侧边栏账号头像/设置上方放一个「⟳ 重启 DSH」按钮,双击即可整进程重启 DeepSeek Harness;当有 Agent 会话正在运行时,按钮自动置灰禁用,避免打断进行中的工作。
sidebar.footer.action 位置注入重启按钮(账号头像/设置上方)。taskkill /T 强杀整个 DSH 进程树,随后重新启动 DeepSeek Harness.exe。running)。前提:
dsh命令在 PATH 中(DeepSeek Harness 自带)。
dsh-plugin-easy2restart
复制上述内容(插件名),进行如下操作:
若发布到 registry:
dsh plugin --profile desktop add dsh-plugin-easy2restart
装完重启 DeepSeek Harness,侧边栏底部账号头像上方即出现「⟳」按钮。
dsh plugin --profile desktop remove dsh-plugin-easy2restart
然后重启 DSH 使改动生效。
lib/index.js(宿主/Cordis 插件):注册 /api/dsh-plugin-easy2restart/* 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-easy2restart/
├─ 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-easy2restart/pending.json)基础上扩展(当前版本不自动填写输入框)。MIT
DSH restart plugin: double-click the sidebar restart button to fully relaunch DeepSeek Harness; the button is greyed out while an agent session is running.
A DeepSeek Harness restart plugin: it places a "⟳ Restart DSH" button in the left sidebar above the account avatar / settings; double-click it to restart the whole DeepSeek Harness process. While an agent session is running, the button is automatically greyed out to avoid interrupting work in progress.
sidebar.footer.action slot (above the account avatar / settings).taskkill /T to force-kill the whole DSH process tree, then relaunches DeepSeek Harness.exe.running).Prerequisite: the
dshcommand must be on PATH (bundled with DeepSeek Harness).
dsh-plugin-easy2restart
Copy the plugin name above, then follow the steps below:
If publishing to a registry:
dsh plugin --profile desktop add dsh-plugin-easy2restart
After installing, restart DeepSeek Harness; the "⟳" button then appears at the bottom of the sidebar, above the account avatar.
dsh plugin --profile desktop remove dsh-plugin-easy2restart
Then restart DSH for the change to take effect.
lib/index.js (host / Cordis plugin): registers the /api/dsh-plugin-easy2restart/* HTTP routes; /restart records the pending entry and calls scheduleRestart, which uses schtasks to create an immediately-running restart task. The task is started by the Task Scheduler service (detached from the DSH process tree) and executes restart/restart.ps1.restart/restart.ps1: taskkill /PID <main process> /T /F terminates the whole DSH process tree, waits for it to exit, then runs Start-Process DeepSeek Harness.exe.lib/client.js (Web client): injects into sidebar.footer.action to render the button; uses useSessionStatus to decide whether to disable it.dsh-plugin-easy2restart/
├─ package.json # plugin manifest (dsh.client / dsh.bundle declarations)
├─ cordis.patch.yml # bundle mount declaration
├─ lib/
│ ├─ index.js # host side: HTTP routes + restart scheduling
│ └─ client.js # client side: sidebar button
└─ restart/
└─ restart.ps1 # restart script (kill process tree + relaunch exe)
app.asar./restart (~/.dsh/storages/dsh-plugin-easy2restart/pending.json); the current version does not fill the input box automatically.MIT