@prisma/composer 0.35.0 → 0.36.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-config-CErnR6NK-D9NgSBH4.mjs +36 -0
- package/dist/app-config-CErnR6NK-D9NgSBH4.mjs.map +1 -0
- package/dist/{app-config-B_gQYj3K-DpMi9a4K.d.mts → app-config-CWm3wlNA-BVGreP8x.d.mts} +55 -31
- package/dist/app-config-CWm3wlNA-BVGreP8x.d.mts.map +1 -0
- package/dist/{config-CdxvLFzg.mjs → config-BFuriECI.mjs} +8 -5
- package/dist/config-BFuriECI.mjs.map +1 -0
- package/dist/config-BSdGEsYV.d.mts +1 -0
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +3 -3
- package/dist/control.d.mts +39 -26
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +20 -4
- package/dist/control.mjs.map +1 -1
- package/dist/deploy-BSdGEsYV.d.mts +1 -0
- package/dist/deploy.d.mts +3 -3
- package/dist/deploy.mjs +30 -15
- package/dist/deploy.mjs.map +1 -1
- package/dist/{deployment-summary-p88NV5m5-DTkPLzTp.d.mts → deployment-summary-p88NV5m5-C2gLUQ8l.d.mts} +3 -3
- package/dist/{deployment-summary-p88NV5m5-DTkPLzTp.d.mts.map → deployment-summary-p88NV5m5-C2gLUQ8l.d.mts.map} +1 -1
- package/dist/{dev-current-BB02pfSh-D-dYHs1q.mjs → dev-current-BNoPkDRU-CtQMfn60.mjs} +42 -8
- package/dist/dev-current-BNoPkDRU-CtQMfn60.mjs.map +1 -0
- package/dist/dev-environment-name-6eEr5PW8-CGk1ijP7.mjs +43 -0
- package/dist/dev-environment-name-6eEr5PW8-CGk1ijP7.mjs.map +1 -0
- package/dist/{dist-Xd2Pp_-u.mjs → dist-CZ_yEZ7F.mjs} +2 -2
- package/dist/dist-CZ_yEZ7F.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-DwcoZIks-Cl-tWvo0.mjs → execute-deploy-destroy-BIqwt1RF-CP2mVGW_.mjs} +30 -35
- package/dist/execute-deploy-destroy-BIqwt1RF-CP2mVGW_.mjs.map +1 -0
- package/dist/{execute-dev-BHRWoEnd-D-YNpuEN.mjs → execute-dev-DIEyloWn-C0jgWe-M.mjs} +64 -33
- package/dist/execute-dev-DIEyloWn-C0jgWe-M.mjs.map +1 -0
- package/dist/{execute-dev-current-D4RkOtPA-CDBtbQUq.mjs → execute-dev-current-CeKI-tiC-DVTy30tU.mjs} +71 -35
- package/dist/execute-dev-current-CeKI-tiC-DVTy30tU.mjs.map +1 -0
- package/dist/{execute-log-DxjUaSwN-nVFDjZqy.mjs → execute-log-DA5AAQAA-ByUrxpMJ.mjs} +12 -8
- package/dist/execute-log-DA5AAQAA-ByUrxpMJ.mjs.map +1 -0
- package/dist/{graph-BmTgCiFm-qR5hnhOZ.d.mts → graph-BzTSXnoQ-BvGVq0bm.d.mts} +6 -7
- package/dist/graph-BzTSXnoQ-BvGVq0bm.d.mts.map +1 -0
- package/dist/{graph-D0ICjejE-CeQtHY5B.mjs → graph-MGOZJdDt-CyI8-9r7.mjs} +377 -58
- package/dist/graph-MGOZJdDt-CyI8-9r7.mjs.map +1 -0
- package/dist/{graph-types-Cegbwb_X-BU-H2pnt.d.mts → graph-types-DfsG9Rkg-D_ARjMo7.d.mts} +111 -25
- package/dist/graph-types-DfsG9Rkg-D_ARjMo7.d.mts.map +1 -0
- package/dist/http.d.mts +2 -2
- package/dist/http.mjs +2 -2
- package/dist/{index-B-9Dc0J7.d.mts → index-D89ftK2z.d.mts} +3 -3
- package/dist/{index-B-9Dc0J7.d.mts.map → index-D89ftK2z.d.mts.map} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/{local-target-BUZG9uLx.mjs → local-target-DySKw61w.mjs} +2 -2
- package/dist/local-target-DySKw61w.mjs.map +1 -0
- package/dist/local-target.d.mts +2 -2
- package/dist/local-target.mjs +3 -3
- package/dist/{nextjs-DLyeRR7M-kVartQq-.d.mts → nextjs-DLyeRR7M-BeiYsLuZ.d.mts} +3 -3
- package/dist/{nextjs-DLyeRR7M-kVartQq-.d.mts.map → nextjs-DLyeRR7M-BeiYsLuZ.d.mts.map} +1 -1
- package/dist/nextjs-control.d.mts +4 -4
- package/dist/nextjs.d.mts +1 -1
- package/dist/node-control.d.mts +3 -3
- package/dist/node.d.mts +2 -2
- package/dist/report.d.mts +3 -3
- package/dist/{run-report-C2o98uD--AX8kpz4Q.mjs → run-report-CmBz2-xc-S50d4g5V.mjs} +5 -5
- package/dist/run-report-CmBz2-xc-S50d4g5V.mjs.map +1 -0
- package/dist/service-rpc.d.mts +2 -2
- package/dist/service-rpc.mjs +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/{pipeline-BmWt-Nhb-D9Eg14Sx.mjs → validate-environment-CEhUSEg2-DmAtiQhe.mjs} +20 -7
- package/dist/validate-environment-CEhUSEg2-DmAtiQhe.mjs.map +1 -0
- package/package.json +11 -11
- package/skills/prisma-composer-core-concepts/SKILL.md +108 -56
- package/dist/app-config-B_gQYj3K-DpMi9a4K.d.mts.map +0 -1
- package/dist/app-config-CGJHcFb--CIEFCG4V.mjs +0 -22
- package/dist/app-config-CGJHcFb--CIEFCG4V.mjs.map +0 -1
- package/dist/config-Bq3JlQ9_.d.mts +0 -1
- package/dist/config-CdxvLFzg.mjs.map +0 -1
- package/dist/deploy-Bq3JlQ9_.d.mts +0 -1
- package/dist/dev-current-BB02pfSh-D-dYHs1q.mjs.map +0 -1
- package/dist/dist-Xd2Pp_-u.mjs.map +0 -1
- package/dist/execute-deploy-destroy-DwcoZIks-Cl-tWvo0.mjs.map +0 -1
- package/dist/execute-dev-BHRWoEnd-D-YNpuEN.mjs.map +0 -1
- package/dist/execute-dev-current-D4RkOtPA-CDBtbQUq.mjs.map +0 -1
- package/dist/execute-log-DxjUaSwN-nVFDjZqy.mjs.map +0 -1
- package/dist/graph-BmTgCiFm-qR5hnhOZ.d.mts.map +0 -1
- package/dist/graph-D0ICjejE-CeQtHY5B.mjs.map +0 -1
- package/dist/graph-types-Cegbwb_X-BU-H2pnt.d.mts.map +0 -1
- package/dist/local-target-BUZG9uLx.mjs.map +0 -1
- package/dist/pipeline-BmWt-Nhb-D9Eg14Sx.mjs.map +0 -1
- package/dist/run-report-C2o98uD--AX8kpz4Q.mjs.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region ../../0-framework/1-core/core/dist/app-config-CErnR6NK.mjs
|
|
2
|
+
/** `<cwd>/.prisma-composer/dev` — local dev's state directory (ADR-0041, ADR-0004's tool-state rule), holding one folder per environment. */
|
|
3
|
+
const DEV_DIR = ".prisma-composer/dev";
|
|
4
|
+
/**
|
|
5
|
+
* The folder, relative to the cwd, that holds one environment's local copy.
|
|
6
|
+
* The environment name is percent-encoded (`encodeURIComponent`), so a name
|
|
7
|
+
* with `/` stays one folder and `decodeURIComponent` gives the name back.
|
|
8
|
+
*/
|
|
9
|
+
function devEnvironmentDir(environment) {
|
|
10
|
+
return `${DEV_DIR}/${encodeURIComponent(environment)}`;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The file in an environment's folder that holds the environment's exact
|
|
14
|
+
* name. On a case-insensitive filesystem `Dev` and `dev` share one folder;
|
|
15
|
+
* the recorded name tells them apart.
|
|
16
|
+
*/
|
|
17
|
+
const DEV_ENVIRONMENT_NAME_FILE = "environment-name";
|
|
18
|
+
/**
|
|
19
|
+
* True when an extension only participates in assembly (every `nodes` entry
|
|
20
|
+
* is `kind: 'build'`, and it declares none of `providers`/`application`/
|
|
21
|
+
* `provisions`/`container`) — it owns no resources or services, so it has
|
|
22
|
+
* nothing to emulate and is exempt from local-target-capability requirements
|
|
23
|
+
* (ADR-0041). Shared by `localTargetProviders` and every local-target hook
|
|
24
|
+
* iteration.
|
|
25
|
+
*/
|
|
26
|
+
function isBuildOnlyExtension(extension) {
|
|
27
|
+
return Object.values(extension.nodes).every((node) => node.kind === "build") && extension.providers === void 0 && extension.application === void 0 && extension.provisions === void 0 && extension.container === void 0;
|
|
28
|
+
}
|
|
29
|
+
/** Typed identity — exists so the `composer` section of `prisma.config.ts` gets checked against PrismaAppConfig where it is written. */
|
|
30
|
+
function defineConfig(config) {
|
|
31
|
+
return config;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { isBuildOnlyExtension as a, devEnvironmentDir as i, DEV_ENVIRONMENT_NAME_FILE as n, defineConfig as r, DEV_DIR as t };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=app-config-CErnR6NK-D9NgSBH4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-config-CErnR6NK-D9NgSBH4.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/app-config-CErnR6NK.mjs"],"sourcesContent":["//#region src/control/app-config.ts\n/** `<cwd>/.prisma-composer/dev` — local dev's state directory (ADR-0041, ADR-0004's tool-state rule), holding one folder per environment. */\nconst DEV_DIR = \".prisma-composer/dev\";\n/**\n* The folder, relative to the cwd, that holds one environment's local copy.\n* The environment name is percent-encoded (`encodeURIComponent`), so a name\n* with `/` stays one folder and `decodeURIComponent` gives the name back.\n*/\nfunction devEnvironmentDir(environment) {\n\treturn `${DEV_DIR}/${encodeURIComponent(environment)}`;\n}\n/**\n* The file in an environment's folder that holds the environment's exact\n* name. On a case-insensitive filesystem `Dev` and `dev` share one folder;\n* the recorded name tells them apart.\n*/\nconst DEV_ENVIRONMENT_NAME_FILE = \"environment-name\";\n/**\n* True when an extension only participates in assembly (every `nodes` entry\n* is `kind: 'build'`, and it declares none of `providers`/`application`/\n* `provisions`/`container`) — it owns no resources or services, so it has\n* nothing to emulate and is exempt from local-target-capability requirements\n* (ADR-0041). Shared by `localTargetProviders` and every local-target hook\n* iteration.\n*/\nfunction isBuildOnlyExtension(extension) {\n\treturn Object.values(extension.nodes).every((node) => node.kind === \"build\") && extension.providers === void 0 && extension.application === void 0 && extension.provisions === void 0 && extension.container === void 0;\n}\n/** Typed identity — exists so the `composer` section of `prisma.config.ts` gets checked against PrismaAppConfig where it is written. */\nfunction defineConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { isBuildOnlyExtension as a, devEnvironmentDir as i, DEV_ENVIRONMENT_NAME_FILE as n, defineConfig as r, DEV_DIR as t };\n\n//# sourceMappingURL=app-config-CErnR6NK.mjs.map"],"mappings":";;AAEA,MAAM,UAAU;;;;;;AAMhB,SAAS,kBAAkB,aAAa;CACvC,OAAO,GAAG,QAAQ,GAAG,mBAAmB,WAAW;AACpD;;;;;;AAMA,MAAM,4BAA4B;;;;;;;;;AASlC,SAAS,qBAAqB,WAAW;CACxC,OAAO,OAAO,OAAO,UAAU,KAAK,CAAC,CAAC,OAAO,SAAS,KAAK,SAAS,OAAO,KAAK,UAAU,cAAc,KAAK,KAAK,UAAU,gBAAgB,KAAK,KAAK,UAAU,eAAe,KAAK,KAAK,UAAU,cAAc,KAAK;AACvN;;AAEA,SAAS,aAAa,QAAQ;CAC7B,OAAO;AACR"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./graph-
|
|
1
|
+
import { A as NodeId, B as ProvisionNeed, D as ModuleNode, G as ResourceNode, g as Graph, i as Config, r as BuildAdapter, tt as ServiceNode } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
|
|
2
|
+
import "./graph-BzTSXnoQ-BvGVq0bm.mjs";
|
|
3
3
|
import * as Alchemy from "alchemy";
|
|
4
4
|
import { Input, StackServices } from "alchemy";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Layer from "effect/Layer";
|
|
7
7
|
import { State } from "alchemy/State/State";
|
|
8
|
-
//#region ../../0-framework/1-core/core/dist/app-config-
|
|
8
|
+
//#region ../../0-framework/1-core/core/dist/app-config-CWm3wlNA.d.mts
|
|
9
9
|
//#region src/container-transport.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* Carries resolved containers from the CLI process into the alchemy process
|
|
@@ -17,12 +17,12 @@ import { State } from "alchemy/State/State";
|
|
|
17
17
|
* `deserializeContainers` reads each var back through the same extension's
|
|
18
18
|
* descriptor. The framework owns the vars; it never reads their contents.
|
|
19
19
|
*/
|
|
20
|
-
/** The key an extension resolves a container from: which app, which
|
|
20
|
+
/** The key an extension resolves a container from: which app, which environment. */
|
|
21
21
|
interface LocateContainerInput {
|
|
22
22
|
/** The application name (root node's name, or `--name`). */
|
|
23
23
|
readonly appName: string;
|
|
24
|
-
/** The
|
|
25
|
-
readonly
|
|
24
|
+
/** The environment name, git-ref validated. Core never interprets it; the extension maps it onto its platform. */
|
|
25
|
+
readonly environment: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* One resolved container. The framework sees only this interface; the
|
|
@@ -31,7 +31,7 @@ interface LocateContainerInput {
|
|
|
31
31
|
*/
|
|
32
32
|
interface ContainerInstance {
|
|
33
33
|
readonly input: LocateContainerInput;
|
|
34
|
-
/** The exact string the CLI hands `alchemy` as its stage — the deploy-state scope. Distinct from `input.
|
|
34
|
+
/** 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. */
|
|
35
35
|
readonly alchemyStage?: string | undefined;
|
|
36
36
|
/** Serialize to a non-empty string for the process transport above. The format is the extension's own; only its `deserialize` reads it. */
|
|
37
37
|
serialize(): string;
|
|
@@ -66,9 +66,9 @@ interface ContainerCredentials<C = unknown> {
|
|
|
66
66
|
* fails (same rule as ServiceLowering<P, S> — ADR-0033).
|
|
67
67
|
*/
|
|
68
68
|
interface ContainerDescriptor<I extends ContainerInstance = ContainerInstance, C = unknown> {
|
|
69
|
-
/** Resolve the container for (appName,
|
|
69
|
+
/** Resolve the container for (appName, environment), creating anything absent. Called by `deploy`. */
|
|
70
70
|
ensure(input: LocateContainerInput, credentials?: ContainerCredentials<C>): Promise<I>;
|
|
71
|
-
/** Find the container for (appName,
|
|
71
|
+
/** Find the container for (appName, environment); `undefined` when nothing exists. Called by `destroy` — never creates. */
|
|
72
72
|
locate(input: LocateContainerInput, credentials?: ContainerCredentials<C>): Promise<I | undefined>;
|
|
73
73
|
/** Remove the container after a successful destroy, after every extension's `teardown` has run. Failure policy is the extension's. */
|
|
74
74
|
remove(instance: I, credentials?: ContainerCredentials<C>): Promise<void>;
|
|
@@ -267,8 +267,9 @@ interface DeploymentResult {
|
|
|
267
267
|
interface LowerOptions {
|
|
268
268
|
/** Stack + root node id. */
|
|
269
269
|
readonly name: string;
|
|
270
|
+
/** The environment being deployed, as `--environment` gave it. Required by any value over `environment.name`; the generated stack files always pass it. */
|
|
271
|
+
readonly environment?: string;
|
|
270
272
|
readonly bundles: Record<string, Bundle>;
|
|
271
|
-
readonly stage?: string;
|
|
272
273
|
/** Alchemy state store for the stack. Defaults to the config's own state layer. */
|
|
273
274
|
readonly state?: AlchemyStateLayer;
|
|
274
275
|
/** 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. */
|
|
@@ -350,6 +351,12 @@ declare class LowerError extends Error {
|
|
|
350
351
|
* here, naming the edge, rather than reaching the consumer as `undefined`.
|
|
351
352
|
*/
|
|
352
353
|
declare function buildConfig(node: ServiceNode, id: NodeId, graph: Graph, lowered: ReadonlyMap<NodeId, Outputs>, provisioned: ReadonlyMap<string, unknown>): Config;
|
|
354
|
+
/**
|
|
355
|
+
* The connection params of each of a service's or resource's dependency
|
|
356
|
+
* slots, resolved against the producer's lowered outputs or the minted
|
|
357
|
+
* `provisioned` value, with the connection contract enforced (see `buildConfig`).
|
|
358
|
+
*/
|
|
359
|
+
declare function connectionInputs(ctx: LowerContext): Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|
|
353
360
|
/**
|
|
354
361
|
* Joins resolved report entries back to their graph nodes — the last step of a
|
|
355
362
|
* deploy report, run inside the Action with apply's resolved values.
|
|
@@ -416,7 +423,7 @@ interface ExtensionDescriptor {
|
|
|
416
423
|
* Deploy-time prerequisite check — the CLI runs it once, after the app's
|
|
417
424
|
* Project/Branch are resolved and BEFORE any stack file is written or Alchemy
|
|
418
425
|
* runs. A target uses it to verify platform prerequisites (e.g. that every
|
|
419
|
-
* secret env var in the provision manifest exists for the resolved
|
|
426
|
+
* secret env var in the provision manifest exists for the resolved environment) and
|
|
420
427
|
* throws to abort the deploy. Async: it talks to the platform (ADR-0029).
|
|
421
428
|
*
|
|
422
429
|
* What it returns is carried to the alchemy process for this same extension
|
|
@@ -434,7 +441,7 @@ interface ExtensionDescriptor {
|
|
|
434
441
|
preflight?(input: PreflightInput): Promise<PreflightPayload>;
|
|
435
442
|
/**
|
|
436
443
|
* Destroy-time cleanup — the CLI runs it once, after `alchemy destroy`
|
|
437
|
-
* succeeds and BEFORE the
|
|
444
|
+
* succeeds and BEFORE the environment's containers are removed. A target uses
|
|
438
445
|
* it to remove infrastructure it owns outside the stack (e.g. the deploy
|
|
439
446
|
* state store, which the destroy above was still reading). Throwing aborts
|
|
440
447
|
* the destroy before the containers go; a target that would rather warn than
|
|
@@ -485,19 +492,21 @@ interface PreflightInput<C = unknown> {
|
|
|
485
492
|
readonly graph: Graph;
|
|
486
493
|
/** The calling extension's own resolved container; `undefined` when it declares no container descriptor. Narrow with the extension's guard. */
|
|
487
494
|
readonly container: ContainerInstance | undefined;
|
|
488
|
-
/** The
|
|
489
|
-
readonly
|
|
495
|
+
/** The environment name. */
|
|
496
|
+
readonly environment: string;
|
|
490
497
|
/** What the caller has already authenticated, for the platform calls preflight makes. Absent means the extension falls back to its own credential protocol. */
|
|
491
498
|
readonly credentials?: ContainerCredentials<C> | undefined;
|
|
492
499
|
/** 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. */
|
|
493
500
|
readonly report?: ((counts: Readonly<Record<string, number>>) => void) | undefined;
|
|
501
|
+
/** Shows the user a warning that does not stop the run. Only `prisma dev` passes it and shows the warnings; deploy passes none. */
|
|
502
|
+
readonly warn?: ((message: string) => void) | undefined;
|
|
494
503
|
}
|
|
495
504
|
/** The resolved destroy context handed to an extension's `teardown` hook. */
|
|
496
505
|
interface TeardownInput {
|
|
497
506
|
/** The calling extension's own resolved container; `undefined` when it declares no container descriptor. Narrow with the extension's guard. */
|
|
498
507
|
readonly container: ContainerInstance | undefined;
|
|
499
|
-
/** The
|
|
500
|
-
readonly
|
|
508
|
+
/** The environment name. */
|
|
509
|
+
readonly environment: string;
|
|
501
510
|
}
|
|
502
511
|
/** The deploy context handed to `ReporterDescriptor.begin`. `C` erases to `unknown` at the framework boundary, exactly as on `PreflightInput`. */
|
|
503
512
|
interface ReportBeginInput<C = unknown> {
|
|
@@ -511,8 +520,8 @@ interface ReportBeginInput<C = unknown> {
|
|
|
511
520
|
* loaded (a breaking addition to this published type).
|
|
512
521
|
*/
|
|
513
522
|
readonly graph: Graph;
|
|
514
|
-
/** The
|
|
515
|
-
readonly
|
|
523
|
+
/** The environment name. */
|
|
524
|
+
readonly environment: string;
|
|
516
525
|
/** The directory the deploy command was run from — where a reporter reads repository metadata. */
|
|
517
526
|
readonly cwd: string;
|
|
518
527
|
/**
|
|
@@ -594,8 +603,8 @@ interface LocalTargetDescriptor {
|
|
|
594
603
|
providers(input: LocalTargetProvidersInput): Layer.Layer<never>;
|
|
595
604
|
/** A stable local identity — resolved without any platform call. */
|
|
596
605
|
readonly container: ContainerDescriptor;
|
|
597
|
-
/** Value sourcing (secrets/env-params) — runs where deploy's preflight runs. */
|
|
598
|
-
preflight?(input: PreflightInput): Promise<
|
|
606
|
+
/** 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. */
|
|
607
|
+
preflight?(input: PreflightInput): Promise<PreflightPayload>;
|
|
599
608
|
/** 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). */
|
|
600
609
|
emulators?(input: LocalTargetEmulatorsInput): Promise<void>;
|
|
601
610
|
/** The dev session's view of the running app. Core renders it and never learns an emulator's API. */
|
|
@@ -603,18 +612,20 @@ interface LocalTargetDescriptor {
|
|
|
603
612
|
/** `--fresh`: remove every local trace of the dev instance — emulator instances, state, data. */
|
|
604
613
|
teardown?(input: TeardownInput): Promise<void>;
|
|
605
614
|
/**
|
|
606
|
-
* The
|
|
607
|
-
* directory alone — no entry, no graph, no container — so a
|
|
608
|
-
* find or stop a running app without running the pipeline.
|
|
609
|
-
* this extension recorded nothing there.
|
|
615
|
+
* The local copy of an app in one environment, read from the environment's
|
|
616
|
+
* dev state directory alone — no entry, no graph, no container — so a
|
|
617
|
+
* command can find or stop a running app without running the pipeline.
|
|
618
|
+
* Undefined when this extension recorded nothing for the app there.
|
|
610
619
|
*/
|
|
611
620
|
current?(input: LocalTargetCurrentInput): Promise<LocalTargetCurrentApp | undefined>;
|
|
612
621
|
}
|
|
613
622
|
interface LocalTargetCurrentInput {
|
|
614
|
-
/** Absolute path of the dev state directory (
|
|
623
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
615
624
|
readonly devDir: string;
|
|
625
|
+
readonly app: string;
|
|
626
|
+
readonly environment: string;
|
|
616
627
|
}
|
|
617
|
-
/** The
|
|
628
|
+
/** The local copy of an app in one environment, as one extension recorded it. */
|
|
618
629
|
interface LocalTargetCurrentApp {
|
|
619
630
|
readonly app: string;
|
|
620
631
|
/** Every node address recorded for the app. */
|
|
@@ -658,18 +669,19 @@ interface LocalNodeStopped {
|
|
|
658
669
|
interface LocalTargetProvidersInput {
|
|
659
670
|
/** This extension's resolved local-target container (its `input.appName` is the emulator app namespace). */
|
|
660
671
|
readonly container: ContainerInstance | undefined;
|
|
661
|
-
/** Absolute path of the dev state directory (
|
|
672
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
662
673
|
readonly devDir: string;
|
|
663
674
|
}
|
|
664
675
|
interface LocalTargetEmulatorsInput {
|
|
665
676
|
/** The loaded application graph — inspected for which node kinds need an emulator. */
|
|
666
677
|
readonly graph: Graph;
|
|
667
678
|
readonly container: ContainerInstance | undefined;
|
|
668
|
-
/** Absolute path of the dev state directory (
|
|
679
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
669
680
|
readonly devDir: string;
|
|
670
681
|
}
|
|
671
682
|
interface LocalTargetAttachInput {
|
|
672
683
|
readonly container: ContainerInstance | undefined;
|
|
684
|
+
/** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
|
|
673
685
|
readonly devDir: string;
|
|
674
686
|
}
|
|
675
687
|
interface LocalTargetAttachment {
|
|
@@ -704,8 +716,20 @@ interface LocalTargetAttachment {
|
|
|
704
716
|
/** Stop everything the target runs for the app, so nothing of it keeps running after the session (emulators and data persist). */
|
|
705
717
|
stopApp(): Promise<void>;
|
|
706
718
|
}
|
|
707
|
-
/** `<cwd>/.prisma-composer/dev` —
|
|
719
|
+
/** `<cwd>/.prisma-composer/dev` — local dev's state directory (ADR-0041, ADR-0004's tool-state rule), holding one folder per environment. */
|
|
708
720
|
declare const DEV_DIR = ".prisma-composer/dev";
|
|
721
|
+
/**
|
|
722
|
+
* The folder, relative to the cwd, that holds one environment's local copy.
|
|
723
|
+
* The environment name is percent-encoded (`encodeURIComponent`), so a name
|
|
724
|
+
* with `/` stays one folder and `decodeURIComponent` gives the name back.
|
|
725
|
+
*/
|
|
726
|
+
declare function devEnvironmentDir(environment: string): string;
|
|
727
|
+
/**
|
|
728
|
+
* The file in an environment's folder that holds the environment's exact
|
|
729
|
+
* name. On a case-insensitive filesystem `Dev` and `dev` share one folder;
|
|
730
|
+
* the recorded name tells them apart.
|
|
731
|
+
*/
|
|
732
|
+
declare const DEV_ENVIRONMENT_NAME_FILE = "environment-name";
|
|
709
733
|
/**
|
|
710
734
|
* True when an extension only participates in assembly (every `nodes` entry
|
|
711
735
|
* is `kind: 'build'`, and it declares none of `providers`/`application`/
|
|
@@ -747,5 +771,5 @@ interface PrismaAppConfig {
|
|
|
747
771
|
/** Typed identity — exists so the `composer` section of `prisma.config.ts` gets checked against PrismaAppConfig where it is written. */
|
|
748
772
|
declare function defineConfig(config: PrismaAppConfig): PrismaAppConfig;
|
|
749
773
|
//#endregion
|
|
750
|
-
export {
|
|
751
|
-
//# sourceMappingURL=app-config-
|
|
774
|
+
export { defineConfig as $, LoweredResult as A, ReportAttachInput as B, LocalTargetDescriptor as C, LowerContext as D, LocateContainerInput as E, PreflightInput as F, ServeInput as G, ReporterDescriptor as H, PreflightPayload as I, TeardownInput as J, ServiceLowering as K, PrismaAppConfig as L, NodeDescriptor as M, Outputs as N, LowerError as O, PackageInput as P, containerEnvVarName as Q, ProvisionEdge as R, LocalTargetCurrentInput as S, LocalTargetProvidersInput as T, RunOutcome as U, ReportBeginInput as V, RunReporter as W, connectionInputs as X, buildConfig as Y, containerEnv as Z, LocalNodeLocation as _, Bundle as a, lowering as at, LocalTargetAttachment as b, ContainerInstance as c, preflightEnvVarName as ct, DeployedEntity as d, deserializeContainers as et, DeployedNode as f, LocalNodeCondition as g, ExtensionDescriptor as h, AssembleInput as i, lower as it, Lowering as j, LowerOptions as k, DEV_DIR as l, readPreflightPayload as lt, DevServer as m, ApplicationDescriptor as n, isBuildOnlyExtension as nt, ContainerCredentials as o, mergedProviders as ot, DeploymentResult as p, StateDescriptor as q, Artifact as r, joinDeployment as rt, ContainerDescriptor as s, preflightEnv as st, AlchemyStateLayer as t, devEnvironmentDir as tt, DEV_ENVIRONMENT_NAME_FILE as u, resolveStateLayer as ut, LocalNodeStopped as v, LocalTargetEmulatorsInput as w, LocalTargetCurrentApp as x, LocalTargetAttachInput as y, ProvisionerDescriptor as z };
|
|
775
|
+
//# sourceMappingURL=app-config-CWm3wlNA-BVGreP8x.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-config-CWm3wlNA-BVGreP8x.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/app-config-CWm3wlNA.d.mts"],"mappings":"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"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { i as envVarSafeExtensionId } from "./container-transport-HcvNOGZL-twPi2TIv.mjs";
|
|
2
2
|
//#region ../../0-framework/1-core/core/dist/config.mjs
|
|
3
3
|
/**
|
|
4
|
-
* Carries an extension's
|
|
4
|
+
* Carries an extension's preflight payload from the CLI process to the
|
|
5
5
|
* alchemy child (which re-imports the config from scratch) — one env var per
|
|
6
|
-
* extension, same channel as containers (container-transport.ts)
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* extension, same channel as containers (container-transport.ts), filled by
|
|
7
|
+
* whichever preflight the run executed: the deploy preflight or the local
|
|
8
|
+
* target's dev preflight. The framework never reads the contents, so an
|
|
9
|
+
* extension that implements both must tell its own payload kinds apart.
|
|
10
|
+
* Payloads carry metadata only, never secret values: the child's environment
|
|
11
|
+
* is not a secret store.
|
|
9
12
|
*/
|
|
10
13
|
/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_PREFLIGHT_PRISMA_COMPOSER_PRISMA_CLOUD' */
|
|
11
14
|
function preflightEnvVarName(extensionId) {
|
|
@@ -33,4 +36,4 @@ function readPreflightPayload(extensionId, env) {
|
|
|
33
36
|
//#endregion
|
|
34
37
|
export { preflightEnvVarName as n, readPreflightPayload as r, preflightEnv as t };
|
|
35
38
|
|
|
36
|
-
//# sourceMappingURL=config-
|
|
39
|
+
//# sourceMappingURL=config-BFuriECI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-BFuriECI.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/config.mjs"],"sourcesContent":["import { i as envVarSafeExtensionId, n as containerEnvVarName, r as deserializeContainers, t as containerEnv } from \"./container-transport-HcvNOGZL.mjs\";\nimport { a as isBuildOnlyExtension, i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, r as defineConfig, t as DEV_DIR } from \"./app-config-CErnR6NK.mjs\";\n//#region src/preflight-transport.ts\n/**\n* Carries an extension's preflight payload from the CLI process to the\n* alchemy child (which re-imports the config from scratch) — one env var per\n* extension, same channel as containers (container-transport.ts), filled by\n* whichever preflight the run executed: the deploy preflight or the local\n* target's dev preflight. The framework never reads the contents, so an\n* extension that implements both must tell its own payload kinds apart.\n* Payloads carry metadata only, never secret values: the child's environment\n* is not a secret store.\n*/\n/** '@prisma/composer-prisma-cloud' → 'PRISMA_COMPOSER_PREFLIGHT_PRISMA_COMPOSER_PRISMA_CLOUD' */\nfunction preflightEnvVarName(extensionId) {\n\treturn `PRISMA_COMPOSER_PREFLIGHT_${envVarSafeExtensionId(extensionId)}`;\n}\n/** The env entries the CLI sets on the alchemy process: `{ [preflightEnvVarName(id)]: payload }` for every extension whose preflight returned one. */\nfunction preflightEnv(payloads) {\n\tconst env = {};\n\tconst ownerByVarName = /* @__PURE__ */ new Map();\n\tfor (const [extensionId, payload] of payloads) {\n\t\tif (payload.length === 0) continue;\n\t\tconst varName = preflightEnvVarName(extensionId);\n\t\tconst owner = ownerByVarName.get(varName);\n\t\tif (owner !== void 0) throw new Error(`Extension ids \"${owner}\" and \"${extensionId}\" both map to the preflight transport variable \"${varName}\" — rename one of the extensions.`);\n\t\townerByVarName.set(varName, extensionId);\n\t\tenv[varName] = payload;\n\t}\n\treturn env;\n}\n/** The alchemy-process side: the payload this extension's own preflight wrote, or `undefined` when it wrote none (or when nothing ran a preflight at all). */\nfunction readPreflightPayload(extensionId, env) {\n\tconst payload = env[preflightEnvVarName(extensionId)];\n\treturn payload === void 0 || payload.length === 0 ? void 0 : payload;\n}\n//#endregion\nexport { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, isBuildOnlyExtension, preflightEnv, preflightEnvVarName, readPreflightPayload };\n\n//# sourceMappingURL=config.mjs.map"],"mappings":";;;;;;;;;;;;;AAcA,SAAS,oBAAoB,aAAa;CACzC,OAAO,6BAA6B,sBAAsB,WAAW;AACtE;;AAEA,SAAS,aAAa,UAAU;CAC/B,MAAM,MAAM,CAAC;CACb,MAAM,iCAAiC,IAAI,IAAI;CAC/C,KAAK,MAAM,CAAC,aAAa,YAAY,UAAU;EAC9C,IAAI,QAAQ,WAAW,GAAG;EAC1B,MAAM,UAAU,oBAAoB,WAAW;EAC/C,MAAM,QAAQ,eAAe,IAAI,OAAO;EACxC,IAAI,UAAU,KAAK,GAAG,MAAM,IAAI,MAAM,kBAAkB,MAAM,SAAS,YAAY,kDAAkD,QAAQ,kCAAkC;EAC/K,eAAe,IAAI,SAAS,WAAW;EACvC,IAAI,WAAW;CAChB;CACA,OAAO;AACR;;AAEA,SAAS,qBAAqB,aAAa,KAAK;CAC/C,MAAM,UAAU,IAAI,oBAAoB,WAAW;CACnD,OAAO,YAAY,KAAK,KAAK,QAAQ,WAAW,IAAI,KAAK,IAAI;AAC9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./app-config-CWm3wlNA-BVGreP8x.mjs";
|
package/dist/config.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import "./config-
|
|
3
|
-
export { type ContainerCredentials, type ContainerDescriptor, type ContainerInstance, DEV_DIR, type DeployedEntity, ExtensionDescriptor, LocalNodeCondition, LocalNodeLocation, LocalNodeStopped, LocalTargetAttachInput, LocalTargetAttachment, LocalTargetCurrentApp, LocalTargetCurrentInput, LocalTargetDescriptor, LocalTargetEmulatorsInput, LocalTargetProvidersInput, type LocateContainerInput, NodeDescriptor, PreflightInput, type PreflightPayload, PrismaAppConfig, ReportAttachInput, ReportBeginInput, ReporterDescriptor, RunOutcome, RunReporter, StateDescriptor, TeardownInput, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, isBuildOnlyExtension, preflightEnv, preflightEnvVarName, readPreflightPayload };
|
|
1
|
+
import { $ as defineConfig, B as ReportAttachInput, C as LocalTargetDescriptor, E as LocateContainerInput, F as PreflightInput, H as ReporterDescriptor, I as PreflightPayload, J as TeardownInput, L as PrismaAppConfig, M as NodeDescriptor, Q as containerEnvVarName, S as LocalTargetCurrentInput, T as LocalTargetProvidersInput, U as RunOutcome, V as ReportBeginInput, W as RunReporter, Z as containerEnv, _ as LocalNodeLocation, b as LocalTargetAttachment, c as ContainerInstance, ct as preflightEnvVarName, d as DeployedEntity, et as deserializeContainers, g as LocalNodeCondition, h as ExtensionDescriptor, l as DEV_DIR, lt as readPreflightPayload, nt as isBuildOnlyExtension, o as ContainerCredentials, q as StateDescriptor, s as ContainerDescriptor, st as preflightEnv, tt as devEnvironmentDir, u as DEV_ENVIRONMENT_NAME_FILE, v as LocalNodeStopped, w as LocalTargetEmulatorsInput, x as LocalTargetCurrentApp, y as LocalTargetAttachInput } from "./app-config-CWm3wlNA-BVGreP8x.mjs";
|
|
2
|
+
import "./config-BSdGEsYV.mjs";
|
|
3
|
+
export { type ContainerCredentials, type ContainerDescriptor, type ContainerInstance, DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, type DeployedEntity, ExtensionDescriptor, LocalNodeCondition, LocalNodeLocation, LocalNodeStopped, LocalTargetAttachInput, LocalTargetAttachment, LocalTargetCurrentApp, LocalTargetCurrentInput, LocalTargetDescriptor, LocalTargetEmulatorsInput, LocalTargetProvidersInput, type LocateContainerInput, NodeDescriptor, PreflightInput, type PreflightPayload, PrismaAppConfig, ReportAttachInput, ReportBeginInput, ReporterDescriptor, RunOutcome, RunReporter, StateDescriptor, TeardownInput, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, isBuildOnlyExtension, preflightEnv, preflightEnvVarName, readPreflightPayload };
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as containerEnvVarName, r as deserializeContainers, t as containerEnv } from "./container-transport-HcvNOGZL-twPi2TIv.mjs";
|
|
2
|
-
import { n as
|
|
3
|
-
import { n as preflightEnvVarName, r as readPreflightPayload, t as preflightEnv } from "./config-
|
|
4
|
-
export { DEV_DIR, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, isBuildOnlyExtension, preflightEnv, preflightEnvVarName, readPreflightPayload };
|
|
2
|
+
import { a as isBuildOnlyExtension, i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, r as defineConfig, t as DEV_DIR } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
|
|
3
|
+
import { n as preflightEnvVarName, r as readPreflightPayload, t as preflightEnv } from "./config-BFuriECI.mjs";
|
|
4
|
+
export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, isBuildOnlyExtension, preflightEnv, preflightEnvVarName, readPreflightPayload };
|
package/dist/control.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./config-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./deploy-
|
|
6
|
-
import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-p88NV5m5-
|
|
1
|
+
import { Dt as CliStructuredError } from "./graph-types-DfsG9Rkg-D_ARjMo7.mjs";
|
|
2
|
+
import { L as PrismaAppConfig } from "./app-config-CWm3wlNA-BVGreP8x.mjs";
|
|
3
|
+
import "./config-BSdGEsYV.mjs";
|
|
4
|
+
import "./index-D89ftK2z.mjs";
|
|
5
|
+
import "./deploy-BSdGEsYV.mjs";
|
|
6
|
+
import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-p88NV5m5-C2gLUQ8l.mjs";
|
|
7
7
|
//#region ../../0-framework/3-tooling/cli/dist/composer-config-BJrPWlDx.d.mts
|
|
8
8
|
//#region src/composer-config.d.ts
|
|
9
9
|
/** Composer's configuration and the `prisma.config.ts` that declares it. */
|
|
@@ -42,7 +42,7 @@ interface NotOk<F> {
|
|
|
42
42
|
*/
|
|
43
43
|
type Result<T, F> = Ok<T> | NotOk<F>;
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region ../../0-framework/3-tooling/cli/dist/dev-current-
|
|
45
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-current-DfJfxg2y.d.mts
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/operations/shared.d.ts
|
|
48
48
|
/** A running service's dotted address plus its local URL — what `dev` reports
|
|
@@ -107,8 +107,8 @@ interface DeployInput {
|
|
|
107
107
|
readonly entry?: string | undefined;
|
|
108
108
|
/** Override the root node's name (the `--name` flag's slot). */
|
|
109
109
|
readonly name?: string | undefined;
|
|
110
|
-
/**
|
|
111
|
-
readonly
|
|
110
|
+
/** The environment to deploy to. Defaults to `production`. */
|
|
111
|
+
readonly environment?: string | undefined;
|
|
112
112
|
/** Defaults to process.cwd(); the directory `.prisma-composer/` and `.alchemy` state live under. */
|
|
113
113
|
readonly cwd?: string | undefined;
|
|
114
114
|
/**
|
|
@@ -122,7 +122,7 @@ interface DeployInput {
|
|
|
122
122
|
* An existing report record this deploy belongs to — the `--build-id` flag's
|
|
123
123
|
* slot. A CI job that opens the record before invoking Composer passes the
|
|
124
124
|
* id here, and the target's reporter joins that record instead of creating
|
|
125
|
-
* one. Absent falls back to whatever the target reads from
|
|
125
|
+
* one. Absent falls back to whatever the target reads from environment variables.
|
|
126
126
|
*/
|
|
127
127
|
readonly reportId?: string | undefined;
|
|
128
128
|
/** Each step as it starts and finishes, in real time. Rendering is the host's. */
|
|
@@ -146,6 +146,11 @@ type DevEvent =
|
|
|
146
146
|
} | {
|
|
147
147
|
readonly kind: 'unwatchable';
|
|
148
148
|
readonly address: string;
|
|
149
|
+
} |
|
|
150
|
+
/** A target's preflight warned about the graph; the session still starts. */
|
|
151
|
+
{
|
|
152
|
+
readonly kind: 'target-warning';
|
|
153
|
+
readonly message: string;
|
|
149
154
|
} | {
|
|
150
155
|
readonly kind: 'rebuild-failed';
|
|
151
156
|
readonly message: string;
|
|
@@ -203,6 +208,9 @@ interface DevInput {
|
|
|
203
208
|
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
|
|
204
209
|
readonly entry?: string | undefined;
|
|
205
210
|
readonly name?: string | undefined;
|
|
211
|
+
/** The environment to run as: a complete local copy of the app with its own services, databases and buckets. Defaults to `dev`. */
|
|
212
|
+
readonly environment?: string | undefined;
|
|
213
|
+
/** Deletes the environment's local copy of the app, and its data, before starting. Other environments are untouched. */
|
|
206
214
|
readonly fresh?: boolean | undefined;
|
|
207
215
|
/**
|
|
208
216
|
* Return once every service answers and leave the app running, with no
|
|
@@ -231,8 +239,10 @@ declare function dev(input: DevInput): Promise<Result<DevSession, CliStructuredE
|
|
|
231
239
|
interface DevUrlInput {
|
|
232
240
|
/** Composer's configuration: the `composer` section of `prisma.config.ts` and that file. It names the extensions whose local targets recorded the app. */
|
|
233
241
|
readonly config: ComposerConfigSource;
|
|
234
|
-
/** A node's dotted address
|
|
242
|
+
/** A node's full dotted address, starting with the app name, such as `shop.gateway`. The app is read from it. */
|
|
235
243
|
readonly address: string;
|
|
244
|
+
/** The environment whose local copy to read. Defaults to `dev`. */
|
|
245
|
+
readonly environment?: string | undefined;
|
|
236
246
|
/** The directory `prisma dev` ran from. Defaults to the process's working directory. */
|
|
237
247
|
readonly cwd?: string | undefined;
|
|
238
248
|
}
|
|
@@ -249,32 +259,33 @@ interface DevUrl {
|
|
|
249
259
|
}
|
|
250
260
|
interface DevStopInput {
|
|
251
261
|
readonly config: ComposerConfigSource;
|
|
262
|
+
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; the app is its root's name. */
|
|
263
|
+
readonly entry?: string | undefined;
|
|
264
|
+
/** The app to stop, in place of the entry root's name. */
|
|
265
|
+
readonly name?: string | undefined;
|
|
266
|
+
/** The environment whose local copy to stop. Defaults to `dev`. */
|
|
267
|
+
readonly environment?: string | undefined;
|
|
252
268
|
/** The directory `prisma dev` ran from. Defaults to the process's working directory. */
|
|
253
269
|
readonly cwd?: string | undefined;
|
|
254
270
|
}
|
|
255
271
|
interface DevStopped {
|
|
256
|
-
/** The app that was stopped
|
|
272
|
+
/** The app that was stopped. */
|
|
257
273
|
readonly app: string;
|
|
274
|
+
/** The environment whose local copy was stopped. */
|
|
275
|
+
readonly environment: string;
|
|
258
276
|
/** Each node whose process or server was stopped. Data and ports are kept. */
|
|
259
277
|
readonly stopped: readonly {
|
|
260
278
|
readonly address: string;
|
|
261
279
|
readonly kind: string;
|
|
262
280
|
}[];
|
|
263
281
|
}
|
|
264
|
-
/** Where the node at `input.address`
|
|
282
|
+
/** Where the node at `input.address` runs locally in the environment. */
|
|
265
283
|
declare function devUrl(input: DevUrlInput): Promise<Result<DevUrl, CliStructuredError>>;
|
|
266
|
-
/** Stops the
|
|
284
|
+
/** Stops the app's local copy in the environment: its service processes and database servers. Data and ports stay. */
|
|
267
285
|
declare function devStop(input: DevStopInput): Promise<Result<DevStopped, CliStructuredError>>;
|
|
268
286
|
//#endregion
|
|
269
287
|
//#region ../../0-framework/3-tooling/cli/dist/control.d.mts
|
|
270
288
|
//#region src/operations/destroy.d.ts
|
|
271
|
-
/** Destroy must name its target explicitly — no silent default to production. Encoded, not re-derived from flags. */
|
|
272
|
-
type DestroyTarget = {
|
|
273
|
-
readonly kind: 'production';
|
|
274
|
-
} | {
|
|
275
|
-
readonly kind: 'stage';
|
|
276
|
-
readonly stage: string;
|
|
277
|
-
};
|
|
278
289
|
type DestroyEvent =
|
|
279
290
|
/** Emitted before the pipeline when `<cwd>/.alchemy` is missing/empty. */
|
|
280
291
|
{
|
|
@@ -289,7 +300,8 @@ interface DestroyInput {
|
|
|
289
300
|
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
|
|
290
301
|
readonly entry?: string | undefined;
|
|
291
302
|
readonly name?: string | undefined;
|
|
292
|
-
|
|
303
|
+
/** The environment to destroy. Required: destroy never defaults to production. */
|
|
304
|
+
readonly environment: string;
|
|
293
305
|
readonly cwd?: string | undefined;
|
|
294
306
|
/** Mid-operation notifications, in real time. Rendering is the host's. */
|
|
295
307
|
readonly onEvent?: ((event: DestroyEvent) => void) | undefined;
|
|
@@ -322,6 +334,8 @@ interface LogInput {
|
|
|
322
334
|
/** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
|
|
323
335
|
readonly entry?: string | undefined;
|
|
324
336
|
readonly name?: string | undefined;
|
|
337
|
+
/** The environment whose local copy to read. Defaults to `dev`. */
|
|
338
|
+
readonly environment?: string | undefined;
|
|
325
339
|
/** Restrict to one service's dotted address; validated against running services. */
|
|
326
340
|
readonly address?: string | undefined;
|
|
327
341
|
/** Trailing history lines before live output. Defaults to 0 (live only). */
|
|
@@ -344,7 +358,7 @@ declare function log(input: LogInput): Promise<Result<LogAttached, CliStructured
|
|
|
344
358
|
//#endregion
|
|
345
359
|
//#region src/run-report.d.ts
|
|
346
360
|
/** Bump when a change would break a consumer that reads the current shape. */
|
|
347
|
-
declare const RUN_REPORT_VERSION =
|
|
361
|
+
declare const RUN_REPORT_VERSION = 2;
|
|
348
362
|
/** Names the file to write the run report to, when `--report` is not passed. */
|
|
349
363
|
declare const RUN_REPORT_FILE_ENV = "PRISMA_COMPOSER_REPORT_FILE";
|
|
350
364
|
interface RunReportFailure {
|
|
@@ -362,11 +376,10 @@ interface RunReport {
|
|
|
362
376
|
readonly outcome: 'succeeded' | 'failed';
|
|
363
377
|
/** Null when the run failed before it produced a deployment summary. */
|
|
364
378
|
readonly app: string | null;
|
|
365
|
-
|
|
366
|
-
readonly stage: string | null;
|
|
379
|
+
readonly environment: string;
|
|
367
380
|
readonly nodes: readonly DeployedNodeSummary[];
|
|
368
381
|
readonly failure: RunReportFailure | null;
|
|
369
382
|
}
|
|
370
383
|
//#endregion
|
|
371
|
-
export { type CliStructuredError, type ComposerConfigSource, type DeployEvent, type DeployInput, type DeployStep, type DeploySuccess, type DeployedNodeSummary, type DeploymentSummary, type DestroyEvent, type DestroyInput, type
|
|
384
|
+
export { type CliStructuredError, type ComposerConfigSource, type DeployEvent, type DeployInput, type DeployStep, type DeploySuccess, type DeployedNodeSummary, type DeploymentSummary, type DestroyEvent, type DestroyInput, type DevEvent, type DevInput, type DevSession, type DevStopInput, type DevStopped, type DevUrl, type DevUrlInput, type ExecutionDiagnostics, type LogAttached, type LogEvent, type LogInput, type LogLine, type NotOk, type Ok, RUN_REPORT_FILE_ENV, RUN_REPORT_VERSION, type Result, type RunReport, type RunReportFailure, type ServiceEndpoint, deploy, destroy, dev, devStop, devUrl, executionDiagnostics, log };
|
|
372
385
|
//# sourceMappingURL=control.d.mts.map
|
package/dist/control.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/composer-config-BJrPWlDx.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/cli/dist/dev-current-
|
|
1
|
+
{"version":3,"file":"control.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/composer-config-BJrPWlDx.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/cli/dist/dev-current-DfJfxg2y.d.mts","../../../0-framework/3-tooling/cli/dist/control.d.mts"],"mappings":";;;;;;;;;UAGU;;WAEC,OAAO;;WAEP;;;;;;;;UCHD,GAAG;WACF;WACA,OAAO;EAChB,YAAY;EACZ;;;;;UAKQ,MAAM;WACL;WACA,SAAS;EAClB;EACA,eAAe;;;;;;;;KAQZ,OAAO,GAAG,KAAK,GAAG,KAAK,MAAM;;;;;;;UCwDxB;WACC;WACA;;WAEA;;;;;;;;;;UA0CD;;;WAGC;;;;WAIA;WACA;WACA;WACA;;;;;;iBAMM,qBAAqB,GAAG,qBAAqB;;;;KAIzD;WACM;;WAEA;WACA;;KAEN;WACM;WACA,MAAM;;WAEN;WACA,MAAM;WACN;WACA;;WAEA,OAAO,SAAS;;UAIjB;;;;WAIC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;;;;;;WAOA;;;;;;;WAOA;;WAEA,YAAY,OAAO;;UAEpB;;;WAGC,SAAS;;WAET;;iBAEM,OAAO,OAAO,cAAc,QAAQ,OAAO,eAAe;;;KAOtE;;;WAGM;WACA,oBAAoB;;WAEpB;WACA;;;;WAIA;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;;iBAEF,IAAI,OAAO,WAAW,QAAQ,OAAO,YAAY;;;UAOxD;;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,OAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,OAAO,YAAY;;;;KC/VrE;;;WAGM;WACA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;;WAEA;WACA;;WAEA,YAAY,OAAO;;iBAEb,QAAQ,OAAO,eAAe,QAAQ,aAAe;;;UAG5D;WACC;WACA;;KAEN;;;WAGM;WACA;;;;;WAKA;WACA;;UAED;;;;;WAKC,QAAQ;;WAER;WACA;;WAEA;;WAEA;;WAEA;WACA;;WAEA,SAAS;WACT,YAAY,OAAO;;UAEpB;;WAEC;;;WAGA,mBAAmB;;WAEnB,OAAO,cAAc;;iBAEf,IAAI,OAAO,WAAW,QAAQ,OAAS,aAAa;;;;cAIvD;;cAEA;UACJ;;WAEC;WACA;;;;;;;UAOD;WACC;WACA;;WAEA;WACA;WACA,gBAAgB;WAChB,SAAS"}
|
package/dist/control.mjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
|
|
2
|
+
import { a as executionDiagnostics, i as devUrl, l as notOk, n as dev, o as executorLoadFailure, r as devStop, t as deploy } from "./dev-current-BNoPkDRU-CtQMfn60.mjs";
|
|
3
|
+
import { n as RUN_REPORT_VERSION, t as RUN_REPORT_FILE_ENV } from "./run-report-CmBz2-xc-S50d4g5V.mjs";
|
|
3
4
|
//#region ../../0-framework/3-tooling/cli/dist/control.mjs
|
|
5
|
+
/**
|
|
6
|
+
* The programmatic `destroy` operation (`@prisma/composer/control`): typed
|
|
7
|
+
* input, structured result, no argv, no console, no process.exit. No CLI
|
|
8
|
+
* command wraps it. The executor
|
|
9
|
+
* loads lazily, so importing this module executes nothing; an executor that
|
|
10
|
+
* fails to load comes back as a structured failure, never a throw out of
|
|
11
|
+
* the host.
|
|
12
|
+
*/
|
|
4
13
|
async function destroy(input) {
|
|
5
14
|
return destroyWithDeps(input, {});
|
|
6
15
|
}
|
|
@@ -8,15 +17,22 @@ async function destroy(input) {
|
|
|
8
17
|
* Deliberately NOT re-exported through `./control` — the seam mirrors
|
|
9
18
|
* internal types and is not part of the published surface. */
|
|
10
19
|
async function destroyWithDeps(input, deps) {
|
|
20
|
+
if (typeof input.environment !== "string" || input.environment.length === 0) return notOk(environmentRequired());
|
|
11
21
|
const cwd = input.cwd ?? process.cwd();
|
|
12
22
|
let executor;
|
|
13
23
|
try {
|
|
14
|
-
executor = await import("./execute-deploy-destroy-
|
|
24
|
+
executor = await import("./execute-deploy-destroy-BIqwt1RF-CP2mVGW_.mjs");
|
|
15
25
|
} catch (error) {
|
|
16
26
|
return notOk(executorLoadFailure("destroy", error));
|
|
17
27
|
}
|
|
18
28
|
return executor.executeDestroy(input, deps, cwd);
|
|
19
29
|
}
|
|
30
|
+
function environmentRequired() {
|
|
31
|
+
return new CliStructuredError("DEPLOY.ENVIRONMENT_REQUIRED", "destroy needs the name of the environment to destroy.", {
|
|
32
|
+
why: "Destroy never defaults to production, so a call without a name has no target.",
|
|
33
|
+
fix: "Pass `environment`, for example `destroy({ environment: 'staging', config })`."
|
|
34
|
+
});
|
|
35
|
+
}
|
|
20
36
|
async function log(input) {
|
|
21
37
|
return logWithDeps(input, {});
|
|
22
38
|
}
|
|
@@ -27,7 +43,7 @@ async function logWithDeps(input, deps) {
|
|
|
27
43
|
const cwd = input.cwd ?? process.cwd();
|
|
28
44
|
let executor;
|
|
29
45
|
try {
|
|
30
|
-
executor = await import("./execute-log-
|
|
46
|
+
executor = await import("./execute-log-DA5AAQAA-ByUrxpMJ.mjs");
|
|
31
47
|
} catch (error) {
|
|
32
48
|
return notOk(executorLoadFailure("log", error));
|
|
33
49
|
}
|
package/dist/control.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/control.mjs"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"control.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/control.mjs"],"sourcesContent":["import { c as executionDiagnostics, l as executorLoadFailure, n as devUrl, o as deploy, r as dev, t as devStop } from \"./dev-current-BNoPkDRU.mjs\";\nimport { n as RUN_REPORT_VERSION, t as RUN_REPORT_FILE_ENV } from \"./run-report-CmBz2-xc.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { notOk } from \"@internal/foundation/result\";\n//#region src/operations/destroy.ts\n/**\n* The programmatic `destroy` operation (`@prisma/composer/control`): typed\n* input, structured result, no argv, no console, no process.exit. No CLI\n* command wraps it. The executor\n* loads lazily, so importing this module executes nothing; an executor that\n* fails to load comes back as a structured failure, never a throw out of\n* the host.\n*/\nasync function destroy(input) {\n\treturn destroyWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, for the unit tests.\n* Deliberately NOT re-exported through `./control` — the seam mirrors\n* internal types and is not part of the published surface. */\nasync function destroyWithDeps(input, deps) {\n\tif (typeof input.environment !== \"string\" || input.environment.length === 0) return notOk(environmentRequired());\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-deploy-destroy-BIqwt1RF.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"destroy\", error));\n\t}\n\treturn executor.executeDestroy(input, deps, cwd);\n}\nfunction environmentRequired() {\n\treturn new CliStructuredError(\"DEPLOY.ENVIRONMENT_REQUIRED\", \"destroy needs the name of the environment to destroy.\", {\n\t\twhy: \"Destroy never defaults to production, so a call without a name has no target.\",\n\t\tfix: \"Pass `environment`, for example `destroy({ environment: 'staging', config })`.\"\n\t});\n}\n//#endregion\n//#region src/operations/log.ts\nasync function log(input) {\n\treturn logWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, for the unit tests.\n* Deliberately NOT re-exported through `./control` — the seam\n* mirrors internal types and is not part of the published surface. */\nasync function logWithDeps(input, deps) {\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-log-DA5AAQAA.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"log\", error));\n\t}\n\treturn executor.executeLog(input, deps, cwd);\n}\n//#endregion\nexport { RUN_REPORT_FILE_ENV, RUN_REPORT_VERSION, deploy, destroy, dev, devStop, devUrl, executionDiagnostics, log };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,eAAe,QAAQ,OAAO;CAC7B,OAAO,gBAAgB,OAAO,CAAC,CAAC;AACjC;;;;AAIA,eAAe,gBAAgB,OAAO,MAAM;CAC3C,IAAI,OAAO,MAAM,gBAAgB,YAAY,MAAM,YAAY,WAAW,GAAG,OAAO,MAAM,oBAAoB,CAAC;CAC/G,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,WAAW,KAAK,CAAC;CACnD;CACA,OAAO,SAAS,eAAe,OAAO,MAAM,GAAG;AAChD;AACA,SAAS,sBAAsB;CAC9B,OAAO,IAAI,mBAAmB,+BAA+B,yDAAyD;EACrH,KAAK;EACL,KAAK;CACN,CAAC;AACF;AAGA,eAAe,IAAI,OAAO;CACzB,OAAO,YAAY,OAAO,CAAC,CAAC;AAC7B;;;;AAIA,eAAe,YAAY,OAAO,MAAM;CACvC,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,OAAO,KAAK,CAAC;CAC/C;CACA,OAAO,SAAS,WAAW,OAAO,MAAM,GAAG;AAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./app-config-CWm3wlNA-BVGreP8x.mjs";
|
package/dist/deploy.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import "./deploy-
|
|
3
|
-
export { AlchemyStateLayer, ApplicationDescriptor, Artifact, AssembleInput, Bundle, DeployedEntity, DeployedNode, DeploymentResult, DevServer, LowerContext, LowerError, LowerOptions, LoweredResult, Lowering, Outputs, PackageInput, ProvisionEdge, ProvisionerDescriptor, ServeInput, ServiceLowering, buildConfig, joinDeployment, lower, lowering, mergedProviders, resolveStateLayer };
|
|
1
|
+
import { A as LoweredResult, D as LowerContext, G as ServeInput, K as ServiceLowering, N as Outputs, O as LowerError, P as PackageInput, R as ProvisionEdge, X as connectionInputs, Y as buildConfig, a as Bundle, at as lowering, d as DeployedEntity, f as DeployedNode, i as AssembleInput, it as lower, j as Lowering, k as LowerOptions, m as DevServer, n as ApplicationDescriptor, ot as mergedProviders, p as DeploymentResult, r as Artifact, rt as joinDeployment, t as AlchemyStateLayer, ut as resolveStateLayer, z as ProvisionerDescriptor } from "./app-config-CWm3wlNA-BVGreP8x.mjs";
|
|
2
|
+
import "./deploy-BSdGEsYV.mjs";
|
|
3
|
+
export { AlchemyStateLayer, ApplicationDescriptor, Artifact, AssembleInput, Bundle, DeployedEntity, DeployedNode, DeploymentResult, DevServer, LowerContext, LowerError, LowerOptions, LoweredResult, Lowering, Outputs, PackageInput, ProvisionEdge, ProvisionerDescriptor, ServeInput, ServiceLowering, buildConfig, connectionInputs, joinDeployment, lower, lowering, mergedProviders, resolveStateLayer };
|