Skip to content

Releases: victorzhong0110/dsh-code-reference

dsh-code-reference v4.2.1

Choose a tag to compare

@victorzhong0110 victorzhong0110 released this 15 Aug 15:42

v4.2.1 — 修复 bundle 一键安装链路

榜单评审发现:v4.2.0 的 tag 不含 dsh.bundle manifest(manifest 在其后提交),克隆 v4.2.0 无法 dsh plugin add。本版本将安装链路完整闭环,并已用真实 dsh CLI 冒烟验证。

修复(真实 DSH 环境冒烟发现)

  • tools.mjs / decision.mjs 使用 ctx.toolsinject 未声明 → 部署版 boot 失败(已补 toolsdecision 另补 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

dsh-code-reference v4.2.0

Choose a tag to compare

@victorzhong0110 victorzhong0110 released this 15 Aug 00:12

v4.2.0 — 第二轮评审迭代(产品思路 8.5 / 实现 7.5 / 生产可用性 6.5)

新增

  • reuse_survey 程序化小任务豁免scope="skip"mode="minor-skip"(不扫描、不访问网络、不弹窗)
  • decision 流程测试 13 例(政策优先级 / 询问超时 / no-candidates / auto-fallback / 用户选择映射 / scope 豁免 / 宿主冒烟),测试总数 54 → 67
  • 企业政策模板 .code-reference-policy.enterprise.jsonremoteSearch: false + requireTests: true
  • SHA256SUMS 完整性校验文件(见附件)

变更

  • 隐私表述精确化:本地源文件不会发送给 GitHub/npm 等检索平台;命中路径、≤160 字符代码片段及系统画像进入当前 Agent/模型上下文
  • 小任务豁免定位明确为"模型工作流规则 + 程序化出口"(非插件强制)
  • CI:actions/checkout / setup-node 固定 commit SHA(供应链安全)

附件

  • core.mjs / tools.mjs / decision.mjs(部署到 DSH 的三插件文件)
  • SHA256SUMS(校验:shasum -a 256 -c SHA256SUMS

安装

git clone --branch v4.2.0 --depth 1 https://github.com/victorzhong0110/dsh-code-reference.git

详见 README「固定版本(推荐)」。