@orkestrel/scaffold 0.0.70 → 0.0.72

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 (67) hide show
  1. package/dist/bin/main.js +8 -8
  2. package/dist/bin/main.js.map +1 -1
  3. package/dist/host/CLAUDE.md +3 -3
  4. package/dist/host/agents/orchestration.md +66 -32
  5. package/dist/host/agents/skills/enterprise-bootstrap/references/bootstrap-reference.md +36 -6
  6. package/dist/host/agents/skills/enterprise-bootstrap/references/color-modes.md +3 -2
  7. package/dist/host/agents/skills/enterprise-bootstrap/references/components.md +1 -1
  8. package/dist/host/agents/skills/orkestrel-build-application/SKILL.md +18 -1
  9. package/dist/host/agents/skills/orkestrel-debrief/SKILL.md +1 -1
  10. package/dist/host/agents/skills/orkestrel-debrief/references/instruction-audit.md +2 -4
  11. package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +12 -9
  12. package/dist/host/agents/skills/orkestrel-falsify/references/brief.md +16 -8
  13. package/dist/host/agents/skills/orkestrel-falsify/references/reconcile.md +2 -2
  14. package/dist/host/agents/skills/orkestrel-harden-package/SKILL.md +1 -1
  15. package/dist/host/agents/skills/orkestrel-polish-surface/SKILL.md +2 -1
  16. package/dist/host/agents/skills/orkestrel-prove-journey/SKILL.md +19 -8
  17. package/dist/host/agents/skills/orkestrel-prove-journey/references/layer.md +16 -15
  18. package/dist/host/agents/skills/orkestrel-prove-journey/references/statechart.md +5 -2
  19. package/dist/host/agents/skills/orkestrel-prove-journey/references/styles.md +5 -1
  20. package/dist/host/agents/templates/brief.md +4 -3
  21. package/dist/host/agents/transports/claude.md +13 -6
  22. package/dist/host/agents/transports/codex.md +2 -2
  23. package/dist/host/agents/transports/cursor.md +85 -0
  24. package/dist/host/claude/agents/application.md +5 -6
  25. package/dist/host/claude/agents/builder.md +3 -13
  26. package/dist/host/claude/agents/checker.md +9 -2
  27. package/dist/host/claude/agents/distiller.md +37 -0
  28. package/dist/host/claude/agents/grok.md +9 -56
  29. package/dist/host/claude/agents/{implementer.md → opus.md} +8 -9
  30. package/dist/host/claude/agents/orkestrel.md +14 -7
  31. package/dist/host/claude/agents/planner.md +12 -5
  32. package/dist/host/claude/agents/researcher.md +7 -0
  33. package/dist/host/claude/agents/reviewer.md +14 -7
  34. package/dist/host/claude/agents/scout.md +8 -1
  35. package/dist/host/claude/agents/sol.md +5 -5
  36. package/dist/host/claude/rules/documentation.md +1 -0
  37. package/dist/host/claude/rules/writing.md +27 -24
  38. package/dist/host/claude/skills/orkestrel-build-application/SKILL.md +1 -1
  39. package/dist/host/codex/agents/analyst.toml +10 -4
  40. package/dist/host/codex/agents/application.toml +5 -6
  41. package/dist/host/codex/agents/builder.toml +5 -5
  42. package/dist/host/codex/agents/checker.toml +4 -0
  43. package/dist/host/codex/agents/distiller.toml +28 -0
  44. package/dist/host/codex/agents/grok.toml +27 -19
  45. package/dist/host/codex/agents/opus.toml +5 -4
  46. package/dist/host/codex/agents/orkestrel.toml +5 -0
  47. package/dist/host/codex/agents/planner.toml +10 -0
  48. package/dist/host/codex/agents/researcher.toml +4 -0
  49. package/dist/host/codex/agents/reviewer.toml +12 -2
  50. package/dist/host/codex/agents/scout.toml +5 -2
  51. package/dist/host/codex/agents/{implementer.toml → sol.toml} +5 -6
  52. package/dist/host/codex/agents/verifier.toml +3 -0
  53. package/dist/host/codex/config.toml +2 -2
  54. package/dist/host/configs/policy.ts +5 -2
  55. package/dist/host/guides/scaffold.md +19 -8
  56. package/dist/host/manifest.json +75 -57
  57. package/dist/src/core/index.cjs +456 -357
  58. package/dist/src/core/index.cjs.map +1 -1
  59. package/dist/src/core/index.d.cts +22 -21
  60. package/dist/src/core/index.d.ts +22 -21
  61. package/dist/src/core/index.js +457 -358
  62. package/dist/src/core/index.js.map +1 -1
  63. package/dist/src/server/index.cjs +4 -4
  64. package/dist/src/server/index.cjs.map +1 -1
  65. package/dist/src/server/index.js +5 -5
  66. package/dist/src/server/index.js.map +1 -1
  67. package/package.json +9 -9
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { andOf, arrayOf, attempt, boundsOf, compareValues, holds, isArray, isBoolean, isError, isFunction, isInteger, isRecord, isString, parseJSON, parseJSONAs, parseStringField, recordOf, stringOf, unionOf, whereOf } from "@orkestrel/contract";
2
+ import { andOf, arrayOf, attempt, boundsOf, compareValues, holds, isArray, isBoolean, isError, isFunction, isInteger, isNumber, isRecord, isString, parseJSON, parseJSONAs, parseStringField, recordOf, stringOf, unionOf, whereOf } from "@orkestrel/contract";
3
3
  import { CANON_PATHS, CATALOG_AGENT_PATH, CATALOG_CLOSING_MARKER, CATALOG_OPENING_MARKER, CONTROL_CHARACTER_PATTERN, DEPENDENCY_NAME_PATTERN, EXECUTABLE_PATHS, HOST_INVENTORY_PATH, HOST_PATHS, MAX_ARTIFACT_BYTES, MAX_COLLECTION_ITEMS, MAX_DEPENDENCY_NAME_LENGTH, MAX_MANIFEST_BYTES, MAX_PATH_LENGTH, MAX_RANGE_LENGTH, MAX_REGISTRY_BYTES, MAX_TOTAL_ARTIFACT_BYTES, MAX_TOTAL_REGISTRY_BYTES, REFERENCE_PATHS, ScaffoldError, bytesToHex, catalogToLayers, cloneValue, compareVersions, computeBytes, contentToHex, extractRangeMajor, extractVersion, inferGroup, isAudit, isCatalogEntry, isCollection, isDependency, isDependencyName, isFloorPath, isHex, isManifestScript, isMirror, isPath, isPlan, isRetainedPath, isSnapshot, matchesDriftReachability, matchesRange, nameToGuide, planToFindings, replaceManifestRanges, replaceManifestScripts } from "../core/index.js";
4
4
  import { createHash, randomUUID } from "node:crypto";
5
5
  import { chmodSync, closeSync, constants, copyFileSync, fstatSync, linkSync, lstatSync, mkdirSync, mkdtempSync, openSync, opendirSync, readSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, rmdirSync, writeFileSync } from "node:fs";
@@ -1001,7 +1001,7 @@ function pruneEmptiedDirectories(target, removed) {
1001
1001
  * ```
1002
1002
  */
1003
1003
  function readFileHex(root, path, limit = MAX_ARTIFACT_BYTES) {
1004
- if (!Number.isSafeInteger(limit) || limit < 0 || limit > MAX_ARTIFACT_BYTES) throw new ScaffoldError("INVALID", `Byte limit is outside the artifact ceiling at ${path}`, {
1004
+ if (!isNumber(limit) || !Number.isSafeInteger(limit) || limit < 0 || limit > MAX_ARTIFACT_BYTES) throw new ScaffoldError("INVALID", `Byte limit is outside the artifact ceiling at ${path}`, {
1005
1005
  root,
1006
1006
  path,
1007
1007
  limit
@@ -2736,7 +2736,7 @@ var WriteTransaction = class {
2736
2736
  }
2737
2737
  #preflight() {
2738
2738
  for (const anchor of this.#created) {
2739
- if (typeof anchor === "string") throw new ScaffoldError("WRITE", `The directory at ${anchor} changed while writing.`, {
2739
+ if (isString(anchor)) throw new ScaffoldError("WRITE", `The directory at ${anchor} changed while writing.`, {
2740
2740
  target: this.#target,
2741
2741
  path: anchor
2742
2742
  });
@@ -2800,7 +2800,7 @@ var WriteTransaction = class {
2800
2800
  if (!cleared.success) residue.push(cleared.error);
2801
2801
  }
2802
2802
  for (const created of [...this.#created].reverse()) {
2803
- const path = typeof created === "string" ? created : created.path;
2803
+ const path = isString(created) ? created : created.path;
2804
2804
  const removed = attempt(() => rmdirSync(path));
2805
2805
  if (!removed.success && !matchesMissingPath(removed.error)) residue.push(removed.error);
2806
2806
  }
@@ -4197,7 +4197,7 @@ var Upstream = class {
4197
4197
  const edges = [];
4198
4198
  for (const [name, range] of Object.entries(declared)) {
4199
4199
  if (edges.length >= MAX_COLLECTION_ITEMS) break;
4200
- if (typeof range !== "string" || range.length === 0 || range.length > MAX_RANGE_LENGTH) continue;
4200
+ if (!isString(range) || range.length === 0 || range.length > MAX_RANGE_LENGTH) continue;
4201
4201
  if (CONTROL_CHARACTER_PATTERN.test(name) || CONTROL_CHARACTER_PATTERN.test(range)) continue;
4202
4202
  if (name.length === 0 || name.length > MAX_DEPENDENCY_NAME_LENGTH) continue;
4203
4203
  edges.push({