@prisma/composer-cli 0.39.0-dev.13 → 0.39.0-dev.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-converge-CHMILMYi-Duhv9T-w.mjs → app-converge-DFWYhyDb-DFxDv-CD.mjs} +3 -3
- package/dist/{app-converge-CHMILMYi-Duhv9T-w.mjs.map → app-converge-DFWYhyDb-DFxDv-CD.mjs.map} +1 -1
- package/dist/dev-converge-worker.mjs +1 -1
- package/dist/dev-converge-worker.mjs.map +1 -1
- package/dist/{dev-current-C7R8uqyQ-CgyoTX9q.mjs → dev-current-DFRg3-my-BR_O2HtT.mjs} +5 -5
- package/dist/{dev-current-C7R8uqyQ-CgyoTX9q.mjs.map → dev-current-DFRg3-my-BR_O2HtT.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-BIRdFfwR-Czj9JB8M.mjs → execute-deploy-destroy-CC5eDvWh-DKIP7R9d.mjs} +4 -4
- package/dist/{execute-deploy-destroy-BIRdFfwR-Czj9JB8M.mjs.map → execute-deploy-destroy-CC5eDvWh-DKIP7R9d.mjs.map} +1 -1
- package/dist/{execute-dev-D9PxdbV3-D-pdqLmO.mjs → execute-dev-_8rBPdcp-DtSCiTlb.mjs} +4 -4
- package/dist/{execute-dev-D9PxdbV3-D-pdqLmO.mjs.map → execute-dev-_8rBPdcp-DtSCiTlb.mjs.map} +1 -1
- package/dist/{execute-dev-current-BghQ0HLe-BY5COM8c.mjs → execute-dev-current-DbcTJmtG-CfYT-niG.mjs} +3 -3
- package/dist/{execute-dev-current-BghQ0HLe-BY5COM8c.mjs.map → execute-dev-current-DbcTJmtG-CfYT-niG.mjs.map} +1 -1
- package/dist/family.mjs +2 -2
- package/dist/family.mjs.map +1 -1
- package/dist/{list-deployed-COZmPVO2.mjs → list-deployed-CK0XroII.mjs} +2 -2
- package/dist/{list-deployed-COZmPVO2.mjs.map → list-deployed-CK0XroII.mjs.map} +1 -1
- package/package.json +7 -7
package/dist/{execute-dev-current-BghQ0HLe-BY5COM8c.mjs → execute-dev-current-DbcTJmtG-CfYT-niG.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as InternalError } from "./internal-error-Dfur7Zqt-B8J8e7ac.mjs";
|
|
2
2
|
import { t as CliStructuredError } from "./errors-CVYwN2km.mjs";
|
|
3
3
|
import { n as ok, t as notOk } from "./result-CttmabB6.mjs";
|
|
4
|
-
import { c as toStructured } from "./dev-current-
|
|
4
|
+
import { c as toStructured } from "./dev-current-DFRg3-my-BR_O2HtT.mjs";
|
|
5
5
|
import { r as devEnvironmentDir, t as resolveLocalTargets } from "./local-target-bTjNRplR.mjs";
|
|
6
6
|
import { i as validateEnvironmentName, n as resolveAppIdentity, t as checkConfigSource } from "./validate-environment-BevPErw8-BRVXeBjT.mjs";
|
|
7
7
|
import { n as requireDevEnvironmentName } from "./dev-environment-name-6eEr5PW8-DSJ7HrEe.mjs";
|
|
8
8
|
import * as path from "node:path";
|
|
9
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-
|
|
9
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-DbcTJmtG.mjs
|
|
10
10
|
/**
|
|
11
11
|
* The `devUrl` and `devStop` executor: config → each extension's local
|
|
12
12
|
* target → the app's local copy in the environment, read from that
|
|
@@ -163,4 +163,4 @@ async function executeDevStop(input, cwd) {
|
|
|
163
163
|
//#endregion
|
|
164
164
|
export { executeDevStop, executeDevUrl };
|
|
165
165
|
|
|
166
|
-
//# sourceMappingURL=execute-dev-current-
|
|
166
|
+
//# sourceMappingURL=execute-dev-current-DbcTJmtG-CfYT-niG.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-dev-current-BghQ0HLe-BY5COM8c.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-dev-current-BghQ0HLe.mjs"],"sourcesContent":["import { n as checkConfigSource, r as resolveAppIdentity, t as validateEnvironmentName } from \"./validate-environment-BevPErw8.mjs\";\nimport { d as toStructured } from \"./dev-current-C7R8uqyQ.mjs\";\nimport { n as requireDevEnvironmentName } from \"./dev-environment-name-6eEr5PW8.mjs\";\nimport * as path from \"node:path\";\nimport { CliStructuredError, InternalError } from \"@internal/foundation/errors\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { devEnvironmentDir, 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's local copy in the environment, read from that\n* environment's dev state. Reached only by lazy import from dev-current.ts —\n* resolving the local targets loads their descriptors, whose graphs reach\n* alchemy's provider tree.\n*/\nfunction platformUnsupported() {\n\treturn new CliStructuredError(\"DEV.PLATFORM_UNSUPPORTED\", \"local dev is not supported on Windows yet.\");\n}\n/** The `prisma dev` command that runs `environment`. */\nfunction runDev(environment) {\n\treturn environment === \"dev\" ? \"`prisma dev`\" : `\\`prisma dev --environment ${environment}\\``;\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 in the environment; fails when none recorded it. */\nasync function currentApps(copy, cwd) {\n\tconst { app, environment } = copy;\n\tconst { value } = checkConfigSource(copy.config, cwd);\n\tconst devDir = path.join(cwd, devEnvironmentDir(environment));\n\trequireDevEnvironmentName(devDir, environment);\n\tconst apps = [];\n\tfor (const target of (await resolveLocalTargets(value)).values()) {\n\t\tconst current = await fromTarget(async () => target.current?.({\n\t\t\tdevDir,\n\t\t\tapp,\n\t\t\tenvironment\n\t\t}));\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 ${app} in the environment ${environment} in ${cwd}.`, {\n\t\twhy: `The local services, databases and buckets of an app are recorded in ${devDir} when \\`prisma dev\\` runs it in the environment ${environment}, and ${app} has no such record.`,\n\t\tfix: `Run ${runDev(environment)} for ${app} in this directory.`,\n\t\tmeta: {\n\t\t\tcwd,\n\t\t\tapp,\n\t\t\tenvironment\n\t\t}\n\t});\n\treturn apps;\n}\n/** The app a full address starts with: `shop.api` belongs to `shop`. */\nfunction appOfAddress(address) {\n\tconst dot = address.indexOf(\".\");\n\treturn dot === -1 ? address : address.slice(0, dot);\n}\nasync function locate(input, cwd) {\n\tconst environment = input.environment ?? \"dev\";\n\tvalidateEnvironmentName(environment);\n\tconst app = appOfAddress(input.address);\n\tconst apps = await currentApps({\n\t\tconfig: input.config,\n\t\tapp,\n\t\tenvironment\n\t}, cwd);\n\tconst recorded = apps.find((candidate) => candidate.addresses.includes(input.address));\n\tif (recorded === void 0) {\n\t\tconst known = apps.flatMap((candidate) => candidate.addresses).sort();\n\t\tthrow new CliStructuredError(\"DEV.ADDRESS_UNKNOWN\", `\"${app}\" has no node at \"${input.address}\" in the environment ${environment}.`, {\n\t\t\twhy: `The addresses recorded for ${app} in the environment ${environment} are: ${known.join(\", \")}.`,\n\t\t\tfix: \"Pass one of those addresses. A nested node has a dotted address, such as `shop.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(() => recorded.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 ${runDev(environment)} in this directory.`,\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, environment, 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, environment, location) {\n\tconst rerun = `Run ${runDev(environment)} in this directory.`;\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: `${rerun} 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` and `prisma dev` ending both stop an app's services and database servers, and a stopped node has no URL that answers.\",\n\t\tfix: rerun,\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 environment = input.environment ?? \"dev\";\n\t\tvalidateEnvironmentName(environment);\n\t\tconst { name: app } = await resolveAppIdentity(input.entry, input.name, cwd, input.config);\n\t\tconst apps = await currentApps({\n\t\t\tconfig: input.config,\n\t\t\tapp,\n\t\t\tenvironment\n\t\t}, cwd);\n\t\tconst stopped = [];\n\t\tfor (const recorded of apps) stopped.push(...await fromTarget(() => recorded.stop()));\n\t\treturn ok({\n\t\t\tapp,\n\t\t\tenvironment,\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-BghQ0HLe.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAeA,SAAS,sBAAsB;CAC9B,OAAO,IAAI,mBAAmB,4BAA4B,4CAA4C;AACvG;;AAEA,SAAS,OAAO,aAAa;CAC5B,OAAO,gBAAgB,QAAQ,iBAAiB,8BAA8B,YAAY;AAC3F;;AAEA,eAAe,WAAW,MAAM;CAC/B,IAAI;EACH,OAAO,MAAM,KAAK;CACnB,SAAS,OAAO;EACf,MAAM,aAAa,uBAAuB,KAAK;CAChD;AACD;;AAEA,eAAe,YAAY,MAAM,KAAK;CACrC,MAAM,EAAE,KAAK,gBAAgB;CAC7B,MAAM,EAAE,UAAU,kBAAkB,KAAK,QAAQ,GAAG;CACpD,MAAM,SAAS,KAAK,KAAK,KAAK,kBAAkB,WAAW,CAAC;CAC5D,0BAA0B,QAAQ,WAAW;CAC7C,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,WAAW,MAAM,oBAAoB,KAAK,EAAA,CAAG,OAAO,GAAG;EACjE,MAAM,UAAU,MAAM,WAAW,YAAY,OAAO,UAAU;GAC7D;GACA;GACA;EACD,CAAC,CAAC;EACF,IAAI,YAAY,KAAK,GAAG,KAAK,KAAK,OAAO;CAC1C;CACA,IAAI,KAAK,WAAW,GAAG,MAAM,IAAI,mBAAmB,wBAAwB,8BAA8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EACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACpD,MAAM;CACP;AACD;AACA,eAAe,eAAe,OAAO,KAAK;CACzC,IAAI,QAAQ,aAAa,SAAS,OAAO,MAAM,oBAAoB,CAAC;CACpE,IAAI;EACH,MAAM,cAAc,MAAM,eAAe;EACzC,wBAAwB,WAAW;EACnC,MAAM,EAAE,MAAM,QAAQ,MAAM,mBAAmB,MAAM,OAAO,MAAM,MAAM,KAAK,MAAM,MAAM;EACzF,MAAM,OAAO,MAAM,YAAY;GAC9B,QAAQ,MAAM;GACd;GACA;EACD,GAAG,GAAG;EACN,MAAM,UAAU,CAAC;EACjB,KAAK,MAAM,YAAY,MAAM,QAAQ,KAAK,GAAG,MAAM,iBAAiB,SAAS,KAAK,CAAC,CAAC;EACpF,OAAO,GAAG;GACT;GACA;GACA;EACD,CAAC;CACF,SAAS,OAAO;EACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACpD,MAAM;CACP;AACD"}
|
|
1
|
+
{"version":3,"file":"execute-dev-current-DbcTJmtG-CfYT-niG.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-dev-current-DbcTJmtG.mjs"],"sourcesContent":["import { n as checkConfigSource, r as resolveAppIdentity, t as validateEnvironmentName } from \"./validate-environment-BevPErw8.mjs\";\nimport { d as toStructured } from \"./dev-current-DFRg3-my.mjs\";\nimport { n as requireDevEnvironmentName } from \"./dev-environment-name-6eEr5PW8.mjs\";\nimport * as path from \"node:path\";\nimport { CliStructuredError, InternalError } from \"@internal/foundation/errors\";\nimport { notOk, ok } from \"@internal/foundation/result\";\nimport { devEnvironmentDir, 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's local copy in the environment, read from that\n* environment's dev state. Reached only by lazy import from dev-current.ts —\n* resolving the local targets loads their descriptors, whose graphs reach\n* alchemy's provider tree.\n*/\nfunction platformUnsupported() {\n\treturn new CliStructuredError(\"DEV.PLATFORM_UNSUPPORTED\", \"local dev is not supported on Windows yet.\");\n}\n/** The `prisma dev` command that runs `environment`. */\nfunction runDev(environment) {\n\treturn environment === \"dev\" ? \"`prisma dev`\" : `\\`prisma dev --environment ${environment}\\``;\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 in the environment; fails when none recorded it. */\nasync function currentApps(copy, cwd) {\n\tconst { app, environment } = copy;\n\tconst { value } = checkConfigSource(copy.config, cwd);\n\tconst devDir = path.join(cwd, devEnvironmentDir(environment));\n\trequireDevEnvironmentName(devDir, environment);\n\tconst apps = [];\n\tfor (const target of (await resolveLocalTargets(value)).values()) {\n\t\tconst current = await fromTarget(async () => target.current?.({\n\t\t\tdevDir,\n\t\t\tapp,\n\t\t\tenvironment\n\t\t}));\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 ${app} in the environment ${environment} in ${cwd}.`, {\n\t\twhy: `The local services, databases and buckets of an app are recorded in ${devDir} when \\`prisma dev\\` runs it in the environment ${environment}, and ${app} has no such record.`,\n\t\tfix: `Run ${runDev(environment)} for ${app} in this directory.`,\n\t\tmeta: {\n\t\t\tcwd,\n\t\t\tapp,\n\t\t\tenvironment\n\t\t}\n\t});\n\treturn apps;\n}\n/** The app a full address starts with: `shop.api` belongs to `shop`. */\nfunction appOfAddress(address) {\n\tconst dot = address.indexOf(\".\");\n\treturn dot === -1 ? address : address.slice(0, dot);\n}\nasync function locate(input, cwd) {\n\tconst environment = input.environment ?? \"dev\";\n\tvalidateEnvironmentName(environment);\n\tconst app = appOfAddress(input.address);\n\tconst apps = await currentApps({\n\t\tconfig: input.config,\n\t\tapp,\n\t\tenvironment\n\t}, cwd);\n\tconst recorded = apps.find((candidate) => candidate.addresses.includes(input.address));\n\tif (recorded === void 0) {\n\t\tconst known = apps.flatMap((candidate) => candidate.addresses).sort();\n\t\tthrow new CliStructuredError(\"DEV.ADDRESS_UNKNOWN\", `\"${app}\" has no node at \"${input.address}\" in the environment ${environment}.`, {\n\t\t\twhy: `The addresses recorded for ${app} in the environment ${environment} are: ${known.join(\", \")}.`,\n\t\t\tfix: \"Pass one of those addresses. A nested node has a dotted address, such as `shop.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(() => recorded.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 ${runDev(environment)} in this directory.`,\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, environment, 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, environment, location) {\n\tconst rerun = `Run ${runDev(environment)} in this directory.`;\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: `${rerun} 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` and `prisma dev` ending both stop an app's services and database servers, and a stopped node has no URL that answers.\",\n\t\tfix: rerun,\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 environment = input.environment ?? \"dev\";\n\t\tvalidateEnvironmentName(environment);\n\t\tconst { name: app } = await resolveAppIdentity(input.entry, input.name, cwd, input.config);\n\t\tconst apps = await currentApps({\n\t\t\tconfig: input.config,\n\t\t\tapp,\n\t\t\tenvironment\n\t\t}, cwd);\n\t\tconst stopped = [];\n\t\tfor (const recorded of apps) stopped.push(...await fromTarget(() => recorded.stop()));\n\t\treturn ok({\n\t\t\tapp,\n\t\t\tenvironment,\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-DbcTJ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K,MAAM,YAAY,MAAM,QAAQ,KAAK,GAAG,MAAM,iBAAiB,SAAS,KAAK,CAAC,CAAC;EACpF,OAAO,GAAG;GACT;GACA;GACA;EACD,CAAC;CACF,SAAS,OAAO;EACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACpD,MAAM;CACP;AACD"}
|
package/dist/family.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as sectionMissing, t as checkComposerConfig } from "./composer-config-aL0W4HPG-CTpDJKz4.mjs";
|
|
2
2
|
import { t as SecretRedaction } from "./redaction-DHaXoToJ-zcuc7Sgf.mjs";
|
|
3
|
-
import { a as devUrl, i as devStop, o as devWithDeps, r as deployWithDeps, t as DEFAULT_DEPLOY_ENVIRONMENT } from "./dev-current-
|
|
3
|
+
import { a as devUrl, i as devStop, o as devWithDeps, r as deployWithDeps, t as DEFAULT_DEPLOY_ENVIRONMENT } from "./dev-current-DFRg3-my-BR_O2HtT.mjs";
|
|
4
4
|
import { t as valueReadsChangeText } from "./value-reads-change-text-DcRCv7Zy-Ca8m3bal.mjs";
|
|
5
5
|
import * as path from "node:path";
|
|
6
6
|
import { format } from "node:util";
|
|
@@ -860,7 +860,7 @@ function createComposerFamily$1(options = {}) {
|
|
|
860
860
|
* assembled into the family here, where both domains may be imported.
|
|
861
861
|
*/
|
|
862
862
|
/** Loaded on first use, so nothing of the Management API reads loads with the family. */
|
|
863
|
-
const listDeployed = async (input) => (await import("./list-deployed-
|
|
863
|
+
const listDeployed = async (input) => (await import("./list-deployed-CK0XroII.mjs")).listDeployed(input);
|
|
864
864
|
const createDeployListCommand = (list) => defineCommand({
|
|
865
865
|
help: {
|
|
866
866
|
summary: "List every node the app has deployed in an environment, with its platform ID and URL.",
|
package/dist/family.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family.mjs","names":["createComposerFamily","createFrameworkFamily"],"sources":["../../../0-framework/1-core/core/dist/config.mjs","../../../0-framework/3-tooling/cli/dist/family.mjs","../src/family/deploy-list.ts","../src/family/emulator-list.ts","../src/exports/family.ts"],"sourcesContent":["import { 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.ts\n/** One reader as the deploy prints it, for example `read by service \"shop.email\", field \"apiKey\"`. */\nfunction platformVariableReaderText(reader) {\n\tswitch (reader.kind) {\n\t\tcase \"field\": return `read by service \"${reader.service}\", field \"${reader.path === \"\" ? \"(root)\" : reader.path}\"`;\n\t\tcase \"unread\": return `named by resource \"${reader.node}\", read by no service`;\n\t}\n}\n//#endregion\nexport { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, defineConfig, devEnvironmentDir, isBuildOnlyExtension, platformVariableReaderText };\n\n//# sourceMappingURL=config.mjs.map","import { a as sectionMissing, t as checkComposerConfig } from \"./composer-config-aL0W4HPG.mjs\";\nimport { t as SecretRedaction } from \"./redaction-DHaXoToJ.mjs\";\nimport { a as DEFAULT_DEPLOY_ENVIRONMENT, i as devWithDeps, n as devUrl, s as deployWithDeps, t as devStop } from \"./dev-current-C7R8uqyQ.mjs\";\nimport { t as valueReadsChangeText } from \"./value-reads-change-text-DcRCv7Zy.mjs\";\nimport * as path from \"node:path\";\nimport { format } from \"node:util\";\nimport { defineCommand, defineCommandFamily, defineConfigSection, defineSessionCommand, flag, positional } from \"@prisma/cli-engine\";\nimport { CliStructuredError, notOk, ok } from \"@prisma/cli-engine/protocol\";\nimport { platformVariableReaderText } from \"@internal/core/config\";\n//#region src/family/data-lines.ts\nconst ESCAPES = {\n\t\"\\\\\": \"\\\\\\\\\",\n\t\"\t\": \"\\\\t\",\n\t\"\\n\": \"\\\\n\",\n\t\"\\r\": \"\\\\r\"\n};\nfunction fieldText(field) {\n\tif (field === null || field === void 0) return \"\";\n\treturn String(field).replace(/[\\\\\\t\\n\\r]/g, (character) => ESCAPES[character] ?? character);\n}\n/**\n* One data line: the fields tab-separated, an absent field left empty so a\n* script reads the columns by position. A backslash, tab, newline or carriage\n* return inside a field is escaped as `\\\\`, `\\t`, `\\n` or `\\r`.\n*/\nfunction dataLine(fields) {\n\treturn fields.map(fieldText).join(\"\t\");\n}\n//#endregion\n//#region src/unset-platform-variables.ts\nconst variableLines = (variable) => [variable.readers.length === 0 ? ` - ${variable.name}` : ` - ${variable.name} (${variable.readers.map(platformVariableReaderText).join(\"; \")})`, ...variable.commands.map((command) => ` ${command}`)];\nfunction unsetPlatformVariablesText(unset) {\n\tif (unset.length === 0) return void 0;\n\treturn [\"Platform variables with no value:\", ...unset.flatMap(variableLines)].join(\"\\n\");\n}\n//#endregion\n//#region src/family/console-to-stderr.ts\nconst METHODS = [\n\t\"log\",\n\t\"info\",\n\t\"debug\",\n\t\"dir\",\n\t\"table\",\n\t\"warn\",\n\t\"error\"\n];\n/**\n* Runs `run` with every `console` method writing to stderr through `redact`,\n* and restores them after: stdout carries the command's data lines and JSON\n* frames, so a provider's `console.log` during the apply must not land among\n* them.\n*/\nasync function withConsoleOnStderr(redact, run) {\n\tconst saved = METHODS.map((method) => [method, console[method]]);\n\tconst error = console.error;\n\ttry {\n\t\tfor (const method of METHODS) console[method] = (...args) => error.call(console, redact(format(...args)));\n\t\treturn await run();\n\t} finally {\n\t\tfor (const [method, original] of saved) Object.assign(console, { [method]: original });\n\t}\n}\n//#endregion\n//#region src/family/section.ts\nfunction diagnostic(finding, file) {\n\tconst where = finding.where ?? file;\n\treturn {\n\t\tcode: finding.code,\n\t\tseverity: \"error\",\n\t\tsummary: finding.summary,\n\t\t...finding.why === void 0 ? {} : { why: finding.why },\n\t\tnextActions: [{\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: finding.fix\n\t\t}],\n\t\t...where === void 0 ? {} : { where: { path: where } },\n\t\t...finding.field === void 0 ? {} : { meta: { field: finding.field } }\n\t};\n}\nfunction refuse(findings, file) {\n\treturn {\n\t\tok: false,\n\t\tdiagnostics: findings.map((finding) => diagnostic(finding, file))\n\t};\n}\nfunction validate(raw, provenance) {\n\tconst file = provenance.files[0];\n\tif (raw === void 0 || file === void 0) return refuse([sectionMissing], void 0);\n\tconst checked = checkComposerConfig(raw, file);\n\tif (!checked.ok) return refuse(checked.findings, file);\n\treturn {\n\t\tok: true,\n\t\tvalue: {\n\t\t\tvalue: checked.value,\n\t\t\tfile\n\t\t},\n\t\tdiagnostics: []\n\t};\n}\nconst composerSection = defineConfigSection({\n\tname: \"composer\",\n\tvalidate,\n\tmerge: (_parent, child) => child\n});\n//#endregion\n//#region src/family/translate-error.ts\n/**\n* The family boundary's error translation.\n*\n* Composer and the engine each carry a class called `CliStructuredError`, both\n* descended from the same prisma/prisma foundation, and both recognize errors\n* by duck-typing on `name === 'CliStructuredError'`. That means a composer\n* error handed to the engine untranslated is ACCEPTED — it does not fail\n* loudly, it renders. What it loses is its `fix`: composer's foundation\n* carries remediation as one prose string on that field, the engine carries it\n* as a `nextActions` list and has no `fix` at all, so the fix text is dropped\n* silently and the user is told what broke with no word on what to do about\n* it. Nothing about that failure is visible without a test that looks for the\n* fix on the other side, which is why there is one.\n*\n* Everything else on the envelope survives as-is; only remediation changes\n* representation.\n*/\n/**\n* Composer's `fix` is free prose — \"add this overrides block and reinstall\",\n* \"run the build, then retry\" — with no machine-readable command inside it.\n* `user-choice` is the engine's own kind for exactly that (it is what the\n* engine uses for its own config and prompt failures), so the text carries\n* over verbatim as one action rather than being parsed into a command the\n* author never wrote.\n*/\nfunction fixAsNextActions(fix) {\n\treturn fix === void 0 ? [] : [{\n\t\tkind: \"user-choice\",\n\t\tlabel: fix\n\t}];\n}\n/** Translates a composer failure into the engine's error type. Composer-side detail — `meta`, `where`, `docsUrl` — rides along untouched. */\nfunction toEngineError(error) {\n\treturn new CliStructuredError(error.code, error.message, {\n\t\tseverity: error.severity,\n\t\tnextActions: fixAsNextActions(error.fix),\n\t\t...error.why === void 0 ? {} : { why: error.why },\n\t\t...error.where === void 0 ? {} : { where: error.where },\n\t\t...error.meta === void 0 ? {} : { meta: error.meta },\n\t\t...error.docsUrl === void 0 ? {} : { docsUrl: error.docsUrl },\n\t\tcause: error\n\t});\n}\n//#endregion\n//#region src/family/commands/deploy.ts\nconst STEP_LABELS = {\n\tprepare: \"load config and app\",\n\tassemble: \"assemble services\",\n\tconnect: \"connect to project and branch\",\n\tpreflight: \"check environment variables\",\n\tapply: \"plan and apply\",\n\trecord: \"record result\"\n};\nfunction stepLabel(step) {\n\tswitch (step.name) {\n\t\tcase \"assemble-service\": return `assemble ${step.address}`;\n\t\tcase \"apply-resource\": return `${step.status} ${step.resourceId}`;\n\t\tdefault: return STEP_LABELS[step.name];\n\t}\n}\nfunction stepId(step) {\n\tswitch (step.name) {\n\t\tcase \"assemble-service\": return `deploy.assemble.${step.address}`;\n\t\tcase \"apply-resource\": return `deploy.apply.${step.resourceId}`;\n\t\tdefault: return `deploy.${step.name}`;\n\t}\n}\nfunction parentId(step) {\n\tswitch (step.name) {\n\t\tcase \"assemble-service\": return \"deploy.assemble\";\n\t\tcase \"apply-resource\": return \"deploy.apply\";\n\t\tdefault: return;\n\t}\n}\n/** `850ms`, `12.3s`, `9m 35s`. */\nfunction formatDuration(ms) {\n\tif (ms < 1e3) return `${String(Math.round(ms))}ms`;\n\tif (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;\n\tconst seconds = Math.round(ms / 1e3);\n\treturn `${String(Math.floor(seconds / 60))}m ${String(seconds % 60)}s`;\n}\n/** The operation's events as engine events. The engine prints only `step`, so a finished step carries its duration in the text too. */\nfunction toEngineEvent(event) {\n\tif (event.kind === \"message\") return {\n\t\tkind: \"message\",\n\t\tseverity: event.severity,\n\t\ttext: event.text\n\t};\n\tif (event.kind === \"preflight-findings\") {\n\t\tconst text = unsetPlatformVariablesText(event.findings.unset);\n\t\treturn text === void 0 ? void 0 : {\n\t\t\tkind: \"message\",\n\t\t\tseverity: \"warn\",\n\t\t\ttext,\n\t\t\tdata: event.findings\n\t\t};\n\t}\n\tconst id = stepId(event.step);\n\tif (event.kind === \"step-started\") {\n\t\tconst parent = parentId(event.step);\n\t\treturn {\n\t\t\tkind: \"step-started\",\n\t\t\tstep: stepLabel(event.step),\n\t\t\tid,\n\t\t\t...parent === void 0 ? {} : { parentId: parent },\n\t\t\t...event.step.name === \"apply-resource\" ? { data: { resourceType: event.step.resourceType } } : {}\n\t\t};\n\t}\n\treturn {\n\t\tkind: \"step-finished\",\n\t\tstep: `${stepLabel(event.step)} (${formatDuration(event.durationMs)})`,\n\t\tid,\n\t\toutcome: event.outcome,\n\t\tdata: {\n\t\t\t...event.data,\n\t\t\tdurationMs: event.durationMs\n\t\t}\n\t};\n}\nconst createDeployCommand = (operations) => defineCommand({\n\thelp: {\n\t\tsummary: \"Deploy the application whose root node is the entry module's default export.\",\n\t\texamples: [\n\t\t\t\"{bin} deploy\",\n\t\t\t\"{bin} deploy --environment staging\",\n\t\t\t\"{bin} deploy --entry other-module.ts\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tentry: flag.string({\n\t\t\tbrief: \"The file whose default export is the app's root, built with appRoot(...). Overrides `entry` in the `composer` section of prisma.config.ts.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tname: flag.string({\n\t\t\tbrief: \"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).\",\n\t\t\tplaceholder: \"name\"\n\t\t}),\n\t\tenvironment: flag.string({\n\t\t\tbrief: \"The environment to deploy to. Any name other than production is a complete, isolated copy of the app, such as staging or one per pull request.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: DEFAULT_DEPLOY_ENVIRONMENT\n\t\t}),\n\t\treport: flag.string({\n\t\t\tbrief: \"Write the deploy's outcome as JSON to this path — resources, preview URLs, and the failure cause. Also settable as PRISMA_COMPOSER_REPORT_FILE.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tbuildId: flag.string({\n\t\t\tbrief: \"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.\",\n\t\t\tplaceholder: \"id\"\n\t\t})\n\t} },\n\tneeds: {\n\t\tconfig: composerSection,\n\t\tcredentials: true\n\t},\n\thandler: async (args, ctx) => {\n\t\tconst credential = await ctx.activeCredential();\n\t\tconst redaction = new SecretRedaction(process.env);\n\t\tconst result = await withConsoleOnStderr((text) => redaction.redact(text), () => operations.deploy({\n\t\t\tentry: args.flags.entry,\n\t\t\tconfig: ctx.config,\n\t\t\tname: args.flags.name,\n\t\t\tenvironment: args.flags.environment,\n\t\t\tcwd: ctx.cwd,\n\t\t\treportPath: args.flags.report,\n\t\t\treportId: args.flags.buildId,\n\t\t\tonEvent: (event) => {\n\t\t\t\tconst engineEvent = toEngineEvent(event);\n\t\t\t\tif (engineEvent !== void 0) ctx.report(engineEvent);\n\t\t\t},\n\t\t\tsignal: ctx.signal\n\t\t}, {\n\t\t\tcredentials: {\n\t\t\t\tworkspaceId: credential?.workspaceId,\n\t\t\t\tclient: ctx.api\n\t\t\t},\n\t\t\tredaction\n\t\t}));\n\t\tif (!result.ok) {\n\t\t\tif (result.failure.code === \"DEPLOY.INTERRUPTED\" && ctx.signal.aborted) {\n\t\t\t\tconst { code, message, why, fix } = result.failure;\n\t\t\t\tctx.report({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `${message} ${fix ?? \"\"}`.trim(),\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tmessage,\n\t\t\t\t\t\twhy,\n\t\t\t\t\t\tfix\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthrow ctx.signal.reason;\n\t\t\t}\n\t\t\treturn notOk(toEngineError(result.failure));\n\t\t}\n\t\tconst { summary, durationMs } = result.value;\n\t\tconst unsetText = summary === void 0 ? void 0 : unsetPlatformVariablesText(summary.findings.unset);\n\t\tconst target = `to ${args.flags.environment ?? \"production\"} in ${formatDuration(durationMs)}`;\n\t\tfor (const node of summary?.nodes ?? []) for (const entity of node.entities) if (entity.url !== void 0) ctx.report({\n\t\t\tkind: \"endpoint\",\n\t\t\tname: node.address,\n\t\t\turl: entity.url\n\t\t});\n\t\treturn ok(ctx.present({ data: {\n\t\t\tsummary: summary ?? null,\n\t\t\tdurationMs\n\t\t} }, {\n\t\t\thuman: (ui) => [...summary === void 0 ? [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `Deployed ${target}.`\n\t\t\t}] : [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `Deployed ${ui.emphasize(summary.app)} ${target}.`\n\t\t\t}, {\n\t\t\t\tkind: \"table\",\n\t\t\t\tcolumns: [\"Address\", \"Deployed\"],\n\t\t\t\trows: summary.nodes.map((node) => [node.address, node.entities.map((entity) => `${entity.kind} ${entity.id}`).join(\", \")])\n\t\t\t}], ...unsetText === void 0 ? [] : [{\n\t\t\t\tkind: \"drawing\",\n\t\t\t\tlines: unsetText.split(\"\\n\")\n\t\t\t}]],\n\t\t\tstdout: () => (summary?.nodes ?? []).flatMap((node) => node.entities.map((entity) => dataLine([\n\t\t\t\tnode.address,\n\t\t\t\tentity.kind,\n\t\t\t\tentity.id,\n\t\t\t\tentity.url\n\t\t\t]))),\n\t\t\tjson: () => ({\n\t\t\t\tsummary: summary ?? null,\n\t\t\t\tdurationMs\n\t\t\t}),\n\t\t\tnext: () => []\n\t\t}));\n\t}\n});\n//#endregion\n//#region src/family/commands/dev.ts\n/**\n* `dev` — a session command that runs the local dev loop until the\n* user interrupts it.\n*\n* The watch loop, the emulators and the live attachments stay the operation's\n* state. What the handler owns is the boundary: the operation's events become\n* engine events, Ctrl-C reaches a running converge through `ctx.signal`, and\n* the session settles on how it actually ended. Every converge runs in this\n* process, so `console`'s stdout methods write to stderr for the whole\n* session, as they do for `deploy`.\n*\n* Windows is refused inside the operation itself (DEV.PLATFORM_UNSUPPORTED),\n* which is why nothing here reads the platform.\n*\n* `dev` is credential-free: everything it starts runs on this machine.\n*/\nconst STOP_STEP = \"Stopping the app's services — emulators and data stay up\";\nfunction valueReadsChangedText(change) {\n\treturn `The platform variables the app reads changed since dev started: ${valueReadsChangeText(change)}. Restart dev to apply them; rebuilds are paused until then.`;\n}\n/** Resolves when the run is asked to stop. */\nfunction stopRequested(signal) {\n\tif (signal.aborted) return Promise.resolve();\n\treturn new Promise((resolve) => {\n\t\tsignal.addEventListener(\"abort\", () => resolve(), { once: true });\n\t});\n}\nfunction devStepId(step) {\n\treturn step.name === \"converge\" ? step.id : `${step.converge}.${step.resourceId}`;\n}\nfunction devStepLabel(step) {\n\tif (step.name === \"apply-resource\") return `${step.status} ${step.resourceId}`;\n\treturn step.id === \"dev.converge\" ? \"converge\" : step.id.replace(/^dev\\.rebuild\\./, \"rebuild \");\n}\n/** The front door, ordered by address depth (fewest dots first) then lexicographically. */\nfunction frontDoorOrder(endpoints) {\n\treturn [...endpoints].sort((a, b) => {\n\t\tconst depth = a.address.split(\".\").length - b.address.split(\".\").length;\n\t\tif (depth !== 0) return depth;\n\t\treturn a.address < b.address ? -1 : a.address > b.address ? 1 : 0;\n\t});\n}\n/**\n* The operation's events as engine events. The legacy `[dev]` console prefix\n* is gone: these are commentary the engine renders and frames.\n*/\nfunction reportDevEvent(report, cwd) {\n\tlet stopFailed = false;\n\treturn (event) => {\n\t\tswitch (event.kind) {\n\t\t\tcase \"ready\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"status\",\n\t\t\t\t\tsubject: \"dev\",\n\t\t\t\t\tstatus: \"ready\"\n\t\t\t\t});\n\t\t\t\tfor (const endpoint of frontDoorOrder(event.endpoints)) report({\n\t\t\t\t\tkind: \"endpoint\",\n\t\t\t\t\tname: endpoint.address,\n\t\t\t\t\turl: endpoint.url,\n\t\t\t\t\t...endpoint.devServer !== void 0 ? { data: { devServer: endpoint.devServer } } : {}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"dev-server\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\ttext: `${event.address}: runs \\`${event.command}\\` in ${path.relative(cwd, event.cwd) || \".\"}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"dev-server-restarted\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\ttext: `${event.address}: its environment changed; \\`${event.command}\\` restarted`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"dev-server-output\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\ttext: `[${event.address}] ${event.line}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"unwatchable\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `${event.address} has no watchable inputs.`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"target-warning\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: event.message\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"rebuild-failed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `Rebuild failed: ${event.message}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"config-changed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `${event.file} changed. Restart dev to apply it; rebuilds are paused until then.`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"values-changed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: \"The values the config or secrets adapters return changed since dev started. Restart dev to apply them; rebuilds are paused until then.\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"value-reads-changed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: valueReadsChangedText(event)\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"watch-error\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `Watch error: ${event.message}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"step-started\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-started\",\n\t\t\t\t\tstep: devStepLabel(event.step),\n\t\t\t\t\tid: devStepId(event.step),\n\t\t\t\t\t...event.step.name === \"apply-resource\" ? {\n\t\t\t\t\t\tparentId: event.step.converge,\n\t\t\t\t\t\tdata: { resourceType: event.step.resourceType }\n\t\t\t\t\t} : {}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"step-finished\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-finished\",\n\t\t\t\t\tstep: devStepLabel(event.step),\n\t\t\t\t\tid: devStepId(event.step),\n\t\t\t\t\toutcome: event.outcome,\n\t\t\t\t\tdata: { durationMs: event.durationMs }\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"message\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: event.severity,\n\t\t\t\t\ttext: event.text\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"converge-failed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `Converge failed; the running app is untouched and dev is still watching.\\n${event.message}`,\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tcode: event.code,\n\t\t\t\t\t\treasons: event.reasons\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"stopping\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-started\",\n\t\t\t\t\tstep: STOP_STEP,\n\t\t\t\t\tid: \"dev-stop\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"stop-error\":\n\t\t\t\tstopFailed = true;\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `A service refused to stop: ${event.message}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"stopped\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-finished\",\n\t\t\t\t\tstep: STOP_STEP,\n\t\t\t\t\tid: \"dev-stop\",\n\t\t\t\t\toutcome: stopFailed ? \"warning\" : \"ok\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t}\n\t};\n}\n/** A detached session owns nothing to stop, so a Ctrl-C before it was ready stops the app the way `prisma dev stop` does. */\nasync function stopDetachedApp(operations, app, ctx) {\n\tconst stopped = await operations.devStop({\n\t\t...app,\n\t\tconfig: ctx.config,\n\t\tcwd: ctx.cwd\n\t});\n\tif (stopped.ok) return;\n\tctx.report({\n\t\tkind: \"message\",\n\t\tseverity: \"warn\",\n\t\ttext: `The app could not be stopped: ${stopped.failure.message} Run \\`prisma dev stop\\`.`\n\t});\n}\nconst createDevCommand = (operations) => defineSessionCommand({\n\thelp: {\n\t\tsummary: \"Bring up the application whose root node is the entry module's default export, entirely on this machine.\",\n\t\tdescription: \"Runs credential-free and watches the app for changes, reconverging when a service's build output or an app definition file (the entry module, or any app file it loaded) changes. An edit that adds or removes a node, changes which platform variables the app reads, or makes the app's root pass on an input field it did not pass on at start, needs a restart of dev, which says so. 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). Each environment is a complete local copy of the app, with its own services, databases, buckets and ports; the default is dev, and copies of other environments run alongside it. Where each node runs is 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`.\",\n\t\texamples: [\n\t\t\t\"{bin} dev\",\n\t\t\t\"{bin} dev --fresh\",\n\t\t\t\"{bin} dev --environment test --fresh\",\n\t\t\t\"{bin} dev --detach\",\n\t\t\t\"{bin} dev --entry other-module.ts\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tentry: flag.string({\n\t\t\tbrief: \"The file whose default export is the app's root, built with appRoot(...). Overrides `entry` in the `composer` section of prisma.config.ts.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tname: flag.string({\n\t\t\tbrief: \"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).\",\n\t\t\tplaceholder: \"name\"\n\t\t}),\n\t\tenvironment: flag.string({\n\t\t\tbrief: \"The environment to run as. Each environment is a separate local copy of the app, so a second one, such as test, runs alongside dev and leaves its data alone.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: \"dev\"\n\t\t}),\n\t\tfresh: flag.boolean({ brief: \"Delete this app's local services, databases and buckets in the environment, and their data, before starting. Other environments are untouched.\" }),\n\t\tdetach: 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.\" })\n\t} },\n\tneeds: { config: composerSection },\n\thandler: (args, ctx) => {\n\t\tconst redaction = new SecretRedaction(process.env);\n\t\treturn withConsoleOnStderr((text) => redaction.redact(text), async () => {\n\t\t\tconst result = await operations.dev({\n\t\t\t\tentry: args.flags.entry,\n\t\t\t\tconfig: ctx.config,\n\t\t\t\tname: args.flags.name,\n\t\t\t\tenvironment: args.flags.environment,\n\t\t\t\tfresh: args.flags.fresh,\n\t\t\t\tdetach: args.flags.detach,\n\t\t\t\tcwd: ctx.cwd,\n\t\t\t\tonEvent: reportDevEvent(ctx.report, ctx.cwd),\n\t\t\t\tsignal: ctx.signal\n\t\t\t}, { redaction });\n\t\t\tif (!result.ok) {\n\t\t\t\tif (result.failure.code === \"DEV.INTERRUPTED\" && ctx.signal.aborted) {\n\t\t\t\t\tctx.report({\n\t\t\t\t\t\tkind: \"message\",\n\t\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\t\ttext: `${result.failure.message} ${result.failure.fix ?? \"\"}`.trim()\n\t\t\t\t\t});\n\t\t\t\t\treturn ok(void 0);\n\t\t\t\t}\n\t\t\t\treturn notOk(toEngineError(result.failure));\n\t\t\t}\n\t\t\tif (args.flags.detach) {\n\t\t\t\tif (ctx.signal.aborted) await stopDetachedApp(operations, {\n\t\t\t\t\tentry: args.flags.entry,\n\t\t\t\t\tname: args.flags.name,\n\t\t\t\t\tenvironment: args.flags.environment\n\t\t\t\t}, ctx);\n\t\t\t\treturn ok(void 0);\n\t\t\t}\n\t\t\tawait stopRequested(ctx.signal);\n\t\t\tawait result.value.stop();\n\t\t\treturn ok(void 0);\n\t\t});\n\t}\n});\n//#endregion\n//#region src/family/commands/dev-stop.ts\n/**\n* `dev stop` — stops the app's local copy in one environment, as ending\n* `prisma dev` would: its service processes and database servers. For an\n* app whose `prisma dev` was killed without the chance to stop it.\n*/\nconst createDevStopCommand = (operations) => defineCommand({\n\thelp: {\n\t\tsummary: \"Stop the app's local copy in an environment: its service processes and local database servers. Data and ports are kept for the next `prisma dev`.\",\n\t\tdescription: \"The app is the root module of the entry, or --name, as for `prisma dev`, and the environment is dev unless --environment names another. Other apps and environments keep running. Ending `prisma dev` with Ctrl-C does the same. Run this when `prisma dev` was killed without a chance to stop the app, or before deleting the directory. The emulators keep running; other directories may be using them.\",\n\t\texamples: [\"{bin} dev stop\", \"{bin} dev stop --environment test\"]\n\t},\n\targs: { flags: {\n\t\tentry: flag.string({\n\t\t\tbrief: \"The file whose default export is the app's root, built with appRoot(...). Overrides `entry` in the `composer` section of prisma.config.ts.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tname: flag.string({\n\t\t\tbrief: \"Stop the app run under this name instead of the root module's name.\",\n\t\t\tplaceholder: \"name\"\n\t\t}),\n\t\tenvironment: flag.string({\n\t\t\tbrief: \"The environment whose local copy to stop.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: \"dev\"\n\t\t})\n\t} },\n\tneeds: { config: composerSection },\n\thandler: async (args, ctx) => {\n\t\tconst result = await operations.devStop({\n\t\t\tconfig: ctx.config,\n\t\t\tentry: args.flags.entry,\n\t\t\tname: args.flags.name,\n\t\t\tenvironment: args.flags.environment,\n\t\t\tcwd: ctx.cwd\n\t\t});\n\t\tif (!result.ok) return notOk(toEngineError(result.failure));\n\t\tconst { app, environment, stopped } = result.value;\n\t\treturn ok(ctx.present({ data: result.value }, {\n\t\t\thuman: (ui) => stopped.length === 0 ? [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"info\",\n\t\t\t\ttext: `Nothing of ${ui.emphasize(app)} was running in the environment ${environment}.`\n\t\t\t}] : [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `Stopped ${ui.emphasize(app)} in the environment ${environment}. Its data and ports are kept for the next \\`prisma dev\\`.`\n\t\t\t}, {\n\t\t\t\tkind: \"table\",\n\t\t\t\tcolumns: [\"Address\", \"Kind\"],\n\t\t\t\trows: stopped.map(({ address, kind }) => [address, kind])\n\t\t\t}],\n\t\t\tstdout: () => stopped.map(({ address, kind }) => dataLine([address, kind])),\n\t\t\tjson: () => result.value,\n\t\t\tnext: () => []\n\t\t}));\n\t}\n});\n//#endregion\n//#region src/family/commands/dev-url.ts\n/**\n* `dev url <address>` — where a node that `prisma dev` runs from this\n* directory answers locally, in the environment named. A data command: the\n* URL is its stdout line, so `$(prisma dev url shop.gateway)` is the URL alone.\n*/\nconst createDevUrlCommand = (operations) => defineCommand({\n\thelp: {\n\t\tsummary: \"Print the local URL of a node (a service, database or bucket in your app) that `prisma dev` runs from this directory: a service's HTTP URL, a database's connection string, or a bucket's S3 address.\",\n\t\tdescription: \"The app is the first name of the address, and the environment is dev unless --environment names another. Reads what `prisma dev` recorded for that app and environment in this directory and starts nothing, so run it while `prisma dev` is running; a node that is not running is an error. The URL alone goes to stdout, so a script can use it directly: curl \\\"$(prisma dev url shop.gateway)\\\". With --json, stdout carries the full result instead.\",\n\t\texamples: [\n\t\t\t\"{bin} dev url shop.gateway\",\n\t\t\t\"{bin} dev url shop.gateway --environment test\",\n\t\t\t\"{bin} dev url shop.catalog.database --json\"\n\t\t]\n\t},\n\targs: {\n\t\tpositionals: { address: positional.string({\n\t\t\tbrief: \"The node's address: the app name, then the names down to the node, with dots between them, such as shop.catalog.database.\",\n\t\t\tplaceholder: \"address\"\n\t\t}) },\n\t\tflags: { environment: flag.string({\n\t\t\tbrief: \"The environment whose local copy to read.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: \"dev\"\n\t\t}) }\n\t},\n\tneeds: { config: composerSection },\n\thandler: async (args, ctx) => {\n\t\tconst result = await operations.devUrl({\n\t\t\tconfig: ctx.config,\n\t\t\taddress: args.positionals.address,\n\t\t\tenvironment: args.flags.environment,\n\t\t\tcwd: ctx.cwd\n\t\t});\n\t\tif (!result.ok) return notOk(toEngineError(result.failure));\n\t\tconst node = result.value;\n\t\treturn ok(ctx.present({ data: node }, {\n\t\t\thuman: (ui) => [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `The ${node.kind} ${ui.emphasize(node.address)} is ${node.state} at ${node.url}`\n\t\t\t}],\n\t\t\tstdout: () => [dataLine([node.url])],\n\t\t\tjson: () => node,\n\t\t\tnext: () => []\n\t\t}));\n\t}\n});\n//#endregion\n//#region src/family/family.ts\n/**\n* Composer's `CommandFamily`: the unit the `prisma` bin mounts.\n*\n* This module and everything it reaches statically must stay free of alchemy\n* and of effect VALUE imports: the `prisma` bin imports the family directly,\n* so anything in this static graph loads on `prisma --version`. The mechanism\n* that holds it is the existing lazy boundary inside the operation modules —\n* `operations/deploy.ts` and `dev.ts` each `await import()` their executor,\n* and it is the executors that reach the provider tree. Importing the operations here is therefore free; importing an\n* executor, or flattening one of those dynamic imports, is not.\n* scripts/check-family-static-graph.mjs enforces this against BUILT output,\n* where type-only imports have already been erased.\n*\n* The commands close over the operations they are given, so a host can\n* mount this family against the test double and exercise real grammar, real\n* arg validation and real handlers with no alchemy behind them.\n*\n* The family ships `deploy`, `dev`, `dev url` and `dev stop`, keyed by the\n* path they are meant to mount at; the host decides where each one mounts.\n* A host may add commands of its own through `commands` — the published\n* family adds `deploy list` and `emulator list`, which need Prisma Cloud\n* code. `destroy` and `log` are programmatic operations in\n* `@prisma/composer/control`, not commands.\n*/\nconst realOperations = {\n\tdeploy: deployWithDeps,\n\tdev: devWithDeps,\n\tdevUrl,\n\tdevStop\n};\n/** The `prisma` CLI's error reference; the engine appends `/<CODE>` to it for every error envelope. */\nconst CLI_DOCS_BASE = \"https://www.prisma.io/docs/cli/error-reference/\";\n/** Retires `--stage` on `command` in favour of `--environment`, so typing it fails with `CLI.COMMAND_MOVED`. */\nfunction retiredStageFlagRedirect(command) {\n\treturn {\n\t\tfrom: command,\n\t\tflag: \"stage\",\n\t\treplacement: `${command} --environment <name>`,\n\t\treason: \"A place the app runs is now called an environment.\"\n\t};\n}\nfunction withPrisma7Cli(reason, invocation) {\n\treturn `${reason} To keep using Prisma 7, install its CLI with \\`npm install --save-dev @prisma/prisma7@7\\` and run \\`prisma7 ${invocation}\\`.`;\n}\nfunction kebabCase(flag) {\n\treturn flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n}\nfunction v7Command(from, entry) {\n\tconst { prisma7 = from, ...rest } = entry;\n\treturn {\n\t\tfrom,\n\t\tcode: \"CLI.V7_COMMAND\",\n\t\tsummary: `\\`{bin} ${from}\\` is a Prisma 7 command and is not available in Prisma 8`,\n\t\t...rest,\n\t\treason: withPrisma7Cli(entry.reason, prisma7)\n\t};\n}\nfunction v7Flag(command, flag, entry) {\n\tconst { prisma7 = `${command} --${kebabCase(flag)}`, ...rest } = entry;\n\treturn {\n\t\tfrom: command,\n\t\tflag,\n\t\tcode: \"CLI.V7_FLAG\",\n\t\tsummary: `\\`--${kebabCase(flag)}\\` on \\`{bin} ${command}\\` is a Prisma 7 flag and is not available in Prisma 8`,\n\t\t...rest,\n\t\treason: withPrisma7Cli(entry.reason, prisma7)\n\t};\n}\nconst ENVIRONMENT = \"environment (a separate local copy of the app: the one named dev unless `--environment` names another)\";\nconst DEV_PORTS_REASON = `\\`dev\\` takes no port options. Each ${ENVIRONMENT} gets its own ports for its services, databases and buckets and keeps them between runs. While \\`dev\\` runs, \\`dev url <address>\\` prints where one service, database or bucket answers; its address is its path from the app name, with dots between names, such as \\`shop.catalog.database\\`.`;\nconst V7_REDIRECTS = [\n\tv7Command(\"dev ls\", {\n\t\treplacement: \"{bin} emulator list\",\n\t\thelp: \"emulator list\",\n\t\treason: \"`emulator list` lists the local emulators on this machine, the programs `dev` starts to run the app's services, databases and buckets, with every instance each one holds.\"\n\t}),\n\tv7Command(\"dev rm\", {\n\t\tprisma7: \"dev rm <name>\",\n\t\treplacement: \"{bin} dev --fresh\",\n\t\thelp: \"dev\",\n\t\treason: `\\`dev --fresh\\` deletes this app's local services, databases and buckets, and their data, in one ${ENVIRONMENT}, then starts the app again. \\`dev stop\\` only stops the app's service processes and local database servers, and keeps their data.`\n\t}),\n\tv7Command(\"dev start\", {\n\t\tprisma7: \"dev start <name>\",\n\t\treplacement: \"{bin} dev --detach\",\n\t\thelp: \"dev\",\n\t\treason: \"`dev --detach` runs the app locally in the background: it returns once every service answers and leaves the app running, without watching for changes, until `dev stop`.\"\n\t}),\n\t...[\n\t\t\"port\",\n\t\t\"dbPort\",\n\t\t\"shadowDbPort\"\n\t].map((flag) => v7Flag(\"dev\", flag, {\n\t\tprisma7: `dev --${kebabCase(flag)} <port>`,\n\t\thelp: \"dev\",\n\t\treason: DEV_PORTS_REASON\n\t})),\n\tv7Flag(\"dev\", \"debug\", {\n\t\thelp: \"dev\",\n\t\treason: \"`dev` has no debug output option. It shows the output of each service that runs a dev server, such as `next dev`, prefixed with the service's address.\"\n\t}),\n\tv7Flag(\"dev stop\", \"debug\", {\n\t\tprisma7: \"dev stop <name> --debug\",\n\t\thelp: \"dev stop\",\n\t\treason: \"`dev stop` has no debug output option.\"\n\t})\n];\nfunction createComposerFamily(options = {}) {\n\tconst operations = options.operations ?? realOperations;\n\treturn defineCommandFamily({\n\t\tconfigSection: composerSection,\n\t\tcommands: {\n\t\t\tdeploy: createDeployCommand(operations),\n\t\t\tdev: createDevCommand(operations),\n\t\t\t\"dev url\": createDevUrlCommand(operations),\n\t\t\t\"dev stop\": createDevStopCommand(operations),\n\t\t\t...options.commands\n\t\t},\n\t\tdocsBaseUrl: CLI_DOCS_BASE,\n\t\tredirects: [\n\t\t\tretiredStageFlagRedirect(\"deploy\"),\n\t\t\t...V7_REDIRECTS,\n\t\t\t...options.redirects ?? []\n\t\t]\n\t});\n}\n//#endregion\nexport { DEFAULT_DEPLOY_ENVIRONMENT, composerSection, createComposerFamily, dataLine, realOperations, toEngineError };\n\n//# sourceMappingURL=family.mjs.map","/**\n * `deploy list` — every node an app has deployed in an environment, with the\n * platform row each one deployed to. It reads the environment's application\n * topology and the Branch's rows on Prisma Cloud, so the command is\n * assembled into the family here, where both domains may be imported.\n */\n\nimport {\n composerSection,\n DEFAULT_DEPLOY_ENVIRONMENT,\n dataLine,\n toEngineError,\n} from '@internal/cli/family';\nimport type { CliStructuredError as ComposerError } from '@internal/foundation/errors';\nimport type { Result } from '@internal/foundation/result';\nimport { defineCommand, flag } from '@prisma/cli-engine';\nimport { notOk, ok } from '@prisma/cli-engine/protocol';\nimport type { DeployedNode } from './deployed-nodes.ts';\nimport type { ListDeployedInput } from './list-deployed.ts';\n\nexport type ListDeployed = (\n input: ListDeployedInput,\n) => Promise<Result<readonly DeployedNode[], ComposerError>>;\n\n/** Loaded on first use, so nothing of the Management API reads loads with the family. */\nexport const listDeployed: ListDeployed = async (input) =>\n (await import('./list-deployed.ts')).listDeployed(input);\n\nexport const createDeployListCommand = (list: ListDeployed) =>\n defineCommand({\n help: {\n summary:\n 'List every node the app has deployed in an environment, with its platform ID and URL.',\n description:\n 'Reads the application topology the last deploy recorded for the environment, and finds ' +\n 'each node’s service, database or bucket on Prisma Cloud. The root node is the ' +\n 'Project. A node with nothing on the platform, such as a module, has no platform ID.',\n examples: [\n '{bin} deploy list',\n '{bin} deploy list --environment staging',\n '{bin} deploy list --json',\n ],\n },\n args: {\n flags: {\n entry: flag.string({\n brief:\n \"The file whose default export is the app's root, built with appRoot(...). \" +\n 'Overrides `entry` in the `composer` section of prisma.config.ts.',\n placeholder: 'path',\n }),\n name: flag.string({\n brief:\n 'List the app deployed under this name instead of the name its root module ' +\n \"declares (default: the root module's name).\",\n placeholder: 'name',\n }),\n environment: flag.string({\n brief: 'The environment to list.',\n placeholder: 'name',\n default: DEFAULT_DEPLOY_ENVIRONMENT,\n }),\n },\n },\n needs: { config: composerSection, credentials: true },\n handler: async (args, ctx) => {\n const credential = await ctx.activeCredential();\n const result = await list({\n config: ctx.config,\n entry: args.flags.entry,\n name: args.flags.name,\n environment: args.flags.environment ?? DEFAULT_DEPLOY_ENVIRONMENT,\n cwd: ctx.cwd,\n workspaceId: credential?.workspaceId,\n client: ctx.api,\n });\n if (!result.ok) return notOk(toEngineError(result.failure));\n const nodes = result.value;\n return ok(\n ctx.present(\n { data: nodes },\n {\n human: () => [\n {\n kind: 'table',\n columns: ['Address', 'Kind', 'Platform ID', 'URL'],\n rows: nodes.map((node) => [\n node.address,\n node.kind,\n node.platformId ?? '',\n node.url ?? '',\n ]),\n },\n ],\n stdout: () =>\n nodes.map((node) => dataLine([node.address, node.kind, node.platformId, node.url])),\n json: () => nodes,\n next: () => [],\n },\n ),\n );\n },\n });\n","/**\n * `emulator list` — every local emulator on this machine and every\n * instance it holds. It needs no project and no config. The listing comes\n * from the Prisma Cloud domain, so the command is assembled into the\n * family here, where both domains may be imported.\n */\n\nimport { dataLine, toEngineError } from '@internal/cli/family';\nimport type { EmulatorList, EmulatorListing } from '@internal/dev-emulators';\nimport type { CliStructuredError as ComposerError } from '@internal/foundation/errors';\nimport type { Result } from '@internal/foundation/result';\nimport { defineCommand } from '@prisma/cli-engine';\nimport { notOk, ok } from '@prisma/cli-engine/protocol';\n\nexport type ListEmulators = () => Promise<Result<EmulatorList, ComposerError>>;\n\n/** Loaded on first use, so nothing of the emulators' clients loads with the family. */\nexport const listEmulators: ListEmulators = async () =>\n (await import('@internal/dev-emulators')).listEmulators();\n\nconst EMULATOR_NAMES = {\n service: 'Service emulator',\n database: 'Database emulator',\n bucket: 'Bucket emulator',\n} as const;\n\n/** The node, directory and environment that started an instance, when Composer's labels say. */\nfunction startedBy(labels: Readonly<Record<string, string>>): string | undefined {\n const address = labels['composer.address'];\n const directory = labels['composer.directory'];\n const environment = labels['composer.environment'];\n if (address === undefined) return undefined;\n const where = directory === undefined ? address : `${address} in ${directory}`;\n return environment === undefined ? where : `${where} (${environment})`;\n}\n\nfunction labelOf(emulator: EmulatorListing, dim: (text: string) => string): string {\n const name = EMULATOR_NAMES[emulator.kind];\n if (!emulator.running || emulator.url === null) return `${name} ${dim('(not running)')}`;\n if (emulator.error !== null) {\n return `${name} at ${emulator.url}: could not list its instances (${emulator.error.code}: ${emulator.error.message})`;\n }\n return `${name} at ${emulator.url}`;\n}\n\nfunction statusOf(emulator: EmulatorListing): 'ok' | 'info' | 'error' {\n if (emulator.error !== null) return 'error';\n return emulator.running ? 'ok' : 'info';\n}\n\nexport const createEmulatorListCommand = (list: ListEmulators) =>\n defineCommand({\n help: {\n summary:\n 'List the local emulators on this machine — the programs `prisma dev` starts to run ' +\n 'services, databases and S3-compatible buckets without Prisma Cloud — with every ' +\n 'instance each one holds.',\n description:\n 'Needs no project: it shows every directory’s instances. An emulator that is not ' +\n 'running is listed with no instances, and one that runs but cannot be listed is ' +\n 'shown with the error. Each instance’s labels say which directory, ' +\n 'app, node and environment started it. A stopped instance keeps its port and data ' +\n 'until it is deleted.',\n examples: ['{bin} emulator list', '{bin} emulator list --json'],\n },\n args: {},\n handler: async (_args, ctx) => {\n const result = await list();\n if (!result.ok) return notOk(toEngineError(result.failure));\n const { emulators } = result.value;\n return ok(\n ctx.present(\n { data: result.value },\n {\n human: (ui) => [\n {\n kind: 'tree',\n roots: emulators.map((emulator) => ({\n label: labelOf(emulator, ui.dim),\n status: statusOf(emulator),\n children: emulator.instances.map((instance) => {\n const by = startedBy(instance.labels);\n return {\n label: [\n instance.id,\n instance.url,\n instance.state,\n ...(by ? [ui.dim(by)] : []),\n ].join(' '),\n };\n }),\n })),\n },\n ],\n stdout: () =>\n emulators.flatMap((emulator) =>\n emulator.instances.map((instance) =>\n dataLine([\n emulator.kind,\n instance.id,\n instance.url,\n instance.state,\n instance.labels['composer.address'],\n instance.labels['composer.directory'],\n instance.labels['composer.environment'],\n ]),\n ),\n ),\n json: () => result.value,\n next: () => [],\n },\n ),\n );\n },\n });\n","/**\n * Public surface (the `./family` subpath): composer's engine `CommandFamily`,\n * for hosts that mount composer's commands into their own CLI — the `prisma`\n * bin does exactly this.\n *\n * Kept apart from `@prisma/composer`'s `./control` on purpose. `./control` is\n * the programmatic deploy pipeline; this is the command surface: grammar, help\n * and arg validation belong to the engine, and the handlers behind them are\n * the same operations `./control` exposes.\n *\n * Its static graph is alchemy-free and effect-free, so importing it costs a\n * host nothing until a composer command actually runs.\n */\n\nimport {\n createComposerFamily as createFrameworkFamily,\n type CreateComposerFamilyOptions as FrameworkFamilyOptions,\n} from '@internal/cli/family';\nimport type { CommandFamily } from '@prisma/cli-engine';\nimport { createDeployListCommand, type ListDeployed, listDeployed } from '../family/deploy-list.ts';\nimport {\n createEmulatorListCommand,\n type ListEmulators,\n listEmulators,\n} from '../family/emulator-list.ts';\n\nexport * from '@internal/cli/family';\nexport type { ListDeployed } from '../family/deploy-list.ts';\nexport type { DeployedNode } from '../family/deployed-nodes.ts';\nexport type { ListEmulators } from '../family/emulator-list.ts';\nexport type { ListDeployedInput } from '../family/list-deployed.ts';\n\nexport interface CreateComposerFamilyOptions extends FrameworkFamilyOptions {\n /** Defaults to the real listing of this machine's emulators. */\n readonly listEmulators?: ListEmulators | undefined;\n /** Defaults to the real read of what the app has deployed on Prisma Cloud. */\n readonly listDeployed?: ListDeployed | undefined;\n}\n\n/** Composer's command family: `deploy`, `deploy list`, `dev`, `dev url`, `dev stop` and `emulator list`, keyed by the path each is meant to mount at. */\nexport function createComposerFamily(options: CreateComposerFamilyOptions = {}): CommandFamily {\n return createFrameworkFamily({\n ...options,\n commands: {\n 'deploy list': createDeployListCommand(options.listDeployed ?? listDeployed),\n 'emulator list': createEmulatorListCommand(options.listEmulators ?? listEmulators),\n ...options.commands,\n },\n });\n}\n"],"mappings":";;;;;;;;;;AAGA,SAAS,2BAA2B,QAAQ;CAC3C,QAAQ,OAAO,MAAf;EACC,KAAK,SAAS,OAAO,oBAAoB,OAAO,QAAQ,YAAY,OAAO,SAAS,KAAK,WAAW,OAAO,KAAK;EAChH,KAAK,UAAU,OAAO,sBAAsB,OAAO,KAAK;CACzD;AACD;;;ACEA,MAAM,UAAU;CACf,MAAM;CACN,KAAK;CACL,MAAM;CACN,MAAM;AACP;AACA,SAAS,UAAU,OAAO;CACzB,IAAI,UAAU,QAAQ,UAAU,KAAK,GAAG,OAAO;CAC/C,OAAO,OAAO,KAAK,CAAC,CAAC,QAAQ,gBAAgB,cAAc,QAAQ,cAAc,SAAS;AAC3F;;;;;;AAMA,SAAS,SAAS,QAAQ;CACzB,OAAO,OAAO,IAAI,SAAS,CAAC,CAAC,KAAK,GAAG;AACtC;AAGA,MAAM,iBAAiB,aAAa,CAAC,SAAS,QAAQ,WAAW,IAAI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iBAAiB,0BAA0B,QAAQ,iBAAiB,aAAa;GACjF,GAAG,QAAQ;EACb;CACF,CAAC;AACH"}
|
|
1
|
+
{"version":3,"file":"family.mjs","names":["createComposerFamily","createFrameworkFamily"],"sources":["../../../0-framework/1-core/core/dist/config.mjs","../../../0-framework/3-tooling/cli/dist/family.mjs","../src/family/deploy-list.ts","../src/family/emulator-list.ts","../src/exports/family.ts"],"sourcesContent":["import { 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.ts\n/** One reader as the deploy prints it, for example `read by service \"shop.email\", field \"apiKey\"`. */\nfunction platformVariableReaderText(reader) {\n\tswitch (reader.kind) {\n\t\tcase \"field\": return `read by service \"${reader.service}\", field \"${reader.path === \"\" ? \"(root)\" : reader.path}\"`;\n\t\tcase \"unread\": return `named by resource \"${reader.node}\", read by no service`;\n\t}\n}\n//#endregion\nexport { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, defineConfig, devEnvironmentDir, isBuildOnlyExtension, platformVariableReaderText };\n\n//# sourceMappingURL=config.mjs.map","import { a as sectionMissing, t as checkComposerConfig } from \"./composer-config-aL0W4HPG.mjs\";\nimport { t as SecretRedaction } from \"./redaction-DHaXoToJ.mjs\";\nimport { a as DEFAULT_DEPLOY_ENVIRONMENT, i as devWithDeps, n as devUrl, s as deployWithDeps, t as devStop } from \"./dev-current-DFRg3-my.mjs\";\nimport { t as valueReadsChangeText } from \"./value-reads-change-text-DcRCv7Zy.mjs\";\nimport * as path from \"node:path\";\nimport { format } from \"node:util\";\nimport { defineCommand, defineCommandFamily, defineConfigSection, defineSessionCommand, flag, positional } from \"@prisma/cli-engine\";\nimport { CliStructuredError, notOk, ok } from \"@prisma/cli-engine/protocol\";\nimport { platformVariableReaderText } from \"@internal/core/config\";\n//#region src/family/data-lines.ts\nconst ESCAPES = {\n\t\"\\\\\": \"\\\\\\\\\",\n\t\"\t\": \"\\\\t\",\n\t\"\\n\": \"\\\\n\",\n\t\"\\r\": \"\\\\r\"\n};\nfunction fieldText(field) {\n\tif (field === null || field === void 0) return \"\";\n\treturn String(field).replace(/[\\\\\\t\\n\\r]/g, (character) => ESCAPES[character] ?? character);\n}\n/**\n* One data line: the fields tab-separated, an absent field left empty so a\n* script reads the columns by position. A backslash, tab, newline or carriage\n* return inside a field is escaped as `\\\\`, `\\t`, `\\n` or `\\r`.\n*/\nfunction dataLine(fields) {\n\treturn fields.map(fieldText).join(\"\t\");\n}\n//#endregion\n//#region src/unset-platform-variables.ts\nconst variableLines = (variable) => [variable.readers.length === 0 ? ` - ${variable.name}` : ` - ${variable.name} (${variable.readers.map(platformVariableReaderText).join(\"; \")})`, ...variable.commands.map((command) => ` ${command}`)];\nfunction unsetPlatformVariablesText(unset) {\n\tif (unset.length === 0) return void 0;\n\treturn [\"Platform variables with no value:\", ...unset.flatMap(variableLines)].join(\"\\n\");\n}\n//#endregion\n//#region src/family/console-to-stderr.ts\nconst METHODS = [\n\t\"log\",\n\t\"info\",\n\t\"debug\",\n\t\"dir\",\n\t\"table\",\n\t\"warn\",\n\t\"error\"\n];\n/**\n* Runs `run` with every `console` method writing to stderr through `redact`,\n* and restores them after: stdout carries the command's data lines and JSON\n* frames, so a provider's `console.log` during the apply must not land among\n* them.\n*/\nasync function withConsoleOnStderr(redact, run) {\n\tconst saved = METHODS.map((method) => [method, console[method]]);\n\tconst error = console.error;\n\ttry {\n\t\tfor (const method of METHODS) console[method] = (...args) => error.call(console, redact(format(...args)));\n\t\treturn await run();\n\t} finally {\n\t\tfor (const [method, original] of saved) Object.assign(console, { [method]: original });\n\t}\n}\n//#endregion\n//#region src/family/section.ts\nfunction diagnostic(finding, file) {\n\tconst where = finding.where ?? file;\n\treturn {\n\t\tcode: finding.code,\n\t\tseverity: \"error\",\n\t\tsummary: finding.summary,\n\t\t...finding.why === void 0 ? {} : { why: finding.why },\n\t\tnextActions: [{\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: finding.fix\n\t\t}],\n\t\t...where === void 0 ? {} : { where: { path: where } },\n\t\t...finding.field === void 0 ? {} : { meta: { field: finding.field } }\n\t};\n}\nfunction refuse(findings, file) {\n\treturn {\n\t\tok: false,\n\t\tdiagnostics: findings.map((finding) => diagnostic(finding, file))\n\t};\n}\nfunction validate(raw, provenance) {\n\tconst file = provenance.files[0];\n\tif (raw === void 0 || file === void 0) return refuse([sectionMissing], void 0);\n\tconst checked = checkComposerConfig(raw, file);\n\tif (!checked.ok) return refuse(checked.findings, file);\n\treturn {\n\t\tok: true,\n\t\tvalue: {\n\t\t\tvalue: checked.value,\n\t\t\tfile\n\t\t},\n\t\tdiagnostics: []\n\t};\n}\nconst composerSection = defineConfigSection({\n\tname: \"composer\",\n\tvalidate,\n\tmerge: (_parent, child) => child\n});\n//#endregion\n//#region src/family/translate-error.ts\n/**\n* The family boundary's error translation.\n*\n* Composer and the engine each carry a class called `CliStructuredError`, both\n* descended from the same prisma/prisma foundation, and both recognize errors\n* by duck-typing on `name === 'CliStructuredError'`. That means a composer\n* error handed to the engine untranslated is ACCEPTED — it does not fail\n* loudly, it renders. What it loses is its `fix`: composer's foundation\n* carries remediation as one prose string on that field, the engine carries it\n* as a `nextActions` list and has no `fix` at all, so the fix text is dropped\n* silently and the user is told what broke with no word on what to do about\n* it. Nothing about that failure is visible without a test that looks for the\n* fix on the other side, which is why there is one.\n*\n* Everything else on the envelope survives as-is; only remediation changes\n* representation.\n*/\n/**\n* Composer's `fix` is free prose — \"add this overrides block and reinstall\",\n* \"run the build, then retry\" — with no machine-readable command inside it.\n* `user-choice` is the engine's own kind for exactly that (it is what the\n* engine uses for its own config and prompt failures), so the text carries\n* over verbatim as one action rather than being parsed into a command the\n* author never wrote.\n*/\nfunction fixAsNextActions(fix) {\n\treturn fix === void 0 ? [] : [{\n\t\tkind: \"user-choice\",\n\t\tlabel: fix\n\t}];\n}\n/** Translates a composer failure into the engine's error type. Composer-side detail — `meta`, `where`, `docsUrl` — rides along untouched. */\nfunction toEngineError(error) {\n\treturn new CliStructuredError(error.code, error.message, {\n\t\tseverity: error.severity,\n\t\tnextActions: fixAsNextActions(error.fix),\n\t\t...error.why === void 0 ? {} : { why: error.why },\n\t\t...error.where === void 0 ? {} : { where: error.where },\n\t\t...error.meta === void 0 ? {} : { meta: error.meta },\n\t\t...error.docsUrl === void 0 ? {} : { docsUrl: error.docsUrl },\n\t\tcause: error\n\t});\n}\n//#endregion\n//#region src/family/commands/deploy.ts\nconst STEP_LABELS = {\n\tprepare: \"load config and app\",\n\tassemble: \"assemble services\",\n\tconnect: \"connect to project and branch\",\n\tpreflight: \"check environment variables\",\n\tapply: \"plan and apply\",\n\trecord: \"record result\"\n};\nfunction stepLabel(step) {\n\tswitch (step.name) {\n\t\tcase \"assemble-service\": return `assemble ${step.address}`;\n\t\tcase \"apply-resource\": return `${step.status} ${step.resourceId}`;\n\t\tdefault: return STEP_LABELS[step.name];\n\t}\n}\nfunction stepId(step) {\n\tswitch (step.name) {\n\t\tcase \"assemble-service\": return `deploy.assemble.${step.address}`;\n\t\tcase \"apply-resource\": return `deploy.apply.${step.resourceId}`;\n\t\tdefault: return `deploy.${step.name}`;\n\t}\n}\nfunction parentId(step) {\n\tswitch (step.name) {\n\t\tcase \"assemble-service\": return \"deploy.assemble\";\n\t\tcase \"apply-resource\": return \"deploy.apply\";\n\t\tdefault: return;\n\t}\n}\n/** `850ms`, `12.3s`, `9m 35s`. */\nfunction formatDuration(ms) {\n\tif (ms < 1e3) return `${String(Math.round(ms))}ms`;\n\tif (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;\n\tconst seconds = Math.round(ms / 1e3);\n\treturn `${String(Math.floor(seconds / 60))}m ${String(seconds % 60)}s`;\n}\n/** The operation's events as engine events. The engine prints only `step`, so a finished step carries its duration in the text too. */\nfunction toEngineEvent(event) {\n\tif (event.kind === \"message\") return {\n\t\tkind: \"message\",\n\t\tseverity: event.severity,\n\t\ttext: event.text\n\t};\n\tif (event.kind === \"preflight-findings\") {\n\t\tconst text = unsetPlatformVariablesText(event.findings.unset);\n\t\treturn text === void 0 ? void 0 : {\n\t\t\tkind: \"message\",\n\t\t\tseverity: \"warn\",\n\t\t\ttext,\n\t\t\tdata: event.findings\n\t\t};\n\t}\n\tconst id = stepId(event.step);\n\tif (event.kind === \"step-started\") {\n\t\tconst parent = parentId(event.step);\n\t\treturn {\n\t\t\tkind: \"step-started\",\n\t\t\tstep: stepLabel(event.step),\n\t\t\tid,\n\t\t\t...parent === void 0 ? {} : { parentId: parent },\n\t\t\t...event.step.name === \"apply-resource\" ? { data: { resourceType: event.step.resourceType } } : {}\n\t\t};\n\t}\n\treturn {\n\t\tkind: \"step-finished\",\n\t\tstep: `${stepLabel(event.step)} (${formatDuration(event.durationMs)})`,\n\t\tid,\n\t\toutcome: event.outcome,\n\t\tdata: {\n\t\t\t...event.data,\n\t\t\tdurationMs: event.durationMs\n\t\t}\n\t};\n}\nconst createDeployCommand = (operations) => defineCommand({\n\thelp: {\n\t\tsummary: \"Deploy the application whose root node is the entry module's default export.\",\n\t\texamples: [\n\t\t\t\"{bin} deploy\",\n\t\t\t\"{bin} deploy --environment staging\",\n\t\t\t\"{bin} deploy --entry other-module.ts\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tentry: flag.string({\n\t\t\tbrief: \"The file whose default export is the app's root, built with appRoot(...). Overrides `entry` in the `composer` section of prisma.config.ts.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tname: flag.string({\n\t\t\tbrief: \"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).\",\n\t\t\tplaceholder: \"name\"\n\t\t}),\n\t\tenvironment: flag.string({\n\t\t\tbrief: \"The environment to deploy to. Any name other than production is a complete, isolated copy of the app, such as staging or one per pull request.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: DEFAULT_DEPLOY_ENVIRONMENT\n\t\t}),\n\t\treport: flag.string({\n\t\t\tbrief: \"Write the deploy's outcome as JSON to this path — resources, preview URLs, and the failure cause. Also settable as PRISMA_COMPOSER_REPORT_FILE.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tbuildId: flag.string({\n\t\t\tbrief: \"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.\",\n\t\t\tplaceholder: \"id\"\n\t\t})\n\t} },\n\tneeds: {\n\t\tconfig: composerSection,\n\t\tcredentials: true\n\t},\n\thandler: async (args, ctx) => {\n\t\tconst credential = await ctx.activeCredential();\n\t\tconst redaction = new SecretRedaction(process.env);\n\t\tconst result = await withConsoleOnStderr((text) => redaction.redact(text), () => operations.deploy({\n\t\t\tentry: args.flags.entry,\n\t\t\tconfig: ctx.config,\n\t\t\tname: args.flags.name,\n\t\t\tenvironment: args.flags.environment,\n\t\t\tcwd: ctx.cwd,\n\t\t\treportPath: args.flags.report,\n\t\t\treportId: args.flags.buildId,\n\t\t\tonEvent: (event) => {\n\t\t\t\tconst engineEvent = toEngineEvent(event);\n\t\t\t\tif (engineEvent !== void 0) ctx.report(engineEvent);\n\t\t\t},\n\t\t\tsignal: ctx.signal\n\t\t}, {\n\t\t\tcredentials: {\n\t\t\t\tworkspaceId: credential?.workspaceId,\n\t\t\t\tclient: ctx.api\n\t\t\t},\n\t\t\tredaction\n\t\t}));\n\t\tif (!result.ok) {\n\t\t\tif (result.failure.code === \"DEPLOY.INTERRUPTED\" && ctx.signal.aborted) {\n\t\t\t\tconst { code, message, why, fix } = result.failure;\n\t\t\t\tctx.report({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `${message} ${fix ?? \"\"}`.trim(),\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tmessage,\n\t\t\t\t\t\twhy,\n\t\t\t\t\t\tfix\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthrow ctx.signal.reason;\n\t\t\t}\n\t\t\treturn notOk(toEngineError(result.failure));\n\t\t}\n\t\tconst { summary, durationMs } = result.value;\n\t\tconst unsetText = summary === void 0 ? void 0 : unsetPlatformVariablesText(summary.findings.unset);\n\t\tconst target = `to ${args.flags.environment ?? \"production\"} in ${formatDuration(durationMs)}`;\n\t\tfor (const node of summary?.nodes ?? []) for (const entity of node.entities) if (entity.url !== void 0) ctx.report({\n\t\t\tkind: \"endpoint\",\n\t\t\tname: node.address,\n\t\t\turl: entity.url\n\t\t});\n\t\treturn ok(ctx.present({ data: {\n\t\t\tsummary: summary ?? null,\n\t\t\tdurationMs\n\t\t} }, {\n\t\t\thuman: (ui) => [...summary === void 0 ? [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `Deployed ${target}.`\n\t\t\t}] : [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `Deployed ${ui.emphasize(summary.app)} ${target}.`\n\t\t\t}, {\n\t\t\t\tkind: \"table\",\n\t\t\t\tcolumns: [\"Address\", \"Deployed\"],\n\t\t\t\trows: summary.nodes.map((node) => [node.address, node.entities.map((entity) => `${entity.kind} ${entity.id}`).join(\", \")])\n\t\t\t}], ...unsetText === void 0 ? [] : [{\n\t\t\t\tkind: \"drawing\",\n\t\t\t\tlines: unsetText.split(\"\\n\")\n\t\t\t}]],\n\t\t\tstdout: () => (summary?.nodes ?? []).flatMap((node) => node.entities.map((entity) => dataLine([\n\t\t\t\tnode.address,\n\t\t\t\tentity.kind,\n\t\t\t\tentity.id,\n\t\t\t\tentity.url\n\t\t\t]))),\n\t\t\tjson: () => ({\n\t\t\t\tsummary: summary ?? null,\n\t\t\t\tdurationMs\n\t\t\t}),\n\t\t\tnext: () => []\n\t\t}));\n\t}\n});\n//#endregion\n//#region src/family/commands/dev.ts\n/**\n* `dev` — a session command that runs the local dev loop until the\n* user interrupts it.\n*\n* The watch loop, the emulators and the live attachments stay the operation's\n* state. What the handler owns is the boundary: the operation's events become\n* engine events, Ctrl-C reaches a running converge through `ctx.signal`, and\n* the session settles on how it actually ended. Every converge runs in this\n* process, so `console`'s stdout methods write to stderr for the whole\n* session, as they do for `deploy`.\n*\n* Windows is refused inside the operation itself (DEV.PLATFORM_UNSUPPORTED),\n* which is why nothing here reads the platform.\n*\n* `dev` is credential-free: everything it starts runs on this machine.\n*/\nconst STOP_STEP = \"Stopping the app's services — emulators and data stay up\";\nfunction valueReadsChangedText(change) {\n\treturn `The platform variables the app reads changed since dev started: ${valueReadsChangeText(change)}. Restart dev to apply them; rebuilds are paused until then.`;\n}\n/** Resolves when the run is asked to stop. */\nfunction stopRequested(signal) {\n\tif (signal.aborted) return Promise.resolve();\n\treturn new Promise((resolve) => {\n\t\tsignal.addEventListener(\"abort\", () => resolve(), { once: true });\n\t});\n}\nfunction devStepId(step) {\n\treturn step.name === \"converge\" ? step.id : `${step.converge}.${step.resourceId}`;\n}\nfunction devStepLabel(step) {\n\tif (step.name === \"apply-resource\") return `${step.status} ${step.resourceId}`;\n\treturn step.id === \"dev.converge\" ? \"converge\" : step.id.replace(/^dev\\.rebuild\\./, \"rebuild \");\n}\n/** The front door, ordered by address depth (fewest dots first) then lexicographically. */\nfunction frontDoorOrder(endpoints) {\n\treturn [...endpoints].sort((a, b) => {\n\t\tconst depth = a.address.split(\".\").length - b.address.split(\".\").length;\n\t\tif (depth !== 0) return depth;\n\t\treturn a.address < b.address ? -1 : a.address > b.address ? 1 : 0;\n\t});\n}\n/**\n* The operation's events as engine events. The legacy `[dev]` console prefix\n* is gone: these are commentary the engine renders and frames.\n*/\nfunction reportDevEvent(report, cwd) {\n\tlet stopFailed = false;\n\treturn (event) => {\n\t\tswitch (event.kind) {\n\t\t\tcase \"ready\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"status\",\n\t\t\t\t\tsubject: \"dev\",\n\t\t\t\t\tstatus: \"ready\"\n\t\t\t\t});\n\t\t\t\tfor (const endpoint of frontDoorOrder(event.endpoints)) report({\n\t\t\t\t\tkind: \"endpoint\",\n\t\t\t\t\tname: endpoint.address,\n\t\t\t\t\turl: endpoint.url,\n\t\t\t\t\t...endpoint.devServer !== void 0 ? { data: { devServer: endpoint.devServer } } : {}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"dev-server\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\ttext: `${event.address}: runs \\`${event.command}\\` in ${path.relative(cwd, event.cwd) || \".\"}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"dev-server-restarted\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\ttext: `${event.address}: its environment changed; \\`${event.command}\\` restarted`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"dev-server-output\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"info\",\n\t\t\t\t\ttext: `[${event.address}] ${event.line}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"unwatchable\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `${event.address} has no watchable inputs.`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"target-warning\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: event.message\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"rebuild-failed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `Rebuild failed: ${event.message}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"config-changed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `${event.file} changed. Restart dev to apply it; rebuilds are paused until then.`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"values-changed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: \"The values the config or secrets adapters return changed since dev started. Restart dev to apply them; rebuilds are paused until then.\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"value-reads-changed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: valueReadsChangedText(event)\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"watch-error\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `Watch error: ${event.message}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"step-started\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-started\",\n\t\t\t\t\tstep: devStepLabel(event.step),\n\t\t\t\t\tid: devStepId(event.step),\n\t\t\t\t\t...event.step.name === \"apply-resource\" ? {\n\t\t\t\t\t\tparentId: event.step.converge,\n\t\t\t\t\t\tdata: { resourceType: event.step.resourceType }\n\t\t\t\t\t} : {}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"step-finished\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-finished\",\n\t\t\t\t\tstep: devStepLabel(event.step),\n\t\t\t\t\tid: devStepId(event.step),\n\t\t\t\t\toutcome: event.outcome,\n\t\t\t\t\tdata: { durationMs: event.durationMs }\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"message\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: event.severity,\n\t\t\t\t\ttext: event.text\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"converge-failed\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `Converge failed; the running app is untouched and dev is still watching.\\n${event.message}`,\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tcode: event.code,\n\t\t\t\t\t\treasons: event.reasons\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"stopping\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-started\",\n\t\t\t\t\tstep: STOP_STEP,\n\t\t\t\t\tid: \"dev-stop\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"stop-error\":\n\t\t\t\tstopFailed = true;\n\t\t\t\treport({\n\t\t\t\t\tkind: \"message\",\n\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\ttext: `A service refused to stop: ${event.message}`\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\tcase \"stopped\":\n\t\t\t\treport({\n\t\t\t\t\tkind: \"step-finished\",\n\t\t\t\t\tstep: STOP_STEP,\n\t\t\t\t\tid: \"dev-stop\",\n\t\t\t\t\toutcome: stopFailed ? \"warning\" : \"ok\"\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t}\n\t};\n}\n/** A detached session owns nothing to stop, so a Ctrl-C before it was ready stops the app the way `prisma dev stop` does. */\nasync function stopDetachedApp(operations, app, ctx) {\n\tconst stopped = await operations.devStop({\n\t\t...app,\n\t\tconfig: ctx.config,\n\t\tcwd: ctx.cwd\n\t});\n\tif (stopped.ok) return;\n\tctx.report({\n\t\tkind: \"message\",\n\t\tseverity: \"warn\",\n\t\ttext: `The app could not be stopped: ${stopped.failure.message} Run \\`prisma dev stop\\`.`\n\t});\n}\nconst createDevCommand = (operations) => defineSessionCommand({\n\thelp: {\n\t\tsummary: \"Bring up the application whose root node is the entry module's default export, entirely on this machine.\",\n\t\tdescription: \"Runs credential-free and watches the app for changes, reconverging when a service's build output or an app definition file (the entry module, or any app file it loaded) changes. An edit that adds or removes a node, changes which platform variables the app reads, or makes the app's root pass on an input field it did not pass on at start, needs a restart of dev, which says so. 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). Each environment is a complete local copy of the app, with its own services, databases, buckets and ports; the default is dev, and copies of other environments run alongside it. Where each node runs is 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`.\",\n\t\texamples: [\n\t\t\t\"{bin} dev\",\n\t\t\t\"{bin} dev --fresh\",\n\t\t\t\"{bin} dev --environment test --fresh\",\n\t\t\t\"{bin} dev --detach\",\n\t\t\t\"{bin} dev --entry other-module.ts\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tentry: flag.string({\n\t\t\tbrief: \"The file whose default export is the app's root, built with appRoot(...). Overrides `entry` in the `composer` section of prisma.config.ts.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tname: flag.string({\n\t\t\tbrief: \"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).\",\n\t\t\tplaceholder: \"name\"\n\t\t}),\n\t\tenvironment: flag.string({\n\t\t\tbrief: \"The environment to run as. Each environment is a separate local copy of the app, so a second one, such as test, runs alongside dev and leaves its data alone.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: \"dev\"\n\t\t}),\n\t\tfresh: flag.boolean({ brief: \"Delete this app's local services, databases and buckets in the environment, and their data, before starting. Other environments are untouched.\" }),\n\t\tdetach: 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.\" })\n\t} },\n\tneeds: { config: composerSection },\n\thandler: (args, ctx) => {\n\t\tconst redaction = new SecretRedaction(process.env);\n\t\treturn withConsoleOnStderr((text) => redaction.redact(text), async () => {\n\t\t\tconst result = await operations.dev({\n\t\t\t\tentry: args.flags.entry,\n\t\t\t\tconfig: ctx.config,\n\t\t\t\tname: args.flags.name,\n\t\t\t\tenvironment: args.flags.environment,\n\t\t\t\tfresh: args.flags.fresh,\n\t\t\t\tdetach: args.flags.detach,\n\t\t\t\tcwd: ctx.cwd,\n\t\t\t\tonEvent: reportDevEvent(ctx.report, ctx.cwd),\n\t\t\t\tsignal: ctx.signal\n\t\t\t}, { redaction });\n\t\t\tif (!result.ok) {\n\t\t\t\tif (result.failure.code === \"DEV.INTERRUPTED\" && ctx.signal.aborted) {\n\t\t\t\t\tctx.report({\n\t\t\t\t\t\tkind: \"message\",\n\t\t\t\t\t\tseverity: \"warn\",\n\t\t\t\t\t\ttext: `${result.failure.message} ${result.failure.fix ?? \"\"}`.trim()\n\t\t\t\t\t});\n\t\t\t\t\treturn ok(void 0);\n\t\t\t\t}\n\t\t\t\treturn notOk(toEngineError(result.failure));\n\t\t\t}\n\t\t\tif (args.flags.detach) {\n\t\t\t\tif (ctx.signal.aborted) await stopDetachedApp(operations, {\n\t\t\t\t\tentry: args.flags.entry,\n\t\t\t\t\tname: args.flags.name,\n\t\t\t\t\tenvironment: args.flags.environment\n\t\t\t\t}, ctx);\n\t\t\t\treturn ok(void 0);\n\t\t\t}\n\t\t\tawait stopRequested(ctx.signal);\n\t\t\tawait result.value.stop();\n\t\t\treturn ok(void 0);\n\t\t});\n\t}\n});\n//#endregion\n//#region src/family/commands/dev-stop.ts\n/**\n* `dev stop` — stops the app's local copy in one environment, as ending\n* `prisma dev` would: its service processes and database servers. For an\n* app whose `prisma dev` was killed without the chance to stop it.\n*/\nconst createDevStopCommand = (operations) => defineCommand({\n\thelp: {\n\t\tsummary: \"Stop the app's local copy in an environment: its service processes and local database servers. Data and ports are kept for the next `prisma dev`.\",\n\t\tdescription: \"The app is the root module of the entry, or --name, as for `prisma dev`, and the environment is dev unless --environment names another. Other apps and environments keep running. Ending `prisma dev` with Ctrl-C does the same. Run this when `prisma dev` was killed without a chance to stop the app, or before deleting the directory. The emulators keep running; other directories may be using them.\",\n\t\texamples: [\"{bin} dev stop\", \"{bin} dev stop --environment test\"]\n\t},\n\targs: { flags: {\n\t\tentry: flag.string({\n\t\t\tbrief: \"The file whose default export is the app's root, built with appRoot(...). Overrides `entry` in the `composer` section of prisma.config.ts.\",\n\t\t\tplaceholder: \"path\"\n\t\t}),\n\t\tname: flag.string({\n\t\t\tbrief: \"Stop the app run under this name instead of the root module's name.\",\n\t\t\tplaceholder: \"name\"\n\t\t}),\n\t\tenvironment: flag.string({\n\t\t\tbrief: \"The environment whose local copy to stop.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: \"dev\"\n\t\t})\n\t} },\n\tneeds: { config: composerSection },\n\thandler: async (args, ctx) => {\n\t\tconst result = await operations.devStop({\n\t\t\tconfig: ctx.config,\n\t\t\tentry: args.flags.entry,\n\t\t\tname: args.flags.name,\n\t\t\tenvironment: args.flags.environment,\n\t\t\tcwd: ctx.cwd\n\t\t});\n\t\tif (!result.ok) return notOk(toEngineError(result.failure));\n\t\tconst { app, environment, stopped } = result.value;\n\t\treturn ok(ctx.present({ data: result.value }, {\n\t\t\thuman: (ui) => stopped.length === 0 ? [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"info\",\n\t\t\t\ttext: `Nothing of ${ui.emphasize(app)} was running in the environment ${environment}.`\n\t\t\t}] : [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `Stopped ${ui.emphasize(app)} in the environment ${environment}. Its data and ports are kept for the next \\`prisma dev\\`.`\n\t\t\t}, {\n\t\t\t\tkind: \"table\",\n\t\t\t\tcolumns: [\"Address\", \"Kind\"],\n\t\t\t\trows: stopped.map(({ address, kind }) => [address, kind])\n\t\t\t}],\n\t\t\tstdout: () => stopped.map(({ address, kind }) => dataLine([address, kind])),\n\t\t\tjson: () => result.value,\n\t\t\tnext: () => []\n\t\t}));\n\t}\n});\n//#endregion\n//#region src/family/commands/dev-url.ts\n/**\n* `dev url <address>` — where a node that `prisma dev` runs from this\n* directory answers locally, in the environment named. A data command: the\n* URL is its stdout line, so `$(prisma dev url shop.gateway)` is the URL alone.\n*/\nconst createDevUrlCommand = (operations) => defineCommand({\n\thelp: {\n\t\tsummary: \"Print the local URL of a node (a service, database or bucket in your app) that `prisma dev` runs from this directory: a service's HTTP URL, a database's connection string, or a bucket's S3 address.\",\n\t\tdescription: \"The app is the first name of the address, and the environment is dev unless --environment names another. Reads what `prisma dev` recorded for that app and environment in this directory and starts nothing, so run it while `prisma dev` is running; a node that is not running is an error. The URL alone goes to stdout, so a script can use it directly: curl \\\"$(prisma dev url shop.gateway)\\\". With --json, stdout carries the full result instead.\",\n\t\texamples: [\n\t\t\t\"{bin} dev url shop.gateway\",\n\t\t\t\"{bin} dev url shop.gateway --environment test\",\n\t\t\t\"{bin} dev url shop.catalog.database --json\"\n\t\t]\n\t},\n\targs: {\n\t\tpositionals: { address: positional.string({\n\t\t\tbrief: \"The node's address: the app name, then the names down to the node, with dots between them, such as shop.catalog.database.\",\n\t\t\tplaceholder: \"address\"\n\t\t}) },\n\t\tflags: { environment: flag.string({\n\t\t\tbrief: \"The environment whose local copy to read.\",\n\t\t\tplaceholder: \"name\",\n\t\t\tdefault: \"dev\"\n\t\t}) }\n\t},\n\tneeds: { config: composerSection },\n\thandler: async (args, ctx) => {\n\t\tconst result = await operations.devUrl({\n\t\t\tconfig: ctx.config,\n\t\t\taddress: args.positionals.address,\n\t\t\tenvironment: args.flags.environment,\n\t\t\tcwd: ctx.cwd\n\t\t});\n\t\tif (!result.ok) return notOk(toEngineError(result.failure));\n\t\tconst node = result.value;\n\t\treturn ok(ctx.present({ data: node }, {\n\t\t\thuman: (ui) => [{\n\t\t\t\tkind: \"summary\",\n\t\t\t\tstatus: \"ok\",\n\t\t\t\ttext: `The ${node.kind} ${ui.emphasize(node.address)} is ${node.state} at ${node.url}`\n\t\t\t}],\n\t\t\tstdout: () => [dataLine([node.url])],\n\t\t\tjson: () => node,\n\t\t\tnext: () => []\n\t\t}));\n\t}\n});\n//#endregion\n//#region src/family/family.ts\n/**\n* Composer's `CommandFamily`: the unit the `prisma` bin mounts.\n*\n* This module and everything it reaches statically must stay free of alchemy\n* and of effect VALUE imports: the `prisma` bin imports the family directly,\n* so anything in this static graph loads on `prisma --version`. The mechanism\n* that holds it is the existing lazy boundary inside the operation modules —\n* `operations/deploy.ts` and `dev.ts` each `await import()` their executor,\n* and it is the executors that reach the provider tree. Importing the operations here is therefore free; importing an\n* executor, or flattening one of those dynamic imports, is not.\n* scripts/check-family-static-graph.mjs enforces this against BUILT output,\n* where type-only imports have already been erased.\n*\n* The commands close over the operations they are given, so a host can\n* mount this family against the test double and exercise real grammar, real\n* arg validation and real handlers with no alchemy behind them.\n*\n* The family ships `deploy`, `dev`, `dev url` and `dev stop`, keyed by the\n* path they are meant to mount at; the host decides where each one mounts.\n* A host may add commands of its own through `commands` — the published\n* family adds `deploy list` and `emulator list`, which need Prisma Cloud\n* code. `destroy` and `log` are programmatic operations in\n* `@prisma/composer/control`, not commands.\n*/\nconst realOperations = {\n\tdeploy: deployWithDeps,\n\tdev: devWithDeps,\n\tdevUrl,\n\tdevStop\n};\n/** The `prisma` CLI's error reference; the engine appends `/<CODE>` to it for every error envelope. */\nconst CLI_DOCS_BASE = \"https://www.prisma.io/docs/cli/error-reference/\";\n/** Retires `--stage` on `command` in favour of `--environment`, so typing it fails with `CLI.COMMAND_MOVED`. */\nfunction retiredStageFlagRedirect(command) {\n\treturn {\n\t\tfrom: command,\n\t\tflag: \"stage\",\n\t\treplacement: `${command} --environment <name>`,\n\t\treason: \"A place the app runs is now called an environment.\"\n\t};\n}\nfunction withPrisma7Cli(reason, invocation) {\n\treturn `${reason} To keep using Prisma 7, install its CLI with \\`npm install --save-dev @prisma/prisma7@7\\` and run \\`prisma7 ${invocation}\\`.`;\n}\nfunction kebabCase(flag) {\n\treturn flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n}\nfunction v7Command(from, entry) {\n\tconst { prisma7 = from, ...rest } = entry;\n\treturn {\n\t\tfrom,\n\t\tcode: \"CLI.V7_COMMAND\",\n\t\tsummary: `\\`{bin} ${from}\\` is a Prisma 7 command and is not available in Prisma 8`,\n\t\t...rest,\n\t\treason: withPrisma7Cli(entry.reason, prisma7)\n\t};\n}\nfunction v7Flag(command, flag, entry) {\n\tconst { prisma7 = `${command} --${kebabCase(flag)}`, ...rest } = entry;\n\treturn {\n\t\tfrom: command,\n\t\tflag,\n\t\tcode: \"CLI.V7_FLAG\",\n\t\tsummary: `\\`--${kebabCase(flag)}\\` on \\`{bin} ${command}\\` is a Prisma 7 flag and is not available in Prisma 8`,\n\t\t...rest,\n\t\treason: withPrisma7Cli(entry.reason, prisma7)\n\t};\n}\nconst ENVIRONMENT = \"environment (a separate local copy of the app: the one named dev unless `--environment` names another)\";\nconst DEV_PORTS_REASON = `\\`dev\\` takes no port options. Each ${ENVIRONMENT} gets its own ports for its services, databases and buckets and keeps them between runs. While \\`dev\\` runs, \\`dev url <address>\\` prints where one service, database or bucket answers; its address is its path from the app name, with dots between names, such as \\`shop.catalog.database\\`.`;\nconst V7_REDIRECTS = [\n\tv7Command(\"dev ls\", {\n\t\treplacement: \"{bin} emulator list\",\n\t\thelp: \"emulator list\",\n\t\treason: \"`emulator list` lists the local emulators on this machine, the programs `dev` starts to run the app's services, databases and buckets, with every instance each one holds.\"\n\t}),\n\tv7Command(\"dev rm\", {\n\t\tprisma7: \"dev rm <name>\",\n\t\treplacement: \"{bin} dev --fresh\",\n\t\thelp: \"dev\",\n\t\treason: `\\`dev --fresh\\` deletes this app's local services, databases and buckets, and their data, in one ${ENVIRONMENT}, then starts the app again. \\`dev stop\\` only stops the app's service processes and local database servers, and keeps their data.`\n\t}),\n\tv7Command(\"dev start\", {\n\t\tprisma7: \"dev start <name>\",\n\t\treplacement: \"{bin} dev --detach\",\n\t\thelp: \"dev\",\n\t\treason: \"`dev --detach` runs the app locally in the background: it returns once every service answers and leaves the app running, without watching for changes, until `dev stop`.\"\n\t}),\n\t...[\n\t\t\"port\",\n\t\t\"dbPort\",\n\t\t\"shadowDbPort\"\n\t].map((flag) => v7Flag(\"dev\", flag, {\n\t\tprisma7: `dev --${kebabCase(flag)} <port>`,\n\t\thelp: \"dev\",\n\t\treason: DEV_PORTS_REASON\n\t})),\n\tv7Flag(\"dev\", \"debug\", {\n\t\thelp: \"dev\",\n\t\treason: \"`dev` has no debug output option. It shows the output of each service that runs a dev server, such as `next dev`, prefixed with the service's address.\"\n\t}),\n\tv7Flag(\"dev stop\", \"debug\", {\n\t\tprisma7: \"dev stop <name> --debug\",\n\t\thelp: \"dev stop\",\n\t\treason: \"`dev stop` has no debug output option.\"\n\t})\n];\nfunction createComposerFamily(options = {}) {\n\tconst operations = options.operations ?? realOperations;\n\treturn defineCommandFamily({\n\t\tconfigSection: composerSection,\n\t\tcommands: {\n\t\t\tdeploy: createDeployCommand(operations),\n\t\t\tdev: createDevCommand(operations),\n\t\t\t\"dev url\": createDevUrlCommand(operations),\n\t\t\t\"dev stop\": createDevStopCommand(operations),\n\t\t\t...options.commands\n\t\t},\n\t\tdocsBaseUrl: CLI_DOCS_BASE,\n\t\tredirects: [\n\t\t\tretiredStageFlagRedirect(\"deploy\"),\n\t\t\t...V7_REDIRECTS,\n\t\t\t...options.redirects ?? []\n\t\t]\n\t});\n}\n//#endregion\nexport { DEFAULT_DEPLOY_ENVIRONMENT, composerSection, createComposerFamily, dataLine, realOperations, toEngineError };\n\n//# sourceMappingURL=family.mjs.map","/**\n * `deploy list` — every node an app has deployed in an environment, with the\n * platform row each one deployed to. It reads the environment's application\n * topology and the Branch's rows on Prisma Cloud, so the command is\n * assembled into the family here, where both domains may be imported.\n */\n\nimport {\n composerSection,\n DEFAULT_DEPLOY_ENVIRONMENT,\n dataLine,\n toEngineError,\n} from '@internal/cli/family';\nimport type { CliStructuredError as ComposerError } from '@internal/foundation/errors';\nimport type { Result } from '@internal/foundation/result';\nimport { defineCommand, flag } from '@prisma/cli-engine';\nimport { notOk, ok } from '@prisma/cli-engine/protocol';\nimport type { DeployedNode } from './deployed-nodes.ts';\nimport type { ListDeployedInput } from './list-deployed.ts';\n\nexport type ListDeployed = (\n input: ListDeployedInput,\n) => Promise<Result<readonly DeployedNode[], ComposerError>>;\n\n/** Loaded on first use, so nothing of the Management API reads loads with the family. */\nexport const listDeployed: ListDeployed = async (input) =>\n (await import('./list-deployed.ts')).listDeployed(input);\n\nexport const createDeployListCommand = (list: ListDeployed) =>\n defineCommand({\n help: {\n summary:\n 'List every node the app has deployed in an environment, with its platform ID and URL.',\n description:\n 'Reads the application topology the last deploy recorded for the environment, and finds ' +\n 'each node’s service, database or bucket on Prisma Cloud. The root node is the ' +\n 'Project. A node with nothing on the platform, such as a module, has no platform ID.',\n examples: [\n '{bin} deploy list',\n '{bin} deploy list --environment staging',\n '{bin} deploy list --json',\n ],\n },\n args: {\n flags: {\n entry: flag.string({\n brief:\n \"The file whose default export is the app's root, built with appRoot(...). \" +\n 'Overrides `entry` in the `composer` section of prisma.config.ts.',\n placeholder: 'path',\n }),\n name: flag.string({\n brief:\n 'List the app deployed under this name instead of the name its root module ' +\n \"declares (default: the root module's name).\",\n placeholder: 'name',\n }),\n environment: flag.string({\n brief: 'The environment to list.',\n placeholder: 'name',\n default: DEFAULT_DEPLOY_ENVIRONMENT,\n }),\n },\n },\n needs: { config: composerSection, credentials: true },\n handler: async (args, ctx) => {\n const credential = await ctx.activeCredential();\n const result = await list({\n config: ctx.config,\n entry: args.flags.entry,\n name: args.flags.name,\n environment: args.flags.environment ?? DEFAULT_DEPLOY_ENVIRONMENT,\n cwd: ctx.cwd,\n workspaceId: credential?.workspaceId,\n client: ctx.api,\n });\n if (!result.ok) return notOk(toEngineError(result.failure));\n const nodes = result.value;\n return ok(\n ctx.present(\n { data: nodes },\n {\n human: () => [\n {\n kind: 'table',\n columns: ['Address', 'Kind', 'Platform ID', 'URL'],\n rows: nodes.map((node) => [\n node.address,\n node.kind,\n node.platformId ?? '',\n node.url ?? '',\n ]),\n },\n ],\n stdout: () =>\n nodes.map((node) => dataLine([node.address, node.kind, node.platformId, node.url])),\n json: () => nodes,\n next: () => [],\n },\n ),\n );\n },\n });\n","/**\n * `emulator list` — every local emulator on this machine and every\n * instance it holds. It needs no project and no config. The listing comes\n * from the Prisma Cloud domain, so the command is assembled into the\n * family here, where both domains may be imported.\n */\n\nimport { dataLine, toEngineError } from '@internal/cli/family';\nimport type { EmulatorList, EmulatorListing } from '@internal/dev-emulators';\nimport type { CliStructuredError as ComposerError } from '@internal/foundation/errors';\nimport type { Result } from '@internal/foundation/result';\nimport { defineCommand } from '@prisma/cli-engine';\nimport { notOk, ok } from '@prisma/cli-engine/protocol';\n\nexport type ListEmulators = () => Promise<Result<EmulatorList, ComposerError>>;\n\n/** Loaded on first use, so nothing of the emulators' clients loads with the family. */\nexport const listEmulators: ListEmulators = async () =>\n (await import('@internal/dev-emulators')).listEmulators();\n\nconst EMULATOR_NAMES = {\n service: 'Service emulator',\n database: 'Database emulator',\n bucket: 'Bucket emulator',\n} as const;\n\n/** The node, directory and environment that started an instance, when Composer's labels say. */\nfunction startedBy(labels: Readonly<Record<string, string>>): string | undefined {\n const address = labels['composer.address'];\n const directory = labels['composer.directory'];\n const environment = labels['composer.environment'];\n if (address === undefined) return undefined;\n const where = directory === undefined ? address : `${address} in ${directory}`;\n return environment === undefined ? where : `${where} (${environment})`;\n}\n\nfunction labelOf(emulator: EmulatorListing, dim: (text: string) => string): string {\n const name = EMULATOR_NAMES[emulator.kind];\n if (!emulator.running || emulator.url === null) return `${name} ${dim('(not running)')}`;\n if (emulator.error !== null) {\n return `${name} at ${emulator.url}: could not list its instances (${emulator.error.code}: ${emulator.error.message})`;\n }\n return `${name} at ${emulator.url}`;\n}\n\nfunction statusOf(emulator: EmulatorListing): 'ok' | 'info' | 'error' {\n if (emulator.error !== null) return 'error';\n return emulator.running ? 'ok' : 'info';\n}\n\nexport const createEmulatorListCommand = (list: ListEmulators) =>\n defineCommand({\n help: {\n summary:\n 'List the local emulators on this machine — the programs `prisma dev` starts to run ' +\n 'services, databases and S3-compatible buckets without Prisma Cloud — with every ' +\n 'instance each one holds.',\n description:\n 'Needs no project: it shows every directory’s instances. An emulator that is not ' +\n 'running is listed with no instances, and one that runs but cannot be listed is ' +\n 'shown with the error. Each instance’s labels say which directory, ' +\n 'app, node and environment started it. A stopped instance keeps its port and data ' +\n 'until it is deleted.',\n examples: ['{bin} emulator list', '{bin} emulator list --json'],\n },\n args: {},\n handler: async (_args, ctx) => {\n const result = await list();\n if (!result.ok) return notOk(toEngineError(result.failure));\n const { emulators } = result.value;\n return ok(\n ctx.present(\n { data: result.value },\n {\n human: (ui) => [\n {\n kind: 'tree',\n roots: emulators.map((emulator) => ({\n label: labelOf(emulator, ui.dim),\n status: statusOf(emulator),\n children: emulator.instances.map((instance) => {\n const by = startedBy(instance.labels);\n return {\n label: [\n instance.id,\n instance.url,\n instance.state,\n ...(by ? [ui.dim(by)] : []),\n ].join(' '),\n };\n }),\n })),\n },\n ],\n stdout: () =>\n emulators.flatMap((emulator) =>\n emulator.instances.map((instance) =>\n dataLine([\n emulator.kind,\n instance.id,\n instance.url,\n instance.state,\n instance.labels['composer.address'],\n instance.labels['composer.directory'],\n instance.labels['composer.environment'],\n ]),\n ),\n ),\n json: () => result.value,\n next: () => [],\n },\n ),\n );\n },\n });\n","/**\n * Public surface (the `./family` subpath): composer's engine `CommandFamily`,\n * for hosts that mount composer's commands into their own CLI — the `prisma`\n * bin does exactly this.\n *\n * Kept apart from `@prisma/composer`'s `./control` on purpose. `./control` is\n * the programmatic deploy pipeline; this is the command surface: grammar, help\n * and arg validation belong to the engine, and the handlers behind them are\n * the same operations `./control` exposes.\n *\n * Its static graph is alchemy-free and effect-free, so importing it costs a\n * host nothing until a composer command actually runs.\n */\n\nimport {\n createComposerFamily as createFrameworkFamily,\n type CreateComposerFamilyOptions as FrameworkFamilyOptions,\n} from '@internal/cli/family';\nimport type { CommandFamily } from '@prisma/cli-engine';\nimport { createDeployListCommand, type ListDeployed, listDeployed } from '../family/deploy-list.ts';\nimport {\n createEmulatorListCommand,\n type ListEmulators,\n listEmulators,\n} from '../family/emulator-list.ts';\n\nexport * from '@internal/cli/family';\nexport type { ListDeployed } from '../family/deploy-list.ts';\nexport type { DeployedNode } from '../family/deployed-nodes.ts';\nexport type { ListEmulators } from '../family/emulator-list.ts';\nexport type { ListDeployedInput } from '../family/list-deployed.ts';\n\nexport interface CreateComposerFamilyOptions extends FrameworkFamilyOptions {\n /** Defaults to the real listing of this machine's emulators. */\n readonly listEmulators?: ListEmulators | undefined;\n /** Defaults to the real read of what the app has deployed on Prisma Cloud. */\n readonly listDeployed?: ListDeployed | undefined;\n}\n\n/** Composer's command family: `deploy`, `deploy list`, `dev`, `dev url`, `dev stop` and `emulator list`, keyed by the path each is meant to mount at. */\nexport function createComposerFamily(options: CreateComposerFamilyOptions = {}): CommandFamily {\n return createFrameworkFamily({\n ...options,\n commands: {\n 'deploy list': createDeployListCommand(options.listDeployed ?? listDeployed),\n 'emulator list': createEmulatorListCommand(options.listEmulators ?? listEmulators),\n ...options.commands,\n },\n });\n}\n"],"mappings":";;;;;;;;;;AAGA,SAAS,2BAA2B,QAAQ;CAC3C,QAAQ,OAAO,MAAf;EACC,KAAK,SAAS,OAAO,oBAAoB,OAAO,QAAQ,YAAY,OAAO,SAAS,KAAK,WAAW,OAAO,KAAK;EAChH,KAAK,UAAU,OAAO,sBAAsB,OAAO,KAAK;CACzD;AACD;;;ACEA,MAAM,UAAU;CACf,MAAM;CACN,KAAK;CACL,MAAM;CACN,MAAM;AACP;AACA,SAAS,UAAU,OAAO;CACzB,IAAI,UAAU,QAAQ,UAAU,KAAK,GAAG,OAAO;CAC/C,OAAO,OAAO,KAAK,CAAC,CAAC,QAAQ,gBAAgB,cAAc,QAAQ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;AACF,CAAC;;;;;;;;;;;;;;;;;AC1EH,SAAgB,qBAAqB,UAAuC,CAAC,GAAkB;CAC7F,OAAOC,uBAAsB;EAC3B,GAAG;EACH,UAAU;GACR,eAAe,wBAAwB,QAAQ,gBAAgB,YAAY;GAC3E,iBAAiB,0BAA0B,QAAQ,iBAAiB,aAAa;GACjF,GAAG,QAAQ;EACb;CACF,CAAC;AACH"}
|
|
@@ -10,7 +10,7 @@ import "@prisma/management-api-sdk";
|
|
|
10
10
|
import "effect/Redacted";
|
|
11
11
|
Context.Service()("PrismaComposerCredentials");
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/container-
|
|
13
|
+
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/container-D60F0N_y.mjs
|
|
14
14
|
/**
|
|
15
15
|
* The typed Prisma Management API client, built once from the resolved
|
|
16
16
|
* credentials. Providers yield this in their outer Effect and call it inside
|
|
@@ -378,4 +378,4 @@ async function listDeployed(input) {
|
|
|
378
378
|
//#endregion
|
|
379
379
|
export { listDeployed };
|
|
380
380
|
|
|
381
|
-
//# sourceMappingURL=list-deployed-
|
|
381
|
+
//# sourceMappingURL=list-deployed-CK0XroII.mjs.map
|