@prisma/orm-framework 8.0.0-rc.18-dev.32 → 8.0.0-rc.18-dev.34

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 (123) hide show
  1. package/dist/{authoring-BY3RNM--.d.mts → authoring-BJgarhJI.d.mts} +10 -8
  2. package/dist/authoring-BJgarhJI.d.mts.map +1 -0
  3. package/dist/{authoring-D77CrCtb.mjs → authoring-so3aBYD8.mjs} +70 -42
  4. package/dist/authoring-so3aBYD8.mjs.map +1 -0
  5. package/dist/{binder-Cm0N-oPu-deLbJ-j9.d.mts → binder-Cm0N-oPu-WASgR3Jw.d.mts} +12 -12
  6. package/dist/{binder-Cm0N-oPu-deLbJ-j9.d.mts.map → binder-Cm0N-oPu-WASgR3Jw.d.mts.map} +1 -1
  7. package/dist/codec-DGRG8oEH.mjs +56 -0
  8. package/dist/codec-DGRG8oEH.mjs.map +1 -0
  9. package/dist/{codec-CGFT5YKu.d.mts → codec-DkiEF2cQ.d.mts} +15 -3
  10. package/dist/codec-DkiEF2cQ.d.mts.map +1 -0
  11. package/dist/{codec-descriptor-DEfL2Kb6-B-vOB0ue.mjs → codec-descriptor-V2-N5Qmm-BR-5owl6.mjs} +3 -3
  12. package/dist/{codec-descriptor-DEfL2Kb6-B-vOB0ue.mjs.map → codec-descriptor-V2-N5Qmm-BR-5owl6.mjs.map} +1 -1
  13. package/dist/{codec-types-B5_YzEwo-DVCRRWlg.d.mts → codec-types-DjozIOvT-BIcpyFea.d.mts} +10 -2
  14. package/dist/codec-types-DjozIOvT-BIcpyFea.d.mts.map +1 -0
  15. package/dist/{components-BdXloTpj.d.mts → components-BbJVTEds.d.mts} +4 -4
  16. package/dist/{components-BdXloTpj.d.mts.map → components-BbJVTEds.d.mts.map} +1 -1
  17. package/dist/components.d.mts +16 -16
  18. package/dist/components.mjs +6 -6
  19. package/dist/components__authoring.d.mts +3 -3
  20. package/dist/components__authoring.mjs +1 -1
  21. package/dist/components__codec.d.mts +3 -3
  22. package/dist/components__codec.mjs +4 -4
  23. package/dist/components__components.d.mts +3 -3
  24. package/dist/components__control.d.mts +3 -3
  25. package/dist/components__control.mjs +2 -2
  26. package/dist/components__emission.d.mts +3 -3
  27. package/dist/components__execution.d.mts +1 -1
  28. package/dist/components__psl-ast.d.mts +3 -3
  29. package/dist/components__runtime.d.mts +1 -1
  30. package/dist/{config-types-BXw8w6h9.d.mts → config-types-DWa3fsKB.d.mts} +9 -9
  31. package/dist/{config-types-BXw8w6h9.d.mts.map → config-types-DWa3fsKB.d.mts.map} +1 -1
  32. package/dist/config.d.mts +1 -1
  33. package/dist/config__config-types.d.mts +1 -1
  34. package/dist/contract-authoring.d.mts +5 -5
  35. package/dist/contract-authoring.mjs +3 -3
  36. package/dist/contract-authoring.mjs.map +1 -1
  37. package/dist/contract.d.mts +3 -3
  38. package/dist/contract.mjs +1 -1
  39. package/dist/contract__enum-accessor.d.mts +1 -1
  40. package/dist/contract__enum-accessor.mjs +1 -1
  41. package/dist/contract__types.d.mts +2 -2
  42. package/dist/{control-C_zs63JQ-BFg3u8U5.d.mts → control-B5ezUWD2-DSW4M09S.d.mts} +6 -4
  43. package/dist/{control-C_zs63JQ-BFg3u8U5.d.mts.map → control-B5ezUWD2-DSW4M09S.d.mts.map} +1 -1
  44. package/dist/{control-D2f07K6R.d.mts → control-BKuRvAVY.d.mts} +44 -23
  45. package/dist/control-BKuRvAVY.d.mts.map +1 -0
  46. package/dist/control-CgOeB4TR.d.mts +1 -0
  47. package/dist/{control-BJypoZfu.mjs → control-DrorRbwa.mjs} +77 -3
  48. package/dist/control-DrorRbwa.mjs.map +1 -0
  49. package/dist/{control-Bv8UK63M-dBsEDbTP.mjs → control-KsXr4fYD-BWq94TJe.mjs} +5 -4
  50. package/dist/control-KsXr4fYD-BWq94TJe.mjs.map +1 -0
  51. package/dist/{data-type-DPhZLx30-DP2Kmnf5.mjs → data-type-CVNHtd6y-BFa_VnCb.mjs} +4 -3
  52. package/dist/data-type-CVNHtd6y-BFa_VnCb.mjs.map +1 -0
  53. package/dist/emission-XBYOUuHN.d.mts +2 -0
  54. package/dist/{emission-types-CH6r1DQ8-eg79TO6Y.d.mts → emission-types-sz0-pyyS-D3-ssRUu.d.mts} +4 -4
  55. package/dist/{emission-types-CH6r1DQ8-eg79TO6Y.d.mts.map → emission-types-sz0-pyyS-D3-ssRUu.d.mts.map} +1 -1
  56. package/dist/{enum-accessor-BUVBc6ZH.d.mts → enum-accessor-2OZgavDX.d.mts} +4 -2
  57. package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
  58. package/dist/{enum-accessor-CAlX-HOl.mjs → enum-accessor-B-A2wNok.mjs} +17 -4
  59. package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
  60. package/dist/errors.d.mts +5 -5
  61. package/dist/errors.mjs +4 -4
  62. package/dist/errors__control.d.mts +2 -2
  63. package/dist/errors__control.mjs +1 -1
  64. package/dist/errors__execution.d.mts +2 -2
  65. package/dist/errors__execution.mjs +2 -2
  66. package/dist/errors__migration.d.mts +1 -1
  67. package/dist/errors__migration.mjs +1 -1
  68. package/dist/{execution-B_f4fR5R.d.mts → execution-Dnl9Zc7s.d.mts} +4 -14
  69. package/dist/{execution-B_f4fR5R.d.mts.map → execution-Dnl9Zc7s.d.mts.map} +1 -1
  70. package/dist/{execution-okmamhD2.mjs → execution-YDOVHN67.mjs} +3 -15
  71. package/dist/{execution-okmamhD2.mjs.map → execution-YDOVHN67.mjs.map} +1 -1
  72. package/dist/{execution-DbU_RTsu.d.mts → execution-oZAqgZPd.d.mts} +2 -2
  73. package/dist/{execution-DbU_RTsu.d.mts.map → execution-oZAqgZPd.d.mts.map} +1 -1
  74. package/dist/{framework-authoring-CdKfPz3Y-BGocjz36.d.mts → framework-authoring-D3AsJskV-BALZR-J9.d.mts} +131 -10
  75. package/dist/framework-authoring-D3AsJskV-BALZR-J9.d.mts.map +1 -0
  76. package/dist/{framework-components-CDiuJNYP-CwszHrSy.d.mts → framework-components-CTibZus8-BK5QlxM-.d.mts} +5 -5
  77. package/dist/{framework-components-CDiuJNYP-CwszHrSy.d.mts.map → framework-components-CTibZus8-BK5QlxM-.d.mts.map} +1 -1
  78. package/dist/ids.d.mts +1 -1
  79. package/dist/{migration-BfUEEHWP.mjs → migration-BOOO5ZD-.mjs} +2 -2
  80. package/dist/{migration-BfUEEHWP.mjs.map → migration-BOOO5ZD-.mjs.map} +1 -1
  81. package/dist/{migration-BmIe8pwt.d.mts → migration-CHa1k8VR.d.mts} +2 -2
  82. package/dist/{migration-BmIe8pwt.d.mts.map → migration-CHa1k8VR.d.mts.map} +1 -1
  83. package/dist/{parse-CJtBvEYy-wRfXv1HQ.d.mts → parse-CJtBvEYy-CW8BvW5O.d.mts} +6 -6
  84. package/dist/{parse-CJtBvEYy-wRfXv1HQ.d.mts.map → parse-CJtBvEYy-CW8BvW5O.d.mts.map} +1 -1
  85. package/dist/psl-ast-DOJH1ZST.d.mts +2 -0
  86. package/dist/{psl-ast-DJhMWL6S-Bwyl-NrU.d.mts → psl-ast-JQykH4Uz-D6tMHdnz.d.mts} +3 -3
  87. package/dist/{psl-ast-DJhMWL6S-Bwyl-NrU.d.mts.map → psl-ast-JQykH4Uz-D6tMHdnz.d.mts.map} +1 -1
  88. package/dist/psl-parser.d.mts +19 -14
  89. package/dist/psl-parser.d.mts.map +1 -1
  90. package/dist/psl-parser.mjs +145 -116
  91. package/dist/psl-parser.mjs.map +1 -1
  92. package/dist/psl-parser__format.d.mts +1 -1
  93. package/dist/psl-parser__interpret.d.mts +6 -6
  94. package/dist/psl-parser__syntax.d.mts +1 -1
  95. package/dist/psl-printer.d.mts +4 -4
  96. package/dist/{runtime-CsMROQco.d.mts → runtime-BXPhK_oW.d.mts} +2 -2
  97. package/dist/{runtime-CsMROQco.d.mts.map → runtime-BXPhK_oW.d.mts.map} +1 -1
  98. package/dist/{written-value-CQt_C72W-aKFkxVmA.d.mts → temporal-presets-adW53vQH-DPdAe_Oe.d.mts} +4 -125
  99. package/dist/temporal-presets-adW53vQH-DPdAe_Oe.d.mts.map +1 -0
  100. package/dist/{types-BBb-tMcj.d.mts → types-GNXJ7xW2.d.mts} +16 -3
  101. package/dist/types-GNXJ7xW2.d.mts.map +1 -0
  102. package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts → types-import-spec-hkPsnreE-C-fa8812.d.mts} +3 -3
  103. package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts.map → types-import-spec-hkPsnreE-C-fa8812.d.mts.map} +1 -1
  104. package/dist/utils.d.mts +1 -1
  105. package/package.json +15 -15
  106. package/dist/authoring-BY3RNM--.d.mts.map +0 -1
  107. package/dist/authoring-D77CrCtb.mjs.map +0 -1
  108. package/dist/codec-BYGt3r-S.mjs +0 -28
  109. package/dist/codec-BYGt3r-S.mjs.map +0 -1
  110. package/dist/codec-CGFT5YKu.d.mts.map +0 -1
  111. package/dist/codec-types-B5_YzEwo-DVCRRWlg.d.mts.map +0 -1
  112. package/dist/control-BJypoZfu.mjs.map +0 -1
  113. package/dist/control-Bv8UK63M-dBsEDbTP.mjs.map +0 -1
  114. package/dist/control-D2f07K6R.d.mts.map +0 -1
  115. package/dist/control-GrJDRvbD.d.mts +0 -1
  116. package/dist/data-type-DPhZLx30-DP2Kmnf5.mjs.map +0 -1
  117. package/dist/emission-D9fjPyAg.d.mts +0 -2
  118. package/dist/enum-accessor-BUVBc6ZH.d.mts.map +0 -1
  119. package/dist/enum-accessor-CAlX-HOl.mjs.map +0 -1
  120. package/dist/framework-authoring-CdKfPz3Y-BGocjz36.d.mts.map +0 -1
  121. package/dist/psl-ast-BrpUfqBu.d.mts +0 -2
  122. package/dist/types-BBb-tMcj.d.mts.map +0 -1
  123. package/dist/written-value-CQt_C72W-aKFkxVmA.d.mts.map +0 -1
@@ -1,3 +1,3 @@
1
1
  import { n as isRuntimeError, r as runtimeError, t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
2
- import { $ as RuntimeStatementStats, A as GeneratorStability, B as QueryPlan, C as ClientActivityRegistry, Ct as defineAnnotation, D as DefineAnnotationOptions, Dt as startClientActivity, E as CrossFamilyMiddleware, Et as runtimeAborted, F as MutationDefaultsOp, G as RuntimeAbortedPhase, H as RelationKeys, I as MutationDefaultsOptions, J as RuntimeExecuteOptions, K as RuntimeCore, L as OperationKind, M as MetaBuilder, N as MutationDefaultGeneratorContributor, O as ExecuteInterceptResult, Ot as startTransactionActivity, P as MutationDefaults, Q as RuntimeMutationDefaultGenerator, R as ParamRefMutator, S as ClientActivityOptions, St as createStateStore, T as ClientActivityRun, Tt as raceAgainstAbort, U as RelationNamesOf, V as RUNTIME_ABORTED, W as ResultType, X as RuntimeLog, Y as RuntimeExecutor, Z as RuntimeMiddleware, _ as AsyncIterableResult, _t as checkAborted, a as ActivityContext, at as StatementActivityRun, b as ClientActivityEnded, bt as createContextBeneath, c as ActivityFinalizedResult, ct as TransactionActivity, d as ActivityParent, dt as TransactionEnded, et as Scalars, f as ActivityStateStore, ft as TransactionSettlement, g as AppliedMutationDefault, gt as assertMutationDefaultGeneratorsAvailable, h as AnnotationValue, ht as assertAnnotationsApplicable, i as ActivityChildSlot, it as StatementActivity, j as LaneMetaBuilder, k as ExecutionPlan, kt as streamStatement, l as ActivityInterceptResult, lt as TransactionActivityOptions, m as AnnotationSource, mt as applyMutationDefaults, n as ActivityBase, nt as ShapeSpec, o as ActivityContextFields, ot as StatementEnded, p as AnnotationHandle, pt as ValidAnnotations, q as RuntimeCoreOptions, r as ActivityChild, rt as StartActivity, s as ActivityEndedResult, st as StatementOptions, t as Activity, tt as Shape, u as ActivityObserver, ut as TransactionActivityRun, v as ClientActivity, vt as checkMiddlewareCompatibility, w as ClientActivityResult, wt as executeStatement, x as ClientActivityKind, xt as createMetaBuilder, y as ClientActivityEnd, yt as collectMutationDefaultGenerators, z as QueryInterceptResult } from "./runtime-CsMROQco.mjs";
2
+ import { $ as RuntimeStatementStats, A as GeneratorStability, B as QueryPlan, C as ClientActivityRegistry, Ct as defineAnnotation, D as DefineAnnotationOptions, Dt as startClientActivity, E as CrossFamilyMiddleware, Et as runtimeAborted, F as MutationDefaultsOp, G as RuntimeAbortedPhase, H as RelationKeys, I as MutationDefaultsOptions, J as RuntimeExecuteOptions, K as RuntimeCore, L as OperationKind, M as MetaBuilder, N as MutationDefaultGeneratorContributor, O as ExecuteInterceptResult, Ot as startTransactionActivity, P as MutationDefaults, Q as RuntimeMutationDefaultGenerator, R as ParamRefMutator, S as ClientActivityOptions, St as createStateStore, T as ClientActivityRun, Tt as raceAgainstAbort, U as RelationNamesOf, V as RUNTIME_ABORTED, W as ResultType, X as RuntimeLog, Y as RuntimeExecutor, Z as RuntimeMiddleware, _ as AsyncIterableResult, _t as checkAborted, a as ActivityContext, at as StatementActivityRun, b as ClientActivityEnded, bt as createContextBeneath, c as ActivityFinalizedResult, ct as TransactionActivity, d as ActivityParent, dt as TransactionEnded, et as Scalars, f as ActivityStateStore, ft as TransactionSettlement, g as AppliedMutationDefault, gt as assertMutationDefaultGeneratorsAvailable, h as AnnotationValue, ht as assertAnnotationsApplicable, i as ActivityChildSlot, it as StatementActivity, j as LaneMetaBuilder, k as ExecutionPlan, kt as streamStatement, l as ActivityInterceptResult, lt as TransactionActivityOptions, m as AnnotationSource, mt as applyMutationDefaults, n as ActivityBase, nt as ShapeSpec, o as ActivityContextFields, ot as StatementEnded, p as AnnotationHandle, pt as ValidAnnotations, q as RuntimeCoreOptions, r as ActivityChild, rt as StartActivity, s as ActivityEndedResult, st as StatementOptions, t as Activity, tt as Shape, u as ActivityObserver, ut as TransactionActivityRun, v as ClientActivity, vt as checkMiddlewareCompatibility, w as ClientActivityResult, wt as executeStatement, x as ClientActivityKind, xt as createMetaBuilder, y as ClientActivityEnd, yt as collectMutationDefaultGenerators, z as QueryInterceptResult } from "./runtime-BXPhK_oW.mjs";
3
3
  export { type Activity, type ActivityBase, type ActivityChild, type ActivityChildSlot, type ActivityContext, type ActivityContextFields, type ActivityEndedResult, type ActivityFinalizedResult, type ActivityInterceptResult, type ActivityObserver, type ActivityParent, type ActivityStateStore, type AnnotationHandle, type AnnotationSource, type AnnotationValue, type AppliedMutationDefault, AsyncIterableResult, type ClientActivity, type ClientActivityEnd, type ClientActivityEnded, type ClientActivityKind, type ClientActivityOptions, type ClientActivityRegistry, type ClientActivityResult, type ClientActivityRun, type CrossFamilyMiddleware, type DefineAnnotationOptions, type ExecuteInterceptResult, type ExecutionPlan, type GeneratorStability, type LaneMetaBuilder, type MetaBuilder, type MutationDefaultGeneratorContributor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type OperationKind, type ParamRefMutator, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, RuntimeCore, type RuntimeCoreOptions, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeLog, type RuntimeMiddleware, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type Scalars, type Shape, type ShapeSpec, type StartActivity, type StatementActivity, type StatementActivityRun, type StatementEnded, type StatementOptions, type TransactionActivity, type TransactionActivityOptions, type TransactionActivityRun, type TransactionEnded, type TransactionSettlement, type ValidAnnotations, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createContextBeneath, createMetaBuilder, createStateStore, defineAnnotation, executeStatement, isRuntimeError, raceAgainstAbort, runtimeAborted, runtimeError, startClientActivity, startTransactionActivity, streamStatement };
@@ -1,14 +1,14 @@
1
1
  import { t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
2
- import { p as CodecLookupWithDescriptors } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
3
- import { i as ControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
2
+ import { p as CodecLookupWithDescriptors } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
4
3
  import { r as Result } from "./result-BYCOANWy.mjs";
5
- import { n as DataTypeSupport } from "./written-value-CQt_C72W-aKFkxVmA.mjs";
6
- import "./authoring-BY3RNM--.mjs";
7
- import "./codec-CGFT5YKu.mjs";
4
+ import { F as DataTypeSupport } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
5
+ import { i as ControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
6
+ import "./authoring-BJgarhJI.mjs";
7
+ import "./codec-DkiEF2cQ.mjs";
8
8
  import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
9
- import { w as GeneratorFunctionRegistry } from "./framework-components-CDiuJNYP-CwszHrSy.mjs";
10
- import "./components-BdXloTpj.mjs";
11
- import { c as ControlAdapterDescriptor, d as ControlDriverDescriptor, f as ControlDriverInstance, h as ControlFamilyDescriptor, p as ControlExtensionDescriptor, r as AssembledAuthoringContributions, v as ControlTargetDescriptor } from "./control-D2f07K6R.mjs";
9
+ import { w as GeneratorFunctionRegistry } from "./framework-components-CTibZus8-BK5QlxM-.mjs";
10
+ import "./components-BbJVTEds.mjs";
11
+ import { c as ControlAdapterDescriptor, d as ControlDriverDescriptor, f as ControlDriverInstance, h as ControlFamilyDescriptor, p as ControlExtensionDescriptor, r as AssembledAuthoringContributions, v as ControlTargetDescriptor } from "./control-BKuRvAVY.mjs";
12
12
  //#region ../../../1-framework/1-core/config/dist/config-types.d.mts
13
13
  //#region src/contract-source-types.d.ts
14
14
  interface ContractSourceDiagnosticPosition {
@@ -207,4 +207,4 @@ declare function defineConfig<TFamilyId extends string = string, TTargetId exten
207
207
  declare function defaultContractOutputPath(contractPath: string): string;
208
208
  //#endregion
209
209
  export { defaultContractOutputPath as _, ContractSourceDiagnosticSpan as a, ContractSourceProvider as c, FormatterConfig as d, PrismaNextConfig as f, TypeScriptContractSourceProvider as g, PslParserOptions as h, ContractSourceDiagnosticPosition as i, ContractSourceProviderBase as l, PslGrammar as m, ContractSourceContext as n, ContractSourceDiagnostics as o, PslContractSourceProvider as p, ContractSourceDiagnostic as r, ContractSourceFormat as s, ContractConfig as t, DEFAULT_CONTRACT_SOURCE_DIR as u, defineConfig as v, normalizeContractConfig as y };
210
- //# sourceMappingURL=config-types-BXw8w6h9.d.mts.map
210
+ //# sourceMappingURL=config-types-DWa3fsKB.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-BXw8w6h9.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAOU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,WAAW;WACX,yBAAyB;;WAEzB,oBAAoB;;;;;;;WAOpB;WACA,cAAc;WACd;;;;WAIA,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
1
+ {"version":3,"file":"config-types-DWa3fsKB.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAOU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,WAAW;WACX,yBAAyB;;WAEzB,oBAAoB;;;;;;;WAOpB;WACA,cAAc;WACd;;;;WAIA,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
package/dist/config.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-BXw8w6h9.mjs";
1
+ import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-DWa3fsKB.mjs";
2
2
  export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
@@ -1,2 +1,2 @@
1
- import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-BXw8w6h9.mjs";
1
+ import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-DWa3fsKB.mjs";
2
2
  export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
@@ -1,9 +1,9 @@
1
1
  import { C as ContractToOneRelation, g as ContractModelBase, n as ApplicationDomain } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
- import { a as ParameterizedOutputTypesFunction } from "./types-BBb-tMcj.mjs";
3
- import { p as CodecLookupWithDescriptors } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
4
- import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
5
- import { a as EncodedEnumMember } from "./authoring-BY3RNM--.mjs";
6
- import { s as ColumnTypeDescriptor } from "./codec-CGFT5YKu.mjs";
2
+ import { o as ParameterizedOutputTypesFunction } from "./types-GNXJ7xW2.mjs";
3
+ import { p as CodecLookupWithDescriptors } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
4
+ import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
5
+ import { a as EncodedEnumMember } from "./authoring-BJgarhJI.mjs";
6
+ import { s as ColumnTypeDescriptor } from "./codec-DkiEF2cQ.mjs";
7
7
  //#region ../../../1-framework/2-authoring/contract/dist/index.d.mts
8
8
  //#region src/authoring-argument-types.d.ts
9
9
  type OptionalObjectArgumentKeys<Properties extends Record<string, AuthoringArgumentDescriptor>> = { readonly [K in keyof Properties]: Properties[K] extends {
@@ -2,8 +2,8 @@ import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
2
  import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
3
3
  import { t as assertDefined } from "./assertions-Dw1lZz_Q.mjs";
4
4
  import { T as mergeAuthoringNamespaces, m as instantiateAuthoringEntityType, y as isAuthoringFieldPresetDescriptor } from "./temporal-presets-BcDyr_hK-CFplJNGz.mjs";
5
- import { f as errorEnumCodecNotInPackStack } from "./control-Bv8UK63M-dBsEDbTP.mjs";
6
- import { d as encodeEnumMembers } from "./authoring-D77CrCtb.mjs";
5
+ import { f as errorEnumCodecNotInPackStack } from "./control-KsXr4fYD-BWq94TJe.mjs";
6
+ import { d as encodeEnumMembers } from "./authoring-so3aBYD8.mjs";
7
7
  //#region ../../../1-framework/2-authoring/contract/dist/index.mjs
8
8
  /**
9
9
  * Deep-merges any number of capability matrices into a single matrix.
@@ -123,7 +123,7 @@ function enumType(name, codec, ...members) {
123
123
  }
124
124
  /** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */
125
125
  function duplicateMemberError(enumName, duplicate) {
126
- return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.`, { meta: {
126
+ return contractError("CONTRACT.ENUM_INVALID", duplicate.earlierStored === void 0 ? `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.` : `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" store ${JSON.stringify(duplicate.earlierStored)} and ${JSON.stringify(duplicate.stored)}, which the database holds equal. Member values must be unique as their data type compares them.`, { meta: {
127
127
  enumName,
128
128
  members: [duplicate.earlier, duplicate.later],
129
129
  reason: "duplicate-member-value"
@@ -1 +1 @@
1
- {"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { encodeEnumMembers, instantiateAuthoringEntityType, isAuthoringFieldPresetDescriptor, mergeAuthoringNamespaces } from \"@internal/framework-components/authoring\";\nimport { errorEnumCodecNotInPackStack } from \"@internal/errors/control\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction describeValue(value) {\n\tif (typeof value === \"bigint\") return `${value}n`;\n\tif (typeof value === \"number\" && !Number.isFinite(value)) return String(value);\n\ttry {\n\t\treturn JSON.stringify(value) ?? String(value);\n\t} catch {\n\t\treturn String(value);\n\t}\n}\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst nameByValue = /* @__PURE__ */ new Map();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst earlier = nameByValue.get(m.value);\n\t\tif (earlier !== void 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): members \"${earlier}\" and \"${m.name}\" have the same value ${describeValue(m.value)}. Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmembers: [earlier, m.name],\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tnameByValue.set(m.value, m.name);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */\nfunction duplicateMemberError(enumName, duplicate) {\n\treturn contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.`, { meta: {\n\t\tenumName,\n\t\tmembers: [duplicate.earlier, duplicate.later],\n\t\treason: \"duplicate-member-value\"\n\t} });\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/enum-members.ts\nfunction enumMemberError(handle, problem, storedBy) {\n\tconst { enumName, codecId } = handle;\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): an enum cannot use the codec ${codecId}. ${problem.refusal}`, {\n\t\t\tfix: \"Type the enum with another codec.\",\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-not-for-enums\"\n\t\t\t}\n\t\t});\n\t\tcase \"codec-missing\": return errorEnumCodecNotInPackStack({ codecId });\n\t\tcase \"codec-refused-member\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\") member \"${problem.member}\" has a value its codec ${codecId} refuses: ${problem.reason}`, {\n\t\t\tfix: \"Give the member a value the codec takes, or type the enum with a codec that takes it.\",\n\t\t\tcause: problem.cause,\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tmember: problem.member,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-refused-member\"\n\t\t\t}\n\t\t});\n\t\tcase \"member-not-stored-as-written\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): member \"${problem.member}\" is written ${problem.written}, but ${storedBy} stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`, { meta: {\n\t\t\tenumName,\n\t\t\tmember: problem.member,\n\t\t\treason: \"member-not-stored-as-written\"\n\t\t} });\n\t\tcase \"duplicate-member-value\": return duplicateMemberError(enumName, problem);\n\t}\n}\n/**\n* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.\n*/\nfunction encodeEnumTypeMembers(handle, codecLookup, storedBy) {\n\tconst encoded = encodeEnumMembers(handle, codecLookup);\n\tif (encoded.ok) return encoded.value;\n\tconst [problem] = encoded.failure;\n\tassertDefined(problem, \"encodeEnumMembers fails with at least one problem\");\n\tthrow enumMemberError(handle, problem, storedBy);\n}\n//#endregion\n//#region src/field-preset-helpers.ts\nconst blockedSegments = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n]);\nfunction assertSafeAuthoringHelperKey(key, path) {\n\tif (blockedSegments.has(key)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring helper \"${[...path, key].join(\".\")}\". Helper path segments must not use \"${key}\".`, { meta: {\n\t\thelperPath: [...path, key].join(\".\"),\n\t\tsegment: key\n\t} });\n}\n/**\n* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.\n*/\nfunction createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {\n\tconst helpers = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tassertSafeAuthoringHelperKey(key, path);\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringFieldPresetDescriptor(value)) {\n\t\t\thelpers[key] = createLeafHelper({\n\t\t\t\thelperPath: currentPath.join(\".\"),\n\t\t\t\tdescriptor: value\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\thelpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);\n\t}\n\treturn helpers;\n}\nfunction isNonEmptyRecord(value) {\n\treturn typeof value === \"object\" && value !== null && Object.keys(value).length > 0;\n}\nconst descriptorKindByNamespace = {\n\ttype: {\n\t\tdescriptorKind: \"typeConstructor\",\n\t\tlabel: \"type\"\n\t},\n\tfield: {\n\t\tdescriptorKind: \"fieldPreset\",\n\t\tlabel: \"field\"\n\t},\n\tentityTypes: {\n\t\tdescriptorKind: \"entity\",\n\t\tlabel: \"entity\"\n\t}\n};\n/**\n* Merges one authoring namespace (`type`, `field` or `entityTypes`) across the family, target and extension packs, in order. A duplicate helper path across packs throws.\n*/\nfunction composePackAuthoringNamespace(components, key) {\n\tconst { descriptorKind, label } = descriptorKindByNamespace[key];\n\tconst merged = {};\n\tfor (const component of components) {\n\t\tconst namespace = component.authoring?.[key];\n\t\tif (isNonEmptyRecord(namespace)) mergeAuthoringNamespaces(merged, namespace, [], descriptorKind, label);\n\t}\n\treturn blindCast(merged);\n}\n//#endregion\n//#region src/relation-nullability.ts\n/**\n* The one rule for whether a to-one relation may be absent. The side that holds the reference\n* (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side\n* is always nullable, because nothing in storage guarantees the related record exists. A\n* declaration that disagrees is reported as a contradiction; `nullable` is always the derived\n* value.\n*/\nfunction resolveToOneRelationNullable(input) {\n\tconst nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;\n\tconst declared = input.declaredNullable;\n\tif (declared === void 0 || declared === nullable) return {\n\t\tnullable,\n\t\tcontradiction: void 0\n\t};\n\treturn {\n\t\tnullable,\n\t\tcontradiction: declared ? \"declared-optional\" : \"declared-required\"\n\t};\n}\nfunction isToOneReference(relation) {\n\treturn \"on\" in relation && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\");\n}\n/**\n* Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and\n* local-field nullability the lookup reports. A cross-space relation defaults to nullable.\n* Relations that already carry the flag are left as they are.\n*/\nfunction withDerivedToOneRelationNullability(domain, localFieldNullability) {\n\tconst namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));\n\treturn {\n\t\t...domain,\n\t\tnamespaces\n\t};\n}\nfunction withDerivedNamespace(namespaceId, namespace, localFieldNullability) {\n\tconst models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));\n\treturn {\n\t\t...namespace,\n\t\tmodels\n\t};\n}\nfunction withDerivedModel(namespaceId, modelName, model, localFieldNullability) {\n\tconst relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {\n\t\tif (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];\n\t\tconst nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({\n\t\t\tdeclaredNullable: void 0,\n\t\t\t...localFieldNullability({\n\t\t\t\tnamespaceId,\n\t\t\t\tmodelName,\n\t\t\t\tmodel,\n\t\t\t\trelation\n\t\t\t})\n\t\t}).nullable;\n\t\treturn [relationName, {\n\t\t\t...relation,\n\t\t\tnullable\n\t\t}];\n\t}));\n\treturn {\n\t\t...model,\n\t\trelations\n\t};\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, merge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QAAQ,aAAa,SAAS,gBAAgB,SAAS,SAAS,gBAAgB;AACxF;;;;;;AAMA,SAAS,oCAAoC,QAAQ,uBAAuB;CAC3E,MAAM,aAAa,OAAO,YAAY,OAAO,QAAQ,OAAO,UAAU,CAAC,CAAC,KAAK,CAAC,aAAa,eAAe,CAAC,aAAa,qBAAqB,aAAa,WAAW,qBAAqB,CAAC,CAAC,CAAC;CAC7L,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,SAAS,qBAAqB,aAAa,WAAW,uBAAuB;CAC5E,MAAM,SAAS,OAAO,YAAY,OAAO,QAAQ,UAAU,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,WAAW,CAAC,WAAW,iBAAiB,aAAa,WAAW,OAAO,qBAAqB,CAAC,CAAC,CAAC;CACnL,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,SAAS,iBAAiB,aAAa,WAAW,OAAO,uBAAuB;CAC/E,MAAM,YAAY,OAAO,YAAY,OAAO,QAAQ,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,cAAc;EAC5G,IAAI,CAAC,iBAAiB,QAAQ,KAAK,SAAS,aAAa,KAAK,GAAG,OAAO,CAAC,cAAc,QAAQ;EAC/F,MAAM,WAAW,SAAS,GAAG,UAAU,KAAK,IAAI,OAAO,6BAA6B;GACnF,kBAAkB,KAAK;GACvB,GAAG,sBAAsB;IACxB;IACA;IACA;IACA;GACD,CAAC;EACF,CAAC,CAAC,CAAC;EACH,OAAO,CAAC,cAAc;GACrB,GAAG;GACH;EACD,CAAC;CACF,CAAC,CAAC;CACF,OAAO;EACN,GAAG;EACH;CACD;AACD"}
1
+ {"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { encodeEnumMembers, instantiateAuthoringEntityType, isAuthoringFieldPresetDescriptor, mergeAuthoringNamespaces } from \"@internal/framework-components/authoring\";\nimport { errorEnumCodecNotInPackStack } from \"@internal/errors/control\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction describeValue(value) {\n\tif (typeof value === \"bigint\") return `${value}n`;\n\tif (typeof value === \"number\" && !Number.isFinite(value)) return String(value);\n\ttry {\n\t\treturn JSON.stringify(value) ?? String(value);\n\t} catch {\n\t\treturn String(value);\n\t}\n}\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst nameByValue = /* @__PURE__ */ new Map();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst earlier = nameByValue.get(m.value);\n\t\tif (earlier !== void 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): members \"${earlier}\" and \"${m.name}\" have the same value ${describeValue(m.value)}. Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmembers: [earlier, m.name],\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tnameByValue.set(m.value, m.name);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */\nfunction duplicateMemberError(enumName, duplicate) {\n\treturn contractError(\"CONTRACT.ENUM_INVALID\", duplicate.earlierStored === void 0 ? `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.` : `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" store ${JSON.stringify(duplicate.earlierStored)} and ${JSON.stringify(duplicate.stored)}, which the database holds equal. Member values must be unique as their data type compares them.`, { meta: {\n\t\tenumName,\n\t\tmembers: [duplicate.earlier, duplicate.later],\n\t\treason: \"duplicate-member-value\"\n\t} });\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/enum-members.ts\nfunction enumMemberError(handle, problem, storedBy) {\n\tconst { enumName, codecId } = handle;\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): an enum cannot use the codec ${codecId}. ${problem.refusal}`, {\n\t\t\tfix: \"Type the enum with another codec.\",\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-not-for-enums\"\n\t\t\t}\n\t\t});\n\t\tcase \"codec-missing\": return errorEnumCodecNotInPackStack({ codecId });\n\t\tcase \"codec-refused-member\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\") member \"${problem.member}\" has a value its codec ${codecId} refuses: ${problem.reason}`, {\n\t\t\tfix: \"Give the member a value the codec takes, or type the enum with a codec that takes it.\",\n\t\t\tcause: problem.cause,\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tmember: problem.member,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-refused-member\"\n\t\t\t}\n\t\t});\n\t\tcase \"member-not-stored-as-written\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): member \"${problem.member}\" is written ${problem.written}, but ${storedBy} stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`, { meta: {\n\t\t\tenumName,\n\t\t\tmember: problem.member,\n\t\t\treason: \"member-not-stored-as-written\"\n\t\t} });\n\t\tcase \"duplicate-member-value\": return duplicateMemberError(enumName, problem);\n\t}\n}\n/**\n* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.\n*/\nfunction encodeEnumTypeMembers(handle, codecLookup, storedBy) {\n\tconst encoded = encodeEnumMembers(handle, codecLookup);\n\tif (encoded.ok) return encoded.value;\n\tconst [problem] = encoded.failure;\n\tassertDefined(problem, \"encodeEnumMembers fails with at least one problem\");\n\tthrow enumMemberError(handle, problem, storedBy);\n}\n//#endregion\n//#region src/field-preset-helpers.ts\nconst blockedSegments = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n]);\nfunction assertSafeAuthoringHelperKey(key, path) {\n\tif (blockedSegments.has(key)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring helper \"${[...path, key].join(\".\")}\". Helper path segments must not use \"${key}\".`, { meta: {\n\t\thelperPath: [...path, key].join(\".\"),\n\t\tsegment: key\n\t} });\n}\n/**\n* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.\n*/\nfunction createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {\n\tconst helpers = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tassertSafeAuthoringHelperKey(key, path);\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringFieldPresetDescriptor(value)) {\n\t\t\thelpers[key] = createLeafHelper({\n\t\t\t\thelperPath: currentPath.join(\".\"),\n\t\t\t\tdescriptor: value\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\thelpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);\n\t}\n\treturn helpers;\n}\nfunction isNonEmptyRecord(value) {\n\treturn typeof value === \"object\" && value !== null && Object.keys(value).length > 0;\n}\nconst descriptorKindByNamespace = {\n\ttype: {\n\t\tdescriptorKind: \"typeConstructor\",\n\t\tlabel: \"type\"\n\t},\n\tfield: {\n\t\tdescriptorKind: \"fieldPreset\",\n\t\tlabel: \"field\"\n\t},\n\tentityTypes: {\n\t\tdescriptorKind: \"entity\",\n\t\tlabel: \"entity\"\n\t}\n};\n/**\n* Merges one authoring namespace (`type`, `field` or `entityTypes`) across the family, target and extension packs, in order. A duplicate helper path across packs throws.\n*/\nfunction composePackAuthoringNamespace(components, key) {\n\tconst { descriptorKind, label } = descriptorKindByNamespace[key];\n\tconst merged = {};\n\tfor (const component of components) {\n\t\tconst namespace = component.authoring?.[key];\n\t\tif (isNonEmptyRecord(namespace)) mergeAuthoringNamespaces(merged, namespace, [], descriptorKind, label);\n\t}\n\treturn blindCast(merged);\n}\n//#endregion\n//#region src/relation-nullability.ts\n/**\n* The one rule for whether a to-one relation may be absent. The side that holds the reference\n* (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side\n* is always nullable, because nothing in storage guarantees the related record exists. A\n* declaration that disagrees is reported as a contradiction; `nullable` is always the derived\n* value.\n*/\nfunction resolveToOneRelationNullable(input) {\n\tconst nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;\n\tconst declared = input.declaredNullable;\n\tif (declared === void 0 || declared === nullable) return {\n\t\tnullable,\n\t\tcontradiction: void 0\n\t};\n\treturn {\n\t\tnullable,\n\t\tcontradiction: declared ? \"declared-optional\" : \"declared-required\"\n\t};\n}\nfunction isToOneReference(relation) {\n\treturn \"on\" in relation && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\");\n}\n/**\n* Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and\n* local-field nullability the lookup reports. A cross-space relation defaults to nullable.\n* Relations that already carry the flag are left as they are.\n*/\nfunction withDerivedToOneRelationNullability(domain, localFieldNullability) {\n\tconst namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));\n\treturn {\n\t\t...domain,\n\t\tnamespaces\n\t};\n}\nfunction withDerivedNamespace(namespaceId, namespace, localFieldNullability) {\n\tconst models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));\n\treturn {\n\t\t...namespace,\n\t\tmodels\n\t};\n}\nfunction withDerivedModel(namespaceId, modelName, model, localFieldNullability) {\n\tconst relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {\n\t\tif (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];\n\t\tconst nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({\n\t\t\tdeclaredNullable: void 0,\n\t\t\t...localFieldNullability({\n\t\t\t\tnamespaceId,\n\t\t\t\tmodelName,\n\t\t\t\tmodel,\n\t\t\t\trelation\n\t\t\t})\n\t\t}).nullable;\n\t\treturn [relationName, {\n\t\t\t...relation,\n\t\t\tnullable\n\t\t}];\n\t}));\n\treturn {\n\t\t...model,\n\t\trelations\n\t};\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAS,wBAAwB,GAAG,SAAS;CAC5C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,UAAU,SAAS;EAC7B,IAAI,WAAW,KAAK,GAAG;EACvB,KAAK,MAAM,CAAC,WAAW,iBAAiB,OAAO,QAAQ,MAAM,GAAG;GAC/D,MAAM,WAAW,OAAO;GACxB,OAAO,aAAa,WAAW;IAC9B,GAAG;IACH,GAAG;GACJ,IAAI,EAAE,GAAG,aAAa;EACvB;CACD;CACA,OAAO;AACR;;;;;;;AASA,SAAS,iCAAiC,WAAW,SAAS,OAAO,CAAC,GAAG;CACxE,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,cAAc,CAAC,GAAG,MAAM,GAAG;EACjC,IAAI,uBAAuB,KAAK,GAAG;GAClC,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CACnL,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,SAAS,iBAAiB,aAAa,WAAW,OAAO,uBAAuB;CAC/E,MAAM,YAAY,OAAO,YAAY,OAAO,QAAQ,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,cAAc;EAC5G,IAAI,CAAC,iBAAiB,QAAQ,KAAK,SAAS,aAAa,KAAK,GAAG,OAAO,CAAC,cAAc,QAAQ;EAC/F,MAAM,WAAW,SAAS,GAAG,UAAU,KAAK,IAAI,OAAO,6BAA6B;GACnF,kBAAkB,KAAK;GACvB,GAAG,sBAAsB;IACxB;IACA;IACA;IACA;GACD,CAAC;EACF,CAAC,CAAC,CAAC;EACH,OAAO,CAAC,cAAc;GACrB,GAAG;GACH;EACD,CAAC;CACF,CAAC,CAAC;CACF,OAAO;EACN,GAAG;EACH;CACD;AACD"}
@@ -2,14 +2,14 @@ import { $ as UnionFieldType, A as EmbedRelationKeys, B as JsonValue, C as Contr
2
2
  import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, o as governingControlPolicy, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
3
3
  import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
4
4
  import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BNr1glea-BLuR-phK.mjs";
5
- import { a as ParameterizedOutputTypesFunction, c as ValueTypeSide, i as ParameterizedOutputType, l as domainModelsAtDefaultNamespace, n as ContractExecutionSectionSchema, o as StoredValueType, r as FieldTypesFromDomain, s as ValueObjectTypesFromDomain, t as ApplyParameterizedOutputTypes, u as domainValueObjectsAtDefaultNamespace } from "./types-BBb-tMcj.mjs";
5
+ import { a as ParameterizedOutputType, c as ValueObjectTypesFromDomain, d as domainValueObjectsAtDefaultNamespace, i as FieldTypesFromDomain, l as ValueTypeSide, n as ContractExecutionSectionSchema, o as ParameterizedOutputTypesFunction, r as EnumMemberValueType, s as StoredValueType, t as ApplyParameterizedOutputTypes, u as domainModelsAtDefaultNamespace } from "./types-GNXJ7xW2.mjs";
6
6
  import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
7
7
  import { i as computeStorageHash, n as computeExecutionHash, r as computeProfileHash, t as buildExecutionSection } from "./hashing-D-DHz0zl.mjs";
8
8
  import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
9
9
  import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-Dlz0iwnK.mjs";
10
10
  import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-D1QAeOh5.mjs";
11
- import { a as EnumMemberCodecFor, c as NamespaceEnumAccessors, d as buildNamespacedEnums, f as createEnumAccessor, i as EnumMemberCodec, l as NamespacedEnums, n as EnumAccessor, o as EnumMemberNames, r as EnumEntriesToAccessors, s as EnumValues, t as ContractEnumAccessor, u as buildEnumsMapForNamespace } from "./enum-accessor-BUVBc6ZH.mjs";
11
+ import { a as EnumMemberCodecFor, c as NamespaceEnumAccessors, d as buildNamespacedEnums, f as createEnumAccessor, i as EnumMemberCodec, l as NamespacedEnums, n as EnumAccessor, o as EnumMemberNames, r as EnumEntriesToAccessors, s as EnumValues, t as ContractEnumAccessor, u as buildEnumsMapForNamespace } from "./enum-accessor-2OZgavDX.mjs";
12
12
  import { a as compareByNameProperty, c as createStorageSort, i as PathSegment$1, l as matchesPathPattern, n as PathPattern, o as compareCodeUnits, r as PathSegment, s as createPreserveEmptyPredicate, t as NamedArraySortTarget } from "./hashing-utils-DiGHKd3b.mjs";
13
13
  import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-B5kmlBFB.mjs";
14
14
  import { t as validateContractOnce } from "./validate-once-gfCOHsDh.mjs";
15
- export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type ApplyParameterizedOutputTypes, type Brand, type CanonicalizeContractOptions, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractEnumAccessor, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, ContractValidationError, type ContractValidationPhase, type ContractValueObject, type ContractValueObjectDefinitions, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type DomainContractShape, type DomainModelShape, type EmbedRelationKeys, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberCodec, type EnumMemberCodecFor, type EnumMemberNames, type EnumValues, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type FieldTypesFromDomain, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamedArraySortTarget, type NamespaceEnumAccessors, type NamespaceId, type NamespacedEnums, type ParameterizedOutputType, type ParameterizedOutputTypesFunction, type PathPattern, type PlanMeta, type PathSegment as PreserveEmptyPathSegment, type PreserveEmptyPredicate, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type SerializeContract, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StorageSort, type PathSegment$1 as StorageSortPathSegment, type StoredValueType, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueObjectTypesFromDomain, type ValueSetRef, type ValueTypeSide, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildExecutionSection, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, compareCodeUnits, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain, validateContractOnce };
15
+ export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type ApplyParameterizedOutputTypes, type Brand, type CanonicalizeContractOptions, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractEnumAccessor, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, ContractValidationError, type ContractValidationPhase, type ContractValueObject, type ContractValueObjectDefinitions, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type DomainContractShape, type DomainModelShape, type EmbedRelationKeys, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberCodec, type EnumMemberCodecFor, type EnumMemberNames, type EnumMemberValueType, type EnumValues, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type FieldTypesFromDomain, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamedArraySortTarget, type NamespaceEnumAccessors, type NamespaceId, type NamespacedEnums, type ParameterizedOutputType, type ParameterizedOutputTypesFunction, type PathPattern, type PlanMeta, type PathSegment as PreserveEmptyPathSegment, type PreserveEmptyPredicate, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type SerializeContract, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StorageSort, type PathSegment$1 as StorageSortPathSegment, type StoredValueType, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueObjectTypesFromDomain, type ValueSetRef, type ValueTypeSide, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildExecutionSection, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, compareCodeUnits, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain, validateContractOnce };
package/dist/contract.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-CsYHsfTF.mjs";
2
2
  import { t as ContractValidationError } from "./contract-validation-error-CAnTGhkt-DSnujRaK.mjs";
3
3
  import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-BEZbN38y.mjs";
4
- import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-CAlX-HOl.mjs";
4
+ import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-B-A2wNok.mjs";
5
5
  import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
6
6
  import { a as matchesPathPattern, i as createStorageSort, n as compareCodeUnits, r as createPreserveEmptyPredicate, t as compareByNameProperty } from "./canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs";
7
7
  import { a as computeProfileHash, i as computeExecutionHash, n as canonicalizeContract, o as computeStorageHash, r as canonicalizeContractToObject, t as buildExecutionSection } from "./hashing-CLRfNAxh.mjs";
@@ -1,2 +1,2 @@
1
- import { a as EnumMemberCodecFor, c as NamespaceEnumAccessors, d as buildNamespacedEnums, f as createEnumAccessor, i as EnumMemberCodec, l as NamespacedEnums, n as EnumAccessor, o as EnumMemberNames, r as EnumEntriesToAccessors, s as EnumValues, t as ContractEnumAccessor, u as buildEnumsMapForNamespace } from "./enum-accessor-BUVBc6ZH.mjs";
1
+ import { a as EnumMemberCodecFor, c as NamespaceEnumAccessors, d as buildNamespacedEnums, f as createEnumAccessor, i as EnumMemberCodec, l as NamespacedEnums, n as EnumAccessor, o as EnumMemberNames, r as EnumEntriesToAccessors, s as EnumValues, t as ContractEnumAccessor, u as buildEnumsMapForNamespace } from "./enum-accessor-2OZgavDX.mjs";
2
2
  export { type ContractEnumAccessor, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberCodec, type EnumMemberCodecFor, type EnumMemberNames, type EnumValues, type NamespaceEnumAccessors, type NamespacedEnums, buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
@@ -1,2 +1,2 @@
1
- import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-CAlX-HOl.mjs";
1
+ import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-B-A2wNok.mjs";
2
2
  export { buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
@@ -2,5 +2,5 @@ import { $ as UnionFieldType, A as EmbedRelationKeys, B as JsonValue, C as Contr
2
2
  import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, o as governingControlPolicy, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
3
3
  import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
4
4
  import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BNr1glea-BLuR-phK.mjs";
5
- import { a as ParameterizedOutputTypesFunction, c as ValueTypeSide, i as ParameterizedOutputType, l as domainModelsAtDefaultNamespace, n as ContractExecutionSectionSchema, o as StoredValueType, r as FieldTypesFromDomain, s as ValueObjectTypesFromDomain, t as ApplyParameterizedOutputTypes, u as domainValueObjectsAtDefaultNamespace } from "./types-BBb-tMcj.mjs";
6
- export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type ApplyParameterizedOutputTypes, type Brand, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, type ContractValueObject, type ContractValueObjectDefinitions, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type EmbedRelationKeys, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type FieldTypesFromDomain, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamespaceId, type ParameterizedOutputType, type ParameterizedOutputTypesFunction, type PlanMeta, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StoredValueType, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueObjectTypesFromDomain, type ValueSetRef, type ValueTypeSide, asNamespaceId, coreHash, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, profileHash, resolveDomainModel, soleDomainNamespaceId };
5
+ import { a as ParameterizedOutputType, c as ValueObjectTypesFromDomain, d as domainValueObjectsAtDefaultNamespace, i as FieldTypesFromDomain, l as ValueTypeSide, n as ContractExecutionSectionSchema, o as ParameterizedOutputTypesFunction, r as EnumMemberValueType, s as StoredValueType, t as ApplyParameterizedOutputTypes, u as domainModelsAtDefaultNamespace } from "./types-GNXJ7xW2.mjs";
6
+ export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type ApplyParameterizedOutputTypes, type Brand, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, type ContractValueObject, type ContractValueObjectDefinitions, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type EmbedRelationKeys, type EnumMemberValueType, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type FieldTypesFromDomain, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamespaceId, type ParameterizedOutputType, type ParameterizedOutputTypesFunction, type PlanMeta, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StoredValueType, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueObjectTypesFromDomain, type ValueSetRef, type ValueTypeSide, asNamespaceId, coreHash, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, profileHash, resolveDomainModel, soleDomainNamespaceId };
@@ -1,6 +1,6 @@
1
- import { Ot as ResolvedMigrationStatement } from "./control-D2f07K6R.mjs";
2
1
  import { a as StructuredError, i as NextAction, r as Diagnostic } from "./structured-error-Cc7AIRsp.mjs";
3
- //#region ../../../1-framework/1-core/errors/dist/control-C_zs63JQ.d.mts
2
+ import { kt as ResolvedMigrationStatement } from "./control-BKuRvAVY.mjs";
3
+ //#region ../../../1-framework/1-core/errors/dist/control-B5ezUWD2.d.mts
4
4
  //#region src/control.d.ts
5
5
  /**
6
6
  * CLI error envelope for output formatting.
@@ -189,7 +189,9 @@ declare function errorContractMissingExtensions(options: {
189
189
  declare function errorMigrationPlanningFailed(options: {
190
190
  readonly conflicts: readonly CliErrorConflict[];
191
191
  readonly why?: string;
192
- }): CliStructuredError;
192
+ }): CliStructuredError & {
193
+ readonly why: string;
194
+ };
193
195
  /**
194
196
  * Target does not support migrations (missing createPlanner/createRunner).
195
197
  */
@@ -268,4 +270,4 @@ declare function errorUnexpected(message: string, options?: {
268
270
  }): CliStructuredError;
269
271
  //#endregion
270
272
  export { errorOutputFormatMutex as C, errorUnexpected as E, errorMigrationPlanningFailed as S, errorTargetMigrationNotSupported as T, errorInvalidOutputFormat as _, errorConfigEvaluationFailed as a, errorMigrationCliInvalidConfigArg as b, errorConfigVersionMarkerMissing as c, errorContractValidationFailed as d, errorDatabaseConnectionRequired as f, errorFileNotFound as g, errorFamilyReadMarkerSqlRequired as h, CliStructuredError as i, errorContractConfigMissing as l, errorEnumCodecNotInPackStack as m, CliErrorConflict as n, errorConfigFileNotFound as o, errorDriverRequired as p, CliErrorEnvelope as r, errorConfigValidation as s, CheckedMigrationConfig as t, errorContractMissingExtensions as u, errorJsonFormatNotSupported as v, errorQueryRunnerFactoryRequired as w, errorMigrationCliUnknownFlag as x, errorMigrationCliConfigNotFound as y };
271
- //# sourceMappingURL=control-C_zs63JQ-BFg3u8U5.d.mts.map
273
+ //# sourceMappingURL=control-B5ezUWD2-DSW4M09S.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-C_zs63JQ-BFg3u8U5.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-C_zs63JQ.d.mts"],"mappings":";;;;;;;;;;;;;;;;UAeU;WACC;WACA;WACA;WACA;WACA;WACA;WACA,sBAAsB;WACtB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;WAEA,mBAAmB;;WAEnB,WAAW,SAAS;aAClB;;;;;;;;;;;;;;cAcC,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA,uBAAuB;WACvB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA,uBAAuB;aACvB,uBAAuB;aACvB;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;;;;EAQX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,4BAA4B,gCAAgC;WAClE;WACA;IACP;;;;;;iBAMa,gCAAgC,sBAAsB;;;;iBAItD,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;WAEF;;WAEA,OAAO;IACd;;;;iBAIa,kBAAkB,kBAAkB;WAC1C;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;iBAIa,4BAA4B;WAClC;WACA;WACA;IACP;;;;iBAIa,oBAAoB;WAC1B;IACP;;;;iBAIa,+BAA+B;WACrC;WACA;IACP;;;;iBAIa,6BAA6B;WACnC,oBAAoB;WACpB;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;UAEM;WACC;WACA;WACA;;;;;iBAKM,gCAAgC;WACtC;WACA,kBAAkB;IACzB;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;WACA;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;WACA,OAAO;WACP;IACP"}
1
+ {"version":3,"file":"control-B5ezUWD2-DSW4M09S.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-B5ezUWD2.d.mts"],"mappings":";;;;;;;;;;;;;;;;UAeU;WACC;WACA;WACA;WACA;WACA;WACA;WACA,sBAAsB;WACtB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;WAEA,mBAAmB;;WAEnB,WAAW,SAAS;aAClB;;;;;;;;;;;;;;cAcC,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA,uBAAuB;WACvB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA,uBAAuB;aACvB,uBAAuB;aACvB;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;;;;EAQX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,4BAA4B,gCAAgC;WAClE;WACA;IACP;;;;;;iBAMa,gCAAgC,sBAAsB;;;;iBAItD,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;WAEF;;WAEA,OAAO;IACd;;;;iBAIa,kBAAkB,kBAAkB;WAC1C;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;iBAIa,4BAA4B;WAClC;WACA;WACA;IACP;;;;iBAIa,oBAAoB;WAC1B;IACP;;;;iBAIa,+BAA+B;WACrC;WACA;IACP;;;;iBAIa,6BAA6B;WACnC,oBAAoB;WACpB;IACP;WACO;;;;;iBAKM,iCAAiC;WACvC;IACP;;UAEM;WACC;WACA;WACA;;;;;iBAKM,gCAAgC;WACtC;WACA,kBAAkB;IACzB;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;WACA;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;WACA,OAAO;WACP;IACP"}
@@ -1,15 +1,16 @@
1
1
  import { T as ContractWithDomain, U as NamespaceId, V as LedgerEntryRecord, m as ContractMarkerRecord } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
2
2
  import { i as ControlPolicy, t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
3
- import { _ as DataType, h as CodecRegistry, t as AnyCodecDescriptor, v as DataTypeId, y as DataTypeLookup } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
4
- import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, N as DataTypeAuthoringEntry, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, r as AuthoringAttributeSpecContributions, u as AuthoringEntityTypeNamespace } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
5
- import { t as AssembledControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
3
+ import { _ as DataType, h as CodecRegistry, t as AnyCodecDescriptor, v as DataTypeId, y as DataTypeLookup } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
6
4
  import { r as Result } from "./result-BYCOANWy.mjs";
7
- import { n as DataTypeSupport } from "./written-value-CQt_C72W-aKFkxVmA.mjs";
8
- import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-B2nK2jwW-DkF7t1NL.mjs";
5
+ import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, F as DataTypeSupport, P as DataTypeAuthoringEntry, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, r as AuthoringAttributeSpecContributions, u as AuthoringEntityTypeNamespace } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
6
+ import { t as AssembledControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
7
+ import "./temporal-presets-adW53vQH-DPdAe_Oe.mjs";
8
+ import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-hkPsnreE-C-fa8812.mjs";
9
9
  import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
10
- import { M as TargetDescriptor, N as TargetInstance, _ as FamilyInstance, g as FamilyDescriptor, j as TargetBoundComponentDescriptor, l as DriverDescriptor, m as ExtensionInstance, n as AdapterInstance, o as ComponentMetadata, p as ExtensionDescriptor, t as AdapterDescriptor, u as DriverInstance, w as GeneratorFunctionRegistry } from "./framework-components-CDiuJNYP-CwszHrSy.mjs";
11
- import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-CH6r1DQ8-eg79TO6Y.mjs";
12
- import { f as PslDocumentAst } from "./psl-ast-DJhMWL6S-Bwyl-NrU.mjs";
10
+ import { M as TargetDescriptor, N as TargetInstance, _ as FamilyInstance, g as FamilyDescriptor, j as TargetBoundComponentDescriptor, l as DriverDescriptor, m as ExtensionInstance, n as AdapterInstance, o as ComponentMetadata, p as ExtensionDescriptor, t as AdapterDescriptor, u as DriverInstance, w as GeneratorFunctionRegistry } from "./framework-components-CTibZus8-BK5QlxM-.mjs";
11
+ import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-sz0-pyyS-D3-ssRUu.mjs";
12
+ import { f as PslDocumentAst } from "./psl-ast-JQykH4Uz-D6tMHdnz.mjs";
13
+ import { a as StructuredError } from "./structured-error-Cc7AIRsp.mjs";
13
14
  import { t as ImportRequirement } from "./index-MU-ksXsh.mjs";
14
15
  import { n as JsonObject } from "./json-Dkqr3say.mjs";
15
16
  import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
@@ -836,18 +837,13 @@ interface FailedCheck {
836
837
  /** The check, as the operation describes it. */
837
838
  readonly description: string;
838
839
  }
839
- /**
840
- * Failure details for migration runner execution.
841
- */
842
- interface MigrationRunnerFailure {
843
- /** Error code for the failure. */
844
- readonly code: string;
845
- /** Human-readable summary of the failure. */
846
- readonly summary: string;
847
- /** Optional explanation of why the failure occurred. */
848
- readonly why?: string;
849
- /** Optional metadata for debugging and UX (e.g., schema issues, SQL state). */
850
- readonly meta?: Record<string, unknown>;
840
+ /** A failed migration run: a structured error whose `message` is the summary. */
841
+ interface MigrationRunnerFailure extends StructuredError {
842
+ readonly code: `MIGRATION.${string}`;
843
+ readonly meta: MigrationRunnerFailureMeta;
844
+ }
845
+ /** The facts of a failed migration run. Each fact appears once. */
846
+ interface MigrationRunnerFailureMeta {
851
847
  /**
852
848
  * Identifier of the space whose plan caused the rollback when
853
849
  * {@link MigrationRunner.execute} processes multiple spaces.
@@ -864,7 +860,22 @@ interface MigrationRunnerFailure {
864
860
  readonly rowsWithoutValue?: readonly RowsWithoutValue[];
865
861
  /** The differences the schema check after apply found, when that check failed. */
866
862
  readonly schemaIssues?: readonly SchemaDiffIssue[];
867
- }
863
+ /** Further facts for the code, such as `sqlState` or the marker hashes. */
864
+ readonly [key: string]: unknown;
865
+ }
866
+ declare function migrationRunnerFailure<TCode extends MigrationRunnerFailure['code']>(code: TCode, message: string, options?: {
867
+ readonly why?: string | undefined;
868
+ readonly meta?: MigrationRunnerFailureMeta;
869
+ readonly cause?: unknown;
870
+ }): MigrationRunnerFailure & {
871
+ readonly code: TCode;
872
+ };
873
+ /** The same failure, attributed to the space whose plan failed. */
874
+ declare function withFailingSpace<TCode extends MigrationRunnerFailure['code']>(failure: MigrationRunnerFailure & {
875
+ readonly code: TCode;
876
+ }, failingSpace: string): MigrationRunnerFailure & {
877
+ readonly code: TCode;
878
+ };
868
879
  /** A field that is to become required while existing rows have no value for it. */
869
880
  interface RowsWithoutValue {
870
881
  /** The field, when the destination contract names the storage that lacks the value. */
@@ -1735,6 +1746,16 @@ declare function hasSchemaSubjectClassifier<TFamilyId extends string, TSchemaIR>
1735
1746
  */
1736
1747
  declare function orderIssuesByDependencies<TNode extends DiffableNode = DiffableNode>(issues: readonly SchemaDiffIssue<TNode>[]): readonly SchemaDiffIssue<TNode>[];
1737
1748
  //#endregion
1749
+ //#region src/control/runner-failure-why.d.ts
1750
+ /** What a diff issue says: its outcome, its path, and its explanation when it has one. */
1751
+ declare function issueLabel(issue: SchemaDiffIssue): string;
1752
+ /** The issues of a failed schema check, as one sentence after `opening`. */
1753
+ declare function schemaIssuesWhy(opening: string, issues: readonly SchemaDiffIssue[]): string;
1754
+ /** The why of a failed schema check after apply, listing its issues when it found any. */
1755
+ declare function schemaCheckWhy(issues: readonly SchemaDiffIssue[]): string;
1756
+ /** What a failed check before an operation means: which check failed, and what that says of the database. */
1757
+ declare function failedPrecheckWhy(check: FailedCheck): string;
1758
+ //#endregion
1738
1759
  //#region src/control/schema-verifier.d.ts
1739
1760
  /**
1740
1761
  * Framework SPI for verifying that an introspected schema matches the
@@ -1806,5 +1827,5 @@ type VerifierIssueCategory = 'declaredMissing' | 'declaredIncompatible' | 'value
1806
1827
  */
1807
1828
  declare function dispositionForCategory(controlPolicy: ControlPolicy, category: VerifierIssueCategory): VerifierOutcome;
1808
1829
  //#endregion
1809
- export { MigrationRunner as $, VERIFY_CODE_SCHEMA_FAILURE as $t, FailedTypeChange as A, isRenameStatement as An, ResolvedRenameStatement as At, MigrationOperationClass as B, sameMarkerHashes as Bn, SchemaTreeVisitor as Bt, DiffSubjectGranularity as C, fieldStatementText as Cn, PslContractInferCapable as Ct, FailedCast as D, hasPslContractInfer as Dn, ResolvedFieldRenameStatement as Dt, ExpectationFailureReason as E, hasPslContractBuild as En, ResolvedFieldConvertStatement as Et, MigratableTargetDescriptor as F, migrationSubjectKey as Fn, SchemaNodeRef as Ft, MigrationPlanOperation as G, SchemaViewNodeKind as Gt, MigrationOperationSubject as H, SchemaVerifyOptions as Ht, MigrationAccessChange as I, modelDisplayName as In, SchemaOwnership as It, MigrationPlanner as J, SpaceSigned as Jt, MigrationPlanSubjects as K, SpaceMarkerConflict as Kt, MigrationDataLoss as L, modelStatementText as Ln, SchemaSubjectClassifierCapable as Lt, FieldCoordinateJson as M, issueOutcome as Mn, SchemaDiff as Mt, IntrospectSchemaResult as N, migrationStatementJson as Nn, SchemaDiffIssue as Nt, FailedCheck as O, hasSchemaSubjectClassifier as On, ResolvedMigrationStatement as Ot, MarkerHashes as P, migrationSubjectJson as Pn, SchemaEntityCoordinate as Pt, MigrationPlannerSuccessResult as Q, VERIFY_CODE_MARKER_MISSING as Qt, MigrationDataLossKind as R, orderIssuesByDependencies as Rn, SchemaTreeNode as Rt, DataTypeInvariantInput as S, extractQueryOperationTypeImports as Sn, PslContractDocument as St, EmitContractResult as T, hasOperationPreview as Tn, ResolvedFieldBackfillStatement as Tt, MigrationPackage as U, SchemaVerifyResult as Ut, MigrationOperationPolicy as V, storageHashHex as Vn, SchemaVerifier as Vt, MigrationPlan as W, SchemaViewCapable as Wt, MigrationPlannerFailureResult as X, TargetMigrationsCapability as Xt, MigrationPlannerConflict as Y, SpaceToSign as Yt, MigrationPlannerResult as Z, VERIFY_CODE_HASH_MISMATCH as Zt, ControlStack as _, enforceDataTypeInvariants as _n, OperationPreview as _t, ContractSerializer as a, VerifyDatabaseSchemaResult as an, MigrationRunnerSuccessValue as at, CoreSchemaView as b, extractComponentIds as bn, PlanOrigin as bt, ControlAdapterDescriptor as c, assembleControlMutationDefaults as cn, MigrationSubject as ct, ControlDriverDescriptor as d, contractSnapshotJsonSpecifier as dn, MismatchCause as dt, VERIFY_CODE_TARGET_MISMATCH as en, MigrationRunnerExecutionChecks as et, ControlDriverInstance as f, contractSnapshotTypesSpecifier as fn, MismatchExplanation as ft, ControlFamilyInstance as g, dispositionForCategory as gn, OperationContext as gt, ControlFamilyDescriptor as h, diffSchemas as hn, OpFactoryCall as ht, CONTRACT_SNAPSHOTS_DIRNAME as i, VerifyDatabaseResult as in, MigrationRunnerResult as it, FieldCoordinate as j, isStorageHashHex as jn, RowsWithoutValue as jt, FailedConversion as k, hasSchemaView as kn, ResolvedModelRenameStatement as kt, ControlAdapterInstance as l, assertUniqueCodecOwner as ln, MigrationSubjectJson as lt, ControlExtensionInstance as m, describeMigrationStatement as mn, ModelCoordinateJson as mt, AppliedMigrationStatement as n, VerifierIssueCategory as nn, MigrationRunnerPerSpaceOptions as nt, ContractSpace as o, assembleAuthoringContributions as on, MigrationScaffoldContext as ot, ControlExtensionDescriptor as p, createControlStack as pn, ModelCoordinate as pt, MigrationPlanWithAuthoringSurface as q, SpaceSignature as qt, AssembledAuthoringContributions as r, VerifierOutcome as rn, MigrationRunnerPerSpaceSuccessValue as rt, ContractSpaceHeadRef as s, assembleAuthoringDataTypes as sn, MigrationStatementJson as st, APP_SPACE_ID as t, VerificationStatus as tn, MigrationRunnerFailure as tt, ControlDriverConnectOptions as u, buildExtensionLoadOrder as un, MigrationTemporaryValue as ut, ControlTargetDescriptor as v, extractCodecLookup as vn, OperationPreviewCapable as vt, DiffableNode as w, hasMigrations as wn, PslSourceSettings as wt, CreateControlStackInput as x, extractParameterizedOutputTypeImports as xn, PslContractBuildCapable as xt, ControlTargetInstance as y, extractCodecTypeImports as yn, OperationPreviewStatement as yt, MigrationMetadata as z, planOriginOf as zn, SchemaTreeNodeOptions as zt };
1810
- //# sourceMappingURL=control-D2f07K6R.d.mts.map
1830
+ export { MigrationRunner as $, VERIFY_CODE_MARKER_MISSING as $t, FailedTypeChange as A, hasSchemaSubjectClassifier as An, ResolvedModelRenameStatement as At, MigrationOperationClass as B, modelDisplayName as Bn, SchemaTreeNodeOptions as Bt, DiffSubjectGranularity as C, extractQueryOperationTypeImports as Cn, PslContractDocument as Ct, FailedCast as D, hasOperationPreview as Dn, ResolvedFieldConvertStatement as Dt, ExpectationFailureReason as E, hasMigrations as En, ResolvedFieldBackfillStatement as Et, MigratableTargetDescriptor as F, issueOutcome as Fn, SchemaEntityCoordinate as Ft, MigrationPlanOperation as G, schemaCheckWhy as Gn, SchemaViewCapable as Gt, MigrationOperationSubject as H, orderIssuesByDependencies as Hn, SchemaVerifier as Ht, MigrationAccessChange as I, migrationRunnerFailure as In, SchemaNodeRef as It, MigrationPlanner as J, withFailingSpace as Jn, SpaceSignature as Jt, MigrationPlanSubjects as K, schemaIssuesWhy as Kn, SchemaViewNodeKind as Kt, MigrationDataLoss as L, migrationStatementJson as Ln, SchemaOwnership as Lt, FieldCoordinateJson as M, isRenameStatement as Mn, RowsWithoutValue as Mt, IntrospectSchemaResult as N, isStorageHashHex as Nn, SchemaDiff as Nt, FailedCheck as O, hasPslContractBuild as On, ResolvedFieldRenameStatement as Ot, MarkerHashes as P, issueLabel as Pn, SchemaDiffIssue as Pt, MigrationPlannerSuccessResult as Q, VERIFY_CODE_HASH_MISMATCH as Qt, MigrationDataLossKind as R, migrationSubjectJson as Rn, SchemaSubjectClassifierCapable as Rt, DataTypeInvariantInput as S, extractParameterizedOutputTypeImports as Sn, PslContractBuildCapable as St, EmitContractResult as T, fieldStatementText as Tn, PslSourceSettings as Tt, MigrationPackage as U, planOriginOf as Un, SchemaVerifyOptions as Ut, MigrationOperationPolicy as V, modelStatementText as Vn, SchemaTreeVisitor as Vt, MigrationPlan as W, sameMarkerHashes as Wn, SchemaVerifyResult as Wt, MigrationPlannerFailureResult as X, SpaceToSign as Xt, MigrationPlannerConflict as Y, SpaceSigned as Yt, MigrationPlannerResult as Z, TargetMigrationsCapability as Zt, ControlStack as _, dispositionForCategory as _n, OperationContext as _t, ContractSerializer as a, VerifyDatabaseResult as an, MigrationRunnerResult as at, CoreSchemaView as b, extractCodecTypeImports as bn, OperationPreviewStatement as bt, ControlAdapterDescriptor as c, assembleAuthoringDataTypes as cn, MigrationStatementJson as ct, ControlDriverDescriptor as d, buildExtensionLoadOrder as dn, MigrationTemporaryValue as dt, VERIFY_CODE_SCHEMA_FAILURE as en, MigrationRunnerExecutionChecks as et, ControlDriverInstance as f, contractSnapshotJsonSpecifier as fn, MismatchCause as ft, ControlFamilyInstance as g, diffSchemas as gn, OpFactoryCall as gt, ControlFamilyDescriptor as h, describeMigrationStatement as hn, ModelCoordinateJson as ht, CONTRACT_SNAPSHOTS_DIRNAME as i, VerifierOutcome as in, MigrationRunnerPerSpaceSuccessValue as it, FieldCoordinate as j, hasSchemaView as jn, ResolvedRenameStatement as jt, FailedConversion as k, hasPslContractInfer as kn, ResolvedMigrationStatement as kt, ControlAdapterInstance as l, assembleControlMutationDefaults as ln, MigrationSubject as lt, ControlExtensionInstance as m, createControlStack as mn, ModelCoordinate as mt, AppliedMigrationStatement as n, VerificationStatus as nn, MigrationRunnerFailureMeta as nt, ContractSpace as o, VerifyDatabaseSchemaResult as on, MigrationRunnerSuccessValue as ot, ControlExtensionDescriptor as p, contractSnapshotTypesSpecifier as pn, MismatchExplanation as pt, MigrationPlanWithAuthoringSurface as q, storageHashHex as qn, SpaceMarkerConflict as qt, AssembledAuthoringContributions as r, VerifierIssueCategory as rn, MigrationRunnerPerSpaceOptions as rt, ContractSpaceHeadRef as s, assembleAuthoringContributions as sn, MigrationScaffoldContext as st, APP_SPACE_ID as t, VERIFY_CODE_TARGET_MISMATCH as tn, MigrationRunnerFailure as tt, ControlDriverConnectOptions as u, assertUniqueCodecOwner as un, MigrationSubjectJson as ut, ControlTargetDescriptor as v, enforceDataTypeInvariants as vn, OperationPreview as vt, DiffableNode as w, failedPrecheckWhy as wn, PslContractInferCapable as wt, CreateControlStackInput as x, extractComponentIds as xn, PlanOrigin as xt, ControlTargetInstance as y, extractCodecLookup as yn, OperationPreviewCapable as yt, MigrationMetadata as z, migrationSubjectKey as zn, SchemaTreeNode as zt };
1831
+ //# sourceMappingURL=control-BKuRvAVY.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-BKuRvAVY.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgCU,mBAAmB;;;;;;;;;;;;EAY3B,oBAAoB,UAAU,YAAY,WAAW,gBAAgB;;;;;;;;;;EAUrE,kBAAkB,UAAU,YAAY;;;;;;;;WAQ/B,sBAAsB;;;;;;;;WAQtB,cAAc;;;;;;;;;;;;;;;WAed;aACE,sBAAsB;aACtB,cAAc;;;;;cAKb;;iBAEG,iBAAiB;;iBAEjB,eAAe;;iBAEf,8BAA8B,6BAA6B;;iBAE3D,+BAA+B,6BAA6B;;;;;;;;;;KAUxE;WACM;WACA;;UAED,gBAAgB,cAAc,eAAe;;WAE5C;;WAEA,WAAW;;WAEX,SAAS;;;;;;;;WAQT;;WAEA,cAAc;;;;;;;KAOpB;UACK;;WAEC;WACA,OAAO;;;;;;;;;;;;;;;;KAgBb;;;;;;;iBAOY,aAAa,OAAO,kBAAkB;;;;;;;;;;;;;;;UAe7C;WACC;WACA;;;;;;;WAOA,qBAAqB;EAC9B,UAAU,OAAO;;;;;;EAMjB,iBAAiB,QAAQ,2BAA2B;EACpD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;;iBAExB,oBAAoB,0BAA0B,WAAW,UAAU,sBAAsB,WAAW,aAAa,YAAY,sBAAsB,WAAW,aAAa;;;;;;UAMlL;EACR,mBAAmB,qBAAqB,2BAA2B;;iBAEpD,oBAAoB,0BAA0B,WAAW,UAAU,sBAAsB,WAAW,aAAa,YAAY,sBAAsB,WAAW,aAAa;;;;;;;;;;;;;KAavL;;;;;;;;;;;;;;;;;UAiBK;EACR,2BAA2B,OAAO,kBAAkB;EACpD,mBAAmB,OAAO;;iBAEX,2BAA2B,0BAA0B,WAAW,UAAU,sBAAsB,WAAW,aAAa,YAAY,sBAAsB,WAAW,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BlL,0BAA0B,cAAc,eAAe,cAAc,iBAAiB,gBAAgB,oBAAoB,gBAAgB;;;;iBAI1I,WAAW,OAAO;;iBAElB,gBAAgB,iBAAiB,iBAAiB;;iBAElD,eAAe,iBAAiB;;iBAEhC,kBAAkB,OAAO;;;;;;;;;;;;;;;;;;UAkBhC,eAAe,WAAW;EAClC,aAAa,SAAS,oBAAoB,WAAW,WAAW;;;;;;;;UAQxD,oBAAoB,WAAW;WAC9B,UAAU;WACV,QAAQ;;;;;;;;UAQT;WACC;WACA,iBAAiB;;;;KAIvB;KACA,kBAAkB;;;;;;;;;;;;;;;;;KAiBlB;;;;;;;;;;iBAUY,uBAAuB,eAAe,eAAe,UAAU,wBAAwB"}
@@ -0,0 +1 @@
1
+ import "./control-B5ezUWD2-DSW4M09S.mjs";
@@ -1,8 +1,9 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
2
  import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
3
+ import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
3
4
  import { r as isInternalError, t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
4
5
  import { n as runtimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
5
- import { _ as objectSchemaKeys, o as assembleDataTypes } from "./data-type-DPhZLx30-DP2Kmnf5.mjs";
6
+ import { _ as objectSchemaKeys, o as assembleDataTypes } from "./data-type-CVNHtd6y-BFa_VnCb.mjs";
6
7
  import { n as codecDescriptorMissing, r as codecForRef } from "./resolve-codec-qqMjZrmn-Cok8elAo.mjs";
7
8
  import { a as isAggregateDescriptor, c as mergeCapabilityMatrices, i as assembleGeneratorRegistrations, n as aggregateDescriptorKey, r as assembleGeneratorFunctions } from "./generator-functions-CXbQfvYu-BIFU1Ryx.mjs";
8
9
  import { C as isAuthoringTypeConstructorDescriptor, T as mergeAuthoringNamespaces, _ as isAuthoringArgRef, a as assertNoCrossRegistryCollisions, l as collectContributedDescriptorPaths, o as assertResolvableTypeConstructorTemplates, u as collectScalarTypeConstructors, w as mergeAuthoringAttributeSpecs, y as isAuthoringFieldPresetDescriptor } from "./temporal-presets-BcDyr_hK-CFplJNGz.mjs";
@@ -48,6 +49,31 @@ function hasSchemaSubjectClassifier(instance) {
48
49
  function planOriginOf(contract) {
49
50
  return contract === null ? null : { storageHash: contract.storage.storageHash };
50
51
  }
52
+ function migrationRunnerFailure(code, message, options) {
53
+ const meta = options?.meta ?? {};
54
+ const error = structuredError(code, message, {
55
+ ...ifDefined("why", options?.why),
56
+ meta,
57
+ ...ifDefined("cause", options?.cause)
58
+ });
59
+ return Object.assign(error, {
60
+ code,
61
+ meta
62
+ });
63
+ }
64
+ /** The same failure, attributed to the space whose plan failed. */
65
+ function withFailingSpace(failure, failingSpace) {
66
+ const attributed = migrationRunnerFailure(failure.code, failure.message, {
67
+ why: failure.why,
68
+ meta: {
69
+ ...failure.meta,
70
+ failingSpace
71
+ },
72
+ ...ifDefined("cause", failure.cause)
73
+ });
74
+ if (failure.stack !== void 0) attributed.stack = failure.stack;
75
+ return attributed;
76
+ }
51
77
  const VERIFY_CODE_MARKER_MISSING = "CONTRACT.MARKER_MISSING";
52
78
  const VERIFY_CODE_HASH_MISMATCH = "CONTRACT.MARKER_MISMATCH";
53
79
  const VERIFY_CODE_TARGET_MISMATCH = "CONTRACT.TARGET_MISMATCH";
@@ -898,6 +924,54 @@ var SchemaDiff = class SchemaDiff {
898
924
  return new SchemaDiff(this.issues.filter(keep));
899
925
  }
900
926
  };
927
+ const OUTCOME_LABEL = {
928
+ "not-found": "missing",
929
+ "not-expected": "extra",
930
+ "not-equal": "mismatch"
931
+ };
932
+ /** What a diff issue says: its outcome, its path, and its explanation when it has one. */
933
+ function issueLabel(issue) {
934
+ const label = `${OUTCOME_LABEL[issueOutcome(issue)]}: ${issue.path.join("/")}`;
935
+ return issue.explanation === void 0 ? label : `${label}. ${issue.explanation.text}`;
936
+ }
937
+ /** The issues of a failed schema check, as one sentence after `opening`. */
938
+ function schemaIssuesWhy(opening, issues) {
939
+ return `${opening}: ${issues.map((issue) => issueLabel(issue).replace(/\.$/, "")).join("; ")}.`;
940
+ }
941
+ /** The why of a failed schema check after apply, listing its issues when it found any. */
942
+ function schemaCheckWhy(issues) {
943
+ return issues.length === 0 ? "The resulting database schema does not satisfy the destination contract." : schemaIssuesWhy("The schema check after apply found", issues);
944
+ }
945
+ const ABSENT = /^(?:ensure )?(.+?) (?:does not (?:already )?exist|is missing)( on .+)?$/;
946
+ const ABSENT_FROM = /^(?:ensure )?(.+?) is absent from (.+)$/;
947
+ const PRESENT = /^(?:ensure )?(.+?) exists( on .+)?$/;
948
+ /**
949
+ * Reads a check description, as the targets write it into an operation's precheck, for whether it expects an object absent or present: `ensure index "x" does not exist`, `ensure column "y" does not exist on "item"`, `collection users does not exist`, `ensure column "x" is missing` and `ensure value "b" is absent from enum type "Mood"` expect it absent; `ensure table "x" exists` and `index exists on users` present. Any other description, `undefined`.
950
+ */
951
+ function readCheckDescription(description) {
952
+ const absent = ABSENT.exec(description);
953
+ if (absent?.[1] !== void 0) return {
954
+ expects: "absent",
955
+ object: `${absent[1]}${absent[2] ?? ""}`
956
+ };
957
+ const absentFrom = ABSENT_FROM.exec(description);
958
+ if (absentFrom?.[1] !== void 0 && absentFrom[2] !== void 0) return {
959
+ expects: "absent",
960
+ object: `${absentFrom[1]} in ${absentFrom[2]}`
961
+ };
962
+ const present = PRESENT.exec(description);
963
+ if (present?.[1] !== void 0) return {
964
+ expects: "present",
965
+ object: `${present[1]}${present[2] ?? ""}`
966
+ };
967
+ }
968
+ /** What a failed check before an operation means: which check failed, and what that says of the database. */
969
+ function failedPrecheckWhy(check) {
970
+ const checked = `Before operation ${check.operationId} runs, it checks: ${check.description}.`;
971
+ const reading = readCheckDescription(check.description);
972
+ if (reading === void 0) return `${checked} That check failed on this database.`;
973
+ return reading.expects === "absent" ? `${checked} That check failed: the database already has ${reading.object}.` : `${checked} That check failed: the database has no ${reading.object}.`;
974
+ }
901
975
  /**
902
976
  * Grades a target-neutral issue category against a control policy.
903
977
  *
@@ -916,6 +990,6 @@ function dispositionForCategory(controlPolicy, category) {
916
990
  return "fail";
917
991
  }
918
992
  //#endregion
919
- export { hasPslContractInfer as A, modelStatementText as B, extractComponentIds as C, hasMigrations as D, fieldStatementText as E, issueOutcome as F, planOriginOf as H, migrationStatementJson as I, migrationSubjectJson as L, hasSchemaView as M, isRenameStatement as N, hasOperationPreview as O, isStorageHashHex as P, migrationSubjectKey as R, extractCodecTypeImports as S, extractQueryOperationTypeImports as T, sameMarkerHashes as U, orderIssuesByDependencies as V, storageHashHex as W, describeMigrationStatement as _, VERIFY_CODE_HASH_MISMATCH as a, enforceDataTypeInvariants as b, VERIFY_CODE_TARGET_MISMATCH as c, assembleControlMutationDefaults as d, assertUniqueCodecOwner as f, createControlStack as g, contractSnapshotTypesSpecifier as h, SchemaTreeNode as i, hasSchemaSubjectClassifier as j, hasPslContractBuild as k, assembleAuthoringContributions as l, contractSnapshotJsonSpecifier as m, CONTRACT_SNAPSHOTS_DIRNAME as n, VERIFY_CODE_MARKER_MISSING as o, buildExtensionLoadOrder as p, SchemaDiff as r, VERIFY_CODE_SCHEMA_FAILURE as s, APP_SPACE_ID as t, assembleAuthoringDataTypes as u, diffSchemas as v, extractParameterizedOutputTypeImports as w, extractCodecLookup as x, dispositionForCategory as y, modelDisplayName as z };
993
+ export { hasPslContractBuild as A, migrationSubjectJson as B, extractComponentIds as C, fieldStatementText as D, failedPrecheckWhy as E, isStorageHashHex as F, planOriginOf as G, modelDisplayName as H, issueLabel as I, schemaIssuesWhy as J, sameMarkerHashes as K, issueOutcome as L, hasSchemaSubjectClassifier as M, hasSchemaView as N, hasMigrations as O, isRenameStatement as P, migrationRunnerFailure as R, extractCodecTypeImports as S, extractQueryOperationTypeImports as T, modelStatementText as U, migrationSubjectKey as V, orderIssuesByDependencies as W, withFailingSpace as X, storageHashHex as Y, describeMigrationStatement as _, VERIFY_CODE_HASH_MISMATCH as a, enforceDataTypeInvariants as b, VERIFY_CODE_TARGET_MISMATCH as c, assembleControlMutationDefaults as d, assertUniqueCodecOwner as f, createControlStack as g, contractSnapshotTypesSpecifier as h, SchemaTreeNode as i, hasPslContractInfer as j, hasOperationPreview as k, assembleAuthoringContributions as l, contractSnapshotJsonSpecifier as m, CONTRACT_SNAPSHOTS_DIRNAME as n, VERIFY_CODE_MARKER_MISSING as o, buildExtensionLoadOrder as p, schemaCheckWhy as q, SchemaDiff as r, VERIFY_CODE_SCHEMA_FAILURE as s, APP_SPACE_ID as t, assembleAuthoringDataTypes as u, diffSchemas as v, extractParameterizedOutputTypeImports as w, extractCodecLookup as x, dispositionForCategory as y, migrationStatementJson as z };
920
994
 
921
- //# sourceMappingURL=control-BJypoZfu.mjs.map
995
+ //# sourceMappingURL=control-DrorRbwa.mjs.map