@prisma/composer-cli 0.25.0 → 0.26.0-dev.1
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/composer-config-CY9fET8H-KpGjlYgO.mjs +432 -0
- package/dist/composer-config-CY9fET8H-KpGjlYgO.mjs.map +1 -0
- package/dist/{pipeline-C7gNjMzJ-CMqZQxqM.mjs → container-transport-HcvNOGZL-CHqecFc7.mjs} +109 -322
- package/dist/container-transport-HcvNOGZL-CHqecFc7.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-CvKCwVkD-B3vcxYJF.mjs → execute-deploy-destroy-c0eko3AO-9npuGXd3.mjs} +108 -85
- package/dist/execute-deploy-destroy-c0eko3AO-9npuGXd3.mjs.map +1 -0
- package/dist/{execute-dev-BLCK5wF7-CuzMSK7T.mjs → execute-dev-BICPaq1g-CSoZJuhB.mjs} +162 -132
- package/dist/execute-dev-BICPaq1g-CSoZJuhB.mjs.map +1 -0
- package/dist/{family-B1RaH4f8-ChoTnv3A.d.mts → family-CgeZQdNg-gH8LuqqL.d.mts} +136 -172
- package/dist/family-CgeZQdNg-gH8LuqqL.d.mts.map +1 -0
- package/dist/family.d.mts +4 -39
- package/dist/family.d.mts.map +1 -1
- package/dist/family.mjs +49 -551
- package/dist/family.mjs.map +1 -1
- package/dist/generate-dev-stack-BUadNY_w-DF_lHVaP.mjs +87 -0
- package/dist/generate-dev-stack-BUadNY_w-DF_lHVaP.mjs.map +1 -0
- package/dist/run-alchemy-BEvB2sYQ-BgV2deuO.mjs +154 -0
- package/dist/run-alchemy-BEvB2sYQ-BgV2deuO.mjs.map +1 -0
- package/dist/testing.d.mts +24 -24
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +17 -45
- package/dist/testing.mjs.map +1 -1
- package/package.json +7 -11
- package/src/exports/testing.ts +5 -3
- package/dist/bin.mjs +0 -1040
- package/dist/bin.mjs.map +0 -1
- package/dist/container-transport-HcvNOGZL-CIoZc7Rs.mjs +0 -34
- package/dist/container-transport-HcvNOGZL-CIoZc7Rs.mjs.map +0 -1
- package/dist/execute-deploy-destroy-CvKCwVkD-B3vcxYJF.mjs.map +0 -1
- package/dist/execute-deploy-destroy-CvKCwVkD-DCufHnkW.mjs +0 -528
- package/dist/execute-deploy-destroy-CvKCwVkD-DCufHnkW.mjs.map +0 -1
- package/dist/execute-dev-BLCK5wF7-B-fG_E31.mjs +0 -2011
- package/dist/execute-dev-BLCK5wF7-B-fG_E31.mjs.map +0 -1
- package/dist/execute-dev-BLCK5wF7-CuzMSK7T.mjs.map +0 -1
- package/dist/execute-log-B_zCJ17b-BrLUt7vo.mjs +0 -157
- package/dist/execute-log-B_zCJ17b-BrLUt7vo.mjs.map +0 -1
- package/dist/execute-log-B_zCJ17b-C4a0uxJj.mjs +0 -158
- package/dist/execute-log-B_zCJ17b-C4a0uxJj.mjs.map +0 -1
- package/dist/family-B1RaH4f8-ChoTnv3A.d.mts.map +0 -1
- package/dist/local-target-BOGjATc2.mjs +0 -68
- package/dist/local-target-BOGjATc2.mjs.map +0 -1
- package/dist/local-target-hoEGqgVA.mjs +0 -68
- package/dist/local-target-hoEGqgVA.mjs.map +0 -1
- package/dist/pipeline-C7gNjMzJ-CMqZQxqM.mjs.map +0 -1
- package/dist/pipeline-C7gNjMzJ-CixaMvnR.mjs +0 -1205
- package/dist/pipeline-C7gNjMzJ-CixaMvnR.mjs.map +0 -1
- package/dist/result-B874OKwb.mjs +0 -383
- package/dist/result-B874OKwb.mjs.map +0 -1
- package/dist/result-sR7PBi61.mjs +0 -229
- package/dist/result-sR7PBi61.mjs.map +0 -1
- package/dist/run-alchemy-pANK8XNX-BH1wC0r6.mjs +0 -99
- package/dist/run-alchemy-pANK8XNX-BH1wC0r6.mjs.map +0 -1
- package/dist/run-alchemy-pANK8XNX-XcCQncKN.mjs +0 -99
- package/dist/run-alchemy-pANK8XNX-XcCQncKN.mjs.map +0 -1
- package/dist/shared-BTnATsqm-BH4axbJg.mjs +0 -158
- package/dist/shared-BTnATsqm-BH4axbJg.mjs.map +0 -1
|
@@ -589,70 +589,7 @@ interface Graph {
|
|
|
589
589
|
readonly params: readonly ParamBinding[];
|
|
590
590
|
}
|
|
591
591
|
//#endregion
|
|
592
|
-
//#region ../../0-framework/
|
|
593
|
-
/**
|
|
594
|
-
* WHAT to converge. Deliberately not a command line: which alchemy binary to
|
|
595
|
-
* run is a question about this machine's installed tree, and answering it
|
|
596
|
-
* eagerly would make an injected adapter — a test's fake child — fail in a
|
|
597
|
-
* directory that has no alchemy installed, before the fake ever ran. The
|
|
598
|
-
* adapter resolves the binary, because the adapter is what starts a child.
|
|
599
|
-
*
|
|
600
|
-
* `env` carries only the ADDITIONS to the invoking environment — the container
|
|
601
|
-
* transport vars and the result-file pointer — never a whole environment: the
|
|
602
|
-
* engine merges additions over the invocation environment and applies its own
|
|
603
|
-
* credential vars last.
|
|
604
|
-
*/
|
|
605
|
-
interface AlchemyInvocation {
|
|
606
|
-
readonly action: 'deploy' | 'destroy';
|
|
607
|
-
readonly stackFileRelativePath: string;
|
|
608
|
-
readonly cwd: string;
|
|
609
|
-
readonly stage: string;
|
|
610
|
-
readonly env: Readonly<Record<string, string | undefined>>;
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* How the converge child ended, verbatim. A signal-killed child carries
|
|
614
|
-
* `signal` and a null `exitCode`; callers branch on `signal` first, because a
|
|
615
|
-
* signal-killed child is an abort, not a failure. Structurally the engine's
|
|
616
|
-
* `ChildResult`, declared here so the control surface does not depend on the
|
|
617
|
-
* engine.
|
|
618
|
-
*/
|
|
619
|
-
interface AlchemyOutcome {
|
|
620
|
-
readonly exitCode: number | null;
|
|
621
|
-
readonly signal: string | null;
|
|
622
|
-
}
|
|
623
|
-
/** Starts the converge and resolves when it ends. The CLI supplies one backed
|
|
624
|
-
* by `ctx.spawn`; hosts get `spawnAlchemy`. */
|
|
625
|
-
type RunAlchemy = (invocation: AlchemyInvocation) => Promise<AlchemyOutcome>;
|
|
626
|
-
//#endregion
|
|
627
|
-
//#region ../../0-framework/0-foundation/foundation/dist/result.d.mts
|
|
628
|
-
//#region src/result.d.ts
|
|
629
|
-
/**
|
|
630
|
-
* Represents a successful result containing a value.
|
|
631
|
-
*/
|
|
632
|
-
interface Ok<T> {
|
|
633
|
-
readonly ok: true;
|
|
634
|
-
readonly value: T;
|
|
635
|
-
assertOk(): T;
|
|
636
|
-
assertNotOk(): never;
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* Represents an unsuccessful result containing failure details.
|
|
640
|
-
*/
|
|
641
|
-
interface NotOk<F> {
|
|
642
|
-
readonly ok: false;
|
|
643
|
-
readonly failure: F;
|
|
644
|
-
assertOk(): never;
|
|
645
|
-
assertNotOk(): F;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* A discriminated union representing either success (Ok) or failure (NotOk).
|
|
649
|
-
*
|
|
650
|
-
* @typeParam T - The success value type
|
|
651
|
-
* @typeParam F - The failure details type
|
|
652
|
-
*/
|
|
653
|
-
type Result$1<T, F> = Ok<T> | NotOk<F>;
|
|
654
|
-
//#endregion
|
|
655
|
-
//#region ../../0-framework/1-core/core/dist/app-config-jGcCcxK4.d.mts
|
|
592
|
+
//#region ../../0-framework/1-core/core/dist/app-config-DyCMnkDr.d.mts
|
|
656
593
|
//#region src/container-transport.d.ts
|
|
657
594
|
/**
|
|
658
595
|
* Carries resolved containers from the CLI process into the alchemy process
|
|
@@ -907,7 +844,7 @@ interface Bundle {
|
|
|
907
844
|
readonly entry: string;
|
|
908
845
|
/**
|
|
909
846
|
* Absolute paths to the USER-BUILT inputs this bundle was assembled from
|
|
910
|
-
* (ADR-0041). `prisma
|
|
847
|
+
* (ADR-0041). `prisma dev`'s watch loop watches exactly these — a
|
|
911
848
|
* file entry as a file, a directory entry recursively — and re-runs
|
|
912
849
|
* assemble on a change. Optional so a build adapter that predates this
|
|
913
850
|
* field still compiles; a bundle without it is simply not watched.
|
|
@@ -1192,11 +1129,7 @@ interface PrismaAppConfig {
|
|
|
1192
1129
|
readonly state: StateDescriptor;
|
|
1193
1130
|
}
|
|
1194
1131
|
//#endregion
|
|
1195
|
-
//#region ../../0-framework/3-tooling/
|
|
1196
|
-
/** Assembles one service node — the seam tests substitute to avoid a real build. */
|
|
1197
|
-
type RunAssembler = (node: ServiceNode, address: string, cwd: string) => Promise<Bundle>;
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region ../../0-framework/3-tooling/cli/dist/log-C9rzlqfJ.d.mts
|
|
1132
|
+
//#region ../../0-framework/3-tooling/cli/dist/deployment-summary-CU-eVvJM.d.mts
|
|
1200
1133
|
//#region src/deployment-summary.d.ts
|
|
1201
1134
|
/** The serializable projection of DeploymentResult — what CAN cross the process
|
|
1202
1135
|
* boundary. Writer (report hook) and reader (deploy operation) share this shape. */
|
|
@@ -1209,6 +1142,115 @@ interface DeploymentSummary {
|
|
|
1209
1142
|
readonly nodes: readonly DeployedNodeSummary[];
|
|
1210
1143
|
}
|
|
1211
1144
|
//#endregion
|
|
1145
|
+
//#region ../../0-framework/0-foundation/foundation/dist/result.d.mts
|
|
1146
|
+
//#region src/result.d.ts
|
|
1147
|
+
/**
|
|
1148
|
+
* Represents a successful result containing a value.
|
|
1149
|
+
*/
|
|
1150
|
+
interface Ok<T> {
|
|
1151
|
+
readonly ok: true;
|
|
1152
|
+
readonly value: T;
|
|
1153
|
+
assertOk(): T;
|
|
1154
|
+
assertNotOk(): never;
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Represents an unsuccessful result containing failure details.
|
|
1158
|
+
*/
|
|
1159
|
+
interface NotOk<F> {
|
|
1160
|
+
readonly ok: false;
|
|
1161
|
+
readonly failure: F;
|
|
1162
|
+
assertOk(): never;
|
|
1163
|
+
assertNotOk(): F;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* A discriminated union representing either success (Ok) or failure (NotOk).
|
|
1167
|
+
*
|
|
1168
|
+
* @typeParam T - The success value type
|
|
1169
|
+
* @typeParam F - The failure details type
|
|
1170
|
+
*/
|
|
1171
|
+
type Result$1<T, F> = Ok<T> | NotOk<F>;
|
|
1172
|
+
//#endregion
|
|
1173
|
+
//#region ../../0-framework/3-tooling/assemble/dist/index.d.mts
|
|
1174
|
+
//#endregion
|
|
1175
|
+
//#region src/assemble-services.d.ts
|
|
1176
|
+
interface AssembledServices {
|
|
1177
|
+
/** One bundle per provisioned service, keyed by the service's full hierarchical address (its graph id). */
|
|
1178
|
+
readonly bundles: Record<string, Bundle>;
|
|
1179
|
+
}
|
|
1180
|
+
/** Assembles one service node — the seam tests substitute to avoid a real build. */
|
|
1181
|
+
type RunAssembler = (node: ServiceNode, address: string, cwd: string) => Promise<Bundle>;
|
|
1182
|
+
//#endregion
|
|
1183
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-CpevhBSn.d.mts
|
|
1184
|
+
//#region src/composer-config.d.ts
|
|
1185
|
+
/** Composer's configuration and the `prisma.config.ts` that declares it. */
|
|
1186
|
+
interface ComposerConfigSource {
|
|
1187
|
+
/** The `composer` section: the `composer` property of that file's default export. */
|
|
1188
|
+
readonly value: PrismaAppConfig;
|
|
1189
|
+
/** The declaring `prisma.config.ts`. The deploy's generated stack file imports it. A relative path resolves against the operation's `cwd`. */
|
|
1190
|
+
readonly file: string;
|
|
1191
|
+
}
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region src/dev/watch.d.ts
|
|
1194
|
+
interface WatchTarget {
|
|
1195
|
+
readonly address: string;
|
|
1196
|
+
readonly paths: readonly string[];
|
|
1197
|
+
}
|
|
1198
|
+
interface WatchHandle {
|
|
1199
|
+
/** Resolves once chokidar's OS-level watches are attached — a change made before this can be missed entirely. Also resolves on `stop()` so an awaiting caller can never hang. */
|
|
1200
|
+
readonly ready: Promise<void>;
|
|
1201
|
+
stop(): void;
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Watches every target's paths via chokidar, debounced 300 ms and coalesced
|
|
1205
|
+
* across every service, invoking `onChange` once per burst.
|
|
1206
|
+
*
|
|
1207
|
+
* File targets are watched THROUGH their parent directory, filtered to the
|
|
1208
|
+
* exact path: a watch bound directly to a file dies with the file's inode
|
|
1209
|
+
* on Linux, so `rm -rf dist && bun build --outfile dist/x.mjs` — every
|
|
1210
|
+
* rebuild's shape — would go silently unobserved after the first delete
|
|
1211
|
+
* (chokidar absorbs atomic renames, not unlink+recreate of a directly
|
|
1212
|
+
* watched file; proven by the delete-recreate test failing on Linux CI
|
|
1213
|
+
* only). Directory targets are watched recursively as themselves; a
|
|
1214
|
+
* nonexistent path is treated as a file target, so it starts reporting the
|
|
1215
|
+
* moment something creates it.
|
|
1216
|
+
*/
|
|
1217
|
+
declare function startWatch(targets: readonly WatchTarget[], onChange: () => void, onError?: (error: unknown) => void): WatchHandle;
|
|
1218
|
+
//#endregion
|
|
1219
|
+
//#region src/run-alchemy.d.ts
|
|
1220
|
+
/**
|
|
1221
|
+
* WHAT to converge. Deliberately not a command line: which alchemy binary to
|
|
1222
|
+
* run is a question about this machine's installed tree, and answering it
|
|
1223
|
+
* eagerly would make an injected adapter — a test's fake child — fail in a
|
|
1224
|
+
* directory that has no alchemy installed, before the fake ever ran. The
|
|
1225
|
+
* adapter resolves the binary, because the adapter is what starts a child.
|
|
1226
|
+
*
|
|
1227
|
+
* `env` carries only the ADDITIONS to the invoking environment — the container
|
|
1228
|
+
* transport vars and the result-file pointer — never a whole environment: the
|
|
1229
|
+
* engine merges additions over the invocation environment and applies its own
|
|
1230
|
+
* credential vars last.
|
|
1231
|
+
*/
|
|
1232
|
+
interface AlchemyInvocation {
|
|
1233
|
+
readonly action: 'deploy' | 'destroy';
|
|
1234
|
+
readonly stackFileRelativePath: string;
|
|
1235
|
+
readonly cwd: string;
|
|
1236
|
+
readonly stage: string;
|
|
1237
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* How the converge child ended, verbatim. A signal-killed child carries
|
|
1241
|
+
* `signal` and a null `exitCode`; callers branch on `signal` first, because a
|
|
1242
|
+
* signal-killed child is an abort, not a failure. Structurally the engine's
|
|
1243
|
+
* `ChildResult`, declared here so the control surface does not depend on the
|
|
1244
|
+
* engine.
|
|
1245
|
+
*/
|
|
1246
|
+
interface AlchemyOutcome {
|
|
1247
|
+
readonly exitCode: number | null;
|
|
1248
|
+
readonly signal: string | null;
|
|
1249
|
+
}
|
|
1250
|
+
/** Starts the converge and resolves when it ends. The CLI supplies one backed
|
|
1251
|
+
* by `ctx.spawn`; hosts get `spawnAlchemy`. */
|
|
1252
|
+
type RunAlchemy = (invocation: AlchemyInvocation) => Promise<AlchemyOutcome>;
|
|
1253
|
+
//#endregion
|
|
1212
1254
|
//#region src/operations/shared.d.ts
|
|
1213
1255
|
/** A running service's dotted address plus its local URL — what `dev` reports
|
|
1214
1256
|
* as the front door and `log` reports as the tailable services. */
|
|
@@ -1218,7 +1260,7 @@ interface ServiceEndpoint {
|
|
|
1218
1260
|
}
|
|
1219
1261
|
/**
|
|
1220
1262
|
* The operations' in-package injection seam — lets the CLI's own tests drive
|
|
1221
|
-
* them without a real wrapper build
|
|
1263
|
+
* them without a real wrapper build or alchemy process.
|
|
1222
1264
|
* Threaded through the *WithDeps variants, never part of the published
|
|
1223
1265
|
* surface: the fields mirror internal types.
|
|
1224
1266
|
*/
|
|
@@ -1230,9 +1272,8 @@ interface OperationDeps {
|
|
|
1230
1272
|
* owns signal policy; hosts get the default `spawnAlchemy`.
|
|
1231
1273
|
*/
|
|
1232
1274
|
readonly alchemy?: RunAlchemy | undefined;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
readonly configPath?: string | undefined;
|
|
1275
|
+
/** Starts a file watch for `dev`; defaults to chokidar-backed `startWatch`. Tests substitute it to drive changes directly. */
|
|
1276
|
+
readonly watch?: typeof startWatch | undefined;
|
|
1236
1277
|
/**
|
|
1237
1278
|
* How the in-process leg authenticates: the caller's already-authenticated
|
|
1238
1279
|
* API client and the workspace it acts in. Supplied by the CLI from the
|
|
@@ -1252,7 +1293,11 @@ interface OperationDeps {
|
|
|
1252
1293
|
//#endregion
|
|
1253
1294
|
//#region src/operations/deploy.d.ts
|
|
1254
1295
|
interface DeployInput {
|
|
1255
|
-
/**
|
|
1296
|
+
/**
|
|
1297
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
1298
|
+
*/
|
|
1299
|
+
readonly config: ComposerConfigSource;
|
|
1300
|
+
/** Path to the entry module, resolved against `cwd` — same contract as `prisma deploy <entry>`. */
|
|
1256
1301
|
readonly entry: string;
|
|
1257
1302
|
/** Override the root node's name (the `--name` flag's slot). */
|
|
1258
1303
|
readonly name?: string | undefined;
|
|
@@ -1280,38 +1325,11 @@ interface DeploySuccess {
|
|
|
1280
1325
|
* did not write one (injected fake alchemy, or a report-less apply). */
|
|
1281
1326
|
readonly summary: DeploymentSummary | undefined;
|
|
1282
1327
|
}
|
|
1283
|
-
/** In-package variant threading the injection seam
|
|
1284
|
-
* tests
|
|
1328
|
+
/** In-package variant threading the injection seam, which the family's
|
|
1329
|
+
* commands and the unit tests use. Deliberately NOT re-exported through `./control` — the seam mirrors
|
|
1285
1330
|
* internal types and is not part of the published surface. */
|
|
1286
1331
|
declare function deployWithDeps(input: DeployInput, deps: OperationDeps): Promise<Result$1<DeploySuccess, CliStructuredError>>;
|
|
1287
1332
|
//#endregion
|
|
1288
|
-
//#region src/operations/destroy.d.ts
|
|
1289
|
-
/** Destroy must name its target explicitly — no silent default to production. Encoded, not re-derived from flags. */
|
|
1290
|
-
type DestroyTarget = {
|
|
1291
|
-
readonly kind: 'production';
|
|
1292
|
-
} | {
|
|
1293
|
-
readonly kind: 'stage';
|
|
1294
|
-
readonly stage: string;
|
|
1295
|
-
};
|
|
1296
|
-
type DestroyEvent =
|
|
1297
|
-
/** Emitted before the pipeline when `<cwd>/.alchemy` is missing/empty. */
|
|
1298
|
-
{
|
|
1299
|
-
readonly kind: 'no-local-deploy-state';
|
|
1300
|
-
readonly cwd: string;
|
|
1301
|
-
};
|
|
1302
|
-
interface DestroyInput {
|
|
1303
|
-
readonly entry: string;
|
|
1304
|
-
readonly name?: string | undefined;
|
|
1305
|
-
readonly target: DestroyTarget;
|
|
1306
|
-
readonly cwd?: string | undefined;
|
|
1307
|
-
/** Mid-operation notifications, in real time. Rendering is the host's. */
|
|
1308
|
-
readonly onEvent?: ((event: DestroyEvent) => void) | undefined;
|
|
1309
|
-
}
|
|
1310
|
-
/** In-package variant threading the injection seam (the CLI's RunDeps, unit
|
|
1311
|
-
* tests). Deliberately NOT re-exported through `./control` — the seam mirrors
|
|
1312
|
-
* internal types and is not part of the published surface. */
|
|
1313
|
-
declare function destroyWithDeps(input: DestroyInput, deps: OperationDeps): Promise<Result$1<void, CliStructuredError>>;
|
|
1314
|
-
//#endregion
|
|
1315
1333
|
//#region src/operations/dev.d.ts
|
|
1316
1334
|
type DevEvent =
|
|
1317
1335
|
/** Initial front door + after each successful re-converge. */
|
|
@@ -1330,6 +1348,11 @@ type DevEvent =
|
|
|
1330
1348
|
readonly kind: 'watch-error';
|
|
1331
1349
|
readonly message: string;
|
|
1332
1350
|
} |
|
|
1351
|
+
/** `prisma.config.ts` changed. The session keeps the config it started with and stops rebuilding until it is restarted. */
|
|
1352
|
+
{
|
|
1353
|
+
readonly kind: 'config-changed';
|
|
1354
|
+
readonly file: string;
|
|
1355
|
+
} |
|
|
1333
1356
|
/** The app keeps running, still watching. */
|
|
1334
1357
|
{
|
|
1335
1358
|
readonly kind: 'converge-failed';
|
|
@@ -1347,6 +1370,10 @@ type DevEvent =
|
|
|
1347
1370
|
readonly kind: 'stopped';
|
|
1348
1371
|
};
|
|
1349
1372
|
interface DevInput {
|
|
1373
|
+
/**
|
|
1374
|
+
* Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
|
|
1375
|
+
*/
|
|
1376
|
+
readonly config: ComposerConfigSource;
|
|
1350
1377
|
readonly entry: string;
|
|
1351
1378
|
readonly name?: string | undefined;
|
|
1352
1379
|
readonly fresh?: boolean | undefined;
|
|
@@ -1365,73 +1392,12 @@ interface DevSession {
|
|
|
1365
1392
|
/** Settles when the session has fully stopped (via stop()). */
|
|
1366
1393
|
readonly closed: Promise<void>;
|
|
1367
1394
|
}
|
|
1368
|
-
/** In-package variant threading the injection seam
|
|
1369
|
-
* tests
|
|
1395
|
+
/** In-package variant threading the injection seam, which the family's
|
|
1396
|
+
* commands and the unit tests use. Deliberately NOT re-exported through `./control` — the seam mirrors
|
|
1370
1397
|
* internal types and is not part of the published surface. */
|
|
1371
1398
|
declare function devWithDeps(input: DevInput, deps: OperationDeps): Promise<Result$1<DevSession, CliStructuredError>>;
|
|
1372
1399
|
//#endregion
|
|
1373
|
-
//#region
|
|
1374
|
-
interface AppIdentity {
|
|
1375
|
-
readonly configPath: string;
|
|
1376
|
-
readonly config: PrismaAppConfig;
|
|
1377
|
-
readonly name: string;
|
|
1378
|
-
}
|
|
1379
|
-
//#endregion
|
|
1380
|
-
//#region src/operations/log.d.ts
|
|
1381
|
-
interface LogLine {
|
|
1382
|
-
readonly service: string;
|
|
1383
|
-
readonly line: string;
|
|
1384
|
-
}
|
|
1385
|
-
type LogEvent =
|
|
1386
|
-
/** One attachment's stream died; the others continue. */
|
|
1387
|
-
{
|
|
1388
|
-
readonly kind: 'stream-failed';
|
|
1389
|
-
readonly message: string;
|
|
1390
|
-
} |
|
|
1391
|
-
/** The consumer fell behind and the bounded merge queue overflowed:
|
|
1392
|
-
* `count` oldest lines were dropped since the last delivered line. */
|
|
1393
|
-
{
|
|
1394
|
-
readonly kind: 'lines-dropped';
|
|
1395
|
-
readonly count: number;
|
|
1396
|
-
};
|
|
1397
|
-
/** The log operation's in-package injection seam (the CLI's LogRunDeps, unit
|
|
1398
|
-
* tests) — threaded through logWithDeps, never part of the published surface. */
|
|
1399
|
-
interface LogDeps {
|
|
1400
|
-
/** Substituted for the c12 evaluation of the discovered config file (discovery still runs). */
|
|
1401
|
-
readonly config?: PrismaAppConfig | undefined;
|
|
1402
|
-
/** Overrides the identity resolution (config + name) — lets tests skip a real entry module. */
|
|
1403
|
-
readonly identity?: AppIdentity | undefined;
|
|
1404
|
-
/** Names the config file explicitly instead of walking up from the entry. */
|
|
1405
|
-
readonly configPath?: string | undefined;
|
|
1406
|
-
}
|
|
1407
|
-
interface LogInput {
|
|
1408
|
-
readonly entry: string;
|
|
1409
|
-
readonly name?: string | undefined;
|
|
1410
|
-
/** Restrict to one service's dotted address; validated against running services. */
|
|
1411
|
-
readonly address?: string | undefined;
|
|
1412
|
-
/** Trailing history lines before live output. Defaults to 0 (live only) —
|
|
1413
|
-
* the attachment contract's default; the CLI's user-facing default of 20 stays in main.ts. */
|
|
1414
|
-
readonly tail?: number | undefined;
|
|
1415
|
-
readonly cwd?: string | undefined;
|
|
1416
|
-
/** Ends the stream when aborted. The host owns SIGINT/SIGTERM → abort. */
|
|
1417
|
-
readonly signal?: AbortSignal | undefined;
|
|
1418
|
-
readonly onEvent?: ((event: LogEvent) => void) | undefined;
|
|
1419
|
-
}
|
|
1420
|
-
interface LogAttached {
|
|
1421
|
-
/** For the adapter's empty-services notice. */
|
|
1422
|
-
readonly appName: string;
|
|
1423
|
-
/** Every running service. EMPTY means nothing is running — a valid, non-failure state;
|
|
1424
|
-
* `lines` is then an already-finished iterable. */
|
|
1425
|
-
readonly services: readonly ServiceEndpoint[];
|
|
1426
|
-
/** Merged, address-filtered stream; ends on signal abort or when every source ends. */
|
|
1427
|
-
readonly lines: AsyncIterable<LogLine>;
|
|
1428
|
-
}
|
|
1429
|
-
/** In-package variant threading the injection seam (the CLI's LogRunDeps,
|
|
1430
|
-
* unit tests). Deliberately NOT re-exported through `./control` — the seam
|
|
1431
|
-
* mirrors internal types and is not part of the published surface. */
|
|
1432
|
-
declare function logWithDeps(input: LogInput, deps: LogDeps): Promise<Result$1<LogAttached, CliStructuredError>>;
|
|
1433
|
-
//#endregion
|
|
1434
|
-
//#region ../../0-framework/3-tooling/cli/dist/family-B1RaH4f8.d.mts
|
|
1400
|
+
//#region ../../0-framework/3-tooling/cli/dist/family-CgeZQdNg.d.mts
|
|
1435
1401
|
//#region src/family/family.d.ts
|
|
1436
1402
|
/**
|
|
1437
1403
|
* The control-plane operations the family's handlers call. These are the
|
|
@@ -1443,9 +1409,7 @@ declare function logWithDeps(input: LogInput, deps: LogDeps): Promise<Result$1<L
|
|
|
1443
1409
|
*/
|
|
1444
1410
|
interface ComposerOperations {
|
|
1445
1411
|
readonly deploy: typeof deployWithDeps;
|
|
1446
|
-
readonly destroy: typeof destroyWithDeps;
|
|
1447
1412
|
readonly dev: typeof devWithDeps;
|
|
1448
|
-
readonly log: typeof logWithDeps;
|
|
1449
1413
|
}
|
|
1450
1414
|
declare const realOperations: ComposerOperations;
|
|
1451
1415
|
interface CreateComposerFamilyOptions {
|
|
@@ -1454,5 +1418,5 @@ interface CreateComposerFamilyOptions {
|
|
|
1454
1418
|
}
|
|
1455
1419
|
declare function createComposerFamily(options?: CreateComposerFamilyOptions): CommandFamily;
|
|
1456
1420
|
//#endregion
|
|
1457
|
-
export {
|
|
1458
|
-
//# sourceMappingURL=family-
|
|
1421
|
+
export { ComposerConfigSource as a, DevInput as c, ServiceEndpoint as d, AssembledServices as f, realOperations as i, DevSession as l, CliStructuredError as m, CreateComposerFamilyOptions as n, DeployInput as o, Result$1 as p, createComposerFamily as r, DeploySuccess as s, ComposerOperations as t, OperationDeps as u };
|
|
1422
|
+
//# sourceMappingURL=family-CgeZQdNg-gH8LuqqL.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-CgeZQdNg-gH8LuqqL.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../0-framework/1-core/core/dist/graph-types-BTTaRnih.d.mts","../../../0-framework/1-core/core/dist/app-config-DyCMnkDr.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-CU-eVvJM.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/assemble/dist/index.d.mts","../../../0-framework/3-tooling/cli/dist/dev-CpevhBSn.d.mts","../../../0-framework/3-tooling/cli/dist/family-CgeZQdNg.d.mts"],"x_google_ignoreList":[1],"mappings":";;;;;;;UACU,wBAAwB;WACvB;WACA;WACA;WACA;aACE;aACA;;WAEF;WACA,OAAO;WACP;;;;;;;;UAwBD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;;;;;;;;cAoBG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;EAKX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;UCjG5B,gBAAgB,iBAAiB,SAAS;;WAEvC,aAAa,gBAAgB,MAAM,OAAO;;kBAErC;;YAEJ,MAAM,iBAAiB,SAAS;;aAE7B;;aAEA;;aAEA,QAAQ,MAAM,OAAO;;;YAGxB,MAAM,iBAAiB,SAAS;;aAE7B,OAAO;;aAEP,QAAQ;;;OAGhB,WAAW,eAAe,mBAAmB,YAAY;;OAEzD,YAAY,eAAe,mBAAmB,YAAY;;;UAGzD,iBAAiB,iBAAiB,SAAS;;WAExC,aAAa,iBAAiB,MAAM,OAAO;;kBAEtC;;YAEJ,MAAM,iBAAiB,SAAS,eAAe,gBAAgB,MAAM,OAAO;;aAEzE,WAAW,gBAAgB,UAAU,iBAAiB,wBAAwB,OAAO,UAAU,QAAQ,OAAO;;;OAGtH,OAAO,UAAU,cAAc,UAAU;;YAEpC,cAAc;;aAEX,OAAO;;aAEP;;YAEH;;aAEG,iBAAiB;;;YAGpB;;aA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AGC,SAAS;;;;;iBAMH,eAAe,OAAO,aAAa,MAAM,gBAAgB,QAAQ,SAAO,eAAe;;;KAGnG;;;WAGM;WACA,oBAAoB;;WAEpB;WACA;;WAEA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;WACA;WACA;;WAEA;;;;WAIA;WACA;;WAEA;;UAED;;;;WAIC,QAAQ;WACR;WACA;WACA;WACA;WACA,YAAY,OAAO;;;;;UAKpB;;WAEC,oBAAoB;;;EAG7B,QAAQ;;WAEC,QAAQ;;;;;iBAMF,YAAY,OAAO,UAAU,MAAM,gBAAgB,QAAQ,SAAO,YAAY;;;;;;;;;;;;UC5OrF;WACC,eAAe;WACf,YAAY;;cAET,gBAAgB;UACpB;;WAEC,aAAa;;iBAEP,qBAAqB,UAAU,8BAA8B"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,44 +1,9 @@
|
|
|
1
|
-
import { i as realOperations, n as CreateComposerFamilyOptions, r as createComposerFamily, t as ComposerOperations
|
|
2
|
-
import {
|
|
1
|
+
import { a as ComposerConfigSource, i as realOperations, m as CliStructuredError$1, n as CreateComposerFamilyOptions, r as createComposerFamily, t as ComposerOperations } from "./family-CgeZQdNg-gH8LuqqL.mjs";
|
|
2
|
+
import { ConfigSection } from "@prisma/cli-engine";
|
|
3
3
|
import { CliStructuredError } from "@prisma/cli-engine/protocol";
|
|
4
4
|
//#region ../../0-framework/3-tooling/cli/dist/family.d.mts
|
|
5
|
-
//#region src/family/engine-cli.d.ts
|
|
6
|
-
declare const BINARY_NAME = "prisma-composer";
|
|
7
|
-
interface ComposerCliSpec {
|
|
8
|
-
/**
|
|
9
|
-
* The version to report. Supplied by the caller rather than read here: the
|
|
10
|
-
* version a user sees belongs to the package that shipped the executable,
|
|
11
|
-
* and this module is bundled into that package rather than being it.
|
|
12
|
-
*/
|
|
13
|
-
readonly version: string;
|
|
14
|
-
readonly operations?: ComposerOperations | undefined;
|
|
15
|
-
}
|
|
16
|
-
declare function createComposerCli(spec: ComposerCliSpec): Cli;
|
|
17
|
-
/**
|
|
18
|
-
* Composes the Runtime and runs one invocation. Returns the exit code rather
|
|
19
|
-
* than exiting, so the caller owns the process — a bin assigns it to
|
|
20
|
-
* `process.exitCode` and lets the streams drain, as composer's CLI has always
|
|
21
|
-
* done.
|
|
22
|
-
*
|
|
23
|
-
* `prisma.config.ts` is not read here. The loader goes in as a function, and the
|
|
24
|
-
* engine calls it only when the command it is about to run declares a config
|
|
25
|
-
* section, passing it the file `--config` named; the loader resolves that
|
|
26
|
-
* against the host's cwd.
|
|
27
|
-
*/
|
|
28
|
-
declare function runComposerCli(argv: readonly string[], host: HostProcess, spec: ComposerCliSpec, hooks?: CliRunHooks): Promise<number>;
|
|
29
|
-
//#endregion
|
|
30
5
|
//#region src/family/section.d.ts
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Absolute path to `prisma-composer.config.ts`. In the config file it may
|
|
34
|
-
* be written relative; the validator resolves it against the file that
|
|
35
|
-
* declared it, so a root-declared path means the same file from every
|
|
36
|
-
* subdirectory. Absent — the common case — means composer searches upward
|
|
37
|
-
* from the command's entry argument, as it always has.
|
|
38
|
-
*/
|
|
39
|
-
readonly configPath?: string | undefined;
|
|
40
|
-
}
|
|
41
|
-
declare const composerSection: ConfigSection<ComposerSection>;
|
|
6
|
+
declare const composerSection: ConfigSection<ComposerConfigSource>;
|
|
42
7
|
//#endregion
|
|
43
8
|
//#region src/family/translate-error.d.ts
|
|
44
9
|
/**
|
|
@@ -50,5 +15,5 @@ type ComposerError = CliStructuredError$1;
|
|
|
50
15
|
/** Translates a composer failure into the engine's error type. Composer-side detail — `meta`, `where`, `docsUrl` — rides along untouched. */
|
|
51
16
|
declare function toEngineError(error: ComposerError): CliStructuredError;
|
|
52
17
|
//#endregion
|
|
53
|
-
export {
|
|
18
|
+
export { type ComposerOperations, type CreateComposerFamilyOptions, composerSection, createComposerFamily, realOperations, toEngineError };
|
|
54
19
|
//# sourceMappingURL=family.d.mts.map
|
package/dist/family.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts"],"mappings":";;;;;cAKc,iBAAiB,cAAc;;;;;;;;KAQxC,gBAAA;;iBAEY,cAAc,OAAO,gBAAgB"}
|