@prisma/composer 0.36.0-dev.3 → 0.36.0-dev.5

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 (110) hide show
  1. package/dist/{app-config-8nfo_ECP-DngN6Z3i.d.mts → app-config-BvxeTt2h-CcVmwsq6.d.mts} +44 -6
  2. package/dist/app-config-BvxeTt2h-CcVmwsq6.d.mts.map +1 -0
  3. package/dist/arktype.d.mts +20 -6
  4. package/dist/arktype.d.mts.map +1 -1
  5. package/dist/arktype.mjs +46 -6
  6. package/dist/arktype.mjs.map +1 -1
  7. package/dist/config-Cn9vjklJ.d.mts +1 -0
  8. package/dist/config-adapters-BA_IeiX0-BiE51GeB.mjs +84 -0
  9. package/dist/config-adapters-BA_IeiX0-BiE51GeB.mjs.map +1 -0
  10. package/dist/config-pools-DiYw7wMu-DzeWrJdm.mjs +63 -0
  11. package/dist/config-pools-DiYw7wMu-DzeWrJdm.mjs.map +1 -0
  12. package/dist/config.d.mts +18 -3
  13. package/dist/config.d.mts.map +1 -0
  14. package/dist/config.mjs +2 -1
  15. package/dist/control.d.mts +11 -7
  16. package/dist/control.d.mts.map +1 -1
  17. package/dist/control.mjs +3 -3
  18. package/dist/control.mjs.map +1 -1
  19. package/dist/deploy-Cn9vjklJ.d.mts +1 -0
  20. package/dist/deploy.d.mts +2 -2
  21. package/dist/deploy.mjs +3 -2
  22. package/dist/deploy.mjs.map +1 -1
  23. package/dist/{deployment-summary-p88NV5m5-BZ4RWg1k.d.mts → deployment-summary-Cm4lN6w9-Dc69sCgo.d.mts} +5 -4
  24. package/dist/deployment-summary-Cm4lN6w9-Dc69sCgo.d.mts.map +1 -0
  25. package/dist/{deployment-summary-CDHdLtnO-DrE7GsHq.mjs → deployment-summary-QkZexVIS-DqL4znd4.mjs} +35 -11
  26. package/dist/deployment-summary-QkZexVIS-DqL4znd4.mjs.map +1 -0
  27. package/dist/describe-kind-Cpm_euxo-JFh8ejof.mjs +14 -0
  28. package/dist/describe-kind-Cpm_euxo-JFh8ejof.mjs.map +1 -0
  29. package/dist/{dev-current-BNoPkDRU-qQ5hObmB.mjs → dev-current-BurA9uhA-C7E-BpRH.mjs} +5 -5
  30. package/dist/{dev-current-BNoPkDRU-qQ5hObmB.mjs.map → dev-current-BurA9uhA-C7E-BpRH.mjs.map} +1 -1
  31. package/dist/{dev-environment-name-6eEr5PW8-CGk1ijP7.mjs → dev-environment-name-6eEr5PW8-BbNUVxlS.mjs} +2 -2
  32. package/dist/{dev-environment-name-6eEr5PW8-CGk1ijP7.mjs.map → dev-environment-name-6eEr5PW8-BbNUVxlS.mjs.map} +1 -1
  33. package/dist/{dist-CQVqb52E.mjs → dist-0Iux8Khv.mjs} +11 -3
  34. package/dist/dist-0Iux8Khv.mjs.map +1 -0
  35. package/dist/errors-0e8IVwzi.mjs.map +1 -1
  36. package/dist/{execute-deploy-destroy-BIqwt1RF-B83XdRmn.mjs → execute-deploy-destroy-Cww6zOSC-CIPx-m4I.mjs} +14 -7
  37. package/dist/execute-deploy-destroy-Cww6zOSC-CIPx-m4I.mjs.map +1 -0
  38. package/dist/{execute-dev-DIEyloWn-L5AXbxEF.mjs → execute-dev-4KYkqSMh-BP9S193k.mjs} +36 -16
  39. package/dist/execute-dev-4KYkqSMh-BP9S193k.mjs.map +1 -0
  40. package/dist/{execute-dev-current-CeKI-tiC-BMAsygzx.mjs → execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs} +6 -6
  41. package/dist/{execute-dev-current-CeKI-tiC-BMAsygzx.mjs.map → execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs.map} +1 -1
  42. package/dist/{execute-log-DA5AAQAA-CBNrz-1p.mjs → execute-log-BC5o35wQ-C8QWELlP.mjs} +6 -6
  43. package/dist/{execute-log-DA5AAQAA-CBNrz-1p.mjs.map → execute-log-BC5o35wQ-C8QWELlP.mjs.map} +1 -1
  44. package/dist/{graph-Dahnws6W-yKmoqSdc.d.mts → graph-CN8VuVZN-Ck2y98XZ.d.mts} +3 -3
  45. package/dist/graph-CN8VuVZN-Ck2y98XZ.d.mts.map +1 -0
  46. package/dist/{graph-KEuXGBfJ-BfR6EMoN.mjs → graph-gE31_ToO-BouKBfIS.mjs} +424 -334
  47. package/dist/graph-gE31_ToO-BouKBfIS.mjs.map +1 -0
  48. package/dist/{graph-types-Bn3tSF4x-BuHwUsq4.d.mts → graph-types-R38xjBnN-cDTIX_rZ.d.mts} +106 -82
  49. package/dist/graph-types-R38xjBnN-cDTIX_rZ.d.mts.map +1 -0
  50. package/dist/http.d.mts +2 -2
  51. package/dist/http.mjs +2 -2
  52. package/dist/{index-Ba2dpziF.d.mts → index-BHdm4Q39.d.mts} +3 -3
  53. package/dist/index-BHdm4Q39.d.mts.map +1 -0
  54. package/dist/index.d.mts +5 -5
  55. package/dist/index.mjs +4 -4
  56. package/dist/internal-pools.d.mts +18 -0
  57. package/dist/internal-pools.d.mts.map +1 -0
  58. package/dist/internal-pools.mjs +2 -0
  59. package/dist/{local-target-DySKw61w.mjs → local-target-zSdLvLyy.mjs} +4 -3
  60. package/dist/{local-target-DySKw61w.mjs.map → local-target-zSdLvLyy.mjs.map} +1 -1
  61. package/dist/local-target.d.mts +2 -2
  62. package/dist/local-target.d.mts.map +1 -1
  63. package/dist/local-target.mjs +1 -1
  64. package/dist/{nextjs-DLyeRR7M-CNdHQRgH.d.mts → nextjs-DLyeRR7M-CuGngjU4.d.mts} +3 -3
  65. package/dist/{nextjs-DLyeRR7M-CNdHQRgH.d.mts.map → nextjs-DLyeRR7M-CuGngjU4.d.mts.map} +1 -1
  66. package/dist/nextjs-control.d.mts +4 -4
  67. package/dist/nextjs.d.mts +1 -1
  68. package/dist/node-control.d.mts +3 -3
  69. package/dist/node.d.mts +2 -2
  70. package/dist/pointer-CyQZZugO-D7k3vibs.d.mts +42 -0
  71. package/dist/pointer-CyQZZugO-D7k3vibs.d.mts.map +1 -0
  72. package/dist/report.d.mts +3 -3
  73. package/dist/report.mjs +1 -1
  74. package/dist/report.mjs.map +1 -1
  75. package/dist/{run-alchemy-Dl_MWw4g-BZaLckHp.mjs → run-alchemy-B-Z6i3cD-C30mHT0u.mjs} +6 -5
  76. package/dist/run-alchemy-B-Z6i3cD-C30mHT0u.mjs.map +1 -0
  77. package/dist/{secret-DoWGmN7m-DO5Brq1Y.mjs → secret-DoWGmN7m-CI5Yrldp.mjs} +18 -2
  78. package/dist/secret-DoWGmN7m-CI5Yrldp.mjs.map +1 -0
  79. package/dist/service-rpc.d.mts +2 -2
  80. package/dist/service-rpc.mjs +2 -2
  81. package/dist/testing.d.mts +2 -2
  82. package/dist/testing.d.mts.map +1 -1
  83. package/dist/{validate-environment-CEhUSEg2-D3vECWQz.mjs → validate-environment-BNZC6W46-B0ESzFBn.mjs} +49 -12
  84. package/dist/validate-environment-BNZC6W46-B0ESzFBn.mjs.map +1 -0
  85. package/dist/zod.d.mts +30 -0
  86. package/dist/zod.d.mts.map +1 -0
  87. package/dist/zod.mjs +40 -0
  88. package/dist/zod.mjs.map +1 -0
  89. package/package.json +31 -18
  90. package/skills/prisma-composer-core-concepts/SKILL.md +37 -24
  91. package/src/exports/config.ts +1 -0
  92. package/src/exports/internal-pools.ts +1 -0
  93. package/src/exports/zod.ts +1 -0
  94. package/dist/app-config-8nfo_ECP-DngN6Z3i.d.mts.map +0 -1
  95. package/dist/config-cJwLd_Uj.d.mts +0 -1
  96. package/dist/deploy-cJwLd_Uj.d.mts +0 -1
  97. package/dist/deployment-summary-CDHdLtnO-DrE7GsHq.mjs.map +0 -1
  98. package/dist/deployment-summary-p88NV5m5-BZ4RWg1k.d.mts.map +0 -1
  99. package/dist/dist-CQVqb52E.mjs.map +0 -1
  100. package/dist/execute-deploy-destroy-BIqwt1RF-B83XdRmn.mjs.map +0 -1
  101. package/dist/execute-dev-DIEyloWn-L5AXbxEF.mjs.map +0 -1
  102. package/dist/graph-Dahnws6W-yKmoqSdc.d.mts.map +0 -1
  103. package/dist/graph-KEuXGBfJ-BfR6EMoN.mjs.map +0 -1
  104. package/dist/graph-types-Bn3tSF4x-BuHwUsq4.d.mts.map +0 -1
  105. package/dist/index-Ba2dpziF.d.mts.map +0 -1
  106. package/dist/run-alchemy-Dl_MWw4g-BZaLckHp.mjs.map +0 -1
  107. package/dist/secret-CHOw4LBU-C8yXoC9N.d.mts +0 -25
  108. package/dist/secret-CHOw4LBU-C8yXoC9N.d.mts.map +0 -1
  109. package/dist/secret-DoWGmN7m-DO5Brq1Y.mjs.map +0 -1
  110. package/dist/validate-environment-CEhUSEg2-D3vECWQz.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { n as SecretString } from "./secret-CHOw4LBU-C8yXoC9N.mjs";
1
+ import { a as SecretString, t as Pointer } from "./pointer-CyQZZugO-D7k3vibs.mjs";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  //#region ../../0-framework/0-foundation/foundation/dist/errors.d.mts
4
4
  //#region src/structured-error.d.ts
@@ -78,7 +78,7 @@ declare class CliStructuredError extends Error implements StructuredError {
78
78
  static is(error: unknown): error is CliStructuredError;
79
79
  }
80
80
  //#endregion
81
- //#region ../../0-framework/1-core/core/dist/graph-types-Bn3tSF4x.d.mts
81
+ //#region ../../0-framework/1-core/core/dist/graph-types-R38xjBnN.d.mts
82
82
  //#region src/contract.d.ts
83
83
  /**
84
84
  * A Contract is the declared interface of a service-to-service dependency: a
@@ -139,7 +139,7 @@ interface Connection<P extends Params = Params, C = unknown> {
139
139
  * absent). `schema` is a data-only projection of the param's Standard Schema
140
140
  * (JSON Schema when the vendor supports the optional conversion, a `{ vendor }`
141
141
  * tag otherwise) — never the param's functions. Physical locations are the
142
- * target pack's business. Secrets are not here — they live on their own slot.
142
+ * target pack's business. Secrets are not here: they are `secretString()` fields of a service's input, bound with `envSecret()`.
143
143
  */
144
144
  interface ConfigDeclaration {
145
145
  readonly owner: 'service' | {
@@ -189,6 +189,12 @@ declare function inputManifest(graph: Graph): readonly ServiceInputBinding[];
189
189
  * `default` at `buildConfig`.
190
190
  */
191
191
  declare function paramManifest(graph: Graph): readonly ParamBinding[];
192
+ /**
193
+ * Every secret source a binding in the graph names, wherever it sits: what a
194
+ * deploy target's preflight checks.
195
+ * Pure graph introspection, TARGET-AGNOSTIC.
196
+ */
197
+ declare function secretSourceManifest(graph: Graph): readonly SecretSourceUse[];
192
198
  interface ParamOptions<T> {
193
199
  readonly optional?: boolean;
194
200
  readonly default?: T;
@@ -220,31 +226,57 @@ type ValueOrigin<T> = {
220
226
  readonly module: string;
221
227
  /** The key path inside that module's input; `[]` is the whole input. */
222
228
  readonly path: readonly string[];
229
+ } | {
230
+ readonly kind: 'source';
231
+ /** How an error names the source, e.g. `envSecret('STRIPE_KEY')`. */
232
+ readonly label: string;
233
+ /** The config pool key whose value at deploy is the real value, as for `envParam()`. `undefined` for a value known only at boot, whose real value is `source`, a pointer. */
234
+ readonly poolKey: string | undefined;
235
+ /** The source itself. Not enumerable, so a copy's origin compares equal and the origin holds no cycle. */
236
+ readonly source: ParamSource | SecretSource;
223
237
  };
224
238
  /**
225
- * An opaque stand-in a module body can pass wherever a `T` is accepted; its
226
- * real value is known by the end of Load (ADR-0062). `environment.name` is one;
227
- * each field of a module's `input` is one; `resolve()` returns one computed from others.
239
+ * An opaque stand-in a module body can pass wherever a `T` is accepted
240
+ * (ADR-0062). `environment.name` is one; each field of a module's `input` is
241
+ * one; `resolve()` returns one computed from others; a deploy target's source,
242
+ * such as `envParam()` or `envSecret()`, is one too. A deploy-time value's real
243
+ * value is known by the end of Load; a runtime value's real value at deploy is a pointer.
228
244
  */
229
245
  interface Value<T> {
230
246
  readonly [VALUE]: true;
231
247
  readonly [VALUE_TYPE]?: T;
232
248
  readonly [VALUE_ORIGIN]: ValueOrigin<T>;
233
249
  }
250
+ /** A value known only at boot (ADR-0062): its real value at deploy is a `Pointer<T>`, which names the platform variable the service reads at boot. */
251
+ type RuntimeValue<T> = Value<Pointer<T>>;
234
252
  /** The tuple of real-value types a dependency tuple stands for: what `resolve()`'s `fn` receives. */
235
253
  type RealValuesOf<D extends readonly Value<unknown>[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? T : never; };
254
+ /**
255
+ * `true` when `T` is a `Pointer` or holds one, through arrays and plain object types.
256
+ * It looks eight levels deep, so a recursive type such as `PlainData` ends; Load checks deeper.
257
+ */
258
+ type HoldsPointer<T, Depth extends readonly unknown[] = []> = Depth['length'] extends 8 ? false : T extends Pointer<unknown> ? true : T extends readonly (infer E)[] ? HoldsPointer<E, [...Depth, unknown]> : T extends Record<PropertyKey, unknown> ? HoldsPointer<T[keyof T], [...Depth, unknown]> : false;
259
+ /** `true` for a real-value type a `resolve()` function can compute with: one that holds no pointer. `any` and `unknown` pass; Load checks those. */
260
+ type IsDeployTime<T> = 0 extends 1 & T ? true : true extends HoldsPointer<T> ? false : true;
261
+ /** The type error an author sees for a dependency that is not a deploy-time value. */
262
+ type NotDeployTime = 'a resolve() dependency must be a deploy-time value, never a value known only at boot or a field wrapped with field(); to compute with an input field, declare it plain';
263
+ /** `D` with each dependency that is not a deploy-time value replaced by the message saying so. */
264
+ type DeployTimeDependencies<D extends readonly Value<unknown>[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? IsDeployTime<T> extends true ? D[K] : NotDeployTime : D[K]; };
236
265
  /** Plain data: what a `resolve()` function may return. */
237
266
  type PlainData = string | number | boolean | null | readonly PlainData[] | {
238
267
  readonly [key: string]: PlainData;
239
268
  };
240
269
  /**
241
270
  * A value computed from other values. `fn` receives the dependencies' real
242
- * values as one tuple, in order, and returns plain data. Load runs it after
243
- * every module body, with `provision` disabled (ADR-0062). `fn` must be a pure
244
- * function of its dependencies: a deploy runs it in two processes.
245
- */
246
- declare function resolve<const D extends readonly Value<unknown>[], T>(dependencies: D, fn: (values: RealValuesOf<D>) => T): Value<T>;
247
- /** True if `value` is a `Value` (checks the brand only, never a prototype). */
271
+ * values as one tuple, in order, and returns plain data. Each dependency must
272
+ * be a deploy-time value: listing a runtime value or a field wrapped with
273
+ * `field()` fails to compile, and Load refuses a dependency whose real value
274
+ * holds a pointer. Load runs `fn` after every module body, with `provision`
275
+ * disabled (ADR-0062). `fn` must be a pure function of its dependencies: a
276
+ * deploy runs it in two processes.
277
+ */
278
+ declare function resolve<const D extends readonly Value<unknown>[], T>(dependencies: DeployTimeDependencies<D>, fn: (values: RealValuesOf<D>) => T): Value<T>;
279
+ /** True if `value` is a `Value`, a source included (checks the brand only, never a prototype). */
248
280
  declare function isValue(value: unknown): value is Value<unknown>;
249
281
  /** The deploy-time facts a module body receives, each as a value (ADR-0062). */
250
282
  interface EnvironmentFacts {
@@ -271,28 +303,28 @@ type ModuleInput<S extends StandardSchemaV1> = ModuleInputField<StandardSchemaV1
271
303
  //#endregion
272
304
  //#region src/node.d.ts
273
305
  declare const NODE: unique symbol;
274
- declare const SECRET_NEED: unique symbol;
275
306
  declare const SECRET_SOURCE: unique symbol;
276
- /** A declared secret input slot — nameless; the root binds it and the topology forwards it in. */
277
- interface SecretNeed {
278
- readonly [SECRET_NEED]: true;
279
- readonly kind: 'secret';
280
- }
281
- /** A module's secret-forwarding slots: name → the need it declares. */
282
- type Secrets = Record<string, SecretNeed>;
283
- /** The wiring value bound to a secret slot: a target-defined payload core forwards but never inspects. A target (e.g. @prisma/composer-prisma-cloud's `envSecret`) builds one via `secretSource()`. */
284
- interface SecretSource<T = unknown> {
307
+ /** A secret's source: a target-defined payload core forwards but never inspects. It is a value too, known only at boot; its real value at deploy is the source itself, a secret pointer. A target (e.g. @prisma/composer-prisma-cloud's `envSecret`) builds one with `secretSource()`. */
308
+ interface SecretSource<T = unknown> extends Value<unknown> {
285
309
  readonly [SECRET_SOURCE]: true;
286
310
  /** Target-defined. Core never reads this; the target that authored the source reads it back. */
287
311
  readonly payload: T;
288
312
  }
289
- /** What `provision(moduleChild, { secrets })` supplies: one source per declared secret slot. */
290
- type SecretBindings<S extends Secrets> = { [K in keyof S]: SecretSource; };
291
- /** Declares a secret NEED. Nameless — the platform name is bound at the root via `envSecret`. */
292
- declare function secret(): SecretNeed;
293
- /** Builds an opaque secret source from a target-defined payload — the SPI a deploy target's own source constructor (e.g. `envSecret`) calls. Core forwards the source and never inspects the payload. */
294
- declare function secretSource<T>(payload: T): SecretSource<T>;
295
- /** True if `value` is a secret source (an `envSecret` result or a forwarded ctx.secrets ref). */
313
+ /** What a deploy target says about a source it builds. */
314
+ interface SourceOptions {
315
+ /** How errors name the source, e.g. `envSecret('STRIPE_KEY')`. Defaults to `a secret source` or `a param source`. */
316
+ readonly label?: string;
317
+ }
318
+ /** What a deploy target says about a param source it builds. */
319
+ interface ParamSourceOptions extends SourceOptions {
320
+ /** The config pool key whose value at deploy is the source's real value, as for `envParam()`. Without one the source is known only at boot, and its real value is the source itself, a pointer. */
321
+ readonly poolKey?: string;
322
+ /** For a source known only at boot: `true` makes the source a secret pointer, whose variable holds a secret; otherwise it is a plain pointer. */
323
+ readonly redacted?: boolean;
324
+ }
325
+ /** Builds a secret source from a target-defined payload: the SPI a deploy target's own constructor (e.g. `envSecret`) calls. The source is a value whose real value at deploy is itself, a pointer. Core forwards it and never inspects the payload. */
326
+ declare function secretSource<P, T = unknown>(payload: P, options?: SourceOptions): SecretSource<P> & Value<T>;
327
+ /** True if `value` is a secret source, such as an `envSecret()` result. */
296
328
  declare function isSecretSource(value: unknown): value is SecretSource;
297
329
  declare const PROVISION_NEED: unique symbol;
298
330
  /** A param value the framework mints. Opaque to core: it forwards the payload to the resolved provisioner and never reads it (ADR-0031). */
@@ -308,32 +340,20 @@ declare function provisionNeed<T = undefined>(brand: symbol, payload?: T): Provi
308
340
  /** True if `value` is a provisioning need (a `provisionNeed()` result). */
309
341
  declare function isProvisionNeed(value: unknown): value is ProvisionNeed;
310
342
  declare const PARAM_SOURCE: unique symbol;
311
- declare const PARAM_NEED: unique symbol;
312
- /** The wiring value bound to a param at provision time: a target-defined payload core forwards but never inspects. A target (e.g. @prisma/composer-prisma-cloud's `envParam`) builds one via `paramSource()`. */
313
- interface ParamSource<T = unknown> {
343
+ /** A param's source: a target-defined payload core forwards but never inspects. It is a value too: known at deploy when it names a config pool key (`envParam`), otherwise known only at boot, with the source itself as its real value: a secret pointer when it is redacted, a plain pointer otherwise. A target builds one with `paramSource()`. */
344
+ interface ParamSource<T = unknown> extends Value<unknown> {
314
345
  readonly [PARAM_SOURCE]: true;
315
346
  /** Target-defined. Core never reads this; the target that authored the source reads it back. */
316
347
  readonly payload: T;
317
348
  }
318
- /** Builds an opaque param source from a target-defined payload — the SPI a deploy target's own source constructor (e.g. `envParam`) calls. Core forwards the source and never inspects the payload. */
319
- declare function paramSource<T>(payload: T): ParamSource<T>;
320
- /** True if `value` is a param source (an `envParam` result or a forwarded ctx.params ref). */
349
+ /** Builds a param source from a target-defined payload: the SPI a deploy target's own constructor (e.g. `envParam`) calls. Core forwards it and never inspects the payload. */
350
+ declare function paramSource<P, T = unknown>(payload: P, options?: ParamSourceOptions): ParamSource<P> & Value<T>;
351
+ /** True if `value` is a param source, such as an `envParam()` result. */
321
352
  declare function isParamSource(value: unknown): value is ParamSource;
322
- /** A module's declared param-forwarding slot — nameless, schema-less; the root (or an ancestor module) binds a `ParamSource` and the topology forwards it into a child's real, schema-bearing param. */
323
- interface ParamNeed {
324
- readonly [PARAM_NEED]: true;
325
- readonly kind: 'param';
326
- }
327
- /** A module's param-forwarding slots: name → the need it declares. */
328
- type ParamNeeds = Record<string, ParamNeed>;
329
- /** Declares a module param-forwarding NEED. Nameless — bound to a `ParamSource` by an enclosing scope and forwarded into a child's real param. */
330
- declare function paramNeed(): ParamNeed;
331
353
  /** What `provision(service, { params })` accepts per declared param: a literal (schema-validated when config is built) or an opaque `ParamSource`, taking precedence over `param.default`. Every entry is optional — an unbound param falls back to its `default`. */
332
354
  type ParamBindings<P extends Params> = { readonly [K in keyof P]?: StandardSchemaV1.InferOutput<P[K]['schema']> | ParamSource | (StandardSchemaV1.InferOutput<P[K]['schema']> extends PlainData ? Value<StandardSchemaV1.InferOutput<P[K]['schema']>> : never); };
333
- /** What `provision(moduleChild, { params })` accepts per declared `ParamNeed`: a `ParamSource` only — a need carries no schema to validate a literal against. */
334
- type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: ParamSource; };
335
- /** What a value in a service's input binding may stand for: plain data, a `SecretString` at any depth (a forwarded secret field), and `undefined` (an optional field the binding left out). */
336
- type InputBindingData = string | number | boolean | null | undefined | SecretString | readonly InputBindingData[] | {
355
+ /** What a value in a service's input binding may stand for: plain data, a `SecretString` at any depth (a forwarded secret field), a pointer (a forwarded wrapped field), and `undefined` (an optional field the binding left out). */
356
+ type InputBindingData = string | number | boolean | null | undefined | SecretString | Pointer<unknown> | readonly InputBindingData[] | {
337
357
  readonly [key: string]: InputBindingData;
338
358
  };
339
359
  /**
@@ -358,8 +378,15 @@ type ModuleInputBinding<T> = Value<T> | (T extends SecretString ? SecretSource :
358
378
  } ? { readonly [K in keyof T]: ModuleInputBinding<T[K]> | (Record<never, never> extends Pick<T, K> ? Value<T[K] | undefined> : never); } : T);
359
379
  /** A module input schema's Standard Schema input type. */
360
380
  type ModuleInputOf<I extends StandardSchemaV1 | undefined> = StandardSchemaV1.InferInput<NonNullable<I>>;
361
- /** What `input()` returns: the schema's validated output type; `never` on a service that declares no input schema. */
362
- type InputValueOf<I> = I extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<I> : never;
381
+ /**
382
+ * `T` with every pointer removed, at any depth: what a service reads at boot,
383
+ * when each pointer has been replaced by the text of the variable it names.
384
+ * Only arrays and plain object types are walked; a class instance such as a
385
+ * `Date` or a `SecretString` is kept as it is.
386
+ */
387
+ type WithoutPointers<T> = T extends Pointer<unknown> ? never : T extends readonly unknown[] ? { [K in keyof T]: WithoutPointers<T[K]>; } : T extends Record<PropertyKey, unknown> ? { [K in keyof T]: WithoutPointers<T[K]>; } : T;
388
+ /** What `input()` returns: the schema's validated output type with every pointer removed; `never` on a service that declares no input schema. */
389
+ type InputValueOf<I> = I extends StandardSchemaV1 ? WithoutPointers<StandardSchemaV1.InferOutput<I>> : never;
363
390
  /** Opaque `Contract<any, any>` bound shared by every node/port type that doesn't care which contract. */
364
391
  type AnyContract = Contract<any, any>;
365
392
  /** How a service's app becomes a runnable artifact — the build descriptor's routing key (`extension`/`type`) plus paths resolved relative to the authoring module. */
@@ -453,33 +480,25 @@ interface DependencyEnd<C = unknown, Req = unknown> {
453
480
  readonly required: Req | undefined;
454
481
  }
455
482
  /** A Module: the same Deps/Expose boundary a service has, around transparent wiring instead of a black-box body — its `body` runs at Load, not at authoring. */
456
- interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
483
+ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
457
484
  readonly [NODE]: true;
458
485
  readonly kind: 'module';
459
486
  /** Human-readable, given at authoring — logs/diagnostics only. */
460
487
  readonly name: string;
461
488
  readonly deps: D;
462
- /** Declared secret input slots (authored as `secrets`) — forwarded to internals via `ctx.secrets` (ADR-0029). */
463
- readonly secretSlots: S;
464
- /** Declared param-forwarding slots (authored as `params`) — forwarded to internals via `ctx.params`, the same rail secrets ride on. */
465
- readonly paramSlots: PN;
466
489
  /** The module's whole incoming configuration as one Standard Schema (authored as `input`, ADR-0061), or `undefined` when it takes none. Load only calls its `~standard.validate`. */
467
490
  readonly inputSchema: I;
468
491
  readonly expose: E;
469
- body(ctx: ModuleContext<D, S, PN, I>): ModuleOutputs<E> | void;
492
+ body(ctx: ModuleContext<D, I>): ModuleOutputs<E> | void;
470
493
  }
471
494
  /**
472
495
  * What a module's body receives: its declared dependencies as forwardable wiring
473
496
  * values, plus `provision` to register the owned services/modules it wires them into.
474
497
  */
475
- interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
498
+ interface ModuleContext<D extends Deps, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
476
499
  /** The module's declared dependencies as wiring values — pass them into provision(). */
477
500
  readonly deps: { [K in keyof D]: InputRef<D[K]>; };
478
- /** The module's declared secret slots as forwardable sources — pass them into a child's `secrets` (ADR-0029). */
479
- readonly secrets: { readonly [K in keyof S]: SecretSource; };
480
- /** The module's declared param-forwarding slots as forwardable sources — pass them into a child's `params`. */
481
- readonly params: { readonly [K in keyof PN]: ParamSource; };
482
- /** The module's input: one value per field, typed from its input schema's output (ADR-0061); `undefined` when it declares none. Pass a field into a provision() binding or list it as a resolve() dependency. */
501
+ /** The module's input: one value per field, typed from its input schema's output (ADR-0061); `undefined` when it declares none. A root's input is the config pool, validated by its schema; a root passes on its fields one by one, never its whole input. Pass a field into a provision() binding or list it as a resolve() dependency. */
483
502
  readonly input: I extends StandardSchemaV1 ? ModuleInput<I> : undefined;
484
503
  /** The deploy-time facts of the environment, each a value (ADR-0062). List `environment.name` as a `resolve()` dependency. Never environment variables: user code never reads those. */
485
504
  readonly environment: EnvironmentFacts;
@@ -545,22 +564,18 @@ type ServiceProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined
545
564
  params?: PB;
546
565
  }];
547
566
  /**
548
- * A child-MODULE provision's trailing options: `deps`, `secrets` and `input`
549
- * each required exactly when the module declares them; a declared
550
- * param-forwarding slot may be bound to a `ParamSource`.
567
+ * A child-MODULE provision's trailing options: `deps` and `input` each
568
+ * required exactly when the module declares them.
551
569
  */
552
- type ModuleProvisionOptions<D extends Deps, S extends Secrets, I extends StandardSchemaV1 | undefined, PB> = {
570
+ type ModuleProvisionOptions<D extends Deps, I extends StandardSchemaV1 | undefined> = {
553
571
  id?: string;
554
- params?: PB;
555
572
  } & ([keyof D] extends [never] ? unknown : {
556
573
  deps: DepBindings<D>;
557
- }) & ([keyof S] extends [never] ? unknown : {
558
- secrets: SecretBindings<S>;
559
574
  }) & ([I] extends [StandardSchemaV1] ? {
560
575
  input: ModuleInputBinding<ModuleInputOf<I>>;
561
576
  } : unknown);
562
577
  /** The options are optional exactly when nothing is required. */
563
- type ModuleProvisionArgs<D extends Deps, S extends Secrets, I extends StandardSchemaV1 | undefined, PB> = [keyof D] extends [never] ? [keyof S] extends [never] ? [I] extends [StandardSchemaV1] ? [opts: ModuleProvisionOptions<D, S, I, PB>] : [opts?: ModuleProvisionOptions<D, S, I, PB>] : [opts: ModuleProvisionOptions<D, S, I, PB>] : [opts: ModuleProvisionOptions<D, S, I, PB>];
578
+ type ModuleProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined> = [keyof D] extends [never] ? [I] extends [StandardSchemaV1] ? [opts: ModuleProvisionOptions<D, I>] : [opts?: ModuleProvisionOptions<D, I>] : [opts: ModuleProvisionOptions<D, I>];
564
579
  interface ModuleBuilder {
565
580
  /** Provisions an owned resource; its id defaults to the node's `name`. */
566
581
  provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
@@ -582,14 +597,12 @@ interface ModuleBuilder {
582
597
  input?: InputBinding;
583
598
  params?: ParamBindings<P>;
584
599
  }): ProvisionedRef<E>;
585
- /** Registers an owned child module; its id defaults to the node's `name`; `deps`, `secrets` and `input` are required iff it declares them; a declared param-forwarding slot may be bound to a `ParamSource`. */
586
- provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, S, PN, I>, ...args: ModuleProvisionArgs<D, S, I, ParamNeedBindings<PN>>): ProvisionedRef<E>;
600
+ /** Registers an owned child module; its id defaults to the node's `name`; `deps` and `input` are required iff it declares them. */
601
+ provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, ...args: ModuleProvisionArgs<D, I>): ProvisionedRef<E>;
587
602
  /** The child-module call with `deps` spelled out — the same generic-wrapper escape as the service overload above. */
588
- provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, S, PN, I>, opts: {
603
+ provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, opts: {
589
604
  id?: string;
590
605
  deps: DepBindings<D>;
591
- secrets?: SecretBindings<S>;
592
- params?: ParamNeedBindings<PN>;
593
606
  input?: ModuleInputBinding<ModuleInputOf<I>>;
594
607
  }): ProvisionedRef<E>;
595
608
  }
@@ -678,18 +691,16 @@ declare function dependency<P extends Params, C, Req = unknown>(def: {
678
691
  * closed-root shape — `module(name, body)` instead of `module(name, {}, () =>
679
692
  * ({}))`.
680
693
  */
681
- declare function module(name: string, body: (ctx: ModuleContext<Record<never, never>, Record<never, never>, Record<never, never>, undefined>) => void): ModuleNode<Record<never, never>, Record<never, never>, Record<never, never>, Record<never, never>, undefined>;
694
+ declare function module(name: string, body: (ctx: ModuleContext<Record<never, never>, undefined>) => void): ModuleNode<Record<never, never>, Record<never, never>, undefined>;
682
695
  /**
683
696
  * A module with a boundary: `deps` and/or `expose` declare what wires in and
684
697
  * out, the same way a service does. The body returns one port per `expose` key.
685
698
  */
686
- declare function module<D extends Deps = Record<never, never>, E extends Expose = Record<never, never>, S extends Secrets = Record<never, never>, PN extends ParamNeeds = Record<never, never>, I extends StandardSchemaV1 | undefined = undefined>(name: string, boundary: {
699
+ declare function module<D extends Deps = Record<never, never>, E extends Expose = Record<never, never>, I extends StandardSchemaV1 | undefined = undefined>(name: string, boundary: {
687
700
  deps?: D;
688
- secrets?: S;
689
- params?: PN;
690
701
  input?: I;
691
702
  expose?: E;
692
- }, body: (ctx: ModuleContext<D, S, PN, I>) => ModuleOutputs<E> | void): ModuleNode<D, E, S, PN, I>;
703
+ }, body: (ctx: ModuleContext<D, I>) => ModuleOutputs<E> | void): ModuleNode<D, E, I>;
693
704
  /**
694
705
  * True if `value` was constructed by this module's factories. Checks the
695
706
  * brand only, never a prototype — a graph may mix nodes from a different
@@ -707,6 +718,8 @@ interface LoadOptions {
707
718
  readonly id?: NodeId;
708
719
  /** The facts of the environment being loaded. `name` is what `--environment` gave. Required by any value over `environment.name`. */
709
720
  readonly environment?: EnvironmentRealValues;
721
+ /** The config pool: the values a source with a pool key, such as `envParam('NAME')`, reads by name at deploy, and the root's input. Required by any such source whose real value Load needs, and by a root that declares input. The deploy and dev commands pass what the `config` adapters return. */
722
+ readonly configPool?: Readonly<Record<string, unknown>>;
710
723
  }
711
724
  interface GraphNode {
712
725
  readonly id: NodeId;
@@ -792,6 +805,15 @@ interface ParamBinding {
792
805
  /** A literal value (schema-validated by `buildConfig`) or an opaque `ParamSource` (the deploy target reads its own payload back) — check with `isParamSource`. Core never inspects a `ParamSource`'s payload. */
793
806
  readonly binding: unknown;
794
807
  }
808
+ /** A secret source a binding in the graph names, wherever it sits (ADR-0029). Deploy preflight checks every one, including one in a module's input that no service receives. */
809
+ interface SecretSourceUse {
810
+ /** The source, as its target built it. Core never reads its payload. */
811
+ readonly source: SecretSource;
812
+ /** A service whose final binding holds it, if one does. Otherwise the module whose input holds it. */
813
+ readonly address: NodeId;
814
+ /** That node's kind. */
815
+ readonly nodeKind: 'service' | 'module' | 'resource';
816
+ }
795
817
  interface Graph {
796
818
  readonly root: GraphNode;
797
819
  /** Root + one per input, topo-ordered (deps first). */
@@ -805,6 +827,8 @@ interface Graph {
805
827
  readonly inputBindings: readonly ServiceInputBinding[];
806
828
  /** Every service param bound at provision — literal or source; unbound params are absent here and fall back to their `default` (see `buildConfig`). */
807
829
  readonly params: readonly ParamBinding[];
830
+ /** Every secret source a binding names, once each, in the order Load met them (ADR-0029). */
831
+ readonly secretSources: readonly SecretSourceUse[];
808
832
  }
809
833
  /**
810
834
  * Thrown by Load when the graph is malformed. Structured at origin
@@ -818,5 +842,5 @@ declare class LoadError extends CliStructuredError {
818
842
  });
819
843
  }
820
844
  //#endregion
821
- export { RunnableServiceNode as $, ModuleInputField as A, string as At, ParamSource as B, InputValueOf as C, provisionNeed as Ct, ModuleContext as D, secretSource as Dt, ModuleBuilder as E, secret as Et, ParamBinding as F, ProvisionedRef as G, PlainData as H, ParamBindings as I, RefPort as J, RESOURCE_OUT_PORT as K, ParamNeed as L, ModuleOutputs as M, NODE as N, ModuleInput as O, service as Ot, NodeId as P, ResourcePropsMember as Q, ParamNeedBindings as R, InputRef as S, paramSource as St, LoadOptions as T, resource as Tt, PortEndpoint as U, Params as V, ProvisionNeed as W, ResourceNodeBase as X, ResourceNode as Y, ResourceProps as Z, GraphNode as _, module as _t, ConfigDeclaration as a, ServiceNode as at, InputBinding as b, paramManifest as bt, Contract as c, configOf as ct, DependencyEnd as d, inputManifest as dt, SecretBindings as et, Deps as f, isNode as ft, Graph as g, isValue as gt, Expose as h, isSecretSource as ht, Config as i, ServiceInputBinding as it, ModuleNode as j, CliStructuredError as jt, ModuleInputBinding as k, slotsOf as kt, ContractStyle as l, dependency as lt, EnvironmentFacts as m, isProvisionNeed as mt, BoundaryPort as n, SecretSource as nt, ConfigParam as o, Value as ot, Edge as p, isParamSource as pt, RealValuesOf as q, BuildAdapter as r, Secrets as rt, Connection as s, Values as st, AuthoredEdge as t, SecretNeed as tt, DepBindings as u, freezeNode as ut, Hydrated as v, number as vt, LoadError as w, resolve as wt, InputBindingData as x, paramNeed as xt, HydratedDeps as y, param as yt, ParamNeeds as z };
822
- //# sourceMappingURL=graph-types-Bn3tSF4x-BuHwUsq4.d.mts.map
845
+ export { SecretSource as $, ModuleInputField as A, PlainData as B, InputValueOf as C, secretSource as Ct, ModuleContext as D, string as Dt, ModuleBuilder as E, slotsOf as Et, ParamBinding as F, RealValuesOf as G, ProvisionNeed as H, ParamBindings as I, ResourceNodeBase as J, RefPort as K, ParamSource as L, ModuleOutputs as M, NODE as N, ModuleInput as O, CliStructuredError as Ot, NodeId as P, RuntimeValue as Q, ParamSourceOptions as R, InputRef as S, resource as St, LoadOptions as T, service as Tt, ProvisionedRef as U, PortEndpoint as V, RESOURCE_OUT_PORT as W, ResourcePropsMember as X, ResourceProps as Y, RunnableServiceNode as Z, GraphNode as _, param as _t, ConfigDeclaration as a, Values as at, InputBinding as b, provisionNeed as bt, Contract as c, freezeNode as ct, DependencyEnd as d, isParamSource as dt, SecretSourceUse as et, Deps as f, isProvisionNeed as ft, Graph as g, number as gt, Expose as h, module as ht, Config as i, Value as it, ModuleNode as j, ModuleInputBinding as k, ContractStyle as l, inputManifest as lt, EnvironmentFacts as m, isValue as mt, BoundaryPort as n, ServiceNode as nt, ConfigParam as o, configOf as ot, Edge as p, isSecretSource as pt, ResourceNode as q, BuildAdapter as r, SourceOptions as rt, Connection as s, dependency as st, AuthoredEdge as t, ServiceInputBinding as tt, DepBindings as u, isNode as ut, Hydrated as v, paramManifest as vt, LoadError as w, secretSourceManifest as wt, InputBindingData as x, resolve as xt, HydratedDeps as y, paramSource as yt, Params as z };
846
+ //# sourceMappingURL=graph-types-R38xjBnN-cDTIX_rZ.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-types-R38xjBnN-cDTIX_rZ.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../0-framework/1-core/core/dist/graph-types-R38xjBnN.d.mts"],"mappings":";;;;UACU,wBAAwB;WACvB;WACA;WACA;WACA;aACE;aACA;;WAEF;WACA,OAAO;WACP;;;;;;;;UAwBD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;;;;;;;;cAoBG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;EAKX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;;;;;;;;;;UCpF5B,SAAS,qBAAqB;WAC7B,MAAM;WACN,OAAO;;WAEP,QAAQ;EACjB,UAAU,UAAU,SAAS;;;KAG1B;;;;;;;;;;;UAWK,YAAY,UAAU,mBAAmB;WACxC,QAAQ;WAC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AAgB;WAChB,gBAAgB;;WAEhB,gBAAgB;;WAEhB,wBAAwB;;WAExB,wBAAwB;;WAExB,iBAAiB;;WAEjB,wBAAwB;;;;;;;;cAQrB,kBAAkB;EAC9B,YAAY,iBAAiB;aAClB"}
package/dist/http.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { c as Contract, d as DependencyEnd } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
2
- import "./index-Ba2dpziF.mjs";
1
+ import { c as Contract, d as DependencyEnd } from "./graph-types-R38xjBnN-cDTIX_rZ.mjs";
2
+ import "./index-BHdm4Q39.mjs";
3
3
  //#region ../../0-framework/2-authoring/http/dist/index.d.mts
4
4
  //#region src/raw-http.d.ts
5
5
  /** What a `rawHttp()` dependency hydrates to: the provider's URL and a fetch that resolves `path` against it, refuses any path that leaves the provider's origin, and returns redirects instead of following them unless `init.redirect` says otherwise. */
package/dist/http.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { o as dependency } from "./graph-KEuXGBfJ-BfR6EMoN.mjs";
2
- import { c as string } from "./dist-CQVqb52E.mjs";
1
+ import { o as dependency } from "./graph-gE31_ToO-BouKBfIS.mjs";
2
+ import { l as string } from "./dist-0Iux8Khv.mjs";
3
3
  //#region ../../0-framework/2-authoring/http/dist/index.mjs
4
4
  /**
5
5
  * A port that answers HTTP. It promises nothing about routes, methods or
@@ -1,5 +1,5 @@
1
- import { at as ServiceNode, f as Deps, i as Config, y as HydratedDeps } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
2
- import "./graph-Dahnws6W-yKmoqSdc.mjs";
1
+ import { f as Deps, i as Config, nt as ServiceNode, y as HydratedDeps } from "./graph-types-R38xjBnN-cDTIX_rZ.mjs";
2
+ import "./graph-CN8VuVZN-Ck2y98XZ.mjs";
3
3
  //#region ../../0-framework/1-core/core/dist/index.d.mts
4
4
  //#region src/hydrate.d.ts
5
5
  /**
@@ -19,4 +19,4 @@ declare function hydrate(root: ServiceNode, config: Config): Promise<HydratedDep
19
19
  declare function hydrateSync(root: ServiceNode, config: Config): HydratedDeps<Deps>;
20
20
  //#endregion
21
21
  export { hydrateSync as n, hydrate as t };
22
- //# sourceMappingURL=index-Ba2dpziF.d.mts.map
22
+ //# sourceMappingURL=index-BHdm4Q39.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BHdm4Q39.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/index.d.mts"],"mappings":";;;;;;;;;;;iBAYiB,QAAQ,MAAM,aAAa,QAAQ,SAAS,QAAQ,aAAa;;;;;;;iBAOjE,YAAY,MAAM,aAAa,QAAQ,SAAS,aAAa"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as SecretString, r as isSecretString, t as SecretBox } from "./secret-CHOw4LBU-C8yXoC9N.mjs";
2
- import { $ as RunnableServiceNode, A as ModuleInputField, At as string, B as ParamSource, C as InputValueOf, Ct as provisionNeed, D as ModuleContext, Dt as secretSource, E as ModuleBuilder, Et as secret, F as ParamBinding, G as ProvisionedRef, H as PlainData, I as ParamBindings, J as RefPort, K as RESOURCE_OUT_PORT, L as ParamNeed, M as ModuleOutputs, N as NODE, O as ModuleInput, Ot as service, P as NodeId, Q as ResourcePropsMember, R as ParamNeedBindings, S as InputRef, St as paramSource, T as LoadOptions, Tt as resource, U as PortEndpoint, V as Params, W as ProvisionNeed, X as ResourceNodeBase, Y as ResourceNode, Z as ResourceProps, _ as GraphNode, _t as module, a as ConfigDeclaration, at as ServiceNode, b as InputBinding, bt as paramManifest, c as Contract, ct as configOf, d as DependencyEnd, dt as inputManifest, et as SecretBindings, f as Deps, ft as isNode, g as Graph, gt as isValue, h as Expose, ht as isSecretSource, i as Config, it as ServiceInputBinding, j as ModuleNode, k as ModuleInputBinding, kt as slotsOf, l as ContractStyle, lt as dependency, m as EnvironmentFacts, mt as isProvisionNeed, n as BoundaryPort, nt as SecretSource, o as ConfigParam, ot as Value, p as Edge, pt as isParamSource, q as RealValuesOf, r as BuildAdapter, rt as Secrets, s as Connection, st as Values, t as AuthoredEdge, tt as SecretNeed, u as DepBindings, ut as freezeNode, v as Hydrated, vt as number, w as LoadError, wt as resolve, x as InputBindingData, xt as paramNeed, y as HydratedDeps, yt as param, z as ParamNeeds } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
3
- import { n as assertAppName, t as Load } from "./graph-Dahnws6W-yKmoqSdc.mjs";
4
- import { n as hydrateSync, t as hydrate } from "./index-Ba2dpziF.mjs";
5
- export { type AuthoredEdge, type BoundaryPort, type BuildAdapter, type Config, type ConfigDeclaration, type ConfigParam, type Connection, type Contract, type ContractStyle, type DepBindings, type DependencyEnd, type Deps, type Edge, type EnvironmentFacts, type Expose, type Graph, type GraphNode, type Hydrated, type HydratedDeps, type InputBinding, type InputBindingData, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleInput, type ModuleInputBinding, type ModuleInputField, type ModuleNode, type ModuleOutputs, type NODE, type NodeId, type ParamBinding, type ParamBindings, type ParamNeed, type ParamNeedBindings, type ParamNeeds, type ParamSource, type Params, type PlainData, type PortEndpoint, type ProvisionNeed, type ProvisionedRef, RESOURCE_OUT_PORT, type RealValuesOf, type RefPort, type ResourceNode, ResourceNodeBase, type ResourceProps, type ResourcePropsMember, type RunnableServiceNode, type SecretBindings, SecretBox, type SecretNeed, type SecretSource, type SecretString, type Secrets, type ServiceInputBinding, type ServiceNode, type Value, type Values, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isProvisionNeed, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramNeed, paramSource, provisionNeed, resolve, resource, secret, secretSource, service, slotsOf, string };
1
+ import { a as SecretString, i as SecretBox, n as isPlainPointer, o as isSecretString, r as isSecretPointer, t as Pointer } from "./pointer-CyQZZugO-D7k3vibs.mjs";
2
+ import { $ as SecretSource, A as ModuleInputField, B as PlainData, C as InputValueOf, Ct as secretSource, D as ModuleContext, Dt as string, E as ModuleBuilder, Et as slotsOf, F as ParamBinding, G as RealValuesOf, H as ProvisionNeed, I as ParamBindings, J as ResourceNodeBase, K as RefPort, L as ParamSource, M as ModuleOutputs, N as NODE, O as ModuleInput, P as NodeId, Q as RuntimeValue, R as ParamSourceOptions, S as InputRef, St as resource, T as LoadOptions, Tt as service, U as ProvisionedRef, V as PortEndpoint, W as RESOURCE_OUT_PORT, X as ResourcePropsMember, Y as ResourceProps, Z as RunnableServiceNode, _ as GraphNode, _t as param, a as ConfigDeclaration, at as Values, b as InputBinding, bt as provisionNeed, c as Contract, ct as freezeNode, d as DependencyEnd, dt as isParamSource, et as SecretSourceUse, f as Deps, ft as isProvisionNeed, g as Graph, gt as number, h as Expose, ht as module, i as Config, it as Value, j as ModuleNode, k as ModuleInputBinding, l as ContractStyle, lt as inputManifest, m as EnvironmentFacts, mt as isValue, n as BoundaryPort, nt as ServiceNode, o as ConfigParam, ot as configOf, p as Edge, pt as isSecretSource, q as ResourceNode, r as BuildAdapter, rt as SourceOptions, s as Connection, st as dependency, t as AuthoredEdge, tt as ServiceInputBinding, u as DepBindings, ut as isNode, v as Hydrated, vt as paramManifest, w as LoadError, wt as secretSourceManifest, x as InputBindingData, xt as resolve, y as HydratedDeps, yt as paramSource, z as Params } from "./graph-types-R38xjBnN-cDTIX_rZ.mjs";
3
+ import { n as assertAppName, t as Load } from "./graph-CN8VuVZN-Ck2y98XZ.mjs";
4
+ import { n as hydrateSync, t as hydrate } from "./index-BHdm4Q39.mjs";
5
+ export { type AuthoredEdge, type BoundaryPort, type BuildAdapter, type Config, type ConfigDeclaration, type ConfigParam, type Connection, type Contract, type ContractStyle, type DepBindings, type DependencyEnd, type Deps, type Edge, type EnvironmentFacts, type Expose, type Graph, type GraphNode, type Hydrated, type HydratedDeps, type InputBinding, type InputBindingData, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleInput, type ModuleInputBinding, type ModuleInputField, type ModuleNode, type ModuleOutputs, type NODE, type NodeId, type ParamBinding, type ParamBindings, type ParamSource, type ParamSourceOptions, type Params, type PlainData, type Pointer, type PortEndpoint, type ProvisionNeed, type ProvisionedRef, RESOURCE_OUT_PORT, type RealValuesOf, type RefPort, type ResourceNode, ResourceNodeBase, type ResourceProps, type ResourcePropsMember, type RunnableServiceNode, type RuntimeValue, SecretBox, type SecretSource, type SecretSourceUse, type SecretString, type ServiceInputBinding, type ServiceNode, type SourceOptions, type Value, type Values, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isPlainPointer, isProvisionNeed, isSecretPointer, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramSource, provisionNeed, resolve, resource, secretSource, secretSourceManifest, service, slotsOf, string };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as isSecretString, t as SecretBox } from "./secret-DoWGmN7m-DO5Brq1Y.mjs";
2
- import { S as slotsOf, _ as resolve, a as assertAppName, b as secretSource, c as isNode, d as isSecretSource, f as isValue, g as provisionNeed, h as paramSource, i as ResourceNodeBase, l as isParamSource, m as paramNeed, n as LoadError, o as dependency, p as module, r as RESOURCE_OUT_PORT, s as freezeNode, t as Load, u as isProvisionNeed, v as resource, x as service, y as secret } from "./graph-KEuXGBfJ-BfR6EMoN.mjs";
3
- import { a as number, c as string, i as inputManifest, n as hydrate, o as param, r as hydrateSync, s as paramManifest, t as configOf } from "./dist-CQVqb52E.mjs";
4
- export { Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isProvisionNeed, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramNeed, paramSource, provisionNeed, resolve, resource, secret, secretSource, service, slotsOf, string };
1
+ import { a as isSecretPointer, i as isPlainPointer, n as isSecretString, t as SecretBox } from "./secret-DoWGmN7m-CI5Yrldp.mjs";
2
+ import { _ as resource, a as assertAppName, b as slotsOf, c as isNode, d as isSecretSource, f as isValue, g as resolve, h as provisionNeed, i as ResourceNodeBase, l as isParamSource, m as paramSource, n as LoadError, o as dependency, p as module, r as RESOURCE_OUT_PORT, s as freezeNode, t as Load, u as isProvisionNeed, v as secretSource, y as service } from "./graph-gE31_ToO-BouKBfIS.mjs";
3
+ import { a as number, c as secretSourceManifest, i as inputManifest, l as string, n as hydrate, o as param, r as hydrateSync, s as paramManifest, t as configOf } from "./dist-0Iux8Khv.mjs";
4
+ export { Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isPlainPointer, isProvisionNeed, isSecretPointer, isSecretSource, isSecretString, isValue, module, number, param, paramManifest, paramSource, provisionNeed, resolve, resource, secretSource, secretSourceManifest, service, slotsOf, string };
@@ -0,0 +1,18 @@
1
+ import { H as PrismaAppConfig, X as SecretsPool, c as ConfigPool } from "./app-config-BvxeTt2h-CcVmwsq6.mjs";
2
+ import "./config-Cn9vjklJ.mjs";
3
+ //#region ../../0-framework/3-tooling/cli/dist/pools.d.mts
4
+ //#region src/config-pools.d.ts
5
+ /** Where a pool is read for. */
6
+ interface PoolReadInput {
7
+ /** The environment's name. */
8
+ readonly environment: string;
9
+ /** The absolute path of the prisma.config.ts that declares the section. */
10
+ readonly configFile: string;
11
+ }
12
+ /** Calls the section's `config` adapters (default `[environmentVariables()]`) and merges what they return: the config pool. */
13
+ declare function readConfigPool(section: PrismaAppConfig, input: PoolReadInput): Promise<ConfigPool>;
14
+ /** Calls the section's `secrets` adapters (default `[environmentVariables()]`) and merges what they return: the secrets pool. Every value must be text. */
15
+ declare function readSecretsPool(section: PrismaAppConfig, input: PoolReadInput): Promise<SecretsPool>;
16
+ //#endregion
17
+ export { type PoolReadInput, readConfigPool, readSecretsPool };
18
+ //# sourceMappingURL=internal-pools.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-pools.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/pools.d.mts"],"mappings":";;;;;UAGU;;WAEC;;WAEA;;;iBAGM,eAAe,SAAS,iBAAiB,OAAO,gBAAgB,QAAQ;;iBAExE,gBAAgB,SAAS,iBAAiB,OAAO,gBAAgB,QAAQ"}
@@ -0,0 +1,2 @@
1
+ import { n as readSecretsPool, t as readConfigPool } from "./config-pools-DiYw7wMu-DzeWrJdm.mjs";
2
+ export { readConfigPool, readSecretsPool };
@@ -35,10 +35,11 @@ async function resolveLocalTargets(config) {
35
35
  * `localTarget` thunk). The generated dev stack module is this
36
36
  * aggregator's one caller, passing the result as `LowerOptions.providers`.
37
37
  */
38
- function localTargetProviders(resolved, containers, devDir) {
38
+ function localTargetProviders(resolved, containers, devDir, pools) {
39
39
  const [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({
40
40
  container: containers.get(id),
41
- devDir
41
+ devDir,
42
+ pools
42
43
  }));
43
44
  return first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);
44
45
  }
@@ -49,4 +50,4 @@ function devState() {
49
50
  //#endregion
50
51
  export { localTargetProviders as n, resolveLocalTargets as r, devState as t };
51
52
 
52
- //# sourceMappingURL=local-target-DySKw61w.mjs.map
53
+ //# sourceMappingURL=local-target-zSdLvLyy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-target-DySKw61w.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.mjs"],"sourcesContent":["import { a as isBuildOnlyExtension, i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, t as DEV_DIR } from \"./app-config-CErnR6NK.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as Layer from \"effect/Layer\";\nimport { localState } from \"alchemy/State/LocalState\";\n//#region src/control/local-target.ts\n/** The local-target stack's own provider aggregation (ADR-0041; naming, operator 2026-07-23 — the seam is `localTarget`, \"dev\" names the user-facing feature only) — the local-target counterpart of `deploy.ts`'s `mergedProviders`, kept in its own module so `lower()` learns nothing about it (deploy.ts's REVISED — operator review of #162). */\nfunction noLocalTargetSupportError(id) {\n\treturn new CliStructuredError(\"DEV.TARGET_UNSUPPORTED\", `extension \"${id}\" has no dev support — it declares no \\`localTarget\\` descriptor (ADR-0041).`);\n}\n/**\n* Resolves every non-build-only configured extension's lazy `localTarget`\n* thunk, once (ADR-0041's lazy local-target reference — operator directive:\n* the production control entry carries only the thunk, never the\n* descriptor, so resolving it is this module's job, not something a deploy\n* path ever does). A build-only extension (`isBuildOnlyExtension`) owns no\n* resources or services and is skipped entirely — never even checked for a\n* `localTarget` thunk. Every other configured extension must be\n* local-target-capable, or the dev command cannot bring the app up at all,\n* so a missing thunk throws naming the extension. The generated dev stack\n* module calls this once and threads the resolved map through every\n* subsequent hook, including `localTargetProviders`.\n*/\nasync function resolveLocalTargets(config) {\n\tconst entries = await Promise.all(config.extensions.flatMap((extension) => {\n\t\tif (isBuildOnlyExtension(extension)) return [];\n\t\tif (extension.localTarget === void 0) throw noLocalTargetSupportError(extension.id);\n\t\treturn [extension.localTarget().then((descriptor) => [extension.id, descriptor])];\n\t}));\n\treturn new Map(entries);\n}\n/**\n* All configured extensions' local-target providers merged, config array\n* order (ADR-0041), from the ALREADY-RESOLVED descriptor map\n* (`resolveLocalTargets`'s product — this function itself never touches a\n* `localTarget` thunk). The generated dev stack module is this\n* aggregator's one caller, passing the result as `LowerOptions.providers`.\n*/\nfunction localTargetProviders(resolved, containers, devDir) {\n\tconst [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({\n\t\tcontainer: containers.get(id),\n\t\tdevDir\n\t}));\n\treturn first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);\n}\n/** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */\nfunction devState() {\n\treturn localState();\n}\n//#endregion\nexport { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };\n\n//# sourceMappingURL=local-target.mjs.map"],"mappings":";;;;;;AAMA,SAAS,0BAA0B,IAAI;CACtC,OAAO,IAAI,mBAAmB,0BAA0B,cAAc,GAAG,6EAA6E;AACvJ;;;;;;;;;;;;;;AAcA,eAAe,oBAAoB,QAAQ;CAC1C,MAAM,UAAU,MAAM,QAAQ,IAAI,OAAO,WAAW,SAAS,cAAc;EAC1E,IAAI,qBAAqB,SAAS,GAAG,OAAO,CAAC;EAC7C,IAAI,UAAU,gBAAgB,KAAK,GAAG,MAAM,0BAA0B,UAAU,EAAE;EAClF,OAAO,CAAC,UAAU,YAAY,CAAC,CAAC,MAAM,eAAe,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC;CACjF,CAAC,CAAC;CACF,OAAO,IAAI,IAAI,OAAO;AACvB;;;;;;;;AAQA,SAAS,qBAAqB,UAAU,YAAY,QAAQ;CAC3D,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,GAAG,SAAS,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,gBAAgB,WAAW,UAAU;EAC/F,WAAW,WAAW,IAAI,EAAE;EAC5B;CACD,CAAC,CAAC;CACF,OAAO,UAAU,KAAK,IAAI,MAAM,QAAQ,MAAM,SAAS,OAAO,GAAG,IAAI;AACtE;;AAEA,SAAS,WAAW;CACnB,OAAO,WAAW;AACnB"}
1
+ {"version":3,"file":"local-target-zSdLvLyy.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.mjs"],"sourcesContent":["import { a as isBuildOnlyExtension, i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, t as DEV_DIR } from \"./app-config-CErnR6NK.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as Layer from \"effect/Layer\";\nimport { localState } from \"alchemy/State/LocalState\";\n//#region src/control/local-target.ts\n/** The local-target stack's own provider aggregation (ADR-0041; naming, operator 2026-07-23 — the seam is `localTarget`, \"dev\" names the user-facing feature only) — the local-target counterpart of `deploy.ts`'s `mergedProviders`, kept in its own module so `lower()` learns nothing about it (deploy.ts's REVISED — operator review of #162). */\nfunction noLocalTargetSupportError(id) {\n\treturn new CliStructuredError(\"DEV.TARGET_UNSUPPORTED\", `extension \"${id}\" has no dev support — it declares no \\`localTarget\\` descriptor (ADR-0041).`);\n}\n/**\n* Resolves every non-build-only configured extension's lazy `localTarget`\n* thunk, once (ADR-0041's lazy local-target reference — operator directive:\n* the production control entry carries only the thunk, never the\n* descriptor, so resolving it is this module's job, not something a deploy\n* path ever does). A build-only extension (`isBuildOnlyExtension`) owns no\n* resources or services and is skipped entirely — never even checked for a\n* `localTarget` thunk. Every other configured extension must be\n* local-target-capable, or the dev command cannot bring the app up at all,\n* so a missing thunk throws naming the extension. The generated dev stack\n* module calls this once and threads the resolved map through every\n* subsequent hook, including `localTargetProviders`.\n*/\nasync function resolveLocalTargets(config) {\n\tconst entries = await Promise.all(config.extensions.flatMap((extension) => {\n\t\tif (isBuildOnlyExtension(extension)) return [];\n\t\tif (extension.localTarget === void 0) throw noLocalTargetSupportError(extension.id);\n\t\treturn [extension.localTarget().then((descriptor) => [extension.id, descriptor])];\n\t}));\n\treturn new Map(entries);\n}\n/**\n* All configured extensions' local-target providers merged, config array\n* order (ADR-0041), from the ALREADY-RESOLVED descriptor map\n* (`resolveLocalTargets`'s product — this function itself never touches a\n* `localTarget` thunk). The generated dev stack module is this\n* aggregator's one caller, passing the result as `LowerOptions.providers`.\n*/\nfunction localTargetProviders(resolved, containers, devDir, pools) {\n\tconst [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({\n\t\tcontainer: containers.get(id),\n\t\tdevDir,\n\t\tpools\n\t}));\n\treturn first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);\n}\n/** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */\nfunction devState() {\n\treturn localState();\n}\n//#endregion\nexport { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };\n\n//# sourceMappingURL=local-target.mjs.map"],"mappings":";;;;;;AAMA,SAAS,0BAA0B,IAAI;CACtC,OAAO,IAAI,mBAAmB,0BAA0B,cAAc,GAAG,6EAA6E;AACvJ;;;;;;;;;;;;;;AAcA,eAAe,oBAAoB,QAAQ;CAC1C,MAAM,UAAU,MAAM,QAAQ,IAAI,OAAO,WAAW,SAAS,cAAc;EAC1E,IAAI,qBAAqB,SAAS,GAAG,OAAO,CAAC;EAC7C,IAAI,UAAU,gBAAgB,KAAK,GAAG,MAAM,0BAA0B,UAAU,EAAE;EAClF,OAAO,CAAC,UAAU,YAAY,CAAC,CAAC,MAAM,eAAe,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC;CACjF,CAAC,CAAC;CACF,OAAO,IAAI,IAAI,OAAO;AACvB;;;;;;;;AAQA,SAAS,qBAAqB,UAAU,YAAY,QAAQ,OAAO;CAClE,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,GAAG,SAAS,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,gBAAgB,WAAW,UAAU;EAC/F,WAAW,WAAW,IAAI,EAAE;EAC5B;EACA;CACD,CAAC,CAAC;CACF,OAAO,UAAU,KAAK,IAAI,MAAM,QAAQ,MAAM,SAAS,OAAO,GAAG,IAAI;AACtE;;AAEA,SAAS,WAAW;CACnB,OAAO,WAAW;AACnB"}
@@ -1,4 +1,4 @@
1
- import { C as LocalTargetDescriptor, L as PrismaAppConfig, S as LocalTargetCurrentInput, T as LocalTargetProvidersInput, _ as LocalNodeLocation, b as LocalTargetAttachment, c as ContainerInstance, g as LocalNodeCondition, l as DEV_DIR, t as AlchemyStateLayer, tt as devEnvironmentDir, u as DEV_ENVIRONMENT_NAME_FILE, v as LocalNodeStopped, w as LocalTargetEmulatorsInput, x as LocalTargetCurrentApp, y as LocalTargetAttachInput } from "./app-config-8nfo_ECP-DngN6Z3i.mjs";
1
+ import { A as LocalTargetProvidersInput, C as LocalNodeStopped, D as LocalTargetCurrentInput, E as LocalTargetCurrentApp, H as PrismaAppConfig, O as LocalTargetDescriptor, S as LocalNodeLocation, T as LocalTargetAttachment, h as DEV_ENVIRONMENT_NAME_FILE, k as LocalTargetEmulatorsInput, l as ConfigPools, m as DEV_DIR, p as ContainerInstance, st as devEnvironmentDir, t as AlchemyStateLayer, w as LocalTargetAttachInput, x as LocalNodeCondition } from "./app-config-BvxeTt2h-CcVmwsq6.mjs";
2
2
  import * as Layer from "effect/Layer";
3
3
  //#region ../../0-framework/1-core/core/dist/local-target.d.mts
4
4
  //#region src/control/local-target.d.ts
@@ -23,7 +23,7 @@ declare function resolveLocalTargets(config: PrismaAppConfig): Promise<ReadonlyM
23
23
  * `localTarget` thunk). The generated dev stack module is this
24
24
  * aggregator's one caller, passing the result as `LowerOptions.providers`.
25
25
  */
26
- declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string): Layer.Layer<never>;
26
+ declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string, pools: ConfigPools): Layer.Layer<never>;
27
27
  /** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */
28
28
  declare function devState(): AlchemyStateLayer;
29
29
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"local-target.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAgBiB,oBAAoB,QAAQ,kBAAkB,QAAQ,oBAAoB;;;;;;;;iBAQ1E,qBAAqB,UAAU,oBAAoB,wBAAwB,YAAY,oBAAoB,oBAAoB,iBAAiB,MAAM;;iBAEtJ,YAAY"}
1
+ {"version":3,"file":"local-target.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/local-target.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAgBiB,oBAAoB,QAAQ,kBAAkB,QAAQ,oBAAoB;;;;;;;;iBAQ1E,qBAAqB,UAAU,oBAAoB,wBAAwB,YAAY,oBAAoB,oBAAoB,gBAAgB,OAAO,cAAc,MAAM;;iBAE1K,YAAY"}
@@ -1,3 +1,3 @@
1
1
  import { i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, t as DEV_DIR } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
2
- import { n as localTargetProviders, r as resolveLocalTargets, t as devState } from "./local-target-DySKw61w.mjs";
2
+ import { n as localTargetProviders, r as resolveLocalTargets, t as devState } from "./local-target-zSdLvLyy.mjs";
3
3
  export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };
@@ -1,5 +1,5 @@
1
- import { r as BuildAdapter } from "./graph-types-Bn3tSF4x-BuHwUsq4.mjs";
2
- import "./index-Ba2dpziF.mjs";
1
+ import { r as BuildAdapter } from "./graph-types-R38xjBnN-cDTIX_rZ.mjs";
2
+ import "./index-BHdm4Q39.mjs";
3
3
  //#region ../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts
4
4
  //#region src/nextjs.d.ts
5
5
  /** The nextjs build adapter's descriptor — `appDir` is this kind's own extra path input (the Next app root), beyond the shared `{ extension, type, module, entry }`. `entry` is a placeholder; the assembler locates `server.js` in the standalone tree. */
@@ -13,4 +13,4 @@ declare const nextjsBuild: (opts: {
13
13
  }) => NextjsBuildAdapter;
14
14
  //#endregion
15
15
  export { nextjsBuild as n, NextjsBuildAdapter as t };
16
- //# sourceMappingURL=nextjs-DLyeRR7M-CNdHQRgH.d.mts.map
16
+ //# sourceMappingURL=nextjs-DLyeRR7M-CuGngjU4.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nextjs-DLyeRR7M-CNdHQRgH.d.mts","names":[],"sources":["../../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts"],"mappings":";;;;;UAGU,2BAA2B;WAC1B;WACA;;cAEG,cAAc;EAC1B;EACA;MACI"}
1
+ {"version":3,"file":"nextjs-DLyeRR7M-CuGngjU4.d.mts","names":[],"sources":["../../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts"],"mappings":";;;;;UAGU,2BAA2B;WAC1B;WACA;;cAEG,cAAc;EAC1B;EACA;MACI"}
@@ -1,7 +1,7 @@
1
- import { G as ServeInput, a as Bundle, h as ExtensionDescriptor, i as AssembleInput, m as DevServer } from "./app-config-8nfo_ECP-DngN6Z3i.mjs";
2
- import "./config-cJwLd_Uj.mjs";
3
- import "./deploy-cJwLd_Uj.mjs";
4
- import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-CNdHQRgH.mjs";
1
+ import { Z as ServeInput, a as Bundle, b as ExtensionDescriptor, i as AssembleInput, y as DevServer } from "./app-config-BvxeTt2h-CcVmwsq6.mjs";
2
+ import "./config-Cn9vjklJ.mjs";
3
+ import "./deploy-Cn9vjklJ.mjs";
4
+ import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-CuGngjU4.mjs";
5
5
  //#region ../../0-framework/2-authoring/nextjs/dist/control.d.mts
6
6
  //#region src/control/build.d.ts
7
7
  /** The built standalone server.js for a nextjs build — `appDir`'s standalone root plus the app subpath Next recorded. Single-sourced so `assemble()` (deploy) and the integration-test seam can't drift. */