@orkestrel/scaffold 0.0.132 → 0.0.134
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/dist/agents/skills/orkestrel-dispatch/scripts/bench.js +61 -96
- package/dist/agents/skills/orkestrel-dispatch/scripts/brief.js +48 -76
- package/dist/agents/skills/orkestrel-dispatch/scripts/chain.js +27 -66
- package/dist/agents/skills/orkestrel-dispatch/scripts/cite.js +31 -64
- package/dist/agents/skills/orkestrel-dispatch/scripts/launch.js +43 -57
- package/dist/agents/skills/orkestrel-dispatch/scripts/login.js +43 -86
- package/dist/agents/skills/orkestrel-dispatch/scripts/patch.js +68 -104
- package/dist/agents/skills/orkestrel-dispatch/scripts/result.js +35 -69
- package/dist/agents/skills/orkestrel-dispatch/scripts/sweep.js +47 -84
- package/dist/agents/skills/orkestrel-falsify/scripts/mutate.js +134 -116
- package/dist/agents/skills/orkestrel-harden/scripts/discovery.js +38 -90
- package/dist/agents/skills/orkestrel-harden/scripts/interleave.js +39 -103
- package/dist/agents/skills/orkestrel-harden/scripts/measure.js +40 -89
- package/dist/agents/skills/orkestrel-harden/scripts/titles.js +41 -87
- package/dist/agents/skills/orkestrel-parallel/scripts/cases.js +43 -88
- package/dist/agents/skills/orkestrel-parallel/scripts/lane.js +1018 -194
- package/dist/agents/skills/orkestrel-publish/scripts/compare.js +40 -60
- package/dist/agents/skills/orkestrel-publish/scripts/pins.js +47 -81
- package/dist/agents/skills/orkestrel-publish/scripts/steps.js +66 -104
- package/dist/agents/skills/orkestrel-publish/scripts/swap.js +74 -88
- package/dist/agents/skills/orkestrel-publish/scripts/wave.js +95 -108
- package/dist/agents/skills/orkestrel-publish/scripts/window.js +55 -96
- package/dist/agents/skills/orkestrel-scout/scripts/map.js +54 -101
- package/dist/bin/main.js +30 -6
- package/dist/bin/main.js.map +1 -1
- package/dist/host/agents/orchestration.md +1 -0
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/bench.ts +81 -97
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/brief.ts +64 -72
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/chain.ts +41 -63
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/cite.ts +56 -79
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/launch.ts +61 -74
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/login.ts +59 -89
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/patch.ts +87 -106
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/result.ts +57 -76
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/sweep.ts +73 -88
- package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +2 -2
- package/dist/host/agents/skills/orkestrel-falsify/scripts/mutate.ts +167 -119
- package/dist/host/agents/skills/orkestrel-harden/references/methods.md +1 -1
- package/dist/host/agents/skills/orkestrel-harden/scripts/discovery.ts +58 -75
- package/dist/host/agents/skills/orkestrel-harden/scripts/interleave.ts +55 -99
- package/dist/host/agents/skills/orkestrel-harden/scripts/measure.ts +59 -90
- package/dist/host/agents/skills/orkestrel-harden/scripts/titles.ts +60 -80
- package/dist/host/agents/skills/orkestrel-parallel/SKILL.md +4 -4
- package/dist/host/agents/skills/orkestrel-parallel/scripts/cases.ts +71 -108
- package/dist/host/agents/skills/orkestrel-parallel/scripts/lane.ts +1288 -239
- package/dist/host/agents/skills/orkestrel-publish/references/wave.md +10 -6
- package/dist/host/agents/skills/orkestrel-publish/scripts/compare.ts +58 -79
- package/dist/host/agents/skills/orkestrel-publish/scripts/pins.ts +66 -87
- package/dist/host/agents/skills/orkestrel-publish/scripts/steps.ts +84 -102
- package/dist/host/agents/skills/orkestrel-publish/scripts/swap.ts +92 -99
- package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +130 -126
- package/dist/host/agents/skills/orkestrel-publish/scripts/window.ts +82 -120
- package/dist/host/agents/skills/orkestrel-scout/SKILL.md +3 -3
- package/dist/host/agents/skills/orkestrel-scout/scripts/map.ts +85 -112
- package/dist/host/claude/agents/orkestrel.md +54 -54
- package/dist/host/claude/rules/documentation.md +1 -1
- package/dist/host/claude/rules/patterns.md +5 -4
- package/dist/host/claude/rules/styles.md +1 -1
- package/dist/host/claude/rules/tests.md +8 -3
- package/dist/host/claude/rules/workspace.md +47 -35
- package/dist/host/configs/helpers.ts +40 -15
- package/dist/host/dotfiles/oxlintrc.json +62 -0
- package/dist/host/guides/browser.md +1 -1
- package/dist/host/guides/form.md +79 -4
- package/dist/host/guides/queue.md +3 -1
- package/dist/host/guides/scaffold.md +95 -67
- package/dist/host/guides/table.md +20 -6
- package/dist/host/guides/test.md +342 -202
- package/dist/host/guides/workflow.md +4 -2
- package/dist/host/manifest.json +48 -48
- package/dist/host/tests/config.test.ts +201 -11
- package/dist/host/tests/policy.test.ts +15 -22
- package/dist/host/tests/setupPolicy.ts +43 -36
- package/dist/src/core/index.cjs +194 -97
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +27 -13
- package/dist/src/core/index.d.ts +27 -13
- package/dist/src/core/index.js +192 -97
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +8 -9
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +1 -1
- package/dist/src/server/index.d.ts +1 -1
- package/dist/src/server/index.js +8 -9
- package/dist/src/server/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1021,7 +1021,7 @@ function listCanonPaths(target, groups) {
|
|
|
1021
1021
|
*
|
|
1022
1022
|
* @remarks
|
|
1023
1023
|
* The population sits under `configs/src` and `configs/app`, and the widest blueprint
|
|
1024
|
-
* compiles it: every environment on both axes, `bin`, `styles`, `themes`, `showcase`,
|
|
1024
|
+
* compiles it: every environment on both axes, `bin`, `reporter`, `styles`, `themes`, `showcase`,
|
|
1025
1025
|
* `journey`, and each framework on both axes. A wrapper the plan claims pairs with its
|
|
1026
1026
|
* artifact, and the rest report `foreign`, which lets the deletion verb take the wrappers
|
|
1027
1027
|
* an environment left behind.
|
|
@@ -1047,6 +1047,7 @@ function listWrapperPaths(target, groups) {
|
|
|
1047
1047
|
axes: _src_core.AXES
|
|
1048
1048
|
})),
|
|
1049
1049
|
bin: true,
|
|
1050
|
+
reporter: true,
|
|
1050
1051
|
styles: true,
|
|
1051
1052
|
themes: true,
|
|
1052
1053
|
showcase: true,
|
|
@@ -1091,8 +1092,6 @@ function pruneEmptiedDirectories(target, removed) {
|
|
|
1091
1092
|
return [...new Set(Iterator.from(removed).flatMap((path) => listAncestors(path).slice(1, -1)).toArray())].sort((left, right) => (0, _orkestrel_contract.comparePrimitives)(right.split("/").length, left.split("/").length) || (0, _orkestrel_contract.comparePrimitives)(left, right)).flatMap((candidate) => {
|
|
1092
1093
|
const directory = resolveContainedPath(target, candidate);
|
|
1093
1094
|
if (directory === void 0 || !isPhysicalDirectory(directory)) return [];
|
|
1094
|
-
const entries = (0, _orkestrel_contract.attempt)(() => (0, node_fs.readdirSync)(directory));
|
|
1095
|
-
if (!entries.success || entries.value.length > 0) return [];
|
|
1096
1095
|
return (0, _orkestrel_contract.attempt)(() => (0, node_fs.rmdirSync)(directory)).success ? [candidate] : [];
|
|
1097
1096
|
});
|
|
1098
1097
|
}
|
|
@@ -1941,7 +1940,7 @@ function readSurfaceCandidate(root, loader) {
|
|
|
1941
1940
|
const owner = name.replace(/^@orkestrel\//u, "");
|
|
1942
1941
|
const guide = readSurfaceFile(root, owner, "candidate", loader);
|
|
1943
1942
|
const source = (0, node_path.join)(root, "src");
|
|
1944
|
-
if (guide === void 0 && !isPhysicalDirectory(source)) throw new _src_core.ScaffoldError("TARGET", `Surface candidate ${JSON.stringify(root.slice(0, 512))} has neither ${JSON.stringify(`guides/${owner}.md`)} nor src
|
|
1943
|
+
if (guide === void 0 && !isPhysicalDirectory(source)) throw new _src_core.ScaffoldError("TARGET", `Surface candidate ${JSON.stringify(root.slice(0, 512))} publishes no surface: it has neither ${JSON.stringify(`guides/${owner}.md`)} nor src/, as an app-only workspace has neither. Its test:policy surface rule enforces fleet name ownership over its exports, so run npm run test:policy there; add its guide or src/ only when the package is meant to publish names.`, { root });
|
|
1945
1944
|
const reflection = readSurfaceModule(loader);
|
|
1946
1945
|
const files = Object.fromEntries(listFiles(source).filter((file) => file.endsWith(".ts")).map((file) => {
|
|
1947
1946
|
const text = readFileText(source, file);
|
|
@@ -3066,7 +3065,7 @@ var WriteTransaction = class {
|
|
|
3066
3065
|
const destination = (0, node_path.resolve)(path);
|
|
3067
3066
|
const { anchor: located, missing } = this.#locate(destination);
|
|
3068
3067
|
const created = [];
|
|
3069
|
-
for (const segment of
|
|
3068
|
+
for (const segment of missing.toReversed()) {
|
|
3070
3069
|
const anchor = created.at(-1) ?? located;
|
|
3071
3070
|
if (!matchesAnchor(anchor)) throw new _src_core.ScaffoldError("WRITE", `The directory at ${anchor.path} changed while writing.`, {
|
|
3072
3071
|
path: destination,
|
|
@@ -3142,10 +3141,10 @@ var WriteTransaction = class {
|
|
|
3142
3141
|
(0, node_fs.renameSync)(expectation.path, backup);
|
|
3143
3142
|
}
|
|
3144
3143
|
#recover(promoted, taken) {
|
|
3145
|
-
const restoreFailures = [...
|
|
3144
|
+
const restoreFailures = [...taken.toReversed().flatMap((path) => {
|
|
3146
3145
|
const restored = (0, _orkestrel_contract.attempt)(() => (0, node_fs.renameSync)(this.#resolve(this.#backup, path), this.#expectation(path).path));
|
|
3147
3146
|
return restored.success ? [] : [restored.error];
|
|
3148
|
-
}), ...
|
|
3147
|
+
}), ...promoted.toReversed().flatMap((path) => {
|
|
3149
3148
|
const expectation = this.#expectation(path);
|
|
3150
3149
|
const restored = (0, _orkestrel_contract.attempt)(() => {
|
|
3151
3150
|
if (expectation.shape === "absent") {
|
|
@@ -3161,7 +3160,7 @@ var WriteTransaction = class {
|
|
|
3161
3160
|
force: true
|
|
3162
3161
|
})) : void 0;
|
|
3163
3162
|
const clearFailures = cleared === void 0 || cleared.success ? [] : [cleared.error];
|
|
3164
|
-
const removeFailures =
|
|
3163
|
+
const removeFailures = this.#created.toReversed().flatMap((created) => {
|
|
3165
3164
|
const path = (0, _orkestrel_contract.isString)(created) ? created : created.path;
|
|
3166
3165
|
const removed = (0, _orkestrel_contract.attempt)(() => (0, node_fs.rmdirSync)(path));
|
|
3167
3166
|
return !removed.success && !matchesMissingPath(removed.error) ? [removed.error] : [];
|
|
@@ -4674,7 +4673,7 @@ var Upstream = class {
|
|
|
4674
4673
|
url,
|
|
4675
4674
|
count: names.length
|
|
4676
4675
|
});
|
|
4677
|
-
return
|
|
4676
|
+
return names.toSorted();
|
|
4678
4677
|
}
|
|
4679
4678
|
#latest(content) {
|
|
4680
4679
|
const parsed = (0, _orkestrel_contract.parseJSON)(content);
|