@prisma/composer-cli 0.34.0-dev.5 → 0.34.0-dev.6
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-hGle--BH-DHFSz_ur.mjs → dev-current-BB02pfSh-vMKS1rYi.mjs} +6 -6
- package/dist/{dev-current-hGle--BH-DHFSz_ur.mjs.map → dev-current-BB02pfSh-vMKS1rYi.mjs.map} +1 -1
- package/dist/{dist-D1c-3NFX.mjs → dist-B9-nLeho.mjs} +2 -2
- package/dist/{dist-D1c-3NFX.mjs.map → dist-B9-nLeho.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-iO4yn-3Q-5rmMfeg8.mjs → execute-deploy-destroy-DwcoZIks-CiW-dlB1.mjs} +7 -13
- package/dist/execute-deploy-destroy-DwcoZIks-CiW-dlB1.mjs.map +1 -0
- package/dist/{execute-dev-DQMSVQn9-DL5eWfNL.mjs → execute-dev-BHRWoEnd-DrGMSTD3.mjs} +7 -7
- package/dist/{execute-dev-DQMSVQn9-DL5eWfNL.mjs.map → execute-dev-BHRWoEnd-DrGMSTD3.mjs.map} +1 -1
- package/dist/{execute-dev-current-C8e554e4-CR_Z_5cs.mjs → execute-dev-current-D4RkOtPA-BFoZ0cXm.mjs} +6 -6
- package/dist/{execute-dev-current-C8e554e4-CR_Z_5cs.mjs.map → execute-dev-current-D4RkOtPA-BFoZ0cXm.mjs.map} +1 -1
- package/dist/{family-CsvN_3rK-CxpRZHs6.d.mts → family-xJ6y4fXc-CFBu6q4b.d.mts} +29 -28
- package/dist/family-xJ6y4fXc-CFBu6q4b.d.mts.map +1 -0
- package/dist/family.d.mts +35 -4
- package/dist/family.d.mts.map +1 -1
- package/dist/family.mjs +86 -6
- package/dist/family.mjs.map +1 -1
- package/dist/{generate-dev-stack-CfneNj97-YWn8z26x.mjs → generate-dev-stack-CfneNj97-Yx3Z2-9u.mjs} +2 -2
- package/dist/{generate-dev-stack-CfneNj97-YWn8z26x.mjs.map → generate-dev-stack-CfneNj97-Yx3Z2-9u.mjs.map} +1 -1
- package/dist/list-deployed-DJM8V6Ri.mjs +354 -0
- package/dist/list-deployed-DJM8V6Ri.mjs.map +1 -0
- package/dist/{local-target-Pro_jmzo.mjs → local-target-CK8gvYV4.mjs} +2 -2
- package/dist/{local-target-Pro_jmzo.mjs.map → local-target-CK8gvYV4.mjs.map} +1 -1
- package/dist/{pipeline-C06OEvKd-B_vvzzSY.mjs → pipeline-BmWt-Nhb-Bos4TFXR.mjs} +24 -4
- package/dist/{pipeline-C06OEvKd-B_vvzzSY.mjs.map → pipeline-BmWt-Nhb-Bos4TFXR.mjs.map} +1 -1
- package/dist/{composer-config-ehUUVHtU-Db7akNFy.mjs → run-alchemy-Dl_MWw4g-DaWV9tkH.mjs} +318 -318
- package/dist/run-alchemy-Dl_MWw4g-DaWV9tkH.mjs.map +1 -0
- package/dist/testing.d.mts +1 -1
- package/dist/testing.mjs +2 -2
- package/dist/testing.mjs.map +1 -1
- package/dist/validate-stage-DxRW3MwT-DOWCXHa_.mjs +13 -0
- package/dist/validate-stage-DxRW3MwT-DOWCXHa_.mjs.map +1 -0
- package/package.json +9 -7
- package/src/exports/family.ts +8 -1
- package/src/family/deploy-list.ts +96 -0
- package/src/family/deployed-nodes.ts +55 -0
- package/src/family/list-deployed.ts +64 -0
- package/dist/composer-config-ehUUVHtU-Db7akNFy.mjs.map +0 -1
- package/dist/execute-deploy-destroy-iO4yn-3Q-5rmMfeg8.mjs.map +0 -1
- package/dist/family-CsvN_3rK-CxpRZHs6.d.mts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../0-framework/3-tooling/cli/dist/dev-current-
|
|
1
|
+
import { a as notOk, c as CliStructuredError, o as ok, u as blindCast } from "./run-alchemy-Dl_MWw4g-DaWV9tkH.mjs";
|
|
2
|
+
//#region ../../0-framework/3-tooling/cli/dist/dev-current-BB02pfSh.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Reads the execution diagnostics an engine-failure error carries in
|
|
5
5
|
* `meta.diagnostics`; undefined for every other failure.
|
|
@@ -35,7 +35,7 @@ async function deployWithDeps(input, deps) {
|
|
|
35
35
|
const cwd = input.cwd ?? process.cwd();
|
|
36
36
|
let executor;
|
|
37
37
|
try {
|
|
38
|
-
executor = await import("./execute-deploy-destroy-
|
|
38
|
+
executor = await import("./execute-deploy-destroy-DwcoZIks-CiW-dlB1.mjs");
|
|
39
39
|
} catch (error) {
|
|
40
40
|
return notOk(executorLoadFailure("deploy", error));
|
|
41
41
|
}
|
|
@@ -53,7 +53,7 @@ async function devWithDeps(input, deps) {
|
|
|
53
53
|
const cwd = input.cwd ?? process.cwd();
|
|
54
54
|
let executor;
|
|
55
55
|
try {
|
|
56
|
-
executor = await import("./execute-dev-
|
|
56
|
+
executor = await import("./execute-dev-BHRWoEnd-DrGMSTD3.mjs");
|
|
57
57
|
} catch (error) {
|
|
58
58
|
return notOk(executorLoadFailure("dev", error));
|
|
59
59
|
}
|
|
@@ -61,7 +61,7 @@ async function devWithDeps(input, deps) {
|
|
|
61
61
|
}
|
|
62
62
|
async function loadExecutor(operation) {
|
|
63
63
|
try {
|
|
64
|
-
return ok(await import("./execute-dev-current-
|
|
64
|
+
return ok(await import("./execute-dev-current-D4RkOtPA-BFoZ0cXm.mjs"));
|
|
65
65
|
} catch (error) {
|
|
66
66
|
return notOk(executorLoadFailure(operation, error));
|
|
67
67
|
}
|
|
@@ -81,4 +81,4 @@ async function devStop(input) {
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { executionDiagnostics as a, devWithDeps as i, devStop as n, toStructured as o, devUrl as r, deployWithDeps as t };
|
|
83
83
|
|
|
84
|
-
//# sourceMappingURL=dev-current-
|
|
84
|
+
//# sourceMappingURL=dev-current-BB02pfSh-vMKS1rYi.mjs.map
|
package/dist/{dev-current-hGle--BH-DHFSz_ur.mjs.map → dev-current-BB02pfSh-vMKS1rYi.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-current-
|
|
1
|
+
{"version":3,"file":"dev-current-BB02pfSh-vMKS1rYi.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/dev-current-BB02pfSh.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/foundation/errors\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport { notOk, ok } from \"@internal/foundation/result\";\n//#region src/operations/shared.ts\n/**\n* Reads the execution diagnostics an engine-failure error carries in\n* `meta.diagnostics`; undefined for every other failure.\n*/\nfunction executionDiagnostics(f) {\n\tconst diagnostics = f.meta?.[\"diagnostics\"];\n\tif (typeof diagnostics !== \"object\" || diagnostics === null) return void 0;\n\tconst candidate = blindCast(diagnostics);\n\tif (candidate[\"exitCode\"] !== void 0 && typeof candidate[\"exitCode\"] !== \"number\" || candidate[\"signal\"] !== void 0 && typeof candidate[\"signal\"] !== \"string\" || typeof candidate[\"stackFilePath\"] !== \"string\" || typeof candidate[\"reproduceCommand\"] !== \"string\" || typeof candidate[\"cwd\"] !== \"string\") return;\n\treturn blindCast(diagnostics);\n}\n/**\n* Site-specific wrap for foreign extension/environment causes — passthrough\n* when already structured; never a boundary fallback (base-type rule 6(ii)).\n*/\nfunction toStructured(code, error) {\n\treturn CliStructuredError.is(error) ? error : new CliStructuredError(code, error instanceof Error ? error.message : String(error), { cause: error });\n}\n/** A failed executor import: an environmental failure of the consumer's\n* installed tree, not a bug here. The import error rides as the cause. */\nfunction executorLoadFailure(operation, error) {\n\treturn new CliStructuredError(\"DEPS.EXECUTOR_UNLOADABLE\", `Could not load the ${operation} executor: ${error instanceof Error ? error.message : String(error)}`, {\n\t\twhy: `The ${operation} operation's executor imports the deploy engine's provider tree from your app's installed dependencies, and that import failed.`,\n\t\tfix: \"Reinstall your dependencies, and check that `alchemy` is installed and loadable from your app.\",\n\t\tcause: error\n\t});\n}\n//#endregion\n//#region src/operations/deploy.ts\nasync function deploy(input) {\n\treturn deployWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, which the family's\n* commands and the unit tests use. Deliberately NOT re-exported through `./control` — the seam mirrors\n* internal types and is not part of the published surface. */\nasync function deployWithDeps(input, deps) {\n\tconst startedAt = performance.now();\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-deploy-destroy-DwcoZIks.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"deploy\", error));\n\t}\n\tconst result = await executor.executeDeploy(input, deps, cwd);\n\tif (!result.ok) return result;\n\treturn ok({\n\t\t...result.value,\n\t\tdurationMs: Math.round(performance.now() - startedAt)\n\t});\n}\n//#endregion\n//#region src/operations/dev.ts\nasync function dev(input) {\n\treturn devWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, which the family's\n* commands and the unit tests use. Deliberately NOT re-exported through `./control` — the seam mirrors\n* internal types and is not part of the published surface. */\nasync function devWithDeps(input, deps) {\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-dev-BHRWoEnd.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"dev\", error));\n\t}\n\treturn executor.executeDev(input, deps, cwd);\n}\n//#endregion\n//#region src/operations/dev-current.ts\nasync function loadExecutor(operation) {\n\ttry {\n\t\treturn ok(await import(\"./execute-dev-current-D4RkOtPA.mjs\"));\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(operation, error));\n\t}\n}\n/** Where the node at `input.address` of the directory's current app runs locally. */\nasync function devUrl(input) {\n\tconst executor = await loadExecutor(\"dev url\");\n\tif (!executor.ok) return executor;\n\treturn executor.value.executeDevUrl(input, input.cwd ?? process.cwd());\n}\n/** Stops the directory's current app: its service processes and database servers. Data and ports stay. */\nasync function devStop(input) {\n\tconst executor = await loadExecutor(\"dev stop\");\n\tif (!executor.ok) return executor;\n\treturn executor.value.executeDevStop(input, input.cwd ?? process.cwd());\n}\n//#endregion\nexport { deploy as a, executorLoadFailure as c, devWithDeps as i, toStructured as l, devUrl as n, deployWithDeps as o, dev as r, executionDiagnostics as s, devStop as t };\n\n//# sourceMappingURL=dev-current-BB02pfSh.mjs.map"],"mappings":";;;;;;AAQA,SAAS,qBAAqB,GAAG;CAChC,MAAM,cAAc,EAAE,OAAO;CAC7B,IAAI,OAAO,gBAAgB,YAAY,gBAAgB,MAAM,OAAO,KAAK;CACzE,MAAM,YAAY,UAAU,WAAW;CACvC,IAAI,UAAU,gBAAgB,KAAK,KAAK,OAAO,UAAU,gBAAgB,YAAY,UAAU,cAAc,KAAK,KAAK,OAAO,UAAU,cAAc,YAAY,OAAO,UAAU,qBAAqB,YAAY,OAAO,UAAU,wBAAwB,YAAY,OAAO,UAAU,WAAW,UAAU;CAC/S,OAAO,UAAU,WAAW;AAC7B;;;;;AAKA,SAAS,aAAa,MAAM,OAAO;CAClC,OAAO,mBAAmB,GAAG,KAAK,IAAI,QAAQ,IAAI,mBAAmB,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG,EAAE,OAAO,MAAM,CAAC;AACpJ;;;AAGA,SAAS,oBAAoB,WAAW,OAAO;CAC9C,OAAO,IAAI,mBAAmB,4BAA4B,sBAAsB,UAAU,aAAa,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,KAAK;EAChK,KAAK,OAAO,UAAU;EACtB,KAAK;EACL,OAAO;CACR,CAAC;AACF;;;;AASA,eAAe,eAAe,OAAO,MAAM;CAC1C,MAAM,YAAY,YAAY,IAAI;CAClC,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,UAAU,KAAK,CAAC;CAClD;CACA,MAAM,SAAS,MAAM,SAAS,cAAc,OAAO,MAAM,GAAG;CAC5D,IAAI,CAAC,OAAO,IAAI,OAAO;CACvB,OAAO,GAAG;EACT,GAAG,OAAO;EACV,YAAY,KAAK,MAAM,YAAY,IAAI,IAAI,SAAS;CACrD,CAAC;AACF;;;;AASA,eAAe,YAAY,OAAO,MAAM;CACvC,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,OAAO,KAAK,CAAC;CAC/C;CACA,OAAO,SAAS,WAAW,OAAO,MAAM,GAAG;AAC5C;AAGA,eAAe,aAAa,WAAW;CACtC,IAAI;EACH,OAAO,GAAG,MAAM,OAAO,8CAAqC;CAC7D,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,WAAW,KAAK,CAAC;CACnD;AACD;;AAEA,eAAe,OAAO,OAAO;CAC5B,MAAM,WAAW,MAAM,aAAa,SAAS;CAC7C,IAAI,CAAC,SAAS,IAAI,OAAO;CACzB,OAAO,SAAS,MAAM,cAAc,OAAO,MAAM,OAAO,QAAQ,IAAI,CAAC;AACtE;;AAEA,eAAe,QAAQ,OAAO;CAC7B,MAAM,WAAW,MAAM,aAAa,UAAU;CAC9C,IAAI,CAAC,SAAS,IAAI,OAAO;CACzB,OAAO,SAAS,MAAM,eAAe,OAAO,MAAM,OAAO,QAAQ,IAAI,CAAC;AACvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as notOk, c as CliStructuredError, o as ok } from "./run-alchemy-Dl_MWw4g-DaWV9tkH.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path from "node:path";
|
|
@@ -1791,4 +1791,4 @@ async function listEmulators(opts = {}) {
|
|
|
1791
1791
|
//#endregion
|
|
1792
1792
|
export { listEmulators };
|
|
1793
1793
|
|
|
1794
|
-
//# sourceMappingURL=dist-
|
|
1794
|
+
//# sourceMappingURL=dist-B9-nLeho.mjs.map
|