@orkestrel/scaffold 0.0.128 → 0.0.129

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 CHANGED
@@ -10,7 +10,7 @@ import { readdirSync } from "node:fs";
10
10
  import { parseArgs } from "node:util";
11
11
  var package_default = {
12
12
  name: "@orkestrel/scaffold",
13
- version: "0.0.128",
13
+ version: "0.0.129",
14
14
  description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
15
15
  keywords: [
16
16
  "audit",
@@ -78,7 +78,7 @@ Treat generated package identifiers, versions, layers, and dependency ranges as
78
78
  | `@orkestrel/reason` | `0.0.17` | L2 | `@orkestrel/emitter` `^0.0.15`, `@orkestrel/contract` `^0.0.22` | |
79
79
  | `@orkestrel/relation` | `0.0.20` | L3 | `@orkestrel/emitter` `^0.0.15`, `@orkestrel/contract` `^0.0.22`, `@orkestrel/database` `^0.0.22` | |
80
80
  | `@orkestrel/router` | `0.0.20` | L2 | `@orkestrel/abort` `^0.0.16`, `@orkestrel/emitter` `^0.0.15`, `@orkestrel/contract` `^0.0.22` | |
81
- | `@orkestrel/scaffold` | `0.0.127` | L3 | `@orkestrel/console` `^0.0.19`, `@orkestrel/emitter` `^0.0.15`, `@orkestrel/process` `^0.0.18`, `@orkestrel/contract` `^0.0.22`, `@orkestrel/markdown` `^0.0.20`, `@orkestrel/template` `^0.0.13` | |
81
+ | `@orkestrel/scaffold` | `0.0.128` | L3 | `@orkestrel/console` `^0.0.19`, `@orkestrel/emitter` `^0.0.15`, `@orkestrel/process` `^0.0.18`, `@orkestrel/contract` `^0.0.22`, `@orkestrel/markdown` `^0.0.20`, `@orkestrel/template` `^0.0.13` | |
82
82
  | `@orkestrel/sea` | `0.0.22` | L3 | `@orkestrel/emitter` `^0.0.15`, `@orkestrel/process` `^0.0.18`, `@orkestrel/contract` `^0.0.22` | |
83
83
  | `@orkestrel/server` | `0.0.26` | L3 | `@orkestrel/abort` `^0.0.16`, `@orkestrel/codec` `^0.0.9`, `@orkestrel/router` `^0.0.20`, `@orkestrel/emitter` `^0.0.15`, `@orkestrel/timeout` `^0.0.16`, `@orkestrel/contract` `^0.0.22` | |
84
84
  | `@orkestrel/sqlite` | `0.0.17` | L1 | `@orkestrel/contract` `^0.0.22` | |
@@ -119,20 +119,20 @@ Environment rules:
119
119
 
120
120
  ## Build outputs
121
121
 
122
- | Output | Content | Format |
123
- | ----------------------------- | -------------------------------- | ------------------------- |
124
- | `dist/src/core` | Core library + declarations | ES and CJS |
125
- | `dist/src/browser` | Browser library + declarations | ES |
126
- | `dist/src/server` | Server library + declarations | ES and CJS |
127
- | `dist/src/vue` | Vue face + declarations | ES |
128
- | `dist/src/styles` | Compiled `index.css` | CSS |
129
- | `dist/src/styles/themes` | Compiled themes `index.css` | CSS |
130
- | `dist/src/<name>` | Compiled `index.css` | CSS |
131
- | `dist/bin` | Optional executable `main.js` | ES with shebang |
132
- | `dist/app/browser` | Browser application | target-defined |
133
- | `dist/app/vue` | Vue application | target-defined |
134
- | `dist/app/server` | Server application | CJS |
135
- | `showcase/<application>.html` | Single-file page per application | self-contained, committed |
122
+ | Output | Content | Format |
123
+ | ----------------------------- | -------------------------------- | ------------------------------------------------------- |
124
+ | `dist/src/core` | Core library + declarations | ES and CJS |
125
+ | `dist/src/browser` | Browser library + declarations | ES |
126
+ | `dist/src/server` | Server library + declarations | ES and CJS |
127
+ | `dist/src/vue` | Vue face + declarations | ES |
128
+ | `dist/src/styles` | Compiled `index.css` | CSS |
129
+ | `dist/src/styles/themes` | Compiled themes `index.css` | CSS |
130
+ | `dist/src/<name>` | Compiled `index.css` | CSS |
131
+ | `dist/bin` | Optional executable `main.js` | ES with shebang |
132
+ | `dist/app/browser` | Browser application | target-defined |
133
+ | `dist/app/vue` | Vue application | target-defined |
134
+ | `dist/app/server` | Server application | CJS runtime entry; ES barrel when `studies` is selected |
135
+ | `showcase/<application>.html` | Single-file page per application | self-contained, committed |
136
136
 
137
137
  - Roll up each published TypeScript face's declarations in its Vite wrapper. A face that imports `@src/core` or `@src/browser` rewrites those specifiers to the published subpaths in its emitted declarations.
138
138
  - A sheet face ships CSS, not declarations, and its JavaScript build stub stays out of `files`.
@@ -139,6 +139,7 @@ Exported from `@orkestrel/scaffold`, and reachable from
139
139
  | `ARTIFACT_GROUPS` | const | `readonly ArtifactGroup[]` | Lists the `ArtifactGroup` values in plan order, frozen. |
140
140
  | `ARTIFACT_TEMPLATES` | const | `ArtifactTemplateSet` | Holds formatter-stable template text for source, test, document, guide, and service artifacts. |
141
141
  | `AXES` | const | `readonly Axis[]` | Lists the axes a browser extension may occupy, frozen. |
142
+ | `BARREL_CONFIGS` | const | `readonly string[]` | Lists the configuration file a workspace with studies and a server application adds, frozen. |
142
143
  | `BASE_DEV_DEPENDENCIES` | const | `Readonly<Record<string, string>>` | Holds the baseline tooling versions, before framework holds apply. |
143
144
  | `BIN_CONFIGS` | const | `readonly string[]` | Lists the configuration files a workspace that ships its own executable adds, frozen. |
144
145
  | `BIN_ENTRY_PATH` | const | `"src/bin/main.ts"` | Names the executable entry whose presence makes a workspace `bin`. |
@@ -297,6 +298,7 @@ Exported from `@orkestrel/scaffold`, and reachable from
297
298
  | `manifestToDependencies` | function | `(manifest: string) => ManifestDependencySet` | Projects a package manifest's text to the `@orkestrel/*` packages each dependency section declares. |
298
299
  | `manifestToName` | function | `(manifest: string) => string \| undefined` | Projects a package manifest's text to its own name. |
299
300
  | `matchesArtifactDriftReachability` | function | `(ownership: Ownership, finding: ArtifactFinding) => boolean` | Tests whether `inferArtifactDrift` could have produced a finding for an ownership. |
301
+ | `matchesBarrel` | function | `(blueprint: Blueprint) => boolean` | Tests whether a workspace plans the application server barrel build. |
300
302
  | `matchesEngines` | function | `(engines: string) => boolean` | Tests whether a declared engines floor is at or above the supported minimum. |
301
303
  | `matchesOrchestrationPath` | function | `(path: string) => boolean` | Tests whether a path instructs or wires an agent rather than the toolchain. |
302
304
  | `matchesPrintWidth` | function | `(line: string) => boolean` | Tests whether one emitted line fits the vendored formatter width. |
@@ -1687,6 +1689,19 @@ and splits it under a control. Scaffold's `tests/src/core/templates.test.ts` run
1687
1689
  server root, builds explicit output lists through the factory parameter, and runs the vendored case
1688
1690
  in staged server targets under a mutation of the factory and of the control.
1689
1691
 
1692
+ A workspace that selects `studies` and the `server` application also builds the server's barrel,
1693
+ `app/server/index.ts`, because `@orkestrel/study` loads the package under study as ES modules. The
1694
+ `appBarrel` factory, the content-owned `configs/app/vite.barrel.config.ts` wrapper, and the
1695
+ `build:app:barrel` script exist only under that condition, and `build:app` runs the script after
1696
+ `build:app:server`. The build emits the single file `dist/app/server/index.js` with `@app/*` and
1697
+ `@src/*` specifiers and relative imports inlined, and `node:` and every installed package specifier
1698
+ left external. It sets `emptyOutDir` to `false`, so `main.cjs` stays byte-identical. A workspace
1699
+ without both conditions plans none of the three. Scaffold's `tests/src/core/templates.test.ts` builds both entries in a
1700
+ staged root, compares the `main.cjs` digest across the barrel step, builds the barrel twice for one
1701
+ `index.js` digest, imports the file in Node, and holds each claim under a control. The vendored
1702
+ `tests/config.test.ts` repeats the externals, digest, and `main.cjs` readings in each target that
1703
+ plans the barrel.
1704
+
1690
1705
  ### The migration guard
1691
1706
 
1692
1707
  Vue code belongs to the `vue` extension's faces. `repair` and `overwrite` refuse a target whose
@@ -628,7 +628,7 @@
628
628
  "storage": "claude/agents/orkestrel.md",
629
629
  "destination": ".claude/agents/orkestrel.md",
630
630
  "executable": false,
631
- "digest": "a8c9dc23ba68618e2b09eb77c684a7e184ca9f31afe81588a9355b3c4f0e9091"
631
+ "digest": "a7517e676232471f4d4442b2ff7ad7fdeb5f4b2f5385888b16812495c0e3d07b"
632
632
  },
633
633
  {
634
634
  "storage": "claude/agents/planner.md",
@@ -736,7 +736,7 @@
736
736
  "storage": "claude/rules/workspace.md",
737
737
  "destination": ".claude/rules/workspace.md",
738
738
  "executable": false,
739
- "digest": "43d46cd789af54b04b3adc53250c38ea38d1757bae23ff34f321d0b70893e525"
739
+ "digest": "0a5a7b0278de5ab0c7ef8633e74729af393fff366003f031d97ae8d63fbd0d38"
740
740
  },
741
741
  {
742
742
  "storage": "claude/rules/writing.md",
@@ -1198,7 +1198,7 @@
1198
1198
  "storage": "guides/scaffold.md",
1199
1199
  "destination": "guides/scaffold.md",
1200
1200
  "executable": false,
1201
- "digest": "e594eddd6e2bc9c7138d4a83010d421edad1fb5c602175e5939bab3b7f461729"
1201
+ "digest": "655087dbab9aa83f336b353ebbc1faf23eeea3454c184cc3292753ae0901555b"
1202
1202
  },
1203
1203
  {
1204
1204
  "storage": "guides/sea.md",
@@ -1336,7 +1336,7 @@
1336
1336
  "storage": "tests/config.test.ts",
1337
1337
  "destination": "tests/config.test.ts",
1338
1338
  "executable": false,
1339
- "digest": "bf15132fd375ab310ff11a010481d86796b8348fd03b9e4a2585415492707eec"
1339
+ "digest": "5f0feb333edeb7269b433fc1ea573a153aa35b47107f9ca0ffef48204d8f8986"
1340
1340
  },
1341
1341
  {
1342
1342
  "storage": "tests/policy.test.ts",
@@ -1417,5 +1417,5 @@
1417
1417
  "scripts"
1418
1418
  ],
1419
1419
  "surface": [],
1420
- "digest": "8648e6666d97093faa375c67f4e668bd6f62a0b67aee232852500ff511af7fae"
1420
+ "digest": "40949d1d08e62f8022e42f51a9bb712b29c6c4d3eb91b55a9661c78671e28e19"
1421
1421
  }
@@ -5,6 +5,7 @@ import type { InlineConfig, UserConfig } from 'vite'
5
5
  import type { PolicyComment, PolicyDiagnostic, PolicyExpression } from '../configs/policy.js'
6
6
  import type { PolicyProject } from './setupPolicy.js'
7
7
  import { spawnSync } from 'node:child_process'
8
+ import { createHash } from 'node:crypto'
8
9
  import {
9
10
  closeSync,
10
11
  existsSync,
@@ -1451,6 +1452,101 @@ describe('root configuration', () => {
1451
1452
  }
1452
1453
  })
1453
1454
 
1455
+ // A workspace with studies and an `app/server` also builds the server's barrel to the
1456
+ // single ES file `index.js` beside `main.cjs`, which a study loads as ESM. The real
1457
+ // wrapper's configuration builds a scratch entry into a scratch output directory that
1458
+ // already holds a `main.cjs`, four times: as declared twice, with an `external` that
1459
+ // inlines bare packages, and with `emptyOutDir` on. The first build keeps `main.cjs` and
1460
+ // leaves the bare import in place, the second repeats its digest, and the two controls
1461
+ // show the declared options carry the result: the inlined build drops the bare import
1462
+ // and the emptying build deletes `main.cjs`. A workspace without the conditions has no
1463
+ // wrapper, and the assertion classifies the absence.
1464
+ it('builds the application server barrel to bare externals beside main.cjs', async () => {
1465
+ const wrapper = resolve(POLICY_ROOT, 'configs/app/vite.barrel.config.ts')
1466
+ const planned =
1467
+ collectStudies(POLICY_ROOT).length > 0 && existsSync(resolve(POLICY_ROOT, 'app/server'))
1468
+ expect(existsSync(wrapper)).toBe(planned)
1469
+ if (!planned) return
1470
+ const scratch = createPolicyScratch({
1471
+ parent: resolve(POLICY_ROOT, 'app/server'),
1472
+ prefix: 'config-barrel-entry-',
1473
+ })
1474
+ const out = createPolicyScratch({ prefix: 'config-barrel-out-' })
1475
+ try {
1476
+ scratch.write(
1477
+ 'index.ts',
1478
+ "import { join } from 'node:path'\nimport { peer } from 'barrel-peer'\nexport const served: string = join(peer, 'x')\n",
1479
+ )
1480
+ scratch.write(
1481
+ 'node_modules/barrel-peer/package.json',
1482
+ '{ "name": "barrel-peer", "version": "1.0.0", "type": "module", "main": "index.js" }\n',
1483
+ )
1484
+ scratch.write('node_modules/barrel-peer/index.js', "export const peer = 'peer'\n")
1485
+ const readings: Array<{
1486
+ readonly variant: string
1487
+ readonly kept: boolean
1488
+ readonly bare: boolean
1489
+ readonly digest: string
1490
+ }> = []
1491
+ for (const variant of ['declared', 'repeated', 'inlined', 'emptying']) {
1492
+ out.write('main.cjs', 'main\n')
1493
+ const loaded = await loadConfigFromFile(
1494
+ { command: 'build', mode: 'production', isSsrBuild: false, isPreview: false },
1495
+ wrapper,
1496
+ POLICY_ROOT,
1497
+ 'silent',
1498
+ )
1499
+ if (loaded === null) throw new Error('The barrel wrapper did not load')
1500
+ const rolldown = loaded.config.build?.rolldownOptions
1501
+ expect(loaded.config.build?.emptyOutDir).toBe(false)
1502
+ await build({
1503
+ ...loaded.config,
1504
+ root: POLICY_ROOT,
1505
+ configFile: false,
1506
+ logLevel: 'silent',
1507
+ // The output boundary pins the real output directory, which the scratch directory replaces.
1508
+ plugins: (loaded.config.plugins ?? []).filter(
1509
+ (plugin) =>
1510
+ typeof plugin !== 'object' ||
1511
+ plugin === null ||
1512
+ Object.getOwnPropertyDescriptor(plugin, 'name')?.value !==
1513
+ 'orkestrel-output-boundary',
1514
+ ),
1515
+ build: {
1516
+ ...loaded.config.build,
1517
+ outDir: out.path,
1518
+ ...(variant === 'emptying' ? { emptyOutDir: true } : {}),
1519
+ lib: {
1520
+ entry: resolve(scratch.path, 'index.ts'),
1521
+ formats: ['es'],
1522
+ fileName: () => 'index.js',
1523
+ },
1524
+ rolldownOptions: {
1525
+ ...rolldown,
1526
+ ...(variant === 'inlined' ? { external: /^node:/u } : {}),
1527
+ },
1528
+ },
1529
+ })
1530
+ const text = readFileSync(resolve(out.path, 'index.js'), 'utf8')
1531
+ readings.push({
1532
+ variant,
1533
+ kept: existsSync(resolve(out.path, 'main.cjs')),
1534
+ bare: /from ["']barrel-peer["']/u.test(text),
1535
+ digest: createHash('sha256').update(text).digest('hex'),
1536
+ })
1537
+ }
1538
+ const [declared, repeated, inlined, emptying] = readings
1539
+ expect(declared).toMatchObject({ kept: true, bare: true })
1540
+ expect(repeated?.digest).toBe(declared?.digest)
1541
+ expect(inlined).toMatchObject({ kept: true, bare: false })
1542
+ expect(inlined?.digest).not.toBe(declared?.digest)
1543
+ expect(emptying).toMatchObject({ kept: false, bare: true })
1544
+ } finally {
1545
+ out.destroy()
1546
+ scratch.destroy()
1547
+ }
1548
+ })
1549
+
1454
1550
  it('registers proof scripts in the correct gate', () => {
1455
1551
  const manifest: unknown = JSON.parse(readFileSync(resolve(POLICY_ROOT, 'package.json'), 'utf8'))
1456
1552
  if (typeof manifest !== 'object' || manifest === null) {
@@ -4,7 +4,7 @@ let _orkestrel_template = require("@orkestrel/template");
4
4
  let _orkestrel_emitter = require("@orkestrel/emitter");
5
5
  var package_default = {
6
6
  name: "@orkestrel/scaffold",
7
- version: "0.0.128",
7
+ version: "0.0.129",
8
8
  description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
9
9
  keywords: [
10
10
  "audit",
@@ -248,6 +248,8 @@ var APP_MATRIX = Object.freeze({
248
248
  });
249
249
  /** Lists the configuration files a workspace that ships its own executable adds, frozen. */
250
250
  var BIN_CONFIGS = Object.freeze(["configs/src/vite.bin.config.ts", "configs/src/tsconfig.bin.json"]);
251
+ /** Lists the configuration file a workspace with studies and a server application adds, frozen. */
252
+ var BARREL_CONFIGS = Object.freeze(["configs/app/vite.barrel.config.ts"]);
251
253
  /** Names the executable entry whose presence makes a workspace `bin`. */
252
254
  var BIN_ENTRY_PATH = "src/bin/main.ts";
253
255
  /** Names the built executable a bin workspace's manifest command runs. */
@@ -1495,6 +1497,37 @@ export function appServer(override?: UserConfig): UserConfig {
1495
1497
  },
1496
1498
  }
1497
1499
  }
1500
+ `,
1501
+ barrel: `function resolveBarrelExternal(id: string): boolean {
1502
+ if (id.startsWith('node:')) return true
1503
+ if (id.startsWith('@app/') || id.startsWith('@src/') || id.startsWith('.') || id.startsWith('/'))
1504
+ return false
1505
+ return /^(?:@[\\w.~-]+\\/)?[\\w.~-]+(?:\\/|$)/u.test(id)
1506
+ }
1507
+
1508
+ export function appBarrel(override?: UserConfig): UserConfig {
1509
+ const project: UserConfig = {
1510
+ resolve,
1511
+ publicDir: false,
1512
+ plugins: [outputBoundary('dist/app/server'), environmentBoundary('app/server')],
1513
+ build: {
1514
+ emptyOutDir: false,
1515
+ lib: {
1516
+ entry: resolveWorkspacePath('app/server/index.ts'),
1517
+ formats: ['es'],
1518
+ fileName: () => 'index.js',
1519
+ },
1520
+ outDir: resolveWorkspacePath('dist/app/server'),
1521
+ target: 'node22',
1522
+ rolldownOptions: {
1523
+ onLog: enforceBuildLog,
1524
+ external: resolveBarrelExternal,
1525
+ output: { codeSplitting: false },
1526
+ },
1527
+ },
1528
+ }
1529
+ return mergeOverride(project, override)
1530
+ }
1498
1531
  `
1499
1532
  }),
1500
1533
  policy: `export function policy(override?: UserConfig): UserConfig {
@@ -2085,6 +2118,11 @@ export default defineConfig(appBrowser())
2085
2118
  import { appServer } from '../../vite.config.ts'
2086
2119
 
2087
2120
  export default defineConfig(appServer())
2121
+ `,
2122
+ barrel: `import { defineConfig } from 'vite'
2123
+ import { appBarrel } from '../../vite.config.ts'
2124
+
2125
+ export default defineConfig(appBarrel())
2088
2126
  `,
2089
2127
  showcase: `import { defineConfig } from 'vite'
2090
2128
  import { appShowcase } from '../../vite.config.ts'
@@ -6163,6 +6201,22 @@ function matchesPrintWidth(line) {
6163
6201
  return line.replaceAll(" ", " ".repeat(2)).length <= 100;
6164
6202
  }
6165
6203
  /**
6204
+ * Tests whether a workspace plans the application server barrel build.
6205
+ *
6206
+ * @param blueprint - The workspace specification.
6207
+ * @returns True if the workspace selects `studies` and the `server` application; false otherwise.
6208
+ *
6209
+ * @example
6210
+ * ```ts
6211
+ * import { createBlueprint, matchesBarrel } from '@orkestrel/scaffold'
6212
+ *
6213
+ * matchesBarrel(createBlueprint('crm', { app: ['core', 'server'], studies: true })) // true
6214
+ * ```
6215
+ */
6216
+ function matchesBarrel(blueprint) {
6217
+ return blueprint.studies && blueprint.app.includes("server");
6218
+ }
6219
+ /**
6166
6220
  * Selects the single published environment a package root points at.
6167
6221
  *
6168
6222
  * @param src - The declared published environments.
@@ -7244,6 +7298,7 @@ function blueprintToScripts(blueprint) {
7244
7298
  const compiles = publishes || blueprint.bin;
7245
7299
  const runtime = blueprint.app.filter((environment) => environment !== "core" && (environment !== "browser" || base));
7246
7300
  const vitest = "vitest run --config vite.config.ts --no-cache --reporter=dot";
7301
+ const built = [...runtime, ...application].flatMap((environment) => environment === "server" && matchesBarrel(blueprint) ? [environment, "barrel"] : [environment]);
7247
7302
  const checks = [
7248
7303
  ...blueprint.src,
7249
7304
  ...source,
@@ -7356,8 +7411,8 @@ function blueprintToScripts(blueprint) {
7356
7411
  ...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(" && ")]))
7357
7412
  } : {},
7358
7413
  ...blueprint.app.length > 0 ? {
7359
- "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"}`,
7360
- ...Object.fromEntries([...runtime, ...application].map((environment) => [`build:app:${environment}`, `vite build --config configs/app/vite.${environment}.config.ts`]))
7414
+ "build:app": runtime.length + application.length > 0 ? built.map((environment) => `npm run build:app:${environment}`).join(" && ") : `npm run check:app:${blueprint.app.includes("core") ? "core" : "browser"}`,
7415
+ ...Object.fromEntries(built.map((environment) => [`build:app:${environment}`, `vite build --config configs/app/vite.${environment}.config.ts`]))
7361
7416
  } : {},
7362
7417
  ...base ? {
7363
7418
  dev: "vite --config configs/app/vite.browser.config.ts",
@@ -7813,6 +7868,7 @@ function blueprintToRootVite(blueprint) {
7813
7868
  })] : [],
7814
7869
  ...planned.has("app:vue") ? [(0, _orkestrel_template.fillTemplate)(CONFIG_TEMPLATES.factories.app.vue, { journeyExclude: journeyed ? " exclude: ['tests/app/vue/integration.test.ts'],\n" : " exclude: [],\n" })] : [],
7815
7870
  ...planned.has("app:server") ? [CONFIG_TEMPLATES.factories.app.server] : [],
7871
+ ...matchesBarrel(blueprint) ? [CONFIG_TEMPLATES.factories.app.barrel] : [],
7816
7872
  CONFIG_TEMPLATES.factories.policy,
7817
7873
  CONFIG_TEMPLATES.factories.config,
7818
7874
  ...planned.has("setup") ? [CONFIG_TEMPLATES.factories.setup] : [],
@@ -7962,6 +8018,14 @@ ${paths.join("\n")}
7962
8018
  origin: "template",
7963
8019
  content: path === "configs/src/tsconfig.bin.json" ? CONFIG_TEMPLATES.tsconfigs.bin : (0, _orkestrel_template.fillTemplate)(CONFIG_TEMPLATES.vites.bin, { paths: renderedPaths })
7964
8020
  })) : [];
8021
+ const barrels = matchesBarrel(blueprint) ? BARREL_CONFIGS.map((path) => ({
8022
+ path,
8023
+ group: "configs",
8024
+ ownership: "content",
8025
+ origin: "template",
8026
+ environment: "server",
8027
+ content: CONFIG_TEMPLATES.vites.app.barrel
8028
+ })) : [];
7965
8029
  const includeSuffixes = [
7966
8030
  "cts",
7967
8031
  "mts",
@@ -8067,6 +8131,7 @@ ${paths.join("\n")}
8067
8131
  ...sources,
8068
8132
  ...bins,
8069
8133
  ...applications,
8134
+ ...barrels,
8070
8135
  ...faces,
8071
8136
  ...showcase,
8072
8137
  ...journey,
@@ -9903,6 +9968,7 @@ exports.APP_SERVER_DEV_DEPENDENCIES = APP_SERVER_DEV_DEPENDENCIES;
9903
9968
  exports.ARTIFACT_GROUPS = ARTIFACT_GROUPS;
9904
9969
  exports.ARTIFACT_TEMPLATES = ARTIFACT_TEMPLATES;
9905
9970
  exports.AXES = AXES;
9971
+ exports.BARREL_CONFIGS = BARREL_CONFIGS;
9906
9972
  exports.BASE_DEV_DEPENDENCIES = BASE_DEV_DEPENDENCIES;
9907
9973
  exports.BIN_CONFIGS = BIN_CONFIGS;
9908
9974
  exports.BIN_ENTRY_PATH = BIN_ENTRY_PATH;
@@ -10076,6 +10142,7 @@ exports.iterateAnswers = iterateAnswers;
10076
10142
  exports.manifestToDependencies = manifestToDependencies;
10077
10143
  exports.manifestToName = manifestToName;
10078
10144
  exports.matchesArtifactDriftReachability = matchesArtifactDriftReachability;
10145
+ exports.matchesBarrel = matchesBarrel;
10079
10146
  exports.matchesEngines = matchesEngines;
10080
10147
  exports.matchesGuideRefusal = matchesGuideRefusal;
10081
10148
  exports.matchesOrchestrationPath = matchesOrchestrationPath;