@prisma/composer-cli 0.36.0-dev.5 → 0.36.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-config-CErnR6NK-6QjHJ7q5.mjs → app-config-CErnR6NK-DnKH4Kqc.mjs} +2 -2
- package/dist/{app-config-CErnR6NK-6QjHJ7q5.mjs.map → app-config-CErnR6NK-DnKH4Kqc.mjs.map} +1 -1
- package/dist/app-configuration-file-CeJvBAti-Dk65W3Az.mjs +140 -0
- package/dist/app-configuration-file-CeJvBAti-Dk65W3Az.mjs.map +1 -0
- package/dist/{dev-current-BurA9uhA-BWYAftn9.mjs → dev-current-D0Kn6Mf4-DaV3DWR6.mjs} +5 -5
- package/dist/{dev-current-BurA9uhA-BWYAftn9.mjs.map → dev-current-D0Kn6Mf4-DaV3DWR6.mjs.map} +1 -1
- package/dist/{dev-environment-name-6eEr5PW8-YyPDRApO.mjs → dev-environment-name-6eEr5PW8-DpdGjmTb.mjs} +2 -2
- package/dist/dev-environment-name-6eEr5PW8-DpdGjmTb.mjs.map +1 -0
- package/dist/{dist-BsONwZNR.mjs → dist-DizJD76s.mjs} +2 -2
- package/dist/{dist-BsONwZNR.mjs.map → dist-DizJD76s.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-Cww6zOSC-CmOmzLiB.mjs → execute-deploy-destroy-Dh1CQ9X6-XpXuMPxj.mjs} +58 -66
- package/dist/execute-deploy-destroy-Dh1CQ9X6-XpXuMPxj.mjs.map +1 -0
- package/dist/{execute-dev-4KYkqSMh-uh7gnPyS.mjs → execute-dev-Bl-5Q-Av-DK5AoRw1.mjs} +69 -41
- package/dist/{execute-dev-4KYkqSMh-uh7gnPyS.mjs.map → execute-dev-Bl-5Q-Av-DK5AoRw1.mjs.map} +1 -1
- package/dist/{execute-dev-current-Cd4YEUZk-b2L-LwbT.mjs → execute-dev-current-D3USgHJ4-frlaz_BC.mjs} +6 -6
- package/dist/{execute-dev-current-Cd4YEUZk-b2L-LwbT.mjs.map → execute-dev-current-D3USgHJ4-frlaz_BC.mjs.map} +1 -1
- package/dist/family.d.mts +2 -2
- package/dist/family.mjs +8 -6
- package/dist/family.mjs.map +1 -1
- package/dist/{generate-dev-stack-DS6U_JHX-wDTViqdg.mjs → generate-dev-stack-Cag2Bd4s-CQLqIUWA.mjs} +11 -10
- package/dist/generate-dev-stack-Cag2Bd4s-CQLqIUWA.mjs.map +1 -0
- package/dist/{list-deployed-D5TBZvbj.mjs → list-deployed-DV6_IShe.mjs} +4 -4
- package/dist/{list-deployed-D5TBZvbj.mjs.map → list-deployed-DV6_IShe.mjs.map} +1 -1
- package/dist/{family-DACJfaA5-CBuEC2B3.d.mts → redaction-Bf8FvTFH-M5hYsi--.d.mts} +257 -175
- package/dist/redaction-Bf8FvTFH-M5hYsi--.d.mts.map +1 -0
- package/dist/redaction-HnbkSFrK-BjFRb2aC.mjs +534 -0
- package/dist/redaction-HnbkSFrK-BjFRb2aC.mjs.map +1 -0
- package/dist/{run-alchemy-B-Z6i3cD-f0MXFCG8.mjs → run-alchemy-OS_ix5g0-BzkuReFx.mjs} +29 -12
- package/dist/run-alchemy-OS_ix5g0-BzkuReFx.mjs.map +1 -0
- package/dist/testing.d.mts +31 -2
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +7 -4
- package/dist/testing.mjs.map +1 -1
- package/dist/{validate-environment-BNZC6W46-DY_7cPQJ.mjs → validate-environment-D_dECxgO-fg8lfCME.mjs} +902 -92
- package/dist/validate-environment-D_dECxgO-fg8lfCME.mjs.map +1 -0
- package/package.json +7 -7
- package/src/exports/testing.ts +3 -2
- package/dist/config-adapters-BA_IeiX0-CiRnz7z8.mjs +0 -590
- package/dist/config-adapters-BA_IeiX0-CiRnz7z8.mjs.map +0 -1
- package/dist/dev-environment-name-6eEr5PW8-YyPDRApO.mjs.map +0 -1
- package/dist/execute-deploy-destroy-Cww6zOSC-CmOmzLiB.mjs.map +0 -1
- package/dist/family-DACJfaA5-CBuEC2B3.d.mts.map +0 -1
- package/dist/generate-dev-stack-DS6U_JHX-wDTViqdg.mjs.map +0 -1
- package/dist/run-alchemy-B-Z6i3cD-f0MXFCG8.mjs.map +0 -1
- package/dist/validate-environment-BNZC6W46-DY_7cPQJ.mjs.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { o as
|
|
1
|
+
import { a as nodeAddresses, i as validateEnvironmentName, o as secretsKeys, r as runPipeline } from "./validate-environment-D_dECxgO-fg8lfCME.mjs";
|
|
2
|
+
import { c as redactThrown, n as SecretRedaction, o as redactError, p as noComposerExportMessage, s as redactSummary } from "./redaction-HnbkSFrK-BjFRb2aC.mjs";
|
|
2
3
|
import { i as CliStructuredError, n as ok, o as blindCast, r as okVoid, t as notOk } from "./result-sR7PBi61.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as spawnAlchemy, n as alchemyInvocation, r as reproduceCommand } from "./run-alchemy-B-Z6i3cD-f0MXFCG8.mjs";
|
|
4
|
+
import { c as toStructured, s as requireContainerForEnvironment } from "./dev-current-D0Kn6Mf4-DaV3DWR6.mjs";
|
|
5
|
+
import { i as spawnAlchemy, n as alchemyInvocation, r as reproduceCommand } from "./run-alchemy-OS_ix5g0-BzkuReFx.mjs";
|
|
6
6
|
import { n as preflightEnvVarName, r as containerEnv, t as preflightEnv } from "./config-DiZaanS3.mjs";
|
|
7
|
+
import { i as removeLeftoverAppConfigurationFiles, r as prepareSecondProcess, t as deployAppConfigurationFile } from "./app-configuration-file-CeJvBAti-Dk65W3Az.mjs";
|
|
7
8
|
import * as fs from "node:fs";
|
|
8
9
|
import * as path from "node:path";
|
|
9
10
|
import { randomUUID } from "node:crypto";
|
|
10
|
-
//#region ../../0-framework/3-tooling/cli/dist/deployment-summary-
|
|
11
|
+
//#region ../../0-framework/3-tooling/cli/dist/deployment-summary-BiBkPWlB.mjs
|
|
11
12
|
/**
|
|
12
13
|
* The deploy result's cross-process protocol, whole in one place: the
|
|
13
14
|
* serializable shape, the env var that names the carrier file, the writer the
|
|
@@ -54,45 +55,16 @@ function readDeploymentSummary(resultFilePath) {
|
|
|
54
55
|
function engineFailureFilePath(resultFilePath) {
|
|
55
56
|
return `${resultFilePath}.failure.txt`;
|
|
56
57
|
}
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
* removed, or undefined when it recorded none. The child redacts only what its
|
|
60
|
-
* own environment names as a secret; the parent knows the pools.
|
|
61
|
-
*/
|
|
62
|
-
function readEngineFailureCause(resultFilePath, secrets = []) {
|
|
58
|
+
/** Parent half: the cause the child recorded, passed through `redact`, or undefined when it recorded none. The child redacts only what its own environment names as a credential; the parent also knows the known secrets. */
|
|
59
|
+
function readEngineFailureCause(resultFilePath, redact) {
|
|
63
60
|
let cause;
|
|
64
61
|
try {
|
|
65
62
|
cause = fs.readFileSync(engineFailureFilePath(resultFilePath), "utf8");
|
|
66
63
|
} catch {
|
|
67
64
|
return;
|
|
68
65
|
}
|
|
69
|
-
return cause.length > 0 ?
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* The pool values a failure cause must not carry: every config pool value
|
|
73
|
-
* under a secret-named key, and, when the author lists the `secrets` adapters,
|
|
74
|
-
* every secrets pool value and every config pool value under a key the secrets
|
|
75
|
-
* pool also holds. The default `secrets` list is the whole process
|
|
76
|
-
* environment, which the secret-name rule already covers.
|
|
77
|
-
*/
|
|
78
|
-
function poolSecrets(pools, secretsListed) {
|
|
79
|
-
const values = [];
|
|
80
|
-
for (const [name, value] of Object.entries(pools.config)) {
|
|
81
|
-
if (typeof value !== "string") continue;
|
|
82
|
-
if (SECRET_ENV_NAME.test(name) || secretsListed && Object.hasOwn(pools.secrets, name)) values.push(value);
|
|
83
|
-
}
|
|
84
|
-
if (secretsListed) values.push(...Object.values(pools.secrets));
|
|
85
|
-
return values;
|
|
86
|
-
}
|
|
87
|
-
/** Replaces each value of 8 characters or more, longest first, so a one-letter placeholder does not blank every matching letter. */
|
|
88
|
-
function redactValues(text, values) {
|
|
89
|
-
let redacted = text;
|
|
90
|
-
for (const value of [...values].sort((a, b) => b.length - a.length)) if (value.length >= 8) redacted = redacted.replaceAll(value, REDACTED);
|
|
91
|
-
return redacted;
|
|
66
|
+
return cause.length > 0 ? redact(cause) : void 0;
|
|
92
67
|
}
|
|
93
|
-
/** Env var names whose values are credentials: the service token, preflight payloads, and the usual secret spellings. */
|
|
94
|
-
const SECRET_ENV_NAME = /TOKEN|SECRET|PASSWORD|PASSWD|PRIVATE|CREDENTIAL|AUTH|API_?KEY|ACCESS_?KEY|_KEY$|DATABASE_URL|_DSN$|^PRISMA_COMPOSER_PREFLIGHT_/i;
|
|
95
|
-
const REDACTED = "[redacted]";
|
|
96
68
|
//#endregion
|
|
97
69
|
//#region ../../0-framework/3-tooling/cli/dist/run-report-CmBz2-xc.mjs
|
|
98
70
|
/** Names the file to write the run report to, when `--report` is not passed. */
|
|
@@ -135,7 +107,7 @@ function writeRunReport(filePath, report) {
|
|
|
135
107
|
}
|
|
136
108
|
}
|
|
137
109
|
//#endregion
|
|
138
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-deploy-destroy-
|
|
110
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-deploy-destroy-Dh1CQ9X6.mjs
|
|
139
111
|
/** Pipeline step 6: writes a regenerated-every-run, independently runnable stack module at `.prisma-composer/alchemy.run.ts`. */
|
|
140
112
|
const GENERATED_DIR = ".prisma-composer";
|
|
141
113
|
const GENERATED_FILE = "alchemy.run.ts";
|
|
@@ -154,7 +126,8 @@ function renderOptions(input) {
|
|
|
154
126
|
const lines = [];
|
|
155
127
|
lines.push(` name: ${quote(input.name)},`);
|
|
156
128
|
lines.push(` environment: ${quote(input.environment)},`);
|
|
157
|
-
lines.push("
|
|
129
|
+
lines.push(" appConfigurationRead: file.appConfigurationRead,");
|
|
130
|
+
lines.push(" firstProcessNodeAddresses: file.nodeAddresses,");
|
|
158
131
|
lines.push(" bundles: {");
|
|
159
132
|
for (const [id, bundle] of Object.entries(input.assembled.bundles)) lines.push(` ${quote(id)}: ${renderBundle(bundle)},`);
|
|
160
133
|
lines.push(" },");
|
|
@@ -168,17 +141,17 @@ function renderStackFile(input) {
|
|
|
168
141
|
const configImport = relativeImportSpecifier(generatedDir, input.configFile);
|
|
169
142
|
return `// Generated by Composer's deploy and destroy operations — overwritten on every
|
|
170
143
|
// run; do not edit by hand. Runnable from ${quote(input.cwd)} WITH the env the
|
|
171
|
-
// CLI passes its child (the PRISMA_COMPOSER_CONTAINER_*/_PREFLIGHT_* vars —
|
|
144
|
+
// CLI passes its child (the PRISMA_COMPOSER_CONTAINER_*/_PREFLIGHT_* vars and the app configuration file —
|
|
172
145
|
// without them lower() refuses because no container is resolved), by the
|
|
173
146
|
// command Composer starts, which a failed run prints:
|
|
174
147
|
//
|
|
175
148
|
// <node> <bin of the alchemy @prisma/composer depends on> deploy ${GENERATED_DIR}/${GENERATED_FILE} --yes --stage <stage>
|
|
176
149
|
//
|
|
177
150
|
// bisects a CLI bug from an Alchemy bug (deploy-cli.md § Implementation decisions).
|
|
178
|
-
// It
|
|
151
|
+
// It runs no config adapter: it reads what the first process's Load read from the app configuration file named in PRISMA_COMPOSER_APP_CONFIGURATION_FILE.
|
|
179
152
|
import { lower } from '@prisma/composer/deploy';
|
|
180
153
|
import * as report from '@prisma/composer/report';
|
|
181
|
-
import {
|
|
154
|
+
import { readAppConfigurationFile } from '@prisma/composer/internal/app-configuration-file';
|
|
182
155
|
import prismaConfig from ${quote(configImport)};
|
|
183
156
|
import app from ${quote(appImport)};
|
|
184
157
|
|
|
@@ -187,11 +160,11 @@ if (config === undefined) {
|
|
|
187
160
|
throw new Error(${quote(noComposerExportMessage(input.configFile))});
|
|
188
161
|
}
|
|
189
162
|
|
|
190
|
-
const configPool = await readConfigPool(config, { environment: ${quote(input.environment)}, configFile: ${quote(input.configFile)} });
|
|
191
|
-
|
|
192
163
|
// The app's own @prisma/composer may predate the failure recorder.
|
|
193
164
|
report.captureEngineFailure?.();
|
|
194
165
|
|
|
166
|
+
const file = readAppConfigurationFile(process.env);
|
|
167
|
+
|
|
195
168
|
export default lower(app, config, {
|
|
196
169
|
${renderOptions(input)}
|
|
197
170
|
});
|
|
@@ -278,7 +251,8 @@ async function executeDeploy(input, deps, cwd) {
|
|
|
278
251
|
deps,
|
|
279
252
|
reportId: input.reportId,
|
|
280
253
|
reportPath: resolveRunReportPath(input.reportPath, process.env[RUN_REPORT_FILE_ENV], cwd),
|
|
281
|
-
steps: deploySteps(input.onEvent)
|
|
254
|
+
steps: deploySteps(input.onEvent),
|
|
255
|
+
redaction: new SecretRedaction(process.env)
|
|
282
256
|
});
|
|
283
257
|
if (!outcome.ok) return outcome;
|
|
284
258
|
return ok({ summary: outcome.value });
|
|
@@ -294,7 +268,8 @@ async function executeDestroy(input, deps, cwd) {
|
|
|
294
268
|
deps,
|
|
295
269
|
reportId: void 0,
|
|
296
270
|
reportPath: void 0,
|
|
297
|
-
steps: deploySteps(void 0)
|
|
271
|
+
steps: deploySteps(void 0),
|
|
272
|
+
redaction: new SecretRedaction(process.env)
|
|
298
273
|
});
|
|
299
274
|
if (!outcome.ok) return outcome;
|
|
300
275
|
return okVoid();
|
|
@@ -305,7 +280,7 @@ async function executeDestroy(input, deps, cwd) {
|
|
|
305
280
|
* has not started, and refusing to run it because an observer failed would
|
|
306
281
|
* invert the relationship.
|
|
307
282
|
*/
|
|
308
|
-
async function beginReporters(extensions, context) {
|
|
283
|
+
async function beginReporters(extensions, context, redaction) {
|
|
309
284
|
return (await Promise.all(extensions.map(async (extension) => {
|
|
310
285
|
if (extension.reporter === void 0) return void 0;
|
|
311
286
|
try {
|
|
@@ -316,30 +291,30 @@ async function beginReporters(extensions, context) {
|
|
|
316
291
|
};
|
|
317
292
|
} catch (error) {
|
|
318
293
|
const detail = error instanceof Error ? error.message : String(error);
|
|
319
|
-
console.warn(`\nCould not start deploy reporting for ${extension.id}: ${detail}`);
|
|
294
|
+
console.warn(`\nCould not start deploy reporting for ${extension.id}: ${redaction.redact(detail)}`);
|
|
320
295
|
return;
|
|
321
296
|
}
|
|
322
297
|
}))).filter((entry) => entry !== void 0);
|
|
323
298
|
}
|
|
324
299
|
/** Hands each session its own extension's resolved container, so it can attach the run to what that container names. */
|
|
325
|
-
async function attachReporters(reporters, containers) {
|
|
300
|
+
async function attachReporters(reporters, containers, redaction) {
|
|
326
301
|
await Promise.all(reporters.map(async ({ extensionId, reporter }) => {
|
|
327
302
|
try {
|
|
328
303
|
await reporter.attach({ container: containers.get(extensionId) });
|
|
329
304
|
} catch (error) {
|
|
330
305
|
const detail = error instanceof Error ? error.message : String(error);
|
|
331
|
-
console.warn(`\nCould not attach this deploy to its project for ${extensionId}: ${detail}`);
|
|
306
|
+
console.warn(`\nCould not attach this deploy to its project for ${extensionId}: ${redaction.redact(detail)}`);
|
|
332
307
|
}
|
|
333
308
|
}));
|
|
334
309
|
}
|
|
335
310
|
/** Every session's contribution to the alchemy child's environment, so reporting that happens inside the apply can find the run. */
|
|
336
|
-
function reporterChildEnv(reporters) {
|
|
311
|
+
function reporterChildEnv(reporters, redaction) {
|
|
337
312
|
const env = {};
|
|
338
313
|
for (const { extensionId, reporter } of reporters) try {
|
|
339
314
|
Object.assign(env, reporter.childEnv());
|
|
340
315
|
} catch (error) {
|
|
341
316
|
const detail = error instanceof Error ? error.message : String(error);
|
|
342
|
-
console.warn(`\nCould not pass deploy reporting into the apply for ${extensionId}: ${detail}`);
|
|
317
|
+
console.warn(`\nCould not pass deploy reporting into the apply for ${extensionId}: ${redaction.redact(detail)}`);
|
|
343
318
|
}
|
|
344
319
|
return env;
|
|
345
320
|
}
|
|
@@ -357,7 +332,7 @@ function wasInterrupted(failure) {
|
|
|
357
332
|
* failure — so this swallows anyway, and reports each session independently
|
|
358
333
|
* so one bad implementation cannot silence another.
|
|
359
334
|
*/
|
|
360
|
-
async function finishReporters(reporters, outcome) {
|
|
335
|
+
async function finishReporters(reporters, outcome, redaction) {
|
|
361
336
|
const entities = outcome.summary?.nodes.flatMap((node) => node.entities) ?? [];
|
|
362
337
|
await Promise.all(reporters.map(async ({ reporter }) => {
|
|
363
338
|
try {
|
|
@@ -370,7 +345,7 @@ async function finishReporters(reporters, outcome) {
|
|
|
370
345
|
});
|
|
371
346
|
} catch (error) {
|
|
372
347
|
const detail = error instanceof Error ? error.message : String(error);
|
|
373
|
-
console.warn(`\nCould not report this deploy's outcome: ${detail}`);
|
|
348
|
+
console.warn(`\nCould not report this deploy's outcome: ${redaction.redact(detail)}`);
|
|
374
349
|
}
|
|
375
350
|
}));
|
|
376
351
|
}
|
|
@@ -389,15 +364,17 @@ async function runStackPipeline(action, opts) {
|
|
|
389
364
|
} catch (error) {
|
|
390
365
|
opts.steps.failOpen();
|
|
391
366
|
opts.steps.start({ name: "record" });
|
|
367
|
+
const thrown = redactThrown(error, opts.redaction);
|
|
392
368
|
await finishReporters(reporters, {
|
|
393
369
|
ok: false,
|
|
394
370
|
cancelled: false,
|
|
395
371
|
code: "DEPLOY.UNEXPECTED",
|
|
396
|
-
message:
|
|
397
|
-
});
|
|
372
|
+
message: thrown.message
|
|
373
|
+
}, opts.redaction);
|
|
398
374
|
opts.steps.finish({ name: "record" });
|
|
399
|
-
throw
|
|
375
|
+
throw thrown;
|
|
400
376
|
}
|
|
377
|
+
if (!outcome.ok) outcome = notOk(redactError(outcome.failure, opts.redaction));
|
|
401
378
|
if (!outcome.ok) opts.steps.failOpen();
|
|
402
379
|
opts.steps.start({ name: "record" });
|
|
403
380
|
await finishReporters(reporters, outcome.ok ? {
|
|
@@ -409,7 +386,7 @@ async function runStackPipeline(action, opts) {
|
|
|
409
386
|
cancelled: wasInterrupted(outcome.failure),
|
|
410
387
|
code: outcome.failure.code,
|
|
411
388
|
message: outcome.failure.message
|
|
412
|
-
});
|
|
389
|
+
}, opts.redaction);
|
|
413
390
|
if (opts.reportPath === void 0 || writeRunReport(opts.reportPath, toRunReport({
|
|
414
391
|
summary: outcome.ok ? outcome.value : void 0,
|
|
415
392
|
environment: opts.environment,
|
|
@@ -427,6 +404,7 @@ async function runStackPipeline(action, opts) {
|
|
|
427
404
|
async function runStackPipelineInner(action, opts, reporters) {
|
|
428
405
|
const { entry, config: composerConfig, name, environment, cwd, onEvent, deps, steps } = opts;
|
|
429
406
|
steps.start({ name: "prepare" });
|
|
407
|
+
removeLeftoverAppConfigurationFiles(cwd);
|
|
430
408
|
try {
|
|
431
409
|
validateEnvironmentName(environment);
|
|
432
410
|
} catch (error) {
|
|
@@ -446,6 +424,7 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
446
424
|
pipeline = await runPipeline(entry, name, environment, cwd, composerConfig, {
|
|
447
425
|
runAssembler: deps.runAssembler,
|
|
448
426
|
readSecrets: action === "deploy",
|
|
427
|
+
redaction: opts.redaction,
|
|
449
428
|
onEvent: (event) => {
|
|
450
429
|
switch (event.kind) {
|
|
451
430
|
case "loaded":
|
|
@@ -482,7 +461,7 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
482
461
|
cwd,
|
|
483
462
|
reportId: opts.reportId,
|
|
484
463
|
credentials: deps.credentials
|
|
485
|
-
}));
|
|
464
|
+
}, opts.redaction));
|
|
486
465
|
containers = /* @__PURE__ */ new Map();
|
|
487
466
|
for (const extension of config.extensions) {
|
|
488
467
|
if (extension.container === void 0) continue;
|
|
@@ -507,7 +486,7 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
507
486
|
throw toStructured("DEPLOY.CONTAINER_FAILED", error);
|
|
508
487
|
}
|
|
509
488
|
}
|
|
510
|
-
await attachReporters(reporters, containers);
|
|
489
|
+
await attachReporters(reporters, containers, opts.redaction);
|
|
511
490
|
alchemyStage = containers.get(config.state.extension)?.alchemyStage ?? environment;
|
|
512
491
|
steps.finish({ name: "connect" });
|
|
513
492
|
if (action === "deploy") {
|
|
@@ -523,7 +502,8 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
523
502
|
graph,
|
|
524
503
|
container: containers.get(extension.id),
|
|
525
504
|
environment,
|
|
526
|
-
|
|
505
|
+
configuration: pipeline.configuration,
|
|
506
|
+
secrets: pipeline.secrets,
|
|
527
507
|
credentials: deps.credentials,
|
|
528
508
|
report
|
|
529
509
|
});
|
|
@@ -546,8 +526,16 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
546
526
|
}
|
|
547
527
|
let stackPath;
|
|
548
528
|
const resultFilePath = path.join(cwd, ".prisma-composer", `deployment-result-${String(process.pid)}-${randomUUID()}.json`);
|
|
529
|
+
let handover;
|
|
549
530
|
try {
|
|
550
531
|
try {
|
|
532
|
+
handover = prepareSecondProcess({
|
|
533
|
+
file: deployAppConfigurationFile(cwd, randomUUID()),
|
|
534
|
+
appConfigurationRead: pipeline.graph.appConfigurationRead,
|
|
535
|
+
nodeAddresses: nodeAddresses(pipeline.graph),
|
|
536
|
+
secretsKeys: secretsKeys(pipeline.graph),
|
|
537
|
+
knownSecrets: opts.redaction.knownSecrets
|
|
538
|
+
});
|
|
551
539
|
stackPath = writeStackFile({
|
|
552
540
|
entryPath: pipeline.entryModule.path,
|
|
553
541
|
cwd,
|
|
@@ -556,6 +544,7 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
556
544
|
environment,
|
|
557
545
|
assembled: pipeline.assembled
|
|
558
546
|
});
|
|
547
|
+
handover.writeFile();
|
|
559
548
|
} catch (error) {
|
|
560
549
|
return notOk(toStructured("DEPLOY.STACK_WRITE_FAILED", error));
|
|
561
550
|
}
|
|
@@ -567,9 +556,11 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
567
556
|
containerEnv: containerEnv(containers),
|
|
568
557
|
preflightEnv: preflightTransportEnv,
|
|
569
558
|
env: {
|
|
570
|
-
...reporterChildEnv(reporters),
|
|
559
|
+
...reporterChildEnv(reporters, opts.redaction),
|
|
560
|
+
...handover.env,
|
|
571
561
|
[DEPLOYMENT_RESULT_FILE_ENV]: resultFilePath
|
|
572
|
-
}
|
|
562
|
+
},
|
|
563
|
+
redactedValues: opts.redaction.allValues()
|
|
573
564
|
});
|
|
574
565
|
steps.start({ name: "apply" });
|
|
575
566
|
let outcome;
|
|
@@ -600,7 +591,7 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
600
591
|
} }));
|
|
601
592
|
const status = outcome.exitCode ?? 1;
|
|
602
593
|
if (status !== 0) {
|
|
603
|
-
const engineCause = readEngineFailureCause(resultFilePath,
|
|
594
|
+
const engineCause = readEngineFailureCause(resultFilePath, (text) => opts.redaction.redact(text));
|
|
604
595
|
const withCause = (sentence) => engineCause === void 0 ? sentence : `${sentence}\n${engineCause}`;
|
|
605
596
|
return notOk(new CliStructuredError("DEPLOY.ENGINE_FAILED", withCause(`alchemy ${action} exited with status ${status}.`), { meta: {
|
|
606
597
|
exitCode: status,
|
|
@@ -642,16 +633,17 @@ async function runStackPipelineInner(action, opts, reporters) {
|
|
|
642
633
|
if (CliStructuredError.is(error)) return notOk(error);
|
|
643
634
|
throw error;
|
|
644
635
|
}
|
|
645
|
-
if (action === "deploy") return ok(readDeploymentSummary(resultFilePath));
|
|
636
|
+
if (action === "deploy") return ok(redactSummary(readDeploymentSummary(resultFilePath), opts.redaction));
|
|
646
637
|
return ok(void 0);
|
|
647
638
|
} finally {
|
|
648
639
|
try {
|
|
649
640
|
fs.rmSync(resultFilePath, { force: true });
|
|
650
641
|
fs.rmSync(engineFailureFilePath(resultFilePath), { force: true });
|
|
651
642
|
} catch {}
|
|
643
|
+
handover?.removeFile();
|
|
652
644
|
}
|
|
653
645
|
}
|
|
654
646
|
//#endregion
|
|
655
647
|
export { executeDeploy, executeDestroy };
|
|
656
648
|
|
|
657
|
-
//# sourceMappingURL=execute-deploy-destroy-
|
|
649
|
+
//# sourceMappingURL=execute-deploy-destroy-Dh1CQ9X6-XpXuMPxj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-deploy-destroy-Dh1CQ9X6-XpXuMPxj.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/deployment-summary-BiBkPWlB.mjs","../../../0-framework/3-tooling/cli/dist/run-report-CmBz2-xc.mjs","../../../0-framework/3-tooling/cli/dist/execute-deploy-destroy-Dh1CQ9X6.mjs"],"sourcesContent":["import { a as redactCredentialLooking } from \"./redaction-HnbkSFrK.mjs\";\nimport * as fs from \"node:fs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport { format, stripVTControlCharacters } from \"node:util\";\n//#region src/deployment-summary.ts\n/**\n* The deploy result's cross-process protocol, whole in one place: the\n* serializable shape, the env var that names the carrier file, the writer the\n* report hook calls from inside the alchemy child, and the reader the deploy\n* operation runs after the child exits. `DeploymentResult` itself cannot\n* cross the boundary — its `DeployedNode` entries hold live graph-node\n* references (ADR-0033) — so the writer projects it down to what CAN.\n*\n* The summary is best-effort by contract: the writer never fails the child\n* over it, and the reader maps absent or malformed to `undefined`. So is the\n* failure cause the child leaves beside it when it exits non-zero.\n*/\n/** Env var the deploy operation sets on the alchemy child: when present,\n* the report hook also writes the JSON DeploymentSummary there. */\nconst DEPLOYMENT_RESULT_FILE_ENV = \"PRISMA_COMPOSER_DEPLOYMENT_RESULT_FILE\";\n/** Pure projection: keeps app + each node's address/entities, drops the in-process `node`. */\nfunction toDeploymentSummary(result) {\n\treturn {\n\t\tapp: result.app,\n\t\tnodes: result.nodes.map((node) => ({\n\t\t\taddress: node.address,\n\t\t\tentities: node.entities\n\t\t}))\n\t};\n}\n/**\n* Writer half, called by the report hook inside the alchemy child: when the\n* env var names a file, write the summary there. Best-effort — a write\n* failure must not fail a deploy that already converged, so it is swallowed.\n*/\nfunction writeDeploymentSummaryFile(result) {\n\tconst file = process.env[DEPLOYMENT_RESULT_FILE_ENV];\n\tif (file === void 0 || file.length === 0) return;\n\ttry {\n\t\tfs.writeFileSync(file, JSON.stringify(toDeploymentSummary(result)));\n\t} catch {}\n}\nfunction isRecord(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\n/**\n* Reader half, run by the deploy operation after the child exits. Absent or\n* malformed → undefined — the summary is best-effort, never a deploy failure.\n*/\nfunction readDeploymentSummary(resultFilePath) {\n\tlet raw;\n\ttry {\n\t\traw = fs.readFileSync(resultFilePath, \"utf8\");\n\t} catch {\n\t\treturn;\n\t}\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch {\n\t\treturn;\n\t}\n\tif (!isRecord(parsed) || typeof parsed[\"app\"] !== \"string\" || !Array.isArray(parsed[\"nodes\"])) return;\n\tfor (const node of parsed[\"nodes\"]) {\n\t\tif (!isRecord(node) || typeof node[\"address\"] !== \"string\" || !Array.isArray(node[\"entities\"])) return;\n\t\tfor (const entity of node[\"entities\"]) if (!isRecord(entity) || typeof entity[\"kind\"] !== \"string\" || typeof entity[\"id\"] !== \"string\") return;\n\t}\n\treturn blindCast(parsed);\n}\n/** The child's failure cause rides beside the result file, so the one env var names both and the parent's cleanup removes both. */\nfunction engineFailureFilePath(resultFilePath) {\n\treturn `${resultFilePath}.failure.txt`;\n}\n/** Fits the platform's 5000-character build `errorMessage` with room for the exit-status prefix. */\nconst ENGINE_FAILURE_CAUSE_LIMIT = 1e3;\n/** Alchemy's advice to rerun its own CLI with `--adopt`, which a Composer user has no way to do. */\nconst ALCHEMY_ADOPT_ADVICE = [[/Re-run with `--adopt` \\(or wrap the effect in `adopt\\(true\\)`\\) to take it over\\./g, \"Something other than this app holds it. Remove that resource, then deploy again.\"], [/\\(re-deploy with --adopt to take ownership, then destroy\\)/g, \"(remove it by hand)\"]];\n/** Replaces Alchemy CLI advice in engine output with steps that work from Composer. */\nfunction withComposerAdvice(text) {\n\treturn ALCHEMY_ADOPT_ADVICE.reduce((current, [advice, replacement]) => current.replace(advice, replacement), text);\n}\nconst STDOUT_CONSOLE_METHODS = /* @__PURE__ */ new Set([\n\t\"log\",\n\t\"info\",\n\t\"debug\"\n]);\n/**\n* Child half of the failure protocol, called by the generated stack file.\n* Keeps a bounded tail of everything this process logs through `console`,\n* passing every call through except Alchemy's CLI advice (see\n* {@link withComposerAdvice}), and on a non-zero exit writes the\n* redacted cause beside the result file. `console`, not the output streams:\n* alchemy's logger and its error reporting both go through it, and under Bun\n* `console` does not reach `process.stdout.write`.\n*\n* When stdout is not a terminal it carries the parent's data lines, so\n* everything this process prints goes to stderr instead.\n*/\nfunction captureEngineFailure() {\n\tconst resultFile = process.env[DEPLOYMENT_RESULT_FILE_ENV];\n\tif (resultFile === void 0 || resultFile.length === 0) return;\n\tconst stdoutToStderr = process.stdout.isTTY !== true;\n\tif (stdoutToStderr) process.stdout.write = process.stderr.write.bind(process.stderr);\n\tlet tail = \"\";\n\tfor (const method of [\n\t\t\"log\",\n\t\t\"info\",\n\t\t\"warn\",\n\t\t\"error\",\n\t\t\"debug\"\n\t]) {\n\t\tconst original = stdoutToStderr && STDOUT_CONSOLE_METHODS.has(method) ? console.error : console[method];\n\t\tconsole[method] = (...args) => {\n\t\t\tconst text = format(...args);\n\t\t\tconst shown = withComposerAdvice(text);\n\t\t\ttail = `${tail}${redactCredentialLooking(shown, process.env)}\\n`.slice(-65536);\n\t\t\tif (shown === text) original.apply(console, args);\n\t\t\telse original.call(console, shown);\n\t\t};\n\t}\n\tprocess.once(\"exit\", (code) => {\n\t\tif (code === 0) return;\n\t\tconst cause = engineFailureCause(tail, process.env);\n\t\tif (cause === void 0) return;\n\t\ttry {\n\t\t\tfs.writeFileSync(engineFailureFilePath(resultFile), cause);\n\t\t} catch {}\n\t});\n}\n/** Parent half: the cause the child recorded, passed through `redact`, or undefined when it recorded none. The child redacts only what its own environment names as a credential; the parent also knows the known secrets. */\nfunction readEngineFailureCause(resultFilePath, redact) {\n\tlet cause;\n\ttry {\n\t\tcause = fs.readFileSync(engineFailureFilePath(resultFilePath), \"utf8\");\n\t} catch {\n\t\treturn;\n\t}\n\treturn cause.length > 0 ? redact(cause) : void 0;\n}\n/** Effect's pretty log prefix, e.g. `[10:29:16.556] INFO (#53): `. */\nconst LOG_PREFIX = /^\\[[\\d:.]+\\] ([A-Z]+) \\(#\\d+\\): ?/;\n/** Alchemy's per-resource failure row, e.g. `[web] fail — UnknownError: …`. */\nconst RESOURCE_FAIL_ROW = /^\\[[^\\]]+\\] fail\\b/;\nconst STACK_FRAME = /^\\s*at /;\n/**\n* The failure the output describes: every line from the first failure line\n* (a failed resource row, an ERROR log, or an `error:` line) to the end, minus\n* blank lines, stack frames and info logs; the last five lines when there is no\n* failure line. Redacted, then capped.\n*/\nfunction engineFailureCause(output, env) {\n\tconst lines = [];\n\tfor (const raw of stripVTControlCharacters(output).split(/\\r\\n|\\r|\\n/)) {\n\t\tconst clean = raw.replace(/(?![\\t])\\p{Cc}/gu, \"\").trimEnd();\n\t\tconst prefix = LOG_PREFIX.exec(clean);\n\t\tconst text = (prefix === null ? clean : clean.slice(prefix[0].length)).trim();\n\t\tif (text.length === 0 || text === \"{\" || text === \"}\" || STACK_FRAME.test(text)) continue;\n\t\tconst level = prefix?.[1];\n\t\tconst failure = level === \"ERROR\" || level === \"FATAL\" || RESOURCE_FAIL_ROW.test(text) || /^\\W*error:/i.test(text);\n\t\tlines.push({\n\t\t\ttext,\n\t\t\tfailure,\n\t\t\tinfo: !failure && level !== void 0\n\t\t});\n\t}\n\tconst start = lines.findIndex((line) => line.failure);\n\tconst kept = start === -1 ? lines.slice(-5) : lines.slice(start).filter((line) => !line.info);\n\tif (kept.length === 0) return void 0;\n\tconst cause = redactCredentialLooking(kept.map((line) => line.text).join(\"\\n\"), env);\n\treturn cause.length <= ENGINE_FAILURE_CAUSE_LIMIT ? cause : `${cause.slice(0, ENGINE_FAILURE_CAUSE_LIMIT - 1)}…`;\n}\n//#endregion\nexport { readEngineFailureCause as a, readDeploymentSummary as i, captureEngineFailure as n, writeDeploymentSummaryFile as o, engineFailureFilePath as r, DEPLOYMENT_RESULT_FILE_ENV as t };\n\n//# sourceMappingURL=deployment-summary-BiBkPWlB.mjs.map","import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\n//#region src/run-report.ts\n/**\n* The run report: one deploy's outcome as JSON, for tools that consume a\n* deploy rather than watch one — the Prisma GitHub Action reads it to build a\n* pull-request comment carrying preview links.\n*\n* Deliberately separate from `deployment-summary.ts`. That file is a private\n* carrier between the alchemy child and this process, written to a\n* per-run path the parent deletes in a `finally` so resource ids and URLs do\n* not accumulate on disk. This one is written where the operator asked for\n* it, survives the run, is written on the failure path too, and carries a\n* version so a consumer can depend on its shape.\n*/\n/** Bump when a change would break a consumer that reads the current shape. */\nconst RUN_REPORT_VERSION = 2;\n/** Names the file to write the run report to, when `--report` is not passed. */\nconst RUN_REPORT_FILE_ENV = \"PRISMA_COMPOSER_REPORT_FILE\";\nfunction toRunReport(input) {\n\treturn {\n\t\tversion: 2,\n\t\toutcome: input.failure === void 0 ? \"succeeded\" : \"failed\",\n\t\tapp: input.summary?.app ?? null,\n\t\tenvironment: input.environment,\n\t\tnodes: input.summary?.nodes ?? [],\n\t\tfailure: input.failure ?? null\n\t};\n}\n/**\n* The path to write to: the `--report` flag first, then the env var. Relative\n* paths resolve against the deploy's cwd. `undefined` means no report was\n* asked for, which is the common case and writes nothing.\n*/\nfunction resolveRunReportPath(flag, env, cwd) {\n\tconst requested = flag !== void 0 && flag.length > 0 ? flag : env;\n\tif (requested === void 0 || requested.length === 0) return void 0;\n\treturn path.resolve(cwd, requested);\n}\n/**\n* Writes the report, creating the parent directory if needed. A write failure\n* warns and returns false rather than failing a deploy that already\n* converged — but it is never silent, because the operator asked for this\n* file and a consumer is waiting on it.\n*/\nfunction writeRunReport(filePath, report) {\n\ttry {\n\t\tfs.mkdirSync(path.dirname(filePath), { recursive: true });\n\t\tfs.writeFileSync(filePath, `${JSON.stringify(report, null, 2)}\\n`);\n\t\treturn true;\n\t} catch (error) {\n\t\tconst detail = error instanceof Error ? error.message : String(error);\n\t\tconsole.warn(`\\nCould not write the run report to ${filePath}: ${detail}`);\n\t\treturn false;\n\t}\n}\n//#endregion\nexport { writeRunReport as a, toRunReport as i, RUN_REPORT_VERSION as n, resolveRunReportPath as r, RUN_REPORT_FILE_ENV as t };\n\n//# sourceMappingURL=run-report-CmBz2-xc.mjs.map","import { i as runPipeline, t as validateEnvironmentName } from \"./validate-environment-D_dECxgO.mjs\";\nimport { i as noComposerExportMessage } from \"./composer-config-DO_iG0iR.mjs\";\nimport { c as redactSummary, l as redactThrown, n as SecretRedaction, s as redactError } from \"./redaction-HnbkSFrK.mjs\";\nimport { a as readEngineFailureCause, i as readDeploymentSummary, r as engineFailureFilePath, t as DEPLOYMENT_RESULT_FILE_ENV } from \"./deployment-summary-BiBkPWlB.mjs\";\nimport { i as prepareSecondProcess, o as removeLeftoverAppConfigurationFiles, t as deployAppConfigurationFile } from \"./app-configuration-file-CeJvBAti.mjs\";\nimport { d as toStructured, u as requireContainerForEnvironment } from \"./dev-current-D0Kn6Mf4.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-OS_ix5g0.mjs\";\nimport * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { nodeAddresses, secretsKeys } from \"@internal/core/deploy\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { containerEnv, preflightEnv, preflightEnvVarName } from \"@internal/core/config\";\nimport { notOk, ok, okVoid } from \"@internal/foundation/result\";\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(` environment: ${quote(input.environment)},`);\n\tlines.push(\" appConfigurationRead: file.appConfigurationRead,\");\n\tlines.push(\" firstProcessNodeAddresses: file.nodeAddresses,\");\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 and the app configuration file —\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).\n// It runs no config adapter: it reads what the first process's Load read from the app configuration file named in PRISMA_COMPOSER_APP_CONFIGURATION_FILE.\nimport { lower } from '@prisma/composer/deploy';\nimport * as report from '@prisma/composer/report';\nimport { readAppConfigurationFile } from '@prisma/composer/internal/app-configuration-file';\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\nconst file = readAppConfigurationFile(process.env);\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\tredaction: new SecretRedaction(process.env)\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\tredaction: new SecretRedaction(process.env)\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, redaction) {\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}: ${redaction.redact(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, redaction) {\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}: ${redaction.redact(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, redaction) {\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}: ${redaction.redact(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, redaction) {\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: ${redaction.redact(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\tconst thrown = redactThrown(error, opts.redaction);\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: thrown.message\n\t\t}, opts.redaction);\n\t\topts.steps.finish({ name: \"record\" });\n\t\tthrow thrown;\n\t}\n\tif (!outcome.ok) outcome = notOk(redactError(outcome.failure, opts.redaction));\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}, opts.redaction);\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\tremoveLeftoverAppConfigurationFiles(cwd);\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, environment, cwd, composerConfig, {\n\t\t\trunAssembler: deps.runAssembler,\n\t\t\treadSecrets: action === \"deploy\",\n\t\t\tredaction: opts.redaction,\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}, opts.redaction));\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, opts.redaction);\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\tconfiguration: pipeline.configuration,\n\t\t\t\t\t\tsecrets: pipeline.secrets,\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\tlet handover;\n\ttry {\n\t\ttry {\n\t\t\thandover = prepareSecondProcess({\n\t\t\t\tfile: deployAppConfigurationFile(cwd, randomUUID()),\n\t\t\t\tappConfigurationRead: pipeline.graph.appConfigurationRead,\n\t\t\t\tnodeAddresses: nodeAddresses(pipeline.graph),\n\t\t\t\tsecretsKeys: secretsKeys(pipeline.graph),\n\t\t\t\tknownSecrets: opts.redaction.knownSecrets\n\t\t\t});\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\tenvironment,\n\t\t\t\tassembled: pipeline.assembled\n\t\t\t});\n\t\t\thandover.writeFile();\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, opts.redaction),\n\t\t\t\t...handover.env,\n\t\t\t\t[DEPLOYMENT_RESULT_FILE_ENV]: resultFilePath\n\t\t\t},\n\t\t\tredactedValues: opts.redaction.allValues()\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, (text) => opts.redaction.redact(text));\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(redactSummary(readDeploymentSummary(resultFilePath), opts.redaction));\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\thandover?.removeFile();\n\t}\n}\n//#endregion\nexport { executeDeploy, executeDestroy };\n\n//# sourceMappingURL=execute-deploy-destroy-Dh1CQ9X6.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,6BAA6B;AAuBnC,SAAS,SAAS,OAAO;CACxB,OAAO,OAAO,UAAU,YAAY,UAAU;AAC/C;;;;;AAKA,SAAS,sBAAsB,gBAAgB;CAC9C,IAAI;CACJ,IAAI;EACH,MAAM,GAAG,aAAa,gBAAgB,MAAM;CAC7C,QAAQ;EACP;CACD;CACA,IAAI;CACJ,IAAI;EACH,SAAS,KAAK,MAAM,GAAG;CACxB,QAAQ;EACP;CACD;CACA,IAAI,CAAC,SAAS,MAAM,KAAK,OAAO,OAAO,WAAW,YAAY,CAAC,MAAM,QAAQ,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