@prisma/composer-cli 0.39.0-dev.7 → 0.39.0-dev.9
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-C6Zrg2xM-DX-tW6C3.mjs +88 -0
- package/dist/app-converge-C6Zrg2xM-DX-tW6C3.mjs.map +1 -0
- package/dist/composer-config-QKdY85G--CEXrb2Uc.mjs +254 -0
- package/dist/composer-config-QKdY85G--CEXrb2Uc.mjs.map +1 -0
- package/dist/{validate-environment-XwVDifWN-BdYUHyVF.mjs → deploy-Br1yvLe3.mjs} +204 -1010
- package/dist/deploy-Br1yvLe3.mjs.map +1 -0
- package/dist/dev-converge-messages-DML4rTz7-B6uxtpZG.mjs +256 -0
- package/dist/dev-converge-messages-DML4rTz7-B6uxtpZG.mjs.map +1 -0
- package/dist/dev-converge-worker.d.mts +1 -0
- package/dist/dev-converge-worker.mjs +143 -0
- package/dist/dev-converge-worker.mjs.map +1 -0
- package/dist/{dev-current-gQnmjB4V-DrQ4Zzbl.mjs → dev-current-EqQbrtj5-DieSnSVx.mjs} +12 -18
- package/dist/dev-current-EqQbrtj5-DieSnSVx.mjs.map +1 -0
- package/dist/dev-environment-name-6eEr5PW8-CCY7WNWz.mjs +43 -0
- package/dist/dev-environment-name-6eEr5PW8-CCY7WNWz.mjs.map +1 -0
- package/dist/{dist-CRSv_9L8.mjs → dist-C0OGaDnj.mjs} +4 -3
- package/dist/{dist-CRSv_9L8.mjs.map → dist-C0OGaDnj.mjs.map} +1 -1
- package/dist/errors-CVYwN2km.mjs +93 -0
- package/dist/errors-CVYwN2km.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-DKbsBkqK-D8pniqZg.mjs → execute-deploy-destroy-DKEmb8WI-DcgNdw4b.mjs} +245 -244
- package/dist/execute-deploy-destroy-DKEmb8WI-DcgNdw4b.mjs.map +1 -0
- package/dist/{execute-dev-DVCWURmI-D91UZq1o.mjs → execute-dev-C42niIFY-Dh_7dJ5W.mjs} +422 -166
- package/dist/execute-dev-C42niIFY-Dh_7dJ5W.mjs.map +1 -0
- package/dist/{execute-dev-current-Dt_9srY2-D8mAcSv4.mjs → execute-dev-current-AVT4zQ8F--qMLJobM.mjs} +9 -6
- package/dist/{execute-dev-current-Dt_9srY2-D8mAcSv4.mjs.map → execute-dev-current-AVT4zQ8F--qMLJobM.mjs.map} +1 -1
- package/dist/{family-D52hWFMF-FfSJ5SN2.d.mts → family-DfwviKFj-CS1L-EvS.d.mts} +171 -69
- package/dist/family-DfwviKFj-CS1L-EvS.d.mts.map +1 -0
- package/dist/family.d.mts +1 -1
- package/dist/family.mjs +87 -137
- package/dist/family.mjs.map +1 -1
- package/dist/internal-error-Dfur7Zqt-B8J8e7ac.mjs +58 -0
- package/dist/internal-error-Dfur7Zqt-B8J8e7ac.mjs.map +1 -0
- package/dist/{list-deployed-CIaiiV_l.mjs → list-deployed-C1cwFHrb.mjs} +5 -4
- package/dist/{list-deployed-CIaiiV_l.mjs.map → list-deployed-C1cwFHrb.mjs.map} +1 -1
- package/dist/local-target-CZzICh5R.mjs +34 -0
- package/dist/local-target-CZzICh5R.mjs.map +1 -0
- package/dist/preflight-transport-2d6iIchu-ArIJUY1L.mjs +56 -0
- package/dist/preflight-transport-2d6iIchu-ArIJUY1L.mjs.map +1 -0
- package/dist/{redaction-CjMYXtGp-CYefSG9A.mjs → redaction-DY6eDC12-BrK1aSN5.mjs} +17 -256
- package/dist/redaction-DY6eDC12-BrK1aSN5.mjs.map +1 -0
- package/dist/result-CttmabB6.mjs +91 -0
- package/dist/result-CttmabB6.mjs.map +1 -0
- package/dist/rolldown-runtime-C7HZzL1F.mjs +26 -0
- package/dist/steps-BZXNqW6U-BM2Aa8Bp.mjs +287 -0
- package/dist/steps-BZXNqW6U-BM2Aa8Bp.mjs.map +1 -0
- package/dist/testing.d.mts +2 -42
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +2 -5
- package/dist/testing.mjs.map +1 -1
- package/dist/validate-environment-DCZiNSlR-idVge-kq.mjs +983 -0
- package/dist/validate-environment-DCZiNSlR-idVge-kq.mjs.map +1 -0
- package/dist/value-reads-change-text-DcRCv7Zy-Ca8m3bal.mjs +15 -0
- package/dist/value-reads-change-text-DcRCv7Zy-Ca8m3bal.mjs.map +1 -0
- package/package.json +7 -7
- package/src/exports/dev-converge-worker.ts +2 -0
- package/src/exports/testing.ts +1 -4
- package/dist/app-configuration-file-Bbfq5PR3-CYdGtitc.mjs +0 -137
- package/dist/app-configuration-file-Bbfq5PR3-CYdGtitc.mjs.map +0 -1
- package/dist/dev-current-gQnmjB4V-DrQ4Zzbl.mjs.map +0 -1
- package/dist/dev-environment-name-6eEr5PW8-kDiScOL8.mjs +0 -71
- package/dist/dev-environment-name-6eEr5PW8-kDiScOL8.mjs.map +0 -1
- package/dist/execute-deploy-destroy-DKbsBkqK-D8pniqZg.mjs.map +0 -1
- package/dist/execute-dev-DVCWURmI-D91UZq1o.mjs.map +0 -1
- package/dist/family-D52hWFMF-FfSJ5SN2.d.mts.map +0 -1
- package/dist/generate-dev-stack-BEpqJ3AH-B7o7JyER.mjs +0 -100
- package/dist/generate-dev-stack-BEpqJ3AH-B7o7JyER.mjs.map +0 -1
- package/dist/redaction-CjMYXtGp-CYefSG9A.mjs.map +0 -1
- package/dist/result-DlBttLS8.mjs +0 -234
- package/dist/result-DlBttLS8.mjs.map +0 -1
- package/dist/run-alchemy-BlYyc4Oh-BnFv0AaY.mjs +0 -302
- package/dist/run-alchemy-BlYyc4Oh-BnFv0AaY.mjs.map +0 -1
- package/dist/validate-environment-XwVDifWN-BdYUHyVF.mjs.map +0 -1
|
@@ -3,10 +3,10 @@ import * as Alchemy from "alchemy";
|
|
|
3
3
|
import { Input, StackServices } from "alchemy";
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
|
-
import { State } from "alchemy/State/State";
|
|
7
|
-
import "alchemy/Provider";
|
|
8
6
|
import "alchemy/Alchemist";
|
|
9
7
|
import "effect/Cause";
|
|
8
|
+
import { State } from "alchemy/State/State";
|
|
9
|
+
import "alchemy/Provider";
|
|
10
10
|
//#region ../../0-framework/0-foundation/foundation/dist/errors.d.mts
|
|
11
11
|
//#region src/structured-error.d.ts
|
|
12
12
|
interface StructuredError extends Error {
|
|
@@ -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-D4PrtP-l.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
|
|
@@ -678,9 +678,10 @@ interface RootInputField {
|
|
|
678
678
|
readonly value?: unknown;
|
|
679
679
|
}
|
|
680
680
|
/**
|
|
681
|
-
* What a Load read from the app configuration (ADR-0062).
|
|
682
|
-
*
|
|
683
|
-
*
|
|
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` (in its
|
|
683
|
+
* converge worker thread), and `destroy`'s second process, which reads it from the app
|
|
684
|
+
* configuration file.
|
|
684
685
|
*/
|
|
685
686
|
interface AppConfigurationRead {
|
|
686
687
|
/** 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. */
|
|
@@ -797,7 +798,7 @@ interface Graph {
|
|
|
797
798
|
readonly appConfigurationRead: AppConfigurationRead;
|
|
798
799
|
}
|
|
799
800
|
//#endregion
|
|
800
|
-
//#region ../../0-framework/1-core/core/dist/app-config-
|
|
801
|
+
//#region ../../0-framework/1-core/core/dist/app-config-DriAu5RU.d.mts
|
|
801
802
|
//#region src/caller-credentials.d.ts
|
|
802
803
|
/**
|
|
803
804
|
* What the caller has already authenticated, handed unchanged to every
|
|
@@ -1047,7 +1048,7 @@ interface DeploymentResult {
|
|
|
1047
1048
|
interface LowerOptions {
|
|
1048
1049
|
/** Stack + root node id. */
|
|
1049
1050
|
readonly name: string;
|
|
1050
|
-
/** The environment being deployed, as `--environment` gave it. Required by any value over `environment.name`;
|
|
1051
|
+
/** The environment being deployed, as `--environment` gave it. Required by any value over `environment.name`; every caller passes it. */
|
|
1051
1052
|
readonly environment?: string;
|
|
1052
1053
|
/** What the caller's Load read from the app configuration (ADR-0062). Load takes the root's input from it. */
|
|
1053
1054
|
readonly appConfigurationRead?: AppConfigurationRead;
|
|
@@ -1056,7 +1057,7 @@ interface LowerOptions {
|
|
|
1056
1057
|
readonly bundles: Record<string, Bundle>;
|
|
1057
1058
|
/** Alchemy state store for the stack. Defaults to the config's own state layer. */
|
|
1058
1059
|
readonly state?: AlchemyStateLayer;
|
|
1059
|
-
/** Explicit provider set for the stack. Defaults to the config's own merged `providers()` (`mergedProviders`) — the same override precedence as `state`.
|
|
1060
|
+
/** Explicit provider set for the stack. Defaults to the config's own merged `providers()` (`mergedProviders`) — the same override precedence as `state`. `prisma dev` passes `localTargetProviders(...)` here (ADR-0041); `lower()` itself learns nothing about the local target. */
|
|
1060
1061
|
readonly providers?: Layer.Layer<never>;
|
|
1061
1062
|
/**
|
|
1062
1063
|
* Invoked once per deploy, during apply, with the Deploy operation's result
|
|
@@ -1066,7 +1067,7 @@ interface LowerOptions {
|
|
|
1066
1067
|
* declared at all.
|
|
1067
1068
|
*/
|
|
1068
1069
|
readonly report?: (result: DeploymentResult) => void;
|
|
1069
|
-
/** Addresses lowered without an artifact: `package` and `deploy` are skipped and `reserve` runs instead (ADR-0056). Only
|
|
1070
|
+
/** Addresses lowered without an artifact: `package` and `deploy` are skipped and `reserve` runs instead (ADR-0056). Only `prisma dev` sets it. */
|
|
1070
1071
|
readonly unassembled?: readonly string[];
|
|
1071
1072
|
/** Each extension's resolved container, by extension id. Pass both `containers` and `preflightPayloads`, or neither. When both are absent, `lower()` reads both from the environment transports through `transportedLowerInputs(config)`. When exactly one is passed, `lower()` throws. */
|
|
1072
1073
|
readonly containers?: ReadonlyMap<string, ContainerInstance> | undefined;
|
|
@@ -1163,10 +1164,10 @@ interface ExtensionDescriptor {
|
|
|
1163
1164
|
* platform variable a service needs has a value) and throws to abort the
|
|
1164
1165
|
* deploy. Async: it talks to the platform (ADR-0064).
|
|
1165
1166
|
*
|
|
1166
|
-
* What it returns
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
*
|
|
1167
|
+
* What it returns reaches this same extension's lowering as
|
|
1168
|
+
* `LowerContext.preflight`: as a value under `deploy` and `prisma dev`, and
|
|
1169
|
+
* through the environment (preflight-transport.ts) for `destroy`'s alchemy
|
|
1170
|
+
* child, which re-imports the config from scratch. The payload
|
|
1170
1171
|
* is the extension's own opaque string; the framework never reads it, and a
|
|
1171
1172
|
* secret value must never go in it. What it hands `input.report` reaches the
|
|
1172
1173
|
* deploy report through the framework's own transport, not this payload.
|
|
@@ -1430,7 +1431,7 @@ interface LocalTargetProvidersInput {
|
|
|
1430
1431
|
readonly devDir: string;
|
|
1431
1432
|
/** The text of each plain platform variable a service reads, by name. Never a secret. */
|
|
1432
1433
|
readonly plainVariableText: Readonly<Record<string, string>>;
|
|
1433
|
-
/** The app secrets the graph's platform secrets name, which
|
|
1434
|
+
/** The app secrets the graph's platform secrets name, which `prisma dev` hands its converge worker thread in memory. A local deployment takes the text its secret `$platform` markers name from it. */
|
|
1434
1435
|
readonly namedSecrets: NamedSecrets;
|
|
1435
1436
|
}
|
|
1436
1437
|
interface LocalTargetEmulatorsInput {
|
|
@@ -1518,9 +1519,9 @@ type ConfigValues = Readonly<Record<string, unknown>>;
|
|
|
1518
1519
|
type ConfigAdapter = (input: ConfigAdapterInput) => ConfigValues | Promise<ConfigValues>;
|
|
1519
1520
|
/** 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. */
|
|
1520
1521
|
type AppConfiguration = Readonly<Record<string, unknown>>;
|
|
1521
|
-
/** The app secrets (ADR-0062): what the `secrets` adapters return, merged the same way. Every value is text. Nothing fills a platform variable from them. `prisma dev` hands
|
|
1522
|
+
/** The app secrets (ADR-0062): what the `secrets` adapters return, merged the same way. Every value is text. Nothing fills a platform variable from them. `prisma dev` hands the local target's providers the values under the secrets keys of the graph's secret sources, and Composer redacts those values wherever it prints. */
|
|
1522
1523
|
type AppSecrets = Readonly<Record<string, string>>;
|
|
1523
|
-
/** The app secrets under the secrets keys of the graph's secret sources, each with text. `prisma dev`
|
|
1524
|
+
/** The app secrets under the secrets keys of the graph's secret sources, each with text. `prisma dev` hands them to the local target's providers, in memory. */
|
|
1524
1525
|
type NamedSecrets = Readonly<Record<string, string>>;
|
|
1525
1526
|
/**
|
|
1526
1527
|
* The config file's default export. `extensions` lists every extension the
|
|
@@ -1554,7 +1555,7 @@ interface DeploymentSummary {
|
|
|
1554
1555
|
readonly findings: PreflightFindings;
|
|
1555
1556
|
}
|
|
1556
1557
|
//#endregion
|
|
1557
|
-
//#region ../../0-framework/3-tooling/cli/dist/converge-in-process-
|
|
1558
|
+
//#region ../../0-framework/3-tooling/cli/dist/converge-in-process-CTomEXaD.d.mts
|
|
1558
1559
|
//#region src/converge-in-process.d.ts
|
|
1559
1560
|
/** What `lower()` returns: the stack value `Alchemist.plan` takes. */
|
|
1560
1561
|
type LoweredStack = ReturnType<typeof lower>;
|
|
@@ -1608,14 +1609,6 @@ type ConvergeOutcome = {
|
|
|
1608
1609
|
type Converge = (request: ConvergeRequest) => Promise<ConvergeOutcome>;
|
|
1609
1610
|
//#endregion
|
|
1610
1611
|
//#region ../../0-framework/3-tooling/assemble/dist/index.d.mts
|
|
1611
|
-
//#endregion
|
|
1612
|
-
//#region src/assemble-services.d.ts
|
|
1613
|
-
interface AssembledServices {
|
|
1614
|
-
/** One bundle per assembled service, keyed by the service's full hierarchical address (its graph id). A service with a dev server has none. */
|
|
1615
|
-
readonly bundles: Record<string, Bundle>;
|
|
1616
|
-
/** One dev server per service that runs one, keyed by address (ADR-0056). Empty under `prisma deploy`. */
|
|
1617
|
-
readonly devServers: Record<string, DevServer>;
|
|
1618
|
-
}
|
|
1619
1612
|
/** What a build adapter measured during one assemble, for progress output. Never read here. */
|
|
1620
1613
|
type AssembleReport = (data: Readonly<Record<string, string | number>>) => void;
|
|
1621
1614
|
/** Assembles one service node — the seam tests substitute to avoid a real build. */
|
|
@@ -1649,7 +1642,19 @@ interface NotOk<F> {
|
|
|
1649
1642
|
*/
|
|
1650
1643
|
type Result$1<T, F> = Ok<T> | NotOk<F>;
|
|
1651
1644
|
//#endregion
|
|
1652
|
-
//#region ../../0-framework/
|
|
1645
|
+
//#region ../../0-framework/1-core/core/dist/local-target.d.mts
|
|
1646
|
+
/**
|
|
1647
|
+
* All configured extensions' local-target providers merged, config array
|
|
1648
|
+
* order (ADR-0041), from the ALREADY-RESOLVED descriptor map
|
|
1649
|
+
* (`resolveLocalTargets`'s product — this function itself never touches a
|
|
1650
|
+
* `localTarget` thunk). `prisma dev`'s converge worker thread is this
|
|
1651
|
+
* aggregator's one caller, passing the result as `LowerOptions.providers`.
|
|
1652
|
+
*/
|
|
1653
|
+
declare function localTargetProviders(resolved: ReadonlyMap<string, LocalTargetDescriptor>, containers: ReadonlyMap<string, ContainerInstance>, devDir: string, plainVariableText: Readonly<Record<string, string>>, namedSecrets: NamedSecrets): Layer.Layer<never>;
|
|
1654
|
+
/** The state store `prisma dev` converges against: Alchemy's file store in the app's working directory. */
|
|
1655
|
+
declare function devState(): AlchemyStateLayer;
|
|
1656
|
+
//#endregion
|
|
1657
|
+
//#region ../../0-framework/3-tooling/cli/dist/redaction-Dn7BRdaP.d.mts
|
|
1653
1658
|
//#region src/composer-config.d.ts
|
|
1654
1659
|
/** Composer's configuration and the `prisma.config.ts` that declares it. */
|
|
1655
1660
|
interface ComposerConfigSource {
|
|
@@ -1660,10 +1665,12 @@ interface ComposerConfigSource {
|
|
|
1660
1665
|
}
|
|
1661
1666
|
//#endregion
|
|
1662
1667
|
//#region src/app-converge.d.ts
|
|
1663
|
-
/** The app install's `lower
|
|
1668
|
+
/** The app install's `lower`, its converge (`convergeInProcess`), and the local target's providers and state store for `prisma dev`. */
|
|
1664
1669
|
interface AppConvergeEntry {
|
|
1665
1670
|
readonly lower: typeof lower;
|
|
1666
1671
|
readonly converge: Converge;
|
|
1672
|
+
readonly localTargetProviders: typeof localTargetProviders;
|
|
1673
|
+
readonly devState: typeof devState;
|
|
1667
1674
|
}
|
|
1668
1675
|
//#endregion
|
|
1669
1676
|
//#region src/dev/watch.d.ts
|
|
@@ -1688,7 +1695,9 @@ interface WatchHandle {
|
|
|
1688
1695
|
* watched file; proven by the delete-recreate test failing on Linux CI
|
|
1689
1696
|
* only). Directory targets are watched recursively as themselves; a
|
|
1690
1697
|
* nonexistent path is treated as a file target, so it starts reporting the
|
|
1691
|
-
* moment something creates it.
|
|
1698
|
+
* moment something creates it. A file whose directory does not exist yet is
|
|
1699
|
+
* watched through its nearest existing ancestor, following only the
|
|
1700
|
+
* directories on the way to it.
|
|
1692
1701
|
*/
|
|
1693
1702
|
declare function startWatch(targets: readonly WatchTarget[], onChange: () => void, onError?: (error: unknown) => void): WatchHandle;
|
|
1694
1703
|
//#endregion
|
|
@@ -1711,7 +1720,7 @@ interface AlchemyInvocation {
|
|
|
1711
1720
|
readonly cwd: string;
|
|
1712
1721
|
readonly stage: string;
|
|
1713
1722
|
readonly env: Readonly<Record<string, string | undefined>>;
|
|
1714
|
-
/** The known secrets and the credential-looking values, for `spawnAlchemy`'s stream redactor
|
|
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. */
|
|
1715
1724
|
readonly redactedValues: readonly string[];
|
|
1716
1725
|
}
|
|
1717
1726
|
/** The command line an invocation becomes, once a binary has been resolved. */
|
|
@@ -1734,12 +1743,82 @@ interface AlchemyOutcome {
|
|
|
1734
1743
|
/** The command line the adapter started, when it can say; failures print it as the reproduce command. */
|
|
1735
1744
|
readonly commandLine?: AlchemyCommandLine;
|
|
1736
1745
|
}
|
|
1737
|
-
/** Starts the converge and resolves when it ends
|
|
1738
|
-
* by `ctx.spawn`, which gives the child the terminal and does not redact its
|
|
1739
|
-
* output; hosts get `spawnAlchemy`, which pipes the output through the stream
|
|
1740
|
-
* redactor (ADR-0062). */
|
|
1746
|
+
/** Starts the converge and resolves when it ends; `spawnAlchemy` by default. */
|
|
1741
1747
|
type RunAlchemy = (invocation: AlchemyInvocation) => Promise<AlchemyOutcome>;
|
|
1742
1748
|
//#endregion
|
|
1749
|
+
//#region src/dev/value-reads-change.d.ts
|
|
1750
|
+
/** A graph's value reads and the props of each value resource they read, as data a worker thread can receive. */
|
|
1751
|
+
interface ValueReadsSnapshot {
|
|
1752
|
+
readonly reads: readonly ValueRead[];
|
|
1753
|
+
readonly props: Readonly<Record<string, unknown>>;
|
|
1754
|
+
}
|
|
1755
|
+
interface ValueReadsChange {
|
|
1756
|
+
readonly added: readonly string[];
|
|
1757
|
+
readonly removed: readonly string[];
|
|
1758
|
+
readonly changed: readonly string[];
|
|
1759
|
+
}
|
|
1760
|
+
//#endregion
|
|
1761
|
+
//#region src/operations/dev-converge.d.ts
|
|
1762
|
+
/** Everything a dev converge needs from the session, as data a worker thread can receive. */
|
|
1763
|
+
interface DevConvergeJob {
|
|
1764
|
+
/** The `prisma.config.ts` that declares the `composer` section. Absolute. */
|
|
1765
|
+
readonly configFile: string;
|
|
1766
|
+
/** The entry module. Absolute. */
|
|
1767
|
+
readonly entry: string;
|
|
1768
|
+
/** Where the app's own `@prisma/composer` resolves from. */
|
|
1769
|
+
readonly appDir: string;
|
|
1770
|
+
readonly cwd: string;
|
|
1771
|
+
readonly name: string;
|
|
1772
|
+
readonly environment: string;
|
|
1773
|
+
readonly appConfigurationRead: AppConfigurationRead;
|
|
1774
|
+
/** Each service's assembled bundle: only the fields lowering reads. */
|
|
1775
|
+
readonly bundles: Readonly<Record<string, {
|
|
1776
|
+
readonly dir: string;
|
|
1777
|
+
readonly entry: string;
|
|
1778
|
+
}>>;
|
|
1779
|
+
readonly unassembled: readonly string[];
|
|
1780
|
+
/** Each extension's local container, as its `serialize()` text, by extension id. */
|
|
1781
|
+
readonly containers: Readonly<Record<string, string>>;
|
|
1782
|
+
readonly preflightPayloads: Readonly<Record<string, string>>;
|
|
1783
|
+
readonly devDir: string;
|
|
1784
|
+
readonly plainVariableText: Readonly<Record<string, string>>;
|
|
1785
|
+
readonly namedSecrets: Readonly<Record<string, string>>;
|
|
1786
|
+
/** The node addresses of the graph the session started with. */
|
|
1787
|
+
readonly nodeAddresses: readonly string[];
|
|
1788
|
+
/** The value reads of the graph the session started with. */
|
|
1789
|
+
readonly valueReads: ValueReadsSnapshot;
|
|
1790
|
+
}
|
|
1791
|
+
/** Where a dev converge reports what happens while it runs. */
|
|
1792
|
+
interface DevConvergeReport {
|
|
1793
|
+
readonly onEvent: (event: ConvergeEvent) => void;
|
|
1794
|
+
/** Text written to the terminal while it runs: Alchemy's own, and anything the app's code prints. */
|
|
1795
|
+
readonly output: (text: string) => void;
|
|
1796
|
+
}
|
|
1797
|
+
/**
|
|
1798
|
+
* What one dev converge came to; each variant lists the app files the converge's import loaded.
|
|
1799
|
+
* `outcome`: the converge ran, or the runner refused or ended it, to this outcome.
|
|
1800
|
+
* `error`: a structured error stopped it before it began, as its envelope.
|
|
1801
|
+
* `value-reads-changed`: the app now reads other platform variables than the session prepared
|
|
1802
|
+
* for, so nothing was converged.
|
|
1803
|
+
*/
|
|
1804
|
+
type DevConvergeResult = {
|
|
1805
|
+
readonly kind: 'outcome';
|
|
1806
|
+
readonly outcome: ConvergeOutcome;
|
|
1807
|
+
readonly appFiles: readonly string[];
|
|
1808
|
+
} | {
|
|
1809
|
+
readonly kind: 'error';
|
|
1810
|
+
readonly error: CliErrorEnvelope;
|
|
1811
|
+
/** Set when the runtime keeps the failed lookup of a directory import that would now succeed, so only a new process loads it. */
|
|
1812
|
+
readonly lookupKept?: true;
|
|
1813
|
+
readonly appFiles: readonly string[];
|
|
1814
|
+
} | {
|
|
1815
|
+
readonly kind: 'value-reads-changed';
|
|
1816
|
+
readonly change: ValueReadsChange;
|
|
1817
|
+
readonly appFiles: readonly string[];
|
|
1818
|
+
};
|
|
1819
|
+
/** Runs one dev converge and reports its events. Never rejects: every failure is a result. */
|
|
1820
|
+
type RunDevConverge = (job: DevConvergeJob, report: DevConvergeReport, signal?: AbortSignal) => Promise<DevConvergeResult>;
|
|
1821
|
+
//#endregion
|
|
1743
1822
|
//#region src/operations/shared.d.ts
|
|
1744
1823
|
/** A running service's dotted address plus its local URL — what `dev` reports
|
|
1745
1824
|
* as the front door and `log` reports as the tailable services. */
|
|
@@ -1751,21 +1830,19 @@ interface ServiceEndpoint {
|
|
|
1751
1830
|
}
|
|
1752
1831
|
/**
|
|
1753
1832
|
* The operations' in-package injection seam — lets the CLI's own tests drive
|
|
1754
|
-
* them without a real wrapper build or alchemy process.
|
|
1833
|
+
* them without a real wrapper build, Alchemy converge or alchemy process.
|
|
1755
1834
|
* Threaded through the *WithDeps variants, never part of the published
|
|
1756
1835
|
* surface: the fields mirror internal types.
|
|
1757
1836
|
*/
|
|
1758
1837
|
interface OperationDeps {
|
|
1759
1838
|
readonly runAssembler?: RunAssembler | undefined;
|
|
1760
|
-
/**
|
|
1761
|
-
* Starts the converge child for `destroy` and `dev`. The CLI passes one
|
|
1762
|
-
* backed by the engine's `ctx.spawn`, so the terminal reaches the child
|
|
1763
|
-
* natively and the engine owns signal policy; hosts get the default `spawnAlchemy`.
|
|
1764
|
-
*/
|
|
1839
|
+
/** Starts the converge child for `destroy`; defaults to `spawnAlchemy`. Tests substitute it. */
|
|
1765
1840
|
readonly alchemy?: RunAlchemy | undefined;
|
|
1766
|
-
/** The `lower` and converge `deploy` runs; defaults to the app's own install (`loadAppConvergeEntry`). Tests substitute it. */
|
|
1841
|
+
/** The `lower` and converge functions `deploy` runs; defaults to the app's own install (`loadAppConvergeEntry`). Tests substitute it. */
|
|
1767
1842
|
readonly appConvergeEntry?: AppConvergeEntry | undefined;
|
|
1768
|
-
/**
|
|
1843
|
+
/** Runs one `dev` converge and reports its events; defaults to a new worker thread per converge (`runDevConvergeInWorker`). Tests substitute it. */
|
|
1844
|
+
readonly runDevConverge?: RunDevConverge | undefined;
|
|
1845
|
+
/** What `deploy` and `dev` redact from everything they report. Defaults to one built from `process.env`; the CLI passes its own so its console redirect redacts the same values. */
|
|
1769
1846
|
readonly redaction?: SecretRedaction | undefined;
|
|
1770
1847
|
/** Starts a file watch for `dev`; defaults to chokidar-backed `startWatch`. Tests substitute it to drive changes directly. */
|
|
1771
1848
|
readonly watch?: typeof startWatch | undefined;
|
|
@@ -1786,8 +1863,43 @@ interface OperationDeps {
|
|
|
1786
1863
|
readonly credentials?: CallerCredentials | undefined;
|
|
1787
1864
|
}
|
|
1788
1865
|
//#endregion
|
|
1866
|
+
//#region src/operations/steps.d.ts
|
|
1867
|
+
/** A step event, over the operation's own step type. */
|
|
1868
|
+
type StepEvent<Step> = {
|
|
1869
|
+
readonly kind: 'step-started';
|
|
1870
|
+
readonly step: Step;
|
|
1871
|
+
} | {
|
|
1872
|
+
readonly kind: 'message';
|
|
1873
|
+
readonly severity: 'info' | 'warn' | 'verbose';
|
|
1874
|
+
/** A line Alchemy logged while it planned or applied. */
|
|
1875
|
+
readonly text: string;
|
|
1876
|
+
} | {
|
|
1877
|
+
readonly kind: 'step-finished';
|
|
1878
|
+
readonly step: Step;
|
|
1879
|
+
readonly outcome: 'ok' | 'failed';
|
|
1880
|
+
readonly durationMs: number;
|
|
1881
|
+
/** What the step measured, as its build adapter or deploy target reported it. The fields vary by adapter and target. */
|
|
1882
|
+
readonly data?: Readonly<Record<string, string | number>> | undefined;
|
|
1883
|
+
};
|
|
1884
|
+
//#endregion
|
|
1789
1885
|
//#region src/operations/dev.d.ts
|
|
1886
|
+
/** A step of a converge. Each converge is one `converge` step, `dev.converge` for the first and `dev.rebuild.<n>` for the n-th rebuild, and each resource Alchemy touches is an `apply-resource` step inside it. */
|
|
1887
|
+
type DevStep = {
|
|
1888
|
+
readonly name: 'converge';
|
|
1889
|
+
readonly id: string;
|
|
1890
|
+
} | {
|
|
1891
|
+
readonly name: 'apply-resource';
|
|
1892
|
+
/** The id of the converge step it belongs to. */
|
|
1893
|
+
readonly converge: string;
|
|
1894
|
+
/** The resource's ID (ADR-0057): its node's address, or the address and the resource's role in that node. */
|
|
1895
|
+
readonly resourceId: string;
|
|
1896
|
+
readonly resourceType: string;
|
|
1897
|
+
/** Alchemy's status word for what is happening to it, such as `creating` or `created`. */
|
|
1898
|
+
readonly status: string;
|
|
1899
|
+
};
|
|
1790
1900
|
type DevEvent =
|
|
1901
|
+
/** A converge's steps and Alchemy's log lines. Every step a converge opens is finished when it ends, as `failed` when it failed or was interrupted. */
|
|
1902
|
+
StepEvent<DevStep> |
|
|
1791
1903
|
/** Initial front door + after each successful re-converge. */
|
|
1792
1904
|
{
|
|
1793
1905
|
readonly kind: 'ready';
|
|
@@ -1825,12 +1937,15 @@ type DevEvent =
|
|
|
1825
1937
|
readonly removed: readonly string[];
|
|
1826
1938
|
readonly changed: readonly string[];
|
|
1827
1939
|
} |
|
|
1828
|
-
/** The app keeps running, still watching. */
|
|
1940
|
+
/** A rebuild's converge failed, or was refused: `DEV.CONVERGE_RUNNING` when another converge on this thread holds the process state, `DEV.WORKER_THREAD` when dev was called from a thread that cannot change the process's working directory. The app keeps running, still watching. */
|
|
1829
1941
|
{
|
|
1830
1942
|
readonly kind: 'converge-failed';
|
|
1831
|
-
readonly
|
|
1832
|
-
readonly
|
|
1833
|
-
readonly
|
|
1943
|
+
readonly code: 'DEV.CONVERGE_FAILED' | 'DEV.CONVERGE_RUNNING' | 'DEV.WORKER_THREAD';
|
|
1944
|
+
readonly message: string;
|
|
1945
|
+
readonly reasons: readonly {
|
|
1946
|
+
readonly tag: string;
|
|
1947
|
+
readonly message: string;
|
|
1948
|
+
}[];
|
|
1834
1949
|
} |
|
|
1835
1950
|
/** Once per service that runs its build adapter's dev server, before the first converge (ADR-0056). `cwd` is absolute. */
|
|
1836
1951
|
{
|
|
@@ -1878,16 +1993,18 @@ interface DevInput {
|
|
|
1878
1993
|
* `devStop` stops the app later.
|
|
1879
1994
|
*/
|
|
1880
1995
|
readonly detach?: boolean | undefined;
|
|
1996
|
+
/** The app's directory, where `.prisma-composer/` and Alchemy's `.alchemy` live. Defaults to `process.cwd()`. For the length of each converge, the process's working directory is `cwd`; it is restored after. */
|
|
1881
1997
|
readonly cwd?: string | undefined;
|
|
1882
1998
|
readonly onEvent?: ((event: DevEvent) => void) | undefined;
|
|
1999
|
+
/** Interrupts a running converge and stops dev. During the first converge, dev then fails with `DEV.INTERRUPTED`; once the session has started, it stops as `stop()` stops it. Only one converge runs at a time on the thread that called dev, which holds the converge flag while dev's converge worker runs: a `deploy` on that thread while dev converges is refused, and so is a dev converge while a deploy runs there. A converge on another thread of the process is not refused. */
|
|
2000
|
+
readonly signal?: AbortSignal | undefined;
|
|
1883
2001
|
}
|
|
1884
|
-
/** A running dev session. The operation NEVER touches process signal handlers
|
|
1885
|
-
* the host owns signals (and must evict alchemy's import-time SIGINT/SIGTERM
|
|
1886
|
-
* listeners before installing its own; see run-dev.ts). */
|
|
2002
|
+
/** A running dev session. The operation NEVER touches process signal handlers: the host owns signals. */
|
|
1887
2003
|
interface DevSession {
|
|
1888
2004
|
/** The initial front door, already merged across attachments. */
|
|
1889
2005
|
readonly endpoints: readonly ServiceEndpoint[];
|
|
1890
2006
|
/** Stop the watch loop and the app's services (emulators and data stay up).
|
|
2007
|
+
* A converge still running is interrupted, and its worker thread ends before the services stop.
|
|
1891
2008
|
* Idempotent; emits 'stopping'/'stopped'; resolves `closed`. A no-op for a detached session. */
|
|
1892
2009
|
stop(): Promise<void>;
|
|
1893
2010
|
/** Settles when the session has fully stopped (via stop()); already settled for a detached session. */
|
|
@@ -1940,7 +2057,7 @@ declare class SecretRedaction {
|
|
|
1940
2057
|
redact(text: string): string;
|
|
1941
2058
|
}
|
|
1942
2059
|
//#endregion
|
|
1943
|
-
//#region ../../0-framework/3-tooling/cli/dist/dev-current-
|
|
2060
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-current-BiJzvHNz.d.mts
|
|
1944
2061
|
//#region src/operations/deploy.d.ts
|
|
1945
2062
|
/** A deploy step. `assemble-service` steps run inside `assemble`, one per service, and `apply-resource` steps inside `apply`, one per resource Alchemy touches. */
|
|
1946
2063
|
type DeployStep = {
|
|
@@ -1956,22 +2073,7 @@ type DeployStep = {
|
|
|
1956
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. */
|
|
1957
2074
|
readonly status: string;
|
|
1958
2075
|
};
|
|
1959
|
-
type DeployEvent =
|
|
1960
|
-
readonly kind: 'step-started';
|
|
1961
|
-
readonly step: DeployStep;
|
|
1962
|
-
} | {
|
|
1963
|
-
readonly kind: 'message';
|
|
1964
|
-
readonly severity: 'info' | 'warn' | 'verbose';
|
|
1965
|
-
/** A line Alchemy logged while it planned or applied. */
|
|
1966
|
-
readonly text: string;
|
|
1967
|
-
} | {
|
|
1968
|
-
readonly kind: 'step-finished';
|
|
1969
|
-
readonly step: DeployStep;
|
|
1970
|
-
readonly outcome: 'ok' | 'failed';
|
|
1971
|
-
readonly durationMs: number;
|
|
1972
|
-
/** What the step measured, as its build adapter or deploy target reported it. The fields vary by adapter and target. */
|
|
1973
|
-
readonly data?: Readonly<Record<string, string | number>> | undefined;
|
|
1974
|
-
} |
|
|
2076
|
+
type DeployEvent = StepEvent<DeployStep> |
|
|
1975
2077
|
/** Right after the preflight step, when it found platform variables with no value that no service needs. */
|
|
1976
2078
|
{
|
|
1977
2079
|
readonly kind: 'preflight-findings';
|
|
@@ -2071,7 +2173,7 @@ declare function devUrl(input: DevUrlInput): Promise<Result$1<DevUrl, CliStructu
|
|
|
2071
2173
|
/** Stops the app's local copy in the environment: its service processes and database servers. Data and ports stay. */
|
|
2072
2174
|
declare function devStop(input: DevStopInput): Promise<Result$1<DevStopped, CliStructuredError>>;
|
|
2073
2175
|
//#endregion
|
|
2074
|
-
//#region ../../0-framework/3-tooling/cli/dist/family-
|
|
2176
|
+
//#region ../../0-framework/3-tooling/cli/dist/family-DfwviKFj.d.mts
|
|
2075
2177
|
//#region src/family/family.d.ts
|
|
2076
2178
|
/**
|
|
2077
2179
|
* The control-plane operations the family's handlers call. These are the
|
|
@@ -2097,5 +2199,5 @@ interface CreateComposerFamilyOptions {
|
|
|
2097
2199
|
readonly redirects?: readonly RedirectSpec[] | undefined;
|
|
2098
2200
|
}
|
|
2099
2201
|
//#endregion
|
|
2100
|
-
export {
|
|
2101
|
-
//# sourceMappingURL=family-
|
|
2202
|
+
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-DfwviKFj-CS1L-EvS.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-DfwviKFj-CS1L-EvS.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-D4PrtP-l.d.mts","../../../0-framework/1-core/core/dist/app-config-DriAu5RU.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-6LgQDUuu.d.mts","../../../0-framework/3-tooling/cli/dist/converge-in-process-CTomEXaD.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-Dn7BRdaP.d.mts","../../../0-framework/3-tooling/cli/dist/dev-current-BiJzvHNz.d.mts","../../../0-framework/3-tooling/cli/dist/family-DfwviKFj.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,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,O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AAO,OAAO,cAAc,QAAQ,SAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,SAAO,YAAY;;;;;;;;;;;;UC3GhE;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 { 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-DfwviKFj-CS1L-EvS.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";
|