dsh-publish-gate

给插件作者用:写完插件后跑一遍,自动体检整条发布链路,然后给出 GitHub + npm + 市场三步的可照抄命令。 DSH 插件的发布门禁。把发布链路上的每个静默坑变成确定性检查:package.json 完整性(缺 exports["."]、files 漏了 lib/ 导致发空包、没写 "type": "module"、声明了 client 却没导出 ./client)、UTF-8 BOM、JSON/YAML 解析错误、cordis.patch.yml 的 insert 行缩进写错(正是让插件装上却永不挂载的那个 bug)、挂载名与 package.json 不一致、入口导出缺失、ESM 里调 require()、缺 LICENSE 或 README 安装行、缺测试、裸包名 (granular token 收到无法诊断的 403)、版本已被 registry 占用、GitHub 仓库不存在。六个 agent 工具, 每条 finding 都带修复文案。只读,不调 LLM。

插件介绍

给插件作者用:写完插件后跑一遍,自动体检整条发布链路,然后给出 GitHub + npm + 市场三步的可照抄命令。 DSH 插件的发布门禁。把发布链路上的每个静默坑变成确定性检查:package.json 完整性(缺 exports["."]、files 漏了 lib/ 导致发空包、没写 "type": "module"、声明了 client 却没导出 ./client)、UTF-8 BOM、JSON/YAML 解析错误、cordis.patch.yml 的 insert 行缩进写错(正是让插件装上却永不挂载的那个 bug)、挂载名与 package.json 不一致、入口导出缺失、ESM 里调 require()、缺 LICENSE 或 README 安装行、缺测试、裸包名 (granular token 收到无法诊断的 403)、版本已被 registry 占用、GitHub 仓库不存在。六个 agent 工具, 每条 finding 都带修复文案。只读,不调 LLM。

安装方式

通过 npm 安装

dsh plugin --profile web add @bushizhanghan/dsh-publish-gate

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:bushizhanghan/dsh-publish-gate

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。