@prisma/composer-cli 0.39.0-dev.12 → 0.39.0-dev.13
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-converge-DkTFs-ih-VPepJ4ZK.mjs → app-converge-CHMILMYi-Duhv9T-w.mjs} +5 -5
- package/dist/app-converge-CHMILMYi-Duhv9T-w.mjs.map +1 -0
- package/dist/{composer-config-QKdY85G--CEXrb2Uc.mjs → composer-config-aL0W4HPG-CTpDJKz4.mjs} +3 -3
- package/dist/composer-config-aL0W4HPG-CTpDJKz4.mjs.map +1 -0
- package/dist/{deploy-Br1yvLe3.mjs → deploy-Cu7Wtrf0.mjs} +6 -6
- package/dist/deploy-Cu7Wtrf0.mjs.map +1 -0
- package/dist/{dev-converge-messages-DML4rTz7-B6uxtpZG.mjs → dev-converge-messages-CElmPylA-6X7D08mQ.mjs} +6 -6
- package/dist/dev-converge-messages-CElmPylA-6X7D08mQ.mjs.map +1 -0
- package/dist/dev-converge-worker.mjs +4 -4
- package/dist/dev-converge-worker.mjs.map +1 -1
- package/dist/{dev-current-C7rT6Yxw-DdlXRvfz.mjs → dev-current-C7R8uqyQ-CgyoTX9q.mjs} +7 -7
- package/dist/dev-current-C7R8uqyQ-CgyoTX9q.mjs.map +1 -0
- package/dist/{dev-environment-name-6eEr5PW8-CCY7WNWz.mjs → dev-environment-name-6eEr5PW8-DSJ7HrEe.mjs} +2 -3
- package/dist/{dev-environment-name-6eEr5PW8-CCY7WNWz.mjs.map → dev-environment-name-6eEr5PW8-DSJ7HrEe.mjs.map} +1 -1
- package/dist/{dist-C0OGaDnj.mjs → dist-CZTXNHtS.mjs} +1 -2
- package/dist/{dist-C0OGaDnj.mjs.map → dist-CZTXNHtS.mjs.map} +1 -1
- package/dist/execute-deploy-destroy-BIRdFfwR-Czj9JB8M.mjs +517 -0
- package/dist/execute-deploy-destroy-BIRdFfwR-Czj9JB8M.mjs.map +1 -0
- package/dist/{execute-dev-BtSLDMkv-C7vjxmdg.mjs → execute-dev-D9PxdbV3-D-pdqLmO.mjs} +11 -13
- package/dist/execute-dev-D9PxdbV3-D-pdqLmO.mjs.map +1 -0
- package/dist/{execute-dev-current-LEdiAZSw-CqLq03hv.mjs → execute-dev-current-BghQ0HLe-BY5COM8c.mjs} +6 -7
- package/dist/{execute-dev-current-LEdiAZSw-CqLq03hv.mjs.map → execute-dev-current-BghQ0HLe-BY5COM8c.mjs.map} +1 -1
- package/dist/{family-DfwviKFj-CS1L-EvS.d.mts → family-5lQ0X01--mh7Vm2zv.d.mts} +74 -129
- package/dist/family-5lQ0X01--mh7Vm2zv.d.mts.map +1 -0
- package/dist/family.d.mts +1 -1
- package/dist/family.mjs +17 -11
- package/dist/family.mjs.map +1 -1
- package/dist/{list-deployed-C1cfd_XX.mjs → list-deployed-COZmPVO2.mjs} +3 -3
- package/dist/{list-deployed-C1cfd_XX.mjs.map → list-deployed-COZmPVO2.mjs.map} +1 -1
- package/dist/{local-target-CZzICh5R.mjs → local-target-bTjNRplR.mjs} +31 -3
- package/dist/local-target-bTjNRplR.mjs.map +1 -0
- package/dist/{redaction-DY6eDC12-BrK1aSN5.mjs → redaction-DHaXoToJ-zcuc7Sgf.mjs} +5 -5
- package/dist/redaction-DHaXoToJ-zcuc7Sgf.mjs.map +1 -0
- package/dist/{steps-BZXNqW6U-BM2Aa8Bp.mjs → steps-Det-FSAL-4BEaFT3G.mjs} +5 -118
- package/dist/steps-Det-FSAL-4BEaFT3G.mjs.map +1 -0
- package/dist/testing.d.mts +1 -1
- package/dist/{validate-environment-DCZiNSlR-idVge-kq.mjs → validate-environment-BevPErw8-BRVXeBjT.mjs} +6 -6
- package/dist/{validate-environment-DCZiNSlR-idVge-kq.mjs.map → validate-environment-BevPErw8-BRVXeBjT.mjs.map} +1 -1
- package/package.json +7 -8
- package/dist/app-config-CErnR6NK-DnKH4Kqc.mjs +0 -32
- package/dist/app-config-CErnR6NK-DnKH4Kqc.mjs.map +0 -1
- package/dist/app-converge-DkTFs-ih-VPepJ4ZK.mjs.map +0 -1
- package/dist/composer-config-QKdY85G--CEXrb2Uc.mjs.map +0 -1
- package/dist/deploy-Br1yvLe3.mjs.map +0 -1
- package/dist/dev-converge-messages-DML4rTz7-B6uxtpZG.mjs.map +0 -1
- package/dist/dev-current-C7rT6Yxw-DdlXRvfz.mjs.map +0 -1
- package/dist/execute-deploy-destroy-C-aK5jh--DZdZgI7g.mjs +0 -893
- package/dist/execute-deploy-destroy-C-aK5jh--DZdZgI7g.mjs.map +0 -1
- package/dist/execute-dev-BtSLDMkv-C7vjxmdg.mjs.map +0 -1
- package/dist/family-DfwviKFj-CS1L-EvS.d.mts.map +0 -1
- package/dist/local-target-CZzICh5R.mjs.map +0 -1
- package/dist/preflight-transport-2d6iIchu-ArIJUY1L.mjs +0 -56
- package/dist/preflight-transport-2d6iIchu-ArIJUY1L.mjs.map +0 -1
- package/dist/redaction-DY6eDC12-BrK1aSN5.mjs.map +0 -1
- package/dist/steps-BZXNqW6U-BM2Aa8Bp.mjs.map +0 -1
|
@@ -192,7 +192,7 @@ declare namespace StandardSchemaV1 {
|
|
|
192
192
|
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
|
-
//#region ../../0-framework/1-core/core/dist/graph-types-
|
|
195
|
+
//#region ../../0-framework/1-core/core/dist/graph-types-BeNeqIt4.d.mts
|
|
196
196
|
//#region src/contract.d.ts
|
|
197
197
|
/**
|
|
198
198
|
* A Contract is the declared interface of a service-to-service dependency: a
|
|
@@ -679,9 +679,8 @@ interface RootInputField {
|
|
|
679
679
|
}
|
|
680
680
|
/**
|
|
681
681
|
* What a Load read from the app configuration (ADR-0062). A later Load takes it in place of the
|
|
682
|
-
* app configuration: `lower()` under `deploy` (on the main thread) and `prisma dev`
|
|
683
|
-
* converge worker thread)
|
|
684
|
-
* configuration file.
|
|
682
|
+
* app configuration: `lower()` under `deploy` and `destroy` (on the main thread) and `prisma dev`
|
|
683
|
+
* (in its converge worker thread).
|
|
685
684
|
*/
|
|
686
685
|
interface AppConfigurationRead {
|
|
687
686
|
/** 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. */
|
|
@@ -798,7 +797,7 @@ interface Graph {
|
|
|
798
797
|
readonly appConfigurationRead: AppConfigurationRead;
|
|
799
798
|
}
|
|
800
799
|
//#endregion
|
|
801
|
-
//#region ../../0-framework/1-core/core/dist/app-config-
|
|
800
|
+
//#region ../../0-framework/1-core/core/dist/app-config-Dhypzb6a.d.mts
|
|
802
801
|
//#region src/caller-credentials.d.ts
|
|
803
802
|
/**
|
|
804
803
|
* What the caller has already authenticated, handed unchanged to every
|
|
@@ -812,7 +811,7 @@ interface CallerCredentials<C = unknown> {
|
|
|
812
811
|
readonly client?: C | undefined;
|
|
813
812
|
}
|
|
814
813
|
//#endregion
|
|
815
|
-
//#region src/container
|
|
814
|
+
//#region src/container.d.ts
|
|
816
815
|
/** The key an extension resolves a container from: which app, which environment. */
|
|
817
816
|
interface LocateContainerInput {
|
|
818
817
|
/** The application name (root node's name, or `--name`). */
|
|
@@ -827,9 +826,9 @@ interface LocateContainerInput {
|
|
|
827
826
|
*/
|
|
828
827
|
interface ContainerInstance {
|
|
829
828
|
readonly input: LocateContainerInput;
|
|
830
|
-
/** The
|
|
829
|
+
/** The stage the operation passes to Alchemy — 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. */
|
|
831
830
|
readonly alchemyStage?: string | undefined;
|
|
832
|
-
/** Serialize to a non-empty string
|
|
831
|
+
/** Serialize to a non-empty string. The format is the extension's own; only its `deserialize` reads it. */
|
|
833
832
|
serialize(): string;
|
|
834
833
|
}
|
|
835
834
|
/**
|
|
@@ -849,12 +848,13 @@ interface ContainerDescriptor<I extends ContainerInstance = ContainerInstance, C
|
|
|
849
848
|
locate(input: LocateContainerInput, credentials?: CallerCredentials<C>): Promise<I | undefined>;
|
|
850
849
|
/** Remove the container after a successful destroy, after every extension's `teardown` has run. Failure policy is the extension's. */
|
|
851
850
|
remove(instance: I, credentials?: CallerCredentials<C>): Promise<void>;
|
|
852
|
-
/** Reconstruct an instance from its own `serialize()` output
|
|
851
|
+
/** Reconstruct an instance from its own `serialize()` output. */
|
|
853
852
|
deserialize(serialized: string): I;
|
|
854
853
|
}
|
|
855
854
|
//#endregion
|
|
856
|
-
//#region src/preflight
|
|
857
|
-
/**
|
|
855
|
+
//#region src/preflight.d.ts
|
|
856
|
+
/** What an extension's deploy or dev preflight hands its own lowering, and what a deploy preflight found. */
|
|
857
|
+
/** A string only this extension reads back, or `undefined` when it has nothing to carry. Metadata only, never a secret value. */
|
|
858
858
|
type PreflightPayload = string | undefined;
|
|
859
859
|
/** Where a platform variable is named: a service's input field, or a resource no service reads. */
|
|
860
860
|
type PlatformVariableReader = {
|
|
@@ -1052,8 +1052,8 @@ interface LowerOptions {
|
|
|
1052
1052
|
readonly environment?: string;
|
|
1053
1053
|
/** What the caller's Load read from the app configuration (ADR-0062). Load takes the root's input from it. */
|
|
1054
1054
|
readonly appConfigurationRead?: AppConfigurationRead;
|
|
1055
|
-
/** The node addresses of the graph the caller
|
|
1056
|
-
readonly
|
|
1055
|
+
/** The node addresses of the graph the caller prepared. When given, lowering refuses a graph whose addresses differ. */
|
|
1056
|
+
readonly preparedNodeAddresses?: readonly string[];
|
|
1057
1057
|
readonly bundles: Record<string, Bundle>;
|
|
1058
1058
|
/** Alchemy state store for the stack. Defaults to the config's own state layer. */
|
|
1059
1059
|
readonly state?: AlchemyStateLayer;
|
|
@@ -1069,10 +1069,10 @@ interface LowerOptions {
|
|
|
1069
1069
|
readonly report?: (result: DeploymentResult) => void;
|
|
1070
1070
|
/** Addresses lowered without an artifact: `package` and `deploy` are skipped and `reserve` runs instead (ADR-0056). Only `prisma dev` sets it. */
|
|
1071
1071
|
readonly unassembled?: readonly string[];
|
|
1072
|
-
/** Each extension's resolved container, by extension id.
|
|
1073
|
-
readonly containers
|
|
1072
|
+
/** Each extension's resolved container, by extension id. */
|
|
1073
|
+
readonly containers: ReadonlyMap<string, ContainerInstance>;
|
|
1074
1074
|
/** What each extension's preflight returned, by extension id. Each lowering context gets its own extension's entry as `LowerContext.preflight`. */
|
|
1075
|
-
readonly preflightPayloads
|
|
1075
|
+
readonly preflightPayloads: ReadonlyMap<string, string>;
|
|
1076
1076
|
/** The platform variables with no value that the deploy preflight found. The deploy report carries them. Absent means none. */
|
|
1077
1077
|
readonly findings?: PreflightFindings;
|
|
1078
1078
|
/** What the caller already authenticated, handed to every extension's `providers()` and to the state descriptor's `create()`. Absent means each extension falls back to its own credential protocol. */
|
|
@@ -1130,8 +1130,8 @@ interface Artifact {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
/**
|
|
1132
1132
|
* The whole-stack wrapper: Load → route each node through the config's
|
|
1133
|
-
* extension registries → an Alchemy Stack, which
|
|
1134
|
-
* `Alchemist.plan
|
|
1133
|
+
* extension registries → an Alchemy Stack, which the operations hand to
|
|
1134
|
+
* `Alchemist.plan`.
|
|
1135
1135
|
*/
|
|
1136
1136
|
declare function lower(root: ModuleNode | AppRootNode, config: PrismaAppConfig, opts: LowerOptions): Alchemy.ConfiguredStack<undefined, never>;
|
|
1137
1137
|
//#endregion
|
|
@@ -1159,18 +1159,16 @@ interface ExtensionDescriptor {
|
|
|
1159
1159
|
readonly checkGraph?: (graph: Graph) => void;
|
|
1160
1160
|
/**
|
|
1161
1161
|
* Deploy-time prerequisite check — the CLI runs it once, after the app's
|
|
1162
|
-
* Project/Branch are resolved and BEFORE
|
|
1162
|
+
* Project/Branch are resolved and BEFORE Alchemy
|
|
1163
1163
|
* runs. A target uses it to verify platform prerequisites (e.g. that every
|
|
1164
1164
|
* platform variable a service needs has a value) and throws to abort the
|
|
1165
1165
|
* deploy. Async: it talks to the platform (ADR-0064).
|
|
1166
1166
|
*
|
|
1167
1167
|
* What it returns reaches this same extension's lowering as
|
|
1168
|
-
* `LowerContext.preflight
|
|
1169
|
-
*
|
|
1170
|
-
*
|
|
1171
|
-
*
|
|
1172
|
-
* secret value must never go in it. What it hands `input.report` reaches the
|
|
1173
|
-
* deploy report through the framework's own transport, not this payload.
|
|
1168
|
+
* `LowerContext.preflight`. The payload is the extension's own opaque
|
|
1169
|
+
* string; the framework never reads it, and a secret value must never go in
|
|
1170
|
+
* it. What it hands `input.report` reaches the deploy report through the
|
|
1171
|
+
* framework, not this payload.
|
|
1174
1172
|
*
|
|
1175
1173
|
* METHOD SYNTAX REQUIRED, for the same reason ContainerDescriptor's members
|
|
1176
1174
|
* need it: the framework hands over the erased `PreflightInput<unknown>`,
|
|
@@ -1179,7 +1177,7 @@ interface ExtensionDescriptor {
|
|
|
1179
1177
|
*/
|
|
1180
1178
|
preflight?(input: PreflightInput): Promise<PreflightPayload>;
|
|
1181
1179
|
/**
|
|
1182
|
-
* Destroy-time cleanup — the CLI runs it once, after
|
|
1180
|
+
* Destroy-time cleanup — the CLI runs it once, after Alchemy's destroy
|
|
1183
1181
|
* succeeds and BEFORE the environment's containers are removed. A target uses
|
|
1184
1182
|
* it to remove infrastructure it owns outside the stack (e.g. the deploy
|
|
1185
1183
|
* state store, which the destroy above was still reading). Throwing aborts
|
|
@@ -1189,10 +1187,9 @@ interface ExtensionDescriptor {
|
|
|
1189
1187
|
readonly teardown?: (input: TeardownInput) => Promise<void>;
|
|
1190
1188
|
/**
|
|
1191
1189
|
* The extension's container lifecycle, when its platform has containers
|
|
1192
|
-
* (ADR-0038). The CLI resolves containers after assembly and before
|
|
1193
|
-
*
|
|
1194
|
-
*
|
|
1195
|
-
* in container-transport.ts.
|
|
1190
|
+
* (ADR-0038). The CLI resolves containers after assembly and before
|
|
1191
|
+
* Alchemy runs (deploy ensures, destroy locates), and hands each resolved
|
|
1192
|
+
* instance to the lowering.
|
|
1196
1193
|
*/
|
|
1197
1194
|
readonly container?: ContainerDescriptor;
|
|
1198
1195
|
/**
|
|
@@ -1320,12 +1317,12 @@ interface RunOutcome {
|
|
|
1320
1317
|
*/
|
|
1321
1318
|
interface RunReporter {
|
|
1322
1319
|
/**
|
|
1323
|
-
*
|
|
1324
|
-
* inside the apply can find the run
|
|
1325
|
-
*
|
|
1320
|
+
* Variables a deploy sets in the process environment while Alchemy plans
|
|
1321
|
+
* and applies, so reporting that happens inside the apply can find the run
|
|
1322
|
+
* this session belongs to. Read once, after `attach`.
|
|
1326
1323
|
*/
|
|
1327
1324
|
childEnv(): Readonly<Record<string, string>>;
|
|
1328
|
-
/** Called once the extension's own container is resolved, before
|
|
1325
|
+
/** Called once the extension's own container is resolved, before Alchemy runs — the moment the run's project and branch first exist to be referenced. */
|
|
1329
1326
|
attach(input: ReportAttachInput): Promise<void>;
|
|
1330
1327
|
/** Called exactly once, on every exit path including a thrown error. */
|
|
1331
1328
|
finish(outcome: RunOutcome): Promise<void>;
|
|
@@ -1355,7 +1352,7 @@ interface LocalTargetDescriptor {
|
|
|
1355
1352
|
providers(input: LocalTargetProvidersInput): Layer.Layer<never>;
|
|
1356
1353
|
/** A stable local identity — resolved without any platform call. */
|
|
1357
1354
|
readonly container: ContainerDescriptor;
|
|
1358
|
-
/** Works out the platform variables' values, where deploy's preflight runs. Its payload reaches
|
|
1355
|
+
/** Works out the platform variables' values, where deploy's preflight runs. Its payload reaches this extension's lowering as its preflight payload, as deploy's does. */
|
|
1359
1356
|
preflight?(input: PreflightInput): Promise<DevPreflightResult>;
|
|
1360
1357
|
/** 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). */
|
|
1361
1358
|
emulators?(input: LocalTargetEmulatorsInput): Promise<void>;
|
|
@@ -1515,7 +1512,7 @@ interface ConfigAdapterInput {
|
|
|
1515
1512
|
}
|
|
1516
1513
|
/** The values one adapter returns, by name. */
|
|
1517
1514
|
type ConfigValues = Readonly<Record<string, unknown>>;
|
|
1518
|
-
/** A function in the `config` or `secrets` list of the `composer` section (ADR-0062): it receives the environment and returns that environment's values. Only
|
|
1515
|
+
/** A function in the `config` or `secrets` list of the `composer` section (ADR-0062): it receives the environment and returns that environment's values. Only a command's first Load calls it; a later Load, such as the one `lower()` runs, takes what the first one read. */
|
|
1519
1516
|
type ConfigAdapter = (input: ConfigAdapterInput) => ConfigValues | Promise<ConfigValues>;
|
|
1520
1517
|
/** The app configuration (ADR-0062): what the `config` adapters return, merged by top-level key, a later adapter winning. It is the root's input, and under `prisma dev` it also holds the text of each plain platform variable. */
|
|
1521
1518
|
type AppConfiguration = Readonly<Record<string, unknown>>;
|
|
@@ -1540,22 +1537,7 @@ interface PrismaAppConfig {
|
|
|
1540
1537
|
readonly secrets?: readonly ConfigAdapter[];
|
|
1541
1538
|
}
|
|
1542
1539
|
//#endregion
|
|
1543
|
-
//#region ../../0-framework/3-tooling/cli/dist/
|
|
1544
|
-
//#region src/deployment-summary.d.ts
|
|
1545
|
-
/** The serializable projection of DeploymentResult — what CAN cross the process
|
|
1546
|
-
* boundary. Writer (report hook) and reader (deploy operation) share this shape. */
|
|
1547
|
-
interface DeployedNodeSummary {
|
|
1548
|
-
readonly address: string;
|
|
1549
|
-
readonly entities: readonly DeployedEntity[];
|
|
1550
|
-
}
|
|
1551
|
-
interface DeploymentSummary {
|
|
1552
|
-
readonly app: string;
|
|
1553
|
-
readonly nodes: readonly DeployedNodeSummary[];
|
|
1554
|
-
/** The platform variables with no value that the deploy preflight found. */
|
|
1555
|
-
readonly findings: PreflightFindings;
|
|
1556
|
-
}
|
|
1557
|
-
//#endregion
|
|
1558
|
-
//#region ../../0-framework/3-tooling/cli/dist/converge-in-process-CTomEXaD.d.mts
|
|
1540
|
+
//#region ../../0-framework/3-tooling/cli/dist/converge-in-process-DZRf9uYm.d.mts
|
|
1559
1541
|
//#region src/converge-in-process.d.ts
|
|
1560
1542
|
/** What `lower()` returns: the stack value `Alchemist.plan` takes. */
|
|
1561
1543
|
type LoweredStack = ReturnType<typeof lower>;
|
|
@@ -1575,7 +1557,7 @@ type ConvergeEvent = {
|
|
|
1575
1557
|
readonly text: string;
|
|
1576
1558
|
};
|
|
1577
1559
|
interface ConvergeRequest {
|
|
1578
|
-
readonly operation: 'deploy';
|
|
1560
|
+
readonly operation: 'deploy' | 'destroy';
|
|
1579
1561
|
readonly stack: LoweredStack;
|
|
1580
1562
|
readonly stage: string;
|
|
1581
1563
|
/** The directory Alchemy runs in: where it reads `.env` and keeps `.alchemy`. */
|
|
@@ -1654,16 +1636,29 @@ declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetD
|
|
|
1654
1636
|
/** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */
|
|
1655
1637
|
declare function devState(): AlchemyStateLayer;
|
|
1656
1638
|
//#endregion
|
|
1657
|
-
//#region ../../0-framework/3-tooling/cli/dist/redaction-
|
|
1639
|
+
//#region ../../0-framework/3-tooling/cli/dist/redaction-msB1S2rG.d.mts
|
|
1658
1640
|
//#region src/composer-config.d.ts
|
|
1659
1641
|
/** Composer's configuration and the `prisma.config.ts` that declares it. */
|
|
1660
1642
|
interface ComposerConfigSource {
|
|
1661
1643
|
/** The `composer` section: the `composer` property of that file's default export. */
|
|
1662
1644
|
readonly value: PrismaAppConfig;
|
|
1663
|
-
/** The declaring `prisma.config.ts`.
|
|
1645
|
+
/** The declaring `prisma.config.ts`. A relative path resolves against the operation's `cwd`. */
|
|
1664
1646
|
readonly file: string;
|
|
1665
1647
|
}
|
|
1666
1648
|
//#endregion
|
|
1649
|
+
//#region src/deployment-summary.d.ts
|
|
1650
|
+
/** The serializable projection of DeploymentResult. */
|
|
1651
|
+
interface DeployedNodeSummary {
|
|
1652
|
+
readonly address: string;
|
|
1653
|
+
readonly entities: readonly DeployedEntity[];
|
|
1654
|
+
}
|
|
1655
|
+
interface DeploymentSummary {
|
|
1656
|
+
readonly app: string;
|
|
1657
|
+
readonly nodes: readonly DeployedNodeSummary[];
|
|
1658
|
+
/** The platform variables with no value that the deploy preflight found. */
|
|
1659
|
+
readonly findings: PreflightFindings;
|
|
1660
|
+
}
|
|
1661
|
+
//#endregion
|
|
1667
1662
|
//#region src/app-converge.d.ts
|
|
1668
1663
|
/** The app install's `lower`, its converge (`convergeInProcess`), and the local target's providers and state store for `prisma dev`. */
|
|
1669
1664
|
interface AppConvergeEntry {
|
|
@@ -1701,51 +1696,6 @@ interface WatchHandle {
|
|
|
1701
1696
|
*/
|
|
1702
1697
|
declare function startWatch(targets: readonly WatchTarget[], onChange: () => void, onError?: (error: unknown) => void): WatchHandle;
|
|
1703
1698
|
//#endregion
|
|
1704
|
-
//#region src/run-alchemy.d.ts
|
|
1705
|
-
/**
|
|
1706
|
-
* WHAT to converge. Deliberately not a command line: which alchemy binary to
|
|
1707
|
-
* run is a question about this machine's installed tree, and answering it
|
|
1708
|
-
* eagerly would make an injected adapter — a test's fake child — fail in a
|
|
1709
|
-
* directory that has no alchemy installed, before the fake ever ran. The
|
|
1710
|
-
* adapter resolves the binary, because the adapter is what starts a child.
|
|
1711
|
-
*
|
|
1712
|
-
* `env` carries only the ADDITIONS to the invoking environment — the container
|
|
1713
|
-
* transport vars and the result-file pointer — never a whole environment: the
|
|
1714
|
-
* engine merges additions over the invocation environment and applies its own
|
|
1715
|
-
* credential vars last.
|
|
1716
|
-
*/
|
|
1717
|
-
interface AlchemyInvocation {
|
|
1718
|
-
readonly action: 'deploy' | 'destroy';
|
|
1719
|
-
readonly stackFileRelativePath: string;
|
|
1720
|
-
readonly cwd: string;
|
|
1721
|
-
readonly stage: string;
|
|
1722
|
-
readonly env: Readonly<Record<string, string | undefined>>;
|
|
1723
|
-
/** The known secrets and the credential-looking values, for `spawnAlchemy`'s stream redactor. Never in `env` or on the command line, which the engine may log. */
|
|
1724
|
-
readonly redactedValues: readonly string[];
|
|
1725
|
-
}
|
|
1726
|
-
/** The command line an invocation becomes, once a binary has been resolved. */
|
|
1727
|
-
interface AlchemyCommandLine {
|
|
1728
|
-
readonly command: string;
|
|
1729
|
-
readonly args: readonly string[];
|
|
1730
|
-
readonly cwd: string;
|
|
1731
|
-
readonly env: Readonly<Record<string, string | undefined>>;
|
|
1732
|
-
}
|
|
1733
|
-
/**
|
|
1734
|
-
* How the converge child ended, verbatim. A signal-killed child carries
|
|
1735
|
-
* `signal` and a null `exitCode`; callers branch on `signal` first, because a
|
|
1736
|
-
* signal-killed child is an abort, not a failure. Structurally the engine's
|
|
1737
|
-
* `ChildResult`, declared here so the control surface does not depend on the
|
|
1738
|
-
* engine.
|
|
1739
|
-
*/
|
|
1740
|
-
interface AlchemyOutcome {
|
|
1741
|
-
readonly exitCode: number | null;
|
|
1742
|
-
readonly signal: string | null;
|
|
1743
|
-
/** The command line the adapter started, when it can say; failures print it as the reproduce command. */
|
|
1744
|
-
readonly commandLine?: AlchemyCommandLine;
|
|
1745
|
-
}
|
|
1746
|
-
/** Starts the converge and resolves when it ends; `spawnAlchemy` by default. */
|
|
1747
|
-
type RunAlchemy = (invocation: AlchemyInvocation) => Promise<AlchemyOutcome>;
|
|
1748
|
-
//#endregion
|
|
1749
1699
|
//#region src/dev/value-reads-change.d.ts
|
|
1750
1700
|
/** A graph's value reads and the props of each value resource they read, as data a worker thread can receive. */
|
|
1751
1701
|
interface ValueReadsSnapshot {
|
|
@@ -1830,15 +1780,13 @@ interface ServiceEndpoint {
|
|
|
1830
1780
|
}
|
|
1831
1781
|
/**
|
|
1832
1782
|
* The operations' in-package injection seam — lets the CLI's own tests drive
|
|
1833
|
-
* them without a real wrapper build
|
|
1783
|
+
* them without a real wrapper build or Alchemy converge.
|
|
1834
1784
|
* Threaded through the *WithDeps variants, never part of the published
|
|
1835
1785
|
* surface: the fields mirror internal types.
|
|
1836
1786
|
*/
|
|
1837
1787
|
interface OperationDeps {
|
|
1838
1788
|
readonly runAssembler?: RunAssembler | undefined;
|
|
1839
|
-
/**
|
|
1840
|
-
readonly alchemy?: RunAlchemy | undefined;
|
|
1841
|
-
/** The `lower` and converge functions `deploy` runs; defaults to the app's own install (`loadAppConvergeEntry`). Tests substitute it. */
|
|
1789
|
+
/** The `lower` and converge functions `deploy` and `destroy` run; defaults to the app's own install (`loadAppConvergeEntry`). Tests substitute it. */
|
|
1842
1790
|
readonly appConvergeEntry?: AppConvergeEntry | undefined;
|
|
1843
1791
|
/** Runs one `dev` converge and reports its events; defaults to a new worker thread per converge (`runDevConvergeInWorker`). Tests substitute it. */
|
|
1844
1792
|
readonly runDevConverge?: RunDevConverge | undefined;
|
|
@@ -1852,7 +1800,7 @@ interface OperationDeps {
|
|
|
1852
1800
|
* engine's credential read, so no code below this point reads the
|
|
1853
1801
|
* environment for token material. Absent for hosts that have not adopted
|
|
1854
1802
|
* the seam — the container descriptors then fall back to the environment
|
|
1855
|
-
* protocol
|
|
1803
|
+
* protocol.
|
|
1856
1804
|
*
|
|
1857
1805
|
* Read by `deploy` and `destroy` only, because they are the operations that
|
|
1858
1806
|
* reach a PLATFORM container. `dev` and `log` resolve local targets, whose
|
|
@@ -1864,6 +1812,20 @@ interface OperationDeps {
|
|
|
1864
1812
|
}
|
|
1865
1813
|
//#endregion
|
|
1866
1814
|
//#region src/operations/steps.d.ts
|
|
1815
|
+
/** The steps a deploy and a destroy both run. */
|
|
1816
|
+
type StackStep = {
|
|
1817
|
+
readonly name: 'prepare' | 'assemble' | 'connect' | 'apply' | 'record';
|
|
1818
|
+
} | {
|
|
1819
|
+
readonly name: 'assemble-service';
|
|
1820
|
+
readonly address: string;
|
|
1821
|
+
} | {
|
|
1822
|
+
readonly name: 'apply-resource';
|
|
1823
|
+
/** The resource's ID (ADR-0057): its node's address, or the address and the resource's role in that node. */
|
|
1824
|
+
readonly resourceId: string;
|
|
1825
|
+
readonly resourceType: string;
|
|
1826
|
+
/** Alchemy's word for what is happening to the resource, such as `creating` or `created`, for people to read. It changes between a step's start and finish, and its values are Alchemy's, so do not branch on it. */
|
|
1827
|
+
readonly status: string;
|
|
1828
|
+
};
|
|
1867
1829
|
/** A step event, over the operation's own step type. */
|
|
1868
1830
|
type StepEvent<Step> = {
|
|
1869
1831
|
readonly kind: 'step-started';
|
|
@@ -2023,7 +1985,7 @@ interface KnownSecret {
|
|
|
2023
1985
|
}
|
|
2024
1986
|
/**
|
|
2025
1987
|
* The known secrets of one command: the values under the secrets keys the graph names, in the app
|
|
2026
|
-
* secrets and the app configuration (ADR-0062).
|
|
1988
|
+
* secrets and the app configuration (ADR-0062). A plain value must not hold any of them.
|
|
2027
1989
|
*/
|
|
2028
1990
|
declare class KnownSecrets {
|
|
2029
1991
|
#private;
|
|
@@ -2057,21 +2019,11 @@ declare class SecretRedaction {
|
|
|
2057
2019
|
redact(text: string): string;
|
|
2058
2020
|
}
|
|
2059
2021
|
//#endregion
|
|
2060
|
-
//#region ../../0-framework/3-tooling/cli/dist/dev-current-
|
|
2022
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-current-B6d98iUl.d.mts
|
|
2061
2023
|
//#region src/operations/deploy.d.ts
|
|
2062
2024
|
/** A deploy step. `assemble-service` steps run inside `assemble`, one per service, and `apply-resource` steps inside `apply`, one per resource Alchemy touches. */
|
|
2063
|
-
type DeployStep = {
|
|
2064
|
-
readonly name: '
|
|
2065
|
-
} | {
|
|
2066
|
-
readonly name: 'assemble-service';
|
|
2067
|
-
readonly address: string;
|
|
2068
|
-
} | {
|
|
2069
|
-
readonly name: 'apply-resource';
|
|
2070
|
-
/** The resource's ID (ADR-0057): its node's address, or the address and the resource's role in that node. */
|
|
2071
|
-
readonly resourceId: string;
|
|
2072
|
-
readonly resourceType: string;
|
|
2073
|
-
/** Alchemy's word for what is happening to the resource, such as `creating` or `created`, for people to read. It changes between a step's start and finish, and its values are Alchemy's, so do not branch on it. */
|
|
2074
|
-
readonly status: string;
|
|
2025
|
+
type DeployStep = StackStep | {
|
|
2026
|
+
readonly name: 'preflight';
|
|
2075
2027
|
};
|
|
2076
2028
|
type DeployEvent = StepEvent<DeployStep> |
|
|
2077
2029
|
/** Right after the preflight step, when it found platform variables with no value that no service needs. */
|
|
@@ -2173,16 +2125,9 @@ declare function devUrl(input: DevUrlInput): Promise<Result$1<DevUrl, CliStructu
|
|
|
2173
2125
|
/** Stops the app's local copy in the environment: its service processes and database servers. Data and ports stay. */
|
|
2174
2126
|
declare function devStop(input: DevStopInput): Promise<Result$1<DevStopped, CliStructuredError>>;
|
|
2175
2127
|
//#endregion
|
|
2176
|
-
//#region ../../0-framework/3-tooling/cli/dist/family-
|
|
2128
|
+
//#region ../../0-framework/3-tooling/cli/dist/family-5lQ0X01-.d.mts
|
|
2177
2129
|
//#region src/family/family.d.ts
|
|
2178
|
-
/**
|
|
2179
|
-
* The control-plane operations the family's handlers call. These are the
|
|
2180
|
-
* deps-taking variants, not the bare ones: a handler must inject the converge
|
|
2181
|
-
* spawn adapter (so the ENGINE starts the child and owns signal policy) and
|
|
2182
|
-
* the credentials the in-process leg authenticates with. A double that
|
|
2183
|
-
* honours `deps.alchemy` therefore exercises the real settlement path
|
|
2184
|
-
* against a scripted fake child.
|
|
2185
|
-
*/
|
|
2130
|
+
/** The control-plane operations the family's handlers call, which take the credentials the converge authenticates with. */
|
|
2186
2131
|
interface ComposerOperations {
|
|
2187
2132
|
readonly deploy: typeof deployWithDeps;
|
|
2188
2133
|
readonly dev: typeof devWithDeps;
|
|
@@ -2200,4 +2145,4 @@ interface CreateComposerFamilyOptions {
|
|
|
2200
2145
|
}
|
|
2201
2146
|
//#endregion
|
|
2202
2147
|
export { ServiceEndpoint as _, DeployEvent as a, DevStopInput as c, DevUrlInput as d, ComposerConfigSource as f, OperationDeps as g, DevSession as h, DEFAULT_DEPLOY_ENVIRONMENT as i, DevStopped as l, DevInput as m, CreateComposerFamilyOptions as n, DeployInput as o, DevEvent as p, realOperations as r, DeploySuccess as s, ComposerOperations as t, DevUrl as u, Result$1 as v, CliStructuredError as y };
|
|
2203
|
-
//# sourceMappingURL=family-
|
|
2148
|
+
//# sourceMappingURL=family-5lQ0X01--mh7Vm2zv.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-5lQ0X01--mh7Vm2zv.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../0-framework/0-foundation/foundation/dist/secret-CHOw4LBU.d.mts","../../../0-framework/0-foundation/foundation/dist/pointer-BX2KJ720.d.mts","../../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../0-framework/1-core/core/dist/graph-types-BeNeqIt4.d.mts","../../../0-framework/1-core/core/dist/app-config-Dhypzb6a.d.mts","../../../0-framework/3-tooling/cli/dist/converge-in-process-DZRf9uYm.d.mts","../../../0-framework/3-tooling/assemble/dist/index.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/1-core/core/dist/local-target.d.mts","../../../0-framework/3-tooling/cli/dist/redaction-msB1S2rG.d.mts","../../../0-framework/3-tooling/cli/dist/dev-current-B6d98iUl.d.mts","../../../0-framework/3-tooling/cli/dist/family-5lQ0X01-.d.mts"],"x_google_ignoreList":[3],"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;;;;;cCjGxB;cACA,UAAU;;YAEZ;EACV,YAAY,OAAO;;EAEnB,UAAU;EACV;EACA;EACA;GACC,OAAO;;;KAGL,eAAe;;;;cCZN;cACA;;KAET;UACK,gBAAgB,GAAG,UAAU;YAC3B,UAAU;YACV,gBAAgB;;;KAGvB,QAAQ,KAAK,gBAAgB,mBAAmB,IAAI,cAAc,UAAU;;;;UCVvE,gBAAgB,iBAAiB,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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;;;;;UCvGhE;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 { f as ComposerConfigSource, i as DEFAULT_DEPLOY_ENVIRONMENT, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, v as Result, y as CliStructuredError$1 } from "./family-
|
|
1
|
+
import { f as ComposerConfigSource, i as DEFAULT_DEPLOY_ENVIRONMENT, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, v as Result, y as CliStructuredError$1 } from "./family-5lQ0X01--mh7Vm2zv.mjs";
|
|
2
2
|
import { CommandFamily, ConfigSection, ManagementApiClient } from "@prisma/cli-engine";
|
|
3
3
|
import { CliStructuredError } from "@prisma/cli-engine/protocol";
|
|
4
4
|
import "effect/Effect";
|
package/dist/family.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { a as sectionMissing, t as checkComposerConfig } from "./composer-config-
|
|
2
|
-
import { t as SecretRedaction } from "./redaction-
|
|
3
|
-
import {
|
|
4
|
-
import { a as devUrl, i as devStop, o as devWithDeps, r as deployWithDeps, t as DEFAULT_DEPLOY_ENVIRONMENT } from "./dev-current-C7rT6Yxw-DdlXRvfz.mjs";
|
|
1
|
+
import { a as sectionMissing, t as checkComposerConfig } from "./composer-config-aL0W4HPG-CTpDJKz4.mjs";
|
|
2
|
+
import { t as SecretRedaction } from "./redaction-DHaXoToJ-zcuc7Sgf.mjs";
|
|
3
|
+
import { a as devUrl, i as devStop, o as devWithDeps, r as deployWithDeps, t as DEFAULT_DEPLOY_ENVIRONMENT } from "./dev-current-C7R8uqyQ-CgyoTX9q.mjs";
|
|
5
4
|
import { t as valueReadsChangeText } from "./value-reads-change-text-DcRCv7Zy-Ca8m3bal.mjs";
|
|
6
5
|
import * as path from "node:path";
|
|
7
6
|
import { format } from "node:util";
|
|
8
7
|
import { defineCommand, defineCommandFamily, defineConfigSection, defineSessionCommand, flag, positional } from "@prisma/cli-engine";
|
|
9
8
|
import { CliStructuredError, notOk, ok } from "@prisma/cli-engine/protocol";
|
|
10
|
-
//#region ../../0-framework/
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
//#region ../../0-framework/1-core/core/dist/config.mjs
|
|
10
|
+
/** One reader as the deploy prints it, for example `read by service "shop.email", field "apiKey"`. */
|
|
11
|
+
function platformVariableReaderText(reader) {
|
|
12
|
+
switch (reader.kind) {
|
|
13
|
+
case "field": return `read by service "${reader.service}", field "${reader.path === "" ? "(root)" : reader.path}"`;
|
|
14
|
+
case "unread": return `named by resource "${reader.node}", read by no service`;
|
|
15
|
+
}
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
18
|
//#region ../../0-framework/3-tooling/cli/dist/family.mjs
|
|
@@ -33,6 +34,11 @@ function fieldText(field) {
|
|
|
33
34
|
function dataLine(fields) {
|
|
34
35
|
return fields.map(fieldText).join(" ");
|
|
35
36
|
}
|
|
37
|
+
const variableLines = (variable) => [variable.readers.length === 0 ? ` - ${variable.name}` : ` - ${variable.name} (${variable.readers.map(platformVariableReaderText).join("; ")})`, ...variable.commands.map((command) => ` ${command}`)];
|
|
38
|
+
function unsetPlatformVariablesText(unset) {
|
|
39
|
+
if (unset.length === 0) return void 0;
|
|
40
|
+
return ["Platform variables with no value:", ...unset.flatMap(variableLines)].join("\n");
|
|
41
|
+
}
|
|
36
42
|
const METHODS = [
|
|
37
43
|
"log",
|
|
38
44
|
"info",
|
|
@@ -854,7 +860,7 @@ function createComposerFamily$1(options = {}) {
|
|
|
854
860
|
* assembled into the family here, where both domains may be imported.
|
|
855
861
|
*/
|
|
856
862
|
/** Loaded on first use, so nothing of the Management API reads loads with the family. */
|
|
857
|
-
const listDeployed = async (input) => (await import("./list-deployed-
|
|
863
|
+
const listDeployed = async (input) => (await import("./list-deployed-COZmPVO2.mjs")).listDeployed(input);
|
|
858
864
|
const createDeployListCommand = (list) => defineCommand({
|
|
859
865
|
help: {
|
|
860
866
|
summary: "List every node the app has deployed in an environment, with its platform ID and URL.",
|
|
@@ -933,7 +939,7 @@ const createDeployListCommand = (list) => defineCommand({
|
|
|
933
939
|
* family here, where both domains may be imported.
|
|
934
940
|
*/
|
|
935
941
|
/** Loaded on first use, so nothing of the emulators' clients loads with the family. */
|
|
936
|
-
const listEmulators = async () => (await import("./dist-
|
|
942
|
+
const listEmulators = async () => (await import("./dist-CZTXNHtS.mjs")).listEmulators();
|
|
937
943
|
const EMULATOR_NAMES = {
|
|
938
944
|
service: "Service emulator",
|
|
939
945
|
database: "Database emulator",
|