@prisma/composer 0.39.0-dev.1 → 0.39.0-dev.2

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 (102) hide show
  1. package/dist/{app-config-UeKFBma7-CohaMmWp.d.mts → app-config-_XNdvjus-DcCvJysR.d.mts} +19 -18
  2. package/dist/app-config-_XNdvjus-DcCvJysR.d.mts.map +1 -0
  3. package/dist/{app-configuration-file-CeJvBAti-D3uDlheX.mjs → app-configuration-file-Cw9autUL-DebaEvDz.mjs} +20 -25
  4. package/dist/app-configuration-file-Cw9autUL-DebaEvDz.mjs.map +1 -0
  5. package/dist/arktype.d.mts +1 -1
  6. package/dist/arktype.mjs +1 -1
  7. package/dist/arktype.mjs.map +1 -1
  8. package/dist/config-Czql2X9e.d.mts +1 -0
  9. package/dist/config.d.mts +3 -3
  10. package/dist/config.mjs +1 -1
  11. package/dist/control.d.mts +7 -7
  12. package/dist/control.d.mts.map +1 -1
  13. package/dist/control.mjs +3 -3
  14. package/dist/control.mjs.map +1 -1
  15. package/dist/{deploy-3EXLVrtG.mjs → deploy-C_PZEjcg.mjs} +7 -24
  16. package/dist/deploy-C_PZEjcg.mjs.map +1 -0
  17. package/dist/deploy-aDxtc_ck.d.mts +2 -0
  18. package/dist/deploy.d.mts +3 -3
  19. package/dist/deploy.mjs +2 -2
  20. package/dist/{deployment-summary-D74WrJX7-DQ3LDUuO.mjs → deployment-summary-B6rYxEZe-E4IIcngK.mjs} +3 -3
  21. package/dist/{deployment-summary-D74WrJX7-DQ3LDUuO.mjs.map → deployment-summary-B6rYxEZe-E4IIcngK.mjs.map} +1 -1
  22. package/dist/{deployment-summary-p88NV5m5-SgniM8TX.d.mts → deployment-summary-p88NV5m5-k9oQRopA.d.mts} +3 -3
  23. package/dist/{deployment-summary-p88NV5m5-SgniM8TX.d.mts.map → deployment-summary-p88NV5m5-k9oQRopA.d.mts.map} +1 -1
  24. package/dist/{describe-kind-Cpm_euxo-CkhlGJUL.mjs → describe-kind-Cpm_euxo-D9WDxl5C.mjs} +3 -3
  25. package/dist/describe-kind-Cpm_euxo-D9WDxl5C.mjs.map +1 -0
  26. package/dist/{dev-current-wD5YDLjA-CzyFYXni.mjs → dev-current-D8GwJQex-BqMILWv-.mjs} +5 -5
  27. package/dist/{dev-current-wD5YDLjA-CzyFYXni.mjs.map → dev-current-D8GwJQex-BqMILWv-.mjs.map} +1 -1
  28. package/dist/{dev-environment-name-6eEr5PW8-BwusWVKi.mjs → dev-environment-name-6eEr5PW8-6sPgQZG3.mjs} +2 -2
  29. package/dist/{dev-environment-name-6eEr5PW8-BwusWVKi.mjs.map → dev-environment-name-6eEr5PW8-6sPgQZG3.mjs.map} +1 -1
  30. package/dist/{dist-ynqBR6y8.mjs → dist-BN9EXWWX.mjs} +4 -26
  31. package/dist/dist-BN9EXWWX.mjs.map +1 -0
  32. package/dist/errors-0e8IVwzi.mjs.map +1 -1
  33. package/dist/{execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs → execute-deploy-destroy-1SIH5uAu-lMyvQ0el.mjs} +12 -11
  34. package/dist/{execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs.map → execute-deploy-destroy-1SIH5uAu-lMyvQ0el.mjs.map} +1 -1
  35. package/dist/{execute-dev-current-CKOzjWuO-BPecs6Lf.mjs → execute-dev-current-DsAsDBB1-DhnVrBHM.mjs} +6 -6
  36. package/dist/{execute-dev-current-CKOzjWuO-BPecs6Lf.mjs.map → execute-dev-current-DsAsDBB1-DhnVrBHM.mjs.map} +1 -1
  37. package/dist/{execute-dev-BIyOI3Ys-BbDOLlV4.mjs → execute-dev-xPaS5SAl-BTzRomlR.mjs} +81 -19
  38. package/dist/execute-dev-xPaS5SAl-BTzRomlR.mjs.map +1 -0
  39. package/dist/{execute-log-BDdHor71-B2p8Zae2.mjs → execute-log-Be9DYRI6-CCRtbIwA.mjs} +6 -6
  40. package/dist/{execute-log-BDdHor71-B2p8Zae2.mjs.map → execute-log-Be9DYRI6-CCRtbIwA.mjs.map} +1 -1
  41. package/dist/{graph-C7mdtisq-RnKiwVsx.d.mts → graph-DU0omY5O-BHO71z0F.d.mts} +3 -3
  42. package/dist/graph-DU0omY5O-BHO71z0F.d.mts.map +1 -0
  43. package/dist/{graph-BzPLUUsB-D7EnB1F5.mjs → graph-K7VOpCAj-D6UHSltu.mjs} +135 -101
  44. package/dist/graph-K7VOpCAj-D6UHSltu.mjs.map +1 -0
  45. package/dist/{graph-types-s5V7pGj2-BxSqB1ZH.d.mts → graph-types-Bzj1fahC-C8rOVj0c.d.mts} +90 -89
  46. package/dist/graph-types-Bzj1fahC-C8rOVj0c.d.mts.map +1 -0
  47. package/dist/http.d.mts +2 -2
  48. package/dist/http.mjs +2 -2
  49. package/dist/{index-DyuwxTtd.d.mts → index-B8s0bLZY.d.mts} +3 -3
  50. package/dist/{index-DyuwxTtd.d.mts.map → index-B8s0bLZY.d.mts.map} +1 -1
  51. package/dist/index.d.mts +5 -5
  52. package/dist/index.mjs +4 -4
  53. package/dist/internal-app-configuration-file.d.mts +8 -7
  54. package/dist/internal-app-configuration-file.d.mts.map +1 -1
  55. package/dist/internal-app-configuration-file.mjs +1 -1
  56. package/dist/{local-target-Dd8FJEb5.mjs → local-target-COdS1iNs.mjs} +3 -3
  57. package/dist/{local-target-Dd8FJEb5.mjs.map → local-target-COdS1iNs.mjs.map} +1 -1
  58. package/dist/local-target.d.mts +3 -3
  59. package/dist/local-target.d.mts.map +1 -1
  60. package/dist/local-target.mjs +1 -1
  61. package/dist/{nextjs-DLyeRR7M-0lw_cBIr.d.mts → nextjs-DLyeRR7M-Z_xX74Cp.d.mts} +3 -3
  62. package/dist/{nextjs-DLyeRR7M-0lw_cBIr.d.mts.map → nextjs-DLyeRR7M-Z_xX74Cp.d.mts.map} +1 -1
  63. package/dist/nextjs-control.d.mts +4 -4
  64. package/dist/nextjs.d.mts +1 -1
  65. package/dist/node-control.d.mts +3 -3
  66. package/dist/node.d.mts +2 -2
  67. package/dist/{pointer-CyQZZugO-D7k3vibs.d.mts → pointer-DclJZFQi-DJa4t8Wa.d.mts} +3 -3
  68. package/dist/{pointer-CyQZZugO-D7k3vibs.d.mts.map → pointer-DclJZFQi-DJa4t8Wa.d.mts.map} +1 -1
  69. package/dist/{preflight-transport-DmmtoFPH-CnDWufmu.mjs → preflight-transport-DJjTWvyH-CEJ9WlaN.mjs} +4 -6
  70. package/dist/preflight-transport-DJjTWvyH-CEJ9WlaN.mjs.map +1 -0
  71. package/dist/{redaction-DXung4ip-bBoNomi3.mjs → redaction-C-NnlVUh-B1nJc6rb.mjs} +3 -9
  72. package/dist/redaction-C-NnlVUh-B1nJc6rb.mjs.map +1 -0
  73. package/dist/{redaction-Bf8FvTFH-D_HvoMrf.d.mts → redaction-CqdeMBKw-BAOFeUYp.d.mts} +15 -8
  74. package/dist/{redaction-Bf8FvTFH-D_HvoMrf.d.mts.map → redaction-CqdeMBKw-BAOFeUYp.d.mts.map} +1 -1
  75. package/dist/report.d.mts +3 -3
  76. package/dist/report.mjs +2 -2
  77. package/dist/report.mjs.map +1 -1
  78. package/dist/{run-alchemy-CRLAyOtt-CBUV28We.mjs → run-alchemy-CyciV8i0-BxPAyrch.mjs} +3 -3
  79. package/dist/{run-alchemy-CRLAyOtt-CBUV28We.mjs.map → run-alchemy-CyciV8i0-BxPAyrch.mjs.map} +1 -1
  80. package/dist/service-rpc.d.mts +2 -2
  81. package/dist/service-rpc.mjs +2 -2
  82. package/dist/testing.d.mts +1 -1
  83. package/dist/{validate-environment-D1BTCkTs-BQprjyNP.mjs → validate-environment-DyW59rJ7-DTFBmAno.mjs} +7 -7
  84. package/dist/{validate-environment-D1BTCkTs-BQprjyNP.mjs.map → validate-environment-DyW59rJ7-DTFBmAno.mjs.map} +1 -1
  85. package/dist/zod.d.mts +1 -1
  86. package/dist/zod.mjs +1 -1
  87. package/dist/zod.mjs.map +1 -1
  88. package/package.json +11 -11
  89. package/skills/prisma-composer-core-concepts/SKILL.md +32 -40
  90. package/dist/app-config-UeKFBma7-CohaMmWp.d.mts.map +0 -1
  91. package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs.map +0 -1
  92. package/dist/config-BeZEgGCg.d.mts +0 -1
  93. package/dist/deploy-3EXLVrtG.mjs.map +0 -1
  94. package/dist/deploy-Xi4_JrtE.d.mts +0 -2
  95. package/dist/describe-kind-Cpm_euxo-CkhlGJUL.mjs.map +0 -1
  96. package/dist/dist-ynqBR6y8.mjs.map +0 -1
  97. package/dist/execute-dev-BIyOI3Ys-BbDOLlV4.mjs.map +0 -1
  98. package/dist/graph-BzPLUUsB-D7EnB1F5.mjs.map +0 -1
  99. package/dist/graph-C7mdtisq-RnKiwVsx.d.mts.map +0 -1
  100. package/dist/graph-types-s5V7pGj2-BxSqB1ZH.d.mts.map +0 -1
  101. package/dist/preflight-transport-DmmtoFPH-CnDWufmu.mjs.map +0 -1
  102. package/dist/redaction-DXung4ip-bBoNomi3.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { a as SecretString, t as Pointer } from "./pointer-CyQZZugO-D7k3vibs.mjs";
1
+ import { a as SecretString, t as Pointer } from "./pointer-DclJZFQi-DJa4t8Wa.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-s5V7pGj2.d.mts
81
+ //#region ../../0-framework/1-core/core/dist/graph-types-Bzj1fahC.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
@@ -134,12 +134,8 @@ interface Connection<P extends Params = Params, C = unknown> {
134
134
  hydrate(values: Values<P>): C | Promise<C>;
135
135
  }
136
136
  /**
137
- * The enumerable config surface of a service — derivable from the graph
138
- * alone, nothing booted, no platform keys. The introspection artifact (values
139
- * absent). `schema` is a data-only projection of the param's Standard Schema
140
- * (JSON Schema when the vendor supports the optional conversion, a `{ vendor }`
141
- * tag otherwise) — never the param's functions. Physical locations are the
142
- * target pack's business. Secrets are not here: they are `secretString()` fields of a service's input, bound with `envSecret()`.
137
+ * A service's config surface, read from the graph alone, without values. `schema` is a data-only projection of the param's schema:
138
+ * JSON Schema when the vendor converts, a `{ vendor }` tag otherwise.
143
139
  */
144
140
  interface ConfigDeclaration {
145
141
  readonly owner: 'service' | {
@@ -174,27 +170,9 @@ interface Config {
174
170
  declare function configOf(root: ServiceNode): readonly ConfigDeclaration[];
175
171
  /**
176
172
  * The app's input manifest: every service input binding a `provision()` call
177
- * supplied (ADR-0042). Pure graph introspection, TARGET-AGNOSTIC — a deploy
178
- * target's recursive descent classifies the binding's leaves (its preflight
179
- * verifies each `envSecret` leaf's platform var exists before deploy; the
180
- * values are provisioned out-of-band).
173
+ * supplied (ADR-0042).
181
174
  */
182
175
  declare function inputManifest(graph: Graph): readonly InputBindingUse[];
183
- /**
184
- * The app's param-binding manifest: every param a `provision()` call bound —
185
- * literal or an opaque, target-defined `ParamSource` — at the address that
186
- * declared it. The param sibling of `provisionManifest`, for a deploy
187
- * target's own preflight to consume. Pure graph introspection,
188
- * TARGET-AGNOSTIC; a param this manifest omits simply falls back to its own
189
- * `default` at `buildConfig`.
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[];
198
176
  interface ParamOptions<T> {
199
177
  readonly optional?: boolean;
200
178
  readonly default?: T;
@@ -210,6 +188,7 @@ declare function param<S extends StandardSchemaV1>(schema: S, opts?: ParamOption
210
188
  //#region src/value.d.ts
211
189
  declare const VALUE: unique symbol;
212
190
  declare const VALUE_ORIGIN: unique symbol;
191
+ declare const VALUE_RESOURCE: unique symbol;
213
192
  declare const VALUE_TYPE: unique symbol;
214
193
  /** Where Load gets a value's real value. Internal to core; not re-exported from the public barrel. */
215
194
  type ValueOrigin<T> = {
@@ -229,35 +208,32 @@ type ValueOrigin<T> = {
229
208
  } | {
230
209
  readonly kind: 'source';
231
210
  readonly sourceKind: 'param';
232
- /** How an error names the source, e.g. `envParam('REGION')`. */
211
+ /** How an error names the source. */
233
212
  readonly label: string;
234
- /** The app configuration key whose text at deploy is the real value, as for `envParam()`. `undefined` for a value known only at boot, whose real value is `source`, a pointer. */
235
- readonly configurationKey: string | undefined;
213
+ readonly resource: NodeId | undefined;
236
214
  /** The source itself. Not enumerable, so a copy's origin compares equal and the origin holds no cycle. */
237
215
  readonly source: ParamSource;
238
216
  } | {
239
217
  readonly kind: 'source';
240
218
  readonly sourceKind: 'secret';
241
- /** How an error names the source, e.g. `envSecret('STRIPE_KEY')`. */
219
+ /** How an error names the source. */
242
220
  readonly label: string;
243
- /** The app secrets key that holds the secret's value, as for `envSecret()`. `undefined` for a secret source built without one. */
221
+ /** The app secrets key that holds the secret's value. `undefined` for a secret source built without one. */
244
222
  readonly secretsKey: string | undefined;
223
+ readonly resource: NodeId | undefined;
245
224
  /** The source itself. Not enumerable, so a copy's origin compares equal and the origin holds no cycle. */
246
225
  readonly source: SecretSource;
247
226
  };
248
227
  /**
249
- * An opaque stand-in a module body can pass wherever a `T` is accepted
250
- * (ADR-0062). `environment.name` is one; each field of a module's `input` is
251
- * one; `resolve()` returns one computed from others; a deploy target's source,
252
- * such as `envParam()` or `envSecret()`, is one too. A deploy-time value's real
253
- * value is known by the end of Load; a runtime value's real value at deploy is a pointer.
228
+ * A stand-in a module body passes wherever a `T` is accepted (ADR-0062): `environment.name`, an input field, a `resolve()` result or a target's source.
229
+ * A deploy-time value is known by the end of Load; a runtime value's real value at deploy is a pointer.
254
230
  */
255
231
  interface Value<T> {
256
232
  readonly [VALUE]: true;
257
233
  readonly [VALUE_TYPE]?: T;
258
234
  readonly [VALUE_ORIGIN]: ValueOrigin<T>;
259
235
  }
260
- /** 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. */
236
+ /** A value known only at boot (ADR-0062): its real value at deploy is a `Pointer<T>`, which names the variable on the platform that the service reads at boot. */
261
237
  type RuntimeValue<T> = Value<Pointer<T>>;
262
238
  /** The tuple of real-value types a dependency tuple stands for: what `resolve()`'s `fn` receives. */
263
239
  type RealValuesOf<D extends readonly unknown[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? T : never; };
@@ -333,7 +309,7 @@ type NotModuleInput = {
333
309
  //#region src/node.d.ts
334
310
  declare const NODE: unique symbol;
335
311
  declare const SECRET_SOURCE: unique symbol;
336
- /** 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()`. */
312
+ /** 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 builds one with `secretSource()`. */
337
313
  interface SecretSource<T = unknown> extends Value<unknown> {
338
314
  readonly [SECRET_SOURCE]: true;
339
315
  /** Target-defined. Core never reads this; the target that authored the source reads it back. */
@@ -341,24 +317,22 @@ interface SecretSource<T = unknown> extends Value<unknown> {
341
317
  }
342
318
  /** What a deploy target says about a source it builds. */
343
319
  interface SourceOptions {
344
- /** How errors name the source, e.g. `envSecret('STRIPE_KEY')`. Defaults to `a secret source` or `a param source`. */
320
+ /** How errors name the source. Defaults to `a source`. */
345
321
  readonly label?: string;
346
322
  }
347
323
  /** What a deploy target says about a secret source it builds. */
348
324
  interface SecretSourceOptions extends SourceOptions {
349
- /** The app secrets key that holds this secret's value, as `envSecret('NAME')`'s `NAME`. Composer redacts the value under it wherever it prints, and `prisma dev` hands it to its second process. */
325
+ /** The app secrets key that holds this secret's value. Composer redacts the value under it wherever it prints, and `prisma dev` hands it to its second process. */
350
326
  readonly secretsKey?: string;
351
327
  }
352
328
  /** What a deploy target says about a param source it builds. */
353
329
  interface ParamSourceOptions extends SourceOptions {
354
- /** The app configuration key whose text 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. */
355
- readonly configurationKey?: string;
356
- /** 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. */
330
+ /** `true` makes the source a secret pointer, whose variable holds a secret; otherwise it is a plain pointer. */
357
331
  readonly redacted?: boolean;
358
332
  }
359
- /** 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. */
333
+ /** Builds a secret source from a target-defined payload: the SPI a deploy target's own constructor calls. The source is a value whose real value at deploy is itself, a pointer. Core forwards it and never inspects the payload. */
360
334
  declare function secretSource<P, T = unknown>(payload: P, options?: SecretSourceOptions): SecretSource<P> & Value<T>;
361
- /** True if `value` is a secret source, such as an `envSecret()` result. */
335
+ /** True if `value` is a secret source. */
362
336
  declare function isSecretSource(value: unknown): value is SecretSource;
363
337
  declare const PROVISION_NEED: unique symbol;
364
338
  /** A param value the framework mints. Opaque to core: it forwards the payload to the resolved provisioner and never reads it (ADR-0031). */
@@ -374,18 +348,18 @@ declare function provisionNeed<T = undefined>(brand: symbol, payload?: T): Provi
374
348
  /** True if `value` is a provisioning need (a `provisionNeed()` result). */
375
349
  declare function isProvisionNeed(value: unknown): value is ProvisionNeed;
376
350
  declare const PARAM_SOURCE: unique symbol;
377
- /** A param's source: a target-defined payload core forwards but never inspects. It is a value too: known at deploy when it names an app configuration 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()`. */
351
+ /** A param's source: a target-defined payload core forwards but never inspects. It is a value too, 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()`. */
378
352
  interface ParamSource<T = unknown> extends Value<unknown> {
379
353
  readonly [PARAM_SOURCE]: true;
380
354
  /** Target-defined. Core never reads this; the target that authored the source reads it back. */
381
355
  readonly payload: T;
382
356
  }
383
- /** 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. */
357
+ /** Builds a param source from a target-defined payload: the SPI a deploy target's own constructor calls. Core forwards it and never inspects the payload. */
384
358
  declare function paramSource<P, T = unknown>(payload: P, options?: ParamSourceOptions): ParamSource<P> & Value<T>;
385
- /** True if `value` is a param source, such as an `envParam()` result. */
359
+ /** True if `value` is a param source. */
386
360
  declare function isParamSource(value: unknown): value is ParamSource;
387
- /** 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`. */
388
- 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); };
361
+ /** What `provision(service, { params })` accepts per declared param: a literal (schema-validated when config is built) or a deploy-time value, taking precedence over `param.default`. Every entry is optional — an unbound param falls back to its `default`. */
362
+ type ParamBindings<P extends Params> = { readonly [K in keyof P]?: StandardSchemaV1.InferOutput<P[K]['schema']> | (StandardSchemaV1.InferOutput<P[K]['schema']> extends PlainData ? Value<StandardSchemaV1.InferOutput<P[K]['schema']>> : never); };
389
363
  /**
390
364
  * What `provision(node, { input })` accepts, for a module or a service, where
391
365
  * the node's input schema expects `T` (its Standard Schema input type): the
@@ -547,8 +521,8 @@ interface AppRootContext<I extends StandardSchemaV1 | undefined = StandardSchema
547
521
  readonly input: I extends StandardSchemaV1 ? ModuleInput<I> : undefined;
548
522
  /** The deploy-time facts of the environment, each a value (ADR-0062). */
549
523
  readonly environment: EnvironmentFacts;
550
- /** Registers an owned child (resource, service or module) under a stable id. */
551
- readonly provision: ModuleBuilder['provision'];
524
+ /** Registers an owned child (resource, service, module or value resource) under a stable id. */
525
+ readonly provision: AppRootProvision;
552
526
  }
553
527
  /**
554
528
  * A module's forwarded-input value: the same ref-port shape a producer's
@@ -621,21 +595,25 @@ type ModuleProvisionOptions<D extends Deps, I extends StandardSchemaV1 | undefin
621
595
  } : unknown);
622
596
  /** The options are optional exactly when nothing is required. */
623
597
  type ModuleProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined> = I extends StandardSchemaV1 ? [opts: ModuleProvisionOptions<D, I>] : [keyof D] extends [never] ? [opts?: ModuleProvisionOptions<D, I>] : [opts: ModuleProvisionOptions<D, I>];
624
- /** The options `provision()` takes after a service or module node `N`. */
625
- type ProvisionArgs<N> = N extends ServiceNode<infer D, infer P, Expose, infer I> ? ServiceProvisionArgs<D, I, ParamBindings<P>> : N extends ModuleNode<infer D, Expose, infer I> ? ModuleProvisionArgs<D, I> : never;
598
+ type ProvisionArgs<N> = N extends ValueResourceNode ? [opts?: {
599
+ id?: string;
600
+ }] : N extends ServiceNode<infer D, infer P, Expose, infer I> ? ServiceProvisionArgs<D, I, ParamBindings<P>> : N extends ModuleNode<infer D, Expose, infer I> ? ModuleProvisionArgs<D, I> : never;
626
601
  /** The contracts a service or module node `N` exposes. */
627
602
  type ExposeOf<N> = N extends ServiceNode<Deps, Params, infer E, StandardSchemaV1 | undefined> ? E : N extends ModuleNode<Deps, infer E, StandardSchemaV1 | undefined> ? E : never;
628
- interface ModuleBuilder {
603
+ type OnlyInAppRoot = "Only appRoot() can provision a resource that is a value. Provision it in the app root and pass its value down through this module's input.";
604
+ interface SharedProvision {
629
605
  /** Provisions an owned resource; its id defaults to the node's `name`. */
630
- provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
606
+ <C extends AnyContract | undefined>(resource: ResourceNode<C> & {
607
+ readonly [VALUE_RESOURCE]?: undefined;
608
+ }, opts?: {
631
609
  id?: string;
632
610
  }): {
633
611
  readonly id: string;
634
612
  } & (C extends AnyContract ? RefPort<C> : Record<never, never>);
635
- /** Registers an owned service; its id defaults to the node's `name`; `deps`/`input` are required iff it declares them; a reserved param may be bound (literal or `ParamSource`), overriding its default. */
636
- provision<D extends Deps, P extends Params, E extends Expose, I extends StandardSchemaV1 | undefined>(service: ServiceNode<D, P, E, I>, ...args: ServiceProvisionArgs<D, I, ParamBindings<P>>): ProvisionedRef<E>;
613
+ /** Registers an owned service; its id defaults to the node's `name`; `deps`/`input` are required iff it declares them; a reserved param may be bound (literal or deploy-time value), overriding its default. */
614
+ <D extends Deps, P extends Params, E extends Expose, I extends StandardSchemaV1 | undefined>(service: ServiceNode<D, P, E, I>, ...args: ServiceProvisionArgs<D, I, ParamBindings<P>>): ProvisionedRef<E>;
637
615
  /** Registers an owned child module; its id defaults to the node's `name`; `deps` and `input` are required iff it declares them. */
638
- provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, ...args: ModuleProvisionArgs<D, I>): ProvisionedRef<E>;
616
+ <D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, ...args: ModuleProvisionArgs<D, I>): ProvisionedRef<E>;
639
617
  /**
640
618
  * The service call with `deps` written out. `ServiceProvisionArgs` above
641
619
  * cannot resolve while `D` or `I` is still an unbound type parameter — a
@@ -643,36 +621,42 @@ interface ModuleBuilder {
643
621
  * that call site resolves to this overload, or to the next one for a
644
622
  * service without an input schema.
645
623
  */
646
- provision<D extends Deps, P extends Params, E extends Expose, I extends StandardSchemaV1 | undefined>(service: ServiceNode<D, P, E, I>, opts: {
624
+ <D extends Deps, P extends Params, E extends Expose, I extends StandardSchemaV1 | undefined>(service: ServiceNode<D, P, E, I>, opts: {
647
625
  id?: string;
648
626
  deps: DepBindings<D>;
649
627
  input: InputBindingOf<I>;
650
628
  params?: ParamBindings<P>;
651
629
  }): ProvisionedRef<E>;
652
- provision<D extends Deps, P extends Params, E extends Expose>(service: ServiceNode<D, P, E, undefined>, opts: {
630
+ <D extends Deps, P extends Params, E extends Expose>(service: ServiceNode<D, P, E, undefined>, opts: {
653
631
  id?: string;
654
632
  deps: DepBindings<D>;
655
633
  input?: never;
656
634
  params?: ParamBindings<P>;
657
635
  }): ProvisionedRef<E>;
658
636
  /** The child-module call with `deps` written out — the same generic-wrapper escape as the two service overloads above. */
659
- provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, opts: {
637
+ <D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, opts: {
660
638
  id?: string;
661
639
  deps: DepBindings<D>;
662
640
  input: InputBindingOf<I>;
663
641
  }): ProvisionedRef<E>;
664
- provision<D extends Deps, E extends Expose>(child: ModuleNode<D, E, undefined>, opts: {
642
+ <D extends Deps, E extends Expose>(child: ModuleNode<D, E, undefined>, opts: {
665
643
  id?: string;
666
644
  deps: DepBindings<D>;
667
645
  input?: never;
668
646
  }): ProvisionedRef<E>;
669
- /**
670
- * Any service or child module. Declared last, so a call no overload accepts
671
- * reports this overload's error, which names the binding key that does not
672
- * fit, or says a module's whole input is not a value.
673
- */
674
- provision<N extends ServiceNode | ModuleNode>(node: N, ...args: ProvisionArgs<N>): ProvisionedRef<ExposeOf<N>>;
675
647
  }
648
+ type ProvisionInModule = <N extends ServiceNode | ModuleNode | ValueResourceNode>(node: N extends ValueResourceNode ? OnlyInAppRoot : N, ...args: ProvisionArgs<N>) => ProvisionedRef<ExposeOf<N>>;
649
+ type ProvisionValue = <V extends SourceValue>(node: ValueResourceNode<V>, opts?: {
650
+ readonly id?: string;
651
+ }) => V & {
652
+ readonly id: string;
653
+ };
654
+ type ProvisionInAppRoot = <N extends ServiceNode | ModuleNode | ValueResourceNode>(node: N, ...args: ProvisionArgs<N>) => ProvisionedRef<ExposeOf<N>>;
655
+ interface ModuleBuilder {
656
+ /** Registers an owned child (resource, service or module) under a stable id. */
657
+ readonly provision: SharedProvision & ProvisionInModule;
658
+ }
659
+ type AppRootProvision = ProvisionValue & SharedProvision & ProvisionInAppRoot;
676
660
  /** Dependency map: name → the slot the service declares. Only declarations are admitted, never a concrete ResourceNode. */
677
661
  type Deps = Record<string, DependencyEnd<any, any>>;
678
662
  /** Output-port map: name → the Contract a service exposes for others to depend on. */
@@ -726,6 +710,22 @@ declare function resource<C extends AnyContract | undefined = undefined, D exten
726
710
  deps?: DepBindings<D>;
727
711
  props?: P;
728
712
  }): ResourceNode<C, D, P>;
713
+ /** What a value resource holds: a secret source or a param source, known only at boot. */
714
+ type SourceValue = (SecretSource | ParamSource) & RuntimeValue<unknown>;
715
+ /** A resource node that is also a value. Only `provision()` in an app root's body takes its value out. It provides no contract and has no dependencies. */
716
+ type ValueResourceNode<V extends SourceValue = SourceValue> = ResourceNode<undefined, Record<never, never>> & {
717
+ readonly [VALUE_RESOURCE]: V;
718
+ };
719
+ /** Builds a frozen resource node that is a value: `value`, a source built with `secretSource()` or `paramSource()`. It provides no contract and has no dependencies. */
720
+ declare function valueResource<V extends SourceValue>(def: {
721
+ readonly name: string;
722
+ readonly extension: string;
723
+ readonly type: string;
724
+ readonly props?: ResourceProps;
725
+ readonly value: V;
726
+ }): ValueResourceNode<V>;
727
+ /** True for a resource node that is a value: one that holds a source under the value resource key. */
728
+ declare function isValueResource(node: unknown): node is ValueResourceNode;
729
729
  /**
730
730
  * Constructs a branded, frozen Service node — declarations only (inputs,
731
731
  * params, the input schema, build adapter, and the ports it exposes). Pure;
@@ -782,7 +782,7 @@ declare function appRoot<I extends StandardSchemaV1 | undefined = undefined>(nam
782
782
  */
783
783
  declare function isNode(value: unknown): value is ServiceNode | ResourceNode | DependencyEnd | ModuleNode | AppRootNode;
784
784
  /** A node's dependency slots. A resource node built by another installed copy of core may have no `inputs`; that means none. */
785
- declare function slotsOf(node: ServiceNode | ResourceNode): ServiceNode['inputs'];
785
+ declare function slotsOf(node: ServiceNode | ResourceNode<AnyContract | undefined>): ServiceNode['inputs'];
786
786
  //#endregion
787
787
  //#region src/graph-types.d.ts
788
788
  /** Path-derived: root-scope children are bare ids ("auth", "db"); a nested module's own children dot-join under its address ("auth.db"). */
@@ -802,8 +802,6 @@ interface RootInputField {
802
802
  interface AppConfigurationRead {
803
803
  /** Each field of the root's input that its body names, as the root's schema produced it. Empty when the root declares no input. */
804
804
  readonly rootInput: readonly RootInputField[];
805
- /** The text the app configuration holds for each configuration key a source reads, such as `envParam('NAME')`'s `NAME`. A key the app configuration does not hold, or holds as `''`, is absent. */
806
- readonly configurationKeyText: Readonly<Record<string, string>>;
807
805
  }
808
806
  interface CommonLoadOptions {
809
807
  /** The root's address: the app name. Defaults to the root's `name`. */
@@ -813,7 +811,7 @@ interface CommonLoadOptions {
813
811
  }
814
812
  /** Load's options in the first process, or wherever the app configuration is at hand. */
815
813
  interface FirstProcessLoadOptions extends CommonLoadOptions {
816
- /** The app configuration (ADR-0062): what the `config` adapters return. It is the root's input, which the root's schema checks, and what a source with a configuration key, such as `envParam('NAME')`, reads. */
814
+ /** The app configuration (ADR-0062): what the `config` adapters return. It is the root's input, which the root's schema checks. */
817
815
  readonly configuration?: Readonly<Record<string, unknown>>;
818
816
  readonly appConfigurationRead?: never;
819
817
  }
@@ -890,31 +888,32 @@ interface InputBindingUse {
890
888
  /** The binding object supplied at provision. */
891
889
  readonly binding: unknown;
892
890
  }
893
- /**
894
- * A resolved param binding: a `provision()` call bound a service's param
895
- * slot to either a literal value or an opaque `ParamSource` — the non-secret
896
- * sibling of `SecretBinding`. Unlike a secret, a param binding is not
897
- * required for every declared param (a param may fall back to its own
898
- * `default`), so this list only carries the ones a `provision()` call
899
- * actually bound.
900
- */
901
891
  interface ParamBinding {
902
892
  /** The graph address of the service that declares the param. */
903
893
  readonly serviceAddress: NodeId;
904
894
  /** The param name on that service. */
905
895
  readonly slot: string;
906
- /** 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. */
896
+ /** A literal value, schema-validated by `buildConfig`. */
907
897
  readonly binding: unknown;
908
898
  }
909
- /** 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. */
899
+ /** A secret source a binding in the graph names, or a secret value resource, wherever it sits (ADR-0029). Deploy preflight checks every one, including one in a module's input that no service receives. */
910
900
  interface SecretSourceUse {
911
901
  /** The source, as its target built it. Core never reads its payload. */
912
902
  readonly source: SecretSource;
913
- /** A service whose final binding holds it, if one does. Otherwise the module whose input holds it. */
903
+ /** A service whose final binding holds it, if one does. Otherwise the secret value resource itself, or the module whose input holds it. */
914
904
  readonly address: NodeId;
915
905
  /** That node's kind. */
916
906
  readonly nodeKind: 'service' | 'module' | 'resource';
917
907
  }
908
+ /** One service reading one value resource's value. */
909
+ interface ValueRead {
910
+ /** The service whose resolved binding holds the value. */
911
+ readonly reader: NodeId;
912
+ /** The address of the value resource. */
913
+ readonly resource: NodeId;
914
+ /** The dotted key path in the service's input binding; `''` for the whole binding. */
915
+ readonly path: string;
916
+ }
918
917
  interface Graph {
919
918
  readonly root: GraphNode;
920
919
  /** Root + one per input, topo-ordered (deps first). */
@@ -926,10 +925,12 @@ interface Graph {
926
925
  readonly authoredEdges: readonly AuthoredEdge[];
927
926
  /** Every service input binding a `provision()` call supplied (ADR-0042). */
928
927
  readonly inputBindings: readonly InputBindingUse[];
929
- /** Every service param bound at provision — literal or source; unbound params are absent here and fall back to their `default` (see `buildConfig`). */
928
+ /** Every service param bound at provision; unbound params are absent here and fall back to their `default` (see `buildConfig`). */
930
929
  readonly params: readonly ParamBinding[];
931
- /** Every secret source a binding names, once each, in the order Load met them (ADR-0029). */
930
+ /** Every secret source a binding names, and every secret value resource, once each (ADR-0029). */
932
931
  readonly secretSources: readonly SecretSourceUse[];
932
+ /** Each service that reads a value resource's value, and where in its binding it reads it. */
933
+ readonly valueReads: readonly ValueRead[];
933
934
  /** What this Load read from the app configuration (ADR-0062). Empty when Load was given none. */
934
935
  readonly appConfigurationRead: AppConfigurationRead;
935
936
  }
@@ -951,5 +952,5 @@ declare class GraphCheckError extends CliStructuredError {
951
952
  });
952
953
  }
953
954
  //#endregion
954
- export { ResourceProps as $, LoadOptions as A, secretSourceManifest as At, ParamBindings as B, HydratedDeps as C, param as Ct, InputRef as D, resolve as Dt, InputBindingUse as E, provisionNeed as Et, ModuleNode as F, PortEndpoint as G, ParamSourceOptions as H, ModuleOutputs as I, RESOURCE_OUT_PORT as J, ProvisionNeed as K, NODE as L, ModuleContext as M, slotsOf as Mt, ModuleInput as N, string as Nt, InputValueOf as O, resource as Ot, ModuleInputField as P, CliStructuredError as Pt, ResourceNodeBase as Q, NodeId as R, Hydrated as S, number as St, InputBindingOf as T, paramSource as Tt, Params as U, ParamSource as V, PlainData as W, RefPort as X, RealValuesOf as Y, ResourceNode as Z, EnvironmentFacts as _, isParamSource as _t, BoundaryPort as a, SecretSourceOptions as at, GraphCheckError as b, isValue as bt, ConfigDeclaration as c, SourceOptions as ct, Contract as d, appRoot as dt, ResourcePropsMember as et, ContractStyle as f, configOf as ft, Edge as g, isNode as gt, Deps as h, inputManifest as ht, AuthoredEdge as i, SecretSource as it, ModuleBuilder as j, service as jt, LoadError as k, secretSource as kt, ConfigParam as l, Value as lt, DependencyEnd as m, freezeNode as mt, AppRootContext as n, RunnableServiceNode as nt, BuildAdapter as o, SecretSourceUse as ot, DepBindings as p, dependency as pt, ProvisionedRef as q, AppRootNode as r, RuntimeValue as rt, Config as s, ServiceNode as st, AppConfigurationRead as t, RootInputField as tt, Connection as u, Values as ut, Expose as v, isProvisionNeed as vt, InputBinding as w, paramManifest as wt, GraphNode as x, module as xt, Graph as y, isSecretSource as yt, ParamBinding as z };
955
- //# sourceMappingURL=graph-types-s5V7pGj2-BxSqB1ZH.d.mts.map
955
+ export { ResourceProps as $, LoadOptions as A, provisionNeed as At, ParamBindings as B, HydratedDeps as C, isSecretSource as Ct, InputRef as D, number as Dt, InputBindingUse as E, module as Et, ModuleNode as F, slotsOf as Ft, PortEndpoint as G, ParamSourceOptions as H, ModuleOutputs as I, string as It, RESOURCE_OUT_PORT as J, ProvisionNeed as K, NODE as L, valueResource as Lt, ModuleContext as M, resource as Mt, ModuleInput as N, secretSource as Nt, InputValueOf as O, param as Ot, ModuleInputField as P, service as Pt, ResourceNodeBase as Q, NodeId as R, CliStructuredError as Rt, Hydrated as S, isProvisionNeed as St, InputBindingOf as T, isValueResource as Tt, Params as U, ParamSource as V, PlainData as W, RefPort as X, RealValuesOf as Y, ResourceNode as Z, EnvironmentFacts as _, dependency as _t, BoundaryPort as a, SecretSourceOptions as at, GraphCheckError as b, isNode as bt, ConfigDeclaration as c, SourceOptions as ct, Contract as d, Value as dt, ResourcePropsMember as et, ContractStyle as f, ValueRead as ft, Edge as g, configOf as gt, Deps as h, appRoot as ht, AuthoredEdge as i, SecretSource as it, ModuleBuilder as j, resolve as jt, LoadError as k, paramSource as kt, ConfigParam as l, SourceValue as lt, DependencyEnd as m, Values as mt, AppRootContext as n, RunnableServiceNode as nt, BuildAdapter as o, SecretSourceUse as ot, DepBindings as p, ValueResourceNode as pt, ProvisionedRef as q, AppRootNode as r, RuntimeValue as rt, Config as s, ServiceNode as st, AppConfigurationRead as t, RootInputField as tt, Connection as u, VALUE_RESOURCE as ut, Expose as v, freezeNode as vt, InputBinding as w, isValue as wt, GraphNode as x, isParamSource as xt, Graph as y, inputManifest as yt, ParamBinding as z };
956
+ //# sourceMappingURL=graph-types-Bzj1fahC-C8rOVj0c.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-types-Bzj1fahC-C8rOVj0c.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../0-framework/1-core/core/dist/graph-types-Bzj1fahC.d.mts"],"mappings":";;;;UACU,wBAAwB;WACvB;WACA;WACA;WACA;aACE;aACA;;WAEF;WACA,OAAO;WACP;;;;;;;;UAwBD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aAC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,cAAc,eAAe,gBAAgB,aAAa;;iBAE3F,QAAQ,MAAM,cAAc,aAAa,2BAA2B;;;;KAIhF;;UAEK;;WAEC;;WAEA;;;;;;;UAOD;;WAEC,oBAAoB;;UAErB;;WAEC,KAAK;;WAEL,cAAc;;;UAGf,gCAAgC;;WAE/B,gBAAgB,SAAS;WACzB;;;UAGD,iCAAiC;WAChC;;WAEA,sBAAsB;;KAE5B,cAAc,0BAA0B;UACnC;WACC,IAAI;;;;;;;WAOJ,QAAQ;WACR,MAAM,cAAc,eAAe,gBAAgB,aAAa;;;cAG7D;;UAEJ;WACC,MAAM;WACN;WACA;;;;;;;;;UASD,qBAAqB;WACpB;WACA,OAAO;;;;;;;;;;;UAWR;WACC,MAAM;WACN,IAAI;;;;;;;;;UASL;WACC,MAAM;WACN,IAAI;WACJ;WACA;;;;;;UAMD;;WAEC,gBAAgB;;WAEhB;;UAED;;WAEC,gBAAgB;;WAEhB;;WAEA;;;UAGD;;WAEC,QAAQ;;WAER,SAAS;;WAET;;;UAGD;;WAEC,QAAQ;;WAER,UAAU;;WAEV;;UAED;WACC,MAAM;;WAEN,gBAAgB;WAChB,gBAAgB;;WAEhB,gBAAgB;;WAEhB,wBAAwB;;WAExB,wBAAwB;;WAExB,iBAAiB;;WAEjB,wBAAwB;;WAExB,qBAAqB;;WAErB,sBAAsB;;;;;;;;cAQnB,kBAAkB;EAC9B,YAAY,iBAAiB;aAClB;;;;cAIC,wBAAwB;EACpC,YAAY,iBAAiB;aAClB"}
package/dist/http.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as Contract, m as DependencyEnd } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
2
- import "./index-DyuwxTtd.mjs";
1
+ import { d as Contract, m as DependencyEnd } from "./graph-types-Bzj1fahC-C8rOVj0c.mjs";
2
+ import "./index-B8s0bLZY.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 { c as dependency } from "./graph-BzPLUUsB-D7EnB1F5.mjs";
2
- import { l as string } from "./dist-ynqBR6y8.mjs";
1
+ import { c as dependency } from "./graph-K7VOpCAj-D6UHSltu.mjs";
2
+ import { s as string } from "./dist-BN9EXWWX.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 { C as HydratedDeps, h as Deps, s as Config, st as ServiceNode } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
2
- import "./graph-C7mdtisq-RnKiwVsx.mjs";
1
+ import { C as HydratedDeps, h as Deps, s as Config, st as ServiceNode } from "./graph-types-Bzj1fahC-C8rOVj0c.mjs";
2
+ import "./graph-DU0omY5O-BHO71z0F.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-DyuwxTtd.d.mts.map
22
+ //# sourceMappingURL=index-B8s0bLZY.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DyuwxTtd.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"}
1
+ {"version":3,"file":"index-B8s0bLZY.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 { 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 ResourceProps, A as LoadOptions, At as secretSourceManifest, B as ParamBindings, C as HydratedDeps, Ct as param, D as InputRef, Dt as resolve, E as InputBindingUse, Et as provisionNeed, F as ModuleNode, G as PortEndpoint, H as ParamSourceOptions, I as ModuleOutputs, J as RESOURCE_OUT_PORT, K as ProvisionNeed, L as NODE, M as ModuleContext, Mt as slotsOf, N as ModuleInput, Nt as string, O as InputValueOf, Ot as resource, P as ModuleInputField, Q as ResourceNodeBase, R as NodeId, S as Hydrated, St as number, T as InputBindingOf, Tt as paramSource, U as Params, V as ParamSource, W as PlainData, X as RefPort, Y as RealValuesOf, Z as ResourceNode, _ as EnvironmentFacts, _t as isParamSource, a as BoundaryPort, at as SecretSourceOptions, b as GraphCheckError, bt as isValue, c as ConfigDeclaration, ct as SourceOptions, d as Contract, dt as appRoot, et as ResourcePropsMember, f as ContractStyle, ft as configOf, g as Edge, gt as isNode, h as Deps, ht as inputManifest, i as AuthoredEdge, it as SecretSource, j as ModuleBuilder, jt as service, k as LoadError, kt as secretSource, l as ConfigParam, lt as Value, m as DependencyEnd, mt as freezeNode, n as AppRootContext, nt as RunnableServiceNode, o as BuildAdapter, ot as SecretSourceUse, p as DepBindings, pt as dependency, q as ProvisionedRef, r as AppRootNode, rt as RuntimeValue, s as Config, st as ServiceNode, t as AppConfigurationRead, tt as RootInputField, u as Connection, ut as Values, v as Expose, vt as isProvisionNeed, w as InputBinding, wt as paramManifest, x as GraphNode, xt as module, y as Graph, yt as isSecretSource, z as ParamBinding } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
3
- import { n as assertAppName, t as Load } from "./graph-C7mdtisq-RnKiwVsx.mjs";
4
- import { n as hydrateSync, t as hydrate } from "./index-DyuwxTtd.mjs";
5
- export { type AppConfigurationRead, type AppRootContext, type AppRootNode, 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, GraphCheckError, type GraphNode, type Hydrated, type HydratedDeps, type InputBinding, type InputBindingOf, type InputBindingUse, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleInput, 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 RootInputField, type RunnableServiceNode, type RuntimeValue, SecretBox, type SecretSource, type SecretSourceOptions, type SecretSourceUse, type SecretString, type ServiceNode, type SourceOptions, type Value, type Values, appRoot, 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 };
1
+ import { a as SecretString, i as SecretBox, n as isPlainPointer, o as isSecretString, r as isSecretPointer, t as Pointer } from "./pointer-DclJZFQi-DJa4t8Wa.mjs";
2
+ import { $ as ResourceProps, A as LoadOptions, At as provisionNeed, B as ParamBindings, C as HydratedDeps, Ct as isSecretSource, D as InputRef, Dt as number, E as InputBindingUse, Et as module, F as ModuleNode, Ft as slotsOf, G as PortEndpoint, H as ParamSourceOptions, I as ModuleOutputs, It as string, J as RESOURCE_OUT_PORT, K as ProvisionNeed, L as NODE, Lt as valueResource, M as ModuleContext, Mt as resource, N as ModuleInput, Nt as secretSource, O as InputValueOf, Ot as param, P as ModuleInputField, Pt as service, Q as ResourceNodeBase, R as NodeId, S as Hydrated, St as isProvisionNeed, T as InputBindingOf, Tt as isValueResource, U as Params, V as ParamSource, W as PlainData, X as RefPort, Y as RealValuesOf, Z as ResourceNode, _ as EnvironmentFacts, _t as dependency, a as BoundaryPort, at as SecretSourceOptions, b as GraphCheckError, bt as isNode, c as ConfigDeclaration, ct as SourceOptions, d as Contract, dt as Value, et as ResourcePropsMember, f as ContractStyle, ft as ValueRead, g as Edge, gt as configOf, h as Deps, ht as appRoot, i as AuthoredEdge, it as SecretSource, j as ModuleBuilder, jt as resolve, k as LoadError, kt as paramSource, l as ConfigParam, lt as SourceValue, m as DependencyEnd, mt as Values, n as AppRootContext, nt as RunnableServiceNode, o as BuildAdapter, ot as SecretSourceUse, p as DepBindings, pt as ValueResourceNode, q as ProvisionedRef, r as AppRootNode, rt as RuntimeValue, s as Config, st as ServiceNode, t as AppConfigurationRead, tt as RootInputField, u as Connection, ut as VALUE_RESOURCE, v as Expose, vt as freezeNode, w as InputBinding, wt as isValue, x as GraphNode, xt as isParamSource, y as Graph, yt as inputManifest, z as ParamBinding } from "./graph-types-Bzj1fahC-C8rOVj0c.mjs";
3
+ import { n as assertAppName, t as Load } from "./graph-DU0omY5O-BHO71z0F.mjs";
4
+ import { n as hydrateSync, t as hydrate } from "./index-B8s0bLZY.mjs";
5
+ export { type AppConfigurationRead, type AppRootContext, type AppRootNode, 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, GraphCheckError, type GraphNode, type Hydrated, type HydratedDeps, type InputBinding, type InputBindingOf, type InputBindingUse, type InputRef, type InputValueOf, Load, LoadError, type LoadOptions, type ModuleBuilder, type ModuleContext, type ModuleInput, 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 RootInputField, type RunnableServiceNode, type RuntimeValue, SecretBox, type SecretSource, type SecretSourceOptions, type SecretSourceUse, type SecretString, type ServiceNode, type SourceOptions, type SourceValue, type VALUE_RESOURCE, type Value, type ValueRead, type ValueResourceNode, type Values, appRoot, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isPlainPointer, isProvisionNeed, isSecretPointer, isSecretSource, isSecretString, isValue, isValueResource, module, number, param, paramSource, provisionNeed, resolve, resource, secretSource, service, slotsOf, string, valueResource };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as isPlainPointer, n as SecretBox, o as isSecretPointer, r as isSecretString } from "./describe-kind-Cpm_euxo-CkhlGJUL.mjs";
2
- import { C as service, _ as paramSource, a as ResourceNodeBase, b as resource, c as dependency, d as isParamSource, f as isProvisionNeed, h as module, i as RESOURCE_OUT_PORT, l as freezeNode, m as isValue, n as Load, o as appRoot, p as isSecretSource, r as LoadError, s as assertAppName, t as GraphCheckError, u as isNode, v as provisionNeed, w as slotsOf, x as secretSource, y as resolve } from "./graph-BzPLUUsB-D7EnB1F5.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-ynqBR6y8.mjs";
4
- export { GraphCheckError, Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, appRoot, 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 };
1
+ import { a as isPlainPointer, n as SecretBox, o as isSecretPointer, r as isSecretString } from "./describe-kind-Cpm_euxo-D9WDxl5C.mjs";
2
+ import { E as valueResource, S as secretSource, T as slotsOf, a as ResourceNodeBase, b as resolve, c as dependency, d as isParamSource, f as isProvisionNeed, g as module, h as isValueResource, i as RESOURCE_OUT_PORT, l as freezeNode, m as isValue, n as Load, o as appRoot, p as isSecretSource, r as LoadError, s as assertAppName, t as GraphCheckError, u as isNode, v as paramSource, w as service, x as resource, y as provisionNeed } from "./graph-K7VOpCAj-D6UHSltu.mjs";
3
+ import { a as number, i as inputManifest, n as hydrate, o as param, r as hydrateSync, s as string, t as configOf } from "./dist-BN9EXWWX.mjs";
4
+ export { GraphCheckError, Load, LoadError, RESOURCE_OUT_PORT, ResourceNodeBase, SecretBox, appRoot, assertAppName, configOf, dependency, freezeNode, hydrate, hydrateSync, inputManifest, isNode, isParamSource, isPlainPointer, isProvisionNeed, isSecretPointer, isSecretSource, isSecretString, isValue, isValueResource, module, number, param, paramSource, provisionNeed, resolve, resource, secretSource, service, slotsOf, string, valueResource };
@@ -1,13 +1,14 @@
1
- import { t as AppConfigurationRead } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
2
- import { L as NamedSecrets } from "./app-config-UeKFBma7-CohaMmWp.mjs";
3
- import "./config-BeZEgGCg.mjs";
4
- import "./index-DyuwxTtd.mjs";
5
- import "./redaction-Bf8FvTFH-D_HvoMrf.mjs";
6
- //#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-ptkFLQ7p.d.mts
1
+ import { t as AppConfigurationRead } from "./graph-types-Bzj1fahC-C8rOVj0c.mjs";
2
+ import { R as NamedSecrets } from "./app-config-_XNdvjus-DcCvJysR.mjs";
3
+ import "./config-Czql2X9e.mjs";
4
+ import "./index-B8s0bLZY.mjs";
5
+ import "./redaction-CqdeMBKw-BAOFeUYp.mjs";
6
+ //#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-BP6LLwCv.d.mts
7
7
  //#region src/app-configuration-file.d.ts
8
- /** What the app configuration file holds: what the first process's Load read from the app configuration, and the node addresses of the graph it built. */
8
+ /** What the app configuration file holds: what the first process's Load read, the plain platform variable texts, and the graph's node addresses. */
9
9
  interface AppConfigurationFile {
10
10
  readonly appConfigurationRead: AppConfigurationRead;
11
+ readonly plainVariableText: Readonly<Record<string, string>>;
11
12
  readonly nodeAddresses: readonly string[];
12
13
  }
13
14
  /** Second process: the app configuration file the first process named in its environment. */
@@ -1 +1 @@
1
- {"version":3,"file":"internal-app-configuration-file.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/app-configuration-file-ptkFLQ7p.d.mts"],"mappings":";;;;;;;;UAKU;WACC,sBAAsB;WACtB;;;iBA8BM,yBAAyB,KAAK,SAAS,sCAAsC;;iBAE7E,4BAA4B,KAAK,SAAS,sCAAsC"}
1
+ {"version":3,"file":"internal-app-configuration-file.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/app-configuration-file-BP6LLwCv.d.mts"],"mappings":";;;;;;;;UAKU;WACC,sBAAsB;WACtB,mBAAmB,SAAS;WAC5B;;;iBAyBM,yBAAyB,KAAK,SAAS,sCAAsC;;iBAE7E,4BAA4B,KAAK,SAAS,sCAAsC"}
@@ -1,2 +1,2 @@
1
- import { a as readAppConfigurationFile, r as namedSecretsFromEnvironment } from "./app-configuration-file-CeJvBAti-D3uDlheX.mjs";
1
+ import { a as readAppConfigurationFile, r as namedSecretsFromEnvironment } from "./app-configuration-file-Cw9autUL-DebaEvDz.mjs";
2
2
  export { namedSecretsFromEnvironment, readAppConfigurationFile };
@@ -35,11 +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, configurationKeyText, namedSecrets) {
38
+ function localTargetProviders(resolved, containers, devDir, plainVariableText, namedSecrets) {
39
39
  const [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({
40
40
  container: containers.get(id),
41
41
  devDir,
42
- configurationKeyText,
42
+ plainVariableText,
43
43
  namedSecrets
44
44
  }));
45
45
  return first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);
@@ -51,4 +51,4 @@ function devState() {
51
51
  //#endregion
52
52
  export { localTargetProviders as n, resolveLocalTargets as r, devState as t };
53
53
 
54
- //# sourceMappingURL=local-target-Dd8FJEb5.mjs.map
54
+ //# sourceMappingURL=local-target-COdS1iNs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-target-Dd8FJEb5.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, configurationKeyText, namedSecrets) {\n\tconst [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({\n\t\tcontainer: containers.get(id),\n\t\tdevDir,\n\t\tconfigurationKeyText,\n\t\tnamedSecrets\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,sBAAsB,cAAc;CAC/F,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;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
+ {"version":3,"file":"local-target-COdS1iNs.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, plainVariableText, namedSecrets) {\n\tconst [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({\n\t\tcontainer: containers.get(id),\n\t\tdevDir,\n\t\tplainVariableText,\n\t\tnamedSecrets\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,mBAAmB,cAAc;CAC5F,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;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 { A as LocalTargetProvidersInput, C as LocalNodeStopped, D as LocalTargetCurrentInput, E as LocalTargetCurrentApp, L as NamedSecrets, O as LocalTargetDescriptor, S as LocalNodeLocation, T as LocalTargetAttachment, h as DEV_ENVIRONMENT_NAME_FILE, k as LocalTargetEmulatorsInput, m as DEV_DIR, p as ContainerInstance, pt as devEnvironmentDir, q as PrismaAppConfig, t as AlchemyStateLayer, w as LocalTargetAttachInput, x as LocalNodeCondition } from "./app-config-UeKFBma7-CohaMmWp.mjs";
1
+ import { A as LocalTargetEmulatorsInput, C as LocalNodeLocation, D as LocalTargetCurrentApp, E as LocalTargetAttachment, J as PrismaAppConfig, O as LocalTargetCurrentInput, R as NamedSecrets, S as LocalNodeCondition, T as LocalTargetAttachInput, h as DEV_ENVIRONMENT_NAME_FILE, j as LocalTargetProvidersInput, k as LocalTargetDescriptor, m as DEV_DIR, mt as devEnvironmentDir, p as ContainerInstance, t as AlchemyStateLayer, w as LocalNodeStopped, y as DevPreflightResult } from "./app-config-_XNdvjus-DcCvJysR.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,9 +23,9 @@ 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, configurationKeyText: Readonly<Record<string, string>>, namedSecrets: NamedSecrets): Layer.Layer<never>;
26
+ declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string, plainVariableText: Readonly<Record<string, string>>, namedSecrets: NamedSecrets): 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
30
- export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, type LocalNodeCondition, type LocalNodeLocation, type LocalNodeStopped, type LocalTargetAttachInput, type LocalTargetAttachment, type LocalTargetCurrentApp, type LocalTargetCurrentInput, type LocalTargetDescriptor, type LocalTargetEmulatorsInput, type LocalTargetProvidersInput, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };
30
+ export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, type DevPreflightResult, type LocalNodeCondition, type LocalNodeLocation, type LocalNodeStopped, type LocalTargetAttachInput, type LocalTargetAttachment, type LocalTargetCurrentApp, type LocalTargetCurrentInput, type LocalTargetDescriptor, type LocalTargetEmulatorsInput, type LocalTargetProvidersInput, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };
31
31
  //# sourceMappingURL=local-target.d.mts.map
@@ -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,gBAAgB,sBAAsB,SAAS,yBAAyB,cAAc,eAAe,MAAM;;iBAE1O,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,mBAAmB,SAAS,yBAAyB,cAAc,eAAe,MAAM;;iBAEvO,YAAY"}