@prisma/composer-cli 0.25.0 → 0.26.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composer-config-CY9fET8H-KpGjlYgO.mjs +432 -0
- package/dist/composer-config-CY9fET8H-KpGjlYgO.mjs.map +1 -0
- package/dist/{pipeline-C7gNjMzJ-CMqZQxqM.mjs → container-transport-HcvNOGZL-CHqecFc7.mjs} +109 -322
- package/dist/container-transport-HcvNOGZL-CHqecFc7.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-CvKCwVkD-B3vcxYJF.mjs → execute-deploy-destroy-c0eko3AO-9npuGXd3.mjs} +108 -85
- package/dist/execute-deploy-destroy-c0eko3AO-9npuGXd3.mjs.map +1 -0
- package/dist/{execute-dev-BLCK5wF7-CuzMSK7T.mjs → execute-dev-BICPaq1g-CSoZJuhB.mjs} +162 -132
- package/dist/execute-dev-BICPaq1g-CSoZJuhB.mjs.map +1 -0
- package/dist/{family-B1RaH4f8-ChoTnv3A.d.mts → family-CgeZQdNg-gH8LuqqL.d.mts} +136 -172
- package/dist/family-CgeZQdNg-gH8LuqqL.d.mts.map +1 -0
- package/dist/family.d.mts +4 -39
- package/dist/family.d.mts.map +1 -1
- package/dist/family.mjs +49 -551
- package/dist/family.mjs.map +1 -1
- package/dist/generate-dev-stack-BUadNY_w-DF_lHVaP.mjs +87 -0
- package/dist/generate-dev-stack-BUadNY_w-DF_lHVaP.mjs.map +1 -0
- package/dist/run-alchemy-BEvB2sYQ-BgV2deuO.mjs +154 -0
- package/dist/run-alchemy-BEvB2sYQ-BgV2deuO.mjs.map +1 -0
- package/dist/testing.d.mts +24 -24
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +17 -45
- package/dist/testing.mjs.map +1 -1
- package/package.json +7 -11
- package/src/exports/testing.ts +5 -3
- package/dist/bin.mjs +0 -1040
- package/dist/bin.mjs.map +0 -1
- package/dist/container-transport-HcvNOGZL-CIoZc7Rs.mjs +0 -34
- package/dist/container-transport-HcvNOGZL-CIoZc7Rs.mjs.map +0 -1
- package/dist/execute-deploy-destroy-CvKCwVkD-B3vcxYJF.mjs.map +0 -1
- package/dist/execute-deploy-destroy-CvKCwVkD-DCufHnkW.mjs +0 -528
- package/dist/execute-deploy-destroy-CvKCwVkD-DCufHnkW.mjs.map +0 -1
- package/dist/execute-dev-BLCK5wF7-B-fG_E31.mjs +0 -2011
- package/dist/execute-dev-BLCK5wF7-B-fG_E31.mjs.map +0 -1
- package/dist/execute-dev-BLCK5wF7-CuzMSK7T.mjs.map +0 -1
- package/dist/execute-log-B_zCJ17b-BrLUt7vo.mjs +0 -157
- package/dist/execute-log-B_zCJ17b-BrLUt7vo.mjs.map +0 -1
- package/dist/execute-log-B_zCJ17b-C4a0uxJj.mjs +0 -158
- package/dist/execute-log-B_zCJ17b-C4a0uxJj.mjs.map +0 -1
- package/dist/family-B1RaH4f8-ChoTnv3A.d.mts.map +0 -1
- package/dist/local-target-BOGjATc2.mjs +0 -68
- package/dist/local-target-BOGjATc2.mjs.map +0 -1
- package/dist/local-target-hoEGqgVA.mjs +0 -68
- package/dist/local-target-hoEGqgVA.mjs.map +0 -1
- package/dist/pipeline-C7gNjMzJ-CMqZQxqM.mjs.map +0 -1
- package/dist/pipeline-C7gNjMzJ-CixaMvnR.mjs +0 -1205
- package/dist/pipeline-C7gNjMzJ-CixaMvnR.mjs.map +0 -1
- package/dist/result-B874OKwb.mjs +0 -383
- package/dist/result-B874OKwb.mjs.map +0 -1
- package/dist/result-sR7PBi61.mjs +0 -229
- package/dist/result-sR7PBi61.mjs.map +0 -1
- package/dist/run-alchemy-pANK8XNX-BH1wC0r6.mjs +0 -99
- package/dist/run-alchemy-pANK8XNX-BH1wC0r6.mjs.map +0 -1
- package/dist/run-alchemy-pANK8XNX-XcCQncKN.mjs +0 -99
- package/dist/run-alchemy-pANK8XNX-XcCQncKN.mjs.map +0 -1
- package/dist/shared-BTnATsqm-BH4axbJg.mjs +0 -158
- package/dist/shared-BTnATsqm-BH4axbJg.mjs.map +0 -1
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { i as CliStructuredError, o as blindCast } from "./result-sR7PBi61.mjs";
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
|
-
import * as fs from "node:fs";
|
|
4
|
-
import * as path from "node:path";
|
|
5
|
-
//#region ../../0-framework/3-tooling/cli/dist/shared-BTnATsqm.mjs
|
|
6
|
-
/**
|
|
7
|
-
* Deploy preflight (TML-3158): verify that alchemy resolves the exact `effect`
|
|
8
|
-
* version @prisma/composer pins. Package managers cannot be made to enforce
|
|
9
|
-
* this — alchemy's own peer range accepts newer effect betas, and npm resolves
|
|
10
|
-
* transitive peer conflicts with a warning, not a failure — so a floating
|
|
11
|
-
* `@effect/*` range anywhere in the consumer's tree can hoist a newer effect
|
|
12
|
-
* to the root, where alchemy picks it up and crashes mid-deploy
|
|
13
|
-
* (`TypeError: Schedule.either is not a function`). This check turns that
|
|
14
|
-
* silent break into a start-up error naming the fix.
|
|
15
|
-
*/
|
|
16
|
-
/** Walks up from `startDir` looking for `node_modules/alchemy` (mirrors resolveAlchemyBin). Undefined when absent — the check skips rather than second-guessing later, clearer failures. */
|
|
17
|
-
function findAlchemyPackageDir(startDir) {
|
|
18
|
-
let dir = startDir;
|
|
19
|
-
while (true) {
|
|
20
|
-
const candidate = path.join(dir, "node_modules", "alchemy");
|
|
21
|
-
if (fs.existsSync(path.join(candidate, "package.json"))) return candidate;
|
|
22
|
-
const parent = path.dirname(dir);
|
|
23
|
-
if (parent === dir) return void 0;
|
|
24
|
-
dir = parent;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* The `effect` version Node gives `packageDir`'s code, resolved exactly as
|
|
29
|
-
* Node would: from the package's real path (so pnpm symlink layouts resolve
|
|
30
|
-
* from the package's own store position, like at runtime). Undefined when
|
|
31
|
-
* `effect` is not resolvable from there.
|
|
32
|
-
*/
|
|
33
|
-
function resolveEffectVersionFrom(packageDir) {
|
|
34
|
-
let entry;
|
|
35
|
-
try {
|
|
36
|
-
entry = createRequire(path.join(fs.realpathSync(packageDir), "noop.js")).resolve("effect");
|
|
37
|
-
} catch {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
let dir = path.dirname(entry);
|
|
41
|
-
while (!fs.existsSync(path.join(dir, "package.json"))) {
|
|
42
|
-
const parent = path.dirname(dir);
|
|
43
|
-
if (parent === dir) return void 0;
|
|
44
|
-
dir = parent;
|
|
45
|
-
}
|
|
46
|
-
const version = JSON.parse(fs.readFileSync(path.join(dir, "package.json"), "utf-8")).version;
|
|
47
|
-
return typeof version === "string" ? version : void 0;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* The `effect` version @prisma/composer pins, read from its own installed
|
|
51
|
-
* package.json — the single source of truth; never hardcoded here. Undefined
|
|
52
|
-
* when @prisma/composer is not resolvable from `startDir` (e.g. the CLI is
|
|
53
|
-
* driven some other way), in which case the check skips.
|
|
54
|
-
*
|
|
55
|
-
* Assumes the pin is an exact version — effectMismatchError compares with
|
|
56
|
-
* `===`, which scripts/check-npm-effect-resolution.mjs enforces in CI;
|
|
57
|
-
* relaxing the pin to a range means revisiting that comparison.
|
|
58
|
-
*/
|
|
59
|
-
function requiredEffectVersion(startDir) {
|
|
60
|
-
let manifestPath;
|
|
61
|
-
try {
|
|
62
|
-
manifestPath = createRequire(path.join(startDir, "noop.js")).resolve("@prisma/composer/package.json");
|
|
63
|
-
} catch {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf-8"));
|
|
67
|
-
if (typeof manifest !== "object" || manifest === null || !("dependencies" in manifest)) return;
|
|
68
|
-
const dependencies = manifest.dependencies;
|
|
69
|
-
if (typeof dependencies !== "object" || dependencies === null || !("effect" in dependencies)) return;
|
|
70
|
-
const version = dependencies.effect;
|
|
71
|
-
return typeof version === "string" ? version : void 0;
|
|
72
|
-
}
|
|
73
|
-
/** Pure comparison + parts rendering, separated so tests cover the rule without a filesystem. Returns the structured error parts, or undefined when the tree is healthy or either side is unknown. */
|
|
74
|
-
function effectMismatchError(found, required) {
|
|
75
|
-
if (found === void 0 || required === void 0 || found === required) return void 0;
|
|
76
|
-
return {
|
|
77
|
-
summary: `Dependency conflict: alchemy resolves effect@${found}, but @prisma/composer requires effect@${required}.`,
|
|
78
|
-
why: "Your package manager installed a second effect that alchemy picks up; deploying with it would crash inside alchemy.",
|
|
79
|
-
fix: `Add this to your app's package.json, then reinstall:
|
|
80
|
-
|
|
81
|
-
"overrides": { "effect": "${required}" }\n\n(npm uses "overrides"; yarn calls it "resolutions", pnpm "pnpm.overrides".)`,
|
|
82
|
-
meta: {
|
|
83
|
-
found,
|
|
84
|
-
required
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Runs the preflight from the app's directory and RETURNS the
|
|
90
|
-
* DEPS.EFFECT_VERSION_CONFLICT error for a mismatched tree; undefined when the
|
|
91
|
-
* tree is healthy or alchemy is not installed.
|
|
92
|
-
*
|
|
93
|
-
* This is the form the config-load machinery uses. The check belongs on the
|
|
94
|
-
* config-load path rather than at import time because that is the first moment
|
|
95
|
-
* anything actually loads alchemy's provider tree — the break it explains —
|
|
96
|
-
* and because a check that runs at import time takes out commands that never
|
|
97
|
-
* touch alchemy at all, help among them.
|
|
98
|
-
*/
|
|
99
|
-
function effectResolutionDiagnostic(cwd) {
|
|
100
|
-
const alchemyDir = findAlchemyPackageDir(cwd);
|
|
101
|
-
if (alchemyDir === void 0) return void 0;
|
|
102
|
-
const parts = effectMismatchError(resolveEffectVersionFrom(alchemyDir), requiredEffectVersion(cwd));
|
|
103
|
-
if (parts === void 0) return void 0;
|
|
104
|
-
return new CliStructuredError("DEPS.EFFECT_VERSION_CONFLICT", parts.summary, {
|
|
105
|
-
why: parts.why,
|
|
106
|
-
fix: parts.fix,
|
|
107
|
-
meta: parts.meta
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
/** The throwing form, used by the executor-load diagnosis — the one caller left now that the bin runs no start-up preflight of its own. */
|
|
111
|
-
function checkEffectResolution(cwd) {
|
|
112
|
-
const diagnostic = effectResolutionDiagnostic(cwd);
|
|
113
|
-
if (diagnostic !== void 0) throw diagnostic;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Reads the execution diagnostics an engine-failure error carries in
|
|
117
|
-
* `meta.diagnostics`; undefined for every other failure.
|
|
118
|
-
*/
|
|
119
|
-
function executionDiagnostics(f) {
|
|
120
|
-
const diagnostics = f.meta?.["diagnostics"];
|
|
121
|
-
if (typeof diagnostics !== "object" || diagnostics === null) return void 0;
|
|
122
|
-
const candidate = blindCast(diagnostics);
|
|
123
|
-
if (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;
|
|
124
|
-
return blindCast(diagnostics);
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Site-specific wrap for foreign extension/environment causes — passthrough
|
|
128
|
-
* when already structured; never a boundary fallback (base-type rule 6(ii)).
|
|
129
|
-
*/
|
|
130
|
-
function toStructured(code, error) {
|
|
131
|
-
return CliStructuredError.is(error) ? error : new CliStructuredError(code, error instanceof Error ? error.message : String(error), { cause: error });
|
|
132
|
-
}
|
|
133
|
-
/** Diagnoses a failed executor import: when the app's tree resolves a
|
|
134
|
-
* mismatched `effect` (the known way that import breaks), the failure is the
|
|
135
|
-
* fix-naming DEPS.EFFECT_VERSION_CONFLICT from checkEffectResolution with the
|
|
136
|
-
* import error riding as cause; otherwise DEPS.EXECUTOR_UNLOADABLE — an
|
|
137
|
-
* environmental failure of the consumer's installed tree, not a bug here. */
|
|
138
|
-
function executorLoadFailure(operation, error, cwd) {
|
|
139
|
-
try {
|
|
140
|
-
checkEffectResolution(cwd);
|
|
141
|
-
} catch (diagnostic) {
|
|
142
|
-
if (CliStructuredError.is(diagnostic)) return new CliStructuredError(diagnostic.code, diagnostic.message, {
|
|
143
|
-
...diagnostic.why !== void 0 ? { why: diagnostic.why } : {},
|
|
144
|
-
...diagnostic.fix !== void 0 ? { fix: diagnostic.fix } : {},
|
|
145
|
-
...diagnostic.meta !== void 0 ? { meta: diagnostic.meta } : {},
|
|
146
|
-
cause: error
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
return new CliStructuredError("DEPS.EXECUTOR_UNLOADABLE", `Could not load the ${operation} executor: ${error instanceof Error ? error.message : String(error)}`, {
|
|
150
|
-
why: `The ${operation} operation's executor imports the deploy engine's provider tree from your app's installed dependencies, and that import failed.`,
|
|
151
|
-
fix: "Reinstall your dependencies, and check that `alchemy` is installed and loadable from your app.",
|
|
152
|
-
cause: error
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
//#endregion
|
|
156
|
-
export { toStructured as i, executionDiagnostics as n, executorLoadFailure as r, effectResolutionDiagnostic as t };
|
|
157
|
-
|
|
158
|
-
//# sourceMappingURL=shared-BTnATsqm-BH4axbJg.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-BTnATsqm-BH4axbJg.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/shared-BTnATsqm.mjs"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { blindCast } from \"@internal/foundation/casts\";\n//#region src/check-effect-resolution.ts\n/**\n* Deploy preflight (TML-3158): verify that alchemy resolves the exact `effect`\n* version @prisma/composer pins. Package managers cannot be made to enforce\n* this — alchemy's own peer range accepts newer effect betas, and npm resolves\n* transitive peer conflicts with a warning, not a failure — so a floating\n* `@effect/*` range anywhere in the consumer's tree can hoist a newer effect\n* to the root, where alchemy picks it up and crashes mid-deploy\n* (`TypeError: Schedule.either is not a function`). This check turns that\n* silent break into a start-up error naming the fix.\n*/\n/** Walks up from `startDir` looking for `node_modules/alchemy` (mirrors resolveAlchemyBin). Undefined when absent — the check skips rather than second-guessing later, clearer failures. */\nfunction findAlchemyPackageDir(startDir) {\n\tlet dir = startDir;\n\twhile (true) {\n\t\tconst candidate = path.join(dir, \"node_modules\", \"alchemy\");\n\t\tif (fs.existsSync(path.join(candidate, \"package.json\"))) return candidate;\n\t\tconst parent = path.dirname(dir);\n\t\tif (parent === dir) return void 0;\n\t\tdir = parent;\n\t}\n}\n/**\n* The `effect` version Node gives `packageDir`'s code, resolved exactly as\n* Node would: from the package's real path (so pnpm symlink layouts resolve\n* from the package's own store position, like at runtime). Undefined when\n* `effect` is not resolvable from there.\n*/\nfunction resolveEffectVersionFrom(packageDir) {\n\tlet entry;\n\ttry {\n\t\tentry = createRequire(path.join(fs.realpathSync(packageDir), \"noop.js\")).resolve(\"effect\");\n\t} catch {\n\t\treturn;\n\t}\n\tlet dir = path.dirname(entry);\n\twhile (!fs.existsSync(path.join(dir, \"package.json\"))) {\n\t\tconst parent = path.dirname(dir);\n\t\tif (parent === dir) return void 0;\n\t\tdir = parent;\n\t}\n\tconst version = JSON.parse(fs.readFileSync(path.join(dir, \"package.json\"), \"utf-8\")).version;\n\treturn typeof version === \"string\" ? version : void 0;\n}\n/**\n* The `effect` version @prisma/composer pins, read from its own installed\n* package.json — the single source of truth; never hardcoded here. Undefined\n* when @prisma/composer is not resolvable from `startDir` (e.g. the CLI is\n* driven some other way), in which case the check skips.\n*\n* Assumes the pin is an exact version — effectMismatchError compares with\n* `===`, which scripts/check-npm-effect-resolution.mjs enforces in CI;\n* relaxing the pin to a range means revisiting that comparison.\n*/\nfunction requiredEffectVersion(startDir) {\n\tlet manifestPath;\n\ttry {\n\t\tmanifestPath = createRequire(path.join(startDir, \"noop.js\")).resolve(\"@prisma/composer/package.json\");\n\t} catch {\n\t\treturn;\n\t}\n\tconst manifest = JSON.parse(fs.readFileSync(manifestPath, \"utf-8\"));\n\tif (typeof manifest !== \"object\" || manifest === null || !(\"dependencies\" in manifest)) return;\n\tconst dependencies = manifest.dependencies;\n\tif (typeof dependencies !== \"object\" || dependencies === null || !(\"effect\" in dependencies)) return;\n\tconst version = dependencies.effect;\n\treturn typeof version === \"string\" ? version : void 0;\n}\n/** Pure comparison + parts rendering, separated so tests cover the rule without a filesystem. Returns the structured error parts, or undefined when the tree is healthy or either side is unknown. */\nfunction effectMismatchError(found, required) {\n\tif (found === void 0 || required === void 0 || found === required) return void 0;\n\treturn {\n\t\tsummary: `Dependency conflict: alchemy resolves effect@${found}, but @prisma/composer requires effect@${required}.`,\n\t\twhy: \"Your package manager installed a second effect that alchemy picks up; deploying with it would crash inside alchemy.\",\n\t\tfix: `Add this to your app's package.json, then reinstall:\n\n \"overrides\": { \"effect\": \"${required}\" }\\n\\n(npm uses \"overrides\"; yarn calls it \"resolutions\", pnpm \"pnpm.overrides\".)`,\n\t\tmeta: {\n\t\t\tfound,\n\t\t\trequired\n\t\t}\n\t};\n}\n/**\n* Runs the preflight from the app's directory and RETURNS the\n* DEPS.EFFECT_VERSION_CONFLICT error for a mismatched tree; undefined when the\n* tree is healthy or alchemy is not installed.\n*\n* This is the form the config-load machinery uses. The check belongs on the\n* config-load path rather than at import time because that is the first moment\n* anything actually loads alchemy's provider tree — the break it explains —\n* and because a check that runs at import time takes out commands that never\n* touch alchemy at all, help among them.\n*/\nfunction effectResolutionDiagnostic(cwd) {\n\tconst alchemyDir = findAlchemyPackageDir(cwd);\n\tif (alchemyDir === void 0) return void 0;\n\tconst parts = effectMismatchError(resolveEffectVersionFrom(alchemyDir), requiredEffectVersion(cwd));\n\tif (parts === void 0) return void 0;\n\treturn new CliStructuredError(\"DEPS.EFFECT_VERSION_CONFLICT\", parts.summary, {\n\t\twhy: parts.why,\n\t\tfix: parts.fix,\n\t\tmeta: parts.meta\n\t});\n}\n/** The throwing form, used by the executor-load diagnosis — the one caller left now that the bin runs no start-up preflight of its own. */\nfunction checkEffectResolution(cwd) {\n\tconst diagnostic = effectResolutionDiagnostic(cwd);\n\tif (diagnostic !== void 0) throw diagnostic;\n}\n//#endregion\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/** Diagnoses a failed executor import: when the app's tree resolves a\n* mismatched `effect` (the known way that import breaks), the failure is the\n* fix-naming DEPS.EFFECT_VERSION_CONFLICT from checkEffectResolution with the\n* import error riding as cause; otherwise DEPS.EXECUTOR_UNLOADABLE — an\n* environmental failure of the consumer's installed tree, not a bug here. */\nfunction executorLoadFailure(operation, error, cwd) {\n\ttry {\n\t\tcheckEffectResolution(cwd);\n\t} catch (diagnostic) {\n\t\tif (CliStructuredError.is(diagnostic)) return new CliStructuredError(diagnostic.code, diagnostic.message, {\n\t\t\t...diagnostic.why !== void 0 ? { why: diagnostic.why } : {},\n\t\t\t...diagnostic.fix !== void 0 ? { fix: diagnostic.fix } : {},\n\t\t\t...diagnostic.meta !== void 0 ? { meta: diagnostic.meta } : {},\n\t\t\tcause: error\n\t\t});\n\t}\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\nexport { effectResolutionDiagnostic as i, executorLoadFailure as n, toStructured as r, executionDiagnostics as t };\n\n//# sourceMappingURL=shared-BTnATsqm.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAS,sBAAsB,UAAU;CACxC,IAAI,MAAM;CACV,OAAO,MAAM;EACZ,MAAM,YAAY,KAAK,KAAK,KAAK,gBAAgB,SAAS;EAC1D,IAAI,GAAG,WAAW,KAAK,KAAK,WAAW,cAAc,CAAC,GAAG,OAAO;EAChE,MAAM,SAAS,KAAK,QAAQ,GAAG;EAC/B,IAAI,WAAW,KAAK,OAAO,KAAK;EAChC,MAAM;CACP;AACD;;;;;;;AAOA,SAAS,yBAAyB,YAAY;CAC7C,IAAI;CACJ,IAAI;EACH,QAAQ,cAAc,KAAK,KAAK,GAAG,aAAa,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,QAAQ;CAC1F,QAAQ;EACP;CACD;CACA,IAAI,MAAM,KAAK,QAAQ,KAAK;CAC5B,OAAO,CAAC,GAAG,WAAW,KAAK,KAAK,KAAK,cAAc,CAAC,GAAG;EACtD,MAAM,SAAS,KAAK,QAAQ,GAAG;EAC/B,IAAI,WAAW,KAAK,OAAO,KAAK;EAChC,MAAM;CACP;CACA,MAAM,UAAU,KAAK,MAAM,GAAG,aAAa,KAAK,KAAK,KAAK,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;CACrF,OAAO,OAAO,YAAY,WAAW,UAAU,KAAK;AACrD;;;;;;;;;;;AAWA,SAAS,sBAAsB,UAAU;CACxC,IAAI;CACJ,IAAI;EACH,eAA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