@prisma/composer 0.36.0-dev.2 → 0.36.0-dev.4

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-CWm3wlNA-BVGreP8x.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-C2gLUQ8l.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-CtQMfn60.mjs → dev-current-BurA9uhA-C7E-BpRH.mjs} +5 -5
  30. package/dist/{dev-current-BNoPkDRU-CtQMfn60.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-CZ_yEZ7F.mjs → dist-0Iux8Khv.mjs} +11 -4
  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-CP2mVGW_.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-C0jgWe-M.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-DVTy30tU.mjs → execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs} +6 -6
  41. package/dist/{execute-dev-current-CeKI-tiC-DVTy30tU.mjs.map → execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs.map} +1 -1
  42. package/dist/{execute-log-DA5AAQAA-ByUrxpMJ.mjs → execute-log-BC5o35wQ-C8QWELlP.mjs} +6 -6
  43. package/dist/{execute-log-DA5AAQAA-ByUrxpMJ.mjs.map → execute-log-BC5o35wQ-C8QWELlP.mjs.map} +1 -1
  44. package/dist/{graph-BzTSXnoQ-BvGVq0bm.d.mts → graph-CN8VuVZN-Ck2y98XZ.d.mts} +3 -3
  45. package/dist/graph-CN8VuVZN-Ck2y98XZ.d.mts.map +1 -0
  46. package/dist/{graph-MGOZJdDt-CyI8-9r7.mjs → graph-gE31_ToO-BouKBfIS.mjs} +498 -199
  47. package/dist/graph-gE31_ToO-BouKBfIS.mjs.map +1 -0
  48. package/dist/{graph-types-DfsG9Rkg-D_ARjMo7.d.mts → graph-types-R38xjBnN-cDTIX_rZ.d.mts} +153 -91
  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-D89ftK2z.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-BeiYsLuZ.d.mts → nextjs-DLyeRR7M-CuGngjU4.d.mts} +3 -3
  65. package/dist/{nextjs-DLyeRR7M-BeiYsLuZ.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-DmAtiQhe.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 +29 -13
  90. package/skills/prisma-composer-core-concepts/SKILL.md +38 -18
  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-CWm3wlNA-BVGreP8x.d.mts.map +0 -1
  95. package/dist/config-BSdGEsYV.d.mts +0 -1
  96. package/dist/deploy-BSdGEsYV.d.mts +0 -1
  97. package/dist/deployment-summary-CDHdLtnO-DrE7GsHq.mjs.map +0 -1
  98. package/dist/deployment-summary-p88NV5m5-C2gLUQ8l.d.mts.map +0 -1
  99. package/dist/dist-CZ_yEZ7F.mjs.map +0 -1
  100. package/dist/execute-deploy-destroy-BIqwt1RF-CP2mVGW_.mjs.map +0 -1
  101. package/dist/execute-dev-DIEyloWn-C0jgWe-M.mjs.map +0 -1
  102. package/dist/graph-BzTSXnoQ-BvGVq0bm.d.mts.map +0 -1
  103. package/dist/graph-MGOZJdDt-CyI8-9r7.mjs.map +0 -1
  104. package/dist/graph-types-DfsG9Rkg-D_ARjMo7.d.mts.map +0 -1
  105. package/dist/index-D89ftK2z.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-DmAtiQhe.mjs.map +0 -1
@@ -1,3 +1,4 @@
1
+ import { a as SecretString, t as Pointer } from "./pointer-CyQZZugO-D7k3vibs.mjs";
1
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
2
3
  //#region ../../0-framework/0-foundation/foundation/dist/errors.d.mts
3
4
  //#region src/structured-error.d.ts
@@ -77,7 +78,7 @@ declare class CliStructuredError extends Error implements StructuredError {
77
78
  static is(error: unknown): error is CliStructuredError;
78
79
  }
79
80
  //#endregion
80
- //#region ../../0-framework/1-core/core/dist/graph-types-DfsG9Rkg.d.mts
81
+ //#region ../../0-framework/1-core/core/dist/graph-types-R38xjBnN.d.mts
81
82
  //#region src/contract.d.ts
82
83
  /**
83
84
  * A Contract is the declared interface of a service-to-service dependency: a
@@ -138,7 +139,7 @@ interface Connection<P extends Params = Params, C = unknown> {
138
139
  * absent). `schema` is a data-only projection of the param's Standard Schema
139
140
  * (JSON Schema when the vendor supports the optional conversion, a `{ vendor }`
140
141
  * tag otherwise) — never the param's functions. Physical locations are the
141
- * 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()`.
142
143
  */
143
144
  interface ConfigDeclaration {
144
145
  readonly owner: 'service' | {
@@ -188,6 +189,12 @@ declare function inputManifest(graph: Graph): readonly ServiceInputBinding[];
188
189
  * `default` at `buildConfig`.
189
190
  */
190
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[];
191
198
  interface ParamOptions<T> {
192
199
  readonly optional?: boolean;
193
200
  readonly default?: T;
@@ -213,31 +220,63 @@ type ValueOrigin<T> = {
213
220
  readonly kind: 'computed';
214
221
  readonly dependencies: readonly Value<unknown>[];
215
222
  readonly compute: (values: readonly unknown[]) => T;
223
+ } | {
224
+ readonly kind: 'input';
225
+ /** The address of the module whose input this field is. */
226
+ readonly module: string;
227
+ /** The key path inside that module's input; `[]` is the whole input. */
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;
216
237
  };
217
238
  /**
218
- * An opaque stand-in a module body can pass wherever a `T` is accepted; its
219
- * real value is known by the end of Load (ADR-0062). `environment.name` is one;
220
- * `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.
221
244
  */
222
245
  interface Value<T> {
223
246
  readonly [VALUE]: true;
224
247
  readonly [VALUE_TYPE]?: T;
225
248
  readonly [VALUE_ORIGIN]: ValueOrigin<T>;
226
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>>;
227
252
  /** The tuple of real-value types a dependency tuple stands for: what `resolve()`'s `fn` receives. */
228
253
  type RealValuesOf<D extends readonly Value<unknown>[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? T : never; };
229
- /** Plain data: what a `resolve()` function may return, and the only thing a value may stand for in a binding. */
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]; };
265
+ /** Plain data: what a `resolve()` function may return. */
230
266
  type PlainData = string | number | boolean | null | readonly PlainData[] | {
231
267
  readonly [key: string]: PlainData;
232
268
  };
233
269
  /**
234
270
  * A value computed from other values. `fn` receives the dependencies' real
235
- * values as one tuple, in order, and returns plain data. Load runs it after
236
- * every module body, with `provision` disabled (ADR-0062). `fn` must be a pure
237
- * function of its dependencies: a deploy runs it in two processes.
238
- */
239
- declare function resolve<const D extends readonly Value<unknown>[], T>(dependencies: D, fn: (values: RealValuesOf<D>) => T): Value<T>;
240
- /** 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). */
241
280
  declare function isValue(value: unknown): value is Value<unknown>;
242
281
  /** The deploy-time facts a module body receives, each as a value (ADR-0062). */
243
282
  interface EnvironmentFacts {
@@ -247,30 +286,45 @@ interface EnvironmentFacts {
247
286
  /** The real values of the environment facts: what Load is given for the environment being loaded. */
248
287
  type EnvironmentRealValues = { readonly [K in keyof EnvironmentFacts]: EnvironmentFacts[K] extends Value<infer T> ? T : never; };
249
288
  //#endregion
289
+ //#region src/module-input.d.ts
290
+ type PlainObject = {
291
+ readonly [key: string]: unknown;
292
+ };
293
+ /**
294
+ * What a module body holds for an input field whose real value has type `T`:
295
+ * a value, plus one `ModuleInputField` per key when `T` is a plain object.
296
+ */
297
+ type ModuleInputField<T> = Value<T> & FieldsOf<T>;
298
+ type FieldsOf<T> = [NonNullable<T>] extends [never] ? unknown : [NonNullable<T>] extends [readonly unknown[]] ? unknown : [NonNullable<T>] extends [PlainObject] ? Fields<NonNullable<T>, undefined extends T ? undefined : never> : unknown;
299
+ type Fields<O, Absent> = { readonly [K in keyof O & string]-?: ModuleInputField<FieldType<O, K> | Absent>; };
300
+ type FieldType<O, K extends keyof O> = Record<never, never> extends Pick<O, K> ? O[K] | undefined : O[K];
301
+ /** The `input` a module body receives for its input schema `S`: one value per field, typed from the schema's output (ADR-0061). */
302
+ type ModuleInput<S extends StandardSchemaV1> = ModuleInputField<StandardSchemaV1.InferOutput<S>>;
303
+ //#endregion
250
304
  //#region src/node.d.ts
251
305
  declare const NODE: unique symbol;
252
- declare const SECRET_NEED: unique symbol;
253
306
  declare const SECRET_SOURCE: unique symbol;
254
- /** A declared secret input slot — nameless; the root binds it and the topology forwards it in. */
255
- interface SecretNeed {
256
- readonly [SECRET_NEED]: true;
257
- readonly kind: 'secret';
258
- }
259
- /** A module's secret-forwarding slots: name → the need it declares. */
260
- type Secrets = Record<string, SecretNeed>;
261
- /** 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()`. */
262
- 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> {
263
309
  readonly [SECRET_SOURCE]: true;
264
310
  /** Target-defined. Core never reads this; the target that authored the source reads it back. */
265
311
  readonly payload: T;
266
312
  }
267
- /** What `provision(moduleChild, { secrets })` supplies: one source per declared secret slot. */
268
- type SecretBindings<S extends Secrets> = { [K in keyof S]: SecretSource; };
269
- /** Declares a secret NEED. Nameless — the platform name is bound at the root via `envSecret`. */
270
- declare function secret(): SecretNeed;
271
- /** 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. */
272
- declare function secretSource<T>(payload: T): SecretSource<T>;
273
- /** 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. */
274
328
  declare function isSecretSource(value: unknown): value is SecretSource;
275
329
  declare const PROVISION_NEED: unique symbol;
276
330
  /** A param value the framework mints. Opaque to core: it forwards the payload to the resolved provisioner and never reads it (ADR-0031). */
@@ -286,30 +340,22 @@ declare function provisionNeed<T = undefined>(brand: symbol, payload?: T): Provi
286
340
  /** True if `value` is a provisioning need (a `provisionNeed()` result). */
287
341
  declare function isProvisionNeed(value: unknown): value is ProvisionNeed;
288
342
  declare const PARAM_SOURCE: unique symbol;
289
- declare const PARAM_NEED: unique symbol;
290
- /** 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()`. */
291
- 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> {
292
345
  readonly [PARAM_SOURCE]: true;
293
346
  /** Target-defined. Core never reads this; the target that authored the source reads it back. */
294
347
  readonly payload: T;
295
348
  }
296
- /** 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. */
297
- declare function paramSource<T>(payload: T): ParamSource<T>;
298
- /** 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. */
299
352
  declare function isParamSource(value: unknown): value is ParamSource;
300
- /** 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. */
301
- interface ParamNeed {
302
- readonly [PARAM_NEED]: true;
303
- readonly kind: 'param';
304
- }
305
- /** A module's param-forwarding slots: name → the need it declares. */
306
- type ParamNeeds = Record<string, ParamNeed>;
307
- /** Declares a module param-forwarding NEED. Nameless — bound to a `ParamSource` by an enclosing scope and forwarded into a child's real param. */
308
- declare function paramNeed(): ParamNeed;
309
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`. */
310
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); };
311
- /** What `provision(moduleChild, { params })` accepts per declared `ParamNeed`: a `ParamSource` only — a need carries no schema to validate a literal against. */
312
- type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: ParamSource; };
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[] | {
357
+ readonly [key: string]: InputBindingData;
358
+ };
313
359
  /**
314
360
  * What `provision(service, { input })` accepts (ADR-0042): a plain object
315
361
  * mirroring the service's input schema, whose leaves are literals,
@@ -318,11 +364,29 @@ type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: Par
318
364
  * Schema, so the binding's exact shape cannot be derived from it — deploy-time
319
365
  * validation of the resolved binding is the real check.
320
366
  */
321
- type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<PlainData> | readonly InputBinding[] | {
367
+ type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<InputBindingData> | readonly InputBinding[] | {
322
368
  readonly [key: string]: InputBinding;
323
369
  };
324
- /** What `input()` returns: the schema's validated output type; `never` on a service that declares no input schema. */
325
- type InputValueOf<I> = I extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<I> : never;
370
+ /**
371
+ * What `provision(module, { input })` accepts where the module's input schema
372
+ * expects `T` (its Standard Schema input type): the data, a value standing for
373
+ * it, or, for a `SecretString` field, a secret source. An optional key also
374
+ * takes a value that may stand for `undefined`.
375
+ */
376
+ type ModuleInputBinding<T> = Value<T> | (T extends SecretString ? SecretSource : T extends readonly (infer E)[] ? T | readonly ModuleInputBinding<E>[] : T extends {
377
+ readonly [key: string]: unknown;
378
+ } ? { readonly [K in keyof T]: ModuleInputBinding<T[K]> | (Record<never, never> extends Pick<T, K> ? Value<T[K] | undefined> : never); } : T);
379
+ /** A module input schema's Standard Schema input type. */
380
+ type ModuleInputOf<I extends StandardSchemaV1 | undefined> = StandardSchemaV1.InferInput<NonNullable<I>>;
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;
326
390
  /** Opaque `Contract<any, any>` bound shared by every node/port type that doesn't care which contract. */
327
391
  type AnyContract = Contract<any, any>;
328
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. */
@@ -416,30 +480,26 @@ interface DependencyEnd<C = unknown, Req = unknown> {
416
480
  readonly required: Req | undefined;
417
481
  }
418
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. */
419
- interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
483
+ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
420
484
  readonly [NODE]: true;
421
485
  readonly kind: 'module';
422
486
  /** Human-readable, given at authoring — logs/diagnostics only. */
423
487
  readonly name: string;
424
488
  readonly deps: D;
425
- /** Declared secret input slots (authored as `secrets`) — forwarded to internals via `ctx.secrets` (ADR-0029). */
426
- readonly secretSlots: S;
427
- /** Declared param-forwarding slots (authored as `params`) — forwarded to internals via `ctx.params`, the same rail secrets ride on. */
428
- readonly paramSlots: PN;
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`. */
490
+ readonly inputSchema: I;
429
491
  readonly expose: E;
430
- body(ctx: ModuleContext<D, S, PN>): ModuleOutputs<E> | void;
492
+ body(ctx: ModuleContext<D, I>): ModuleOutputs<E> | void;
431
493
  }
432
494
  /**
433
495
  * What a module's body receives: its declared dependencies as forwardable wiring
434
496
  * values, plus `provision` to register the owned services/modules it wires them into.
435
497
  */
436
- interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
498
+ interface ModuleContext<D extends Deps, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
437
499
  /** The module's declared dependencies as wiring values — pass them into provision(). */
438
500
  readonly deps: { [K in keyof D]: InputRef<D[K]>; };
439
- /** The module's declared secret slots as forwardable sources — pass them into a child's `secrets` (ADR-0029). */
440
- readonly secrets: { readonly [K in keyof S]: SecretSource; };
441
- /** The module's declared param-forwarding slots as forwardable sources — pass them into a child's `params`. */
442
- readonly params: { readonly [K in keyof PN]: ParamSource; };
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. */
502
+ readonly input: I extends StandardSchemaV1 ? ModuleInput<I> : undefined;
443
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. */
444
504
  readonly environment: EnvironmentFacts;
445
505
  /** Registers an owned child (service or module) under a stable id. */
@@ -504,27 +564,18 @@ type ServiceProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined
504
564
  params?: PB;
505
565
  }];
506
566
  /**
507
- * A child-MODULE provision's trailing options: `deps`/`secrets` required
508
- * exactly when the module declares the slots; a declared param-forwarding
509
- * 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.
510
569
  */
511
- type ModuleProvisionArgs<D extends Deps, S extends Secrets, PB> = [keyof D] extends [never] ? [keyof S] extends [never] ? [opts?: {
512
- id?: string;
513
- params?: PB;
514
- }] : [opts: {
515
- id?: string;
516
- secrets: SecretBindings<S>;
517
- params?: PB;
518
- }] : [keyof S] extends [never] ? [opts: {
570
+ type ModuleProvisionOptions<D extends Deps, I extends StandardSchemaV1 | undefined> = {
519
571
  id?: string;
572
+ } & ([keyof D] extends [never] ? unknown : {
520
573
  deps: DepBindings<D>;
521
- params?: PB;
522
- }] : [opts: {
523
- id?: string;
524
- deps: DepBindings<D>;
525
- secrets: SecretBindings<S>;
526
- params?: PB;
527
- }];
574
+ }) & ([I] extends [StandardSchemaV1] ? {
575
+ input: ModuleInputBinding<ModuleInputOf<I>>;
576
+ } : unknown);
577
+ /** The options are optional exactly when nothing is required. */
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>];
528
579
  interface ModuleBuilder {
529
580
  /** Provisions an owned resource; its id defaults to the node's `name`. */
530
581
  provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
@@ -546,14 +597,13 @@ interface ModuleBuilder {
546
597
  input?: InputBinding;
547
598
  params?: ParamBindings<P>;
548
599
  }): ProvisionedRef<E>;
549
- /** Registers an owned child module; its id defaults to the node's `name`; `deps`/`secrets` are required iff it declares them; a declared param-forwarding slot may be bound to a `ParamSource`. */
550
- provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds>(child: ModuleNode<D, E, S, PN>, ...args: ModuleProvisionArgs<D, S, ParamNeedBindings<PN>>): ProvisionedRef<E>;
551
- /** The child-module call with `deps`/`secrets` spelled out — the same generic-wrapper escape as the service overload above. */
552
- provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds>(child: ModuleNode<D, E, S, PN>, opts: {
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>;
602
+ /** The child-module call with `deps` spelled out — the same generic-wrapper escape as the service overload above. */
603
+ provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, opts: {
553
604
  id?: string;
554
605
  deps: DepBindings<D>;
555
- secrets?: SecretBindings<S>;
556
- params?: ParamNeedBindings<PN>;
606
+ input?: ModuleInputBinding<ModuleInputOf<I>>;
557
607
  }): ProvisionedRef<E>;
558
608
  }
559
609
  /** Dependency map: name → the slot the service declares. Only declarations are admitted, never a concrete ResourceNode. */
@@ -641,17 +691,16 @@ declare function dependency<P extends Params, C, Req = unknown>(def: {
641
691
  * closed-root shape — `module(name, body)` instead of `module(name, {}, () =>
642
692
  * ({}))`.
643
693
  */
644
- declare function module(name: string, body: (ctx: ModuleContext<Record<never, never>, Record<never, never>, Record<never, never>>) => void): ModuleNode<Record<never, never>, Record<never, never>, Record<never, never>, Record<never, never>>;
694
+ declare function module(name: string, body: (ctx: ModuleContext<Record<never, never>, undefined>) => void): ModuleNode<Record<never, never>, Record<never, never>, undefined>;
645
695
  /**
646
696
  * A module with a boundary: `deps` and/or `expose` declare what wires in and
647
697
  * out, the same way a service does. The body returns one port per `expose` key.
648
698
  */
649
- 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>>(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: {
650
700
  deps?: D;
651
- secrets?: S;
652
- params?: PN;
701
+ input?: I;
653
702
  expose?: E;
654
- }, body: (ctx: ModuleContext<D, S, PN>) => ModuleOutputs<E> | void): ModuleNode<D, E, S, PN>;
703
+ }, body: (ctx: ModuleContext<D, I>) => ModuleOutputs<E> | void): ModuleNode<D, E, I>;
655
704
  /**
656
705
  * True if `value` was constructed by this module's factories. Checks the
657
706
  * brand only, never a prototype — a graph may mix nodes from a different
@@ -669,6 +718,8 @@ interface LoadOptions {
669
718
  readonly id?: NodeId;
670
719
  /** The facts of the environment being loaded. `name` is what `--environment` gave. Required by any value over `environment.name`. */
671
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>>;
672
723
  }
673
724
  interface GraphNode {
674
725
  readonly id: NodeId;
@@ -754,6 +805,15 @@ interface ParamBinding {
754
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. */
755
806
  readonly binding: unknown;
756
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
+ }
757
817
  interface Graph {
758
818
  readonly root: GraphNode;
759
819
  /** Root + one per input, topo-ordered (deps first). */
@@ -767,6 +827,8 @@ interface Graph {
767
827
  readonly inputBindings: readonly ServiceInputBinding[];
768
828
  /** Every service param bound at provision — literal or source; unbound params are absent here and fall back to their `default` (see `buildConfig`). */
769
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[];
770
832
  }
771
833
  /**
772
834
  * Thrown by Load when the graph is malformed. Structured at origin
@@ -780,5 +842,5 @@ declare class LoadError extends CliStructuredError {
780
842
  });
781
843
  }
782
844
  //#endregion
783
- export { Secrets as $, NodeId as A, ProvisionNeed as B, LoadError as C, secretSource as Ct, ModuleNode as D, CliStructuredError as Dt, ModuleContext as E, string as Et, ParamNeeds as F, ResourceNode as G, RESOURCE_OUT_PORT as H, ParamSource as I, ResourcePropsMember as J, ResourceNodeBase as K, Params as L, ParamBindings as M, ParamNeed as N, ModuleOutputs as O, ParamNeedBindings as P, SecretSource as Q, PlainData as R, InputValueOf as S, secret as St, ModuleBuilder as T, slotsOf as Tt, RealValuesOf as U, ProvisionedRef as V, RefPort as W, SecretBindings as X, RunnableServiceNode as Y, SecretNeed as Z, GraphNode as _, paramNeed as _t, ConfigDeclaration as a, dependency as at, InputBinding as b, resolve as bt, Contract as c, isNode as ct, DependencyEnd as d, isSecretSource as dt, ServiceInputBinding as et, Deps as f, isValue as ft, Graph as g, paramManifest as gt, Expose as h, param as ht, Config as i, configOf as it, ParamBinding as j, NODE as k, ContractStyle as l, isParamSource as lt, EnvironmentFacts as m, number as mt, BoundaryPort as n, Value as nt, ConfigParam as o, freezeNode as ot, Edge as p, module as pt, ResourceProps as q, BuildAdapter as r, Values as rt, Connection as s, inputManifest as st, AuthoredEdge as t, ServiceNode as tt, DepBindings as u, isProvisionNeed as ut, Hydrated as v, paramSource as vt, LoadOptions as w, service as wt, InputRef as x, resource as xt, HydratedDeps as y, provisionNeed as yt, PortEndpoint as z };
784
- //# sourceMappingURL=graph-types-DfsG9Rkg-D_ARjMo7.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;WACR;WACA,UAAU,iBAAiB,YAAY;;;;;;;WAOvC,YAAY;;KAElB,SAAS,eAAe;;KAExB,OAAO,UAAU,sBAAsB,WAAW,IAAI,EAAE,gDAAgD,EAAE,gBAAgB,iBAAiB,YAAY,EAAE,4BAA4B,iBAAiB,YAAY,EAAE,gBAAgB,iBAAiB,YAAY,EAAE;;;;;;;UAO9P,WAAW,UAAU,SA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D_ARjMo7.mjs";
2
- import "./index-D89ftK2z.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-MGOZJdDt-CyI8-9r7.mjs";
2
- import { c as string } from "./dist-CZ_yEZ7F.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 { f as Deps, i as Config, tt as ServiceNode, y as HydratedDeps } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
2
- import "./graph-BzTSXnoQ-BvGVq0bm.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-D89ftK2z.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 Secrets, A as NodeId, B as ProvisionNeed, C as LoadError, Ct as secretSource, D as ModuleNode, E as ModuleContext, Et as string, F as ParamNeeds, G as ResourceNode, H as RESOURCE_OUT_PORT, I as ParamSource, J as ResourcePropsMember, K as ResourceNodeBase, L as Params, M as ParamBindings, N as ParamNeed, O as ModuleOutputs, P as ParamNeedBindings, Q as SecretSource, R as PlainData, S as InputValueOf, St as secret, T as ModuleBuilder, Tt as slotsOf, U as RealValuesOf, V as ProvisionedRef, W as RefPort, X as SecretBindings, Y as RunnableServiceNode, Z as SecretNeed, _ as GraphNode, _t as paramNeed, a as ConfigDeclaration, at as dependency, b as InputBinding, bt as resolve, c as Contract, ct as isNode, d as DependencyEnd, dt as isSecretSource, et as ServiceInputBinding, f as Deps, ft as isValue, g as Graph, gt as paramManifest, h as Expose, ht as param, i as Config, it as configOf, j as ParamBinding, k as NODE, l as ContractStyle, lt as isParamSource, m as EnvironmentFacts, mt as number, n as BoundaryPort, nt as Value, o as ConfigParam, ot as freezeNode, p as Edge, pt as module, q as ResourceProps, r as BuildAdapter, rt as Values, s as Connection, st as inputManifest, t as AuthoredEdge, tt as ServiceNode, u as DepBindings, ut as isProvisionNeed, v as Hydrated, vt as paramSource, w as LoadOptions, wt as service, x as InputRef, xt as resource, y as HydratedDeps, yt as provisionNeed, z as PortEndpoint } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
3
- import { n as assertAppName, t as Load } from "./graph-BzTSXnoQ-BvGVq0bm.mjs";
4
- import { n as hydrateSync, t as hydrate } from "./index-D89ftK2z.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 InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, 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 { 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-MGOZJdDt-CyI8-9r7.mjs";
2
- import { n as isSecretString, t as SecretBox } from "./secret-DoWGmN7m-DO5Brq1Y.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-CZ_yEZ7F.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-CWm3wlNA-BVGreP8x.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