@prisma/composer-cli 0.34.0-dev.3 → 0.34.0-dev.5

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.
Files changed (32) hide show
  1. package/dist/{composer-config-CY9fET8H-CgnpfWc2.mjs → composer-config-ehUUVHtU-Db7akNFy.mjs} +31 -8
  2. package/dist/{composer-config-CY9fET8H-CgnpfWc2.mjs.map → composer-config-ehUUVHtU-Db7akNFy.mjs.map} +1 -1
  3. package/dist/{dev-current-B0JudXoV-_XFOAyYx.mjs → dev-current-hGle--BH-DHFSz_ur.mjs} +6 -6
  4. package/dist/{dev-current-B0JudXoV-_XFOAyYx.mjs.map → dev-current-hGle--BH-DHFSz_ur.mjs.map} +1 -1
  5. package/dist/{dist-j4X7U5yA.mjs → dist-D1c-3NFX.mjs} +10 -4
  6. package/dist/{dist-j4X7U5yA.mjs.map → dist-D1c-3NFX.mjs.map} +1 -1
  7. package/dist/{execute-deploy-destroy-VO5-9fgH-CV_R46lk.mjs → execute-deploy-destroy-iO4yn-3Q-5rmMfeg8.mjs} +5 -5
  8. package/dist/{execute-deploy-destroy-VO5-9fgH-CV_R46lk.mjs.map → execute-deploy-destroy-iO4yn-3Q-5rmMfeg8.mjs.map} +1 -1
  9. package/dist/{execute-dev-erzNYQj1-DB84UoTN.mjs → execute-dev-DQMSVQn9-DL5eWfNL.mjs} +163 -36
  10. package/dist/{execute-dev-erzNYQj1-DB84UoTN.mjs.map → execute-dev-DQMSVQn9-DL5eWfNL.mjs.map} +1 -1
  11. package/dist/{execute-dev-current-CDytav3w-D1OycibX.mjs → execute-dev-current-C8e554e4-CR_Z_5cs.mjs} +10 -8
  12. package/dist/execute-dev-current-C8e554e4-CR_Z_5cs.mjs.map +1 -0
  13. package/dist/{family-BYcJFXg--CwM-j_sk.d.mts → family-CsvN_3rK-CxpRZHs6.d.mts} +89 -10
  14. package/dist/{family-BYcJFXg--CwM-j_sk.d.mts.map → family-CsvN_3rK-CxpRZHs6.d.mts.map} +1 -1
  15. package/dist/family.d.mts +1 -1
  16. package/dist/family.d.mts.map +1 -1
  17. package/dist/family.mjs +92 -53
  18. package/dist/family.mjs.map +1 -1
  19. package/dist/{generate-dev-stack-DSBhURJV-Gv1jakWP.mjs → generate-dev-stack-CfneNj97-YWn8z26x.mjs} +5 -3
  20. package/dist/generate-dev-stack-CfneNj97-YWn8z26x.mjs.map +1 -0
  21. package/dist/{local-target-DZ6bu7Aj.mjs → local-target-Pro_jmzo.mjs} +2 -2
  22. package/dist/{local-target-DZ6bu7Aj.mjs.map → local-target-Pro_jmzo.mjs.map} +1 -1
  23. package/dist/{pipeline-DXygNR-O-CHCWWfHd.mjs → pipeline-C06OEvKd-B_vvzzSY.mjs} +61 -8
  24. package/dist/pipeline-C06OEvKd-B_vvzzSY.mjs.map +1 -0
  25. package/dist/testing.d.mts +3 -1
  26. package/dist/testing.d.mts.map +1 -1
  27. package/dist/testing.mjs +5 -4
  28. package/dist/testing.mjs.map +1 -1
  29. package/package.json +6 -6
  30. package/dist/execute-dev-current-CDytav3w-D1OycibX.mjs.map +0 -1
  31. package/dist/generate-dev-stack-DSBhURJV-Gv1jakWP.mjs.map +0 -1
  32. package/dist/pipeline-DXygNR-O-CHCWWfHd.mjs.map +0 -1
@@ -1,16 +1,16 @@
1
- import { d as ok, l as CliStructuredError, p as InternalError, u as notOk } from "./composer-config-CY9fET8H-CgnpfWc2.mjs";
2
- import { o as toStructured } from "./dev-current-B0JudXoV-_XFOAyYx.mjs";
3
- import { t as checkConfigSource } from "./pipeline-DXygNR-O-CHCWWfHd.mjs";
4
- import { n as DEV_DIR, t as resolveLocalTargets } from "./local-target-DZ6bu7Aj.mjs";
1
+ import { d as notOk, f as ok, m as InternalError, u as CliStructuredError } from "./composer-config-ehUUVHtU-Db7akNFy.mjs";
2
+ import { o as toStructured } from "./dev-current-hGle--BH-DHFSz_ur.mjs";
3
+ import { t as checkConfigSource } from "./pipeline-C06OEvKd-B_vvzzSY.mjs";
4
+ import { n as DEV_DIR, t as resolveLocalTargets } from "./local-target-Pro_jmzo.mjs";
5
5
  import * as path from "node:path";
6
- //#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-CDytav3w.mjs
6
+ //#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-C8e554e4.mjs
7
7
  /**
8
8
  * The `devUrl` and `devStop` executor: config → each extension's local
9
9
  * target → the app it recorded in the directory's dev state. Reached only by
10
10
  * lazy import from dev-current.ts — resolving the local targets loads their
11
11
  * descriptors, whose graphs reach alchemy's provider tree.
12
12
  */
13
- const RUN_DEV = "Run `prisma dev <entry>` in this directory.";
13
+ const RUN_DEV = "Run `prisma dev` in this directory.";
14
14
  function platformUnsupported() {
15
15
  return new CliStructuredError("DEV.PLATFORM_UNSUPPORTED", "local dev is not supported on Windows yet.");
16
16
  }
@@ -64,11 +64,13 @@ async function locate(input, cwd) {
64
64
  });
65
65
  if (location.condition !== "running") throw notRunning(input.address, location);
66
66
  if (location.url === void 0) throw new InternalError(`the local target reports "${input.address}" running with no URL`);
67
+ const runs = location.command !== void 0 ? "dev-server" : location.kind === "service" ? "artifact" : void 0;
67
68
  return {
68
69
  address: input.address,
69
70
  kind: location.kind,
70
71
  url: location.url,
71
- state: location.state
72
+ state: location.state,
73
+ ...runs !== void 0 ? { runs } : {}
72
74
  };
73
75
  }
74
76
  function notRunning(address, location) {
@@ -123,4 +125,4 @@ async function executeDevStop(input, cwd) {
123
125
  //#endregion
124
126
  export { executeDevStop, executeDevUrl };
125
127
 
126
- //# sourceMappingURL=execute-dev-current-CDytav3w-D1OycibX.mjs.map
128
+ //# sourceMappingURL=execute-dev-current-C8e554e4-CR_Z_5cs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute-dev-current-C8e554e4-CR_Z_5cs.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-dev-current-C8e554e4.mjs"],"sourcesContent":["import { l as toStructured } from \"./dev-current-hGle--BH.mjs\";\nimport { t as checkConfigSource } from \"./pipeline-C06OEvKd.mjs\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { CliStructuredError, InternalError } from \"@internal/foundation/errors\";\nimport * as path from \"node:path\";\nimport { DEV_DIR, resolveLocalTargets } from \"@internal/core/local-target\";\n//#region src/operations/execute-dev-current.ts\n/**\n* The `devUrl` and `devStop` executor: config → each extension's local\n* target → the app it recorded in the directory's dev state. Reached only by\n* lazy import from dev-current.ts — resolving the local targets loads their\n* descriptors, whose graphs reach alchemy's provider tree.\n*/\nconst RUN_DEV = \"Run `prisma dev` in this directory.\";\nfunction platformUnsupported() {\n\treturn new CliStructuredError(\"DEV.PLATFORM_UNSUPPORTED\", \"local dev is not supported on Windows yet.\");\n}\n/** A call into an extension's local target; its failures that carry no code are the emulator's. */\nasync function fromTarget(call) {\n\ttry {\n\t\treturn await call();\n\t} catch (error) {\n\t\tthrow toStructured(\"DEV.EMULATOR_FAILED\", error);\n\t}\n}\n/** Every extension's record of the app `prisma dev` last ran from `cwd`; fails when none recorded one. */\nasync function currentApps(input, cwd) {\n\tconst { value } = checkConfigSource(input.config, cwd);\n\tconst devDir = path.join(cwd, DEV_DIR);\n\tconst apps = [];\n\tfor (const target of (await resolveLocalTargets(value)).values()) {\n\t\tconst current = await fromTarget(async () => target.current?.({ devDir }));\n\t\tif (current !== void 0) apps.push(current);\n\t}\n\tif (apps.length === 0) throw new CliStructuredError(\"DEV.NOT_STARTED_HERE\", `\\`prisma dev\\` has not run in ${cwd}.`, {\n\t\twhy: `The local services, databases and buckets of an app are recorded in ${devDir} when \\`prisma dev\\` runs there, and there is no such record.`,\n\t\tfix: RUN_DEV,\n\t\tmeta: { cwd }\n\t});\n\treturn apps;\n}\nasync function locate(input, cwd) {\n\tconst apps = await currentApps(input, cwd);\n\tconst app = apps.find((candidate) => candidate.addresses.includes(input.address));\n\tif (app === void 0) {\n\t\tconst known = apps.flatMap((candidate) => candidate.addresses).sort();\n\t\tthrow new CliStructuredError(\"DEV.ADDRESS_UNKNOWN\", `\"${apps.map((a) => a.app).join(\"\\\", \\\"\")}\" has no node at \"${input.address}\".`, {\n\t\t\twhy: `The addresses recorded for the app \\`prisma dev\\` last ran here are: ${known.join(\", \")}.`,\n\t\t\tfix: \"Pass one of those addresses. A nested node has a dotted address, such as `catalog.database`.\",\n\t\t\tmeta: {\n\t\t\t\taddress: input.address,\n\t\t\t\tknown\n\t\t\t}\n\t\t});\n\t}\n\tconst location = await fromTarget(() => app.locate(input.address));\n\tif (location === void 0) throw new InternalError(`the local target recorded \"${input.address}\" but cannot locate it`);\n\tif (location.emulator === \"not-running\") throw new CliStructuredError(\"DEV.EMULATOR_UNREACHABLE\", `The local ${location.kind} emulator that runs \"${input.address}\" is not running.`, {\n\t\twhy: \"The local emulators run your services, databases and buckets on this machine; `prisma dev` starts the ones an app needs.\",\n\t\tfix: RUN_DEV,\n\t\tmeta: {\n\t\t\taddress: input.address,\n\t\t\tkind: location.kind\n\t\t}\n\t});\n\tif (location.condition !== \"running\") throw notRunning(input.address, location);\n\tif (location.url === void 0) throw new InternalError(`the local target reports \"${input.address}\" running with no URL`);\n\tconst runs = location.command !== void 0 ? \"dev-server\" : location.kind === \"service\" ? \"artifact\" : void 0;\n\treturn {\n\t\taddress: input.address,\n\t\tkind: location.kind,\n\t\turl: location.url,\n\t\tstate: location.state,\n\t\t...runs !== void 0 ? { runs } : {}\n\t};\n}\nfunction notRunning(address, location) {\n\tconst { kind, state, condition, logPath } = location;\n\tconst meta = {\n\t\taddress,\n\t\tkind,\n\t\tstate,\n\t\t...logPath === void 0 ? {} : { logPath }\n\t};\n\tconst message = `The ${kind} \"${address}\" is not running (${state}).`;\n\tif (condition === \"crashing\") return new CliStructuredError(\"DEV.NOT_RUNNING\", message, {\n\t\twhy: \"It exited after it started, and it is being restarted or was held after repeated crashes.\",\n\t\tfix: logPath === void 0 ? \"Read its output in the `prisma dev` terminal, fix the cause, and rebuild.\" : `Read its log at ${logPath}, fix the cause, and rebuild.`,\n\t\tmeta\n\t});\n\tif (condition === \"missing\") return new CliStructuredError(\"DEV.NOT_RUNNING\", message, {\n\t\twhy: \"The local emulator no longer has it, for example because a Composer upgrade discarded the emulator’s state.\",\n\t\tfix: `${RUN_DEV} It creates the ${kind} again, empty.`,\n\t\tmeta\n\t});\n\treturn new CliStructuredError(\"DEV.NOT_RUNNING\", `The ${kind} \"${address}\" is stopped.`, {\n\t\twhy: \"`prisma dev stop`, `prisma dev` ending, and running another app in this directory all stop an app's services and database servers, and a stopped node has no URL that answers.\",\n\t\tfix: RUN_DEV,\n\t\tmeta\n\t});\n}\nasync function executeDevUrl(input, cwd) {\n\tif (process.platform === \"win32\") return notOk(platformUnsupported());\n\ttry {\n\t\treturn ok(await locate(input, cwd));\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n}\nasync function executeDevStop(input, cwd) {\n\tif (process.platform === \"win32\") return notOk(platformUnsupported());\n\ttry {\n\t\tconst apps = await currentApps(input, cwd);\n\t\tconst stopped = [];\n\t\tfor (const app of apps) stopped.push(...await fromTarget(() => app.stop()));\n\t\treturn ok({\n\t\t\tapp: apps.map((a) => a.app).join(\", \"),\n\t\t\tstopped\n\t\t});\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n}\n//#endregion\nexport { executeDevStop, executeDevUrl };\n\n//# sourceMappingURL=execute-dev-current-C8e554e4.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,MAAM,UAAU;AAChB,SAAS,sBAAsB;CAC9B,OAAO,IAAI,mBAAmB,4BAA4B,4CAA4C;AACvG;;AAEA,eAAe,WAAW,MAAM;CAC/B,IAAI;EACH,OAAO,MAAM,KAAK;CACnB,SAAS,OAAO;EACf,MAAM,aAAa,uBAAuB,KAAK;CAChD;AACD;;AAEA,eAAe,YAAY,OAAO,KAAK;CACtC,MAAM,EAAE,UAAU,kBAAkB,MAAM,QAAQ,GAAG;CACrD,MAAM,SAAS,KAAK,K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I,QAAQ,aAAa,SAAS,OAAO,MAAM,oBAAoB,CAAC;CACpE,IAAI;EACH,MAAM,OAAO,MAAM,YAAY,OAAO,GAAG;EACzC,MAAM,UAAU,CAAC;EACjB,KAAK,MAAM,OAAO,MAAM,QAAQ,KAAK,GAAG,MAAM,iBAAiB,IAAI,KAAK,CAAC,CAAC;EAC1E,OAAO,GAAG;GACT,KAAK,KAAK,KAAK,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI;GACrC;EACD,CAAC;CACF,SAAS,OAAO;EACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACpD,MAAM;CACP;AACD"}
@@ -595,7 +595,7 @@ interface Graph {
595
595
  readonly params: readonly ParamBinding[];
596
596
  }
597
597
  //#endregion
598
- //#region ../../0-framework/1-core/core/dist/app-config-Ccs7qh1a.d.mts
598
+ //#region ../../0-framework/1-core/core/dist/app-config-B_gQYj3K.d.mts
599
599
  //#region src/container-transport.d.ts
600
600
  /**
601
601
  * Carries resolved containers from the CLI process into the alchemy process
@@ -734,6 +734,12 @@ interface ServiceLowering<P = unknown, S = unknown> {
734
734
  package(ctx: LowerContext, input: PackageInput): Effect.Effect<Artifact, unknown, unknown>;
735
735
  /** Ships the packaged artifact into the provisioned thing and runs it. Returns the node's outputs for dependents, plus the entities it became on the deployment target. */
736
736
  deploy(ctx: LowerContext, provisioned: P, artifact: Artifact, serialized: S): Effect.Effect<LoweredResult, unknown, unknown>;
737
+ /**
738
+ * Lowers the service without an artifact: the outputs and entities `deploy` returns, with no
739
+ * deployment behind them. Called in place of `package` and `deploy` for an address in
740
+ * `LowerOptions.unassembled` (ADR-0056). Optional: a descriptor without it cannot run a dev server.
741
+ */
742
+ reserve?(ctx: LowerContext, provisioned: P, serialized: S): Effect.Effect<LoweredResult, unknown, unknown>;
737
743
  }
738
744
  /** Input to an extension's package() step: the built bundle and the node's graph address. */
739
745
  interface PackageInput {
@@ -845,6 +851,8 @@ interface LowerOptions {
845
851
  * declared at all.
846
852
  */
847
853
  readonly report?: (result: DeploymentResult) => void;
854
+ /** Addresses lowered without an artifact: `package` and `deploy` are skipped and `reserve` runs instead (ADR-0056). Only the dev stack file sets it. */
855
+ readonly unassembled?: readonly string[];
848
856
  }
849
857
  /** A build descriptor's normalized output: the produced bundle dir plus the app's runnable entry within it. */
850
858
  interface Bundle {
@@ -869,6 +877,28 @@ interface AssembleInput {
869
877
  /** Counts and labels this assemble measured, for the deploy's progress output. Core never reads them. */
870
878
  readonly report?: ((data: Readonly<Record<string, string | number>>) => void) | undefined;
871
879
  }
880
+ /** Input to a build descriptor's `serve` step (ADR-0056). */
881
+ interface ServeInput {
882
+ /** The service's build adapter declaration, as `assemble` receives it: paths relative to `dirname(build.module)`. */
883
+ readonly build: BuildAdapter;
884
+ /** The service's graph address, as `assemble` receives it. */
885
+ readonly address: string;
886
+ }
887
+ /** How a service runs in development: what its build adapter's `serve` step returns (ADR-0056). */
888
+ interface DevServer {
889
+ /** Absolute. The command's working directory. */
890
+ readonly cwd: string;
891
+ /**
892
+ * The command for the port and host the service is given. `argv[0]` is an absolute path, or a bare
893
+ * name the emulator resolves on the command's `PATH`. The same input always returns the same argv.
894
+ */
895
+ argv(input: {
896
+ readonly port: number;
897
+ readonly host: string;
898
+ }): readonly string[];
899
+ /** The command as the front door and `dev url` show it: `argv` without the port and host flags, joined by spaces. */
900
+ readonly display: string;
901
+ }
872
902
  /** package()'s product. */
873
903
  interface Artifact {
874
904
  readonly path: string;
@@ -1116,6 +1146,8 @@ type LocalNodeLocation = {
1116
1146
  readonly condition: LocalNodeCondition;
1117
1147
  /** Where the node's own output is written, when the target keeps it in a file. */
1118
1148
  readonly logPath?: string;
1149
+ /** The argv the node runs in place of an artifact, when it runs its build adapter's dev server (ADR-0056). */
1150
+ readonly command?: readonly string[];
1119
1151
  } | {
1120
1152
  readonly address: string;
1121
1153
  readonly kind: string;
@@ -1158,13 +1190,27 @@ interface LocalTargetAttachment {
1158
1190
  readonly address: string;
1159
1191
  readonly url: string;
1160
1192
  }[]>;
1161
- /** Merged, line-oriented log stream across the app's services (including services that appear after later converges). `opts.tail` is how many trailing lines of existing history to emit before live output (default 0 — live only). Ends when `signal` aborts. */
1193
+ /** Merged, line-oriented log stream across the app's services (including services that appear after later converges). `opts.tail` is how many trailing lines of existing history to emit before live output (default 0 — live only). `opts.addresses`, when given, follows only those services. Ends when `signal` aborts. */
1162
1194
  logs(signal: AbortSignal, opts?: {
1163
1195
  readonly tail?: number;
1196
+ readonly addresses?: readonly string[];
1164
1197
  }): AsyncIterable<{
1165
1198
  readonly service: string;
1166
1199
  readonly line: string;
1167
1200
  }>;
1201
+ /**
1202
+ * Runs a command on the service's instance in place of its artifact, with the environment the
1203
+ * service's deployment would get. Returns once the command accepts connections on the instance's
1204
+ * port. `restarted` is whether a process was started; an unchanged command already running is
1205
+ * left alone (ADR-0056). Optional: a target without it cannot run a dev server.
1206
+ */
1207
+ serve?(input: {
1208
+ readonly address: string;
1209
+ readonly node: ServiceNode;
1210
+ readonly server: DevServer;
1211
+ }): Promise<{
1212
+ readonly restarted: boolean;
1213
+ }>;
1168
1214
  /** Stop everything the target runs for the app, so nothing of it keeps running after the session (emulators and data persist). */
1169
1215
  stopApp(): Promise<void>;
1170
1216
  }
@@ -1180,6 +1226,11 @@ type NodeDescriptor = ({
1180
1226
  } & ServiceLowering) | {
1181
1227
  readonly kind: 'build';
1182
1228
  assemble(input: AssembleInput): Promise<Bundle>;
1229
+ /**
1230
+ * How this app runs in development, or `undefined` when it has no dev server and is assembled instead.
1231
+ * Never spawns anything: it resolves paths and binaries and returns data (ADR-0056).
1232
+ */
1233
+ serve?(input: ServeInput): Promise<DevServer | undefined>;
1183
1234
  };
1184
1235
  /**
1185
1236
  * The config file's default export. `extensions` lists every extension the
@@ -1187,6 +1238,8 @@ type NodeDescriptor = ({
1187
1238
  * platform-agnostic, never defaulted by an extension.
1188
1239
  */
1189
1240
  interface PrismaAppConfig {
1241
+ /** The module whose default export is the app root, relative to `prisma.config.ts`. `--entry` overrides it. */
1242
+ readonly entry?: string;
1190
1243
  readonly extensions: ExtensionDescriptor[];
1191
1244
  readonly state: StateDescriptor;
1192
1245
  }
@@ -1236,15 +1289,17 @@ type Result$1<T, F> = Ok<T> | NotOk<F>;
1236
1289
  //#endregion
1237
1290
  //#region src/assemble-services.d.ts
1238
1291
  interface AssembledServices {
1239
- /** One bundle per provisioned service, keyed by the service's full hierarchical address (its graph id). */
1292
+ /** One bundle per assembled service, keyed by the service's full hierarchical address (its graph id). A service with a dev server has none. */
1240
1293
  readonly bundles: Record<string, Bundle>;
1294
+ /** One dev server per service that runs one, keyed by address (ADR-0056). Empty under `prisma deploy`. */
1295
+ readonly devServers: Record<string, DevServer>;
1241
1296
  }
1242
1297
  /** What a build adapter measured during one assemble, for progress output. Never read here. */
1243
1298
  type AssembleReport = (data: Readonly<Record<string, string | number>>) => void;
1244
1299
  /** Assembles one service node — the seam tests substitute to avoid a real build. */
1245
1300
  type RunAssembler = (node: ServiceNode, address: string, cwd: string, report?: AssembleReport) => Promise<Bundle>;
1246
1301
  //#endregion
1247
- //#region ../../0-framework/3-tooling/cli/dist/dev-current-L2Eto4fR.d.mts
1302
+ //#region ../../0-framework/3-tooling/cli/dist/dev-current-Cg1GOM3d.d.mts
1248
1303
  //#region src/composer-config.d.ts
1249
1304
  /** Composer's configuration and the `prisma.config.ts` that declares it. */
1250
1305
  interface ComposerConfigSource {
@@ -1330,6 +1385,8 @@ type RunAlchemy = (invocation: AlchemyInvocation) => Promise<AlchemyOutcome>;
1330
1385
  interface ServiceEndpoint {
1331
1386
  readonly address: string;
1332
1387
  readonly url: string;
1388
+ /** The dev server the service runs in place of its artifact, as its build adapter displays it (`next dev`) — absent for a service that runs its artifact (ADR-0056). */
1389
+ readonly devServer?: string;
1333
1390
  }
1334
1391
  /**
1335
1392
  * The operations' in-package injection seam — lets the CLI's own tests drive
@@ -1388,8 +1445,8 @@ interface DeployInput {
1388
1445
  * 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.
1389
1446
  */
1390
1447
  readonly config: ComposerConfigSource;
1391
- /** Path to the entry module, resolved against `cwd` — same contract as `prisma deploy <entry>`. */
1392
- readonly entry: string;
1448
+ /** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
1449
+ readonly entry?: string | undefined;
1393
1450
  /** Override the root node's name (the `--name` flag's slot). */
1394
1451
  readonly name?: string | undefined;
1395
1452
  /** Target stage. ABSENT = production — bare deploy targets production (main.ts effectiveStage). */
@@ -1454,6 +1511,25 @@ type DevEvent =
1454
1511
  readonly stackFilePath: string;
1455
1512
  readonly reproduceCommand: string;
1456
1513
  readonly cwd: string;
1514
+ } |
1515
+ /** Once per service that runs its build adapter's dev server, before the first converge (ADR-0056). `cwd` is absolute. */
1516
+ {
1517
+ readonly kind: 'dev-server';
1518
+ readonly address: string;
1519
+ readonly command: string;
1520
+ readonly cwd: string;
1521
+ } |
1522
+ /** A reconverge changed a dev server's environment, so the emulator restarted it. */
1523
+ {
1524
+ readonly kind: 'dev-server-restarted';
1525
+ readonly address: string;
1526
+ readonly command: string;
1527
+ } |
1528
+ /** One line a dev server wrote, while the session runs. */
1529
+ {
1530
+ readonly kind: 'dev-server-output';
1531
+ readonly address: string;
1532
+ readonly line: string;
1457
1533
  } | {
1458
1534
  readonly kind: 'stopping';
1459
1535
  } |
@@ -1469,7 +1545,8 @@ interface DevInput {
1469
1545
  * 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.
1470
1546
  */
1471
1547
  readonly config: ComposerConfigSource;
1472
- readonly entry: string;
1548
+ /** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
1549
+ readonly entry?: string | undefined;
1473
1550
  readonly name?: string | undefined;
1474
1551
  readonly fresh?: boolean | undefined;
1475
1552
  /**
@@ -1515,6 +1592,8 @@ interface DevUrl {
1515
1592
  readonly url: string;
1516
1593
  /** Always `running`: a node that is not running is a failure. */
1517
1594
  readonly state: string;
1595
+ /** `"dev-server"` when a service runs its build adapter's dev server, `"artifact"` for every other service; absent for a database or bucket (ADR-0056). */
1596
+ readonly runs?: 'artifact' | 'dev-server';
1518
1597
  }
1519
1598
  interface DevStopInput {
1520
1599
  readonly config: ComposerConfigSource;
@@ -1535,7 +1614,7 @@ declare function devUrl(input: DevUrlInput): Promise<Result$1<DevUrl, CliStructu
1535
1614
  /** Stops the directory's current app: its service processes and database servers. Data and ports stay. */
1536
1615
  declare function devStop(input: DevStopInput): Promise<Result$1<DevStopped, CliStructuredError>>;
1537
1616
  //#endregion
1538
- //#region ../../0-framework/3-tooling/cli/dist/family-BYcJFXg-.d.mts
1617
+ //#region ../../0-framework/3-tooling/cli/dist/family-CsvN_3rK.d.mts
1539
1618
  //#region src/family/family.d.ts
1540
1619
  /**
1541
1620
  * The control-plane operations the family's handlers call. These are the
@@ -1559,5 +1638,5 @@ interface CreateComposerFamilyOptions {
1559
1638
  readonly commands?: CommandFamily['commands'] | undefined;
1560
1639
  }
1561
1640
  //#endregion
1562
- export { Result$1 as _, DeployEvent as a, DevInput as c, DevStopped as d, DevUrl as f, AssembledServices as g, ServiceEndpoint as h, ComposerConfigSource as i, DevSession as l, OperationDeps as m, CreateComposerFamilyOptions as n, DeployInput as o, DevUrlInput as p, realOperations as r, DeploySuccess as s, ComposerOperations as t, DevStopInput as u, CliStructuredError as v };
1563
- //# sourceMappingURL=family-BYcJFXg--CwM-j_sk.d.mts.map
1641
+ export { AssembledServices as _, DeployEvent as a, DevEvent as c, DevStopInput as d, DevStopped as f, ServiceEndpoint as g, OperationDeps as h, ComposerConfigSource as i, DevInput as l, DevUrlInput as m, CreateComposerFamilyOptions as n, DeployInput as o, DevUrl as p, realOperations as r, DeploySuccess as s, ComposerOperations as t, DevSession as u, Result$1 as v, CliStructuredError as y };
1642
+ //# sourceMappingURL=family-CsvN_3rK-CxpRZHs6.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"family-BYcJFXg--CwM-j_sk.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-Cegbwb_X.d.mts","../../../0-framework/1-core/core/dist/app-config-Ccs7qh1a.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-p88NV5m5.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-current-L2Eto4fR.d.mts","../../../0-framework/3-tooling/cli/dist/family-BYcJFXg-.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;;Y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;;WAEA;;WAEA;;UAED;WACC,QAAQ;;WAER;;UAED;;WAEC;;WAEA;aACE;aACA;;;;iBAII,OAAO,OAAO,cAAc,QAAQ,SAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,SAAO,YAAY;;;;;;;;;;;;UCtThE;WACC,eAAe;WACf,YAAY;WACZ,eAAe;WACf,gBAAgB;;cAEb,gBAAgB;UACpB;;WAEC,aAAa;;WAEb,WAAW"}
1
+ {"version":3,"file":"family-CsvN_3rK-CxpRZHs6.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-Cegbwb_X.d.mts","../../../0-framework/1-core/core/dist/app-config-B_gQYj3K.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-p88NV5m5.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-current-Cg1GOM3d.d.mts","../../../0-framework/3-tooling/cli/dist/family-CsvN_3rK.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,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;;;;WAOA;;;;;;;WAOA;;WAEA,YAAY,OAAO;;UAEpB;;;WAGC,SAAS;;WAET;;;;;iBAMM,eAAe,OAAO,aAAa,MAAM,gBAAgB,QAAQ,SAAO,eAAe;;;KAGnG;;;WAGM;WACA,oBAAoB;;WAEpB;WACA;;WAEA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;;;;WAIA;WACA;WACA;;WAEA;;;;WAIA;WACA;;WAEA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;WACA;;;;;;WAMA;WACA;WACA,YAAY,OAAO;;;;;UAKpB;;WAEC,oBAAoB;;;EAG7B,QAAQ;;WAEC,QAAQ;;;;;iBAMF,YAAY,OAAO,UAAU,MAAM,gBAAgB,QAAQ,SAAO,YAAY;;;UAGrF;;WAEC,QAAQ;;WAER;;WAEA;;UAED;WACC;;WAEA;;WAEA;;WAEA;;WAEA;;UAED;WACC,QAAQ;;WAER;;UAED;;WAEC;;WAEA;aACE;aACA;;;;iBAII,OAAO,OAAO,cAAc,QAAQ,SAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,SAAO,YAAY;;;;;;;;;;;;UC/UhE;WACC,eAAe;WACf,YAAY;WACZ,eAAe;WACf,gBAAgB;;cAEb,gBAAgB;UACpB;;WAEC,aAAa;;WAEb,WAAW"}
package/dist/family.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as Result, i as ComposerConfigSource, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, v as CliStructuredError$1 } from "./family-BYcJFXg--CwM-j_sk.mjs";
1
+ import { i as ComposerConfigSource, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, v as Result, y as CliStructuredError$1 } from "./family-CsvN_3rK-CxpRZHs6.mjs";
2
2
  import { CommandFamily, 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
@@ -1 +1 @@
1
- {"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts","../../../1-prisma-cloud/0-lowering/dev-emulators/dist/index.d.mts","../src/family/emulator-list.ts","../src/exports/family.ts"],"mappings":";;;;;KAKK;;;;;;iBAMY,SAAS,iBAAiB;;;cAG7B,iBAAiB,cAAc;;;;;;;;KAQxC,gBAAA;;iBAEY,cAAc,OAAO,gBAAgB;;;;;;KCmJjD;UAEK;WACC;WACA,MAAM;;WAEN;;WAEA;WACA,QAAQ,SAAS;;;UAGlB;WACC;WACA;;UAED;WACC,MAAM;WACN;;WAEA;;WAEA,oBAAoB;;WAEpB,OAAO;;UAER;WACC,oBAAoB;;;;KCxLnB,sBAAsB,QAAQ,OAAO,cAAc;;;UCc9C,oCAAoC;;WAE1C,gBAAgB;;;iBAIX,qBAAqB,UAAS,8BAAmC"}
1
+ {"version":3,"file":"family.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/family.d.mts","../../../1-prisma-cloud/0-lowering/dev-emulators/dist/index.d.mts","../src/family/emulator-list.ts","../src/exports/family.ts"],"mappings":";;;;;KAKK;;;;;;iBAMY,SAAS,iBAAiB;;;cAG7B,iBAAiB,cAAc;;;;;;;;KAQxC,gBAAA;;iBAEY,cAAc,OAAO,gBAAgB;;;;;;KCqKjD;UAEK;WACC;WACA,MAAM;;WAEN;;WAEA;WACA,QAAQ,SAAS;;;UAGlB;WACC;WACA;;UAED;WACC,MAAM;WACN;;WAEA;;WAEA,oBAAoB;;WAEpB,OAAO;;UAER;WACC,oBAAoB;;;;KC1MnB,sBAAsB,QAAQ,OAAO,cAAc;;;UCc9C,oCAAoC;;WAE1C,gBAAgB;;;iBAIX,qBAAqB,UAAS,8BAAmC"}
package/dist/family.mjs CHANGED
@@ -1,5 +1,6 @@
1
- import { a as alchemyCommandLine, i as sectionMissing, t as checkComposerConfig } from "./composer-config-CY9fET8H-CgnpfWc2.mjs";
2
- import { a as executionDiagnostics, i as devWithDeps, n as devStop, r as devUrl, t as deployWithDeps } from "./dev-current-B0JudXoV-_XFOAyYx.mjs";
1
+ import { a as sectionMissing, o as alchemyCommandLine, t as checkComposerConfig } from "./composer-config-ehUUVHtU-Db7akNFy.mjs";
2
+ import { a as executionDiagnostics, i as devWithDeps, n as devStop, r as devUrl, t as deployWithDeps } from "./dev-current-hGle--BH-DHFSz_ur.mjs";
3
+ import * as path from "node:path";
3
4
  import { defineCommand, defineCommandFamily, defineConfigSection, defineSessionCommand, exitWithChildStatus, flag, positional } from "@prisma/cli-engine";
4
5
  import { CliStructuredError, notOk, ok } from "@prisma/cli-engine/protocol";
5
6
  //#region ../../0-framework/3-tooling/cli/dist/family.mjs
@@ -248,33 +249,35 @@ function toEngineEvent(event) {
248
249
  }
249
250
  const createDeployCommand = (operations) => defineCommand({
250
251
  help: {
251
- summary: "Deploy the application whose root node is <entry>'s default export.",
252
- examples: ["{bin} deploy module.ts", "{bin} deploy module.ts --stage feat-auth"]
253
- },
254
- args: {
255
- positionals: { entry: positional.string({
256
- brief: "The file whose default export is the application root module, built with module(...).",
257
- placeholder: "entry"
258
- }) },
259
- flags: {
260
- name: flag.string({
261
- brief: "Deploy the app under this name instead of the name its root module declares. A different name is a separate app on Prisma Cloud, with its own services, databases and buckets (default: the root module's name).",
262
- placeholder: "name"
263
- }),
264
- stage: flag.string({
265
- brief: "Deploy a complete, isolated copy of the app under this name instead of production, such as staging or one per pull request (default: production).",
266
- placeholder: "stage"
267
- }),
268
- report: flag.string({
269
- brief: "Write the deploy's outcome as JSON to this path — resources, preview URLs, and the failure cause. Also settable as PRISMA_COMPOSER_REPORT_FILE.",
270
- placeholder: "path"
271
- }),
272
- buildId: flag.string({
273
- brief: "Join the deploy record your CI already created rather than letting the target create one. Each target also reads its own environment variable for this; the flag wins.",
274
- placeholder: "id"
275
- })
276
- }
252
+ summary: "Deploy the application whose root node is the entry module's default export.",
253
+ examples: [
254
+ "{bin} deploy",
255
+ "{bin} deploy --stage feat-auth",
256
+ "{bin} deploy --entry other-module.ts"
257
+ ]
277
258
  },
259
+ args: { flags: {
260
+ entry: flag.string({
261
+ brief: "The file whose default export is the application root module, built with module(...). Overrides `entry` in the `composer` section of prisma.config.ts.",
262
+ placeholder: "path"
263
+ }),
264
+ name: flag.string({
265
+ brief: "Deploy the app under this name instead of the name its root module declares. A different name is a separate app on Prisma Cloud, with its own services, databases and buckets (default: the root module's name).",
266
+ placeholder: "name"
267
+ }),
268
+ stage: flag.string({
269
+ brief: "Deploy a complete, isolated copy of the app under this name instead of production, such as staging or one per pull request (default: production).",
270
+ placeholder: "stage"
271
+ }),
272
+ report: flag.string({
273
+ brief: "Write the deploy's outcome as JSON to this path — resources, preview URLs, and the failure cause. Also settable as PRISMA_COMPOSER_REPORT_FILE.",
274
+ placeholder: "path"
275
+ }),
276
+ buildId: flag.string({
277
+ brief: "Join the deploy record your CI already created rather than letting the target create one. Each target also reads its own environment variable for this; the flag wins.",
278
+ placeholder: "id"
279
+ })
280
+ } },
278
281
  needs: {
279
282
  config: composerSection,
280
283
  credentials: "child"
@@ -283,7 +286,7 @@ const createDeployCommand = (operations) => defineCommand({
283
286
  handler: async (args, ctx) => {
284
287
  const alchemy = convergeSpawn(ctx);
285
288
  return settleConverge(await operations.deploy({
286
- entry: args.positionals.entry,
289
+ entry: args.flags.entry,
287
290
  config: ctx.config,
288
291
  name: args.flags.name,
289
292
  stage: args.flags.stage,
@@ -334,6 +337,21 @@ const createDeployCommand = (operations) => defineCommand({
334
337
  });
335
338
  }
336
339
  });
340
+ /**
341
+ * `dev` — a session command that runs the local dev loop until the
342
+ * user interrupts it.
343
+ *
344
+ * The watch loop, the emulators and the live attachments stay the operation's
345
+ * state. What the handler owns is the boundary: the converge child goes out
346
+ * through `ctx.spawn`, so the terminal reaches alchemy natively and the engine
347
+ * owns signal policy; the operation's events become engine events; and the
348
+ * session settles on how it actually ended.
349
+ *
350
+ * Windows is refused inside the operation itself (DEV.PLATFORM_UNSUPPORTED),
351
+ * which is why nothing here reads the platform.
352
+ *
353
+ * `dev` is credential-free: everything it starts runs on this machine.
354
+ */
337
355
  const STOP_STEP = "Stopping the app's services — emulators and data stay up";
338
356
  /** Resolves when the run is asked to stop. */
339
357
  function stopRequested(signal) {
@@ -385,7 +403,7 @@ function frontDoorOrder(endpoints) {
385
403
  * The operation's events as engine events. The legacy `[dev]` console prefix
386
404
  * is gone: these are commentary the engine renders and frames.
387
405
  */
388
- function reportDevEvent(report, lastChild) {
406
+ function reportDevEvent(report, lastChild, cwd) {
389
407
  let stopFailed = false;
390
408
  return (event) => {
391
409
  switch (event.kind) {
@@ -398,7 +416,29 @@ function reportDevEvent(report, lastChild) {
398
416
  for (const endpoint of frontDoorOrder(event.endpoints)) report({
399
417
  kind: "endpoint",
400
418
  name: endpoint.address,
401
- url: endpoint.url
419
+ url: endpoint.url,
420
+ ...endpoint.devServer !== void 0 ? { data: { devServer: endpoint.devServer } } : {}
421
+ });
422
+ return;
423
+ case "dev-server":
424
+ report({
425
+ kind: "message",
426
+ severity: "info",
427
+ text: `${event.address}: runs \`${event.command}\` in ${path.relative(cwd, event.cwd) || "."}`
428
+ });
429
+ return;
430
+ case "dev-server-restarted":
431
+ report({
432
+ kind: "message",
433
+ severity: "info",
434
+ text: `${event.address}: its environment changed; \`${event.command}\` restarted`
435
+ });
436
+ return;
437
+ case "dev-server-output":
438
+ report({
439
+ kind: "message",
440
+ severity: "info",
441
+ text: `[${event.address}] ${event.line}`
402
442
  });
403
443
  return;
404
444
  case "unwatchable":
@@ -490,40 +530,39 @@ async function stopDetachedApp(operations, ctx) {
490
530
  }
491
531
  const createDevCommand = (operations) => defineSessionCommand({
492
532
  help: {
493
- summary: "Bring up the application whose root node is <entry>'s default export, entirely on this machine.",
494
- description: "Runs credential-free and watches the app for changes, reconverging on every edit. A node is one service, database or bucket in the app. Each node runs on a local emulator: a program on this machine that stands in for Prisma Cloud and runs services, databases or S3-compatible buckets. A node's address is its name in the app, with dots for a nested node (catalog.database). The app and where each node runs are recorded in this directory: `prisma dev url` works from here while `prisma dev` runs, and `prisma dev stop` also works after `prisma dev` was killed. Ending `prisma dev` stops its services and database servers; data and ports are kept. With --detach it returns once every service answers and leaves the app running without watching for changes, until `prisma dev stop`.",
533
+ summary: "Bring up the application whose root node is the entry module's default export, entirely on this machine.",
534
+ description: "Runs credential-free and watches the app for changes, reconverging on every edit. A service whose build adapter declares a dev server (Next.js's `next dev`, or the `dev` command written on node()) runs that instead of its build, and its output is shown here, prefixed with its address. A node is one service, database or bucket in the app. Each node runs on a local emulator: a program on this machine that stands in for Prisma Cloud and runs services, databases or S3-compatible buckets. A node's address is its path from the app name, with dots between names (shop.catalog.database). The app and where each node runs are recorded in this directory: `prisma dev url` works from here while `prisma dev` runs, and `prisma dev stop` also works after `prisma dev` was killed. Ending `prisma dev` stops its services and database servers; data and ports are kept. With --detach it returns once every service answers and leaves the app running without watching for changes, until `prisma dev stop`.",
495
535
  examples: [
496
- "{bin} dev module.ts",
497
- "{bin} dev module.ts --fresh",
498
- "{bin} dev module.ts --detach"
536
+ "{bin} dev",
537
+ "{bin} dev --fresh",
538
+ "{bin} dev --detach",
539
+ "{bin} dev --entry other-module.ts"
499
540
  ]
500
541
  },
501
- args: {
502
- positionals: { entry: positional.string({
503
- brief: "The file whose default export is the application root module, built with module(...).",
504
- placeholder: "entry"
505
- }) },
506
- flags: {
507
- name: flag.string({
508
- brief: "Run the app under this name instead of the name its root module declares. A different name gets its own local services, databases and buckets (default: the root module's name).",
509
- placeholder: "name"
510
- }),
511
- fresh: flag.boolean({ brief: "Delete this app's local services, databases and buckets, and their data, before starting." }),
512
- detach: flag.boolean({ brief: "Return once every service answers and leave the app running without watching for changes. Use it in scripts, agents and CI. `prisma dev stop` stops the app." })
513
- }
514
- },
542
+ args: { flags: {
543
+ entry: flag.string({
544
+ brief: "The file whose default export is the application root module, built with module(...). Overrides `entry` in the `composer` section of prisma.config.ts.",
545
+ placeholder: "path"
546
+ }),
547
+ name: flag.string({
548
+ brief: "Run the app under this name instead of the name its root module declares. A different name gets its own local services, databases and buckets (default: the root module's name).",
549
+ placeholder: "name"
550
+ }),
551
+ fresh: flag.boolean({ brief: "Delete this app's local services, databases and buckets, and their data, before starting." }),
552
+ detach: flag.boolean({ brief: "Return once every service answers and leave the app running without watching for changes. Use it in scripts, agents and CI. `prisma dev stop` stops the app." })
553
+ } },
515
554
  needs: { config: composerSection },
516
555
  maySpawn: true,
517
556
  handler: async (args, ctx) => {
518
557
  const alchemy = convergeSpawn(ctx);
519
558
  const result = await operations.dev({
520
- entry: args.positionals.entry,
559
+ entry: args.flags.entry,
521
560
  config: ctx.config,
522
561
  name: args.flags.name,
523
562
  fresh: args.flags.fresh,
524
563
  detach: args.flags.detach,
525
564
  cwd: ctx.cwd,
526
- onEvent: reportDevEvent(ctx.report, ctx.lastChild)
565
+ onEvent: reportDevEvent(ctx.report, ctx.lastChild, ctx.cwd)
527
566
  }, { alchemy: coalescedConverge(alchemy) });
528
567
  if (!result.ok) return settleConvergeFailure(result.failure, ctx);
529
568
  if (args.flags.detach) {
@@ -665,7 +704,7 @@ function createComposerFamily$1(options = {}) {
665
704
  * family here, where both domains may be imported.
666
705
  */
667
706
  /** Loaded on first use, so nothing of the emulators' clients loads with the family. */
668
- const listEmulators = async () => (await import("./dist-j4X7U5yA.mjs")).listEmulators();
707
+ const listEmulators = async () => (await import("./dist-D1c-3NFX.mjs")).listEmulators();
669
708
  const EMULATOR_NAMES = {
670
709
  service: "Service emulator",
671
710
  database: "Database emulator",