插件目录 / UI & Skins / dsh-plugin-conflict-checker
dsh-plugin-conflict-checker
已验证 · 实测可装 kid-tea
功能简介
DeepSeek Harness plugin conflict checker: pre-flight duplicate loader-entry-id detection + optional real startup smoke test (CLI + Web GUI tab).
可用 — 实测通过,早期项目
DeepSeek Harness plugin conflict checker: pre-flight duplicate loader-entry-id detection + optional real startup smoke test (CLI + Web GUI tab). 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-plugin-conflict-checker
DeepSeek Harness 插件冲突检测器(host + client bundle plugin)。
安装后:
- host 侧注册工具
check_plugin_conflicts - Web 设置 → 插件 里新增「冲突检测」标签页,点击按钮即可检测,结果直接显示在页面里
功能
- 静态检查当前 profile 的插件 patch 合成结果:
- 重复 loader entry id(会导致
duplicate loader entry id启动崩溃) - patch 目标不存在 / name mismatch / insert 非 group
- 重复 loader entry id(会导致
- 可选 smoke:
- 用 OS 分配的空闲端口真实拉起一次
dsh web - 等待
dsh web: http://...就绪输出 - 超时或提前退出则判定启动失败/卡死
- 用 OS 分配的空闲端口真实拉起一次
安装
如果路径含空格,pnpm 的 dsh plugin add 可能把路径拆开;建议先用无空格 junction 再安装:
mklink /J D:\cfchk-plugin "D:\deepseek harness\plugin\dsh-plugin-conflict-checker"
dsh plugin --profile web add D:\cfchk-plugin
然后重启对应 profile。
使用
GUI 按钮
- 打开 Web 设置
- 进入「插件」
- 找到「冲突检测」标签页
- 勾选“同时进行真实启动测试(smoke)”可选
- 点击「检测插件冲突」
- 结果直接显示在下方
Agent 工具
在 DSH 会话中让 Agent 调用:
{
"profile": "web",
"smoke": true,
"smokeTimeout": 60000
}
返回 JSON:
{
"ok": true,
"fatal": [],
"warnings": [],
"entryCount": 146,
"smoke": { "ok": true, "url": "http://127.0.0.1:30706" }
}
局限性 / Limitations
- 静态检查只覆盖已知的启动失败模式:重复 loader entry id、patch 目标不存在、name mismatch、insert 非 group、bundle 缺失/无
dsh.bundle声明。它不能保证覆盖所有未知插件冲突。 smoke模式会真实拉起一次dsh web,但只验证“能输出就绪 URL、不会在超时时间内卡死”;无法覆盖所有运行时问题(外部服务不可用、网络、浏览器端报错、端口被占用等)。- 当前检测逻辑通过子进程运行 bundled checker,而不是在 host 进程内直接合成;这样实现简单,但会额外启动一个 Node 子进程。
- 当前 GUI 标签页默认检测
webprofile,可在页面里手动改成其他 profile。 - Windows 下
dsh plugin add对含空格路径支持不好,安装时建议使用无空格 junction。 - 本项目仍属早期工具,DSH 的 slot/版本契约可能随版本变化;如果遇到新版不兼容,请以当前已安装的
@deepseek-ai/*包类型和实际行为为准。
开发
npm run typecheck
npm run build
npm run verify
说明
当前实现:
- host 注册工具 + HTTP 路由
/dsh-plugin-conflict-checker/check - client 注册
settings.plugins.tab,渲染检测按钮和结果 - 检测逻辑仍由 bundled checker 子进程执行,避免在 host 进程里重复实现一整套合成器
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-plugin-conflict-checker」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:kid-tea/dsh-plugin-conflict-checker Headless(CLI)profile:
dsh plugin --profile headless add github:kid-tea/dsh-plugin-conflict-checker 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。