@prisma/composer 0.39.0-dev.1 → 0.39.0-dev.11

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 (141) hide show
  1. package/dist/{app-config-UeKFBma7-CohaMmWp.d.mts → app-config-DriAu5RU-C8hYpR38.d.mts} +88 -83
  2. package/dist/app-config-DriAu5RU-C8hYpR38.d.mts.map +1 -0
  3. package/dist/{app-configuration-file-CeJvBAti-D3uDlheX.mjs → app-configuration-file-D0rB5g65-CdMrjkCc.mjs} +50 -85
  4. package/dist/app-configuration-file-D0rB5g65-CdMrjkCc.mjs.map +1 -0
  5. package/dist/app-converge-bS1l9jIf-DRGbjw2D.mjs +88 -0
  6. package/dist/app-converge-bS1l9jIf-DRGbjw2D.mjs.map +1 -0
  7. package/dist/arktype.d.mts +7 -5
  8. package/dist/arktype.d.mts.map +1 -1
  9. package/dist/arktype.mjs +7 -5
  10. package/dist/arktype.mjs.map +1 -1
  11. package/dist/config-Bpi8QVLB.d.mts +1 -0
  12. package/dist/config.d.mts +3 -3
  13. package/dist/config.mjs +2 -2
  14. package/dist/control.d.mts +19 -21
  15. package/dist/control.d.mts.map +1 -1
  16. package/dist/control.mjs +4 -4
  17. package/dist/control.mjs.map +1 -1
  18. package/dist/converge-in-process-CTomEXaD-BnDylZP8.d.mts +67 -0
  19. package/dist/converge-in-process-CTomEXaD-BnDylZP8.d.mts.map +1 -0
  20. package/dist/converge-in-process-x89zb2MF-Dvj-J8xo.mjs +258 -0
  21. package/dist/converge-in-process-x89zb2MF-Dvj-J8xo.mjs.map +1 -0
  22. package/dist/{deploy-3EXLVrtG.mjs → deploy-CSU0kr4j.mjs} +130 -38
  23. package/dist/deploy-CSU0kr4j.mjs.map +1 -0
  24. package/dist/deploy-DHgEJDpg.d.mts +32 -0
  25. package/dist/deploy-DHgEJDpg.d.mts.map +1 -0
  26. package/dist/deploy.d.mts +4 -4
  27. package/dist/deploy.mjs +3 -3
  28. package/dist/{deployment-summary-p88NV5m5-SgniM8TX.d.mts → deployment-summary-6LgQDUuu-Cu_6UNhc.d.mts} +7 -4
  29. package/dist/deployment-summary-6LgQDUuu-Cu_6UNhc.d.mts.map +1 -0
  30. package/dist/{deployment-summary-D74WrJX7-DQ3LDUuO.mjs → deployment-summary-CVJZn2v0-Dz-gX1rp.mjs} +16 -44
  31. package/dist/deployment-summary-CVJZn2v0-Dz-gX1rp.mjs.map +1 -0
  32. package/dist/{describe-kind-Cpm_euxo-CkhlGJUL.mjs → describe-kind-Cpm_euxo-DsSPENQa.mjs} +4 -4
  33. package/dist/describe-kind-Cpm_euxo-DsSPENQa.mjs.map +1 -0
  34. package/dist/dev-converge-messages-DML4rTz7-C_EAB5M_.mjs +165 -0
  35. package/dist/dev-converge-messages-DML4rTz7-C_EAB5M_.mjs.map +1 -0
  36. package/dist/dev-converge-worker.d.mts +1 -0
  37. package/dist/dev-converge-worker.mjs +142 -0
  38. package/dist/dev-converge-worker.mjs.map +1 -0
  39. package/dist/{dev-current-wD5YDLjA-CzyFYXni.mjs → dev-current-lAlj53eX-DrtBnAmA.mjs} +11 -7
  40. package/dist/dev-current-lAlj53eX-DrtBnAmA.mjs.map +1 -0
  41. package/dist/{dev-environment-name-6eEr5PW8-BwusWVKi.mjs → dev-environment-name-6eEr5PW8-7ntm9Xhs.mjs} +3 -3
  42. package/dist/{dev-environment-name-6eEr5PW8-BwusWVKi.mjs.map → dev-environment-name-6eEr5PW8-7ntm9Xhs.mjs.map} +1 -1
  43. package/dist/{dist-ynqBR6y8.mjs → dist-Cf_mZHaH.mjs} +4 -26
  44. package/dist/dist-Cf_mZHaH.mjs.map +1 -0
  45. package/dist/{emulator-retry-CV8rl69G-BgUzkxc-.mjs → emulator-retry-CV8rl69G-scQ105wk.mjs} +2 -2
  46. package/dist/{emulator-retry-CV8rl69G-BgUzkxc-.mjs.map → emulator-retry-CV8rl69G-scQ105wk.mjs.map} +1 -1
  47. package/dist/{errors-0e8IVwzi.mjs → errors-DI3TBXE-.mjs} +7 -2
  48. package/dist/{errors-0e8IVwzi.mjs.map → errors-DI3TBXE-.mjs.map} +1 -1
  49. package/dist/{execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs → execute-deploy-destroy-DN16ETAk-BaopEKsA.mjs} +376 -86
  50. package/dist/execute-deploy-destroy-DN16ETAk-BaopEKsA.mjs.map +1 -0
  51. package/dist/{execute-dev-BIyOI3Ys-BbDOLlV4.mjs → execute-dev-DnVmNpc1-kSyPML7l.mjs} +455 -221
  52. package/dist/execute-dev-DnVmNpc1-kSyPML7l.mjs.map +1 -0
  53. package/dist/{execute-dev-current-CKOzjWuO-BPecs6Lf.mjs → execute-dev-current-CZdmxVQ4-Bij2LeBY.mjs} +7 -7
  54. package/dist/{execute-dev-current-CKOzjWuO-BPecs6Lf.mjs.map → execute-dev-current-CZdmxVQ4-Bij2LeBY.mjs.map} +1 -1
  55. package/dist/{execute-log-BDdHor71-B2p8Zae2.mjs → execute-log-Bl-j6izb-BTAo6tRM.mjs} +8 -8
  56. package/dist/{execute-log-BDdHor71-B2p8Zae2.mjs.map → execute-log-Bl-j6izb-BTAo6tRM.mjs.map} +1 -1
  57. package/dist/{graph-C7mdtisq-RnKiwVsx.d.mts → graph-CUYXjK8S-BzL-mhjq.d.mts} +3 -3
  58. package/dist/graph-CUYXjK8S-BzL-mhjq.d.mts.map +1 -0
  59. package/dist/{graph-BzPLUUsB-D7EnB1F5.mjs → graph-D2WMLL43-CeiC5wdy.mjs} +150 -107
  60. package/dist/graph-D2WMLL43-CeiC5wdy.mjs.map +1 -0
  61. package/dist/{graph-types-s5V7pGj2-BxSqB1ZH.d.mts → graph-types-D4PrtP-l-B0uuchTl.d.mts} +101 -98
  62. package/dist/graph-types-D4PrtP-l-B0uuchTl.d.mts.map +1 -0
  63. package/dist/http.d.mts +2 -2
  64. package/dist/http.mjs +2 -2
  65. package/dist/{index-DyuwxTtd.d.mts → index-D8chHe55.d.mts} +3 -3
  66. package/dist/{index-DyuwxTtd.d.mts.map → index-D8chHe55.d.mts.map} +1 -1
  67. package/dist/index.d.mts +5 -5
  68. package/dist/index.mjs +4 -4
  69. package/dist/internal-app-configuration-file.d.mts +7 -10
  70. package/dist/internal-app-configuration-file.d.mts.map +1 -1
  71. package/dist/internal-app-configuration-file.mjs +2 -2
  72. package/dist/internal-converge-contract.d.mts +16 -0
  73. package/dist/internal-converge-contract.d.mts.map +1 -0
  74. package/dist/internal-converge-contract.mjs +16 -0
  75. package/dist/internal-converge-contract.mjs.map +1 -0
  76. package/dist/internal-converge.d.mts +5 -0
  77. package/dist/internal-converge.mjs +4 -0
  78. package/dist/load-entry-CEoVBdMj-CHOz7jKf.mjs +527 -0
  79. package/dist/load-entry-CEoVBdMj-CHOz7jKf.mjs.map +1 -0
  80. package/dist/local-target-7KRsLMDO.d.mts +31 -0
  81. package/dist/local-target-7KRsLMDO.d.mts.map +1 -0
  82. package/dist/{local-target-Dd8FJEb5.mjs → local-target-DhU1vaxd.mjs} +8 -8
  83. package/dist/{local-target-Dd8FJEb5.mjs.map → local-target-DhU1vaxd.mjs.map} +1 -1
  84. package/dist/local-target.d.mts +3 -31
  85. package/dist/local-target.mjs +1 -1
  86. package/dist/{nextjs-DLyeRR7M-0lw_cBIr.d.mts → nextjs-DLyeRR7M-CzUbvPaJ.d.mts} +3 -3
  87. package/dist/{nextjs-DLyeRR7M-0lw_cBIr.d.mts.map → nextjs-DLyeRR7M-CzUbvPaJ.d.mts.map} +1 -1
  88. package/dist/nextjs-control.d.mts +4 -4
  89. package/dist/nextjs.d.mts +1 -1
  90. package/dist/node-control.d.mts +3 -3
  91. package/dist/node.d.mts +2 -2
  92. package/dist/{pointer-CyQZZugO-D7k3vibs.d.mts → pointer-BX2KJ720-BxcfpaHP.d.mts} +8 -6
  93. package/dist/{pointer-CyQZZugO-D7k3vibs.d.mts.map → pointer-BX2KJ720-BxcfpaHP.d.mts.map} +1 -1
  94. package/dist/{preflight-transport-DmmtoFPH-CnDWufmu.mjs → preflight-transport-2d6iIchu-B-v7Di6I.mjs} +7 -44
  95. package/dist/preflight-transport-2d6iIchu-B-v7Di6I.mjs.map +1 -0
  96. package/dist/{redaction-DXung4ip-bBoNomi3.mjs → redaction-DY6eDC12-W-FzW7_r.mjs} +32 -15
  97. package/dist/redaction-DY6eDC12-W-FzW7_r.mjs.map +1 -0
  98. package/dist/{redaction-Bf8FvTFH-D_HvoMrf.d.mts → redaction-Dn7BRdaP-BcLSPhLV.d.mts} +65 -16
  99. package/dist/redaction-Dn7BRdaP-BcLSPhLV.d.mts.map +1 -0
  100. package/dist/report.d.mts +3 -3
  101. package/dist/report.mjs +2 -2
  102. package/dist/report.mjs.map +1 -1
  103. package/dist/service-rpc.d.mts +2 -2
  104. package/dist/service-rpc.mjs +2 -2
  105. package/dist/steps-BZXNqW6U-C_ME2VLd.mjs +112 -0
  106. package/dist/steps-BZXNqW6U-C_ME2VLd.mjs.map +1 -0
  107. package/dist/testing.d.mts +1 -1
  108. package/dist/validate-environment-DCZiNSlR-C7lv0cH1.mjs +344 -0
  109. package/dist/validate-environment-DCZiNSlR-C7lv0cH1.mjs.map +1 -0
  110. package/dist/zod.d.mts +6 -5
  111. package/dist/zod.d.mts.map +1 -1
  112. package/dist/zod.mjs +6 -5
  113. package/dist/zod.mjs.map +1 -1
  114. package/package.json +15 -13
  115. package/skills/prisma-composer-core-concepts/SKILL.md +47 -66
  116. package/src/exports/dev-converge-worker.ts +2 -0
  117. package/src/exports/internal-converge-contract.ts +1 -0
  118. package/src/exports/internal-converge.ts +1 -0
  119. package/dist/app-config-UeKFBma7-CohaMmWp.d.mts.map +0 -1
  120. package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs.map +0 -1
  121. package/dist/config-BeZEgGCg.d.mts +0 -1
  122. package/dist/deploy-3EXLVrtG.mjs.map +0 -1
  123. package/dist/deploy-Xi4_JrtE.d.mts +0 -2
  124. package/dist/deployment-summary-D74WrJX7-DQ3LDUuO.mjs.map +0 -1
  125. package/dist/deployment-summary-p88NV5m5-SgniM8TX.d.mts.map +0 -1
  126. package/dist/describe-kind-Cpm_euxo-CkhlGJUL.mjs.map +0 -1
  127. package/dist/dev-current-wD5YDLjA-CzyFYXni.mjs.map +0 -1
  128. package/dist/dist-ynqBR6y8.mjs.map +0 -1
  129. package/dist/execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs.map +0 -1
  130. package/dist/execute-dev-BIyOI3Ys-BbDOLlV4.mjs.map +0 -1
  131. package/dist/graph-BzPLUUsB-D7EnB1F5.mjs.map +0 -1
  132. package/dist/graph-C7mdtisq-RnKiwVsx.d.mts.map +0 -1
  133. package/dist/graph-types-s5V7pGj2-BxSqB1ZH.d.mts.map +0 -1
  134. package/dist/local-target.d.mts.map +0 -1
  135. package/dist/preflight-transport-DmmtoFPH-CnDWufmu.mjs.map +0 -1
  136. package/dist/redaction-Bf8FvTFH-D_HvoMrf.d.mts.map +0 -1
  137. package/dist/redaction-DXung4ip-bBoNomi3.mjs.map +0 -1
  138. package/dist/run-alchemy-CRLAyOtt-CBUV28We.mjs +0 -236
  139. package/dist/run-alchemy-CRLAyOtt-CBUV28We.mjs.map +0 -1
  140. package/dist/validate-environment-D1BTCkTs-BQprjyNP.mjs +0 -739
  141. package/dist/validate-environment-D1BTCkTs-BQprjyNP.mjs.map +0 -1
@@ -0,0 +1,88 @@
1
+ import { t as blindCast } from "./casts-DpaahrlC-C5XMnP9S.mjs";
2
+ import { t as CliStructuredError } from "./errors-DI3TBXE-.mjs";
3
+ import { createRequire } from "node:module";
4
+ import * as path$1 from "node:path";
5
+ import * as fs$1 from "node:fs";
6
+ import { pathToFileURL } from "node:url";
7
+ //#region ../../0-framework/3-tooling/cli/dist/app-converge-bS1l9jIf.mjs
8
+ var version = "0.39.0-dev.11";
9
+ const ENTRY = "@prisma/composer/internal/converge";
10
+ const CONTRACT_ENTRY = "@prisma/composer/internal/converge-contract";
11
+ const ENTRY_FUNCTIONS = [
12
+ "lower",
13
+ "convergeInProcess",
14
+ "localTargetProviders",
15
+ "devState"
16
+ ];
17
+ /** The Composer version this host runs; every Composer package carries the same one. */
18
+ const HOST_COMPOSER_VERSION = version;
19
+ function unresolvable(appDir, detail, cause) {
20
+ return new CliStructuredError("DEPS.CONVERGE_UNRESOLVABLE", `Could not load the converge from the app's @prisma/composer in "${appDir}": ${detail}`, {
21
+ why: "`prisma deploy` and `prisma dev` run the lowering and Alchemy from the app's own install of @prisma/composer, so the app, its extensions and Alchemy share one copy of alchemy.",
22
+ fix: "Install @prisma/composer in the app, at the same version as the Composer the `prisma` CLI runs.",
23
+ ...cause === void 0 ? {} : { cause }
24
+ });
25
+ }
26
+ function installedVersion(require) {
27
+ try {
28
+ const parsed = JSON.parse(fs$1.readFileSync(require.resolve("@prisma/composer/package.json"), "utf8"));
29
+ return typeof parsed === "object" && parsed !== null && "version" in parsed && typeof parsed.version === "string" ? parsed.version : void 0;
30
+ } catch {
31
+ return;
32
+ }
33
+ }
34
+ async function importFile(appDir, file) {
35
+ try {
36
+ return await import(pathToFileURL(file).href);
37
+ } catch (error) {
38
+ throw unresolvable(appDir, `${file} failed to load: ${error instanceof Error ? error.message : String(error)}`, error);
39
+ }
40
+ }
41
+ function contractMismatch(host, app) {
42
+ const appVersion = app.version ?? "an unknown version";
43
+ const update = app.contract < host.contract ? `Upgrade the app's @prisma/composer to a release that speaks converge contract ${host.contract}, such as ${host.version}.` : `Upgrade the \`prisma\` CLI to one that runs a Composer speaking converge contract ${app.contract}, such as ${appVersion}.`;
44
+ return new CliStructuredError("DEPS.CONVERGE_CONTRACT_MISMATCH", `The app's @prisma/composer ${appVersion} speaks converge contract ${app.contract}, and the \`prisma\` CLI's Composer ${host.version} speaks contract ${host.contract}.`, {
45
+ why: "Deploy and dev call the app's @prisma/composer from the CLI's Composer, and the two read each other's data only when they speak the same converge contract.",
46
+ fix: update
47
+ });
48
+ }
49
+ /**
50
+ * The app's `lower`, converge and local target functions, from the install `appDir` resolves. Reads the app's
51
+ * converge contract before loading anything else. Raises
52
+ * DEPS.CONVERGE_UNRESOLVABLE when the install is missing or predates the
53
+ * in-process converge, and DEPS.CONVERGE_CONTRACT_MISMATCH when it speaks
54
+ * another contract than `host`.
55
+ */
56
+ async function loadAppConvergeEntry(appDir, host = {
57
+ contract: 2,
58
+ version: HOST_COMPOSER_VERSION
59
+ }) {
60
+ const require = createRequire(path$1.join(appDir, "package.json"));
61
+ let contractFile;
62
+ let file;
63
+ try {
64
+ contractFile = require.resolve(CONTRACT_ENTRY);
65
+ file = require.resolve(ENTRY);
66
+ } catch (error) {
67
+ throw unresolvable(appDir, `${CONTRACT_ENTRY} or ${ENTRY} does not resolve.`, error);
68
+ }
69
+ const { CONVERGE_CONTRACT: appContract } = await importFile(appDir, contractFile);
70
+ if (typeof appContract !== "number") throw unresolvable(appDir, `${contractFile} exports no CONVERGE_CONTRACT.`);
71
+ if (appContract !== host.contract) throw contractMismatch(host, {
72
+ contract: appContract,
73
+ version: installedVersion(require)
74
+ });
75
+ const entry = await importFile(appDir, file);
76
+ const missing = ENTRY_FUNCTIONS.filter((name) => typeof entry[name] !== "function");
77
+ if (missing.length > 0) throw unresolvable(appDir, `${file} exports no ${missing.join(", ")}.`);
78
+ return blindCast({
79
+ lower: entry["lower"],
80
+ converge: entry["convergeInProcess"],
81
+ localTargetProviders: entry["localTargetProviders"],
82
+ devState: entry["devState"]
83
+ });
84
+ }
85
+ //#endregion
86
+ export { loadAppConvergeEntry as t };
87
+
88
+ //# sourceMappingURL=app-converge-bS1l9jIf-DRGbjw2D.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-converge-bS1l9jIf-DRGbjw2D.mjs","names":["fs","path"],"sources":["../../../0-framework/3-tooling/cli/dist/app-converge-bS1l9jIf.mjs"],"sourcesContent":["import \"./converge-contract-DrO0Jt9l.mjs\";\nimport { createRequire } from \"node:module\";\nimport * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { pathToFileURL } from \"node:url\";\nimport { blindCast } from \"@internal/foundation/casts\";\n//#region package.json\nvar version = \"0.39.0-dev.11\";\n//#endregion\n//#region src/app-converge.ts\nconst ENTRY = \"@prisma/composer/internal/converge\";\nconst CONTRACT_ENTRY = \"@prisma/composer/internal/converge-contract\";\nconst ENTRY_FUNCTIONS = [\n\t\"lower\",\n\t\"convergeInProcess\",\n\t\"localTargetProviders\",\n\t\"devState\"\n];\n/** The Composer version this host runs; every Composer package carries the same one. */\nconst HOST_COMPOSER_VERSION = version;\nfunction unresolvable(appDir, detail, cause) {\n\treturn new CliStructuredError(\"DEPS.CONVERGE_UNRESOLVABLE\", `Could not load the converge from the app's @prisma/composer in \"${appDir}\": ${detail}`, {\n\t\twhy: \"`prisma deploy` and `prisma dev` run the lowering and Alchemy from the app's own install of @prisma/composer, so the app, its extensions and Alchemy share one copy of alchemy.\",\n\t\tfix: \"Install @prisma/composer in the app, at the same version as the Composer the `prisma` CLI runs.\",\n\t\t...cause === void 0 ? {} : { cause }\n\t});\n}\nfunction installedVersion(require) {\n\ttry {\n\t\tconst parsed = JSON.parse(fs.readFileSync(require.resolve(\"@prisma/composer/package.json\"), \"utf8\"));\n\t\treturn typeof parsed === \"object\" && parsed !== null && \"version\" in parsed && typeof parsed.version === \"string\" ? parsed.version : void 0;\n\t} catch {\n\t\treturn;\n\t}\n}\nasync function importFile(appDir, file) {\n\ttry {\n\t\treturn await import(pathToFileURL(file).href);\n\t} catch (error) {\n\t\tthrow unresolvable(appDir, `${file} failed to load: ${error instanceof Error ? error.message : String(error)}`, error);\n\t}\n}\nfunction contractMismatch(host, app) {\n\tconst appVersion = app.version ?? \"an unknown version\";\n\tconst update = app.contract < host.contract ? `Upgrade the app's @prisma/composer to a release that speaks converge contract ${host.contract}, such as ${host.version}.` : `Upgrade the \\`prisma\\` CLI to one that runs a Composer speaking converge contract ${app.contract}, such as ${appVersion}.`;\n\treturn new CliStructuredError(\"DEPS.CONVERGE_CONTRACT_MISMATCH\", `The app's @prisma/composer ${appVersion} speaks converge contract ${app.contract}, and the \\`prisma\\` CLI's Composer ${host.version} speaks contract ${host.contract}.`, {\n\t\twhy: \"Deploy and dev call the app's @prisma/composer from the CLI's Composer, and the two read each other's data only when they speak the same converge contract.\",\n\t\tfix: update\n\t});\n}\n/**\n* The app's `lower`, converge and local target functions, from the install `appDir` resolves. Reads the app's\n* converge contract before loading anything else. Raises\n* DEPS.CONVERGE_UNRESOLVABLE when the install is missing or predates the\n* in-process converge, and DEPS.CONVERGE_CONTRACT_MISMATCH when it speaks\n* another contract than `host`.\n*/\nasync function loadAppConvergeEntry(appDir, host = {\n\tcontract: 2,\n\tversion: HOST_COMPOSER_VERSION\n}) {\n\tconst require = createRequire(path.join(appDir, \"package.json\"));\n\tlet contractFile;\n\tlet file;\n\ttry {\n\t\tcontractFile = require.resolve(CONTRACT_ENTRY);\n\t\tfile = require.resolve(ENTRY);\n\t} catch (error) {\n\t\tthrow unresolvable(appDir, `${CONTRACT_ENTRY} or ${ENTRY} does not resolve.`, error);\n\t}\n\tconst { CONVERGE_CONTRACT: appContract } = await importFile(appDir, contractFile);\n\tif (typeof appContract !== \"number\") throw unresolvable(appDir, `${contractFile} exports no CONVERGE_CONTRACT.`);\n\tif (appContract !== host.contract) throw contractMismatch(host, {\n\t\tcontract: appContract,\n\t\tversion: installedVersion(require)\n\t});\n\tconst entry = await importFile(appDir, file);\n\tconst missing = ENTRY_FUNCTIONS.filter((name) => typeof entry[name] !== \"function\");\n\tif (missing.length > 0) throw unresolvable(appDir, `${file} exports no ${missing.join(\", \")}.`);\n\treturn blindCast({\n\t\tlower: entry[\"lower\"],\n\t\tconverge: entry[\"convergeInProcess\"],\n\t\tlocalTargetProviders: entry[\"localTargetProviders\"],\n\t\tdevState: entry[\"devState\"]\n\t});\n}\n//#endregion\nexport { loadAppConvergeEntry as t };\n\n//# sourceMappingURL=app-converge-bS1l9jIf.mjs.map"],"mappings":";;;;;;;AAQA,IAAI,UAAU;AAGd,MAAM,QAAQ;AACd,MAAM,iBAAiB;AACvB,MAAM,kBAAkB;CACvB;CACA;CACA;CACA;AACD;;AAEA,MAAM,wBAAwB;AAC9B,SAAS,aAAa,QAAQ,QAAQ,OAAO;CAC5C,OAAO,IAAI,mBAAmB,8BAA8B,mEAAmE,OAAO,KAAK,UAAU;EACpJ,KAAK;EACL,KAAK;EACL,GAAG,UAAU,KAAK,IAAI,CAAC,IAAI,EAAE,MAAM;CACpC,CAAC;AACF;AACA,SAAS,iBAAiB,SAAS;CAClC,IAAI;EACH,MAAM,SAAS,KAAK,MAAMA,KAAG,aAAa,QAAQ,QAAQ,+BAA+B,GAAG,MAAM,CAAC;EACnG,OAAO,OAAO,WAAW,YAAY,WAAW,QAAQ,aAAa,UAAU,OAAO,OAAO,YAAY,WAAW,OAAO,UAAU,KAAK;CAC3I,QAAQ;EACP;CACD;AACD;AACA,eAAe,WAAW,QAAQ,MAAM;CACvC,IAAI;EACH,OAAO,MAAM,OAAO,cAAc,IAAI,CAAC,CAAC;CACzC,SAAS,OAAO;EACf,MAAM,aAAa,QAAQ,GAAG,KAAK,mBAAmB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,KAAK,KAAK;CACtH;AACD;AACA,SAAS,iBAAiB,MAAM,KAAK;CACpC,MAAM,aAAa,IAAI,WAAW;CAClC,MAAM,SAAS,IAAI,WAAW,KAAK,WAAW,iFAAiF,KAAK,SAAS,YAAY,KAAK,QAAQ,KAAK,qFAAqF,IAAI,SAAS,YAAY,WAAW;CACpS,OAAO,IAAI,mBAAmB,mCAAmC,8BAA8B,WAAW,4BAA4B,IAAI,SAAS,sCAAsC,KAAK,QAAQ,mBAAmB,KAAK,SAAS,IAAI;EAC1O,KAAK;EACL,KAAK;CACN,CAAC;AACF;;;;;;;;AAQA,eAAe,qBAAqB,QAAQ,OAAO;CAClD,UAAU;CACV,SAAS;AACV,GAAG;CACF,MAAM,UAAU,cAAcC,OAAK,KAAK,QAAQ,cAAc,CAAC;CAC/D,IAAI;CACJ,IAAI;CACJ,IAAI;EACH,eAAe,QAAQ,QAAQ,cAAc;EAC7C,OAAO,QAAQ,QAAQ,KAAK;CAC7B,SAAS,OAAO;EACf,MAAM,aAAa,QAAQ,GAAG,eAAe,MAAM,MAAM,qBAAqB,KAAK;CACpF;CACA,MAAM,EAAE,mBAAmB,gBAAgB,MAAM,WAAW,QAAQ,YAAY;CAChF,IAAI,OAAO,gBAAgB,UAAU,MAAM,aAAa,QAAQ,GAAG,aAAa,+BAA+B;CAC/G,IAAI,gBAAgB,KAAK,UAAU,MAAM,iBAAiB,MAAM;EAC/D,UAAU;EACV,SAAS,iBAAiB,OAAO;CAClC,CAAC;CACD,MAAM,QAAQ,MAAM,WAAW,QAAQ,IAAI;CAC3C,MAAM,UAAU,gBAAgB,QAAQ,SAAS,OAAO,MAAM,UAAU,UAAU;CAClF,IAAI,QAAQ,SAAS,GAAG,MAAM,aAAa,QAAQ,GAAG,KAAK,cAAc,QAAQ,KAAK,IAAI,EAAE,EAAE;CAC9F,OAAO,UAAU;EAChB,OAAO,MAAM;EACb,UAAU,MAAM;EAChB,sBAAsB,MAAM;EAC5B,UAAU,MAAM;CACjB,CAAC;AACF"}
@@ -1,4 +1,4 @@
1
- import { a as SecretString, t as Pointer } from "./pointer-CyQZZugO-D7k3vibs.mjs";
1
+ import { n as Pointer, o as SecretString } from "./pointer-BX2KJ720-BxcfpaHP.mjs";
2
2
  import { Type } from "arktype";
3
3
  //#region ../../0-framework/0-foundation/foundation/dist/arktype.d.mts
4
4
  //#region src/arktype.d.ts
@@ -14,11 +14,13 @@ import { Type } from "arktype";
14
14
  */
15
15
  declare const secretString: () => import("arktype/internal/variants/object.ts").ObjectType<SecretString | Pointer<SecretString>, {}>;
16
16
  /**
17
- * Wraps the schema of one leaf field so the field also accepts a plain
18
- * pointer, which stands for a value known only at boot. The field's input type
19
- * is `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
17
+ * Wraps the schema of one field so the field also accepts a plain pointer,
18
+ * which stands for a value known only at boot. The field's input type is
19
+ * `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
20
20
  * `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.
21
- * Wrap a leaf, never an object schema; put a default outside the wrapper.
21
+ * The field holds the whole value its source supplies, which may be an object
22
+ * or an array.
23
+ * Put a default outside the wrapper.
22
24
  *
23
25
  * ```ts
24
26
  * input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })
@@ -1 +1 @@
1
- {"version":3,"file":"arktype.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.d.mts"],"mappings":";;;;;;;;;;;;;;cAcc,kEAAkE,WAAW,eAAe,QAAQ;;;;;;;;;;;;iBAYjG,MAAM,GAAG,GAAG,OAAO,KAAK,GAAG,KAAK,KAAK,IAAI,QAAQ,KAAK,GAAG,gBAAgB"}
1
+ {"version":3,"file":"arktype.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.d.mts"],"mappings":";;;;;;;;;;;;;;cAcc,kEAAkE,WAAW,eAAe,QAAQ;;;;;;;;;;;;;;iBAcjG,MAAM,GAAG,GAAG,OAAO,KAAK,GAAG,KAAK,KAAK,IAAI,QAAQ,KAAK,GAAG,gBAAgB"}
package/dist/arktype.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-C5XMnP9S.mjs";
2
- import { a as isPlainPointer, o as isSecretPointer, r as isSecretString, t as describeKind } from "./describe-kind-Cpm_euxo-CkhlGJUL.mjs";
2
+ import { a as isPlainPointer, o as isSecretPointer, r as isSecretString, t as describeKind } from "./describe-kind-Cpm_euxo-DsSPENQa.mjs";
3
3
  import { type } from "arktype";
4
4
  //#region ../../0-framework/0-foundation/foundation/dist/arktype.mjs
5
5
  /**
@@ -40,11 +40,13 @@ function innerProblem(inner, field) {
40
40
  return errors.map((error) => field.hasCode("union") ? messageAt(field.path, error) : error.problem).join("; ");
41
41
  }
42
42
  /**
43
- * Wraps the schema of one leaf field so the field also accepts a plain
44
- * pointer, which stands for a value known only at boot. The field's input type
45
- * is `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
43
+ * Wraps the schema of one field so the field also accepts a plain pointer,
44
+ * which stands for a value known only at boot. The field's input type is
45
+ * `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
46
46
  * `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.
47
- * Wrap a leaf, never an object schema; put a default outside the wrapper.
47
+ * The field holds the whole value its source supplies, which may be an object
48
+ * or an array.
49
+ * Put a default outside the wrapper.
48
50
  *
49
51
  * ```ts
50
52
  * input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })
@@ -1 +1 @@
1
- {"version":3,"file":"arktype.mjs","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.mjs"],"sourcesContent":["import { t as blindCast } from \"./casts-DpaahrlC.mjs\";\nimport { t as describeKind } from \"./describe-kind-Cpm_euxo.mjs\";\nimport { n as isSecretString } from \"./secret-DoWGmN7m.mjs\";\nimport { n as isPlainPointer, r as isSecretPointer } from \"./pointer-Cw3E-nrh.mjs\";\nimport { type } from \"arktype\";\n//#region src/arktype.ts\n/**\n* ArkType spellings of the framework's schema leaves. Opt-in: the framework\n* accepts any Standard Schema library (ADR-0042) and nothing outside this\n* module imports arktype, so an app that uses Zod never loads it.\n*/\n/**\n* A schema leaf that accepts only a redacting `SecretString` box or a secret\n* pointer, so `input().<field>.expose()` type-checks and binding a plain\n* literal there fails the deploy (ADR-0042). Its error names the refused\n* value's kind, never the value.\n*\n* ```ts\n* input: type({ signingKey: secretString() })\n* ```\n*/\nconst secretString = () => type(\"unknown\").narrow((value, ctx) => isSecretString(value) || isSecretPointer(value) || ctx.reject({\n\texpected: \"a SecretString box — bind this field to a secret\",\n\tactual: isPlainPointer(value) ? \"a value known only at boot that is not a secret\" : describeKind(value)\n}));\n/** `error`'s message as if it were reported at `parent` joined with its own path. */\nfunction messageAt(parent, error) {\n\treturn error.transform(({ relativePath, prefixPath, ...input }) => ({\n\t\t...input,\n\t\tpath: [...parent, ...error.path]\n\t})).message;\n}\n/**\n* The error `inner` reports for the wrapped field's value: what a wrapped field\n* reports for a value that is not a pointer. When both branches are objects,\n* ArkType reports a union error, whose message is its problem alone, so each\n* inner error carries its full path from the field's parent.\n*/\nfunction innerProblem(inner, field) {\n\tconst errors = inner(field.data);\n\tif (!(errors instanceof type.errors)) return `must be ${inner.description} (was ${describeKind(field.data)})`;\n\treturn errors.map((error) => field.hasCode(\"union\") ? messageAt(field.path, error) : error.problem).join(\"; \");\n}\n/**\n* Wraps the schema of one leaf field so the field also accepts a plain\n* pointer, which stands for a value known only at boot. The field's input type\n* is `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and\n* `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.\n* Wrap a leaf, never an object schema; put a default outside the wrapper.\n*\n* ```ts\n* input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })\n* ```\n*/\nfunction field(inner) {\n\tconst checked = blindCast(inner);\n\tconst pointer = type(\"object\").narrow((value) => isPlainPointer(value));\n\treturn blindCast(checked.or(pointer).configure({ problem: (error) => innerProblem(checked, error) }));\n}\n//#endregion\nexport { field, secretString };\n\n//# sourceMappingURL=arktype.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,MAAM,qBAAqB,KAAK,SAAS,CAAC,CAAC,QAAQ,OAAO,QAAQ,eAAe,KAAK,KAAK,gBAAgB,KAAK,KAAK,IAAI,OAAO;CAC/H,UAAU;CACV,QAAQ,eAAe,KAAK,IAAI,oDAAoD,aAAa,KAAK;AACvG,CAAC,CAAC;;AAEF,SAAS,UAAU,QAAQ,OAAO;CACjC,OAAO,MAAM,WAAW,EAAE,cAAc,YAAY,GAAG,aAAa;EACnE,GAAG;EACH,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;CAChC,EAAE,CAAC,CAAC;AACL;;;;;;;AAOA,SAAS,aAAa,OAAO,OAAO;CACnC,MAAM,SAAS,MAAM,MAAM,IAAI;CAC/B,IAAI,EAAE,kBAAkB,KAAK,SAAS,OAAO,WAAW,MAAM,YAAY,QAAQ,aAAa,MAAM,IAAI,EAAE;CAC3G,OAAO,OAAO,KAAK,UAAU,MAAM,QAAQ,OAAO,IAAI,UAAU,MAAM,MAAM,KAAK,IAAI,MAAM,OAAO,CAAC,CAAC,KAAK,IAAI;AAC9G;;;;;;;;;;;;AAYA,SAAS,MAAM,OAAO;CACrB,MAAM,UAAU,UAAU,KAAK;CAC/B,MAAM,UAAU,KAAK,QAAQ,CAAC,CAAC,QAAQ,UAAU,eAAe,KAAK,CAAC;CACtE,OAAO,UAAU,QAAQ,GAAG,OAAO,CAAC,CAAC,UAAU,EAAE,UAAU,UAAU,aAAa,SAAS,KAAK,EAAE,CAAC,CAAC;AACrG"}
1
+ {"version":3,"file":"arktype.mjs","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.mjs"],"sourcesContent":["import { t as blindCast } from \"./casts-DpaahrlC.mjs\";\nimport { t as describeKind } from \"./describe-kind-Cpm_euxo.mjs\";\nimport { n as isSecretString } from \"./secret-DoWGmN7m.mjs\";\nimport { n as isPlainPointer, r as isSecretPointer } from \"./pointer-B3LgR6R4.mjs\";\nimport { type } from \"arktype\";\n//#region src/arktype.ts\n/**\n* ArkType spellings of the framework's schema leaves. Opt-in: the framework\n* accepts any Standard Schema library (ADR-0042) and nothing outside this\n* module imports arktype, so an app that uses Zod never loads it.\n*/\n/**\n* A schema leaf that accepts only a redacting `SecretString` box or a secret\n* pointer, so `input().<field>.expose()` type-checks and binding a plain\n* literal there fails the deploy (ADR-0042). Its error names the refused\n* value's kind, never the value.\n*\n* ```ts\n* input: type({ signingKey: secretString() })\n* ```\n*/\nconst secretString = () => type(\"unknown\").narrow((value, ctx) => isSecretString(value) || isSecretPointer(value) || ctx.reject({\n\texpected: \"a SecretString box — bind this field to a secret\",\n\tactual: isPlainPointer(value) ? \"a value known only at boot that is not a secret\" : describeKind(value)\n}));\n/** `error`'s message as if it were reported at `parent` joined with its own path. */\nfunction messageAt(parent, error) {\n\treturn error.transform(({ relativePath, prefixPath, ...input }) => ({\n\t\t...input,\n\t\tpath: [...parent, ...error.path]\n\t})).message;\n}\n/**\n* The error `inner` reports for the wrapped field's value: what a wrapped field\n* reports for a value that is not a pointer. When both branches are objects,\n* ArkType reports a union error, whose message is its problem alone, so each\n* inner error carries its full path from the field's parent.\n*/\nfunction innerProblem(inner, field) {\n\tconst errors = inner(field.data);\n\tif (!(errors instanceof type.errors)) return `must be ${inner.description} (was ${describeKind(field.data)})`;\n\treturn errors.map((error) => field.hasCode(\"union\") ? messageAt(field.path, error) : error.problem).join(\"; \");\n}\n/**\n* Wraps the schema of one field so the field also accepts a plain pointer,\n* which stands for a value known only at boot. The field's input type is\n* `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and\n* `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.\n* The field holds the whole value its source supplies, which may be an object\n* or an array.\n* Put a default outside the wrapper.\n*\n* ```ts\n* input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })\n* ```\n*/\nfunction field(inner) {\n\tconst checked = blindCast(inner);\n\tconst pointer = type(\"object\").narrow((value) => isPlainPointer(value));\n\treturn blindCast(checked.or(pointer).configure({ problem: (error) => innerProblem(checked, error) }));\n}\n//#endregion\nexport { field, secretString };\n\n//# sourceMappingURL=arktype.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,MAAM,qBAAqB,KAAK,SAAS,CAAC,CAAC,QAAQ,OAAO,QAAQ,eAAe,KAAK,KAAK,gBAAgB,KAAK,KAAK,IAAI,OAAO;CAC/H,UAAU;CACV,QAAQ,eAAe,KAAK,IAAI,oDAAoD,aAAa,KAAK;AACvG,CAAC,CAAC;;AAEF,SAAS,UAAU,QAAQ,OAAO;CACjC,OAAO,MAAM,WAAW,EAAE,cAAc,YAAY,GAAG,aAAa;EACnE,GAAG;EACH,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;CAChC,EAAE,CAAC,CAAC;AACL;;;;;;;AAOA,SAAS,aAAa,OAAO,OAAO;CACnC,MAAM,SAAS,MAAM,MAAM,IAAI;CAC/B,IAAI,EAAE,kBAAkB,KAAK,SAAS,OAAO,WAAW,MAAM,YAAY,QAAQ,aAAa,MAAM,IAAI,EAAE;CAC3G,OAAO,OAAO,KAAK,UAAU,MAAM,QAAQ,OAAO,IAAI,UAAU,MAAM,MAAM,KAAK,IAAI,MAAM,OAAO,CAAC,CAAC,KAAK,IAAI;AAC9G;;;;;;;;;;;;;;AAcA,SAAS,MAAM,OAAO;CACrB,MAAM,UAAU,UAAU,KAAK;CAC/B,MAAM,UAAU,KAAK,QAAQ,CAAC,CAAC,QAAQ,UAAU,eAAe,KAAK,CAAC;CACtE,OAAO,UAAU,QAAQ,GAAG,OAAO,CAAC,CAAC,UAAU,EAAE,UAAU,UAAU,aAAa,SAAS,KAAK,EAAE,CAAC,CAAC;AACrG"}
@@ -0,0 +1 @@
1
+ import "./app-config-DriAu5RU-C8hYpR38.mjs";
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as RunOutcome, A as LocalTargetProvidersInput, B as PREFLIGHT_FINDINGS_ENV_VAR, C as LocalNodeStopped, Ct as readPreflightFindings, D as LocalTargetCurrentInput, E as LocalTargetCurrentApp, G as PreflightInput, H as PlatformVariableCheck, K as PreflightPayload, L as NamedSecrets, O as LocalTargetDescriptor, Q as ReporterDescriptor, R as NodeDescriptor, S as LocalNodeLocation, St as preflightFindingsEnv, T as LocalTargetAttachment, U as PlatformVariableReader, W as PreflightFindings, X as ReportAttachInput, Z as ReportBeginInput, at as UnsetPlatformVariable, b as ExtensionDescriptor, bt as preflightEnv, c as ConfigAdapter, ct as containerEnv, d as ContainerCredentials, et as RunReporter, f as ContainerDescriptor, ft as deserializeContainers, g as DeployedEntity, h as DEV_ENVIRONMENT_NAME_FILE, it as TeardownInput, j as LocateContainerInput, k as LocalTargetEmulatorsInput, l as ConfigAdapterInput, lt as containerEnvVarName, m as DEV_DIR, mt as isBuildOnlyExtension, n as AppConfiguration, p as ContainerInstance, pt as devEnvironmentDir, q as PrismaAppConfig, r as AppSecrets, rt as StateDescriptor, u as ConfigValues, ut as defineConfig, w as LocalTargetAttachInput, wt as readPreflightPayload, x as LocalNodeCondition, xt as preflightEnvVarName, yt as platformVariableReaderText } from "./app-config-UeKFBma7-CohaMmWp.mjs";
2
- import "./config-BeZEgGCg.mjs";
1
+ import { $ as ReportBeginInput, A as LocalTargetDescriptor, B as NodeDescriptor, C as LocalNodeCondition, Ct as preflightEnvVarName, D as LocalTargetAttachment, E as LocalTargetAttachInput, G as PreflightFindings, J as PrismaAppConfig, K as PreflightInput, M as LocalTargetProvidersInput, N as LocateContainerInput, O as LocalTargetCurrentApp, Q as ReportAttachInput, St as preflightEnv, T as LocalNodeStopped, U as PlatformVariableCheck, W as PlatformVariableReader, Y as ProvidersInput, at as StateDescriptor, c as CallerCredentials, d as ConfigValues, dt as containerEnvVarName, et as ReporterDescriptor, f as ContainerDescriptor, ft as defineConfig, g as DeployedEntity, gt as isBuildOnlyExtension, h as DEV_ENVIRONMENT_NAME_FILE, ht as devEnvironmentDir, j as LocalTargetEmulatorsInput, k as LocalTargetCurrentInput, l as ConfigAdapter, m as DEV_DIR, mt as deserializeContainers, n as AppConfiguration, nt as RunReporter, ot as TeardownInput, p as ContainerInstance, q as PreflightPayload, r as AppSecrets, st as UnsetPlatformVariable, tt as RunOutcome, u as ConfigAdapterInput, ut as containerEnv, w as LocalNodeLocation, wt as readPreflightPayload, x as ExtensionDescriptor, xt as platformVariableReaderText, y as DevPreflightResult, z as NamedSecrets } from "./app-config-DriAu5RU-C8hYpR38.mjs";
2
+ import "./config-Bpi8QVLB.mjs";
3
3
  //#region ../../0-framework/3-tooling/cli/dist/config.d.mts
4
4
  //#region src/config-adapters.d.ts
5
5
  /** Reads the process environment when called: every variable whose value is a string. The default for both `config` and `secrets`. */
@@ -12,5 +12,5 @@ declare function environmentVariables(): ConfigAdapter;
12
12
  */
13
13
  declare function dotenv(): ConfigAdapter;
14
14
  //#endregion
15
- export { AppConfiguration, AppSecrets, ConfigAdapter, ConfigAdapterInput, ConfigValues, type ContainerCredentials, type ContainerDescriptor, type ContainerInstance, DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, type DeployedEntity, ExtensionDescriptor, LocalNodeCondition, LocalNodeLocation, LocalNodeStopped, LocalTargetAttachInput, LocalTargetAttachment, LocalTargetCurrentApp, LocalTargetCurrentInput, LocalTargetDescriptor, LocalTargetEmulatorsInput, LocalTargetProvidersInput, type LocateContainerInput, NamedSecrets, NodeDescriptor, PREFLIGHT_FINDINGS_ENV_VAR, PlatformVariableCheck, type PlatformVariableReader, type PreflightFindings, PreflightInput, type PreflightPayload, PrismaAppConfig, ReportAttachInput, ReportBeginInput, ReporterDescriptor, RunOutcome, RunReporter, StateDescriptor, TeardownInput, type UnsetPlatformVariable, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, dotenv, environmentVariables, isBuildOnlyExtension, platformVariableReaderText, preflightEnv, preflightEnvVarName, preflightFindingsEnv, readPreflightFindings, readPreflightPayload };
15
+ export { AppConfiguration, AppSecrets, type CallerCredentials, ConfigAdapter, ConfigAdapterInput, ConfigValues, type ContainerDescriptor, type ContainerInstance, DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, type DeployedEntity, DevPreflightResult, ExtensionDescriptor, LocalNodeCondition, LocalNodeLocation, LocalNodeStopped, LocalTargetAttachInput, LocalTargetAttachment, LocalTargetCurrentApp, LocalTargetCurrentInput, LocalTargetDescriptor, LocalTargetEmulatorsInput, LocalTargetProvidersInput, type LocateContainerInput, NamedSecrets, NodeDescriptor, PlatformVariableCheck, type PlatformVariableReader, type PreflightFindings, PreflightInput, type PreflightPayload, PrismaAppConfig, ProvidersInput, ReportAttachInput, ReportBeginInput, ReporterDescriptor, RunOutcome, RunReporter, StateDescriptor, TeardownInput, type UnsetPlatformVariable, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, dotenv, environmentVariables, isBuildOnlyExtension, platformVariableReaderText, preflightEnv, preflightEnvVarName, readPreflightPayload };
16
16
  //# sourceMappingURL=config.d.mts.map
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { n as environmentVariables, t as dotenv } from "./config-adapters-DG-uhGfv-Bt1M9f8b.mjs";
2
- import { a as platformVariableReaderText, c as preflightFindingsEnv, i as deserializeContainers, l as readPreflightFindings, n as containerEnv, o as preflightEnv, r as containerEnvVarName, s as preflightEnvVarName, t as PREFLIGHT_FINDINGS_ENV_VAR, u as readPreflightPayload } from "./preflight-transport-DmmtoFPH-CnDWufmu.mjs";
2
+ import { a as preflightEnv, i as platformVariableReaderText, n as containerEnvVarName, o as preflightEnvVarName, r as deserializeContainers, s as readPreflightPayload, t as containerEnv } from "./preflight-transport-2d6iIchu-B-v7Di6I.mjs";
3
3
  import { a as isBuildOnlyExtension, i as devEnvironmentDir, n as DEV_ENVIRONMENT_NAME_FILE, r as defineConfig, t as DEV_DIR } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
4
- export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, PREFLIGHT_FINDINGS_ENV_VAR, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, dotenv, environmentVariables, isBuildOnlyExtension, platformVariableReaderText, preflightEnv, preflightEnvVarName, preflightFindingsEnv, readPreflightFindings, readPreflightPayload };
4
+ export { DEV_DIR, DEV_ENVIRONMENT_NAME_FILE, containerEnv, containerEnvVarName, defineConfig, deserializeContainers, devEnvironmentDir, dotenv, environmentVariables, isBuildOnlyExtension, platformVariableReaderText, preflightEnv, preflightEnvVarName, readPreflightPayload };
@@ -1,29 +1,26 @@
1
- import { Pt as CliStructuredError } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
2
- import { U as PlatformVariableReader, W as PreflightFindings, at as UnsetPlatformVariable } from "./app-config-UeKFBma7-CohaMmWp.mjs";
3
- import "./config-BeZEgGCg.mjs";
4
- import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-p88NV5m5-SgniM8TX.mjs";
5
- import "./index-DyuwxTtd.mjs";
6
- import { a as ExecutionDiagnostics, c as executionDiagnostics, d as Result, i as DevSession, l as NotOk, n as DevEvent, o as ServiceEndpoint, r as DevInput, s as dev, t as ComposerConfigSource, u as Ok } from "./redaction-Bf8FvTFH-D_HvoMrf.mjs";
7
- //#region ../../0-framework/3-tooling/cli/dist/dev-current-CrayKe7S.d.mts
1
+ import { Rt as CliStructuredError } from "./graph-types-D4PrtP-l-B0uuchTl.mjs";
2
+ import { G as PreflightFindings, W as PlatformVariableReader, st as UnsetPlatformVariable } from "./app-config-DriAu5RU-C8hYpR38.mjs";
3
+ import "./config-Bpi8QVLB.mjs";
4
+ import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-6LgQDUuu-Cu_6UNhc.mjs";
5
+ import "./index-D8chHe55.mjs";
6
+ import { a as ExecutionDiagnostics, c as dev, d as Ok, f as Result, i as DevSession, l as executionDiagnostics, n as DevEvent, o as ServiceEndpoint, r as DevInput, s as StepEvent, t as ComposerConfigSource, u as NotOk } from "./redaction-Dn7BRdaP-BcLSPhLV.mjs";
7
+ //#region ../../0-framework/3-tooling/cli/dist/dev-current-BiJzvHNz.d.mts
8
8
  //#region src/operations/deploy.d.ts
9
- /** A deploy step. `assemble-service` steps run inside `assemble`, one per service. */
9
+ /** A deploy step. `assemble-service` steps run inside `assemble`, one per service, and `apply-resource` steps inside `apply`, one per resource Alchemy touches. */
10
10
  type DeployStep = {
11
11
  readonly name: 'prepare' | 'assemble' | 'connect' | 'preflight' | 'apply' | 'record';
12
12
  } | {
13
13
  readonly name: 'assemble-service';
14
14
  readonly address: string;
15
- };
16
- type DeployEvent = {
17
- readonly kind: 'step-started';
18
- readonly step: DeployStep;
19
15
  } | {
20
- readonly kind: 'step-finished';
21
- readonly step: DeployStep;
22
- readonly outcome: 'ok' | 'failed';
23
- readonly durationMs: number;
24
- /** What the step measured, as its build adapter or deploy target reported it. The fields vary by adapter and target. */
25
- readonly data?: Readonly<Record<string, string | number>> | undefined;
26
- } |
16
+ readonly name: 'apply-resource';
17
+ /** The resource's ID (ADR-0057): its node's address, or the address and the resource's role in that node. */
18
+ readonly resourceId: string;
19
+ readonly resourceType: string;
20
+ /** Alchemy's word for what is happening to the resource, such as `creating` or `created`, for people to read. It changes between a step's start and finish, and its values are Alchemy's, so do not branch on it. */
21
+ readonly status: string;
22
+ };
23
+ type DeployEvent = StepEvent<DeployStep> |
27
24
  /** Right after the preflight step, when it found platform variables with no value that no service needs. */
28
25
  {
29
26
  readonly kind: 'preflight-findings';
@@ -58,10 +55,11 @@ interface DeployInput {
58
55
  readonly reportId?: string | undefined;
59
56
  /** Each step as it starts and finishes, in real time. Rendering is the host's. */
60
57
  readonly onEvent?: ((event: DeployEvent) => void) | undefined;
58
+ /** Interrupts the plan or apply when it aborts. The deploy then fails with `DEPLOY.INTERRUPTED`, after releasing the environment's state lease. */
59
+ readonly signal?: AbortSignal | undefined;
61
60
  }
62
61
  interface DeploySuccess {
63
- /** Parsed from the alchemy child's result file. Undefined when the child
64
- * did not write one (injected fake alchemy, or a report-less apply). */
62
+ /** What the apply deployed. Undefined when the apply produced no report. */
65
63
  readonly summary: DeploymentSummary | undefined;
66
64
  /** How long the whole deploy took, from the call to its result. */
67
65
  readonly durationMs: number;
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/dev-current-CrayKe7S.d.mts","../../../0-framework/3-tooling/cli/dist/control.d.mts"],"mappings":";;;;;;;;;KAOK;WACM;;WAEA;WACA;;KAEN;WACM;WACA,MAAM;;WAEN;WACA,MAAM;WACN;WACA;;WAEA,OAAO,SAAS;;;;WAIhB;WACA,UAAU;;UAIX;;;;WAIC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;;;;;;WAOA;;;;;;;WAOA;;WAEA,YAAY,OAAO;;UAEpB;;;WAGC,SAAS;;WAET;;iBAEM,OAAO,OAAO,cAAc,QAAQ,OAAO,eAAe;;;UAOjE;;WAEC,QAAQ;;WAER;;WAEA;;WAEA;;UAED;WACC;;WAEA;;WAEA;;WAEA;;WAEA;;UAED;WACC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;UAED;;WAEC;;WAEA;;WAEA;aACE;aACA;;;;iBAII,OAAO,OAAO,cAAc,QAAQ,OAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,OAAO,YAAY;;;;KCjHrE;;;WAGM;WACA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;;WAEA;WACA;;WAEA,YAAY,OAAO;;iBAEb,QAAQ,OAAO,eAAe,QAAQ,aAAe;;;UAG5D;WACC;WACA;;KAEN;;;WAGM;WACA;;;;;WAKA;WACA;;UAED;;;;;WAKC,QAAQ;;WAER;WACA;;WAEA;;WAEA;;WAEA;WACA;;WAEA,SAAS;WACT,YAAY,OAAO;;UAEpB;;WAEC;;;WAGA,mBAAmB;;WAEnB,OAAO,cAAc;;iBAEf,IAAI,OAAO,WAAW,QAAQ,OAAS,aAAa;;;;cAIvD;;cAEA;UACJ;;WAEC;WACA;;;;;;;UAOD;WACC;WACA;;WAEA;WACA;WACA,gBAAgB;WAChB,SAAS"}
1
+ {"version":3,"file":"control.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/dev-current-BiJzvHNz.d.mts","../../../0-framework/3-tooling/cli/dist/control.d.mts"],"mappings":";;;;;;;;;KAOK;WACM;;WAEA;WACA;;WAEA;;WAEA;WACA;;WAEA;;KAEN,cAAc,UAAU;;;WAGlB;WACA,UAAU;;UAIX;;;;WAIC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;;;;;;WAOA;;;;;;;WAOA;;WAEA,YAAY,OAAO;;WAEnB,SAAS;;UAEV;;WAEC,SAAS;;WAET;;iBAEM,OAAO,OAAO,cAAc,QAAQ,OAAO,eAAe;;;UAOjE;;WAEC,QAAQ;;WAER;;WAEA;;WAEA;;UAED;WACC;;WAEA;;WAEA;;WAEA;;WAEA;;UAED;WACC,QAAQ;;WAER;;WAEA;;WAEA;;WAEA;;UAED;;WAEC;;WAEA;;WAEA;aACE;aACA;;;;iBAII,OAAO,OAAO,cAAc,QAAQ,OAAO,QAAQ;;iBAEnD,QAAQ,OAAO,eAAe,QAAQ,OAAO,YAAY;;;;KC/GrE;;;WAGM;WACA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;;WAEA;WACA;;WAEA,YAAY,OAAO;;iBAEb,QAAQ,OAAO,eAAe,QAAQ,aAAe;;;UAG5D;WACC;WACA;;KAEN;;;WAGM;WACA;;;;;WAKA;WACA;;UAED;;;;;WAKC,QAAQ;;WAER;WACA;;WAEA;;WAEA;;WAEA;WACA;;WAEA,SAAS;WACT,YAAY,OAAO;;UAEpB;;WAEC;;;WAGA,mBAAmB;;WAEnB,OAAO,cAAc;;iBAEf,IAAI,OAAO,WAAW,QAAQ,OAAS,aAAa;;;;cAIvD;;cAEA;UACJ;;WAEC;WACA;;;;;;;UAOD;WACC;WACA;;WAEA;WACA;WACA,gBAAgB;WAChB,SAAS"}
package/dist/control.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
2
- import { a as executionDiagnostics, i as devUrl, l as notOk, n as dev, o as executorLoadFailure, r as devStop, t as deploy } from "./dev-current-wD5YDLjA-CzyFYXni.mjs";
1
+ import { t as CliStructuredError } from "./errors-DI3TBXE-.mjs";
2
+ import { a as devUrl, i as devStop, n as deploy, o as executionDiagnostics, r as dev, s as executorLoadFailure, u as notOk } from "./dev-current-lAlj53eX-DrtBnAmA.mjs";
3
3
  import { n as RUN_REPORT_VERSION, t as RUN_REPORT_FILE_ENV } from "./run-report-CmBz2-xc-Cc8rV1CX.mjs";
4
4
  //#region ../../0-framework/3-tooling/cli/dist/control.mjs
5
5
  /**
@@ -21,7 +21,7 @@ async function destroyWithDeps(input, deps) {
21
21
  const cwd = input.cwd ?? process.cwd();
22
22
  let executor;
23
23
  try {
24
- executor = await import("./execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs");
24
+ executor = await import("./execute-deploy-destroy-DN16ETAk-BaopEKsA.mjs");
25
25
  } catch (error) {
26
26
  return notOk(executorLoadFailure("destroy", error));
27
27
  }
@@ -43,7 +43,7 @@ async function logWithDeps(input, deps) {
43
43
  const cwd = input.cwd ?? process.cwd();
44
44
  let executor;
45
45
  try {
46
- executor = await import("./execute-log-BDdHor71-B2p8Zae2.mjs");
46
+ executor = await import("./execute-log-Bl-j6izb-BTAo6tRM.mjs");
47
47
  } catch (error) {
48
48
  return notOk(executorLoadFailure("log", error));
49
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"control.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/control.mjs"],"sourcesContent":["import { c as executionDiagnostics, l as executorLoadFailure, n as devUrl, o as deploy, r as dev, t as devStop } from \"./dev-current-wD5YDLjA.mjs\";\nimport { n as RUN_REPORT_VERSION, t as RUN_REPORT_FILE_ENV } from \"./run-report-CmBz2-xc.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { notOk } from \"@internal/foundation/result\";\n//#region src/operations/destroy.ts\n/**\n* The programmatic `destroy` operation (`@prisma/composer/control`): typed\n* input, structured result, no argv, no console, no process.exit. No CLI\n* command wraps it. The executor\n* loads lazily, so importing this module executes nothing; an executor that\n* fails to load comes back as a structured failure, never a throw out of\n* the host.\n*/\nasync function destroy(input) {\n\treturn destroyWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, for the unit tests.\n* Deliberately NOT re-exported through `./control` — the seam mirrors\n* internal types and is not part of the published surface. */\nasync function destroyWithDeps(input, deps) {\n\tif (typeof input.environment !== \"string\" || input.environment.length === 0) return notOk(environmentRequired());\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-deploy-destroy-DOzo2Psp.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"destroy\", error));\n\t}\n\treturn executor.executeDestroy(input, deps, cwd);\n}\nfunction environmentRequired() {\n\treturn new CliStructuredError(\"DEPLOY.ENVIRONMENT_REQUIRED\", \"destroy needs the name of the environment to destroy.\", {\n\t\twhy: \"Destroy never defaults to production, so a call without a name has no target.\",\n\t\tfix: \"Pass `environment`, for example `destroy({ environment: 'staging', config })`.\"\n\t});\n}\n//#endregion\n//#region src/operations/log.ts\nasync function log(input) {\n\treturn logWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, for the unit tests.\n* Deliberately NOT re-exported through `./control` — the seam\n* mirrors internal types and is not part of the published surface. */\nasync function logWithDeps(input, deps) {\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-log-BDdHor71.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"log\", error));\n\t}\n\treturn executor.executeLog(input, deps, cwd);\n}\n//#endregion\nexport { RUN_REPORT_FILE_ENV, RUN_REPORT_VERSION, deploy, destroy, dev, devStop, devUrl, executionDiagnostics, log };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,eAAe,QAAQ,OAAO;CAC7B,OAAO,gBAAgB,OAAO,CAAC,CAAC;AACjC;;;;AAIA,eAAe,gBAAgB,OAAO,MAAM;CAC3C,IAAI,OAAO,MAAM,gBAAgB,YAAY,MAAM,YAAY,WAAW,GAAG,OAAO,MAAM,oBAAoB,CAAC;CAC/G,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,WAAW,KAAK,CAAC;CACnD;CACA,OAAO,SAAS,eAAe,OAAO,MAAM,GAAG;AAChD;AACA,SAAS,sBAAsB;CAC9B,OAAO,IAAI,mBAAmB,+BAA+B,yDAAyD;EACrH,KAAK;EACL,KAAK;CACN,CAAC;AACF;AAGA,eAAe,IAAI,OAAO;CACzB,OAAO,YAAY,OAAO,CAAC,CAAC;AAC7B;;;;AAIA,eAAe,YAAY,OAAO,MAAM;CACvC,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,OAAO,KAAK,CAAC;CAC/C;CACA,OAAO,SAAS,WAAW,OAAO,MAAM,GAAG;AAC5C"}
1
+ {"version":3,"file":"control.mjs","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/control.mjs"],"sourcesContent":["import { l as executionDiagnostics, n as devUrl, o as deploy, r as dev, t as devStop, u as executorLoadFailure } from \"./dev-current-lAlj53eX.mjs\";\nimport { n as RUN_REPORT_VERSION, t as RUN_REPORT_FILE_ENV } from \"./run-report-CmBz2-xc.mjs\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { notOk } from \"@internal/foundation/result\";\n//#region src/operations/destroy.ts\n/**\n* The programmatic `destroy` operation (`@prisma/composer/control`): typed\n* input, structured result, no argv, no console, no process.exit. No CLI\n* command wraps it. The executor\n* loads lazily, so importing this module executes nothing; an executor that\n* fails to load comes back as a structured failure, never a throw out of\n* the host.\n*/\nasync function destroy(input) {\n\treturn destroyWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, for the unit tests.\n* Deliberately NOT re-exported through `./control` — the seam mirrors\n* internal types and is not part of the published surface. */\nasync function destroyWithDeps(input, deps) {\n\tif (typeof input.environment !== \"string\" || input.environment.length === 0) return notOk(environmentRequired());\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-deploy-destroy-DN16ETAk.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"destroy\", error));\n\t}\n\treturn executor.executeDestroy(input, deps, cwd);\n}\nfunction environmentRequired() {\n\treturn new CliStructuredError(\"DEPLOY.ENVIRONMENT_REQUIRED\", \"destroy needs the name of the environment to destroy.\", {\n\t\twhy: \"Destroy never defaults to production, so a call without a name has no target.\",\n\t\tfix: \"Pass `environment`, for example `destroy({ environment: 'staging', config })`.\"\n\t});\n}\n//#endregion\n//#region src/operations/log.ts\nasync function log(input) {\n\treturn logWithDeps(input, {});\n}\n/** In-package variant threading the injection seam, for the unit tests.\n* Deliberately NOT re-exported through `./control` — the seam\n* mirrors internal types and is not part of the published surface. */\nasync function logWithDeps(input, deps) {\n\tconst cwd = input.cwd ?? process.cwd();\n\tlet executor;\n\ttry {\n\t\texecutor = await import(\"./execute-log-Bl-j6izb.mjs\");\n\t} catch (error) {\n\t\treturn notOk(executorLoadFailure(\"log\", error));\n\t}\n\treturn executor.executeLog(input, deps, cwd);\n}\n//#endregion\nexport { RUN_REPORT_FILE_ENV, RUN_REPORT_VERSION, deploy, destroy, dev, devStop, devUrl, executionDiagnostics, log };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,eAAe,QAAQ,OAAO;CAC7B,OAAO,gBAAgB,OAAO,CAAC,CAAC;AACjC;;;;AAIA,eAAe,gBAAgB,OAAO,MAAM;CAC3C,IAAI,OAAO,MAAM,gBAAgB,YAAY,MAAM,YAAY,WAAW,GAAG,OAAO,MAAM,oBAAoB,CAAC;CAC/G,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,WAAW,KAAK,CAAC;CACnD;CACA,OAAO,SAAS,eAAe,OAAO,MAAM,GAAG;AAChD;AACA,SAAS,sBAAsB;CAC9B,OAAO,IAAI,mBAAmB,+BAA+B,yDAAyD;EACrH,KAAK;EACL,KAAK;CACN,CAAC;AACF;AAGA,eAAe,IAAI,OAAO;CACzB,OAAO,YAAY,OAAO,CAAC,CAAC;AAC7B;;;;AAIA,eAAe,YAAY,OAAO,MAAM;CACvC,MAAM,MAAM,MAAM,OAAO,QAAQ,IAAI;CACrC,IAAI;CACJ,IAAI;EACH,WAAW,MAAM,OAAO;CACzB,SAAS,OAAO;EACf,OAAO,MAAM,oBAAoB,OAAO,KAAK,CAAC;CAC/C;CACA,OAAO,SAAS,WAAW,OAAO,MAAM,GAAG;AAC5C"}
@@ -0,0 +1,67 @@
1
+ import { vt as lower } from "./app-config-DriAu5RU-C8hYpR38.mjs";
2
+ import "./deploy-DHgEJDpg.mjs";
3
+ import "alchemy/Alchemist";
4
+ import "effect/Cause";
5
+ //#region ../../0-framework/3-tooling/cli/dist/converge-in-process-CTomEXaD.d.mts
6
+ //#region src/converge-in-process.d.ts
7
+ /** What `lower()` returns: the stack value `Alchemist.plan` takes. */
8
+ type LoweredStack = ReturnType<typeof lower>;
9
+ /** Where a resource is in its apply. `pending` is planned but not yet touched. */
10
+ type ResourcePhase = 'pending' | 'running' | 'done' | 'failed';
11
+ type ConvergeEvent = {
12
+ readonly kind: 'resource';
13
+ readonly fqn: string;
14
+ readonly resourceType: string;
15
+ /** Alchemy's own status word, such as `creating` or `updated`. */
16
+ readonly status: string;
17
+ readonly phase: ResourcePhase;
18
+ readonly message?: string | undefined;
19
+ } | {
20
+ readonly kind: 'log';
21
+ readonly severity: 'info' | 'warn' | 'verbose';
22
+ readonly text: string;
23
+ };
24
+ interface ConvergeRequest {
25
+ readonly operation: 'deploy';
26
+ readonly stack: LoweredStack;
27
+ readonly stage: string;
28
+ /** The directory Alchemy runs in: where it reads `.env` and keeps `.alchemy`. */
29
+ readonly cwd: string;
30
+ /** Set in `process.env` while Alchemy plans and applies, and restored after; `undefined` removes the variable for that time. Alchemy reads its configuration only from there. */
31
+ readonly env: Readonly<Record<string, string | undefined>>;
32
+ readonly signal?: AbortSignal | undefined;
33
+ readonly onEvent?: ((event: ConvergeEvent) => void) | undefined;
34
+ /** Receives what Alchemy writes to the terminal itself. A throw from it is ignored. Absent means stderr. */
35
+ readonly output?: ((text: string) => void) | undefined;
36
+ }
37
+ /** One error a failed converge ended with: the error's tag or class name, and its message. */
38
+ interface ConvergeFailureReason {
39
+ readonly tag: string;
40
+ readonly message: string;
41
+ }
42
+ type ConvergeOutcome = {
43
+ readonly kind: 'applied';
44
+ } | {
45
+ readonly kind: 'interrupted';
46
+ } | {
47
+ readonly kind: 'failed';
48
+ readonly reasons: readonly ConvergeFailureReason[];
49
+ } |
50
+ /** Nothing ran: another converge holds this process's environment and working directory, or this is a worker thread that cannot change directory. */
51
+ {
52
+ readonly kind: 'refused';
53
+ readonly reason: 'already-running' | 'worker-thread';
54
+ };
55
+ /** Plans and applies a lowered stack. The deploy executor's default is {@link convergeInProcess}. */
56
+ type Converge = (request: ConvergeRequest) => Promise<ConvergeOutcome>;
57
+ /**
58
+ * Plans and applies `stack` in this process, as `alchemy deploy --yes` would.
59
+ * The plan's scope, and the state-store lease it holds when the store has one, closes before this
60
+ * returns, including when `signal` interrupts it. One converge runs at a time
61
+ * per process, across every install of this module: a second call while one
62
+ * runs is refused.
63
+ */
64
+ declare const convergeInProcess: Converge;
65
+ //#endregion
66
+ export { ConvergeRequest as a, ConvergeOutcome as i, ConvergeEvent as n, LoweredStack as o, ConvergeFailureReason as r, convergeInProcess as s, Converge as t };
67
+ //# sourceMappingURL=converge-in-process-CTomEXaD-BnDylZP8.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"converge-in-process-CTomEXaD-BnDylZP8.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/converge-in-process-CTomEXaD.d.mts"],"mappings":";;;;;;;KAKK,eAAe,kBAAkB;;KAEjC;KACA;WACM;WACA;WACA;;WAEA;WACA,OAAO;WACP;;WAEA;WACA;WACA;;UAED;WACC;WACA,OAAO;WACP;;WAEA;;WAEA,KAAK,SAAS;WACd,SAAS;WACT,YAAY,OAAO;;WAEnB,WAAW;;;UAGZ;WACC;WACA;;KAEN;WACM;;WAEA;;WAEA;WACA,kBAAkB;;;;WAIlB;WACA;;;KAGN,YAAY,SAAS,oBAAoB,QAAQ;;;;;;;;cAQxC,mBAAmB"}