@prisma/orm-framework 0.16.0-dev.36

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 (332) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +27 -0
  3. package/dist/abortable-CQO6uG9F.mjs +39 -0
  4. package/dist/abortable-CQO6uG9F.mjs.map +1 -0
  5. package/dist/abortable-DBbAaT_4.d.mts +29 -0
  6. package/dist/abortable-DBbAaT_4.d.mts.map +1 -0
  7. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts +7 -0
  8. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +1 -0
  9. package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs +12 -0
  10. package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs.map +1 -0
  11. package/dist/array-equal-28xupwIB.mjs +26 -0
  12. package/dist/array-equal-28xupwIB.mjs.map +1 -0
  13. package/dist/array-equal-dUd-VPlk.d.mts +22 -0
  14. package/dist/array-equal-dUd-VPlk.d.mts.map +1 -0
  15. package/dist/assertions-BEQnOIQd.d.mts +31 -0
  16. package/dist/assertions-BEQnOIQd.d.mts.map +1 -0
  17. package/dist/assertions-Cz-GWH8P.mjs +36 -0
  18. package/dist/assertions-Cz-GWH8P.mjs.map +1 -0
  19. package/dist/authoring-Dd7p6pTS.d.mts +1 -0
  20. package/dist/canonical-stringify-Bl6agy_g.d.mts +51 -0
  21. package/dist/canonical-stringify-Bl6agy_g.d.mts.map +1 -0
  22. package/dist/canonical-stringify-DY4NaAJi.mjs +104 -0
  23. package/dist/canonical-stringify-DY4NaAJi.mjs.map +1 -0
  24. package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts +69 -0
  25. package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts.map +1 -0
  26. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +25 -0
  27. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +1 -0
  28. package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs +64 -0
  29. package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs.map +1 -0
  30. package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts +34 -0
  31. package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts.map +1 -0
  32. package/dist/casts-D29CHGrr.d.mts +78 -0
  33. package/dist/casts-D29CHGrr.d.mts.map +1 -0
  34. package/dist/casts-DpaahrlC-Bd5n2coI.mjs +82 -0
  35. package/dist/casts-DpaahrlC-Bd5n2coI.mjs.map +1 -0
  36. package/dist/codec-Cly9VPoA.mjs +78 -0
  37. package/dist/codec-Cly9VPoA.mjs.map +1 -0
  38. package/dist/codec-D3GVAkR_.d.mts +116 -0
  39. package/dist/codec-D3GVAkR_.d.mts.map +1 -0
  40. package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts +221 -0
  41. package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts.map +1 -0
  42. package/dist/components-CawuxTia.d.mts +1 -0
  43. package/dist/components.d.mts +20 -0
  44. package/dist/components.mjs +15 -0
  45. package/dist/components__authoring.d.mts +3 -0
  46. package/dist/components__authoring.mjs +2 -0
  47. package/dist/components__codec.d.mts +3 -0
  48. package/dist/components__codec.mjs +3 -0
  49. package/dist/components__components.d.mts +4 -0
  50. package/dist/components__components.mjs +3 -0
  51. package/dist/components__control.d.mts +4 -0
  52. package/dist/components__control.mjs +2 -0
  53. package/dist/components__emission.d.mts +4 -0
  54. package/dist/components__emission.mjs +2 -0
  55. package/dist/components__execution.d.mts +2 -0
  56. package/dist/components__execution.mjs +2 -0
  57. package/dist/components__ir.d.mts +3 -0
  58. package/dist/components__ir.mjs +3 -0
  59. package/dist/components__psl-ast.d.mts +4 -0
  60. package/dist/components__psl-ast.mjs +2 -0
  61. package/dist/components__runtime.d.mts +2 -0
  62. package/dist/components__runtime.mjs +3 -0
  63. package/dist/components__utils.d.mts +2 -0
  64. package/dist/components__utils.mjs +2 -0
  65. package/dist/config-errors-CBdiX587-DwIyJIX9.mjs +9 -0
  66. package/dist/config-errors-CBdiX587-DwIyJIX9.mjs.map +1 -0
  67. package/dist/config-types-Cf9lVsHR.mjs +62 -0
  68. package/dist/config-types-Cf9lVsHR.mjs.map +1 -0
  69. package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts +162 -0
  70. package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts.map +1 -0
  71. package/dist/config-types-zrHI32Om.d.mts +1 -0
  72. package/dist/config-validation-ByGTw6zQ.mjs +99 -0
  73. package/dist/config-validation-ByGTw6zQ.mjs.map +1 -0
  74. package/dist/config-validation-DXggMTZf.d.mts +14 -0
  75. package/dist/config-validation-DXggMTZf.d.mts.map +1 -0
  76. package/dist/config.d.mts +4 -0
  77. package/dist/config.mjs +3 -0
  78. package/dist/config__config-types.d.mts +3 -0
  79. package/dist/config__config-types.mjs +2 -0
  80. package/dist/config__config-validation.d.mts +2 -0
  81. package/dist/config__config-validation.mjs +2 -0
  82. package/dist/contract-authoring.d.mts +213 -0
  83. package/dist/contract-authoring.d.mts.map +1 -0
  84. package/dist/contract-authoring.mjs +133 -0
  85. package/dist/contract-authoring.mjs.map +1 -0
  86. package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts +77 -0
  87. package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +1 -0
  88. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs +14 -0
  89. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +1 -0
  90. package/dist/contract-validation-error-R7cMoK04.d.mts +11 -0
  91. package/dist/contract-validation-error-R7cMoK04.d.mts.map +1 -0
  92. package/dist/contract.d.mts +14 -0
  93. package/dist/contract.mjs +13 -0
  94. package/dist/contract__apply-specifier-default-control-policy.d.mts +2 -0
  95. package/dist/contract__apply-specifier-default-control-policy.mjs +2 -0
  96. package/dist/contract__contract-validation-error.d.mts +2 -0
  97. package/dist/contract__contract-validation-error.mjs +2 -0
  98. package/dist/contract__default-namespace.d.mts +2 -0
  99. package/dist/contract__default-namespace.mjs +2 -0
  100. package/dist/contract__enum-accessor.d.mts +2 -0
  101. package/dist/contract__enum-accessor.mjs +2 -0
  102. package/dist/contract__hashing-utils.d.mts +2 -0
  103. package/dist/contract__hashing-utils.mjs +3 -0
  104. package/dist/contract__hashing.d.mts +3 -0
  105. package/dist/contract__hashing.mjs +2 -0
  106. package/dist/contract__is-plain-record.d.mts +2 -0
  107. package/dist/contract__is-plain-record.mjs +2 -0
  108. package/dist/contract__resolve-domain-model.d.mts +2 -0
  109. package/dist/contract__resolve-domain-model.mjs +2 -0
  110. package/dist/contract__types.d.mts +6 -0
  111. package/dist/contract__types.mjs +5 -0
  112. package/dist/contract__validate-domain.d.mts +2 -0
  113. package/dist/contract__validate-domain.mjs +2 -0
  114. package/dist/control-B87KWI_K-C_R8WfEr.d.mts +213 -0
  115. package/dist/control-B87KWI_K-C_R8WfEr.d.mts.map +1 -0
  116. package/dist/control-CBvTj7Ia.d.mts +1383 -0
  117. package/dist/control-CBvTj7Ia.d.mts.map +1 -0
  118. package/dist/control-DTouE89s.mjs +621 -0
  119. package/dist/control-DTouE89s.mjs.map +1 -0
  120. package/dist/control-Ftiau058-CCeJcAVQ.mjs +284 -0
  121. package/dist/control-Ftiau058-CCeJcAVQ.mjs.map +1 -0
  122. package/dist/declarations-DR6To8_k-BFwkCGeP.mjs +1046 -0
  123. package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +1 -0
  124. package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs +39 -0
  125. package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs.map +1 -0
  126. package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts +26 -0
  127. package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts.map +1 -0
  128. package/dist/defined-BQWA85QH-BRSBMULx.mjs +31 -0
  129. package/dist/defined-BQWA85QH-BRSBMULx.mjs.map +1 -0
  130. package/dist/defined-BSXuxrnl.d.mts +28 -0
  131. package/dist/defined-BSXuxrnl.d.mts.map +1 -0
  132. package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts +359 -0
  133. package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +1 -0
  134. package/dist/emission-CeoAV9mj.mjs +26 -0
  135. package/dist/emission-CeoAV9mj.mjs.map +1 -0
  136. package/dist/emission-DeoQufVd.d.mts +1 -0
  137. package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts +75 -0
  138. package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts.map +1 -0
  139. package/dist/enum-accessor-Db5DaTNX.mjs +35 -0
  140. package/dist/enum-accessor-Db5DaTNX.mjs.map +1 -0
  141. package/dist/enum-accessor-PH5vjghI.d.mts +85 -0
  142. package/dist/enum-accessor-PH5vjghI.d.mts.map +1 -0
  143. package/dist/errors.d.mts +4 -0
  144. package/dist/errors.mjs +4 -0
  145. package/dist/errors__control.d.mts +2 -0
  146. package/dist/errors__control.mjs +2 -0
  147. package/dist/errors__execution.d.mts +2 -0
  148. package/dist/errors__execution.mjs +2 -0
  149. package/dist/errors__migration.d.mts +2 -0
  150. package/dist/errors__migration.mjs +2 -0
  151. package/dist/execution-BNwBzmRd.mjs +40 -0
  152. package/dist/execution-BNwBzmRd.mjs.map +1 -0
  153. package/dist/execution-BbOD4GyR.mjs +164 -0
  154. package/dist/execution-BbOD4GyR.mjs.map +1 -0
  155. package/dist/execution-Bo5Bu2Ys.d.mts +79 -0
  156. package/dist/execution-Bo5Bu2Ys.d.mts.map +1 -0
  157. package/dist/execution-MOde1lmD.d.mts +98 -0
  158. package/dist/execution-MOde1lmD.d.mts.map +1 -0
  159. package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts +777 -0
  160. package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts.map +1 -0
  161. package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs +698 -0
  162. package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs.map +1 -0
  163. package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs +27 -0
  164. package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs.map +1 -0
  165. package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts +388 -0
  166. package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts.map +1 -0
  167. package/dist/hash-content-Bugg_nZn.mjs +63 -0
  168. package/dist/hash-content-Bugg_nZn.mjs.map +1 -0
  169. package/dist/hash-content-DwEUh-Rx.d.mts +59 -0
  170. package/dist/hash-content-DwEUh-Rx.d.mts.map +1 -0
  171. package/dist/hashing-BtIZVNYX.mjs +199 -0
  172. package/dist/hashing-BtIZVNYX.mjs.map +1 -0
  173. package/dist/hashing-CccSPELN.d.mts +25 -0
  174. package/dist/hashing-CccSPELN.d.mts.map +1 -0
  175. package/dist/hashing-utils-DQgS3nOe.mjs +48 -0
  176. package/dist/hashing-utils-DQgS3nOe.mjs.map +1 -0
  177. package/dist/hashing-utils-qKu59RSC.d.mts +19 -0
  178. package/dist/hashing-utils-qKu59RSC.d.mts.map +1 -0
  179. package/dist/ids.d.mts +44 -0
  180. package/dist/ids.d.mts.map +1 -0
  181. package/dist/ids.mjs +96 -0
  182. package/dist/ids.mjs.map +1 -0
  183. package/dist/ids__runtime.d.mts +7 -0
  184. package/dist/ids__runtime.d.mts.map +1 -0
  185. package/dist/ids__runtime.mjs +31 -0
  186. package/dist/ids__runtime.mjs.map +1 -0
  187. package/dist/index-GY2oGH9L.d.mts +120 -0
  188. package/dist/index-GY2oGH9L.d.mts.map +1 -0
  189. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs +24 -0
  190. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +1 -0
  191. package/dist/internal-error-kK8QvlDE.d.mts +19 -0
  192. package/dist/internal-error-kK8QvlDE.d.mts.map +1 -0
  193. package/dist/ir-BvE7L9FK.d.mts +359 -0
  194. package/dist/ir-BvE7L9FK.d.mts.map +1 -0
  195. package/dist/ir-ChmSSAhX.mjs +200 -0
  196. package/dist/ir-ChmSSAhX.mjs.map +1 -0
  197. package/dist/is-plain-record-C9BWiqcw.d.mts +12 -0
  198. package/dist/is-plain-record-C9BWiqcw.d.mts.map +1 -0
  199. package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs +16 -0
  200. package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs.map +1 -0
  201. package/dist/json-Dkqr3say.d.mts +26 -0
  202. package/dist/json-Dkqr3say.d.mts.map +1 -0
  203. package/dist/migration-4VOHVEzx.mjs +118 -0
  204. package/dist/migration-4VOHVEzx.mjs.map +1 -0
  205. package/dist/migration-DKbDzBwy.d.mts +74 -0
  206. package/dist/migration-DKbDzBwy.d.mts.map +1 -0
  207. package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs +9 -0
  208. package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs.map +1 -0
  209. package/dist/operations.d.mts +46 -0
  210. package/dist/operations.d.mts.map +1 -0
  211. package/dist/operations.mjs +28 -0
  212. package/dist/operations.mjs.map +1 -0
  213. package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts +427 -0
  214. package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts.map +1 -0
  215. package/dist/parse-GbZGfMUj-BFSrD2AN.mjs +621 -0
  216. package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +1 -0
  217. package/dist/promise-D8meygPf.mjs +13 -0
  218. package/dist/promise-D8meygPf.mjs.map +1 -0
  219. package/dist/promise-DHJWZv49.d.mts +11 -0
  220. package/dist/promise-DHJWZv49.d.mts.map +1 -0
  221. package/dist/psl-ast-BEwO80EH.d.mts +37 -0
  222. package/dist/psl-ast-BEwO80EH.d.mts.map +1 -0
  223. package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts +259 -0
  224. package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts.map +1 -0
  225. package/dist/psl-ast-DUCvVXbB.mjs +239 -0
  226. package/dist/psl-ast-DUCvVXbB.mjs.map +1 -0
  227. package/dist/psl-parser.d.mts +158 -0
  228. package/dist/psl-parser.d.mts.map +1 -0
  229. package/dist/psl-parser.mjs +804 -0
  230. package/dist/psl-parser.mjs.map +1 -0
  231. package/dist/psl-parser__format.d.mts +12 -0
  232. package/dist/psl-parser__format.d.mts.map +1 -0
  233. package/dist/psl-parser__format.mjs +464 -0
  234. package/dist/psl-parser__format.mjs.map +1 -0
  235. package/dist/psl-parser__interpret.d.mts +40 -0
  236. package/dist/psl-parser__interpret.d.mts.map +1 -0
  237. package/dist/psl-parser__interpret.mjs +25 -0
  238. package/dist/psl-parser__interpret.mjs.map +1 -0
  239. package/dist/psl-parser__syntax.d.mts +31 -0
  240. package/dist/psl-parser__syntax.d.mts.map +1 -0
  241. package/dist/psl-parser__syntax.mjs +43 -0
  242. package/dist/psl-parser__syntax.mjs.map +1 -0
  243. package/dist/psl-parser__tokenizer.d.mts +2 -0
  244. package/dist/psl-parser__tokenizer.mjs +2 -0
  245. package/dist/psl-printer.d.mts +37 -0
  246. package/dist/psl-printer.d.mts.map +1 -0
  247. package/dist/psl-printer.mjs +393 -0
  248. package/dist/psl-printer.mjs.map +1 -0
  249. package/dist/redact-db-url-BlaloOwt.d.mts +22 -0
  250. package/dist/redact-db-url-BlaloOwt.d.mts.map +1 -0
  251. package/dist/redact-db-url-CRWJWdB1.mjs +26 -0
  252. package/dist/redact-db-url-CRWJWdB1.mjs.map +1 -0
  253. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +59 -0
  254. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +1 -0
  255. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts +17 -0
  256. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +1 -0
  257. package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs +20 -0
  258. package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs.map +1 -0
  259. package/dist/result-Bpupv5vO.d.mts +54 -0
  260. package/dist/result-Bpupv5vO.d.mts.map +1 -0
  261. package/dist/result-CBZ8X9mU.mjs +92 -0
  262. package/dist/result-CBZ8X9mU.mjs.map +1 -0
  263. package/dist/runtime--RZXG1zP.d.mts +901 -0
  264. package/dist/runtime--RZXG1zP.d.mts.map +1 -0
  265. package/dist/runtime-DYTFHGwh.mjs +516 -0
  266. package/dist/runtime-DYTFHGwh.mjs.map +1 -0
  267. package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs +40 -0
  268. package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs.map +1 -0
  269. package/dist/simplify-deep-Dw9I_ZUl.d.mts +6 -0
  270. package/dist/simplify-deep-Dw9I_ZUl.d.mts.map +1 -0
  271. package/dist/structured-error-BVmv2aPB.d.mts +34 -0
  272. package/dist/structured-error-BVmv2aPB.d.mts.map +1 -0
  273. package/dist/structured-error-H6WU9Kjt.mjs +31 -0
  274. package/dist/structured-error-H6WU9Kjt.mjs.map +1 -0
  275. package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts +125 -0
  276. package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts.map +1 -0
  277. package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs +228 -0
  278. package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +1 -0
  279. package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts +16 -0
  280. package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +1 -0
  281. package/dist/ts-render.d.mts +2 -0
  282. package/dist/ts-render.mjs +240 -0
  283. package/dist/ts-render.mjs.map +1 -0
  284. package/dist/types-ByeQhU9p.d.mts +17 -0
  285. package/dist/types-ByeQhU9p.d.mts.map +1 -0
  286. package/dist/types-DGxlljKG.d.mts +7 -0
  287. package/dist/types-DGxlljKG.d.mts.map +1 -0
  288. package/dist/types-DgdgskBY.mjs +96 -0
  289. package/dist/types-DgdgskBY.mjs.map +1 -0
  290. package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts +14 -0
  291. package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts.map +1 -0
  292. package/dist/utils-DMAM0unR.mjs +20 -0
  293. package/dist/utils-DMAM0unR.mjs.map +1 -0
  294. package/dist/utils-DeWL_zD9.d.mts +11 -0
  295. package/dist/utils-DeWL_zD9.d.mts.map +1 -0
  296. package/dist/utils.d.mts +16 -0
  297. package/dist/utils.mjs +13 -0
  298. package/dist/utils__abortable.d.mts +2 -0
  299. package/dist/utils__abortable.mjs +2 -0
  300. package/dist/utils__array-equal.d.mts +2 -0
  301. package/dist/utils__array-equal.mjs +2 -0
  302. package/dist/utils__assertions.d.mts +2 -0
  303. package/dist/utils__assertions.mjs +2 -0
  304. package/dist/utils__canonical-stringify.d.mts +2 -0
  305. package/dist/utils__canonical-stringify.mjs +2 -0
  306. package/dist/utils__casts.d.mts +2 -0
  307. package/dist/utils__casts.mjs +2 -0
  308. package/dist/utils__defined.d.mts +2 -0
  309. package/dist/utils__defined.mjs +2 -0
  310. package/dist/utils__hash-content.d.mts +2 -0
  311. package/dist/utils__hash-content.mjs +2 -0
  312. package/dist/utils__internal-error.d.mts +2 -0
  313. package/dist/utils__internal-error.mjs +2 -0
  314. package/dist/utils__json.d.mts +2 -0
  315. package/dist/utils__json.mjs +1 -0
  316. package/dist/utils__promise.d.mts +2 -0
  317. package/dist/utils__promise.mjs +2 -0
  318. package/dist/utils__redact-db-url.d.mts +2 -0
  319. package/dist/utils__redact-db-url.mjs +2 -0
  320. package/dist/utils__result.d.mts +2 -0
  321. package/dist/utils__result.mjs +2 -0
  322. package/dist/utils__simplify-deep.d.mts +2 -0
  323. package/dist/utils__simplify-deep.mjs +1 -0
  324. package/dist/utils__structured-error.d.mts +2 -0
  325. package/dist/utils__structured-error.mjs +2 -0
  326. package/dist/utils__types.d.mts +2 -0
  327. package/dist/utils__types.mjs +1 -0
  328. package/dist/validate-domain-BNBs-TVv.d.mts +22 -0
  329. package/dist/validate-domain-BNBs-TVv.d.mts.map +1 -0
  330. package/dist/validate-domain-BkvFlY3B.mjs +143 -0
  331. package/dist/validate-domain-BkvFlY3B.mjs.map +1 -0
  332. package/package.json +114 -0
@@ -0,0 +1,26 @@
1
+ //#region ../../../1-framework/1-core/framework-components/dist/emission.mjs
2
+ /**
3
+ * Emits every specifier exactly as authored. This is the default everywhere:
4
+ * generated files keep naming workspace packages until every consumer in the
5
+ * repository imports published names instead.
6
+ */
7
+ const keepInternalSpecifiers = (specifier) => specifier;
8
+ /**
9
+ * Applies a resolver to an assembled import-requirement list, once, after
10
+ * every contributor has added its requirements.
11
+ *
12
+ * Each target's migration renderer does exactly this, and doing it here rather
13
+ * than per renderer is what makes "applied once to the whole list" a property
14
+ * of the emission surface instead of three coincidences. Omitting the resolver
15
+ * means {@link keepInternalSpecifiers}.
16
+ */
17
+ function resolveRequirementSpecifiers(requirements, resolve = keepInternalSpecifiers) {
18
+ return requirements.map((requirement) => ({
19
+ ...requirement,
20
+ moduleSpecifier: resolve(requirement.moduleSpecifier)
21
+ }));
22
+ }
23
+ //#endregion
24
+ export { resolveRequirementSpecifiers as n, keepInternalSpecifiers as t };
25
+
26
+ //# sourceMappingURL=emission-CeoAV9mj.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emission-CeoAV9mj.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/emission.mjs"],"sourcesContent":["//#region src/shared/import-specifier-resolver.ts\n/**\n* Emits every specifier exactly as authored. This is the default everywhere:\n* generated files keep naming workspace packages until every consumer in the\n* repository imports published names instead.\n*/\nconst keepInternalSpecifiers = (specifier) => specifier;\n/**\n* Applies a resolver to an assembled import-requirement list, once, after\n* every contributor has added its requirements.\n*\n* Each target's migration renderer does exactly this, and doing it here rather\n* than per renderer is what makes \"applied once to the whole list\" a property\n* of the emission surface instead of three coincidences. Omitting the resolver\n* means {@link keepInternalSpecifiers}.\n*/\nfunction resolveRequirementSpecifiers(requirements, resolve = keepInternalSpecifiers) {\n\treturn requirements.map((requirement) => ({\n\t\t...requirement,\n\t\tmoduleSpecifier: resolve(requirement.moduleSpecifier)\n\t}));\n}\n//#endregion\nexport { keepInternalSpecifiers, resolveRequirementSpecifiers };\n\n//# sourceMappingURL=emission.mjs.map"],"mappings":";;;;;;AAMA,MAAM,0BAA0B,cAAc;;;;;;;;;;AAU9C,SAAS,6BAA6B,cAAc,UAAU,wBAAwB;CACrF,OAAO,aAAa,KAAK,iBAAiB;EACzC,GAAG;EACH,iBAAiB,QAAQ,YAAY,eAAe;CACrD,EAAE;AACH"}
@@ -0,0 +1 @@
1
+ import "./emission-types-hfRVB_Yw-DpQ3hISB.mjs";
@@ -0,0 +1,75 @@
1
+ import { g as ContractModelBase, z as JsonValue } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
2
+ import { t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
3
+ import { c as CodecLookup } from "./codec-types-XJO6eC9U-B_K2q0zm.mjs";
4
+ import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20-WYwyCtil.mjs";
5
+ //#region ../../../1-framework/1-core/framework-components/dist/emission-types-hfRVB_Yw.d.mts
6
+ //#region src/shared/import-specifier-resolver.d.ts
7
+ /**
8
+ * Rewrites one module specifier for the import root a generated file is being
9
+ * emitted for. Specifiers the root does not govern — relative paths, `node:`
10
+ * builtins, third-party packages — come back unchanged.
11
+ *
12
+ * Emission is handed a resolver rather than a mode because the map from
13
+ * workspace names to published names is packaging data (ADR 242), which
14
+ * `@internal/publish-surface/import-roots` owns. Nothing here needs to know
15
+ * what the published names are.
16
+ */
17
+ type ImportSpecifierResolver = (specifier: string) => string;
18
+ /**
19
+ * Emits every specifier exactly as authored. This is the default everywhere:
20
+ * generated files keep naming workspace packages until every consumer in the
21
+ * repository imports published names instead.
22
+ */
23
+ declare const keepInternalSpecifiers: ImportSpecifierResolver;
24
+ /**
25
+ * Applies a resolver to an assembled import-requirement list, once, after
26
+ * every contributor has added its requirements.
27
+ *
28
+ * Each target's migration renderer does exactly this, and doing it here rather
29
+ * than per renderer is what makes "applied once to the whole list" a property
30
+ * of the emission surface instead of three coincidences. Omitting the resolver
31
+ * means {@link keepInternalSpecifiers}.
32
+ */
33
+ declare function resolveRequirementSpecifiers<T extends {
34
+ readonly moduleSpecifier: string;
35
+ }>(requirements: readonly T[], resolve?: ImportSpecifierResolver): Array<Omit<T, 'moduleSpecifier'> & {
36
+ readonly moduleSpecifier: string;
37
+ }>;
38
+ //#endregion
39
+ //#region src/control/emission-types.d.ts
40
+ interface GenerateContractTypesOptions {
41
+ readonly queryOperationTypeImports?: ReadonlyArray<TypesImportSpec>;
42
+ }
43
+ interface ValidationContext {
44
+ readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
45
+ readonly extensionIds?: ReadonlyArray<string>;
46
+ }
47
+ interface EmissionSpi {
48
+ readonly id: string;
49
+ generateStorageType(contract: Contract, storageHashTypeName: string): string;
50
+ generateModelStorageType(modelName: string, model: ContractModelBase): string;
51
+ /**
52
+ * The import lines the family's own contract surface needs, with every
53
+ * specifier passed through `resolveImportSpecifier` so the emitted file
54
+ * names packages the consuming application actually depends on.
55
+ */
56
+ getFamilyImports(resolveImportSpecifier: ImportSpecifierResolver): string[];
57
+ getFamilyTypeAliases(options?: GenerateContractTypesOptions): string;
58
+ getTypeMapsExpression(): string;
59
+ getContractWrapper(contractBaseName: string, typeMapsName: string): string;
60
+ resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): Record<string, unknown> | undefined;
61
+ /**
62
+ * Resolves a field's permitted values (codec-encoded) plus the codec that types them, or
63
+ * `undefined` for a field with no restricted value set. The framework renders the values into a TS
64
+ * literal union through the codec seam. Each family decides where the values live — a value set in
65
+ * its own storage plane, or another family-owned source.
66
+ */
67
+ resolveFieldValueSet?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): {
68
+ readonly encodedValues: readonly JsonValue[];
69
+ readonly codecId: string;
70
+ } | undefined;
71
+ getStorageTypeExports?(contract: Contract, codecLookup?: CodecLookup): string | undefined;
72
+ }
73
+ //#endregion
74
+ export { keepInternalSpecifiers as a, ValidationContext as i, GenerateContractTypesOptions as n, resolveRequirementSpecifiers as o, ImportSpecifierResolver as r, EmissionSpi as t };
75
+ //# sourceMappingURL=emission-types-hfRVB_Yw-DpQ3hISB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emission-types-hfRVB_Yw-DpQ3hISB.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/emission-types-hfRVB_Yw.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAcK,2BAA2B;;;;;;cAMlB,wBAAwB;;;;;;;;;;iBAUrB,6BAA6B;WACnC;GACR,uBAAuB,KAAK,UAAU,0BAA0B,MAAM,KAAK;WACnE;;;;UAID;WACC,4BAA4B,cAAc;;UAE3C;WACC,mBAAmB,cAAc;WACjC,eAAe;;UAEhB;WACC;EACT,oBAAoB,UAAU,UAAU;EACxC,yBAAyB,mBAAmB,OAAO;;;;;;EAMnD,iBAAiB,wBAAwB;EACzC,qBAAqB,UAAU;EAC/B;EACA,mBAAmB,0BAA0B;EAC7C,wBAAwB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU,WAAW;;;;;;;EAO7G,sBAAsB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU;aACrF,wBAAwB;aACxB;;EAEX,uBAAuB,UAAU,UAAU,cAAc"}
@@ -0,0 +1,35 @@
1
+ import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
+ //#region ../../../1-framework/0-foundation/contract/dist/enum-accessor.mjs
3
+ function createEnumAccessor(contractEnum) {
4
+ const values = Object.freeze(contractEnum.members.map((m) => m.value));
5
+ const names = Object.freeze(contractEnum.members.map((m) => m.name));
6
+ const members = Object.freeze(Object.fromEntries(contractEnum.members.map((m) => [m.name, m.value])));
7
+ const valueSet = new Set(values);
8
+ const nameSet = Object.freeze(new Set(names));
9
+ const valueToName = new Map(contractEnum.members.map((m) => [m.value, m.name]));
10
+ const valueToOrdinal = new Map(values.map((v, i) => [v, i]));
11
+ return {
12
+ values,
13
+ names,
14
+ members,
15
+ has: (v) => valueSet.has(v),
16
+ hasName: (name) => nameSet.has(name),
17
+ nameOf: (v) => valueToName.get(v),
18
+ ordinalOf: (v) => valueToOrdinal.get(v) ?? -1
19
+ };
20
+ }
21
+ function buildEnumsMapForNamespace(domain, namespaceId) {
22
+ const result = {};
23
+ const namespace = domain.namespaces[namespaceId];
24
+ if (namespace?.enum) for (const [name, contractEnum] of Object.entries(namespace.enum)) result[name] = createEnumAccessor(contractEnum);
25
+ return result;
26
+ }
27
+ function buildNamespacedEnums(domain) {
28
+ const result = {};
29
+ for (const namespaceId of Object.keys(domain.namespaces)) result[namespaceId] = buildEnumsMapForNamespace(domain, namespaceId);
30
+ return blindCast(result);
31
+ }
32
+ //#endregion
33
+ export { buildNamespacedEnums as n, createEnumAccessor as r, buildEnumsMapForNamespace as t };
34
+
35
+ //# sourceMappingURL=enum-accessor-Db5DaTNX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-accessor-Db5DaTNX.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\n//#region src/enum-accessor.ts\nfunction createEnumAccessor(contractEnum) {\n\tconst values = Object.freeze(contractEnum.members.map((m) => m.value));\n\tconst names = Object.freeze(contractEnum.members.map((m) => m.name));\n\tconst members = Object.freeze(Object.fromEntries(contractEnum.members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst nameSet = Object.freeze(new Set(names));\n\tconst valueToName = new Map(contractEnum.members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\tvalues,\n\t\tnames,\n\t\tmembers,\n\t\thas: (v) => valueSet.has(v),\n\t\thasName: (name) => nameSet.has(name),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\nfunction buildEnumsMapForNamespace(domain, namespaceId) {\n\tconst result = {};\n\tconst namespace = domain.namespaces[namespaceId];\n\tif (namespace?.enum) for (const [name, contractEnum] of Object.entries(namespace.enum)) result[name] = createEnumAccessor(contractEnum);\n\treturn result;\n}\nfunction buildNamespacedEnums(domain) {\n\tconst result = {};\n\tfor (const namespaceId of Object.keys(domain.namespaces)) result[namespaceId] = buildEnumsMapForNamespace(domain, namespaceId);\n\treturn blindCast(result);\n}\n//#endregion\nexport { buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };\n\n//# sourceMappingURL=enum-accessor.mjs.map"],"mappings":";;AAEA,SAAS,mBAAmB,cAAc;CACzC,MAAM,SAAS,OAAO,OAAO,aAAa,QAAQ,KAAK,MAAM,EAAE,KAAK,CAAC;CACrE,MAAM,QAAQ,OAAO,OAAO,aAAa,QAAQ,KAAK,MAAM,EAAE,IAAI,CAAC;CACnE,MAAM,UAAU,OAAO,OAAO,OAAO,YAAY,aAAa,QAAQ,KAAK,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;CACpG,MAAM,WAAW,IAAI,IAAI,MAAM;CAC/B,MAAM,UAAU,OAAO,OAAO,IAAI,IAAI,KAAK,CAAC;CAC5C,MAAM,cAAc,IAAI,IAAI,aAAa,QAAQ,KAAK,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CAC9E,MAAM,iBAAiB,IAAI,IAAI,OAAO,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3D,OAAO;EACN;EACA;EACA;EACA,MAAM,MAAM,SAAS,IAAI,CAAC;EAC1B,UAAU,SAAS,QAAQ,IAAI,IAAI;EACnC,SAAS,MAAM,YAAY,IAAI,CAAC;EAChC,YAAY,MAAM,eAAe,IAAI,CAAC,KAAK;CAC5C;AACD;AACA,SAAS,0BAA0B,QAAQ,aAAa;CACvD,MAAM,SAAS,CAAC;CAChB,MAAM,YAAY,OAAO,WAAW;CACpC,IAAI,WAAW,MAAM,KAAK,MAAM,CAAC,MAAM,iBAAiB,OAAO,QAAQ,UAAU,IAAI,GAAG,OAAO,QAAQ,mBAAmB,YAAY;CACtI,OAAO;AACR;AACA,SAAS,qBAAqB,QAAQ;CACrC,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,eAAe,OAAO,KAAK,OAAO,UAAU,GAAG,OAAO,eAAe,0BAA0B,QAAQ,WAAW;CAC7H,OAAO,UAAU,MAAM;AACxB"}
@@ -0,0 +1,85 @@
1
+ import { u as ContractEnum, z as JsonValue } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
2
+ import { t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
3
+ //#region ../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts
4
+ //#region src/enum-accessor.d.ts
5
+ /**
6
+ * Runtime view of a domain enum, built at the client from the emitted
7
+ * `ContractEnum` JSON (codec-encoded `JsonValue` members, literal types erased).
8
+ *
9
+ * This deliberately mirrors the accessor shape of the authoring-time
10
+ * `EnumTypeHandle` (in `contract-ts`) rather than reusing it: that handle carries
11
+ * the literal value generics and lives in the authoring layer, which the
12
+ * foundation layer cannot depend on. The two are the same surface seen from the
13
+ * two planes — authoring (typed) and runtime (validated JSON).
14
+ */
15
+ interface EnumAccessor {
16
+ readonly values: readonly JsonValue[];
17
+ readonly names: readonly string[];
18
+ readonly members: Readonly<Record<string, JsonValue>>;
19
+ has(v: JsonValue): boolean;
20
+ hasName(name: string): boolean;
21
+ nameOf(v: JsonValue): string | undefined;
22
+ ordinalOf(v: JsonValue): number;
23
+ }
24
+ declare function createEnumAccessor(contractEnum: ContractEnum): EnumAccessor;
25
+ declare function buildEnumsMapForNamespace(domain: {
26
+ readonly namespaces: Readonly<Record<string, {
27
+ readonly enum?: Readonly<Record<string, ContractEnum>>;
28
+ }>>;
29
+ }, namespaceId: string): Record<string, EnumAccessor>;
30
+ declare function buildNamespacedEnums<TContract extends Contract>(domain: TContract['domain']): NamespacedEnums<TContract>;
31
+ type Present<T> = Exclude<T, undefined>;
32
+ type EnumMemberEntry = {
33
+ readonly name: string;
34
+ readonly value: JsonValue;
35
+ };
36
+ type EnumEntry = {
37
+ readonly members: readonly EnumMemberEntry[];
38
+ };
39
+ type MemberValues<Members> = { readonly [I in keyof Members]: Members[I] extends EnumMemberEntry ? Members[I]['value'] : never; };
40
+ type MemberNames<Members> = { readonly [I in keyof Members]: Members[I] extends EnumMemberEntry ? Members[I]['name'] : never; };
41
+ type EnumEntryValues<Entry extends EnumEntry> = MemberValues<Entry['members']>;
42
+ type EnumEntryNames<Entry extends EnumEntry> = MemberNames<Entry['members']>;
43
+ type EnumEntryMembers<Entry extends EnumEntry> = { readonly [M in Entry['members'][number] as M['name']]: M['value']; };
44
+ type ContractEnumAccessor<Entry extends EnumEntry> = {
45
+ readonly values: EnumEntryValues<Entry>;
46
+ readonly names: EnumEntryNames<Entry>;
47
+ readonly members: EnumEntryMembers<Entry>;
48
+ /** Returns true and narrows `v` to the enum's value union when `v` is a declared member value. */
49
+ has(v: JsonValue): v is EnumEntryValues<Entry>[number];
50
+ /** Returns true and narrows `name` to the enum's member-name union when `name` is a declared member name. */
51
+ hasName(name: string): name is Extract<EnumEntryNames<Entry>[number], string>;
52
+ nameOf(v: EnumEntryValues<Entry>[number]): string | undefined;
53
+ ordinalOf(v: EnumEntryValues<Entry>[number]): number;
54
+ /**
55
+ * Type-only: the enum's value union. Absent at runtime — use `typeof X.Value`
56
+ * to derive the type; never read `X.Value` as a value.
57
+ */
58
+ readonly Value: EnumEntryValues<Entry>[number];
59
+ };
60
+ /**
61
+ * The value union for a `ContractEnumAccessor`.
62
+ * Use in function signatures to accept any declared enum value without re-exporting
63
+ * the member type alias from the accessor's generic entry.
64
+ */
65
+ type EnumValues<A> = A extends {
66
+ readonly values: ReadonlyArray<infer V>;
67
+ } ? V : never;
68
+ /**
69
+ * The member-name union for a `ContractEnumAccessor`.
70
+ */
71
+ type EnumMemberNames<A> = A extends {
72
+ readonly names: ReadonlyArray<infer N>;
73
+ } ? N : never;
74
+ type EnumEntriesToAccessors<Enums> = { readonly [K in keyof Enums]: Enums[K] extends EnumEntry ? ContractEnumAccessor<Enums[K]> : never; };
75
+ type BuiltEnumAccessorsOf<TContract> = TContract extends {
76
+ readonly enumAccessors?: infer A;
77
+ } ? Exclude<A, undefined> : Record<never, never>;
78
+ type NamespaceEnumEntries<TNamespace> = TNamespace extends {
79
+ readonly enum?: infer E;
80
+ } ? unknown extends E ? Record<never, never> : Present<E> : Record<never, never>;
81
+ type NamespaceEnumAccessors<TContract extends Contract, NsId extends keyof TContract['domain']['namespaces']> = keyof BuiltEnumAccessorsOf<TContract> extends never ? EnumEntriesToAccessors<NamespaceEnumEntries<TContract['domain']['namespaces'][NsId]>> : BuiltEnumAccessorsOf<TContract>;
82
+ type NamespacedEnums<TContract extends Contract> = { readonly [Ns in keyof TContract['domain']['namespaces']]: NamespaceEnumAccessors<TContract, Ns>; };
83
+ //#endregion
84
+ export { EnumValues as a, buildEnumsMapForNamespace as c, EnumMemberNames as i, buildNamespacedEnums as l, EnumAccessor as n, NamespaceEnumAccessors as o, EnumEntriesToAccessors as r, NamespacedEnums as s, ContractEnumAccessor as t, createEnumAccessor as u };
85
+ //# sourceMappingURL=enum-accessor-PH5vjghI.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-accessor-PH5vjghI.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts"],"mappings":";;;;;;;;;;;;;;UAaU;WACC,iBAAiB;WACjB;WACA,SAAS,SAAS,eAAe;EAC1C,IAAI,GAAG;EACP,QAAQ;EACR,OAAO,GAAG;EACV,UAAU,GAAG;;iBAEE,mBAAmB,cAAc,eAAe;iBAChD,0BAA0B;WAChC,YAAY,SAAS;aACnB,OAAO,SAAS,eAAe;;GAEzC,sBAAsB,eAAe;iBACvB,qBAAqB,kBAAkB,UAAU,QAAQ,sBAAsB,gBAAgB;KAC3G,QAAQ,KAAK,QAAQ;KACrB;WACM;WACA,OAAO;;KAEb;WACM,kBAAkB;;KAExB,aAAa,uBAAuB,WAAW,UAAU,QAAQ,WAAW,kBAAkB,QAAQ;KACtG,YAAY,uBAAuB,WAAW,UAAU,QAAQ,WAAW,kBAAkB,QAAQ;KACrG,gBAAgB,cAAc,aAAa,aAAa;KACxD,eAAe,cAAc,aAAa,YAAY;KACtD,iBAAiB,cAAc,yBAAyB,KAAK,4BAA4B,YAAY;KACrG,qBAAqB,cAAc;WAC7B,QAAQ,gBAAgB;WACxB,OAAO,eAAe;WACtB,SAAS,iBAAiB;;EAEnC,IAAI,GAAG,YAAY,KAAK,gBAAgB;;EAExC,QAAQ,eAAe,QAAQ,QAAQ,eAAe;EACtD,OAAO,GAAG,gBAAgB;EAC1B,UAAU,GAAG,gBAAgB;;;;;WAKpB,OAAO,gBAAgB;;;;;;;KAO7B,WAAW,KAAK;WACV,QAAQ,oBAAoB;IACnC;;;;KAIC,gBAAgB,KAAK;WACf,OAAO,oBAAoB;IAClC;KACC,uBAAuB,qBAAqB,WAAW,QAAQ,MAAM,WAAW,YAAY,qBAAqB,MAAM;KACvH,qBAAqB,aAAa;WAC5B,sBAAsB;IAC7B,QAAQ,gBAAgB;KACvB,qBAAqB,cAAc;WAC7B,aAAa;oBACJ,IAAI,uBAAuB,QAAQ,KAAK;KACvD,uBAAuB,kBAAkB,UAAU,mBAAmB,2CAA2C,qBAAqB,2BAA2B,uBAAuB,qBAAqB,kCAAkC,UAAU,qBAAqB;KAC9Q,gBAAgB,kBAAkB,wBAAwB,YAAY,oCAAoC,uBAAuB,WAAW"}
@@ -0,0 +1,4 @@
1
+ import { S as errorUnexpected, _ as errorMigrationCliUnknownFlag, a as errorConfigValidation, b as errorQueryRunnerFactoryRequired, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliInvalidConfigArg, h as errorJsonFormatNotSupported, i as errorConfigFileNotFound, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as CliErrorEnvelope, o as errorContractConfigMissing, p as errorFileNotFound, r as CliStructuredError, s as errorContractMissingExtensions, t as CliErrorConflict, u as errorDriverRequired, v as errorMigrationPlanningFailed, x as errorTargetMigrationNotSupported, y as errorOutputFormatMutex } from "./control-B87KWI_K-C_R8WfEr.mjs";
2
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-MOde1lmD.mjs";
3
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-DKbDzBwy.mjs";
4
+ export { type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDestructiveChanges, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -0,0 +1,4 @@
1
+ import { _ as errorOutputFormatMutex, a as errorContractMissingExtensions, b as errorUnexpected, c as errorDriverRequired, d as errorFileNotFound, f as errorInvalidOutputFormat, g as errorMigrationPlanningFailed, h as errorMigrationCliUnknownFlag, i as errorContractConfigMissing, l as errorEnumCodecNotInPackStack, m as errorMigrationCliInvalidConfigArg, n as errorConfigFileNotFound, o as errorContractValidationFailed, p as errorJsonFormatNotSupported, r as errorConfigValidation, s as errorDatabaseConnectionRequired, t as CliStructuredError, u as errorFamilyReadMarkerSqlRequired, v as errorQueryRunnerFactoryRequired, y as errorTargetMigrationNotSupported } from "./control-Ftiau058-CCeJcAVQ.mjs";
2
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-BbOD4GyR.mjs";
3
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-4VOHVEzx.mjs";
4
+ export { CliStructuredError, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDestructiveChanges, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -0,0 +1,2 @@
1
+ import { S as errorUnexpected, _ as errorMigrationCliUnknownFlag, a as errorConfigValidation, b as errorQueryRunnerFactoryRequired, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliInvalidConfigArg, h as errorJsonFormatNotSupported, i as errorConfigFileNotFound, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as CliErrorEnvelope, o as errorContractConfigMissing, p as errorFileNotFound, r as CliStructuredError, s as errorContractMissingExtensions, t as CliErrorConflict, u as errorDriverRequired, v as errorMigrationPlanningFailed, x as errorTargetMigrationNotSupported, y as errorOutputFormatMutex } from "./control-B87KWI_K-C_R8WfEr.mjs";
2
+ export { type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
@@ -0,0 +1,2 @@
1
+ import { _ as errorOutputFormatMutex, a as errorContractMissingExtensions, b as errorUnexpected, c as errorDriverRequired, d as errorFileNotFound, f as errorInvalidOutputFormat, g as errorMigrationPlanningFailed, h as errorMigrationCliUnknownFlag, i as errorContractConfigMissing, l as errorEnumCodecNotInPackStack, m as errorMigrationCliInvalidConfigArg, n as errorConfigFileNotFound, o as errorContractValidationFailed, p as errorJsonFormatNotSupported, r as errorConfigValidation, s as errorDatabaseConnectionRequired, t as CliStructuredError, u as errorFamilyReadMarkerSqlRequired, v as errorQueryRunnerFactoryRequired, y as errorTargetMigrationNotSupported } from "./control-Ftiau058-CCeJcAVQ.mjs";
2
+ export { CliStructuredError, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
@@ -0,0 +1,2 @@
1
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-MOde1lmD.mjs";
2
+ export { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -0,0 +1,2 @@
1
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-BbOD4GyR.mjs";
2
+ export { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -0,0 +1,2 @@
1
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-DKbDzBwy.mjs";
2
+ export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };
@@ -0,0 +1,2 @@
1
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-4VOHVEzx.mjs";
2
+ export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };
@@ -0,0 +1,40 @@
1
+ import { n as runtimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
2
+ import { t as checkContractComponentRequirements } from "./framework-components-D6j4Y5K7-RW9H184y.mjs";
3
+ //#region ../../../1-framework/1-core/framework-components/dist/execution.mjs
4
+ function assertRuntimeContractRequirementsSatisfied({ contract, family, target, adapter, extensions }) {
5
+ const providedComponentIds = /* @__PURE__ */ new Set([
6
+ family.id,
7
+ target.id,
8
+ adapter.id
9
+ ]);
10
+ for (const extension of extensions) providedComponentIds.add(extension.id);
11
+ const result = checkContractComponentRequirements({
12
+ contract,
13
+ expectedTargetId: target.targetId,
14
+ providedComponentIds
15
+ });
16
+ if (result.targetMismatch) throw runtimeError("CONTRACT.TARGET_MISMATCH", `Contract target '${result.targetMismatch.actual}' does not match runtime target descriptor '${result.targetMismatch.expected}'.`);
17
+ for (const packId of result.missingExtensionPackIds) throw runtimeError("RUNTIME.MISSING_EXTENSION_PACK", `Contract requires extension pack '${packId}', but runtime descriptors do not provide a matching component.`);
18
+ }
19
+ function createExecutionStack(input) {
20
+ return {
21
+ target: input.target,
22
+ adapter: input.adapter,
23
+ driver: input.driver,
24
+ extensions: input.extensions ?? []
25
+ };
26
+ }
27
+ function instantiateExecutionStack(stack) {
28
+ const driver = stack.driver ? stack.driver.create() : void 0;
29
+ return {
30
+ stack,
31
+ target: stack.target.create(),
32
+ adapter: stack.adapter.create(stack),
33
+ driver,
34
+ extensions: stack.extensions.map((descriptor) => descriptor.create())
35
+ };
36
+ }
37
+ //#endregion
38
+ export { createExecutionStack as n, instantiateExecutionStack as r, assertRuntimeContractRequirementsSatisfied as t };
39
+
40
+ //# sourceMappingURL=execution-BNwBzmRd.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-BNwBzmRd.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/execution.mjs"],"sourcesContent":["import { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { t as checkContractComponentRequirements } from \"./framework-components-D6j4Y5K7.mjs\";\n//#region src/execution/execution-requirements.ts\nfunction assertRuntimeContractRequirementsSatisfied({ contract, family, target, adapter, extensions }) {\n\tconst providedComponentIds = /* @__PURE__ */ new Set([\n\t\tfamily.id,\n\t\ttarget.id,\n\t\tadapter.id\n\t]);\n\tfor (const extension of extensions) providedComponentIds.add(extension.id);\n\tconst result = checkContractComponentRequirements({\n\t\tcontract,\n\t\texpectedTargetId: target.targetId,\n\t\tprovidedComponentIds\n\t});\n\tif (result.targetMismatch) throw runtimeError(\"CONTRACT.TARGET_MISMATCH\", `Contract target '${result.targetMismatch.actual}' does not match runtime target descriptor '${result.targetMismatch.expected}'.`);\n\tfor (const packId of result.missingExtensionPackIds) throw runtimeError(\"RUNTIME.MISSING_EXTENSION_PACK\", `Contract requires extension pack '${packId}', but runtime descriptors do not provide a matching component.`);\n}\n//#endregion\n//#region src/execution/execution-stack.ts\nfunction createExecutionStack(input) {\n\treturn {\n\t\ttarget: input.target,\n\t\tadapter: input.adapter,\n\t\tdriver: input.driver,\n\t\textensions: input.extensions ?? []\n\t};\n}\nfunction instantiateExecutionStack(stack) {\n\tconst driver = stack.driver ? stack.driver.create() : void 0;\n\treturn {\n\t\tstack,\n\t\ttarget: stack.target.create(),\n\t\tadapter: stack.adapter.create(stack),\n\t\tdriver,\n\t\textensions: stack.extensions.map((descriptor) => descriptor.create())\n\t};\n}\n//#endregion\nexport { assertRuntimeContractRequirementsSatisfied, createExecutionStack, instantiateExecutionStack };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;AAGA,SAAS,2CAA2C,EAAE,UAAU,QAAQ,QAAQ,SAAS,cAAc;CACtG,MAAM,uCAAuC,IAAI,IAAI;EACpD,OAAO;EACP,OAAO;EACP,QAAQ;CACT,CAAC;CACD,KAAK,MAAM,aAAa,YAAY,qBAAqB,IAAI,UAAU,EAAE;CACzE,MAAM,SAAS,mCAAmC;EACjD;EACA,kBAAkB,OAAO;EACzB;CACD,CAAC;CACD,IAAI,OAAO,gBAAgB,MAAM,aAAa,4BAA4B,oBAAoB,OAAO,eAAe,OAAO,8CAA8C,OAAO,eAAe,SAAS,GAAG;CAC3M,KAAK,MAAM,UAAU,OAAO,yBAAyB,MAAM,aAAa,kCAAkC,qCAAqC,OAAO,gEAAgE;AACvN;AAGA,SAAS,qBAAqB,OAAO;CACpC,OAAO;EACN,QAAQ,MAAM;EACd,SAAS,MAAM;EACf,QAAQ,MAAM;EACd,YAAY,MAAM,cAAc,CAAC;CAClC;AACD;AACA,SAAS,0BAA0B,OAAO;CACzC,MAAM,SAAS,MAAM,SAAS,MAAM,OAAO,OAAO,IAAI,KAAK;CAC3D,OAAO;EACN;EACA,QAAQ,MAAM,OAAO,OAAO;EAC5B,SAAS,MAAM,QAAQ,OAAO,KAAK;EACnC;EACA,YAAY,MAAM,WAAW,KAAK,eAAe,WAAW,OAAO,CAAC;CACrE;AACD"}
@@ -0,0 +1,164 @@
1
+ import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
2
+ import { t as CliStructuredError } from "./control-Ftiau058-CCeJcAVQ.mjs";
3
+ //#region ../../../1-framework/1-core/errors/dist/execution.mjs
4
+ /**
5
+ * Contract marker not found in database.
6
+ */
7
+ function errorMarkerMissing(options) {
8
+ return new CliStructuredError("CONTRACT.MARKER_MISSING", "Database not signed", {
9
+ why: options?.why ?? "No database signature (marker) found",
10
+ fix: "Run `prisma-next db sign --db <url>` to sign the database"
11
+ });
12
+ }
13
+ /**
14
+ * Contract hash does not match database marker.
15
+ */
16
+ function errorHashMismatch(options) {
17
+ return new CliStructuredError("CONTRACT.MARKER_MISMATCH", "Hash mismatch", {
18
+ why: options?.why ?? "Contract hash does not match database marker",
19
+ fix: "Migrate database or re-sign if intentional",
20
+ ...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {
21
+ ...ifDefined("expected", options?.expected),
22
+ ...ifDefined("actual", options?.actual)
23
+ } } : {}
24
+ });
25
+ }
26
+ /**
27
+ * Contract target does not match config target.
28
+ */
29
+ function errorTargetMismatch(expected, actual, options) {
30
+ return new CliStructuredError("CONTRACT.TARGET_MISMATCH", "Target mismatch", {
31
+ why: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,
32
+ fix: "Align contract target and config target",
33
+ meta: {
34
+ expected,
35
+ actual
36
+ }
37
+ });
38
+ }
39
+ /**
40
+ * Marker row exists but column values fail schema validation.
41
+ */
42
+ function errorMarkerRowCorrupt(options) {
43
+ return new CliStructuredError("CONTRACT.MARKER_ROW_CORRUPT", "Marker row is corrupt or incompatible", {
44
+ why: options.why,
45
+ fix: `The ${options.markerLocation} row for space "${options.space}" contains invalid data. Delete the row, then run \`prisma-next db sign --db <url>\` to write a fresh marker.`,
46
+ meta: { space: options.space }
47
+ });
48
+ }
49
+ /**
50
+ * Driver-level failure while reading the contract marker table.
51
+ */
52
+ function errorMarkerReadFailed(options) {
53
+ return new CliStructuredError("CONTRACT.MARKER_READ_FAILED", "Database error while reading contract marker", {
54
+ why: options.why,
55
+ fix: `Could not read marker at ${options.markerLocation} for space "${options.space}". Verify read permissions, connectivity, and locks, then retry.`,
56
+ meta: { space: options.space }
57
+ });
58
+ }
59
+ function isMarkerRowParseError(err) {
60
+ return err instanceof Error && (err.message.startsWith("Invalid contract marker row:") || err.message.startsWith("Invalid marker doc on"));
61
+ }
62
+ function isLegacyMarkerShapeReadError(message) {
63
+ const normalized = message.toLowerCase();
64
+ return normalized.includes("column \"space\" does not exist") || normalized.includes("no such column: space");
65
+ }
66
+ function errorLegacyMarkerShape(options) {
67
+ return errorRunnerFailed(`Legacy marker-table shape detected on ${options.markerLocation} (no \`space\` column). Prisma Next is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. Drop \`${options.markerLocation}\` and re-run \`prisma-next db init\` to reinitialise from a clean baseline.`, {
68
+ why: options.why,
69
+ fix: "Legacy marker-table shape detected. Drop `prisma_contract.marker` (Postgres) or `_prisma_marker` (SQLite) and re-run `prisma-next db init` to recreate it with the current per-space schema.",
70
+ meta: { runnerErrorCode: "MIGRATION.LEGACY_MARKER_SHAPE" }
71
+ });
72
+ }
73
+ function rethrowMarkerReadError(err, context) {
74
+ if (CliStructuredError.is(err)) throw err;
75
+ if (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({
76
+ why: err.message,
77
+ space: context.space,
78
+ markerLocation: context.markerLocation
79
+ });
80
+ const message = err instanceof Error ? err.message : String(err);
81
+ if (isLegacyMarkerShapeReadError(message)) throw errorLegacyMarkerShape({
82
+ why: message,
83
+ markerLocation: context.markerLocation
84
+ });
85
+ throw errorMarkerReadFailed({
86
+ why: message,
87
+ space: context.space,
88
+ markerLocation: context.markerLocation
89
+ });
90
+ }
91
+ async function withMarkerReadErrorHandling(operation, context) {
92
+ try {
93
+ return await operation();
94
+ } catch (err) {
95
+ rethrowMarkerReadError(err, context);
96
+ }
97
+ }
98
+ function parseMarkerRowSafely(row, parse, context) {
99
+ try {
100
+ return parse(row);
101
+ } catch (err) {
102
+ rethrowMarkerReadError(err, context);
103
+ }
104
+ }
105
+ /**
106
+ * Database marker is required but not found.
107
+ * Used by commands that require a pre-existing marker as a precondition.
108
+ */
109
+ function errorMarkerRequired(options) {
110
+ return new CliStructuredError("CONTRACT.MARKER_REQUIRED", "Database must be signed first", {
111
+ why: options?.why ?? "No database signature (marker) found",
112
+ fix: options?.fix ?? "Run `prisma-next db init` first to sign the database"
113
+ });
114
+ }
115
+ /**
116
+ * Schema verification found mismatches between the database and the contract.
117
+ * The full verification result is preserved in `meta.verificationResult`.
118
+ */
119
+ function errorSchemaVerificationFailed(options) {
120
+ return new CliStructuredError("CONTRACT.SCHEMA_VERIFICATION_FAILED", options.summary, {
121
+ why: "Database schema does not satisfy the contract",
122
+ fix: "Run `prisma-next db update` to reconcile, or adjust your contract to match the database",
123
+ meta: {
124
+ verificationResult: options.verificationResult,
125
+ ...ifDefined("issues", options.issues)
126
+ }
127
+ });
128
+ }
129
+ /**
130
+ * Migration runner failed during execution.
131
+ */
132
+ function errorRunnerFailed(summary, options) {
133
+ return new CliStructuredError("MIGRATION.RUNNER_FAILED", summary, {
134
+ why: options?.why ?? "Migration runner failed",
135
+ fix: options?.fix ?? "Inspect the reported conflict and reconcile schema drift",
136
+ ...options?.meta ? { meta: options.meta } : {}
137
+ });
138
+ }
139
+ /** Error code for destructive changes that require explicit confirmation. */
140
+ const ERROR_CODE_DESTRUCTIVE_CHANGES = "MIGRATION.DESTRUCTIVE_CHANGES";
141
+ /**
142
+ * Destructive operations require explicit confirmation via -y/--yes.
143
+ */
144
+ function errorDestructiveChanges(summary, options) {
145
+ return new CliStructuredError(ERROR_CODE_DESTRUCTIVE_CHANGES, summary, {
146
+ why: options?.why ?? "Planned operations include destructive changes that require confirmation",
147
+ fix: options?.fix ?? "Re-run with `-y` to apply, or use `--dry-run` to preview first",
148
+ ...options?.meta ? { meta: options.meta } : {}
149
+ });
150
+ }
151
+ /**
152
+ * Generic runtime error.
153
+ */
154
+ function errorRuntime(summary, options) {
155
+ return new CliStructuredError("CONTRACT.VERIFY_FAILED", summary, {
156
+ ...options?.why ? { why: options.why } : { why: "Verification failed" },
157
+ ...options?.fix ? { fix: options.fix } : { fix: "Check contract and database state" },
158
+ ...options?.meta ? { meta: options.meta } : {}
159
+ });
160
+ }
161
+ //#endregion
162
+ export { errorMarkerReadFailed as a, errorRunnerFailed as c, errorTargetMismatch as d, parseMarkerRowSafely as f, errorMarkerMissing as i, errorRuntime as l, withMarkerReadErrorHandling as m, errorDestructiveChanges as n, errorMarkerRequired as o, rethrowMarkerReadError as p, errorHashMismatch as r, errorMarkerRowCorrupt as s, ERROR_CODE_DESTRUCTIVE_CHANGES as t, errorSchemaVerificationFailed as u };
163
+
164
+ //# sourceMappingURL=execution-BbOD4GyR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-BbOD4GyR.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-Ftiau058.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `prisma-next db sign --db <url>` to sign the database\"\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`prisma-next db sign --db <url>\\` to write a fresh marker.`,\n\t\tmeta: { space: options.space }\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space }\n\t});\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction isLegacyMarkerShapeReadError(message) {\n\tconst normalized = message.toLowerCase();\n\treturn normalized.includes(\"column \\\"space\\\" does not exist\") || normalized.includes(\"no such column: space\");\n}\nfunction errorLegacyMarkerShape(options) {\n\treturn errorRunnerFailed(`Legacy marker-table shape detected on ${options.markerLocation} (no \\`space\\` column). Prisma Next is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. Drop \\`${options.markerLocation}\\` and re-run \\`prisma-next db init\\` to reinitialise from a clean baseline.`, {\n\t\twhy: options.why,\n\t\tfix: \"Legacy marker-table shape detected. Drop `prisma_contract.marker` (Postgres) or `_prisma_marker` (SQLite) and re-run `prisma-next db init` to recreate it with the current per-space schema.\",\n\t\tmeta: { runnerErrorCode: \"MIGRATION.LEGACY_MARKER_SHAPE\" }\n\t});\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation\n\t});\n\tconst message = err instanceof Error ? err.message : String(err);\n\tif (isLegacyMarkerShapeReadError(message)) throw errorLegacyMarkerShape({\n\t\twhy: message,\n\t\tmarkerLocation: context.markerLocation\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `prisma-next db init` first to sign the database\"\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `prisma-next db update` to reconcile, or adjust your contract to match the database\",\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Migration runner failed during execution.\n*/\nfunction errorRunnerFailed(summary, options) {\n\treturn new CliStructuredError(\"MIGRATION.RUNNER_FAILED\", summary, {\n\t\twhy: options?.why ?? \"Migration runner failed\",\n\t\tfix: options?.fix ?? \"Inspect the reported conflict and reconcile schema drift\",\n\t\t...options?.meta ? { meta: options.meta } : {}\n\t});\n}\n/** Error code for destructive changes that require explicit confirmation. */\nconst ERROR_CODE_DESTRUCTIVE_CHANGES = \"MIGRATION.DESTRUCTIVE_CHANGES\";\n/**\n* Destructive operations require explicit confirmation via -y/--yes.\n*/\nfunction errorDestructiveChanges(summary, options) {\n\treturn new CliStructuredError(ERROR_CODE_DESTRUCTIVE_CHANGES, summary, {\n\t\twhy: options?.why ?? \"Planned operations include destructive changes that require confirmation\",\n\t\tfix: options?.fix ?? \"Re-run with `-y` to apply, or use `--dry-run` to preview first\",\n\t\t...options?.meta ? { meta: options.meta } : {}\n\t});\n}\n/**\n* Generic runtime error.\n*/\nfunction errorRuntime(summary, options) {\n\treturn new CliStructuredError(\"CONTRACT.VERIFY_FAILED\", summary, {\n\t\t...options?.why ? { why: options.why } : { why: \"Verification failed\" },\n\t\t...options?.fix ? { fix: options.fix } : { fix: \"Check contract and database state\" },\n\t\t...options?.meta ? { meta: options.meta } : {}\n\t});\n}\n//#endregion\nexport { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;AAMA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;CACN,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS;CACnC,OAAO,IAAI,mBAAmB,4BAA4B,iBAAiB;EAC1E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,GAAG,SAAS,aAAa,KAAK,KAAK,SAAS,WAAW,KAAK,IAAI,EAAE,MAAM;GACvE,GAAG,UAAU,YAAY,SAAS,QAAQ;GAC1C,GAAG,UAAU,UAAU,SAAS,MAAM;EACvC,EAAE,IAAI,CAAC;CACR,CAAC;AACF;;;;AAIA,SAAS,oBAAoB,UAAU,QAAQ,SAAS;CACvD,OAAO,IAAI,mBAAmB,4BAA4B,mBAAmB;EAC5E,KAAK,SAAS,OAAO,2DAA2D,SAAS,YAAY,OAAO;EAC5G,KAAK;EACL,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA+B,yCAAyC;EACrG,KAAK,QAAQ;EACb,KAAK,OAAO,QAAQ,eAAe,kBAAkB,QAAQ,MAAM;EACnE,MAAM,EAAE,OAAO,QAAQ,MAAM;CAC9B,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA+B,gDAAgD;EAC5G,KAAK,QAAQ;EACb,KAAK,4BAA4B,QAAQ,eAAe,cAAc,QAAQ,MAAM;EACpF,MAAM,EAAE,OAAO,QAAQ,MAAM;CAC9B,CAAC;AACF;AACA,SAAS,sBAAsB,KAAK;CACnC,OAAO,eAAe,UAAU,IAAI,QAAQ,WAAW,8BAA8B,KAAK,IAAI,QAAQ,WAAW,uBAAuB;AACzI;AACA,SAAS,6BAA6B,SAAS;CAC9C,MAAM,aAAa,QAAQ,YAAY;CACvC,OAAO,WAAW,SAAS,iCAAiC,KAAK,WAAW,SAAS,uBAAuB;AAC7G;AACA,SAAS,uBAAuB,SAAS;CACxC,OAAO,kBAAkB,yCAAyC,QAAQ,eAAe,mJAAmJ,QAAQ,eAAe,+EAA+E;EACjV,KAAK,QAAQ;EACb,KAAK;EACL,MAAM,EAAE,iBAAiB,gCAAgC;CAC1D,CAAC;AACF;AACA,SAAS,uBAAuB,KAAK,SAAS;CAC7C,IAAI,mBAAmB,GAAG,GAAG,GAAG,MAAM;CACtC,IAAI,sBAAsB,GAAG,GAAG,MAAM,sBAAsB;EAC3D,KAAK,IAAI;EACT,OAAO,QAAQ;EACf,gBAAgB,QAAQ;CACzB,CAAC;CACD,MAAM,UAAU,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;CAC/D,IAAI,6BAA6B,OAAO,GAAG,MAAM,uBAAuB;EACvE,KAAK;EACL,gBAAgB,QAAQ;CACzB,CAAC;CACD,MAAM,sBAAsB;EAC3B,KAAK;EACL,OAAO,QAAQ;EACf,gBAAgB,QAAQ;CACzB,CAAC;AACF;AACA,eAAe,4BAA4B,WAAW,SAAS;CAC9D,IAAI;EACH,OAAO,MAAM,UAAU;CACxB,SAAS,KAAK;EACb,uBAAuB,KAAK,OAAO;CACpC;AACD;AACA,SAAS,qBAAqB,KAAK,OAAO,SAAS;CAClD,IAAI;EACH,OAAO,MAAM,GAAG;CACjB,SAAS,KAAK;EACb,uBAAuB,KAAK,OAAO;CACpC;AACD;;;;;AAKA,SAAS,oBAAoB,SAAS;CACrC,OAAO,IAAI,mBAAmB,4BAA4B,iCAAiC;EAC1F,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;CACtB,CAAC;AACF;;;;;AAKA,SAAS,8BAA8B,SAAS;CAC/C,OAAO,IAAI,mBAAmB,uCAAuC,QAAQ,SAAS;EACrF,KAAK;EACL,KAAK;EACL,MAAM;GACL,oBAAoB,QAAQ;GAC5B,GAAG,UAAU,UAAU,QAAQ,MAAM;EACtC;CACD,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS,SAAS;CAC5C,OAAO,IAAI,mBAAmB,2BAA2B,SAAS;EACjE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;CAC9C,CAAC;AACF;;AAEA,MAAM,iCAAiC;;;;AAIvC,SAAS,wBAAwB,SAAS,SAAS;CAClD,OAAO,IAAI,mBAAmB,gCAAgC,SAAS;EACtE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;CAC9C,CAAC;AACF;;;;AAIA,SAAS,aAAa,SAAS,SAAS;CACvC,OAAO,IAAI,mBAAmB,0BAA0B,SAAS;EAChE,GAAG,SAAS,MAAM,EAAE,KAAK,QAAQ,IAAI,IAAI,EAAE,KAAK,sBAAsB;EACtE,GAAG,SAAS,MAAM,EAAE,KAAK,QAAQ,IAAI,IAAI,EAAE,KAAK,oCAAoC;EACpF,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;CAC9C,CAAC;AACF"}
@@ -0,0 +1,79 @@
1
+ import { O as TargetDescriptor, f as DriverDescriptor, g as ExtensionInstance, h as ExtensionDescriptor, k as TargetInstance, n as AdapterInstance, p as DriverInstance, t as AdapterDescriptor, v as FamilyDescriptor, y as FamilyInstance } from "./framework-components-MFoo0sYx-G_6k9jt4.mjs";
2
+ //#region ../../../1-framework/1-core/framework-components/dist/execution.d.mts
3
+ //#region src/execution/execution-instances.d.ts
4
+ interface RuntimeFamilyInstance<TFamilyId extends string> extends FamilyInstance<TFamilyId> {}
5
+ interface RuntimeTargetInstance<TFamilyId extends string, TTargetId extends string> extends TargetInstance<TFamilyId, TTargetId> {}
6
+ interface RuntimeAdapterInstance<TFamilyId extends string, TTargetId extends string> extends AdapterInstance<TFamilyId, TTargetId> {}
7
+ interface RuntimeDriverInstance<TFamilyId extends string, TTargetId extends string> extends DriverInstance<TFamilyId, TTargetId> {}
8
+ interface RuntimeExtensionInstance<TFamilyId extends string, TTargetId extends string> extends ExtensionInstance<TFamilyId, TTargetId> {}
9
+ //#endregion
10
+ //#region src/execution/execution-stack.d.ts
11
+ interface ExecutionStack<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId> = RuntimeAdapterInstance<TFamilyId, TTargetId>, TDriverInstance extends RuntimeDriverInstance<TFamilyId, TTargetId> = RuntimeDriverInstance<TFamilyId, TTargetId>, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId> = RuntimeExtensionInstance<TFamilyId, TTargetId>> {
12
+ readonly target: RuntimeTargetDescriptor<TFamilyId, TTargetId>;
13
+ readonly adapter: RuntimeAdapterDescriptor<TFamilyId, TTargetId, TAdapterInstance>;
14
+ readonly driver: RuntimeDriverDescriptor<TFamilyId, TTargetId, unknown, TDriverInstance> | undefined;
15
+ readonly extensions: readonly RuntimeExtensionDescriptor<TFamilyId, TTargetId, TExtensionInstance>[];
16
+ }
17
+ interface ExecutionStackInstance<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId> = RuntimeAdapterInstance<TFamilyId, TTargetId>, TDriverInstance extends RuntimeDriverInstance<TFamilyId, TTargetId> = RuntimeDriverInstance<TFamilyId, TTargetId>, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId> = RuntimeExtensionInstance<TFamilyId, TTargetId>> {
18
+ readonly stack: ExecutionStack<TFamilyId, TTargetId, TAdapterInstance, TDriverInstance, TExtensionInstance>;
19
+ readonly target: RuntimeTargetInstance<TFamilyId, TTargetId>;
20
+ readonly adapter: TAdapterInstance;
21
+ readonly driver: TDriverInstance | undefined;
22
+ readonly extensions: readonly TExtensionInstance[];
23
+ }
24
+ declare function createExecutionStack<TFamilyId extends string, TTargetId extends string, TTargetInstance extends RuntimeTargetInstance<TFamilyId, TTargetId>, TTargetDescriptor extends RuntimeTargetDescriptor<TFamilyId, TTargetId, TTargetInstance>, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId>, TAdapterDescriptor extends RuntimeAdapterDescriptor<TFamilyId, TTargetId, TAdapterInstance>, TDriverInstance extends RuntimeDriverInstance<TFamilyId, TTargetId> = RuntimeDriverInstance<TFamilyId, TTargetId>, TDriverDescriptor extends RuntimeDriverDescriptor<TFamilyId, TTargetId, unknown, TDriverInstance> | undefined = undefined, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId> = RuntimeExtensionInstance<TFamilyId, TTargetId>, TExtensionDescriptor extends RuntimeExtensionDescriptor<TFamilyId, TTargetId, TExtensionInstance> = never>(input: {
25
+ readonly target: TTargetDescriptor;
26
+ readonly adapter: TAdapterDescriptor;
27
+ readonly driver?: TDriverDescriptor | undefined;
28
+ readonly extensions?: readonly TExtensionDescriptor[] | undefined;
29
+ }): ExecutionStack<TFamilyId, TTargetId, TAdapterInstance, TDriverInstance, TExtensionInstance> & {
30
+ readonly target: TTargetDescriptor;
31
+ readonly adapter: TAdapterDescriptor;
32
+ readonly driver: TDriverDescriptor | undefined;
33
+ readonly extensions: readonly TExtensionDescriptor[];
34
+ };
35
+ declare function instantiateExecutionStack<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId>, TDriverInstance extends RuntimeDriverInstance<TFamilyId, TTargetId>, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId>>(stack: ExecutionStack<TFamilyId, TTargetId, TAdapterInstance, TDriverInstance, TExtensionInstance>): ExecutionStackInstance<TFamilyId, TTargetId, TAdapterInstance, TDriverInstance, TExtensionInstance>;
36
+ //#endregion
37
+ //#region src/execution/execution-descriptors.d.ts
38
+ interface RuntimeFamilyDescriptor<TFamilyId extends string, TFamilyInstance extends RuntimeFamilyInstance<TFamilyId> = RuntimeFamilyInstance<TFamilyId>> extends FamilyDescriptor<TFamilyId> {
39
+ create<TTargetId extends string>(options: {
40
+ readonly target: RuntimeTargetDescriptor<TFamilyId, TTargetId>;
41
+ readonly adapter: RuntimeAdapterDescriptor<TFamilyId, TTargetId>;
42
+ readonly driver: RuntimeDriverDescriptor<TFamilyId, TTargetId>;
43
+ readonly extensions: readonly RuntimeExtensionDescriptor<TFamilyId, TTargetId>[];
44
+ }): TFamilyInstance;
45
+ }
46
+ interface RuntimeTargetDescriptor<TFamilyId extends string, TTargetId extends string, TTargetInstance extends RuntimeTargetInstance<TFamilyId, TTargetId> = RuntimeTargetInstance<TFamilyId, TTargetId>> extends TargetDescriptor<TFamilyId, TTargetId> {
47
+ create(): TTargetInstance;
48
+ }
49
+ interface RuntimeAdapterDescriptor<TFamilyId extends string, TTargetId extends string, TAdapterInstance extends RuntimeAdapterInstance<TFamilyId, TTargetId> = RuntimeAdapterInstance<TFamilyId, TTargetId>> extends AdapterDescriptor<TFamilyId, TTargetId> {
50
+ /**
51
+ * Construct a runtime adapter instance for this execution stack.
52
+ *
53
+ * Mirrors `ControlAdapterDescriptor.create(stack)` so that adapter
54
+ * implementations may inspect stack-assembled metadata (e.g. codecs
55
+ * contributed by extension packs) when constructing the instance.
56
+ */
57
+ create(stack: ExecutionStack<TFamilyId, TTargetId>): TAdapterInstance;
58
+ }
59
+ interface RuntimeDriverDescriptor<TFamilyId extends string, TTargetId extends string, TCreateOptions = void, TDriverInstance extends RuntimeDriverInstance<TFamilyId, TTargetId> = RuntimeDriverInstance<TFamilyId, TTargetId>> extends DriverDescriptor<TFamilyId, TTargetId> {
60
+ create(options?: TCreateOptions): TDriverInstance;
61
+ }
62
+ interface RuntimeExtensionDescriptor<TFamilyId extends string, TTargetId extends string, TExtensionInstance extends RuntimeExtensionInstance<TFamilyId, TTargetId> = RuntimeExtensionInstance<TFamilyId, TTargetId>> extends ExtensionDescriptor<TFamilyId, TTargetId> {
63
+ create(): TExtensionInstance;
64
+ }
65
+ //#endregion
66
+ //#region src/execution/execution-requirements.d.ts
67
+ declare function assertRuntimeContractRequirementsSatisfied<TFamilyId extends string, TTargetId extends string>({ contract, family, target, adapter, extensions }: {
68
+ readonly contract: {
69
+ readonly target: string;
70
+ readonly extensions?: Record<string, unknown>;
71
+ };
72
+ readonly family: RuntimeFamilyDescriptor<TFamilyId>;
73
+ readonly target: RuntimeTargetDescriptor<TFamilyId, TTargetId>;
74
+ readonly adapter: RuntimeAdapterDescriptor<TFamilyId, TTargetId>;
75
+ readonly extensions: readonly RuntimeExtensionDescriptor<TFamilyId, TTargetId>[];
76
+ }): void;
77
+ //#endregion
78
+ export { RuntimeDriverDescriptor as a, RuntimeExtensionInstance as c, RuntimeTargetDescriptor as d, RuntimeTargetInstance as f, instantiateExecutionStack as h, RuntimeAdapterInstance as i, RuntimeFamilyDescriptor as l, createExecutionStack as m, ExecutionStackInstance as n, RuntimeDriverInstance as o, assertRuntimeContractRequirementsSatisfied as p, RuntimeAdapterDescriptor as r, RuntimeExtensionDescriptor as s, ExecutionStack as t, RuntimeFamilyInstance as u };
79
+ //# sourceMappingURL=execution-Bo5Bu2Ys.d.mts.map