v4.2.1 — 修复 bundle 一键安装链路
榜单评审发现:v4.2.0 的 tag 不含
dsh.bundlemanifest(manifest 在其后提交),克隆 v4.2.0 无法dsh plugin add。本版本将安装链路完整闭环,并已用真实dshCLI 冒烟验证。
修复(真实 DSH 环境冒烟发现)
tools.mjs/decision.mjs使用ctx.tools但inject未声明 → 部署版 boot 失败(已补tools,decision另补sandboxPolicy)- 部署版工具注册
output.schema.type: 'json'(动态版 DSL 约定)不兼容部署 loader 的标准 JSON Schema → 改为'object'
新增
scripts/check-bundle.mjs:bundle manifest + inject 完整性校验(CI 自动执行,防止部署 boot 回归)SHA256SUMS扩展覆盖package.json/cordis.patch.yml(5 个安装必需文件)
冒烟验证记录
dsh plugin --profile test add ./dsh-code-reference # ✅ 安装
dsh --profile test --dump-config # ✅ # == dsh-code-reference 层注入
dsh --profile test --port 3188 # ✅ boot 0 错误 + web 探活响应
dsh plugin --profile test remove dsh-code-reference # ✅ 卸载
安装
git clone --branch v4.2.1 --depth 1 https://github.com/victorzhong0110/dsh-code-reference.git
dsh plugin --profile web add ./dsh-code-reference