@prisma/composer 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.
Files changed (116) hide show
  1. package/dist/{app-config-BvxeTt2h-CcVmwsq6.d.mts → app-config-Bf_y5R7o-BEZAnKqM.d.mts} +31 -31
  2. package/dist/app-config-Bf_y5R7o-BEZAnKqM.d.mts.map +1 -0
  3. package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs +221 -0
  4. package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs.map +1 -0
  5. package/dist/arktype.mjs +1 -2
  6. package/dist/arktype.mjs.map +1 -1
  7. package/dist/config-CDkq5Ayl.d.mts +1 -0
  8. package/dist/config-adapters-DG-uhGfv-Bt1M9f8b.mjs +47 -0
  9. package/dist/config-adapters-DG-uhGfv-Bt1M9f8b.mjs.map +1 -0
  10. package/dist/config.d.mts +7 -9
  11. package/dist/config.d.mts.map +1 -1
  12. package/dist/config.mjs +1 -1
  13. package/dist/control.d.mts +6 -183
  14. package/dist/control.d.mts.map +1 -1
  15. package/dist/control.mjs +4 -4
  16. package/dist/control.mjs.map +1 -1
  17. package/dist/deploy-CmiYExQA.mjs +373 -0
  18. package/dist/deploy-CmiYExQA.mjs.map +1 -0
  19. package/dist/deploy-DQyaIoNe.d.mts +2 -0
  20. package/dist/deploy.d.mts +4 -3
  21. package/dist/deploy.mjs +3 -365
  22. package/dist/{deployment-summary-QkZexVIS-DqL4znd4.mjs → deployment-summary-BiBkPWlB-CyC2pudN.mjs} +9 -46
  23. package/dist/deployment-summary-BiBkPWlB-CyC2pudN.mjs.map +1 -0
  24. package/dist/{deployment-summary-Cm4lN6w9-Dc69sCgo.d.mts → deployment-summary-p88NV5m5-BJOosgmI.d.mts} +4 -5
  25. package/dist/deployment-summary-p88NV5m5-BJOosgmI.d.mts.map +1 -0
  26. package/dist/{secret-DoWGmN7m-CI5Yrldp.mjs → describe-kind-Cpm_euxo-CkhlGJUL.mjs} +13 -2
  27. package/dist/describe-kind-Cpm_euxo-CkhlGJUL.mjs.map +1 -0
  28. package/dist/{dev-current-BurA9uhA-C7E-BpRH.mjs → dev-current-D0Kn6Mf4-DDWYu-3j.mjs} +5 -5
  29. package/dist/{dev-current-BurA9uhA-C7E-BpRH.mjs.map → dev-current-D0Kn6Mf4-DDWYu-3j.mjs.map} +1 -1
  30. package/dist/{dev-environment-name-6eEr5PW8-BbNUVxlS.mjs → dev-environment-name-6eEr5PW8-BwusWVKi.mjs} +3 -3
  31. package/dist/{dev-environment-name-6eEr5PW8-BbNUVxlS.mjs.map → dev-environment-name-6eEr5PW8-BwusWVKi.mjs.map} +1 -1
  32. package/dist/{dist-DiYPSVUE.mjs → dist-BtzrklYG.mjs} +2 -2
  33. package/dist/{dist-DiYPSVUE.mjs.map → dist-BtzrklYG.mjs.map} +1 -1
  34. package/dist/{dist-0Iux8Khv.mjs → dist-C7SnNTD3.mjs} +2 -2
  35. package/dist/{dist-0Iux8Khv.mjs.map → dist-C7SnNTD3.mjs.map} +1 -1
  36. package/dist/{execute-deploy-destroy-Cww6zOSC-CIPx-m4I.mjs → execute-deploy-destroy-Dh1CQ9X6-DY4c9egd.mjs} +59 -35
  37. package/dist/execute-deploy-destroy-Dh1CQ9X6-DY4c9egd.mjs.map +1 -0
  38. package/dist/{execute-dev-4KYkqSMh-BP9S193k.mjs → execute-dev-Bl-5Q-Av-DILne6iY.mjs} +79 -48
  39. package/dist/execute-dev-Bl-5Q-Av-DILne6iY.mjs.map +1 -0
  40. package/dist/{execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs → execute-dev-current-D3USgHJ4-CNQe5ADb.mjs} +6 -6
  41. package/dist/{execute-dev-current-Cd4YEUZk-C6bs4ONa.mjs.map → execute-dev-current-D3USgHJ4-CNQe5ADb.mjs.map} +1 -1
  42. package/dist/{execute-log-BC5o35wQ-C8QWELlP.mjs → execute-log-Dm3DkQQP-BSjoy6Wd.mjs} +6 -6
  43. package/dist/{execute-log-BC5o35wQ-C8QWELlP.mjs.map → execute-log-Dm3DkQQP-BSjoy6Wd.mjs.map} +1 -1
  44. package/dist/{graph-gE31_ToO-BouKBfIS.mjs → graph-Bqr7PSGl-BM-M-TlO.mjs} +183 -44
  45. package/dist/graph-Bqr7PSGl-BM-M-TlO.mjs.map +1 -0
  46. package/dist/{graph-CN8VuVZN-Ck2y98XZ.d.mts → graph-DI1v3WKX-3g1lTRbh.d.mts} +8 -4
  47. package/dist/graph-DI1v3WKX-3g1lTRbh.d.mts.map +1 -0
  48. package/dist/{graph-types-R38xjBnN-cDTIX_rZ.d.mts → graph-types-DRe9UUOp-C85Yr-sJ.d.mts} +138 -67
  49. package/dist/graph-types-DRe9UUOp-C85Yr-sJ.d.mts.map +1 -0
  50. package/dist/http.d.mts +2 -2
  51. package/dist/http.mjs +2 -2
  52. package/dist/{index-BHdm4Q39.d.mts → index-DWQ6BSgm.d.mts} +3 -3
  53. package/dist/{index-BHdm4Q39.d.mts.map → index-DWQ6BSgm.d.mts.map} +1 -1
  54. package/dist/index.d.mts +4 -4
  55. package/dist/index.mjs +3 -3
  56. package/dist/internal-app-configuration-file.d.mts +19 -0
  57. package/dist/internal-app-configuration-file.d.mts.map +1 -0
  58. package/dist/internal-app-configuration-file.mjs +2 -0
  59. package/dist/{local-target-zSdLvLyy.mjs → local-target-Dd8FJEb5.mjs} +4 -3
  60. package/dist/{local-target-zSdLvLyy.mjs.map → local-target-Dd8FJEb5.mjs.map} +1 -1
  61. package/dist/local-target.d.mts +2 -2
  62. package/dist/local-target.d.mts.map +1 -1
  63. package/dist/local-target.mjs +1 -1
  64. package/dist/{nextjs-DLyeRR7M-CuGngjU4.d.mts → nextjs-DLyeRR7M-RtoHcY1c.d.mts} +3 -3
  65. package/dist/{nextjs-DLyeRR7M-CuGngjU4.d.mts.map → nextjs-DLyeRR7M-RtoHcY1c.d.mts.map} +1 -1
  66. package/dist/nextjs-control.d.mts +4 -4
  67. package/dist/nextjs-control.mjs +2 -2
  68. package/dist/nextjs.d.mts +1 -1
  69. package/dist/node-control.d.mts +3 -3
  70. package/dist/node-control.mjs +2 -2
  71. package/dist/node.d.mts +2 -2
  72. package/dist/redaction-Bf8FvTFH-BTsKD9B5.d.mts +183 -0
  73. package/dist/redaction-Bf8FvTFH-BTsKD9B5.d.mts.map +1 -0
  74. package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs +295 -0
  75. package/dist/redaction-HnbkSFrK-BXRZ3B33.mjs.map +1 -0
  76. package/dist/report.d.mts +3 -3
  77. package/dist/report.mjs +1 -1
  78. package/dist/report.mjs.map +1 -1
  79. package/dist/{run-alchemy-B-Z6i3cD-C30mHT0u.mjs → run-alchemy-OS_ix5g0-DCvUYZ7T.mjs} +30 -13
  80. package/dist/run-alchemy-OS_ix5g0-DCvUYZ7T.mjs.map +1 -0
  81. package/dist/{run-report-CmBz2-xc-S50d4g5V.mjs → run-report-CmBz2-xc-Cc8rV1CX.mjs} +2 -2
  82. package/dist/{run-report-CmBz2-xc-S50d4g5V.mjs.map → run-report-CmBz2-xc-Cc8rV1CX.mjs.map} +1 -1
  83. package/dist/service-rpc.d.mts +2 -2
  84. package/dist/service-rpc.mjs +2 -2
  85. package/dist/testing.d.mts +1 -1
  86. package/dist/{validate-environment-BNZC6W46-B0ESzFBn.mjs → validate-environment-D_dECxgO-B-gqpVEf.mjs} +76 -13
  87. package/dist/validate-environment-D_dECxgO-B-gqpVEf.mjs.map +1 -0
  88. package/dist/zod.mjs +1 -2
  89. package/dist/zod.mjs.map +1 -1
  90. package/package.json +13 -13
  91. package/skills/prisma-composer-core-concepts/SKILL.md +7 -24
  92. package/src/exports/internal-app-configuration-file.ts +1 -0
  93. package/dist/app-config-BvxeTt2h-CcVmwsq6.d.mts.map +0 -1
  94. package/dist/config-Cn9vjklJ.d.mts +0 -1
  95. package/dist/config-adapters-BA_IeiX0-BiE51GeB.mjs +0 -84
  96. package/dist/config-adapters-BA_IeiX0-BiE51GeB.mjs.map +0 -1
  97. package/dist/config-pools-DiYw7wMu-DzeWrJdm.mjs +0 -63
  98. package/dist/config-pools-DiYw7wMu-DzeWrJdm.mjs.map +0 -1
  99. package/dist/deploy-Cn9vjklJ.d.mts +0 -1
  100. package/dist/deploy.mjs.map +0 -1
  101. package/dist/deployment-summary-Cm4lN6w9-Dc69sCgo.d.mts.map +0 -1
  102. package/dist/deployment-summary-QkZexVIS-DqL4znd4.mjs.map +0 -1
  103. package/dist/describe-kind-Cpm_euxo-JFh8ejof.mjs +0 -14
  104. package/dist/describe-kind-Cpm_euxo-JFh8ejof.mjs.map +0 -1
  105. package/dist/execute-deploy-destroy-Cww6zOSC-CIPx-m4I.mjs.map +0 -1
  106. package/dist/execute-dev-4KYkqSMh-BP9S193k.mjs.map +0 -1
  107. package/dist/graph-CN8VuVZN-Ck2y98XZ.d.mts.map +0 -1
  108. package/dist/graph-gE31_ToO-BouKBfIS.mjs.map +0 -1
  109. package/dist/graph-types-R38xjBnN-cDTIX_rZ.d.mts.map +0 -1
  110. package/dist/internal-pools.d.mts +0 -18
  111. package/dist/internal-pools.d.mts.map +0 -1
  112. package/dist/internal-pools.mjs +0 -2
  113. package/dist/run-alchemy-B-Z6i3cD-C30mHT0u.mjs.map +0 -1
  114. package/dist/secret-DoWGmN7m-CI5Yrldp.mjs.map +0 -1
  115. package/dist/validate-environment-BNZC6W46-B0ESzFBn.mjs.map +0 -1
  116. package/src/exports/internal-pools.ts +0 -1
@@ -1,5 +1,5 @@
1
- import { r as BuildAdapter } from "./graph-types-R38xjBnN-cDTIX_rZ.mjs";
2
- import "./index-BHdm4Q39.mjs";
1
+ import { i as BuildAdapter } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
2
+ import "./index-DWQ6BSgm.mjs";
3
3
  //#region ../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts
4
4
  //#region src/nextjs.d.ts
5
5
  /** The nextjs build adapter's descriptor — `appDir` is this kind's own extra path input (the Next app root), beyond the shared `{ extension, type, module, entry }`. `entry` is a placeholder; the assembler locates `server.js` in the standalone tree. */
@@ -13,4 +13,4 @@ declare const nextjsBuild: (opts: {
13
13
  }) => NextjsBuildAdapter;
14
14
  //#endregion
15
15
  export { nextjsBuild as n, NextjsBuildAdapter as t };
16
- //# sourceMappingURL=nextjs-DLyeRR7M-CuGngjU4.d.mts.map
16
+ //# sourceMappingURL=nextjs-DLyeRR7M-RtoHcY1c.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nextjs-DLyeRR7M-CuGngjU4.d.mts","names":[],"sources":["../../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts"],"mappings":";;;;;UAGU,2BAA2B;WAC1B;WACA;;cAEG,cAAc;EAC1B;EACA;MACI"}
1
+ {"version":3,"file":"nextjs-DLyeRR7M-RtoHcY1c.d.mts","names":[],"sources":["../../../0-framework/2-authoring/nextjs/dist/nextjs-DLyeRR7M.d.mts"],"mappings":";;;;;UAGU,2BAA2B;WAC1B;WACA;;cAEG,cAAc;EAC1B;EACA;MACI"}
@@ -1,7 +1,7 @@
1
- import { Z as ServeInput, a as Bundle, b as ExtensionDescriptor, i as AssembleInput, y as DevServer } from "./app-config-BvxeTt2h-CcVmwsq6.mjs";
2
- import "./config-Cn9vjklJ.mjs";
3
- import "./deploy-Cn9vjklJ.mjs";
4
- import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-CuGngjU4.mjs";
1
+ import { Z as ServeInput, b as ExtensionDescriptor, o as AssembleInput, s as Bundle, y as DevServer } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
2
+ import "./config-CDkq5Ayl.mjs";
3
+ import "./deploy-DQyaIoNe.mjs";
4
+ import { t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-RtoHcY1c.mjs";
5
5
  //#region ../../0-framework/2-authoring/nextjs/dist/control.d.mts
6
6
  //#region src/control/build.d.ts
7
7
  /** The built standalone server.js for a nextjs build — `appDir`'s standalone root plus the app subpath Next recorded. Single-sourced so `assemble()` (deploy) and the integration-test seam can't drift. */
@@ -1,7 +1,7 @@
1
- import { a as repairWindowsDirectorySymlinks, i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-DiYPSVUE.mjs";
1
+ import { a as repairWindowsDirectorySymlinks, i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-BtzrklYG.mjs";
2
2
  import { createRequire } from "node:module";
3
- import * as fs$1 from "node:fs";
4
3
  import * as path$1 from "node:path";
4
+ import * as fs$1 from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { build } from "esbuild";
7
7
  //#region ../../0-framework/2-authoring/nextjs/dist/control.mjs
package/dist/nextjs.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as nextjsBuild, t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-CuGngjU4.mjs";
1
+ import { n as nextjsBuild, t as NextjsBuildAdapter } from "./nextjs-DLyeRR7M-RtoHcY1c.mjs";
2
2
  export { type NextjsBuildAdapter, nextjsBuild as default };
@@ -1,6 +1,6 @@
1
- import { Z as ServeInput, a as Bundle, b as ExtensionDescriptor, i as AssembleInput, y as DevServer } from "./app-config-BvxeTt2h-CcVmwsq6.mjs";
2
- import "./config-Cn9vjklJ.mjs";
3
- import "./deploy-Cn9vjklJ.mjs";
1
+ import { Z as ServeInput, b as ExtensionDescriptor, o as AssembleInput, s as Bundle, y as DevServer } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
2
+ import "./config-CDkq5Ayl.mjs";
3
+ import "./deploy-DQyaIoNe.mjs";
4
4
  //#region ../../0-framework/2-authoring/node/dist/control.d.mts
5
5
  //#region src/control/build.d.ts
6
6
  declare function assemble(input: AssembleInput): Promise<Bundle>;
@@ -1,7 +1,7 @@
1
- import { i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-DiYPSVUE.mjs";
1
+ import { i as isWithin, n as copyTreeVerbatim, r as createBundleLink, t as assertBundleSymlinksStayInside } from "./dist-BtzrklYG.mjs";
2
2
  import { createRequire } from "node:module";
3
- import * as fs$1 from "node:fs";
4
3
  import * as path$1 from "node:path";
4
+ import * as fs$1 from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { build } from "esbuild";
7
7
  //#region \0rolldown/runtime.js
package/dist/node.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { r as BuildAdapter } from "./graph-types-R38xjBnN-cDTIX_rZ.mjs";
2
- import "./index-BHdm4Q39.mjs";
1
+ import { i as BuildAdapter } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
2
+ import "./index-DWQ6BSgm.mjs";
3
3
  //#region ../../0-framework/2-authoring/node/dist/index.d.mts
4
4
  //#region src/node.d.ts
5
5
  /** The node build adapter's descriptor. `dir` is the directory form's own extra path input (the built tree to copy verbatim), beyond the shared `{ extension, type, module, entry }`; absent, `entry` is the whole built runnable. */
@@ -0,0 +1,183 @@
1
+ import { At as CliStructuredError } from "./graph-types-DRe9UUOp-C85Yr-sJ.mjs";
2
+ import { U as PrismaAppConfig } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
3
+ import "./config-CDkq5Ayl.mjs";
4
+ import "./deploy-DQyaIoNe.mjs";
5
+ import "./deployment-summary-p88NV5m5-BJOosgmI.mjs";
6
+ import "./index-DWQ6BSgm.mjs";
7
+ //#region ../../0-framework/0-foundation/foundation/dist/result.d.mts
8
+ //#region src/result.d.ts
9
+ /**
10
+ * Represents a successful result containing a value.
11
+ */
12
+ interface Ok<T> {
13
+ readonly ok: true;
14
+ readonly value: T;
15
+ assertOk(): T;
16
+ assertNotOk(): never;
17
+ }
18
+ /**
19
+ * Represents an unsuccessful result containing failure details.
20
+ */
21
+ interface NotOk<F> {
22
+ readonly ok: false;
23
+ readonly failure: F;
24
+ assertOk(): never;
25
+ assertNotOk(): F;
26
+ }
27
+ /**
28
+ * A discriminated union representing either success (Ok) or failure (NotOk).
29
+ *
30
+ * @typeParam T - The success value type
31
+ * @typeParam F - The failure details type
32
+ */
33
+ type Result<T, F> = Ok<T> | NotOk<F>;
34
+ //#endregion
35
+ //#region ../../0-framework/3-tooling/cli/dist/dev-Df-kx6UV.d.mts
36
+ //#region src/composer-config.d.ts
37
+ /** Composer's configuration and the `prisma.config.ts` that declares it. */
38
+ interface ComposerConfigSource {
39
+ /** The `composer` section: the `composer` property of that file's default export. */
40
+ readonly value: PrismaAppConfig;
41
+ /** The declaring `prisma.config.ts`. The deploy's generated stack file imports it. A relative path resolves against the operation's `cwd`. */
42
+ readonly file: string;
43
+ }
44
+ //#endregion
45
+ //#region src/operations/shared.d.ts
46
+ /** A running service's dotted address plus its local URL — what `dev` reports
47
+ * as the front door and `log` reports as the tailable services. */
48
+ interface ServiceEndpoint {
49
+ readonly address: string;
50
+ readonly url: string;
51
+ /** The dev server the service runs in place of its artifact, as its build adapter displays it (`next dev`) — absent for a service that runs its artifact (ADR-0056). */
52
+ readonly devServer?: string;
53
+ }
54
+ /**
55
+ * Where a failed execution left its artifacts — details of the CURRENT
56
+ * execution mechanism (a spawned deploy-engine child driving a generated
57
+ * stack file), for hosts that want to print a reproduce hint. The mechanism
58
+ * is not part of the surface's contract, so these fields may change or
59
+ * disappear if the mechanism does; branch on `code`/`message`/`cause` for
60
+ * anything durable.
61
+ */
62
+ interface ExecutionDiagnostics {
63
+ /** The child's exit status; undefined means the spawn itself threw, or the
64
+ * child was killed by a signal (`signal` then names it). */
65
+ readonly exitCode: number | undefined;
66
+ /** The signal that killed the child, when one did. A signal-killed converge
67
+ * is an abort the user asked for, not a failure of the deploy — a host
68
+ * should report it as an interruption and print no reproduce hint. */
69
+ readonly signal?: string | undefined;
70
+ readonly stackFilePath: string;
71
+ readonly reproduceCommand: string;
72
+ readonly cwd: string;
73
+ }
74
+ /**
75
+ * Reads the execution diagnostics an engine-failure error carries in
76
+ * `meta.diagnostics`; undefined for every other failure.
77
+ */
78
+ declare function executionDiagnostics(f: CliStructuredError): ExecutionDiagnostics | undefined;
79
+ //#endregion
80
+ //#region src/operations/dev.d.ts
81
+ type DevEvent =
82
+ /** Initial front door + after each successful re-converge. */
83
+ {
84
+ readonly kind: 'ready';
85
+ readonly endpoints: readonly ServiceEndpoint[];
86
+ } | {
87
+ readonly kind: 'unwatchable';
88
+ readonly address: string;
89
+ } |
90
+ /** A target's preflight warned about the graph; the session still starts. */
91
+ {
92
+ readonly kind: 'target-warning';
93
+ readonly message: string;
94
+ } | {
95
+ readonly kind: 'rebuild-failed';
96
+ readonly message: string;
97
+ } |
98
+ /** The file watcher itself errored (EMFILE, a vanished directory); the session keeps running. */
99
+ {
100
+ readonly kind: 'watch-error';
101
+ readonly message: string;
102
+ } |
103
+ /** `prisma.config.ts` changed. The session keeps the config it started with and stops rebuilding until it is restarted. */
104
+ {
105
+ readonly kind: 'config-changed';
106
+ readonly file: string;
107
+ } |
108
+ /** What the `config` or `secrets` adapters return changed since the session started. The session keeps the values it started with and stops rebuilding until it is restarted. */
109
+ {
110
+ readonly kind: 'values-changed';
111
+ } |
112
+ /** The app keeps running, still watching. */
113
+ {
114
+ readonly kind: 'converge-failed';
115
+ readonly stackFilePath: string;
116
+ readonly reproduceCommand: string;
117
+ readonly cwd: string;
118
+ } |
119
+ /** Once per service that runs its build adapter's dev server, before the first converge (ADR-0056). `cwd` is absolute. */
120
+ {
121
+ readonly kind: 'dev-server';
122
+ readonly address: string;
123
+ readonly command: string;
124
+ readonly cwd: string;
125
+ } |
126
+ /** A reconverge changed a dev server's environment, so the emulator restarted it. */
127
+ {
128
+ readonly kind: 'dev-server-restarted';
129
+ readonly address: string;
130
+ readonly command: string;
131
+ } |
132
+ /** One line a dev server wrote, while the session runs. */
133
+ {
134
+ readonly kind: 'dev-server-output';
135
+ readonly address: string;
136
+ readonly line: string;
137
+ } | {
138
+ readonly kind: 'stopping';
139
+ } |
140
+ /** One service refused to stop during stop(); teardown continues and `stopped` still follows. */
141
+ {
142
+ readonly kind: 'stop-error';
143
+ readonly message: string;
144
+ } | {
145
+ readonly kind: 'stopped';
146
+ };
147
+ interface DevInput {
148
+ /**
149
+ * Composer's configuration: the `composer` section of `prisma.config.ts` and that file. The operation does not look for a config file; it refuses a section the CLI would refuse, before any work starts.
150
+ */
151
+ readonly config: ComposerConfigSource;
152
+ /** The entry module, resolved against `cwd`. Overrides the `entry` in `config`; without either the operation fails with `CONFIG.ENTRY_MISSING`. */
153
+ readonly entry?: string | undefined;
154
+ readonly name?: string | undefined;
155
+ /** The environment to run as: a complete local copy of the app with its own services, databases and buckets. Defaults to `dev`. */
156
+ readonly environment?: string | undefined;
157
+ /** Deletes the environment's local copy of the app, and its data, before starting. Other environments are untouched. */
158
+ readonly fresh?: boolean | undefined;
159
+ /**
160
+ * Return once every service answers and leave the app running, with no
161
+ * watch loop: the session is already closed and stopping it stops nothing.
162
+ * `devStop` stops the app later.
163
+ */
164
+ readonly detach?: boolean | undefined;
165
+ readonly cwd?: string | undefined;
166
+ readonly onEvent?: ((event: DevEvent) => void) | undefined;
167
+ }
168
+ /** A running dev session. The operation NEVER touches process signal handlers —
169
+ * the host owns signals (and must evict alchemy's import-time SIGINT/SIGTERM
170
+ * listeners before installing its own; see run-dev.ts). */
171
+ interface DevSession {
172
+ /** The initial front door, already merged across attachments. */
173
+ readonly endpoints: readonly ServiceEndpoint[];
174
+ /** Stop the watch loop and the app's services (emulators and data stay up).
175
+ * Idempotent; emits 'stopping'/'stopped'; resolves `closed`. A no-op for a detached session. */
176
+ stop(): Promise<void>;
177
+ /** Settles when the session has fully stopped (via stop()); already settled for a detached session. */
178
+ readonly closed: Promise<void>;
179
+ }
180
+ declare function dev(input: DevInput): Promise<Result<DevSession, CliStructuredError>>;
181
+ //#endregion
182
+ export { ExecutionDiagnostics as a, executionDiagnostics as c, Result as d, DevSession as i, NotOk as l, DevEvent as n, ServiceEndpoint as o, DevInput as r, dev as s, ComposerConfigSource as t, Ok as u };
183
+ //# sourceMappingURL=redaction-Bf8FvTFH-BTsKD9B5.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redaction-Bf8FvTFH-BTsKD9B5.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/result.d.mts","../../../0-framework/3-tooling/cli/dist/dev-Df-kx6UV.d.mts"],"mappings":";;;;;;;;;;;UAIU,GAAG;WACF;WACA,OAAO;EAChB,YAAY;EACZ;;;;;UAKQ,MAAM;WACL;WACA,SAAS;EAClB;EACA,eAAe;;;;;;;;KAQZ,OAAO,GAAG,KAAK,GAAG,KAAK,MAAM;;;;;UCjBxB;;WAEC,OAAO;;WAEP;;;;;;UAgFD;WACC;WACA;;WAEA;;;;;;;;;;UA0CD;;;WAGC;;;;WAIA;WACA;WACA;WACA;;;;;;iBAMM,qBAAqB,GAAG,qBAAqB;;;KAGzD;;;WAGM;WACA,oBAAoB;;WAEpB;WACA;;;;WAIA;WACA;;WAEA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;WACA;;;;WAIA;WACA;WACA;;;;WAIA;WACA;WACA;;WAEA;;;;WAIA;WACA;;WAEA;;UAED;;;;WAIC,QAAQ;;WAER;WACA;;WAEA;;WAEA;;;;;;WAMA;WACA;WACA,YAAY,OAAO;;;;;UAKpB;;WAEC,oBAAoB;;;EAG7B,QAAQ;;WAEC,QAAQ;;iBAEF,IAAI,OAAO,WAAW,QAAQ,OAAO,YAAY"}
@@ -0,0 +1,295 @@
1
+ import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
2
+ //#region ../../0-framework/3-tooling/cli/dist/redaction-HnbkSFrK.mjs
3
+ const REDACTED = "[redacted]";
4
+ /** Env var names whose values are credentials: the service token, preflight payloads, and the usual secret spellings. */
5
+ const SECRET_ENV_NAME = /TOKEN|SECRET|PASSWORD|PASSWD|PRIVATE|CREDENTIAL|AUTH|API_?KEY|ACCESS_?KEY|_KEY$|DATABASE_URL|_DSN$|^PRISMA_COMPOSER_PREFLIGHT_/i;
6
+ /**
7
+ * The credential-looking values in `variables`: text of eight characters or more under a name
8
+ * that looks like a credential's. The length limit keeps a one-letter placeholder from blanking
9
+ * every matching letter.
10
+ */
11
+ function credentialLookingValues(variables) {
12
+ return Object.entries(variables).flatMap(([name, value]) => SECRET_ENV_NAME.test(name) && typeof value === "string" && value.length >= 8 ? [value] : []);
13
+ }
14
+ /**
15
+ * Finds every secret in a text: one regular expression for all of them, built once. A match
16
+ * is the span of the longest secret that starts at a position, and spans that overlap are
17
+ * merged, so two overlapping secrets are hidden whole.
18
+ */
19
+ var SecretMatcher = class {
20
+ starts;
21
+ prefixes = /* @__PURE__ */ new Set();
22
+ longestPrefix;
23
+ constructor(values) {
24
+ const sorted = [...new Set(values)].filter((value) => value.length > 0).sort((a, b) => b.length - a.length);
25
+ this.starts = sorted.length === 0 ? void 0 : new RegExp(`(?=(${sorted.map((value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")}))`, "g");
26
+ for (const value of sorted) for (let length = 1; length < value.length; length++) this.prefixes.add(value.slice(0, length));
27
+ this.longestPrefix = Math.max(0, (sorted[0]?.length ?? 0) - 1);
28
+ }
29
+ /** The merged spans of every secret in `text`, in order, as `[start, end)`. */
30
+ spans(text) {
31
+ const spans = [];
32
+ if (this.starts === void 0) return spans;
33
+ for (const match of text.matchAll(this.starts)) {
34
+ const start = match.index;
35
+ const end = start + (match[1]?.length ?? 0);
36
+ const last = spans.at(-1);
37
+ if (last !== void 0 && start < last[1]) last[1] = Math.max(last[1], end);
38
+ else spans.push([start, end]);
39
+ }
40
+ return spans;
41
+ }
42
+ /** The length of the longest end of `text` that is the start, not the whole, of a secret. */
43
+ startOfSecretAtEnd(text) {
44
+ for (let length = Math.min(this.longestPrefix, text.length); length > 0; length--) if (this.prefixes.has(text.slice(text.length - length))) return length;
45
+ return 0;
46
+ }
47
+ /** `text` with each span replaced by `[redacted]`. */
48
+ redact(text) {
49
+ let out = "";
50
+ let from = 0;
51
+ for (const [start, end] of this.spans(text)) {
52
+ out += text.slice(from, start) + REDACTED;
53
+ from = end;
54
+ }
55
+ return from === 0 ? text : out + text.slice(from);
56
+ }
57
+ };
58
+ /** `text` with each value in `values` replaced by `[redacted]`, at any length; an empty one is skipped. Overlapping values are hidden whole. */
59
+ function redactValues(text, values) {
60
+ return new SecretMatcher(values).redact(text);
61
+ }
62
+ /** `text` with bearer and basic tokens, JWTs, the password in a URL, and `token=…`-style pairs replaced by `[redacted]`. */
63
+ function redactShapes(text) {
64
+ return text.replace(/\b(Bearer|Basic)\s+[\w.~+/=-]+/gi, `$1 ${REDACTED}`).replace(/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, REDACTED).replace(/(\b[a-z][\w+.-]*:\/\/[^\s:/@]*:)[^\s/@]+@/gi, `$1${REDACTED}@`).replace(/\b((?:[\w-]*[_-])?(?:token|secret|password|passwd|api[_-]?key|access[_-]?key|private[_-]?key)["']?\s*[:=]\s*["']?)[^\s"',;&]+/gi, `$1${REDACTED}`);
65
+ }
66
+ /**
67
+ * `text` with the credential-looking values of `env` and the credential shapes replaced by
68
+ * `[redacted]`. For a process that has no `SecretRedaction`; `SecretRedaction.redact` hides
69
+ * the known secrets too.
70
+ */
71
+ function redactCredentialLooking(text, env) {
72
+ return redactShapes(redactValues(text, credentialLookingValues(env)));
73
+ }
74
+ /**
75
+ * The known secrets of one command: the values under the secrets keys the graph names, in the app
76
+ * secrets and the app configuration (ADR-0062). The app configuration file must not hold any of them.
77
+ */
78
+ var KnownSecrets = class {
79
+ #names = /* @__PURE__ */ new Map();
80
+ constructor(secrets = []) {
81
+ this.add(secrets);
82
+ }
83
+ /** Adds each secret whose value is not empty. A value already known keeps its first name. */
84
+ add(secrets) {
85
+ for (const { name, value } of secrets) if (value.length > 0 && !this.#names.has(value)) this.#names.set(value, name);
86
+ }
87
+ values() {
88
+ return new Set(this.#names.keys());
89
+ }
90
+ /**
91
+ * The name of a known secret `text` holds, or undefined. A secret of
92
+ * `MIN_SECRET_LENGTH_INSIDE_A_VALUE` characters or more is found anywhere in `text`; a shorter
93
+ * one only when it is all of `text`.
94
+ */
95
+ nameIn(text) {
96
+ for (const [value, name] of this.#names) if (value.length >= 8 ? text.includes(value) : text === value) return name;
97
+ }
98
+ };
99
+ /**
100
+ * What one command hides from everything it prints, returns or reports (ADR-0062): its known
101
+ * secrets, and the credential-looking values, which only look like secrets by the name of the
102
+ * variable they are under. It starts with the credential-looking values of the process
103
+ * environment.
104
+ */
105
+ var SecretRedaction = class {
106
+ knownSecrets = new KnownSecrets();
107
+ credentialLooking = /* @__PURE__ */ new Set();
108
+ matcher;
109
+ constructor(env) {
110
+ this.addCredentialLookingValues(credentialLookingValues(env));
111
+ }
112
+ addKnownSecrets(secrets) {
113
+ this.knownSecrets.add(secrets);
114
+ }
115
+ addCredentialLookingValues(values) {
116
+ for (const value of values) if (value.length > 0) this.credentialLooking.add(value);
117
+ }
118
+ /** The known secrets and the credential-looking values, longest first. */
119
+ allValues() {
120
+ return [.../* @__PURE__ */ new Set([...this.knownSecrets.values(), ...this.credentialLooking])].sort((a, b) => b.length - a.length);
121
+ }
122
+ /** `text` with every known secret and credential-looking value replaced by `[redacted]` at any length, then bearer tokens, JWTs, URL passwords and `token=…` pairs. */
123
+ redact(text) {
124
+ const size = this.knownSecrets.values().size + this.credentialLooking.size;
125
+ if (this.matcher?.size !== size) this.matcher = {
126
+ size,
127
+ matcher: new SecretMatcher(this.allValues())
128
+ };
129
+ return redactShapes(this.matcher.matcher.redact(text));
130
+ }
131
+ };
132
+ /** The text under each name in `secretsKeys`, in the app configuration and in the app secrets, at any length. */
133
+ function valuesUnderSecretsKeys(configuration, secrets, secretsKeys) {
134
+ return secretsKeys.flatMap((name) => [configuration[name], secrets[name]].flatMap((value) => typeof value === "string" ? [{
135
+ name,
136
+ value
137
+ }] : []));
138
+ }
139
+ function redactData(value, redaction) {
140
+ if (typeof value === "string") return redaction.redact(value);
141
+ if (Array.isArray(value)) return value.map((member) => redactData(member, redaction));
142
+ if (typeof value === "object" && value !== null && Object.getPrototypeOf(value) === Object.prototype) return Object.fromEntries(Object.entries(value).map(([key, member]) => [key, redactData(member, redaction)]));
143
+ return value;
144
+ }
145
+ /**
146
+ * `error` with every value `redaction` hides removed from its summary, `why`, `fix` and every string in
147
+ * its `meta`. The code, severity, `where` and docs link are kept. The cause is dropped, because
148
+ * it holds the same text unredacted and a renderer may print it.
149
+ */
150
+ function redactError(error, redaction) {
151
+ return new CliStructuredError(error.code, redaction.redact(error.message), {
152
+ severity: error.severity,
153
+ ...error.why === void 0 ? {} : { why: redaction.redact(error.why) },
154
+ ...error.fix === void 0 ? {} : { fix: redaction.redact(error.fix) },
155
+ ...error.where === void 0 ? {} : { where: error.where },
156
+ ...error.meta === void 0 ? {} : { meta: Object.fromEntries(Object.entries(error.meta).map(([key, value]) => [key, redactData(value, redaction)])) },
157
+ ...error.docsUrl === void 0 ? {} : { docsUrl: error.docsUrl }
158
+ });
159
+ }
160
+ function setOwn(error, name, value) {
161
+ Object.defineProperty(error, name, {
162
+ value,
163
+ writable: true,
164
+ configurable: true
165
+ });
166
+ }
167
+ const UNPRINTABLE = "A value was thrown that cannot be turned into text.";
168
+ function safeString(value) {
169
+ try {
170
+ return String(value);
171
+ } catch {
172
+ try {
173
+ return Object.prototype.toString.call(value);
174
+ } catch {
175
+ return UNPRINTABLE;
176
+ }
177
+ }
178
+ }
179
+ /**
180
+ * The error to rethrow in place of a thrown defect, with every secret removed from its message
181
+ * and stack, and from those of each error in its `cause` chain and in an `AggregateError`'s
182
+ * `errors`. A cause that is text or plain data becomes a redacted copy. Each error is redacted
183
+ * in place where it can be. One whose properties cannot change, such as a frozen error, is
184
+ * replaced by a new error with the redacted message, stack and cause. A thrown value that is not
185
+ * an `Error` becomes an `Error` whose message is its redacted text. Never throws: when reading
186
+ * the error fails, the result is a new `Error` holding the redacted text of what was thrown.
187
+ */
188
+ function redactThrown(thrown, redaction) {
189
+ try {
190
+ return thrown instanceof Error ? redactErrorChain(thrown, redaction, /* @__PURE__ */ new Map()) : new Error(redaction.redact(safeString(thrown)));
191
+ } catch {
192
+ return new Error(redaction.redact(safeString(thrown)));
193
+ }
194
+ }
195
+ function redactErrorChain(error, redaction, seen) {
196
+ const done = seen.get(error);
197
+ if (done !== void 0) return done;
198
+ seen.set(error, error);
199
+ const message = redaction.redact(typeof error.message === "string" ? error.message : safeString(error.message));
200
+ const stack = typeof error.stack === "string" ? redaction.redact(error.stack) : void 0;
201
+ const cause = error.cause instanceof Error ? redactErrorChain(error.cause, redaction, seen) : redactData(error.cause, redaction);
202
+ const members = error instanceof AggregateError ? error.errors.map((member) => member instanceof Error ? redactErrorChain(member, redaction, seen) : redactData(member, redaction)) : void 0;
203
+ try {
204
+ setOwn(error, "message", message);
205
+ if (stack !== void 0) setOwn(error, "stack", stack);
206
+ if (error.cause !== void 0) setOwn(error, "cause", cause);
207
+ if (members !== void 0) setOwn(error, "errors", members);
208
+ return error;
209
+ } catch {
210
+ const options = cause === void 0 ? void 0 : { cause };
211
+ const copy = members === void 0 ? new Error(message, options) : new AggregateError(members, message, options);
212
+ copy.name = error.name;
213
+ setOwn(copy, "stack", stack ?? `${error.name}: ${message}`);
214
+ seen.set(error, copy);
215
+ return copy;
216
+ }
217
+ }
218
+ /** `event` with every value `redaction` hides removed from the text it carries: a message, or a dev server's output line. */
219
+ function redactDevEvent(event, redaction) {
220
+ switch (event.kind) {
221
+ case "target-warning":
222
+ case "rebuild-failed":
223
+ case "watch-error":
224
+ case "stop-error": return {
225
+ ...event,
226
+ message: redaction.redact(event.message)
227
+ };
228
+ case "dev-server-output": return {
229
+ ...event,
230
+ line: redaction.redact(event.line)
231
+ };
232
+ default: return event;
233
+ }
234
+ }
235
+ /** `summary` with every value `redaction` hides removed from each entity's id, url and details. */
236
+ function redactSummary(summary, redaction) {
237
+ if (summary === void 0) return void 0;
238
+ return {
239
+ app: summary.app,
240
+ nodes: summary.nodes.map((node) => ({
241
+ address: node.address,
242
+ entities: node.entities.map((entity) => ({
243
+ ...entity,
244
+ id: redaction.redact(entity.id),
245
+ ...entity.url === void 0 ? {} : { url: redaction.redact(entity.url) },
246
+ ...entity.details === void 0 ? {} : { details: Object.fromEntries(Object.entries(entity.details).map(([key, value]) => [key, redaction.redact(value)])) }
247
+ }))
248
+ }))
249
+ };
250
+ }
251
+ function isHighSurrogate(code) {
252
+ return code >= 55296 && code <= 56319;
253
+ }
254
+ /**
255
+ * Redacts a stream of text chunk by chunk: every value in `values` becomes `[redacted]`, and
256
+ * overlapping values are hidden whole. It holds back only the end of the text that could still
257
+ * be part of a value: the longest end that could start one, or a match that a later value could
258
+ * extend. So a value split across two chunks is still replaced, and text that cannot start one,
259
+ * such as a prompt, is returned at once. It never splits a surrogate pair. `push` returns the
260
+ * text that is ready; `end` returns the rest.
261
+ */
262
+ var StreamRedactor = class {
263
+ held = "";
264
+ matcher;
265
+ constructor(values) {
266
+ this.matcher = new SecretMatcher(values);
267
+ }
268
+ push(chunk) {
269
+ const text = this.held + chunk;
270
+ const cut = text.length - this.matcher.startOfSecretAtEnd(text);
271
+ let out = "";
272
+ let from = 0;
273
+ let ready = cut;
274
+ for (const [start, end] of this.matcher.spans(text)) {
275
+ if (end > cut) {
276
+ ready = Math.min(cut, start);
277
+ break;
278
+ }
279
+ out += text.slice(from, start) + REDACTED;
280
+ from = end;
281
+ }
282
+ if (ready > from && ready < text.length && isHighSurrogate(text.charCodeAt(ready - 1))) ready -= 1;
283
+ this.held = text.slice(ready);
284
+ return out + text.slice(from, ready);
285
+ }
286
+ end() {
287
+ const text = this.held;
288
+ this.held = "";
289
+ return this.matcher.redact(text);
290
+ }
291
+ };
292
+ //#endregion
293
+ export { redactDevEvent as a, redactThrown as c, redactCredentialLooking as i, valuesUnderSecretsKeys as l, StreamRedactor as n, redactError as o, credentialLookingValues as r, redactSummary as s, SecretRedaction as t };
294
+
295
+ //# sourceMappingURL=redaction-HnbkSFrK-BXRZ3B33.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redaction-HnbkSFrK-BXRZ3B33.mjs","names":["#names"],"sources":["../../../0-framework/3-tooling/cli/dist/redaction-HnbkSFrK.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/foundation/errors\";\n//#region src/redaction.ts\nconst REDACTED = \"[redacted]\";\n/** Env var names whose values are credentials: the service token, preflight payloads, and the usual secret spellings. */\nconst SECRET_ENV_NAME = /TOKEN|SECRET|PASSWORD|PASSWD|PRIVATE|CREDENTIAL|AUTH|API_?KEY|ACCESS_?KEY|_KEY$|DATABASE_URL|_DSN$|^PRISMA_COMPOSER_PREFLIGHT_/i;\n/**\n* The credential-looking values in `variables`: text of eight characters or more under a name\n* that looks like a credential's. The length limit keeps a one-letter placeholder from blanking\n* every matching letter.\n*/\nfunction credentialLookingValues(variables) {\n\treturn Object.entries(variables).flatMap(([name, value]) => SECRET_ENV_NAME.test(name) && typeof value === \"string\" && value.length >= 8 ? [value] : []);\n}\n/**\n* Finds every secret in a text: one regular expression for all of them, built once. A match\n* is the span of the longest secret that starts at a position, and spans that overlap are\n* merged, so two overlapping secrets are hidden whole.\n*/\nvar SecretMatcher = class {\n\tstarts;\n\tprefixes = /* @__PURE__ */ new Set();\n\tlongestPrefix;\n\tconstructor(values) {\n\t\tconst sorted = [...new Set(values)].filter((value) => value.length > 0).sort((a, b) => b.length - a.length);\n\t\tthis.starts = sorted.length === 0 ? void 0 : new RegExp(`(?=(${sorted.map((value) => value.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")).join(\"|\")}))`, \"g\");\n\t\tfor (const value of sorted) for (let length = 1; length < value.length; length++) this.prefixes.add(value.slice(0, length));\n\t\tthis.longestPrefix = Math.max(0, (sorted[0]?.length ?? 0) - 1);\n\t}\n\t/** The merged spans of every secret in `text`, in order, as `[start, end)`. */\n\tspans(text) {\n\t\tconst spans = [];\n\t\tif (this.starts === void 0) return spans;\n\t\tfor (const match of text.matchAll(this.starts)) {\n\t\t\tconst start = match.index;\n\t\t\tconst end = start + (match[1]?.length ?? 0);\n\t\t\tconst last = spans.at(-1);\n\t\t\tif (last !== void 0 && start < last[1]) last[1] = Math.max(last[1], end);\n\t\t\telse spans.push([start, end]);\n\t\t}\n\t\treturn spans;\n\t}\n\t/** The length of the longest end of `text` that is the start, not the whole, of a secret. */\n\tstartOfSecretAtEnd(text) {\n\t\tfor (let length = Math.min(this.longestPrefix, text.length); length > 0; length--) if (this.prefixes.has(text.slice(text.length - length))) return length;\n\t\treturn 0;\n\t}\n\t/** `text` with each span replaced by `[redacted]`. */\n\tredact(text) {\n\t\tlet out = \"\";\n\t\tlet from = 0;\n\t\tfor (const [start, end] of this.spans(text)) {\n\t\t\tout += text.slice(from, start) + REDACTED;\n\t\t\tfrom = end;\n\t\t}\n\t\treturn from === 0 ? text : out + text.slice(from);\n\t}\n};\n/** `text` with each value in `values` replaced by `[redacted]`, at any length; an empty one is skipped. Overlapping values are hidden whole. */\nfunction redactValues(text, values) {\n\treturn new SecretMatcher(values).redact(text);\n}\n/** `text` with bearer and basic tokens, JWTs, the password in a URL, and `token=…`-style pairs replaced by `[redacted]`. */\nfunction redactShapes(text) {\n\treturn text.replace(/\\b(Bearer|Basic)\\s+[\\w.~+/=-]+/gi, `$1 ${REDACTED}`).replace(/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, REDACTED).replace(/(\\b[a-z][\\w+.-]*:\\/\\/[^\\s:/@]*:)[^\\s/@]+@/gi, `$1${REDACTED}@`).replace(/\\b((?:[\\w-]*[_-])?(?:token|secret|password|passwd|api[_-]?key|access[_-]?key|private[_-]?key)[\"']?\\s*[:=]\\s*[\"']?)[^\\s\"',;&]+/gi, `$1${REDACTED}`);\n}\n/**\n* `text` with the credential-looking values of `env` and the credential shapes replaced by\n* `[redacted]`. For a process that has no `SecretRedaction`; `SecretRedaction.redact` hides\n* the known secrets too.\n*/\nfunction redactCredentialLooking(text, env) {\n\treturn redactShapes(redactValues(text, credentialLookingValues(env)));\n}\n/**\n* The known secrets of one command: the values under the secrets keys the graph names, in the app\n* secrets and the app configuration (ADR-0062). The app configuration file must not hold any of them.\n*/\nvar KnownSecrets = class {\n\t#names = /* @__PURE__ */ new Map();\n\tconstructor(secrets = []) {\n\t\tthis.add(secrets);\n\t}\n\t/** Adds each secret whose value is not empty. A value already known keeps its first name. */\n\tadd(secrets) {\n\t\tfor (const { name, value } of secrets) if (value.length > 0 && !this.#names.has(value)) this.#names.set(value, name);\n\t}\n\tvalues() {\n\t\treturn new Set(this.#names.keys());\n\t}\n\t/**\n\t* The name of a known secret `text` holds, or undefined. A secret of\n\t* `MIN_SECRET_LENGTH_INSIDE_A_VALUE` characters or more is found anywhere in `text`; a shorter\n\t* one only when it is all of `text`.\n\t*/\n\tnameIn(text) {\n\t\tfor (const [value, name] of this.#names) if (value.length >= 8 ? text.includes(value) : text === value) return name;\n\t}\n};\n/**\n* What one command hides from everything it prints, returns or reports (ADR-0062): its known\n* secrets, and the credential-looking values, which only look like secrets by the name of the\n* variable they are under. It starts with the credential-looking values of the process\n* environment.\n*/\nvar SecretRedaction = class {\n\tknownSecrets = new KnownSecrets();\n\tcredentialLooking = /* @__PURE__ */ new Set();\n\tmatcher;\n\tconstructor(env) {\n\t\tthis.addCredentialLookingValues(credentialLookingValues(env));\n\t}\n\taddKnownSecrets(secrets) {\n\t\tthis.knownSecrets.add(secrets);\n\t}\n\taddCredentialLookingValues(values) {\n\t\tfor (const value of values) if (value.length > 0) this.credentialLooking.add(value);\n\t}\n\t/** The known secrets and the credential-looking values, longest first. */\n\tallValues() {\n\t\treturn [.../* @__PURE__ */ new Set([...this.knownSecrets.values(), ...this.credentialLooking])].sort((a, b) => b.length - a.length);\n\t}\n\t/** `text` with every known secret and credential-looking value replaced by `[redacted]` at any length, then bearer tokens, JWTs, URL passwords and `token=…` pairs. */\n\tredact(text) {\n\t\tconst size = this.knownSecrets.values().size + this.credentialLooking.size;\n\t\tif (this.matcher?.size !== size) this.matcher = {\n\t\t\tsize,\n\t\t\tmatcher: new SecretMatcher(this.allValues())\n\t\t};\n\t\treturn redactShapes(this.matcher.matcher.redact(text));\n\t}\n};\n/** The text under each name in `secretsKeys`, in the app configuration and in the app secrets, at any length. */\nfunction valuesUnderSecretsKeys(configuration, secrets, secretsKeys) {\n\treturn secretsKeys.flatMap((name) => [configuration[name], secrets[name]].flatMap((value) => typeof value === \"string\" ? [{\n\t\tname,\n\t\tvalue\n\t}] : []));\n}\nfunction redactData(value, redaction) {\n\tif (typeof value === \"string\") return redaction.redact(value);\n\tif (Array.isArray(value)) return value.map((member) => redactData(member, redaction));\n\tif (typeof value === \"object\" && value !== null && Object.getPrototypeOf(value) === Object.prototype) return Object.fromEntries(Object.entries(value).map(([key, member]) => [key, redactData(member, redaction)]));\n\treturn value;\n}\n/**\n* `error` with every value `redaction` hides removed from its summary, `why`, `fix` and every string in\n* its `meta`. The code, severity, `where` and docs link are kept. The cause is dropped, because\n* it holds the same text unredacted and a renderer may print it.\n*/\nfunction redactError(error, redaction) {\n\treturn new CliStructuredError(error.code, redaction.redact(error.message), {\n\t\tseverity: error.severity,\n\t\t...error.why === void 0 ? {} : { why: redaction.redact(error.why) },\n\t\t...error.fix === void 0 ? {} : { fix: redaction.redact(error.fix) },\n\t\t...error.where === void 0 ? {} : { where: error.where },\n\t\t...error.meta === void 0 ? {} : { meta: Object.fromEntries(Object.entries(error.meta).map(([key, value]) => [key, redactData(value, redaction)])) },\n\t\t...error.docsUrl === void 0 ? {} : { docsUrl: error.docsUrl }\n\t});\n}\nfunction setOwn(error, name, value) {\n\tObject.defineProperty(error, name, {\n\t\tvalue,\n\t\twritable: true,\n\t\tconfigurable: true\n\t});\n}\nconst UNPRINTABLE = \"A value was thrown that cannot be turned into text.\";\nfunction safeString(value) {\n\ttry {\n\t\treturn String(value);\n\t} catch {\n\t\ttry {\n\t\t\treturn Object.prototype.toString.call(value);\n\t\t} catch {\n\t\t\treturn UNPRINTABLE;\n\t\t}\n\t}\n}\n/**\n* The error to rethrow in place of a thrown defect, with every secret removed from its message\n* and stack, and from those of each error in its `cause` chain and in an `AggregateError`'s\n* `errors`. A cause that is text or plain data becomes a redacted copy. Each error is redacted\n* in place where it can be. One whose properties cannot change, such as a frozen error, is\n* replaced by a new error with the redacted message, stack and cause. A thrown value that is not\n* an `Error` becomes an `Error` whose message is its redacted text. Never throws: when reading\n* the error fails, the result is a new `Error` holding the redacted text of what was thrown.\n*/\nfunction redactThrown(thrown, redaction) {\n\ttry {\n\t\treturn thrown instanceof Error ? redactErrorChain(thrown, redaction, /* @__PURE__ */ new Map()) : new Error(redaction.redact(safeString(thrown)));\n\t} catch {\n\t\treturn new Error(redaction.redact(safeString(thrown)));\n\t}\n}\nfunction redactErrorChain(error, redaction, seen) {\n\tconst done = seen.get(error);\n\tif (done !== void 0) return done;\n\tseen.set(error, error);\n\tconst message = redaction.redact(typeof error.message === \"string\" ? error.message : safeString(error.message));\n\tconst stack = typeof error.stack === \"string\" ? redaction.redact(error.stack) : void 0;\n\tconst cause = error.cause instanceof Error ? redactErrorChain(error.cause, redaction, seen) : redactData(error.cause, redaction);\n\tconst members = error instanceof AggregateError ? error.errors.map((member) => member instanceof Error ? redactErrorChain(member, redaction, seen) : redactData(member, redaction)) : void 0;\n\ttry {\n\t\tsetOwn(error, \"message\", message);\n\t\tif (stack !== void 0) setOwn(error, \"stack\", stack);\n\t\tif (error.cause !== void 0) setOwn(error, \"cause\", cause);\n\t\tif (members !== void 0) setOwn(error, \"errors\", members);\n\t\treturn error;\n\t} catch {\n\t\tconst options = cause === void 0 ? void 0 : { cause };\n\t\tconst copy = members === void 0 ? new Error(message, options) : new AggregateError(members, message, options);\n\t\tcopy.name = error.name;\n\t\tsetOwn(copy, \"stack\", stack ?? `${error.name}: ${message}`);\n\t\tseen.set(error, copy);\n\t\treturn copy;\n\t}\n}\n/** `event` with every value `redaction` hides removed from the text it carries: a message, or a dev server's output line. */\nfunction redactDevEvent(event, redaction) {\n\tswitch (event.kind) {\n\t\tcase \"target-warning\":\n\t\tcase \"rebuild-failed\":\n\t\tcase \"watch-error\":\n\t\tcase \"stop-error\": return {\n\t\t\t...event,\n\t\t\tmessage: redaction.redact(event.message)\n\t\t};\n\t\tcase \"dev-server-output\": return {\n\t\t\t...event,\n\t\t\tline: redaction.redact(event.line)\n\t\t};\n\t\tdefault: return event;\n\t}\n}\n/** `summary` with every value `redaction` hides removed from each entity's id, url and details. */\nfunction redactSummary(summary, redaction) {\n\tif (summary === void 0) return void 0;\n\treturn {\n\t\tapp: summary.app,\n\t\tnodes: summary.nodes.map((node) => ({\n\t\t\taddress: node.address,\n\t\t\tentities: node.entities.map((entity) => ({\n\t\t\t\t...entity,\n\t\t\t\tid: redaction.redact(entity.id),\n\t\t\t\t...entity.url === void 0 ? {} : { url: redaction.redact(entity.url) },\n\t\t\t\t...entity.details === void 0 ? {} : { details: Object.fromEntries(Object.entries(entity.details).map(([key, value]) => [key, redaction.redact(value)])) }\n\t\t\t}))\n\t\t}))\n\t};\n}\nfunction isHighSurrogate(code) {\n\treturn code >= 55296 && code <= 56319;\n}\n/**\n* Redacts a stream of text chunk by chunk: every value in `values` becomes `[redacted]`, and\n* overlapping values are hidden whole. It holds back only the end of the text that could still\n* be part of a value: the longest end that could start one, or a match that a later value could\n* extend. So a value split across two chunks is still replaced, and text that cannot start one,\n* such as a prompt, is returned at once. It never splits a surrogate pair. `push` returns the\n* text that is ready; `end` returns the rest.\n*/\nvar StreamRedactor = class {\n\theld = \"\";\n\tmatcher;\n\tconstructor(values) {\n\t\tthis.matcher = new SecretMatcher(values);\n\t}\n\tpush(chunk) {\n\t\tconst text = this.held + chunk;\n\t\tconst cut = text.length - this.matcher.startOfSecretAtEnd(text);\n\t\tlet out = \"\";\n\t\tlet from = 0;\n\t\tlet ready = cut;\n\t\tfor (const [start, end] of this.matcher.spans(text)) {\n\t\t\tif (end > cut) {\n\t\t\t\tready = Math.min(cut, start);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tout += text.slice(from, start) + REDACTED;\n\t\t\tfrom = end;\n\t\t}\n\t\tif (ready > from && ready < text.length && isHighSurrogate(text.charCodeAt(ready - 1))) ready -= 1;\n\t\tthis.held = text.slice(ready);\n\t\treturn out + text.slice(from, ready);\n\t}\n\tend() {\n\t\tconst text = this.held;\n\t\tthis.held = \"\";\n\t\treturn this.matcher.redact(text);\n\t}\n};\n//#endregion\nexport { redactCredentialLooking as a, redactSummary as c, credentialLookingValues as i, redactThrown as l, SecretRedaction as n, redactDevEvent as o, StreamRedactor as r, redactError as s, KnownSecrets as t, valuesUnderSecretsKeys as u };\n\n//# sourceMappingURL=redaction-HnbkSFrK.mjs.map"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,kBAAkB;;;;;;AAMxB,SAAS,wBAAwB,WAAW;CAC3C,OAAO,OAAO,QAAQ,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,WAAW,gBAAgB,KAAK,IAAI,KAAK,OAAO,UAAU,YAAY,MAAM,UAAU,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;AACxJ;;;;;;AAMA,IAAI,gBAAgB,MAAM;CACzB;CACA,2BAA2B,IAAI,IAAI;CACnC;CACA,YAAY,QAAQ;EACnB,MAAM,SAAS,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,QAAQ,UAAU,MAAM,SAAS,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM;EAC1G,KAAK,SAAS,OAAO,WAAW,IAAI,KAAK,IAAI,IAAI,OAAO,OAAO,OAAO,KAAK,UAAU,MAAM,QAAQ,uBAAuB,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,KAAK,GAAG;EACrJ,KAAK,MAAM,SAAS,QAAQ,KAAK,IAAI,SAAS,GAAG,SAAS,MAAM,QAAQ,UAAU,KAAK,SAAS,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC;EAC1H,KAAK,gBAAgB,KAAK,IAAI,IAAI,OAAO,EAAE,EAAE,UAAU,KAAK,CAA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CAAC,CAAC,EAAE;GACzJ,EAAE;EACH,EAAE;CACH;AACD;AACA,SAAS,gBAAgB,MAAM;CAC9B,OAAO,QAAQ,SAAS,QAAQ;AACjC;;;;;;;;;AASA,IAAI,iBAAiB,MAAM;CAC1B,OAAO;CACP;CACA,YAAY,QAAQ;EACnB,KAAK,UAAU,IAAI,cAAc,MAAM;CACxC;CACA,KAAK,OAAO;EACX,MAAM,OAAO,KAAK,OAAO;EACzB,MAAM,MAAM,KAAK,SAAS,KAAK,QAAQ,mBAAmB,IAAI;EAC9D,IAAI,MAAM;EACV,IAAI,OAAO;EACX,IAAI,QAAQ;EACZ,KAAK,MAAM,CAAC,OAAO,QAAQ,KAAK,QAAQ,MAAM,IAAI,GAAG;GACpD,IAAI,MAAM,KAAK;IACd,QAAQ,KAAK,IAAI,KAAK,KAAK;IAC3B;GACD;GACA,OAAO,KAAK,MAAM,MAAM,KAAK,IAAI;GACjC,OAAO;EACR;EACA,IAAI,QAAQ,QAAQ,QAAQ,KAAK,UAAU,gBAAgB,KAAK,WAAW,QAAQ,CAAC,CAAC,GAAG,SAAS;EACjG,KAAK,OAAO,KAAK,MAAM,KAAK;EAC5B,OAAO,MAAM,KAAK,MAAM,MAAM,KAAK;CACpC;CACA,MAAM;EACL,MAAM,OAAO,KAAK;EAClB,KAAK,OAAO;EACZ,OAAO,KAAK,QAAQ,OAAO,IAAI;CAChC;AACD"}
package/dist/report.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { v as DeploymentResult } from "./app-config-BvxeTt2h-CcVmwsq6.mjs";
2
- import "./deploy-Cn9vjklJ.mjs";
3
- import { r as captureEngineFailure } from "./deployment-summary-Cm4lN6w9-Dc69sCgo.mjs";
1
+ import { v as DeploymentResult } from "./app-config-Bf_y5R7o-BEZAnKqM.mjs";
2
+ import "./deploy-DQyaIoNe.mjs";
3
+ import { r as captureEngineFailure } from "./deployment-summary-p88NV5m5-BJOosgmI.mjs";
4
4
  //#region ../../0-framework/3-tooling/cli/dist/report.d.mts
5
5
  //#region src/render-deployment.d.ts
6
6
  /**
package/dist/report.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as captureEngineFailure, s as writeDeploymentSummaryFile } from "./deployment-summary-QkZexVIS-DqL4znd4.mjs";
1
+ import { n as captureEngineFailure, o as writeDeploymentSummaryFile } from "./deployment-summary-BiBkPWlB-CyC2pudN.mjs";
2
2
  //#region ../../0-framework/3-tooling/cli/dist/report.mjs
3
3
  /** Gap between the deepest tree label and the entity column. */
4
4
  const LABEL_GAP = 3;