@prisma/composer 0.36.0-dev.5 → 0.36.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-config-BvxeTt2h-CcVmwsq6.d.mts → app-config-Bf_y5R7o-BEZAnKqM.d.mts} +31 -31
- package/dist/app-config-Bf_y5R7o-BEZAnKqM.d.mts.map +1 -0
- package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs +221 -0
- package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs.map +1 -0
- package/dist/arktype.mjs +1 -2
- package/dist/arktype.mjs.map +1 -1
- package/dist/config-CDkq5Ayl.d.mts +1 -0
- package/dist/config-adapters-DG-uhGfv-Bt1M9f8b.mjs +47 -0
- package/dist/config-adapters-DG-uhGfv-Bt1M9f8b.mjs.map +1 -0
- package/dist/config.d.mts +7 -9
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -1
- package/dist/control.d.mts +6 -183
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +4 -4
- package/dist/control.mjs.map +1 -1
- package/dist/deploy-CmiYExQA.mjs +373 -0
- package/dist/deploy-CmiYExQA.mjs.map +1 -0
- package/dist/deploy-DQyaIoNe.d.mts +2 -0
- package/dist/deploy.d.mts +4 -3
- package/dist/deploy.mjs +3 -365
- package/dist/{deployment-summary-QkZexVIS-DqL4znd4.mjs → deployment-summary-BiBkPWlB-CyC2pudN.mjs} +9 -46
- package/dist/deployment-summary-BiBkPWlB-CyC2pudN.mjs.map +1 -0
- package/dist/{deployment-summary-Cm4lN6w9-Dc69sCgo.d.mts → deployment-summary-p88NV5m5-BJOosgmI.d.mts} +4 -5
- package/dist/deployment-summary-p88NV5m5-BJOosgmI.d.mts.map +1 -0
- package/dist/{secret-DoWGmN7m-CI5Yrldp.mjs → describe-kind-Cpm_euxo-CkhlGJUL.mjs} +13 -2
- package/dist/describe-kind-Cpm_euxo-CkhlGJUL.mjs.map +1 -0
- package/dist/{dev-current-BurA9uhA-C7E-BpRH.mjs → dev-current-D0Kn6Mf4-DDWYu-3j.mjs} +5 -5
- package/dist/{dev-current-BurA9uhA-C7E-BpRH.mjs.map → dev-current-D0Kn6Mf4-DDWYu-3j.mjs.map} +1 -1
- package/dist/{dev-environment-name-6eEr5PW8-BbNUVxlS.mjs → dev-environment-name-6eEr5PW8-BwusWVKi.mjs} +3 -3
- package/dist/{dev-environment-name-6eEr5PW8-BbNUVxlS.mjs.map → dev-environment-name-6eEr5PW8-BwusWVKi.mjs.map} +1 -1
- package/dist/{dist-DiYPSVUE.mjs → dist-BtzrklYG.mjs} +2 -2
- package/dist/{dist-DiYPSVUE.mjs.map → dist-BtzrklYG.mjs.map} +1 -1
- package/dist/{dist-0Iux8Khv.mjs → dist-C7SnNTD3.mjs} +2 -2
- package/dist/{dist-0Iux8Khv.mjs.map → dist-C7SnNTD3.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-Cww6zOSC-CIPx-m4I.mjs → execute-deploy-destroy-Dh1CQ9X6-DY4c9egd.mjs} +59 -35
- package/dist/execute-deploy-destroy-Dh1CQ9X6-DY4c9egd.mjs.map +1 -0
- package/dist/{execute-dev-4KYkqSMh-BP9S193k.mjs → execute-dev-Bl-5Q-Av-DILne6iY.mjs} +79 -48
- package/dist/execute-dev-Bl-5Q-Av-DILne6iY.mjs.map +1 -0
- package/dist/{execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs → execute-dev-current-D3USgHJ4-CNQe5ADb.mjs} +6 -6
- package/dist/{execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs.map → execute-dev-current-D3USgHJ4-CNQe5ADb.mjs.map} +1 -1
- package/dist/{execute-log-BC5o35wQ-C8QWELlP.mjs → execute-log-Dm3DkQQP-BSjoy6Wd.mjs} +6 -6
- package/dist/{execute-log-BC5o35wQ-C8QWELlP.mjs.map → execute-log-Dm3DkQQP-BSjoy6Wd.mjs.map} +1 -1
- package/dist/{graph-gE31_ToO-BouKBfIS.mjs → graph-Bqr7PSGl-BM-M-TlO.mjs} +183 -44
- package/dist/graph-Bqr7PSGl-BM-M-TlO.mjs.map +1 -0
- package/dist/{graph-CN8VuVZN-Ck2y98XZ.d.mts → graph-DI1v3WKX-3g1lTRbh.d.mts} +8 -4
- package/dist/graph-DI1v3WKX-3g1lTRbh.d.mts.map +1 -0
- package/dist/{graph-types-R38xjBnN-cDTIX_rZ.d.mts → graph-types-DRe9UUOp-C85Yr-sJ.d.mts} +138 -67
- package/dist/graph-types-DRe9UUOp-C85Yr-sJ.d.mts.map +1 -0
- package/dist/http.d.mts +2 -2
- package/dist/http.mjs +2 -2
- package/dist/{index-BHdm4Q39.d.mts → index-DWQ6BSgm.d.mts} +3 -3
- package/dist/{index-BHdm4Q39.d.mts.map → index-DWQ6BSgm.d.mts.map} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/internal-app-configuration-file.d.mts +19 -0
- package/dist/internal-app-configuration-file.d.mts.map +1 -0
- package/dist/internal-app-configuration-file.mjs +2 -0
- package/dist/{local-target-zSdLvLyy.mjs → local-target-Dd8FJEb5.mjs} +4 -3
- package/dist/{local-target-zSdLvLyy.mjs.map → local-target-Dd8FJEb5.mjs.map} +1 -1
- package/dist/local-target.d.mts +2 -2
- package/dist/local-target.d.mts.map +1 -1
- package/dist/local-target.mjs +1 -1
- package/dist/{nextjs-DLyeRR7M-CuGngjU4.d.mts → nextjs-DLyeRR7M-RtoHcY1c.d.mts} +3 -3
- package/dist/{nextjs-DLyeRR7M-CuGngjU4.d.mts.map → nextjs-DLyeRR7M-RtoHcY1c.d.mts.map} +1 -1
- package/dist/nextjs-control.d.mts +4 -4
- package/dist/nextjs-control.mjs +2 -2
- package/dist/nextjs.d.mts +1 -1
- package/dist/node-control.d.mts +3 -3
- package/dist/node-control.mjs +2 -2
- package/dist/node.d.mts +2 -2
- package/dist/redaction-Bf8FvTFH-BTsKD9B5.d.mts +183 -0
- package/dist/redaction-Bf8FvTFH-BTsKD9B5.d.mts.map +1 -0
- package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs +295 -0
- package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs.map +1 -0
- package/dist/report.d.mts +3 -3
- package/dist/report.mjs +1 -1
- package/dist/report.mjs.map +1 -1
- package/dist/{run-alchemy-B-Z6i3cD-C30mHT0u.mjs → run-alchemy-OS_ix5g0-DCvUYZ7T.mjs} +30 -13
- package/dist/run-alchemy-OS_ix5g0-DCvUYZ7T.mjs.map +1 -0
- package/dist/{run-report-CmBz2-xc-S50d4g5V.mjs → run-report-CmBz2-xc-Cc8rV1CX.mjs} +2 -2
- package/dist/{run-report-CmBz2-xc-S50d4g5V.mjs.map → run-report-CmBz2-xc-Cc8rV1CX.mjs.map} +1 -1
- package/dist/service-rpc.d.mts +2 -2
- package/dist/service-rpc.mjs +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/{validate-environment-BNZC6W46-B0ESzFBn.mjs → validate-environment-D_dECxgO-B-gqpVEf.mjs} +76 -13
- package/dist/validate-environment-D_dECxgO-B-gqpVEf.mjs.map +1 -0
- package/dist/zod.mjs +1 -2
- package/dist/zod.mjs.map +1 -1
- package/package.json +13 -13
- package/skills/prisma-composer-core-concepts/SKILL.md +7 -24
- package/src/exports/internal-app-configuration-file.ts +1 -0
- package/dist/app-config-BvxeTt2h-CcVmwsq6.d.mts.map +0 -1
- package/dist/config-Cn9vjklJ.d.mts +0 -1
- package/dist/config-adapters-BA_IeiX0-BiE51GeB.mjs +0 -84
- package/dist/config-adapters-BA_IeiX0-BiE51GeB.mjs.map +0 -1
- package/dist/config-pools-DiYw7wMu-DzeWrJdm.mjs +0 -63
- package/dist/config-pools-DiYw7wMu-DzeWrJdm.mjs.map +0 -1
- package/dist/deploy-Cn9vjklJ.d.mts +0 -1
- package/dist/deploy.mjs.map +0 -1
- package/dist/deployment-summary-Cm4lN6w9-Dc69sCgo.d.mts.map +0 -1
- package/dist/deployment-summary-QkZexVIS-DqL4znd4.mjs.map +0 -1
- package/dist/describe-kind-Cpm_euxo-JFh8ejof.mjs +0 -14
- package/dist/describe-kind-Cpm_euxo-JFh8ejof.mjs.map +0 -1
- package/dist/execute-deploy-destroy-Cww6zOSC-CIPx-m4I.mjs.map +0 -1
- package/dist/execute-dev-4KYkqSMh-BP9S193k.mjs.map +0 -1
- package/dist/graph-CN8VuVZN-Ck2y98XZ.d.mts.map +0 -1
- package/dist/graph-gE31_ToO-BouKBfIS.mjs.map +0 -1
- package/dist/graph-types-R38xjBnN-cDTIX_rZ.d.mts.map +0 -1
- package/dist/internal-pools.d.mts +0 -18
- package/dist/internal-pools.d.mts.map +0 -1
- package/dist/internal-pools.mjs +0 -2
- package/dist/run-alchemy-B-Z6i3cD-C30mHT0u.mjs.map +0 -1
- package/dist/secret-DoWGmN7m-CI5Yrldp.mjs.map +0 -1
- package/dist/validate-environment-BNZC6W46-B0ESzFBn.mjs.map +0 -1
- package/src/exports/internal-pools.ts +0 -1
|
@@ -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-
|
|
81
|
+
//#region ../../0-framework/1-core/core/dist/graph-types-DRe9UUOp.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
|
|
@@ -179,7 +179,7 @@ declare function configOf(root: ServiceNode): readonly ConfigDeclaration[];
|
|
|
179
179
|
* verifies each `envSecret` leaf's platform var exists before deploy; the
|
|
180
180
|
* values are provisioned out-of-band).
|
|
181
181
|
*/
|
|
182
|
-
declare function inputManifest(graph: Graph): readonly
|
|
182
|
+
declare function inputManifest(graph: Graph): readonly InputBindingUse[];
|
|
183
183
|
/**
|
|
184
184
|
* The app's param-binding manifest: every param a `provision()` call bound —
|
|
185
185
|
* literal or an opaque, target-defined `ParamSource` — at the address that
|
|
@@ -224,16 +224,26 @@ type ValueOrigin<T> = {
|
|
|
224
224
|
readonly kind: 'input';
|
|
225
225
|
/** The address of the module whose input this field is. */
|
|
226
226
|
readonly module: string;
|
|
227
|
-
/** The key path inside that module's input; `[]` is the whole input. */
|
|
227
|
+
/** The key path inside that module's input; `[]` is the whole input, which Load refuses wherever it is passed on. */
|
|
228
228
|
readonly path: readonly string[];
|
|
229
229
|
} | {
|
|
230
230
|
readonly kind: 'source';
|
|
231
|
+
readonly sourceKind: 'param';
|
|
232
|
+
/** How an error names the source, e.g. `envParam('REGION')`. */
|
|
233
|
+
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;
|
|
236
|
+
/** The source itself. Not enumerable, so a copy's origin compares equal and the origin holds no cycle. */
|
|
237
|
+
readonly source: ParamSource;
|
|
238
|
+
} | {
|
|
239
|
+
readonly kind: 'source';
|
|
240
|
+
readonly sourceKind: 'secret';
|
|
231
241
|
/** How an error names the source, e.g. `envSecret('STRIPE_KEY')`. */
|
|
232
242
|
readonly label: string;
|
|
233
|
-
/** The
|
|
234
|
-
readonly
|
|
243
|
+
/** The app secrets key that holds the secret's value, as for `envSecret()`. `undefined` for a secret source built without one. */
|
|
244
|
+
readonly secretsKey: string | undefined;
|
|
235
245
|
/** The source itself. Not enumerable, so a copy's origin compares equal and the origin holds no cycle. */
|
|
236
|
-
readonly source:
|
|
246
|
+
readonly source: SecretSource;
|
|
237
247
|
};
|
|
238
248
|
/**
|
|
239
249
|
* An opaque stand-in a module body can pass wherever a `T` is accepted
|
|
@@ -250,7 +260,7 @@ interface Value<T> {
|
|
|
250
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. */
|
|
251
261
|
type RuntimeValue<T> = Value<Pointer<T>>;
|
|
252
262
|
/** The tuple of real-value types a dependency tuple stands for: what `resolve()`'s `fn` receives. */
|
|
253
|
-
type RealValuesOf<D extends readonly
|
|
263
|
+
type RealValuesOf<D extends readonly unknown[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? T : never; };
|
|
254
264
|
/**
|
|
255
265
|
* `true` when `T` is a `Pointer` or holds one, through arrays and plain object types.
|
|
256
266
|
* It looks eight levels deep, so a recursive type such as `PlainData` ends; Load checks deeper.
|
|
@@ -260,8 +270,10 @@ type HoldsPointer<T, Depth extends readonly unknown[] = []> = Depth['length'] ex
|
|
|
260
270
|
type IsDeployTime<T> = 0 extends 1 & T ? true : true extends HoldsPointer<T> ? false : true;
|
|
261
271
|
/** The type error an author sees for a dependency that is not a deploy-time value. */
|
|
262
272
|
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';
|
|
273
|
+
/** A dependency `resolve()` accepts only to refuse it with a message: a module body's whole `input`. */
|
|
274
|
+
type RefusedDependency = ModuleInput<StandardSchemaV1>;
|
|
263
275
|
/** `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]; };
|
|
276
|
+
type DeployTimeDependencies<D extends readonly (Value<unknown> | RefusedDependency)[]> = { readonly [K in keyof D]: D[K] extends Value<infer T> ? IsDeployTime<T> extends true ? D[K] : NotDeployTime : D[K] extends RefusedDependency ? ModuleInputIsNotAValue : D[K]; };
|
|
265
277
|
/** Plain data: what a `resolve()` function may return. */
|
|
266
278
|
type PlainData = string | number | boolean | null | readonly PlainData[] | {
|
|
267
279
|
readonly [key: string]: PlainData;
|
|
@@ -275,7 +287,7 @@ type PlainData = string | number | boolean | null | readonly PlainData[] | {
|
|
|
275
287
|
* disabled (ADR-0062). `fn` must be a pure function of its dependencies: a
|
|
276
288
|
* deploy runs it in two processes.
|
|
277
289
|
*/
|
|
278
|
-
declare function resolve<const D extends readonly Value<unknown>[], T>(dependencies: DeployTimeDependencies<D>, fn: (values: RealValuesOf<D>) => T): Value<T>;
|
|
290
|
+
declare function resolve<const D extends readonly (Value<unknown> | RefusedDependency)[], T>(dependencies: DeployTimeDependencies<D>, fn: (values: RealValuesOf<D>) => T): Value<T>;
|
|
279
291
|
/** True if `value` is a `Value`, a source included (checks the brand only, never a prototype). */
|
|
280
292
|
declare function isValue(value: unknown): value is Value<unknown>;
|
|
281
293
|
/** The deploy-time facts a module body receives, each as a value (ADR-0062). */
|
|
@@ -287,6 +299,7 @@ interface EnvironmentFacts {
|
|
|
287
299
|
type EnvironmentRealValues = { readonly [K in keyof EnvironmentFacts]: EnvironmentFacts[K] extends Value<infer T> ? T : never; };
|
|
288
300
|
//#endregion
|
|
289
301
|
//#region src/module-input.d.ts
|
|
302
|
+
declare const MODULE_INPUT: unique symbol;
|
|
290
303
|
type PlainObject = {
|
|
291
304
|
readonly [key: string]: unknown;
|
|
292
305
|
};
|
|
@@ -298,8 +311,24 @@ type ModuleInputField<T> = Value<T> & FieldsOf<T>;
|
|
|
298
311
|
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
312
|
type Fields<O, Absent> = { readonly [K in keyof O & string]-?: ModuleInputField<FieldType<O, K> | Absent>; };
|
|
300
313
|
type FieldType<O, K extends keyof O> = Record<never, never> extends Pick<O, K> ? O[K] | undefined : O[K];
|
|
301
|
-
/**
|
|
302
|
-
|
|
314
|
+
/**
|
|
315
|
+
* The `input` a module body receives for its input schema `S`: a dictionary
|
|
316
|
+
* with one value per field, typed from the schema's output (ADR-0061). It is
|
|
317
|
+
* not itself a value, and no binding accepts it: pass its fields on by name.
|
|
318
|
+
*/
|
|
319
|
+
type ModuleInput<S extends StandardSchemaV1> = {
|
|
320
|
+
readonly [MODULE_INPUT]: true;
|
|
321
|
+
} & FieldsOf<StandardSchemaV1.InferOutput<S>>;
|
|
322
|
+
/** The type error an author sees for a module body's whole input passed where a value is accepted. */
|
|
323
|
+
type ModuleInputIsNotAValue = 'the whole input of a module is not a value; pass its fields on by name';
|
|
324
|
+
/**
|
|
325
|
+
* Required of every object a binding accepts, so a module body's whole `input`
|
|
326
|
+
* fits none. Unlike `NotDeployTime`, a message string, it is an object
|
|
327
|
+
* constraint: its property's type is the message.
|
|
328
|
+
*/
|
|
329
|
+
type NotModuleInput = {
|
|
330
|
+
readonly [MODULE_INPUT]?: ModuleInputIsNotAValue;
|
|
331
|
+
};
|
|
303
332
|
//#endregion
|
|
304
333
|
//#region src/node.d.ts
|
|
305
334
|
declare const NODE: unique symbol;
|
|
@@ -315,15 +344,20 @@ interface SourceOptions {
|
|
|
315
344
|
/** How errors name the source, e.g. `envSecret('STRIPE_KEY')`. Defaults to `a secret source` or `a param source`. */
|
|
316
345
|
readonly label?: string;
|
|
317
346
|
}
|
|
347
|
+
/** What a deploy target says about a secret source it builds. */
|
|
348
|
+
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. */
|
|
350
|
+
readonly secretsKey?: string;
|
|
351
|
+
}
|
|
318
352
|
/** What a deploy target says about a param source it builds. */
|
|
319
353
|
interface ParamSourceOptions extends SourceOptions {
|
|
320
|
-
/** The
|
|
321
|
-
readonly
|
|
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;
|
|
322
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. */
|
|
323
357
|
readonly redacted?: boolean;
|
|
324
358
|
}
|
|
325
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. */
|
|
326
|
-
declare function secretSource<P, T = unknown>(payload: P, options?:
|
|
360
|
+
declare function secretSource<P, T = unknown>(payload: P, options?: SecretSourceOptions): SecretSource<P> & Value<T>;
|
|
327
361
|
/** True if `value` is a secret source, such as an `envSecret()` result. */
|
|
328
362
|
declare function isSecretSource(value: unknown): value is SecretSource;
|
|
329
363
|
declare const PROVISION_NEED: unique symbol;
|
|
@@ -340,7 +374,7 @@ declare function provisionNeed<T = undefined>(brand: symbol, payload?: T): Provi
|
|
|
340
374
|
/** True if `value` is a provisioning need (a `provisionNeed()` result). */
|
|
341
375
|
declare function isProvisionNeed(value: unknown): value is ProvisionNeed;
|
|
342
376
|
declare const PARAM_SOURCE: unique symbol;
|
|
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
|
|
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()`. */
|
|
344
378
|
interface ParamSource<T = unknown> extends Value<unknown> {
|
|
345
379
|
readonly [PARAM_SOURCE]: true;
|
|
346
380
|
/** Target-defined. Core never reads this; the target that authored the source reads it back. */
|
|
@@ -352,32 +386,18 @@ declare function paramSource<P, T = unknown>(payload: P, options?: ParamSourceOp
|
|
|
352
386
|
declare function isParamSource(value: unknown): value is ParamSource;
|
|
353
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`. */
|
|
354
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); };
|
|
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
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* What `provision(service, { input })` accepts (ADR-0042): a plain object
|
|
361
|
-
* mirroring the service's input schema, whose leaves are literals,
|
|
362
|
-
* `envParam(...)` sources, or `envSecret(...)` sources. Deliberately a
|
|
363
|
-
* best-effort structural type: the framework never introspects a Standard
|
|
364
|
-
* Schema, so the binding's exact shape cannot be derived from it — deploy-time
|
|
365
|
-
* validation of the resolved binding is the real check.
|
|
366
|
-
*/
|
|
367
|
-
type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<InputBindingData> | readonly InputBinding[] | {
|
|
368
|
-
readonly [key: string]: InputBinding;
|
|
369
|
-
};
|
|
370
389
|
/**
|
|
371
|
-
* What `provision(
|
|
372
|
-
* expects `T` (its Standard Schema input type): the
|
|
373
|
-
* it, or, for a `SecretString` field, a secret
|
|
374
|
-
*
|
|
390
|
+
* What `provision(node, { input })` accepts, for a module or a service, where
|
|
391
|
+
* the node's input schema expects `T` (its Standard Schema input type): the
|
|
392
|
+
* data, a value standing for it, or, for a `SecretString` field, a secret
|
|
393
|
+
* source. A `SecretString` or a `Pointer` is never written as a literal. An
|
|
394
|
+
* optional key also takes a value that may stand for `undefined`.
|
|
375
395
|
*/
|
|
376
|
-
type
|
|
396
|
+
type InputBinding<T> = Value<T> | (T extends Pointer<unknown> ? never : T extends SecretString ? SecretSource : T extends readonly (infer E)[] ? readonly InputBinding<E>[] : T extends {
|
|
377
397
|
readonly [key: string]: unknown;
|
|
378
|
-
} ? { readonly [K in keyof T]:
|
|
379
|
-
/**
|
|
380
|
-
type
|
|
398
|
+
} ? { readonly [K in keyof T]: InputBinding<T[K]> | (Record<never, never> extends Pick<T, K> ? Value<T[K] | undefined> : never); } & NotModuleInput : T);
|
|
399
|
+
/** What `provision()` accepts as the `input` of a node whose input schema is `I`. */
|
|
400
|
+
type InputBindingOf<I extends StandardSchemaV1 | undefined> = InputBinding<StandardSchemaV1.InferInput<NonNullable<I>>>;
|
|
381
401
|
/**
|
|
382
402
|
* `T` with every pointer removed, at any depth: what a service reads at boot,
|
|
383
403
|
* when each pointer has been replaced by the text of the variable it names.
|
|
@@ -426,10 +446,10 @@ interface ResourceNode<C extends AnyContract | undefined = AnyContract, D extend
|
|
|
426
446
|
/** A resource's configuration: plain data and values, nested in objects and arrays. */
|
|
427
447
|
type ResourceProps = {
|
|
428
448
|
readonly [key: string]: ResourcePropsMember;
|
|
429
|
-
};
|
|
430
|
-
type ResourcePropsMember = string | number | boolean | null | Value<PlainData> | readonly ResourcePropsMember[] | {
|
|
449
|
+
} & NotModuleInput;
|
|
450
|
+
type ResourcePropsMember = string | number | boolean | null | Value<PlainData> | readonly ResourcePropsMember[] | ({
|
|
431
451
|
readonly [key: string]: ResourcePropsMember;
|
|
432
|
-
};
|
|
452
|
+
} & NotModuleInput);
|
|
433
453
|
/**
|
|
434
454
|
* A Service: inputs + its own declared params + how it is built. Inspectable,
|
|
435
455
|
* inert until run, and carries NO runtime behavior — an extension's factory
|
|
@@ -498,7 +518,7 @@ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, I extends
|
|
|
498
518
|
interface ModuleContext<D extends Deps, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
|
|
499
519
|
/** The module's declared dependencies as wiring values — pass them into provision(). */
|
|
500
520
|
readonly deps: { [K in keyof D]: InputRef<D[K]>; };
|
|
501
|
-
/** The module's input: one value per field, typed from its input schema's output (ADR-0061); `undefined` when it declares none.
|
|
521
|
+
/** The module's input: a dictionary with one value per field, typed from its input schema's output (ADR-0061); `undefined` when it declares none. It is not itself a value: pass its fields on by name, into a provision() binding or, for a plain field, as a resolve() dependency. A root's input is the app configuration, validated by its schema. */
|
|
502
522
|
readonly input: I extends StandardSchemaV1 ? ModuleInput<I> : undefined;
|
|
503
523
|
/** 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. */
|
|
504
524
|
readonly environment: EnvironmentFacts;
|
|
@@ -551,7 +571,7 @@ type ServiceProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined
|
|
|
551
571
|
params?: PB;
|
|
552
572
|
}] : [opts: {
|
|
553
573
|
id?: string;
|
|
554
|
-
input:
|
|
574
|
+
input: InputBindingOf<I>;
|
|
555
575
|
params?: PB;
|
|
556
576
|
}] : I extends undefined ? [opts: {
|
|
557
577
|
id?: string;
|
|
@@ -560,7 +580,7 @@ type ServiceProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined
|
|
|
560
580
|
}] : [opts: {
|
|
561
581
|
id?: string;
|
|
562
582
|
deps: DepBindings<D>;
|
|
563
|
-
input:
|
|
583
|
+
input: InputBindingOf<I>;
|
|
564
584
|
params?: PB;
|
|
565
585
|
}];
|
|
566
586
|
/**
|
|
@@ -571,11 +591,15 @@ type ModuleProvisionOptions<D extends Deps, I extends StandardSchemaV1 | undefin
|
|
|
571
591
|
id?: string;
|
|
572
592
|
} & ([keyof D] extends [never] ? unknown : {
|
|
573
593
|
deps: DepBindings<D>;
|
|
574
|
-
}) & (
|
|
575
|
-
input:
|
|
594
|
+
}) & (I extends StandardSchemaV1 ? {
|
|
595
|
+
input: InputBindingOf<I>;
|
|
576
596
|
} : unknown);
|
|
577
597
|
/** The options are optional exactly when nothing is required. */
|
|
578
|
-
type ModuleProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined> =
|
|
598
|
+
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>];
|
|
599
|
+
/** The options `provision()` takes after a service or module node `N`. */
|
|
600
|
+
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;
|
|
601
|
+
/** The contracts a service or module node `N` exposes. */
|
|
602
|
+
type ExposeOf<N> = N extends ServiceNode<Deps, Params, infer E, StandardSchemaV1 | undefined> ? E : N extends ModuleNode<Deps, infer E, StandardSchemaV1 | undefined> ? E : never;
|
|
579
603
|
interface ModuleBuilder {
|
|
580
604
|
/** Provisions an owned resource; its id defaults to the node's `name`. */
|
|
581
605
|
provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
|
|
@@ -585,26 +609,44 @@ interface ModuleBuilder {
|
|
|
585
609
|
} & (C extends AnyContract ? RefPort<C> : Record<never, never>);
|
|
586
610
|
/** 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. */
|
|
587
611
|
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>;
|
|
612
|
+
/** Registers an owned child module; its id defaults to the node's `name`; `deps` and `input` are required iff it declares them. */
|
|
613
|
+
provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, ...args: ModuleProvisionArgs<D, I>): ProvisionedRef<E>;
|
|
588
614
|
/**
|
|
589
|
-
* The service call with `deps
|
|
590
|
-
*
|
|
615
|
+
* The service call with `deps` written out. `ServiceProvisionArgs` above
|
|
616
|
+
* cannot resolve while `D` or `I` is still an unbound type parameter — a
|
|
591
617
|
* generic wrapper like `cron()` provisioning a caller-supplied service — so
|
|
592
|
-
* that call site resolves to this
|
|
618
|
+
* that call site resolves to this overload, or to the next one for a
|
|
619
|
+
* service without an input schema.
|
|
593
620
|
*/
|
|
594
621
|
provision<D extends Deps, P extends Params, E extends Expose, I extends StandardSchemaV1 | undefined>(service: ServiceNode<D, P, E, I>, opts: {
|
|
595
622
|
id?: string;
|
|
596
623
|
deps: DepBindings<D>;
|
|
597
|
-
input
|
|
624
|
+
input: InputBindingOf<I>;
|
|
598
625
|
params?: ParamBindings<P>;
|
|
599
626
|
}): ProvisionedRef<E>;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
627
|
+
provision<D extends Deps, P extends Params, E extends Expose>(service: ServiceNode<D, P, E, undefined>, opts: {
|
|
628
|
+
id?: string;
|
|
629
|
+
deps: DepBindings<D>;
|
|
630
|
+
input?: never;
|
|
631
|
+
params?: ParamBindings<P>;
|
|
632
|
+
}): ProvisionedRef<E>;
|
|
633
|
+
/** The child-module call with `deps` written out — the same generic-wrapper escape as the two service overloads above. */
|
|
603
634
|
provision<D extends Deps, E extends Expose, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, I>, opts: {
|
|
604
635
|
id?: string;
|
|
605
636
|
deps: DepBindings<D>;
|
|
606
|
-
input
|
|
637
|
+
input: InputBindingOf<I>;
|
|
607
638
|
}): ProvisionedRef<E>;
|
|
639
|
+
provision<D extends Deps, E extends Expose>(child: ModuleNode<D, E, undefined>, opts: {
|
|
640
|
+
id?: string;
|
|
641
|
+
deps: DepBindings<D>;
|
|
642
|
+
input?: never;
|
|
643
|
+
}): ProvisionedRef<E>;
|
|
644
|
+
/**
|
|
645
|
+
* Any service or child module. Declared last, so a call no overload accepts
|
|
646
|
+
* reports this overload's error, which names the binding key that does not
|
|
647
|
+
* fit, or says a module's whole input is not a value.
|
|
648
|
+
*/
|
|
649
|
+
provision<N extends ServiceNode | ModuleNode>(node: N, ...args: ProvisionArgs<N>): ProvisionedRef<ExposeOf<N>>;
|
|
608
650
|
}
|
|
609
651
|
/** Dependency map: name → the slot the service declares. Only declarations are admitted, never a concrete ResourceNode. */
|
|
610
652
|
type Deps = Record<string, DependencyEnd<any, any>>;
|
|
@@ -713,14 +755,43 @@ declare function slotsOf(node: ServiceNode | ResourceNode): ServiceNode['inputs'
|
|
|
713
755
|
//#region src/graph-types.d.ts
|
|
714
756
|
/** Path-derived: root-scope children are bare ids ("auth", "db"); a nested module's own children dot-join under its address ("auth.db"). */
|
|
715
757
|
type NodeId = string;
|
|
716
|
-
|
|
758
|
+
/** One field of the root's input that its body names, with the real value the root's schema produced there. */
|
|
759
|
+
interface RootInputField {
|
|
760
|
+
/** The key path inside the root's input, such as `['smtp', 'host']`. */
|
|
761
|
+
readonly path: readonly string[];
|
|
762
|
+
/** The real value; absent when it is `undefined`. */
|
|
763
|
+
readonly value?: unknown;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* What a Load read from the app configuration (ADR-0062). The deploy's and `prisma dev`'s
|
|
767
|
+
* first process writes it to the app configuration file, and their second process Loads with
|
|
768
|
+
* it in place of the app configuration.
|
|
769
|
+
*/
|
|
770
|
+
interface AppConfigurationRead {
|
|
771
|
+
/** 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. */
|
|
772
|
+
readonly rootInput: readonly RootInputField[];
|
|
773
|
+
/** 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. */
|
|
774
|
+
readonly configurationKeyText: Readonly<Record<string, string>>;
|
|
775
|
+
}
|
|
776
|
+
interface CommonLoadOptions {
|
|
717
777
|
/** The root's address: the app name. Defaults to the root's `name`. */
|
|
718
778
|
readonly id?: NodeId;
|
|
719
779
|
/** The facts of the environment being loaded. `name` is what `--environment` gave. Required by any value over `environment.name`. */
|
|
720
780
|
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>>;
|
|
723
781
|
}
|
|
782
|
+
/** Load's options in the first process, or wherever the app configuration is at hand. */
|
|
783
|
+
interface FirstProcessLoadOptions extends CommonLoadOptions {
|
|
784
|
+
/** 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. */
|
|
785
|
+
readonly configuration?: Readonly<Record<string, unknown>>;
|
|
786
|
+
readonly appConfigurationRead?: never;
|
|
787
|
+
}
|
|
788
|
+
/** Load's options in the deploy's and dev's second process. */
|
|
789
|
+
interface SecondProcessLoadOptions extends CommonLoadOptions {
|
|
790
|
+
readonly configuration?: never;
|
|
791
|
+
/** What the first process's Load read, from the app configuration file. Load takes each root field from it without running the root's schema. */
|
|
792
|
+
readonly appConfigurationRead: AppConfigurationRead;
|
|
793
|
+
}
|
|
794
|
+
type LoadOptions = FirstProcessLoadOptions | SecondProcessLoadOptions;
|
|
724
795
|
interface GraphNode {
|
|
725
796
|
readonly id: NodeId;
|
|
726
797
|
/**
|
|
@@ -778,16 +849,14 @@ interface Edge {
|
|
|
778
849
|
readonly kind: 'input' | 'dependency';
|
|
779
850
|
}
|
|
780
851
|
/**
|
|
781
|
-
*
|
|
782
|
-
*
|
|
783
|
-
* address. Core never walks it beyond usage tracking; the deploy target's
|
|
784
|
-
* recursive descent classifies its leaves (literals, `envParam`, `envSecret`).
|
|
852
|
+
* The binding a `provision()` call supplied as a service's input (ADR-0042),
|
|
853
|
+
* recorded at the service's address. The deploy target resolves its leaves.
|
|
785
854
|
*/
|
|
786
|
-
interface
|
|
855
|
+
interface InputBindingUse {
|
|
787
856
|
/** The graph address of the service that declares the input schema. */
|
|
788
857
|
readonly serviceAddress: NodeId;
|
|
789
858
|
/** The binding object supplied at provision. */
|
|
790
|
-
readonly binding:
|
|
859
|
+
readonly binding: unknown;
|
|
791
860
|
}
|
|
792
861
|
/**
|
|
793
862
|
* A resolved param binding: a `provision()` call bound a service's param
|
|
@@ -824,11 +893,13 @@ interface Graph {
|
|
|
824
893
|
/** The authored (pre-dereference) edges between boundary ports, in declaration order. */
|
|
825
894
|
readonly authoredEdges: readonly AuthoredEdge[];
|
|
826
895
|
/** Every service input binding a `provision()` call supplied (ADR-0042). */
|
|
827
|
-
readonly inputBindings: readonly
|
|
896
|
+
readonly inputBindings: readonly InputBindingUse[];
|
|
828
897
|
/** Every service param bound at provision — literal or source; unbound params are absent here and fall back to their `default` (see `buildConfig`). */
|
|
829
898
|
readonly params: readonly ParamBinding[];
|
|
830
899
|
/** Every secret source a binding names, once each, in the order Load met them (ADR-0029). */
|
|
831
900
|
readonly secretSources: readonly SecretSourceUse[];
|
|
901
|
+
/** What this Load read from the app configuration (ADR-0062). Empty when Load was given none. */
|
|
902
|
+
readonly appConfigurationRead: AppConfigurationRead;
|
|
832
903
|
}
|
|
833
904
|
/**
|
|
834
905
|
* Thrown by Load when the graph is malformed. Structured at origin
|
|
@@ -842,5 +913,5 @@ declare class LoadError extends CliStructuredError {
|
|
|
842
913
|
});
|
|
843
914
|
}
|
|
844
915
|
//#endregion
|
|
845
|
-
export {
|
|
846
|
-
//# sourceMappingURL=graph-types-
|
|
916
|
+
export { RunnableServiceNode as $, ModuleInput as A, CliStructuredError as At, Params as B, InputBindingUse as C, resolve as Ct, LoadOptions as D, service as Dt, LoadError as E, secretSourceManifest as Et, NodeId as F, RESOURCE_OUT_PORT as G, PortEndpoint as H, ParamBinding as I, ResourceNode as J, RealValuesOf as K, ParamBindings as L, ModuleNode as M, ModuleOutputs as N, ModuleBuilder as O, slotsOf as Ot, NODE as P, RootInputField as Q, ParamSource as R, InputBindingOf as S, provisionNeed as St, InputValueOf as T, secretSource as Tt, ProvisionNeed as U, PlainData as V, ProvisionedRef as W, ResourceProps as X, ResourceNodeBase as Y, ResourcePropsMember as Z, Graph as _, module as _t, Config as a, SourceOptions as at, HydratedDeps as b, paramManifest as bt, Connection as c, configOf as ct, DepBindings as d, inputManifest as dt, RuntimeValue as et, DependencyEnd as f, isNode as ft, Expose as g, isValue as gt, EnvironmentFacts as h, isSecretSource as ht, BuildAdapter as i, ServiceNode as it, ModuleInputField as j, ModuleContext as k, string as kt, Contract as l, dependency as lt, Edge as m, isProvisionNeed as mt, AuthoredEdge as n, SecretSourceOptions as nt, ConfigDeclaration as o, Value as ot, Deps as p, isParamSource as pt, RefPort as q, BoundaryPort as r, SecretSourceUse as rt, ConfigParam as s, Values as st, AppConfigurationRead as t, SecretSource as tt, ContractStyle as u, freezeNode as ut, GraphNode as v, number as vt, InputRef as w, resource as wt, InputBinding as x, paramSource as xt, Hydrated as y, param as yt, ParamSourceOptions as z };
|
|
917
|
+
//# sourceMappingURL=graph-types-DRe9UUOp-C85Yr-sJ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-types-DRe9UUOp-C85Yr-sJ.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../0-framework/1-core/core/dist/graph-types-DRe9UUOp.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;;KAEx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AAW,GAAG,GAAG;;;;;;iBAMjE,OAAO,iBAAiB,SAAS,cAAc,eAAe,gBAAgB;;iBAE9E,QAAQ,MAAM,cAAc,eAAe;;;;KAIvD;;UAEK;;WAEC;;WAEA;;;;;;;UAOD;;WAEC,oBAAoB;;WAEpB,sBAAsB,SAAS;;UAEhC;;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;;;cAGhD;;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;;;;;;;;;;UAUD;;WAEC,gBAAgB;;WAEhB;;WAEA;;;UAGD;;WAEC,QAAQ;;WAER,SAAS;;WAET;;UAED;WACC,MAAM;;WAEN,gBAAgB;WAChB,gBAAgB;;WAEhB,gBAAgB;;WAEhB,wBAAwB;;WAExB,wBAAwB;;WAExB,iBAAiB;;WAEjB,wBAAwB;;WAExB,sBAAsB;;;;;;;;cAQnB,kBAAkB;EAC9B,YAAY,iBAAiB;aAClB"}
|
package/dist/http.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { f as DependencyEnd, l as Contract } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import "./index-DWQ6BSgm.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-
|
|
2
|
-
import { l as string } from "./dist-
|
|
1
|
+
import { o as dependency } from "./graph-Bqr7PSGl-BM-M-TlO.mjs";
|
|
2
|
+
import { l as string } from "./dist-C7SnNTD3.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 {
|
|
2
|
-
import "./graph-
|
|
1
|
+
import { a as Config, b as HydratedDeps, it as ServiceNode, p as Deps } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import "./graph-DI1v3WKX-3g1lTRbh.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-
|
|
22
|
+
//# sourceMappingURL=index-DWQ6BSgm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DWQ6BSgm.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
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
|
|
3
|
-
import { n as assertAppName, t as Load } from "./graph-
|
|
4
|
-
import { n as hydrateSync, t as hydrate } from "./index-
|
|
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
|
|
2
|
+
import { $ as RunnableServiceNode, A as ModuleInput, B as Params, C as InputBindingUse, Ct as resolve, D as LoadOptions, Dt as service, E as LoadError, Et as secretSourceManifest, F as NodeId, G as RESOURCE_OUT_PORT, H as PortEndpoint, I as ParamBinding, J as ResourceNode, K as RealValuesOf, L as ParamBindings, M as ModuleNode, N as ModuleOutputs, O as ModuleBuilder, Ot as slotsOf, P as NODE, Q as RootInputField, R as ParamSource, S as InputBindingOf, St as provisionNeed, T as InputValueOf, Tt as secretSource, U as ProvisionNeed, V as PlainData, W as ProvisionedRef, X as ResourceProps, Y as ResourceNodeBase, Z as ResourcePropsMember, _ as Graph, _t as module, a as Config, at as SourceOptions, b as HydratedDeps, bt as paramManifest, c as Connection, ct as configOf, d as DepBindings, dt as inputManifest, et as RuntimeValue, f as DependencyEnd, ft as isNode, g as Expose, gt as isValue, h as EnvironmentFacts, ht as isSecretSource, i as BuildAdapter, it as ServiceNode, j as ModuleInputField, k as ModuleContext, kt as string, l as Contract, lt as dependency, m as Edge, mt as isProvisionNeed, n as AuthoredEdge, nt as SecretSourceOptions, o as ConfigDeclaration, ot as Value, p as Deps, pt as isParamSource, q as RefPort, r as BoundaryPort, rt as SecretSourceUse, s as ConfigParam, st as Values, t as AppConfigurationRead, tt as SecretSource, u as ContractStyle, ut as freezeNode, v as GraphNode, vt as number, w as InputRef, wt as resource, x as InputBinding, xt as paramSource, y as Hydrated, yt as param, z as ParamSourceOptions } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
3
|
+
import { n as assertAppName, t as Load } from "./graph-DI1v3WKX-3g1lTRbh.mjs";
|
|
4
|
+
import { n as hydrateSync, t as hydrate } from "./index-DWQ6BSgm.mjs";
|
|
5
|
+
export { type AppConfigurationRead, 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 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, 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 { a as
|
|
2
|
-
import {
|
|
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-
|
|
1
|
+
import { a as isPlainPointer, n as SecretBox, o as isSecretPointer, r as isSecretString } from "./describe-kind-Cpm_euxo-CkhlGJUL.mjs";
|
|
2
|
+
import { S as slotsOf, _ as resolve, a as assertAppName, c as isNode, d as isSecretSource, f as isValue, g as provisionNeed, h as paramSource, i as ResourceNodeBase, l as isParamSource, 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 secretSource } from "./graph-Bqr7PSGl-BM-M-TlO.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-C7SnNTD3.mjs";
|
|
4
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,19 @@
|
|
|
1
|
+
import { t as AppConfigurationRead } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
|
|
2
|
+
import { L as NamedSecrets } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
|
|
3
|
+
import "./config-CDkq5Ayl.mjs";
|
|
4
|
+
import "./index-DWQ6BSgm.mjs";
|
|
5
|
+
import "./redaction-Bf8FvTFH-BTsKD9B5.mjs";
|
|
6
|
+
//#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-ptkFLQ7p.d.mts
|
|
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. */
|
|
9
|
+
interface AppConfigurationFile {
|
|
10
|
+
readonly appConfigurationRead: AppConfigurationRead;
|
|
11
|
+
readonly nodeAddresses: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
/** Second process: the app configuration file the first process named in its environment. */
|
|
14
|
+
declare function readAppConfigurationFile(env: Readonly<Record<string, string | undefined>>): AppConfigurationFile;
|
|
15
|
+
/** Second process, under `prisma dev`: the named secrets the first process handed it. */
|
|
16
|
+
declare function namedSecretsFromEnvironment(env: Readonly<Record<string, string | undefined>>): NamedSecrets;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { namedSecretsFromEnvironment, readAppConfigurationFile };
|
|
19
|
+
//# sourceMappingURL=internal-app-configuration-file.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -35,11 +35,12 @@ 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, configurationKeyText, namedSecrets) {
|
|
39
39
|
const [first, ...rest] = [...resolved.entries()].map(([id, descriptor]) => descriptor.providers({
|
|
40
40
|
container: containers.get(id),
|
|
41
41
|
devDir,
|
|
42
|
-
|
|
42
|
+
configurationKeyText,
|
|
43
|
+
namedSecrets
|
|
43
44
|
}));
|
|
44
45
|
return first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);
|
|
45
46
|
}
|
|
@@ -50,4 +51,4 @@ function devState() {
|
|
|
50
51
|
//#endregion
|
|
51
52
|
export { localTargetProviders as n, resolveLocalTargets as r, devState as t };
|
|
52
53
|
|
|
53
|
-
//# sourceMappingURL=local-target-
|
|
54
|
+
//# sourceMappingURL=local-target-Dd8FJEb5.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-target-
|
|
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"}
|
package/dist/local-target.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as LocalTargetProvidersInput, C as LocalNodeStopped, D as LocalTargetCurrentInput, E as LocalTargetCurrentApp,
|
|
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, U as PrismaAppConfig, h as DEV_ENVIRONMENT_NAME_FILE, k as LocalTargetEmulatorsInput, m as DEV_DIR, p as ContainerInstance, st as devEnvironmentDir, t as AlchemyStateLayer, w as LocalTargetAttachInput, x as LocalNodeCondition } from "./app-config-Bf_y5R7o-BEZAnKqM.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,
|
|
26
|
+
declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string, configurationKeyText: 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
|
|
@@ -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,
|
|
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"}
|
package/dist/local-target.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, t as DEV_DIR } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
|
|
2
|
-
import { n as localTargetProviders, r as resolveLocalTargets, t as devState } from "./local-target-
|
|
2
|
+
import { n as localTargetProviders, r as resolveLocalTargets, t as devState } from "./local-target-Dd8FJEb5.mjs";
|
|
3
3
|
export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets };
|