mkiea/dsh-forge0

dsh-forge

Plugin-combination analysis for the DeepSeek Harness: dependency trees, conflict detection, risk scoring with prediction, visualization, and combination simulation.

包名
dsh-forge
版本
0.1.11
许可证
Apache-2.0
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mkiea/dsh-forge

第 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.jsondsh.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 表达式(见文件顶部注释)。