@prisma/composer 0.35.0-dev.3 → 0.35.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/app-config-CErnR6NK-D9NgSBH4.mjs +36 -0
  2. package/dist/app-config-CErnR6NK-D9NgSBH4.mjs.map +1 -0
  3. package/dist/{app-config-DR7ku-WW-Dun53zka.d.mts → app-config-XA11xusE-vPWWyUSk.d.mts} +29 -14
  4. package/dist/{app-config-DR7ku-WW-Dun53zka.d.mts.map → app-config-XA11xusE-vPWWyUSk.d.mts.map} +1 -1
  5. package/dist/{config-CdxvLFzg.mjs → config-BFuriECI.mjs} +8 -5
  6. package/dist/config-BFuriECI.mjs.map +1 -0
  7. package/dist/config-C82Nzw7p.d.mts +1 -0
  8. package/dist/config.d.mts +3 -3
  9. package/dist/config.mjs +3 -3
  10. package/dist/control.d.mts +24 -9
  11. package/dist/control.d.mts.map +1 -1
  12. package/dist/control.mjs +3 -3
  13. package/dist/control.mjs.map +1 -1
  14. package/dist/deploy-C82Nzw7p.d.mts +1 -0
  15. package/dist/deploy.d.mts +2 -2
  16. package/dist/{deployment-summary-p88NV5m5-Btf0R5T3.d.mts → deployment-summary-p88NV5m5-CmEiTIAj.d.mts} +3 -3
  17. package/dist/{deployment-summary-p88NV5m5-Btf0R5T3.d.mts.map → deployment-summary-p88NV5m5-CmEiTIAj.d.mts.map} +1 -1
  18. package/dist/{dev-current-8HfFCN7C-C8Ste3qf.mjs → dev-current-DMzFQ3va-CuaeFUh5.mjs} +42 -8
  19. package/dist/dev-current-DMzFQ3va-CuaeFUh5.mjs.map +1 -0
  20. package/dist/dev-environment-name-6eEr5PW8-CGk1ijP7.mjs +43 -0
  21. package/dist/dev-environment-name-6eEr5PW8-CGk1ijP7.mjs.map +1 -0
  22. package/dist/{execute-deploy-destroy-DerNHILD-BStnE2yG.mjs → execute-deploy-destroy-C13H3wl--BJUHsAZQ.mjs} +5 -35
  23. package/dist/execute-deploy-destroy-C13H3wl--BJUHsAZQ.mjs.map +1 -0
  24. package/dist/{execute-dev-D_JvTKjS-BjlfRv3L.mjs → execute-dev-C_SQ02a6-B-4TNU12.mjs} +57 -31
  25. package/dist/execute-dev-C_SQ02a6-B-4TNU12.mjs.map +1 -0
  26. package/dist/{execute-dev-current-BRJkR4Y1-KETGQ-7f.mjs → execute-dev-current-BlIyvq-Q-DYNdH1v4.mjs} +71 -35
  27. package/dist/execute-dev-current-BlIyvq-Q-DYNdH1v4.mjs.map +1 -0
  28. package/dist/{execute-log-kq4gyrh9-DjAlYz6O.mjs → execute-log-BLiBVIIR-LcNvz-28.mjs} +12 -8
  29. package/dist/execute-log-BLiBVIIR-LcNvz-28.mjs.map +1 -0
  30. package/dist/{local-target-BUZG9uLx.mjs → local-target-DySKw61w.mjs} +2 -2
  31. package/dist/local-target-DySKw61w.mjs.map +1 -0
  32. package/dist/local-target.d.mts +2 -2
  33. package/dist/local-target.mjs +3 -3
  34. package/dist/nextjs-control.d.mts +3 -3
  35. package/dist/node-control.d.mts +3 -3
  36. package/dist/report.d.mts +3 -3
  37. package/dist/{pipeline-BmWt-Nhb-D9Eg14Sx.mjs → validate-environment-ymM9O00_-D9TtEyHs.mjs} +13 -3
  38. package/dist/validate-environment-ymM9O00_-D9TtEyHs.mjs.map +1 -0
  39. package/package.json +11 -11
  40. package/skills/prisma-composer-core-concepts/SKILL.md +11 -16
  41. package/dist/app-config-CGJHcFb--CIEFCG4V.mjs +0 -22
  42. package/dist/app-config-CGJHcFb--CIEFCG4V.mjs.map +0 -1
  43. package/dist/config-5sq9lPhi.d.mts +0 -1
  44. package/dist/config-CdxvLFzg.mjs.map +0 -1
  45. package/dist/deploy-5sq9lPhi.d.mts +0 -1
  46. package/dist/dev-current-8HfFCN7C-C8Ste3qf.mjs.map +0 -1
  47. package/dist/execute-deploy-destroy-DerNHILD-BStnE2yG.mjs.map +0 -1
  48. package/dist/execute-dev-D_JvTKjS-BjlfRv3L.mjs.map +0 -1
  49. package/dist/execute-dev-current-BRJkR4Y1-KETGQ-7f.mjs.map +0 -1
  50. package/dist/execute-log-kq4gyrh9-DjAlYz6O.mjs.map +0 -1
  51. package/dist/local-target-BUZG9uLx.mjs.map +0 -1
  52. package/dist/pipeline-BmWt-Nhb-D9Eg14Sx.mjs.map +0 -1
@@ -1,27 +1,15 @@
1
1
  import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
2
2
  import { t as containerEnv } from "./container-transport-HcvNOGZL-twPi2TIv.mjs";
3
- import { n as preflightEnvVarName, t as preflightEnv } from "./config-CdxvLFzg.mjs";
4
- import { c as notOk, l as ok, s as toStructured, u as okVoid } from "./dev-current-8HfFCN7C-C8Ste3qf.mjs";
3
+ import { n as preflightEnvVarName, t as preflightEnv } from "./config-BFuriECI.mjs";
4
+ import { c as toStructured, d as okVoid, l as notOk, s as requireContainerForEnvironment, u as ok } from "./dev-current-DMzFQ3va-CuaeFUh5.mjs";
5
5
  import { a as writeRunReport, i as toRunReport, r as resolveRunReportPath, t as RUN_REPORT_FILE_ENV } from "./run-report-CmBz2-xc-S50d4g5V.mjs";
6
6
  import { a as readEngineFailureCause, i as readDeploymentSummary, r as engineFailureFilePath, t as DEPLOYMENT_RESULT_FILE_ENV } from "./deployment-summary-CDHdLtnO-DrE7GsHq.mjs";
7
- import { i as noComposerExportMessage, r as runPipeline } from "./pipeline-BmWt-Nhb-D9Eg14Sx.mjs";
7
+ import { a as noComposerExportMessage, i as validateEnvironmentName, r as runPipeline } from "./validate-environment-ymM9O00_-D9TtEyHs.mjs";
8
8
  import { n as reproduceCommand, r as spawnAlchemy, t as alchemyInvocation } from "./run-alchemy-Dl_MWw4g-BZaLckHp.mjs";
9
9
  import * as fs$1 from "node:fs";
10
10
  import * as path$1 from "node:path";
11
- import { spawnSync } from "node:child_process";
12
11
  import { randomUUID } from "node:crypto";
13
- //#region ../../0-framework/3-tooling/cli/dist/validate-environment-Y3kuF-NC.mjs
14
- /** Letters, digits, `-` and `_`, starting with a letter or digit: always a valid git ref, so no `git` is needed to check it. */
15
- const PLAIN_ENVIRONMENT_NAME = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
16
- /** An environment name must be a valid git ref (deploy-cli.md) — checked via `git check-ref-format`, never silently normalized. Runs before anything platform-specific. */
17
- function validateEnvironmentName(environment, spawn = spawnSync) {
18
- if (PLAIN_ENVIRONMENT_NAME.test(environment)) return;
19
- const result = spawn("git", ["check-ref-format", `refs/heads/${environment}`], { stdio: "ignore" });
20
- if (result.error) throw new CliStructuredError("DEPLOY.ENVIRONMENT_UNVALIDATABLE", `git is required to validate --environment "${environment}" (git check-ref-format): ${result.error.message}.`, { cause: result.error });
21
- if (result.status !== 0) throw new CliStructuredError("DEPLOY.ENVIRONMENT_INVALID", `Invalid --environment "${environment}": must be a valid git ref name (git check-ref-format rejected "refs/heads/${environment}").`);
22
- }
23
- //#endregion
24
- //#region ../../0-framework/3-tooling/cli/dist/execute-deploy-destroy-DerNHILD.mjs
12
+ //#region ../../0-framework/3-tooling/cli/dist/execute-deploy-destroy-C13H3wl-.mjs
25
13
  /** Pipeline step 6: writes a regenerated-every-run, independently runnable stack module at `.prisma-composer/alchemy.run.ts`. */
26
14
  const GENERATED_DIR = ".prisma-composer";
27
15
  const GENERATED_FILE = "alchemy.run.ts";
@@ -255,24 +243,6 @@ async function finishReporters(reporters, outcome) {
255
243
  }));
256
244
  }
257
245
  /**
258
- * An extension older than this Composer stores the input it is given but
259
- * resolves from a key without `environment`, so it may read every name as
260
- * production. Its `deserialize` rebuilds only the fields it knows, so the
261
- * container the Alchemy child rebuilds shows which environment it really
262
- * resolved. Refusing here keeps a mismatched install from deploying into, or
263
- * destroying, the wrong place.
264
- */
265
- function requireContainerForEnvironment(action, extensionId, descriptor, instance, environment) {
266
- let rebuiltEnvironment;
267
- try {
268
- rebuiltEnvironment = descriptor.deserialize(instance.serialize()).input.environment;
269
- } catch {
270
- rebuiltEnvironment = void 0;
271
- }
272
- if (rebuiltEnvironment === environment) return;
273
- throw new CliStructuredError("DEPS.EXTENSION_INCOMPATIBLE", `The extension ${extensionId} is older than the Composer running this ${action}, so it would not resolve the environment ${environment}.`, { fix: `Install the same Composer version of ${extensionId} as the Composer that runs the ${action}.` });
274
- }
275
- /**
276
246
  * Owns the reporting sessions around the pipeline: the inner run opens them
277
247
  * once it knows which extensions are configured, and this closes them on
278
248
  * every exit path — a returned failure, a success, or a thrown defect — as
@@ -549,4 +519,4 @@ async function runStackPipelineInner(action, opts, reporters) {
549
519
  //#endregion
550
520
  export { executeDeploy, executeDestroy };
551
521
 
552
- //# sourceMappingURL=execute-deploy-destroy-DerNHILD-BStnE2yG.mjs.map
522
+ //# sourceMappingURL=execute-deploy-destroy-C13H3wl--BJUHsAZQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute-deploy-destroy-C13H3wl--BJUHsAZQ.mjs","names":["path","fs"],"sources":["../../../0-framework/3-tooling/cli/dist/execute-deploy-destroy-C13H3wl-.mjs"],"sourcesContent":["import { i as noComposerExportMessage } from \"./composer-config-ehUUVHtU.mjs\";\nimport { i as runPipeline, t as validateEnvironmentName } from \"./validate-environment-ymM9O00_.mjs\";\nimport { a as readEngineFailureCause, i as readDeploymentSummary, r as engineFailureFilePath, t as DEPLOYMENT_RESULT_FILE_ENV } from \"./deployment-summary-CDHdLtnO.mjs\";\nimport { d as toStructured, u as requireContainerForEnvironment } from \"./dev-current-DMzFQ3va.mjs\";\nimport { a as writeRunReport, i as toRunReport, r as resolveRunReportPath, t as RUN_REPORT_FILE_ENV } from \"./run-report-CmBz2-xc.mjs\";\nimport { i as spawnAlchemy, n as alchemyInvocation, r as reproduceCommand } from \"./run-alchemy-Dl_MWw4g.mjs\";\nimport * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { notOk, ok, okVoid } from \"@internal/foundation/result\";\nimport { containerEnv, preflightEnv, preflightEnvVarName } from \"@internal/core/config\";\nimport { randomUUID } from \"node:crypto\";\n//#region src/generate-stack.ts\n/** Pipeline step 6: writes a regenerated-every-run, independently runnable stack module at `.prisma-composer/alchemy.run.ts`. */\nconst GENERATED_DIR = \".prisma-composer\";\nconst GENERATED_FILE = \"alchemy.run.ts\";\n/** A relative import specifier from `.prisma-composer/alchemy.run.ts` to `target` (posix separators). */\nfunction relativeImportSpecifier(generatedDir, target) {\n\tconst rel = path.relative(generatedDir, target).split(path.sep).join(\"/\");\n\treturn rel.startsWith(\".\") ? rel : `./${rel}`;\n}\nfunction quote(value) {\n\treturn JSON.stringify(value);\n}\nfunction renderBundle(bundle) {\n\treturn `{ dir: ${quote(bundle.dir)}, entry: ${quote(bundle.entry)} }`;\n}\nfunction renderOptions(input) {\n\tconst lines = [];\n\tlines.push(` name: ${quote(input.name)},`);\n\tlines.push(\" bundles: {\");\n\tfor (const [id, bundle] of Object.entries(input.assembled.bundles)) lines.push(` ${quote(id)}: ${renderBundle(bundle)},`);\n\tlines.push(\" },\");\n\tlines.push(\" report: report.deploymentReport,\");\n\treturn lines.join(\"\\n\");\n}\n/** Renders the stack module's source (tests assert on it without touching disk) — uses `//` headers, not a block comment, since a cwd path with a star-slash could close one early. */\nfunction renderStackFile(input) {\n\tconst generatedDir = path.join(input.cwd, GENERATED_DIR);\n\tconst appImport = relativeImportSpecifier(generatedDir, input.entryPath);\n\tconst configImport = relativeImportSpecifier(generatedDir, input.configFile);\n\treturn `// Generated by Composer's deploy and destroy operations — overwritten on every\n// run; do not edit by hand. Runnable from ${quote(input.cwd)} WITH the env the\n// CLI passes its child (the PRISMA_COMPOSER_CONTAINER_*/_PREFLIGHT_* vars —\n// without them lower() refuses because no container is resolved), by the\n// command Composer starts, which a failed run prints:\n//\n// <node> <bin of the alchemy @prisma/composer depends on> deploy ${GENERATED_DIR}/${GENERATED_FILE} --yes --stage <stage>\n//\n// bisects a CLI bug from an Alchemy bug (deploy-cli.md § Implementation decisions).\nimport { lower } from '@prisma/composer/deploy';\nimport * as report from '@prisma/composer/report';\nimport prismaConfig from ${quote(configImport)};\nimport app from ${quote(appImport)};\n\nconst config = prismaConfig.composer;\nif (config === undefined) {\n throw new Error(${quote(noComposerExportMessage(input.configFile))});\n}\n\n// The app's own @prisma/composer may predate the failure recorder.\nreport.captureEngineFailure?.();\n\nexport default lower(app, config, {\n${renderOptions(input)}\n});\n`;\n}\n/** Writes the stack file, returning its absolute path. */\nfunction writeStackFile(input) {\n\tconst generatedDir = path.join(input.cwd, GENERATED_DIR);\n\tfs.mkdirSync(generatedDir, { recursive: true });\n\tconst filePath = path.join(generatedDir, GENERATED_FILE);\n\tfs.writeFileSync(filePath, renderStackFile(input));\n\treturn filePath;\n}\nconst GENERATED_STACK_RELATIVE_PATH = path.join(GENERATED_DIR, GENERATED_FILE);\n//#endregion\n//#region src/operations/execute-deploy-destroy.ts\n/**\n* The deploy/destroy executor — main.ts's pipeline orchestration with argv,\n* console, and exit codes removed: typed inputs in, structured results out.\n* Reached only by lazy import from deploy.ts/destroy.ts — this module's\n* static graph transitively loads alchemy's provider tree, so the control\n* entry must never import it statically.\n*/\nconst ALCHEMY_STATE_DIR = \".alchemy\";\n/** Destroy guardrail (moved from main.ts): true when `<cwd>/.alchemy` is missing or empty — likely wrong directory or nothing deployed yet. */\nfunction hasNoLocalDeployState(cwd) {\n\tconst stateDir = path.join(cwd, ALCHEMY_STATE_DIR);\n\treturn !(fs.existsSync(stateDir) && fs.readdirSync(stateDir).length > 0);\n}\n/**\n* Times each deploy step for the host's `onEvent`. A step still open when the\n* run fails is closed as failed, innermost first. A host `onEvent` that throws\n* is the host's bug and cannot fail the deploy.\n*/\nfunction deploySteps(onEvent) {\n\tconst open = /* @__PURE__ */ new Map();\n\tconst keyOf = (step) => step.name === \"assemble-service\" ? `${step.name}:${step.address}` : step.name;\n\tconst emit = (event) => {\n\t\ttry {\n\t\t\tonEvent?.(event);\n\t\t} catch {}\n\t};\n\tconst finish = (step, outcome, data) => {\n\t\tconst entry = open.get(keyOf(step));\n\t\tif (entry === void 0) return;\n\t\topen.delete(keyOf(step));\n\t\tconst durationMs = Math.round(performance.now() - entry.startedAt);\n\t\temit({\n\t\t\tkind: \"step-finished\",\n\t\t\tstep,\n\t\t\toutcome,\n\t\t\tdurationMs,\n\t\t\tdata\n\t\t});\n\t};\n\treturn {\n\t\tstart(step) {\n\t\t\topen.set(keyOf(step), {\n\t\t\t\tstep,\n\t\t\t\tstartedAt: performance.now()\n\t\t\t});\n\t\t\temit({\n\t\t\t\tkind: \"step-started\",\n\t\t\t\tstep\n\t\t\t});\n\t\t},\n\t\tfinish(step, data) {\n\t\t\tfinish(step, \"ok\", data);\n\t\t},\n\t\tfail(step) {\n\t\t\tfinish(step, \"failed\");\n\t\t},\n\t\tfailOpen() {\n\t\t\tfor (const { step } of [...open.values()].reverse()) finish(step, \"failed\");\n\t\t}\n\t};\n}\nasync function executeDeploy(input, deps, cwd) {\n\tconst outcome = await runStackPipeline(\"deploy\", {\n\t\tentry: input.entry,\n\t\tconfig: input.config,\n\t\tname: input.name,\n\t\tenvironment: input.environment ?? \"production\",\n\t\tcwd,\n\t\tonEvent: void 0,\n\t\tdeps,\n\t\treportId: input.reportId,\n\t\treportPath: resolveRunReportPath(input.reportPath, process.env[RUN_REPORT_FILE_ENV], cwd),\n\t\tsteps: deploySteps(input.onEvent)\n\t});\n\tif (!outcome.ok) return outcome;\n\treturn ok({ summary: outcome.value });\n}\nasync function executeDestroy(input, deps, cwd) {\n\tconst outcome = await runStackPipeline(\"destroy\", {\n\t\tentry: input.entry,\n\t\tconfig: input.config,\n\t\tname: input.name,\n\t\tenvironment: input.environment,\n\t\tcwd,\n\t\tonEvent: input.onEvent,\n\t\tdeps,\n\t\treportId: void 0,\n\t\treportPath: void 0,\n\t\tsteps: deploySteps(void 0)\n\t});\n\tif (!outcome.ok) return outcome;\n\treturn okVoid();\n}\n/**\n* Opens a session per extension that declares a reporter. A `begin` that\n* throws costs that extension its reporting and nothing else — the deploy\n* has not started, and refusing to run it because an observer failed would\n* invert the relationship.\n*/\nasync function beginReporters(extensions, context) {\n\treturn (await Promise.all(extensions.map(async (extension) => {\n\t\tif (extension.reporter === void 0) return void 0;\n\t\ttry {\n\t\t\tconst reporter = await extension.reporter.begin(context);\n\t\t\treturn reporter === void 0 ? void 0 : {\n\t\t\t\textensionId: extension.id,\n\t\t\t\treporter\n\t\t\t};\n\t\t} catch (error) {\n\t\t\tconst detail = error instanceof Error ? error.message : String(error);\n\t\t\tconsole.warn(`\\nCould not start deploy reporting for ${extension.id}: ${detail}`);\n\t\t\treturn;\n\t\t}\n\t}))).filter((entry) => entry !== void 0);\n}\n/** Hands each session its own extension's resolved container, so it can attach the run to what that container names. */\nasync function attachReporters(reporters, containers) {\n\tawait Promise.all(reporters.map(async ({ extensionId, reporter }) => {\n\t\ttry {\n\t\t\tawait reporter.attach({ container: containers.get(extensionId) });\n\t\t} catch (error) {\n\t\t\tconst detail = error instanceof Error ? error.message : String(error);\n\t\t\tconsole.warn(`\\nCould not attach this deploy to its project for ${extensionId}: ${detail}`);\n\t\t}\n\t}));\n}\n/** Every session's contribution to the alchemy child's environment, so reporting that happens inside the apply can find the run. */\nfunction reporterChildEnv(reporters) {\n\tconst env = {};\n\tfor (const { extensionId, reporter } of reporters) try {\n\t\tObject.assign(env, reporter.childEnv());\n\t} catch (error) {\n\t\tconst detail = error instanceof Error ? error.message : String(error);\n\t\tconsole.warn(`\\nCould not pass deploy reporting into the apply for ${extensionId}: ${detail}`);\n\t}\n\treturn env;\n}\n/** `failingStep` is capped at 500 by the platform and `errorMessage` at 5000; truncating here keeps a long message from costing the whole report. */\nfunction truncate(value, limit) {\n\treturn value.length <= limit ? value : `${value.slice(0, limit - 1)}…`;\n}\n/** An interrupted converge (the engine settled a Ctrl-C) — reported as `cancelled`, never as `failed`. */\nfunction wasInterrupted(failure) {\n\treturn typeof failure.meta?.[\"signal\"] === \"string\";\n}\n/**\n* Ends every reporting session, whatever the run did. Sessions never reject\n* by contract, but a buggy one must not turn a converged deploy into a\n* failure — so this swallows anyway, and reports each session independently\n* so one bad implementation cannot silence another.\n*/\nasync function finishReporters(reporters, outcome) {\n\tconst entities = outcome.summary?.nodes.flatMap((node) => node.entities) ?? [];\n\tawait Promise.all(reporters.map(async ({ reporter }) => {\n\t\ttry {\n\t\t\tawait reporter.finish({\n\t\t\t\tok: outcome.ok,\n\t\t\t\tcancelled: outcome.cancelled,\n\t\t\t\tfailingStep: outcome.code === void 0 ? void 0 : truncate(outcome.code, 500),\n\t\t\t\terrorMessage: outcome.message === void 0 ? void 0 : truncate(outcome.message, 5e3),\n\t\t\t\tentities\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tconst detail = error instanceof Error ? error.message : String(error);\n\t\t\tconsole.warn(`\\nCould not report this deploy's outcome: ${detail}`);\n\t\t}\n\t}));\n}\n/**\n* Owns the reporting sessions around the pipeline: the inner run opens them\n* once it knows which extensions are configured, and this closes them on\n* every exit path — a returned failure, a success, or a thrown defect — as\n* the `record` step, which also writes the run report.\n* Nothing here can change what the pipeline returns.\n*/\nasync function runStackPipeline(action, opts) {\n\tconst reporters = [];\n\tlet outcome;\n\ttry {\n\t\toutcome = await runStackPipelineInner(action, opts, reporters);\n\t} catch (error) {\n\t\topts.steps.failOpen();\n\t\topts.steps.start({ name: \"record\" });\n\t\tawait finishReporters(reporters, {\n\t\t\tok: false,\n\t\t\tcancelled: false,\n\t\t\tcode: \"DEPLOY.UNEXPECTED\",\n\t\t\tmessage: error instanceof Error ? error.message : String(error)\n\t\t});\n\t\topts.steps.finish({ name: \"record\" });\n\t\tthrow error;\n\t}\n\tif (!outcome.ok) opts.steps.failOpen();\n\topts.steps.start({ name: \"record\" });\n\tawait finishReporters(reporters, outcome.ok ? {\n\t\tok: true,\n\t\tcancelled: false,\n\t\tsummary: outcome.value\n\t} : {\n\t\tok: false,\n\t\tcancelled: wasInterrupted(outcome.failure),\n\t\tcode: outcome.failure.code,\n\t\tmessage: outcome.failure.message\n\t});\n\tif (opts.reportPath === void 0 || writeRunReport(opts.reportPath, toRunReport({\n\t\tsummary: outcome.ok ? outcome.value : void 0,\n\t\tenvironment: opts.environment,\n\t\tfailure: outcome.ok ? void 0 : {\n\t\t\tcode: outcome.failure.code,\n\t\t\tmessage: outcome.failure.message\n\t\t}\n\t}))) opts.steps.finish({ name: \"record\" });\n\telse opts.steps.fail({ name: \"record\" });\n\treturn outcome;\n}\n/** The pipeline both actions share: validate, resolve containers, preflight,\n* write the stack file, run alchemy against it, then the destroy-only\n* teardown/removal suffix. The value is only ever a summary for deploy. */\nasync function runStackPipelineInner(action, opts, reporters) {\n\tconst { entry, config: composerConfig, name, environment, cwd, onEvent, deps, steps } = opts;\n\tsteps.start({ name: \"prepare\" });\n\ttry {\n\t\tvalidateEnvironmentName(environment);\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n\tif (action === \"destroy\" && hasNoLocalDeployState(cwd)) onEvent?.({\n\t\tkind: \"no-local-deploy-state\",\n\t\tcwd\n\t});\n\tlet pipeline;\n\tlet containers;\n\tlet alchemyStage;\n\tconst preflightPayloads = /* @__PURE__ */ new Map();\n\tlet preflightTransportEnv = {};\n\ttry {\n\t\tpipeline = await runPipeline(entry, name, cwd, composerConfig, {\n\t\t\trunAssembler: deps.runAssembler,\n\t\t\tonEvent: (event) => {\n\t\t\t\tswitch (event.kind) {\n\t\t\t\t\tcase \"loaded\":\n\t\t\t\t\t\tsteps.finish({ name: \"prepare\" });\n\t\t\t\t\t\tsteps.start({ name: \"assemble\" });\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase \"service-started\":\n\t\t\t\t\t\tsteps.start({\n\t\t\t\t\t\t\tname: \"assemble-service\",\n\t\t\t\t\t\t\taddress: event.address\n\t\t\t\t\t\t});\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase \"service-assembled\":\n\t\t\t\t\t\tsteps.finish({\n\t\t\t\t\t\t\tname: \"assemble-service\",\n\t\t\t\t\t\t\taddress: event.address\n\t\t\t\t\t\t}, event.data);\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}, action === \"destroy\" ? (error) => new CliStructuredError(\"DEPLOY.BUILD_REQUIRED\", error.message, {\n\t\t\twhy: \"destroy evaluates the same stack program as deploy, which packages the built artifacts — so the app must be built first.\",\n\t\t\tfix: \"Run the build, then retry the destroy.\",\n\t\t\tcause: error\n\t\t}) : void 0);\n\t\tsteps.finish({ name: \"assemble\" });\n\t\tconst { graph, name: resolvedName } = pipeline;\n\t\tconst config = pipeline.configSource.value;\n\t\tsteps.start({ name: \"connect\" });\n\t\tif (action === \"deploy\") reporters.push(...await beginReporters(config.extensions, {\n\t\t\tappName: resolvedName,\n\t\t\tgraph,\n\t\t\tenvironment,\n\t\t\tcwd,\n\t\t\treportId: opts.reportId,\n\t\t\tcredentials: deps.credentials\n\t\t}));\n\t\tcontainers = /* @__PURE__ */ new Map();\n\t\tfor (const extension of config.extensions) {\n\t\t\tif (extension.container === void 0) continue;\n\t\t\ttry {\n\t\t\t\tif (action === \"deploy\") {\n\t\t\t\t\tconst instance = await extension.container.ensure({\n\t\t\t\t\t\tappName: resolvedName,\n\t\t\t\t\t\tenvironment\n\t\t\t\t\t}, deps.credentials);\n\t\t\t\t\trequireContainerForEnvironment(action, extension.id, extension.container, instance, environment);\n\t\t\t\t\tcontainers.set(extension.id, instance);\n\t\t\t\t} else {\n\t\t\t\t\tconst instance = await extension.container.locate({\n\t\t\t\t\t\tappName: resolvedName,\n\t\t\t\t\t\tenvironment\n\t\t\t\t\t}, deps.credentials);\n\t\t\t\t\tif (instance === void 0) throw new CliStructuredError(\"DEPLOY.TARGET_NOT_FOUND\", `Nothing deployed for ${resolvedName} in the environment ${environment}.`, { fix: \"Deploy it first.\" });\n\t\t\t\t\trequireContainerForEnvironment(action, extension.id, extension.container, instance, environment);\n\t\t\t\t\tcontainers.set(extension.id, instance);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tthrow toStructured(\"DEPLOY.CONTAINER_FAILED\", error);\n\t\t\t}\n\t\t}\n\t\tawait attachReporters(reporters, containers);\n\t\talchemyStage = containers.get(config.state.extension)?.alchemyStage ?? environment;\n\t\tsteps.finish({ name: \"connect\" });\n\t\tif (action === \"deploy\") {\n\t\t\tsteps.start({ name: \"preflight\" });\n\t\t\tconst counts = {};\n\t\t\tconst report = (reported) => {\n\t\t\t\tfor (const [key, value] of Object.entries(reported)) counts[key] = (counts[key] ?? 0) + value;\n\t\t\t};\n\t\t\tfor (const extension of config.extensions) {\n\t\t\t\tif (extension.preflight === void 0) continue;\n\t\t\t\ttry {\n\t\t\t\t\tconst payload = await extension.preflight({\n\t\t\t\t\t\tgraph,\n\t\t\t\t\t\tcontainer: containers.get(extension.id),\n\t\t\t\t\t\tenvironment,\n\t\t\t\t\t\tcredentials: deps.credentials,\n\t\t\t\t\t\treport\n\t\t\t\t\t});\n\t\t\t\t\tif (payload !== void 0) preflightPayloads.set(extension.id, payload);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tthrow toStructured(\"DEPLOY.PREFLIGHT_FAILED\", error);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tpreflightTransportEnv = preflightEnv(preflightPayloads);\n\t\t\t} catch (error) {\n\t\t\t\tthrow toStructured(\"DEPLOY.PREFLIGHT_FAILED\", error);\n\t\t\t}\n\t\t\tsteps.finish({ name: \"preflight\" }, counts);\n\t\t}\n\t\tfor (const extension of config.extensions) preflightTransportEnv[preflightEnvVarName(extension.id)] ??= \"\";\n\t} catch (error) {\n\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n\tlet stackPath;\n\tconst resultFilePath = path.join(cwd, \".prisma-composer\", `deployment-result-${String(process.pid)}-${randomUUID()}.json`);\n\ttry {\n\t\ttry {\n\t\t\tstackPath = writeStackFile({\n\t\t\t\tentryPath: pipeline.entryModule.path,\n\t\t\t\tcwd,\n\t\t\t\tconfigFile: pipeline.configSource.file,\n\t\t\t\tname: pipeline.name,\n\t\t\t\tassembled: pipeline.assembled\n\t\t\t});\n\t\t} catch (error) {\n\t\t\treturn notOk(toStructured(\"DEPLOY.STACK_WRITE_FAILED\", error));\n\t\t}\n\t\tconst invocation = alchemyInvocation({\n\t\t\tcommand: action,\n\t\t\tstackFileRelativePath: GENERATED_STACK_RELATIVE_PATH,\n\t\t\tcwd,\n\t\t\tstage: alchemyStage,\n\t\t\tcontainerEnv: containerEnv(containers),\n\t\t\tpreflightEnv: preflightTransportEnv,\n\t\t\tenv: {\n\t\t\t\t...reporterChildEnv(reporters),\n\t\t\t\t[DEPLOYMENT_RESULT_FILE_ENV]: resultFilePath\n\t\t\t}\n\t\t});\n\t\tsteps.start({ name: \"apply\" });\n\t\tlet outcome;\n\t\ttry {\n\t\t\toutcome = await (deps.alchemy ?? spawnAlchemy)(invocation);\n\t\t} catch (error) {\n\t\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\t\treturn notOk(new CliStructuredError(\"DEPLOY.ENGINE_FAILED\", error instanceof Error ? error.message : String(error), {\n\t\t\t\tcause: error,\n\t\t\t\tmeta: { diagnostics: {\n\t\t\t\t\texitCode: void 0,\n\t\t\t\t\tstackFilePath: stackPath,\n\t\t\t\t\treproduceCommand: reproduceCommand(invocation),\n\t\t\t\t\tcwd\n\t\t\t\t} }\n\t\t\t}));\n\t\t}\n\t\tconst reproduce = reproduceCommand(invocation, outcome);\n\t\tif (outcome.signal !== null) return notOk(new CliStructuredError(\"DEPLOY.ENGINE_FAILED\", `alchemy ${action} was interrupted by ${outcome.signal}.`, { meta: {\n\t\t\tsignal: outcome.signal,\n\t\t\tdiagnostics: {\n\t\t\t\texitCode: void 0,\n\t\t\t\tsignal: outcome.signal,\n\t\t\t\tstackFilePath: stackPath,\n\t\t\t\treproduceCommand: reproduce,\n\t\t\t\tcwd\n\t\t\t}\n\t\t} }));\n\t\tconst status = outcome.exitCode ?? 1;\n\t\tif (status !== 0) {\n\t\t\tconst engineCause = readEngineFailureCause(resultFilePath);\n\t\t\tconst withCause = (sentence) => engineCause === void 0 ? sentence : `${sentence}\\n${engineCause}`;\n\t\t\treturn notOk(new CliStructuredError(\"DEPLOY.ENGINE_FAILED\", withCause(`alchemy ${action} exited with status ${status}.`), { meta: {\n\t\t\t\texitCode: status,\n\t\t\t\t...engineCause !== void 0 ? { engineCause } : {},\n\t\t\t\tdiagnostics: {\n\t\t\t\t\texitCode: status,\n\t\t\t\t\tstackFilePath: stackPath,\n\t\t\t\t\treproduceCommand: reproduce,\n\t\t\t\t\tcwd\n\t\t\t\t}\n\t\t\t} }));\n\t\t}\n\t\tsteps.finish({ name: \"apply\" });\n\t\ttry {\n\t\t\tif (action === \"destroy\") {\n\t\t\t\tfor (const extension of pipeline.configSource.value.extensions) {\n\t\t\t\t\tif (extension.teardown === void 0) continue;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait extension.teardown({\n\t\t\t\t\t\t\tcontainer: containers.get(extension.id),\n\t\t\t\t\t\t\tenvironment\n\t\t\t\t\t\t});\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tthrow toStructured(\"DEPLOY.TEARDOWN_FAILED\", error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (const extension of pipeline.configSource.value.extensions) {\n\t\t\t\t\tif (extension.container === void 0) continue;\n\t\t\t\t\tconst instance = containers.get(extension.id);\n\t\t\t\t\tif (instance === void 0) continue;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait extension.container.remove(instance, deps.credentials);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tthrow toStructured(\"DEPLOY.CONTAINER_REMOVE_FAILED\", error);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (CliStructuredError.is(error)) return notOk(error);\n\t\t\tthrow error;\n\t\t}\n\t\tif (action === \"deploy\") return ok(readDeploymentSummary(resultFilePath));\n\t\treturn ok(void 0);\n\t} finally {\n\t\ttry {\n\t\t\tfs.rmSync(resultFilePath, { force: true });\n\t\t\tfs.rmSync(engineFailureFilePath(resultFilePath), { force: true });\n\t\t} catch {}\n\t}\n}\n//#endregion\nexport { executeDeploy, executeDestroy };\n\n//# sourceMappingURL=execute-deploy-destroy-C13H3wl-.mjs.map"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,gBAAgB;AACtB,MAAM,iBAAiB;;AAEvB,SAAS,wBAAwB,cAAc,QAAQ;CACtD,MAAM,MAAMA,OAAK,SAAS,cAAc,MAAM,CAAC,CAAC,MAAMA,OAAK,GAAG,CAAC,CAAC,KAAK,GAAG;CACxE,OAAO,IAAI,WAAW,GAAG,IAAI,MAAM,KAAK;AACzC;AACA,SAAS,MAAM,OAAO;CACrB,OAAO,KAAK,UAAU,KAAK;AAC5B;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,UAAU,MAAM,OAAO,GAAG,EAAE,WAAW,MAAM,OAAO,KAAK,EAAE;AACnE;AACA,SAAS,cAAc,OAAO;CAC7B,MAAM,QAAQ,CAAC;CACf,MAAM,KAAK,WAAW,MAAM,MAAM,IAAI,EAAE,EAAE;CAC1C,MAAM,KAAK,cAAc;CACzB,KAAK,MAAM,CAAC,IAAI,WAAW,OAAO,QAAQ,MAAM,UAAU,OAAO,GAAG,MAAM,KAAK,OAAO,MAAM,EAAE,EAAE,IAAI,aAAa,MAAM,EAAE,EAAE;CAC3H,MAAM,KAAK,MAAM;CACjB,MAAM,KAAK,oCAAoC;CAC/C,OAAO,MAAM,KAAK,IAAI;AACvB;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,MAAM,eAAeA,OAAK,KAAK,MAAM,KAAK,aAAa;CACvD,MAAM,YAAY,wBAAwB,cAAc,MAAM,SAAS;CACvE,MAAM,eAAe,wBAAwB,cAAc,MAAM,UAAU;CAC3E,OAAO;6CACqC,MAAM,MAAM,GAAG,EAAE;;;;;sEAKQ,cAAc,GAAG,eAAe;;;;;2BAK3E,MAAM,YAAY,EAAE;kBAC7B,MAAM,SA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f,MAAM,aAAa,0BAA0B,KAAK;KACnD;IACD;IACA,KAAK,MAAM,aAAa,SAAS,aAAa,MAAM,YAAY;KAC/D,IAAI,UAAU,cAAc,KAAK,GAAG;KACpC,MAAM,WAAW,WAAW,IAAI,UAAU,EAAE;KAC5C,IAAI,aAAa,KAAK,GAAG;KACzB,IAAI;MACH,MAAM,UAAU,UAAU,OAAO,UAAU,KAAK,WAAW;KAC5D,SAAS,OAAO;MACf,MAAM,aAAa,kCAAkC,KAAK;KAC3D;IACD;GACD;EACD,SAAS,OAAO;GACf,IAAI,mBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;GACpD,MAAM;EACP;EACA,IAAI,WAAW,UAAU,OAAO,GAAG,sBAAsB,cAAc,CAAC;EACxE,OAAO,GAAG,KAAK,CAAC;CACjB,UAAU;EACT,IAAI;GACH,KAAG,OAAO,gBAAgB,EAAE,OAAO,KAAK,CAAC;GACzC,KAAG,OAAO,sBAAsB,cAAc,GAAG,EAAE,OAAO,KAAK,CAAC;EACjE,QAAQ,CAAC;CACV;AACD"}
@@ -1,10 +1,12 @@
1
1
  import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
2
2
  import { t as containerEnv } from "./container-transport-HcvNOGZL-twPi2TIv.mjs";
3
- import { t as DEV_DIR } from "./app-config-CGJHcFb--CIEFCG4V.mjs";
4
- import { c as notOk, l as ok, s as toStructured } from "./dev-current-8HfFCN7C-C8Ste3qf.mjs";
5
- import { r as resolveLocalTargets } from "./local-target-BUZG9uLx.mjs";
6
- import { i as noComposerExportMessage, r as runPipeline } from "./pipeline-BmWt-Nhb-D9Eg14Sx.mjs";
3
+ import { i as devEnvironmentDir } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
4
+ import { n as preflightEnvVarName, t as preflightEnv } from "./config-BFuriECI.mjs";
5
+ import { c as toStructured, l as notOk, s as requireContainerForEnvironment, u as ok } from "./dev-current-DMzFQ3va-CuaeFUh5.mjs";
6
+ import { r as resolveLocalTargets } from "./local-target-DySKw61w.mjs";
7
+ import { a as noComposerExportMessage, i as validateEnvironmentName, r as runPipeline } from "./validate-environment-ymM9O00_-D9TtEyHs.mjs";
7
8
  import { n as reproduceCommand, r as spawnAlchemy, t as alchemyInvocation } from "./run-alchemy-Dl_MWw4g-BZaLckHp.mjs";
9
+ import { n as requireDevEnvironmentName, t as claimDevEnvironmentName } from "./dev-environment-name-6eEr5PW8-CGk1ijP7.mjs";
8
10
  import { t as withEmulatorRetry } from "./emulator-retry-CV8rl69G-BgUzkxc-.mjs";
9
11
  import * as fs$1 from "node:fs";
10
12
  import * as path$1 from "node:path";
@@ -18,10 +20,11 @@ import { type } from "os";
18
20
  import { EventEmitter } from "events";
19
21
  import { createHash } from "node:crypto";
20
22
  import { lstat as lstat$1, open, readdir as readdir$1, realpath as realpath$1, stat as stat$2 } from "fs/promises";
21
- //#region ../../0-framework/3-tooling/cli/dist/generate-dev-stack-CfneNj97.mjs
23
+ //#region ../../0-framework/3-tooling/cli/dist/generate-dev-stack-C-1HoAgz.mjs
22
24
  /**
23
- * Local-dev spec § 6 `generate-dev-stack.ts`: like generate-stack.ts but at
24
- * `.prisma-composer/dev/alchemy.run.ts`, always Alchemy stage `dev`, using
25
+ * Local-dev spec § 6 `generate-dev-stack.ts`: like generate-stack.ts but in
26
+ * the environment's folder, `.prisma-composer/dev/<environment>/alchemy.run.ts`,
27
+ * at the Alchemy stage named by the environment, using
25
28
  * Composer's `devState()` (Alchemy's file store) and no `report` — dev prints its own front
26
29
  * door (run-dev.ts), so core's presentation-free lower() gets nothing to
27
30
  * call back into. The generated module IS the one orchestration point where
@@ -31,9 +34,12 @@ import { lstat as lstat$1, open, readdir as readdir$1, realpath as realpath$1, s
31
34
  * `providers: localTargetProviders(...)` + `state: devState()` explicitly
32
35
  * — `lower()` learns nothing about dev.
33
36
  */
34
- const DEV_GENERATED_DIR = ".prisma-composer/dev";
35
37
  const DEV_GENERATED_FILE = "alchemy.run.ts";
36
- /** A relative import specifier from `.prisma-composer/dev/alchemy.run.ts` to `target` (posix separators). */
38
+ /** The stack file's path relative to the cwd. */
39
+ function devStackRelativePath(environment) {
40
+ return path$1.join(devEnvironmentDir(environment), DEV_GENERATED_FILE);
41
+ }
42
+ /** A relative import specifier from the stack file to `target` (posix separators). */
37
43
  function relativeImportSpecifier(generatedDir, target) {
38
44
  const rel = path$1.relative(generatedDir, target).split(path$1.sep).join("/");
39
45
  return rel.startsWith(".") ? rel : `./${rel}`;
@@ -58,13 +64,13 @@ function renderOptions(input) {
58
64
  }
59
65
  /** Renders the dev stack module's source (tests assert on it without touching disk). */
60
66
  function renderDevStackFile(input) {
61
- const generatedDir = path$1.join(input.cwd, DEV_GENERATED_DIR);
67
+ const generatedDir = path$1.join(input.cwd, devEnvironmentDir(input.environment));
62
68
  const appImport = relativeImportSpecifier(generatedDir, input.entryPath);
63
69
  const imports = [
64
70
  "import * as path from 'node:path';",
65
71
  "import { deserializeContainers } from '@prisma/composer/config';",
66
72
  "import { lower } from '@prisma/composer/deploy';",
67
- "import { DEV_DIR, devState, localTargetProviders, resolveLocalTargets } from '@prisma/composer/local-target';",
73
+ "import { devEnvironmentDir, devState, localTargetProviders, resolveLocalTargets } from '@prisma/composer/local-target';",
68
74
  `import prismaConfig from ${quote(relativeImportSpecifier(generatedDir, input.configFile))};`,
69
75
  `import app from ${quote(appImport)};`
70
76
  ].join("\n");
@@ -72,7 +78,7 @@ function renderDevStackFile(input) {
72
78
  // edit by hand. Independently runnable from ${quote(input.cwd)} by the
73
79
  // command Composer starts, which a failed run prints:
74
80
  //
75
- // <node> <bin of the alchemy @prisma/composer depends on> deploy ${DEV_GENERATED_DIR}/${DEV_GENERATED_FILE} --yes --stage dev
81
+ // <node> <bin of the alchemy @prisma/composer depends on> deploy ${devStackRelativePath(input.environment)} --yes --stage ${input.environment}
76
82
  //
77
83
  // bisects a CLI bug from an Alchemy bug (deploy-cli.md § Implementation decisions).
78
84
  ${imports}
@@ -84,7 +90,7 @@ if (config === undefined) {
84
90
 
85
91
  const containers = deserializeContainers(config.extensions, process.env);
86
92
  const resolved = await resolveLocalTargets(config);
87
- const devDir = path.join(process.cwd(), DEV_DIR);
93
+ const devDir = path.join(process.cwd(), devEnvironmentDir(${quote(input.environment)}));
88
94
 
89
95
  export default lower(app, config, {
90
96
  ${renderOptions(input)}
@@ -93,13 +99,12 @@ ${renderOptions(input)}
93
99
  }
94
100
  /** Writes the dev stack file, returning its absolute path. */
95
101
  function writeDevStackFile(input) {
96
- const generatedDir = path$1.join(input.cwd, DEV_GENERATED_DIR);
102
+ const generatedDir = path$1.join(input.cwd, devEnvironmentDir(input.environment));
97
103
  fs$1.mkdirSync(generatedDir, { recursive: true });
98
104
  const filePath = path$1.join(generatedDir, DEV_GENERATED_FILE);
99
105
  fs$1.writeFileSync(filePath, renderDevStackFile(input));
100
106
  return filePath;
101
107
  }
102
- const DEV_STACK_RELATIVE_PATH = path$1.join(DEV_GENERATED_DIR, DEV_GENERATED_FILE);
103
108
  //#endregion
104
109
  //#region ../../0-framework/3-tooling/cli/node_modules/readdirp/esm/index.js
105
110
  const EntryTypes = {
@@ -1649,7 +1654,7 @@ var esm_default = {
1649
1654
  FSWatcher
1650
1655
  };
1651
1656
  //#endregion
1652
- //#region ../../0-framework/3-tooling/cli/dist/execute-dev-D_JvTKjS.mjs
1657
+ //#region ../../0-framework/3-tooling/cli/dist/execute-dev-C_SQ02a6.mjs
1653
1658
  /**
1654
1659
  * Local-dev spec § 6 `watch.ts`: watches each assembled bundle's declared
1655
1660
  * `watch` paths and every authoring module (ADR-0056) — a directory watched
@@ -1850,10 +1855,12 @@ function contentHash(file) {
1850
1855
  async function executeDev(input, deps, cwd) {
1851
1856
  if (process.platform === "win32") return notOk(new CliStructuredError("DEV.PLATFORM_UNSUPPORTED", "local dev is not supported on Windows yet."));
1852
1857
  const { onEvent } = input;
1853
- const devDir = path$1.join(cwd, DEV_DIR);
1858
+ const environment = input.environment ?? "dev";
1859
+ const devDir = path$1.join(cwd, devEnvironmentDir(environment));
1854
1860
  let pipeline;
1855
1861
  let resolved;
1856
1862
  const containers = /* @__PURE__ */ new Map();
1863
+ let preflightTransportEnv = {};
1857
1864
  const attachmentsById = /* @__PURE__ */ new Map();
1858
1865
  const emit = (event) => {
1859
1866
  try {
@@ -1861,6 +1868,7 @@ async function executeDev(input, deps, cwd) {
1861
1868
  } catch {}
1862
1869
  };
1863
1870
  try {
1871
+ validateEnvironmentName(environment);
1864
1872
  const pipelineDeps = {
1865
1873
  runAssembler: deps.runAssembler,
1866
1874
  devServers: true
@@ -1869,37 +1877,51 @@ async function executeDev(input, deps, cwd) {
1869
1877
  const { graph, name } = pipeline;
1870
1878
  const config = pipeline.configSource.value;
1871
1879
  resolved = await resolveLocalTargets(config);
1872
- for (const [id, dev] of resolved) try {
1873
- containers.set(id, await dev.container.ensure({
1874
- appName: name,
1875
- environment: "dev"
1876
- }));
1877
- } catch (error) {
1878
- throw toStructured("DEV.CONTAINER_FAILED", error);
1880
+ for (const [id, dev] of resolved) {
1881
+ let container;
1882
+ try {
1883
+ container = await dev.container.ensure({
1884
+ appName: name,
1885
+ environment
1886
+ });
1887
+ } catch (error) {
1888
+ throw toStructured("DEV.CONTAINER_FAILED", error);
1889
+ }
1890
+ requireContainerForEnvironment("dev", id, dev.container, container, environment);
1891
+ containers.set(id, container);
1879
1892
  }
1893
+ requireDevEnvironmentName(devDir, environment);
1880
1894
  if (input.fresh === true) for (const [id, dev] of resolved) {
1881
1895
  if (dev.teardown === void 0) continue;
1882
1896
  try {
1883
1897
  await dev.teardown({
1884
1898
  container: containers.get(id),
1885
- environment: "dev"
1899
+ environment
1886
1900
  });
1887
1901
  } catch (error) {
1888
1902
  throw toStructured("DEV.TEARDOWN_FAILED", error);
1889
1903
  }
1890
1904
  }
1905
+ const preflightPayloads = /* @__PURE__ */ new Map();
1891
1906
  for (const [id, dev] of resolved) {
1892
1907
  if (dev.preflight === void 0) continue;
1893
1908
  try {
1894
- await dev.preflight({
1909
+ const payload = await dev.preflight({
1895
1910
  graph,
1896
1911
  container: containers.get(id),
1897
- environment: "dev"
1912
+ environment
1898
1913
  });
1914
+ if (payload !== void 0) preflightPayloads.set(id, payload);
1899
1915
  } catch (error) {
1900
1916
  throw toStructured("DEV.PREFLIGHT_FAILED", error);
1901
1917
  }
1902
1918
  }
1919
+ try {
1920
+ preflightTransportEnv = preflightEnv(preflightPayloads);
1921
+ } catch (error) {
1922
+ throw toStructured("DEV.PREFLIGHT_FAILED", error);
1923
+ }
1924
+ for (const extension of config.extensions) preflightTransportEnv[preflightEnvVarName(extension.id)] ??= "";
1903
1925
  for (const [id, dev] of resolved) {
1904
1926
  if (dev.emulators === void 0) continue;
1905
1927
  try {
@@ -1934,17 +1956,20 @@ async function executeDev(input, deps, cwd) {
1934
1956
  }
1935
1957
  const invocation = alchemyInvocation({
1936
1958
  command: "deploy",
1937
- stackFileRelativePath: DEV_STACK_RELATIVE_PATH,
1959
+ stackFileRelativePath: devStackRelativePath(environment),
1938
1960
  cwd,
1939
- stage: "dev",
1940
- containerEnv: containerEnv(containers)
1961
+ stage: environment,
1962
+ containerEnv: containerEnv(containers),
1963
+ preflightEnv: preflightTransportEnv
1941
1964
  });
1942
1965
  const converge = async () => {
1943
1966
  let stackPath;
1944
1967
  try {
1968
+ claimDevEnvironmentName(devDir, environment);
1945
1969
  stackPath = writeDevStackFile({
1946
1970
  entryPath: pipeline.entryModule.path,
1947
1971
  cwd,
1972
+ environment,
1948
1973
  configFile: pipeline.configSource.file,
1949
1974
  name: pipeline.name,
1950
1975
  assembled: pipeline.assembled
@@ -2108,6 +2133,7 @@ async function executeDev(input, deps, cwd) {
2108
2133
  const stackPath = writeDevStackFile({
2109
2134
  entryPath: rePipeline.entryModule.path,
2110
2135
  cwd,
2136
+ environment,
2111
2137
  configFile: rePipeline.configSource.file,
2112
2138
  name: rePipeline.name,
2113
2139
  assembled: rePipeline.assembled
@@ -2203,4 +2229,4 @@ async function executeDev(input, deps, cwd) {
2203
2229
  //#endregion
2204
2230
  export { executeDev };
2205
2231
 
2206
- //# sourceMappingURL=execute-dev-D_JvTKjS-BjlfRv3L.mjs.map
2232
+ //# sourceMappingURL=execute-dev-C_SQ02a6-B-4TNU12.mjs.map