release-skill 0.10.0 → 0.10.1
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/.cursor-plugin/plugin.json +1 -1
- package/.kimi-plugin/plugin.json +1 -1
- package/.qoder-plugin/plugin.json +1 -1
- package/CHANGELOG.md +19 -0
- package/INSTALL.md +2 -2
- package/INSTALL.zh-CN.md +2 -2
- package/README.md +8 -13
- package/README.zh-CN.md +8 -13
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +30 -19
- package/adapters/claude/skills/release-help/SKILL.md +2 -2
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/release-skill.bundle.mjs +30 -19
- package/adapters/codex/skills/release-help/SKILL.md +2 -2
- package/adapters/cursor/.cursor-plugin/plugin.json +1 -1
- package/adapters/cursor/bin/release-skill.bundle.mjs +30 -19
- package/adapters/cursor/skills/release-help/SKILL.md +2 -2
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +30 -19
- package/adapters/kimi/skills/release-help/SKILL.md +2 -2
- package/adapters/qoder/.qoder-plugin/plugin.json +1 -1
- package/adapters/qoder/bin/release-skill.bundle.mjs +30 -19
- package/adapters/qoder/skills/release-help/SKILL.md +2 -2
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +30 -19
- package/adapters/workbuddy/skills/release-help/SKILL.md +2 -2
- package/bin/release-skill.bundle.mjs +30 -19
- package/package.json +1 -1
- package/platform-manifest.json +4 -4
- package/skills/release-help/SKILL.md +2 -2
- package/skills-src/release-help/SKILL.md +2 -2
- package/src/core/pre-authority-failure.mjs +2 -2
- package/src/core/source-authority.mjs +30 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-skill",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
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.
|
|
22
|
+
"Prepare a release plan for version 0.10.1.",
|
|
23
23
|
"Help me understand the release workflow."
|
|
24
24
|
]
|
|
25
25
|
}
|
package/.kimi-plugin/plugin.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<!-- release-skill:changelog:start version=0.10.1 locale=en baseline=sha256:4c8696eca88b6cb635146c722bd2bd82c119cfc47d2fb4e938a5efbe13d8da9b -->
|
|
4
|
+
## [0.10.1] - 2026-11-03
|
|
5
|
+
|
|
6
|
+
0.10.1 fixes source-input dirty checks that cannot start when a large set of public source paths exceeds the operating system argument capacity. Preparation now checks the complete set through bounded Git invocations. Foundation dependencies remain pinned to 0.25.0. This description is not evidence of publication, real-host acceptance, consumer installation verification, or independent acceptance.
|
|
7
|
+
|
|
8
|
+
### Security
|
|
9
|
+
|
|
10
|
+
- The inherited Skill Family Hub remains the unified marketplace. GitHub Git Data API with compare-and-swap binds updates to the observed branch head. Partial publication is never rolled back or force-pushed. These existing boundaries do not change release authorization or gates.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Source-input dirty checks retain the complete selection, frozen content, digest algorithm and protocol. Staged, unstaged, untracked and ignored changes remain rejected for selected inputs; rename and copy endpoints retain full directory-boundary matching. Unrelated dirty files remain allowed. A Git error in any batch still fails the entire check. Foundation dependencies remain pinned to 0.25.0.
|
|
15
|
+
|
|
16
|
+
### Upgrade Notes
|
|
17
|
+
|
|
18
|
+
Run prepare with 0.10.1 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.1 locale=en -->
|
|
20
|
+
|
|
21
|
+
|
|
3
22
|
<!-- release-skill:changelog:start version=0.10.0 locale=en baseline=sha256:dfff93ef727de178ff140fc2de189fdab65205a99cc4c5734bc8c9889ef28e54 -->
|
|
4
23
|
## [0.10.0] - 2026-10-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.
|
|
5
|
+
<!-- release-skill:release-version: 0.10.1 -->
|
|
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.
|
|
128
|
+
/plugins install https://github.com/ifoohoo/release-skill/releases/tag/release-skill-v0.10.1
|
|
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.
|
|
5
|
+
<!-- release-skill:release-version: 0.10.1 -->
|
|
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.
|
|
116
|
+
/plugins install https://github.com/ifoohoo/release-skill/releases/tag/release-skill-v0.10.1
|
|
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.
|
|
5
|
+
<!-- release-skill:release-version: 0.10.1 -->
|
|
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,30 +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.
|
|
21
|
+
**0.10.1** (2026-11-03)
|
|
22
22
|
|
|
23
|
-
0.10.
|
|
23
|
+
0.10.1 fixes source-input dirty checks that cannot start when a large set of public source paths exceeds the operating system argument capacity. Preparation now checks the complete set through bounded Git invocations. Foundation dependencies remain pinned to 0.25.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
|
-
-
|
|
28
|
-
|
|
29
|
-
**Added**
|
|
30
|
-
|
|
31
|
-
- The preparation Skill resolves and verifies a single testing provider for testing/skill-family/plan and run using existing source selection and v1 overlay. Project Skills and explicitly selected external catalogs are supported on codex and claude-code; other hosts retain their original path. Disabled, missing, ambiguous, or invalid providers halt dependent calls without fallback or waiver of testIntake obligations.
|
|
27
|
+
- The inherited Skill Family Hub remains the unified marketplace. GitHub Git Data API with compare-and-swap binds updates to the observed branch head. Partial publication is never rolled back or force-pushed. These existing boundaries do not change release authorization or gates.
|
|
32
28
|
|
|
33
29
|
**Fixed**
|
|
34
30
|
|
|
35
|
-
-
|
|
36
|
-
- When no frozen host targets are present, a plugin-qualified setup is skipped only if the current configuration has exactly one matching localHostUpdate.plugin owner and that unit is not selected. Unknown or ambiguous ownership, unqualified setups, or selected owners remain pending; selected hosts require actual loading and setup feedback.
|
|
31
|
+
- Source-input dirty checks retain the complete selection, frozen content, digest algorithm and protocol. Staged, unstaged, untracked and ignored changes remain rejected for selected inputs; rename and copy endpoints retain full directory-boundary matching. Unrelated dirty files remain allowed. A Git error in any batch still fails the entire check. Foundation dependencies remain pinned to 0.25.0.
|
|
37
32
|
|
|
38
33
|
**Upgrade Notes**
|
|
39
34
|
|
|
40
|
-
|
|
35
|
+
Run prepare with 0.10.1 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.
|
|
41
36
|
<!-- release-skill:managed:end id=latest-release -->
|
|
42
37
|
|
|
43
38
|
<!-- release-skill:capability:external-write-boundary -->
|
|
44
|
-
> **Current boundary:** v0.10.
|
|
39
|
+
> **Current boundary:** v0.10.1: this README records capabilities and verification boundaries;
|
|
45
40
|
> it is not evidence of
|
|
46
41
|
> publication, consumer-installation verification, or independent acceptance.
|
|
47
42
|
> Release availability must be established from the corresponding release records
|
|
@@ -65,7 +60,7 @@ Upgrading from writer version 0.9.38 to 0.10.0 requires a fresh prepare, candida
|
|
|
65
60
|
> publish global preflight.
|
|
66
61
|
|
|
67
62
|
<!-- release-skill:capability:safe-first-command -->
|
|
68
|
-
> **Production path verified since the v0.1.1 milestone; for v0.10.
|
|
63
|
+
> **Production path verified since the v0.1.1 milestone; for v0.10.1,
|
|
69
64
|
> publication, consumer-installation verification, and independent acceptance
|
|
70
65
|
> require version-specific release records and verification results.**
|
|
71
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.
|
|
5
|
+
<!-- release-skill:release-version: 0.10.1 -->
|
|
6
6
|
面向 Claude Code、CodeBuddy、WorkBuddy、Codex 和 Kimi Code 的发布准备工具,完整保留人工维护的文件内容。
|
|
7
7
|
|
|
8
8
|
release-skill 帮助维护者回答三个问题:准备发布什么、还有哪些检查未通过、最终发布的内容是什么。它不重新生成、也不回写项目源文件。`prepare` 把每个配置的公开文件复制到隔离快照并验证字节——先冻结并供人工审阅,再从同一份冻结产物发布。`setup` 只显示确定性的 `compactSummary` 审阅视图,完整报告保留在临时会话目录中。
|
|
@@ -12,30 +12,25 @@ release-skill 帮助维护者回答三个问题:准备发布什么、还有哪
|
|
|
12
12
|
发布单元是独立配置版本、公开文件和分发目标的发布对象。发布计划是供批准前审阅的记录,将目标版本、冻结产物和拟执行的外部动作关联起来;详见[人工审阅与批准步骤](#release-plan-review)。
|
|
13
13
|
|
|
14
14
|
<!-- release-skill:managed:start id=latest-release -->
|
|
15
|
-
**0.10.
|
|
15
|
+
**0.10.1** (2026-11-03)
|
|
16
16
|
|
|
17
|
-
0.10.
|
|
17
|
+
0.10.1 修复在公开来源路径集合较大时,Git 来源脏状态检查因操作系统参数容量上限而无法启动的问题。该检查用于确认待发布来源文件已提交,现改为分批读取完整来源集合,确保检查过程可稳定执行。本版本不新增功能或共享 API,仅修复参数兼容性问题,版本号为 0.10.1,Foundation 三包精确使用 0.25.0。本版本不代表已经发布、完成真实宿主验收、完成消费者安装验证或通过独立验收。
|
|
18
18
|
|
|
19
19
|
**安全**
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
**新增**
|
|
24
|
-
|
|
25
|
-
- 准备技能通过现有来源选择与 v1 overlay,针对 testing/skill-family/plan 和 run 解析并验证单一测试提供方。codex 和 claude-code 支持项目自有技能及显式指定的外部 catalog;其他宿主维持原有路径。提供方被禁用、缺失、存在歧义或无效时,将终止依赖调用,不触发回退机制,也不豁免 testIntake 义务。
|
|
21
|
+
- 本版继续沿用 Skill Family Hub 统一市场机制,通过 GitHub Git Data API 执行比较后写入(compare-and-swap)操作,绑定已观察分支头。部分发布不回滚、不覆盖。上述机制为既定边界,非本版新增能力,亦不改变原有发布授权与门禁策略。
|
|
26
22
|
|
|
27
23
|
**修复**
|
|
28
24
|
|
|
29
|
-
-
|
|
30
|
-
- 当无冻结宿主目标时,仅当当前配置恰好存在一个匹配的 localHostUpdate.plugin 所属单元,且该单元未被选中,才跳过带插件前缀的 setup。归属未知或模糊、未限定插件前缀、或所属单元已被选中时,仍保持待处理状态;已选宿主仍需完成实际加载并返回 setup 反馈。
|
|
25
|
+
- 来源选择、冻结内容、摘要算法与协议保持不变。检查仍严格拒绝所选来源中任何暂存、未暂存、未跟踪或被忽略的改动,继续核对重命名与复制记录中的相关路径,并依据完整目录边界进行匹配。无关文件的改动允许保留。任一批次 Git 读取操作失败,即判定整项检查失败。Foundation 三包版本精确锁定为 0.25.0,不随本版升级。所有检查边界与行为规则沿用现有规范,未作扩展或变更。
|
|
31
26
|
|
|
32
27
|
**升级说明**
|
|
33
28
|
|
|
34
|
-
|
|
29
|
+
升级至 0.10.1 后,需使用新工具版本重新执行 `prepare` 命令,生成新候选。测试结果由测试接受职责方提供,不通过 `prepare` 生成结果文件。原有候选、结果、批准及运行记录予以保留,其 `writerVersion` 不得手动修改。原独立的 `release-skill` 市场已弃用,统一市场为 ifoohoo/skill-family-hub,插件标识为 release-skill@skill-family-hub。统一市场不取代 GitHub Release 或 npm 发布渠道。
|
|
35
30
|
<!-- release-skill:managed:end id=latest-release -->
|
|
36
31
|
|
|
37
32
|
<!-- release-skill:capability:external-write-boundary -->
|
|
38
|
-
> **当前边界:** v0.10.
|
|
33
|
+
> **当前边界:** v0.10.1 的能力范围与验证边界见本 README,
|
|
39
34
|
> 不代表已经发布、完成消费者安装验证或通过独立验收。
|
|
40
35
|
> 版本可用性以对应发布记录及发布后验证结果为准。
|
|
41
36
|
> v0.4.1 是更早的已发布里程碑(v0.2.2 曾处于已发布状态,后因平台验证收敛修复而更新)。
|
|
@@ -51,7 +46,7 @@ release-skill 帮助维护者回答三个问题:准备发布什么、还有哪
|
|
|
51
46
|
> 远端唯一性检查在 `publish` 全局预检执行。
|
|
52
47
|
|
|
53
48
|
<!-- release-skill:capability:safe-first-command -->
|
|
54
|
-
> **生产路径自 v0.1.1 里程碑起已完成真实生产验证;v0.10.
|
|
49
|
+
> **生产路径自 v0.1.1 里程碑起已完成真实生产验证;v0.10.1 的发布、消费者安装验证和独立验收状态须由该版本的发布记录及验证结果确认。**
|
|
55
50
|
> npm 安装的 CLI 是受支持的用户入口;源码 checkout 保留为开发/贡献者路径。
|
|
56
51
|
>
|
|
57
52
|
> **第一条命令:**
|
|
@@ -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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
|
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
37
37
|
|
|
38
38
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
39
39
|
|
|
40
|
-
## 0.10.
|
|
40
|
+
## 0.10.1 能力与证据边界
|
|
41
41
|
|
|
42
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
42
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
43
43
|
|
|
44
44
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
45
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-skill",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
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.
|
|
22
|
+
"Prepare a release plan for version 0.10.1.",
|
|
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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
|
@@ -45,9 +45,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
45
45
|
|
|
46
46
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
47
47
|
|
|
48
|
-
## 0.10.
|
|
48
|
+
## 0.10.1 能力与证据边界
|
|
49
49
|
|
|
50
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
50
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
51
51
|
|
|
52
52
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
53
53
|
|
|
@@ -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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
|
@@ -46,9 +46,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
46
46
|
|
|
47
47
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
48
48
|
|
|
49
|
-
## 0.10.
|
|
49
|
+
## 0.10.1 能力与证据边界
|
|
50
50
|
|
|
51
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
51
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
52
52
|
|
|
53
53
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
54
54
|
|
|
@@ -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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
|
@@ -45,9 +45,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
45
45
|
|
|
46
46
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
47
47
|
|
|
48
|
-
## 0.10.
|
|
48
|
+
## 0.10.1 能力与证据边界
|
|
49
49
|
|
|
50
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
50
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
51
51
|
|
|
52
52
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
53
53
|
|
|
@@ -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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
|
@@ -45,9 +45,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
45
45
|
|
|
46
46
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
47
47
|
|
|
48
|
-
## 0.10.
|
|
48
|
+
## 0.10.1 能力与证据边界
|
|
49
49
|
|
|
50
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
50
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
51
51
|
|
|
52
52
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
53
53
|
|
|
@@ -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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
|
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
37
37
|
|
|
38
38
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
39
39
|
|
|
40
|
-
## 0.10.
|
|
40
|
+
## 0.10.1 能力与证据边界
|
|
41
41
|
|
|
42
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
42
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
43
43
|
|
|
44
44
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
45
45
|
|
|
@@ -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.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.10.1"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "fd667051e4d84ce78c483c5f073cea893c1ca395132086c05268ade57326716e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -37354,21 +37354,33 @@ function sharesDirectoryBoundary(recordPath, requestedPath) {
|
|
|
37354
37354
|
async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
37355
37355
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
37356
37356
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
37357
|
-
|
|
37357
|
+
const records = [];
|
|
37358
37358
|
try {
|
|
37359
|
-
(
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37359
|
+
for (let offset = 0; offset < paths.length; ) {
|
|
37360
|
+
const batch = [];
|
|
37361
|
+
let bytes = 0;
|
|
37362
|
+
while (offset < paths.length) {
|
|
37363
|
+
const size = Buffer.byteLength(paths[offset], "utf8") + 1;
|
|
37364
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
37365
|
+
batch.push(paths[offset]);
|
|
37366
|
+
bytes += size;
|
|
37367
|
+
offset += 1;
|
|
37368
|
+
}
|
|
37369
|
+
const { stdout } = await execFn(
|
|
37370
|
+
"git",
|
|
37371
|
+
[
|
|
37372
|
+
"status",
|
|
37373
|
+
"--porcelain=v1",
|
|
37374
|
+
"-z",
|
|
37375
|
+
"--untracked-files=all",
|
|
37376
|
+
"--ignored=matching",
|
|
37377
|
+
"--",
|
|
37378
|
+
...batch
|
|
37379
|
+
],
|
|
37380
|
+
{ cwd: root, encoding: "utf8", shell: false }
|
|
37381
|
+
);
|
|
37382
|
+
records.push(...String(stdout).split("\0").filter(Boolean));
|
|
37383
|
+
}
|
|
37372
37384
|
} catch (error) {
|
|
37373
37385
|
throw new ReleaseError(
|
|
37374
37386
|
DIRTY_SOURCE_INPUT,
|
|
@@ -37377,7 +37389,6 @@ async function checkSourceInputDirty({ closure, root, execFn = execFile }) {
|
|
|
37377
37389
|
);
|
|
37378
37390
|
}
|
|
37379
37391
|
const dirtyPaths = [];
|
|
37380
|
-
const records = String(stdout).split("\0").filter(Boolean);
|
|
37381
37392
|
for (let index = 0; index < records.length; index += 1) {
|
|
37382
37393
|
const record = records[index];
|
|
37383
37394
|
if (record.length < 4) continue;
|
|
@@ -125118,7 +125129,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
125118
125129
|
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"));
|
|
125119
125130
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
125120
125131
|
const producerVersion = summary?.producer?.version;
|
|
125121
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38"].includes(producerVersion);
|
|
125132
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0"].includes(producerVersion);
|
|
125122
125133
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
125123
125134
|
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");
|
|
125124
125135
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -125183,7 +125194,7 @@ async function hasNoState(runDir) {
|
|
|
125183
125194
|
return true;
|
|
125184
125195
|
}
|
|
125185
125196
|
function closedPublishPrefix(events, summary, version) {
|
|
125186
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0"].includes(version);
|
|
125197
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version);
|
|
125187
125198
|
let i = 0;
|
|
125188
125199
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
125189
125200
|
const e = events[i];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-skill",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
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"
|
package/platform-manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "0.10.1",
|
|
6
6
|
"logicalRoot": "skills-src/",
|
|
7
|
-
"logicalRootDigest": "
|
|
8
|
-
"projectionDigest": "
|
|
9
|
-
"projectionId": "release-skill:platform:0.10.
|
|
7
|
+
"logicalRootDigest": "02c4cbbd7b5ea82ca5e396d49c557ba6cafe1681b514fb243aaf6b2e02ac2a1e",
|
|
8
|
+
"projectionDigest": "0993537e6be267a2fdf6747690903c45114c04a5b98049fe5b9a0c23fab22e7e",
|
|
9
|
+
"projectionId": "release-skill:platform:0.10.1",
|
|
10
10
|
"manifestRequired": true,
|
|
11
11
|
"projectionSources": {
|
|
12
12
|
"skills-src-root": {
|
|
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
37
37
|
|
|
38
38
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
39
39
|
|
|
40
|
-
## 0.10.
|
|
40
|
+
## 0.10.1 能力与证据边界
|
|
41
41
|
|
|
42
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
42
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
43
43
|
|
|
44
44
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
45
45
|
|
|
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
37
37
|
|
|
38
38
|
诊断只运行 `release-skill` 自身只读检查,不调用目标 Skill、业务脚本、构建、hook 或发布动作。`prepare`、`verify`、`release-finish` 不作为静态治理入口。用户要求实际接入或发布时,应将已有授权带入对应原业务入口,各入口继续执行原有确认、副作用与状态机规则。
|
|
39
39
|
|
|
40
|
-
## 0.10.
|
|
40
|
+
## 0.10.1 能力与证据边界
|
|
41
41
|
|
|
42
|
-
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.
|
|
42
|
+
`release-project` 的四类材料:公开正式(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、运行必需(`requiredPublicFiles`)、私有正式与非正式。公开≠正式。`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.1/references/02-project-config.md)及 `release-prepare`。
|
|
43
43
|
|
|
44
44
|
首次 `release-setup`:若已有配置(`ALREADY_CONFIGURED`/`CONFIG_EXISTS`),不得覆盖;合法旧字段保留。增量操作(`release-assess` / `release-config`):先运行 `route`,仅 `config-only` 走 `prepare --workflow config`;`full-happy-end` / `mixed` 走完整流程。Foundation 0.25.0 版本精确,不因邻仓升级而变更。
|
|
45
45
|
|
|
@@ -91,7 +91,7 @@ export async function isProvenPreAuthorityFailure(runDir, runName, { strictHisto
|
|
|
91
91
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
92
92
|
|
|
93
93
|
const producerVersion = summary?.producer?.version;
|
|
94
|
-
const historical = ['0.9.3', '0.9.14', '0.9.17', '0.9.33', '0.9.37', '0.9.38'].includes(producerVersion);
|
|
94
|
+
const historical = ['0.9.3', '0.9.14', '0.9.17', '0.9.33', '0.9.37', '0.9.38', '0.10.0'].includes(producerVersion);
|
|
95
95
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
96
96
|
const sameProducer = (value) => value && typeof value === 'object' && !Array.isArray(value)
|
|
97
97
|
&& Object.keys(value).length === 2
|
|
@@ -185,7 +185,7 @@ async function hasNoState(runDir) {
|
|
|
185
185
|
|
|
186
186
|
// A finite prefix of the audited publish writer, not a target inference.
|
|
187
187
|
function closedPublishPrefix(events, summary, version) {
|
|
188
|
-
const auditedCurrentPrefix = ['0.9.38', '0.10.0'].includes(version);
|
|
188
|
+
const auditedCurrentPrefix = ['0.9.38', '0.10.0', '0.10.1'].includes(version);
|
|
189
189
|
let i = 0;
|
|
190
190
|
const take = (phase, status, gate) => {
|
|
191
191
|
const e = events[i];
|
|
@@ -295,21 +295,37 @@ export async function checkSourceInputDirty({ closure, root, execFn = execFile }
|
|
|
295
295
|
const paths = (closure?.entries ?? []).map((entry) => entry.path);
|
|
296
296
|
if (paths.length === 0) return { dirty: false, dirtyPaths: [] };
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
const records = [];
|
|
299
299
|
try {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
'
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
300
|
+
// Keep the complete selection, but bound each Git invocation well below
|
|
301
|
+
// platform argv limits. Git status does not accept --pathspec-from-file.
|
|
302
|
+
// Retain pathspec-scoped ignored reporting: a whole-repository scan can
|
|
303
|
+
// collapse an ignored sibling into an ancestor of a clean selected file.
|
|
304
|
+
for (let offset = 0; offset < paths.length;) {
|
|
305
|
+
const batch = [];
|
|
306
|
+
let bytes = 0;
|
|
307
|
+
while (offset < paths.length) {
|
|
308
|
+
const size = Buffer.byteLength(paths[offset], 'utf8') + 1;
|
|
309
|
+
if (batch.length > 0 && bytes + size > 16 * 1024) break;
|
|
310
|
+
batch.push(paths[offset]);
|
|
311
|
+
bytes += size;
|
|
312
|
+
offset += 1;
|
|
313
|
+
}
|
|
314
|
+
const { stdout } = await execFn(
|
|
315
|
+
'git',
|
|
316
|
+
[
|
|
317
|
+
'status',
|
|
318
|
+
'--porcelain=v1',
|
|
319
|
+
'-z',
|
|
320
|
+
'--untracked-files=all',
|
|
321
|
+
'--ignored=matching',
|
|
322
|
+
'--',
|
|
323
|
+
...batch,
|
|
324
|
+
],
|
|
325
|
+
{ cwd: root, encoding: 'utf8', shell: false },
|
|
326
|
+
);
|
|
327
|
+
records.push(...String(stdout).split('\0').filter(Boolean));
|
|
328
|
+
}
|
|
313
329
|
} catch (error) {
|
|
314
330
|
throw new ReleaseError(
|
|
315
331
|
DIRTY_SOURCE_INPUT,
|
|
@@ -319,7 +335,6 @@ export async function checkSourceInputDirty({ closure, root, execFn = execFile }
|
|
|
319
335
|
}
|
|
320
336
|
|
|
321
337
|
const dirtyPaths = [];
|
|
322
|
-
const records = String(stdout).split('\0').filter(Boolean);
|
|
323
338
|
for (let index = 0; index < records.length; index += 1) {
|
|
324
339
|
const record = records[index];
|
|
325
340
|
if (record.length < 4) continue;
|