@prisma/composer-cli 0.36.0-dev.1 → 0.36.0-dev.3
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/{dev-current-Brb4qugP-BOI9FJdz.mjs → dev-current-BNoPkDRU-DGd_7FDS.mjs} +5 -5
- package/dist/{dev-current-Brb4qugP-BOI9FJdz.mjs.map → dev-current-BNoPkDRU-DGd_7FDS.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-CNt-xpE7-CMQCNQpY.mjs → execute-deploy-destroy-BIqwt1RF-D3F6yxLV.mjs} +4 -4
- package/dist/{execute-deploy-destroy-CNt-xpE7-CMQCNQpY.mjs.map → execute-deploy-destroy-BIqwt1RF-D3F6yxLV.mjs.map} +1 -1
- package/dist/{execute-dev-BUk-XWBJ-DaB9ma8z.mjs → execute-dev-DIEyloWn-CjtRM3-x.mjs} +9 -5
- package/dist/{execute-dev-BUk-XWBJ-DaB9ma8z.mjs.map → execute-dev-DIEyloWn-CjtRM3-x.mjs.map} +1 -1
- package/dist/{execute-dev-current-BdEqeKAB-xCBBITAB.mjs → execute-dev-current-CeKI-tiC-fd62IW2Y.mjs} +4 -4
- package/dist/{execute-dev-current-BdEqeKAB-xCBBITAB.mjs.map → execute-dev-current-CeKI-tiC-fd62IW2Y.mjs.map} +1 -1
- package/dist/{family-B2JZ8O7U-P_rOUr4w.d.mts → family-Dy3ZQOxG-CcELNRXg.d.mts} +91 -31
- package/dist/family-Dy3ZQOxG-CcELNRXg.d.mts.map +1 -0
- package/dist/family.d.mts +1 -1
- package/dist/family.mjs +9 -2
- package/dist/family.mjs.map +1 -1
- package/dist/{list-deployed-GhPuf0RC.mjs → list-deployed-2Xs64YAh.mjs} +3 -3
- package/dist/{list-deployed-GhPuf0RC.mjs.map → list-deployed-2Xs64YAh.mjs.map} +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/{validate-environment-CEhUSEg2-ExABehBM.mjs → validate-environment-CEhUSEg2-BohWFcgr.mjs} +272 -19
- package/dist/validate-environment-CEhUSEg2-BohWFcgr.mjs.map +1 -0
- package/package.json +7 -7
- package/dist/family-B2JZ8O7U-P_rOUr4w.d.mts.map +0 -1
- package/dist/validate-environment-CEhUSEg2-ExABehBM.mjs.map +0 -1
package/dist/{execute-dev-current-BdEqeKAB-xCBBITAB.mjs → execute-dev-current-CeKI-tiC-fd62IW2Y.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as notOk, c as CliStructuredError, l as InternalError, o as ok } from "./run-alchemy-Dl_MWw4g-DaWV9tkH.mjs";
|
|
2
|
-
import { c as toStructured } from "./dev-current-
|
|
2
|
+
import { c as toStructured } from "./dev-current-BNoPkDRU-DGd_7FDS.mjs";
|
|
3
3
|
import { n as devEnvironmentDir } from "./app-config-CErnR6NK-6QjHJ7q5.mjs";
|
|
4
|
-
import { i as validateEnvironmentName, n as resolveAppIdentity, t as checkConfigSource } from "./validate-environment-CEhUSEg2-
|
|
4
|
+
import { i as validateEnvironmentName, n as resolveAppIdentity, t as checkConfigSource } from "./validate-environment-CEhUSEg2-BohWFcgr.mjs";
|
|
5
5
|
import { n as requireDevEnvironmentName, r as resolveLocalTargets } from "./dev-environment-name-6eEr5PW8-lIZmJjfr.mjs";
|
|
6
6
|
import * as path from "node:path";
|
|
7
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-
|
|
7
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-current-CeKI-tiC.mjs
|
|
8
8
|
/**
|
|
9
9
|
* The `devUrl` and `devStop` executor: config → each extension's local
|
|
10
10
|
* target → the app's local copy in the environment, read from that
|
|
@@ -161,4 +161,4 @@ async function executeDevStop(input, cwd) {
|
|
|
161
161
|
//#endregion
|
|
162
162
|
export { executeDevStop, executeDevUrl };
|
|
163
163
|
|
|
164
|
-
//# sourceMappingURL=execute-dev-current-
|
|
164
|
+
//# sourceMappingURL=execute-dev-current-CeKI-tiC-fd62IW2Y.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-dev-current-BdEqeKAB-xCBBITAB.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-dev-current-BdEqeKAB.mjs"],"sourcesContent":["import { n as checkConfigSource, r as resolveAppIdentity, t as validateEnvironmentName } from \"./validate-environment-CEhUSEg2.mjs\";\nimport { d as toStructured } from \"./dev-current-Brb4qugP.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-BdEqeKAB.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;EACj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;EACL,KAAK;EACL;CACD,CAAC;AACF;AACA,eAAe,cAAc,OAAO,KAAK;CACxC,IAAI,QAAQ,aAAa,SAAS,OAAO,MAAM,oBAAoB,CAAC;CACpE,IAAI;EACH,OAAO,GAAG,MAAM,OAAO,OAAO,GAAG,CAAC;CACnC,SAAS,OAAO;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-CeKI-tiC-fd62IW2Y.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/execute-dev-current-CeKI-tiC.mjs"],"sourcesContent":["import { n as checkConfigSource, r as resolveAppIdentity, t as validateEnvironmentName } from \"./validate-environment-CEhUSEg2.mjs\";\nimport { d as toStructured } from \"./dev-current-BNoPkDRU.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-CeKI-tiC.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,8BAA8B,IAAI,sBAAsB,YAAY,MAAM,IAAI,IAAI;EAC7J,KAAK,uEAAuE,OAAO,kDAAkD,YAAY,QAAQ,IAAI;EAC7J,KAAK,OAAO,OAAO,WAAW,EAAE,OAAO,IAAI;EAC3C,MAAM;GACL;GACA;GACA;EACD;CACD,CAAC;CACD,OAAO;AACR;;AAEA,SAAS,aAAa,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;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"}
|
|
@@ -81,6 +81,23 @@ declare class CliStructuredError extends Error implements StructuredError {
|
|
|
81
81
|
static is(error: unknown): error is CliStructuredError;
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
|
+
//#region ../../0-framework/0-foundation/foundation/dist/secret-CHOw4LBU.d.mts
|
|
85
|
+
//#region src/secret.d.ts
|
|
86
|
+
declare const SECRET_BOX: unique symbol;
|
|
87
|
+
declare class SecretBox<T> {
|
|
88
|
+
#private;
|
|
89
|
+
readonly [SECRET_BOX] = true;
|
|
90
|
+
constructor(value: T);
|
|
91
|
+
/** The sole explicit door to the wrapped value. */
|
|
92
|
+
expose(): T;
|
|
93
|
+
toString(): string;
|
|
94
|
+
toJSON(): string;
|
|
95
|
+
valueOf(): string;
|
|
96
|
+
[Symbol.toPrimitive](): string;
|
|
97
|
+
}
|
|
98
|
+
/** The common case: a secret string. */
|
|
99
|
+
type SecretString = SecretBox<string>;
|
|
100
|
+
//#endregion
|
|
84
101
|
//#region ../../../node_modules/@standard-schema/spec/dist/index.d.ts
|
|
85
102
|
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
86
103
|
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
@@ -158,7 +175,7 @@ declare namespace StandardSchemaV1 {
|
|
|
158
175
|
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
159
176
|
}
|
|
160
177
|
//#endregion
|
|
161
|
-
//#region ../../0-framework/1-core/core/dist/graph-types-
|
|
178
|
+
//#region ../../0-framework/1-core/core/dist/graph-types-Bn3tSF4x.d.mts
|
|
162
179
|
//#region src/contract.d.ts
|
|
163
180
|
/**
|
|
164
181
|
* A Contract is the declared interface of a service-to-service dependency: a
|
|
@@ -239,18 +256,24 @@ type ValueOrigin<T> = {
|
|
|
239
256
|
readonly kind: 'computed';
|
|
240
257
|
readonly dependencies: readonly Value<unknown>[];
|
|
241
258
|
readonly compute: (values: readonly unknown[]) => T;
|
|
259
|
+
} | {
|
|
260
|
+
readonly kind: 'input';
|
|
261
|
+
/** The address of the module whose input this field is. */
|
|
262
|
+
readonly module: string;
|
|
263
|
+
/** The key path inside that module's input; `[]` is the whole input. */
|
|
264
|
+
readonly path: readonly string[];
|
|
242
265
|
};
|
|
243
266
|
/**
|
|
244
267
|
* An opaque stand-in a module body can pass wherever a `T` is accepted; its
|
|
245
268
|
* real value is known by the end of Load (ADR-0062). `environment.name` is one;
|
|
246
|
-
* `resolve()` returns one computed from others.
|
|
269
|
+
* each field of a module's `input` is one; `resolve()` returns one computed from others.
|
|
247
270
|
*/
|
|
248
271
|
interface Value<T> {
|
|
249
272
|
readonly [VALUE]: true;
|
|
250
273
|
readonly [VALUE_TYPE]?: T;
|
|
251
274
|
readonly [VALUE_ORIGIN]: ValueOrigin<T>;
|
|
252
275
|
}
|
|
253
|
-
/** Plain data: what a `resolve()` function may return
|
|
276
|
+
/** Plain data: what a `resolve()` function may return. */
|
|
254
277
|
type PlainData = string | number | boolean | null | readonly PlainData[] | {
|
|
255
278
|
readonly [key: string]: PlainData;
|
|
256
279
|
};
|
|
@@ -260,6 +283,21 @@ interface EnvironmentFacts {
|
|
|
260
283
|
readonly name: Value<string>;
|
|
261
284
|
}
|
|
262
285
|
//#endregion
|
|
286
|
+
//#region src/module-input.d.ts
|
|
287
|
+
type PlainObject = {
|
|
288
|
+
readonly [key: string]: unknown;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* What a module body holds for an input field whose real value has type `T`:
|
|
292
|
+
* a value, plus one `ModuleInputField` per key when `T` is a plain object.
|
|
293
|
+
*/
|
|
294
|
+
type ModuleInputField<T> = Value<T> & FieldsOf<T>;
|
|
295
|
+
type FieldsOf<T> = [NonNullable<T>] extends [never] ? unknown : [NonNullable<T>] extends [readonly unknown[]] ? unknown : [NonNullable<T>] extends [PlainObject] ? Fields<NonNullable<T>, undefined extends T ? undefined : never> : unknown;
|
|
296
|
+
type Fields<O, Absent> = { readonly [K in keyof O & string]-?: ModuleInputField<FieldType<O, K> | Absent>; };
|
|
297
|
+
type FieldType<O, K extends keyof O> = Record<never, never> extends Pick<O, K> ? O[K] | undefined : O[K];
|
|
298
|
+
/** The `input` a module body receives for its input schema `S`: one value per field, typed from the schema's output (ADR-0061). */
|
|
299
|
+
type ModuleInput<S extends StandardSchemaV1> = ModuleInputField<StandardSchemaV1.InferOutput<S>>;
|
|
300
|
+
//#endregion
|
|
263
301
|
//#region src/node.d.ts
|
|
264
302
|
declare const NODE: unique symbol;
|
|
265
303
|
declare const SECRET_NEED: unique symbol;
|
|
@@ -307,6 +345,10 @@ type ParamNeeds = Record<string, ParamNeed>;
|
|
|
307
345
|
type ParamBindings<P extends Params> = { readonly [K in keyof P]?: StandardSchemaV1.InferOutput<P[K]['schema']> | ParamSource | (StandardSchemaV1.InferOutput<P[K]['schema']> extends PlainData ? Value<StandardSchemaV1.InferOutput<P[K]['schema']>> : never); };
|
|
308
346
|
/** What `provision(moduleChild, { params })` accepts per declared `ParamNeed`: a `ParamSource` only — a need carries no schema to validate a literal against. */
|
|
309
347
|
type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: ParamSource; };
|
|
348
|
+
/** What a value in a service's input binding may stand for: plain data, a `SecretString` at any depth (a forwarded secret field), and `undefined` (an optional field the binding left out). */
|
|
349
|
+
type InputBindingData = string | number | boolean | null | undefined | SecretString | readonly InputBindingData[] | {
|
|
350
|
+
readonly [key: string]: InputBindingData;
|
|
351
|
+
};
|
|
310
352
|
/**
|
|
311
353
|
* What `provision(service, { input })` accepts (ADR-0042): a plain object
|
|
312
354
|
* mirroring the service's input schema, whose leaves are literals,
|
|
@@ -315,9 +357,20 @@ type ParamNeedBindings<PN extends ParamNeeds> = { readonly [K in keyof PN]?: Par
|
|
|
315
357
|
* Schema, so the binding's exact shape cannot be derived from it — deploy-time
|
|
316
358
|
* validation of the resolved binding is the real check.
|
|
317
359
|
*/
|
|
318
|
-
type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<
|
|
360
|
+
type InputBinding = string | number | boolean | null | ParamSource | SecretSource | Value<InputBindingData> | readonly InputBinding[] | {
|
|
319
361
|
readonly [key: string]: InputBinding;
|
|
320
362
|
};
|
|
363
|
+
/**
|
|
364
|
+
* What `provision(module, { input })` accepts where the module's input schema
|
|
365
|
+
* expects `T` (its Standard Schema input type): the data, a value standing for
|
|
366
|
+
* it, or, for a `SecretString` field, a secret source. An optional key also
|
|
367
|
+
* takes a value that may stand for `undefined`.
|
|
368
|
+
*/
|
|
369
|
+
type ModuleInputBinding<T> = Value<T> | (T extends SecretString ? SecretSource : T extends readonly (infer E)[] ? T | readonly ModuleInputBinding<E>[] : T extends {
|
|
370
|
+
readonly [key: string]: unknown;
|
|
371
|
+
} ? { readonly [K in keyof T]: ModuleInputBinding<T[K]> | (Record<never, never> extends Pick<T, K> ? Value<T[K] | undefined> : never); } : T);
|
|
372
|
+
/** A module input schema's Standard Schema input type. */
|
|
373
|
+
type ModuleInputOf<I extends StandardSchemaV1 | undefined> = StandardSchemaV1.InferInput<NonNullable<I>>;
|
|
321
374
|
/** Opaque `Contract<any, any>` bound shared by every node/port type that doesn't care which contract. */
|
|
322
375
|
type AnyContract = Contract<any, any>;
|
|
323
376
|
/** How a service's app becomes a runnable artifact — the build descriptor's routing key (`extension`/`type`) plus paths resolved relative to the authoring module. */
|
|
@@ -400,7 +453,7 @@ interface DependencyEnd<C = unknown, Req = unknown> {
|
|
|
400
453
|
readonly required: Req | undefined;
|
|
401
454
|
}
|
|
402
455
|
/** A Module: the same Deps/Expose boundary a service has, around transparent wiring instead of a black-box body — its `body` runs at Load, not at authoring. */
|
|
403
|
-
interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
|
|
456
|
+
interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
|
|
404
457
|
readonly [NODE]: true;
|
|
405
458
|
readonly kind: 'module';
|
|
406
459
|
/** Human-readable, given at authoring — logs/diagnostics only. */
|
|
@@ -410,20 +463,24 @@ interface ModuleNode<D extends Deps = Deps, E extends Expose = Expose, S extends
|
|
|
410
463
|
readonly secretSlots: S;
|
|
411
464
|
/** Declared param-forwarding slots (authored as `params`) — forwarded to internals via `ctx.params`, the same rail secrets ride on. */
|
|
412
465
|
readonly paramSlots: PN;
|
|
466
|
+
/** The module's whole incoming configuration as one Standard Schema (authored as `input`, ADR-0061), or `undefined` when it takes none. Load only calls its `~standard.validate`. */
|
|
467
|
+
readonly inputSchema: I;
|
|
413
468
|
readonly expose: E;
|
|
414
|
-
body(ctx: ModuleContext<D, S, PN>): ModuleOutputs<E> | void;
|
|
469
|
+
body(ctx: ModuleContext<D, S, PN, I>): ModuleOutputs<E> | void;
|
|
415
470
|
}
|
|
416
471
|
/**
|
|
417
472
|
* What a module's body receives: its declared dependencies as forwardable wiring
|
|
418
473
|
* values, plus `provision` to register the owned services/modules it wires them into.
|
|
419
474
|
*/
|
|
420
|
-
interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds> {
|
|
475
|
+
interface ModuleContext<D extends Deps, S extends Secrets = Secrets, PN extends ParamNeeds = ParamNeeds, I extends StandardSchemaV1 | undefined = StandardSchemaV1 | undefined> {
|
|
421
476
|
/** The module's declared dependencies as wiring values — pass them into provision(). */
|
|
422
477
|
readonly deps: { [K in keyof D]: InputRef<D[K]>; };
|
|
423
478
|
/** The module's declared secret slots as forwardable sources — pass them into a child's `secrets` (ADR-0029). */
|
|
424
479
|
readonly secrets: { readonly [K in keyof S]: SecretSource; };
|
|
425
480
|
/** The module's declared param-forwarding slots as forwardable sources — pass them into a child's `params`. */
|
|
426
481
|
readonly params: { readonly [K in keyof PN]: ParamSource; };
|
|
482
|
+
/** The module's input: one value per field, typed from its input schema's output (ADR-0061); `undefined` when it declares none. Pass a field into a provision() binding or list it as a resolve() dependency. */
|
|
483
|
+
readonly input: I extends StandardSchemaV1 ? ModuleInput<I> : undefined;
|
|
427
484
|
/** The deploy-time facts of the environment, each a value (ADR-0062). List `environment.name` as a `resolve()` dependency. Never environment variables: user code never reads those. */
|
|
428
485
|
readonly environment: EnvironmentFacts;
|
|
429
486
|
/** Registers an owned child (service or module) under a stable id. */
|
|
@@ -488,27 +545,22 @@ type ServiceProvisionArgs<D extends Deps, I extends StandardSchemaV1 | undefined
|
|
|
488
545
|
params?: PB;
|
|
489
546
|
}];
|
|
490
547
|
/**
|
|
491
|
-
* A child-MODULE provision's trailing options: `deps
|
|
492
|
-
* exactly when the module declares
|
|
493
|
-
* slot may be bound to a `ParamSource`.
|
|
548
|
+
* A child-MODULE provision's trailing options: `deps`, `secrets` and `input`
|
|
549
|
+
* each required exactly when the module declares them; a declared
|
|
550
|
+
* param-forwarding slot may be bound to a `ParamSource`.
|
|
494
551
|
*/
|
|
495
|
-
type
|
|
552
|
+
type ModuleProvisionOptions<D extends Deps, S extends Secrets, I extends StandardSchemaV1 | undefined, PB> = {
|
|
496
553
|
id?: string;
|
|
497
554
|
params?: PB;
|
|
498
|
-
}]
|
|
499
|
-
id?: string;
|
|
500
|
-
secrets: SecretBindings<S>;
|
|
501
|
-
params?: PB;
|
|
502
|
-
}] : [keyof S] extends [never] ? [opts: {
|
|
503
|
-
id?: string;
|
|
504
|
-
deps: DepBindings<D>;
|
|
505
|
-
params?: PB;
|
|
506
|
-
}] : [opts: {
|
|
507
|
-
id?: string;
|
|
555
|
+
} & ([keyof D] extends [never] ? unknown : {
|
|
508
556
|
deps: DepBindings<D>;
|
|
557
|
+
}) & ([keyof S] extends [never] ? unknown : {
|
|
509
558
|
secrets: SecretBindings<S>;
|
|
510
|
-
|
|
511
|
-
|
|
559
|
+
}) & ([I] extends [StandardSchemaV1] ? {
|
|
560
|
+
input: ModuleInputBinding<ModuleInputOf<I>>;
|
|
561
|
+
} : unknown);
|
|
562
|
+
/** The options are optional exactly when nothing is required. */
|
|
563
|
+
type ModuleProvisionArgs<D extends Deps, S extends Secrets, I extends StandardSchemaV1 | undefined, PB> = [keyof D] extends [never] ? [keyof S] extends [never] ? [I] extends [StandardSchemaV1] ? [opts: ModuleProvisionOptions<D, S, I, PB>] : [opts?: ModuleProvisionOptions<D, S, I, PB>] : [opts: ModuleProvisionOptions<D, S, I, PB>] : [opts: ModuleProvisionOptions<D, S, I, PB>];
|
|
512
564
|
interface ModuleBuilder {
|
|
513
565
|
/** Provisions an owned resource; its id defaults to the node's `name`. */
|
|
514
566
|
provision<C extends AnyContract | undefined>(resource: ResourceNode<C>, opts?: {
|
|
@@ -530,14 +582,15 @@ interface ModuleBuilder {
|
|
|
530
582
|
input?: InputBinding;
|
|
531
583
|
params?: ParamBindings<P>;
|
|
532
584
|
}): ProvisionedRef<E>;
|
|
533
|
-
/** Registers an owned child module; its id defaults to the node's `name`; `deps
|
|
534
|
-
provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds>(child: ModuleNode<D, E, S, PN>, ...args: ModuleProvisionArgs<D, S, ParamNeedBindings<PN>>): ProvisionedRef<E>;
|
|
535
|
-
/** The child-module call with `deps
|
|
536
|
-
provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds>(child: ModuleNode<D, E, S, PN>, opts: {
|
|
585
|
+
/** Registers an owned child module; its id defaults to the node's `name`; `deps`, `secrets` and `input` are required iff it declares them; a declared param-forwarding slot may be bound to a `ParamSource`. */
|
|
586
|
+
provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, S, PN, I>, ...args: ModuleProvisionArgs<D, S, I, ParamNeedBindings<PN>>): ProvisionedRef<E>;
|
|
587
|
+
/** The child-module call with `deps` spelled out — the same generic-wrapper escape as the service overload above. */
|
|
588
|
+
provision<D extends Deps, E extends Expose, S extends Secrets, PN extends ParamNeeds, I extends StandardSchemaV1 | undefined>(child: ModuleNode<D, E, S, PN, I>, opts: {
|
|
537
589
|
id?: string;
|
|
538
590
|
deps: DepBindings<D>;
|
|
539
591
|
secrets?: SecretBindings<S>;
|
|
540
592
|
params?: ParamNeedBindings<PN>;
|
|
593
|
+
input?: ModuleInputBinding<ModuleInputOf<I>>;
|
|
541
594
|
}): ProvisionedRef<E>;
|
|
542
595
|
}
|
|
543
596
|
/** Dependency map: name → the slot the service declares. Only declarations are admitted, never a concrete ResourceNode. */
|
|
@@ -645,7 +698,7 @@ interface Graph {
|
|
|
645
698
|
readonly params: readonly ParamBinding[];
|
|
646
699
|
}
|
|
647
700
|
//#endregion
|
|
648
|
-
//#region ../../0-framework/1-core/core/dist/app-config-
|
|
701
|
+
//#region ../../0-framework/1-core/core/dist/app-config-8nfo_ECP.d.mts
|
|
649
702
|
//#region src/container-transport.d.ts
|
|
650
703
|
/**
|
|
651
704
|
* Carries resolved containers from the CLI process into the alchemy process
|
|
@@ -1052,6 +1105,8 @@ interface PreflightInput<C = unknown> {
|
|
|
1052
1105
|
readonly credentials?: ContainerCredentials<C> | undefined;
|
|
1053
1106
|
/** Hands the deploy's progress output what the check covered, as counts (e.g. `{ checked: 53, filled: 0, missing: 0 }`). Counts only: never a name or a value. */
|
|
1054
1107
|
readonly report?: ((counts: Readonly<Record<string, number>>) => void) | undefined;
|
|
1108
|
+
/** Shows the user a warning that does not stop the run. Only `prisma dev` passes it and shows the warnings; deploy passes none. */
|
|
1109
|
+
readonly warn?: ((message: string) => void) | undefined;
|
|
1055
1110
|
}
|
|
1056
1111
|
/** The resolved destroy context handed to an extension's `teardown` hook. */
|
|
1057
1112
|
interface TeardownInput {
|
|
@@ -1363,7 +1418,7 @@ interface NotOk<F> {
|
|
|
1363
1418
|
*/
|
|
1364
1419
|
type Result$1<T, F> = Ok<T> | NotOk<F>;
|
|
1365
1420
|
//#endregion
|
|
1366
|
-
//#region ../../0-framework/3-tooling/cli/dist/dev-current-
|
|
1421
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-current-DfJfxg2y.d.mts
|
|
1367
1422
|
//#region src/dev/watch.d.ts
|
|
1368
1423
|
interface WatchTarget {
|
|
1369
1424
|
readonly address: string;
|
|
@@ -1548,6 +1603,11 @@ type DevEvent =
|
|
|
1548
1603
|
} | {
|
|
1549
1604
|
readonly kind: 'unwatchable';
|
|
1550
1605
|
readonly address: string;
|
|
1606
|
+
} |
|
|
1607
|
+
/** A target's preflight warned about the graph; the session still starts. */
|
|
1608
|
+
{
|
|
1609
|
+
readonly kind: 'target-warning';
|
|
1610
|
+
readonly message: string;
|
|
1551
1611
|
} | {
|
|
1552
1612
|
readonly kind: 'rebuild-failed';
|
|
1553
1613
|
readonly message: string;
|
|
@@ -1684,7 +1744,7 @@ declare function devUrl(input: DevUrlInput): Promise<Result$1<DevUrl, CliStructu
|
|
|
1684
1744
|
/** Stops the app's local copy in the environment: its service processes and database servers. Data and ports stay. */
|
|
1685
1745
|
declare function devStop(input: DevStopInput): Promise<Result$1<DevStopped, CliStructuredError>>;
|
|
1686
1746
|
//#endregion
|
|
1687
|
-
//#region ../../0-framework/3-tooling/cli/dist/family-
|
|
1747
|
+
//#region ../../0-framework/3-tooling/cli/dist/family-Dy3ZQOxG.d.mts
|
|
1688
1748
|
//#region src/family/family.d.ts
|
|
1689
1749
|
/**
|
|
1690
1750
|
* The control-plane operations the family's handlers call. These are the
|
|
@@ -1711,4 +1771,4 @@ interface CreateComposerFamilyOptions {
|
|
|
1711
1771
|
}
|
|
1712
1772
|
//#endregion
|
|
1713
1773
|
export { Result$1 as _, DeployEvent as a, CliStructuredError as b, DevEvent as c, DevStopInput as d, DevStopped as f, ServiceEndpoint as g, OperationDeps as h, DEFAULT_DEPLOY_ENVIRONMENT as i, DevInput as l, DevUrlInput as m, CreateComposerFamilyOptions as n, DeployInput as o, DevUrl as p, realOperations as r, DeploySuccess as s, ComposerOperations as t, DevSession as u, AssembledServices as v, ComposerConfigSource as y };
|
|
1714
|
-
//# sourceMappingURL=family-
|
|
1774
|
+
//# sourceMappingURL=family-Dy3ZQOxG-CcELNRXg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family-Dy3ZQOxG-CcELNRXg.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/errors.d.mts","../../../0-framework/0-foundation/foundation/dist/secret-CHOw4LBU.d.mts","../../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../0-framework/1-core/core/dist/graph-types-Bn3tSF4x.d.mts","../../../0-framework/1-core/core/dist/app-config-8nfo_ECP.d.mts","../../../0-framework/3-tooling/cli/dist/composer-config-BJrPWlDx.d.mts","../../../0-framework/3-tooling/cli/dist/deployment-summary-p88NV5m5.d.mts","../../../0-framework/3-tooling/assemble/dist/index.d.mts","../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/cli/dist/dev-current-DfJfxg2y.d.mts","../../../0-framework/3-tooling/cli/dist/family-Dy3ZQOxG.d.mts"],"x_google_ignoreList":[2],"mappings":";;;;;;;UACU,wBAAwB;WACvB;WACA;WACA;WACA;aACE;aACA;;WAEF;WACA,OAAO;WACP;;;;;;;;UAwBD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;;;;;;;;cAoBG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WAC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;;WAER;;WAEA;;WAEA;;UAED;WACC;;WAEA;;WAEA;;WAEA;;WAEA;;UAED;WACC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;UAED;;WAEC;;WAEA;;WAEA;aACE;aACA;;;;iBAII,OAAO,OAAO,cAAc,QAAQ,SAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,SAAO,YAAY;;;;;;;;;;;;UC3VhE;WACC,eAAe;WACf,YAAY;WACZ,eAAe;WACf,gBAAgB;;cAEb,gBAAgB;UACpB;;WAEC,aAAa;;WAEb,WAAW;;WAEX,qBAAqB"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Result, b as CliStructuredError$1, i as DEFAULT_DEPLOY_ENVIRONMENT, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, y as ComposerConfigSource } from "./family-
|
|
1
|
+
import { _ as Result, b as CliStructuredError$1, i as DEFAULT_DEPLOY_ENVIRONMENT, n as CreateComposerFamilyOptions$1, r as realOperations, t as ComposerOperations, y as ComposerConfigSource } from "./family-Dy3ZQOxG-CcELNRXg.mjs";
|
|
2
2
|
import { CommandFamily, ConfigSection, ManagementApiClient } from "@prisma/cli-engine";
|
|
3
3
|
import { CliStructuredError } from "@prisma/cli-engine/protocol";
|
|
4
4
|
import "effect/Layer";
|
package/dist/family.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as checkComposerConfig, h as sectionMissing, t as alchemyCommandLine } from "./run-alchemy-Dl_MWw4g-DaWV9tkH.mjs";
|
|
2
|
-
import { a as devWithDeps, i as devUrl, n as deployWithDeps, o as executionDiagnostics, r as devStop, t as DEFAULT_DEPLOY_ENVIRONMENT } from "./dev-current-
|
|
2
|
+
import { a as devWithDeps, i as devUrl, n as deployWithDeps, o as executionDiagnostics, r as devStop, t as DEFAULT_DEPLOY_ENVIRONMENT } from "./dev-current-BNoPkDRU-DGd_7FDS.mjs";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { defineCommand, defineCommandFamily, defineConfigSection, defineSessionCommand, exitWithChildStatus, flag, positional } from "@prisma/cli-engine";
|
|
5
5
|
import { CliStructuredError, notOk, ok } from "@prisma/cli-engine/protocol";
|
|
@@ -449,6 +449,13 @@ function reportDevEvent(report, lastChild, cwd) {
|
|
|
449
449
|
text: `${event.address} has no watchable inputs.`
|
|
450
450
|
});
|
|
451
451
|
return;
|
|
452
|
+
case "target-warning":
|
|
453
|
+
report({
|
|
454
|
+
kind: "message",
|
|
455
|
+
severity: "warn",
|
|
456
|
+
text: event.message
|
|
457
|
+
});
|
|
458
|
+
return;
|
|
452
459
|
case "rebuild-failed":
|
|
453
460
|
report({
|
|
454
461
|
kind: "message",
|
|
@@ -757,7 +764,7 @@ function createComposerFamily$1(options = {}) {
|
|
|
757
764
|
* assembled into the family here, where both domains may be imported.
|
|
758
765
|
*/
|
|
759
766
|
/** Loaded on first use, so nothing of the Management API reads loads with the family. */
|
|
760
|
-
const listDeployed = async (input) => (await import("./list-deployed-
|
|
767
|
+
const listDeployed = async (input) => (await import("./list-deployed-2Xs64YAh.mjs")).listDeployed(input);
|
|
761
768
|
const createDeployListCommand = (list) => defineCommand({
|
|
762
769
|
help: {
|
|
763
770
|
summary: "List every node the app has deployed in an environment, with its platform ID and URL.",
|