release-skill 0.10.3 → 0.10.4

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.
Files changed (40) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codebuddy-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +2 -2
  4. package/.cursor-plugin/plugin.json +1 -1
  5. package/.kimi-plugin/plugin.json +1 -1
  6. package/.qoder-plugin/plugin.json +1 -1
  7. package/CHANGELOG.md +19 -0
  8. package/INSTALL.md +2 -2
  9. package/INSTALL.zh-CN.md +2 -2
  10. package/README.md +8 -12
  11. package/README.zh-CN.md +8 -12
  12. package/adapters/antigravity/bin/release-skill.bundle.mjs +6 -6
  13. package/adapters/antigravity/plugin.json +1 -1
  14. package/adapters/antigravity/skills/release-help/SKILL.md +3 -3
  15. package/adapters/claude/.claude-plugin/plugin.json +1 -1
  16. package/adapters/claude/bin/release-skill.bundle.mjs +6 -6
  17. package/adapters/claude/skills/release-help/SKILL.md +3 -3
  18. package/adapters/codex/.codex-plugin/plugin.json +2 -2
  19. package/adapters/codex/bin/release-skill.bundle.mjs +6 -6
  20. package/adapters/codex/skills/release-help/SKILL.md +3 -3
  21. package/adapters/cursor/.cursor-plugin/plugin.json +1 -1
  22. package/adapters/cursor/bin/release-skill.bundle.mjs +6 -6
  23. package/adapters/cursor/skills/release-help/SKILL.md +3 -3
  24. package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
  25. package/adapters/kimi/bin/release-skill.bundle.mjs +6 -6
  26. package/adapters/kimi/skills/release-help/SKILL.md +3 -3
  27. package/adapters/qoder/.qoder-plugin/plugin.json +1 -1
  28. package/adapters/qoder/bin/release-skill.bundle.mjs +6 -6
  29. package/adapters/qoder/skills/release-help/SKILL.md +3 -3
  30. package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
  31. package/adapters/workbuddy/bin/release-skill.bundle.mjs +6 -6
  32. package/adapters/workbuddy/skills/release-help/SKILL.md +3 -3
  33. package/bin/release-skill.bundle.mjs +6 -6
  34. package/package.json +1 -1
  35. package/platform-manifest.json +4 -4
  36. package/plugin.json +1 -1
  37. package/skills/release-help/SKILL.md +3 -3
  38. package/skills-src/release-help/SKILL.md +3 -3
  39. package/src/commands/prepare.mjs +4 -2
  40. package/src/core/pre-authority-failure.mjs +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "defaultPrompt": [
21
21
  "Assess this project for release readiness.",
22
- "Prepare a release plan for version 0.10.3.",
22
+ "Prepare a release plan for version 0.10.4.",
23
23
  "Help me understand the release workflow."
24
24
  ]
25
25
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ <!-- release-skill:changelog:start version=0.10.4 locale=en baseline=sha256:86692db397e3efa2065234c8e32b9f01890b9a248e08161fc53dcc25150a7bb4 -->
4
+ ## [0.10.4] - 2026-11-26
5
+
6
+ 0.10.4 fixes resolved-version array indexing during prepare --audit-conclusion subject-reference binding so unidirectional audit professional-conclusions validate cleanly in prepare as well as assess. Foundation dependencies remain pinned to 0.39.0. This description is not evidence of publication, real-host acceptance, consumer installation verification, or independent acceptance.
7
+
8
+ ### Security
9
+
10
+ - Enforced mandatory SHA-256 digest matching on external audit professional-conclusions in both assess and prepare. The inherited Skill Family Hub remains the unified marketplace; GitHub Git Data API with compare-and-swap binds updates to the observed branch head, and partial publication is never rolled back or force-pushed.
11
+
12
+ ### Fixed
13
+
14
+ - Fixed resolvedVersions array lookup in prepare when binding --audit-conclusion subject references across configured release units while keeping Foundation dependencies pinned to 0.39.0.
15
+
16
+ ### Upgrade Notes
17
+
18
+ Run prepare with 0.10.4 to create a new candidate and provide a new test result file. Preserve previous candidates, results, approvals and run records; do not edit their writerVersion. The release-skill standalone marketplace is deprecated; use ifoohoo/skill-family-hub with plugin id release-skill@skill-family-hub instead. The unified marketplace does not replace GitHub Release or npm distribution.
19
+ <!-- release-skill:changelog:end version=0.10.4 locale=en -->
20
+
21
+
3
22
  <!-- release-skill:changelog:start version=0.10.3 locale=en baseline=sha256:608b30111f1cd12ae98695c16f3e3f71455b818c5009cdafa1278b8cdd586d9a -->
4
23
  ## [0.10.3] - 2026-11-26
5
24
 
package/INSTALL.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [简体中文](INSTALL.zh-CN.md)
4
4
 
5
- <!-- release-skill:release-version: 0.10.3 -->
5
+ <!-- release-skill:release-version: 0.10.4 -->
6
6
  ## Prerequisites
7
7
 
8
8
  - Node.js `>=22.22.2 <23` (22.22.2 or newer, and below 23)
@@ -125,7 +125,7 @@ tag pinned to the exact version (never the bare repository URL, which installs
125
125
  the latest release or default branch), confirm the trust prompt, then reload:
126
126
 
127
127
  ```
128
- /plugins install https://github.com/ifoohoo/release-skill/releases/tag/release-skill-v0.10.3
128
+ /plugins install https://github.com/ifoohoo/release-skill/releases/tag/release-skill-v0.10.4
129
129
  /plugins reload
130
130
  ```
131
131
 
package/INSTALL.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](INSTALL.md)
4
4
 
5
- <!-- release-skill:release-version: 0.10.3 -->
5
+ <!-- release-skill:release-version: 0.10.4 -->
6
6
  ## 前置条件
7
7
 
8
8
  - Node.js `>=22.22.2 <23`(22.22.2 及以上,且低于 23)
@@ -113,7 +113,7 @@ release-skill 当前只采用并验证 Kimi Code 的交互式 TUI 路径,**无
113
113
  (切勿使用裸仓库地址,它会安装最新 release 或默认分支),确认信任提示后重新加载:
114
114
 
115
115
  ```
116
- /plugins install https://github.com/ifoohoo/release-skill/releases/tag/release-skill-v0.10.3
116
+ /plugins install https://github.com/ifoohoo/release-skill/releases/tag/release-skill-v0.10.4
117
117
  /plugins reload
118
118
  ```
119
119
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [简体中文](README.zh-CN.md) · Installation: [English](INSTALL.md) / [简体中文](INSTALL.zh-CN.md)
4
4
 
5
- <!-- release-skill:release-version: 0.10.3 -->
5
+ <!-- release-skill:release-version: 0.10.4 -->
6
6
  Release preparation for Claude Code, CodeBuddy, WorkBuddy, Codex, and Kimi Code, with human-edited files kept intact.
7
7
 
8
8
  release-skill helps a maintainer answer three questions: what will be released,
@@ -18,29 +18,25 @@ report stays in a temporary session directory.
18
18
  A release unit is a release object with independently configured version, public files, and distribution targets. A release plan is a record for review before approval, linking target versions, frozen artifacts, and proposed external actions; see the [human review and approval steps](#release-plan-review).
19
19
 
20
20
  <!-- release-skill:managed:start id=latest-release -->
21
- **0.10.3** (2026-11-26)
21
+ **0.10.4** (2026-11-26)
22
22
 
23
- 0.10.3 adds unidirectional professional-conclusion digest verification (--audit-conclusion and --audit-conclusion-sha256) in assess and prepare, and aligns single-plugin root snapshot recomputation during verify. Foundation dependencies remain pinned to 0.39.0. This description is not evidence of publication, real-host acceptance, consumer installation verification, or independent acceptance.
23
+ 0.10.4 fixes resolved-version array indexing during prepare --audit-conclusion subject-reference binding so unidirectional audit professional-conclusions validate cleanly in prepare as well as assess. Foundation dependencies remain pinned to 0.39.0. This description is not evidence of publication, real-host acceptance, consumer installation verification, or independent acceptance.
24
24
 
25
25
  **Security**
26
26
 
27
- - Enforced mandatory SHA-256 digest matching on external audit professional-conclusions and severed bidirectional subprocess coupling with skill-family-audit. The inherited Skill Family Hub remains the unified marketplace; GitHub Git Data API with compare-and-swap binds updates to the observed branch head, and partial publication is never rolled back or force-pushed.
28
-
29
- **Added**
30
-
31
- - Added unidirectional audit professional-conclusion intake (--audit-conclusion and --audit-conclusion-sha256) on assess and prepare with strict subject-reference and zero-blocking-count verification.
27
+ - Enforced mandatory SHA-256 digest matching on external audit professional-conclusions in both assess and prepare. The inherited Skill Family Hub remains the unified marketplace; GitHub Git Data API with compare-and-swap binds updates to the observed branch head, and partial publication is never rolled back or force-pushed.
32
28
 
33
29
  **Fixed**
34
30
 
35
- - Aligned single-plugin root frozen snapshot recomputation contract (host='root') in verify while keeping Foundation dependencies pinned to 0.39.0.
31
+ - Fixed resolvedVersions array lookup in prepare when binding --audit-conclusion subject references across configured release units while keeping Foundation dependencies pinned to 0.39.0.
36
32
 
37
33
  **Upgrade Notes**
38
34
 
39
- Run prepare with 0.10.3 to create a new candidate and provide a new test result file. Preserve previous candidates, results, approvals and run records; do not edit their writerVersion. The release-skill standalone marketplace is deprecated; use ifoohoo/skill-family-hub with plugin id release-skill@skill-family-hub instead. The unified marketplace does not replace GitHub Release or npm distribution.
35
+ Run prepare with 0.10.4 to create a new candidate and provide a new test result file. Preserve previous candidates, results, approvals and run records; do not edit their writerVersion. The release-skill standalone marketplace is deprecated; use ifoohoo/skill-family-hub with plugin id release-skill@skill-family-hub instead. The unified marketplace does not replace GitHub Release or npm distribution.
40
36
  <!-- release-skill:managed:end id=latest-release -->
41
37
 
42
38
  <!-- release-skill:capability:external-write-boundary -->
43
- > **Current boundary:** v0.10.3: this README records capabilities and verification boundaries;
39
+ > **Current boundary:** v0.10.4: this README records capabilities and verification boundaries;
44
40
  > it is not evidence of
45
41
  > publication, consumer-installation verification, or independent acceptance.
46
42
  > Release availability must be established from the corresponding release records
@@ -64,7 +60,7 @@ Run prepare with 0.10.3 to create a new candidate and provide a new test result
64
60
  > publish global preflight.
65
61
 
66
62
  <!-- release-skill:capability:safe-first-command -->
67
- > **Production path verified since the v0.1.1 milestone; for v0.10.3,
63
+ > **Production path verified since the v0.1.1 milestone; for v0.10.4,
68
64
  > publication, consumer-installation verification, and independent acceptance
69
65
  > require version-specific release records and verification results.**
70
66
  > The npm-installed CLI is the supported user entry. Source checkout
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · 安装指南:[中文](INSTALL.zh-CN.md) / [English](INSTALL.md)
4
4
 
5
- <!-- release-skill:release-version: 0.10.3 -->
5
+ <!-- release-skill:release-version: 0.10.4 -->
6
6
  面向 Claude Code、CodeBuddy、WorkBuddy、Codex 和 Kimi Code 的发布准备工具,完整保留人工维护的文件内容。
7
7
 
8
8
  release-skill 帮助维护者回答三个问题:准备发布什么、还有哪些检查未通过、最终发布的内容是什么。它不重新生成、也不回写项目源文件。`prepare` 把每个配置的公开文件复制到隔离快照并验证字节——先冻结并供人工审阅,再从同一份冻结产物发布。`setup` 只显示确定性的 `compactSummary` 审阅视图,完整报告保留在临时会话目录中。
@@ -12,29 +12,25 @@ release-skill 帮助维护者回答三个问题:准备发布什么、还有哪
12
12
  发布单元是独立配置版本、公开文件和分发目标的发布对象。发布计划是供批准前审阅的记录,将目标版本、冻结产物和拟执行的外部动作关联起来;详见[人工审阅与批准步骤](#release-plan-review)。
13
13
 
14
14
  <!-- release-skill:managed:start id=latest-release -->
15
- **0.10.3** (2026-11-26)
15
+ **0.10.4** (2026-11-26)
16
16
 
17
- 0.10.3 在 assess 与 prepare 中新增专业审计结论单向摘要核验(--audit-conclusion 与 --audit-conclusion-sha256),并对齐单插件冻结快照在 verify 阶段的根级参数契约。版本号为 0.10.3,Foundation 三包精确使用 0.39.0。本版本不代表已经发布、完成真实宿主验收、完成消费者安装验证或通过独立验收。
17
+ 0.10.4 修复 prepare 阶段携带 --audit-conclusion 时单元版本数组取值错误,使专业审计结论单向核验在 assess 与 prepare 两处入口一致生效。版本号为 0.10.4,Foundation 三包精确使用 0.39.0。本版本不代表已经发布、完成真实宿主验收、完成消费者安装验证或通过独立验收。
18
18
 
19
19
  **安全**
20
20
 
21
- - 对外部审计专业结论强制执行 SHA-256 摘要比对,彻底消除与 `skill-family-audit` 的双向子进程调用环路;继续沿用 Skill Family Hub 统一市场机制,通过 GitHub Git Data API 执行比较后写入(compare-and-swap)绑定已观察分支头,部分发布不回滚、不覆盖。
22
-
23
- **新增**
24
-
25
- - 在 `assess` 与 `prepare` 中支持 `--audit-conclusion` 与 `--audit-conclusion-sha256` 单向核验,强制校验 `pkg:<id>@<version>` 主体绑定与非负零阻断计数。
21
+ - 在 `assess` 与 `prepare` 双入口强制核验外部审计专业结论 SHA-256 摘要与主体绑定;继续沿用 Skill Family Hub 统一市场机制,通过 GitHub Git Data API 执行比较后写入(compare-and-swap)绑定已观察分支头,部分发布不回滚、不覆盖。
26
22
 
27
23
  **修复**
28
24
 
29
- - 对齐 `verify` 单插件冻结快照复算的 `host='root'` 参数契约,Foundation 三包继续精确锁定在 0.39.0。
25
+ - 修复 `prepare` 阶段消费 `--audit-conclusion` 时对单元已解析版本数组的索引读取错误,Foundation 三包继续精确锁定在 0.39.0。
30
26
 
31
27
  **升级说明**
32
28
 
33
- 升级至 0.10.3 后,请用新版本重新运行 `prepare` 生成候选,并由测试验收职责方提供对应测试结果文件。原有候选、结果、批准及运行记录原样保留,不得手工改写 `writerVersion`。原独立的 `release-skill` 市场已弃用,统一市场为 ifoohoo/skill-family-hub,插件标识为 release-skill@skill-family-hub;统一市场不取代 GitHub Release 或 npm 发布渠道。
29
+ 升级至 0.10.4 后,请用新版本重新运行 `prepare` 生成候选,并由测试验收职责方提供对应测试结果文件。原有候选、结果、批准及运行记录原样保留,不得手工改写 `writerVersion`。原独立的 `release-skill` 市场已弃用,统一市场为 ifoohoo/skill-family-hub,插件标识为 release-skill@skill-family-hub;统一市场不取代 GitHub Release 或 npm 发布渠道。
34
30
  <!-- release-skill:managed:end id=latest-release -->
35
31
 
36
32
  <!-- release-skill:capability:external-write-boundary -->
37
- > **当前边界:** v0.10.3 的能力范围与验证边界见本 README,具体版本的发布状态与消费者安装验证结果以对应发布记录为准。
33
+ > **当前边界:** v0.10.4 的能力范围与验证边界见本 README,具体版本的发布状态与消费者安装验证结果以对应发布记录为准。
38
34
  > v0.4.1 是更早的已发布里程碑(v0.2.2 曾处于已发布状态,后因平台验证收敛修复而更新)。
39
35
  > v0.1.1 已完成 GitHub 与 npm 的真实生产发布,是首次生产验证的历史里程碑。
40
36
  > 该版本还从冻结 Git ref 完成精确 npm 安装及 Claude/Codex 消费者安装验证。
@@ -48,7 +44,7 @@ release-skill 帮助维护者回答三个问题:准备发布什么、还有哪
48
44
  > 远端唯一性检查在 `publish` 全局预检执行。
49
45
 
50
46
  <!-- release-skill:capability:safe-first-command -->
51
- > **生产路径自 v0.1.1 里程碑起已完成真实生产验证;v0.10.3 的发布、消费者安装验证和独立验收状态须由该版本的发布记录及验证结果确认。**
47
+ > **生产路径自 v0.1.1 里程碑起已完成真实生产验证;v0.10.4 的发布、消费者安装验证和独立验收状态须由该版本的发布记录及验证结果确认。**
52
48
  > npm 安装的 CLI 是受支持的用户入口;源码 checkout 保留为开发/贡献者路径。
53
49
  >
54
50
  > **第一条命令:**
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "displayName": "Release Skill",
5
5
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
6
6
  "author": "广州市风荷科技有限公司",
@@ -46,9 +46,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
46
46
 
47
47
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
48
48
 
49
- ## 0.10.3 能力与证据边界
49
+ ## 0.10.4 能力与证据边界
50
50
 
51
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
51
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
52
52
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
53
53
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
54
54
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -129,4 +129,4 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
129
129
 
130
130
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
131
131
 
132
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
132
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
37
37
 
38
38
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
39
39
 
40
- ## 0.10.3 能力与证据边界
40
+ ## 0.10.4 能力与证据边界
41
41
 
42
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
42
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
43
43
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
44
44
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
45
45
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -120,4 +120,4 @@ node "${CLAUDE_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
120
120
 
121
121
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
122
122
 
123
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
123
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "defaultPrompt": [
21
21
  "Assess this project for release readiness.",
22
- "Prepare a release plan for version 0.10.3.",
22
+ "Prepare a release plan for version 0.10.4.",
23
23
  "Help me understand the release workflow."
24
24
  ]
25
25
  }
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -45,9 +45,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
45
45
 
46
46
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
47
47
 
48
- ## 0.10.3 能力与证据边界
48
+ ## 0.10.4 能力与证据边界
49
49
 
50
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
50
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
51
51
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
52
52
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
53
53
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -128,4 +128,4 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
128
128
 
129
129
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
130
130
 
131
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
131
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -46,9 +46,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
46
46
 
47
47
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
48
48
 
49
- ## 0.10.3 能力与证据边界
49
+ ## 0.10.4 能力与证据边界
50
50
 
51
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
51
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
52
52
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
53
53
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
54
54
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -129,4 +129,4 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
129
129
 
130
130
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
131
131
 
132
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
132
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -45,9 +45,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
45
45
 
46
46
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
47
47
 
48
- ## 0.10.3 能力与证据边界
48
+ ## 0.10.4 能力与证据边界
49
49
 
50
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
50
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
51
51
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
52
52
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
53
53
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -128,4 +128,4 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
128
128
 
129
129
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
130
130
 
131
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
131
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -45,9 +45,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
45
45
 
46
46
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
47
47
 
48
- ## 0.10.3 能力与证据边界
48
+ ## 0.10.4 能力与证据边界
49
49
 
50
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
50
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
51
51
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
52
52
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
53
53
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -128,4 +128,4 @@ node "$RELEASE_SKILL_LOCAL_FINISH_ENTRY" \
128
128
 
129
129
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
130
130
 
131
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
131
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
37
37
 
38
38
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
39
39
 
40
- ## 0.10.3 能力与证据边界
40
+ ## 0.10.4 能力与证据边界
41
41
 
42
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
42
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
43
43
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
44
44
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
45
45
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -120,4 +120,4 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
120
120
 
121
121
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
122
122
 
123
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
123
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -9,9 +9,9 @@ const __bundlePkgRoot = __bundleResolve(__bundleDirname(__bundleFileURLToPath(im
9
9
  // Provide a real require() for CJS packages bundled into ESM (e.g. yaml, ajv).
10
10
  const __bundleRealRequire = __bundleCreateRequire(import.meta.url);
11
11
  // Package identity injected at build time — closure-independent --version probe.
12
- const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.3"});
12
+ const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.4"});
13
13
  // Build-time source digest for the BUNDLE_STALE freshness gate (see above).
14
- const __bundleSourceDigest = "348cfdc35499bdd1ffe9c640e9db8fb70b09fa7b55366e4383bc86c3289e0346";
14
+ const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
15
15
 
16
16
  var __create = Object.create;
17
17
  var __defProp = Object.defineProperty;
@@ -142718,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
142718
142718
  const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
142719
142719
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
142720
142720
  const producerVersion = summary?.producer?.version;
142721
- const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(producerVersion);
142721
+ const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
142722
142722
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
142723
142723
  const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
142724
142724
  const envelopeKeys = /* @__PURE__ */ new Set([
@@ -142783,7 +142783,7 @@ async function hasNoState(runDir) {
142783
142783
  return true;
142784
142784
  }
142785
142785
  function closedPublishPrefix(events, summary, version2) {
142786
- const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2"].includes(version2) || version2 === resolveProducerVersion();
142786
+ const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
142787
142787
  let i = 0;
142788
142788
  const take = /* @__PURE__ */ __name((phase, status, gate2) => {
142789
142789
  const e = events[i];
@@ -156206,8 +156206,8 @@ async function prepareRelease(options) {
156206
156206
  await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
156207
156207
  const allowedSubjectRefs = /* @__PURE__ */ new Set();
156208
156208
  const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
156209
- for (const unit of configUnits) {
156210
- const unitVersion = resolvedVersions.get(unit.id);
156209
+ for (const [unitIdx, unit] of configUnits.entries()) {
156210
+ const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
156211
156211
  if (unitVersion) {
156212
156212
  if (projectName) {
156213
156213
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
5
5
  "author": {
6
6
  "name": "\u5e7f\u5dde\u5e02\u98ce\u8377\u79d1\u6280\u6709\u9650\u516c\u53f8"
@@ -2,11 +2,11 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "platformId": "release-skill",
4
4
  "platformName": "release-skill Plugin Platform",
5
- "version": "0.10.3",
5
+ "version": "0.10.4",
6
6
  "logicalRoot": "skills-src/",
7
- "logicalRootDigest": "5ef2e52324cdb813423e0b61ee3475d2822e35059a1087d855c0fa2d5e09c61c",
8
- "projectionDigest": "5207d75a1986aecf0c80fab803092baa3ecee716da6567a4c691fe1a18239e37",
9
- "projectionId": "release-skill:platform:0.10.3",
7
+ "logicalRootDigest": "6039f6f05019f58d4297bd9614311d2837a20a4281b2e32ccd98057c9828d965",
8
+ "projectionDigest": "b6b023527790b80a59ee2f3a9a61fa1c7185dec8ff1f2e77366c6e5b16e4f1b0",
9
+ "projectionId": "release-skill:platform:0.10.4",
10
10
  "manifestRequired": true,
11
11
  "projectionSources": {
12
12
  "skills-src-root": {
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-skill",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "displayName": "Release Skill",
5
5
  "description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
6
6
  "author": "广州市风荷科技有限公司",
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
37
37
 
38
38
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
39
39
 
40
- ## 0.10.3 能力与证据边界
40
+ ## 0.10.4 能力与证据边界
41
41
 
42
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
42
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
43
43
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
44
44
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
45
45
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -120,4 +120,4 @@ node "${CLAUDE_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
120
120
 
121
121
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
122
122
 
123
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
123
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
37
37
 
38
38
  治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
39
39
 
40
- ## 0.10.3 能力与证据边界
40
+ ## 0.10.4 能力与证据边界
41
41
 
42
- - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/02-project-config.md) 与 `release-prepare`。
42
+ - **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
43
43
  - **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
44
44
  - **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
45
45
  - **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
@@ -120,4 +120,4 @@ node "${CLAUDE_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
120
120
 
121
121
  新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
122
122
 
123
- 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.3/references/01-state-machine.md)。
123
+ 字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
@@ -4028,8 +4028,10 @@ export async function prepareRelease(options) {
4028
4028
  await evidence.append({ phase: 'audit-professional-conclusion', status: 'started', path: options.auditConclusionPath });
4029
4029
  const allowedSubjectRefs = new Set();
4030
4030
  const projectName = typeof config.project?.name === 'string' ? config.project.name.trim() : '';
4031
- for (const unit of configUnits) {
4032
- const unitVersion = resolvedVersions.get(unit.id);
4031
+ for (const [unitIdx, unit] of configUnits.entries()) {
4032
+ const unitVersion = resolvedVersions instanceof Map
4033
+ ? resolvedVersions.get(unit.id)
4034
+ : resolvedVersions[unitIdx];
4033
4035
  if (unitVersion) {
4034
4036
  if (projectName) {
4035
4037
  allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
@@ -93,7 +93,7 @@ export async function isProvenPreAuthorityFailure(runDir, runName, { strictHisto
93
93
  if (legacyValid) return !strictHistory && await hasNoState(runDir);
94
94
 
95
95
  const producerVersion = summary?.producer?.version;
96
- const historical = ['0.9.3', '0.9.14', '0.9.17', '0.9.33', '0.9.37', '0.9.38', '0.10.0', '0.10.1', '0.10.2'].includes(producerVersion);
96
+ const historical = ['0.9.3', '0.9.14', '0.9.17', '0.9.33', '0.9.37', '0.9.38', '0.10.0', '0.10.1', '0.10.2', '0.10.3'].includes(producerVersion);
97
97
  if (!historical && producerVersion !== resolveProducerVersion()) return false;
98
98
  const sameProducer = (value) => value && typeof value === 'object' && !Array.isArray(value)
99
99
  && Object.keys(value).length === 2
@@ -187,7 +187,7 @@ async function hasNoState(runDir) {
187
187
 
188
188
  // A finite prefix of the audited publish writer, not a target inference.
189
189
  function closedPublishPrefix(events, summary, version) {
190
- const auditedCurrentPrefix = ['0.9.38', '0.10.0', '0.10.1', '0.10.2'].includes(version)
190
+ const auditedCurrentPrefix = ['0.9.38', '0.10.0', '0.10.1', '0.10.2', '0.10.3'].includes(version)
191
191
  || version === resolveProducerVersion();
192
192
  let i = 0;
193
193
  const take = (phase, status, gate) => {