@orkestrel/scaffold 0.0.126 → 0.0.127
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/bin/main.js +5 -2
- package/dist/bin/main.js.map +1 -1
- package/dist/host/AGENTS.md +1 -1
- package/dist/host/agents/orchestration.md +3 -3
- package/dist/host/claude/AGENTS.md +2 -2
- package/dist/host/claude/agents/orkestrel.md +14 -14
- package/dist/host/claude/agents/planner.md +2 -2
- package/dist/host/claude/rules/workspace.md +7 -6
- package/dist/host/codex/agents/planner.toml +2 -2
- package/dist/host/guides/capture.md +123 -123
- package/dist/host/guides/database.md +18 -7
- package/dist/host/guides/relation.md +71 -31
- package/dist/host/guides/scaffold.md +67 -49
- package/dist/host/guides/toolbox.md +8 -1
- package/dist/host/manifest.json +14 -14
- package/dist/host/tests/config.test.ts +24 -6
- package/dist/src/core/index.cjs +128 -75
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +27 -6
- package/dist/src/core/index.d.ts +27 -6
- package/dist/src/core/index.js +128 -76
- package/dist/src/core/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -376,7 +376,7 @@ export declare const BIN_OUTPUT_PATH = "dist/bin/main.js";
|
|
|
376
376
|
* fleet pin; every other peer is a floor. `extras` are package-specific
|
|
377
377
|
* development dependencies and may carry any valid npm name.
|
|
378
378
|
* `bin`, `setup`, `guides`, `integration`, `conformance`, `tree`, `service`,
|
|
379
|
-
* `vendors`, `studies`, `global`, `showcase`, `journey`, `styles`, `themes`, and `skills` are structural facts: each is
|
|
379
|
+
* `vendors`, `studies`, `global`, `showcase`, `journey`, `base`, `styles`, `themes`, and `skills` are structural facts: each is
|
|
380
380
|
* set only when the workspace physically ships the directory or exact-case file
|
|
381
381
|
* that defines it, never because of the workspace's name and never because a
|
|
382
382
|
* sibling fact is set.
|
|
@@ -388,6 +388,7 @@ export declare const BIN_OUTPUT_PATH = "dist/bin/main.js";
|
|
|
388
388
|
* `skills` registers the `skills` Vitest project over the mirrored proofs of the skill
|
|
389
389
|
* scripts a workspace ships under each `.agents/skills/<skill>/scripts/` directory, and adds their
|
|
390
390
|
* scoped typecheck.
|
|
391
|
+
* `base` selects the exact-case `app/browser/main.ts` entry of the base browser application.
|
|
391
392
|
* `showcase` projects only a browser `app`. The gate answers an absent browser
|
|
392
393
|
* axis with a non-blocking question, so a caller that set the flag learns it
|
|
393
394
|
* emitted nothing and the compile still completes.
|
|
@@ -435,6 +436,8 @@ export declare interface Blueprint {
|
|
|
435
436
|
readonly global: boolean;
|
|
436
437
|
readonly showcase: boolean;
|
|
437
438
|
readonly journey: boolean;
|
|
439
|
+
/** Selects the exact-case `app/browser/main.ts` entry of the base browser application. */
|
|
440
|
+
readonly base: boolean;
|
|
438
441
|
readonly skills: boolean;
|
|
439
442
|
}
|
|
440
443
|
|
|
@@ -722,9 +725,9 @@ export declare function blueprintToManifestOverrides(blueprint: Blueprint): Read
|
|
|
722
725
|
*
|
|
723
726
|
* @remarks
|
|
724
727
|
* A browser-mode run that discovers a runtime package mid-collection reloads the page, so the
|
|
725
|
-
* list names the test package,
|
|
726
|
-
*
|
|
727
|
-
* otherwise.
|
|
728
|
+
* list names the test package, every Orkestrel runtime package the blueprint declares or peers
|
|
729
|
+
* with, and the `/browser` entry of each one {@link BROWSER_ENTRIES} lists, inline when the
|
|
730
|
+
* line fits the print width and stacked otherwise.
|
|
728
731
|
*
|
|
729
732
|
* @example
|
|
730
733
|
* ```ts
|
|
@@ -1021,7 +1024,8 @@ export declare function blueprintToToolchainHolds(blueprint: Blueprint): Readonl
|
|
|
1021
1024
|
* rewrites, and one carrying skills adds `test:skills`. Publishing adds the pack and publication lifecycle scripts.
|
|
1022
1025
|
* Sheet and framework faces add their check and build scripts, application frameworks add dev scripts,
|
|
1023
1026
|
* and selected showcases and journeys add their mode scripts.
|
|
1024
|
-
* A browser application's journey axis also adds `journey` and `capture
|
|
1027
|
+
* A base browser application's journey axis also adds `journey` and `capture`, and each
|
|
1028
|
+
* app-side browser face adds `journey:<name>` and `capture:<name>`. Their generated
|
|
1025
1029
|
* commands are writable and have no predecessor forms; customized values remain caller-owned.
|
|
1026
1030
|
* Aggregate test scripts and
|
|
1027
1031
|
* maintainer-owned gate chains stay outside the region.
|
|
@@ -1071,6 +1075,23 @@ export declare const BROWSE_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
|
|
|
1071
1075
|
*/
|
|
1072
1076
|
export declare const BROWSE_UPSTREAM: readonly string[];
|
|
1073
1077
|
|
|
1078
|
+
/**
|
|
1079
|
+
* Lists the Orkestrel packages that publish a `/browser` entry, frozen.
|
|
1080
|
+
*
|
|
1081
|
+
* @remarks
|
|
1082
|
+
* A browser test project pre-bundles `<package>/browser` for each declared package listed here,
|
|
1083
|
+
* so a first import mid-run does not reload the page. Each listed package's vendored guide names
|
|
1084
|
+
* its own `/browser` specifier, and the constants test holds the list to the guide mirrors.
|
|
1085
|
+
*
|
|
1086
|
+
* @example
|
|
1087
|
+
* ```ts
|
|
1088
|
+
* import { BROWSER_ENTRIES } from '@orkestrel/scaffold'
|
|
1089
|
+
*
|
|
1090
|
+
* BROWSER_ENTRIES.includes('@orkestrel/router') // true
|
|
1091
|
+
* ```
|
|
1092
|
+
*/
|
|
1093
|
+
export declare const BROWSER_ENTRIES: readonly string[];
|
|
1094
|
+
|
|
1074
1095
|
/** Represents a browser framework and its physically occupied axes. */
|
|
1075
1096
|
export declare interface BrowserExtension {
|
|
1076
1097
|
readonly surface: 'browser';
|
|
@@ -1150,7 +1171,7 @@ export declare const CANON_PATHS: readonly string[];
|
|
|
1150
1171
|
* ```ts
|
|
1151
1172
|
* import { CAPTURE_DEV_DEPENDENCIES } from '@orkestrel/scaffold'
|
|
1152
1173
|
*
|
|
1153
|
-
* CAPTURE_DEV_DEPENDENCIES['@orkestrel/capture'] // '^0.0.
|
|
1174
|
+
* CAPTURE_DEV_DEPENDENCIES['@orkestrel/capture'] // '^0.0.5'
|
|
1154
1175
|
* ```
|
|
1155
1176
|
*/
|
|
1156
1177
|
export declare const CAPTURE_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -376,7 +376,7 @@ export declare const BIN_OUTPUT_PATH = "dist/bin/main.js";
|
|
|
376
376
|
* fleet pin; every other peer is a floor. `extras` are package-specific
|
|
377
377
|
* development dependencies and may carry any valid npm name.
|
|
378
378
|
* `bin`, `setup`, `guides`, `integration`, `conformance`, `tree`, `service`,
|
|
379
|
-
* `vendors`, `studies`, `global`, `showcase`, `journey`, `styles`, `themes`, and `skills` are structural facts: each is
|
|
379
|
+
* `vendors`, `studies`, `global`, `showcase`, `journey`, `base`, `styles`, `themes`, and `skills` are structural facts: each is
|
|
380
380
|
* set only when the workspace physically ships the directory or exact-case file
|
|
381
381
|
* that defines it, never because of the workspace's name and never because a
|
|
382
382
|
* sibling fact is set.
|
|
@@ -388,6 +388,7 @@ export declare const BIN_OUTPUT_PATH = "dist/bin/main.js";
|
|
|
388
388
|
* `skills` registers the `skills` Vitest project over the mirrored proofs of the skill
|
|
389
389
|
* scripts a workspace ships under each `.agents/skills/<skill>/scripts/` directory, and adds their
|
|
390
390
|
* scoped typecheck.
|
|
391
|
+
* `base` selects the exact-case `app/browser/main.ts` entry of the base browser application.
|
|
391
392
|
* `showcase` projects only a browser `app`. The gate answers an absent browser
|
|
392
393
|
* axis with a non-blocking question, so a caller that set the flag learns it
|
|
393
394
|
* emitted nothing and the compile still completes.
|
|
@@ -435,6 +436,8 @@ export declare interface Blueprint {
|
|
|
435
436
|
readonly global: boolean;
|
|
436
437
|
readonly showcase: boolean;
|
|
437
438
|
readonly journey: boolean;
|
|
439
|
+
/** Selects the exact-case `app/browser/main.ts` entry of the base browser application. */
|
|
440
|
+
readonly base: boolean;
|
|
438
441
|
readonly skills: boolean;
|
|
439
442
|
}
|
|
440
443
|
|
|
@@ -722,9 +725,9 @@ export declare function blueprintToManifestOverrides(blueprint: Blueprint): Read
|
|
|
722
725
|
*
|
|
723
726
|
* @remarks
|
|
724
727
|
* A browser-mode run that discovers a runtime package mid-collection reloads the page, so the
|
|
725
|
-
* list names the test package,
|
|
726
|
-
*
|
|
727
|
-
* otherwise.
|
|
728
|
+
* list names the test package, every Orkestrel runtime package the blueprint declares or peers
|
|
729
|
+
* with, and the `/browser` entry of each one {@link BROWSER_ENTRIES} lists, inline when the
|
|
730
|
+
* line fits the print width and stacked otherwise.
|
|
728
731
|
*
|
|
729
732
|
* @example
|
|
730
733
|
* ```ts
|
|
@@ -1021,7 +1024,8 @@ export declare function blueprintToToolchainHolds(blueprint: Blueprint): Readonl
|
|
|
1021
1024
|
* rewrites, and one carrying skills adds `test:skills`. Publishing adds the pack and publication lifecycle scripts.
|
|
1022
1025
|
* Sheet and framework faces add their check and build scripts, application frameworks add dev scripts,
|
|
1023
1026
|
* and selected showcases and journeys add their mode scripts.
|
|
1024
|
-
* A browser application's journey axis also adds `journey` and `capture
|
|
1027
|
+
* A base browser application's journey axis also adds `journey` and `capture`, and each
|
|
1028
|
+
* app-side browser face adds `journey:<name>` and `capture:<name>`. Their generated
|
|
1025
1029
|
* commands are writable and have no predecessor forms; customized values remain caller-owned.
|
|
1026
1030
|
* Aggregate test scripts and
|
|
1027
1031
|
* maintainer-owned gate chains stay outside the region.
|
|
@@ -1071,6 +1075,23 @@ export declare const BROWSE_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
|
|
|
1071
1075
|
*/
|
|
1072
1076
|
export declare const BROWSE_UPSTREAM: readonly string[];
|
|
1073
1077
|
|
|
1078
|
+
/**
|
|
1079
|
+
* Lists the Orkestrel packages that publish a `/browser` entry, frozen.
|
|
1080
|
+
*
|
|
1081
|
+
* @remarks
|
|
1082
|
+
* A browser test project pre-bundles `<package>/browser` for each declared package listed here,
|
|
1083
|
+
* so a first import mid-run does not reload the page. Each listed package's vendored guide names
|
|
1084
|
+
* its own `/browser` specifier, and the constants test holds the list to the guide mirrors.
|
|
1085
|
+
*
|
|
1086
|
+
* @example
|
|
1087
|
+
* ```ts
|
|
1088
|
+
* import { BROWSER_ENTRIES } from '@orkestrel/scaffold'
|
|
1089
|
+
*
|
|
1090
|
+
* BROWSER_ENTRIES.includes('@orkestrel/router') // true
|
|
1091
|
+
* ```
|
|
1092
|
+
*/
|
|
1093
|
+
export declare const BROWSER_ENTRIES: readonly string[];
|
|
1094
|
+
|
|
1074
1095
|
/** Represents a browser framework and its physically occupied axes. */
|
|
1075
1096
|
export declare interface BrowserExtension {
|
|
1076
1097
|
readonly surface: 'browser';
|
|
@@ -1150,7 +1171,7 @@ export declare const CANON_PATHS: readonly string[];
|
|
|
1150
1171
|
* ```ts
|
|
1151
1172
|
* import { CAPTURE_DEV_DEPENDENCIES } from '@orkestrel/scaffold'
|
|
1152
1173
|
*
|
|
1153
|
-
* CAPTURE_DEV_DEPENDENCIES['@orkestrel/capture'] // '^0.0.
|
|
1174
|
+
* CAPTURE_DEV_DEPENDENCIES['@orkestrel/capture'] // '^0.0.5'
|
|
1154
1175
|
* ```
|
|
1155
1176
|
*/
|
|
1156
1177
|
export declare const CAPTURE_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
|
package/dist/src/core/index.js
CHANGED
|
@@ -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.
|
|
6
|
+
version: "0.0.127",
|
|
7
7
|
description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
|
|
8
8
|
keywords: [
|
|
9
9
|
"audit",
|
|
@@ -111,7 +111,7 @@ var package_default = {
|
|
|
111
111
|
"@orkestrel/test": "^0.0.33",
|
|
112
112
|
"@types/node": "^24.19.2",
|
|
113
113
|
"@vitest/browser-playwright": "^5.1.0",
|
|
114
|
-
"oxfmt": "^0.
|
|
114
|
+
"oxfmt": "^0.78.0",
|
|
115
115
|
"oxlint": "^1.93.0",
|
|
116
116
|
"playwright": "^1.64.1",
|
|
117
117
|
"typescript": "^7.0.2",
|
|
@@ -729,10 +729,36 @@ var BROWSE_DEV_DEPENDENCIES = Object.freeze({ "@orkestrel/browser": package_defa
|
|
|
729
729
|
* ```ts
|
|
730
730
|
* import { CAPTURE_DEV_DEPENDENCIES } from '@orkestrel/scaffold'
|
|
731
731
|
*
|
|
732
|
-
* CAPTURE_DEV_DEPENDENCIES['@orkestrel/capture'] // '^0.0.
|
|
732
|
+
* CAPTURE_DEV_DEPENDENCIES['@orkestrel/capture'] // '^0.0.5'
|
|
733
733
|
* ```
|
|
734
734
|
*/
|
|
735
|
-
var CAPTURE_DEV_DEPENDENCIES = Object.freeze({ "@orkestrel/capture": "^0.0.
|
|
735
|
+
var CAPTURE_DEV_DEPENDENCIES = Object.freeze({ "@orkestrel/capture": "^0.0.5" });
|
|
736
|
+
/**
|
|
737
|
+
* Lists the Orkestrel packages that publish a `/browser` entry, frozen.
|
|
738
|
+
*
|
|
739
|
+
* @remarks
|
|
740
|
+
* A browser test project pre-bundles `<package>/browser` for each declared package listed here,
|
|
741
|
+
* so a first import mid-run does not reload the page. Each listed package's vendored guide names
|
|
742
|
+
* its own `/browser` specifier, and the constants test holds the list to the guide mirrors.
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
* ```ts
|
|
746
|
+
* import { BROWSER_ENTRIES } from '@orkestrel/scaffold'
|
|
747
|
+
*
|
|
748
|
+
* BROWSER_ENTRIES.includes('@orkestrel/router') // true
|
|
749
|
+
* ```
|
|
750
|
+
*/
|
|
751
|
+
var BROWSER_ENTRIES = Object.freeze([
|
|
752
|
+
"@orkestrel/browser",
|
|
753
|
+
"@orkestrel/console",
|
|
754
|
+
"@orkestrel/database",
|
|
755
|
+
"@orkestrel/form",
|
|
756
|
+
"@orkestrel/mcp",
|
|
757
|
+
"@orkestrel/router",
|
|
758
|
+
"@orkestrel/table",
|
|
759
|
+
"@orkestrel/test",
|
|
760
|
+
"@orkestrel/workflow"
|
|
761
|
+
]);
|
|
736
762
|
/**
|
|
737
763
|
* Lists the capture package and its fleet runtime dependency closure, frozen.
|
|
738
764
|
*
|
|
@@ -1011,7 +1037,7 @@ function isNamedPlugin(plugin: PluginOption): plugin is { name: string } {
|
|
|
1011
1037
|
resolve,
|
|
1012
1038
|
optimizeDeps,
|
|
1013
1039
|
publicDir: false,
|
|
1014
|
-
test: {
|
|
1040
|
+
{{vuePlugin}} test: {
|
|
1015
1041
|
name: { label: name, color: 'magenta' },
|
|
1016
1042
|
root: resolveWorkspacePath('.'),
|
|
1017
1043
|
isolate: false,
|
|
@@ -1107,7 +1133,7 @@ export function srcBrowser(override?: UserConfig): UserConfig {
|
|
|
1107
1133
|
resolve,
|
|
1108
1134
|
optimizeDeps,
|
|
1109
1135
|
publicDir: false,
|
|
1110
|
-
plugins: [outputBoundary('dist/src/browser'), environmentBoundary('src/browser')],
|
|
1136
|
+
plugins: [outputBoundary('dist/src/browser'), environmentBoundary('src/browser'){{vuePlugin}}],
|
|
1111
1137
|
build: {
|
|
1112
1138
|
emptyOutDir: true,
|
|
1113
1139
|
sourcemap: true,
|
|
@@ -1248,7 +1274,7 @@ export function srcBin(override?: UserConfig): UserConfig {
|
|
|
1248
1274
|
const project: UserConfig = {
|
|
1249
1275
|
resolve,
|
|
1250
1276
|
optimizeDeps,
|
|
1251
|
-
plugins: [outputBoundary(output), environmentBoundary('app/browser')],
|
|
1277
|
+
plugins: [outputBoundary(output), environmentBoundary('app/browser'){{vuePlugin}}],
|
|
1252
1278
|
root: resolveWorkspacePath('app/browser'),
|
|
1253
1279
|
publicDir: false,
|
|
1254
1280
|
build: {
|
|
@@ -5136,6 +5162,7 @@ var isBlueprint = recordOf({
|
|
|
5136
5162
|
global: isBoolean,
|
|
5137
5163
|
showcase: isBoolean,
|
|
5138
5164
|
journey: isBoolean,
|
|
5165
|
+
base: isBoolean,
|
|
5139
5166
|
skills: isBoolean
|
|
5140
5167
|
}, ["description"]);
|
|
5141
5168
|
/**
|
|
@@ -7017,7 +7044,7 @@ function blueprintToDevDependencies(blueprint) {
|
|
|
7017
7044
|
...BASE_DEV_DEPENDENCIES,
|
|
7018
7045
|
...Object.fromEntries(Object.entries(blueprintToToolchainHolds(blueprint)).map(([name, hold]) => [name, hold.range])),
|
|
7019
7046
|
...rendered && !BROWSE_UPSTREAM.includes(own) ? BROWSE_DEV_DEPENDENCIES : {},
|
|
7020
|
-
...blueprint.journey && blueprint.app.includes("browser") && !CAPTURE_UPSTREAM.includes(own) ? CAPTURE_DEV_DEPENDENCIES : {},
|
|
7047
|
+
...blueprint.journey && blueprint.app.includes("browser") && (blueprint.base || blueprintToFaces(blueprint).some((extension) => extension.axes.includes("app"))) && !CAPTURE_UPSTREAM.includes(own) ? CAPTURE_DEV_DEPENDENCIES : {},
|
|
7021
7048
|
...sheets ? STYLES_DEV_DEPENDENCIES : {},
|
|
7022
7049
|
...blueprint.src.length > 0 || blueprint.bin ? DECLARATION_DEV_DEPENDENCIES : {},
|
|
7023
7050
|
...blueprint.src.includes("browser") || blueprint.setup.includes("browser") || sheets ? SOURCE_BROWSER_DEV_DEPENDENCIES : {},
|
|
@@ -7207,13 +7234,14 @@ function replaceManifestOverride(manifest, path, range) {
|
|
|
7207
7234
|
function blueprintToScripts(blueprint) {
|
|
7208
7235
|
const source = blueprintToFaces(blueprint).flatMap((extension) => extension.surface === "browser" && extension.axes.includes("src") ? [extension.name] : []);
|
|
7209
7236
|
const application = blueprintToFaces(blueprint).flatMap((extension) => extension.surface === "browser" && extension.axes.includes("app") ? [extension.name] : []);
|
|
7237
|
+
const base = blueprint.base && blueprint.app.includes("browser");
|
|
7210
7238
|
const sheets = blueprintToSheets(blueprint);
|
|
7211
7239
|
const targets = [...sheets, ...blueprint.themes && !blueprint.styles ? ["themes"] : []];
|
|
7212
7240
|
const checker = application.includes("vue") ? FRAMEWORK_MATRIX.vue.checker : "tsc";
|
|
7213
7241
|
const publishes = blueprint.src.length > 0 || targets.length > 0;
|
|
7214
7242
|
const integrates = blueprint.integration;
|
|
7215
7243
|
const compiles = publishes || blueprint.bin;
|
|
7216
|
-
const runtime = blueprint.app.filter((environment) => environment !== "core");
|
|
7244
|
+
const runtime = blueprint.app.filter((environment) => environment !== "core" && (environment !== "browser" || base));
|
|
7217
7245
|
const vitest = "vitest run --config vite.config.ts --no-cache --reporter=dot";
|
|
7218
7246
|
const checks = [
|
|
7219
7247
|
...blueprint.src,
|
|
@@ -7252,7 +7280,7 @@ function blueprintToScripts(blueprint) {
|
|
|
7252
7280
|
test: [
|
|
7253
7281
|
...compiles ? ["npm run test:src"] : [],
|
|
7254
7282
|
...!publishes && blueprint.app.length > 0 ? ["npm run test:app"] : [],
|
|
7255
|
-
...!publishes && blueprint.journey &&
|
|
7283
|
+
...!publishes && blueprint.journey && (base || application.length > 0) ? [...base ? ["npm run test:journey"] : [], ...application.map((name) => `npm run test:journey:${name}`)] : [],
|
|
7256
7284
|
"npm run test:policy",
|
|
7257
7285
|
"npm run test:config",
|
|
7258
7286
|
...blueprint.setup.includes("node") || blueprint.global ? ["npm run test:setup"] : [],
|
|
@@ -7289,11 +7317,15 @@ function blueprintToScripts(blueprint) {
|
|
|
7289
7317
|
"test:config": `${vitest} --project config`,
|
|
7290
7318
|
...blueprint.setup.includes("node") || blueprint.global ? { "test:setup": `${vitest} --project setup` } : {},
|
|
7291
7319
|
...blueprint.setup.includes("browser") ? { "test:setup:browser": `${vitest} --project setup:browser` } : {},
|
|
7292
|
-
...blueprint.journey &&
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7320
|
+
...blueprint.journey && (base || application.length > 0) ? {
|
|
7321
|
+
...base ? {
|
|
7322
|
+
"test:journey": journey,
|
|
7323
|
+
journey: "capture journey",
|
|
7324
|
+
capture: "capture frames"
|
|
7325
|
+
} : {},
|
|
7326
|
+
...Object.fromEntries(application.map((name) => [`test:journey:${name}`, `${journey} --mode ${name}`])),
|
|
7327
|
+
...Object.fromEntries(application.map((name) => [`journey:${name}`, `capture journey --mode ${name}`])),
|
|
7328
|
+
...Object.fromEntries(application.map((name) => [`capture:${name}`, `capture frames --mode ${name}`]))
|
|
7297
7329
|
} : {},
|
|
7298
7330
|
...blueprint.skills ? { "test:skills": `${vitest} --project skills` } : {},
|
|
7299
7331
|
...blueprint.guides ? { "test:guides": `node --experimental-strip-types ${GUIDES_TEST_PATH}` } : {},
|
|
@@ -7323,18 +7355,18 @@ function blueprintToScripts(blueprint) {
|
|
|
7323
7355
|
...Object.fromEntries(targets.map((name) => [`build:src:${name}`, [`vite build --config configs/src/vite.${name}.config.ts`, ...name === "styles" && blueprint.themes ? ["vite build --config configs/src/vite.themes.config.ts"] : []].join(" && ")]))
|
|
7324
7356
|
} : {},
|
|
7325
7357
|
...blueprint.app.length > 0 ? {
|
|
7326
|
-
"build:app": runtime.length > 0 ? [...runtime, ...application].map((environment) => `npm run build:app:${environment}`).join(" && ") :
|
|
7358
|
+
"build:app": runtime.length + application.length > 0 ? [...runtime, ...application].map((environment) => `npm run build:app:${environment}`).join(" && ") : `npm run check:app:${blueprint.app.includes("core") ? "core" : "browser"}`,
|
|
7327
7359
|
...Object.fromEntries([...runtime, ...application].map((environment) => [`build:app:${environment}`, `vite build --config configs/app/vite.${environment}.config.ts`]))
|
|
7328
7360
|
} : {},
|
|
7329
|
-
...
|
|
7361
|
+
...base ? {
|
|
7330
7362
|
dev: "vite --config configs/app/vite.browser.config.ts",
|
|
7331
|
-
...Object.fromEntries(application.map((name) => [`dev:${name}`, `vite --config configs/app/vite.${name}.config.ts`])),
|
|
7332
7363
|
...blueprint.showcase ? {
|
|
7333
7364
|
showcase,
|
|
7334
|
-
"build:showcase": buildShowcase
|
|
7335
|
-
...Object.fromEntries(application.flatMap((name) => [[`showcase:${name}`, `${showcase} --mode ${name}`], [`build:showcase:${name}`, `${buildShowcase} --mode ${name}`]]))
|
|
7365
|
+
"build:showcase": buildShowcase
|
|
7336
7366
|
} : {}
|
|
7337
7367
|
} : {},
|
|
7368
|
+
...Object.fromEntries(application.map((name) => [`dev:${name}`, `vite --config configs/app/vite.${name}.config.ts`])),
|
|
7369
|
+
...blueprint.showcase ? Object.fromEntries(application.flatMap((name) => [[`showcase:${name}`, `${showcase} --mode ${name}`], [`build:showcase:${name}`, `${buildShowcase} --mode ${name}`]])) : {},
|
|
7338
7370
|
...blueprint.app.includes("server") ? {
|
|
7339
7371
|
serve: "node dist/app/server/main.cjs",
|
|
7340
7372
|
"serve:build": "npm run build:app:server && npm run serve"
|
|
@@ -7343,7 +7375,7 @@ function blueprintToScripts(blueprint) {
|
|
|
7343
7375
|
prepack: "npm run build",
|
|
7344
7376
|
prepublishOnly: [
|
|
7345
7377
|
"npm run format:check && npm run lint:check && npm run check && npm run build",
|
|
7346
|
-
...blueprint.showcase && blueprint.app.includes("browser") ? ["npm run build:showcase", ...application.map((name) => `npm run build:showcase:${name}`)] : [],
|
|
7378
|
+
...blueprint.showcase && blueprint.app.includes("browser") ? [...base ? ["npm run build:showcase"] : [], ...application.map((name) => `npm run build:showcase:${name}`)] : [],
|
|
7347
7379
|
"npm test",
|
|
7348
7380
|
RELEASE_PROOF_COMMAND,
|
|
7349
7381
|
...blueprint.service ? ["npm run test:service"] : []
|
|
@@ -7364,7 +7396,8 @@ function blueprintToScripts(blueprint) {
|
|
|
7364
7396
|
* rewrites, and one carrying skills adds `test:skills`. Publishing adds the pack and publication lifecycle scripts.
|
|
7365
7397
|
* Sheet and framework faces add their check and build scripts, application frameworks add dev scripts,
|
|
7366
7398
|
* and selected showcases and journeys add their mode scripts.
|
|
7367
|
-
* A browser application's journey axis also adds `journey` and `capture
|
|
7399
|
+
* A base browser application's journey axis also adds `journey` and `capture`, and each
|
|
7400
|
+
* app-side browser face adds `journey:<name>` and `capture:<name>`. Their generated
|
|
7368
7401
|
* commands are writable and have no predecessor forms; customized values remain caller-owned.
|
|
7369
7402
|
* Aggregate test scripts and
|
|
7370
7403
|
* maintainer-owned gate chains stay outside the region.
|
|
@@ -7396,7 +7429,7 @@ function blueprintToWritableScripts(blueprint) {
|
|
|
7396
7429
|
const body = Object.entries(scripts).flatMap(([name, command]) => {
|
|
7397
7430
|
const direct = name.startsWith("test:") && name !== "test:src" && name !== "test:app";
|
|
7398
7431
|
const sheet = sheets.some((face) => name === `build:src:${face}` || name === `check:src:${face}`);
|
|
7399
|
-
const framework = blueprintToFaces(blueprint).some((extension) => extension.surface === "browser" && extension.axes.some((axis) => name === `check:${axis}:${extension.name}` || name === `build:${axis}:${extension.name}` || axis === "app" && name === `dev:${extension.name}`));
|
|
7432
|
+
const framework = blueprintToFaces(blueprint).some((extension) => extension.surface === "browser" && extension.axes.some((axis) => name === `check:${axis}:${extension.name}` || name === `build:${axis}:${extension.name}` || axis === "app" && (name === `dev:${extension.name}` || name === `journey:${extension.name}` || name === `capture:${extension.name}`)));
|
|
7400
7433
|
const showcase = name === "showcase" || name.startsWith("showcase:") || name === "build:showcase" || name.startsWith("build:showcase:");
|
|
7401
7434
|
if (!direct && !sheet && !framework && !showcase && !(name === "journey" || name === "capture")) return [];
|
|
7402
7435
|
return [{
|
|
@@ -7543,7 +7576,7 @@ function blueprintToMachinery(blueprint) {
|
|
|
7543
7576
|
browser: blueprint.src.includes("browser") || blueprint.app.includes("browser") || blueprint.setup.includes("browser") || blueprintToSheets(blueprint).length > 0 || blueprint.themes || frameworks.length > 0,
|
|
7544
7577
|
frameworks,
|
|
7545
7578
|
output: blueprint.src.length > 0 || blueprint.bin || hosted || blueprintToSheets(blueprint).length > 0 || blueprint.themes,
|
|
7546
|
-
showcase: blueprint.showcase && blueprint.app.includes("browser")
|
|
7579
|
+
showcase: blueprint.showcase && (blueprint.base && blueprint.app.includes("browser") || blueprintToFaces(blueprint).some((extension) => extension.axes.includes("app")))
|
|
7547
7580
|
};
|
|
7548
7581
|
}
|
|
7549
7582
|
/**
|
|
@@ -7663,9 +7696,9 @@ function blueprintToProjects(blueprint) {
|
|
|
7663
7696
|
*
|
|
7664
7697
|
* @remarks
|
|
7665
7698
|
* A browser-mode run that discovers a runtime package mid-collection reloads the page, so the
|
|
7666
|
-
* list names the test package,
|
|
7667
|
-
*
|
|
7668
|
-
* otherwise.
|
|
7699
|
+
* list names the test package, every Orkestrel runtime package the blueprint declares or peers
|
|
7700
|
+
* with, and the `/browser` entry of each one {@link BROWSER_ENTRIES} lists, inline when the
|
|
7701
|
+
* line fits the print width and stacked otherwise.
|
|
7669
7702
|
*
|
|
7670
7703
|
* @example
|
|
7671
7704
|
* ```ts
|
|
@@ -7677,17 +7710,20 @@ function blueprintToProjects(blueprint) {
|
|
|
7677
7710
|
* ```
|
|
7678
7711
|
*/
|
|
7679
7712
|
function blueprintToOptimizedDependencies(blueprint) {
|
|
7713
|
+
const packages = [.../* @__PURE__ */ new Set([
|
|
7714
|
+
...Object.hasOwn(blueprintToDevDependencies(blueprint), "@orkestrel/contract") ? ["@orkestrel/contract"] : [],
|
|
7715
|
+
...blueprint.dependencies.map((dependency) => dependency.name),
|
|
7716
|
+
...blueprint.peers.map((peer) => peer.name)
|
|
7717
|
+
])].filter((name) => name.startsWith("@orkestrel/")).sort();
|
|
7680
7718
|
const names = [
|
|
7681
7719
|
"@orkestrel/test",
|
|
7682
7720
|
"@orkestrel/test/browser",
|
|
7683
|
-
...
|
|
7684
|
-
|
|
7685
|
-
...blueprint.dependencies.map((dependency) => dependency.name),
|
|
7686
|
-
...blueprint.peers.map((peer) => peer.name)
|
|
7687
|
-
])].filter((name) => name.startsWith("@orkestrel/")).sort()
|
|
7721
|
+
...packages,
|
|
7722
|
+
...packages.filter((name) => BROWSER_ENTRIES.includes(name)).map((name) => `${name}/browser`)
|
|
7688
7723
|
];
|
|
7689
|
-
const
|
|
7690
|
-
|
|
7724
|
+
const includes = [...new Set(names)];
|
|
7725
|
+
const inline = `\tinclude: [${includes.map((name) => `'${name}'`).join(", ")}],`;
|
|
7726
|
+
return matchesPrintWidth(inline) ? `const optimizeDeps = {\n${inline}\n}\n\n` : `const optimizeDeps = {\n\tinclude: [\n${includes.map((name) => `\t\t'${name}',`).join("\n")}\n\t],\n}\n\n`;
|
|
7691
7727
|
}
|
|
7692
7728
|
/**
|
|
7693
7729
|
* Compiles the root Vite and Vitest configuration for a blueprint.
|
|
@@ -7712,6 +7748,9 @@ function blueprintToOptimizedDependencies(blueprint) {
|
|
|
7712
7748
|
function blueprintToRootVite(blueprint) {
|
|
7713
7749
|
const machinery = blueprintToMachinery(blueprint);
|
|
7714
7750
|
const planned = new Set(blueprintToProjects(blueprint));
|
|
7751
|
+
const applicationFaces = blueprintToFaces(blueprint).filter((extension) => extension.axes.includes("app"));
|
|
7752
|
+
const base = blueprint.base && blueprint.app.includes("browser");
|
|
7753
|
+
const journeyed = blueprint.journey && (base || applicationFaces.length > 0);
|
|
7715
7754
|
const sheets = blueprintToSheets(blueprint);
|
|
7716
7755
|
const styled = sheets.length > 0 || blueprint.themes;
|
|
7717
7756
|
const global = blueprint.global ? " globalSetup: ['./tests/setupGlobal.ts'],\n" : "";
|
|
@@ -7737,10 +7776,11 @@ function blueprintToRootVite(blueprint) {
|
|
|
7737
7776
|
return resolveExternal(id, { peers, refused: [], siblings: [] })
|
|
7738
7777
|
}
|
|
7739
7778
|
`] : [],
|
|
7740
|
-
...styled ? [CONFIG_TEMPLATES.factories.sheet] : [],
|
|
7779
|
+
...styled ? [fillTemplate(CONFIG_TEMPLATES.factories.sheet, { vuePlugin: machinery.frameworks.includes("vue") ? " plugins: [vue()],\n" : "" })] : [],
|
|
7741
7780
|
...planned.has("src:core") ? [CONFIG_TEMPLATES.factories.src.core] : [],
|
|
7742
7781
|
...planned.has("src:browser") ? [blueprint.src.includes("core")].map((core) => fillTemplate(CONFIG_TEMPLATES.factories.src.browser, {
|
|
7743
7782
|
external,
|
|
7783
|
+
vuePlugin: machinery.frameworks.includes("vue") ? ", vue()" : "",
|
|
7744
7784
|
output: core ? " output: { paths: { '@src/core': '../core/index.js' } }," : " output: {},",
|
|
7745
7785
|
exclude: core ? " exclude: ['tests/src/core/**/*.test.ts'],\n" : "",
|
|
7746
7786
|
global
|
|
@@ -7765,11 +7805,12 @@ function blueprintToRootVite(blueprint) {
|
|
|
7765
7805
|
...planned.has("src:bin") ? [CONFIG_TEMPLATES.factories.src.bin] : [],
|
|
7766
7806
|
...planned.has("app:core") ? [CONFIG_TEMPLATES.factories.app.core] : [],
|
|
7767
7807
|
...planned.has("app:browser") ? [fillTemplate(CONFIG_TEMPLATES.factories.app.browser, {
|
|
7808
|
+
vuePlugin: machinery.frameworks.includes("vue") ? ", vue()" : "",
|
|
7768
7809
|
showcaseFactory: machinery.showcase ? CONFIG_TEMPLATES.factories.app.showcase : "",
|
|
7769
|
-
journeyFactory:
|
|
7770
|
-
journeyExclude: blueprint.journey ? " exclude: ['tests/app/browser/integration.test.ts'],\n" : ""
|
|
7810
|
+
journeyFactory: journeyed ? CONFIG_TEMPLATES.factories.app.journey : "",
|
|
7811
|
+
journeyExclude: blueprint.journey && base ? " exclude: ['tests/app/browser/integration.test.ts'],\n" : ""
|
|
7771
7812
|
})] : [],
|
|
7772
|
-
...planned.has("app:vue") ? [fillTemplate(CONFIG_TEMPLATES.factories.app.vue, { journeyExclude:
|
|
7813
|
+
...planned.has("app:vue") ? [fillTemplate(CONFIG_TEMPLATES.factories.app.vue, { journeyExclude: journeyed ? " exclude: ['tests/app/vue/integration.test.ts'],\n" : " exclude: [],\n" })] : [],
|
|
7773
7814
|
...planned.has("app:server") ? [CONFIG_TEMPLATES.factories.app.server] : [],
|
|
7774
7815
|
CONFIG_TEMPLATES.factories.policy,
|
|
7775
7816
|
CONFIG_TEMPLATES.factories.config,
|
|
@@ -7829,11 +7870,11 @@ ${projects.map((project) => `\t\t\t${project},`).join("\n")}
|
|
|
7829
7870
|
].filter((helper) => body.includes(helper));
|
|
7830
7871
|
const helperImport = `import { ${helpers.join(", ")} } from './configs/helpers.js'\n`;
|
|
7831
7872
|
return fillTemplate(CONFIG_TEMPLATES.root.vite, {
|
|
7832
|
-
journey:
|
|
7873
|
+
journey: journeyed ? "import type { JourneyVariant } from '@orkestrel/test'\n" : "",
|
|
7833
7874
|
imports: imports.length === 0 ? "" : `${imports.join("\n")}\n`,
|
|
7834
7875
|
helpers: helpers.length === 0 ? "" : matchesPrintWidth(helperImport.trimEnd()) ? helperImport : `import {\n${helpers.map((helper) => `\t${helper},`).join("\n")}\n} from './configs/helpers.js'\n`,
|
|
7835
7876
|
browsers: machinery.browser ? "import { resolveBrowser, resolvePinnedBrowser } from './configs/browsers.js'\nimport { commands } from './configs/commands.js'\n" : "",
|
|
7836
|
-
options: (machinery.browser ? "const browserOptions = resolveBrowser(resolvePinnedBrowser(), process.platform, process.env)\n// Vitest writes a page.screenshot() capture beside its test file unless a directory is named.\nconst screenshots = resolveWorkspacePath('tmp/captures/screenshots')\n\n" + blueprintToOptimizedDependencies(blueprint) : "") + (
|
|
7877
|
+
options: (machinery.browser ? "const browserOptions = resolveBrowser(resolvePinnedBrowser(), process.platform, process.env)\n// Vitest writes a page.screenshot() capture beside its test file unless a directory is named.\nconst screenshots = resolveWorkspacePath('tmp/captures/screenshots')\n\n" + blueprintToOptimizedDependencies(blueprint) : "") + (journeyed ? "const capture = process.env.CAPTURE === '1'\n\n" : "") + ((blueprint.journey || blueprint.showcase) && (base || applicationFaces.length > 0) ? `const applications = {\n${base ? " browser: appBrowser,\n" : ""}${applicationFaces.map((extension) => `\t${extension.name}: app${extension.name[0]?.toUpperCase()}${extension.name.slice(1)},\n`).join("")}}\n\n` : ""),
|
|
7837
7878
|
factories: body,
|
|
7838
7879
|
projects: projectRows
|
|
7839
7880
|
});
|
|
@@ -7854,6 +7895,8 @@ ${projects.map((project) => `\t\t\t${project},`).join("\n")}
|
|
|
7854
7895
|
* ```
|
|
7855
7896
|
*/
|
|
7856
7897
|
function blueprintToConfigArtifacts(blueprint) {
|
|
7898
|
+
const applicationFaces = blueprintToFaces(blueprint).filter((extension) => extension.axes.includes("app"));
|
|
7899
|
+
const base = blueprint.base && blueprint.app.includes("browser");
|
|
7857
7900
|
const roots = [{
|
|
7858
7901
|
path: "tsconfig.json",
|
|
7859
7902
|
group: "configs",
|
|
@@ -7993,7 +8036,7 @@ ${paths.join("\n")}
|
|
|
7993
8036
|
content: axis === "src" ? CONFIG_TEMPLATES.tsconfigs.vue.src : fillTemplate(CONFIG_TEMPLATES.tsconfigs.vue.app, { include: include.map((entry, index) => `\t\t${JSON.stringify(entry)}${index === include.length - 1 ? "" : ","}`).join("\n") })
|
|
7994
8037
|
}];
|
|
7995
8038
|
}));
|
|
7996
|
-
const showcase = blueprint.showcase &&
|
|
8039
|
+
const showcase = blueprint.showcase && (base || applicationFaces.length > 0) ? [{
|
|
7997
8040
|
path: SHOWCASE_CONFIG_PATH,
|
|
7998
8041
|
group: "configs",
|
|
7999
8042
|
ownership: "content",
|
|
@@ -8001,7 +8044,7 @@ ${paths.join("\n")}
|
|
|
8001
8044
|
environment: "browser",
|
|
8002
8045
|
content: CONFIG_TEMPLATES.vites.app.showcase
|
|
8003
8046
|
}] : [];
|
|
8004
|
-
const journey = blueprint.journey &&
|
|
8047
|
+
const journey = blueprint.journey && (base || applicationFaces.length > 0) ? [{
|
|
8005
8048
|
path: JOURNEY_CONFIG_PATH,
|
|
8006
8049
|
group: "configs",
|
|
8007
8050
|
ownership: "birth",
|
|
@@ -8080,25 +8123,21 @@ function blueprintToSourceArtifacts(blueprint) {
|
|
|
8080
8123
|
environment,
|
|
8081
8124
|
content: ARTIFACT_TEMPLATES.source.empty
|
|
8082
8125
|
};
|
|
8083
|
-
if (environment === "browser") return [
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
environment,
|
|
8099
|
-
content: ARTIFACT_TEMPLATES.source.browser
|
|
8100
|
-
}
|
|
8101
|
-
];
|
|
8126
|
+
if (environment === "browser") return [entry, ...blueprint.base ? [{
|
|
8127
|
+
path: "app/browser/main.ts",
|
|
8128
|
+
group: "source",
|
|
8129
|
+
ownership: "birth",
|
|
8130
|
+
origin: "template",
|
|
8131
|
+
environment,
|
|
8132
|
+
content: fillTemplate(ARTIFACT_TEMPLATES.source.main, { heading: `${matchesPrintWidth(`\t.appendChild(document.createElement('h1')).textContent = ${serializeTypeScriptString(blueprint.name)}`) ? " " : "\n "}${serializeTypeScriptString(blueprint.name)}` })
|
|
8133
|
+
}, {
|
|
8134
|
+
path: "app/browser/index.html",
|
|
8135
|
+
group: "source",
|
|
8136
|
+
ownership: "birth",
|
|
8137
|
+
origin: "template",
|
|
8138
|
+
environment,
|
|
8139
|
+
content: ARTIFACT_TEMPLATES.source.browser
|
|
8140
|
+
}] : []];
|
|
8102
8141
|
return environment === "server" ? [entry, {
|
|
8103
8142
|
path: "app/server/main.ts",
|
|
8104
8143
|
group: "source",
|
|
@@ -8264,7 +8303,8 @@ function blueprintToTestArtifacts(blueprint) {
|
|
|
8264
8303
|
origin: "template",
|
|
8265
8304
|
content: ARTIFACT_TEMPLATES.tests.global.proof
|
|
8266
8305
|
}] : [];
|
|
8267
|
-
const
|
|
8306
|
+
const base = blueprint.base && blueprint.app.includes("browser");
|
|
8307
|
+
const journeys = blueprint.journey && (base || blueprintToFaces(blueprint).some((extension) => extension.surface === "browser" && extension.axes.includes("app"))) ? [...base ? ["browser"] : [], ...blueprintToFaces(blueprint).flatMap((extension) => extension.surface === "browser" && extension.axes.includes("app") ? [extension.name] : [])].map((application) => ({
|
|
8268
8308
|
path: `tests/app/${application}/integration.test.ts`,
|
|
8269
8309
|
group: "tests",
|
|
8270
8310
|
ownership: "birth",
|
|
@@ -9272,17 +9312,28 @@ function blueprintToQuestions(blueprint) {
|
|
|
9272
9312
|
blocking: false,
|
|
9273
9313
|
candidates: ENVIRONMENTS
|
|
9274
9314
|
}] : [],
|
|
9275
|
-
...ENVIRONMENTS.flatMap((environment) =>
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9315
|
+
...ENVIRONMENTS.flatMap((environment) => {
|
|
9316
|
+
const selected = blueprint.app.filter((declared) => declared === environment).length;
|
|
9317
|
+
return [
|
|
9318
|
+
...blueprint.src.filter((declared) => declared === environment).length > 1 ? [{
|
|
9319
|
+
field: "src",
|
|
9320
|
+
message: `src declares ${environment} more than once.`,
|
|
9321
|
+
blocking: true,
|
|
9322
|
+
candidates: ENVIRONMENTS
|
|
9323
|
+
}] : [],
|
|
9324
|
+
...selected > 1 ? [{
|
|
9325
|
+
field: "app",
|
|
9326
|
+
message: `app declares ${environment} more than once.`,
|
|
9327
|
+
blocking: true,
|
|
9328
|
+
candidates: ENVIRONMENTS
|
|
9329
|
+
}] : [],
|
|
9330
|
+
...environment === "browser" && selected > 0 && blueprint.base === false && blueprint.extensions.every((extension) => extension.surface !== "browser" || !extension.axes.includes("app")) ? [{
|
|
9331
|
+
field: "base",
|
|
9332
|
+
message: "No base browser entry or app-side browser face is declared, so browser scripts and arrival artifacts are omitted.",
|
|
9333
|
+
blocking: false
|
|
9334
|
+
}] : []
|
|
9335
|
+
];
|
|
9336
|
+
}),
|
|
9286
9337
|
...Iterator.from(blueprint.extensions).map((extension) => {
|
|
9287
9338
|
const selection = `${extension.surface}:${extension.name}`;
|
|
9288
9339
|
return {
|
|
@@ -9328,9 +9379,9 @@ function blueprintToQuestions(blueprint) {
|
|
|
9328
9379
|
message: "showcase projects a browser app, and this workspace declares none, so it emits nothing.",
|
|
9329
9380
|
blocking: false
|
|
9330
9381
|
}] : [],
|
|
9331
|
-
...blueprint.journey && !blueprint.app.includes("browser") ? [{
|
|
9382
|
+
...blueprint.journey && (!blueprint.app.includes("browser") || !blueprint.base && blueprint.extensions.every((extension) => extension.surface !== "browser" || !extension.axes.includes("app"))) ? [{
|
|
9332
9383
|
field: "journey",
|
|
9333
|
-
message: "journey projects a browser app, and this workspace declares none, so it emits nothing.",
|
|
9384
|
+
message: blueprint.app.includes("browser") ? "journey projects a browser application, and this workspace declares neither a base entry nor an app-side browser face, so it emits nothing." : "journey projects a browser app, and this workspace declares none, so it emits nothing.",
|
|
9334
9385
|
blocking: false
|
|
9335
9386
|
}] : [],
|
|
9336
9387
|
...dependenciesToQuestions(blueprint.dependencies, "dependencies", DEPENDENCY_NAME_PATTERN, ORKESTREL_RANGE_PATTERN),
|
|
@@ -9538,6 +9589,7 @@ function createBlueprint(name, input) {
|
|
|
9538
9589
|
global: input?.global ?? false,
|
|
9539
9590
|
showcase: input?.showcase ?? false,
|
|
9540
9591
|
journey: input?.journey ?? false,
|
|
9592
|
+
base: input?.base ?? input?.app?.includes("browser") ?? false,
|
|
9541
9593
|
skills: input?.skills ?? false
|
|
9542
9594
|
}));
|
|
9543
9595
|
if (blueprint === void 0) throw new ScaffoldError("INVALID", "The filled record is not a blueprint.", { name });
|
|
@@ -9843,6 +9895,6 @@ var Compiler = class {
|
|
|
9843
9895
|
return error;
|
|
9844
9896
|
}
|
|
9845
9897
|
};
|
|
9846
|
-
export { APP_BROWSER_DEV_DEPENDENCIES, APP_DEV_DEPENDENCIES, APP_MATRIX, APP_SERVER_DEV_DEPENDENCIES, ARTIFACT_GROUPS, ARTIFACT_TEMPLATES, AXES, BASE_DEV_DEPENDENCIES, BIN_CONFIGS, BIN_ENTRY_PATH, BIN_OUTPUT_PATH, BROWSE_DEV_DEPENDENCIES, BROWSE_UPSTREAM, CANON_PATHS, CAPTURE_DEV_DEPENDENCIES, CAPTURE_UPSTREAM, CATALOG_AGENT_PATH, CATALOG_END_MARKER, CATALOG_START_MARKER, CONFIG_TEMPLATES, CONFORMANCE_TEST_PATH, CONTROL_CHARACTER_PATTERN, Compiler, DECLARATION_DEV_DEPENDENCIES, DEFAULT_ENGINES, DEFAULT_VERSION, DEPENDENCY_NAME_PATTERN, DISTRIBUTION_SETUP_PATH, DISTRIBUTION_TEST_PATH, ENGINES_PATTERN, ENVIRONMENTS, EXECUTABLE_PATHS, EXTRA_RANGE_PATTERN, FLOOR_RANGE_PATTERN, FOREIGN_NAME_PATTERN, FRAMEWORKS, FRAMEWORK_MATRIX, GLOBAL_SETUP_PATH, 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_OVERRIDES, SHOWCASE_PAGES_PATH, SKILLS_CONFIG_PATH, SOURCE_BROWSER_DEV_DEPENDENCIES, SRC_MATRIX, STUDIES_TEST_INCLUDE, STYLES_DEV_DEPENDENCIES, STYLES_ENTRY_PATH, SURFACES, SURFACE_EDIT_LENGTH, SURFACE_TRANSFERS, ScaffoldError, TAB_WIDTH, TARGET_SKILL_NAMES, THEMES_BARREL_PATH, THEMES_ENTRY_PATH, TOOLCHAIN_HOLDS, TREE_TEST_PATH, VERSION_PATTERN, WORKSPACE_DEV_ENGINES, WORKSPACE_OWNED_PATHS, applyOverrides, artifactToArtifactFinding, artifactToHex, artifactsToQuestions, blueprintToConfigArtifacts, blueprintToDevDependencies, blueprintToDocumentArtifacts, blueprintToExports, blueprintToFaces, blueprintToGuideArtifacts, blueprintToHostArtifacts, blueprintToMachinery, blueprintToManifest, blueprintToManifestOverrides, blueprintToOptimizedDependencies, blueprintToOrchestrationArtifacts, blueprintToProjects, blueprintToQuestions, blueprintToRootTsconfig, blueprintToRootVite, blueprintToScripts, blueprintToSheets, blueprintToSourceArtifacts, blueprintToTestArtifacts, blueprintToToolchainHolds, blueprintToWritableScripts, bytesToHex, catalogToLayers, collectSurfaceAdvisories, collectSurfaceCollisions, collectSurfaceConflicts, compareSurfaceCollisions, compareVersions, computeBytes, computeHash, computeTotal, contentToHex, createBlueprint, dependenciesToQuestions, extractRangeMajor, extractVersion, inferArtifactDrift, inferArtifactGroup, inferSurfaceSimilarity, insertManifestDependencies, insertManifestSection, isArtifact, isArtifactFinding, isArtifactGroup, isArtifactGroups, isAudit, isBlueprint, isBrowserExtension, isCanonPath, isCatalogEntry, isCollection, isCompilerHooks, isCompilerOptions, isContent, isDeferredPath, isDependency, isDependencyName, isEnvironment, isExtension, isFloorPath, isHexContent, isManifestScript, isMirror, isOverride, isPath, isPlan, isQuestion, isRetainedPath, isScaffoldError, isSheetName, isSnapshot, isStylesExtension, isSurface, iterateAnswers, manifestToDependencies, manifestToName, matchesArtifactDriftReachability, matchesEngines, matchesGuideRefusal, matchesOrchestrationPath, matchesPrintWidth, matchesRange, matchesSurfaceStructure, nameToGuide, overridesToQuestions, parseArtifactGroups, parseBlueprint, parseCompilerOptions, parseExtension, parseOwnedJSONValue, parseSnapshot, pathToCondition, planToArtifactFindings, planToHash, planToSummary, renderSkillPointer, replaceManifestOverride, replaceManifestOverrides, replaceManifestRanges, replaceManifestScripts, replacePlanRanges, scanManifestTokens, selectArtifactGroups, selectHostPaths, serializeTypeScriptString, srcToEntry, srcToExports, srcToRoot };
|
|
9898
|
+
export { APP_BROWSER_DEV_DEPENDENCIES, APP_DEV_DEPENDENCIES, APP_MATRIX, APP_SERVER_DEV_DEPENDENCIES, ARTIFACT_GROUPS, ARTIFACT_TEMPLATES, AXES, BASE_DEV_DEPENDENCIES, BIN_CONFIGS, BIN_ENTRY_PATH, BIN_OUTPUT_PATH, BROWSER_ENTRIES, BROWSE_DEV_DEPENDENCIES, BROWSE_UPSTREAM, CANON_PATHS, CAPTURE_DEV_DEPENDENCIES, CAPTURE_UPSTREAM, CATALOG_AGENT_PATH, CATALOG_END_MARKER, CATALOG_START_MARKER, CONFIG_TEMPLATES, CONFORMANCE_TEST_PATH, CONTROL_CHARACTER_PATTERN, Compiler, DECLARATION_DEV_DEPENDENCIES, DEFAULT_ENGINES, DEFAULT_VERSION, DEPENDENCY_NAME_PATTERN, DISTRIBUTION_SETUP_PATH, DISTRIBUTION_TEST_PATH, ENGINES_PATTERN, ENVIRONMENTS, EXECUTABLE_PATHS, EXTRA_RANGE_PATTERN, FLOOR_RANGE_PATTERN, FOREIGN_NAME_PATTERN, FRAMEWORKS, FRAMEWORK_MATRIX, GLOBAL_SETUP_PATH, 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_OVERRIDES, SHOWCASE_PAGES_PATH, SKILLS_CONFIG_PATH, SOURCE_BROWSER_DEV_DEPENDENCIES, SRC_MATRIX, STUDIES_TEST_INCLUDE, STYLES_DEV_DEPENDENCIES, STYLES_ENTRY_PATH, SURFACES, SURFACE_EDIT_LENGTH, SURFACE_TRANSFERS, ScaffoldError, TAB_WIDTH, TARGET_SKILL_NAMES, THEMES_BARREL_PATH, THEMES_ENTRY_PATH, TOOLCHAIN_HOLDS, TREE_TEST_PATH, VERSION_PATTERN, WORKSPACE_DEV_ENGINES, WORKSPACE_OWNED_PATHS, applyOverrides, artifactToArtifactFinding, artifactToHex, artifactsToQuestions, blueprintToConfigArtifacts, blueprintToDevDependencies, blueprintToDocumentArtifacts, blueprintToExports, blueprintToFaces, blueprintToGuideArtifacts, blueprintToHostArtifacts, blueprintToMachinery, blueprintToManifest, blueprintToManifestOverrides, blueprintToOptimizedDependencies, blueprintToOrchestrationArtifacts, blueprintToProjects, blueprintToQuestions, blueprintToRootTsconfig, blueprintToRootVite, blueprintToScripts, blueprintToSheets, blueprintToSourceArtifacts, blueprintToTestArtifacts, blueprintToToolchainHolds, blueprintToWritableScripts, bytesToHex, catalogToLayers, collectSurfaceAdvisories, collectSurfaceCollisions, collectSurfaceConflicts, compareSurfaceCollisions, compareVersions, computeBytes, computeHash, computeTotal, contentToHex, createBlueprint, dependenciesToQuestions, extractRangeMajor, extractVersion, inferArtifactDrift, inferArtifactGroup, inferSurfaceSimilarity, insertManifestDependencies, insertManifestSection, isArtifact, isArtifactFinding, isArtifactGroup, isArtifactGroups, isAudit, isBlueprint, isBrowserExtension, isCanonPath, isCatalogEntry, isCollection, isCompilerHooks, isCompilerOptions, isContent, isDeferredPath, isDependency, isDependencyName, isEnvironment, isExtension, isFloorPath, isHexContent, isManifestScript, isMirror, isOverride, isPath, isPlan, isQuestion, isRetainedPath, isScaffoldError, isSheetName, isSnapshot, isStylesExtension, isSurface, iterateAnswers, manifestToDependencies, manifestToName, matchesArtifactDriftReachability, matchesEngines, matchesGuideRefusal, matchesOrchestrationPath, matchesPrintWidth, matchesRange, matchesSurfaceStructure, nameToGuide, overridesToQuestions, parseArtifactGroups, parseBlueprint, parseCompilerOptions, parseExtension, parseOwnedJSONValue, parseSnapshot, pathToCondition, planToArtifactFindings, planToHash, planToSummary, renderSkillPointer, replaceManifestOverride, replaceManifestOverrides, replaceManifestRanges, replaceManifestScripts, replacePlanRanges, scanManifestTokens, selectArtifactGroups, selectHostPaths, serializeTypeScriptString, srcToEntry, srcToExports, srcToRoot };
|
|
9847
9899
|
|
|
9848
9900
|
//# sourceMappingURL=index.js.map
|