@prisma/composer-cli 0.35.0 → 0.36.0
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-CErnR6NK-6QjHJ7q5.mjs +32 -0
- package/dist/app-config-CErnR6NK-6QjHJ7q5.mjs.map +1 -0
- package/dist/{container-transport-HcvNOGZL-CIoZc7Rs.mjs → config-DiZaanS3.mjs} +32 -2
- package/dist/config-DiZaanS3.mjs.map +1 -0
- package/dist/{dev-current-BB02pfSh-vMKS1rYi.mjs → dev-current-Brb4qugP-BOI9FJdz.mjs} +44 -8
- package/dist/dev-current-Brb4qugP-BOI9FJdz.mjs.map +1 -0
- package/dist/dev-environment-name-6eEr5PW8-lIZmJjfr.mjs +71 -0
- package/dist/dev-environment-name-6eEr5PW8-lIZmJjfr.mjs.map +1 -0
- package/dist/dist-B9-nLeho.mjs.map +1 -1
- package/dist/{execute-deploy-destroy-DwcoZIks-CiW-dlB1.mjs → execute-deploy-destroy-CNt-xpE7-CMQCNQpY.mjs} +32 -56
- package/dist/execute-deploy-destroy-CNt-xpE7-CMQCNQpY.mjs.map +1 -0
- package/dist/{execute-dev-BHRWoEnd-DrGMSTD3.mjs → execute-dev-BUk-XWBJ-DaB9ma8z.mjs} +45 -23
- package/dist/execute-dev-BUk-XWBJ-DaB9ma8z.mjs.map +1 -0
- package/dist/{execute-dev-current-D4RkOtPA-BFoZ0cXm.mjs → execute-dev-current-BdEqeKAB-xCBBITAB.mjs} +70 -34
- package/dist/execute-dev-current-BdEqeKAB-xCBBITAB.mjs.map +1 -0
- package/dist/{family-xJ6y4fXc-CFBu6q4b.d.mts → family-B2JZ8O7U-P_rOUr4w.d.mts} +123 -52
- package/dist/family-B2JZ8O7U-P_rOUr4w.d.mts.map +1 -0
- package/dist/family.d.mts +3 -3
- package/dist/family.d.mts.map +1 -1
- package/dist/family.mjs +103 -47
- package/dist/family.mjs.map +1 -1
- package/dist/{generate-dev-stack-CfneNj97-Yx3Z2-9u.mjs → generate-dev-stack-BkkU2HLE-Dek3CkAQ.mjs} +18 -13
- package/dist/generate-dev-stack-BkkU2HLE-Dek3CkAQ.mjs.map +1 -0
- package/dist/{list-deployed-df3vxBbn.mjs → list-deployed-B-N3imFH.mjs} +70 -44
- package/dist/list-deployed-B-N3imFH.mjs.map +1 -0
- package/dist/testing.d.mts +3 -1
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +2 -1
- package/dist/testing.mjs.map +1 -1
- package/dist/{pipeline-BmWt-Nhb-Bos4TFXR.mjs → validate-environment-CEhUSEg2-ExABehBM.mjs} +330 -55
- package/dist/validate-environment-CEhUSEg2-ExABehBM.mjs.map +1 -0
- package/package.json +7 -7
- package/src/family/deploy-list.ts +17 -10
- package/src/family/deployed-nodes.ts +10 -10
- package/src/family/emulator-list.ts +7 -4
- package/src/family/list-deployed.ts +12 -12
- package/dist/container-transport-HcvNOGZL-CIoZc7Rs.mjs.map +0 -1
- package/dist/dev-current-BB02pfSh-vMKS1rYi.mjs.map +0 -1
- package/dist/execute-deploy-destroy-DwcoZIks-CiW-dlB1.mjs.map +0 -1
- package/dist/execute-dev-BHRWoEnd-DrGMSTD3.mjs.map +0 -1
- package/dist/execute-dev-current-D4RkOtPA-BFoZ0cXm.mjs.map +0 -1
- package/dist/family-xJ6y4fXc-CFBu6q4b.d.mts.map +0 -1
- package/dist/generate-dev-stack-CfneNj97-Yx3Z2-9u.mjs.map +0 -1
- package/dist/list-deployed-df3vxBbn.mjs.map +0 -1
- package/dist/local-target-CK8gvYV4.mjs +0 -48
- package/dist/local-target-CK8gvYV4.mjs.map +0 -1
- package/dist/pipeline-BmWt-Nhb-Bos4TFXR.mjs.map +0 -1
- package/dist/validate-stage-DxRW3MwT-DOWCXHa_.mjs +0 -13
- package/dist/validate-stage-DxRW3MwT-DOWCXHa_.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandFamily } from "@prisma/cli-engine";
|
|
1
|
+
import { CommandFamily, RedirectSpec } from "@prisma/cli-engine";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
4
|
import { Input, StackServices } from "alchemy";
|
|
@@ -158,7 +158,7 @@ declare namespace StandardSchemaV1 {
|
|
|
158
158
|
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
|
-
//#region ../../0-framework/1-core/core/dist/graph-types-
|
|
161
|
+
//#region ../../0-framework/1-core/core/dist/graph-types-DfsG9Rkg.d.mts
|
|
162
162
|
//#region src/contract.d.ts
|
|
163
163
|
/**
|
|
164
164
|
* A Contract is the declared interface of a service-to-service dependency: a
|
|
@@ -226,6 +226,40 @@ interface Config {
|
|
|
226
226
|
readonly inputs: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
+
//#region src/value.d.ts
|
|
230
|
+
declare const VALUE: unique symbol;
|
|
231
|
+
declare const VALUE_ORIGIN: unique symbol;
|
|
232
|
+
declare const VALUE_TYPE: unique symbol;
|
|
233
|
+
/** Where Load gets a value's real value. Internal to core; not re-exported from the public barrel. */
|
|
234
|
+
type ValueOrigin<T> = {
|
|
235
|
+
readonly kind: 'environment';
|
|
236
|
+
/** Which deploy-time fact of the environment this is. Only the name exists today. */
|
|
237
|
+
readonly fact: keyof EnvironmentFacts;
|
|
238
|
+
} | {
|
|
239
|
+
readonly kind: 'computed';
|
|
240
|
+
readonly dependencies: readonly Value<unknown>[];
|
|
241
|
+
readonly compute: (values: readonly unknown[]) => T;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* An opaque stand-in a module body can pass wherever a `T` is accepted; its
|
|
245
|
+
* real value is known by the end of Load (ADR-0062). `environment.name` is one;
|
|
246
|
+
* `resolve()` returns one computed from others.
|
|
247
|
+
*/
|
|
248
|
+
interface Value<T> {
|
|
249
|
+
readonly [VALUE]: true;
|
|
250
|
+
readonly [VALUE_TYPE]?: T;
|
|
251
|
+
readonly [VALUE_ORIGIN]: ValueOrigin<T>;
|
|
252
|
+
}
|
|
253
|
+
/** Plain data: what a `resolve()` function may return, and the only thing a value may stand for in a binding. */
|
|
254
|
+
type PlainData = string | number | boolean | null | readonly PlainData[] | {
|
|
255
|
+
readonly [key: string]: PlainData;
|
|
256
|
+
};
|
|
257
|
+
/** The deploy-time facts a module body receives, each as a value (ADR-0062). */
|
|
258
|
+
interface EnvironmentFacts {
|
|
259
|
+
/** The environment's name, as `--environment` gave it. */
|
|
260
|
+
readonly name: Value<string>;
|
|
261
|
+
}
|
|
262
|
+
//#endregion
|
|
229
263
|
//#region src/node.d.ts
|
|
230
264
|
declare const NODE: unique symbol;
|
|
231
265
|
declare const SECRET_NEED: unique symbol;
|
|
@@ -270,7 +304,7 @@ interface ParamNeed {
|
|
|
270
304
|
/** A module's param-forwarding slots: name → the need it declares. */
|
|
271
305
|
type ParamNeeds = Record<string, ParamNeed>;
|
|
272
306
|
/** 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`. */
|
|
273
|
-
type ParamBindings<P extends Params> = { readonly [K in keyof P]?: StandardSchemaV1.InferOutput<P[K]['schema']> | ParamSource; };
|
|
307
|
+
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); };
|
|
274
308
|
/** What `provision(moduleChild, { params })` accepts per declared `ParamNeed`: a `ParamSource` only — a need carries no schema to validate a literal against. */
|
|
275
309
|
type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: ParamSource; };
|
|
276
310
|
/**
|
|
@@ -281,7 +315,7 @@ type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: Par
|
|
|
281
315
|
* Schema, so the binding's exact shape cannot be derived from it — deploy-time
|
|
282
316
|
* validation of the resolved binding is the real check.
|
|
283
317
|
*/
|
|
284
|
-
type InputBinding = string | number | boolean | null | ParamSource | SecretSource | readonly InputBinding[] | {
|
|
318
|
+
type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<PlainData> | readonly InputBinding[] | {
|
|
285
319
|
readonly [key: string]: InputBinding;
|
|
286
320
|
};
|
|
287
321
|
/** Opaque `Contract<any, any>` bound shared by every node/port type that doesn't care which contract. */
|
|
@@ -300,19 +334,33 @@ interface BuildAdapter {
|
|
|
300
334
|
/**
|
|
301
335
|
* A Resource's identity: the one place a piece of infrastructure exists.
|
|
302
336
|
* Provisioned by a module, never embedded in a service's deps. `provides`
|
|
303
|
-
* is the Contract the resource offers
|
|
337
|
+
* is the Contract the resource offers, and `type` is its `kind`; a resource
|
|
338
|
+
* that offers nothing has no `provides` and names its `type` directly.
|
|
304
339
|
*/
|
|
305
|
-
interface ResourceNode<C extends AnyContract = AnyContract> {
|
|
340
|
+
interface ResourceNode<C extends AnyContract | undefined = AnyContract, D extends Deps = Deps, P extends ResourceProps = ResourceProps> {
|
|
306
341
|
readonly [NODE]: true;
|
|
307
342
|
readonly kind: 'resource';
|
|
308
343
|
/** Human-readable, given at authoring — logs/diagnostics only; identity remains the deploy address (ADR-0006). */
|
|
309
344
|
readonly name: string;
|
|
310
345
|
/** The extension package that authored this node, e.g. "@prisma/composer-prisma-cloud" — the registry key at deploy. */
|
|
311
346
|
readonly extension: string;
|
|
312
|
-
readonly type:
|
|
313
|
-
/** The Contract this resource provides — the resource's single port. */
|
|
347
|
+
readonly type: string;
|
|
348
|
+
/** The Contract this resource provides — the resource's single port. Undefined for a resource that exposes nothing, such as a public URL. */
|
|
314
349
|
readonly provides: C;
|
|
315
|
-
|
|
350
|
+
/** Dependency slots, as a service's `inputs`. Empty for a resource that depends on nothing. */
|
|
351
|
+
readonly inputs: D;
|
|
352
|
+
/** The producer wired into each slot, as a `provision()` call's `deps` supplies for a service. A resource is wired when it is constructed. `deps` names two things: `ModuleNode.deps`, `module()`'s boundary `deps` and `compute()`'s `deps` declare slots, while `provision()`'s and `resource()`'s `deps` bind producers to slots. */
|
|
353
|
+
readonly deps: DepBindings<D>;
|
|
354
|
+
/** Plain data the factory records, the resource's configuration. Load resolves any value inside it; nowhere else on a resource is a value resolved. Empty for a resource with none. */
|
|
355
|
+
readonly props: P;
|
|
356
|
+
}
|
|
357
|
+
/** A resource's configuration: plain data and values, nested in objects and arrays. */
|
|
358
|
+
type ResourceProps = {
|
|
359
|
+
readonly [key: string]: ResourcePropsMember;
|
|
360
|
+
};
|
|
361
|
+
type ResourcePropsMember = string | number | boolean | null | Value<PlainData> | readonly ResourcePropsMember[] | {
|
|
362
|
+
readonly [key: string]: ResourcePropsMember;
|
|
363
|
+
};
|
|
316
364
|
/**
|
|
317
365
|
* A Service: inputs + its own declared params + how it is built. Inspectable,
|
|
318
366
|
* inert until run, and carries NO runtime behavior — an extension's factory
|
|
@@ -366,16 +414,18 @@ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends
|
|
|
366
414
|
body(ctx: ModuleContext<D, S, PN>): ModuleOutputs<E> | void;
|
|
367
415
|
}
|
|
368
416
|
/**
|
|
369
|
-
* What a module's body receives: its declared
|
|
417
|
+
* What a module's body receives: its declared dependencies as forwardable wiring
|
|
370
418
|
* values, plus `provision` to register the owned services/modules it wires them into.
|
|
371
419
|
*/
|
|
372
420
|
interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
|
|
373
|
-
/** The module's declared
|
|
374
|
-
readonly
|
|
421
|
+
/** The module's declared dependencies as wiring values — pass them into provision(). */
|
|
422
|
+
readonly deps: { [K in keyof D]: InputRef<D[K]>; };
|
|
375
423
|
/** The module's declared secret slots as forwardable sources — pass them into a child's `secrets` (ADR-0029). */
|
|
376
424
|
readonly secrets: { readonly [K in keyof S]: SecretSource; };
|
|
377
425
|
/** The module's declared param-forwarding slots as forwardable sources — pass them into a child's `params`. */
|
|
378
426
|
readonly params: { readonly [K in keyof PN]: ParamSource; };
|
|
427
|
+
/** 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. */
|
|
428
|
+
readonly environment: EnvironmentFacts;
|
|
379
429
|
/** Registers an owned child (service or module) under a stable id. */
|
|
380
430
|
readonly provision: ModuleBuilder['provision'];
|
|
381
431
|
}
|
|
@@ -407,7 +457,7 @@ type ReqOf<DE> = DE extends DependencyEnd<any, infer Req> ? Req : never;
|
|
|
407
457
|
/**
|
|
408
458
|
* The producers that satisfy a node's declared dependency slots — one ref per
|
|
409
459
|
* slot, checked against its required contract. A slot also accepts
|
|
410
|
-
* `InputRef<D[K]>` so a module body can forward its own `ctx.
|
|
460
|
+
* `InputRef<D[K]>` so a module body can forward its own `ctx.deps` straight
|
|
411
461
|
* into a nested `provision()` call — the same value shape a producer's own
|
|
412
462
|
* exposed port carries.
|
|
413
463
|
*/
|
|
@@ -461,11 +511,11 @@ type ModuleProvisionArgs<D extends Deps, S extends Secrets, PB> = [keyof D] exte
|
|
|
461
511
|
}];
|
|
462
512
|
interface ModuleBuilder {
|
|
463
513
|
/** Provisions an owned resource; its id defaults to the node's `name`. */
|
|
464
|
-
provision<C extends AnyContract>(resource: ResourceNode<C>, opts?: {
|
|
514
|
+
provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
|
|
465
515
|
id?: string;
|
|
466
516
|
}): {
|
|
467
517
|
readonly id: string;
|
|
468
|
-
} & RefPort<C
|
|
518
|
+
} & (C extends AnyContract ? RefPort<C> : Record<never, never>);
|
|
469
519
|
/** 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. */
|
|
470
520
|
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>;
|
|
471
521
|
/**
|
|
@@ -595,7 +645,7 @@ interface Graph {
|
|
|
595
645
|
readonly params: readonly ParamBinding[];
|
|
596
646
|
}
|
|
597
647
|
//#endregion
|
|
598
|
-
//#region ../../0-framework/1-core/core/dist/app-config-
|
|
648
|
+
//#region ../../0-framework/1-core/core/dist/app-config-DNnd7Zu-.d.mts
|
|
599
649
|
//#region src/container-transport.d.ts
|
|
600
650
|
/**
|
|
601
651
|
* Carries resolved containers from the CLI process into the alchemy process
|
|
@@ -607,12 +657,12 @@ interface Graph {
|
|
|
607
657
|
* `deserializeContainers` reads each var back through the same extension's
|
|
608
658
|
* descriptor. The framework owns the vars; it never reads their contents.
|
|
609
659
|
*/
|
|
610
|
-
/** The key an extension resolves a container from: which app, which
|
|
660
|
+
/** The key an extension resolves a container from: which app, which environment. */
|
|
611
661
|
interface LocateContainerInput {
|
|
612
662
|
/** The application name (root node's name, or `--name`). */
|
|
613
663
|
readonly appName: string;
|
|
614
|
-
/** The
|
|
615
|
-
readonly
|
|
664
|
+
/** The environment name, git-ref validated. Core never interprets it; the extension maps it onto its platform. */
|
|
665
|
+
readonly environment: string;
|
|
616
666
|
}
|
|
617
667
|
/**
|
|
618
668
|
* One resolved container. The framework sees only this interface; the
|
|
@@ -621,7 +671,7 @@ interface LocateContainerInput {
|
|
|
621
671
|
*/
|
|
622
672
|
interface ContainerInstance {
|
|
623
673
|
readonly input: LocateContainerInput;
|
|
624
|
-
/** The exact string the CLI hands `alchemy` as its stage — the deploy-state scope. Distinct from `input.
|
|
674
|
+
/** The exact string the CLI hands `alchemy` as its stage — the deploy-state scope. Distinct from `input.environment`: for Prisma Cloud this is the resolved Branch id (stable across renames, machine-independent). Framework-visible like `input` — NOT part of the `serialize()` payload, which stays extension-owned. */
|
|
625
675
|
readonly alchemyStage?: string | undefined;
|
|
626
676
|
/** Serialize to a non-empty string for the process transport above. The format is the extension's own; only its `deserialize` reads it. */
|
|
627
677
|
serialize(): string;
|
|
@@ -656,9 +706,9 @@ interface ContainerCredentials<C = unknown> {
|
|
|
656
706
|
* fails (same rule as ServiceLowering<P, S> — ADR-0033).
|
|
657
707
|
*/
|
|
658
708
|
interface ContainerDescriptor<I extends ContainerInstance = ContainerInstance, C = unknown> {
|
|
659
|
-
/** Resolve the container for (appName,
|
|
709
|
+
/** Resolve the container for (appName, environment), creating anything absent. Called by `deploy`. */
|
|
660
710
|
ensure(input: LocateContainerInput, credentials?: ContainerCredentials<C>): Promise<I>;
|
|
661
|
-
/** Find the container for (appName,
|
|
711
|
+
/** Find the container for (appName, environment); `undefined` when nothing exists. Called by `destroy` — never creates. */
|
|
662
712
|
locate(input: LocateContainerInput, credentials?: ContainerCredentials<C>): Promise<I | undefined>;
|
|
663
713
|
/** Remove the container after a successful destroy, after every extension's `teardown` has run. Failure policy is the extension's. */
|
|
664
714
|
remove(instance: I, credentials?: ContainerCredentials<C>): Promise<void>;
|
|
@@ -837,8 +887,9 @@ interface DeploymentResult {
|
|
|
837
887
|
interface LowerOptions {
|
|
838
888
|
/** Stack + root node id. */
|
|
839
889
|
readonly name: string;
|
|
890
|
+
/** The environment being deployed, as `--environment` gave it. Required by any value over `environment.name`; the generated stack files always pass it. */
|
|
891
|
+
readonly environment?: string;
|
|
840
892
|
readonly bundles: Record<string, Bundle>;
|
|
841
|
-
readonly stage?: string;
|
|
842
893
|
/** Alchemy state store for the stack. Defaults to the config's own state layer. */
|
|
843
894
|
readonly state?: AlchemyStateLayer;
|
|
844
895
|
/** Explicit provider set for the stack. Defaults to the config's own merged `providers()` (`mergedProviders`) — the same override precedence as `state`. The dev stack module passes `localTargetProviders(...)` here (ADR-0041); `lower()` itself learns nothing about the local target. */
|
|
@@ -926,7 +977,7 @@ interface ExtensionDescriptor {
|
|
|
926
977
|
* Deploy-time prerequisite check — the CLI runs it once, after the app's
|
|
927
978
|
* Project/Branch are resolved and BEFORE any stack file is written or Alchemy
|
|
928
979
|
* runs. A target uses it to verify platform prerequisites (e.g. that every
|
|
929
|
-
* secret env var in the provision manifest exists for the resolved
|
|
980
|
+
* secret env var in the provision manifest exists for the resolved environment) and
|
|
930
981
|
* throws to abort the deploy. Async: it talks to the platform (ADR-0029).
|
|
931
982
|
*
|
|
932
983
|
* What it returns is carried to the alchemy process for this same extension
|
|
@@ -944,7 +995,7 @@ interface ExtensionDescriptor {
|
|
|
944
995
|
preflight?(input: PreflightInput): Promise<PreflightPayload>;
|
|
945
996
|
/**
|
|
946
997
|
* Destroy-time cleanup — the CLI runs it once, after `alchemy destroy`
|
|
947
|
-
* succeeds and BEFORE the
|
|
998
|
+
* succeeds and BEFORE the environment's containers are removed. A target uses
|
|
948
999
|
* it to remove infrastructure it owns outside the stack (e.g. the deploy
|
|
949
1000
|
* state store, which the destroy above was still reading). Throwing aborts
|
|
950
1001
|
* the destroy before the containers go; a target that would rather warn than
|
|
@@ -995,8 +1046,8 @@ interface PreflightInput<C = unknown> {
|
|
|
995
1046
|
readonly graph: Graph;
|
|
996
1047
|
/** The calling extension's own resolved container; `undefined` when it declares no container descriptor. Narrow with the extension's guard. */
|
|
997
1048
|
readonly container: ContainerInstance | undefined;
|
|
998
|
-
/** The
|
|
999
|
-
readonly
|
|
1049
|
+
/** The environment name. */
|
|
1050
|
+
readonly environment: string;
|
|
1000
1051
|
/** What the caller has already authenticated, for the platform calls preflight makes. Absent means the extension falls back to its own credential protocol. */
|
|
1001
1052
|
readonly credentials?: ContainerCredentials<C> | undefined;
|
|
1002
1053
|
/** Hands the deploy's progress output what the check covered, as counts (e.g. `{ checked: 53, filled: 0, missing: 0 }`). Counts only: never a name or a value. */
|
|
@@ -1006,8 +1057,8 @@ interface PreflightInput<C = unknown> {
|
|
|
1006
1057
|
interface TeardownInput {
|
|
1007
1058
|
/** The calling extension's own resolved container; `undefined` when it declares no container descriptor. Narrow with the extension's guard. */
|
|
1008
1059
|
readonly container: ContainerInstance | undefined;
|
|
1009
|
-
/** The
|
|
1010
|
-
readonly
|
|
1060
|
+
/** The environment name. */
|
|
1061
|
+
readonly environment: string;
|
|
1011
1062
|
}
|
|
1012
1063
|
/** The deploy context handed to `ReporterDescriptor.begin`. `C` erases to `unknown` at the framework boundary, exactly as on `PreflightInput`. */
|
|
1013
1064
|
interface ReportBeginInput<C = unknown> {
|
|
@@ -1021,8 +1072,8 @@ interface ReportBeginInput<C = unknown> {
|
|
|
1021
1072
|
* loaded (a breaking addition to this published type).
|
|
1022
1073
|
*/
|
|
1023
1074
|
readonly graph: Graph;
|
|
1024
|
-
/** The
|
|
1025
|
-
readonly
|
|
1075
|
+
/** The environment name. */
|
|
1076
|
+
readonly environment: string;
|
|
1026
1077
|
/** The directory the deploy command was run from — where a reporter reads repository metadata. */
|
|
1027
1078
|
readonly cwd: string;
|
|
1028
1079
|
/**
|
|
@@ -1104,8 +1155,8 @@ interface LocalTargetDescriptor {
|
|
|
1104
1155
|
providers(input: LocalTargetProvidersInput): Layer.Layer<never>;
|
|
1105
1156
|
/** A stable local identity — resolved without any platform call. */
|
|
1106
1157
|
readonly container: ContainerDescriptor;
|
|
1107
|
-
/** Value sourcing (secrets/env-params) — runs where deploy's preflight runs. */
|
|
1108
|
-
preflight?(input: PreflightInput): Promise<
|
|
1158
|
+
/** Value sourcing (secrets/env-params) — runs where deploy's preflight runs. What it returns reaches the alchemy process the same way deploy's preflight payload does. */
|
|
1159
|
+
preflight?(input: PreflightInput): Promise<PreflightPayload>;
|
|
1109
1160
|
/** Ensure the emulator daemons this topology's node kinds need are running, plus any per-node emulator state that must exist before converge (idempotent; daemons persist across sessions). */
|
|
1110
1161
|
emulators?(input: LocalTargetEmulatorsInput): Promise<void>;
|
|
1111
1162
|
/** The dev session's view of the running app. Core renders it and never learns an emulator's API. */
|
|
@@ -1113,18 +1164,20 @@ interface LocalTargetDescriptor {
|
|
|
1113
1164
|
/** `--fresh`: remove every local trace of the dev instance — emulator instances, state, data. */
|
|
1114
1165
|
teardown?(input: TeardownInput): Promise<void>;
|
|
1115
1166
|
/**
|
|
1116
|
-
* The
|
|
1117
|
-
* directory alone — no entry, no graph, no container — so a
|
|
1118
|
-
* find or stop a running app without running the pipeline.
|
|
1119
|
-
* this extension recorded nothing there.
|
|
1167
|
+
* The local copy of an app in one environment, read from the environment's
|
|
1168
|
+
* dev state directory alone — no entry, no graph, no container — so a
|
|
1169
|
+
* command can find or stop a running app without running the pipeline.
|
|
1170
|
+
* Undefined when this extension recorded nothing for the app there.
|
|
1120
1171
|
*/
|
|
1121
1172
|
current?(input: LocalTargetCurrentInput): Promise<LocalTargetCurrentApp | undefined>;
|
|
1122
1173
|
}
|
|
1123
1174
|
interface LocalTargetCurrentInput {
|
|
1124
|
-
/** Absolute path of the dev state directory (
|
|
1175
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
1125
1176
|
readonly devDir: string;
|
|
1177
|
+
readonly app: string;
|
|
1178
|
+
readonly environment: string;
|
|
1126
1179
|
}
|
|
1127
|
-
/** The
|
|
1180
|
+
/** The local copy of an app in one environment, as one extension recorded it. */
|
|
1128
1181
|
interface LocalTargetCurrentApp {
|
|
1129
1182
|
readonly app: string;
|
|
1130
1183
|
/** Every node address recorded for the app. */
|
|
@@ -1168,18 +1221,19 @@ interface LocalNodeStopped {
|
|
|
1168
1221
|
interface LocalTargetProvidersInput {
|
|
1169
1222
|
/** This extension's resolved local-target container (its `input.appName` is the emulator app namespace). */
|
|
1170
1223
|
readonly container: ContainerInstance | undefined;
|
|
1171
|
-
/** Absolute path of the dev state directory (
|
|
1224
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
1172
1225
|
readonly devDir: string;
|
|
1173
1226
|
}
|
|
1174
1227
|
interface LocalTargetEmulatorsInput {
|
|
1175
1228
|
/** The loaded application graph — inspected for which node kinds need an emulator. */
|
|
1176
1229
|
readonly graph: Graph;
|
|
1177
1230
|
readonly container: ContainerInstance | undefined;
|
|
1178
|
-
/** Absolute path of the dev state directory (
|
|
1231
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
1179
1232
|
readonly devDir: string;
|
|
1180
1233
|
}
|
|
1181
1234
|
interface LocalTargetAttachInput {
|
|
1182
1235
|
readonly container: ContainerInstance | undefined;
|
|
1236
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
1183
1237
|
readonly devDir: string;
|
|
1184
1238
|
}
|
|
1185
1239
|
interface LocalTargetAttachment {
|
|
@@ -1309,7 +1363,7 @@ interface NotOk<F> {
|
|
|
1309
1363
|
*/
|
|
1310
1364
|
type Result$1<T, F> = Ok<T> | NotOk<F>;
|
|
1311
1365
|
//#endregion
|
|
1312
|
-
//#region ../../0-framework/3-tooling/cli/dist/dev-current-
|
|
1366
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-current-CcIkmpk0.d.mts
|
|
1313
1367
|
//#region src/dev/watch.d.ts
|
|
1314
1368
|
interface WatchTarget {
|
|
1315
1369
|
readonly address: string;
|
|
@@ -1441,6 +1495,8 @@ type DeployEvent = {
|
|
|
1441
1495
|
/** What the step measured, as its build adapter or deploy target reported it. The fields vary by adapter and target. */
|
|
1442
1496
|
readonly data?: Readonly<Record<string, string | number>> | undefined;
|
|
1443
1497
|
};
|
|
1498
|
+
/** The environment `deploy` targets when none is named. */
|
|
1499
|
+
declare const DEFAULT_DEPLOY_ENVIRONMENT = "production";
|
|
1444
1500
|
interface DeployInput {
|
|
1445
1501
|
/**
|
|
1446
1502
|
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
@@ -1450,8 +1506,8 @@ interface DeployInput {
|
|
|
1450
1506
|
readonly entry?: string | undefined;
|
|
1451
1507
|
/** Override the root node's name (the `--name` flag's slot). */
|
|
1452
1508
|
readonly name?: string | undefined;
|
|
1453
|
-
/**
|
|
1454
|
-
readonly
|
|
1509
|
+
/** The environment to deploy to. Defaults to `production`. */
|
|
1510
|
+
readonly environment?: string | undefined;
|
|
1455
1511
|
/** Defaults to process.cwd(); the directory `.prisma-composer/` and `.alchemy` state live under. */
|
|
1456
1512
|
readonly cwd?: string | undefined;
|
|
1457
1513
|
/**
|
|
@@ -1465,7 +1521,7 @@ interface DeployInput {
|
|
|
1465
1521
|
* An existing report record this deploy belongs to — the `--build-id` flag's
|
|
1466
1522
|
* slot. A CI job that opens the record before invoking Composer passes the
|
|
1467
1523
|
* id here, and the target's reporter joins that record instead of creating
|
|
1468
|
-
* one. Absent falls back to whatever the target reads from
|
|
1524
|
+
* one. Absent falls back to whatever the target reads from environment variables.
|
|
1469
1525
|
*/
|
|
1470
1526
|
readonly reportId?: string | undefined;
|
|
1471
1527
|
/** Each step as it starts and finishes, in real time. Rendering is the host's. */
|
|
@@ -1549,6 +1605,9 @@ interface DevInput {
|
|
|
1549
1605
|
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
|
|
1550
1606
|
readonly entry?: string | undefined;
|
|
1551
1607
|
readonly name?: string | undefined;
|
|
1608
|
+
/** The environment to run as: a complete local copy of the app with its own services, databases and buckets. Defaults to `dev`. */
|
|
1609
|
+
readonly environment?: string | undefined;
|
|
1610
|
+
/** Deletes the environment's local copy of the app, and its data, before starting. Other environments are untouched. */
|
|
1552
1611
|
readonly fresh?: boolean | undefined;
|
|
1553
1612
|
/**
|
|
1554
1613
|
* Return once every service answers and leave the app running, with no
|
|
@@ -1580,8 +1639,10 @@ declare function devWithDeps(input: DevInput, deps: OperationDeps): Promise<Resu
|
|
|
1580
1639
|
interface DevUrlInput {
|
|
1581
1640
|
/** Composer's configuration: the `composer` section of `prisma.config.ts` and that file. It names the extensions whose local targets recorded the app. */
|
|
1582
1641
|
readonly config: ComposerConfigSource;
|
|
1583
|
-
/** A node's dotted address
|
|
1642
|
+
/** A node's full dotted address, starting with the app name, such as `shop.gateway`. The app is read from it. */
|
|
1584
1643
|
readonly address: string;
|
|
1644
|
+
/** The environment whose local copy to read. Defaults to `dev`. */
|
|
1645
|
+
readonly environment?: string | undefined;
|
|
1585
1646
|
/** The directory `prisma dev` ran from. Defaults to the process's working directory. */
|
|
1586
1647
|
readonly cwd?: string | undefined;
|
|
1587
1648
|
}
|
|
@@ -1598,24 +1659,32 @@ interface DevUrl {
|
|
|
1598
1659
|
}
|
|
1599
1660
|
interface DevStopInput {
|
|
1600
1661
|
readonly config: ComposerConfigSource;
|
|
1662
|
+
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; the app is its root's name. */
|
|
1663
|
+
readonly entry?: string | undefined;
|
|
1664
|
+
/** The app to stop, in place of the entry root's name. */
|
|
1665
|
+
readonly name?: string | undefined;
|
|
1666
|
+
/** The environment whose local copy to stop. Defaults to `dev`. */
|
|
1667
|
+
readonly environment?: string | undefined;
|
|
1601
1668
|
/** The directory `prisma dev` ran from. Defaults to the process's working directory. */
|
|
1602
1669
|
readonly cwd?: string | undefined;
|
|
1603
1670
|
}
|
|
1604
1671
|
interface DevStopped {
|
|
1605
|
-
/** The app that was stopped
|
|
1672
|
+
/** The app that was stopped. */
|
|
1606
1673
|
readonly app: string;
|
|
1674
|
+
/** The environment whose local copy was stopped. */
|
|
1675
|
+
readonly environment: string;
|
|
1607
1676
|
/** Each node whose process or server was stopped. Data and ports are kept. */
|
|
1608
1677
|
readonly stopped: readonly {
|
|
1609
1678
|
readonly address: string;
|
|
1610
1679
|
readonly kind: string;
|
|
1611
1680
|
}[];
|
|
1612
1681
|
}
|
|
1613
|
-
/** Where the node at `input.address`
|
|
1682
|
+
/** Where the node at `input.address` runs locally in the environment. */
|
|
1614
1683
|
declare function devUrl(input: DevUrlInput): Promise<Result$1<DevUrl, CliStructuredError>>;
|
|
1615
|
-
/** Stops the
|
|
1684
|
+
/** Stops the app's local copy in the environment: its service processes and database servers. Data and ports stay. */
|
|
1616
1685
|
declare function devStop(input: DevStopInput): Promise<Result$1<DevStopped, CliStructuredError>>;
|
|
1617
1686
|
//#endregion
|
|
1618
|
-
//#region ../../0-framework/3-tooling/cli/dist/family-
|
|
1687
|
+
//#region ../../0-framework/3-tooling/cli/dist/family-B2JZ8O7U.d.mts
|
|
1619
1688
|
//#region src/family/family.d.ts
|
|
1620
1689
|
/**
|
|
1621
1690
|
* The control-plane operations the family's handlers call. These are the
|
|
@@ -1637,7 +1706,9 @@ interface CreateComposerFamilyOptions {
|
|
|
1637
1706
|
readonly operations?: ComposerOperations | undefined;
|
|
1638
1707
|
/** More commands to ship in the family, keyed by the path they are meant to mount at. */
|
|
1639
1708
|
readonly commands?: CommandFamily['commands'] | undefined;
|
|
1709
|
+
/** More retired invocations to redirect, for the commands in `commands`. */
|
|
1710
|
+
readonly redirects?: readonly RedirectSpec[] | undefined;
|
|
1640
1711
|
}
|
|
1641
1712
|
//#endregion
|
|
1642
|
-
export {
|
|
1643
|
-
//# sourceMappingURL=family-
|
|
1713
|
+
export { Result$1 as _, DeployEvent as a, CliStructuredError as b, DevEvent as c, DevStopInput as d, DevStopped as f, ServiceEndpoint as g, OperationDeps as h, DEFAULT_DEPLOY_ENVIRONMENT as i, DevInput as l, DevUrlInput as m, CreateComposerFamilyOptions as n, DeployInput as o, DevUrl as p, realOperations as r, DeploySuccess as s, ComposerOperations as t, DevSession as u, AssembledServices as v, ComposerConfigSource as y };
|
|
1714
|
+
//# sourceMappingURL=family-B2JZ8O7U-P_rOUr4w.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-B2JZ8O7U-P_rOUr4w.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../0-framework/1-core/core/dist/graph-types-DfsG9Rkg.d.mts","../../../0-framework/1-core/core/dist/app-config-DNnd7Zu-.d.mts","../../../0-framework/3-tooling/cli/dist/composer-config-BJrPWlDx.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-p88NV5m5.d.mts","../../../0-framework/3-tooling/assemble/dist/index.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/cli/dist/dev-current-CcIkmpk0.d.mts","../../../0-framework/3-tooling/cli/dist/family-B2JZ8O7U.d.mts"],"x_google_ignoreList":[1],"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;;;;;UCjG5B,gBAAgB,iBAAiB,SAAS;;WAEvC,aAAa,gBAAgB,MAAM,OAAO;;kBAErC;;YAEJ,MAAM,iBAAiB,SAAS;;aAE7B;;aAEA;;aAEA,QAAQ,MAAM,OAAO;;;YAGxB,MAAM,iBAAiB,SAAS;;aAE7B,OAAO;;aAEP,QAAQ;;;OAGhB,WAAW,eAAe,mBAAmB,YAAY;;OAEzD,YAAY,eAAe,mBAAmB,YAAY;;;UAGzD,iBAAiB,iBAAiB,SAAS;;WAExC,aAAa,iBAAiB,MAAM,OAAO;;kBAEtC;;YAEJ,MAAM,iBAAiB,SAAS,eAAe,gBAAgB,MAAM,OAAO;;aAEzE,WAAW,gBAAgB,UAAU,iBAAiB,wBAAwB,OAAO,UAAU,QAAQ,OAAO;;;OAGtH,OAAO,UAAU,cAAc,UAAU;;YAEpC,cAAc;;aAEX,OAAO;;aAEP;;YAEH;;aAEG,iBAAiB;;;YAGpB;;aAEG,QAAQ,cAAc;;;YAGzB;;aAEG;;aAEA,OAAO,cAAc,cAAc;;;YAGtC;;aAEG,KAAK;;;YAGR,M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,SAAS;;WAET;;;;;iBAMM,eAAe,OAAO,aAAa,MAAM,gBAAgB,QAAQ,SAAO,eAAe;;;KAGnG;;;WAGM;WACA,oBAAoB;;WAEpB;WACA;;WAEA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;;;;WAIA;WACA;WACA;;WAEA;;;;WAIA;WACA;;WAEA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;;WAEA;;WAEA;;;;;;WAMA;WACA;WACA,YAAY,OAAO;;;;;UAKpB;;WAEC,oBAAoB;;;EAG7B,QAAQ;;WAEC,QAAQ;;;;;iBAMF,YAAY,OAAO,UAAU,MAAM,gBAAgB,QAAQ,SAAO,YAAY;;;UAGrF;;WAEC,QAAQ;;WAER;;WAEA;;WAEA;;UAED;WACC;;WAEA;;WAEA;;WAEA;;WAEA;;UAED;WACC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;UAED;;WAEC;;WAEA;;WAEA;aACE;aACA;;;;iBAII,OAAO,OAAO,cAAc,QAAQ,SAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,SAAO,YAAY;;;;;;;;;;;;UCtVhE;WACC,eAAe;WACf,YAAY;WACZ,eAAe;WACf,gBAAgB;;cAEb,gBAAgB;UACpB;;WAEC,aAAa;;WAEb,WAAW;;WAEX,qBAAqB"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as Result, b as CliStructuredError$1, i as DEFAULT_DEPLOY_ENVIRONMENT, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, y as ComposerConfigSource } from "./family-B2JZ8O7U-P_rOUr4w.mjs";
|
|
2
2
|
import { CommandFamily, ConfigSection, ManagementApiClient } from "@prisma/cli-engine";
|
|
3
3
|
import { CliStructuredError } from "@prisma/cli-engine/protocol";
|
|
4
4
|
import "effect/Layer";
|
|
@@ -44,7 +44,7 @@ interface ListDeployedInput {
|
|
|
44
44
|
readonly config: ComposerConfigSource;
|
|
45
45
|
readonly entry: string | undefined;
|
|
46
46
|
readonly name: string | undefined;
|
|
47
|
-
readonly
|
|
47
|
+
readonly environment: string;
|
|
48
48
|
readonly cwd: string;
|
|
49
49
|
readonly workspaceId: string | undefined;
|
|
50
50
|
readonly client: ManagementApiClient;
|
|
@@ -99,5 +99,5 @@ interface CreateComposerFamilyOptions extends CreateComposerFamilyOptions$1 {
|
|
|
99
99
|
/** Composer's command family: `deploy`, `deploy list`, `dev`, `dev url`, `dev stop` and `emulator list`, keyed by the path each is meant to mount at. */
|
|
100
100
|
declare function createComposerFamily(options?: CreateComposerFamilyOptions): CommandFamily;
|
|
101
101
|
//#endregion
|
|
102
|
-
export { type ComposerOperations, CreateComposerFamilyOptions, type DeployedNode, type ListDeployed, type ListDeployedInput, type ListEmulators, composerSection, createComposerFamily, dataLine, realOperations, toEngineError };
|
|
102
|
+
export { type ComposerOperations, CreateComposerFamilyOptions, DEFAULT_DEPLOY_ENVIRONMENT, type DeployedNode, type ListDeployed, type ListDeployedInput, type ListEmulators, composerSection, createComposerFamily, dataLine, realOperations, toEngineError };
|
|
103
103
|
//# sourceMappingURL=family.d.mts.map
|
package/dist/family.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts","../src/family/deployed-nodes.ts","../src/family/list-deployed.ts","../src/family/deploy-list.ts","../../../1-prisma-cloud/0-lowering/dev-emulators/dist/index.d.mts","../src/family/emulator-list.ts","../src/exports/family.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts","../src/family/deployed-nodes.ts","../src/family/list-deployed.ts","../src/family/deploy-list.ts","../../../1-prisma-cloud/0-lowering/dev-emulators/dist/index.d.mts","../src/family/emulator-list.ts","../src/exports/family.ts"],"mappings":";;;;;;;;;;;KAMK;;;;;;iBAMY,SAAS,iBAAiB;;;cAG7B,iBAAiB,cAAc;;;;;;;;KAQxC,gBAAA;;iBAEY,cAAc,OAAO,gBAAgB;;;;UCtBrC;WACN;WACA;WACA;WACA;;;;UCCM;WACN,QAAQ;WACR;WACA;WACA;WACA;WACA;WACA,QAAQ;;;;KCKP,gBACV,OAAO,sBACJ,QAAQ,gBAAgB,gBAAgB;;;;;;KCuKxC;UAEK;WACC;WACA,MAAM;;WAEN;;WAEA;WACA,QAAQ,SAAS;;;UAGlB;WACC;WACA;;UAED;WACC,MAAM;WACN;;WAEA;;WAEA,oBAAoB;;WAEpB,OAAO;;UAER;WACC,oBAAoB;;;;KC1MnB,sBAAsB,QAAQ,OAAO,cAAc;;;UCkB9C,oCAAoC;;WAE1C,gBAAgB;;WAEhB,eAAe;;;iBAIV,qBAAqB,UAAS,8BAAmC"}
|