@prisma/composer 0.39.0-dev.5 → 0.39.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/{app-config-Ubi4CftJ-DUSDjI2i.d.mts → app-config-DmCj4luV-BC36-MeB.d.mts} +4 -4
  2. package/dist/{app-config-Ubi4CftJ-DUSDjI2i.d.mts.map → app-config-DmCj4luV-BC36-MeB.d.mts.map} +1 -1
  3. package/dist/arktype.d.mts +7 -5
  4. package/dist/arktype.d.mts.map +1 -1
  5. package/dist/arktype.mjs +7 -5
  6. package/dist/arktype.mjs.map +1 -1
  7. package/dist/config-vv8LBErH.d.mts +1 -0
  8. package/dist/config.d.mts +2 -2
  9. package/dist/control.d.mts +6 -6
  10. package/dist/control.mjs +3 -3
  11. package/dist/control.mjs.map +1 -1
  12. package/dist/{converge-in-process-BBBeood8-C7VG5b35.d.mts → converge-in-process-BBBeood8-BCIPOG8X.d.mts} +3 -3
  13. package/dist/{converge-in-process-BBBeood8-C7VG5b35.d.mts.map → converge-in-process-BBBeood8-BCIPOG8X.d.mts.map} +1 -1
  14. package/dist/{deploy-NArSOken.mjs → deploy-B2kxaH5E.mjs} +2 -2
  15. package/dist/{deploy-NArSOken.mjs.map → deploy-B2kxaH5E.mjs.map} +1 -1
  16. package/dist/{deploy-BW_F4Y9W.d.mts → deploy-w-BcRS8b.d.mts} +3 -3
  17. package/dist/deploy-w-BcRS8b.d.mts.map +1 -0
  18. package/dist/deploy.d.mts +3 -3
  19. package/dist/deploy.mjs +2 -2
  20. package/dist/{deployment-summary-6LgQDUuu-DtCvw9UQ.d.mts → deployment-summary-6LgQDUuu-Dp8kwMs_.d.mts} +4 -4
  21. package/dist/{deployment-summary-6LgQDUuu-DtCvw9UQ.d.mts.map → deployment-summary-6LgQDUuu-Dp8kwMs_.d.mts.map} +1 -1
  22. package/dist/{describe-kind-Cpm_euxo-D9WDxl5C.mjs → describe-kind-Cpm_euxo-DsSPENQa.mjs} +3 -3
  23. package/dist/describe-kind-Cpm_euxo-DsSPENQa.mjs.map +1 -0
  24. package/dist/{dev-current-Dp3jvXGN-C1Y2BAtC.mjs → dev-current-gQnmjB4V-BaNhcGpK.mjs} +5 -5
  25. package/dist/{dev-current-Dp3jvXGN-C1Y2BAtC.mjs.map → dev-current-gQnmjB4V-BaNhcGpK.mjs.map} +1 -1
  26. package/dist/{dist-BxtsHOfP.mjs → dist-CyrEbDx6.mjs} +2 -2
  27. package/dist/{dist-BxtsHOfP.mjs.map → dist-CyrEbDx6.mjs.map} +1 -1
  28. package/dist/{execute-deploy-destroy-J0buFSWK-BhVTX4-E.mjs → execute-deploy-destroy-DKbsBkqK-BWXh0zXQ.mjs} +7 -7
  29. package/dist/{execute-deploy-destroy-J0buFSWK-BhVTX4-E.mjs.map → execute-deploy-destroy-DKbsBkqK-BWXh0zXQ.mjs.map} +1 -1
  30. package/dist/{execute-dev-B5YaMqpD-BAxU6Smm.mjs → execute-dev-DVCWURmI-Cp3i7Hrp.mjs} +6 -6
  31. package/dist/{execute-dev-B5YaMqpD-BAxU6Smm.mjs.map → execute-dev-DVCWURmI-Cp3i7Hrp.mjs.map} +1 -1
  32. package/dist/{execute-dev-current-C7le-kh2-BoUej3LZ.mjs → execute-dev-current-Dt_9srY2-COEgQ9h4.mjs} +4 -4
  33. package/dist/{execute-dev-current-C7le-kh2-BoUej3LZ.mjs.map → execute-dev-current-Dt_9srY2-COEgQ9h4.mjs.map} +1 -1
  34. package/dist/{execute-log-BcmA2gDv-CPrOZtEh.mjs → execute-log-B34AeU97-CkJiGdIc.mjs} +4 -4
  35. package/dist/{execute-log-BcmA2gDv-CPrOZtEh.mjs.map → execute-log-B34AeU97-CkJiGdIc.mjs.map} +1 -1
  36. package/dist/{graph-DU0omY5O-BHO71z0F.d.mts → graph-1ILOBl8O-DBaUZL2D.d.mts} +3 -3
  37. package/dist/graph-1ILOBl8O-DBaUZL2D.d.mts.map +1 -0
  38. package/dist/{graph-C6Fqe2gn-DMa2udEA.mjs → graph-C6Fqe2gn-qJQBxs_C.mjs} +2 -2
  39. package/dist/{graph-C6Fqe2gn-DMa2udEA.mjs.map → graph-C6Fqe2gn-qJQBxs_C.mjs.map} +1 -1
  40. package/dist/{graph-types-Bzj1fahC-C8rOVj0c.d.mts → graph-types-CaH3flhT-DgrCdRA3.d.mts} +4 -4
  41. package/dist/{graph-types-Bzj1fahC-C8rOVj0c.d.mts.map → graph-types-CaH3flhT-DgrCdRA3.d.mts.map} +1 -1
  42. package/dist/http.d.mts +2 -2
  43. package/dist/http.mjs +2 -2
  44. package/dist/{index-B8s0bLZY.d.mts → index-Cnbf_d0q.d.mts} +3 -3
  45. package/dist/{index-B8s0bLZY.d.mts.map → index-Cnbf_d0q.d.mts.map} +1 -1
  46. package/dist/index.d.mts +5 -5
  47. package/dist/index.mjs +3 -3
  48. package/dist/internal-app-configuration-file.d.mts +5 -5
  49. package/dist/internal-converge.d.mts +3 -3
  50. package/dist/internal-converge.mjs +1 -1
  51. package/dist/local-target.d.mts +1 -1
  52. package/dist/{nextjs-DLyeRR7M-Z_xX74Cp.d.mts → nextjs-DLyeRR7M-CSKy5tFv.d.mts} +3 -3
  53. package/dist/{nextjs-DLyeRR7M-Z_xX74Cp.d.mts.map → nextjs-DLyeRR7M-CSKy5tFv.d.mts.map} +1 -1
  54. package/dist/nextjs-control.d.mts +4 -4
  55. package/dist/nextjs.d.mts +1 -1
  56. package/dist/node-control.d.mts +3 -3
  57. package/dist/node.d.mts +2 -2
  58. package/dist/{pointer-DclJZFQi-DJa4t8Wa.d.mts → pointer-BX2KJ720-BxcfpaHP.d.mts} +7 -5
  59. package/dist/{pointer-DclJZFQi-DJa4t8Wa.d.mts.map → pointer-BX2KJ720-BxcfpaHP.d.mts.map} +1 -1
  60. package/dist/{redaction-CIaE4m9U-DJGrkcn3.d.mts → redaction-CIaE4m9U-DyJoGPRw.d.mts} +8 -8
  61. package/dist/{redaction-CIaE4m9U-DJGrkcn3.d.mts.map → redaction-CIaE4m9U-DyJoGPRw.d.mts.map} +1 -1
  62. package/dist/report.d.mts +3 -3
  63. package/dist/service-rpc.d.mts +2 -2
  64. package/dist/service-rpc.mjs +2 -2
  65. package/dist/testing.d.mts +1 -1
  66. package/dist/{validate-environment-XwVDifWN-BhPOzWN8.mjs → validate-environment-XwVDifWN-D14WhSH0.mjs} +5 -5
  67. package/dist/{validate-environment-XwVDifWN-BhPOzWN8.mjs.map → validate-environment-XwVDifWN-D14WhSH0.mjs.map} +1 -1
  68. package/dist/zod.d.mts +6 -5
  69. package/dist/zod.d.mts.map +1 -1
  70. package/dist/zod.mjs +6 -5
  71. package/dist/zod.mjs.map +1 -1
  72. package/package.json +11 -11
  73. package/skills/prisma-composer-core-concepts/SKILL.md +7 -4
  74. package/dist/config-BmRE_eTa.d.mts +0 -1
  75. package/dist/deploy-BW_F4Y9W.d.mts.map +0 -1
  76. package/dist/describe-kind-Cpm_euxo-D9WDxl5C.mjs.map +0 -1
  77. package/dist/graph-DU0omY5O-BHO71z0F.d.mts.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-Bzj1fahC-C8rOVj0c.mjs";
2
- import "./graph-DU0omY5O-BHO71z0F.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-CaH3flhT-DgrCdRA3.mjs";
2
+ import "./graph-1ILOBl8O-DBaUZL2D.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-Ubi4CftJ.d.mts
8
+ //#region ../../0-framework/1-core/core/dist/app-config-DmCj4luV.d.mts
9
9
  //#region src/caller-credentials.d.ts
10
10
  /**
11
11
  * What the caller has already authenticated, handed unchanged to every
@@ -864,4 +864,4 @@ interface PrismaAppConfig {
864
864
  declare function defineConfig(config: PrismaAppConfig): PrismaAppConfig;
865
865
  //#endregion
866
866
  export { ReporterDescriptor as $, LocalTargetEmulatorsInput as A, Outputs as B, LocalNodeLocation as C, readPreflightPayload as Ct, LocalTargetCurrentApp as D, LocalTargetAttachment as E, LowerOptions as F, PreflightInput as G, PlatformVariableCheck as H, LoweredResult as I, ProvidersInput as J, PreflightPayload 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, transportedLowerInputs as Tt, PlatformVariableReader as U, PackageInput as V, PreflightFindings 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, CallerCredentials as c, connectionInputs as ct, ConfigValues 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, ConfigAdapter 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, PrismaAppConfig as q, AppSecrets as r, ServiceLowering as rt, Bundle as s, buildConfig as st, AlchemyStateLayer as t, RunReporter as tt, ConfigAdapterInput as u, containerEnvVarName as ut, DeploymentResult as v, lowering as vt, LocalNodeStopped as w, resolveStateLayer as wt, ExtensionDescriptor as x, preflightEnv as xt, DevPreflightResult as y, mergedProviders as yt, NodeDescriptor as z };
867
- //# sourceMappingURL=app-config-Ubi4CftJ-DUSDjI2i.d.mts.map
867
+ //# sourceMappingURL=app-config-DmCj4luV-BC36-MeB.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-config-Ubi4CftJ-DUSDjI2i.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/app-config-Ubi4CftJ.d.mts"],"mappings":";;;;;;;;;;;;;;UAaU,kBAAkB;;WAEjB;;WAEA,SAAS;;;;;UAKV;;WAEC;;WAEA;;;;;;;UAOD;WACC,OAAO;;WAEP;;EAET;;;;;;;;;;;;UAYQ,oBAAoB,UAAU,oBAAoB,mBAAmB;;EAE7E,OAAO,OAAO,sBAAsB,cAAc,kBAAkB,KAAK,QAAQ;;EAEjF,OAAO,OAAO,sBAAsB,cAAc,kBAAkB,KAAK,QAAQ;;EAEjF,OAAO,UAAU,GAAG,cAAc,kBAAkB,KAAK;;EAEzD,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;;;;KAI/C,oBAAoB,MAAM,MAAM,cAAc;;;;;;UAMzC;EACR,UAAU,KAAK,eAAe,OAAO;;;;;;;;UAQ7B;;WAEC;WACA;WACA;WACA;WACA;;WAEA,MAAM;;;UAGP;;EAER,UAAU,MAAM,gBAAgB,OAAO;;;;;;;;;;;;;;UAc/B,gBAAgB,aAAa;;;;;EAKrC,UAAU,KAAK,eAAe,OAAO,O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;;;EAMX;;;cAGY;;;;;;iBAMG,kBAAkB;;;;;;cAMrB;;;;;;;;;iBASG,qBAAqB,WAAW;;;;;;KAM5C;WACM;IACP;WACO;IACP;WACO;EACT,SAAS,OAAO,gBAAgB,QAAQ;;;;;EAKxC,OAAO,OAAO,aAAa,QAAQ;;;UAG3B;;WAEC;;WAEA;;;KAGN,eAAe,SAAS;;KAExB,iBAAiB,OAAO,uBAAuB,eAAe,QAAQ;;KAEtE,mBAAmB,SAAS;;KAE5B,aAAa,SAAS;;KAEtB,eAAe,SAAS;;;;;;;UAOnB;;WAEC;WACA,YAAY;WACZ,OAAO;;WAEP,kBAAkB;;WAElB,mBAAmB;;;iBAGb,aAAa,QAAQ,kBAAkB"}
@@ -1,4 +1,4 @@
1
- import { a as SecretString, t as Pointer } from "./pointer-DclJZFQi-DJa4t8Wa.mjs";
1
+ import { n as Pointer, o as SecretString } from "./pointer-BX2KJ720-BxcfpaHP.mjs";
2
2
  import { Type } from "arktype";
3
3
  //#region ../../0-framework/0-foundation/foundation/dist/arktype.d.mts
4
4
  //#region src/arktype.d.ts
@@ -14,11 +14,13 @@ import { Type } from "arktype";
14
14
  */
15
15
  declare const secretString: () => import("arktype/internal/variants/object.ts").ObjectType<SecretString | Pointer<SecretString>, {}>;
16
16
  /**
17
- * Wraps the schema of one leaf field so the field also accepts a plain
18
- * pointer, which stands for a value known only at boot. The field's input type
19
- * is `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
17
+ * Wraps the schema of one field so the field also accepts a plain pointer,
18
+ * which stands for a value known only at boot. The field's input type is
19
+ * `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
20
20
  * `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.
21
- * Wrap a leaf, never an object schema; put a default outside the wrapper.
21
+ * The field holds the whole value its source supplies, which may be an object
22
+ * or an array.
23
+ * Put a default outside the wrapper.
22
24
  *
23
25
  * ```ts
24
26
  * input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })
@@ -1 +1 @@
1
- {"version":3,"file":"arktype.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.d.mts"],"mappings":";;;;;;;;;;;;;;cAcc,kEAAkE,WAAW,eAAe,QAAQ;;;;;;;;;;;;iBAYjG,MAAM,GAAG,GAAG,OAAO,KAAK,GAAG,KAAK,KAAK,IAAI,QAAQ,KAAK,GAAG,gBAAgB"}
1
+ {"version":3,"file":"arktype.d.mts","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.d.mts"],"mappings":";;;;;;;;;;;;;;cAcc,kEAAkE,WAAW,eAAe,QAAQ;;;;;;;;;;;;;;iBAcjG,MAAM,GAAG,GAAG,OAAO,KAAK,GAAG,KAAK,KAAK,IAAI,QAAQ,KAAK,GAAG,gBAAgB"}
package/dist/arktype.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-C5XMnP9S.mjs";
2
- import { a as isPlainPointer, o as isSecretPointer, r as isSecretString, t as describeKind } from "./describe-kind-Cpm_euxo-D9WDxl5C.mjs";
2
+ import { a as isPlainPointer, o as isSecretPointer, r as isSecretString, t as describeKind } from "./describe-kind-Cpm_euxo-DsSPENQa.mjs";
3
3
  import { type } from "arktype";
4
4
  //#region ../../0-framework/0-foundation/foundation/dist/arktype.mjs
5
5
  /**
@@ -40,11 +40,13 @@ function innerProblem(inner, field) {
40
40
  return errors.map((error) => field.hasCode("union") ? messageAt(field.path, error) : error.problem).join("; ");
41
41
  }
42
42
  /**
43
- * Wraps the schema of one leaf field so the field also accepts a plain
44
- * pointer, which stands for a value known only at boot. The field's input type
45
- * is `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
43
+ * Wraps the schema of one field so the field also accepts a plain pointer,
44
+ * which stands for a value known only at boot. The field's input type is
45
+ * `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and
46
46
  * `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.
47
- * Wrap a leaf, never an object schema; put a default outside the wrapper.
47
+ * The field holds the whole value its source supplies, which may be an object
48
+ * or an array.
49
+ * Put a default outside the wrapper.
48
50
  *
49
51
  * ```ts
50
52
  * input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })
@@ -1 +1 @@
1
- {"version":3,"file":"arktype.mjs","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.mjs"],"sourcesContent":["import { t as blindCast } from \"./casts-DpaahrlC.mjs\";\nimport { t as describeKind } from \"./describe-kind-Cpm_euxo.mjs\";\nimport { n as isSecretString } from \"./secret-DoWGmN7m.mjs\";\nimport { n as isPlainPointer, r as isSecretPointer } from \"./pointer-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"}
1
+ {"version":3,"file":"arktype.mjs","names":[],"sources":["../../../0-framework/0-foundation/foundation/dist/arktype.mjs"],"sourcesContent":["import { t as blindCast } from \"./casts-DpaahrlC.mjs\";\nimport { t as describeKind } from \"./describe-kind-Cpm_euxo.mjs\";\nimport { n as isSecretString } from \"./secret-DoWGmN7m.mjs\";\nimport { n as isPlainPointer, r as isSecretPointer } from \"./pointer-B3LgR6R4.mjs\";\nimport { type } from \"arktype\";\n//#region src/arktype.ts\n/**\n* ArkType spellings of the framework's schema leaves. Opt-in: the framework\n* accepts any Standard Schema library (ADR-0042) and nothing outside this\n* module imports arktype, so an app that uses Zod never loads it.\n*/\n/**\n* A schema leaf that accepts only a redacting `SecretString` box or a secret\n* pointer, so `input().<field>.expose()` type-checks and binding a plain\n* literal there fails the deploy (ADR-0042). Its error names the refused\n* value's kind, never the value.\n*\n* ```ts\n* input: type({ signingKey: secretString() })\n* ```\n*/\nconst secretString = () => type(\"unknown\").narrow((value, ctx) => isSecretString(value) || isSecretPointer(value) || ctx.reject({\n\texpected: \"a SecretString box — bind this field to a secret\",\n\tactual: isPlainPointer(value) ? \"a value known only at boot that is not a secret\" : describeKind(value)\n}));\n/** `error`'s message as if it were reported at `parent` joined with its own path. */\nfunction messageAt(parent, error) {\n\treturn error.transform(({ relativePath, prefixPath, ...input }) => ({\n\t\t...input,\n\t\tpath: [...parent, ...error.path]\n\t})).message;\n}\n/**\n* The error `inner` reports for the wrapped field's value: what a wrapped field\n* reports for a value that is not a pointer. When both branches are objects,\n* ArkType reports a union error, whose message is its problem alone, so each\n* inner error carries its full path from the field's parent.\n*/\nfunction innerProblem(inner, field) {\n\tconst errors = inner(field.data);\n\tif (!(errors instanceof type.errors)) return `must be ${inner.description} (was ${describeKind(field.data)})`;\n\treturn errors.map((error) => field.hasCode(\"union\") ? messageAt(field.path, error) : error.problem).join(\"; \");\n}\n/**\n* Wraps the schema of one field so the field also accepts a plain pointer,\n* which stands for a value known only at boot. The field's input type is\n* `In | Pointer<In>` and its output type `Out | Pointer<In>`, where `In` and\n* `Out` are `inner`'s. A value that is not a pointer gets `inner`'s error.\n* The field holds the whole value its source supplies, which may be an object\n* or an array.\n* Put a default outside the wrapper.\n*\n* ```ts\n* input: type({ from: field(type('string')), port: field(type('string.integer.parse')) })\n* ```\n*/\nfunction field(inner) {\n\tconst checked = blindCast(inner);\n\tconst pointer = type(\"object\").narrow((value) => isPlainPointer(value));\n\treturn blindCast(checked.or(pointer).configure({ problem: (error) => innerProblem(checked, error) }));\n}\n//#endregion\nexport { field, secretString };\n\n//# sourceMappingURL=arktype.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,MAAM,qBAAqB,KAAK,SAAS,CAAC,CAAC,QAAQ,OAAO,QAAQ,eAAe,KAAK,KAAK,gBAAgB,KAAK,KAAK,IAAI,OAAO;CAC/H,UAAU;CACV,QAAQ,eAAe,KAAK,IAAI,oDAAoD,aAAa,KAAK;AACvG,CAAC,CAAC;;AAEF,SAAS,UAAU,QAAQ,OAAO;CACjC,OAAO,MAAM,WAAW,EAAE,cAAc,YAAY,GAAG,aAAa;EACnE,GAAG;EACH,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;CAChC,EAAE,CAAC,CAAC;AACL;;;;;;;AAOA,SAAS,aAAa,OAAO,OAAO;CACnC,MAAM,SAAS,MAAM,MAAM,IAAI;CAC/B,IAAI,EAAE,kBAAkB,KAAK,SAAS,OAAO,WAAW,MAAM,YAAY,QAAQ,aAAa,MAAM,IAAI,EAAE;CAC3G,OAAO,OAAO,KAAK,UAAU,MAAM,QAAQ,OAAO,IAAI,UAAU,MAAM,MAAM,KAAK,IAAI,MAAM,OAAO,CAAC,CAAC,KAAK,IAAI;AAC9G;;;;;;;;;;;;;;AAcA,SAAS,MAAM,OAAO;CACrB,MAAM,UAAU,UAAU,KAAK;CAC/B,MAAM,UAAU,KAAK,QAAQ,CAAC,CAAC,QAAQ,UAAU,eAAe,KAAK,CAAC;CACtE,OAAO,UAAU,QAAQ,GAAG,OAAO,CAAC,CAAC,UAAU,EAAE,UAAU,UAAU,aAAa,SAAS,KAAK,EAAE,CAAC,CAAC;AACrG"}
@@ -0,0 +1 @@
1
+ import "./app-config-DmCj4luV-BC36-MeB.mjs";
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as ReporterDescriptor, A as LocalTargetEmulatorsInput, C as LocalNodeLocation, Ct as readPreflightPayload, D as LocalTargetCurrentApp, E as LocalTargetAttachment, G as PreflightInput, H as PlatformVariableCheck, J as ProvidersInput, K as PreflightPayload, M as LocateContainerInput, O as LocalTargetCurrentInput, Q as ReportBeginInput, R as NamedSecrets, S as LocalNodeCondition, St as preflightEnvVarName, T as LocalTargetAttachInput, U as PlatformVariableReader, W as PreflightFindings, Z as ReportAttachInput, at as TeardownInput, bt as platformVariableReaderText, c as CallerCredentials, d as ConfigValues, 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 ConfigAdapter, lt as containerEnv, m as DEV_DIR, mt as devEnvironmentDir, n as AppConfiguration, ot as UnsetPlatformVariable, p as ContainerInstance, pt as deserializeContainers, q as PrismaAppConfig, r as AppSecrets, tt as RunReporter, u as ConfigAdapterInput, ut as containerEnvVarName, w as LocalNodeStopped, x as ExtensionDescriptor, xt as preflightEnv, y as DevPreflightResult, z as NodeDescriptor } from "./app-config-Ubi4CftJ-DUSDjI2i.mjs";
2
- import "./config-BmRE_eTa.mjs";
1
+ import { $ as ReporterDescriptor, A as LocalTargetEmulatorsInput, C as LocalNodeLocation, Ct as readPreflightPayload, D as LocalTargetCurrentApp, E as LocalTargetAttachment, G as PreflightInput, H as PlatformVariableCheck, J as ProvidersInput, K as PreflightPayload, M as LocateContainerInput, O as LocalTargetCurrentInput, Q as ReportBeginInput, R as NamedSecrets, S as LocalNodeCondition, St as preflightEnvVarName, T as LocalTargetAttachInput, U as PlatformVariableReader, W as PreflightFindings, Z as ReportAttachInput, at as TeardownInput, bt as platformVariableReaderText, c as CallerCredentials, d as ConfigValues, 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 ConfigAdapter, lt as containerEnv, m as DEV_DIR, mt as devEnvironmentDir, n as AppConfiguration, ot as UnsetPlatformVariable, p as ContainerInstance, pt as deserializeContainers, q as PrismaAppConfig, r as AppSecrets, tt as RunReporter, u as ConfigAdapterInput, ut as containerEnvVarName, w as LocalNodeStopped, x as ExtensionDescriptor, xt as preflightEnv, y as DevPreflightResult, z as NodeDescriptor } from "./app-config-DmCj4luV-BC36-MeB.mjs";
2
+ import "./config-vv8LBErH.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`. */
@@ -1,9 +1,9 @@
1
- import { Rt as CliStructuredError } from "./graph-types-Bzj1fahC-C8rOVj0c.mjs";
2
- import { U as PlatformVariableReader, W as PreflightFindings, ot as UnsetPlatformVariable } from "./app-config-Ubi4CftJ-DUSDjI2i.mjs";
3
- import "./config-BmRE_eTa.mjs";
4
- import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-6LgQDUuu-DtCvw9UQ.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-CIaE4m9U-DJGrkcn3.mjs";
1
+ import { Rt as CliStructuredError } from "./graph-types-CaH3flhT-DgrCdRA3.mjs";
2
+ import { U as PlatformVariableReader, W as PreflightFindings, ot as UnsetPlatformVariable } from "./app-config-DmCj4luV-BC36-MeB.mjs";
3
+ import "./config-vv8LBErH.mjs";
4
+ import { n as DeploymentSummary, t as DeployedNodeSummary } from "./deployment-summary-6LgQDUuu-Dp8kwMs_.mjs";
5
+ import "./index-Cnbf_d0q.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-CIaE4m9U-DyJoGPRw.mjs";
7
7
  //#region ../../0-framework/3-tooling/cli/dist/dev-current-BUfC8loc.d.mts
8
8
  //#region src/operations/deploy.d.ts
9
9
  /** A deploy step. `assemble-service` steps run inside `assemble`, one per service, and `apply-resource` steps inside `apply`, one per resource Alchemy touches. */
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-Dp3jvXGN-C1Y2BAtC.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-gQnmjB4V-BaNhcGpK.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-J0buFSWK-BhVTX4-E.mjs");
24
+ executor = await import("./execute-deploy-destroy-DKbsBkqK-BWXh0zXQ.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-BcmA2gDv-CPrOZtEh.mjs");
46
+ executor = await import("./execute-log-B34AeU97-CkJiGdIc.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-Dp3jvXGN.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-J0buFSWK.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-BcmA2gDv.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-gQnmjB4V.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-DKbsBkqK.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-B34AeU97.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,5 +1,5 @@
1
- import { _t as lower } from "./app-config-Ubi4CftJ-DUSDjI2i.mjs";
2
- import "./deploy-BW_F4Y9W.mjs";
1
+ import { _t as lower } from "./app-config-DmCj4luV-BC36-MeB.mjs";
2
+ import "./deploy-w-BcRS8b.mjs";
3
3
  import "alchemy/Alchemist";
4
4
  import "effect/Cause";
5
5
  //#region ../../0-framework/3-tooling/cli/dist/converge-in-process-BBBeood8.d.mts
@@ -64,4 +64,4 @@ type Converge = (request: ConvergeRequest) => Promise<ConvergeOutcome>;
64
64
  declare const convergeInProcess: Converge;
65
65
  //#endregion
66
66
  export { ConvergeRequest as a, ConvergeOutcome as i, ConvergeEvent as n, LoweredStack as o, ConvergeFailureReason as r, convergeInProcess as s, Converge as t };
67
- //# sourceMappingURL=converge-in-process-BBBeood8-C7VG5b35.d.mts.map
67
+ //# sourceMappingURL=converge-in-process-BBBeood8-BCIPOG8X.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"converge-in-process-BBBeood8-C7VG5b35.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/converge-in-process-BBBeood8.d.mts"],"mappings":";;;;;;;KAKK,eAAe,kBAAkB;;KAEjC;KACA;WACM;WACA;WACA;;WAEA;WACA,OAAO;WACP;;WAEA;WACA;WACA;;UAED;WACC;WACA,OAAO;WACP;;WAEA;;WAEA,KAAK,SAAS;WACd,SAAS;WACT,YAAY,OAAO;;WAEnB,WAAW;;;UAGZ;WACC;WACA;;KAEN;WACM;;WAEA;;WAEA;WACA,kBAAkB;;;;WAIlB;WACA;;;KAGN,YAAY,SAAS,oBAAoB,QAAQ;;;;;;;;cAQxC,mBAAmB"}
1
+ {"version":3,"file":"converge-in-process-BBBeood8-BCIPOG8X.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/converge-in-process-BBBeood8.d.mts"],"mappings":";;;;;;;KAKK,eAAe,kBAAkB;;KAEjC;KACA;WACM;WACA;WACA;;WAEA;WACA,OAAO;WACP;;WAEA;WACA;WACA;;UAED;WACC;WACA,OAAO;WACP;;WAEA;;WAEA,KAAK,SAAS;WACd,SAAS;WACT,YAAY,OAAO;;WAEnB,WAAW;;;UAGZ;WACC;WACA;;KAEN;WACM;;WAEA;;WAEA;WACA,kBAAkB;;;;WAIlB;WACA;;;KAGN,YAAY,SAAS,oBAAoB,QAAQ;;;;;;;;cAQxC,mBAAmB"}
@@ -1,5 +1,5 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-C5XMnP9S.mjs";
2
- import { T as slotsOf, _ as nodeAddresses, h as isValueResource, n as Load } from "./graph-C6Fqe2gn-DMa2udEA.mjs";
2
+ import { T as slotsOf, _ as nodeAddresses, h as isValueResource, n as Load } from "./graph-C6Fqe2gn-qJQBxs_C.mjs";
3
3
  import { r as deserializeContainers, s as readPreflightPayload } from "./preflight-transport-C7_3abXW-Bza_hn9G.mjs";
4
4
  import * as Alchemy from "alchemy";
5
5
  import * as Effect from "effect/Effect";
@@ -410,4 +410,4 @@ function wrappedProviderError(error) {
410
410
  //#endregion
411
411
  export { joinDeployment as a, mergedProviders as c, transportedLowerInputs as d, wrappedProviderError as f, deploymentResult as i, resolveStateLayer as l, buildConfig as n, lower as o, connectionInputs as r, lowering as s, LowerError as t, toProviderError as u };
412
412
 
413
- //# sourceMappingURL=deploy-NArSOken.mjs.map
413
+ //# sourceMappingURL=deploy-B2kxaH5E.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-NArSOken.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-C6Fqe2gn.mjs\";\nimport { i as readPreflightPayload, s as deserializeContainers } from \"./preflight-transport-C7_3abXW.mjs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport * as Alchemy from \"alchemy\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Data from \"effect/Data\";\nimport * as Predicate from \"effect/Predicate\";\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(`lower() built a different graph from the one Composer checked first. Only in the graph lower() built: ${list(onlyBuilt)}. Only in the graph Composer checked: ${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 deploy preflight's findings. */\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), opts.credentials);\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, credentials) {\n\tconst [first, ...rest] = config.extensions.flatMap((extension) => extension.providers !== void 0 ? [extension.providers({ credentials })] : []);\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, preflightPayloads, findings } = lowerInputs(config, opts);\n\t\tconst preflightOf = (extensionId) => preflightPayloads.get(extensionId);\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\tpreflight: preflightOf(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\tpreflight: preflightOf(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/** The containers and preflight payloads a host wrote into the environment of a stack file it runs as a child. */\nfunction transportedLowerInputs(config) {\n\tconst env = process.env;\n\tconst preflightPayloads = /* @__PURE__ */ new Map();\n\tfor (const { id } of config.extensions) {\n\t\tconst payload = readPreflightPayload(id, env);\n\t\tif (payload !== void 0) preflightPayloads.set(id, payload);\n\t}\n\treturn {\n\t\tcontainers: deserializeContainers(config.extensions, env),\n\t\tpreflightPayloads\n\t};\n}\nfunction lowerInputs(config, opts) {\n\tconst { containers, preflightPayloads } = opts;\n\tconst findings = opts.findings ?? { unset: [] };\n\tif (containers !== void 0 && preflightPayloads !== void 0) return {\n\t\tcontainers,\n\t\tpreflightPayloads,\n\t\tfindings\n\t};\n\tif (containers === void 0 && preflightPayloads === void 0) return {\n\t\t...transportedLowerInputs(config),\n\t\tfindings\n\t};\n\tconst missing = containers === void 0 ? \"containers\" : \"preflightPayloads\";\n\tthrow new Error(`lower() was passed ${missing === \"containers\" ? \"preflightPayloads\" : \"containers\"} without ${missing}. Pass both, or neither to read both from the environment.`);\n}\n/**\n* The whole-stack wrapper: Load → route each node through the config's\n* extension registries → an Alchemy Stack, which `deploy` hands to\n* `Alchemist.plan` and a generated stack file exports for the alchemy CLI.\n*/\nfunction lower(root, config, opts) {\n\tconst stackEffect = blindCast(Effect.orDie(lowering(root, config, opts)));\n\tconst providers = opts.providers ?? mergedProviders(config, opts.credentials);\n\treturn Alchemy.Stack(opts.name, {\n\t\tproviders,\n\t\tstate: resolveStateLayer(opts, config, lowerInputs(config, opts).containers)\n\t}, stackEffect);\n}\n//#endregion\n//#region src/control/provider-error.ts\nconst PROVIDER_FAILURE_TAG = \"ProviderFailure\";\n/** A provider operation failed with an error that carries no `_tag` of its own; `cause` is that error. */\nvar ProviderFailure = class extends Data.TaggedError(PROVIDER_FAILURE_TAG) {};\nfunction isProviderError(cause) {\n\treturn Predicate.hasProperty(cause, \"_tag\") && typeof cause._tag === \"string\";\n}\n/** What a provider operation threw, as the error Alchemy's lifecycle methods fail with: an error with a `_tag` as it is, anything else wrapped in a `ProviderFailure`. */\nfunction toProviderError(cause) {\n\tif (isProviderError(cause)) return cause;\n\treturn new ProviderFailure({\n\t\tmessage: cause instanceof Error ? cause.message : String(cause),\n\t\tcause\n\t});\n}\n/** The original error of a provider failure `toProviderError` wrapped, or `undefined` for any other error. */\nfunction wrappedProviderError(error) {\n\treturn Predicate.isTagged(error, PROVIDER_FAILURE_TAG) && \"cause\" in error ? error.cause : void 0;\n}\n//#endregion\nexport { LowerError, buildConfig, connectionInputs, deploymentResult, joinDeployment, lower, lowering, mergedProviders, nodeAddresses, resolveStateLayer, secretsKeys, toProviderError, transportedLowerInputs, wrappedProviderError };\n\n//# sourceMappingURL=deploy.mjs.map"],"mappings":";;;;;;;;;;AAUA,IAAI,aAAa,cAAc,MAAM;CACpC,YAAY,SAAS;EACpB,MAAM,OAAO;EACb,KAAK,OAAO;CACb;AACD;AACA,SAAS,wBAAwB,OAAO,cAAc;CACrD,MAAM,YAAY,MAAM,QAAQ,YAAY,CAAC,aAAa,SAAS,OAAO,CAAC;CAC3E,MAAM,YAAY,aAAa,QAAQ,YAAY,CAAC,MAAM,SAAS,OAAO,CAAC;CAC3E,IAAI,UAAU,WAAW,KAAK,UAAU,WAAW,GAAG;CACtD,MAAM,QAAQ,cAAc,UAAU,WAAW,IAAI,SAAS,UAAU,KAAK,YAAY,IAAI,QAAQ,EAAE,CAAC,CAAC,KAAK,IAAI;CAClH,MAAM,IAAI,WAAW,yGAAyG,KAAK,SAAS,EAA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;AAC5E,SAAS,gBAAgB,OAAO;CAC/B,OAAO,UAAU,YAAY,OAAO,MAAM,KAAK,OAAO,MAAM,SAAS;AACtE;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,IAAI,gBAAgB,KAAK,GAAG,OAAO;CACnC,OAAO,IAAI,gBAAgB;EAC1B,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;EAC9D;CACD,CAAC;AACF;;AAEA,SAAS,qBAAqB,OAAO;CACpC,OAAO,UAAU,SAAS,OAAO,oBAAoB,KAAK,WAAW,QAAQ,MAAM,QAAQ,KAAK;AACjG"}
1
+ {"version":3,"file":"deploy-B2kxaH5E.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-C6Fqe2gn.mjs\";\nimport { i as readPreflightPayload, s as deserializeContainers } from \"./preflight-transport-C7_3abXW.mjs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport * as Alchemy from \"alchemy\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Data from \"effect/Data\";\nimport * as Predicate from \"effect/Predicate\";\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(`lower() built a different graph from the one Composer checked first. Only in the graph lower() built: ${list(onlyBuilt)}. Only in the graph Composer checked: ${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 deploy preflight's findings. */\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), opts.credentials);\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, credentials) {\n\tconst [first, ...rest] = config.extensions.flatMap((extension) => extension.providers !== void 0 ? [extension.providers({ credentials })] : []);\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, preflightPayloads, findings } = lowerInputs(config, opts);\n\t\tconst preflightOf = (extensionId) => preflightPayloads.get(extensionId);\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\tpreflight: preflightOf(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\tpreflight: preflightOf(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/** The containers and preflight payloads a host wrote into the environment of a stack file it runs as a child. */\nfunction transportedLowerInputs(config) {\n\tconst env = process.env;\n\tconst preflightPayloads = /* @__PURE__ */ new Map();\n\tfor (const { id } of config.extensions) {\n\t\tconst payload = readPreflightPayload(id, env);\n\t\tif (payload !== void 0) preflightPayloads.set(id, payload);\n\t}\n\treturn {\n\t\tcontainers: deserializeContainers(config.extensions, env),\n\t\tpreflightPayloads\n\t};\n}\nfunction lowerInputs(config, opts) {\n\tconst { containers, preflightPayloads } = opts;\n\tconst findings = opts.findings ?? { unset: [] };\n\tif (containers !== void 0 && preflightPayloads !== void 0) return {\n\t\tcontainers,\n\t\tpreflightPayloads,\n\t\tfindings\n\t};\n\tif (containers === void 0 && preflightPayloads === void 0) return {\n\t\t...transportedLowerInputs(config),\n\t\tfindings\n\t};\n\tconst missing = containers === void 0 ? \"containers\" : \"preflightPayloads\";\n\tthrow new Error(`lower() was passed ${missing === \"containers\" ? \"preflightPayloads\" : \"containers\"} without ${missing}. Pass both, or neither to read both from the environment.`);\n}\n/**\n* The whole-stack wrapper: Load → route each node through the config's\n* extension registries → an Alchemy Stack, which `deploy` hands to\n* `Alchemist.plan` and a generated stack file exports for the alchemy CLI.\n*/\nfunction lower(root, config, opts) {\n\tconst stackEffect = blindCast(Effect.orDie(lowering(root, config, opts)));\n\tconst providers = opts.providers ?? mergedProviders(config, opts.credentials);\n\treturn Alchemy.Stack(opts.name, {\n\t\tproviders,\n\t\tstate: resolveStateLayer(opts, config, lowerInputs(config, opts).containers)\n\t}, stackEffect);\n}\n//#endregion\n//#region src/control/provider-error.ts\nconst PROVIDER_FAILURE_TAG = \"ProviderFailure\";\n/** A provider operation failed with an error that carries no `_tag` of its own; `cause` is that error. */\nvar ProviderFailure = class extends Data.TaggedError(PROVIDER_FAILURE_TAG) {};\nfunction isProviderError(cause) {\n\treturn Predicate.hasProperty(cause, \"_tag\") && typeof cause._tag === \"string\";\n}\n/** What a provider operation threw, as the error Alchemy's lifecycle methods fail with: an error with a `_tag` as it is, anything else wrapped in a `ProviderFailure`. */\nfunction toProviderError(cause) {\n\tif (isProviderError(cause)) return cause;\n\treturn new ProviderFailure({\n\t\tmessage: cause instanceof Error ? cause.message : String(cause),\n\t\tcause\n\t});\n}\n/** The original error of a provider failure `toProviderError` wrapped, or `undefined` for any other error. */\nfunction wrappedProviderError(error) {\n\treturn Predicate.isTagged(error, PROVIDER_FAILURE_TAG) && \"cause\" in error ? error.cause : void 0;\n}\n//#endregion\nexport { LowerError, buildConfig, connectionInputs, deploymentResult, joinDeployment, lower, lowering, mergedProviders, nodeAddresses, resolveStateLayer, secretsKeys, toProviderError, transportedLow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;CACD;CACA,MAAM,UAAU,eAAe,KAAK,IAAI,eAAe;CACvD,MAAM,IAAI,MAAM,sBAAsB,YAAY,eAAe,sBAAsB,aAAa,WAAW,QAAQ,2DAA2D;AACnL;;;;;;AAMA,SAAS,MAAM,MAAM,QAAQ,MAAM;CAClC,MAAM,cAAc,UAAU,OAAO,MAAM,SAAS,MAAM,QAAQ,IAAI,CAAC,CAAC;CACxE,MAAM,YAAY,KAAK,aAAa,gBAAgB,QAAQ,KAAK,WAAW;CAC5E,OAAO,QAAQ,MAAM,KAAK,MAAM;EAC/B;EACA,OAAO,kBAAkB,MAAM,QAAQ,YAAY,QAAQ,IAAI,CAAC,CAAC,UAAU;CAC5E,GAAG,WAAW;AACf;AAGA,MAAM,uBAAuB;;AAE7B,IAAI,kBAAkB,cAAc,KAAK,YAAY,oBAAoB,CAAC,CAAC,CAAC;AAC5E,SAAS,gBAAgB,OAAO;CAC/B,OAAO,UAAU,YAAY,OAAO,MAAM,KAAK,OAAO,MAAM,SAAS;AACtE;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,IAAI,gBAAgB,KAAK,GAAG,OAAO;CACnC,OAAO,IAAI,gBAAgB;EAC1B,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;EAC9D;CACD,CAAC;AACF;;AAEA,SAAS,qBAAqB,OAAO;CACpC,OAAO,UAAU,SAAS,OAAO,oBAAoB,KAAK,WAAW,QAAQ,MAAM,QAAQ,KAAK;AACjG"}
@@ -1,5 +1,5 @@
1
- import "./graph-DU0omY5O-BHO71z0F.mjs";
2
- import "./app-config-Ubi4CftJ-DUSDjI2i.mjs";
1
+ import "./graph-1ILOBl8O-DBaUZL2D.mjs";
2
+ import "./app-config-DmCj4luV-BC36-MeB.mjs";
3
3
  import * as Provider from "alchemy/Provider";
4
4
  //#region ../../0-framework/1-core/core/dist/deploy.d.mts
5
5
  //#region src/control/provider-error.d.ts
@@ -9,4 +9,4 @@ declare function toProviderError(cause: unknown): Provider.ProviderError;
9
9
  declare function wrappedProviderError(error: unknown): unknown;
10
10
  //#endregion
11
11
  export { wrappedProviderError as n, toProviderError as t };
12
- //# sourceMappingURL=deploy-BW_F4Y9W.d.mts.map
12
+ //# sourceMappingURL=deploy-w-BcRS8b.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-w-BcRS8b.d.mts","names":[],"sources":["../../../0-framework/1-core/core/dist/deploy.d.mts"],"mappings":";;;;;;iBAKiB,gBAAgB,iBAAiB,SAAS;;iBAE1C,qBAAqB"}
package/dist/deploy.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as secretsKeys, r as nodeAddresses } from "./graph-DU0omY5O-BHO71z0F.mjs";
2
- import { B as Outputs, F as LowerOptions, I as LoweredResult, L as Lowering, N as LowerContext, P as LowerError, Tt as transportedLowerInputs, V as PackageInput, 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, wt as resolveStateLayer, yt as mergedProviders } from "./app-config-Ubi4CftJ-DUSDjI2i.mjs";
3
- import { n as wrappedProviderError, t as toProviderError } from "./deploy-BW_F4Y9W.mjs";
1
+ import { i as secretsKeys, r as nodeAddresses } from "./graph-1ILOBl8O-DBaUZL2D.mjs";
2
+ import { B as Outputs, F as LowerOptions, I as LoweredResult, L as Lowering, N as LowerContext, P as LowerError, Tt as transportedLowerInputs, V as PackageInput, 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, wt as resolveStateLayer, yt as mergedProviders } from "./app-config-DmCj4luV-BC36-MeB.mjs";
3
+ import { n as wrappedProviderError, t as toProviderError } from "./deploy-w-BcRS8b.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, toProviderError, transportedLowerInputs, wrappedProviderError };
package/dist/deploy.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { C as secretsKeys, _ as nodeAddresses } from "./graph-C6Fqe2gn-DMa2udEA.mjs";
2
- import { a as joinDeployment, c as mergedProviders, d as transportedLowerInputs, f as wrappedProviderError, i as deploymentResult, l as resolveStateLayer, n as buildConfig, o as lower, r as connectionInputs, s as lowering, t as LowerError, u as toProviderError } from "./deploy-NArSOken.mjs";
1
+ import { C as secretsKeys, _ as nodeAddresses } from "./graph-C6Fqe2gn-qJQBxs_C.mjs";
2
+ import { a as joinDeployment, c as mergedProviders, d as transportedLowerInputs, f as wrappedProviderError, i as deploymentResult, l as resolveStateLayer, n as buildConfig, o as lower, r as connectionInputs, s as lowering, t as LowerError, u as toProviderError } from "./deploy-B2kxaH5E.mjs";
3
3
  export { LowerError, buildConfig, connectionInputs, deploymentResult, joinDeployment, lower, lowering, mergedProviders, nodeAddresses, resolveStateLayer, secretsKeys, toProviderError, transportedLowerInputs, wrappedProviderError };
@@ -1,6 +1,6 @@
1
- import { W as PreflightFindings, g as DeployedEntity } from "./app-config-Ubi4CftJ-DUSDjI2i.mjs";
2
- import "./config-BmRE_eTa.mjs";
3
- import "./deploy-BW_F4Y9W.mjs";
1
+ import { W as PreflightFindings, g as DeployedEntity } from "./app-config-DmCj4luV-BC36-MeB.mjs";
2
+ import "./config-vv8LBErH.mjs";
3
+ import "./deploy-w-BcRS8b.mjs";
4
4
  //#region ../../0-framework/3-tooling/cli/dist/deployment-summary-6LgQDUuu.d.mts
5
5
  //#region src/deployment-summary.d.ts
6
6
  /** The serializable projection of DeploymentResult — what CAN cross the process
@@ -30,4 +30,4 @@ interface DeploymentSummary {
30
30
  declare function captureEngineFailure(): void;
31
31
  //#endregion
32
32
  export { DeploymentSummary as n, captureEngineFailure as r, DeployedNodeSummary as t };
33
- //# sourceMappingURL=deployment-summary-6LgQDUuu-DtCvw9UQ.d.mts.map
33
+ //# sourceMappingURL=deployment-summary-6LgQDUuu-Dp8kwMs_.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-summary-6LgQDUuu-DtCvw9UQ.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/deployment-summary-6LgQDUuu.d.mts"],"mappings":";;;;;;;UAKU;WACC;WACA,mBAAmB;;UAEpB;WACC;WACA,gBAAgB;;WAEhB,UAAU;;;;;;;;;;;;;;iBAcJ"}
1
+ {"version":3,"file":"deployment-summary-6LgQDUuu-Dp8kwMs_.d.mts","names":[],"sources":["../../../0-framework/3-tooling/cli/dist/deployment-summary-6LgQDUuu.d.mts"],"mappings":";;;;;;;UAKU;WACC;WACA,mBAAmB;;UAEpB;WACC;WACA,gBAAgB;;WAEhB,UAAU;;;;;;;;;;;;;;iBAcJ"}
@@ -1,12 +1,12 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-C5XMnP9S.mjs";
2
- //#region ../../0-framework/0-foundation/foundation/dist/pointer-BLedpQgL.mjs
2
+ //#region ../../0-framework/0-foundation/foundation/dist/pointer-B3LgR6R4.mjs
3
3
  /** A pointer: what a value known only at boot holds at deploy. It names the variable on the platform that the service reads at boot, and records whether that variable holds a secret. */
4
4
  const POINTER = blindCast(Symbol.for("prisma:pointer"));
5
5
  function kindOf(value) {
6
6
  if (typeof value !== "object" || value === null) return void 0;
7
7
  return Reflect.get(value, POINTER);
8
8
  }
9
- /** True for a plain pointer: a value known only at boot whose variable holds plain text. */
9
+ /** True for a plain pointer: a value known only at boot that is not a secret. */
10
10
  function isPlainPointer(value) {
11
11
  return kindOf(value) === "plain";
12
12
  }
@@ -79,4 +79,4 @@ function describeKind(value) {
79
79
  //#endregion
80
80
  export { isPlainPointer as a, POINTER as i, SecretBox as n, isSecretPointer as o, isSecretString as r, describeKind as t };
81
81
 
82
- //# sourceMappingURL=describe-kind-Cpm_euxo-D9WDxl5C.mjs.map
82
+ //# sourceMappingURL=describe-kind-Cpm_euxo-DsSPENQa.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describe-kind-Cpm_euxo-DsSPENQa.mjs","names":["#value"],"sources":["../../../0-framework/0-foundation/foundation/dist/pointer-B3LgR6R4.mjs","../../../0-framework/0-foundation/foundation/dist/secret-DoWGmN7m.mjs","../../../0-framework/0-foundation/foundation/dist/describe-kind-Cpm_euxo.mjs"],"sourcesContent":["import { t as blindCast } from \"./casts-DpaahrlC.mjs\";\n//#region src/pointer.ts\n/** A pointer: what a value known only at boot holds at deploy. It names the variable on the platform that the service reads at boot, and records whether that variable holds a secret. */\nconst POINTER = blindCast(Symbol.for(\"prisma:pointer\"));\nfunction kindOf(value) {\n\tif (typeof value !== \"object\" || value === null) return void 0;\n\treturn Reflect.get(value, POINTER);\n}\n/** True for a plain pointer: a value known only at boot that is not a secret. */\nfunction isPlainPointer(value) {\n\treturn kindOf(value) === \"plain\";\n}\n/** True for a secret pointer: a value known only at boot whose variable holds a secret. */\nfunction isSecretPointer(value) {\n\treturn kindOf(value) === \"secret\";\n}\n//#endregion\nexport { isPlainPointer as n, isSecretPointer as r, POINTER as t };\n\n//# sourceMappingURL=pointer-B3LgR6R4.mjs.map","import { t as blindCast } from \"./casts-DpaahrlC.mjs\";\n//#region src/secret.ts\n/**\n* A value wrapper that redacts everywhere except the one explicit reader,\n* `expose()`. Sensitivity is carried by the TYPE (`SecretBox<T>`), not a flag a\n* sink must remember to check: `String(box)`, template interpolation,\n* `JSON.stringify`, and `console.log`/`util.inspect` all print `[REDACTED]`, so\n* a secret can't leak through an accidental log or serialization.\n*\n* Every box carries a brand property keyed by the registered symbol\n* `Symbol.for('prisma:secret-box')`, which is what `isSecretString` checks. A\n* symbol key is invisible to `JSON.stringify` and `Object.keys`, so the box's\n* public shape still matches the platform's own `secrecy` type\n* (pdp-control-plane).\n*/\nconst REDACTED = \"[REDACTED]\";\nconst SECRET_BOX = blindCast(Symbol.for(\"prisma:secret-box\"));\nvar SecretBox = class {\n\t[SECRET_BOX] = true;\n\t#value;\n\tconstructor(value) {\n\t\tthis.#value = value;\n\t}\n\t/** The sole explicit door to the wrapped value. */\n\texpose() {\n\t\treturn this.#value;\n\t}\n\ttoString() {\n\t\treturn REDACTED;\n\t}\n\ttoJSON() {\n\t\treturn REDACTED;\n\t}\n\tvalueOf() {\n\t\treturn REDACTED;\n\t}\n\t[Symbol.toPrimitive]() {\n\t\treturn REDACTED;\n\t}\n\t[Symbol.for(\"nodejs.util.inspect.custom\")]() {\n\t\treturn REDACTED;\n\t}\n};\n/**\n* True for a redacting secret box — what a schema's secret leaf checks\n* (ADR-0042). Reads the brand rather than `instanceof`, so a box from a\n* duplicated module copy in a bundle counts and a look-alike does not.\n*/\nfunction isSecretString(value) {\n\treturn typeof value === \"object\" && value !== null && blindCast(value)[SECRET_BOX] === true;\n}\n//#endregion\nexport { isSecretString as n, SecretBox as t };\n\n//# sourceMappingURL=secret-DoWGmN7m.mjs.map","//#region src/describe-kind.ts\n/** How an error names the kind of a value it did not expect, without printing the value. */\nfunction describeKind(value) {\n\tif (value === void 0) return \"nothing\";\n\tif (value === null) return \"null\";\n\tif (Array.isArray(value)) return \"an array\";\n\tif (typeof value === \"function\") return \"a function\";\n\tif (typeof value === \"object\") return \"an object\";\n\treturn `a ${typeof value}`;\n}\n//#endregion\nexport { describeKind as t };\n\n//# sourceMappingURL=describe-kind-Cpm_euxo.mjs.map"],"mappings":";;;AAGA,MAAM,UAAU,UAAU,OAAO,IAAI,gBAAgB,CAAC;AACtD,SAAS,OAAO,OAAO;CACtB,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO,KAAK;CAC7D,OAAO,QAAQ,IAAI,OAAO,OAAO;AAClC;;AAEA,SAAS,eAAe,OAAO;CAC9B,OAAO,OAAO,KAAK,MAAM;AAC1B;;AAEA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,OAAO,KAAK,MAAM;AAC1B;;;;;;;;;;;;;;;;ACAA,MAAM,WAAW;AACjB,MAAM,aAAa,UAAU,OAAO,IAAI,mBAAmB,CAAC;AAC5D,IAAI,YAAY,MAAM;CACrB,CAAC,cAAc;CACf;CACA,YAAY,OAAO;EAClB,KAAKA,SAAS;CACf;;CAEA,SAAS;EACR,OAAO,KAAKA;CACb;CACA,WAAW;EACV,OAAO;CACR;CACA,SAAS;EACR,OAAO;CACR;CACA,UAAU;EACT,OAAO;CACR;CACA,CAAC,OAAO,eAAe;EACtB,OAAO;CACR;CACA,CAAC,OAAO,IAAI,4BAA4B,KAAK;EAC5C,OAAO;CACR;AACD;;;;;;AAMA,SAAS,eAAe,OAAO;CAC9B,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU,KAAK,CAAC,CAAC,gBAAgB;AACxF;;;;AChDA,SAAS,aAAa,OAAO;CAC5B,IAAI,UAAU,KAAK,GAAG,OAAO;CAC7B,IAAI,UAAU,MAAM,OAAO;CAC3B,IAAI,MAAM,QAAQ,KAAK,GAAG,OAAO;CACjC,IAAI,OAAO,UAAU,YAAY,OAAO;CACxC,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,OAAO,KAAK,OAAO;AACpB"}
@@ -88,7 +88,7 @@ function okVoid() {
88
88
  return OK_VOID;
89
89
  }
90
90
  //#endregion
91
- //#region ../../0-framework/3-tooling/cli/dist/dev-current-Dp3jvXGN.mjs
91
+ //#region ../../0-framework/3-tooling/cli/dist/dev-current-gQnmjB4V.mjs
92
92
  /**
93
93
  * Reads the execution diagnostics an engine-failure error carries in
94
94
  * `meta.diagnostics`; undefined for every other failure.
@@ -161,7 +161,7 @@ async function deployWithDeps(input, deps) {
161
161
  const cwd = input.cwd ?? process.cwd();
162
162
  let executor;
163
163
  try {
164
- executor = await import("./execute-deploy-destroy-J0buFSWK-BhVTX4-E.mjs");
164
+ executor = await import("./execute-deploy-destroy-DKbsBkqK-BWXh0zXQ.mjs");
165
165
  } catch (error) {
166
166
  return notOk(executorLoadFailure("deploy", error));
167
167
  }
@@ -182,7 +182,7 @@ async function devWithDeps(input, deps) {
182
182
  const cwd = input.cwd ?? process.cwd();
183
183
  let executor;
184
184
  try {
185
- executor = await import("./execute-dev-B5YaMqpD-BAxU6Smm.mjs");
185
+ executor = await import("./execute-dev-DVCWURmI-Cp3i7Hrp.mjs");
186
186
  } catch (error) {
187
187
  return notOk(executorLoadFailure("dev", error));
188
188
  }
@@ -190,7 +190,7 @@ async function devWithDeps(input, deps) {
190
190
  }
191
191
  async function loadExecutor(operation) {
192
192
  try {
193
- return ok(await import("./execute-dev-current-C7le-kh2-BoUej3LZ.mjs"));
193
+ return ok(await import("./execute-dev-current-Dt_9srY2-COEgQ9h4.mjs"));
194
194
  } catch (error) {
195
195
  return notOk(executorLoadFailure(operation, error));
196
196
  }
@@ -210,4 +210,4 @@ async function devStop(input) {
210
210
  //#endregion
211
211
  export { executionDiagnostics as a, toStructured as c, okVoid as d, devUrl as i, notOk as l, dev as n, executorLoadFailure as o, devStop as r, requireContainerForEnvironment as s, deploy as t, ok as u };
212
212
 
213
- //# sourceMappingURL=dev-current-Dp3jvXGN-C1Y2BAtC.mjs.map
213
+ //# sourceMappingURL=dev-current-gQnmjB4V-BaNhcGpK.mjs.map