dsh-forge
Plugin-combination analysis for the DeepSeek Harness: dependency trees, conflict detection, risk scoring with prediction, visualization, and combination simulation.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mkiea/dsh-forge说明文档
阅读完整 README ↗第 3 步:配置组合补丁 cordis.patch.yml
编辑 $HOME/.dsh/profiles/web/cordis.patch.yml,追加两行 insert(文件顶部注释说明了 patch 层语义):
- insert:
- id: forge
name: 'dsh-forge'
config:
profile: web
- insert:
- id: forge-ui
name: 'dsh-forge-ui'
config.profile告诉 host 插件从哪个 profile 发现组合;forge-ui不需要 config。 已存在同名 insert 时不要重复追加(追加后 harness 会重复注册插件)。
背景说明:
- profile 根
cordis.yml是空入口[],组合树完全由 patch 层构成:package.json的dsh.profile.bundles(dsh-base / dsh-web-app)→cordis.patch.yml→--patch覆盖。 因此只改 cordis.patch.yml,不改 cordis.yml。 - 每个
- insert:是一个顶层 loader patch entry:id是行标识(幂等去重键),name是包名(从 profile 的 node_modules 解析),config传给插件的apply(ctx, config)。 patch 层还支持 id 定向的 config 覆盖、disables 与!!js表达式(见文件顶部注释)。