skill-family-engineering-kit 0.3.0 → 0.4.0
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/CHANGELOG.md +21 -0
- package/CHANGELOG.zh-CN.md +21 -0
- package/README.md +11 -12
- package/README.zh-CN.md +11 -12
- package/candidate/adoption-cli.mjs +67 -0
- package/candidate/adoption-mechanisms.mjs +69 -0
- package/candidate/index.mjs +3 -0
- package/candidate/profile-bundle.mjs +464 -15
- package/candidate/projection-bundle-cli.mjs +18 -0
- package/docs/agents/capability-catalog.en.json +1746 -1562
- package/docs/agents/capability-catalog.json +1029 -930
- package/docs/agents/capability-catalog.zh-CN.json +1746 -1562
- package/docs/architecture/index.html +10 -3
- package/docs/en/architecture/index.html +12 -3
- package/docs/public/status/index.html +3 -3
- package/docs/reference/api/harness/index.html +396 -1
- package/docs/search/search_index.json +1 -1
- package/package.json +3 -3
- package/release-notes/0.4.0.yaml +23 -0
- package/src/adopt-plan.mjs +26 -1
- package/src/index.mjs +5 -2
- package/src/migration.mjs +121 -1
- package/src/projection.mjs +1152 -266
|
@@ -15,6 +15,8 @@ const USAGE = [
|
|
|
15
15
|
" --consumer-schema <relative-path> (repeatable)",
|
|
16
16
|
" --source-repository <identity>",
|
|
17
17
|
" --source-base-commit <identity>",
|
|
18
|
+
" [--fixed-set-release-receipt <absolute-path>]",
|
|
19
|
+
" [--fixed-set-candidate-root <absolute-path>]",
|
|
18
20
|
].join("\n");
|
|
19
21
|
|
|
20
22
|
function fail(message) {
|
|
@@ -33,12 +35,20 @@ for (let index = 0; index < args.length; index += 1) {
|
|
|
33
35
|
case "--consumer-schema":
|
|
34
36
|
case "--source-repository":
|
|
35
37
|
case "--source-base-commit":
|
|
38
|
+
case "--fixed-set-release-receipt":
|
|
39
|
+
case "--fixed-set-candidate-root":
|
|
36
40
|
if (next === undefined) fail(`missing value for ${flag}`);
|
|
37
41
|
index += 1;
|
|
38
42
|
if (flag === "--consumer-schema") options.consumerSchemaPaths.push(next);
|
|
39
43
|
else if (flag === "--target-prefix") options.targetPrefix = next;
|
|
40
44
|
else if (flag === "--consumer-schema-root") options.consumerSchemaRoot = next;
|
|
41
45
|
else if (flag === "--source-repository") options.sourceRepository = next;
|
|
46
|
+
else if (flag === "--fixed-set-release-receipt") {
|
|
47
|
+
options.fixedSetCandidate = { ...(options.fixedSetCandidate ?? {}), releaseReceiptPath: next };
|
|
48
|
+
}
|
|
49
|
+
else if (flag === "--fixed-set-candidate-root") {
|
|
50
|
+
options.fixedSetCandidate = { ...(options.fixedSetCandidate ?? {}), root: next };
|
|
51
|
+
}
|
|
42
52
|
else options.sourceBaseCommit = next;
|
|
43
53
|
break;
|
|
44
54
|
default:
|
|
@@ -54,6 +64,14 @@ if (options.consumerSchemaPaths.length === 0) {
|
|
|
54
64
|
}
|
|
55
65
|
if (!options.sourceRepository) fail("--source-repository is required");
|
|
56
66
|
if (!options.sourceBaseCommit) fail("--source-base-commit is required");
|
|
67
|
+
if (options.fixedSetCandidate) {
|
|
68
|
+
if (!path.isAbsolute(options.fixedSetCandidate.releaseReceiptPath ?? "")) {
|
|
69
|
+
fail("--fixed-set-release-receipt must be an absolute path");
|
|
70
|
+
}
|
|
71
|
+
if (!path.isAbsolute(options.fixedSetCandidate.root ?? "")) {
|
|
72
|
+
fail("--fixed-set-candidate-root must be an absolute path");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
57
75
|
|
|
58
76
|
try {
|
|
59
77
|
const { manifest } = await buildQuickstartProfileProjection(options);
|