release-skill 0.9.15 → 0.9.17
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/.claude-plugin/plugin.json +1 -1
- package/.codebuddy-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -2
- package/.kimi-plugin/plugin.json +1 -1
- package/.qoder-plugin/plugin.json +10 -0
- package/CHANGELOG.md +61 -0
- package/INSTALL.md +57 -9
- package/INSTALL.zh-CN.md +44 -7
- package/README.md +88 -29
- package/README.zh-CN.md +70 -27
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +1471 -672
- package/adapters/claude/schemas/release-plan.schema.json +1 -1
- package/adapters/claude/schemas/release-project.schema.json +19 -1
- package/adapters/claude/skills/release-finish/SKILL.md +65 -6
- package/adapters/claude/skills/release-help/SKILL.md +3 -3
- package/adapters/claude/skills/release-verify/SKILL.md +2 -2
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/release-skill.bundle.mjs +1471 -672
- package/adapters/codex/schemas/release-plan.schema.json +1 -1
- package/adapters/codex/schemas/release-project.schema.json +19 -1
- package/adapters/codex/skills/release-finish/SKILL.md +65 -6
- package/adapters/codex/skills/release-help/SKILL.md +3 -3
- package/adapters/codex/skills/release-verify/SKILL.md +2 -2
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +1471 -672
- package/adapters/kimi/schemas/release-plan.schema.json +1 -1
- package/adapters/kimi/schemas/release-project.schema.json +19 -1
- package/adapters/kimi/skills/release-finish/SKILL.md +65 -6
- package/adapters/kimi/skills/release-help/SKILL.md +3 -3
- package/adapters/kimi/skills/release-verify/SKILL.md +2 -2
- package/adapters/qoder/.qoder-plugin/plugin.json +10 -0
- package/adapters/qoder/bin/consumer-contract-vectors.json +110 -0
- package/adapters/qoder/bin/error-codes.json +161 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
- package/adapters/qoder/bin/foundation-resource-binding.json +1 -0
- package/adapters/qoder/bin/kernel-protocol.json +60 -0
- package/adapters/qoder/bin/license-texts/Apache-2.0.txt +201 -0
- package/adapters/qoder/bin/license-texts/MIT.txt +21 -0
- package/adapters/qoder/bin/prebuild-manifest.json +79 -0
- package/adapters/qoder/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/qoder/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/qoder/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/qoder/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/qoder/bin/registry.json +347 -0
- package/adapters/qoder/bin/release-skill-local-finish.mjs +4 -0
- package/adapters/qoder/bin/release-skill.bundle.mjs +149446 -0
- package/adapters/qoder/bin/release-skill.mjs +54 -0
- package/adapters/qoder/bin/rules.json +104 -0
- package/adapters/qoder/bin/schemas/consumer-contract-vector.schema.json +149 -0
- package/adapters/qoder/data/hosts/claude/host-descriptor.json +45 -0
- package/adapters/qoder/data/hosts/codebuddy/host-descriptor.json +26 -0
- package/adapters/qoder/data/hosts/codex/host-descriptor.json +45 -0
- package/adapters/qoder/data/hosts/deepseek-harness/host-descriptor.json +23 -0
- package/adapters/qoder/data/hosts/kimi-code/host-descriptor.json +36 -0
- package/adapters/qoder/data/hosts/qoder/host-descriptor.json +26 -0
- package/adapters/qoder/data/hosts/registry.json +13 -0
- package/adapters/qoder/data/hosts/workbuddy/host-descriptor.json +34 -0
- package/adapters/qoder/data/licensing/registry.json +211 -0
- package/adapters/qoder/data/licensing/schema.json +207 -0
- package/adapters/qoder/native/safe-write/binding.gyp +41 -0
- package/adapters/qoder/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
- package/adapters/qoder/native/safe-write/prebuilds.json +24 -0
- package/adapters/qoder/native/safe-write/src/safe_write.cc +2032 -0
- package/adapters/qoder/schemas/.render-manifest.json +41 -0
- package/adapters/qoder/schemas/approval-record.schema.json +115 -0
- package/adapters/qoder/schemas/artifact-lock.schema.json +111 -0
- package/adapters/qoder/schemas/artifact-plan.schema.json +52 -0
- package/adapters/qoder/schemas/artifact-policy.schema.json +76 -0
- package/adapters/qoder/schemas/evidence-event-v2.schema.json +164 -0
- package/adapters/qoder/schemas/evidence-event.schema.json +89 -0
- package/adapters/qoder/schemas/postpublish-approval-record.schema.json +47 -0
- package/adapters/qoder/schemas/release-plan.schema.json +1996 -0
- package/adapters/qoder/schemas/release-project.schema.json +1613 -0
- package/adapters/qoder/schemas/release-run.schema.json +777 -0
- package/adapters/qoder/skills/release-assess/SKILL.md +60 -0
- package/adapters/qoder/skills/release-config/SKILL.md +150 -0
- package/adapters/qoder/skills/release-docs/SKILL.md +119 -0
- package/adapters/qoder/skills/release-finish/SKILL.md +141 -0
- package/adapters/qoder/skills/release-help/SKILL.md +153 -0
- package/adapters/qoder/skills/release-marketplace/SKILL.md +156 -0
- package/adapters/qoder/skills/release-prepare/SKILL.md +135 -0
- package/adapters/qoder/skills/release-publish/SKILL.md +91 -0
- package/adapters/qoder/skills/release-reconcile/SKILL.md +80 -0
- package/adapters/qoder/skills/release-setup/SKILL.md +131 -0
- package/adapters/qoder/skills/release-verify/SKILL.md +109 -0
- package/adapters/qoder/src/schemas/adapter-build-manifest.schema.json +41 -0
- package/adapters/qoder/src/schemas/adapter-peer-verification-request.schema.json +54 -0
- package/adapters/qoder/src/schemas/adapter-peer-verification-result.schema.json +54 -0
- package/adapters/qoder/src/schemas/adapter-source.schema.json +47 -0
- package/adapters/qoder/src/schemas/audit-baseline-pin.schema.json +163 -0
- package/adapters/qoder/src/schemas/declared-read-surface-result.schema.json +61 -0
- package/adapters/qoder/src/schemas/engineering-baseline.schema.json +77 -0
- package/adapters/qoder/src/schemas/executable-identity-observation.schema.json +162 -0
- package/adapters/qoder/src/schemas/filesystem-root-binding.schema.json +14 -0
- package/adapters/qoder/src/schemas/filesystem-tree-observation.schema.json +71 -0
- package/adapters/qoder/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
- package/adapters/qoder/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
- package/adapters/qoder/src/schemas/host-capability-fact.schema.json +31 -0
- package/adapters/qoder/src/schemas/host-descriptor.schema.json +137 -0
- package/adapters/qoder/src/schemas/host-operation-plan.schema.json +57 -0
- package/adapters/qoder/src/schemas/host-operation-receipt.schema.json +81 -0
- package/adapters/qoder/src/schemas/host-probe-result.schema.json +30 -0
- package/adapters/qoder/src/schemas/host-registry.schema.json +18 -0
- package/adapters/qoder/src/schemas/host-verification-request.schema.json +67 -0
- package/adapters/qoder/src/schemas/host-verification-result.schema.json +149 -0
- package/adapters/qoder/src/schemas/managed-file-lock.schema.json +77 -0
- package/adapters/qoder/src/schemas/migration-manifest.schema.json +412 -0
- package/adapters/qoder/src/schemas/observation-scope.schema.json +91 -0
- package/adapters/qoder/src/schemas/operation-request.schema.json +58 -0
- package/adapters/qoder/src/schemas/operation-result.schema.json +130 -0
- package/adapters/qoder/src/schemas/platform-difference-registry.schema.json +110 -0
- package/adapters/qoder/src/schemas/plugin-verification-request.schema.json +499 -0
- package/adapters/qoder/src/schemas/plugin-verification-result.schema.json +1217 -0
- package/adapters/qoder/src/schemas/profile-adoption-declaration.schema.json +111 -0
- package/adapters/qoder/src/schemas/profile-descriptor.schema.json +99 -0
- package/adapters/qoder/src/schemas/project-manifest.schema.json +67 -0
- package/adapters/qoder/src/schemas/project-profile.schema.json +25 -0
- package/adapters/qoder/src/schemas/public-boundary-declaration.schema.json +73 -0
- package/adapters/qoder/src/schemas/report-binding.schema.json +42 -0
- package/adapters/qoder/src/schemas/report-model.schema.json +308 -0
- package/adapters/qoder/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
- package/adapters/qoder/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
- package/adapters/qoder/src/schemas/source-authority-receipt.schema.json +31 -0
- package/adapters/qoder/src/schemas/state-event-envelope.schema.json +38 -0
- package/adapters/qoder/src/schemas/state-snapshot-metadata.schema.json +25 -0
- package/adapters/qoder/src/schemas/structured-scan-policy.schema.json +97 -0
- package/adapters/qoder/src/schemas/surface-scan-policy.schema.json +42 -0
- package/adapters/qoder/src/schemas/timeout-policy.schema.json +24 -0
- package/adapters/qoder/src/schemas/token-estimate-record.schema.json +75 -0
- package/adapters/qoder/src/schemas/token-estimate-result.schema.json +43 -0
- package/adapters/qoder/src/schemas/watchdog-termination-envelope.schema.json +156 -0
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +1471 -672
- package/adapters/workbuddy/schemas/release-plan.schema.json +1 -1
- package/adapters/workbuddy/schemas/release-project.schema.json +19 -1
- package/adapters/workbuddy/skills/release-finish/SKILL.md +65 -6
- package/adapters/workbuddy/skills/release-help/SKILL.md +3 -3
- package/adapters/workbuddy/skills/release-verify/SKILL.md +2 -2
- package/bin/release-skill-cli.mjs +152 -6
- package/bin/release-skill.bundle.mjs +1471 -672
- package/package.json +4 -2
- package/platform-manifest.json +70 -4
- package/references/02-project-config.md +25 -2
- package/schemas/release-plan.schema.json +1 -1
- package/schemas/release-project.schema.json +19 -1
- package/skills/release-finish/SKILL.md +65 -6
- package/skills/release-help/SKILL.md +3 -3
- package/skills/release-verify/SKILL.md +2 -2
- package/skills-src/release-finish/SKILL.md +65 -6
- package/skills-src/release-help/SKILL.md +3 -3
- package/skills-src/release-verify/SKILL.md +2 -2
- package/src/commands/post-release-local.mjs +360 -51
- package/src/commands/verify-records.mjs +467 -0
- package/src/core/postpublish.mjs +1 -1
- package/src/core/run.mjs +1 -1
- package/src/producers/build-adapters.mjs +36 -13
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
"type": "array",
|
|
1625
1625
|
"minItems": 1,
|
|
1626
1626
|
"uniqueItems": true,
|
|
1627
|
-
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy"] }
|
|
1627
|
+
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy", "qoder"] }
|
|
1628
1628
|
},
|
|
1629
1629
|
"hub": { "$ref": "#/definitions/planLocalHostHub" }
|
|
1630
1630
|
}
|
|
@@ -44,6 +44,24 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
+
"releaseFinish": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"description": "Optional local post-release finish settings. Omitted sourceBranchCheck defaults to remind.",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"sourceBranchCheck": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": [
|
|
55
|
+
"remind",
|
|
56
|
+
"skip"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"setupSkill": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"pattern": "^[a-z0-9][a-z0-9-]*(?::[a-z0-9][a-z0-9-]*)?$"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
47
65
|
"publicSourceAuthorityReceipt": {
|
|
48
66
|
"type": "object",
|
|
49
67
|
"description": "Optional public source-authority receipt uploaded to one coordinator GitHub Release after all subject npm tarballs are frozen.",
|
|
@@ -1035,7 +1053,7 @@
|
|
|
1035
1053
|
"type": "array",
|
|
1036
1054
|
"minItems": 1,
|
|
1037
1055
|
"uniqueItems": true,
|
|
1038
|
-
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy"] }
|
|
1056
|
+
"items": { "type": "string", "enum": ["claude", "codex", "kimi", "codebuddy", "workbuddy", "qoder"] }
|
|
1039
1057
|
},
|
|
1040
1058
|
"hub": { "$ref": "#/definitions/localHostHub" }
|
|
1041
1059
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: release-finish
|
|
3
|
-
description: 发布达到 VERIFIED 后处理发布收尾:确认 postVerify 提案送达边界,按发布分支策略决定是否询问合并,并在用户确认后更新本机 Claude、Codex、Kimi、CodeBuddy/WorkBuddy 插件
|
|
3
|
+
description: 发布达到 VERIFIED 后处理发布收尾:确认 postVerify 提案送达边界,按发布分支策略决定是否询问合并,并在用户确认后更新本机 Claude、Codex、Kimi、CodeBuddy/WorkBuddy、Qoder 插件
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# release-finish
|
|
@@ -13,7 +13,7 @@ description: 发布达到 VERIFIED 后处理发布收尾:确认 postVerify 提
|
|
|
13
13
|
|
|
14
14
|
这是发布后的独立收尾,不属于 `prepare → approve → publish → verify` 状态机。它不能把本机更新结果写成新的发布状态,也不能因为本机更新失败而降低 `VERIFIED`。
|
|
15
15
|
|
|
16
|
-
默认只读取冻结计划和 verify 或 postVerify run
|
|
16
|
+
默认只读取冻结计划和 verify 或 postVerify run。没有用户明确同意,不合并分支,不更新插件。用户显式选择 Kimi 更新后,只有标准初始目录信任界面和插件信任界面中的冻结身份都通过核对,才确认当前项目并安装。用户显式选择 Qoder 且冻结计划声明该宿主后,才执行计划绑定的 Hub 更新。
|
|
17
17
|
|
|
18
18
|
## 先生成收尾清单
|
|
19
19
|
|
|
@@ -35,7 +35,7 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
|
|
|
35
35
|
|
|
36
36
|
1. `merge.promptRequired=false` 时,发布工作流已经推进或初始化目标分支,不再询问合并。
|
|
37
37
|
2. `merge.promptRequired=true` 时,向用户说明尚未覆盖的发布分支,并询问是否需要合并。用户同意后,先只读核对源分支、目标分支、工作区状态和项目既有合并方式,再用明确的分支名执行;本脚本不猜分支,也不自动推送。
|
|
38
|
-
3. `localHostUpdate.promptRequired=true` 时,列出计划覆盖的宿主,询问是否更新本机插件。Hub-backed 目标必须显示其声明的 Hub
|
|
38
|
+
3. `localHostUpdate.promptRequired=true` 时,列出计划覆盖的宿主,询问是否更新本机插件。Hub-backed 目标必须显示其声明的 Hub、插件和宿主。Qoder 是其中唯一可执行的 Hub-backed 目标;Claude/Codex 使用现有 marketplace 管理入口,Kimi 使用冻结 GitHub Release 和现有人工确认路径,CodeBuddy/WorkBuddy 明确人工处理且不能固定 Hub ref。后续“用户同意更新”段适用于 `available=true` 的 executable externalActions 目标和 Qoder Hub 目标,其余 Hub-backed 目标仍为人工入口。两个问题可以一次问完。
|
|
39
39
|
|
|
40
40
|
## postVerify 提案送达边界
|
|
41
41
|
|
|
@@ -55,7 +55,7 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
|
|
|
55
55
|
--plan <plan-path> \
|
|
56
56
|
--run <verify-or-postverify-run-path> \
|
|
57
57
|
--update-local-hosts \
|
|
58
|
-
--hosts claude,codex,kimi,codebuddy,workbuddy \
|
|
58
|
+
--hosts claude,codex,kimi,codebuddy,workbuddy,qoder \
|
|
59
59
|
--confirm-plan <planDigest> \
|
|
60
60
|
--json
|
|
61
61
|
```
|
|
@@ -63,12 +63,71 @@ node "${CODEBUDDY_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
|
|
|
63
63
|
只传用户选择且计划声明的宿主。宿主 CLI 不存在时返回 `SKIPPED_NOT_INSTALLED`。各宿主按以下规则处理:
|
|
64
64
|
|
|
65
65
|
- Claude 或 Codex 只有在市场需要重绑时,才会在该宿主第一条写命令之前只读查询冻结的市场仓库、引用和提交。远端不可达、引用缺失或提交不一致时返回 `MANUAL_REQUIRED`,该宿主不执行市场或插件写入;其他已选宿主继续处理。精确当前安装仍核对真实载荷,但不强制联网。
|
|
66
|
-
- Kimi 的精确当前安装会在返回 `ALREADY_CURRENT` 前核对真实载荷;发生安装或迁移时,只在操作完成后核对结果。配置根依次取显式 `kimiHome`、`KIMI_CODE_HOME`、用户主目录下的 `.kimi-code`,TUI 与安装后观察使用同一根。release-finish 当前只采用并验证 Kimi Code 的受控终端交互界面(TUI
|
|
66
|
+
- Kimi 的精确当前安装会在返回 `ALREADY_CURRENT` 前核对真实载荷;发生安装或迁移时,只在操作完成后核对结果。配置根依次取显式 `kimiHome`、`KIMI_CODE_HOME`、用户主目录下的 `.kimi-code`,TUI 与安装后观察使用同一根。release-finish 当前只采用并验证 Kimi Code 的受控终端交互界面(TUI)路径,并把 TUI 工作目录固定为 `--root` 指定的当前发布项目。用户已确认冻结计划、显式选择更新且 `--hosts` 包含 `kimi` 时,流程只在初始标准 `Trust this folder?` 界面确认目录:先核对当前选中 `No, exit` 和目标 `Trust this folder`,移动并重新核对目标选中项,确认后等待已知命令提示符。插件命令发出后再次出现目录信任、界面或选中项未知、移动后无法确认、超时或提前退出时,该宿主失败并停止后续安装步骤。插件信任仍先清理 ANSI/OSC 控制序列和软换行,再分别核对冻结仓库与标签;只有选中 `Trust and install` 才提交并重新加载。包名、版本、发布标签、已安装修订号和受管安装根必须与冻结计划一致;`.git` 只提供附加诊断,不是通过条件。旧的本地路径安装会在同一 TUI 会话中先移除,再按发布标签安装。
|
|
67
67
|
- CodeBuddy/WorkBuddy 只处理同一 bundled-family 插件和市场。CodeBuddy 仅探测全局 `codebuddy`/`cbc`,由收尾脚本把 `CODEBUDDY_CONFIG_DIR` 固定为有效 `HOME`(环境未提供时取操作系统用户主目录)下名为 `.codebuddy` 的目录;WorkBuddy 仅在 macOS 探测 WorkBuddy 应用内嵌 CLI,由收尾脚本把 `CODEBUDDY_CONFIG_DIR` 与 `WORKBUDDY_CONFIG_DIR` 同时固定为有效 `HOME` 下名为 `.workbuddy` 的目录,绝不把两者互作回退。只有冻结标签与计划声明的可变分支都从同一远端解析到冻结提交时,才调用正式市场更新和插件更新命令;完成后重新读取安装列表,并精确核对唯一条目的市场、版本和修订号。目标未安装、来源不符、远端不可访问或身份不一致时返回 `MANUAL_REQUIRED`,不修改宿主。非 macOS 的 WorkBuddy 返回 `SKIPPED_UNSUPPORTED_PLATFORM`。
|
|
68
|
+
- Qoder 先用 `qoder plugins marketplace list --json` 核对计划声明的 Hub 名称、仓库、分支和本机 checkout,再用 `qoder plugins list --json` 核对唯一插件条目的市场、`scope=user`、版本与 `installPath`。目标市场或插件未安装时返回 `MANUAL_REQUIRED`,不添加市场,也不执行首次安装。旧版已安装时,只运行 `qoder plugins marketplace update <name>` 和 `qoder plugins update <plugin@marketplace> --scope user`。市场刷新后、插件更新前,必须从 Hub 的 `marketplace.json` 核对目标条目的 `source.url` 和 `source.sha`;操作后从真实 `installPath` 核对 Qoder manifest、完整声明载荷和冻结来源。市场可能在检查与更新之间变化,事后身份不符时报告失败,不自动降级、卸载或覆盖。
|
|
68
69
|
|
|
69
70
|
任何宿主失败都保留其他宿主的实际结果,不回滚,也不把失败冒充成功。
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
完成后报告每个宿主的安装状态。Qoder 返回 `UPDATED` 只表示安装载荷已经更新;启动新会话或执行 `/plugins reload` 并核对实际加载版本后,才能报告新版已加载。本机结果只记录收尾事实,不改变发布状态。
|
|
73
|
+
|
|
74
|
+
## 配置与目录
|
|
75
|
+
|
|
76
|
+
从发布项目目录的 `.release-skill/project.yaml` 读取 `releaseFinish` 和 `project.defaultBranch`。
|
|
77
|
+
文件缺失或无法解析时,报告具体配置问题,不猜默认分支或 setup,也不得把文件缺失当作字段合法缺省;
|
|
78
|
+
已经取得的发布结果仍保留。只有配置文件有效时,整个 `releaseFinish` 或其中字段缺省才按各自合同默认。
|
|
79
|
+
|
|
80
|
+
发布项目目录用于读取配置、执行源码 Git 检查和调用 setup。`--root <project-root>` 指定的目录也是 setup
|
|
81
|
+
的目标目录;不再接收或询问另一个项目路径。
|
|
82
|
+
|
|
83
|
+
## 更新后 setup
|
|
84
|
+
|
|
85
|
+
完成现有清单及已授权的宿主处理后,读取发布项目 `.release-skill/project.yaml` 的
|
|
86
|
+
`releaseFinish.setupSkill`。未配置时不增加 setup 提示。配置的技能名只用于匹配入口,不作为 shell 命令执行,
|
|
87
|
+
也不授权安装同名插件。
|
|
88
|
+
|
|
89
|
+
只有本次所选宿主已经成功更新,或现有检查确认它已是目标版本时,才衔接 setup。通过宿主实际技能
|
|
90
|
+
元数据核对目标插件身份、版本和入口;不能从开发仓库、旧会话缓存或同名技能推断新版已加载。当前宿主
|
|
91
|
+
不满足时,可以使用同次更新中另一个已安装并加载目标版本和入口的宿主。
|
|
92
|
+
|
|
93
|
+
setup 的目标目录固定为当前发布项目根目录。宿主需要重启、当前环境不能调用可用宿主、入口不存在或
|
|
94
|
+
归属有歧义时,标为“待执行”,并给出插件与版本、技能名、当前项目路径和已有授权的续接提示。发出提示
|
|
95
|
+
不代表 setup 已完成。
|
|
96
|
+
|
|
97
|
+
对同一插件版本、同一项目目录和相同共享运行环境,项目级依赖、项目配置和 Git hooks 由一个已加载
|
|
98
|
+
新版插件的宿主检查一次。其余宿主分别核对自身安装、加载和宿主专属配置。不同运行环境不得无条件
|
|
99
|
+
复用项目就绪结论;按目标 setup 的实际合同补查差异。release-finish 不保存去重键、收据或新的状态。
|
|
100
|
+
|
|
101
|
+
调用 setup 前完整读取目标技能及其必读引用,并传入当前发布项目、插件版本、只读检查意图和已有授权范围。
|
|
102
|
+
已有具体修复授权应传递给 setup;未覆盖的写入不能执行。只读检查、安装结果和配置修复结果分别报告。
|
|
103
|
+
最终自然语言回复列出执行宿主、插件版本、当前项目路径、实际结果和未完成项。任何 setup 结果都不改变
|
|
104
|
+
`VERIFIED`,也不影响其他宿主已经完成的结果。
|
|
105
|
+
|
|
106
|
+
## 源码分支检查
|
|
107
|
+
|
|
108
|
+
宿主更新和 setup 不影响本项检查。读取 `releaseFinish.sourceBranchCheck`;字段或整个
|
|
109
|
+
`releaseFinish` 缺省时按 `remind` 处理。配置为 `skip` 时不运行 Git 命令,只说明项目已关闭
|
|
110
|
+
源码分支检查。
|
|
111
|
+
|
|
112
|
+
`remind` 时,在发布项目目录依次运行两条只读命令:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
git branch --show-current
|
|
116
|
+
git status --short --branch
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
第一条命令取得当前分支。第二条命令读取工作区改动和现有上游跟踪摘要;不得增加会写入或访问网络的
|
|
120
|
+
参数。当前分支等于 `project.defaultBranch` 且没有文件改动时,说明本地已位于目标分支;输出含
|
|
121
|
+
ahead 或 behind 等跟踪信息时,仍原样概括。分支不一致时说明两个准确名称,并询问用户是否需要处理。
|
|
122
|
+
第一条命令输出为空时,说明处于 detached HEAD,不猜测目标操作。工作区存在改动时说明不建议直接
|
|
123
|
+
切换或清理。任一命令失败时,报告命令、退出结果和无法完成检查的事实。
|
|
124
|
+
|
|
125
|
+
最终自然语言回复至少列出提醒策略、目标分支、当前分支或无法取得的事实、工作区是否有改动、Git
|
|
126
|
+
上游跟踪摘要,以及是否需要用户决定下一步。没有上游信息时,明确说明命令输出未显示上游信息。
|
|
127
|
+
|
|
128
|
+
本项检查不从宿主更新推导出 Git 写入授权,不自动执行 fetch、switch、checkout、merge、rebase、stash、
|
|
129
|
+
reset、clean 或 push。用户跳过宿主更新仍执行默认分支检查。用户已经明确授权同一仓库、分支和操作时,
|
|
130
|
+
按项目 Git 纪律继续,不重复询问相同授权;检查本身不改变 `VERIFIED`,不保存结果,也不产生新的 run。
|
|
72
131
|
|
|
73
132
|
## 临时归属
|
|
74
133
|
|
|
@@ -17,15 +17,15 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
17
17
|
- 只读诊断:运行 dry-run 检查,不修改任何文件
|
|
18
18
|
- 故障引导:根据错误码指向对应的修复 Skill
|
|
19
19
|
|
|
20
|
-
## 0.9.
|
|
20
|
+
## 0.9.17 候选边界
|
|
21
21
|
|
|
22
22
|
当前源码候选允许多发布单元项目在计划冻结前显式选择本轮范围。`prepare` 和新建的 `ship` 状态支持重复传入 `--unit <id>`;未传时继续选择全部配置单元。成功选择会列出选中与延期单元。延期单元不进入本轮计划,也不获得发布状态。
|
|
23
23
|
|
|
24
24
|
选择只影响按单元绑定的检查与动作。完整配置、生成物新鲜度和顶层 Hook 仍覆盖整个项目。`publicSourceAuthorityReceipt` 涉及的 coordinator 和 subjects 必须作为完整闭包共同选择,系统不会自动扩选。计划冻结后,`plan.units` 是唯一范围权威;publish、reconcile、verify 和 distribute 不接受 `--unit`。
|
|
25
25
|
|
|
26
|
-
0.9.3 引入的四项工作流保护、Hook cache v2
|
|
26
|
+
0.9.3 引入的四项工作流保护、Hook cache v2 和稳定隔离安装树记录在后续版本继续保留。当前 0.9.17 候选精确消费 Foundation 0.17.0 的公开包根 API。Hook cache 只复用绝对路径或经真实 cwd 校验的 cwd-relative executable identity;裸 PATH、PATHEXT、Windows 和观察不可用时,Hook 仍冷执行,缓存复用失败关闭且不写入 v2 cache。缓存没有 TTL。
|
|
27
27
|
|
|
28
|
-
稳定隔离安装树记录只在宿主命令退出、目录已隔离且扫描期间没有并发写入时执行;宿主附加链接只记录、不跟随,声明载荷中的 symlink 失败关闭,legacy 全树语义保持不变。0.9.
|
|
28
|
+
稳定隔离安装树记录只在宿主命令退出、目录已隔离且扫描期间没有并发写入时执行;宿主附加链接只记录、不跟随,声明载荷中的 symlink 失败关闭,legacy 全树语义保持不变。0.9.17 仍是源码候选,不能从本说明推断已批准、发布或验证。
|
|
29
29
|
|
|
30
30
|
**阶段通过规则**: `status` 与 `readiness.localPreparation.status` 只判断本地 help/assess/prepare;其充要条件是 `READY` 且 exit code 为 0。`missingRequired` 列出缺失的 Node/Git。生产发布必须另外读取 `readiness.productionPublish`:缺少 npm/gh 时为 `NOT_READY`,依赖存在时仍是 `AUTH_CHECK_REQUIRED`,因为 help 不访问网络、不验证认证。Agent 无权把本地就绪解释为生产就绪。
|
|
31
31
|
|
|
@@ -22,9 +22,9 @@ ship state;hook approval 缺失、错误或过期时,在 hook 执行前失
|
|
|
22
22
|
|
|
23
23
|
**注意**: distribute gate (W1) 已经实现并集成在标准 verify 流程中。verify 现在会检查 postPublish 分发状态(git mirror + marketplace index),只有当所有外部动作都完成并通过验证时才达到 VERIFIED。
|
|
24
24
|
|
|
25
|
-
**工作流兼容性**:
|
|
25
|
+
**工作流兼容性**:
|
|
26
26
|
- `docs-only`: consumer-verify preserved (步骤⑧)
|
|
27
|
-
- `config-only`: scene B completes full chain including verify
|
|
27
|
+
- `config-only`: scene B completes full chain including verify
|
|
28
28
|
- `marketplace-only`: delegates to workspace's exclusive skill for final verification
|
|
29
29
|
- `full-happy-end`: standard complete path with all gates
|
|
30
30
|
|
|
@@ -37,11 +37,11 @@ registerPathRedactor(redactSensitivePaths);
|
|
|
37
37
|
|
|
38
38
|
const execFile = promisify(execFileCb);
|
|
39
39
|
|
|
40
|
-
const COMMANDS = new Set(['help', 'setup', 'assess', 'prepare', 'approve', 'publish', 'reconcile', 'verify', 'postverify', 'ship', 'post-release', 'attest', 'hooks', 'artifacts', 'docs', 'distribute', 'route', 'lineage']);
|
|
40
|
+
const COMMANDS = new Set(['help', 'setup', 'assess', 'prepare', 'approve', 'publish', 'reconcile', 'verify', 'verify-records', 'postverify', 'ship', 'post-release', 'attest', 'hooks', 'artifacts', 'docs', 'distribute', 'route', 'lineage']);
|
|
41
41
|
|
|
42
42
|
function printHubManualTargets(targets = []) {
|
|
43
43
|
for (const target of targets) {
|
|
44
|
-
if (target.targetKind === 'hub-backed') {
|
|
44
|
+
if (target.targetKind === 'hub-backed' && target.executionMode === 'manual') {
|
|
45
45
|
console.log(`Manual host update: ${target.plugin} via Hub ${target.hub.name} (${target.host}). ${target.message}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -270,6 +270,13 @@ async function performEnvironmentChecks() {
|
|
|
270
270
|
usage: '仅供发布后的人工安装使用;release-skill 不核验 CodeBuddy/WorkBuddy 安装',
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
+
const qoderCheck = await checkDependency('qoder', ['--version']);
|
|
274
|
+
checks.qoder = {
|
|
275
|
+
...qoderCheck,
|
|
276
|
+
required: false,
|
|
277
|
+
usage: '仅供发布后的可选 Qoder 本机更新使用;不影响生产发布就绪度',
|
|
278
|
+
};
|
|
279
|
+
|
|
273
280
|
return checks;
|
|
274
281
|
}
|
|
275
282
|
|
|
@@ -303,7 +310,7 @@ function getCapabilityMaturity() {
|
|
|
303
310
|
publish: {
|
|
304
311
|
available: true,
|
|
305
312
|
mode: 'controlled production (protocol-tested; no OS/network sandbox)',
|
|
306
|
-
description: 'Publishes frozen GitHub/npm artifacts after one readable-plan approval, runs automated Claude/Codex checkpoints, and emits non-blocking Kimi/CodeBuddy manual follow-ups',
|
|
313
|
+
description: 'Publishes frozen GitHub/npm artifacts after one readable-plan approval, runs automated Claude/Codex checkpoints, and emits non-blocking Kimi/CodeBuddy manual follow-ups plus the optional Qoder post-release update',
|
|
307
314
|
},
|
|
308
315
|
reconcile: {
|
|
309
316
|
available: true,
|
|
@@ -313,7 +320,12 @@ function getCapabilityMaturity() {
|
|
|
313
320
|
verify: {
|
|
314
321
|
available: true,
|
|
315
322
|
mode: 'fresh consumer verification (protocol-tested; no OS/network sandbox)',
|
|
316
|
-
description: 'Recheck remote state, exact npm installation, CLI help, and automated Claude/Codex installs before VERIFIED; Kimi/CodeBuddy remain unverified manual follow-ups',
|
|
323
|
+
description: 'Recheck remote state, exact npm installation, CLI help, and automated Claude/Codex installs before VERIFIED; Kimi/CodeBuddy remain unverified manual follow-ups and Qoder remains optional post-release local work',
|
|
324
|
+
},
|
|
325
|
+
verifyRecords: {
|
|
326
|
+
available: true,
|
|
327
|
+
mode: 'offline explicit-input verification',
|
|
328
|
+
description: 'Verify caller-supplied plan, approval, and release-run bytes without record discovery, remote access, process execution, or state changes',
|
|
317
329
|
},
|
|
318
330
|
postverify: {
|
|
319
331
|
available: true,
|
|
@@ -353,6 +365,7 @@ Commands:
|
|
|
353
365
|
publish Publish frozen GitHub/npm artifacts after approval
|
|
354
366
|
reconcile Resume PARTIAL state from evidence; conflicts require a human
|
|
355
367
|
verify Fresh remote and consumer verification; only this reaches VERIFIED
|
|
368
|
+
verify-records Verify explicitly supplied historical plan, approval, and run records offline
|
|
356
369
|
postverify Run approved postVerify hooks from a VERIFIED run in an independent run
|
|
357
370
|
ship Resume one durable prepare -> approve -> publish -> verify flow; completes a parked
|
|
358
371
|
postVerify hook once its checkpoint approval is provided (--hook-approval)
|
|
@@ -371,6 +384,8 @@ Options:
|
|
|
371
384
|
--plan <path> Path to the release plan file (required for approve/publish/reconcile/verify/postverify)
|
|
372
385
|
--run <path> Path to the release run file, or a run directory whose release-run.json
|
|
373
386
|
is resolved automatically (required for reconcile/verify/postverify)
|
|
387
|
+
--target-run <path> Target release-run.json for verify-records
|
|
388
|
+
--source-run <path> Explicit predecessor release-run.json for verify-records (repeatable)
|
|
374
389
|
--approval <path> Path to the release-level approval record (required for publish/postverify)
|
|
375
390
|
--production Prepare immutable Git/npm production artifacts
|
|
376
391
|
--output <path> Override prepare/approve output path (non-production only)
|
|
@@ -399,6 +414,7 @@ Options:
|
|
|
399
414
|
--select-hooks <ids> Comma-separated proposal ids to adopt (propose-hooks mode)
|
|
400
415
|
--foundation-profile <path> Explicit foundation postPublish profile JSON (proposal input only; never auto-applied)
|
|
401
416
|
--unit <id> Select a release unit for prepare/ship (repeatable); docs refresh accepts one unit
|
|
417
|
+
--target-version <version> Expected release unit version for prepare/ship/verify-records
|
|
402
418
|
--confirm-refresh <sha256:...> Confirm the exact dry-run refreshDigest before any document write
|
|
403
419
|
--ack-local-document-write Acknowledge the explicit local release-document write (docs refresh --write)
|
|
404
420
|
--platform <id> Legacy attestation platform: kimi or codebuddy
|
|
@@ -411,7 +427,7 @@ Options:
|
|
|
411
427
|
--hook-approval <path> Checkpoint approval for one requiresApproval hook (ship/distribute/postverify; repeatable)
|
|
412
428
|
--state <path> Override the durable ship state file
|
|
413
429
|
--update-local-hosts Update installed plugins for selected local hosts after VERIFIED
|
|
414
|
-
--hosts <ids> Comma-separated local hosts for post-release update. No local host is updated unless --hosts contains at least one id
|
|
430
|
+
--hosts <ids> Comma-separated local hosts for post-release update: claude,codex,kimi,codebuddy,workbuddy,qoder. No local host is updated unless --hosts contains at least one id
|
|
415
431
|
--confirm-plan <digest> Confirm the exact VERIFIED plan before local host mutation
|
|
416
432
|
--no-hook-cache Force every prepare hook to run in full; neither read nor write the hook cache
|
|
417
433
|
--json Output results as JSON
|
|
@@ -424,6 +440,7 @@ Safety:
|
|
|
424
440
|
The ship command runs configured hooks and gates automatically. Frozen plan approval is the only
|
|
425
441
|
normal release-level approval; requiresApproval postPublish hooks keep independent checkpoint approvals.
|
|
426
442
|
Kimi/CodeBuddy installations are non-blocking manual follow-up tasks (not verified by system).
|
|
443
|
+
Qoder is an optional post-release local update; it never becomes a release distribution checkpoint.
|
|
427
444
|
prepare copies current public files into a local snapshot; it does not rewrite source files.
|
|
428
445
|
- Default mode is offline (release-skill pipeline does no remote writes)
|
|
429
446
|
- prepare output goes to .release-skill/ directory only
|
|
@@ -432,6 +449,7 @@ Safety:
|
|
|
432
449
|
- docs refresh --write rewrites only declared README managed regions and the current CHANGELOG entry after exact refreshDigest confirmation; it never commits, pushes, tags, publishes, or installs.
|
|
433
450
|
- publish requires explicit approval; plan digest is auto-read from the plan file
|
|
434
451
|
- post-release local host updates are optional local mutations and never change VERIFIED
|
|
452
|
+
- verify-records reads only the paths named on its command line; it never discovers records, contacts remotes, or changes release state
|
|
435
453
|
- publish consumes frozen Git/npm artifacts, never the live workspace
|
|
436
454
|
- existing remote objects and uncertain checks stop for human intervention
|
|
437
455
|
- production-equivalent protocol sandbox is verified; a real remote canary is not
|
|
@@ -520,6 +538,7 @@ if (!command || command === 'help') {
|
|
|
520
538
|
codex: '声明 codex-plugin distribution 时必须可用',
|
|
521
539
|
kimi: '发布后人工安装待办;不影响生产发布就绪度,系统不核验',
|
|
522
540
|
codebuddy: '发布后人工安装待办;不影响生产发布就绪度,系统不核验',
|
|
541
|
+
qoder: '发布后可选本机更新;不影响生产发布就绪度,不是 release distribution checkpoint',
|
|
523
542
|
},
|
|
524
543
|
},
|
|
525
544
|
},
|
|
@@ -533,7 +552,7 @@ if (!command || command === 'help') {
|
|
|
533
552
|
onlinePrepare: 'previous-public-baseline observation available; production mode freezes publish artifacts and fails closed on drift or unknown state',
|
|
534
553
|
publish: 'GitHub/npm plus automated Claude/Codex consumer checkpoints are protocol-tested without an OS/network sandbox; one approval is required and the internal plan digest is checked automatically',
|
|
535
554
|
reconcile: 'PARTIAL recovery is protocol-tested without an OS/network sandbox; remote conflicts require human intervention',
|
|
536
|
-
verify: 'fresh exact npm and Claude/Codex consumer installation checks are protocol-tested without an OS/network sandbox; Kimi/CodeBuddy are unverified manual follow-ups; command invocation authorizes configured gates',
|
|
555
|
+
verify: 'fresh exact npm and Claude/Codex consumer installation checks are protocol-tested without an OS/network sandbox; Kimi/CodeBuddy are unverified manual follow-ups and Qoder is optional post-release local work; command invocation authorizes configured gates',
|
|
537
556
|
},
|
|
538
557
|
recommendations: [],
|
|
539
558
|
};
|
|
@@ -688,6 +707,105 @@ For parallel or cross-session versions, use .release-skill/ships/<version>.json.
|
|
|
688
707
|
await exitAfterFlush(0);
|
|
689
708
|
}
|
|
690
709
|
|
|
710
|
+
// Offline record verification help stops before reading any caller path or
|
|
711
|
+
// importing the domain verifier. The command always emits one JSON document;
|
|
712
|
+
// --json remains mandatory so consumers cannot accidentally parse prose.
|
|
713
|
+
if (command === 'verify-records' && (args.includes('--help') || args.includes('-h'))) {
|
|
714
|
+
console.log(`release-skill verify-records - Verify explicit historical release records offline
|
|
715
|
+
|
|
716
|
+
Usage:
|
|
717
|
+
release-skill verify-records --plan <path> --approval <path> --target-run <path> --source-run <path>... --unit <id> --target-version <version> --json
|
|
718
|
+
|
|
719
|
+
Options:
|
|
720
|
+
--plan <path> Explicit release-plan JSON file
|
|
721
|
+
--approval <path> Explicit approval-record JSON file
|
|
722
|
+
--target-run <path> Explicit target release-run JSON file
|
|
723
|
+
--source-run <path> Explicit predecessor release-run JSON file (repeatable)
|
|
724
|
+
--unit <id> Expected release unit id
|
|
725
|
+
--target-version <version> Expected release unit version
|
|
726
|
+
--json Required; output one JSON result
|
|
727
|
+
-h, --help Show this help message and exit
|
|
728
|
+
|
|
729
|
+
The command reads only these explicit paths. It never scans .release-skill,
|
|
730
|
+
follows paths carried inside records, contacts a remote, writes a file, or
|
|
731
|
+
changes release state.`);
|
|
732
|
+
await exitAfterFlush(0);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
if (command === 'verify-records') {
|
|
736
|
+
const value = (flag) => {
|
|
737
|
+
const index = args.indexOf(flag);
|
|
738
|
+
return index !== -1 && args[index + 1] && !args[index + 1].startsWith('--')
|
|
739
|
+
? args[index + 1]
|
|
740
|
+
: undefined;
|
|
741
|
+
};
|
|
742
|
+
const values = (flag) => {
|
|
743
|
+
const selected = [];
|
|
744
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
745
|
+
if (args[index] === flag && args[index + 1] && !args[index + 1].startsWith('--')) {
|
|
746
|
+
selected.push(args[index + 1]);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
return selected;
|
|
750
|
+
};
|
|
751
|
+
const planPath = value('--plan');
|
|
752
|
+
const approvalPath = value('--approval');
|
|
753
|
+
const targetRunPath = value('--target-run');
|
|
754
|
+
const sourceRunPaths = values('--source-run');
|
|
755
|
+
const unitId = value('--unit');
|
|
756
|
+
const targetVersion = value('--target-version');
|
|
757
|
+
|
|
758
|
+
if (!hasJson) {
|
|
759
|
+
console.log(JSON.stringify({
|
|
760
|
+
status: 'INSUFFICIENT',
|
|
761
|
+
unitId: unitId ?? null,
|
|
762
|
+
targetVersion: targetVersion ?? null,
|
|
763
|
+
historicalTerminalStatus: null,
|
|
764
|
+
inputs: {},
|
|
765
|
+
digests: {},
|
|
766
|
+
findings: [{
|
|
767
|
+
code: 'INPUT_MISSING',
|
|
768
|
+
role: 'cli',
|
|
769
|
+
message: '--json is required for verify-records',
|
|
770
|
+
}],
|
|
771
|
+
}));
|
|
772
|
+
await exitAfterFlush(2);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
// A failed explicit read is represented as a missing input. Passing the
|
|
776
|
+
// original path only as a source label lets the verifier reduce it to the
|
|
777
|
+
// basename and prevents filesystem details from entering stdout.
|
|
778
|
+
const readInput = async (path) => {
|
|
779
|
+
if (!path) return undefined;
|
|
780
|
+
try {
|
|
781
|
+
return { bytes: await readFile(path), source: path };
|
|
782
|
+
} catch {
|
|
783
|
+
return { source: path };
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
const [plan, approval, targetRun, ...sourceRuns] = await Promise.all([
|
|
788
|
+
readInput(planPath),
|
|
789
|
+
readInput(approvalPath),
|
|
790
|
+
readInput(targetRunPath),
|
|
791
|
+
...sourceRunPaths.map((path) => readInput(path)),
|
|
792
|
+
]);
|
|
793
|
+
const {
|
|
794
|
+
VERIFY_RECORDS_EXIT_CODES,
|
|
795
|
+
verifyReleaseRecords,
|
|
796
|
+
} = await import('../src/commands/verify-records.mjs');
|
|
797
|
+
const result = verifyReleaseRecords({
|
|
798
|
+
plan,
|
|
799
|
+
approval,
|
|
800
|
+
targetRun,
|
|
801
|
+
sourceRuns,
|
|
802
|
+
unitId,
|
|
803
|
+
targetVersion,
|
|
804
|
+
});
|
|
805
|
+
console.log(JSON.stringify(result));
|
|
806
|
+
await exitAfterFlush(VERIFY_RECORDS_EXIT_CODES[result.status]);
|
|
807
|
+
}
|
|
808
|
+
|
|
691
809
|
// --- Setup command routing ---
|
|
692
810
|
if (command === 'setup') {
|
|
693
811
|
const rootIdx = args.indexOf('--root');
|
|
@@ -1711,6 +1829,23 @@ This command creates an independent postVerify run and never reads or writes shi
|
|
|
1711
1829
|
root,
|
|
1712
1830
|
...(postpublishApprovalPaths.length > 0 ? { postpublishApprovalPaths } : {}),
|
|
1713
1831
|
});
|
|
1832
|
+
if (result.status === 'DISTRIBUTED') {
|
|
1833
|
+
const {
|
|
1834
|
+
derivePostReleaseChecklist,
|
|
1835
|
+
unavailablePostReleaseChecklist,
|
|
1836
|
+
} = await import('../src/commands/post-release-local.mjs');
|
|
1837
|
+
let plan;
|
|
1838
|
+
try {
|
|
1839
|
+
plan = JSON.parse(await readFile(resolve(planPath), 'utf8'));
|
|
1840
|
+
result.postRelease = derivePostReleaseChecklist(plan, {
|
|
1841
|
+
root,
|
|
1842
|
+
runPath: result.runPath,
|
|
1843
|
+
postVerifyComplete: true,
|
|
1844
|
+
});
|
|
1845
|
+
} catch (error) {
|
|
1846
|
+
result.postRelease = unavailablePostReleaseChecklist(plan, error);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1714
1849
|
|
|
1715
1850
|
if (hasJson) {
|
|
1716
1851
|
console.log(JSON.stringify(result, null, 2));
|
|
@@ -1720,6 +1855,17 @@ This command creates an independent postVerify run and never reads or writes shi
|
|
|
1720
1855
|
console.log(` ${cp.actionId}: ${cp.status}`);
|
|
1721
1856
|
}
|
|
1722
1857
|
if (result.runPath) console.log(`PostVerify run: ${result.runPath}`);
|
|
1858
|
+
if (result.postRelease?.status === 'UNAVAILABLE') {
|
|
1859
|
+
console.warn(`Post-release checklist unavailable: ${result.postRelease.diagnostic?.message ?? 'unknown error'}`);
|
|
1860
|
+
} else if (result.postRelease?.localHostUpdate?.promptRequired === true) {
|
|
1861
|
+
const localHostUpdate = result.postRelease.localHostUpdate;
|
|
1862
|
+
console.log(`Post-release: ask whether to update local host plugins (${localHostUpdate.hosts.join(', ')}).`);
|
|
1863
|
+
if (localHostUpdate.available === true && typeof localHostUpdate.runPath === 'string') {
|
|
1864
|
+
console.log(`Post-release command: release-skill post-release --plan ${resolve(planPath)} --run ${localHostUpdate.runPath}`);
|
|
1865
|
+
console.log('Choose --hosts before adding --update-local-hosts to perform a local update.');
|
|
1866
|
+
}
|
|
1867
|
+
printHubManualTargets(localHostUpdate.targets);
|
|
1868
|
+
}
|
|
1723
1869
|
}
|
|
1724
1870
|
|
|
1725
1871
|
await exitAfterFlush(result.status === 'DISTRIBUTED' ? 0 : 1);
|