release-skill 0.7.1 → 0.7.3
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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codebuddy-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -2
- package/.kimi-plugin/plugin.json +1 -1
- package/CHANGELOG.md +22 -0
- package/INSTALL.md +2 -2
- package/INSTALL.zh-CN.md +2 -2
- package/README.md +7 -7
- package/README.zh-CN.md +6 -6
- package/adapters/claude/.claude-plugin/marketplace.json +1 -1
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +367 -233
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/release-skill.bundle.mjs +367 -233
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +367 -233
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +367 -233
- package/bin/release-skill.bundle.mjs +367 -233
- package/package.json +4 -4
- package/platform-manifest.json +2 -2
- package/scripts/build-bundle.mjs +0 -31
- package/src/artifacts/safe-fs-backend-internal.mjs +3 -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.7.
|
|
12
|
+
const __bundlePkg = Object.freeze({"name":"release-skill","version":"0.7.3"});
|
|
13
13
|
// Build-time source digest for the BUNDLE_STALE freshness gate (see above).
|
|
14
|
-
const __bundleSourceDigest = "
|
|
14
|
+
const __bundleSourceDigest = "0e814c8b806446476595498baed8b129ca3cb024e3b922049db5774f022c90be";
|
|
15
15
|
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -48,7 +48,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
48
48
|
mod
|
|
49
49
|
));
|
|
50
50
|
|
|
51
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
51
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/errors.mjs
|
|
52
52
|
import { readFileSync } from "node:fs";
|
|
53
53
|
function deepFreeze(obj) {
|
|
54
54
|
if (obj === null || typeof obj !== "object") return obj;
|
|
@@ -66,7 +66,7 @@ function isRegisteredErrorCode(code) {
|
|
|
66
66
|
}
|
|
67
67
|
var ERROR_REGISTRY, CODE_INDEX, ContractsError, ERROR_CODES;
|
|
68
68
|
var init_errors = __esm({
|
|
69
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
69
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/errors.mjs"() {
|
|
70
70
|
__name(deepFreeze, "deepFreeze");
|
|
71
71
|
ERROR_REGISTRY = deepFreeze(JSON.parse(
|
|
72
72
|
readFileSync(new URL("./error-codes.json", import.meta.url), "utf8")
|
|
@@ -88,7 +88,7 @@ var init_errors = __esm({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
91
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/registry.mjs
|
|
92
92
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
93
93
|
function deepFreeze2(obj) {
|
|
94
94
|
if (obj === null || typeof obj !== "object") return obj;
|
|
@@ -106,7 +106,7 @@ function findSchemaByObject(object, registry = REGISTRY) {
|
|
|
106
106
|
}
|
|
107
107
|
var REGISTRY;
|
|
108
108
|
var init_registry = __esm({
|
|
109
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
109
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/registry.mjs"() {
|
|
110
110
|
init_errors();
|
|
111
111
|
__name(deepFreeze2, "deepFreeze");
|
|
112
112
|
REGISTRY = deepFreeze2(JSON.parse(
|
|
@@ -7875,11 +7875,11 @@ var require__ = __commonJS({
|
|
|
7875
7875
|
}
|
|
7876
7876
|
});
|
|
7877
7877
|
|
|
7878
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7878
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/validator.mjs
|
|
7879
7879
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
7880
7880
|
var import_ajv, import__, SUPPORTED_DIALECTS, DIALECT_CONSTRUCTORS, VALIDATION_POLICIES;
|
|
7881
7881
|
var init_validator = __esm({
|
|
7882
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7882
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/validator.mjs"() {
|
|
7883
7883
|
import_ajv = __toESM(require_ajv(), 1);
|
|
7884
7884
|
import__ = __toESM(require__(), 1);
|
|
7885
7885
|
init_errors();
|
|
@@ -7913,7 +7913,7 @@ var init_validator = __esm({
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
|
|
7916
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7916
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/kernel.mjs
|
|
7917
7917
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
7918
7918
|
function deepFreeze3(obj) {
|
|
7919
7919
|
if (obj === null || typeof obj !== "object") return obj;
|
|
@@ -7928,7 +7928,7 @@ function deepFreeze3(obj) {
|
|
|
7928
7928
|
}
|
|
7929
7929
|
var import_ajv2, KERNEL, paramsAjv;
|
|
7930
7930
|
var init_kernel = __esm({
|
|
7931
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7931
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/kernel.mjs"() {
|
|
7932
7932
|
import_ajv2 = __toESM(require_ajv(), 1);
|
|
7933
7933
|
__name(deepFreeze3, "deepFreeze");
|
|
7934
7934
|
KERNEL = deepFreeze3(JSON.parse(
|
|
@@ -7938,11 +7938,11 @@ var init_kernel = __esm({
|
|
|
7938
7938
|
}
|
|
7939
7939
|
});
|
|
7940
7940
|
|
|
7941
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7941
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/fixtures.mjs
|
|
7942
7942
|
import { readdirSync, readFileSync as readFileSync5 } from "node:fs";
|
|
7943
7943
|
var FIXTURE_CLASSES, FIXTURES_DIR;
|
|
7944
7944
|
var init_fixtures = __esm({
|
|
7945
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7945
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/fixtures.mjs"() {
|
|
7946
7946
|
init_errors();
|
|
7947
7947
|
init_registry();
|
|
7948
7948
|
init_kernel();
|
|
@@ -7952,11 +7952,11 @@ var init_fixtures = __esm({
|
|
|
7952
7952
|
}
|
|
7953
7953
|
});
|
|
7954
7954
|
|
|
7955
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7955
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/checker.mjs
|
|
7956
7956
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
7957
7957
|
var RULES_DOCUMENT, CHECK_TYPES, MANDATORY_RULES, RULE_BUDGET;
|
|
7958
7958
|
var init_checker = __esm({
|
|
7959
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7959
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/checker.mjs"() {
|
|
7960
7960
|
init_errors();
|
|
7961
7961
|
init_registry();
|
|
7962
7962
|
init_fixtures();
|
|
@@ -7975,10 +7975,10 @@ var init_checker = __esm({
|
|
|
7975
7975
|
}
|
|
7976
7976
|
});
|
|
7977
7977
|
|
|
7978
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7978
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/token-estimate-consumption.mjs
|
|
7979
7979
|
var TOKEN_ESTIMATE_CONSUMPTION_ERROR_KIND, RECORD_KIND, TOKEN_ESTIMATE_CONSUMPTION, TOKEN_ESTIMATE_CONSUMPTION_REASONS;
|
|
7980
7980
|
var init_token_estimate_consumption = __esm({
|
|
7981
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
7981
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/token-estimate-consumption.mjs"() {
|
|
7982
7982
|
init_errors();
|
|
7983
7983
|
TOKEN_ESTIMATE_CONSUMPTION_ERROR_KIND = "token-estimate-consumption-failed";
|
|
7984
7984
|
RECORD_KIND = "skill-family.token-estimate-record";
|
|
@@ -8010,7 +8010,7 @@ var init_token_estimate_consumption = __esm({
|
|
|
8010
8010
|
}
|
|
8011
8011
|
});
|
|
8012
8012
|
|
|
8013
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
8013
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/audit-surface.mjs
|
|
8014
8014
|
import { createHash } from "node:crypto";
|
|
8015
8015
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
8016
8016
|
function canonicalJson(value) {
|
|
@@ -8049,7 +8049,7 @@ function digestDocument(value, { algorithm = "sha256" } = {}) {
|
|
|
8049
8049
|
}
|
|
8050
8050
|
var AUDIT_DIGEST_ALGORITHMS, BASELINE_PIN_KINDS;
|
|
8051
8051
|
var init_audit_surface = __esm({
|
|
8052
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
8052
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/audit-surface.mjs"() {
|
|
8053
8053
|
init_errors();
|
|
8054
8054
|
init_registry();
|
|
8055
8055
|
init_kernel();
|
|
@@ -8066,10 +8066,10 @@ var init_audit_surface = __esm({
|
|
|
8066
8066
|
}
|
|
8067
8067
|
});
|
|
8068
8068
|
|
|
8069
|
-
// ../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
8069
|
+
// ../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/index.mjs
|
|
8070
8070
|
var CONTRACT_OBJECTS, CONTRACT_BOUNDARY;
|
|
8071
8071
|
var init_src = __esm({
|
|
8072
|
-
"../../node_modules/.pnpm/skill-family-contracts@0.8.
|
|
8072
|
+
"../../node_modules/.pnpm/skill-family-contracts@0.8.1/node_modules/skill-family-contracts/src/index.mjs"() {
|
|
8073
8073
|
init_errors();
|
|
8074
8074
|
init_registry();
|
|
8075
8075
|
init_validator();
|
|
@@ -8118,7 +8118,7 @@ var init_src = __esm({
|
|
|
8118
8118
|
}
|
|
8119
8119
|
});
|
|
8120
8120
|
|
|
8121
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8121
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/errors.mjs
|
|
8122
8122
|
function mechanismError(kind, message, extraDetails) {
|
|
8123
8123
|
const values = Object.values(HARNESS_ERROR_KINDS);
|
|
8124
8124
|
if (!values.includes(kind)) {
|
|
@@ -8129,7 +8129,7 @@ function mechanismError(kind, message, extraDetails) {
|
|
|
8129
8129
|
}
|
|
8130
8130
|
var HARNESS_ERROR_KINDS, HarnessError;
|
|
8131
8131
|
var init_errors2 = __esm({
|
|
8132
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8132
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/errors.mjs"() {
|
|
8133
8133
|
init_src();
|
|
8134
8134
|
HARNESS_ERROR_KINDS = Object.freeze({
|
|
8135
8135
|
INVALID_PATH: "invalid-path",
|
|
@@ -8203,7 +8203,7 @@ var init_errors2 = __esm({
|
|
|
8203
8203
|
}
|
|
8204
8204
|
});
|
|
8205
8205
|
|
|
8206
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8206
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/paths.mjs
|
|
8207
8207
|
import { lstat, readFile, realpath, stat } from "node:fs/promises";
|
|
8208
8208
|
import path from "node:path";
|
|
8209
8209
|
import process2 from "node:process";
|
|
@@ -8414,7 +8414,7 @@ async function readFileContained(root, relPath, { encoding } = {}) {
|
|
|
8414
8414
|
}
|
|
8415
8415
|
var WINDOWS_DRIVE_PATTERN, WINDOWS_UNC_PATTERN, POSIX_UNC_PATTERN;
|
|
8416
8416
|
var init_paths = __esm({
|
|
8417
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8417
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/paths.mjs"() {
|
|
8418
8418
|
init_errors2();
|
|
8419
8419
|
WINDOWS_DRIVE_PATTERN = /^[A-Za-z]:/;
|
|
8420
8420
|
WINDOWS_UNC_PATTERN = /^\\\\/;
|
|
@@ -8429,7 +8429,7 @@ var init_paths = __esm({
|
|
|
8429
8429
|
}
|
|
8430
8430
|
});
|
|
8431
8431
|
|
|
8432
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8432
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/closure.mjs
|
|
8433
8433
|
import { createHash as createHash2 } from "node:crypto";
|
|
8434
8434
|
import path2 from "node:path";
|
|
8435
8435
|
function digestBytes(bytes) {
|
|
@@ -8527,7 +8527,7 @@ async function computeResourceClosure({ root, resources } = {}) {
|
|
|
8527
8527
|
}
|
|
8528
8528
|
var CLOSURE_KIND, CLOSURE_SCHEMA_VERSION, DIGEST_ALGORITHM, ROLES;
|
|
8529
8529
|
var init_closure = __esm({
|
|
8530
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8530
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/closure.mjs"() {
|
|
8531
8531
|
init_errors2();
|
|
8532
8532
|
init_paths();
|
|
8533
8533
|
CLOSURE_KIND = "skill-family.resource-closure";
|
|
@@ -8540,7 +8540,7 @@ var init_closure = __esm({
|
|
|
8540
8540
|
}
|
|
8541
8541
|
});
|
|
8542
8542
|
|
|
8543
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8543
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/strict-read.mjs
|
|
8544
8544
|
import { constants as FS_CONSTANTS } from "node:fs";
|
|
8545
8545
|
import { lstat as lstat2, open } from "node:fs/promises";
|
|
8546
8546
|
function sameIdentity(left, right) {
|
|
@@ -8641,7 +8641,7 @@ async function readFileStrict(root, relPath, { encoding, expectedSha256 } = {})
|
|
|
8641
8641
|
}
|
|
8642
8642
|
var SHA256_HEX_PATTERN;
|
|
8643
8643
|
var init_strict_read = __esm({
|
|
8644
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8644
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/strict-read.mjs"() {
|
|
8645
8645
|
init_closure();
|
|
8646
8646
|
init_errors2();
|
|
8647
8647
|
init_paths();
|
|
@@ -8651,7 +8651,7 @@ var init_strict_read = __esm({
|
|
|
8651
8651
|
}
|
|
8652
8652
|
});
|
|
8653
8653
|
|
|
8654
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8654
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/url-redaction.mjs
|
|
8655
8655
|
function redactUrlCredentials(value) {
|
|
8656
8656
|
let url;
|
|
8657
8657
|
if (value instanceof URL) {
|
|
@@ -8671,13 +8671,13 @@ function redactUrlCredentials(value) {
|
|
|
8671
8671
|
}
|
|
8672
8672
|
var REDACTED_URL_PLACEHOLDER;
|
|
8673
8673
|
var init_url_redaction = __esm({
|
|
8674
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8674
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/url-redaction.mjs"() {
|
|
8675
8675
|
REDACTED_URL_PLACEHOLDER = "[redacted-url]";
|
|
8676
8676
|
__name(redactUrlCredentials, "redactUrlCredentials");
|
|
8677
8677
|
}
|
|
8678
8678
|
});
|
|
8679
8679
|
|
|
8680
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
8680
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/atomic.mjs
|
|
8681
8681
|
import { createHash as createHash3, randomBytes } from "node:crypto";
|
|
8682
8682
|
import { constants as FS_CONSTANTS2 } from "node:fs";
|
|
8683
8683
|
import { link, lstat as lstat3, mkdir, open as open2, realpath as realpath2, rename, rm, unlink } from "node:fs/promises";
|
|
@@ -9036,7 +9036,7 @@ async function writeFileAtomic(root, relPath, data, { mode = 420 } = {}) {
|
|
|
9036
9036
|
}
|
|
9037
9037
|
var testHooks;
|
|
9038
9038
|
var init_atomic = __esm({
|
|
9039
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9039
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/atomic.mjs"() {
|
|
9040
9040
|
init_errors2();
|
|
9041
9041
|
init_paths();
|
|
9042
9042
|
testHooks = null;
|
|
@@ -9060,7 +9060,7 @@ var init_atomic = __esm({
|
|
|
9060
9060
|
}
|
|
9061
9061
|
});
|
|
9062
9062
|
|
|
9063
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9063
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/token-lock.mjs
|
|
9064
9064
|
import { createHash as createHash4, randomBytes as randomBytes2 } from "node:crypto";
|
|
9065
9065
|
import { constants as FS_CONSTANTS3 } from "node:fs";
|
|
9066
9066
|
import { lstat as lstat4, open as open3, realpath as realpath3, unlink as unlink2 } from "node:fs/promises";
|
|
@@ -9218,7 +9218,7 @@ async function recoverFilesystemLock(root, relPath, { expectedTokenDigest, confi
|
|
|
9218
9218
|
}
|
|
9219
9219
|
var TOKEN_PATTERN;
|
|
9220
9220
|
var init_token_lock = __esm({
|
|
9221
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9221
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/token-lock.mjs"() {
|
|
9222
9222
|
init_errors2();
|
|
9223
9223
|
init_atomic();
|
|
9224
9224
|
init_paths();
|
|
@@ -9237,7 +9237,7 @@ var init_token_lock = __esm({
|
|
|
9237
9237
|
}
|
|
9238
9238
|
});
|
|
9239
9239
|
|
|
9240
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9240
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/baseline.mjs
|
|
9241
9241
|
import { createHash as createHash5 } from "node:crypto";
|
|
9242
9242
|
import { lstat as lstat5, mkdir as mkdir2, mkdtemp, readdir, readFile as readFile2, rm as rm2, writeFile } from "node:fs/promises";
|
|
9243
9243
|
import os from "node:os";
|
|
@@ -9383,7 +9383,7 @@ async function materializeBaseline({ baselineDir, baselineDigest, prefix = "sf-b
|
|
|
9383
9383
|
}
|
|
9384
9384
|
var TEST_HOOKS, DIGEST_PATTERN;
|
|
9385
9385
|
var init_baseline = __esm({
|
|
9386
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9386
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/baseline.mjs"() {
|
|
9387
9387
|
init_errors2();
|
|
9388
9388
|
TEST_HOOKS = { beforePostDigest: void 0 };
|
|
9389
9389
|
__name(runTestHook2, "runTestHook");
|
|
@@ -9395,7 +9395,7 @@ var init_baseline = __esm({
|
|
|
9395
9395
|
}
|
|
9396
9396
|
});
|
|
9397
9397
|
|
|
9398
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9398
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/workspace.mjs
|
|
9399
9399
|
import { mkdtemp as mkdtemp2, rm as rm3 } from "node:fs/promises";
|
|
9400
9400
|
import os2 from "node:os";
|
|
9401
9401
|
import path6 from "node:path";
|
|
@@ -9427,7 +9427,7 @@ async function withTemporaryWorkspace(fn, options) {
|
|
|
9427
9427
|
}
|
|
9428
9428
|
var TemporaryWorkspace;
|
|
9429
9429
|
var init_workspace = __esm({
|
|
9430
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9430
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/workspace.mjs"() {
|
|
9431
9431
|
init_baseline();
|
|
9432
9432
|
init_errors2();
|
|
9433
9433
|
init_paths();
|
|
@@ -9549,28 +9549,28 @@ var init_workspace = __esm({
|
|
|
9549
9549
|
}
|
|
9550
9550
|
});
|
|
9551
9551
|
|
|
9552
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9552
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/chokepoint.mjs
|
|
9553
9553
|
import path7 from "node:path";
|
|
9554
9554
|
var init_chokepoint = __esm({
|
|
9555
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9555
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/chokepoint.mjs"() {
|
|
9556
9556
|
init_errors2();
|
|
9557
9557
|
init_paths();
|
|
9558
9558
|
}
|
|
9559
9559
|
});
|
|
9560
9560
|
|
|
9561
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9561
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/validation.mjs
|
|
9562
9562
|
var init_validation = __esm({
|
|
9563
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9563
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/validation.mjs"() {
|
|
9564
9564
|
init_src();
|
|
9565
9565
|
init_errors2();
|
|
9566
9566
|
}
|
|
9567
9567
|
});
|
|
9568
9568
|
|
|
9569
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9569
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/surface-scan.mjs
|
|
9570
9570
|
import path8 from "node:path";
|
|
9571
9571
|
var POLICY_SCHEMA_ID;
|
|
9572
9572
|
var init_surface_scan = __esm({
|
|
9573
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9573
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/surface-scan.mjs"() {
|
|
9574
9574
|
init_src();
|
|
9575
9575
|
init_errors2();
|
|
9576
9576
|
init_paths();
|
|
@@ -9579,12 +9579,12 @@ var init_surface_scan = __esm({
|
|
|
9579
9579
|
}
|
|
9580
9580
|
});
|
|
9581
9581
|
|
|
9582
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9582
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/declared-read-surface.mjs
|
|
9583
9583
|
import path9 from "node:path";
|
|
9584
9584
|
import { readFileSync as readFileSync8, readdirSync as readdirSync2, statSync } from "node:fs";
|
|
9585
9585
|
var WRITE_FS_VERBS, WRITE_FS_APIS, DECLARED_READ_SURFACE_RULES, RESULT_GUARANTEES;
|
|
9586
9586
|
var init_declared_read_surface = __esm({
|
|
9587
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
9587
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/declared-read-surface.mjs"() {
|
|
9588
9588
|
init_errors2();
|
|
9589
9589
|
WRITE_FS_VERBS = ["writeFile", "appendFile", "mkdir", "rm", "unlink", "rename", "copyFile"];
|
|
9590
9590
|
WRITE_FS_APIS = WRITE_FS_VERBS.map((verb) => `${verb}Sync`).concat([
|
|
@@ -31718,7 +31718,7 @@ var require_dist2 = __commonJS({
|
|
|
31718
31718
|
}
|
|
31719
31719
|
});
|
|
31720
31720
|
|
|
31721
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
31721
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/structured-scan.mjs
|
|
31722
31722
|
import { mkdtempSync, rmSync, writeFileSync, lstatSync, readlinkSync } from "node:fs";
|
|
31723
31723
|
import os3 from "node:os";
|
|
31724
31724
|
import path10 from "node:path";
|
|
@@ -32006,7 +32006,7 @@ function scanTreeJsonContent(ctx, relPath, bytes) {
|
|
|
32006
32006
|
}
|
|
32007
32007
|
var import_ipaddr, import_lockfile, import_yaml, POLICY_SCHEMA_ID2, STRUCTURED_SCAN_RULES, URL_PATTERN, EMAIL_PATTERN, HOST_KEY_STRING_PATTERN, HOST_KEY_ARRAY_PATTERN, QUOTED_TOKEN_PATTERN, NPM_SCOPE_PATTERN, IP_RUN_PATTERN, IPV4_SHAPED_PATTERN, HEX_GROUP_SEGMENT_PATTERN, ALPHA_SHORT_SEGMENT_PATTERN, HEX_LETTER_PATTERN, DECIMAL_DIGIT_PATTERN, LOCKFILE_URL_REFERENCE_PATTERN, LOCAL_LOCKFILE_REF_PREFIXES, BUILTIN_ADAPTERS;
|
|
32008
32008
|
var init_structured_scan = __esm({
|
|
32009
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32009
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/structured-scan.mjs"() {
|
|
32010
32010
|
init_src();
|
|
32011
32011
|
import_ipaddr = __toESM(require_ipaddr(), 1);
|
|
32012
32012
|
import_lockfile = __toESM(require_lib18(), 1);
|
|
@@ -32062,10 +32062,10 @@ var init_structured_scan = __esm({
|
|
|
32062
32062
|
}
|
|
32063
32063
|
});
|
|
32064
32064
|
|
|
32065
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32065
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/token-estimate.mjs
|
|
32066
32066
|
var GUARANTEES, TOKEN_GUARANTEES, CJK_CODE_POINT_RANGES;
|
|
32067
32067
|
var init_token_estimate = __esm({
|
|
32068
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32068
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/token-estimate.mjs"() {
|
|
32069
32069
|
GUARANTEES = Object.freeze([
|
|
32070
32070
|
"covers-content-text-only",
|
|
32071
32071
|
"no-model-calls",
|
|
@@ -32089,7 +32089,7 @@ var init_token_estimate = __esm({
|
|
|
32089
32089
|
}
|
|
32090
32090
|
});
|
|
32091
32091
|
|
|
32092
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32092
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/state-store.mjs
|
|
32093
32093
|
import { constants as FS_CONSTANTS4 } from "node:fs";
|
|
32094
32094
|
import {
|
|
32095
32095
|
link as link2,
|
|
@@ -32106,7 +32106,7 @@ import path11 from "node:path";
|
|
|
32106
32106
|
import process4 from "node:process";
|
|
32107
32107
|
var STATE_GENESIS_DIGEST, EVENT_SCHEMA_ID, SNAPSHOT_SCHEMA_ID;
|
|
32108
32108
|
var init_state_store = __esm({
|
|
32109
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32109
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/state-store.mjs"() {
|
|
32110
32110
|
init_src();
|
|
32111
32111
|
init_errors2();
|
|
32112
32112
|
init_validation();
|
|
@@ -32116,22 +32116,22 @@ var init_state_store = __esm({
|
|
|
32116
32116
|
}
|
|
32117
32117
|
});
|
|
32118
32118
|
|
|
32119
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32119
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/budget-guard.mjs
|
|
32120
32120
|
var init_budget_guard = __esm({
|
|
32121
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32121
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/budget-guard.mjs"() {
|
|
32122
32122
|
init_errors2();
|
|
32123
32123
|
init_token_lock();
|
|
32124
32124
|
init_state_store();
|
|
32125
32125
|
}
|
|
32126
32126
|
});
|
|
32127
32127
|
|
|
32128
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32128
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/supervise-process.mjs
|
|
32129
32129
|
import { spawn as nodeSpawn } from "node:child_process";
|
|
32130
32130
|
import { existsSync, readFileSync as readFileSync9, statSync as statSync2, writeFileSync as writeFileSync2, renameSync } from "node:fs";
|
|
32131
32131
|
import path12 from "node:path";
|
|
32132
32132
|
var WATCHDOG_REASONS, TERMINATION_REASONS, PROCESS_STATUSES, ENVELOPE_GUARANTEES, TIMEOUT_POLICY_FIELDS, defaultDeps, WATCHDOG_TO_TERMINATION;
|
|
32133
32133
|
var init_supervise_process = __esm({
|
|
32134
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32134
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/supervise-process.mjs"() {
|
|
32135
32135
|
init_errors2();
|
|
32136
32136
|
WATCHDOG_REASONS = Object.freeze([
|
|
32137
32137
|
"max_seconds",
|
|
@@ -32228,7 +32228,7 @@ var init_supervise_process = __esm({
|
|
|
32228
32228
|
}
|
|
32229
32229
|
});
|
|
32230
32230
|
|
|
32231
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32231
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/request.mjs
|
|
32232
32232
|
function schemaIdFor(objectName) {
|
|
32233
32233
|
const registration = findSchemaByObject(objectName);
|
|
32234
32234
|
if (!registration) {
|
|
@@ -32241,7 +32241,7 @@ function schemaIdFor(objectName) {
|
|
|
32241
32241
|
}
|
|
32242
32242
|
var REQUEST_ENVELOPE, REQUEST_SCHEMA_ID, RESULT_SCHEMA_ID;
|
|
32243
32243
|
var init_request = __esm({
|
|
32244
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32244
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/request.mjs"() {
|
|
32245
32245
|
init_src();
|
|
32246
32246
|
init_errors2();
|
|
32247
32247
|
init_validation();
|
|
@@ -32255,14 +32255,14 @@ var init_request = __esm({
|
|
|
32255
32255
|
}
|
|
32256
32256
|
});
|
|
32257
32257
|
|
|
32258
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32258
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/host.mjs
|
|
32259
32259
|
import { constants } from "node:fs";
|
|
32260
32260
|
import { access, lstat as lstat7, mkdtemp as mkdtemp3, readFile as readFile3, realpath as realpath5, rename as rename3, rm as rm4 } from "node:fs/promises";
|
|
32261
32261
|
import path13 from "node:path";
|
|
32262
32262
|
import { spawnSync } from "node:child_process";
|
|
32263
32263
|
var SCHEMAS;
|
|
32264
32264
|
var init_host = __esm({
|
|
32265
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32265
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/host.mjs"() {
|
|
32266
32266
|
init_src();
|
|
32267
32267
|
init_atomic();
|
|
32268
32268
|
init_closure();
|
|
@@ -32276,17 +32276,84 @@ var init_host = __esm({
|
|
|
32276
32276
|
}
|
|
32277
32277
|
});
|
|
32278
32278
|
|
|
32279
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32280
|
-
|
|
32281
|
-
var
|
|
32279
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/package.json
|
|
32280
|
+
var package_default;
|
|
32281
|
+
var init_package = __esm({
|
|
32282
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/package.json"() {
|
|
32283
|
+
package_default = {
|
|
32284
|
+
"//": '~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".',
|
|
32285
|
+
author: "\u5E7F\u5DDE\u5E02\u98CE\u8377\u79D1\u6280\u6709\u9650\u516C\u53F8",
|
|
32286
|
+
bin: {
|
|
32287
|
+
"skill-family-token-estimate": "./src/token-estimate-cli.mjs"
|
|
32288
|
+
},
|
|
32289
|
+
bugs: {
|
|
32290
|
+
url: "https://github.com/ifoohoo/skill-family-harness-node/issues"
|
|
32291
|
+
},
|
|
32292
|
+
dependencies: {
|
|
32293
|
+
"@pnpm/lockfile.fs": "1001.1.35",
|
|
32294
|
+
"ipaddr.js": "2.5.0",
|
|
32295
|
+
"skill-family-contracts": "0.8.1",
|
|
32296
|
+
yaml: "2.9.0"
|
|
32297
|
+
},
|
|
32298
|
+
description: "Thin Node.js mechanism runtime for Skill Family engineering contracts.",
|
|
32299
|
+
engines: {
|
|
32300
|
+
node: ">=22.22.2 <23",
|
|
32301
|
+
pnpm: "10.30.0"
|
|
32302
|
+
},
|
|
32303
|
+
exports: {
|
|
32304
|
+
".": "./src/index.mjs",
|
|
32305
|
+
"./candidate/quickstart-profile": "./candidate/quickstart-profile.mjs",
|
|
32306
|
+
"./candidate/rename-directory-no-replace": "./candidate/rename-directory-no-replace/rename-directory-no-replace.mjs"
|
|
32307
|
+
},
|
|
32308
|
+
files: [
|
|
32309
|
+
"src",
|
|
32310
|
+
"candidate",
|
|
32311
|
+
"release-notes",
|
|
32312
|
+
"README.md",
|
|
32313
|
+
"README.zh-CN.md",
|
|
32314
|
+
"CHANGELOG.md",
|
|
32315
|
+
"CHANGELOG.zh-CN.md",
|
|
32316
|
+
"NOTICE",
|
|
32317
|
+
"SECURITY.md",
|
|
32318
|
+
"CONTRIBUTING.md",
|
|
32319
|
+
"CODE_OF_CONDUCT.md"
|
|
32320
|
+
],
|
|
32321
|
+
homepage: "https://github.com/ifoohoo/skill-family-harness-node",
|
|
32322
|
+
license: "Apache-2.0",
|
|
32323
|
+
name: "skill-family-harness-node",
|
|
32324
|
+
private: false,
|
|
32325
|
+
repository: {
|
|
32326
|
+
type: "git",
|
|
32327
|
+
url: "https://github.com/ifoohoo/skill-family-harness-node.git"
|
|
32328
|
+
},
|
|
32329
|
+
type: "module",
|
|
32330
|
+
version: "0.8.1",
|
|
32331
|
+
scripts: {
|
|
32332
|
+
check: "node --test",
|
|
32333
|
+
test: "node --test"
|
|
32334
|
+
}
|
|
32335
|
+
};
|
|
32336
|
+
}
|
|
32337
|
+
});
|
|
32338
|
+
|
|
32339
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/report-version.mjs
|
|
32340
|
+
var REPORT_RENDERER_VERSION;
|
|
32341
|
+
var init_report_version = __esm({
|
|
32342
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/report-version.mjs"() {
|
|
32343
|
+
init_package();
|
|
32344
|
+
REPORT_RENDERER_VERSION = package_default.version;
|
|
32345
|
+
}
|
|
32346
|
+
});
|
|
32347
|
+
|
|
32348
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/report.mjs
|
|
32349
|
+
var SUPPORTED_REPORT_LOCALES, EXECUTION_STATUSES, REPORT_AUDIENCES, RESULT_STATE_EXECUTION_STATUSES, REPORT_STYLE_RULES, TRANSLATESE_ZH, TRANSLATESE_EN, UNEXPLAINED_TERMS, REPORT_MODEL_SCHEMA_ID, REPORT_BINDING_SCHEMA_ID, OPERATION_RESULT_SCHEMA_ID, TEXT;
|
|
32282
32350
|
var init_report = __esm({
|
|
32283
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32351
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/report.mjs"() {
|
|
32284
32352
|
init_src();
|
|
32285
32353
|
init_closure();
|
|
32286
32354
|
init_errors2();
|
|
32355
|
+
init_report_version();
|
|
32287
32356
|
init_validation();
|
|
32288
|
-
PACKAGE_META = Object.freeze({ "name": "release-skill", "version": "0.7.1" });
|
|
32289
|
-
REPORT_RENDERER_VERSION = PACKAGE_META.version;
|
|
32290
32357
|
SUPPORTED_REPORT_LOCALES = Object.freeze(["zh-CN", "en-US"]);
|
|
32291
32358
|
EXECUTION_STATUSES = Object.freeze([
|
|
32292
32359
|
"SUCCEEDED",
|
|
@@ -32399,10 +32466,10 @@ var init_report = __esm({
|
|
|
32399
32466
|
}
|
|
32400
32467
|
});
|
|
32401
32468
|
|
|
32402
|
-
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32469
|
+
// ../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/index.mjs
|
|
32403
32470
|
var HARNESS_CAPABILITIES, HARNESS_EXCLUSIONS;
|
|
32404
32471
|
var init_src2 = __esm({
|
|
32405
|
-
"../../node_modules/.pnpm/skill-family-harness-node@0.8.
|
|
32472
|
+
"../../node_modules/.pnpm/skill-family-harness-node@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-harness-node/src/index.mjs"() {
|
|
32406
32473
|
init_errors2();
|
|
32407
32474
|
init_paths();
|
|
32408
32475
|
init_strict_read();
|
|
@@ -33272,7 +33339,7 @@ var init_foundation_inflight = __esm({
|
|
|
33272
33339
|
|
|
33273
33340
|
// src/artifacts/project-lock.mjs
|
|
33274
33341
|
import { mkdir as mkdir4, writeFile as writeFile2, lstat as lstat8, open as open5 } from "node:fs/promises";
|
|
33275
|
-
import { readFileSync as
|
|
33342
|
+
import { readFileSync as readFileSync10 } from "node:fs";
|
|
33276
33343
|
import { join } from "node:path";
|
|
33277
33344
|
import { hostname } from "node:os";
|
|
33278
33345
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
@@ -33290,7 +33357,7 @@ function buildOwner(command2, clock) {
|
|
|
33290
33357
|
}
|
|
33291
33358
|
function getBootId() {
|
|
33292
33359
|
try {
|
|
33293
|
-
return
|
|
33360
|
+
return readFileSync10("/proc/sys/kernel/random/boot_id", "utf8").trim();
|
|
33294
33361
|
} catch {
|
|
33295
33362
|
return `pid-${process.pid}-uptime-${Math.floor(process.uptime())}`;
|
|
33296
33363
|
}
|
|
@@ -33964,7 +34031,7 @@ var init_pkg_root = __esm({
|
|
|
33964
34031
|
});
|
|
33965
34032
|
|
|
33966
34033
|
// src/core/trusted-resource.mjs
|
|
33967
|
-
import { lstatSync as lstatSync2, readFileSync as
|
|
34034
|
+
import { lstatSync as lstatSync2, readFileSync as readFileSync11, realpathSync } from "node:fs";
|
|
33968
34035
|
import { lstat as lstat9 } from "node:fs/promises";
|
|
33969
34036
|
import { isAbsolute, relative, resolve as resolve2, sep } from "node:path";
|
|
33970
34037
|
function fail(code, resource, reason) {
|
|
@@ -34039,7 +34106,7 @@ function readTrustedPackageResourceSync(resource, { code = CONFIG_INVALID } = {}
|
|
|
34039
34106
|
}
|
|
34040
34107
|
assertPhysicalContainment(physicalRoot, physicalPath, resource, code);
|
|
34041
34108
|
try {
|
|
34042
|
-
return
|
|
34109
|
+
return readFileSync11(physicalPath);
|
|
34043
34110
|
} catch {
|
|
34044
34111
|
fail(code, resource, "READ_FAILED");
|
|
34045
34112
|
}
|
|
@@ -38632,7 +38699,7 @@ import { createRequire } from "node:module";
|
|
|
38632
38699
|
import { dirname as dirname4, resolve as resolve9 } from "node:path";
|
|
38633
38700
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
38634
38701
|
import { realpath as realpath8 } from "node:fs/promises";
|
|
38635
|
-
import { readFileSync as
|
|
38702
|
+
import { readFileSync as readFileSync12, realpathSync as realpathSync2, lstatSync as lstatSync3 } from "node:fs";
|
|
38636
38703
|
import { createHash as createHash7 } from "node:crypto";
|
|
38637
38704
|
function failPrebuildManifest(reason, message = "prebuilds manifest not readable") {
|
|
38638
38705
|
throw new ReleaseError(
|
|
@@ -38672,7 +38739,7 @@ function readTrustedPrebuildManifest() {
|
|
|
38672
38739
|
);
|
|
38673
38740
|
}
|
|
38674
38741
|
try {
|
|
38675
|
-
return JSON.parse(
|
|
38742
|
+
return JSON.parse(readFileSync12(physicalManifest, "utf8"));
|
|
38676
38743
|
} catch {
|
|
38677
38744
|
failPrebuildManifest("READ_FAILED");
|
|
38678
38745
|
}
|
|
@@ -38737,7 +38804,7 @@ function validateManifestEntry(entry, key) {
|
|
|
38737
38804
|
}
|
|
38738
38805
|
function requireAddon(addonPath) {
|
|
38739
38806
|
try {
|
|
38740
|
-
const require2 = createRequire(resolve9(PKG_ROOT2, "
|
|
38807
|
+
const require2 = createRequire(resolve9(PKG_ROOT2, "bin/release-skill.mjs"));
|
|
38741
38808
|
return require2(addonPath);
|
|
38742
38809
|
} catch (err) {
|
|
38743
38810
|
throw new ReleaseError(SAFE_WRITE_UNAVAILABLE, sanitizeError(err));
|
|
@@ -38787,7 +38854,7 @@ function readStableAddon(options = {}) {
|
|
|
38787
38854
|
if (!physicalAddonFile.startsWith(nativeBaseDir + "/") && physicalAddonFile !== nativeBaseDir) {
|
|
38788
38855
|
throw new ReleaseError(SAFE_WRITE_UNAVAILABLE, "prebuilt addon physical path escapes base directory");
|
|
38789
38856
|
}
|
|
38790
|
-
const readFn = hooks.readFileSync ||
|
|
38857
|
+
const readFn = hooks.readFileSync || readFileSync12;
|
|
38791
38858
|
let data;
|
|
38792
38859
|
try {
|
|
38793
38860
|
data = readFn(physicalAddonFile);
|
|
@@ -58983,15 +59050,15 @@ var require_polyfill = __commonJS({
|
|
|
58983
59050
|
utimes
|
|
58984
59051
|
} = __require("fs/promises");
|
|
58985
59052
|
var {
|
|
58986
|
-
dirname:
|
|
59053
|
+
dirname: dirname23,
|
|
58987
59054
|
isAbsolute: isAbsolute26,
|
|
58988
|
-
join:
|
|
59055
|
+
join: join43,
|
|
58989
59056
|
parse: parse2,
|
|
58990
59057
|
resolve: resolve39,
|
|
58991
59058
|
sep: sep9,
|
|
58992
59059
|
toNamespacedPath
|
|
58993
59060
|
} = __require("path");
|
|
58994
|
-
var { fileURLToPath:
|
|
59061
|
+
var { fileURLToPath: fileURLToPath4 } = __require("url");
|
|
58995
59062
|
var defaultOptions = {
|
|
58996
59063
|
dereference: false,
|
|
58997
59064
|
errorOnExist: false,
|
|
@@ -59012,7 +59079,7 @@ var require_polyfill = __commonJS({
|
|
|
59012
59079
|
}
|
|
59013
59080
|
__name(cp3, "cp");
|
|
59014
59081
|
function getValidatedPath(fileURLOrPath) {
|
|
59015
|
-
const path28 = fileURLOrPath != null && fileURLOrPath.href && fileURLOrPath.origin ?
|
|
59082
|
+
const path28 = fileURLOrPath != null && fileURLOrPath.href && fileURLOrPath.origin ? fileURLToPath4(fileURLOrPath) : fileURLOrPath;
|
|
59016
59083
|
return path28;
|
|
59017
59084
|
}
|
|
59018
59085
|
__name(getValidatedPath, "getValidatedPath");
|
|
@@ -59087,7 +59154,7 @@ var require_polyfill = __commonJS({
|
|
|
59087
59154
|
}
|
|
59088
59155
|
__name(getStats, "getStats");
|
|
59089
59156
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
59090
|
-
const destParent =
|
|
59157
|
+
const destParent = dirname23(dest);
|
|
59091
59158
|
const dirExists = await pathExists2(destParent);
|
|
59092
59159
|
if (dirExists) {
|
|
59093
59160
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -59105,8 +59172,8 @@ var require_polyfill = __commonJS({
|
|
|
59105
59172
|
}
|
|
59106
59173
|
__name(pathExists2, "pathExists");
|
|
59107
59174
|
async function checkParentPaths(src, srcStat, dest) {
|
|
59108
|
-
const srcParent = resolve39(
|
|
59109
|
-
const destParent = resolve39(
|
|
59175
|
+
const srcParent = resolve39(dirname23(src));
|
|
59176
|
+
const destParent = resolve39(dirname23(dest));
|
|
59110
59177
|
if (destParent === srcParent || destParent === parse2(destParent).root) {
|
|
59111
59178
|
return;
|
|
59112
59179
|
}
|
|
@@ -59266,8 +59333,8 @@ var require_polyfill = __commonJS({
|
|
|
59266
59333
|
const dir = await readdir26(src);
|
|
59267
59334
|
for (let i = 0; i < dir.length; i++) {
|
|
59268
59335
|
const item = dir[i];
|
|
59269
|
-
const srcItem =
|
|
59270
|
-
const destItem =
|
|
59336
|
+
const srcItem = join43(src, item);
|
|
59337
|
+
const destItem = join43(dest, item);
|
|
59271
59338
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
59272
59339
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
59273
59340
|
}
|
|
@@ -59276,7 +59343,7 @@ var require_polyfill = __commonJS({
|
|
|
59276
59343
|
async function onLink(destStat, src, dest) {
|
|
59277
59344
|
let resolvedSrc = await readlink2(src);
|
|
59278
59345
|
if (!isAbsolute26(resolvedSrc)) {
|
|
59279
|
-
resolvedSrc = resolve39(
|
|
59346
|
+
resolvedSrc = resolve39(dirname23(src), resolvedSrc);
|
|
59280
59347
|
}
|
|
59281
59348
|
if (!destStat) {
|
|
59282
59349
|
return symlink(resolvedSrc, dest);
|
|
@@ -59291,7 +59358,7 @@ var require_polyfill = __commonJS({
|
|
|
59291
59358
|
throw err;
|
|
59292
59359
|
}
|
|
59293
59360
|
if (!isAbsolute26(resolvedDest)) {
|
|
59294
|
-
resolvedDest = resolve39(
|
|
59361
|
+
resolvedDest = resolve39(dirname23(dest), resolvedDest);
|
|
59295
59362
|
}
|
|
59296
59363
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
59297
59364
|
throw new ERR_FS_CP_EINVAL({
|
|
@@ -59343,7 +59410,7 @@ var require_cp = __commonJS({
|
|
|
59343
59410
|
// ../../node_modules/.pnpm/@npmcli+fs@4.0.0/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
59344
59411
|
var require_with_temp_dir = __commonJS({
|
|
59345
59412
|
"../../node_modules/.pnpm/@npmcli+fs@4.0.0/node_modules/@npmcli/fs/lib/with-temp-dir.js"(exports, module) {
|
|
59346
|
-
var { join:
|
|
59413
|
+
var { join: join43, sep: sep9 } = __require("path");
|
|
59347
59414
|
var getOptions = require_get_options();
|
|
59348
59415
|
var { mkdir: mkdir31, mkdtemp: mkdtemp14, rm: rm20 } = __require("fs/promises");
|
|
59349
59416
|
var withTempDir = /* @__PURE__ */ __name(async (root, fn, opts) => {
|
|
@@ -59351,7 +59418,7 @@ var require_with_temp_dir = __commonJS({
|
|
|
59351
59418
|
copy: ["tmpPrefix"]
|
|
59352
59419
|
});
|
|
59353
59420
|
await mkdir31(root, { recursive: true });
|
|
59354
|
-
const target = await mkdtemp14(
|
|
59421
|
+
const target = await mkdtemp14(join43(`${root}${sep9}`, options.tmpPrefix || ""));
|
|
59355
59422
|
let err;
|
|
59356
59423
|
let result;
|
|
59357
59424
|
try {
|
|
@@ -59376,13 +59443,13 @@ var require_with_temp_dir = __commonJS({
|
|
|
59376
59443
|
var require_readdir_scoped = __commonJS({
|
|
59377
59444
|
"../../node_modules/.pnpm/@npmcli+fs@4.0.0/node_modules/@npmcli/fs/lib/readdir-scoped.js"(exports, module) {
|
|
59378
59445
|
var { readdir: readdir26 } = __require("fs/promises");
|
|
59379
|
-
var { join:
|
|
59446
|
+
var { join: join43 } = __require("path");
|
|
59380
59447
|
var readdirScoped = /* @__PURE__ */ __name(async (dir) => {
|
|
59381
59448
|
const results = [];
|
|
59382
59449
|
for (const item of await readdir26(dir)) {
|
|
59383
59450
|
if (item.startsWith("@")) {
|
|
59384
|
-
for (const scopedItem of await readdir26(
|
|
59385
|
-
results.push(
|
|
59451
|
+
for (const scopedItem of await readdir26(join43(dir, item))) {
|
|
59452
|
+
results.push(join43(item, scopedItem));
|
|
59386
59453
|
}
|
|
59387
59454
|
} else {
|
|
59388
59455
|
results.push(item);
|
|
@@ -59397,7 +59464,7 @@ var require_readdir_scoped = __commonJS({
|
|
|
59397
59464
|
// ../../node_modules/.pnpm/@npmcli+fs@4.0.0/node_modules/@npmcli/fs/lib/move-file.js
|
|
59398
59465
|
var require_move_file = __commonJS({
|
|
59399
59466
|
"../../node_modules/.pnpm/@npmcli+fs@4.0.0/node_modules/@npmcli/fs/lib/move-file.js"(exports, module) {
|
|
59400
|
-
var { dirname:
|
|
59467
|
+
var { dirname: dirname23, join: join43, resolve: resolve39, relative: relative29, isAbsolute: isAbsolute26 } = __require("path");
|
|
59401
59468
|
var fs = __require("fs/promises");
|
|
59402
59469
|
var pathExists2 = /* @__PURE__ */ __name(async (path28) => {
|
|
59403
59470
|
try {
|
|
@@ -59418,7 +59485,7 @@ var require_move_file = __commonJS({
|
|
|
59418
59485
|
if (!options.overwrite && await pathExists2(destination)) {
|
|
59419
59486
|
throw new Error(`The destination file exists: ${destination}`);
|
|
59420
59487
|
}
|
|
59421
|
-
await fs.mkdir(
|
|
59488
|
+
await fs.mkdir(dirname23(destination), { recursive: true });
|
|
59422
59489
|
try {
|
|
59423
59490
|
await fs.rename(source, destination);
|
|
59424
59491
|
} catch (error) {
|
|
@@ -59427,7 +59494,7 @@ var require_move_file = __commonJS({
|
|
|
59427
59494
|
if (sourceStat.isDirectory()) {
|
|
59428
59495
|
const files = await fs.readdir(source);
|
|
59429
59496
|
await Promise.all(files.map(
|
|
59430
|
-
(file) => moveFile(
|
|
59497
|
+
(file) => moveFile(join43(source, file), join43(destination, file), options, false, symlinks)
|
|
59431
59498
|
));
|
|
59432
59499
|
} else if (sourceStat.isSymbolicLink()) {
|
|
59433
59500
|
symlinks.push({ source, destination });
|
|
@@ -59446,7 +59513,7 @@ var require_move_file = __commonJS({
|
|
|
59446
59513
|
}
|
|
59447
59514
|
let targetStat = "file";
|
|
59448
59515
|
try {
|
|
59449
|
-
targetStat = await fs.stat(resolve39(
|
|
59516
|
+
targetStat = await fs.stat(resolve39(dirname23(symSource), target));
|
|
59450
59517
|
if (targetStat.isDirectory()) {
|
|
59451
59518
|
targetStat = "junction";
|
|
59452
59519
|
}
|
|
@@ -74680,7 +74747,7 @@ var require_index_min = __commonJS({
|
|
|
74680
74747
|
var require_lib35 = __commonJS({
|
|
74681
74748
|
"../../node_modules/.pnpm/which@5.0.0/node_modules/which/lib/index.js"(exports, module) {
|
|
74682
74749
|
var { isexe, sync: isexeSync } = require_index_min();
|
|
74683
|
-
var { join:
|
|
74750
|
+
var { join: join43, delimiter, sep: sep9, posix: posix3 } = __require("path");
|
|
74684
74751
|
var isWindows = process.platform === "win32";
|
|
74685
74752
|
var rSlash = new RegExp(`[${posix3.sep}${sep9 === posix3.sep ? "" : sep9}]`.replace(/(\\)/g, "\\$1"));
|
|
74686
74753
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
@@ -74709,7 +74776,7 @@ var require_lib35 = __commonJS({
|
|
|
74709
74776
|
var getPathPart = /* @__PURE__ */ __name((raw, cmd) => {
|
|
74710
74777
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
74711
74778
|
const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
|
|
74712
|
-
return prefix +
|
|
74779
|
+
return prefix + join43(pathPart, cmd);
|
|
74713
74780
|
}, "getPathPart");
|
|
74714
74781
|
var which = /* @__PURE__ */ __name(async (cmd, opt = {}) => {
|
|
74715
74782
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -75848,7 +75915,7 @@ var require_lib37 = __commonJS({
|
|
|
75848
75915
|
// ../../node_modules/.pnpm/npm-normalize-package-bin@4.0.0/node_modules/npm-normalize-package-bin/lib/index.js
|
|
75849
75916
|
var require_lib38 = __commonJS({
|
|
75850
75917
|
"../../node_modules/.pnpm/npm-normalize-package-bin@4.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports, module) {
|
|
75851
|
-
var { join:
|
|
75918
|
+
var { join: join43, basename: basename15 } = __require("path");
|
|
75852
75919
|
var normalize4 = /* @__PURE__ */ __name((pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg), "normalize");
|
|
75853
75920
|
var normalizeString = /* @__PURE__ */ __name((pkg) => {
|
|
75854
75921
|
if (!pkg.name) {
|
|
@@ -75873,11 +75940,11 @@ var require_lib38 = __commonJS({
|
|
|
75873
75940
|
const clean = {};
|
|
75874
75941
|
let hasBins = false;
|
|
75875
75942
|
Object.keys(orig).forEach((binKey) => {
|
|
75876
|
-
const base =
|
|
75943
|
+
const base = join43("/", basename15(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
75877
75944
|
if (typeof orig[binKey] !== "string" || !base) {
|
|
75878
75945
|
return;
|
|
75879
75946
|
}
|
|
75880
|
-
const binTarget =
|
|
75947
|
+
const binTarget = join43("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
75881
75948
|
if (!binTarget) {
|
|
75882
75949
|
return;
|
|
75883
75950
|
}
|
|
@@ -76187,13 +76254,13 @@ var require_is = __commonJS({
|
|
|
76187
76254
|
var require_find = __commonJS({
|
|
76188
76255
|
"../../node_modules/.pnpm/@npmcli+git@6.0.3/node_modules/@npmcli/git/lib/find.js"(exports, module) {
|
|
76189
76256
|
var is = require_is();
|
|
76190
|
-
var { dirname:
|
|
76257
|
+
var { dirname: dirname23 } = __require("path");
|
|
76191
76258
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
76192
76259
|
while (true) {
|
|
76193
76260
|
if (await is({ cwd })) {
|
|
76194
76261
|
return cwd;
|
|
76195
76262
|
}
|
|
76196
|
-
const next =
|
|
76263
|
+
const next = dirname23(cwd);
|
|
76197
76264
|
if (cwd === root || cwd === next) {
|
|
76198
76265
|
return null;
|
|
76199
76266
|
}
|
|
@@ -85881,12 +85948,12 @@ var require_url = __commonJS({
|
|
|
85881
85948
|
"../../node_modules/.pnpm/tuf-js@3.1.0/node_modules/tuf-js/dist/utils/url.js"(exports) {
|
|
85882
85949
|
"use strict";
|
|
85883
85950
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
85884
|
-
exports.join =
|
|
85951
|
+
exports.join = join43;
|
|
85885
85952
|
var url_1 = __require("url");
|
|
85886
|
-
function
|
|
85953
|
+
function join43(base, path28) {
|
|
85887
85954
|
return new url_1.URL(ensureTrailingSlash(base) + removeLeadingSlash(path28)).toString();
|
|
85888
85955
|
}
|
|
85889
|
-
__name(
|
|
85956
|
+
__name(join43, "join");
|
|
85890
85957
|
function ensureTrailingSlash(path28) {
|
|
85891
85958
|
return path28.endsWith("/") ? path28 : path28 + "/";
|
|
85892
85959
|
}
|
|
@@ -105358,7 +105425,7 @@ ${registryTokenKey(normalizedRegistry)}=${token}
|
|
|
105358
105425
|
}
|
|
105359
105426
|
});
|
|
105360
105427
|
|
|
105361
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105428
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/errors.mjs
|
|
105362
105429
|
function kitError(kind, message, extraDetails) {
|
|
105363
105430
|
const values = Object.values(KIT_ERROR_KINDS);
|
|
105364
105431
|
if (!values.includes(kind)) {
|
|
@@ -105377,7 +105444,7 @@ function refusalError(refusals, message, extraDetails) {
|
|
|
105377
105444
|
}
|
|
105378
105445
|
var KIT_ERROR_KINDS, KitError, REFUSED_MUTATION_FLAGS;
|
|
105379
105446
|
var init_errors4 = __esm({
|
|
105380
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105447
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/errors.mjs"() {
|
|
105381
105448
|
init_src();
|
|
105382
105449
|
KIT_ERROR_KINDS = Object.freeze({
|
|
105383
105450
|
// scaffold
|
|
@@ -105473,13 +105540,13 @@ var init_errors4 = __esm({
|
|
|
105473
105540
|
}
|
|
105474
105541
|
});
|
|
105475
105542
|
|
|
105476
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105543
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/gitprobe.mjs
|
|
105477
105544
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
105478
105545
|
import { readFile as readFile30 } from "node:fs/promises";
|
|
105479
105546
|
import path16 from "node:path";
|
|
105480
105547
|
var GIT_STATUS_ARGS, GIT_LS_FILES_ARGS, GIT_CHECK_IGNORE_ARGS, GIT_READ_ONLY_ALLOWLIST;
|
|
105481
105548
|
var init_gitprobe = __esm({
|
|
105482
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105549
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/gitprobe.mjs"() {
|
|
105483
105550
|
GIT_STATUS_ARGS = Object.freeze([
|
|
105484
105551
|
"--no-optional-locks",
|
|
105485
105552
|
"-c",
|
|
@@ -105511,28 +105578,28 @@ var init_gitprobe = __esm({
|
|
|
105511
105578
|
}
|
|
105512
105579
|
});
|
|
105513
105580
|
|
|
105514
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105515
|
-
import { readFileSync as
|
|
105581
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/licensing.mjs
|
|
105582
|
+
import { readFileSync as readFileSync13 } from "node:fs";
|
|
105516
105583
|
import path17 from "node:path";
|
|
105517
105584
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
105518
105585
|
var APACHE_2_TEXT, MIT_TEMPLATE;
|
|
105519
105586
|
var init_licensing = __esm({
|
|
105520
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105587
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/licensing.mjs"() {
|
|
105521
105588
|
init_src2();
|
|
105522
105589
|
init_src();
|
|
105523
105590
|
init_errors4();
|
|
105524
|
-
APACHE_2_TEXT =
|
|
105591
|
+
APACHE_2_TEXT = readFileSync13(
|
|
105525
105592
|
new URL("./license-texts/Apache-2.0.txt", import.meta.url),
|
|
105526
105593
|
"utf8"
|
|
105527
105594
|
);
|
|
105528
|
-
MIT_TEMPLATE =
|
|
105595
|
+
MIT_TEMPLATE = readFileSync13(
|
|
105529
105596
|
new URL("./license-texts/MIT.txt", import.meta.url),
|
|
105530
105597
|
"utf8"
|
|
105531
105598
|
);
|
|
105532
105599
|
}
|
|
105533
105600
|
});
|
|
105534
105601
|
|
|
105535
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105602
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/workspace.mjs
|
|
105536
105603
|
import { lstat as lstat25, readdir as readdir17, readFile as readFile31, stat as stat9 } from "node:fs/promises";
|
|
105537
105604
|
import path18 from "node:path";
|
|
105538
105605
|
async function resolveTargetRoot(rootInput) {
|
|
@@ -105685,7 +105752,7 @@ async function loadTargetFacts(root) {
|
|
|
105685
105752
|
}
|
|
105686
105753
|
var OPAQUE_DIRECTORIES, DEFAULT_HANDWRITTEN_PATTERNS;
|
|
105687
105754
|
var init_workspace2 = __esm({
|
|
105688
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105755
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/workspace.mjs"() {
|
|
105689
105756
|
init_errors4();
|
|
105690
105757
|
OPAQUE_DIRECTORIES = Object.freeze([".git", "node_modules"]);
|
|
105691
105758
|
DEFAULT_HANDWRITTEN_PATTERNS = Object.freeze([
|
|
@@ -105711,12 +105778,12 @@ var init_workspace2 = __esm({
|
|
|
105711
105778
|
}
|
|
105712
105779
|
});
|
|
105713
105780
|
|
|
105714
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105781
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/migration.mjs
|
|
105715
105782
|
import { lstat as lstat26, readFile as readFile32 } from "node:fs/promises";
|
|
105716
105783
|
import { TextDecoder as TextDecoder2 } from "node:util";
|
|
105717
105784
|
var UTF8_STRICT_DECODER, MIGRATION_MANIFEST_SCHEMA_ID, MIGRATION_MANIFEST_STATES, EXCEPTION_REQUIRED_FIELDS, MIGRATION_STATES, REQUIRED_FOUNDATION_PACKAGES, VERIFICATION_EVIDENCE_KINDS;
|
|
105718
105785
|
var init_migration = __esm({
|
|
105719
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105786
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/migration.mjs"() {
|
|
105720
105787
|
init_src();
|
|
105721
105788
|
init_src2();
|
|
105722
105789
|
init_workspace2();
|
|
@@ -105755,22 +105822,89 @@ var init_migration = __esm({
|
|
|
105755
105822
|
}
|
|
105756
105823
|
});
|
|
105757
105824
|
|
|
105758
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105759
|
-
|
|
105760
|
-
|
|
105761
|
-
|
|
105762
|
-
|
|
105825
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/package.json
|
|
105826
|
+
var package_default2;
|
|
105827
|
+
var init_package2 = __esm({
|
|
105828
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/package.json"() {
|
|
105829
|
+
package_default2 = {
|
|
105830
|
+
"//": '~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".',
|
|
105831
|
+
author: "\u5E7F\u5DDE\u5E02\u98CE\u8377\u79D1\u6280\u6709\u9650\u516C\u53F8",
|
|
105832
|
+
bin: {
|
|
105833
|
+
"skill-family-kit": "./src/cli.mjs"
|
|
105834
|
+
},
|
|
105835
|
+
bugs: {
|
|
105836
|
+
url: "https://github.com/ifoohoo/skill-family-engineering-kit/issues"
|
|
105837
|
+
},
|
|
105838
|
+
dependencies: {
|
|
105839
|
+
"skill-family-contracts": "0.8.1",
|
|
105840
|
+
"skill-family-harness-node": "0.8.1"
|
|
105841
|
+
},
|
|
105842
|
+
description: "Build-time scaffold, adoption planning, projection, and checks.",
|
|
105843
|
+
engines: {
|
|
105844
|
+
node: ">=22.22.2 <23",
|
|
105845
|
+
pnpm: "10.30.0"
|
|
105846
|
+
},
|
|
105847
|
+
exports: {
|
|
105848
|
+
".": "./src/index.mjs",
|
|
105849
|
+
"./candidate/quickstart-profile": "./candidate/index.mjs",
|
|
105850
|
+
"./profile-spi": "./profile-spi/index.mjs"
|
|
105851
|
+
},
|
|
105852
|
+
files: [
|
|
105853
|
+
"src",
|
|
105854
|
+
"candidate",
|
|
105855
|
+
"data",
|
|
105856
|
+
"profile-spi",
|
|
105857
|
+
"release-notes",
|
|
105858
|
+
"LICENSE",
|
|
105859
|
+
"README.md",
|
|
105860
|
+
"README.zh-CN.md",
|
|
105861
|
+
"CHANGELOG.md",
|
|
105862
|
+
"CHANGELOG.zh-CN.md",
|
|
105863
|
+
"NOTICE",
|
|
105864
|
+
"THIRD_PARTY_NOTICES",
|
|
105865
|
+
"SECURITY.md",
|
|
105866
|
+
"CONTRIBUTING.md",
|
|
105867
|
+
"CODE_OF_CONDUCT.md",
|
|
105868
|
+
"docs"
|
|
105869
|
+
],
|
|
105870
|
+
homepage: "https://github.com/ifoohoo/skill-family-engineering-kit",
|
|
105871
|
+
license: "Apache-2.0",
|
|
105872
|
+
name: "skill-family-engineering-kit",
|
|
105873
|
+
private: false,
|
|
105874
|
+
repository: {
|
|
105875
|
+
type: "git",
|
|
105876
|
+
url: "https://github.com/ifoohoo/skill-family-engineering-kit.git"
|
|
105877
|
+
},
|
|
105878
|
+
type: "module",
|
|
105879
|
+
version: "0.8.1",
|
|
105880
|
+
scripts: {
|
|
105881
|
+
check: "node --test",
|
|
105882
|
+
test: "node --test"
|
|
105883
|
+
}
|
|
105884
|
+
};
|
|
105885
|
+
}
|
|
105886
|
+
});
|
|
105887
|
+
|
|
105888
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/version.mjs
|
|
105889
|
+
var KIT_VERSION;
|
|
105890
|
+
var init_version = __esm({
|
|
105891
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/version.mjs"() {
|
|
105892
|
+
init_package2();
|
|
105893
|
+
KIT_VERSION = package_default2.version;
|
|
105894
|
+
}
|
|
105895
|
+
});
|
|
105896
|
+
|
|
105897
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/skeleton.mjs
|
|
105898
|
+
var KIT_TOOL_NAME, PROJECT_MANIFEST_PATH, MANAGED_LOCK_PATH, PROJECTION_MANIFEST_PATH, IDENTITY_RECORD_PATH, PUBLIC_BOUNDARY_DECLARATION_PATH, PLATFORM_SUBSET_DECLARATION_PATH;
|
|
105763
105899
|
var init_skeleton = __esm({
|
|
105764
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105900
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/skeleton.mjs"() {
|
|
105765
105901
|
init_src();
|
|
105766
105902
|
init_src2();
|
|
105767
105903
|
init_errors4();
|
|
105768
105904
|
init_licensing();
|
|
105769
105905
|
init_migration();
|
|
105906
|
+
init_version();
|
|
105770
105907
|
KIT_TOOL_NAME = "skill-family-engineering-kit";
|
|
105771
|
-
__dirname = dirname16(fileURLToPath4(import.meta.url));
|
|
105772
|
-
_kitPkg = JSON.parse(readFileSync15(join27(__dirname, "..", "package.json"), "utf8"));
|
|
105773
|
-
KIT_VERSION = _kitPkg.version;
|
|
105774
105908
|
PROJECT_MANIFEST_PATH = "skill-family.project-manifest.json";
|
|
105775
105909
|
MANAGED_LOCK_PATH = "skill-family.managed-file-lock.json";
|
|
105776
105910
|
PROJECTION_MANIFEST_PATH = "skill-family.projection.json";
|
|
@@ -105780,12 +105914,12 @@ var init_skeleton = __esm({
|
|
|
105780
105914
|
}
|
|
105781
105915
|
});
|
|
105782
105916
|
|
|
105783
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105917
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/identity-check.mjs
|
|
105784
105918
|
import { readdir as readdir18 } from "node:fs/promises";
|
|
105785
105919
|
import path19 from "node:path";
|
|
105786
105920
|
var IDENTITY_SOURCE_PRIORITY;
|
|
105787
105921
|
var init_identity_check = __esm({
|
|
105788
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105922
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/identity-check.mjs"() {
|
|
105789
105923
|
init_src2();
|
|
105790
105924
|
init_licensing();
|
|
105791
105925
|
IDENTITY_SOURCE_PRIORITY = Object.freeze([
|
|
@@ -105801,11 +105935,11 @@ var init_identity_check = __esm({
|
|
|
105801
105935
|
}
|
|
105802
105936
|
});
|
|
105803
105937
|
|
|
105804
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105805
|
-
import { readFileSync as
|
|
105938
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/check.mjs
|
|
105939
|
+
import { readFileSync as readFileSync14 } from "node:fs";
|
|
105806
105940
|
var CHECK_CLASSES, DOCUMENT_STATES;
|
|
105807
105941
|
var init_check = __esm({
|
|
105808
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105942
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/check.mjs"() {
|
|
105809
105943
|
init_src();
|
|
105810
105944
|
init_src2();
|
|
105811
105945
|
init_errors4();
|
|
@@ -105834,10 +105968,10 @@ var init_check = __esm({
|
|
|
105834
105968
|
}
|
|
105835
105969
|
});
|
|
105836
105970
|
|
|
105837
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105971
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/adopt-plan.mjs
|
|
105838
105972
|
import path20 from "node:path";
|
|
105839
105973
|
var init_adopt_plan = __esm({
|
|
105840
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105974
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/adopt-plan.mjs"() {
|
|
105841
105975
|
init_src();
|
|
105842
105976
|
init_src2();
|
|
105843
105977
|
init_check();
|
|
@@ -105848,12 +105982,12 @@ var init_adopt_plan = __esm({
|
|
|
105848
105982
|
}
|
|
105849
105983
|
});
|
|
105850
105984
|
|
|
105851
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105985
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/core-check.mjs
|
|
105852
105986
|
import { lstat as lstat27 } from "node:fs/promises";
|
|
105853
105987
|
import path21 from "node:path";
|
|
105854
105988
|
var CORE_CHECK_SECURITY_KINDS, CLASS_READ_PATHS;
|
|
105855
105989
|
var init_core_check = __esm({
|
|
105856
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
105990
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/core-check.mjs"() {
|
|
105857
105991
|
init_errors4();
|
|
105858
105992
|
init_check();
|
|
105859
105993
|
init_skeleton();
|
|
@@ -105889,10 +106023,10 @@ var init_core_check = __esm({
|
|
|
105889
106023
|
}
|
|
105890
106024
|
});
|
|
105891
106025
|
|
|
105892
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
106026
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/entry-check.mjs
|
|
105893
106027
|
var ENTRY_FORMS, ENTRY_SIDE_EFFECT_CLASSES;
|
|
105894
106028
|
var init_entry_check = __esm({
|
|
105895
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
106029
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/entry-check.mjs"() {
|
|
105896
106030
|
init_src2();
|
|
105897
106031
|
init_src();
|
|
105898
106032
|
init_errors4();
|
|
@@ -105903,11 +106037,11 @@ var init_entry_check = __esm({
|
|
|
105903
106037
|
}
|
|
105904
106038
|
});
|
|
105905
106039
|
|
|
105906
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
106040
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/relock.mjs
|
|
105907
106041
|
import { lstat as lstat28, readFile as readFile33 } from "node:fs/promises";
|
|
105908
106042
|
import path22 from "node:path";
|
|
105909
106043
|
var init_relock = __esm({
|
|
105910
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
106044
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/relock.mjs"() {
|
|
105911
106045
|
init_src2();
|
|
105912
106046
|
init_errors4();
|
|
105913
106047
|
init_skeleton();
|
|
@@ -105917,7 +106051,7 @@ var init_relock = __esm({
|
|
|
105917
106051
|
}
|
|
105918
106052
|
});
|
|
105919
106053
|
|
|
105920
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
106054
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/projection.mjs
|
|
105921
106055
|
import {
|
|
105922
106056
|
chmod as chmod4,
|
|
105923
106057
|
lstat as lstat29,
|
|
@@ -107256,7 +107390,7 @@ async function runProjection({ root, manifest: manifestInput, candidateRoot, fau
|
|
|
107256
107390
|
}
|
|
107257
107391
|
var SHA256_HEX_PATTERN2, V2_KIND, OWNER_KIND, TARGET_FACTS_CONTROL_PATHS, PROJECTION_AUTHORITY_BINDING_KINDS, BASE64_PATTERN;
|
|
107258
107392
|
var init_projection = __esm({
|
|
107259
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107393
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/projection.mjs"() {
|
|
107260
107394
|
init_src();
|
|
107261
107395
|
init_src2();
|
|
107262
107396
|
init_errors4();
|
|
@@ -107329,12 +107463,12 @@ var init_projection = __esm({
|
|
|
107329
107463
|
}
|
|
107330
107464
|
});
|
|
107331
107465
|
|
|
107332
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107466
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/report.mjs
|
|
107333
107467
|
import process5 from "node:process";
|
|
107334
107468
|
import { lstat as lstat30, readFile as readFile35, realpath as realpath21, rm as rm11, stat as stat11 } from "node:fs/promises";
|
|
107335
107469
|
import path24 from "node:path";
|
|
107336
107470
|
var init_report2 = __esm({
|
|
107337
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107471
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/report.mjs"() {
|
|
107338
107472
|
init_src2();
|
|
107339
107473
|
init_src();
|
|
107340
107474
|
init_errors4();
|
|
@@ -107342,11 +107476,11 @@ var init_report2 = __esm({
|
|
|
107342
107476
|
}
|
|
107343
107477
|
});
|
|
107344
107478
|
|
|
107345
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107479
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/scaffold.mjs
|
|
107346
107480
|
import { lstat as lstat31, mkdir as mkdir20, readdir as readdir20 } from "node:fs/promises";
|
|
107347
107481
|
import path25 from "node:path";
|
|
107348
107482
|
var init_scaffold = __esm({
|
|
107349
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107483
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/scaffold.mjs"() {
|
|
107350
107484
|
init_src();
|
|
107351
107485
|
init_src2();
|
|
107352
107486
|
init_errors4();
|
|
@@ -107355,11 +107489,11 @@ var init_scaffold = __esm({
|
|
|
107355
107489
|
}
|
|
107356
107490
|
});
|
|
107357
107491
|
|
|
107358
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107492
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/host-drivers.mjs
|
|
107359
107493
|
import path26 from "node:path";
|
|
107360
107494
|
var CAPABILITIES, DRIVERS, HOST_DRIVER_IDS;
|
|
107361
107495
|
var init_host_drivers = __esm({
|
|
107362
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107496
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/host-drivers.mjs"() {
|
|
107363
107497
|
init_src2();
|
|
107364
107498
|
CAPABILITIES = Object.freeze(["cli", "version", "payload", "registry", "discover", "enabled", "reload", "smoke", "uninstall"]);
|
|
107365
107499
|
DRIVERS = Object.freeze({
|
|
@@ -107370,19 +107504,19 @@ var init_host_drivers = __esm({
|
|
|
107370
107504
|
}
|
|
107371
107505
|
});
|
|
107372
107506
|
|
|
107373
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107507
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/host-profiles.mjs
|
|
107374
107508
|
var init_host_profiles = __esm({
|
|
107375
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107509
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/host-profiles.mjs"() {
|
|
107376
107510
|
init_src();
|
|
107377
107511
|
init_src2();
|
|
107378
107512
|
init_errors4();
|
|
107379
107513
|
}
|
|
107380
107514
|
});
|
|
107381
107515
|
|
|
107382
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107516
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/host.mjs
|
|
107383
107517
|
import path27 from "node:path";
|
|
107384
107518
|
var init_host2 = __esm({
|
|
107385
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107519
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/host.mjs"() {
|
|
107386
107520
|
init_src();
|
|
107387
107521
|
init_src2();
|
|
107388
107522
|
init_errors4();
|
|
@@ -107391,10 +107525,10 @@ var init_host2 = __esm({
|
|
|
107391
107525
|
}
|
|
107392
107526
|
});
|
|
107393
107527
|
|
|
107394
|
-
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107528
|
+
// ../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/index.mjs
|
|
107395
107529
|
var TOP_LEVEL_COMMANDS, FORBIDDEN_SIDE_EFFECTS, COMMAND_SIDE_EFFECTS, KIT_EXIT_CODES;
|
|
107396
107530
|
var init_src3 = __esm({
|
|
107397
|
-
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.
|
|
107531
|
+
"../../node_modules/.pnpm/skill-family-engineering-kit@0.8.1_@pnpm+logger@1001.0.1/node_modules/skill-family-engineering-kit/src/index.mjs"() {
|
|
107398
107532
|
init_src();
|
|
107399
107533
|
init_adopt_plan();
|
|
107400
107534
|
init_check();
|
|
@@ -107460,7 +107594,7 @@ var init_src3 = __esm({
|
|
|
107460
107594
|
|
|
107461
107595
|
// src/core/postpublish-projection.mjs
|
|
107462
107596
|
import { chmod as chmod5, lstat as lstat32, mkdir as mkdir21, realpath as realpath22, writeFile as writeFile10 } from "node:fs/promises";
|
|
107463
|
-
import { dirname as
|
|
107597
|
+
import { dirname as dirname16, join as join27 } from "node:path";
|
|
107464
107598
|
function fail4(message, details = {}) {
|
|
107465
107599
|
throw new ReleaseError(POST_PUBLISH_VERIFY_FAILED, `public payload projection: ${message}`, details);
|
|
107466
107600
|
}
|
|
@@ -107483,7 +107617,7 @@ async function projectPublicPayload({ executionWorktreeRoot, candidateRoot, publ
|
|
|
107483
107617
|
if (!worktreeReal) {
|
|
107484
107618
|
fail4("the execution worktree does not resolve to an existing directory", { executionWorktreeRoot });
|
|
107485
107619
|
}
|
|
107486
|
-
const payloadPath =
|
|
107620
|
+
const payloadPath = join27(worktreeReal, PUBLIC_PAYLOAD_DIRNAME);
|
|
107487
107621
|
const preExisting = await lstat32(payloadPath).catch(() => null);
|
|
107488
107622
|
if (preExisting) {
|
|
107489
107623
|
fail4(`the payload root already exists in the tag worktree (${preExisting.isSymbolicLink() ? "symbolic link" : "pre-existing entry"})`, {
|
|
@@ -107501,8 +107635,8 @@ async function projectPublicPayload({ executionWorktreeRoot, candidateRoot, publ
|
|
|
107501
107635
|
kind: cause?.details?.kind
|
|
107502
107636
|
});
|
|
107503
107637
|
}
|
|
107504
|
-
const stagePath =
|
|
107505
|
-
await mkdir21(
|
|
107638
|
+
const stagePath = join27(candidateRoot, entry.to);
|
|
107639
|
+
await mkdir21(dirname16(stagePath), { recursive: true });
|
|
107506
107640
|
await writeFile10(stagePath, receipt.content);
|
|
107507
107641
|
await chmod5(stagePath, receipt.mode);
|
|
107508
107642
|
stagedResources.push({ path: entry.to, sha256: receipt.sha256, mode: receipt.mode });
|
|
@@ -107631,7 +107765,7 @@ import { execFile as execFileCb13 } from "node:child_process";
|
|
|
107631
107765
|
import { promisify as promisify13 } from "node:util";
|
|
107632
107766
|
import { mkdir as mkdir22, mkdtemp as mkdtemp8, readFile as readFile36, rm as rm12, writeFile as writeFile11 } from "node:fs/promises";
|
|
107633
107767
|
import { tmpdir as tmpdir5 } from "node:os";
|
|
107634
|
-
import { dirname as
|
|
107768
|
+
import { dirname as dirname17, join as join28 } from "node:path";
|
|
107635
107769
|
function defaultExec2(command2, args2, options = {}) {
|
|
107636
107770
|
return execFileAsync3(command2, args2, { shell: false, encoding: "utf8", timeout: GIT_TIMEOUT_MS, ...options });
|
|
107637
107771
|
}
|
|
@@ -107778,7 +107912,7 @@ async function deliverProposalGitPush(params) {
|
|
|
107778
107912
|
const exec = typeof execOpt === "function" ? execOpt : defaultExec2;
|
|
107779
107913
|
const serialized = `${JSON.stringify(proposalDocument, null, 2)}
|
|
107780
107914
|
`;
|
|
107781
|
-
const cloneDir = await mkdtemp8(
|
|
107915
|
+
const cloneDir = await mkdtemp8(join28(tmpdir5(), TMP_PREFIX));
|
|
107782
107916
|
try {
|
|
107783
107917
|
try {
|
|
107784
107918
|
await exec("git", ["clone", "--quiet", remoteUrl, cloneDir], {
|
|
@@ -107808,7 +107942,7 @@ async function deliverProposalGitPush(params) {
|
|
|
107808
107942
|
} else {
|
|
107809
107943
|
await git3(["checkout", "--quiet", "--orphan", branch]);
|
|
107810
107944
|
}
|
|
107811
|
-
const targetPath2 =
|
|
107945
|
+
const targetPath2 = join28(cloneDir, proposalPath);
|
|
107812
107946
|
let existing = null;
|
|
107813
107947
|
try {
|
|
107814
107948
|
existing = await readFile36(targetPath2, "utf8");
|
|
@@ -107828,7 +107962,7 @@ async function deliverProposalGitPush(params) {
|
|
|
107828
107962
|
{ remoteUrl: redactUrlCredentialsIfPresent(remoteUrl), proposalPath }
|
|
107829
107963
|
);
|
|
107830
107964
|
}
|
|
107831
|
-
await mkdir22(
|
|
107965
|
+
await mkdir22(dirname17(targetPath2), { recursive: true });
|
|
107832
107966
|
await writeFile11(targetPath2, serialized);
|
|
107833
107967
|
await git3(["add", "-A"]);
|
|
107834
107968
|
await git3([
|
|
@@ -107936,7 +108070,7 @@ async function deliverProposalLocalFile(params) {
|
|
|
107936
108070
|
}
|
|
107937
108071
|
const serialized = `${JSON.stringify(proposalDocument, null, 2)}
|
|
107938
108072
|
`;
|
|
107939
|
-
const targetPath2 =
|
|
108073
|
+
const targetPath2 = join28(workspaceRealpath, proposalPath);
|
|
107940
108074
|
let existing = null;
|
|
107941
108075
|
try {
|
|
107942
108076
|
existing = await readFile36(targetPath2, "utf8");
|
|
@@ -107953,7 +108087,7 @@ async function deliverProposalLocalFile(params) {
|
|
|
107953
108087
|
{ workspace: workspaceRealpath, proposalPath }
|
|
107954
108088
|
);
|
|
107955
108089
|
}
|
|
107956
|
-
await mkdir22(
|
|
108090
|
+
await mkdir22(dirname17(targetPath2), { recursive: true });
|
|
107957
108091
|
await writeFile11(targetPath2, serialized);
|
|
107958
108092
|
await git3(["add", "--", proposalPath]);
|
|
107959
108093
|
await git3([
|
|
@@ -108078,7 +108212,7 @@ import { execFile as execFileCb14 } from "node:child_process";
|
|
|
108078
108212
|
import { promisify as promisify14 } from "node:util";
|
|
108079
108213
|
import { mkdtemp as mkdtemp9, rm as rm13 } from "node:fs/promises";
|
|
108080
108214
|
import { tmpdir as tmpdir6 } from "node:os";
|
|
108081
|
-
import { join as
|
|
108215
|
+
import { join as join29 } from "node:path";
|
|
108082
108216
|
function defaultExec3(command2, args2, options = {}) {
|
|
108083
108217
|
return execFileAsync4(command2, args2, { shell: false, encoding: "utf8", timeout: GIT_TIMEOUT_MS2, ...options });
|
|
108084
108218
|
}
|
|
@@ -108198,7 +108332,7 @@ async function applyDownstreamGitChange(params) {
|
|
|
108198
108332
|
let workspaceRealpath = null;
|
|
108199
108333
|
if (hasRemoteUrl) {
|
|
108200
108334
|
assertSafeRemoteUrl2(target.remoteUrl);
|
|
108201
|
-
worktree = await mkdtemp9(
|
|
108335
|
+
worktree = await mkdtemp9(join29(tmpdir6(), TMP_PREFIX2));
|
|
108202
108336
|
isClone = true;
|
|
108203
108337
|
try {
|
|
108204
108338
|
await exec("git", ["clone", "--quiet", target.remoteUrl, worktree], {
|
|
@@ -108436,7 +108570,7 @@ var init_preset_gitwrite = __esm({
|
|
|
108436
108570
|
|
|
108437
108571
|
// src/core/marketplace-registry-entry.mjs
|
|
108438
108572
|
import { readFile as readFile37 } from "node:fs/promises";
|
|
108439
|
-
import { join as
|
|
108573
|
+
import { join as join30 } from "node:path";
|
|
108440
108574
|
function updateRegistryEntry(registry, params) {
|
|
108441
108575
|
const { entryKey, fieldsFromPlan, contextProjection } = params ?? {};
|
|
108442
108576
|
if (!registry || typeof registry !== "object" || Array.isArray(registry)) {
|
|
@@ -108498,7 +108632,7 @@ async function executeMarketplaceRegistryEntryHook(params) {
|
|
|
108498
108632
|
const version = contextProjection?.version ?? "unknown";
|
|
108499
108633
|
let currentText = null;
|
|
108500
108634
|
const mutate = /* @__PURE__ */ __name(async (worktree) => {
|
|
108501
|
-
const absoluteRegistry =
|
|
108635
|
+
const absoluteRegistry = join30(worktree, registryPath);
|
|
108502
108636
|
let raw;
|
|
108503
108637
|
try {
|
|
108504
108638
|
raw = await readFile37(absoluteRegistry, "utf8");
|
|
@@ -108554,7 +108688,7 @@ var init_marketplace_registry_entry = __esm({
|
|
|
108554
108688
|
|
|
108555
108689
|
// src/core/docs-refresh-preset.mjs
|
|
108556
108690
|
import { mkdir as mkdir23, readFile as readFile38, writeFile as writeFile12 } from "node:fs/promises";
|
|
108557
|
-
import { dirname as
|
|
108691
|
+
import { dirname as dirname18, isAbsolute as isAbsolute22, join as join31, relative as relative26, resolve as resolve31 } from "node:path";
|
|
108558
108692
|
function resolvePayloadSource(payloadDir, from) {
|
|
108559
108693
|
const sourcePath = resolve31(payloadDir, from);
|
|
108560
108694
|
const rel = relative26(payloadDir, sourcePath);
|
|
@@ -108603,8 +108737,8 @@ async function executeDocsRefreshHook(params) {
|
|
|
108603
108737
|
const text = content.toString("utf8");
|
|
108604
108738
|
content = Buffer.from(text.split(mapping.versionMarker).join(version), "utf8");
|
|
108605
108739
|
}
|
|
108606
|
-
const destination =
|
|
108607
|
-
await mkdir23(
|
|
108740
|
+
const destination = join31(worktree, mapping.to);
|
|
108741
|
+
await mkdir23(dirname18(destination), { recursive: true });
|
|
108608
108742
|
await writeFile12(destination, content);
|
|
108609
108743
|
}
|
|
108610
108744
|
}, "mutate");
|
|
@@ -108788,7 +108922,7 @@ import { promisify as promisify15 } from "node:util";
|
|
|
108788
108922
|
import { realpath as realpath23, lstat as lstat33, mkdir as mkdir24, readFile as readFile39, rm as rm14 } from "node:fs/promises";
|
|
108789
108923
|
import { mkdtemp as mkdtemp10 } from "node:fs/promises";
|
|
108790
108924
|
import { tmpdir as tmpdir7 } from "node:os";
|
|
108791
|
-
import { isAbsolute as isAbsolute23, join as
|
|
108925
|
+
import { isAbsolute as isAbsolute23, join as join32, relative as relative27, resolve as resolve32 } from "node:path";
|
|
108792
108926
|
function defaultClock6() {
|
|
108793
108927
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
108794
108928
|
}
|
|
@@ -108916,7 +109050,7 @@ async function distributeRelease(options) {
|
|
|
108916
109050
|
} else {
|
|
108917
109051
|
await mkdir24(runDir, { recursive: true });
|
|
108918
109052
|
}
|
|
108919
|
-
const runPath =
|
|
109053
|
+
const runPath = join32(runDir, "release-run.json");
|
|
108920
109054
|
const evidence = createEvidenceWriter({ runDir, command: "distribute", clock: clockFn });
|
|
108921
109055
|
let lineageKnown = false;
|
|
108922
109056
|
let sourceRunId = null;
|
|
@@ -109290,8 +109424,8 @@ async function distributeRelease(options) {
|
|
|
109290
109424
|
}
|
|
109291
109425
|
await evidence.append({ phase: "worktree", status: "started", tagCommit: postPublish.tagCommit });
|
|
109292
109426
|
try {
|
|
109293
|
-
tmpBase = await mkdtemp10(
|
|
109294
|
-
worktreePath =
|
|
109427
|
+
tmpBase = await mkdtemp10(join32(tmpdir7(), "release-skill-distribute-"));
|
|
109428
|
+
worktreePath = join32(tmpBase, "worktree");
|
|
109295
109429
|
await exec("git", ["-C", root, "worktree", "add", "--detach", worktreePath, postPublish.tagCommit]);
|
|
109296
109430
|
} catch (err) {
|
|
109297
109431
|
await evidence.append({ phase: "worktree", status: "failed", error: boundedOutputTail(err?.stderr ?? err?.message) });
|
|
@@ -109440,7 +109574,7 @@ async function distributeRelease(options) {
|
|
|
109440
109574
|
"public payload projection: the frozen plan declares no materialize hook and carries no non-empty executionBundle.publicFiles mapping; the payload cannot be staged"
|
|
109441
109575
|
));
|
|
109442
109576
|
}
|
|
109443
|
-
const candidateRoot =
|
|
109577
|
+
const candidateRoot = join32(tmpBase, "projection-candidate");
|
|
109444
109578
|
try {
|
|
109445
109579
|
await mkdir24(candidateRoot, { recursive: true });
|
|
109446
109580
|
const projected = await projectPublicPayload({
|
|
@@ -109772,7 +109906,7 @@ async function distributeRelease(options) {
|
|
|
109772
109906
|
// resolution + release-workspace write exclusion). The detached
|
|
109773
109907
|
// worktree is the execution worktree and never impersonates it.
|
|
109774
109908
|
releaseWorkspaceRoot,
|
|
109775
|
-
evidencePath:
|
|
109909
|
+
evidencePath: join32(runDir, "evidence.jsonl"),
|
|
109776
109910
|
payloadDir: hookContextProjection.payloadDir,
|
|
109777
109911
|
exec,
|
|
109778
109912
|
hookRunner
|
|
@@ -110022,7 +110156,7 @@ import { promisify as promisify16 } from "node:util";
|
|
|
110022
110156
|
import { mkdir as mkdir25, readFile as readFile40, realpath as realpath24, rm as rm15 } from "node:fs/promises";
|
|
110023
110157
|
import { mkdtemp as mkdtemp11 } from "node:fs/promises";
|
|
110024
110158
|
import { tmpdir as tmpdir8 } from "node:os";
|
|
110025
|
-
import { join as
|
|
110159
|
+
import { join as join33 } from "node:path";
|
|
110026
110160
|
function defaultClock7() {
|
|
110027
110161
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
110028
110162
|
}
|
|
@@ -110200,7 +110334,7 @@ async function postVerifyRelease(options) {
|
|
|
110200
110334
|
} else {
|
|
110201
110335
|
await mkdir25(runDir, { recursive: true });
|
|
110202
110336
|
}
|
|
110203
|
-
const runPath =
|
|
110337
|
+
const runPath = join33(runDir, "release-run.json");
|
|
110204
110338
|
const evidence = createEvidenceWriter({ runDir, command: "postverify", clock: clockFn });
|
|
110205
110339
|
let finalRecordWritten = false;
|
|
110206
110340
|
const startedAt = clockFn();
|
|
@@ -110288,8 +110422,8 @@ async function postVerifyRelease(options) {
|
|
|
110288
110422
|
}
|
|
110289
110423
|
if (dryRun !== true) {
|
|
110290
110424
|
try {
|
|
110291
|
-
tmpBase = await mkdtemp11(
|
|
110292
|
-
worktreePath =
|
|
110425
|
+
tmpBase = await mkdtemp11(join33(tmpdir8(), "release-skill-postverify-"));
|
|
110426
|
+
worktreePath = join33(tmpBase, "worktree");
|
|
110293
110427
|
await exec("git", ["-C", root, "worktree", "add", "--detach", worktreePath, postPublish.tagCommit]);
|
|
110294
110428
|
} catch (err) {
|
|
110295
110429
|
await evidence.append({
|
|
@@ -110395,7 +110529,7 @@ async function postVerifyRelease(options) {
|
|
|
110395
110529
|
// resolution + release-workspace write exclusion). The detached
|
|
110396
110530
|
// worktree is the execution worktree and never impersonates it.
|
|
110397
110531
|
releaseWorkspaceRoot,
|
|
110398
|
-
evidencePath:
|
|
110532
|
+
evidencePath: join33(runDir, "evidence.jsonl"),
|
|
110399
110533
|
exec,
|
|
110400
110534
|
hookRunner
|
|
110401
110535
|
});
|
|
@@ -110814,9 +110948,9 @@ __export(ship_exports, {
|
|
|
110814
110948
|
advanceShip: () => advanceShip
|
|
110815
110949
|
});
|
|
110816
110950
|
import { readFile as readFile42, lstat as lstat35, mkdir as mkdir26, rename as rename6, rm as rm17, writeFile as writeFile14 } from "node:fs/promises";
|
|
110817
|
-
import { dirname as
|
|
110951
|
+
import { dirname as dirname19, resolve as resolve34 } from "node:path";
|
|
110818
110952
|
async function writeJsonAtomic(path28, value) {
|
|
110819
|
-
await mkdir26(
|
|
110953
|
+
await mkdir26(dirname19(path28), { recursive: true });
|
|
110820
110954
|
const temp = `${path28}.${process.pid}.${Date.now()}.tmp`;
|
|
110821
110955
|
const { stateDigest: _oldDigest, ...body } = value;
|
|
110822
110956
|
const sealed = {
|
|
@@ -111835,7 +111969,7 @@ import { execFile as execFileCb20 } from "node:child_process";
|
|
|
111835
111969
|
import { promisify as promisify20 } from "node:util";
|
|
111836
111970
|
import { cp as cp2, copyFile, mkdir as mkdir27, mkdtemp as mkdtemp12, readdir as readdir21, rm as rm18, stat as stat12, writeFile as writeFile15 } from "node:fs/promises";
|
|
111837
111971
|
import { tmpdir as tmpdir9 } from "node:os";
|
|
111838
|
-
import { dirname as
|
|
111972
|
+
import { dirname as dirname20, isAbsolute as isAbsolute24, join as join34 } from "node:path";
|
|
111839
111973
|
function classifyProbeFailure(text) {
|
|
111840
111974
|
const output = typeof text === "string" ? text : "";
|
|
111841
111975
|
if (AUTH_FAILURE_PATTERNS3.some((pattern) => pattern.test(output))) return "auth";
|
|
@@ -111956,7 +112090,7 @@ async function countFiles(dir) {
|
|
|
111956
112090
|
const entries = await readdir21(dir, { withFileTypes: true });
|
|
111957
112091
|
for (const entry of entries) {
|
|
111958
112092
|
if (entry.name === ".git") continue;
|
|
111959
|
-
const fullPath =
|
|
112093
|
+
const fullPath = join34(dir, entry.name);
|
|
111960
112094
|
if (entry.isDirectory()) {
|
|
111961
112095
|
total += await countFiles(fullPath);
|
|
111962
112096
|
} else if (entry.isFile() || entry.isSymbolicLink()) {
|
|
@@ -112068,7 +112202,7 @@ function createDistributeGitAdapter(deps = {}) {
|
|
|
112068
112202
|
__name(assertMirrorActionShape, "assertMirrorActionShape");
|
|
112069
112203
|
async function mirror(action) {
|
|
112070
112204
|
assertMirrorActionShape(action);
|
|
112071
|
-
const cloneDir = await mkdtempFn(
|
|
112205
|
+
const cloneDir = await mkdtempFn(join34(tmpRoot, TMP_PREFIX3));
|
|
112072
112206
|
const git3 = /* @__PURE__ */ __name((args2, options = {}) => exec("git", args2, { cwd: cloneDir, shell: false, timeout: GIT_TIMEOUT_MS3, ...options }), "git");
|
|
112073
112207
|
try {
|
|
112074
112208
|
await exec("git", ["clone", "--quiet", action.remoteUrl, cloneDir], {
|
|
@@ -112090,7 +112224,7 @@ function createDistributeGitAdapter(deps = {}) {
|
|
|
112090
112224
|
}
|
|
112091
112225
|
for (const entry of await readdir21(cloneDir)) {
|
|
112092
112226
|
if (entry === ".git") continue;
|
|
112093
|
-
await rm18(
|
|
112227
|
+
await rm18(join34(cloneDir, entry), { recursive: true, force: true });
|
|
112094
112228
|
}
|
|
112095
112229
|
if (action.kind === "payload-mirror") {
|
|
112096
112230
|
const payloadStat = await stat12(action.payloadDir).catch(() => null);
|
|
@@ -112105,13 +112239,13 @@ function createDistributeGitAdapter(deps = {}) {
|
|
|
112105
112239
|
sha: action.dependency.sha ?? null,
|
|
112106
112240
|
dependencyUrl: action.dependency.remoteUrl
|
|
112107
112241
|
});
|
|
112108
|
-
await mkdir27(
|
|
112109
|
-
await writeFile15(
|
|
112242
|
+
await mkdir27(join34(cloneDir, ".claude-plugin"), { recursive: true });
|
|
112243
|
+
await writeFile15(join34(cloneDir, ".claude-plugin", "marketplace.json"), `${JSON.stringify(index, null, 2)}
|
|
112110
112244
|
`);
|
|
112111
112245
|
}
|
|
112112
112246
|
for (const file of action.staticFiles ?? []) {
|
|
112113
|
-
await mkdir27(
|
|
112114
|
-
await copyFile(file.sourcePath,
|
|
112247
|
+
await mkdir27(dirname20(join34(cloneDir, file.to)), { recursive: true });
|
|
112248
|
+
await copyFile(file.sourcePath, join34(cloneDir, file.to));
|
|
112115
112249
|
}
|
|
112116
112250
|
const payloadFileCount = await countFiles(cloneDir);
|
|
112117
112251
|
await git3(["add", "-A"]);
|
|
@@ -112341,7 +112475,7 @@ __export(attest_exports, {
|
|
|
112341
112475
|
recordManualAttestation: () => recordManualAttestation
|
|
112342
112476
|
});
|
|
112343
112477
|
import { readFile as readFile43 } from "node:fs/promises";
|
|
112344
|
-
import { resolve as resolve35, join as
|
|
112478
|
+
import { resolve as resolve35, join as join35 } from "node:path";
|
|
112345
112479
|
async function validateInstalledConsumerClosure({
|
|
112346
112480
|
root,
|
|
112347
112481
|
platform,
|
|
@@ -112429,7 +112563,7 @@ async function recordManualAttestation(options = {}, injected = {}) {
|
|
|
112429
112563
|
throw new ReleaseError(MISSING_PARAMETERS, "attest requires --result <passed|failed>");
|
|
112430
112564
|
}
|
|
112431
112565
|
const authorityDir = resolve35(root, ".release-skill", descriptor.directory, plugin);
|
|
112432
|
-
const requirementPath =
|
|
112566
|
+
const requirementPath = join35(authorityDir, descriptor.requirementFile);
|
|
112433
112567
|
let requirement;
|
|
112434
112568
|
try {
|
|
112435
112569
|
requirement = JSON.parse(await readFile43(requirementPath, "utf8"));
|
|
@@ -112482,7 +112616,7 @@ async function recordManualAttestation(options = {}, injected = {}) {
|
|
|
112482
112616
|
extraInstalledPaths: installBinding.extraInstalledPaths
|
|
112483
112617
|
} : {}
|
|
112484
112618
|
};
|
|
112485
|
-
const attestationPath =
|
|
112619
|
+
const attestationPath = join35(authorityDir, requirement.attestationFile);
|
|
112486
112620
|
await writeEvidenceAtomic(attestationPath, receipt);
|
|
112487
112621
|
return {
|
|
112488
112622
|
command: "attest",
|
|
@@ -112517,7 +112651,7 @@ var init_attest = __esm({
|
|
|
112517
112651
|
|
|
112518
112652
|
// src/artifacts/policy.mjs
|
|
112519
112653
|
import { readFile as readFile44 } from "node:fs/promises";
|
|
112520
|
-
import { join as
|
|
112654
|
+
import { join as join36 } from "node:path";
|
|
112521
112655
|
import { createHash as createHash16 } from "node:crypto";
|
|
112522
112656
|
function validateArtifactPolicy(policy) {
|
|
112523
112657
|
const ok = _validate(policy);
|
|
@@ -112613,7 +112747,7 @@ async function parseSafeYamlWithinRoot(root, policyPath) {
|
|
|
112613
112747
|
}
|
|
112614
112748
|
throw err;
|
|
112615
112749
|
}
|
|
112616
|
-
const fullPath =
|
|
112750
|
+
const fullPath = join36(root, policyPath);
|
|
112617
112751
|
let content;
|
|
112618
112752
|
try {
|
|
112619
112753
|
content = await readFile44(fullPath, "utf8");
|
|
@@ -112728,7 +112862,7 @@ var init_policy = __esm({
|
|
|
112728
112862
|
|
|
112729
112863
|
// src/artifacts/entry.mjs
|
|
112730
112864
|
import { lstat as lstat36, readdir as readdir22, readFile as readFile45 } from "node:fs/promises";
|
|
112731
|
-
import { join as
|
|
112865
|
+
import { join as join37 } from "node:path";
|
|
112732
112866
|
import { promisify as promisify21 } from "node:util";
|
|
112733
112867
|
import { execFile as execFile14 } from "node:child_process";
|
|
112734
112868
|
function statToGitMode(stat16) {
|
|
@@ -112751,7 +112885,7 @@ async function enumerateTreeEntries(root, dirPath, relBase) {
|
|
|
112751
112885
|
const items = await readdir22(dirPath, { withFileTypes: true });
|
|
112752
112886
|
for (const item of items) {
|
|
112753
112887
|
if (SKIP_DIRS2.has(item.name)) continue;
|
|
112754
|
-
const absPath =
|
|
112888
|
+
const absPath = join37(dirPath, item.name);
|
|
112755
112889
|
const relPath = relBase ? `${relBase}/${item.name}` : item.name;
|
|
112756
112890
|
const st = await lstat36(absPath);
|
|
112757
112891
|
if (st.isSymbolicLink()) {
|
|
@@ -112802,7 +112936,7 @@ async function readEntry({ root, path: path28, source = "worktree" } = {}) {
|
|
|
112802
112936
|
if (source !== "worktree") {
|
|
112803
112937
|
throw new ReleaseError(PATH_UNSAFE, `unsupported readEntry source: ${source}`, { source });
|
|
112804
112938
|
}
|
|
112805
|
-
const absPath =
|
|
112939
|
+
const absPath = join37(root, path28);
|
|
112806
112940
|
let st;
|
|
112807
112941
|
try {
|
|
112808
112942
|
st = await lstat36(absPath);
|
|
@@ -113100,17 +113234,17 @@ var init_graph = __esm({
|
|
|
113100
113234
|
|
|
113101
113235
|
// src/artifacts/producer-registry.mjs
|
|
113102
113236
|
import { readFile as readFile46, readdir as readdir23, stat as stat13, mkdir as mkdir28, writeFile as writeFile16, rm as rm19 } from "node:fs/promises";
|
|
113103
|
-
import { join as
|
|
113237
|
+
import { join as join38 } from "node:path";
|
|
113104
113238
|
import { mkdtemp as mkdtemp13 } from "node:fs/promises";
|
|
113105
113239
|
import { tmpdir as tmpdir10 } from "node:os";
|
|
113106
|
-
import { readFileSync as
|
|
113240
|
+
import { readFileSync as readFileSync15 } from "node:fs";
|
|
113107
113241
|
function collectStaticImports(filePath, visited = /* @__PURE__ */ new Set()) {
|
|
113108
113242
|
const abs = new URL(`file://${filePath}`).pathname;
|
|
113109
113243
|
if (visited.has(abs)) return [];
|
|
113110
113244
|
visited.add(abs);
|
|
113111
113245
|
let source;
|
|
113112
113246
|
try {
|
|
113113
|
-
source =
|
|
113247
|
+
source = readFileSync15(abs, "utf-8");
|
|
113114
113248
|
} catch {
|
|
113115
113249
|
return [abs];
|
|
113116
113250
|
}
|
|
@@ -113120,7 +113254,7 @@ function collectStaticImports(filePath, visited = /* @__PURE__ */ new Set()) {
|
|
|
113120
113254
|
const dir = abs.replace(/\/[^/]*$/, "");
|
|
113121
113255
|
while ((match = importRe.exec(source)) !== null) {
|
|
113122
113256
|
const spec = match[1];
|
|
113123
|
-
let resolved =
|
|
113257
|
+
let resolved = join38(dir, spec);
|
|
113124
113258
|
if (!resolved.endsWith(".mjs")) resolved += ".mjs";
|
|
113125
113259
|
results.push(...collectStaticImports(resolved, visited));
|
|
113126
113260
|
}
|
|
@@ -113128,7 +113262,7 @@ function collectStaticImports(filePath, visited = /* @__PURE__ */ new Set()) {
|
|
|
113128
113262
|
}
|
|
113129
113263
|
async function createBuiltInProducerRegistry() {
|
|
113130
113264
|
const producers = /* @__PURE__ */ new Map();
|
|
113131
|
-
const lockfilePath =
|
|
113265
|
+
const lockfilePath = join38(new URL("../../..", import.meta.url).pathname, "pnpm-lock.yaml");
|
|
113132
113266
|
let lockfileBytes;
|
|
113133
113267
|
try {
|
|
113134
113268
|
lockfileBytes = await readFile46(lockfilePath);
|
|
@@ -113168,7 +113302,7 @@ async function readDirEntries(dirPath, relBase = "") {
|
|
|
113168
113302
|
const items = await readdir23(dirPath, { withFileTypes: true });
|
|
113169
113303
|
for (const item of items) {
|
|
113170
113304
|
if (item.name === ".git") continue;
|
|
113171
|
-
const absPath =
|
|
113305
|
+
const absPath = join38(dirPath, item.name);
|
|
113172
113306
|
const relPath = relBase ? `${relBase}/${item.name}` : item.name;
|
|
113173
113307
|
const st = await stat13(absPath);
|
|
113174
113308
|
if (st.isDirectory()) {
|
|
@@ -113191,11 +113325,11 @@ async function readDirEntries(dirPath, relBase = "") {
|
|
|
113191
113325
|
async function materializeEntries(entries, dirPath) {
|
|
113192
113326
|
for (const entry of entries) {
|
|
113193
113327
|
if (!entry.path) continue;
|
|
113194
|
-
const targetPath2 =
|
|
113328
|
+
const targetPath2 = join38(dirPath, entry.path);
|
|
113195
113329
|
if (entry.type === "tree" || entry.kind === "tree") {
|
|
113196
113330
|
await mkdir28(targetPath2, { recursive: true });
|
|
113197
113331
|
} else {
|
|
113198
|
-
await mkdir28(
|
|
113332
|
+
await mkdir28(join38(targetPath2, ".."), { recursive: true });
|
|
113199
113333
|
if (entry.content) {
|
|
113200
113334
|
await writeFile16(targetPath2, entry.content);
|
|
113201
113335
|
}
|
|
@@ -113239,7 +113373,7 @@ async function runProducerClosure({
|
|
|
113239
113373
|
graph,
|
|
113240
113374
|
inputSnapshot,
|
|
113241
113375
|
artifactIds,
|
|
113242
|
-
tempRootFactory = /* @__PURE__ */ __name(async () => mkdtemp13(
|
|
113376
|
+
tempRootFactory = /* @__PURE__ */ __name(async () => mkdtemp13(join38(tmpdir10(), "producer-")), "tempRootFactory")
|
|
113243
113377
|
} = {}) {
|
|
113244
113378
|
const generatedSet = new Set(graph.topologicalOrder);
|
|
113245
113379
|
for (const id of artifactIds) {
|
|
@@ -113276,7 +113410,7 @@ async function runProducerClosure({
|
|
|
113276
113410
|
if (inputEntries) {
|
|
113277
113411
|
const first = inputEntries[0];
|
|
113278
113412
|
if (first && first.path) {
|
|
113279
|
-
const absPath = first.path.startsWith("/") ? first.path :
|
|
113413
|
+
const absPath = first.path.startsWith("/") ? first.path : join38(process.cwd(), first.path);
|
|
113280
113414
|
try {
|
|
113281
113415
|
const st = await stat13(absPath);
|
|
113282
113416
|
if (st.isDirectory()) {
|
|
@@ -113702,7 +113836,7 @@ var init_state = __esm({
|
|
|
113702
113836
|
|
|
113703
113837
|
// src/artifacts/artifact-plan.mjs
|
|
113704
113838
|
import { writeFile as writeFile17, mkdir as mkdir29, readFile as readFile47, rename as rename7, open as open11 } from "node:fs/promises";
|
|
113705
|
-
import { dirname as
|
|
113839
|
+
import { dirname as dirname21 } from "node:path";
|
|
113706
113840
|
function assemblePlan({
|
|
113707
113841
|
operation,
|
|
113708
113842
|
bindings,
|
|
@@ -113725,7 +113859,7 @@ function assemblePlan({
|
|
|
113725
113859
|
return Object.freeze(plan);
|
|
113726
113860
|
}
|
|
113727
113861
|
async function writePlan(plan, outputPath) {
|
|
113728
|
-
const dir =
|
|
113862
|
+
const dir = dirname21(outputPath);
|
|
113729
113863
|
await mkdir29(dir, { recursive: true });
|
|
113730
113864
|
const tmpPath = `${outputPath}.tmp`;
|
|
113731
113865
|
const content = JSON.stringify(plan, null, 2);
|
|
@@ -114391,7 +114525,7 @@ var init_adoption = __esm({
|
|
|
114391
114525
|
import { promisify as promisify24 } from "node:util";
|
|
114392
114526
|
import { execFile as execFile17 } from "node:child_process";
|
|
114393
114527
|
import { readdir as readdir24, stat as stat14, readFile as readFile48 } from "node:fs/promises";
|
|
114394
|
-
import { join as
|
|
114528
|
+
import { join as join39 } from "node:path";
|
|
114395
114529
|
async function hasNestedGitRoots(root) {
|
|
114396
114530
|
try {
|
|
114397
114531
|
const { stdout } = await execFileAsync10(
|
|
@@ -114401,9 +114535,9 @@ async function hasNestedGitRoots(root) {
|
|
|
114401
114535
|
);
|
|
114402
114536
|
const dirs = stdout.split("\n").filter((s) => s.length > 0);
|
|
114403
114537
|
for (const dir of dirs) {
|
|
114404
|
-
const absDir =
|
|
114538
|
+
const absDir = join39(root, dir);
|
|
114405
114539
|
try {
|
|
114406
|
-
const nestedGit =
|
|
114540
|
+
const nestedGit = join39(absDir, ".git");
|
|
114407
114541
|
await stat14(nestedGit);
|
|
114408
114542
|
return true;
|
|
114409
114543
|
} catch {
|
|
@@ -114663,7 +114797,7 @@ var init_inspect = __esm({
|
|
|
114663
114797
|
|
|
114664
114798
|
// src/artifacts/resolution.mjs
|
|
114665
114799
|
import { mkdir as mkdir30, open as open12, readFile as readFile49, stat as stat15, lstat as lstat37, chmod as chmod6 } from "node:fs/promises";
|
|
114666
|
-
import { join as
|
|
114800
|
+
import { join as join40, resolve as resolve36, relative as relative28, isAbsolute as isAbsolute25, basename as basename13 } from "node:path";
|
|
114667
114801
|
function decodeBuffer(value, label) {
|
|
114668
114802
|
if (value == null) return null;
|
|
114669
114803
|
if (Buffer.isBuffer(value)) return value;
|
|
@@ -114765,9 +114899,9 @@ function assertSafeArtifactId(id) {
|
|
|
114765
114899
|
}
|
|
114766
114900
|
async function assertNoSymlinksInPath(root, artifactId) {
|
|
114767
114901
|
const levels = [
|
|
114768
|
-
|
|
114769
|
-
|
|
114770
|
-
|
|
114902
|
+
join40(root, ".release-skill"),
|
|
114903
|
+
join40(root, ".release-skill", "resolution"),
|
|
114904
|
+
join40(root, ".release-skill", "resolution", artifactId)
|
|
114771
114905
|
];
|
|
114772
114906
|
for (const dir of levels) {
|
|
114773
114907
|
try {
|
|
@@ -114946,13 +115080,13 @@ async function materializeResolution({
|
|
|
114946
115080
|
const template = buildConflictTemplate(artifact.conflict ?? {}, decodedBuffers);
|
|
114947
115081
|
const templateDigest = sha256Hex(template);
|
|
114948
115082
|
await assertNoSymlinksInPath(root, artifactId);
|
|
114949
|
-
const resolutionDir =
|
|
115083
|
+
const resolutionDir = join40(root, ".release-skill", "resolution", artifactId);
|
|
114950
115084
|
await mkdir30(resolutionDir, { recursive: true, mode: 448 });
|
|
114951
115085
|
const dirStat = await stat15(resolutionDir);
|
|
114952
115086
|
if ((dirStat.mode & 511) !== 448) {
|
|
114953
115087
|
await chmod6(resolutionDir, 448);
|
|
114954
115088
|
}
|
|
114955
|
-
const resolvedPath =
|
|
115089
|
+
const resolvedPath = join40(resolutionDir, `${artifactId}.resolved`);
|
|
114956
115090
|
const fh = await open12(resolvedPath, "wx", 384);
|
|
114957
115091
|
try {
|
|
114958
115092
|
await fh.write(template, 0, template.length);
|
|
@@ -115163,7 +115297,7 @@ __export(artifacts_exports, {
|
|
|
115163
115297
|
runArtifactsCommand: () => runArtifactsCommand
|
|
115164
115298
|
});
|
|
115165
115299
|
import { readFile as readFile50 } from "node:fs/promises";
|
|
115166
|
-
import { join as
|
|
115300
|
+
import { join as join41 } from "node:path";
|
|
115167
115301
|
async function runArtifactsCommand({ subcommand, args: args2, root } = {}) {
|
|
115168
115302
|
if (!VALID_SUBCOMMANDS.has(subcommand)) {
|
|
115169
115303
|
throw new ReleaseError(
|
|
@@ -115306,7 +115440,7 @@ async function handleAdopt({ args: args2, root }) {
|
|
|
115306
115440
|
if (artifact.path) {
|
|
115307
115441
|
const entry = await readEntry({ root, path: artifact.path, source: "worktree" });
|
|
115308
115442
|
if (entry.kind === "regular") {
|
|
115309
|
-
const bytes = await readFile50(
|
|
115443
|
+
const bytes = await readFile50(join41(root, artifact.path));
|
|
115310
115444
|
currentEntries.set(artifact.id, Object.freeze({ ...entry, bytes, content: bytes }));
|
|
115311
115445
|
} else {
|
|
115312
115446
|
currentEntries.set(artifact.id, entry);
|
|
@@ -115383,7 +115517,7 @@ async function handleBootstrap({ args: args2, root }) {
|
|
|
115383
115517
|
if (entry.kind !== "regular") {
|
|
115384
115518
|
throw new ReleaseError("PLAN_STALE", `artifact is no longer a regular file: ${id}`, { id });
|
|
115385
115519
|
}
|
|
115386
|
-
const bytes = await readFile50(
|
|
115520
|
+
const bytes = await readFile50(join41(root, artifactPath));
|
|
115387
115521
|
currentEntries.set(id, Object.freeze({ ...entry, bytes, content: bytes }));
|
|
115388
115522
|
}
|
|
115389
115523
|
let replacementBytes;
|
|
@@ -116706,7 +116840,7 @@ Workflow Profiles:
|
|
|
116706
116840
|
});
|
|
116707
116841
|
|
|
116708
116842
|
// bin/release-skill-cli.mjs
|
|
116709
|
-
import { basename as basename14, dirname as
|
|
116843
|
+
import { basename as basename14, dirname as dirname22, join as join42, resolve as resolve38 } from "node:path";
|
|
116710
116844
|
import { execFile as execFileCb22 } from "node:child_process";
|
|
116711
116845
|
import { promisify as promisify26 } from "node:util";
|
|
116712
116846
|
|
|
@@ -117002,10 +117136,10 @@ if (!command && (args.includes("--version") || args.includes("-v"))) {
|
|
|
117002
117136
|
if (typeof __bundlePkg !== "undefined") {
|
|
117003
117137
|
pkg = __bundlePkg;
|
|
117004
117138
|
} else {
|
|
117005
|
-
const { readFileSync:
|
|
117006
|
-
const { fileURLToPath:
|
|
117007
|
-
const pkgPath =
|
|
117008
|
-
pkg = JSON.parse(
|
|
117139
|
+
const { readFileSync: readFileSync16 } = await import("node:fs");
|
|
117140
|
+
const { fileURLToPath: fileURLToPath4 } = await import("node:url");
|
|
117141
|
+
const pkgPath = join42(dirname22(fileURLToPath4(import.meta.url)), "..", "package.json");
|
|
117142
|
+
pkg = JSON.parse(readFileSync16(pkgPath, "utf8"));
|
|
117009
117143
|
}
|
|
117010
117144
|
if (hasJson) {
|
|
117011
117145
|
console.log(JSON.stringify({
|
|
@@ -117564,9 +117698,9 @@ if (command === "approve") {
|
|
|
117564
117698
|
resolvedDigest = computePlanDigest2(planObj);
|
|
117565
117699
|
}
|
|
117566
117700
|
const resolvedPlanPath = resolve38(planPath);
|
|
117567
|
-
const planDir =
|
|
117568
|
-
const releaseDir = basename14(planDir) === "plans" && basename14(resolvedPlanPath) === `${resolvedDigest}.json` ?
|
|
117569
|
-
const approvalPath = outputPath ??
|
|
117701
|
+
const planDir = dirname22(resolvedPlanPath);
|
|
117702
|
+
const releaseDir = basename14(planDir) === "plans" && basename14(resolvedPlanPath) === `${resolvedDigest}.json` ? dirname22(planDir) : planDir;
|
|
117703
|
+
const approvalPath = outputPath ?? join42(releaseDir, "approval-record.json");
|
|
117570
117704
|
const record = await approvePlan2({ planPath, expectedDigest: resolvedDigest, actor, outputPath: approvalPath });
|
|
117571
117705
|
if (hasJson) {
|
|
117572
117706
|
console.log(JSON.stringify(record, null, 2));
|