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

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 (102) hide show
  1. package/dist/{app-config-UeKFBma7-CohaMmWp.d.mts → app-config-CxdIiCvU-7vQWECm1.d.mts} +23 -21
  2. package/dist/app-config-CxdIiCvU-7vQWECm1.d.mts.map +1 -0
  3. package/dist/{app-configuration-file-CeJvBAti-D3uDlheX.mjs → app-configuration-file-Cw9autUL-DebaEvDz.mjs} +20 -25
  4. package/dist/app-configuration-file-Cw9autUL-DebaEvDz.mjs.map +1 -0
  5. package/dist/arktype.d.mts +1 -1
  6. package/dist/arktype.mjs +1 -1
  7. package/dist/arktype.mjs.map +1 -1
  8. package/dist/config-BcT6edff.d.mts +1 -0
  9. package/dist/config.d.mts +3 -3
  10. package/dist/config.mjs +1 -1
  11. package/dist/control.d.mts +7 -7
  12. package/dist/control.d.mts.map +1 -1
  13. package/dist/control.mjs +3 -3
  14. package/dist/control.mjs.map +1 -1
  15. package/dist/{deploy-3EXLVrtG.mjs → deploy-BzRRAmns.mjs} +8 -25
  16. package/dist/deploy-BzRRAmns.mjs.map +1 -0
  17. package/dist/deploy-D7NHGXag.d.mts +2 -0
  18. package/dist/deploy.d.mts +3 -3
  19. package/dist/deploy.mjs +2 -2
  20. package/dist/{deployment-summary-D74WrJX7-DQ3LDUuO.mjs → deployment-summary-B6rYxEZe-E4IIcngK.mjs} +3 -3
  21. package/dist/{deployment-summary-D74WrJX7-DQ3LDUuO.mjs.map → deployment-summary-B6rYxEZe-E4IIcngK.mjs.map} +1 -1
  22. package/dist/{deployment-summary-p88NV5m5-SgniM8TX.d.mts → deployment-summary-p88NV5m5-3Ga91LRH.d.mts} +3 -3
  23. package/dist/{deployment-summary-p88NV5m5-SgniM8TX.d.mts.map → deployment-summary-p88NV5m5-3Ga91LRH.d.mts.map} +1 -1
  24. package/dist/{describe-kind-Cpm_euxo-CkhlGJUL.mjs → describe-kind-Cpm_euxo-D9WDxl5C.mjs} +3 -3
  25. package/dist/describe-kind-Cpm_euxo-D9WDxl5C.mjs.map +1 -0
  26. package/dist/{dev-current-wD5YDLjA-CzyFYXni.mjs → dev-current-D8GwJQex-C8F3EUBY.mjs} +5 -5
  27. package/dist/{dev-current-wD5YDLjA-CzyFYXni.mjs.map → dev-current-D8GwJQex-C8F3EUBY.mjs.map} +1 -1
  28. package/dist/{dev-environment-name-6eEr5PW8-BwusWVKi.mjs → dev-environment-name-6eEr5PW8-6sPgQZG3.mjs} +2 -2
  29. package/dist/{dev-environment-name-6eEr5PW8-BwusWVKi.mjs.map → dev-environment-name-6eEr5PW8-6sPgQZG3.mjs.map} +1 -1
  30. package/dist/{dist-ynqBR6y8.mjs → dist-BN9EXWWX.mjs} +4 -26
  31. package/dist/dist-BN9EXWWX.mjs.map +1 -0
  32. package/dist/errors-0e8IVwzi.mjs.map +1 -1
  33. package/dist/{execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs → execute-deploy-destroy-1SIH5uAu-DVRY18xU.mjs} +12 -11
  34. package/dist/{execute-deploy-destroy-DOzo2Psp-DmS5miT4.mjs.map → execute-deploy-destroy-1SIH5uAu-DVRY18xU.mjs.map} +1 -1
  35. package/dist/{execute-dev-current-CKOzjWuO-BPecs6Lf.mjs → execute-dev-current-DsAsDBB1-DwfOidWf.mjs} +6 -6
  36. package/dist/{execute-dev-current-CKOzjWuO-BPecs6Lf.mjs.map → execute-dev-current-DsAsDBB1-DwfOidWf.mjs.map} +1 -1
  37. package/dist/{execute-dev-BIyOI3Ys-BbDOLlV4.mjs → execute-dev-xPaS5SAl-BUeHjmYV.mjs} +81 -19
  38. package/dist/execute-dev-xPaS5SAl-BUeHjmYV.mjs.map +1 -0
  39. package/dist/{execute-log-BDdHor71-B2p8Zae2.mjs → execute-log-Be9DYRI6-WnytA3d7.mjs} +6 -6
  40. package/dist/{execute-log-BDdHor71-B2p8Zae2.mjs.map → execute-log-Be9DYRI6-WnytA3d7.mjs.map} +1 -1
  41. package/dist/{graph-C7mdtisq-RnKiwVsx.d.mts → graph-DU0omY5O-BHO71z0F.d.mts} +3 -3
  42. package/dist/graph-DU0omY5O-BHO71z0F.d.mts.map +1 -0
  43. package/dist/{graph-BzPLUUsB-D7EnB1F5.mjs → graph-K7VOpCAj-D6UHSltu.mjs} +135 -101
  44. package/dist/graph-K7VOpCAj-D6UHSltu.mjs.map +1 -0
  45. package/dist/{graph-types-s5V7pGj2-BxSqB1ZH.d.mts → graph-types-Bzj1fahC-C8rOVj0c.d.mts} +90 -89
  46. package/dist/graph-types-Bzj1fahC-C8rOVj0c.d.mts.map +1 -0
  47. package/dist/http.d.mts +2 -2
  48. package/dist/http.mjs +2 -2
  49. package/dist/{index-DyuwxTtd.d.mts → index-B8s0bLZY.d.mts} +3 -3
  50. package/dist/{index-DyuwxTtd.d.mts.map → index-B8s0bLZY.d.mts.map} +1 -1
  51. package/dist/index.d.mts +5 -5
  52. package/dist/index.mjs +4 -4
  53. package/dist/internal-app-configuration-file.d.mts +8 -7
  54. package/dist/internal-app-configuration-file.d.mts.map +1 -1
  55. package/dist/internal-app-configuration-file.mjs +1 -1
  56. package/dist/{local-target-Dd8FJEb5.mjs → local-target-COdS1iNs.mjs} +3 -3
  57. package/dist/{local-target-Dd8FJEb5.mjs.map → local-target-COdS1iNs.mjs.map} +1 -1
  58. package/dist/local-target.d.mts +3 -3
  59. package/dist/local-target.d.mts.map +1 -1
  60. package/dist/local-target.mjs +1 -1
  61. package/dist/{nextjs-DLyeRR7M-0lw_cBIr.d.mts → nextjs-DLyeRR7M-Z_xX74Cp.d.mts} +3 -3
  62. package/dist/{nextjs-DLyeRR7M-0lw_cBIr.d.mts.map → nextjs-DLyeRR7M-Z_xX74Cp.d.mts.map} +1 -1
  63. package/dist/nextjs-control.d.mts +4 -4
  64. package/dist/nextjs.d.mts +1 -1
  65. package/dist/node-control.d.mts +3 -3
  66. package/dist/node.d.mts +2 -2
  67. package/dist/{pointer-CyQZZugO-D7k3vibs.d.mts → pointer-DclJZFQi-DJa4t8Wa.d.mts} +3 -3
  68. package/dist/{pointer-CyQZZugO-D7k3vibs.d.mts.map → pointer-DclJZFQi-DJa4t8Wa.d.mts.map} +1 -1
  69. package/dist/{preflight-transport-DmmtoFPH-CnDWufmu.mjs → preflight-transport-DJjTWvyH-CEJ9WlaN.mjs} +4 -6
  70. package/dist/preflight-transport-DJjTWvyH-CEJ9WlaN.mjs.map +1 -0
  71. package/dist/{redaction-DXung4ip-bBoNomi3.mjs → redaction-C-NnlVUh-B1nJc6rb.mjs} +3 -9
  72. package/dist/redaction-C-NnlVUh-B1nJc6rb.mjs.map +1 -0
  73. package/dist/{redaction-Bf8FvTFH-D_HvoMrf.d.mts → redaction-CqdeMBKw-BECjU4HR.d.mts} +15 -8
  74. package/dist/{redaction-Bf8FvTFH-D_HvoMrf.d.mts.map → redaction-CqdeMBKw-BECjU4HR.d.mts.map} +1 -1
  75. package/dist/report.d.mts +3 -3
  76. package/dist/report.mjs +2 -2
  77. package/dist/report.mjs.map +1 -1
  78. package/dist/{run-alchemy-CRLAyOtt-CBUV28We.mjs → run-alchemy-CyciV8i0-BxPAyrch.mjs} +3 -3
  79. package/dist/{run-alchemy-CRLAyOtt-CBUV28We.mjs.map → run-alchemy-CyciV8i0-BxPAyrch.mjs.map} +1 -1
  80. package/dist/service-rpc.d.mts +2 -2
  81. package/dist/service-rpc.mjs +2 -2
  82. package/dist/testing.d.mts +1 -1
  83. package/dist/{validate-environment-D1BTCkTs-BQprjyNP.mjs → validate-environment-DyW59rJ7-u8hQkzuY.mjs} +7 -7
  84. package/dist/{validate-environment-D1BTCkTs-BQprjyNP.mjs.map → validate-environment-DyW59rJ7-u8hQkzuY.mjs.map} +1 -1
  85. package/dist/zod.d.mts +1 -1
  86. package/dist/zod.mjs +1 -1
  87. package/dist/zod.mjs.map +1 -1
  88. package/package.json +11 -11
  89. package/skills/prisma-composer-core-concepts/SKILL.md +32 -40
  90. package/dist/app-config-UeKFBma7-CohaMmWp.d.mts.map +0 -1
  91. package/dist/app-configuration-file-CeJvBAti-D3uDlheX.mjs.map +0 -1
  92. package/dist/config-BeZEgGCg.d.mts +0 -1
  93. package/dist/deploy-3EXLVrtG.mjs.map +0 -1
  94. package/dist/deploy-Xi4_JrtE.d.mts +0 -2
  95. package/dist/describe-kind-Cpm_euxo-CkhlGJUL.mjs.map +0 -1
  96. package/dist/dist-ynqBR6y8.mjs.map +0 -1
  97. package/dist/execute-dev-BIyOI3Ys-BbDOLlV4.mjs.map +0 -1
  98. package/dist/graph-BzPLUUsB-D7EnB1F5.mjs.map +0 -1
  99. package/dist/graph-C7mdtisq-RnKiwVsx.d.mts.map +0 -1
  100. package/dist/graph-types-s5V7pGj2-BxSqB1ZH.d.mts.map +0 -1
  101. package/dist/preflight-transport-DmmtoFPH-CnDWufmu.mjs.map +0 -1
  102. package/dist/redaction-DXung4ip-bBoNomi3.mjs.map +0 -1
@@ -1,11 +1,11 @@
1
- import { F as ModuleNode, K as ProvisionNeed, R as NodeId, Z as ResourceNode, o as BuildAdapter, r as AppRootNode, s as Config, st as ServiceNode, t as AppConfigurationRead, y as Graph } from "./graph-types-s5V7pGj2-BxSqB1ZH.mjs";
2
- import "./graph-C7mdtisq-RnKiwVsx.mjs";
1
+ import { F as ModuleNode, K as ProvisionNeed, R as NodeId, Z as ResourceNode, o as BuildAdapter, r as AppRootNode, s as Config, st as ServiceNode, t as AppConfigurationRead, y as Graph } from "./graph-types-Bzj1fahC-C8rOVj0c.mjs";
2
+ import "./graph-DU0omY5O-BHO71z0F.mjs";
3
3
  import * as Alchemy from "alchemy";
4
4
  import { Input, StackServices } from "alchemy";
5
5
  import * as Effect from "effect/Effect";
6
6
  import * as Layer from "effect/Layer";
7
7
  import { State } from "alchemy/State/State";
8
- //#region ../../0-framework/1-core/core/dist/app-config-UeKFBma7.d.mts
8
+ //#region ../../0-framework/1-core/core/dist/app-config-CxdIiCvU.d.mts
9
9
  //#region src/container-transport.d.ts
10
10
  /**
11
11
  * Carries resolved containers from the CLI process into the alchemy process
@@ -99,19 +99,14 @@ declare function preflightEnvVarName(extensionId: string): string;
99
99
  declare function preflightEnv(payloads: ReadonlyMap<string, string>): Record<string, string>;
100
100
  /** The alchemy-process side: the payload this extension's own preflight wrote, or `undefined` when it wrote none (or when nothing ran a preflight at all). */
101
101
  declare function readPreflightPayload(extensionId: string, env: Readonly<Record<string, string | undefined>>): PreflightPayload;
102
- /** Where a platform variable is named: a service's input field, a service's per-key param, or the input of a module or resource that passes it to no service. */
102
+ /** Where a platform variable is named: a service's input field, or a resource no service reads. */
103
103
  type PlatformVariableReader = {
104
104
  readonly kind: 'field';
105
105
  readonly service: string;
106
106
  readonly path: string;
107
- } | {
108
- readonly kind: 'param';
109
- readonly service: string;
110
- readonly param: string;
111
107
  } | {
112
108
  readonly kind: 'unread';
113
109
  readonly node: string;
114
- readonly nodeKind: 'module' | 'resource';
115
110
  };
116
111
  /** A platform variable with no value that nothing requires, with its readers and the commands that set it. */
117
112
  interface UnsetPlatformVariable {
@@ -168,7 +163,7 @@ interface ProvisionerDescriptor {
168
163
  /**
169
164
  * The phased service SPI. `P` and `S` are the descriptor's OWN intra-node
170
165
  * handoff types — provision's product consumed by serialize/deploy, and
171
- * serialize's product consumed by deploy. Core threads them through without
166
+ * serialize's product consumed by package/deploy. Core threads them through without
172
167
  * inspection; only the descriptor that writes them reads them.
173
168
  *
174
169
  * Method syntax (not property-arrow) is required: the heterogeneous
@@ -192,9 +187,10 @@ interface ServiceLowering<P = unknown, S = unknown> {
192
187
  /**
193
188
  * Prints the bootstrap and assembles the deployable artifact from the
194
189
  * app-built bundle. Must be byte-deterministic: an unchanged service noops
195
- * on redeploy.
190
+ * on redeploy. `serialized` is this service's `serialize` product. It must
191
+ * not write a secret, or a value the deploy has not resolved, into the artifact.
196
192
  */
197
- package(ctx: LowerContext, input: PackageInput): Effect.Effect<Artifact, unknown, unknown>;
193
+ package(ctx: LowerContext, input: PackageInput, serialized: S): Effect.Effect<Artifact, unknown, unknown>;
198
194
  /** Ships the packaged artifact into the provisioned thing and runs it. Returns the node's outputs for dependents, plus the entities it became on the deployment target. */
199
195
  deploy(ctx: LowerContext, provisioned: P, artifact: Artifact, serialized: S): Effect.Effect<LoweredResult, unknown, unknown>;
200
196
  /**
@@ -304,7 +300,7 @@ interface LowerOptions {
304
300
  readonly name: string;
305
301
  /** The environment being deployed, as `--environment` gave it. Required by any value over `environment.name`; the generated stack files always pass it. */
306
302
  readonly environment?: string;
307
- /** What the first process's Load read from the app configuration (ADR-0062), from the app configuration file. Load takes the root's input and every configuration key's text from it, and the Prisma Cloud serializer reads a service's `envParam()` leaves from its `configurationKeyText`. The generated stack files pass it. */
303
+ /** What the first process's Load read from the app configuration (ADR-0062), from the app configuration file. Load takes the root's input from it. The generated stack files pass it. */
308
304
  readonly appConfigurationRead?: AppConfigurationRead;
309
305
  /** The node addresses of the graph the first process built. When given, lowering refuses a graph whose addresses differ. The generated stack files pass them. */
310
306
  readonly firstProcessNodeAddresses?: readonly string[];
@@ -656,8 +652,8 @@ interface LocalTargetDescriptor {
656
652
  providers(input: LocalTargetProvidersInput): Layer.Layer<never>;
657
653
  /** A stable local identity — resolved without any platform call. */
658
654
  readonly container: ContainerDescriptor;
659
- /** Value sourcing (secrets/env-params) — runs where deploy's preflight runs. What it returns reaches the alchemy process the same way deploy's preflight payload does. */
660
- preflight?(input: PreflightInput): Promise<PreflightPayload>;
655
+ /** Works out the platform variables' values, where deploy's preflight runs. Its payload reaches the alchemy process the same way deploy's preflight payload does. */
656
+ preflight?(input: PreflightInput): Promise<DevPreflightResult>;
661
657
  /** Ensure the emulator daemons this topology's node kinds need are running, plus any per-node emulator state that must exist before converge (idempotent; daemons persist across sessions). */
662
658
  emulators?(input: LocalTargetEmulatorsInput): Promise<void>;
663
659
  /** The dev session's view of the running app. Core renders it and never learns an emulator's API. */
@@ -672,6 +668,12 @@ interface LocalTargetDescriptor {
672
668
  */
673
669
  current?(input: LocalTargetCurrentInput): Promise<LocalTargetCurrentApp | undefined>;
674
670
  }
671
+ /** What a local target's preflight found. */
672
+ interface DevPreflightResult {
673
+ readonly payload: PreflightPayload;
674
+ /** The text of each plain platform variable a service reads, by name. Never a secret. */
675
+ readonly plainVariableText: Readonly<Record<string, string>>;
676
+ }
675
677
  interface LocalTargetCurrentInput {
676
678
  /** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
677
679
  readonly devDir: string;
@@ -724,9 +726,9 @@ interface LocalTargetProvidersInput {
724
726
  readonly container: ContainerInstance | undefined;
725
727
  /** Absolute path of the environment's dev state directory (`devEnvironmentDir`, under the cwd). */
726
728
  readonly devDir: string;
727
- /** The text of each configuration key the graph reads, from the app configuration file. A local deployment takes the text its param rows point at from it. */
728
- readonly configurationKeyText: Readonly<Record<string, string>>;
729
- /** The app secrets the graph's `envSecret()`s name, which the first process handed the second. A local deployment takes the text its `$platform` markers name from it. */
729
+ /** The text of each plain platform variable a service reads, by name. Never a secret. */
730
+ readonly plainVariableText: Readonly<Record<string, string>>;
731
+ /** The app secrets the graph's platform secrets name, which the first process handed the second. A local deployment takes the text its secret `$platform` markers name from it. */
730
732
  readonly namedSecrets: NamedSecrets;
731
733
  }
732
734
  interface LocalTargetEmulatorsInput {
@@ -835,7 +837,7 @@ interface ConfigAdapterInput {
835
837
  type ConfigValues = Readonly<Record<string, unknown>>;
836
838
  /** A function in the `config` or `secrets` list of the `composer` section (ADR-0062): it receives the environment and returns that environment's values. Only the command's first process calls it; the second process reads what the first read from the app configuration file. */
837
839
  type ConfigAdapter = (input: ConfigAdapterInput) => ConfigValues | Promise<ConfigValues>;
838
- /** The app configuration (ADR-0062): what the `config` adapters return, merged by top-level key, a later adapter winning. It is the root's input, and what `envParam()` reads. */
840
+ /** The app configuration (ADR-0062): what the `config` adapters return, merged by top-level key, a later adapter winning. It is the root's input, and under `prisma dev` it also holds the text of each plain platform variable. */
839
841
  type AppConfiguration = Readonly<Record<string, unknown>>;
840
842
  /** The app secrets (ADR-0062): what the `secrets` adapters return, merged the same way. Every value is text. Nothing fills a platform variable from them. `prisma dev` hands its second process the values under the secrets keys of the graph's secret sources, and Composer redacts those values wherever it prints. */
841
843
  type AppSecrets = Readonly<Record<string, string>>;
@@ -860,5 +862,5 @@ interface PrismaAppConfig {
860
862
  /** Typed identity — exists so the `composer` section of `prisma.config.ts` gets checked against PrismaAppConfig where it is written. */
861
863
  declare function defineConfig(config: PrismaAppConfig): PrismaAppConfig;
862
864
  //#endregion
863
- export { RunOutcome as $, LocalTargetProvidersInput as A, PREFLIGHT_FINDINGS_ENV_VAR as B, LocalNodeStopped as C, readPreflightFindings as Ct, LocalTargetCurrentInput as D, LocalTargetCurrentApp as E, LoweredResult as F, PreflightInput as G, PlatformVariableCheck as H, Lowering as I, ProvisionEdge as J, PreflightPayload as K, NamedSecrets as L, LowerContext as M, LowerError as N, LocalTargetDescriptor as O, LowerOptions as P, ReporterDescriptor as Q, NodeDescriptor as R, LocalNodeLocation as S, preflightFindingsEnv as St, LocalTargetAttachment as T, resolveStateLayer as Tt, PlatformVariableReader as U, PackageInput as V, PreflightFindings as W, ReportAttachInput as X, ProvisionerDescriptor as Y, ReportBeginInput as Z, DeployedNode as _, lowering as _t, Artifact as a, UnsetPlatformVariable as at, ExtensionDescriptor as b, preflightEnv as bt, ConfigAdapter as c, containerEnv as ct, ContainerCredentials as d, deploymentResult as dt, RunReporter as et, ContainerDescriptor as f, deserializeContainers as ft, DeployedEntity as g, lower as gt, DEV_ENVIRONMENT_NAME_FILE as h, joinDeployment as ht, ApplicationDescriptor as i, TeardownInput as it, LocateContainerInput as j, LocalTargetEmulatorsInput as k, ConfigAdapterInput as l, containerEnvVarName as lt, DEV_DIR as m, isBuildOnlyExtension as mt, AppConfiguration as n, ServiceLowering as nt, AssembleInput as o, buildConfig as ot, ContainerInstance as p, devEnvironmentDir as pt, PrismaAppConfig as q, AppSecrets as r, StateDescriptor as rt, Bundle as s, connectionInputs as st, AlchemyStateLayer as t, ServeInput as tt, ConfigValues as u, defineConfig as ut, DeploymentResult as v, mergedProviders as vt, LocalTargetAttachInput as w, readPreflightPayload as wt, LocalNodeCondition as x, preflightEnvVarName as xt, DevServer as y, platformVariableReaderText as yt, Outputs as z };
864
- //# sourceMappingURL=app-config-UeKFBma7-CohaMmWp.d.mts.map
865
+ export { ReporterDescriptor as $, LocalTargetEmulatorsInput as A, Outputs as B, LocalNodeLocation as C, preflightFindingsEnv as Ct, LocalTargetCurrentApp as D, LocalTargetAttachment as E, resolveStateLayer as Et, LowerOptions as F, PreflightFindings as G, PackageInput as H, LoweredResult as I, PrismaAppConfig as J, PreflightInput as K, Lowering as L, LocateContainerInput as M, LowerContext as N, LocalTargetCurrentInput as O, LowerError as P, ReportBeginInput as Q, NamedSecrets as R, LocalNodeCondition as S, preflightEnvVarName as St, LocalTargetAttachInput as T, readPreflightPayload as Tt, PlatformVariableCheck as U, PREFLIGHT_FINDINGS_ENV_VAR as V, PlatformVariableReader as W, ProvisionerDescriptor as X, ProvisionEdge as Y, ReportAttachInput as Z, DeployedNode as _, lower as _t, Artifact as a, TeardownInput as at, DevServer as b, platformVariableReaderText as bt, ConfigAdapter as c, connectionInputs as ct, ContainerCredentials as d, defineConfig as dt, RunOutcome as et, ContainerDescriptor as f, deploymentResult as ft, DeployedEntity as g, joinDeployment as gt, DEV_ENVIRONMENT_NAME_FILE as h, isBuildOnlyExtension as ht, ApplicationDescriptor as i, StateDescriptor as it, LocalTargetProvidersInput as j, LocalTargetDescriptor as k, ConfigAdapterInput as l, containerEnv as lt, DEV_DIR as m, devEnvironmentDir as mt, AppConfiguration as n, ServeInput as nt, AssembleInput as o, UnsetPlatformVariable as ot, ContainerInstance as p, deserializeContainers as pt, PreflightPayload as q, AppSecrets as r, ServiceLowering as rt, Bundle as s, buildConfig as st, AlchemyStateLayer as t, RunReporter as tt, ConfigValues as u, containerEnvVarName as ut, DeploymentResult as v, lowering as vt, LocalNodeStopped as w, readPreflightFindings as wt, ExtensionDescriptor as x, preflightEnv as xt, DevPreflightResult as y, mergedProviders as yt, NodeDescriptor as z };
866
+ //# sourceMappingURL=app-config-CxdIiCvU-7vQWECm1.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config-CxdIiCvU-7vQWECm1.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/app-config-CxdIiCvU.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAmBU;;WAEC;;WAEA;;;;;;;UAOD;WACC,OAAO;;WAEP;;EAET;;;;;;;;;;;;;;;UAeQ,qBAAqB;;WAEpB;;WAEA,SAAS;;;;;;;;;;;;UAYV,oBAAoB,UAAU,oBAAoB,mBAAmB;;EAE7E,OAAO,OAAO,sBAAsB,cAAc,qBAAqB,KAAK,QAAQ;;EAEpF,OAAO,OAAO,sBAAsB,cAAc,qBAAqB,KAAK,QAAQ;;EAEpF,OAAO,UAAU,GAAG,cAAc,qBAAqB,KAAK;;EAE5D,YAAY,qBAAqB;;;iBAGlB,oBAAoB;;iBAEpB,aAAa,WAAW,oBAAoB,qBAAqB;;UAExE;WACC;WACA,YAAY;;;;;;iBAMN,sBAAsB,qBAAqB,+BAA+B,KAAK,SAAS,sCAAsC,oBAAoB;;;;KAI9J;;iBAEY,oBAAoB;;iBAEpB,aAAa,UAAU,8BAA8B;;iBAErD,qBAAqB,qBAAqB,KAAK,SAAS,sCAAsC;;KAE1G;WACM;WACA;WACA;;WAEA;WACA;;;UAGD;WACC;WACA,kBAAkB;;WAElB;;;UAGD;WACC,gBAAgB;;;iBAGV,2BAA2B,QAAQ;;cAEtC;;iBAEG,qBAAqB,UAAU,oBAAoB;;iBAEnD,sBAAsB,KAAK,SAAS,sCAAsC;;;;KAItF,oBAAoB,MAAM,MAAM,cAAc;;;;;;UAMzC;EACR,UAAU,KAAK,eAAe,OAAO;;;;;;;;UAQ7B;;WAEC;WACA;WACA;WACA;WACA;;WAEA,MAAM;;;UAGP;;EAER,UAAU,MAAM,gBAAgB,OAAO;;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aAAa,SAAS;;KAEtB,eAAe,SAAS;;;;;;;UAOnB;;WAEC;WACA,YAAY;WACZ,OAAO;;WAEP,kBAAkB;;WAElB,mBAAmB;;;iBAGb,aAAa,QAAQ,kBAAkB"}
@@ -2,7 +2,7 @@ import { t as CliStructuredError } from "./errors-0e8IVwzi.mjs";
2
2
  import { t as DEV_DIR } from "./app-config-CErnR6NK-D9NgSBH4.mjs";
3
3
  import * as path$1 from "node:path";
4
4
  import * as fs$1 from "node:fs";
5
- //#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-CeJvBAti.mjs
5
+ //#region ../../0-framework/3-tooling/cli/dist/app-configuration-file-Cw9autUL.mjs
6
6
  /** Names the app configuration file the first process wrote for this run (ADR-0062). */
7
7
  const APP_CONFIGURATION_FILE_ENV = "PRISMA_COMPOSER_APP_CONFIGURATION_FILE";
8
8
  /** `prisma dev` only: the named secrets, as a JSON object. */
@@ -72,35 +72,32 @@ function textIn(value, at) {
72
72
  * compared as its text (`KnownSecrets.nameIn`). The message names where and the secrets key,
73
73
  * never the value.
74
74
  */
75
- function refuseSecretsIn(read, knownSecrets) {
76
- const places = [...read.rootInput.flatMap((field) => textIn(field.value, field.path).map(({ at, text }) => ({
75
+ function refuseSecretsIn(read, plainVariableText, knownSecrets) {
76
+ const readPlaces = read.rootInput.flatMap((field) => textIn(field.value, field.path).map(({ at, text }) => ({
77
77
  where: `Root input field input.${at.join(".")}`,
78
78
  text
79
- }))), ...Object.entries(read.configurationKeyText).map(([key, text]) => ({
80
- where: `Configuration key "${key}"`,
81
- text
82
- }))];
83
- for (const { where, text } of places) {
79
+ })));
80
+ for (const { where, text } of readPlaces) {
84
81
  const name = knownSecrets.nameIn(text);
85
82
  if (name === void 0) continue;
86
- throw new CliStructuredError("CONFIG.SECRET_AS_PLAIN_VALUE", `${where} holds the value of the secret "${name}", which an envSecret() in the graph reads. Composer hands the second process every plain value Load read, in a file, and never writes a secret to a file.`, { fix: `Read the secret with envSecret('${name}') where it is used, or give this plain value text that does not contain the value of "${name}".` });
83
+ throw new CliStructuredError("CONFIG.SECRET_AS_PLAIN_VALUE", `${where} holds the value of the secret "${name}", which a platform secret in the graph reads. Composer hands the second process every plain value Load read, in a file, and never writes a secret to a file.`, { fix: `Pass the value of the platform secret "${name}" to where this value is used, or give this plain value text that does not contain the value of "${name}".` });
84
+ }
85
+ for (const [variable, text] of Object.entries(plainVariableText)) {
86
+ const name = knownSecrets.nameIn(text);
87
+ if (name === void 0) continue;
88
+ throw new CliStructuredError("CONFIG.SECRET_AS_PLAIN_VALUE", `The platform variable "${variable}", which prisma dev read from the \`config\` adapters, holds the value of the secret "${name}". Composer hands the second process every plain value in a file, and never writes a secret to a file.`, { fix: `Keep the value of "${name}" out of the platform variable "${variable}", or give "${variable}" a different value.` });
87
89
  }
88
90
  }
89
91
  /**
90
- * First process: the handover to the second process (ADR-0062). The app configuration file at
91
- * `file` holds what Load read and the graph's node addresses. With `appSecrets`, which only
92
- * `prisma dev` passes, the environment also carries the named secrets: the app secrets under
93
- * the graph's secrets keys, each with text. Refuses when the file would hold any of
94
- * `knownSecrets`. Every other input is plain data from the graph, such as
95
- * `graph.appConfigurationRead`, `nodeAddresses(graph)` and `secretsKeys(graph)`, so a caller with
96
- * its own copy of Composer's core can pass them. The exception is `knownSecrets`, a
97
- * `KnownSecrets`, which such a caller builds from the testing entry.
92
+ * First process: the app configuration file and the environment the second process starts with (ADR-0062).
93
+ * Refuses a file that would hold any of `knownSecrets`.
98
94
  */
99
95
  function prepareSecondProcess(input) {
100
96
  const { file, appSecrets } = input;
101
- refuseSecretsIn(input.appConfigurationRead, input.knownSecrets);
97
+ refuseSecretsIn(input.appConfigurationRead, input.plainVariableText, input.knownSecrets);
102
98
  const contents = {
103
99
  appConfigurationRead: input.appConfigurationRead,
100
+ plainVariableText: input.plainVariableText,
104
101
  nodeAddresses: input.nodeAddresses
105
102
  };
106
103
  const env = { [APP_CONFIGURATION_FILE_ENV]: file };
@@ -187,15 +184,13 @@ function readAppConfigurationFile(env) {
187
184
  if (!isRecord(read)) throw notComposers("appConfigurationRead is not an object");
188
185
  const rootInput = rootFieldsOf(read["rootInput"]);
189
186
  if (rootInput === void 0) throw notComposers("rootInput is not a list of fields");
190
- const configurationKeyText = textByKeyOf(read["configurationKeyText"]);
191
- if (configurationKeyText === void 0) throw notComposers("configurationKeyText is not an object of text");
187
+ const plainVariableText = textByKeyOf(parsed["plainVariableText"]);
188
+ if (plainVariableText === void 0) throw notComposers("plainVariableText is not an object of text");
192
189
  const addresses = parsed["nodeAddresses"];
193
190
  if (!isTextList(addresses)) throw notComposers("nodeAddresses is not a list of node addresses");
194
191
  return {
195
- appConfigurationRead: {
196
- rootInput,
197
- configurationKeyText
198
- },
192
+ appConfigurationRead: { rootInput },
193
+ plainVariableText,
199
194
  nodeAddresses: addresses
200
195
  };
201
196
  }
@@ -218,4 +213,4 @@ function namedSecretsFromEnvironment(env) {
218
213
  //#endregion
219
214
  export { readAppConfigurationFile as a, prepareSecondProcess as i, devAppConfigurationFile as n, removeLeftoverAppConfigurationFiles as o, namedSecretsFromEnvironment as r, deployAppConfigurationFile as t };
220
215
 
221
- //# sourceMappingURL=app-configuration-file-CeJvBAti-D3uDlheX.mjs.map
216
+ //# sourceMappingURL=app-configuration-file-Cw9autUL-DebaEvDz.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-configuration-file-Cw9autUL-DebaEvDz.mjs","names":["path","fs"],"sources":["../../../0-framework/3-tooling/cli/dist/app-configuration-file-Cw9autUL.mjs"],"sourcesContent":["import * as fs from \"node:fs\";\nimport * as path from \"node:path\";\nimport { CliStructuredError } from \"@internal/foundation/errors\";\nimport { DEV_DIR } from \"@internal/core/config\";\n//#region src/app-configuration-file.ts\n/** Names the app configuration file the first process wrote for this run (ADR-0062). */\nconst APP_CONFIGURATION_FILE_ENV = \"PRISMA_COMPOSER_APP_CONFIGURATION_FILE\";\n/** `prisma dev` only: the named secrets, as a JSON object. */\nconst NAMED_SECRETS_ENV = \"PRISMA_COMPOSER_NAMED_SECRETS\";\nconst FILE_NAME = /^app-configuration-(\\d+)(-[^/]*)?\\.json$/;\n/** The app configuration file a deploy or destroy run writes: unique per run, so concurrent runs from one checkout never share one. */\nfunction deployAppConfigurationFile(cwd, runId) {\n\treturn path.join(cwd, \".prisma-composer\", `app-configuration-${String(process.pid)}-${runId}.json`);\n}\n/** The app configuration file `prisma dev` writes in an environment's folder. */\nfunction devAppConfigurationFile(devDir) {\n\treturn path.join(devDir, `app-configuration-${String(process.pid)}.json`);\n}\nfunction isRunning(pid) {\n\ttry {\n\t\tprocess.kill(pid, 0);\n\t\treturn true;\n\t} catch (error) {\n\t\treturn error instanceof Error && \"code\" in error && error.code === \"EPERM\";\n\t}\n}\n/**\n* Deletes the app configuration files that earlier runs left in `.prisma-composer/` and in\n* each dev environment's folder: a run killed before its exit handler ran leaves its file. A\n* file is deleted only when its process is not running and it is older than\n* `LEFTOVER_APP_CONFIGURATION_FILE_AGE_MS`. Never throws.\n*/\nfunction removeLeftoverAppConfigurationFiles(cwd) {\n\tconst devRoot = path.join(cwd, DEV_DIR);\n\tconst dirs = [path.join(cwd, \".prisma-composer\")];\n\ttry {\n\t\tfor (const entry of fs.readdirSync(devRoot, { withFileTypes: true })) if (entry.isDirectory()) dirs.push(path.join(devRoot, entry.name));\n\t} catch {}\n\tfor (const dir of dirs) {\n\t\tlet names;\n\t\ttry {\n\t\t\tnames = fs.readdirSync(dir);\n\t\t} catch {\n\t\t\tcontinue;\n\t\t}\n\t\tfor (const name of names) {\n\t\t\tconst pid = Number(FILE_NAME.exec(name)?.[1]);\n\t\t\tif (Number.isNaN(pid) || pid === process.pid || isRunning(pid)) continue;\n\t\t\tconst file = path.join(dir, name);\n\t\t\ttry {\n\t\t\t\tif (Date.now() - fs.statSync(file).mtimeMs < 6e5) continue;\n\t\t\t\tfs.rmSync(file, { force: true });\n\t\t\t} catch {}\n\t\t}\n\t}\n}\nfunction textIn(value, at) {\n\tif (typeof value === \"string\") return [{\n\t\tat,\n\t\ttext: value\n\t}];\n\tif (typeof value === \"number\" || typeof value === \"boolean\" || typeof value === \"bigint\") return [{\n\t\tat,\n\t\ttext: String(value)\n\t}];\n\tif (Array.isArray(value)) return value.flatMap((member, index) => textIn(member, [...at, String(index)]));\n\tif (typeof value === \"object\" && value !== null) return Object.entries(value).flatMap(([key, member]) => textIn(member, [...at, key]));\n\treturn [];\n}\n/**\n* Refuses when the file would hold a known secret in a plain value, a number or a boolean\n* compared as its text (`KnownSecrets.nameIn`). The message names where and the secrets key,\n* never the value.\n*/\nfunction refuseSecretsIn(read, plainVariableText, knownSecrets) {\n\tconst readPlaces = read.rootInput.flatMap((field) => textIn(field.value, field.path).map(({ at, text }) => ({\n\t\twhere: `Root input field input.${at.join(\".\")}`,\n\t\ttext\n\t})));\n\tfor (const { where, text } of readPlaces) {\n\t\tconst name = knownSecrets.nameIn(text);\n\t\tif (name === void 0) continue;\n\t\tthrow new CliStructuredError(\"CONFIG.SECRET_AS_PLAIN_VALUE\", `${where} holds the value of the secret \"${name}\", which a platform secret in the graph reads. Composer hands the second process every plain value Load read, in a file, and never writes a secret to a file.`, { fix: `Pass the value of the platform secret \"${name}\" to where this value is used, or give this plain value text that does not contain the value of \"${name}\".` });\n\t}\n\tfor (const [variable, text] of Object.entries(plainVariableText)) {\n\t\tconst name = knownSecrets.nameIn(text);\n\t\tif (name === void 0) continue;\n\t\tthrow new CliStructuredError(\"CONFIG.SECRET_AS_PLAIN_VALUE\", `The platform variable \"${variable}\", which prisma dev read from the \\`config\\` adapters, holds the value of the secret \"${name}\". Composer hands the second process every plain value in a file, and never writes a secret to a file.`, { fix: `Keep the value of \"${name}\" out of the platform variable \"${variable}\", or give \"${variable}\" a different value.` });\n\t}\n}\n/**\n* First process: the app configuration file and the environment the second process starts with (ADR-0062).\n* Refuses a file that would hold any of `knownSecrets`.\n*/\nfunction prepareSecondProcess(input) {\n\tconst { file, appSecrets } = input;\n\trefuseSecretsIn(input.appConfigurationRead, input.plainVariableText, input.knownSecrets);\n\tconst contents = {\n\t\tappConfigurationRead: input.appConfigurationRead,\n\t\tplainVariableText: input.plainVariableText,\n\t\tnodeAddresses: input.nodeAddresses\n\t};\n\tconst env = { [APP_CONFIGURATION_FILE_ENV]: file };\n\tif (appSecrets !== void 0) {\n\t\tconst named = {};\n\t\tfor (const key of input.secretsKeys) {\n\t\t\tconst text = appSecrets[key];\n\t\t\tif (text !== void 0 && text !== \"\") named[key] = text;\n\t\t}\n\t\tenv[NAMED_SECRETS_ENV] = JSON.stringify(named);\n\t}\n\tconst remove = () => {\n\t\ttry {\n\t\t\tfs.rmSync(file, { force: true });\n\t\t} catch {}\n\t};\n\treturn {\n\t\tenv,\n\t\twriteFile() {\n\t\t\tfs.rmSync(file, { force: true });\n\t\t\tfs.writeFileSync(file, JSON.stringify(contents), {\n\t\t\t\tmode: 384,\n\t\t\t\tflag: \"wx\"\n\t\t\t});\n\t\t\tprocess.off(\"exit\", remove);\n\t\t\tprocess.on(\"exit\", remove);\n\t\t},\n\t\tremoveFile() {\n\t\t\tprocess.off(\"exit\", remove);\n\t\t\tremove();\n\t\t}\n\t};\n}\nfunction missingVariable(name, what) {\n\treturn `${name} is not set. This stack file runs as the second process of a Composer deploy, destroy or prisma dev, which ${what}.`;\n}\nfunction isRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction isTextList(value) {\n\treturn Array.isArray(value) && value.every((member) => typeof member === \"string\");\n}\nfunction rootFieldsOf(value) {\n\tif (!Array.isArray(value)) return void 0;\n\tconst fields = [];\n\tfor (const member of value) {\n\t\tif (!isRecord(member) || !isTextList(member[\"path\"])) return void 0;\n\t\tfields.push(\"value\" in member ? {\n\t\t\tpath: member[\"path\"],\n\t\t\tvalue: member[\"value\"]\n\t\t} : { path: member[\"path\"] });\n\t}\n\treturn fields;\n}\nfunction textByKeyOf(value) {\n\tif (!isRecord(value)) return void 0;\n\tconst byKey = {};\n\tfor (const [key, member] of Object.entries(value)) {\n\t\tif (typeof member !== \"string\") return void 0;\n\t\tbyKey[key] = member;\n\t}\n\treturn byKey;\n}\n/** Second process: the app configuration file the first process named in its environment. */\nfunction readAppConfigurationFile(env) {\n\tconst file = env[APP_CONFIGURATION_FILE_ENV];\n\tif (file === void 0 || file === \"\") throw new Error(missingVariable(APP_CONFIGURATION_FILE_ENV, \"names the app configuration file it wrote there\"));\n\tlet text;\n\ttry {\n\t\ttext = fs.readFileSync(file, \"utf8\");\n\t} catch (cause) {\n\t\tconst message = cause instanceof Error ? cause.message : String(cause);\n\t\tthrow new Error(`Could not read the app configuration file ${file}: ${message}. Composer deletes it when the run ends, so a stack file run by hand after that cannot read it; run the command again.`, { cause });\n\t}\n\tconst notComposers = (what) => /* @__PURE__ */ new Error(`The app configuration file ${file} is not one Composer wrote: ${what}.`);\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(text);\n\t} catch {\n\t\tthrow notComposers(\"it is not JSON\");\n\t}\n\tif (!isRecord(parsed)) throw notComposers(\"it is not JSON\");\n\tconst read = parsed[\"appConfigurationRead\"];\n\tif (!isRecord(read)) throw notComposers(\"appConfigurationRead is not an object\");\n\tconst rootInput = rootFieldsOf(read[\"rootInput\"]);\n\tif (rootInput === void 0) throw notComposers(\"rootInput is not a list of fields\");\n\tconst plainVariableText = textByKeyOf(parsed[\"plainVariableText\"]);\n\tif (plainVariableText === void 0) throw notComposers(\"plainVariableText is not an object of text\");\n\tconst addresses = parsed[\"nodeAddresses\"];\n\tif (!isTextList(addresses)) throw notComposers(\"nodeAddresses is not a list of node addresses\");\n\treturn {\n\t\tappConfigurationRead: { rootInput },\n\t\tplainVariableText,\n\t\tnodeAddresses: addresses\n\t};\n}\n/** Second process, under `prisma dev`: the named secrets the first process handed it. */\nfunction namedSecretsFromEnvironment(env) {\n\tconst text = env[NAMED_SECRETS_ENV];\n\tif (text === void 0 || text === \"\") throw new Error(missingVariable(NAMED_SECRETS_ENV, \"hands the secrets the local services need there\"));\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(text);\n\t} catch {\n\t\tparsed = void 0;\n\t}\n\tconst byKey = textByKeyOf(parsed);\n\tif (byKey === void 0) throw new Error(`${NAMED_SECRETS_ENV} is not a JSON object of text.`);\n\tconst secrets = Object.create(null);\n\tObject.assign(secrets, byKey);\n\treturn Object.freeze(secrets);\n}\n//#endregion\nexport { readAppConfigurationFile as a, prepareSecondProcess as i, devAppConfigurationFile as n, removeLeftoverAppConfigurationFiles as o, namedSecretsFromEnvironment as r, deployAppConfigurationFile as t };\n\n//# sourceMappingURL=app-configuration-file-Cw9autUL.mjs.map"],"mappings":";;;;;;AAMA,MAAM,6BAA6B;;AAEnC,MAAM,oBAAoB;AAC1B,MAAM,YAAY;;AAElB,SAAS,2BAA2B,KAAK,OAAO;CAC/C,OAAOA,OAAK,KAAK,KAAK,oBAAoB,qBAAqB,OAAO,QAAQ,GAAG,EAAE,GAAG,MAAM,MAAM;AACnG;;AAEA,SAAS,wBAAwB,QAAQ;CACxC,OAAOA,OAAK,KAAK,QAAQ,qBAAqB,OAAO,QAAQ,GAAG,EAAE,MAAM;AACzE;AACA,SAAS,UAAU,KAAK;CACvB,IAAI;EACH,QAAQ,KAAK,KAAK,CAAC;EACnB,OAAO;CACR,SAAS,OAAO;EACf,OAAO,iBAAiB,SAAS,UAAU,SAAS,MAAM,SAAS;CACpE;AACD;;;;;;;AAOA,SAAS,oCAAoC,KAAK;CACjD,MAAM,UAAUA,OAAK,KAAK,KAAK,OAAO;CACtC,MAAM,OAAO,CAACA,OAAK,KAAK,KAAK,kBAAkB,CAAC;CAChD,IAAI;EACH,KAAK,MAAM,SAASC,KAAG,YAAY,SAAS,EAAE,eAAe,KAAK,CAAC,GAAG,IAAI,MAAM,YAAY,GAAG,KAAK,KAAKD,OAAK,KAAK,SAAS,MAAM,IAAI,CAAC;CACxI,QAAQ,CAAC;CACT,KAAK,MAAM,OAAO,MAAM;EACvB,IAAI;EACJ,IAAI;GACH,QAAQC,KAAG,YAAY,G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pointer-DclJZFQi-DJa4t8Wa.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
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-D9WDxl5C.mjs";
3
3
  import { type } from "arktype";
4
4
  //#region ../../0-framework/0-foundation/foundation/dist/arktype.mjs
5
5
  /**
@@ -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-BLedpQgL.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"}
@@ -0,0 +1 @@
1
+ import "./app-config-CxdIiCvU-7vQWECm1.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 ReporterDescriptor, A as LocalTargetEmulatorsInput, C as LocalNodeLocation, Ct as preflightFindingsEnv, D as LocalTargetCurrentApp, E as LocalTargetAttachment, G as PreflightFindings, J as PrismaAppConfig, K as PreflightInput, M as LocateContainerInput, O as LocalTargetCurrentInput, Q as ReportBeginInput, R as NamedSecrets, S as LocalNodeCondition, St as preflightEnvVarName, T as LocalTargetAttachInput, Tt as readPreflightPayload, U as PlatformVariableCheck, V as PREFLIGHT_FINDINGS_ENV_VAR, W as PlatformVariableReader, Z as ReportAttachInput, at as TeardownInput, bt as platformVariableReaderText, c as ConfigAdapter, d as ContainerCredentials, dt as defineConfig, et as RunOutcome, f as ContainerDescriptor, g as DeployedEntity, h as DEV_ENVIRONMENT_NAME_FILE, ht as isBuildOnlyExtension, it as StateDescriptor, j as LocalTargetProvidersInput, k as LocalTargetDescriptor, l as ConfigAdapterInput, lt as containerEnv, m as DEV_DIR, mt as devEnvironmentDir, n as AppConfiguration, ot as UnsetPlatformVariable, p as ContainerInstance, pt as deserializeContainers, q as PreflightPayload, r as AppSecrets, tt as RunReporter, u as ConfigValues, ut as containerEnvVarName, w as LocalNodeStopped, wt as readPreflightFindings, x as ExtensionDescriptor, xt as preflightEnv, y as DevPreflightResult, z as NodeDescriptor } from "./app-config-CxdIiCvU-7vQWECm1.mjs";
2
+ import "./config-BcT6edff.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, ConfigAdapter, ConfigAdapterInput, ConfigValues, type ContainerCredentials, 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, 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 };
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 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-DJjTWvyH-CEJ9WlaN.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
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 };
@@ -1,10 +1,10 @@
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-Bzj1fahC-C8rOVj0c.mjs";
2
+ import { G as PreflightFindings, W as PlatformVariableReader, ot as UnsetPlatformVariable } from "./app-config-CxdIiCvU-7vQWECm1.mjs";
3
+ import "./config-BcT6edff.mjs";
4
+ import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-p88NV5m5-3Ga91LRH.mjs";
5
+ import "./index-B8s0bLZY.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-CqdeMBKw-BECjU4HR.mjs";
7
+ //#region ../../0-framework/3-tooling/cli/dist/dev-current-BuX95QnN.d.mts
8
8
  //#region src/operations/deploy.d.ts
9
9
  /** A deploy step. `assemble-service` steps run inside `assemble`, one per service. */
10
10
  type DeployStep = {
@@ -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-BuX95QnN.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"}
package/dist/control.mjs CHANGED
@@ -1,5 +1,5 @@
1
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";
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-D8GwJQex-C8F3EUBY.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-1SIH5uAu-DVRY18xU.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-Be9DYRI6-WnytA3d7.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 { c as executionDiagnostics, l as executorLoadFailure, n as devUrl, o as deploy, r as dev, t as devStop } from \"./dev-current-D8GwJQex.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-1SIH5uAu.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-Be9DYRI6.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,6 +1,6 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-C5XMnP9S.mjs";
2
- import { d as isParamSource, g as nodeAddresses, n as Load, w as slotsOf } from "./graph-BzPLUUsB-D7EnB1F5.mjs";
3
- import { i as deserializeContainers, l as readPreflightFindings } from "./preflight-transport-DmmtoFPH-CnDWufmu.mjs";
2
+ import { T as slotsOf, _ as nodeAddresses, h as isValueResource, n as Load } from "./graph-K7VOpCAj-D6UHSltu.mjs";
3
+ import { i as deserializeContainers, l as readPreflightFindings } from "./preflight-transport-DJjTWvyH-CEJ9WlaN.mjs";
4
4
  import * as Alchemy from "alchemy";
5
5
  import * as Effect from "effect/Effect";
6
6
  import * as Layer from "effect/Layer";
@@ -19,27 +19,10 @@ function assertSameNodeAddresses(built, firstProcess) {
19
19
  const list = (addresses) => addresses.length === 0 ? "none" : addresses.map((address) => `"${address}"`).join(", ");
20
20
  throw new LowerError(`The deploy's second process built a different graph from the one Composer checked in its first process. Only in the second process: ${list(onlyBuilt)}. Only in the first process: ${list(onlyFirst)}. A module body must build the same graph every time; one that reads the process environment, a file or the clock can build a different one.`);
21
21
  }
22
- /**
23
- * Resolves one SERVICE-OWN param to its config value. The full resolution
24
- * order across both value channels:
25
- *
26
- * 1. A param claiming BOTH a provision-time binding and a `provision` need
27
- * (ADR-0031) is a loud error — two sources for one value.
28
- * 2. A provision-time binding (a schema-validated literal, or an opaque
29
- * `ParamSource` the target resolves at boot per ADR-0019) beats the
30
- * declared `default`.
31
- * 3. A framework-minted `provision` need is resolved per dependency EDGE
32
- * against the consumer extension's registry — that path fills CONNECTION
33
- * params in `buildConfig`'s inputs loop, never this function. A
34
- * service-own param has no edge to mint against, so an unbound need here
35
- * falls through like any unbound param.
36
- * 4. The `default`, else absent (only legal when `optional`), else a loud
37
- * error naming the param, the service, and the fix.
38
- */
22
+ /** A service's own param: its binding, else its `default`, else absent when optional. A `provision` need (ADR-0031) is filled per edge in `buildConfig`, never here. */
39
23
  function resolveParam(node, serviceId, name, param, bound) {
40
24
  if (bound !== void 0) {
41
- if (param.provision !== void 0) throw new LowerError(`Param "${name}" of "${serviceId}" (service "${node.name}") has two sources claiming one value: a provision-time binding (${isParamSource(bound) ? "a param source" : "a literal value"}) AND a framework provision need ("${String(param.provision.brand)}") on its declaration — remove the binding or drop the \`provision\` facet.`);
42
- if (isParamSource(bound)) return bound;
25
+ if (param.provision !== void 0) throw new LowerError(`Param "${name}" of "${serviceId}" (service "${node.name}") is bound at provision and also declares a framework provision need ("${String(param.provision.brand)}"). Remove the binding or the \`provision\` facet.`);
43
26
  const result = param.schema["~standard"].validate(bound);
44
27
  if (result instanceof Promise) throw new LowerError(`Param "${name}" of "${serviceId}" (service "${node.name}") uses an async Standard Schema — a provision-time literal value requires a synchronous validator.`);
45
28
  if (result.issues !== void 0) {
@@ -50,7 +33,7 @@ function resolveParam(node, serviceId, name, param, bound) {
50
33
  }
51
34
  if (param.default !== void 0) return param.default;
52
35
  if (param.optional === true) return void 0;
53
- throw new LowerError(`Param "${name}" of "${serviceId}" (service "${node.name}") has no default, is not optional, and was not bound at provision — bind it with a literal value or a param source (e.g. envParam('NAME')) on its provision() call, or give it a default.`);
36
+ throw new LowerError(`Param "${name}" of "${serviceId}" (service "${node.name}") has no default, is not optional, and was not bound at provision — bind it on its provision() call with a literal value or a value the deploy has, or give it a default.`);
54
37
  }
55
38
  /**
56
39
  * Assembles a service's typed Config. Connection params come from the
@@ -313,7 +296,7 @@ function lowering(root, config, opts) {
313
296
  if (descriptor.kind === "resource") {
314
297
  const result = yield* descriptor(ctx);
315
298
  lowered.set(id, result.outputs);
316
- entries.push({
299
+ if (!isValueResource(node)) entries.push({
317
300
  address: id,
318
301
  entities: result.entities
319
302
  });
@@ -342,7 +325,7 @@ function lowering(root, config, opts) {
342
325
  entry: bundle.entry
343
326
  },
344
327
  address: id
345
- });
328
+ }, serialized);
346
329
  const result = yield* descriptor.deploy(ctx, provisionedNode, artifact, serialized);
347
330
  lowered.set(id, result.outputs);
348
331
  entries.push({
@@ -378,4 +361,4 @@ function lower(root, config, opts) {
378
361
  //#endregion
379
362
  export { joinDeployment as a, mergedProviders as c, deploymentResult as i, resolveStateLayer as l, buildConfig as n, lower as o, connectionInputs as r, lowering as s, LowerError as t };
380
363
 
381
- //# sourceMappingURL=deploy-3EXLVrtG.mjs.map
364
+ //# sourceMappingURL=deploy-BzRRAmns.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-BzRRAmns.mjs","names":[],"sources":["../../../0-framework/1-core/core/dist/deploy.mjs"],"sourcesContent":["import { b as slotsOf, i as secretsKeys, p as isValueResource, r as nodeAddresses, t as Load } from \"./graph-K7VOpCAj.mjs\";\nimport { o as readPreflightFindings, u as deserializeContainers } from \"./preflight-transport-DJjTWvyH.mjs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport * as Alchemy from \"alchemy\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\n//#region src/control/deploy.ts\n/** Routes each graph node to its extension descriptor (by node.extension/type) and runs provision → serialize → package → deploy in dependency order. */\nvar LowerError = class extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = \"LowerError\";\n\t}\n};\nfunction assertSameNodeAddresses(built, firstProcess) {\n\tconst onlyBuilt = built.filter((address) => !firstProcess.includes(address));\n\tconst onlyFirst = firstProcess.filter((address) => !built.includes(address));\n\tif (onlyBuilt.length === 0 && onlyFirst.length === 0) return;\n\tconst list = (addresses) => addresses.length === 0 ? \"none\" : addresses.map((address) => `\"${address}\"`).join(\", \");\n\tthrow new LowerError(`The deploy's second process built a different graph from the one Composer checked in its first process. Only in the second process: ${list(onlyBuilt)}. Only in the first process: ${list(onlyFirst)}. A module body must build the same graph every time; one that reads the process environment, a file or the clock can build a different one.`);\n}\n/** A service's own param: its binding, else its `default`, else absent when optional. A `provision` need (ADR-0031) is filled per edge in `buildConfig`, never here. */\nfunction resolveParam(node, serviceId, name, param, bound) {\n\tif (bound !== void 0) {\n\t\tif (param.provision !== void 0) throw new LowerError(`Param \"${name}\" of \"${serviceId}\" (service \"${node.name}\") is bound at provision and also declares a framework provision need (\"${String(param.provision.brand)}\"). Remove the binding or the \\`provision\\` facet.`);\n\t\tconst result = param.schema[\"~standard\"].validate(bound);\n\t\tif (result instanceof Promise) throw new LowerError(`Param \"${name}\" of \"${serviceId}\" (service \"${node.name}\") uses an async Standard Schema — a provision-time literal value requires a synchronous validator.`);\n\t\tif (result.issues !== void 0) {\n\t\t\tconst messages = result.issues.map((issue) => issue.message).join(\"; \");\n\t\t\tthrow new LowerError(`Param \"${name}\" of \"${serviceId}\" (service \"${node.name}\") received an invalid provision-time value: ${messages}`);\n\t\t}\n\t\treturn result.value;\n\t}\n\tif (param.default !== void 0) return param.default;\n\tif (param.optional === true) return void 0;\n\tthrow new LowerError(`Param \"${name}\" of \"${serviceId}\" (service \"${node.name}\") has no default, is not optional, and was not bound at provision — bind it on its provision() call with a literal value or a value the deploy has, or give it a default.`);\n}\n/**\n* Assembles a service's typed Config. Connection params come from the\n* dependency edge's lowered outputs — or, for a param carrying a `provision`\n* need (ADR-0031), from `provisioned` (keyed by edge id): the framework mints\n* it, the producer hands nothing over. The service's own params resolve via\n* `resolveParam` (provision-time binding, then default, then loud\n* unbound-required failure).\n*\n* This is also where the connection contract is enforced: a producer that fails to\n* supply a required param its consumer's connection declares fails the deploy\n* here, naming the edge, rather than reaching the consumer as `undefined`.\n*/\nfunction buildConfig(node, id, graph, lowered, provisioned) {\n\tconst inputs = slotConnectionParams(node, id, graph, lowered, provisioned);\n\tconst boundParams = new Map(graph.params.filter((binding) => binding.serviceAddress === id).map((b) => [b.slot, b.binding]));\n\tconst service = {};\n\tfor (const [name, param] of Object.entries(node.params)) {\n\t\tconst value = resolveParam(node, id, name, param, boundParams.get(name));\n\t\tif (value !== void 0) service[name] = value;\n\t}\n\treturn {\n\t\tservice,\n\t\tinputs\n\t};\n}\n/**\n* The connection params of each of a service's or resource's dependency\n* slots, resolved against the producer's lowered outputs or the minted\n* `provisioned` value, with the connection contract enforced (see `buildConfig`).\n*/\nfunction connectionInputs(ctx) {\n\treturn slotConnectionParams(ctx.node, ctx.id, ctx.graph, ctx.lowered, ctx.provisioned);\n}\nfunction slotConnectionParams(node, id, graph, lowered, provisioned) {\n\tconst inputs = {};\n\tfor (const [inputName, inputNode] of Object.entries(node.inputs)) {\n\t\tconst edge = graph.edges.find((e) => e.to === id && e.input === inputName && e.kind === \"dependency\");\n\t\tconst producedOutputs = edge !== void 0 ? lowered.get(edge.from) ?? {} : {};\n\t\tconst values = {};\n\t\tfor (const [name, param] of Object.entries(inputNode.connection.params)) {\n\t\t\tif (param.provision !== void 0) {\n\t\t\t\tvalues[name] = provisioned.get(`${id}.${inputName}`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst value = producedOutputs[name];\n\t\t\tif (value === void 0 && param.optional !== true && edge !== void 0) throw new LowerError(`Connection input \"${id}.${inputName}\" declares param \"${name}\", but its producer \"${edge.from}\" did not supply it — the producer's outputs carry [${Object.keys(producedOutputs).join(\", \") || \"nothing\"}]. Add \"${name}\" to the outputs the producer returns from its lowering, or declare the param optional on the connection.`);\n\t\t\tvalues[name] = value;\n\t\t}\n\t\tinputs[inputName] = values;\n\t}\n\treturn inputs;\n}\n/**\n* Joins resolved report entries back to their graph nodes — the last step of a\n* deploy report, run inside the Action with apply's resolved values.\n*\n* The entries cross Alchemy's action-input boundary, so they carry addresses\n* and plain entities only; the graph is held by closure on this side. That\n* split is why this join exists at all, and it is what keeps functions and\n* Standard Schemas (which a node carries, and which the plan's input hash\n* would have to serialize) out of the input.\n*\n* Skips an address the graph no longer holds: entries are data, the graph is\n* truth.\n*/\nfunction joinDeployment(graph, entries) {\n\tconst nodes = [];\n\tfor (const entry of entries) {\n\t\tconst node = graph.nodes.find((n) => n.id === entry.address)?.node;\n\t\tif (node === void 0 || node.kind !== \"service\" && node.kind !== \"resource\") continue;\n\t\tnodes.push({\n\t\t\taddress: entry.address,\n\t\t\tnode,\n\t\t\tentities: entry.entities\n\t\t});\n\t}\n\treturn nodes;\n}\n/** The deploy report: every deployed node joined with its graph node, and the findings the CLI carried from the deploy preflight. */\nfunction deploymentResult(app, graph, entries, findings) {\n\treturn {\n\t\tapp,\n\t\tnodes: joinDeployment(graph, entries),\n\t\tfindings\n\t};\n}\nfunction missingBundleError(id) {\n\treturn new LowerError(`No bundle provided for service \"${id}\" (opts.bundles[\"${id}\"] is required).`);\n}\n/** The message `prisma dev` structures as `DEV.DEV_SERVER_UNSUPPORTED` (ADR-0056). */\nfunction noReserveError(id, extension, type) {\n\treturn new LowerError(`service \"${id}\" runs a dev server but its descriptor (${extension}/${type}) has no \\`reserve\\` step`);\n}\nfunction unassembledWithBundleError(address) {\n\treturn new LowerError(`\"${address}\" is listed in opts.unassembled and also has a bundle in opts.bundles — a service is either assembled or not.`);\n}\nfunction unassembledNotServiceError(address) {\n\treturn new LowerError(`\"${address}\" is listed in opts.unassembled but is not a service in the graph.`);\n}\nfunction duplicateExtensionError(id) {\n\treturn new LowerError(`Extension \"${id}\" is listed more than once in \\`extensions\\` — each extension id must be unique.`);\n}\n/** Registries as extension id → descriptor. Fails on a duplicate id — the CLI validates config, but lowering() is the programmatic escape hatch that doesn't. */\nfunction extensionsById(config) {\n\tconst map = /* @__PURE__ */ new Map();\n\tfor (const extension of config.extensions) {\n\t\tif (map.has(extension.id)) return Effect.fail(duplicateExtensionError(extension.id));\n\t\tmap.set(extension.id, extension);\n\t}\n\treturn Effect.succeed(map);\n}\nfunction unknownExtensionError(extension, id) {\n\treturn new LowerError(`No extension \"${extension}\" is configured (needed by node \"${id}\") — add it to \\`extensions\\` in the \\`composer\\` section of prisma.config.ts (import its /control entry and list its descriptor).`);\n}\nfunction unknownNodeTypeError(extension, type) {\n\treturn new LowerError(`Extension \"${extension.id}\" has no descriptor for node type \"${type}\" (known: ${Object.keys(extension.nodes).join(\", \")}).`);\n}\n/** A provisioned param's need brand isn't registered by the consumer's extension (ADR-0031). */\nfunction unknownProvisionerError(extension, brand, edgeId) {\n\tconst known = extension.provisions !== void 0 && extension.provisions.size > 0 ? Array.from(extension.provisions.keys(), String).join(\", \") : \"(none registered)\";\n\treturn new LowerError(`Extension \"${extension.id}\" has no provisioner for need \"${String(brand)}\" (needed by edge \"${edgeId}\") (known: ${known}).`);\n}\n/** A provisioned edge whose consumer and provider nodes belong to different extensions (ADR-0031). */\nfunction crossExtensionProvisionError(edgeId) {\n\treturn new LowerError(`Provisioned edge \"${edgeId}\" spans two extensions — cross-extension provisioned edges aren't supported yet.`);\n}\n/**\n* More than one provisioned param on one connection (ADR-0031). One edge mints\n* ONE value, keyed by edge id, so a second need on the same connection would\n* silently receive the first's value under the first's brand.\n*/\nfunction multipleProvisionedParamsError(edgeId, names) {\n\treturn new LowerError(`Connection input \"${edgeId}\" declares more than one provisioned param (${names.join(\", \")}) — only one provisioned param per connection is supported.`);\n}\nfunction wrongKindError(extension, type, expected, got) {\n\treturn new LowerError(`Extension \"${extension}\"'s descriptor for node type \"${type}\" is a \"${got}\" descriptor — this node needs a \"${expected}\" descriptor.`);\n}\n/** Looks up one node's descriptor: extension by `node.extension`, then descriptor by `node.type`, then the kind check. */\nfunction descriptorFor(extensions, node, id) {\n\tconst extension = extensions.get(node.extension);\n\tif (extension === void 0) return Effect.fail(unknownExtensionError(node.extension, id));\n\tconst descriptor = extension.nodes[node.type];\n\tif (descriptor === void 0) return Effect.fail(unknownNodeTypeError(extension, node.type));\n\tif (descriptor.kind !== node.kind) return Effect.fail(wrongKindError(node.extension, node.type, node.kind, descriptor.kind));\n\treturn Effect.succeed(descriptor);\n}\n/**\n* The state-layer precedence a deploy resolves to: an explicit opts.state\n* always wins; failing that, the config's own (required) state descriptor,\n* created with its owning extension's resolved container (`undefined` when\n* that extension declared none). A pure function so the precedence is\n* testable without booting Alchemy.\n*/\nfunction resolveStateLayer(opts, config, containers) {\n\treturn opts.state ?? config.state.create(containers.get(config.state.extension));\n}\n/**\n* All configured extensions' providers merged, config array order — an\n* extension without `providers` is skipped; no used-extensions-only\n* filtering (ADR-0017's pinned providers rule).\n*/\nfunction mergedProviders(config) {\n\tconst [first, ...rest] = config.extensions.flatMap((extension) => extension.providers !== void 0 ? [extension.providers()] : []);\n\treturn first === void 0 ? Layer.empty : Layer.mergeAll(first, ...rest);\n}\n/**\n* Composable form for mixed stacks: hand-wired Alchemy resources alongside Prisma App nodes in one stack effect.\n* Fails with LowerError or whatever an extension's lowering raises — the error type is open.\n*/\nfunction lowering(root, config, opts) {\n\treturn blindCast(Effect.gen(function* () {\n\t\tconst graph = Load(root, {\n\t\t\tid: opts.name,\n\t\t\t...opts.environment !== void 0 ? { environment: { name: opts.environment } } : {},\n\t\t\t...opts.appConfigurationRead !== void 0 ? { appConfigurationRead: opts.appConfigurationRead } : {}\n\t\t});\n\t\tif (opts.firstProcessNodeAddresses !== void 0) assertSameNodeAddresses(nodeAddresses(graph), opts.firstProcessNodeAddresses);\n\t\tconst extensions = yield* extensionsById(config);\n\t\tconst containers = deserializeContainers(config.extensions, process.env);\n\t\tconst findings = readPreflightFindings(process.env);\n\t\tconst lowered = /* @__PURE__ */ new Map();\n\t\tconst entries = [];\n\t\tconst provisioned = /* @__PURE__ */ new Map();\n\t\tconst applications = /* @__PURE__ */ new Map();\n\t\tfor (const descriptor of config.extensions) {\n\t\t\tif (descriptor.application === void 0) continue;\n\t\t\tconst appCtx = {\n\t\t\t\tid: graph.root.id,\n\t\t\t\taddress: \"\",\n\t\t\t\tnode: graph.root.node,\n\t\t\t\tgraph,\n\t\t\t\topts,\n\t\t\t\tapplication: void 0,\n\t\t\t\tcontainer: containers.get(descriptor.id),\n\t\t\t\tlowered,\n\t\t\t\tprovisioned\n\t\t\t};\n\t\t\tapplications.set(descriptor.id, yield* descriptor.application.provision(appCtx));\n\t\t}\n\t\tfor (const edge of graph.edges) {\n\t\t\tif (edge.kind !== \"dependency\") continue;\n\t\t\tconst consumer = graph.nodes.find((n) => n.id === edge.to)?.node;\n\t\t\tif (consumer === void 0 || consumer.kind !== \"service\" && consumer.kind !== \"resource\") continue;\n\t\t\tconst slot = slotsOf(consumer)[edge.input];\n\t\t\tif (slot === void 0) continue;\n\t\t\tconst provisionedParams = Object.entries(slot.connection.params).filter(([, param]) => param.provision !== void 0);\n\t\t\tif (provisionedParams.length === 0) continue;\n\t\t\tconst edgeId = `${edge.to}.${edge.input}`;\n\t\t\tif (provisionedParams.length > 1) return yield* Effect.fail(multipleProvisionedParamsError(edgeId, provisionedParams.map(([name]) => name)));\n\t\t\tconst need = provisionedParams[0]?.[1].provision;\n\t\t\tif (need === void 0) continue;\n\t\t\tconst provider = graph.nodes.find((n) => n.id === edge.from)?.node;\n\t\t\tif (provider === void 0 || provider.kind !== \"service\" && provider.kind !== \"resource\") continue;\n\t\t\tif (consumer.extension !== provider.extension) return yield* Effect.fail(crossExtensionProvisionError(edgeId));\n\t\t\tconst extension = extensions.get(consumer.extension);\n\t\t\tif (extension === void 0) return yield* Effect.fail(unknownExtensionError(consumer.extension, edge.to));\n\t\t\tconst provisioner = extension.provisions?.get(need.brand);\n\t\t\tif (provisioner === void 0) return yield* Effect.fail(unknownProvisionerError(extension, need.brand, edgeId));\n\t\t\tconst ref = yield* provisioner.provision({\n\t\t\t\tapp: graph.root.id,\n\t\t\t\tedgeId,\n\t\t\t\tconsumerAddress: edge.to,\n\t\t\t\tproviderAddress: edge.from,\n\t\t\t\tinput: edge.input,\n\t\t\t\tneed\n\t\t\t});\n\t\t\tprovisioned.set(edgeId, ref);\n\t\t}\n\t\tconst unassembled = new Set(opts.unassembled ?? []);\n\t\tfor (const address of unassembled) {\n\t\t\tif (address in opts.bundles) return yield* Effect.fail(unassembledWithBundleError(address));\n\t\t\tconst found = graph.nodes.find((n) => n.id === address);\n\t\t\tif (found === void 0 || found.node.kind !== \"service\") return yield* Effect.fail(unassembledNotServiceError(address));\n\t\t}\n\t\tconst services = /* @__PURE__ */ new Map();\n\t\tconst ctxFor = (id, node) => ({\n\t\t\tid,\n\t\t\taddress: id,\n\t\t\tnode,\n\t\t\tgraph,\n\t\t\topts,\n\t\t\tapplication: applications.get(node.extension),\n\t\t\tcontainer: containers.get(node.extension),\n\t\t\tlowered,\n\t\t\tprovisioned,\n\t\t\tservices\n\t\t});\n\t\tfor (const { id, node } of graph.nodes) {\n\t\t\tif (node.kind !== \"service\") continue;\n\t\t\tconst descriptor = yield* descriptorFor(extensions, node, id);\n\t\t\tif (descriptor.kind !== \"service\") continue;\n\t\t\tservices.set(id, yield* descriptor.provision(ctxFor(id, node)));\n\t\t}\n\t\tfor (const { id, node } of graph.nodes) {\n\t\t\tif (node.kind === \"module\") continue;\n\t\t\tif (node.kind === \"dependency\") continue;\n\t\t\tconst ctx = ctxFor(id, node);\n\t\t\tconst descriptor = yield* descriptorFor(extensions, node, id);\n\t\t\tif (descriptor.kind === \"resource\") {\n\t\t\t\tconst result = yield* descriptor(ctx);\n\t\t\t\tlowered.set(id, result.outputs);\n\t\t\t\tif (!isValueResource(node)) entries.push({\n\t\t\t\t\taddress: id,\n\t\t\t\t\tentities: result.entities\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (descriptor.kind !== \"service\") return yield* Effect.fail(wrongKindError(node.extension, node.type, node.kind, descriptor.kind));\n\t\t\tconst service = node;\n\t\t\tconst provisionedNode = services.get(id);\n\t\t\tconst typedConfig = buildConfig(service, id, graph, lowered, provisioned);\n\t\t\tconst serialized = yield* descriptor.serialize(ctx, provisionedNode, typedConfig);\n\t\t\tif (unassembled.has(id)) {\n\t\t\t\tif (descriptor.reserve === void 0) return yield* Effect.fail(noReserveError(id, node.extension, node.type));\n\t\t\t\tconst result = yield* descriptor.reserve(ctx, provisionedNode, serialized);\n\t\t\t\tlowered.set(id, result.outputs);\n\t\t\t\tentries.push({\n\t\t\t\t\taddress: id,\n\t\t\t\t\tentities: result.entities\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst bundle = opts.bundles[id];\n\t\t\tif (bundle === void 0) return yield* Effect.fail(missingBundleError(id));\n\t\t\tconst artifact = yield* descriptor.package(ctx, {\n\t\t\t\tassembled: {\n\t\t\t\t\tdir: bundle.dir,\n\t\t\t\t\tentry: bundle.entry\n\t\t\t\t},\n\t\t\t\taddress: id\n\t\t\t}, serialized);\n\t\t\tconst result = yield* descriptor.deploy(ctx, provisionedNode, artifact, serialized);\n\t\t\tlowered.set(id, result.outputs);\n\t\t\tentries.push({\n\t\t\t\taddress: id,\n\t\t\t\tentities: result.entities\n\t\t\t});\n\t\t}\n\t\tif (opts.report !== void 0) {\n\t\t\tconst report = opts.report;\n\t\t\tyield* Alchemy.Action(\"composer-deployment-report\", (input) => Effect.sync(() => {\n\t\t\t\treport(deploymentResult(opts.name, graph, input.entries, findings));\n\t\t\t}))({\n\t\t\t\tnonce: Date.now(),\n\t\t\t\tentries\n\t\t\t});\n\t\t}\n\t}));\n}\n/**\n* The whole-stack wrapper: Load → route each node through the config's\n* extension registries → an Alchemy Stack (the default export the alchemy\n* CLI consumes).\n*/\nfunction lower(root, config, opts) {\n\tconst stackEffect = blindCast(Effect.orDie(lowering(root, config, opts)));\n\tconst containers = deserializeContainers(config.extensions, process.env);\n\tconst providers = opts.providers ?? mergedProviders(config);\n\treturn Alchemy.Stack(opts.name, {\n\t\tproviders,\n\t\tstate: resolveStateLayer(opts, config, containers)\n\t}, stackEffect);\n}\n//#endregion\nexport { LowerError, buildConfig, connectionInputs, deploymentResult, joinDeployment, lower, lowering, mergedProviders, nodeAddresses, resolveStateLayer, secretsK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,KAAK;IAC/C,WAAW;KACV,KAAK,OAAO;KACZ,OAAO,OAAO;IACf;IACA,SAAS;GACV,GAAG,UAAU;GACb,MAAM,SAAS,OAAO,WAAW,OAAO,KAAK,iBAAiB,UAAU,UAAU;GAClF,QAAQ,IAAI,IAAI,OAAO,OAAO;GAC9B,QAAQ,KAAK;IACZ,SAAS;IACT,UAAU,OAAO;GAClB,CAAC;EACF;EACA,IAAI,KAAK,WAAW,KAAK,GAAG;GAC3B,MAAM,SAAS,KAAK;GACpB,OAAO,QAAQ,OAAO,+BAA+B,UAAU,OAAO,WAAW;IAChF,OAAO,iBAAiB,KAAK,MAAM,OAAO,MAAM,SAAS,QAAQ,CAAC;GACnE,CAAC,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,IAAI;IAChB;GACD,CAAC;EACF;CACD,CAAC,CAAC;AACH;;;;;;AAMA,SAAS,MAAM,MAAM,QAAQ,MAAM;CAClC,MAAM,cAAc,UAAU,OAAO,MAAM,SAAS,MAAM,QAAQ,IAAI,CAAC,CAAC;CACxE,MAAM,aAAa,sBAAsB,OAAO,YAAY,QAAQ,GAAG;CACvE,MAAM,YAAY,KAAK,aAAa,gBAAgB,MAAM;CAC1D,OAAO,QAAQ,MAAM,KAAK,MAAM;EAC/B;EACA,OAAO,kBAAkB,MAAM,QAAQ,UAAU;CAClD,GAAG,WAAW;AACf"}
@@ -0,0 +1,2 @@
1
+ import "./graph-DU0omY5O-BHO71z0F.mjs";
2
+ import "./app-config-CxdIiCvU-7vQWECm1.mjs";
package/dist/deploy.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as secretsKeys, r as nodeAddresses } from "./graph-C7mdtisq-RnKiwVsx.mjs";
2
- import { F as LoweredResult, I as Lowering, J as ProvisionEdge, M as LowerContext, N as LowerError, P as LowerOptions, Tt as resolveStateLayer, V as PackageInput, Y as ProvisionerDescriptor, _ as DeployedNode, _t as lowering, a as Artifact, dt as deploymentResult, g as DeployedEntity, gt as lower, ht as joinDeployment, i as ApplicationDescriptor, nt as ServiceLowering, o as AssembleInput, ot as buildConfig, s as Bundle, st as connectionInputs, t as AlchemyStateLayer, tt as ServeInput, v as DeploymentResult, vt as mergedProviders, y as DevServer, z as Outputs } from "./app-config-UeKFBma7-CohaMmWp.mjs";
3
- import "./deploy-Xi4_JrtE.mjs";
1
+ import { i as secretsKeys, r as nodeAddresses } from "./graph-DU0omY5O-BHO71z0F.mjs";
2
+ import { B as Outputs, Et as resolveStateLayer, F as LowerOptions, H as PackageInput, I as LoweredResult, L as Lowering, N as LowerContext, P as LowerError, X as ProvisionerDescriptor, Y as ProvisionEdge, _ as DeployedNode, _t as lower, a as Artifact, b as DevServer, ct as connectionInputs, ft as deploymentResult, g as DeployedEntity, gt as joinDeployment, i as ApplicationDescriptor, nt as ServeInput, o as AssembleInput, rt as ServiceLowering, s as Bundle, st as buildConfig, t as AlchemyStateLayer, v as DeploymentResult, vt as lowering, yt as mergedProviders } from "./app-config-CxdIiCvU-7vQWECm1.mjs";
3
+ import "./deploy-D7NHGXag.mjs";
4
4
  export { AlchemyStateLayer, ApplicationDescriptor, Artifact, AssembleInput, Bundle, DeployedEntity, DeployedNode, DeploymentResult, DevServer, LowerContext, LowerError, LowerOptions, LoweredResult, Lowering, Outputs, PackageInput, ProvisionEdge, ProvisionerDescriptor, ServeInput, ServiceLowering, buildConfig, connectionInputs, deploymentResult, joinDeployment, lower, lowering, mergedProviders, nodeAddresses, resolveStateLayer, secretsKeys };
package/dist/deploy.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { S as secretsKeys, g as nodeAddresses } from "./graph-BzPLUUsB-D7EnB1F5.mjs";
2
- import { a as joinDeployment, c as mergedProviders, i as deploymentResult, l as resolveStateLayer, n as buildConfig, o as lower, r as connectionInputs, s as lowering, t as LowerError } from "./deploy-3EXLVrtG.mjs";
1
+ import { C as secretsKeys, _ as nodeAddresses } from "./graph-K7VOpCAj-D6UHSltu.mjs";
2
+ import { a as joinDeployment, c as mergedProviders, i as deploymentResult, l as resolveStateLayer, n as buildConfig, o as lower, r as connectionInputs, s as lowering, t as LowerError } from "./deploy-BzRRAmns.mjs";
3
3
  export { LowerError, buildConfig, connectionInputs, deploymentResult, joinDeployment, lower, lowering, mergedProviders, nodeAddresses, resolveStateLayer, secretsKeys };