dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness 的体检 / 修复 / 更新三合一管理中心插件(Web GUI,源码运行模式)。 A health-check, one-click-repair and safe-update cockpit for DeepSeek Harness.
DSH 更新偶尔会带破坏性变更(比如 0.1.6 的插件运行时解析调整导致的 Symbol 双包身份错位,所有工具调用直接 Interrupted)。出问题最痛苦的不是修,而是不知道哪里坏了。dsh-cockpit 把「找问题 → 修问题 → 安全更新」做成了一件事:
DSH 正常时:设置 → 体检中心,或独立仪表盘 http://127.0.0.1:3080/dsh-cockpit。
DSH 起不来时:命令行照样能体检、能修(核心模块零 DSH 依赖)。
在 DSH Web 的插件市场搜索安装,或手动加进 profile(~/.dsh/profiles/web/package.json):
{
"dependencies": {
"@suan2inf/dsh-cockpit": "^0.1.0"
},
"dsh": { "profile": { "bundles": ["@suan2inf/dsh-cockpit"] } }
}
然后在 profile 目录跑一次 pnpm install,重启 DSH Web。
重要:写进
bundles的包必须已经能被解析(node_modules 里真实存在),否则 DSH 启动会在resolveBundleDir直接失败。装完先跑npx dsh-cockpit看一眼「bundle 可解析性」检查再重启。
node cli.js # 离线体检
node cli.js --online # + git fetch + 最新发布 tag
node cli.js --gate # 只输出更新门禁;退出码 0 = 安全
node cli.js --fixes # 列出修复项及是否需要修
node cli.js --fix <id> # 执行修复(幂等);中风险加 --yes
如果仓库不在默认位置,用环境变量指定:set DSH_REPO=C:\path\to\deepseek-harness。
scripts/update-deferred.ps1 由面板的「开始更新」按钮自动调用,也可独立运行:
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/update-deferred.ps1 -Repo C:\path\to\deepseek-harness
它等待 DSH Web(端口 3080)关闭 → 运行仓库里的 update-dsh.ps1(备份并重放本地修复)→ 成功后自动重启 DSH Web。
/dsh-cockpit 不依赖客户端槽位 API。MIT