@orkestrel/scaffold 0.0.133 → 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.
Files changed (82) hide show
  1. package/dist/agents/skills/orkestrel-dispatch/scripts/bench.js +61 -96
  2. package/dist/agents/skills/orkestrel-dispatch/scripts/brief.js +48 -76
  3. package/dist/agents/skills/orkestrel-dispatch/scripts/chain.js +27 -66
  4. package/dist/agents/skills/orkestrel-dispatch/scripts/cite.js +31 -64
  5. package/dist/agents/skills/orkestrel-dispatch/scripts/launch.js +43 -57
  6. package/dist/agents/skills/orkestrel-dispatch/scripts/login.js +43 -86
  7. package/dist/agents/skills/orkestrel-dispatch/scripts/patch.js +68 -104
  8. package/dist/agents/skills/orkestrel-dispatch/scripts/result.js +35 -69
  9. package/dist/agents/skills/orkestrel-dispatch/scripts/sweep.js +47 -84
  10. package/dist/agents/skills/orkestrel-falsify/scripts/mutate.js +134 -116
  11. package/dist/agents/skills/orkestrel-harden/scripts/discovery.js +38 -90
  12. package/dist/agents/skills/orkestrel-harden/scripts/interleave.js +39 -103
  13. package/dist/agents/skills/orkestrel-harden/scripts/measure.js +40 -89
  14. package/dist/agents/skills/orkestrel-harden/scripts/titles.js +41 -87
  15. package/dist/agents/skills/orkestrel-parallel/scripts/cases.js +43 -88
  16. package/dist/agents/skills/orkestrel-parallel/scripts/lane.js +1018 -194
  17. package/dist/agents/skills/orkestrel-publish/scripts/compare.js +40 -60
  18. package/dist/agents/skills/orkestrel-publish/scripts/pins.js +47 -81
  19. package/dist/agents/skills/orkestrel-publish/scripts/steps.js +66 -104
  20. package/dist/agents/skills/orkestrel-publish/scripts/swap.js +74 -88
  21. package/dist/agents/skills/orkestrel-publish/scripts/wave.js +95 -108
  22. package/dist/agents/skills/orkestrel-publish/scripts/window.js +55 -96
  23. package/dist/agents/skills/orkestrel-scout/scripts/map.js +54 -101
  24. package/dist/bin/main.js +27 -3
  25. package/dist/bin/main.js.map +1 -1
  26. package/dist/host/agents/skills/orkestrel-dispatch/scripts/bench.ts +81 -97
  27. package/dist/host/agents/skills/orkestrel-dispatch/scripts/brief.ts +64 -72
  28. package/dist/host/agents/skills/orkestrel-dispatch/scripts/chain.ts +41 -63
  29. package/dist/host/agents/skills/orkestrel-dispatch/scripts/cite.ts +56 -79
  30. package/dist/host/agents/skills/orkestrel-dispatch/scripts/launch.ts +61 -74
  31. package/dist/host/agents/skills/orkestrel-dispatch/scripts/login.ts +59 -89
  32. package/dist/host/agents/skills/orkestrel-dispatch/scripts/patch.ts +87 -106
  33. package/dist/host/agents/skills/orkestrel-dispatch/scripts/result.ts +57 -76
  34. package/dist/host/agents/skills/orkestrel-dispatch/scripts/sweep.ts +73 -88
  35. package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +2 -2
  36. package/dist/host/agents/skills/orkestrel-falsify/scripts/mutate.ts +167 -119
  37. package/dist/host/agents/skills/orkestrel-harden/references/methods.md +1 -1
  38. package/dist/host/agents/skills/orkestrel-harden/scripts/discovery.ts +58 -75
  39. package/dist/host/agents/skills/orkestrel-harden/scripts/interleave.ts +55 -99
  40. package/dist/host/agents/skills/orkestrel-harden/scripts/measure.ts +59 -90
  41. package/dist/host/agents/skills/orkestrel-harden/scripts/titles.ts +60 -80
  42. package/dist/host/agents/skills/orkestrel-parallel/SKILL.md +4 -4
  43. package/dist/host/agents/skills/orkestrel-parallel/scripts/cases.ts +71 -108
  44. package/dist/host/agents/skills/orkestrel-parallel/scripts/lane.ts +1288 -239
  45. package/dist/host/agents/skills/orkestrel-publish/references/wave.md +10 -6
  46. package/dist/host/agents/skills/orkestrel-publish/scripts/compare.ts +58 -79
  47. package/dist/host/agents/skills/orkestrel-publish/scripts/pins.ts +66 -87
  48. package/dist/host/agents/skills/orkestrel-publish/scripts/steps.ts +84 -102
  49. package/dist/host/agents/skills/orkestrel-publish/scripts/swap.ts +92 -99
  50. package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +130 -126
  51. package/dist/host/agents/skills/orkestrel-publish/scripts/window.ts +82 -120
  52. package/dist/host/agents/skills/orkestrel-scout/SKILL.md +3 -3
  53. package/dist/host/agents/skills/orkestrel-scout/scripts/map.ts +85 -112
  54. package/dist/host/claude/agents/orkestrel.md +4 -4
  55. package/dist/host/claude/rules/documentation.md +1 -1
  56. package/dist/host/claude/rules/patterns.md +5 -4
  57. package/dist/host/claude/rules/styles.md +1 -1
  58. package/dist/host/claude/rules/tests.md +3 -3
  59. package/dist/host/claude/rules/workspace.md +47 -35
  60. package/dist/host/configs/helpers.ts +40 -15
  61. package/dist/host/dotfiles/oxlintrc.json +62 -0
  62. package/dist/host/guides/form.md +79 -4
  63. package/dist/host/guides/scaffold.md +93 -65
  64. package/dist/host/guides/table.md +20 -6
  65. package/dist/host/guides/test.md +9 -7
  66. package/dist/host/manifest.json +44 -44
  67. package/dist/host/tests/config.test.ts +201 -11
  68. package/dist/host/tests/policy.test.ts +14 -21
  69. package/dist/host/tests/setupPolicy.ts +43 -36
  70. package/dist/src/core/index.cjs +191 -93
  71. package/dist/src/core/index.cjs.map +1 -1
  72. package/dist/src/core/index.d.cts +27 -13
  73. package/dist/src/core/index.d.ts +27 -13
  74. package/dist/src/core/index.js +189 -93
  75. package/dist/src/core/index.js.map +1 -1
  76. package/dist/src/server/index.cjs +8 -9
  77. package/dist/src/server/index.cjs.map +1 -1
  78. package/dist/src/server/index.d.cts +1 -1
  79. package/dist/src/server/index.d.ts +1 -1
  80. package/dist/src/server/index.js +8 -9
  81. package/dist/src/server/index.js.map +1 -1
  82. package/package.json +2 -2
@@ -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.
@@ -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/. Add its guide or source directory before checking its claims.`, { root });
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 [...missing].reverse()) {
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 = [...[...taken].reverse().flatMap((path) => {
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
- }), ...[...promoted].reverse().flatMap((path) => {
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 = [...this.#created].reverse().flatMap((created) => {
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 [...names].sort();
4675
+ return names.toSorted();
4677
4676
  }
4678
4677
  #latest(content) {
4679
4678
  const parsed = parseJSON(content);