@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
|
@@ -962,7 +962,7 @@ export declare function listFiles(root: string): readonly string[];
|
|
|
962
962
|
*
|
|
963
963
|
* @remarks
|
|
964
964
|
* The population sits under `configs/src` and `configs/app`, and the widest blueprint
|
|
965
|
-
* compiles it: every environment on both axes, `bin`, `styles`, `themes`, `showcase`,
|
|
965
|
+
* compiles it: every environment on both axes, `bin`, `reporter`, `styles`, `themes`, `showcase`,
|
|
966
966
|
* `journey`, and each framework on both axes. A wrapper the plan claims pairs with its
|
|
967
967
|
* artifact, and the rest report `foreign`, which lets the deletion verb take the wrappers
|
|
968
968
|
* an environment left behind.
|
|
@@ -962,7 +962,7 @@ export declare function listFiles(root: string): readonly string[];
|
|
|
962
962
|
*
|
|
963
963
|
* @remarks
|
|
964
964
|
* The population sits under `configs/src` and `configs/app`, and the widest blueprint
|
|
965
|
-
* compiles it: every environment on both axes, `bin`, `styles`, `themes`, `showcase`,
|
|
965
|
+
* compiles it: every environment on both axes, `bin`, `reporter`, `styles`, `themes`, `showcase`,
|
|
966
966
|
* `journey`, and each framework on both axes. A wrapper the plan claims pairs with its
|
|
967
967
|
* artifact, and the rest report `foreign`, which lets the deletion verb take the wrappers
|
|
968
968
|
* an environment left behind.
|
package/dist/src/server/index.js
CHANGED
|
@@ -1020,7 +1020,7 @@ function listCanonPaths(target, groups) {
|
|
|
1020
1020
|
*
|
|
1021
1021
|
* @remarks
|
|
1022
1022
|
* The population sits under `configs/src` and `configs/app`, and the widest blueprint
|
|
1023
|
-
* compiles it: every environment on both axes, `bin`, `styles`, `themes`, `showcase`,
|
|
1023
|
+
* compiles it: every environment on both axes, `bin`, `reporter`, `styles`, `themes`, `showcase`,
|
|
1024
1024
|
* `journey`, and each framework on both axes. A wrapper the plan claims pairs with its
|
|
1025
1025
|
* artifact, and the rest report `foreign`, which lets the deletion verb take the wrappers
|
|
1026
1026
|
* an environment left behind.
|
|
@@ -1046,6 +1046,7 @@ function listWrapperPaths(target, groups) {
|
|
|
1046
1046
|
axes: AXES
|
|
1047
1047
|
})),
|
|
1048
1048
|
bin: true,
|
|
1049
|
+
reporter: true,
|
|
1049
1050
|
styles: true,
|
|
1050
1051
|
themes: true,
|
|
1051
1052
|
showcase: true,
|
|
@@ -1090,8 +1091,6 @@ function pruneEmptiedDirectories(target, removed) {
|
|
|
1090
1091
|
return [...new Set(Iterator.from(removed).flatMap((path) => listAncestors(path).slice(1, -1)).toArray())].sort((left, right) => comparePrimitives(right.split("/").length, left.split("/").length) || comparePrimitives(left, right)).flatMap((candidate) => {
|
|
1091
1092
|
const directory = resolveContainedPath(target, candidate);
|
|
1092
1093
|
if (directory === void 0 || !isPhysicalDirectory(directory)) return [];
|
|
1093
|
-
const entries = attempt(() => readdirSync(directory));
|
|
1094
|
-
if (!entries.success || entries.value.length > 0) return [];
|
|
1095
1094
|
return attempt(() => rmdirSync(directory)).success ? [candidate] : [];
|
|
1096
1095
|
});
|
|
1097
1096
|
}
|
|
@@ -1940,7 +1939,7 @@ function readSurfaceCandidate(root, loader) {
|
|
|
1940
1939
|
const owner = name.replace(/^@orkestrel\//u, "");
|
|
1941
1940
|
const guide = readSurfaceFile(root, owner, "candidate", loader);
|
|
1942
1941
|
const source = join(root, "src");
|
|
1943
|
-
if (guide === void 0 && !isPhysicalDirectory(source)) throw new ScaffoldError("TARGET", `Surface candidate ${JSON.stringify(root.slice(0, 512))} has neither ${JSON.stringify(`guides/${owner}.md`)} nor src
|
|
1942
|
+
if (guide === void 0 && !isPhysicalDirectory(source)) throw new 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 });
|
|
1944
1943
|
const reflection = readSurfaceModule(loader);
|
|
1945
1944
|
const files = Object.fromEntries(listFiles(source).filter((file) => file.endsWith(".ts")).map((file) => {
|
|
1946
1945
|
const text = readFileText(source, file);
|
|
@@ -3065,7 +3064,7 @@ var WriteTransaction = class {
|
|
|
3065
3064
|
const destination = resolve(path);
|
|
3066
3065
|
const { anchor: located, missing } = this.#locate(destination);
|
|
3067
3066
|
const created = [];
|
|
3068
|
-
for (const segment of
|
|
3067
|
+
for (const segment of missing.toReversed()) {
|
|
3069
3068
|
const anchor = created.at(-1) ?? located;
|
|
3070
3069
|
if (!matchesAnchor(anchor)) throw new ScaffoldError("WRITE", `The directory at ${anchor.path} changed while writing.`, {
|
|
3071
3070
|
path: destination,
|
|
@@ -3141,10 +3140,10 @@ var WriteTransaction = class {
|
|
|
3141
3140
|
renameSync(expectation.path, backup);
|
|
3142
3141
|
}
|
|
3143
3142
|
#recover(promoted, taken) {
|
|
3144
|
-
const restoreFailures = [...
|
|
3143
|
+
const restoreFailures = [...taken.toReversed().flatMap((path) => {
|
|
3145
3144
|
const restored = attempt(() => renameSync(this.#resolve(this.#backup, path), this.#expectation(path).path));
|
|
3146
3145
|
return restored.success ? [] : [restored.error];
|
|
3147
|
-
}), ...
|
|
3146
|
+
}), ...promoted.toReversed().flatMap((path) => {
|
|
3148
3147
|
const expectation = this.#expectation(path);
|
|
3149
3148
|
const restored = attempt(() => {
|
|
3150
3149
|
if (expectation.shape === "absent") {
|
|
@@ -3160,7 +3159,7 @@ var WriteTransaction = class {
|
|
|
3160
3159
|
force: true
|
|
3161
3160
|
})) : void 0;
|
|
3162
3161
|
const clearFailures = cleared === void 0 || cleared.success ? [] : [cleared.error];
|
|
3163
|
-
const removeFailures =
|
|
3162
|
+
const removeFailures = this.#created.toReversed().flatMap((created) => {
|
|
3164
3163
|
const path = isString(created) ? created : created.path;
|
|
3165
3164
|
const removed = attempt(() => rmdirSync(path));
|
|
3166
3165
|
return !removed.success && !matchesMissingPath(removed.error) ? [removed.error] : [];
|
|
@@ -4673,7 +4672,7 @@ var Upstream = class {
|
|
|
4673
4672
|
url,
|
|
4674
4673
|
count: names.length
|
|
4675
4674
|
});
|
|
4676
|
-
return
|
|
4675
|
+
return names.toSorted();
|
|
4677
4676
|
}
|
|
4678
4677
|
#latest(content) {
|
|
4679
4678
|
const parsed = parseJSON(content);
|