@orkestrel/scaffold 0.0.83 → 0.0.85

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.
@@ -379,7 +379,8 @@ export declare function blueprintToConfigArtifacts(blueprint: Blueprint): readon
379
379
  * environment on either axis, a sheet, or themes. A framework face counts without a clause of
380
380
  * its own, because a face is selected only on an axis that carries a browser environment.
381
381
  * A browser setup runtime alone receives nothing, because it renders no surface for `browse`
382
- * to drive.
382
+ * to drive. A workspace {@link BROWSE_UPSTREAM} names receives nothing either, because
383
+ * `@orkestrel/browser` depends on it at runtime and the declaration would close a cycle.
383
384
  *
384
385
  * A peer is declared here as well as under `peerDependencies`, because a peer is
385
386
  * not installed by the workspace that declares it and developing against one
@@ -890,10 +891,22 @@ export declare function blueprintToWritableScripts(blueprint: Blueprint): readon
890
891
  * @remarks
891
892
  * The package ships the `browse` binary, an MCP server that drives a rendered page and records
892
893
  * journeys, and `.claude/rules/quality.md` § Instruments names its registration.
893
- * `blueprintToDevDependencies` names the blueprints that receive it.
894
+ * `blueprintToDevDependencies` names the blueprints that receive it, and it withholds the
895
+ * dependency from the workspaces {@link BROWSE_UPSTREAM} lists.
894
896
  */
895
897
  export declare const BROWSE_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
896
898
 
899
+ /**
900
+ * Lists the packages `@orkestrel/browser` depends on at runtime, directly or transitively, frozen.
901
+ *
902
+ * @remarks
903
+ * A workspace this list names cannot declare `@orkestrel/browser`, because the declaration closes
904
+ * a dependency cycle through the browser package's runtime dependencies. The list is the closure
905
+ * of `dependencies` and `peerDependencies` over the installed manifests, sorted by name, and moves
906
+ * with the `@orkestrel/browser` pin.
907
+ */
908
+ export declare const BROWSE_UPSTREAM: readonly string[];
909
+
897
910
  /** Represents a browser framework and its physically occupied axes. */
898
911
  export declare interface BrowserExtension {
899
912
  readonly surface: 'browser';
@@ -379,7 +379,8 @@ export declare function blueprintToConfigArtifacts(blueprint: Blueprint): readon
379
379
  * environment on either axis, a sheet, or themes. A framework face counts without a clause of
380
380
  * its own, because a face is selected only on an axis that carries a browser environment.
381
381
  * A browser setup runtime alone receives nothing, because it renders no surface for `browse`
382
- * to drive.
382
+ * to drive. A workspace {@link BROWSE_UPSTREAM} names receives nothing either, because
383
+ * `@orkestrel/browser` depends on it at runtime and the declaration would close a cycle.
383
384
  *
384
385
  * A peer is declared here as well as under `peerDependencies`, because a peer is
385
386
  * not installed by the workspace that declares it and developing against one
@@ -890,10 +891,22 @@ export declare function blueprintToWritableScripts(blueprint: Blueprint): readon
890
891
  * @remarks
891
892
  * The package ships the `browse` binary, an MCP server that drives a rendered page and records
892
893
  * journeys, and `.claude/rules/quality.md` § Instruments names its registration.
893
- * `blueprintToDevDependencies` names the blueprints that receive it.
894
+ * `blueprintToDevDependencies` names the blueprints that receive it, and it withholds the
895
+ * dependency from the workspaces {@link BROWSE_UPSTREAM} lists.
894
896
  */
895
897
  export declare const BROWSE_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
896
898
 
899
+ /**
900
+ * Lists the packages `@orkestrel/browser` depends on at runtime, directly or transitively, frozen.
901
+ *
902
+ * @remarks
903
+ * A workspace this list names cannot declare `@orkestrel/browser`, because the declaration closes
904
+ * a dependency cycle through the browser package's runtime dependencies. The list is the closure
905
+ * of `dependencies` and `peerDependencies` over the installed manifests, sorted by name, and moves
906
+ * with the `@orkestrel/browser` pin.
907
+ */
908
+ export declare const BROWSE_UPSTREAM: readonly string[];
909
+
897
910
  /** Represents a browser framework and its physically occupied axes. */
898
911
  export declare interface BrowserExtension {
899
912
  readonly surface: 'browser';
@@ -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.83",
6
+ version: "0.0.85",
7
7
  description: "Scaffold workspaces with commands: new, audit, repair, catalog, and overwrite.",
8
8
  keywords: [
9
9
  "audit",
@@ -107,7 +107,7 @@ var package_default = {
107
107
  "@orkestrel/html": "^0.0.12",
108
108
  "@orkestrel/probe": "^0.0.19",
109
109
  "@orkestrel/test": "^0.0.24",
110
- "@types/node": "^26.6.3",
110
+ "@types/node": "^26.6.4",
111
111
  "@vitest/browser-playwright": "^4.1.11",
112
112
  "oxfmt": "^0.71.0",
113
113
  "oxlint": "^1.86.0",
@@ -668,9 +668,35 @@ var SOURCE_BROWSER_DEV_DEPENDENCIES = Object.freeze({
668
668
  * @remarks
669
669
  * The package ships the `browse` binary, an MCP server that drives a rendered page and records
670
670
  * journeys, and `.claude/rules/quality.md` § Instruments names its registration.
671
- * `blueprintToDevDependencies` names the blueprints that receive it.
671
+ * `blueprintToDevDependencies` names the blueprints that receive it, and it withholds the
672
+ * dependency from the workspaces {@link BROWSE_UPSTREAM} lists.
672
673
  */
673
674
  var BROWSE_DEV_DEPENDENCIES = Object.freeze({ "@orkestrel/browser": package_default.devDependencies["@orkestrel/browser"] });
675
+ /**
676
+ * Lists the packages `@orkestrel/browser` depends on at runtime, directly or transitively, frozen.
677
+ *
678
+ * @remarks
679
+ * A workspace this list names cannot declare `@orkestrel/browser`, because the declaration closes
680
+ * a dependency cycle through the browser package's runtime dependencies. The list is the closure
681
+ * of `dependencies` and `peerDependencies` over the installed manifests, sorted by name, and moves
682
+ * with the `@orkestrel/browser` pin.
683
+ */
684
+ var BROWSE_UPSTREAM = Object.freeze([
685
+ "@orkestrel/abort",
686
+ "@orkestrel/codec",
687
+ "@orkestrel/contract",
688
+ "@orkestrel/emitter",
689
+ "@orkestrel/html",
690
+ "@orkestrel/markdown",
691
+ "@orkestrel/mcp",
692
+ "@orkestrel/process",
693
+ "@orkestrel/router",
694
+ "@orkestrel/server",
695
+ "@orkestrel/sse",
696
+ "@orkestrel/timeout",
697
+ "@orkestrel/tool",
698
+ "@orkestrel/websocket"
699
+ ]);
674
700
  /** Names the development dependency every private `app` environment adds. */
675
701
  var APP_DEV_DEPENDENCIES = Object.freeze({ "@orkestrel/contract": package_default.dependencies["@orkestrel/contract"] });
676
702
  /** Lists the development dependencies a private browser application adds. */
@@ -5648,7 +5674,8 @@ function srcToExports(src) {
5648
5674
  * environment on either axis, a sheet, or themes. A framework face counts without a clause of
5649
5675
  * its own, because a face is selected only on an axis that carries a browser environment.
5650
5676
  * A browser setup runtime alone receives nothing, because it renders no surface for `browse`
5651
- * to drive.
5677
+ * to drive. A workspace {@link BROWSE_UPSTREAM} names receives nothing either, because
5678
+ * `@orkestrel/browser` depends on it at runtime and the declaration would close a cycle.
5652
5679
  *
5653
5680
  * A peer is declared here as well as under `peerDependencies`, because a peer is
5654
5681
  * not installed by the workspace that declares it and developing against one
@@ -5673,9 +5700,10 @@ function srcToExports(src) {
5673
5700
  function blueprintToDevDependencies(blueprint) {
5674
5701
  const sheets = blueprintToSheets(blueprint).length > 0 || blueprint.themes;
5675
5702
  const rendered = blueprint.src.includes("browser") || blueprint.app.includes("browser") || sheets;
5703
+ const own = blueprint.src.length > 0 || sheets ? `@orkestrel/${blueprint.name}` : blueprint.name;
5676
5704
  const merged = {
5677
5705
  ...BASE_DEV_DEPENDENCIES,
5678
- ...rendered ? BROWSE_DEV_DEPENDENCIES : {},
5706
+ ...rendered && !BROWSE_UPSTREAM.includes(own) ? BROWSE_DEV_DEPENDENCIES : {},
5679
5707
  ...sheets ? STYLES_DEV_DEPENDENCIES : {},
5680
5708
  ...blueprint.src.length > 0 || blueprint.bin ? DECLARATION_DEV_DEPENDENCIES : {},
5681
5709
  ...blueprint.src.includes("browser") || blueprint.setup.includes("browser") || sheets ? SOURCE_BROWSER_DEV_DEPENDENCIES : {},
@@ -5687,7 +5715,6 @@ function blueprintToDevDependencies(blueprint) {
5687
5715
  for (const framework of blueprintToMachinery(blueprint).frameworks) Object.assign(merged, FRAMEWORK_MATRIX[framework].dependencies);
5688
5716
  for (const extra of blueprint.extras) merged[extra.name] = extra.range;
5689
5717
  for (const peer of blueprint.peers) if (!Object.hasOwn(merged, peer.name)) merged[peer.name] = peer.range;
5690
- const own = blueprint.src.length > 0 || sheets ? `@orkestrel/${blueprint.name}` : blueprint.name;
5691
5718
  const runtime = new Set(blueprint.dependencies.map((dependency) => dependency.name));
5692
5719
  return Object.fromEntries(Object.entries(merged).filter(([name]) => name !== own && !runtime.has(name)).sort(([left], [right]) => compareValues(left, right)));
5693
5720
  }
@@ -8419,6 +8446,6 @@ var Compiler = class {
8419
8446
  }
8420
8447
  };
8421
8448
  //#endregion
8422
- 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, 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, 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 };
8449
+ 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, 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 };
8423
8450
 
8424
8451
  //# sourceMappingURL=index.js.map