release-skill 0.10.2 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +42 -0
- package/INSTALL.md +2 -2
- package/INSTALL.zh-CN.md +2 -2
- package/README.md +8 -12
- package/README.zh-CN.md +8 -12
- package/adapters/antigravity/bin/release-skill.bundle.mjs +298 -9
- package/adapters/antigravity/plugin.json +1 -1
- package/adapters/antigravity/skills/release-help/SKILL.md +3 -3
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +298 -9
- package/adapters/claude/skills/release-help/SKILL.md +3 -3
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/release-skill.bundle.mjs +298 -9
- package/adapters/codex/skills/release-help/SKILL.md +3 -3
- package/adapters/cursor/.cursor-plugin/plugin.json +1 -1
- package/adapters/cursor/bin/release-skill.bundle.mjs +298 -9
- package/adapters/cursor/skills/release-help/SKILL.md +3 -3
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +298 -9
- package/adapters/kimi/skills/release-help/SKILL.md +3 -3
- package/adapters/qoder/.qoder-plugin/plugin.json +1 -1
- package/adapters/qoder/bin/release-skill.bundle.mjs +298 -9
- package/adapters/qoder/skills/release-help/SKILL.md +3 -3
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +298 -9
- package/adapters/workbuddy/skills/release-help/SKILL.md +3 -3
- package/bin/release-skill-cli.mjs +38 -1
- package/bin/release-skill.bundle.mjs +298 -9
- package/package.json +1 -1
- package/platform-manifest.json +4 -4
- package/plugin.json +1 -1
- package/skills/release-help/SKILL.md +3 -3
- package/skills-src/release-help/SKILL.md +3 -3
- package/src/commands/assess.mjs +61 -1
- package/src/commands/prepare.mjs +51 -0
- package/src/commands/professional-proof.mjs +179 -1
- package/src/commands/verify.mjs +1 -1
- package/src/core/pre-authority-failure.mjs +2 -2
|
@@ -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.4"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "17ab8324bc8f0f9022c0245407ceec6e84aabf5eb0cf64ffecd5170e212bda3e";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -63693,6 +63693,8 @@ var init_run = __esm({
|
|
|
63693
63693
|
// src/commands/professional-proof.mjs
|
|
63694
63694
|
var professional_proof_exports = {};
|
|
63695
63695
|
__export(professional_proof_exports, {
|
|
63696
|
+
AUDIT_PASS_CODES: () => AUDIT_PASS_CODES,
|
|
63697
|
+
AUDIT_PROVIDER_ID: () => AUDIT_PROVIDER_ID,
|
|
63696
63698
|
PROVIDER_ENTRY: () => PROVIDER_ENTRY,
|
|
63697
63699
|
READ_EXIT_CODES: () => READ_EXIT_CODES,
|
|
63698
63700
|
RELEASE_PROVIDER_ID: () => RELEASE_PROVIDER_ID,
|
|
@@ -63700,6 +63702,7 @@ __export(professional_proof_exports, {
|
|
|
63700
63702
|
attachProfessionalConclusion: () => attachProfessionalConclusion,
|
|
63701
63703
|
interpretReleaseConclusion: () => interpretReleaseConclusion,
|
|
63702
63704
|
projectReleaseConclusion: () => projectReleaseConclusion,
|
|
63705
|
+
readAuditProfessionalProof: () => readAuditProfessionalProof,
|
|
63703
63706
|
readProfessionalProof: () => readProfessionalProof2
|
|
63704
63707
|
});
|
|
63705
63708
|
import { readFileSync as readFileSync16, realpathSync as realpathSync5 } from "node:fs";
|
|
@@ -64113,7 +64116,149 @@ async function readProfessionalProof2({
|
|
|
64113
64116
|
conclusion: document2
|
|
64114
64117
|
};
|
|
64115
64118
|
}
|
|
64116
|
-
|
|
64119
|
+
async function readAuditProfessionalProof({
|
|
64120
|
+
proofRoot,
|
|
64121
|
+
proofPath,
|
|
64122
|
+
expectedSubjectRef = null,
|
|
64123
|
+
expectedSubjectRevision = null,
|
|
64124
|
+
expectedDigestSha256 = null,
|
|
64125
|
+
requireDigest = false
|
|
64126
|
+
} = {}) {
|
|
64127
|
+
if (typeof proofRoot !== "string" || proofRoot.length === 0 || typeof proofPath !== "string" || proofPath.length === 0) {
|
|
64128
|
+
return unavailableRead("proofRoot \u4E0E proofPath \u5747\u4E3A\u5FC5\u586B");
|
|
64129
|
+
}
|
|
64130
|
+
let receipt;
|
|
64131
|
+
try {
|
|
64132
|
+
await resolveContained(proofRoot, proofPath);
|
|
64133
|
+
receipt = await readFileStrict(proofRoot, proofPath, { encoding: "utf8" });
|
|
64134
|
+
} catch (cause) {
|
|
64135
|
+
return unavailableRead(`\u65E0\u6CD5\u8BFB\u53D6\u5BA1\u8BA1\u4E13\u4E1A\u7ED3\u8BBA: ${cause?.message ?? "unknown"}`);
|
|
64136
|
+
}
|
|
64137
|
+
let document2;
|
|
64138
|
+
try {
|
|
64139
|
+
document2 = JSON.parse(receipt.content);
|
|
64140
|
+
} catch {
|
|
64141
|
+
return unavailableRead("\u5BA1\u8BA1\u4E13\u4E1A\u7ED3\u8BBA\u4E0D\u662F\u5408\u6CD5 JSON");
|
|
64142
|
+
}
|
|
64143
|
+
const schema2 = validateProfessionalConclusion(document2);
|
|
64144
|
+
const provider = extractProvider(document2);
|
|
64145
|
+
if (!schema2.valid) {
|
|
64146
|
+
return unavailableRead(
|
|
64147
|
+
`\u5BA1\u8BA1\u4E13\u4E1A\u7ED3\u8BBA\u672A\u901A\u8FC7 professional-conclusion \u7ED3\u6784\u6821\u9A8C\uFF08${schema2.errorCode ?? "invalid"}\uFF09`,
|
|
64148
|
+
{ provider }
|
|
64149
|
+
);
|
|
64150
|
+
}
|
|
64151
|
+
if (provider?.id !== AUDIT_PROVIDER_ID) {
|
|
64152
|
+
return unavailableRead(`\u8BC1\u660E\u63D0\u4F9B\u65B9\u4E0D\u662F ${AUDIT_PROVIDER_ID}`, { provider, conclusion: document2 });
|
|
64153
|
+
}
|
|
64154
|
+
const digestSha256 = digestDocument(document2);
|
|
64155
|
+
if (requireDigest && (!expectedDigestSha256 || !/^[0-9a-f]{64}$/.test(expectedDigestSha256))) {
|
|
64156
|
+
return {
|
|
64157
|
+
status: "not_pass",
|
|
64158
|
+
reason: "\u7F3A\u5C11\u5408\u6CD5\u7684 64 \u4F4D\u5BA1\u8BA1\u7ED3\u8BBA\u6458\u8981\u7ED1\u5B9A\uFF08--audit-conclusion-sha256\uFF09",
|
|
64159
|
+
provider,
|
|
64160
|
+
digestSha256,
|
|
64161
|
+
conclusion: document2
|
|
64162
|
+
};
|
|
64163
|
+
}
|
|
64164
|
+
if (expectedDigestSha256 !== null && expectedDigestSha256 !== void 0) {
|
|
64165
|
+
if (typeof expectedDigestSha256 !== "string" || !/^[0-9a-f]{64}$/.test(expectedDigestSha256)) {
|
|
64166
|
+
return {
|
|
64167
|
+
status: "not_pass",
|
|
64168
|
+
reason: "expectedDigestSha256 \u5FC5\u987B\u4E3A 64 \u4F4D\u5C0F\u5199\u5341\u516D\u8FDB\u5236 SHA-256 \u6458\u8981",
|
|
64169
|
+
provider,
|
|
64170
|
+
digestSha256,
|
|
64171
|
+
conclusion: document2
|
|
64172
|
+
};
|
|
64173
|
+
}
|
|
64174
|
+
if (digestSha256 !== expectedDigestSha256) {
|
|
64175
|
+
return {
|
|
64176
|
+
status: "not_pass",
|
|
64177
|
+
reason: `\u5BA1\u8BA1\u7ED3\u8BBA\u89C4\u8303\u5316\u6458\u8981\u5931\u914D\uFF1A\u671F\u671B ${expectedDigestSha256}\uFF0C\u5B9E\u9645 ${digestSha256}`,
|
|
64178
|
+
provider,
|
|
64179
|
+
digestSha256,
|
|
64180
|
+
conclusion: document2
|
|
64181
|
+
};
|
|
64182
|
+
}
|
|
64183
|
+
}
|
|
64184
|
+
const actualSubjectRef = document2.subject?.ref;
|
|
64185
|
+
if (typeof actualSubjectRef !== "string" || actualSubjectRef.trim().length === 0) {
|
|
64186
|
+
return {
|
|
64187
|
+
status: "not_pass",
|
|
64188
|
+
reason: "\u5BA1\u8BA1\u7ED3\u8BBA\u7F3A\u5C11\u5408\u6CD5\u7684 subject.ref",
|
|
64189
|
+
provider,
|
|
64190
|
+
digestSha256,
|
|
64191
|
+
conclusion: document2
|
|
64192
|
+
};
|
|
64193
|
+
}
|
|
64194
|
+
if (expectedSubjectRef !== null && expectedSubjectRef !== void 0) {
|
|
64195
|
+
const allowedRefs = Array.isArray(expectedSubjectRef) ? expectedSubjectRef.filter((item) => typeof item === "string" && item.length > 0) : [expectedSubjectRef];
|
|
64196
|
+
if (allowedRefs.length === 0 || !allowedRefs.includes(actualSubjectRef)) {
|
|
64197
|
+
return {
|
|
64198
|
+
status: "not_pass",
|
|
64199
|
+
reason: `\u5BA1\u8BA1\u7ED3\u8BBA\u7ED1\u5B9A\u76EE\u6807\u4E0D\u4E00\u81F4\uFF1A\u671F\u671B [${allowedRefs.join(", ")}]\uFF0C\u5B9E\u9645 ${actualSubjectRef}`,
|
|
64200
|
+
provider,
|
|
64201
|
+
digestSha256,
|
|
64202
|
+
conclusion: document2
|
|
64203
|
+
};
|
|
64204
|
+
}
|
|
64205
|
+
}
|
|
64206
|
+
const actualRevision = document2.subject?.revision;
|
|
64207
|
+
if (typeof actualRevision !== "string" || actualRevision.trim().length === 0) {
|
|
64208
|
+
return {
|
|
64209
|
+
status: "not_pass",
|
|
64210
|
+
reason: "\u5BA1\u8BA1\u7ED3\u8BBA\u7F3A\u5C11\u5408\u6CD5\u7684 subject.revision",
|
|
64211
|
+
provider,
|
|
64212
|
+
digestSha256,
|
|
64213
|
+
conclusion: document2
|
|
64214
|
+
};
|
|
64215
|
+
}
|
|
64216
|
+
if (expectedSubjectRevision && actualRevision !== expectedSubjectRevision) {
|
|
64217
|
+
return {
|
|
64218
|
+
status: "not_pass",
|
|
64219
|
+
reason: `\u5BA1\u8BA1\u7ED3\u8BBA\u7ED1\u5B9A\u7248\u672C\u6458\u8981\u4E0D\u4E00\u81F4\uFF1A\u671F\u671B ${expectedSubjectRevision}\uFF0C\u5B9E\u9645 ${actualRevision}`,
|
|
64220
|
+
provider,
|
|
64221
|
+
digestSha256,
|
|
64222
|
+
conclusion: document2
|
|
64223
|
+
};
|
|
64224
|
+
}
|
|
64225
|
+
if (document2.outcome?.completion !== "complete") {
|
|
64226
|
+
return {
|
|
64227
|
+
status: "not_pass",
|
|
64228
|
+
reason: `\u5BA1\u8BA1\u58F0\u660E\u8303\u56F4\u5C1A\u672A\u5B8C\u6574\u6267\u884C\uFF08completion=${document2.outcome?.completion}\uFF09\uFF0C\u4E0D\u80FD\u4F5C\u4E3A\u5B8C\u6574\u901A\u8FC7\u4F9D\u636E`,
|
|
64229
|
+
provider,
|
|
64230
|
+
digestSha256,
|
|
64231
|
+
conclusion: document2
|
|
64232
|
+
};
|
|
64233
|
+
}
|
|
64234
|
+
const rawBlocking = document2.details?.blockingFindingsCount;
|
|
64235
|
+
if (!Number.isInteger(rawBlocking) || rawBlocking < 0) {
|
|
64236
|
+
return {
|
|
64237
|
+
status: "not_pass",
|
|
64238
|
+
reason: `\u5BA1\u8BA1\u7ED3\u8BBA\u7F3A\u5C11\u5408\u6CD5\u7684\u975E\u8D1F\u6574\u6570 details.blockingFindingsCount\uFF08\u5B9E\u9645=${JSON.stringify(rawBlocking)}\uFF09`,
|
|
64239
|
+
provider,
|
|
64240
|
+
digestSha256,
|
|
64241
|
+
conclusion: document2
|
|
64242
|
+
};
|
|
64243
|
+
}
|
|
64244
|
+
if (!AUDIT_PASS_CODES.includes(document2.outcome?.code) || rawBlocking > 0) {
|
|
64245
|
+
return {
|
|
64246
|
+
status: "not_pass",
|
|
64247
|
+
reason: `\u9759\u6001\u5BA1\u8BA1\u672A\u901A\u8FC7\uFF08code=${document2.outcome?.code}\uFF0C\u963B\u65AD\u53D1\u73B0\u6570=${rawBlocking}\uFF09`,
|
|
64248
|
+
provider,
|
|
64249
|
+
digestSha256,
|
|
64250
|
+
conclusion: document2
|
|
64251
|
+
};
|
|
64252
|
+
}
|
|
64253
|
+
return {
|
|
64254
|
+
status: "pass",
|
|
64255
|
+
reason: "\u5DF2\u5355\u5411\u6838\u9A8C\u901A\u8FC7 skill-family-audit \u9759\u6001\u5408\u89C4\u4E13\u4E1A\u7ED3\u8BBA\u3002",
|
|
64256
|
+
provider,
|
|
64257
|
+
digestSha256,
|
|
64258
|
+
conclusion: document2
|
|
64259
|
+
};
|
|
64260
|
+
}
|
|
64261
|
+
var RELEASE_PROVIDER_ID, PROVIDER_ENTRY, READ_EXIT_CODES, PASS_CODES, NOT_PASS_CODES, INCOMPLETE_RECORD_CODES, AUDIT_PROVIDER_ID, AUDIT_PASS_CODES;
|
|
64117
64262
|
var init_professional_proof = __esm({
|
|
64118
64263
|
"src/commands/professional-proof.mjs"() {
|
|
64119
64264
|
init_src();
|
|
@@ -64166,6 +64311,16 @@ var init_professional_proof = __esm({
|
|
|
64166
64311
|
__name(unavailableRead, "unavailableRead");
|
|
64167
64312
|
__name(extractProvider, "extractProvider");
|
|
64168
64313
|
__name(readProfessionalProof2, "readProfessionalProof");
|
|
64314
|
+
AUDIT_PROVIDER_ID = "skill-family-audit";
|
|
64315
|
+
AUDIT_PASS_CODES = Object.freeze([
|
|
64316
|
+
"AUDIT_RELEASE_GATE_CLEAR",
|
|
64317
|
+
"BLUEPRINT_AUDIT_CLEAR",
|
|
64318
|
+
"AUDIT_PASS",
|
|
64319
|
+
"RELEASE_AUDIT_PASS",
|
|
64320
|
+
"CONFORMANT",
|
|
64321
|
+
"CLEAR"
|
|
64322
|
+
]);
|
|
64323
|
+
__name(readAuditProfessionalProof, "readAuditProfessionalProof");
|
|
64169
64324
|
}
|
|
64170
64325
|
});
|
|
64171
64326
|
|
|
@@ -135609,7 +135764,7 @@ async function verifyRelease(options) {
|
|
|
135609
135764
|
const frozenDir = await resolveFrozenPath(root, frozenRel, "frozen snapshot path");
|
|
135610
135765
|
const frozenClosure = await checkSkillResourceClosure({
|
|
135611
135766
|
snapshotDir: frozenDir,
|
|
135612
|
-
host:
|
|
135767
|
+
host: "root",
|
|
135613
135768
|
surfaceHostBindings: [{ surfaceId: surface.surfaceId, host: surface.host }]
|
|
135614
135769
|
});
|
|
135615
135770
|
const frozenReceipt = createSkillResourceClosureReceipt(frozenClosure, {
|
|
@@ -138940,7 +139095,14 @@ Profile \u7F3A\u53E3 (${profileGaps.length}):`);
|
|
|
138940
139095
|
return lines.join("\n");
|
|
138941
139096
|
}
|
|
138942
139097
|
async function assessProject(options) {
|
|
138943
|
-
const {
|
|
139098
|
+
const {
|
|
139099
|
+
root,
|
|
139100
|
+
offline = true,
|
|
139101
|
+
output,
|
|
139102
|
+
conclusionOutput,
|
|
139103
|
+
auditConclusionPath,
|
|
139104
|
+
auditConclusionDigest
|
|
139105
|
+
} = options;
|
|
138944
139106
|
if (!root || typeof root !== "string") {
|
|
138945
139107
|
throw new ReleaseError(CONFIG_INVALID, "root must be a non-empty string");
|
|
138946
139108
|
}
|
|
@@ -139015,6 +139177,55 @@ async function assessProject(options) {
|
|
|
139015
139177
|
}
|
|
139016
139178
|
const readmeGaps = await checkReadmeStructure(root, config);
|
|
139017
139179
|
allGaps.push(...readmeGaps);
|
|
139180
|
+
if (auditConclusionPath) {
|
|
139181
|
+
const allowedSubjectRefs = /* @__PURE__ */ new Set();
|
|
139182
|
+
const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
|
|
139183
|
+
for (const unit of config.releaseUnits ?? []) {
|
|
139184
|
+
let unitVersion = null;
|
|
139185
|
+
if (unit.version?.source && typeof unit.version.source === "string" && !unit.version.source.startsWith("/")) {
|
|
139186
|
+
try {
|
|
139187
|
+
const vDoc = JSON.parse(await readFile30(resolve27(root, unit.source, unit.version.source), "utf8"));
|
|
139188
|
+
if (typeof vDoc?.version === "string" && vDoc.version.trim().length > 0) {
|
|
139189
|
+
unitVersion = vDoc.version.trim();
|
|
139190
|
+
}
|
|
139191
|
+
} catch {
|
|
139192
|
+
}
|
|
139193
|
+
}
|
|
139194
|
+
if (unitVersion) {
|
|
139195
|
+
if (projectName) {
|
|
139196
|
+
allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
|
|
139197
|
+
allowedSubjectRefs.add(`${projectName}@${unitVersion}`);
|
|
139198
|
+
}
|
|
139199
|
+
if (typeof unit.id === "string" && unit.id.trim().length > 0) {
|
|
139200
|
+
allowedSubjectRefs.add(`pkg:${unit.id.trim()}@${unitVersion}`);
|
|
139201
|
+
allowedSubjectRefs.add(`${unit.id.trim()}@${unitVersion}`);
|
|
139202
|
+
}
|
|
139203
|
+
for (const dist of unit.distributions ?? []) {
|
|
139204
|
+
if (typeof dist?.package === "string" && dist.package.trim().length > 0) {
|
|
139205
|
+
allowedSubjectRefs.add(`pkg:${dist.package.trim()}@${unitVersion}`);
|
|
139206
|
+
allowedSubjectRefs.add(`${dist.package.trim()}@${unitVersion}`);
|
|
139207
|
+
}
|
|
139208
|
+
}
|
|
139209
|
+
}
|
|
139210
|
+
}
|
|
139211
|
+
const auditProof = await readAuditProfessionalProof({
|
|
139212
|
+
proofRoot: root,
|
|
139213
|
+
proofPath: auditConclusionPath,
|
|
139214
|
+
expectedSubjectRef: allowedSubjectRefs.size > 0 ? [...allowedSubjectRefs] : [projectName || "__unresolvable_subject__"],
|
|
139215
|
+
expectedDigestSha256: auditConclusionDigest ?? null,
|
|
139216
|
+
requireDigest: true
|
|
139217
|
+
});
|
|
139218
|
+
if (auditProof.status !== "pass") {
|
|
139219
|
+
allGaps.push(createGap({
|
|
139220
|
+
scope: GapScope.PROJECT,
|
|
139221
|
+
category: GapCategory.POLICY,
|
|
139222
|
+
severity: Severity.ERROR,
|
|
139223
|
+
code: "AUDIT_CONCLUSION_NOT_PASSED",
|
|
139224
|
+
message: auditProof.reason,
|
|
139225
|
+
file: auditConclusionPath
|
|
139226
|
+
}));
|
|
139227
|
+
}
|
|
139228
|
+
}
|
|
139018
139229
|
const hasErrors = allGaps.some((g) => g.severity === Severity.ERROR);
|
|
139019
139230
|
const status = hasErrors ? "NEEDS_INPUT" : "ASSESSED";
|
|
139020
139231
|
const report = {
|
|
@@ -142507,7 +142718,7 @@ async function isProvenPreAuthorityFailure(runDir, runName, { strictHistory = fa
|
|
|
142507
142718
|
const legacyValid = summary && summary.status === "FAILED" && validLegacyError(summary.error) && typeof summary.error.message === "string" && legacyInputFailure.test(summary.error.message) && !legacyUnsafeFailure.test(summary.error.message) && (summary.recoveryActionCode === void 0 || summary.recoveryActionCode === "RETRY_COMMAND") && summary.runPath === void 0 && summary.finalRunDigest === void 0 && summary.latestStatePath === void 0 && summary.checkpointStatuses === void 0 && Array.isArray(events) && events.length >= 2 && events.every((event, index) => validLegacyEvent(event, legacyRunId) && event.sequence === index + 1) && legacyTerminal.phase === "publish" && legacyTerminal.status === "failed" && validLegacyError(legacyTerminal.error) && legacyTerminal.error.code === summary.error.code && events.slice(0, -1).filter((event) => event.status === "failed").every((event) => event.phase === "safety-gate" && legacyPreAuthorityGates.has(event.gate) && validLegacyError(event.error)) && !events.some((event) => event.phase === "global-preflight-arbitration" && event.status !== "pre-observe") && !events.slice(0, -1).some((event) => event.phase === "publish" || /checkpoint|execute|postpublish/i.test(event.phase) || Object.hasOwn(event, "prePersistedRunPath") || Object.hasOwn(event, "checkpointCount") || Object.hasOwn(event, "checkpointStatuses"));
|
|
142508
142719
|
if (legacyValid) return !strictHistory && await hasNoState(runDir);
|
|
142509
142720
|
const producerVersion = summary?.producer?.version;
|
|
142510
|
-
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1"].includes(producerVersion);
|
|
142721
|
+
const historical = ["0.9.3", "0.9.14", "0.9.17", "0.9.33", "0.9.37", "0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(producerVersion);
|
|
142511
142722
|
if (!historical && producerVersion !== resolveProducerVersion()) return false;
|
|
142512
142723
|
const sameProducer = /* @__PURE__ */ __name((value) => value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 2 && value.name === "release-skill" && value.version === producerVersion, "sameProducer");
|
|
142513
142724
|
const envelopeKeys = /* @__PURE__ */ new Set([
|
|
@@ -142572,7 +142783,7 @@ async function hasNoState(runDir) {
|
|
|
142572
142783
|
return true;
|
|
142573
142784
|
}
|
|
142574
142785
|
function closedPublishPrefix(events, summary, version2) {
|
|
142575
|
-
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1"].includes(version2) || version2 === resolveProducerVersion();
|
|
142786
|
+
const auditedCurrentPrefix = ["0.9.38", "0.10.0", "0.10.1", "0.10.2", "0.10.3"].includes(version2) || version2 === resolveProducerVersion();
|
|
142576
142787
|
let i = 0;
|
|
142577
142788
|
const take = /* @__PURE__ */ __name((phase, status, gate2) => {
|
|
142578
142789
|
const e = events[i];
|
|
@@ -155991,6 +156202,54 @@ async function prepareRelease(options) {
|
|
|
155991
156202
|
version2,
|
|
155992
156203
|
evidence
|
|
155993
156204
|
);
|
|
156205
|
+
if (options?.auditConclusionPath) {
|
|
156206
|
+
await evidence.append({ phase: "audit-professional-conclusion", status: "started", path: options.auditConclusionPath });
|
|
156207
|
+
const allowedSubjectRefs = /* @__PURE__ */ new Set();
|
|
156208
|
+
const projectName = typeof config.project?.name === "string" ? config.project.name.trim() : "";
|
|
156209
|
+
for (const [unitIdx, unit] of configUnits.entries()) {
|
|
156210
|
+
const unitVersion = resolvedVersions instanceof Map ? resolvedVersions.get(unit.id) : resolvedVersions[unitIdx];
|
|
156211
|
+
if (unitVersion) {
|
|
156212
|
+
if (projectName) {
|
|
156213
|
+
allowedSubjectRefs.add(`pkg:${projectName}@${unitVersion}`);
|
|
156214
|
+
allowedSubjectRefs.add(`${projectName}@${unitVersion}`);
|
|
156215
|
+
}
|
|
156216
|
+
allowedSubjectRefs.add(`pkg:${unit.id}@${unitVersion}`);
|
|
156217
|
+
allowedSubjectRefs.add(`${unit.id}@${unitVersion}`);
|
|
156218
|
+
for (const dist of unit.distributions ?? []) {
|
|
156219
|
+
if (typeof dist?.package === "string" && dist.package.trim().length > 0) {
|
|
156220
|
+
allowedSubjectRefs.add(`pkg:${dist.package.trim()}@${unitVersion}`);
|
|
156221
|
+
allowedSubjectRefs.add(`${dist.package.trim()}@${unitVersion}`);
|
|
156222
|
+
}
|
|
156223
|
+
}
|
|
156224
|
+
}
|
|
156225
|
+
}
|
|
156226
|
+
const auditProof = await readAuditProfessionalProof({
|
|
156227
|
+
proofRoot: realRoot,
|
|
156228
|
+
proofPath: options.auditConclusionPath,
|
|
156229
|
+
expectedSubjectRef: [...allowedSubjectRefs],
|
|
156230
|
+
expectedDigestSha256: options.auditConclusionDigest ?? null,
|
|
156231
|
+
requireDigest: true
|
|
156232
|
+
});
|
|
156233
|
+
if (auditProof.status !== "pass") {
|
|
156234
|
+
await evidence.append({
|
|
156235
|
+
phase: "audit-professional-conclusion",
|
|
156236
|
+
status: "blocking",
|
|
156237
|
+
reason: auditProof.reason,
|
|
156238
|
+
digestSha256: auditProof.digestSha256 ?? null
|
|
156239
|
+
});
|
|
156240
|
+
throw new ReleaseError(
|
|
156241
|
+
GATE_FAILED,
|
|
156242
|
+
`audit professional conclusion rejected: ${auditProof.reason}`,
|
|
156243
|
+
{ reason: "AUDIT_CONCLUSION_NOT_PASSED", auditConclusionPath: options.auditConclusionPath }
|
|
156244
|
+
);
|
|
156245
|
+
}
|
|
156246
|
+
await evidence.append({
|
|
156247
|
+
phase: "audit-professional-conclusion",
|
|
156248
|
+
status: "completed",
|
|
156249
|
+
digestSha256: auditProof.digestSha256,
|
|
156250
|
+
provider: auditProof.provider
|
|
156251
|
+
});
|
|
156252
|
+
}
|
|
155994
156253
|
const preHookDocsBindings = await runReleaseDocsFreshnessGate({
|
|
155995
156254
|
units: configUnits,
|
|
155996
156255
|
resolvedVersions,
|
|
@@ -157344,6 +157603,7 @@ var init_prepare = __esm({
|
|
|
157344
157603
|
init_postpublish();
|
|
157345
157604
|
init_postpublish_bundle();
|
|
157346
157605
|
init_release_assets();
|
|
157606
|
+
init_professional_proof();
|
|
157347
157607
|
init_bounded_output();
|
|
157348
157608
|
init_bounded_output();
|
|
157349
157609
|
execFile10 = promisify13(execFileCb13);
|
|
@@ -175029,9 +175289,26 @@ if (command === "assess") {
|
|
|
175029
175289
|
const output = outputIdx !== -1 && args[outputIdx + 1] ? args[outputIdx + 1] : void 0;
|
|
175030
175290
|
const conclusionIdx = args.indexOf("--conclusion-output");
|
|
175031
175291
|
const conclusionOutput = conclusionIdx !== -1 && args[conclusionIdx + 1] && !args[conclusionIdx + 1].startsWith("--") ? args[conclusionIdx + 1] : void 0;
|
|
175292
|
+
const auditConcIdx = args.indexOf("--audit-conclusion");
|
|
175293
|
+
const auditConclusionPath = auditConcIdx !== -1 && args[auditConcIdx + 1] && !args[auditConcIdx + 1].startsWith("--") ? args[auditConcIdx + 1] : void 0;
|
|
175294
|
+
const auditShaIdx = args.indexOf("--audit-conclusion-sha256");
|
|
175295
|
+
const auditConclusionDigest = auditShaIdx !== -1 && args[auditShaIdx + 1] && !args[auditShaIdx + 1].startsWith("--") ? args[auditShaIdx + 1] : void 0;
|
|
175032
175296
|
try {
|
|
175297
|
+
if (auditConcIdx !== -1 && !auditConclusionPath) {
|
|
175298
|
+
throw new ReleaseError(MISSING_PARAMETERS, "--audit-conclusion requires a path value");
|
|
175299
|
+
}
|
|
175300
|
+
if (auditShaIdx !== -1 && !auditConclusionDigest) {
|
|
175301
|
+
throw new ReleaseError(MISSING_PARAMETERS, "--audit-conclusion-sha256 requires a 64-hex sha256 value");
|
|
175302
|
+
}
|
|
175033
175303
|
const { assessProject: assessProject2 } = await init_assess().then(() => assess_exports);
|
|
175034
|
-
const report = await assessProject2({
|
|
175304
|
+
const report = await assessProject2({
|
|
175305
|
+
root,
|
|
175306
|
+
offline,
|
|
175307
|
+
output,
|
|
175308
|
+
conclusionOutput,
|
|
175309
|
+
auditConclusionPath,
|
|
175310
|
+
auditConclusionDigest
|
|
175311
|
+
});
|
|
175035
175312
|
if (hasJson) {
|
|
175036
175313
|
console.log(JSON.stringify(report, null, 2));
|
|
175037
175314
|
} else {
|
|
@@ -175350,6 +175627,10 @@ if (command === "prepare") {
|
|
|
175350
175627
|
const output = outputIdx !== -1 && args[outputIdx + 1] ? resolve49(args[outputIdx + 1]) : void 0;
|
|
175351
175628
|
const runDirIdx = args.indexOf("--run-dir");
|
|
175352
175629
|
const runDir = runDirIdx !== -1 && args[runDirIdx + 1] ? resolve49(args[runDirIdx + 1]) : void 0;
|
|
175630
|
+
const auditConcIdx = args.indexOf("--audit-conclusion");
|
|
175631
|
+
const auditConclusionPath = auditConcIdx !== -1 && args[auditConcIdx + 1] && !args[auditConcIdx + 1].startsWith("--") ? args[auditConcIdx + 1] : void 0;
|
|
175632
|
+
const auditShaIdx = args.indexOf("--audit-conclusion-sha256");
|
|
175633
|
+
const auditConclusionDigest = auditShaIdx !== -1 && args[auditShaIdx + 1] && !args[auditShaIdx + 1].startsWith("--") ? args[auditShaIdx + 1] : void 0;
|
|
175353
175634
|
const hasUnitSelection = args.includes("--unit");
|
|
175354
175635
|
const unitIds = [];
|
|
175355
175636
|
for (let i = 0; i < args.length; i += 1) {
|
|
@@ -175365,6 +175646,12 @@ if (command === "prepare") {
|
|
|
175365
175646
|
if (marketplaceSnapshotIdx !== -1 && !marketplaceSnapshotPath) {
|
|
175366
175647
|
throw new ReleaseError(MISSING_PARAMETERS, "--marketplace-snapshot requires a path value");
|
|
175367
175648
|
}
|
|
175649
|
+
if (auditConcIdx !== -1 && !auditConclusionPath) {
|
|
175650
|
+
throw new ReleaseError(MISSING_PARAMETERS, "--audit-conclusion requires a path value");
|
|
175651
|
+
}
|
|
175652
|
+
if (auditShaIdx !== -1 && !auditConclusionDigest) {
|
|
175653
|
+
throw new ReleaseError(MISSING_PARAMETERS, "--audit-conclusion-sha256 requires a 64-hex sha256 value");
|
|
175654
|
+
}
|
|
175368
175655
|
const { prepareRelease: prepareRelease2 } = await init_prepare().then(() => prepare_exports);
|
|
175369
175656
|
const { readFile: readFileFs } = await import("node:fs/promises");
|
|
175370
175657
|
const result2 = await prepareRelease2({
|
|
@@ -175386,7 +175673,9 @@ if (command === "prepare") {
|
|
|
175386
175673
|
runDir,
|
|
175387
175674
|
...candidatePath ? { candidatePath } : {},
|
|
175388
175675
|
...replaceUnpublishedPlan ? { replaceUnpublishedPlan } : {},
|
|
175389
|
-
...hasUnitSelection ? { unitIds } : {}
|
|
175676
|
+
...hasUnitSelection ? { unitIds } : {},
|
|
175677
|
+
...auditConclusionPath ? { auditConclusionPath } : {},
|
|
175678
|
+
...auditConclusionDigest ? { auditConclusionDigest } : {}
|
|
175390
175679
|
});
|
|
175391
175680
|
if (result2?.status === "NEEDS_INPUT") {
|
|
175392
175681
|
const payload = {
|
|
@@ -37,9 +37,9 @@ description: "Discoverable entry point for release-skill: dependency and environ
|
|
|
37
37
|
|
|
38
38
|
治理诊断只运行 `release-skill` 自身的只读检查,不调用目标 Skill、业务脚本、构建、钩子或发布动作;`prepare`、`verify`、`release-finish` 不充当静态治理入口。当用户要求实际接入或发布时,将已有授权带入对应原业务入口,各入口继续严格执行各自的确认、副作用披露与状态机规则。
|
|
39
39
|
|
|
40
|
-
## 0.10.
|
|
40
|
+
## 0.10.4 能力与证据边界
|
|
41
41
|
|
|
42
|
-
- **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.
|
|
42
|
+
- **四类工程材料边界**:项目配置明确区分公开正式资源(`publicFiles`:`sourceScope`、`from`、`to`、`mode`)、必需运行文件(`requiredPublicFiles`,须被同单元 `publicFiles[].to` 精确覆盖)、私有正式设计稿与非正式运行记录。公开不等于正式;私有内容由 `forbiddenPaths` 与 `forbiddenContentPatterns` 拦截,严禁写入 `publicFiles`。npm 载荷由 `package.json.files`、入口静态闭包与映射共同约束;`delivery.include` / `delivery.exclude` 只选择宿主,不得剔除必需运行文件。详见 [项目配置规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/02-project-config.md) 与 `release-prepare`。
|
|
43
43
|
- **接入与工作流路由**:首次运行 `release-setup` 若发现已有配置(`ALREADY_CONFIGURED` / `CONFIG_EXISTS`),绝不覆盖旧文件;增量调整先运行 `route`,仅纯配置修改走 `prepare --workflow config`,代码或混合改动走完整流程。底层固定绑定 Foundation 0.39.0 精确版本。`REQUIRED_PUBLIC_FILE_MISSING` 仅由 `setup --assess-adoption` 报告,普通 `assess` 与 `prepare` 保持原生错误码(`PUBLIC_FILE_MISSING` / `CONFIG_INVALID`)。
|
|
44
44
|
- **冻结发布与多宿主核验**:GitHub 分支推进使用 Git Data API `compare-and-swap` 绑定已观察分支头;市场安装固定冻结 URL/ref/sha 并在安装后复核载荷,统一汇聚至 `ifoohoo/skill-family-hub`(`release-skill@skill-family-hub`)。`release-finish` 兼容 Kimi 终端交互界面核验、Claude/Codex 共享环境 `setup` 归并与 Qoder 双清单包含性复验;任一宿主本机更新失败只把收尾标为 `FAILED`,绝不回退已达成的 `VERIFIED` 或 `DISTRIBUTED`。`--host-coverage <file>` 与 `--observe-hosts` 仅作只读覆盖诊断。批准、发布和验证状态以对应计划、批准及执行记录为准。
|
|
45
45
|
- **范围选择与基线完整性**:计划冻结前可通过 `--unit <id>` 选择部分发布单元(涉及 `publicSourceAuthorityReceipt` 时须同时选齐 coordinator 与全部 subjects);冻结后 `publish`、`reconcile`、`verify`、`distribute` 只认 `plan.units`。每个单元必须声明 `previousPublicBaseline`(无前序版本用 `none`,有前序版本用 `bound` + `repo/ref/commit`)。Hook cache v2 仅在可执行身份与输入指纹完整匹配时复用,否则冷执行。
|
|
@@ -120,4 +120,4 @@ node "${CLAUDE_PLUGIN_ROOT}/bin/release-skill-local-finish.mjs" \
|
|
|
120
120
|
|
|
121
121
|
新正式计划排他原子写入 `plans/<digest>.json` 才生效;写前失败无效,写后即使最新计划指针、FROZEN 标记或证据封口失败,也不得恢复旧计划发布资格,保留失败记录,沿原幂等路径核对新权威。新计划须新批准,旧批准不可跨用;`approve`、`publish`、`ship` 拒绝已替代计划。已发布或部分发布走原恢复谱系,不得以替代冒充恢复。来源提交须与远端 `main` 精确相等,`TEST`、远端冲突和批准门不变。Foundation 0.25.0 机制不变;0.9.38 入口不承诺全局撤销任意旧软件。
|
|
122
122
|
|
|
123
|
-
字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.
|
|
123
|
+
字段、精确历史 writer 分支及失败处理见 `release-prepare`、`release-reconcile` 与[状态机规范](https://github.com/ifoohoo/release-skill/blob/release-skill-v0.10.4/references/01-state-machine.md)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-skill",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "Safe preparation and frozen GitHub/npm production publishing with full happy end verification",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "广州市风荷科技有限公司"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"defaultPrompt": [
|
|
21
21
|
"Assess this project for release readiness.",
|
|
22
|
-
"Prepare a release plan for version 0.10.
|
|
22
|
+
"Prepare a release plan for version 0.10.4.",
|
|
23
23
|
"Help me understand the release workflow."
|
|
24
24
|
]
|
|
25
25
|
}
|