DeepSeek Harness 插件

anweat/dsh-substrate#plugin

Star 数 ★ 0 下载量(近 30 天) 843 分类 开发与运行时 收录于 2026-09-15 npm @anweat/dsh-substrate

在 DSH 启动前诊断重复的 loader entry ID,通过只读设置卡片报告版本锁定的修复状态,并使用外部 CLI 应用或撤销经过审计的 loader 修复。

安装

# npm 包(预构建)

dsh plugin --profile web add @anweat/dsh-substrate

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:anweat/dsh-substrate#path:/plugin

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

dsh-substrate diagnoses DeepSeek Harness plugin conflicts and supplies a reversible, version-locked repair for duplicate loader entry IDs.

The Web card is read-only. It reports the detected DSH installation, the exact loader version, and the repair state. The external CLI performs installation changes so the running DSH process never rewrites its own dependencies.

Install in DSH

dsh plugin --profile web add @anweat/dsh-substrate@^0.1.2

Restart DSH after installing the plugin. Open the Substrate compatibility card to inspect the current state.

Repair duplicate entry IDs

Check whether the detected installation is supported:

npx --yes @anweat/dsh-substrate@0.1.2 repair --home "<DSH_HOME>"

Apply the repair, then restart DSH:

npx --yes @anweat/dsh-substrate@0.1.2 repair --home "<DSH_HOME>" --apply --yes

Revert the repair, then restart DSH again:

npx --yes @anweat/dsh-substrate@0.1.2 repair --home "<DSH_HOME>" --revert --yes

The repair currently supports these exact packages:

  • @deepseek-ai/cordis-plugin-include@1.0.6
  • @deepseek-ai/cordis-plugin-include@1.0.7
  • @deepseek-ai/dsh-app-boot@0.1.2-alpha.2 through 0.1.2-alpha.5
  • @deepseek-ai/dsh-app-boot@0.1.2-rc.1
  • @deepseek-ai/dsh-app-boot@0.1.3-alpha.2
  • @deepseek-ai/dsh-app-boot@0.1.5-alpha.1

The Git tag dsh-v0.1.3-alpha.1 has source-level evidence, but npm never published the matching dsh-app-boot package. It therefore remains outside the installable repair matrix.

Unknown versions are refused before any file is changed. The CLI stages a pnpm patch in the real DSH installation workspace, runs pnpm install, verifies the installed file, and supports a matching revert transaction.

This repair removes the duplicate entry-ID boot gate. It does not automatically isolate plugins that also claim the same Cordis service or tool names. Those later runtime conflicts still need service realms and tool scopes supplied by the host composition.

Version 0.1.0 users must add npm's peer-dependency compatibility flag when running the standalone CLI:

npx --yes --legacy-peer-deps @anweat/dsh-substrate@0.1.0 repair --home "<DSH_HOME>"

See the compatibility matrix, browser coexistence verification, and tested boundaries.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。