dsh-doctor
asdf17128
Find what your DeepSeek Harness (dsh) patches silently broke — dead patches, config fields dropped by whole-config repla…
PROJECT TOPICS
PROJECT README
给 DeepSeek Harness(DSH)Web 界面加上插件管理面板:一键启用/停用已安装插件, 并直接在 GitHub 上浏览 dsh-plugin 插件项目,一键添加并启用。
cordis.patch.yml,由 DSH 的 HMR 自动生效;插件声明了 dsh.bundle 官方清单,一条命令装好并自动启用:
dsh plugin --profile web add github:Noob-stupid/dsh-plugin-hub
然后重启 dsh 服务 → 刷新页面 → 设置 → 插件 → 插件管理。
Windows(PowerShell):
git clone https://github.com/Noob-stupid/dsh-plugin-hub "$env:TEMP\dsh-plugin-console" 2>$null; & "$env:TEMP\dsh-plugin-console\deploy.ps1"
Linux / macOS:
git clone https://github.com/Noob-stupid/dsh-plugin-hub /tmp/dsh-plugin-console 2>/dev/null; bash /tmp/dsh-plugin-console/deploy.sh
脚本会做两件事:把插件包拷进 $DSH_HOME/profiles/<profile>/node_modules/,
并在 cordis.patch.yml 幂等追加启用条目。完成后:
要求:DSH ≥ 0.1.0-rc.6(web profile,含 dsh-client-modules / dsh-host-plugin-inventory)。
- id: X + disabled: true,HMR 立即生效;disabled: false 覆盖;dsh-plugin(与 GitHub 网页搜索 https://github.com/search?q=dsh-plugin&type=repositories 一致);github:owner/repo)DSH 的 web profile 由 bundle 补丁层 + 用户补丁层($DSH_HOME/profiles/web/cordis.patch.yml)
组合而成,补丁是逐键覆盖语义。插件开关只是往用户补丁层追加/移除两行 YAML:
- id: 插件条目id
disabled: true
配置文件监视器(HMR)会在保存后 1 秒内重组合,无需重启——除宿主代码本身变更外。
0.1.0-rc.6 及同系列版本)。@deepseek-ai/dsh-web-app 版本:官方发布破坏性升级
(0.2 / 1.0 等)后,面板顶部会显示兼容性警告并给出本仓库地址,而不是默默失效。webServer.register、
加载器条目结构、dsh.client bundle 格式、settings.plugins.tab 插槽。
届时随官方版本更新本仓库即可(依赖面已收窄到上述几个点)。lib/index.js 宿主端插件(/plugin-console/* 路由 + 补丁读写 + npm 安装)
lib/client.js 浏览器端 bundle(ModuleLoader 格式,设置页 tab)
deploy.ps1 / deploy.sh 一键部署脚本(Windows / Linux·macOS)
test-harness.mjs 逻辑自检(state/toggle/校验/环回保护;搜索视网络环境 SKIP)
安装走五层兜底链:npmmirror 镜像 → npmjs 官方源 → git 加速代理 → git 直连 → 自动展开仓库子包(含 Windows EPERM 陈旧目录自动清理重试)。常规通道全部失败时,才轮到本地 AI 兜底。
本地 AI 兜底是什么:拉起一个本地 AI 子代理接管安装——它会像人工一样诊断(查仓库结构、识别子包/聚合包、清理残留),用正确管理器完成安装并落配置。注意:这一步会调用 DeepSeek API 模型,可能产生 API 费用。
授权弹窗逻辑(费用透明):
遇到问题先看这里;仍有疑问请到 Issues 提问。
github:owner/repo 安装(需要 git)。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。