@orkestrel/scaffold 0.0.97 → 0.0.98

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 (40) hide show
  1. package/dist/agents/skills/orkestrel-dispatch/scripts/bench.js +1 -1
  2. package/dist/bin/main.js +2 -2
  3. package/dist/bin/main.js.map +1 -1
  4. package/dist/host/agents/orchestration.md +29 -26
  5. package/dist/host/agents/skills/orkestrel-dispatch/scripts/bench.ts +1 -1
  6. package/dist/host/agents/skills/orkestrel-publish/references/wave.md +1 -2
  7. package/dist/host/agents/transports/claude-cli.md +1 -1
  8. package/dist/host/agents/transports/cursor.md +4 -4
  9. package/dist/host/claude/AGENTS.md +10 -7
  10. package/dist/host/claude/agents/analyst.md +4 -4
  11. package/dist/host/claude/agents/astra.md +4 -4
  12. package/dist/host/claude/agents/builder.md +4 -4
  13. package/dist/host/claude/agents/checker.md +4 -4
  14. package/dist/host/claude/agents/distiller.md +4 -4
  15. package/dist/host/claude/agents/grok.md +4 -4
  16. package/dist/host/claude/agents/opus.md +1 -1
  17. package/dist/host/claude/agents/orkestrel.md +2 -2
  18. package/dist/host/claude/agents/planner.md +1 -1
  19. package/dist/host/claude/agents/researcher.md +4 -4
  20. package/dist/host/claude/agents/reviewer.md +1 -1
  21. package/dist/host/claude/agents/scout.md +4 -4
  22. package/dist/host/claude/agents/verifier.md +4 -4
  23. package/dist/host/claude/rules/styles.md +2 -1
  24. package/dist/host/claude/settings.json +5 -2
  25. package/dist/host/codex/agents/builder.toml +6 -6
  26. package/dist/host/guides/scaffold.md +9 -3
  27. package/dist/host/manifest.json +36 -24
  28. package/dist/host/scripts/browsers.sh +54 -0
  29. package/dist/host/scripts/codex.sh +0 -0
  30. package/dist/host/scripts/cursor.sh +0 -0
  31. package/dist/host/scripts/deps.sh +0 -0
  32. package/dist/host/scripts/npm.sh +111 -0
  33. package/dist/host/scripts/ollama.sh +0 -0
  34. package/dist/src/core/index.cjs +37 -9
  35. package/dist/src/core/index.cjs.map +1 -1
  36. package/dist/src/core/index.d.cts +20 -0
  37. package/dist/src/core/index.d.ts +20 -0
  38. package/dist/src/core/index.js +37 -10
  39. package/dist/src/core/index.js.map +1 -1
  40. package/package.json +2 -2
@@ -600,6 +600,26 @@ export declare function blueprintToMachinery(blueprint: Blueprint): ViteMachiner
600
600
  */
601
601
  export declare function blueprintToManifest(blueprint: Blueprint): string;
602
602
 
603
+ /**
604
+ * Compiles the browser projects' pre-bundled dependency list for a blueprint.
605
+ *
606
+ * @remarks
607
+ * A browser-mode run that discovers a runtime package mid-collection reloads the page, so the
608
+ * list names the test package, its browser entry, and every Orkestrel runtime package the
609
+ * blueprint declares or peers with, inline when the line fits the print width and stacked
610
+ * otherwise.
611
+ *
612
+ * @example
613
+ * ```ts
614
+ * import { blueprintToOptimizedDependencies, createBlueprint } from '@orkestrel/scaffold'
615
+ *
616
+ * const blueprint = createBlueprint('router', { src: ['core'] })
617
+ *
618
+ * blueprintToOptimizedDependencies(blueprint).includes("'@orkestrel/test/browser'") // true
619
+ * ```
620
+ */
621
+ export declare function blueprintToOptimizedDependencies(blueprint: Blueprint): string;
622
+
603
623
  /**
604
624
  * Compiles the blueprint-dependent orchestration artifacts.
605
625
  *
@@ -600,6 +600,26 @@ export declare function blueprintToMachinery(blueprint: Blueprint): ViteMachiner
600
600
  */
601
601
  export declare function blueprintToManifest(blueprint: Blueprint): string;
602
602
 
603
+ /**
604
+ * Compiles the browser projects' pre-bundled dependency list for a blueprint.
605
+ *
606
+ * @remarks
607
+ * A browser-mode run that discovers a runtime package mid-collection reloads the page, so the
608
+ * list names the test package, its browser entry, and every Orkestrel runtime package the
609
+ * blueprint declares or peers with, inline when the line fits the print width and stacked
610
+ * otherwise.
611
+ *
612
+ * @example
613
+ * ```ts
614
+ * import { blueprintToOptimizedDependencies, createBlueprint } from '@orkestrel/scaffold'
615
+ *
616
+ * const blueprint = createBlueprint('router', { src: ['core'] })
617
+ *
618
+ * blueprintToOptimizedDependencies(blueprint).includes("'@orkestrel/test/browser'") // true
619
+ * ```
620
+ */
621
+ export declare function blueprintToOptimizedDependencies(blueprint: Blueprint): string;
622
+
603
623
  /**
604
624
  * Compiles the blueprint-dependent orchestration artifacts.
605
625
  *
@@ -3,7 +3,7 @@ import { fillTemplate } from "@orkestrel/template";
3
3
  import { Emitter } from "@orkestrel/emitter";
4
4
  var package_default = {
5
5
  name: "@orkestrel/scaffold",
6
- version: "0.0.97",
6
+ version: "0.0.98",
7
7
  description: "Scaffold workspaces with commands: new, audit, repair, catalog, and overwrite.",
8
8
  keywords: [
9
9
  "audit",
@@ -114,7 +114,7 @@ var package_default = {
114
114
  "oxlint": "^1.87.0",
115
115
  "playwright": "^1.63.0",
116
116
  "typescript": "^6.0.3",
117
- "vite": "^8.3.3",
117
+ "vite": "^8.3.4",
118
118
  "vitest": "^4.1.11"
119
119
  },
120
120
  engines: { "node": ">=22.18.0" }
@@ -383,9 +383,11 @@ var WORKSPACE_OWNED_PATHS = Object.freeze([".gitignore"]);
383
383
  * that must run when a target invokes it belongs here the moment it is vendored.
384
384
  */
385
385
  var EXECUTABLE_PATHS = Object.freeze([
386
+ "scripts/browsers.sh",
386
387
  "scripts/codex.sh",
387
388
  "scripts/cursor.sh",
388
389
  "scripts/deps.sh",
390
+ "scripts/npm.sh",
389
391
  "scripts/ollama.sh"
390
392
  ]);
391
393
  /**
@@ -6244,6 +6246,37 @@ function blueprintToProjects(blueprint) {
6244
6246
  return projects;
6245
6247
  }
6246
6248
  /**
6249
+ * Compiles the browser projects' pre-bundled dependency list for a blueprint.
6250
+ *
6251
+ * @remarks
6252
+ * A browser-mode run that discovers a runtime package mid-collection reloads the page, so the
6253
+ * list names the test package, its browser entry, and every Orkestrel runtime package the
6254
+ * blueprint declares or peers with, inline when the line fits the print width and stacked
6255
+ * otherwise.
6256
+ *
6257
+ * @example
6258
+ * ```ts
6259
+ * import { blueprintToOptimizedDependencies, createBlueprint } from '@orkestrel/scaffold'
6260
+ *
6261
+ * const blueprint = createBlueprint('router', { src: ['core'] })
6262
+ *
6263
+ * blueprintToOptimizedDependencies(blueprint).includes("'@orkestrel/test/browser'") // true
6264
+ * ```
6265
+ */
6266
+ function blueprintToOptimizedDependencies(blueprint) {
6267
+ const names = [
6268
+ "@orkestrel/test",
6269
+ "@orkestrel/test/browser",
6270
+ ...[.../* @__PURE__ */ new Set([
6271
+ ...Object.hasOwn(blueprintToDevDependencies(blueprint), "@orkestrel/contract") ? ["@orkestrel/contract"] : [],
6272
+ ...blueprint.dependencies.map((dependency) => dependency.name),
6273
+ ...blueprint.peers.map((peer) => peer.name)
6274
+ ])].filter((name) => name.startsWith("@orkestrel/")).sort()
6275
+ ];
6276
+ const inline = `\tinclude: [${names.map((name) => `'${name}'`).join(", ")}],`;
6277
+ return matchesPrintWidth(inline) ? `const optimizeDeps = {\n${inline}\n}\n\n` : `const optimizeDeps = {\n\tinclude: [\n${names.map((name) => `\t\t'${name}',`).join("\n")}\n\t],\n}\n\n`;
6278
+ }
6279
+ /**
6247
6280
  * Compiles the root Vite and Vitest configuration for a blueprint.
6248
6281
  *
6249
6282
  * @param blueprint - The workspace specification.
@@ -6423,13 +6456,7 @@ ${projects.map((project) => `\t\t\t${project},`).join("\n")}
6423
6456
  imports: imports.length === 0 ? "" : `${imports.join("\n")}\n`,
6424
6457
  helpers: helpers.length === 0 ? "" : matchesPrintWidth(helperImport.trimEnd()) ? helperImport : `import {\n${helpers.map((helper) => `\t${helper},`).join("\n")}\n} from './configs/helpers.js'\n`,
6425
6458
  browsers: machinery.browser ? "import { resolveBrowser, resolvePinnedBrowser } from './configs/browsers.js'\n" : "",
6426
- options: (machinery.browser ? `const browserOptions = resolveBrowser(resolvePinnedBrowser(), process.platform, process.env)
6427
-
6428
- const optimizeDeps = {\n\tinclude: ${JSON.stringify([
6429
- "@orkestrel/test",
6430
- "@orkestrel/test/browser",
6431
- ...Object.hasOwn(blueprintToDevDependencies(blueprint), "@orkestrel/contract") || blueprint.dependencies.some((dependency) => dependency.name === "@orkestrel/contract") || blueprint.peers.some((peer) => peer.name === "@orkestrel/contract") ? ["@orkestrel/contract"] : []
6432
- ]).replaceAll("\"", "'").replaceAll(",", ", ")},\n}\n\n` : "") + (blueprint.journey && blueprint.app.includes("browser") ? "const capture = process.env.CAPTURE === '1'\n\n" : "") + ((blueprint.journey || blueprint.showcase) && blueprint.app.includes("browser") ? `const applications = {\n\tbrowser: appBrowser,\n${blueprintToFaces(blueprint).filter((extension) => extension.surface === "browser" && extension.axes.includes("app")).map((extension) => `\t${extension.name}: app${extension.name[0]?.toUpperCase()}${extension.name.slice(1)},\n`).join("")}}\n\n` : ""),
6459
+ options: (machinery.browser ? "const browserOptions = resolveBrowser(resolvePinnedBrowser(), process.platform, process.env)\n\n" + blueprintToOptimizedDependencies(blueprint) : "") + (blueprint.journey && blueprint.app.includes("browser") ? "const capture = process.env.CAPTURE === '1'\n\n" : "") + ((blueprint.journey || blueprint.showcase) && blueprint.app.includes("browser") ? `const applications = {\n\tbrowser: appBrowser,\n${blueprintToFaces(blueprint).filter((extension) => extension.surface === "browser" && extension.axes.includes("app")).map((extension) => `\t${extension.name}: app${extension.name[0]?.toUpperCase()}${extension.name.slice(1)},\n`).join("")}}\n\n` : ""),
6433
6460
  factories: body,
6434
6461
  projects: projectRows
6435
6462
  });
@@ -8678,6 +8705,6 @@ var Compiler = class {
8678
8705
  }
8679
8706
  };
8680
8707
  //#endregion
8681
- export { APP_BROWSER_DEV_DEPENDENCIES, APP_DEV_DEPENDENCIES, APP_MATRIX, APP_SERVER_DEV_DEPENDENCIES, ARTIFACT_TEMPLATES, AXES, BASE_DEV_DEPENDENCIES, BIN_CONFIGS, BIN_ENTRY_PATH, BROWSE_DEV_DEPENDENCIES, BROWSE_UPSTREAM, CANON_PATHS, CATALOG_AGENT_PATH, CATALOG_CLOSING_MARKER, CATALOG_OPENING_MARKER, CONFIG_TEMPLATES, CONFORMANCE_TEST_PATH, CONTROL_CHARACTER_PATTERN, Compiler, DECLARATION_DEV_DEPENDENCIES, DEFAULT_ENGINES, DEFAULT_VERSION, DEPENDENCY_NAME_PATTERN, DISTRIBUTION_TEST_PATH, ENGINES_PATTERN, ENVIRONMENTS, EXECUTABLE_PATHS, EXTRA_RANGE_PATTERN, FLOOR_RANGE_PATTERN, FOREIGN_NAME_PATTERN, FRAMEWORKS, FRAMEWORK_MATRIX, GLOBAL_SETUP_PATH, GROUPS, GUIDES_TEST_PATH, HEX_PATTERN, HOST_INVENTORY_PATH, HOST_PATHS, INTEGRATION_TEST_PATH, INVALID_PATH_CHARACTER_PATTERN, JOURNEY_CONFIG_PATH, MANIFEST_PATH, MAX_ARTIFACT_BYTES, MAX_ARTIFACT_HEX_LENGTH, MAX_AUDIT_FINDINGS, MAX_COLLECTION_ITEMS, MAX_DEPENDENCY_NAME_LENGTH, MAX_MANIFEST_BYTES, MAX_NAME_LENGTH, MAX_PATH_LENGTH, MAX_RANGE_LENGTH, MAX_REGISTRY_BYTES, MAX_SCRIPT_LENGTH, MAX_TOTAL_ARTIFACT_BYTES, MAX_TOTAL_REGISTRY_BYTES, MINIMUM_NODE_VERSION, MINIMUM_NPM_VERSION, NAME_PATTERN, ORCHESTRATION_PATH_NAMES, ORCHESTRATION_PATH_PREFIXES, ORKESTREL_RANGE_PATTERN, PRINT_WIDTH, REFERENCE_PATHS, RELEASE_PROOF_COMMAND, RESERVED_SHEET_NAMES, SEED_GUIDE_PATHS, SERVICE_SCRIPT_PATH, SERVICE_SETUP_PATH, SERVICE_TEST_INCLUDE, SHEET_ENTRY_NAME, SHOWCASE_CONFIG_PATH, SHOWCASE_DEV_DEPENDENCIES, SHOWCASE_PAGES_PATH, SKILLS_CONFIG_PATH, SOURCE_BROWSER_DEV_DEPENDENCIES, SRC_MATRIX, STYLES_DEV_DEPENDENCIES, STYLES_ENTRY_PATH, SURFACES, ScaffoldError, TAB_WIDTH, TARGET_SKILL_NAMES, THEMES_BARREL_PATH, THEMES_ENTRY_PATH, VERSION_PATTERN, WORKSPACE_DEV_ENGINES, WORKSPACE_OWNED_PATHS, applyOverrides, artifactToFinding, artifactToHex, artifactsToQuestions, blueprintToConfigArtifacts, blueprintToDevDependencies, blueprintToDocumentArtifacts, blueprintToExports, blueprintToFaces, blueprintToGuideArtifacts, blueprintToHostArtifacts, blueprintToMachinery, blueprintToManifest, blueprintToOrchestrationArtifacts, blueprintToProjects, blueprintToQuestions, blueprintToRootTsconfig, blueprintToRootVite, blueprintToScripts, blueprintToSheets, blueprintToSourceArtifacts, blueprintToTestArtifacts, blueprintToWritableScripts, bytesToHex, catalogToLayers, cloneValue, compareVersions, computeBytes, computeHash, contentToHex, createBlueprint, dependenciesToQuestions, extractRangeMajor, extractVersion, inferDrift, inferGroup, insertManifestDependencies, isArtifact, isAudit, isBlueprint, isBrowserExtension, isCanonPath, isCatalogEntry, isCollection, isCompilerHooks, isCompilerOptions, isContent, isDeferredPath, isDependency, isDependencyName, isEnvironment, isExtension, isFinding, isFloorPath, isGroup, isGroups, isHex, isManifestScript, isMirror, isOverride, isPath, isPlan, isQuestion, isRetainedPath, isScaffoldError, isSheetName, isSnapshot, isStylesExtension, isSurface, manifestToDependencies, manifestToName, matchesDriftReachability, matchesEngines, matchesOrchestrationPath, matchesPrintWidth, matchesRange, nameToGuide, overridesToQuestions, parseBlueprint, parseCompilerOptions, parseExtension, parseGroups, parseSnapshot, pathToCondition, planToFindings, planToHash, planToSummary, renderSkillPointer, replaceManifestRanges, replaceManifestScripts, replacePlanRanges, selectGroups, selectHostPaths, serializeTypeScriptString, srcToEntry, srcToExports, srcToRoot };
8708
+ export { APP_BROWSER_DEV_DEPENDENCIES, APP_DEV_DEPENDENCIES, APP_MATRIX, APP_SERVER_DEV_DEPENDENCIES, ARTIFACT_TEMPLATES, AXES, BASE_DEV_DEPENDENCIES, BIN_CONFIGS, BIN_ENTRY_PATH, BROWSE_DEV_DEPENDENCIES, BROWSE_UPSTREAM, CANON_PATHS, CATALOG_AGENT_PATH, CATALOG_CLOSING_MARKER, CATALOG_OPENING_MARKER, CONFIG_TEMPLATES, CONFORMANCE_TEST_PATH, CONTROL_CHARACTER_PATTERN, Compiler, DECLARATION_DEV_DEPENDENCIES, DEFAULT_ENGINES, DEFAULT_VERSION, DEPENDENCY_NAME_PATTERN, DISTRIBUTION_TEST_PATH, ENGINES_PATTERN, ENVIRONMENTS, EXECUTABLE_PATHS, EXTRA_RANGE_PATTERN, FLOOR_RANGE_PATTERN, FOREIGN_NAME_PATTERN, FRAMEWORKS, FRAMEWORK_MATRIX, GLOBAL_SETUP_PATH, GROUPS, GUIDES_TEST_PATH, HEX_PATTERN, HOST_INVENTORY_PATH, HOST_PATHS, INTEGRATION_TEST_PATH, INVALID_PATH_CHARACTER_PATTERN, JOURNEY_CONFIG_PATH, MANIFEST_PATH, MAX_ARTIFACT_BYTES, MAX_ARTIFACT_HEX_LENGTH, MAX_AUDIT_FINDINGS, MAX_COLLECTION_ITEMS, MAX_DEPENDENCY_NAME_LENGTH, MAX_MANIFEST_BYTES, MAX_NAME_LENGTH, MAX_PATH_LENGTH, MAX_RANGE_LENGTH, MAX_REGISTRY_BYTES, MAX_SCRIPT_LENGTH, MAX_TOTAL_ARTIFACT_BYTES, MAX_TOTAL_REGISTRY_BYTES, MINIMUM_NODE_VERSION, MINIMUM_NPM_VERSION, NAME_PATTERN, ORCHESTRATION_PATH_NAMES, ORCHESTRATION_PATH_PREFIXES, ORKESTREL_RANGE_PATTERN, PRINT_WIDTH, REFERENCE_PATHS, RELEASE_PROOF_COMMAND, RESERVED_SHEET_NAMES, SEED_GUIDE_PATHS, SERVICE_SCRIPT_PATH, SERVICE_SETUP_PATH, SERVICE_TEST_INCLUDE, SHEET_ENTRY_NAME, SHOWCASE_CONFIG_PATH, SHOWCASE_DEV_DEPENDENCIES, SHOWCASE_PAGES_PATH, SKILLS_CONFIG_PATH, SOURCE_BROWSER_DEV_DEPENDENCIES, SRC_MATRIX, STYLES_DEV_DEPENDENCIES, STYLES_ENTRY_PATH, SURFACES, ScaffoldError, TAB_WIDTH, TARGET_SKILL_NAMES, THEMES_BARREL_PATH, THEMES_ENTRY_PATH, VERSION_PATTERN, WORKSPACE_DEV_ENGINES, WORKSPACE_OWNED_PATHS, applyOverrides, artifactToFinding, artifactToHex, artifactsToQuestions, blueprintToConfigArtifacts, blueprintToDevDependencies, blueprintToDocumentArtifacts, blueprintToExports, blueprintToFaces, blueprintToGuideArtifacts, blueprintToHostArtifacts, blueprintToMachinery, blueprintToManifest, blueprintToOptimizedDependencies, blueprintToOrchestrationArtifacts, blueprintToProjects, blueprintToQuestions, blueprintToRootTsconfig, blueprintToRootVite, blueprintToScripts, blueprintToSheets, blueprintToSourceArtifacts, blueprintToTestArtifacts, blueprintToWritableScripts, bytesToHex, catalogToLayers, cloneValue, compareVersions, computeBytes, computeHash, contentToHex, createBlueprint, dependenciesToQuestions, extractRangeMajor, extractVersion, inferDrift, inferGroup, insertManifestDependencies, isArtifact, isAudit, isBlueprint, isBrowserExtension, isCanonPath, isCatalogEntry, isCollection, isCompilerHooks, isCompilerOptions, isContent, isDeferredPath, isDependency, isDependencyName, isEnvironment, isExtension, isFinding, isFloorPath, isGroup, isGroups, isHex, isManifestScript, isMirror, isOverride, isPath, isPlan, isQuestion, isRetainedPath, isScaffoldError, isSheetName, isSnapshot, isStylesExtension, isSurface, manifestToDependencies, manifestToName, matchesDriftReachability, matchesEngines, matchesOrchestrationPath, matchesPrintWidth, matchesRange, nameToGuide, overridesToQuestions, parseBlueprint, parseCompilerOptions, parseExtension, parseGroups, parseSnapshot, pathToCondition, planToFindings, planToHash, planToSummary, renderSkillPointer, replaceManifestRanges, replaceManifestScripts, replacePlanRanges, selectGroups, selectHostPaths, serializeTypeScriptString, srcToEntry, srcToExports, srcToRoot };
8682
8709
 
8683
8710
  //# sourceMappingURL=index.js.map