signoff-cli 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 4.0.2
2
+
3
+ **修 MCP 注册表发布:`server.json` 里 `packages[0].version` 一直停在 3.9.4。**
4
+
5
+ - 现象:注册表返回 400 `version '3.9.4' was not found`,所以 4.x 一直注册不上,`isLatest` 卡在 3.15.3。
6
+ - 修法:`server.json` 的两个版本字段都由 `package.json` 派生;自测新增三条断言,版本漂移在提交前就会被拦下。
7
+ - 这一版没有改任何功能,只让注册表能被正确发布。
8
+
1
9
  ## 4.0.1
2
10
 
3
11
  **修 4.0.0 的 npx 入口:`npx signoff-cli` 找不到可执行文件。**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signoff-cli",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "SignOff (落印) — five gates that make an agent's \"done\" provable: verify, coverage, queue, ledger, anti-slop.",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/test/selftest.js CHANGED
@@ -1157,6 +1157,11 @@ check("legacy mark still recognised", bootlib.markedByUs("# generated by dsh-sig
1157
1157
  check("new mark recognised", bootlib.markedByUs(bootlib.HOOK_MARK + " 4.0.0"), true);
1158
1158
  check("foreign hook is not ours", bootlib.markedByUs("#!/bin/sh\nnpx lint-staged"), false);
1159
1159
  check("ci template pins the package", /--package=signoff-cli/.test(require(path.join(__dirname, "..", "lib", "guard.js")).CI_BODY), true);
1160
+ const pkgj = require(path.join(__dirname, "..", "package.json"));
1161
+ const srvj = require(path.join(__dirname, "..", "server.json"));
1162
+ check("server.json tracks the package version", srvj.version === pkgj.version, true);
1163
+ check("server.json package version tracks too", srvj.packages[0].version === pkgj.version, true);
1164
+ check("server.json names the package", srvj.packages[0].identifier === pkgj.name, true);
1160
1165
 
1161
1166
  check("action runs signoff", /run: signoff \$\{\{ inputs.args \}\}/.test(action), true);
1162
1167
  check("integrations doc lists actions", /uses: ayuanxx-max\/dsh-signoff/.test(fs.readFileSync(path.join(__dirname, "..", "docs", "integrations.md"), "utf8")), true);