@prisma/orm-framework 8.0.0-rc.1-dev.46 → 8.0.0-rc.10-dev.1

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 (205) hide show
  1. package/README.md +1 -5
  2. package/dist/{apply-specifier-default-control-policy-CAxiXxKg.d.mts → apply-specifier-default-control-policy-C2Njpc_G.d.mts} +2 -2
  3. package/dist/apply-specifier-default-control-policy-C2Njpc_G.d.mts.map +1 -0
  4. package/dist/{assertions-Cz-GWH8P.mjs → assertions-Dw1lZz_Q.mjs} +2 -2
  5. package/dist/{assertions-Cz-GWH8P.mjs.map → assertions-Dw1lZz_Q.mjs.map} +1 -1
  6. package/dist/authoring-D2ngo2MB.d.mts +1 -0
  7. package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts → canonicalization-BAvRuZ2i-IwsqxGme.d.mts} +3 -3
  8. package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts.map → canonicalization-BAvRuZ2i-IwsqxGme.d.mts.map} +1 -1
  9. package/dist/{capabilities-BCEONw9w-C-lo3rF8.mjs → capabilities-BzwH_XMZ-CkgWaxF9.mjs} +3 -3
  10. package/dist/{capabilities-BCEONw9w-C-lo3rF8.mjs.map → capabilities-BzwH_XMZ-CkgWaxF9.mjs.map} +1 -1
  11. package/dist/{codec-Cd0QcxAx.mjs → codec-DWYH-Ra4.mjs} +3 -3
  12. package/dist/{codec-Cd0QcxAx.mjs.map → codec-DWYH-Ra4.mjs.map} +1 -1
  13. package/dist/{codec-Ce07W3Mz.d.mts → codec-DxAIshoO.d.mts} +6 -9
  14. package/dist/{codec-Ce07W3Mz.d.mts.map → codec-DxAIshoO.d.mts.map} +1 -1
  15. package/dist/{codec-types-D6VRj2RE-BLElXc-O.d.mts → codec-types-nVMtogur-CYBdUQUH.d.mts} +4 -4
  16. package/dist/{codec-types-D6VRj2RE-BLElXc-O.d.mts.map → codec-types-nVMtogur-CYBdUQUH.d.mts.map} +1 -1
  17. package/dist/{codec-types-DcNvNeY1-BO6kUiH0.mjs → codec-types-smcGzGq6-BohNffPc.mjs} +3 -3
  18. package/dist/{codec-types-DcNvNeY1-BO6kUiH0.mjs.map → codec-types-smcGzGq6-BohNffPc.mjs.map} +1 -1
  19. package/dist/{components-CGA_WwEG.d.mts → components-CQrZAxZu.d.mts} +4 -4
  20. package/dist/{components-CGA_WwEG.d.mts.map → components-CQrZAxZu.d.mts.map} +1 -1
  21. package/dist/{components-dZRz3T5y.mjs → components-CnV-6irM.mjs} +2 -2
  22. package/dist/{components-dZRz3T5y.mjs.map → components-CnV-6irM.mjs.map} +1 -1
  23. package/dist/components.d.mts +16 -16
  24. package/dist/components.mjs +10 -10
  25. package/dist/components__authoring.d.mts +3 -3
  26. package/dist/components__authoring.mjs +1 -1
  27. package/dist/components__codec.d.mts +2 -2
  28. package/dist/components__codec.mjs +3 -3
  29. package/dist/components__components.d.mts +3 -3
  30. package/dist/components__components.mjs +2 -2
  31. package/dist/components__control.d.mts +2 -2
  32. package/dist/components__control.mjs +1 -1
  33. package/dist/components__emission.d.mts +3 -3
  34. package/dist/components__execution.d.mts +1 -1
  35. package/dist/components__ir.d.mts +1 -1
  36. package/dist/components__ir.mjs +1 -1
  37. package/dist/components__psl-ast.d.mts +4 -4
  38. package/dist/components__runtime.d.mts +2 -2
  39. package/dist/components__runtime.mjs +2 -2
  40. package/dist/{config-types-CW4PDwMC.d.mts → config-types-CeduUYkY.d.mts} +12 -25
  41. package/dist/{config-types-CW4PDwMC.d.mts.map → config-types-CeduUYkY.d.mts.map} +1 -1
  42. package/dist/config-types-D_UCRNbm.mjs +38 -0
  43. package/dist/config-types-D_UCRNbm.mjs.map +1 -0
  44. package/dist/config.d.mts +2 -2
  45. package/dist/config.mjs +2 -2
  46. package/dist/config__config-types.d.mts +2 -2
  47. package/dist/config__config-types.mjs +2 -2
  48. package/dist/contract-authoring.d.mts +39 -4
  49. package/dist/contract-authoring.d.mts.map +1 -1
  50. package/dist/contract-authoring.mjs +66 -3
  51. package/dist/contract-authoring.mjs.map +1 -1
  52. package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts → contract-types-Bje5yT4f-0D1Z41Lq.d.mts} +7 -7
  53. package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts.map → contract-types-Bje5yT4f-0D1Z41Lq.d.mts.map} +1 -1
  54. package/dist/contract.d.mts +11 -11
  55. package/dist/contract.mjs +3 -3
  56. package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
  57. package/dist/contract__default-namespace.mjs +1 -1
  58. package/dist/contract__enum-accessor.d.mts +1 -1
  59. package/dist/contract__hashing-utils.d.mts +1 -1
  60. package/dist/contract__hashing.d.mts +2 -2
  61. package/dist/contract__resolve-domain-model.d.mts +1 -1
  62. package/dist/contract__types.d.mts +5 -5
  63. package/dist/contract__types.mjs +2 -2
  64. package/dist/contract__validate-domain.d.mts +1 -1
  65. package/dist/contract__validate-domain.mjs +1 -1
  66. package/dist/{control-DLEm6u5m.mjs → control-DR0zF1b7.mjs} +12 -5
  67. package/dist/control-DR0zF1b7.mjs.map +1 -0
  68. package/dist/{control-BD96JZi8-NUhO5Kkw.mjs → control-ZdvxNTVU-cVV8u7aQ.mjs} +7 -7
  69. package/dist/control-ZdvxNTVU-cVV8u7aQ.mjs.map +1 -0
  70. package/dist/{control-BF8qzdnM.d.mts → control-eH2MIHqA.d.mts} +12 -11
  71. package/dist/{control-BF8qzdnM.d.mts.map → control-eH2MIHqA.d.mts.map} +1 -1
  72. package/dist/{control-ql9N9u4f-r3Vv41kZ.d.mts → control-ql9N9u4f-D5sGnPR-.d.mts} +2 -2
  73. package/dist/{control-ql9N9u4f-r3Vv41kZ.d.mts.map → control-ql9N9u4f-D5sGnPR-.d.mts.map} +1 -1
  74. package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs → default-namespace-D4vCwkXg-BEZbN38y.mjs} +2 -2
  75. package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs.map → default-namespace-D4vCwkXg-BEZbN38y.mjs.map} +1 -1
  76. package/dist/{dist-Dqbo77p7.mjs → dist-DUlexZHp.mjs} +3 -3
  77. package/dist/{dist-Dqbo77p7.mjs.map → dist-DUlexZHp.mjs.map} +1 -1
  78. package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts → domain-envelope-CENjHN4U-BIIt9bl4.d.mts} +17 -5
  79. package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map → domain-envelope-CENjHN4U-BIIt9bl4.d.mts.map} +1 -1
  80. package/dist/emission-BWD6Z6w9.d.mts +2 -0
  81. package/dist/{emission-types-DLXP34Ki-CFms3VrX.d.mts → emission-types-BoSJNKfQ-B_19ILPP.d.mts} +10 -6
  82. package/dist/emission-types-BoSJNKfQ-B_19ILPP.d.mts.map +1 -0
  83. package/dist/{enum-accessor-PH5vjghI.d.mts → enum-accessor-PSFq-BB1.d.mts} +3 -3
  84. package/dist/{enum-accessor-PH5vjghI.d.mts.map → enum-accessor-PSFq-BB1.d.mts.map} +1 -1
  85. package/dist/errors.d.mts +3 -3
  86. package/dist/errors.mjs +3 -3
  87. package/dist/errors__control.d.mts +1 -1
  88. package/dist/errors__control.mjs +1 -1
  89. package/dist/errors__execution.d.mts +1 -1
  90. package/dist/errors__execution.mjs +1 -1
  91. package/dist/errors__migration.d.mts +1 -1
  92. package/dist/errors__migration.mjs +1 -1
  93. package/dist/{execution-CSnQT8EX.d.mts → execution-BDzJVN0t.d.mts} +2 -2
  94. package/dist/{execution-CSnQT8EX.d.mts.map → execution-BDzJVN0t.d.mts.map} +1 -1
  95. package/dist/{execution-Crk6IfTs.mjs → execution-BEVehm0I.mjs} +8 -8
  96. package/dist/execution-BEVehm0I.mjs.map +1 -0
  97. package/dist/{execution-Cyl2dXxX.d.mts → execution-BpT2YjbZ.d.mts} +4 -4
  98. package/dist/{execution-Cyl2dXxX.d.mts.map → execution-BpT2YjbZ.d.mts.map} +1 -1
  99. package/dist/{framework-authoring-BhctBwih-DQ_6noDM.d.mts → framework-authoring-BYgPL2X6-DMKO0Z_k.d.mts} +17 -12
  100. package/dist/framework-authoring-BYgPL2X6-DMKO0Z_k.d.mts.map +1 -0
  101. package/dist/{framework-authoring-CDEvlouU-DKklu-fL.mjs → framework-authoring-BvxZnsPY-DlD1nwU5.mjs} +34 -19
  102. package/dist/framework-authoring-BvxZnsPY-DlD1nwU5.mjs.map +1 -0
  103. package/dist/{framework-components-hZ2tO-KH-CdRXBOYd.d.mts → framework-components-CDppKaT_-DcMHokB8.d.mts} +9 -6
  104. package/dist/{framework-components-hZ2tO-KH-CdRXBOYd.d.mts.map → framework-components-CDppKaT_-DcMHokB8.d.mts.map} +1 -1
  105. package/dist/{hashing-CccSPELN.d.mts → hashing-BTx0s6Zw.d.mts} +3 -3
  106. package/dist/{hashing-CccSPELN.d.mts.map → hashing-BTx0s6Zw.d.mts.map} +1 -1
  107. package/dist/{hashing-utils-qKu59RSC.d.mts → hashing-utils-Bh9PVd4J.d.mts} +2 -2
  108. package/dist/{hashing-utils-qKu59RSC.d.mts.map → hashing-utils-Bh9PVd4J.d.mts.map} +1 -1
  109. package/dist/ids.d.mts +2 -2
  110. package/dist/ids.mjs +1 -1
  111. package/dist/ids__runtime.d.mts +1 -1
  112. package/dist/ids__runtime.mjs +1 -1
  113. package/dist/{internal-error-kK8QvlDE.d.mts → internal-error-2fJ9fcZX.d.mts} +2 -2
  114. package/dist/{internal-error-kK8QvlDE.d.mts.map → internal-error-2fJ9fcZX.d.mts.map} +1 -1
  115. package/dist/{internal-error-BIc-ehme-ouBQPoEL.mjs → internal-error-ChGYPVpq-DhUD05u0.mjs} +3 -3
  116. package/dist/internal-error-ChGYPVpq-DhUD05u0.mjs.map +1 -0
  117. package/dist/{ir-BvE7L9FK.d.mts → ir-BGaPKem0.d.mts} +2 -2
  118. package/dist/{ir-BvE7L9FK.d.mts.map → ir-BGaPKem0.d.mts.map} +1 -1
  119. package/dist/{ir-ChmSSAhX.mjs → ir-CV5d1FJ0.mjs} +2 -2
  120. package/dist/{ir-ChmSSAhX.mjs.map → ir-CV5d1FJ0.mjs.map} +1 -1
  121. package/dist/{migration-BvrgDZXw.d.mts → migration-Bdp-ucGZ.d.mts} +2 -2
  122. package/dist/{migration-BvrgDZXw.d.mts.map → migration-Bdp-ucGZ.d.mts.map} +1 -1
  123. package/dist/{migration-C57VKLUY.mjs → migration-S40Rgr7K.mjs} +3 -3
  124. package/dist/migration-S40Rgr7K.mjs.map +1 -0
  125. package/dist/operations.mjs +1 -1
  126. package/dist/{parse-0ZJjj_2N-DhQpSVmQ.d.mts → parse-B5xYL_oV-aGFgfM8N.d.mts} +5 -5
  127. package/dist/{parse-0ZJjj_2N-DhQpSVmQ.d.mts.map → parse-B5xYL_oV-aGFgfM8N.d.mts.map} +1 -1
  128. package/dist/{parse-GbZGfMUj-BFSrD2AN.mjs → parse-GbZGfMUj-C9tHGn-6.mjs} +2 -2
  129. package/dist/{parse-GbZGfMUj-BFSrD2AN.mjs.map → parse-GbZGfMUj-C9tHGn-6.mjs.map} +1 -1
  130. package/dist/{psl-ast-BXZoFQBk.d.mts → psl-ast-BkfQwHjE.d.mts} +4 -4
  131. package/dist/{psl-ast-BXZoFQBk.d.mts.map → psl-ast-BkfQwHjE.d.mts.map} +1 -1
  132. package/dist/{psl-ast-CWJQF8LA-Vr5JNPdn.d.mts → psl-ast-dnXw52MT-1jSUKlC9.d.mts} +4 -4
  133. package/dist/{psl-ast-CWJQF8LA-Vr5JNPdn.d.mts.map → psl-ast-dnXw52MT-1jSUKlC9.d.mts.map} +1 -1
  134. package/dist/psl-parser.d.mts +195 -74
  135. package/dist/psl-parser.d.mts.map +1 -1
  136. package/dist/psl-parser.mjs +213 -46
  137. package/dist/psl-parser.mjs.map +1 -1
  138. package/dist/psl-parser__format.mjs +2 -2
  139. package/dist/psl-parser__interpret.d.mts +32 -5
  140. package/dist/psl-parser__interpret.d.mts.map +1 -1
  141. package/dist/psl-parser__interpret.mjs +25 -2
  142. package/dist/psl-parser__interpret.mjs.map +1 -1
  143. package/dist/psl-parser__syntax.d.mts +1 -1
  144. package/dist/psl-parser__syntax.mjs +1 -1
  145. package/dist/psl-printer.d.mts +6 -6
  146. package/dist/psl-printer.mjs +20 -13
  147. package/dist/psl-printer.mjs.map +1 -1
  148. package/dist/{resolve-codec-BZF8TZh_-D-xORT9Q.mjs → resolve-codec-BLRGmP1f-CydhIhLP.mjs} +6 -9
  149. package/dist/{resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map → resolve-codec-BLRGmP1f-CydhIhLP.mjs.map} +1 -1
  150. package/dist/{resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts → resolve-domain-model-DXP2hfI2-D4fWewZQ.d.mts} +3 -3
  151. package/dist/resolve-domain-model-DXP2hfI2-D4fWewZQ.d.mts.map +1 -0
  152. package/dist/{result-CBZ8X9mU.mjs → result-C0NUq1Ok.mjs} +2 -2
  153. package/dist/{result-CBZ8X9mU.mjs.map → result-C0NUq1Ok.mjs.map} +1 -1
  154. package/dist/{runtime-Cuxw8obj.d.mts → runtime-DOHhUPFx.d.mts} +66 -4
  155. package/dist/{runtime-Cuxw8obj.d.mts.map → runtime-DOHhUPFx.d.mts.map} +1 -1
  156. package/dist/{runtime-BqzioOmU.mjs → runtime-DXmHIbAr.mjs} +7 -2
  157. package/dist/{runtime-BqzioOmU.mjs.map → runtime-DXmHIbAr.mjs.map} +1 -1
  158. package/dist/{structured-error-CgiSMpdU.mjs → structured-error-BXbihKQ-.mjs} +3 -3
  159. package/dist/{structured-error-CgiSMpdU.mjs.map → structured-error-BXbihKQ-.mjs.map} +1 -1
  160. package/dist/{structured-error-BsNT4Hun.d.mts → structured-error-Z4iE-fTI.d.mts} +4 -4
  161. package/dist/{structured-error-BsNT4Hun.d.mts.map → structured-error-Z4iE-fTI.d.mts.map} +1 -1
  162. package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts +18 -0
  163. package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts.map +1 -0
  164. package/dist/suppress-idle-connection-errors-DzApeUb3.mjs +22 -0
  165. package/dist/suppress-idle-connection-errors-DzApeUb3.mjs.map +1 -0
  166. package/dist/{symbol-table-CZ7EVCTL-CR-ncCpD.d.mts → symbol-table-BeOQBu3C-DduAXEh6.d.mts} +6 -6
  167. package/dist/{symbol-table-CZ7EVCTL-CR-ncCpD.d.mts.map → symbol-table-BeOQBu3C-DduAXEh6.d.mts.map} +1 -1
  168. package/dist/ts-render.mjs +1 -1
  169. package/dist/{types-ByeQhU9p.d.mts → types-BKJi4we0.d.mts} +2 -2
  170. package/dist/{types-ByeQhU9p.d.mts.map → types-BKJi4we0.d.mts.map} +1 -1
  171. package/dist/{types-BnH4zYvN.mjs → types-DG4qHrT8.mjs} +2 -2
  172. package/dist/{types-BnH4zYvN.mjs.map → types-DG4qHrT8.mjs.map} +1 -1
  173. package/dist/{types-import-spec-3mjbVBhI-DQI6BvKU.d.mts → types-import-spec-BijT0b-s-253rIcmj.d.mts} +4 -4
  174. package/dist/{types-import-spec-3mjbVBhI-DQI6BvKU.d.mts.map → types-import-spec-BijT0b-s-253rIcmj.d.mts.map} +1 -1
  175. package/dist/utils.d.mts +4 -3
  176. package/dist/utils.mjs +6 -5
  177. package/dist/utils__assertions.mjs +1 -1
  178. package/dist/utils__internal-error.d.mts +1 -1
  179. package/dist/utils__internal-error.mjs +1 -1
  180. package/dist/utils__result.mjs +1 -1
  181. package/dist/utils__structured-error.d.mts +1 -1
  182. package/dist/utils__structured-error.mjs +1 -1
  183. package/dist/utils__suppress-idle-connection-errors.d.mts +2 -0
  184. package/dist/utils__suppress-idle-connection-errors.mjs +2 -0
  185. package/dist/{validate-domain-BkvFlY3B.mjs → validate-domain-CaT6wlDH.mjs} +15 -1
  186. package/dist/validate-domain-CaT6wlDH.mjs.map +1 -0
  187. package/dist/{validate-domain-BNBs-TVv.d.mts → validate-domain-DJXNOlkP.d.mts} +9 -5
  188. package/dist/validate-domain-DJXNOlkP.d.mts.map +1 -0
  189. package/package.json +19 -18
  190. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +0 -1
  191. package/dist/authoring-B2H-9qCv.d.mts +0 -1
  192. package/dist/config-types-BqhNxw0z.mjs +0 -67
  193. package/dist/config-types-BqhNxw0z.mjs.map +0 -1
  194. package/dist/control-BD96JZi8-NUhO5Kkw.mjs.map +0 -1
  195. package/dist/control-DLEm6u5m.mjs.map +0 -1
  196. package/dist/emission-CmUO03gQ.d.mts +0 -2
  197. package/dist/emission-types-DLXP34Ki-CFms3VrX.d.mts.map +0 -1
  198. package/dist/execution-Crk6IfTs.mjs.map +0 -1
  199. package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts.map +0 -1
  200. package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs.map +0 -1
  201. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +0 -1
  202. package/dist/migration-C57VKLUY.mjs.map +0 -1
  203. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +0 -1
  204. package/dist/validate-domain-BNBs-TVv.d.mts.map +0 -1
  205. package/dist/validate-domain-BkvFlY3B.mjs.map +0 -1
@@ -1,3 +1,3 @@
1
- import { a as CodecDescriptorImpl, c as CodecLookup, d as CodecTrait, f as emptyCodecLookup, i as CodecDescriptor, l as CodecRef, n as Codec, o as CodecImpl, p as voidParamsSchema, r as CodecCallContext, s as CodecInstanceContext, t as AnyCodecDescriptor, u as CodecRegistry } from "./codec-types-D6VRj2RE-BLElXc-O.mjs";
2
- import { a as ColumnTypeDescriptor, c as renderTsLiteral, i as ColumnSpec, l as resolveCodecDescriptorOrThrow, n as ColumnHelperFor, o as column, r as ColumnHelperForStrict, s as materializeCodec, t as CONTRACT_CODEC_DESCRIPTOR_MISSING, u as validateCodecTypeParams } from "./codec-Ce07W3Mz.mjs";
1
+ import { a as CodecDescriptorImpl, c as CodecLookup, d as CodecTrait, f as emptyCodecLookup, i as CodecDescriptor, l as CodecRef, n as Codec, o as CodecImpl, p as voidParamsSchema, r as CodecCallContext, s as CodecInstanceContext, t as AnyCodecDescriptor, u as CodecRegistry } from "./codec-types-nVMtogur-CYBdUQUH.mjs";
2
+ import { a as ColumnTypeDescriptor, c as renderTsLiteral, i as ColumnSpec, l as resolveCodecDescriptorOrThrow, n as ColumnHelperFor, o as column, r as ColumnHelperForStrict, s as materializeCodec, t as CONTRACT_CODEC_DESCRIPTOR_MISSING, u as validateCodecTypeParams } from "./codec-DxAIshoO.mjs";
3
3
  export { type AnyCodecDescriptor, CONTRACT_CODEC_DESCRIPTOR_MISSING, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, column, emptyCodecLookup, materializeCodec, renderTsLiteral, resolveCodecDescriptorOrThrow, validateCodecTypeParams, voidParamsSchema };
@@ -1,4 +1,4 @@
1
- import { r as voidParamsSchema, t as emptyCodecLookup } from "./codec-types-DcNvNeY1-BO6kUiH0.mjs";
2
- import { i as validateCodecTypeParams, n as materializeCodec, r as resolveCodecDescriptorOrThrow, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from "./resolve-codec-BZF8TZh_-D-xORT9Q.mjs";
3
- import { i as renderTsLiteral, n as CodecImpl, r as column, t as CodecDescriptorImpl } from "./codec-Cd0QcxAx.mjs";
1
+ import { r as voidParamsSchema, t as emptyCodecLookup } from "./codec-types-smcGzGq6-BohNffPc.mjs";
2
+ import { i as validateCodecTypeParams, n as materializeCodec, r as resolveCodecDescriptorOrThrow, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from "./resolve-codec-BLRGmP1f-CydhIhLP.mjs";
3
+ import { i as renderTsLiteral, n as CodecImpl, r as column, t as CodecDescriptorImpl } from "./codec-DWYH-Ra4.mjs";
4
4
  export { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecImpl, column, emptyCodecLookup, materializeCodec, renderTsLiteral, resolveCodecDescriptorOrThrow, validateCodecTypeParams, voidParamsSchema };
@@ -1,5 +1,5 @@
1
- import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, m as isNoInputAggregateDescriptor, n as AggregateInputMatch, o as NamedAggregateOutput, p as isAnyInputAggregateDescriptor, r as AggregateOutputCodec, s as NoInputAggregateDescriptor, t as AggregateDescriptor, u as ValueInputAggregateDescriptor } from "./types-import-spec-3mjbVBhI-DQI6BvKU.mjs";
1
+ import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, m as isNoInputAggregateDescriptor, n as AggregateInputMatch, o as NamedAggregateOutput, p as isAnyInputAggregateDescriptor, r as AggregateOutputCodec, s as NoInputAggregateDescriptor, t as AggregateDescriptor, u as ValueInputAggregateDescriptor } from "./types-import-spec-BijT0b-s-253rIcmj.mjs";
2
2
  import { n as mergeCapabilityMatrices, t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
3
- import { A as TargetPackRef, D as TargetBoundComponentDescriptor, M as checkContractComponentRequirements, O as TargetDescriptor, _ as ExtensionPackRef, a as ComponentMetadata, b as FamilyPackRef, f as DriverDescriptor, g as ExtensionInstance, h as ExtensionDescriptor, i as ComponentDescriptor, k as TargetInstance, m as DriverPackRef, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as DriverInstance, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, v as FamilyDescriptor, w as PackRefBase, y as FamilyInstance } from "./framework-components-hZ2tO-KH-CdRXBOYd.mjs";
4
- import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-CGA_WwEG.mjs";
3
+ import { A as TargetPackRef, D as TargetBoundComponentDescriptor, M as checkContractComponentRequirements, O as TargetDescriptor, _ as ExtensionPackRef, a as ComponentMetadata, b as FamilyPackRef, f as DriverDescriptor, g as ExtensionInstance, h as ExtensionDescriptor, i as ComponentDescriptor, k as TargetInstance, m as DriverPackRef, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as DriverInstance, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, v as FamilyDescriptor, w as PackRefBase, y as FamilyInstance } from "./framework-components-CDppKaT_-DcMHokB8.mjs";
4
+ import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-CQrZAxZu.mjs";
5
5
  export { type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnyInputAggregateDescriptor, type CapabilityMatrix, type ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type DriverDescriptor, type DriverInstance, type DriverPackRef, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type NamedAggregateOutput, type NoInputAggregateDescriptor, type PackRefBase, type SelfAggregateOutput, type SettledAggregateOperation, type SettledAggregateOverloads, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetPackRef, type ValueInputAggregateDescriptor, aggregateDescriptorKey, checkContractComponentRequirements, isAggregateDescriptor, isAnyInputAggregateDescriptor, isNoInputAggregateDescriptor, mergeCapabilityMatrices, settleAggregateOverloads };
@@ -1,4 +1,4 @@
1
- import { a as mergeCapabilityMatrices, i as isNoInputAggregateDescriptor, n as isAggregateDescriptor, r as isAnyInputAggregateDescriptor, t as aggregateDescriptorKey } from "./capabilities-BCEONw9w-C-lo3rF8.mjs";
1
+ import { a as mergeCapabilityMatrices, i as isNoInputAggregateDescriptor, n as isAggregateDescriptor, r as isAnyInputAggregateDescriptor, t as aggregateDescriptorKey } from "./capabilities-BzwH_XMZ-CkgWaxF9.mjs";
2
2
  import { t as checkContractComponentRequirements } from "./framework-components-D6j4Y5K7-RW9H184y.mjs";
3
- import { t as settleAggregateOverloads } from "./components-dZRz3T5y.mjs";
3
+ import { t as settleAggregateOverloads } from "./components-CnV-6irM.mjs";
4
4
  export { aggregateDescriptorKey, checkContractComponentRequirements, isAggregateDescriptor, isAnyInputAggregateDescriptor, isNoInputAggregateDescriptor, mergeCapabilityMatrices, settleAggregateOverloads };
@@ -1,4 +1,4 @@
1
- import { C as MutationDefaultGeneratorDescriptor, E as SourceSpan, S as LoweredDefaultValue, T as SourceDiagnostic, c as ControlMutationDefaultEntry, d as DefaultFunctionLoweringContext, j as TypedDefaultFunctionCall, l as ControlMutationDefaultRegistry, u as ControlMutationDefaults, x as LoweredDefaultResult } from "./framework-components-hZ2tO-KH-CdRXBOYd.mjs";
1
+ import { C as MutationDefaultGeneratorDescriptor, E as SourceSpan, S as LoweredDefaultValue, T as SourceDiagnostic, c as ControlMutationDefaultEntry, d as DefaultFunctionLoweringContext, j as TypedDefaultFunctionCall, l as ControlMutationDefaultRegistry, u as ControlMutationDefaults, x as LoweredDefaultResult } from "./framework-components-CDppKaT_-DcMHokB8.mjs";
2
2
  import { t as ImportRequirement } from "./index-CDk9yEbw.mjs";
3
- import { $ as SchemaDiffIssue, A as MigrationPlan, At as diffSchemas, B as MigrationRunnerFailure, Bt as hasSchemaView, C as ExpectationFailureReason, Ct as assembleAuthoringContributions, D as MigrationOperationClass, Dt as contractSnapshotJsonSpecifier, E as MigrationMetadata, Et as buildExtensionLoadOrder, F as MigrationPlannerFailureResult, Ft as extractQueryOperationTypeImports, G as MigrationScaffoldContext, H as MigrationRunnerPerSpaceSuccessValue, Ht as orderIssuesByDependencies, I as MigrationPlannerResult, It as hasMigrations, J as OperationPreview, K as OpFactoryCall, L as MigrationPlannerSuccessResult, Lt as hasOperationPreview, M as MigrationPlanWithAuthoringSurface, Mt as extractCodecLookup, N as MigrationPlanner, Nt as extractCodecTypeImports, O as MigrationOperationPolicy, Ot as contractSnapshotTypesSpecifier, P as MigrationPlannerConflict, Pt as extractComponentIds, Q as SchemaDiff, R as MigrationRunner, Rt as hasPslContractInfer, S as EmitContractResult, St as VerifyDatabaseSchemaResult, T as MigratableTargetDescriptor, Tt as assertUniqueCodecOwner, U as MigrationRunnerResult, Ut as storageHashHex, V as MigrationRunnerPerSpaceOptions, Vt as issueOutcome, W as MigrationRunnerSuccessValue, X as OperationPreviewStatement, Y as OperationPreviewCapable, Z as PslContractInferCapable, _ as ControlTargetInstance, _t as VERIFY_CODE_TARGET_MISMATCH, a as ContractSpace, at as SchemaTreeNodeOptions, b as DiffSubjectGranularity, bt as VerifierOutcome, c as ControlAdapterInstance, ct as SchemaVerifyOptions, d as ControlExtensionDescriptor, dt as SchemaViewNodeKind, et as SchemaEntityCoordinate, f as ControlExtensionInstance, ft as SignDatabaseResult, g as ControlTargetDescriptor, gt as VERIFY_CODE_SCHEMA_FAILURE, h as ControlStack, ht as VERIFY_CODE_MARKER_MISSING, i as ContractSerializer, it as SchemaTreeNode, j as MigrationPlanOperation, jt as dispositionForCategory, k as MigrationPackage, kt as createControlStack, l as ControlDriverDescriptor, lt as SchemaVerifyResult, m as ControlFamilyInstance, mt as VERIFY_CODE_HASH_MISMATCH, n as AssembledAuthoringContributions, nt as SchemaOwnership, o as ContractSpaceHeadRef, ot as SchemaTreeVisitor, p as ControlFamilyDescriptor, pt as TargetMigrationsCapability, q as OperationContext, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaSubjectClassifierCapable, s as ControlAdapterDescriptor, st as SchemaVerifier, t as APP_SPACE_ID, tt as SchemaNodeRef, u as ControlDriverInstance, ut as SchemaViewCapable, v as CoreSchemaView, vt as VerificationStatus, w as IntrospectSchemaResult, wt as assembleControlMutationDefaults, x as DiffableNode, xt as VerifyDatabaseResult, y as CreateControlStackInput, yt as VerifierIssueCategory, z as MigrationRunnerExecutionChecks, zt as hasSchemaSubjectClassifier } from "./control-BF8qzdnM.mjs";
3
+ import { $ as SchemaDiffIssue, A as MigrationPlan, At as diffSchemas, B as MigrationRunnerFailure, Bt as hasSchemaView, C as ExpectationFailureReason, Ct as assembleAuthoringContributions, D as MigrationOperationClass, Dt as contractSnapshotJsonSpecifier, E as MigrationMetadata, Et as buildExtensionLoadOrder, F as MigrationPlannerFailureResult, Ft as extractQueryOperationTypeImports, G as MigrationScaffoldContext, H as MigrationRunnerPerSpaceSuccessValue, Ht as orderIssuesByDependencies, I as MigrationPlannerResult, It as hasMigrations, J as OperationPreview, K as OpFactoryCall, L as MigrationPlannerSuccessResult, Lt as hasOperationPreview, M as MigrationPlanWithAuthoringSurface, Mt as extractCodecLookup, N as MigrationPlanner, Nt as extractCodecTypeImports, O as MigrationOperationPolicy, Ot as contractSnapshotTypesSpecifier, P as MigrationPlannerConflict, Pt as extractComponentIds, Q as SchemaDiff, R as MigrationRunner, Rt as hasPslContractInfer, S as EmitContractResult, St as VerifyDatabaseSchemaResult, T as MigratableTargetDescriptor, Tt as assertUniqueCodecOwner, U as MigrationRunnerResult, Ut as storageHashHex, V as MigrationRunnerPerSpaceOptions, Vt as issueOutcome, W as MigrationRunnerSuccessValue, X as OperationPreviewStatement, Y as OperationPreviewCapable, Z as PslContractInferCapable, _ as ControlTargetInstance, _t as VERIFY_CODE_TARGET_MISMATCH, a as ContractSpace, at as SchemaTreeNodeOptions, b as DiffSubjectGranularity, bt as VerifierOutcome, c as ControlAdapterInstance, ct as SchemaVerifyOptions, d as ControlExtensionDescriptor, dt as SchemaViewNodeKind, et as SchemaEntityCoordinate, f as ControlExtensionInstance, ft as SignDatabaseResult, g as ControlTargetDescriptor, gt as VERIFY_CODE_SCHEMA_FAILURE, h as ControlStack, ht as VERIFY_CODE_MARKER_MISSING, i as ContractSerializer, it as SchemaTreeNode, j as MigrationPlanOperation, jt as dispositionForCategory, k as MigrationPackage, kt as createControlStack, l as ControlDriverDescriptor, lt as SchemaVerifyResult, m as ControlFamilyInstance, mt as VERIFY_CODE_HASH_MISMATCH, n as AssembledAuthoringContributions, nt as SchemaOwnership, o as ContractSpaceHeadRef, ot as SchemaTreeVisitor, p as ControlFamilyDescriptor, pt as TargetMigrationsCapability, q as OperationContext, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaSubjectClassifierCapable, s as ControlAdapterDescriptor, st as SchemaVerifier, t as APP_SPACE_ID, tt as SchemaNodeRef, u as ControlDriverInstance, ut as SchemaViewCapable, v as CoreSchemaView, vt as VerificationStatus, w as IntrospectSchemaResult, wt as assembleControlMutationDefaults, x as DiffableNode, xt as VerifyDatabaseResult, y as CreateControlStackInput, yt as VerifierIssueCategory, z as MigrationRunnerExecutionChecks, zt as hasSchemaSubjectClassifier } from "./control-eH2MIHqA.mjs";
4
4
  export { APP_SPACE_ID, type AssembledAuthoringContributions, CONTRACT_SNAPSHOTS_DIRNAME, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type DefaultFunctionLoweringContext, type DiffSubjectGranularity, type DiffableNode, type EmitContractResult, type ExpectationFailureReason, type ImportRequirement, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MigratableTargetDescriptor, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PslContractInferCapable, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SignDatabaseResult, type SourceDiagnostic, type SourceSpan, type TargetMigrationsCapability, type TypedDefaultFunctionCall, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, diffSchemas, dispositionForCategory, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, issueOutcome, orderIssuesByDependencies, storageHashHex };
@@ -1,2 +1,2 @@
1
- import { C as hasOperationPreview, D as issueOutcome, E as hasSchemaView, O as orderIssuesByDependencies, S as hasMigrations, T as hasSchemaSubjectClassifier, _ as dispositionForCategory, a as VERIFY_CODE_HASH_MISMATCH, b as extractComponentIds, c as VERIFY_CODE_TARGET_MISMATCH, d as assertUniqueCodecOwner, f as buildExtensionLoadOrder, g as diffSchemas, h as createControlStack, i as SchemaTreeNode, k as storageHashHex, l as assembleAuthoringContributions, m as contractSnapshotTypesSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as contractSnapshotJsonSpecifier, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleControlMutationDefaults, v as extractCodecLookup, w as hasPslContractInfer, x as extractQueryOperationTypeImports, y as extractCodecTypeImports } from "./control-DLEm6u5m.mjs";
1
+ import { C as hasOperationPreview, D as issueOutcome, E as hasSchemaView, O as orderIssuesByDependencies, S as hasMigrations, T as hasSchemaSubjectClassifier, _ as dispositionForCategory, a as VERIFY_CODE_HASH_MISMATCH, b as extractComponentIds, c as VERIFY_CODE_TARGET_MISMATCH, d as assertUniqueCodecOwner, f as buildExtensionLoadOrder, g as diffSchemas, h as createControlStack, i as SchemaTreeNode, k as storageHashHex, l as assembleAuthoringContributions, m as contractSnapshotTypesSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as contractSnapshotJsonSpecifier, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleControlMutationDefaults, v as extractCodecLookup, w as hasPslContractInfer, x as extractQueryOperationTypeImports, y as extractCodecTypeImports } from "./control-DR0zF1b7.mjs";
2
2
  export { APP_SPACE_ID, CONTRACT_SNAPSHOTS_DIRNAME, SchemaDiff, SchemaTreeNode, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, diffSchemas, dispositionForCategory, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, issueOutcome, orderIssuesByDependencies, storageHashHex };
@@ -1,4 +1,4 @@
1
- import { l as TypesImportSpec } from "./types-import-spec-3mjbVBhI-DQI6BvKU.mjs";
2
- import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-DLXP34Ki-CFms3VrX.mjs";
3
- import "./emission-CmUO03gQ.mjs";
1
+ import { l as TypesImportSpec } from "./types-import-spec-BijT0b-s-253rIcmj.mjs";
2
+ import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-BoSJNKfQ-B_19ILPP.mjs";
3
+ import "./emission-BWD6Z6w9.mjs";
4
4
  export { type EmissionSpi, type GenerateContractTypesOptions, type ImportSpecifierResolver, type TypesImportSpec, type ValidationContext, keepInternalSpecifiers, resolveRequirementSpecifiers };
@@ -1,2 +1,2 @@
1
- import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-CSnQT8EX.mjs";
1
+ import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-BDzJVN0t.mjs";
2
2
  export { type ExecutionStack, type ExecutionStackInstance, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeTargetDescriptor, type RuntimeTargetInstance, assertRuntimeContractRequirementsSatisfied, createExecutionStack, instantiateExecutionStack };
@@ -1,3 +1,3 @@
1
1
  import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
2
- import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b as freezeNode, c as NamespaceBase, d as Storage, f as StorageType, g as coordinateKey, h as buildSingleNamespaceView, i as EntityKindDescriptor, l as NamespacedEntities, m as buildNamespacedEntities, n as DefaultNamespaceEntries, o as IRNodeBase, p as UNBOUND_NAMESPACE_ID, r as EntityCoordinate, s as Namespace, t as AnyEntityKindDescriptor, u as SingleNamespaceView, v as elementCoordinates, x as hydrateNamespaceEntities, y as entityAt } from "./ir-BvE7L9FK.mjs";
2
+ import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b as freezeNode, c as NamespaceBase, d as Storage, f as StorageType, g as coordinateKey, h as buildSingleNamespaceView, i as EntityKindDescriptor, l as NamespacedEntities, m as buildNamespacedEntities, n as DefaultNamespaceEntries, o as IRNodeBase, p as UNBOUND_NAMESPACE_ID, r as EntityCoordinate, s as Namespace, t as AnyEntityKindDescriptor, u as SingleNamespaceView, v as elementCoordinates, x as hydrateNamespaceEntities, y as entityAt } from "./ir-BGaPKem0.mjs";
3
3
  export { type AnyEntityKindDescriptor, type DefaultNamespaceEntries, type EntityCoordinate, type EntityKindDescriptor, type IRNode, IRNodeBase, type Namespace, NamespaceBase, type NamespacedEntities, type SingleNamespaceView, type Storage, type StorageType, UNBOUND_NAMESPACE_ID, buildNamespacedEntities, buildSingleNamespaceView, coordinateKey, domainElementCoordinates, elementCoordinates, entityAt, freezeNode, hydrateNamespaceEntities, isPlainRecord, promoteBuiltinKinds };
@@ -1,3 +1,3 @@
1
1
  import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
2
- import { a as buildSingleNamespaceView, c as elementCoordinates, d as hydrateNamespaceEntities, f as promoteBuiltinKinds, i as buildNamespacedEntities, l as entityAt, n as NamespaceBase, o as coordinateKey, r as UNBOUND_NAMESPACE_ID, s as domainElementCoordinates, t as IRNodeBase, u as freezeNode } from "./ir-ChmSSAhX.mjs";
2
+ import { a as buildSingleNamespaceView, c as elementCoordinates, d as hydrateNamespaceEntities, f as promoteBuiltinKinds, i as buildNamespacedEntities, l as entityAt, n as NamespaceBase, o as coordinateKey, r as UNBOUND_NAMESPACE_ID, s as domainElementCoordinates, t as IRNodeBase, u as freezeNode } from "./ir-CV5d1FJ0.mjs";
3
3
  export { IRNodeBase, NamespaceBase, UNBOUND_NAMESPACE_ID, buildNamespacedEntities, buildSingleNamespaceView, coordinateKey, domainElementCoordinates, elementCoordinates, entityAt, freezeNode, hydrateNamespaceEntities, isPlainRecord, promoteBuiltinKinds };
@@ -1,4 +1,4 @@
1
- import { A as PslBlockParam, B as PslExtensionBlockParamList, F as PslDiagnosticCode, G as PslPosition, H as PslExtensionBlockParamRef, I as PslExtensionBlock, K as PslSpan, L as PslExtensionBlockAttribute, M as PslBlockParamOption, N as PslBlockParamRef, P as PslBlockParamValue, R as PslExtensionBlockAttributeArg, U as PslExtensionBlockParamScalarValue, V as PslExtensionBlockParamOption, W as PslExtensionBlockParamValue, b as AuthoringPslBlockDescriptorNamespace, j as PslBlockParamList, k as ContributedPslDiagnosticCode, z as PslExtensionBlockParamBare } from "./framework-authoring-BhctBwih-DQ_6noDM.mjs";
2
- import { A as makePslNamespace, C as PslReferentialAction, D as UNSPECIFIED_PSL_NAMESPACE_ID, E as PslUniqueConstraint, M as namespacePslExtensionBlocks, O as flatPslCompositeTypes, S as PslNamespaceEntry, T as PslTypesBlock, _ as PslIndexConstraint, a as PslAttributeArgument, b as PslNamedTypeDeclaration, c as PslAttributeTarget, d as PslDefaultLiteralValue, f as PslDefaultValue, g as PslFieldAttribute, h as PslField, i as PslAttribute, j as makePslNamespaceEntries, k as flatPslModels, l as PslCompositeType, m as PslDocumentAst, n as ParsePslDocumentInput, o as PslAttributeNamedArgument, p as PslDiagnostic, r as ParsePslDocumentResult, s as PslAttributePositionalArgument, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultFunctionValue, v as PslModel, w as PslTypeConstructorCall, x as PslNamespace, y as PslModelAttribute } from "./psl-ast-CWJQF8LA-Vr5JNPdn.mjs";
3
- import { n as validateExtensionBlock, t as ExtensionBlockRefResolutionContext } from "./psl-ast-BXZoFQBk.mjs";
4
- export { type AuthoringPslBlockDescriptorNamespace, BUILTIN_PSL_KIND_KEYS, type ContributedPslDiagnosticCode, type ExtensionBlockRefResolutionContext, ParsePslDocumentInput, ParsePslDocumentResult, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, type PslBlockParam, type PslBlockParamList, type PslBlockParamOption, type PslBlockParamRef, type PslBlockParamValue, PslCompositeType, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, type PslDiagnosticCode, PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParamBare, type PslExtensionBlockParamList, type PslExtensionBlockParamOption, type PslExtensionBlockParamRef, type PslExtensionBlockParamScalarValue, type PslExtensionBlockParamValue, PslField, PslFieldAttribute, PslIndexConstraint, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslNamespaceEntry, type PslPosition, PslReferentialAction, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, UNSPECIFIED_PSL_NAMESPACE_ID, flatPslCompositeTypes, flatPslModels, makePslNamespace, makePslNamespaceEntries, namespacePslExtensionBlocks, validateExtensionBlock };
1
+ import { A as ContributedPslDiagnosticCode, B as PslExtensionBlockParamBare, F as PslBlockParamValue, G as PslExtensionBlockParamValue, H as PslExtensionBlockParamOption, I as PslDiagnosticCode, J as PslSpan, K as PslExtensionBlockParsedAttribute, L as PslExtensionBlock, M as PslBlockParamList, N as PslBlockParamOption, P as PslBlockParamRef, R as PslExtensionBlockAttribute, U as PslExtensionBlockParamRef, V as PslExtensionBlockParamList, W as PslExtensionBlockParamScalarValue, j as PslBlockParam, q as PslPosition, x as AuthoringPslBlockDescriptorNamespace, z as PslExtensionBlockAttributeArg } from "./framework-authoring-BYgPL2X6-DMKO0Z_k.mjs";
2
+ import { A as makePslNamespace, C as PslReferentialAction, D as UNSPECIFIED_PSL_NAMESPACE_ID, E as PslUniqueConstraint, M as namespacePslExtensionBlocks, O as flatPslCompositeTypes, S as PslNamespaceEntry, T as PslTypesBlock, _ as PslIndexConstraint, a as PslAttributeArgument, b as PslNamedTypeDeclaration, c as PslAttributeTarget, d as PslDefaultLiteralValue, f as PslDefaultValue, g as PslFieldAttribute, h as PslField, i as PslAttribute, j as makePslNamespaceEntries, k as flatPslModels, l as PslCompositeType, m as PslDocumentAst, n as ParsePslDocumentInput, o as PslAttributeNamedArgument, p as PslDiagnostic, r as ParsePslDocumentResult, s as PslAttributePositionalArgument, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultFunctionValue, v as PslModel, w as PslTypeConstructorCall, x as PslNamespace, y as PslModelAttribute } from "./psl-ast-dnXw52MT-1jSUKlC9.mjs";
3
+ import { n as validateExtensionBlock, t as ExtensionBlockRefResolutionContext } from "./psl-ast-BkfQwHjE.mjs";
4
+ export { type AuthoringPslBlockDescriptorNamespace, BUILTIN_PSL_KIND_KEYS, type ContributedPslDiagnosticCode, type ExtensionBlockRefResolutionContext, ParsePslDocumentInput, ParsePslDocumentResult, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, type PslBlockParam, type PslBlockParamList, type PslBlockParamOption, type PslBlockParamRef, type PslBlockParamValue, PslCompositeType, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, type PslDiagnosticCode, PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParamBare, type PslExtensionBlockParamList, type PslExtensionBlockParamOption, type PslExtensionBlockParamRef, type PslExtensionBlockParamScalarValue, type PslExtensionBlockParamValue, type PslExtensionBlockParsedAttribute, PslField, PslFieldAttribute, PslIndexConstraint, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslNamespaceEntry, type PslPosition, PslReferentialAction, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, UNSPECIFIED_PSL_NAMESPACE_ID, flatPslCompositeTypes, flatPslModels, makePslNamespace, makePslNamespaceEntries, namespacePslExtensionBlocks, validateExtensionBlock };
@@ -1,2 +1,2 @@
1
- import { A as checkAborted, B as runtimeAborted, C as RuntimeExecutor, D as RuntimeStatementStats, E as RuntimeMiddlewareContext, F as raceAgainstAbort, I as runBeforeExecuteChain, L as runBeforeQueryChain, M as createMetaBuilder, N as defineAnnotation, O as ValidAnnotations, P as isRuntimeError, R as runExecuteWithMiddleware, S as RuntimeExecuteOptions, T as RuntimeMiddleware, V as runtimeError, _ as ResultType, a as AsyncIterableResult, b as RuntimeCoreOptions, c as ExecuteInterceptResult, d as MetaBuilder, f as OperationKind, g as RUNTIME_ABORTED, h as QueryPlan, i as AnnotationValue, j as checkMiddlewareCompatibility, k as assertAnnotationsApplicable, l as ExecutionPlan, m as QueryInterceptResult, n as AfterQueryResult, o as CrossFamilyMiddleware, p as ParamRefMutator, r as AnnotationHandle, s as DefineAnnotationOptions, t as AfterExecuteResult, u as LaneMetaBuilder, v as RuntimeAbortedPhase, w as RuntimeLog, x as RuntimeErrorEnvelope, y as RuntimeCore, z as runQueryWithMiddleware } from "./runtime-Cuxw8obj.mjs";
2
- export { type AfterExecuteResult, type AfterQueryResult, type AnnotationHandle, type AnnotationValue, AsyncIterableResult, type CrossFamilyMiddleware, type DefineAnnotationOptions, type ExecuteInterceptResult, type ExecutionPlan, type LaneMetaBuilder, type MetaBuilder, type OperationKind, type ParamRefMutator, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, type ResultType, type RuntimeAbortedPhase, RuntimeCore, type RuntimeCoreOptions, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeLog, type RuntimeMiddleware, type RuntimeMiddlewareContext, type RuntimeStatementStats, type ValidAnnotations, assertAnnotationsApplicable, checkAborted, checkMiddlewareCompatibility, createMetaBuilder, defineAnnotation, isRuntimeError, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
1
+ import { A as Scalars, B as raceAgainstAbort, C as RuntimeErrorEnvelope, D as RuntimeMiddleware, E as RuntimeLog, F as checkAborted, G as runtimeAborted, H as runBeforeQueryChain, I as checkMiddlewareCompatibility, K as runtimeError, L as createMetaBuilder, M as ShapeSpec, N as ValidAnnotations, O as RuntimeMiddlewareContext, P as assertAnnotationsApplicable, R as defineAnnotation, S as RuntimeCoreOptions, T as RuntimeExecutor, U as runExecuteWithMiddleware, V as runBeforeExecuteChain, W as runQueryWithMiddleware, _ as RelationKeys, a as AsyncIterableResult, b as RuntimeAbortedPhase, c as ExecuteInterceptResult, d as MetaBuilder, f as OperationKind, g as RUNTIME_ABORTED, h as QueryPlan, i as AnnotationValue, j as Shape, k as RuntimeStatementStats, l as ExecutionPlan, m as QueryInterceptResult, n as AfterQueryResult, o as CrossFamilyMiddleware, p as ParamRefMutator, r as AnnotationHandle, s as DefineAnnotationOptions, t as AfterExecuteResult, u as LaneMetaBuilder, v as RelationNamesOf, w as RuntimeExecuteOptions, x as RuntimeCore, y as ResultType, z as isRuntimeError } from "./runtime-DOHhUPFx.mjs";
2
+ export { type AfterExecuteResult, type AfterQueryResult, type AnnotationHandle, type AnnotationValue, AsyncIterableResult, type CrossFamilyMiddleware, type DefineAnnotationOptions, type ExecuteInterceptResult, type ExecutionPlan, type LaneMetaBuilder, type MetaBuilder, 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 RuntimeMiddlewareContext, type RuntimeStatementStats, type Scalars, type Shape, type ShapeSpec, type ValidAnnotations, assertAnnotationsApplicable, checkAborted, checkMiddlewareCompatibility, createMetaBuilder, defineAnnotation, isRuntimeError, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
@@ -1,3 +1,3 @@
1
1
  import { n as runtimeError, t as isRuntimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
2
- import { a as checkAborted, c as defineAnnotation, d as runBeforeQueryChain, f as runExecuteWithMiddleware, i as assertAnnotationsApplicable, l as raceAgainstAbort, m as runtimeAborted, n as RUNTIME_ABORTED, o as checkMiddlewareCompatibility, p as runQueryWithMiddleware, r as RuntimeCore, s as createMetaBuilder, t as AsyncIterableResult, u as runBeforeExecuteChain } from "./runtime-BqzioOmU.mjs";
3
- export { AsyncIterableResult, RUNTIME_ABORTED, RuntimeCore, assertAnnotationsApplicable, checkAborted, checkMiddlewareCompatibility, createMetaBuilder, defineAnnotation, isRuntimeError, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
2
+ import { a as assertAnnotationsApplicable, c as createMetaBuilder, d as runBeforeExecuteChain, f as runBeforeQueryChain, h as runtimeAborted, i as RuntimeCore, l as defineAnnotation, m as runQueryWithMiddleware, n as RUNTIME_ABORTED, o as checkAborted, p as runExecuteWithMiddleware, r as RelationKeys, s as checkMiddlewareCompatibility, t as AsyncIterableResult, u as raceAgainstAbort } from "./runtime-DXmHIbAr.mjs";
3
+ export { AsyncIterableResult, RUNTIME_ABORTED, RelationKeys, RuntimeCore, assertAnnotationsApplicable, checkAborted, checkMiddlewareCompatibility, createMetaBuilder, defineAnnotation, isRuntimeError, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
@@ -1,11 +1,11 @@
1
- import { t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
2
- import { c as CodecLookup } from "./codec-types-D6VRj2RE-BLElXc-O.mjs";
3
- import "./codec-Ce07W3Mz.mjs";
1
+ import { t as Contract } from "./contract-types-Bje5yT4f-0D1Z41Lq.mjs";
2
+ import { c as CodecLookup } from "./codec-types-nVMtogur-CYBdUQUH.mjs";
3
+ import "./codec-DxAIshoO.mjs";
4
4
  import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
5
- import { u as ControlMutationDefaults } from "./framework-components-hZ2tO-KH-CdRXBOYd.mjs";
6
- import "./components-CGA_WwEG.mjs";
5
+ import { u as ControlMutationDefaults } from "./framework-components-CDppKaT_-DcMHokB8.mjs";
6
+ import "./components-CQrZAxZu.mjs";
7
7
  import { r as Result } from "./result-Bpupv5vO.mjs";
8
- import { d as ControlExtensionDescriptor, g as ControlTargetDescriptor, l as ControlDriverDescriptor, n as AssembledAuthoringContributions, p as ControlFamilyDescriptor, s as ControlAdapterDescriptor, u as ControlDriverInstance } from "./control-BF8qzdnM.mjs";
8
+ import { d as ControlExtensionDescriptor, g as ControlTargetDescriptor, l as ControlDriverDescriptor, n as AssembledAuthoringContributions, p as ControlFamilyDescriptor, s as ControlAdapterDescriptor, u as ControlDriverInstance } from "./control-eH2MIHqA.mjs";
9
9
  //#region ../../../1-framework/1-core/config/dist/config-types.d.mts
10
10
  //#region src/contract-source-types.d.ts
11
11
  interface ContractSourceDiagnosticPosition {
@@ -99,7 +99,7 @@ declare function normalizeContractConfig(contract: ContractConfig): ContractConf
99
99
  readonly output: string;
100
100
  };
101
101
  /**
102
- * Configuration for Prisma Next CLI.
102
+ * Configuration for Prisma 8 CLI.
103
103
  * Uses Control*Descriptor types for type-safe wiring with compile-time compatibility checks.
104
104
  *
105
105
  * @template TFamilyId - The family ID (e.g., 'sql', 'document')
@@ -145,22 +145,9 @@ interface PrismaNextConfig<TFamilyId extends string = string, TTargetId extends
145
145
  readonly formatter?: FormatterConfig;
146
146
  }
147
147
  /**
148
- * Version of the config format produced by this `defineConfig`. Bumped when
149
- * the config shape changes incompatibly.
150
- */
151
- declare const CONFIG_FORMAT_VERSION = 1;
152
- /**
153
- * Reads the config-format version stamped by `defineConfig`, or `undefined`
154
- * when the value was not produced by `defineConfig`. The marker is
155
- * non-enumerable and does not survive spreads: configs must export the
156
- * `defineConfig` result directly.
157
- */
158
- declare function readConfigFormatVersion(value: unknown): number | undefined;
159
- declare function hasCurrentConfigFormatVersion(value: unknown): boolean;
160
- /**
161
- * Helper function to define a Prisma Next config.
162
- * Normalizes the config and stamps it with the config-format version marker.
163
- * Structural validation happens in the config loader, which reports
148
+ * Builds the ORM section of `prisma.config.ts`. The result nests under the
149
+ * `orm` key of the engine's `defineConfig` the marker lives on the envelope,
150
+ * not here. Structural validation happens in the config loader, which reports
164
151
  * per-section diagnostics instead of failing the whole load.
165
152
  *
166
153
  * Normalization:
@@ -172,5 +159,5 @@ declare function hasCurrentConfigFormatVersion(value: unknown): boolean;
172
159
  */
173
160
  declare function defineConfig<TFamilyId extends string = string, TTargetId extends string = string>(config: PrismaNextConfig<TFamilyId, TTargetId>): PrismaNextConfig<TFamilyId, TTargetId>;
174
161
  //#endregion
175
- export { defineConfig as _, ContractSourceDiagnosticPosition as a, readConfigFormatVersion as b, ContractSourceFormat as c, DEFAULT_CONTRACT_SOURCE_DIR as d, FormatterConfig as f, TypeScriptContractSourceProvider as g, PslContractSourceProvider as h, ContractSourceDiagnostic as i, ContractSourceProvider as l, PrismaNextConfig as m, ContractConfig as n, ContractSourceDiagnosticSpan as o, OpaqueContractSourceProvider as p, ContractSourceContext as r, ContractSourceDiagnostics as s, CONFIG_FORMAT_VERSION as t, ContractSourceProviderBase as u, hasCurrentConfigFormatVersion as v, normalizeContractConfig as y };
176
- //# sourceMappingURL=config-types-CW4PDwMC.d.mts.map
162
+ export { normalizeContractConfig as _, ContractSourceDiagnosticSpan as a, ContractSourceProvider as c, FormatterConfig as d, OpaqueContractSourceProvider as f, defineConfig as g, TypeScriptContractSourceProvider as h, ContractSourceDiagnosticPosition as i, ContractSourceProviderBase as l, PslContractSourceProvider as m, ContractSourceContext as n, ContractSourceDiagnostics as o, PrismaNextConfig as p, ContractSourceDiagnostic as r, ContractSourceFormat as s, ContractConfig as t, DEFAULT_CONTRACT_SOURCE_DIR as u };
163
+ //# sourceMappingURL=config-types-CeduUYkY.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-CW4PDwMC.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;;;;;WAMP,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;WACb,yBAAyB;WACzB;WACA,cAAc;;;KAGpB;UACK;WACC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;UAEpE,kCAAkC;WACjC;;UAED,yCAAyC;WACxC;;;;;;;;UAQD,qCAAqC;WACpC;;KAEN,yBAAyB,4BAA4B,mCAAmC;;;;;;UAMnF;;;;;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;;;;;;cAMT;;;;;;;iBAOG,wBAAwB;iBACxB,8BAA8B;;;;;;;;;;;;;;iBAc9B,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW"}
1
+ {"version":3,"file":"config-types-CeduUYkY.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;;;;;WAMP,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;WACb,yBAAyB;WACzB;WACA,cAAc;;;KAGpB;UACK;WACC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;UAEpE,kCAAkC;WACjC;;UAED,yCAAyC;WACxC;;;;;;;;UAQD,qCAAqC;WACpC;;KAEN,yBAAyB,4BAA4B,mCAAmC;;;;;;UAMnF;;;;;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;;;;;;;;;;;;;;;iBAeN,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW"}
@@ -0,0 +1,38 @@
1
+ //#region ../../../1-framework/1-core/config/dist/config-types.mjs
2
+ /**
3
+ * Default *source* directory for the contract file the user authors at `init`
4
+ * time. Output artefacts colocate with source per the same rule path-bearing
5
+ * providers apply.
6
+ */
7
+ const DEFAULT_CONTRACT_SOURCE_DIR = "src/prisma";
8
+ function normalizeContractConfig(contract) {
9
+ const inMemoryFallbackOutput = `${DEFAULT_CONTRACT_SOURCE_DIR}/contract.json`;
10
+ return {
11
+ source: contract.source,
12
+ output: contract.output ?? inMemoryFallbackOutput
13
+ };
14
+ }
15
+ /**
16
+ * Builds the ORM section of `prisma.config.ts`. The result nests under the
17
+ * `orm` key of the engine's `defineConfig` — the marker lives on the envelope,
18
+ * not here. Structural validation happens in the config loader, which reports
19
+ * per-section diagnostics instead of failing the whole load.
20
+ *
21
+ * Normalization:
22
+ * - contract.output defaults to a path colocated with DEFAULT_CONTRACT_SOURCE_DIR
23
+ * when missing (in-memory-only providers)
24
+ *
25
+ * @param config - Raw config input from user
26
+ * @returns Normalized config IR with defaults applied
27
+ */
28
+ function defineConfig(config) {
29
+ if (config.contract) return {
30
+ ...config,
31
+ contract: normalizeContractConfig(config.contract)
32
+ };
33
+ return config;
34
+ }
35
+ //#endregion
36
+ export { defineConfig as n, normalizeContractConfig as r, DEFAULT_CONTRACT_SOURCE_DIR as t };
37
+
38
+ //# sourceMappingURL=config-types-D_UCRNbm.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-types-D_UCRNbm.mjs","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.mjs"],"sourcesContent":["//#region src/config-types.ts\n/**\n* Default *source* directory for the contract file the user authors at `init`\n* time. Output artefacts colocate with source per the same rule path-bearing\n* providers apply.\n*/\nconst DEFAULT_CONTRACT_SOURCE_DIR = \"src/prisma\";\nfunction normalizeContractConfig(contract) {\n\tconst inMemoryFallbackOutput = `${DEFAULT_CONTRACT_SOURCE_DIR}/contract.json`;\n\treturn {\n\t\tsource: contract.source,\n\t\toutput: contract.output ?? inMemoryFallbackOutput\n\t};\n}\n/**\n* Builds the ORM section of `prisma.config.ts`. The result nests under the\n* `orm` key of the engine's `defineConfig` — the marker lives on the envelope,\n* not here. Structural validation happens in the config loader, which reports\n* per-section diagnostics instead of failing the whole load.\n*\n* Normalization:\n* - contract.output defaults to a path colocated with DEFAULT_CONTRACT_SOURCE_DIR\n* when missing (in-memory-only providers)\n*\n* @param config - Raw config input from user\n* @returns Normalized config IR with defaults applied\n*/\nfunction defineConfig(config) {\n\tif (config.contract) return {\n\t\t...config,\n\t\tcontract: normalizeContractConfig(config.contract)\n\t};\n\treturn config;\n}\n//#endregion\nexport { DEFAULT_CONTRACT_SOURCE_DIR, defineConfig, normalizeContractConfig };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;AAMA,MAAM,8BAA8B;AACpC,SAAS,wBAAwB,UAAU;CAC1C,MAAM,yBAAyB,GAAG,4BAA4B;CAC9D,OAAO;EACN,QAAQ,SAAS;EACjB,QAAQ,SAAS,UAAU;CAC5B;AACD;;;;;;;;;;;;;;AAcA,SAAS,aAAa,QAAQ;CAC7B,IAAI,OAAO,UAAU,OAAO;EAC3B,GAAG;EACH,UAAU,wBAAwB,OAAO,QAAQ;CAClD;CACA,OAAO;AACR"}
package/dist/config.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as defineConfig, a as ContractSourceDiagnosticPosition, b as readConfigFormatVersion, c as ContractSourceFormat, d as DEFAULT_CONTRACT_SOURCE_DIR, f as FormatterConfig, g as TypeScriptContractSourceProvider, h as PslContractSourceProvider, i as ContractSourceDiagnostic, l as ContractSourceProvider, m as PrismaNextConfig, n as ContractConfig, o as ContractSourceDiagnosticSpan, p as OpaqueContractSourceProvider, r as ContractSourceContext, s as ContractSourceDiagnostics, t as CONFIG_FORMAT_VERSION, u as ContractSourceProviderBase, v as hasCurrentConfigFormatVersion, y as normalizeContractConfig } from "./config-types-CW4PDwMC.mjs";
1
+ import { _ as normalizeContractConfig, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as OpaqueContractSourceProvider, g as defineConfig, h as TypeScriptContractSourceProvider, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PrismaNextConfig, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR } from "./config-types-CeduUYkY.mjs";
2
2
  import { n as ConfigValidationIssue, r as collectConfigIssues, t as ConfigSection } from "./config-validation-Wiqew2J9.mjs";
3
- export { CONFIG_FORMAT_VERSION, type ConfigSection, type ConfigValidationIssue, 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 OpaqueContractSourceProvider, type PrismaNextConfig, type PslContractSourceProvider, type TypeScriptContractSourceProvider, collectConfigIssues, defineConfig, hasCurrentConfigFormatVersion, normalizeContractConfig, readConfigFormatVersion };
3
+ export { type ConfigSection, type ConfigValidationIssue, 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 OpaqueContractSourceProvider, type PrismaNextConfig, type PslContractSourceProvider, type TypeScriptContractSourceProvider, collectConfigIssues, defineConfig, normalizeContractConfig };
package/dist/config.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as normalizeContractConfig, i as hasCurrentConfigFormatVersion, n as DEFAULT_CONTRACT_SOURCE_DIR, o as readConfigFormatVersion, r as defineConfig, t as CONFIG_FORMAT_VERSION } from "./config-types-BqhNxw0z.mjs";
1
+ import { n as defineConfig, r as normalizeContractConfig, t as DEFAULT_CONTRACT_SOURCE_DIR } from "./config-types-D_UCRNbm.mjs";
2
2
  import { t as collectConfigIssues } from "./config-validation-DPt5hwQx.mjs";
3
- export { CONFIG_FORMAT_VERSION, DEFAULT_CONTRACT_SOURCE_DIR, collectConfigIssues, defineConfig, hasCurrentConfigFormatVersion, normalizeContractConfig, readConfigFormatVersion };
3
+ export { DEFAULT_CONTRACT_SOURCE_DIR, collectConfigIssues, defineConfig, normalizeContractConfig };
@@ -1,2 +1,2 @@
1
- import { _ as defineConfig, a as ContractSourceDiagnosticPosition, b as readConfigFormatVersion, c as ContractSourceFormat, d as DEFAULT_CONTRACT_SOURCE_DIR, f as FormatterConfig, g as TypeScriptContractSourceProvider, h as PslContractSourceProvider, i as ContractSourceDiagnostic, l as ContractSourceProvider, m as PrismaNextConfig, n as ContractConfig, o as ContractSourceDiagnosticSpan, p as OpaqueContractSourceProvider, r as ContractSourceContext, s as ContractSourceDiagnostics, t as CONFIG_FORMAT_VERSION, u as ContractSourceProviderBase, v as hasCurrentConfigFormatVersion, y as normalizeContractConfig } from "./config-types-CW4PDwMC.mjs";
2
- export { CONFIG_FORMAT_VERSION, 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 OpaqueContractSourceProvider, type PrismaNextConfig, type PslContractSourceProvider, type TypeScriptContractSourceProvider, defineConfig, hasCurrentConfigFormatVersion, normalizeContractConfig, readConfigFormatVersion };
1
+ import { _ as normalizeContractConfig, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as OpaqueContractSourceProvider, g as defineConfig, h as TypeScriptContractSourceProvider, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PrismaNextConfig, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR } from "./config-types-CeduUYkY.mjs";
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 OpaqueContractSourceProvider, type PrismaNextConfig, type PslContractSourceProvider, type TypeScriptContractSourceProvider, defineConfig, normalizeContractConfig };
@@ -1,2 +1,2 @@
1
- import { a as normalizeContractConfig, i as hasCurrentConfigFormatVersion, n as DEFAULT_CONTRACT_SOURCE_DIR, o as readConfigFormatVersion, r as defineConfig, t as CONFIG_FORMAT_VERSION } from "./config-types-BqhNxw0z.mjs";
2
- export { CONFIG_FORMAT_VERSION, DEFAULT_CONTRACT_SOURCE_DIR, defineConfig, hasCurrentConfigFormatVersion, normalizeContractConfig, readConfigFormatVersion };
1
+ import { n as defineConfig, r as normalizeContractConfig, t as DEFAULT_CONTRACT_SOURCE_DIR } from "./config-types-D_UCRNbm.mjs";
2
+ export { DEFAULT_CONTRACT_SOURCE_DIR, defineConfig, normalizeContractConfig };
@@ -1,6 +1,7 @@
1
- import { l as AuthoringEntityTypeNamespace, o as AuthoringEntityContext, s as AuthoringEntityTypeDescriptor } from "./framework-authoring-BhctBwih-DQ_6noDM.mjs";
2
- import "./authoring-B2H-9qCv.mjs";
3
- import { a as ColumnTypeDescriptor } from "./codec-Ce07W3Mz.mjs";
1
+ import { C as ContractToOneRelation, g as ContractModelBase, n as ApplicationDomain } from "./domain-envelope-CENjHN4U-BIIt9bl4.mjs";
2
+ import { c as AuthoringEntityTypeDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-BYgPL2X6-DMKO0Z_k.mjs";
3
+ import "./authoring-D2ngo2MB.mjs";
4
+ import { a as ColumnTypeDescriptor } from "./codec-DxAIshoO.mjs";
4
5
  //#region ../../../1-framework/2-authoring/contract/dist/index.d.mts
5
6
  //#region src/capability-registry.d.ts
6
7
  type CapabilityMatrix = Readonly<Record<string, Readonly<Record<string, boolean>>>>;
@@ -209,5 +210,39 @@ declare function bindEnumType<CodecTypes extends CodecTypeMap>(): BoundEnumType<
209
210
  */
210
211
  declare function isEnumTypeHandle(value: unknown): value is EnumTypeHandle;
211
212
  //#endregion
212
- export { type AuthoringNamespaceKey, type BoundEnumType, type CapabilityMatrix, type CodecInput, type CodecTypeMap, ENUM_TYPE_HANDLE_BRAND, type EntityHelperFactoryOptions, type EntityHelperFunction, type EntityHelpersFromNamespace, type EnumMember, type EnumTypeHandle, type ExtractAuthoringNamespaceFromPack, type ForeignKeyDefaultsState, type IndexDef, type MergeExtensionAuthoringNamespaces, type UnionToIntersection, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices };
213
+ //#region src/relation-nullability.d.ts
214
+ type ToOneRelationNullabilityContradiction = 'declared-optional' | 'declared-required';
215
+ type ToOneRelationNullability = {
216
+ readonly nullable: boolean;
217
+ readonly contradiction: ToOneRelationNullabilityContradiction | undefined;
218
+ };
219
+ /**
220
+ * The one rule for whether a to-one relation may be absent. The side that holds the reference
221
+ * (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side
222
+ * is always nullable, because nothing in storage guarantees the related record exists. A
223
+ * declaration that disagrees is reported as a contradiction; `nullable` is always the derived
224
+ * value.
225
+ */
226
+ declare function resolveToOneRelationNullable(input: {
227
+ readonly declaredNullable: boolean | undefined;
228
+ readonly localFieldNullability: readonly boolean[];
229
+ readonly ownsReference: boolean;
230
+ }): ToOneRelationNullability;
231
+ type LocalFieldNullabilityLookup = (input: {
232
+ readonly namespaceId: string;
233
+ readonly modelName: string;
234
+ readonly model: ContractModelBase;
235
+ readonly relation: ContractToOneRelation;
236
+ }) => {
237
+ readonly ownsReference: boolean;
238
+ readonly localFieldNullability: readonly boolean[];
239
+ };
240
+ /**
241
+ * Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and
242
+ * local-field nullability the lookup reports. A cross-space relation defaults to nullable.
243
+ * Relations that already carry the flag are left as they are.
244
+ */
245
+ declare function withDerivedToOneRelationNullability<TDomain extends ApplicationDomain>(domain: TDomain, localFieldNullability: LocalFieldNullabilityLookup): TDomain;
246
+ //#endregion
247
+ export { type AuthoringNamespaceKey, type BoundEnumType, type CapabilityMatrix, type CodecInput, type CodecTypeMap, ENUM_TYPE_HANDLE_BRAND, type EntityHelperFactoryOptions, type EntityHelperFunction, type EntityHelpersFromNamespace, type EnumMember, type EnumTypeHandle, type ExtractAuthoringNamespaceFromPack, type ForeignKeyDefaultsState, type IndexDef, type LocalFieldNullabilityLookup, type MergeExtensionAuthoringNamespaces, type ToOneRelationNullability, type ToOneRelationNullabilityContradiction, type UnionToIntersection, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };
213
248
  //# sourceMappingURL=contract-authoring.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-authoring.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.d.mts"],"mappings":";;;;;KAGK,mBAAmB,SAAS,eAAe,SAAS;;;;;;;;;;;;;iBAaxC,2BAA2B,SAAS,cAAc,gCAAgC,eAAe;;;;;;;;;;;;;;;;;;;;KAoB7G,oBAAoB,MAAM,qBAAqB,OAAO,8BAA8B,aAAa,cAAc;KAC/G;KACA,kCAAkC,MAAM,YAAY,uBAAuB,kBAAkB;WACvF,wBAAwB,KAAK,aAAa;IAC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oC,cAAc,KAAK,kDAAkD,KAAK,uDAAuD,0BAA0B,mBAAmB,WAAW,YAAY,YAAY,mBAAmB,WAAW,YAAY,uBAAuB,mBAAmB,WAAW,YAAY,UAAU,MAAM,MAAM,OAAO,UAAU,SAAS,UAAU,eAAe,MAAM,oBAAoB,WAAW,mBAAmB,WAAW,uBAAuB;iBAC3kB,SAAS,cAAc,OAAO,KAAK,oDAAoD,SAAS,gCAAgC;;;;;;;;KAQ5I,cAAc,mBAAmB,uBAAuB,2BAA2B,cAAc,KAAK,uDAAuD,0BAA0B,mBAAmB,WAAW,YAAY,YAAY,mBAAmB,WAAW,YAAY,YAAY,MAAM,MAAM,OAAO,UAAU,SAAS,YAAY,eAAe,MAAM,oBAAoB,WAAW,mBAAmB,WAAW,uBAAuB;;;;;;;iBAOlb,aAAa,mBAAmB,iBAAiB,cAAc;;;;;;iBAM/D,iBAAiB,iBAAiB,SAAS;;;KAGvD;KACA;WACM;WACA,eAAe;;;;;;;;;iBAST,6BAA6B;WACnC;WACA;WACA;IACP;KACC,+BAA+B;WACzB;WACA;WACA,OAAO;WACP,UAAU;;WAEV;WACA;;;;;;;iBAOM,oCAAoC,gBAAgB,mBAAmB,QAAQ,SAAS,uBAAuB,8BAA8B"}
@@ -1,6 +1,6 @@
1
1
  import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
- import { o as structuredError } from "./structured-error-CgiSMpdU.mjs";
3
- import { c as instantiateAuthoringEntityType } from "./framework-authoring-CDEvlouU-DKklu-fL.mjs";
2
+ import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
3
+ import { c as instantiateAuthoringEntityType } from "./framework-authoring-BvxZnsPY-DlD1nwU5.mjs";
4
4
  //#region ../../../1-framework/2-authoring/contract/dist/index.mjs
5
5
  /**
6
6
  * Deep-merges any number of capability matrices into a single matrix.
@@ -127,7 +127,70 @@ function bindEnumType() {
127
127
  function isEnumTypeHandle(value) {
128
128
  return typeof value === "object" && value !== null && Reflect.get(value, "__prismaNextEnumTypeHandle__") === true;
129
129
  }
130
+ /**
131
+ * The one rule for whether a to-one relation may be absent. The side that holds the reference
132
+ * (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side
133
+ * is always nullable, because nothing in storage guarantees the related record exists. A
134
+ * declaration that disagrees is reported as a contradiction; `nullable` is always the derived
135
+ * value.
136
+ */
137
+ function resolveToOneRelationNullable(input) {
138
+ const nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;
139
+ const declared = input.declaredNullable;
140
+ if (declared === void 0 || declared === nullable) return {
141
+ nullable,
142
+ contradiction: void 0
143
+ };
144
+ return {
145
+ nullable,
146
+ contradiction: declared ? "declared-optional" : "declared-required"
147
+ };
148
+ }
149
+ function isToOneReference(relation) {
150
+ return "on" in relation && (relation.cardinality === "1:1" || relation.cardinality === "N:1");
151
+ }
152
+ /**
153
+ * Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and
154
+ * local-field nullability the lookup reports. A cross-space relation defaults to nullable.
155
+ * Relations that already carry the flag are left as they are.
156
+ */
157
+ function withDerivedToOneRelationNullability(domain, localFieldNullability) {
158
+ const namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));
159
+ return {
160
+ ...domain,
161
+ namespaces
162
+ };
163
+ }
164
+ function withDerivedNamespace(namespaceId, namespace, localFieldNullability) {
165
+ const models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));
166
+ return {
167
+ ...namespace,
168
+ models
169
+ };
170
+ }
171
+ function withDerivedModel(namespaceId, modelName, model, localFieldNullability) {
172
+ const relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {
173
+ if (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];
174
+ const nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({
175
+ declaredNullable: void 0,
176
+ ...localFieldNullability({
177
+ namespaceId,
178
+ modelName,
179
+ model,
180
+ relation
181
+ })
182
+ }).nullable;
183
+ return [relationName, {
184
+ ...relation,
185
+ nullable
186
+ }];
187
+ }));
188
+ return {
189
+ ...model,
190
+ relations
191
+ };
192
+ }
130
193
  //#endregion
131
- export { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices };
194
+ export { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };
132
195
 
133
196
  //# sourceMappingURL=contract-authoring.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { instantiateAuthoringEntityType } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\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 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 seenValues = /* @__PURE__ */ new Set();\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 loweredValue = String(m.value);\n\t\tif (seenValues.has(loweredValue)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member value \"${loweredValue}\". Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: loweredValue,\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tseenValues.add(loweredValue);\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\tnativeType: codec.nativeType,\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/**\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\nexport { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, en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AE,IAAI,CAAC,CAAC;CACjE,MAAM,iBAAiB,IAAI,IAAI,OAAO,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3D,OAAO;GACL,yBAAyB;EAC1B,UAAU;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB;EACA;EACA;EACA,SAAS;EACT,MAAM,MAAM,SAAS,IAAI,CAAC;EAC1B,SAAS,MAAM,YAAY,IAAI,CAAC;EAChC,YAAY,MAAM,eAAe,IAAI,CAAC,KAAK;CAC5C;AACD;;;;;;;AAOA,SAAS,eAAe;CACvB,OAAO;AACR;;;;;;AAMA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,QAAQ,IAAI,OAAO,8BAA8B,MAAM;AAC9G"}
1
+ {"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { instantiateAuthoringEntityType } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\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 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 seenValues = /* @__PURE__ */ new Set();\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 loweredValue = String(m.value);\n\t\tif (seenValues.has(loweredValue)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member value \"${loweredValue}\". Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: loweredValue,\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tseenValues.add(loweredValue);\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\tnativeType: codec.nativeType,\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/**\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/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, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,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,OAAO,OAAO,mBAAmB,YAAY,KAAK,GAAG,GAAG,OAAO,OAAO;GACtE;EACD;EACA,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK,GAAG,OAAO,OAAO,iCAAiC,OAAO,SAAS,WAAW;CACrJ;CACA,OAAO;AACR;AACA,SAAS,uBAAuB,OAAO;CACtC,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,MAAM,SAAS,UAAU,OAAO;CACnF,MAAM,gBAAgB,MAAM;CAC5B,OAAO,OAAO,kBAAkB,YAAY,cAAc,SAAS;A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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,14 +1,14 @@
1
- import { A as ExecutionHashBase, J as StorageBase, S as ContractValueObject, T as CrossReference, W as ProfileHashBase, j as ExecutionMutationDefault, n as ApplicationDomain } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
2
- //#region ../../../1-framework/0-foundation/contract/dist/contract-types-CkdMH7F7.d.mts
1
+ import { D as CrossReference, K as ProfileHashBase, M as ExecutionHashBase, N as ExecutionMutationDefault, X as StorageBase, n as ApplicationDomain, w as ContractValueObject } from "./domain-envelope-CENjHN4U-BIIt9bl4.mjs";
2
+ //#region ../../../1-framework/0-foundation/contract/dist/contract-types-Bje5yT4f.d.mts
3
3
  //#region src/control-policy.d.ts
4
4
  /**
5
5
  * Governance posture for a storage-plane node or for the contract as a whole.
6
6
  *
7
- * - `managed` — Prisma Next owns the full lifecycle (DDL, migrations, verification).
8
- * - `tolerated` — node was found in the database but is not schema-managed; Prisma Next
7
+ * - `managed` — Prisma 8 owns the full lifecycle (DDL, migrations, verification).
8
+ * - `tolerated` — node was found in the database but is not schema-managed; Prisma 8
9
9
  * leaves it untouched while tracking its existence.
10
- * - `external` — node is owned by an external system; Prisma Next never emits DDL for it.
11
- * - `observed` — read-only access; Prisma Next does not write to or migrate the node.
10
+ * - `external` — node is owned by an external system; Prisma 8 never emits DDL for it.
11
+ * - `observed` — read-only access; Prisma 8 does not write to or migrate the node.
12
12
  */
13
13
  type ControlPolicy = 'managed' | 'tolerated' | 'external' | 'observed';
14
14
  /**
@@ -74,4 +74,4 @@ type NamespaceValueObjectsOf<TNamespace> = TNamespace extends {
74
74
  type ContractValueObjectDefinitions<TContract extends Contract> = NamespaceValueObjectsOf<TContract['domain']['namespaces'][ExactlyOneNamespace<TContract['domain']['namespaces']>]> extends (infer Projected) ? Projected extends Record<string, ContractValueObject> ? Projected : Record<never, never> : Record<never, never>;
75
75
  //#endregion
76
76
  export { effectiveControlPolicy as a, ControlPolicy as i, ContractExecutionSection as n, ContractValueObjectDefinitions as r, Contract as t };
77
- //# sourceMappingURL=contract-types-CkdMH7F7-9EHXSwbH.d.mts.map
77
+ //# sourceMappingURL=contract-types-Bje5yT4f-0D1Z41Lq.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-types-CkdMH7F7-9EHXSwbH.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-types-CkdMH7F7.d.mts"],"mappings":";;;;;;;;;;;;KAWK;;;;;;;;;iBASY,uBAAuB,aAAa,2BAA2B,sBAAsB,4BAA4B;;;;;;;;;;;;KAY7H,yBAAyB;WACnB,eAAe,kBAAkB;WACjC;aACE,UAAU,cAAc;;;;;;;;;;;;;;;;UAgB3B,SAAS,iBAAiB,cAAc;WACvC;WACA;WACA,OAAO,eAAe;;;;WAItB,QAAQ;WACR,SAAS;WACT,cAAc,eAAe;WAC7B,YAAY;WACZ,YAAY;WACZ,aAAa;WACb,MAAM;WACN,uBAAuB;;KAE7B,oBAAoB,UAAU,iCAAiC,iBAAiB,mBAAmB,YAAY,YAAY,QAAQ;KACnI,wBAAwB,cAAc;WAChC,qBAAqB;IAC5B,WAAW,eAAe,uBAAuB,KAAK,uBAAuB;;KAE5E,+BAA+B,kBAAkB,YAAY,wBAAwB,kCAAkC,oBAAoB,oDAAoD,aAAa,kBAAkB,eAAe,uBAAuB,YAAY,uBAAuB"}
1
+ {"version":3,"file":"contract-types-Bje5yT4f-0D1Z41Lq.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-types-Bje5yT4f.d.mts"],"mappings":";;;;;;;;;;;;KAWK;;;;;;;;;iBASY,uBAAuB,aAAa,2BAA2B,sBAAsB,4BAA4B;;;;;;;;;;;;KAY7H,yBAAyB;WACnB,eAAe,kBAAkB;WACjC;aACE,UAAU,cAAc;;;;;;;;;;;;;;;;UAgB3B,SAAS,iBAAiB,cAAc;WACvC;WACA;WACA,OAAO,eAAe;;;;WAItB,QAAQ;WACR,SAAS;WACT,cAAc,eAAe;WAC7B,YAAY;WACZ,YAAY;WACZ,aAAa;WACb,MAAM;WACN,uBAAuB;;KAE7B,oBAAoB,UAAU,iCAAiC,iBAAiB,mBAAmB,YAAY,YAAY,QAAQ;KACnI,wBAAwB,cAAc;WAChC,qBAAqB;IAC5B,WAAW,eAAe,uBAAuB,KAAK,uBAAuB;;KAE5E,+BAA+B,kBAAkB,YAAY,wBAAwB,kCAAkC,oBAAoB,oDAAoD,aAAa,kBAAkB,eAAe,uBAAuB,YAAY,uBAAuB"}