@prisma/orm-toolchain 8.0.0-rc.1-dev.6 → 8.0.0-rc.1-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/{aggregate-i-rfetSO.mjs → aggregate-D53gnb7v.mjs} +8 -8
  2. package/dist/{aggregate-i-rfetSO.mjs.map → aggregate-D53gnb7v.mjs.map} +1 -1
  3. package/dist/bin__prisma-next.mjs +22 -22
  4. package/dist/bin__prisma-next.mjs.map +1 -1
  5. package/dist/caught-errors-D7Qznyrm-BzYooF6H.mjs +14 -0
  6. package/dist/caught-errors-D7Qznyrm-BzYooF6H.mjs.map +1 -0
  7. package/dist/{types-2n_H3DQ9-Bks8UPEO.d.mts → cli-errors-CDr3WcJP-NFry5GHb.d.mts} +2 -2
  8. package/dist/cli-errors-CDr3WcJP-NFry5GHb.d.mts.map +1 -0
  9. package/dist/cli.mjs +2 -2
  10. package/dist/cli__commands__contract-emit.mjs +1 -1
  11. package/dist/cli__commands__contract-infer.mjs +1 -1
  12. package/dist/cli__commands__db-init.mjs +1 -1
  13. package/dist/cli__commands__db-schema.mjs +1 -1
  14. package/dist/cli__commands__db-sign.mjs +1 -1
  15. package/dist/cli__commands__db-update.mjs +1 -1
  16. package/dist/cli__commands__db-verify.mjs +1 -1
  17. package/dist/cli__commands__migrate.d.mts +3 -12
  18. package/dist/cli__commands__migrate.d.mts.map +1 -1
  19. package/dist/cli__commands__migrate.mjs +1 -1
  20. package/dist/cli__commands__migration-check.d.mts +1 -57
  21. package/dist/cli__commands__migration-check.d.mts.map +1 -1
  22. package/dist/cli__commands__migration-check.mjs +2 -2
  23. package/dist/cli__commands__migration-graph.d.mts +1 -1
  24. package/dist/cli__commands__migration-graph.mjs +1 -1
  25. package/dist/cli__commands__migration-list.d.mts +4 -44
  26. package/dist/cli__commands__migration-list.d.mts.map +1 -1
  27. package/dist/cli__commands__migration-list.mjs +2 -2
  28. package/dist/cli__commands__migration-log.d.mts +1 -1
  29. package/dist/cli__commands__migration-log.mjs +1 -1
  30. package/dist/cli__commands__migration-new.mjs +1 -1
  31. package/dist/cli__commands__migration-plan.d.mts +2 -47
  32. package/dist/cli__commands__migration-plan.d.mts.map +1 -1
  33. package/dist/cli__commands__migration-plan.mjs +1 -1
  34. package/dist/cli__commands__migration-show.mjs +1 -1
  35. package/dist/cli__commands__migration-status.d.mts +1 -1
  36. package/dist/cli__commands__migration-status.mjs +1 -1
  37. package/dist/cli__commands__ref.d.mts +1 -28
  38. package/dist/cli__commands__ref.d.mts.map +1 -1
  39. package/dist/cli__commands__ref.mjs +2 -2
  40. package/dist/cli__commands__telemetry.mjs +1 -1
  41. package/dist/cli__control-api.d.mts +502 -2
  42. package/dist/cli__control-api.d.mts.map +1 -1
  43. package/dist/cli__control-api.mjs +18 -3
  44. package/dist/cli__migration-cli.mjs +2 -2
  45. package/dist/{client-7aUYC7ci-Bh9mLxkl.mjs → client-Y6qbDk7X-BzKLmBZo.mjs} +8 -8
  46. package/dist/{client-7aUYC7ci-Bh9mLxkl.mjs.map → client-Y6qbDk7X-BzKLmBZo.mjs.map} +1 -1
  47. package/dist/{command-helpers-C4WpR-QE-CK2gkj6l.mjs → command-helpers-C4WpR-QE-DE494TSG.mjs} +2 -2
  48. package/dist/{command-helpers-C4WpR-QE-CK2gkj6l.mjs.map → command-helpers-C4WpR-QE-DE494TSG.mjs.map} +1 -1
  49. package/dist/config-loader.d.mts +2 -18
  50. package/dist/{contract-at-errors-YdCQ5OOk-okxG7Eaj.mjs → contract-at-errors-Dv1mxKYO-C29YB4RC.mjs} +4 -4
  51. package/dist/contract-at-errors-Dv1mxKYO-C29YB4RC.mjs.map +1 -0
  52. package/dist/{contract-emit-CTm2zfuG-8mtkxW8M.mjs → contract-emit-CTm2zfuG-7PV9SBY6.mjs} +4 -4
  53. package/dist/{contract-emit-CTm2zfuG-8mtkxW8M.mjs.map → contract-emit-CTm2zfuG-7PV9SBY6.mjs.map} +1 -1
  54. package/dist/{contract-emit-D8IXP9Qp-CecAQio1.mjs → contract-emit-D8IXP9Qp-Df6NwXn8.mjs} +3 -3
  55. package/dist/{contract-emit-D8IXP9Qp-CecAQio1.mjs.map → contract-emit-D8IXP9Qp-Df6NwXn8.mjs.map} +1 -1
  56. package/dist/{contract-infer-C8-RqHeK-D_dm3onP.mjs → contract-infer-BwT7ngoo-Dx6aAwIN.mjs} +4 -4
  57. package/dist/{contract-infer-C8-RqHeK-D_dm3onP.mjs.map → contract-infer-BwT7ngoo-Dx6aAwIN.mjs.map} +1 -1
  58. package/dist/contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs +82 -0
  59. package/dist/contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs.map +1 -0
  60. package/dist/{contract-snapshot-store-DNTOE6fB-BDpjbdCJ.mjs → contract-snapshot-store-C9-J6OBn-ByElY0EC.mjs} +3 -3
  61. package/dist/{contract-snapshot-store-DNTOE6fB-BDpjbdCJ.mjs.map → contract-snapshot-store-C9-J6OBn-ByElY0EC.mjs.map} +1 -1
  62. package/dist/{contract-space-aggregate-loader-CziO_ZRW-DIoQOL0P.mjs → contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs} +6 -6
  63. package/dist/contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs.map +1 -0
  64. package/dist/{db-init-CXMcvoIA.mjs → db-init-CBj_EWg3.mjs} +15 -26
  65. package/dist/db-init-CBj_EWg3.mjs.map +1 -0
  66. package/dist/{db-schema-j8DERh4t.mjs → db-schema-BWpeh0Q_.mjs} +4 -4
  67. package/dist/{db-schema-j8DERh4t.mjs.map → db-schema-BWpeh0Q_.mjs.map} +1 -1
  68. package/dist/{db-sign-xV_rpoIc.mjs → db-sign-DCb_DKtv.mjs} +13 -29
  69. package/dist/db-sign-DCb_DKtv.mjs.map +1 -0
  70. package/dist/{db-update-DXa2DIvu.mjs → db-update-WX0KitcX.mjs} +27 -50
  71. package/dist/db-update-WX0KitcX.mjs.map +1 -0
  72. package/dist/{db-verify-YWHjuKC7-DidK1gx1.mjs → db-verify-B8ax2Y_x-Bp4s5Ra6.mjs} +5 -5
  73. package/dist/{db-verify-YWHjuKC7-DidK1gx1.mjs.map → db-verify-B8ax2Y_x-Bp4s5Ra6.mjs.map} +1 -1
  74. package/dist/{errors-BwusfLIN-BXM7K-ww.mjs → errors-Co-8oaiB-CB-6Uqki.mjs} +5 -4
  75. package/dist/{errors-BwusfLIN-BXM7K-ww.mjs.map → errors-Co-8oaiB-CB-6Uqki.mjs.map} +1 -1
  76. package/dist/{errors-AkMBj-YP.d.mts → errors-NRmFpwR1.d.mts} +6 -2
  77. package/dist/errors-NRmFpwR1.d.mts.map +1 -0
  78. package/dist/{format-Bw3LVJ1v-D10inUT9.mjs → format-Bw3LVJ1v-BJ6lVFMA.mjs} +2 -2
  79. package/dist/{format-Bw3LVJ1v-D10inUT9.mjs.map → format-Bw3LVJ1v-BJ6lVFMA.mjs.map} +1 -1
  80. package/dist/{framework-components-3DdB31mk-BPGSuOyZ.mjs → framework-components-3DdB31mk-BHyX-OlJ.mjs} +2 -2
  81. package/dist/{framework-components-3DdB31mk-BPGSuOyZ.mjs.map → framework-components-3DdB31mk-BHyX-OlJ.mjs.map} +1 -1
  82. package/dist/{graph-membership-h9ejuZla-ewjYM5wz.mjs → graph-membership-BEmNEMtP-rz61CLM5.mjs} +3 -3
  83. package/dist/{graph-membership-h9ejuZla-ewjYM5wz.mjs.map → graph-membership-BEmNEMtP-rz61CLM5.mjs.map} +1 -1
  84. package/dist/index-Df9igRvP.d.mts +18 -0
  85. package/dist/index-Df9igRvP.d.mts.map +1 -0
  86. package/dist/{init-CPB89WK2-Di4kgP6B.mjs → init-CPB89WK2-DPZRZ9Ee.mjs} +3 -3
  87. package/dist/{init-CPB89WK2-Di4kgP6B.mjs.map → init-CPB89WK2-DPZRZ9Ee.mjs.map} +1 -1
  88. package/dist/{inspect-live-schema-DEYE4EHW-DmSfKdpv.mjs → inspect-live-schema-Da76TWOs-CAFqkhGb.mjs} +4 -4
  89. package/dist/{inspect-live-schema-DEYE4EHW-DmSfKdpv.mjs.map → inspect-live-schema-Da76TWOs-CAFqkhGb.mjs.map} +1 -1
  90. package/dist/invariants-BzYfO9IL-BXTvx0z9.mjs +52 -0
  91. package/dist/invariants-BzYfO9IL-BXTvx0z9.mjs.map +1 -0
  92. package/dist/{invariants-CMcQxRas-CXX9uhQW.mjs → invariants-C1WVUAH7-DlOBTTkM.mjs} +3 -3
  93. package/dist/{invariants-CMcQxRas-CXX9uhQW.mjs.map → invariants-C1WVUAH7-DlOBTTkM.mjs.map} +1 -1
  94. package/dist/{io-CL3hSv42-DGZtTs89.mjs → io-CHUUeHh0-CoCBe9eN.mjs} +5 -5
  95. package/dist/{io-CL3hSv42-DGZtTs89.mjs.map → io-CHUUeHh0-CoCBe9eN.mjs.map} +1 -1
  96. package/dist/legend-5iwwlLU2-CB8bdQKJ.mjs +22 -0
  97. package/dist/legend-5iwwlLU2-CB8bdQKJ.mjs.map +1 -0
  98. package/dist/{migrate-COusRrm7.mjs → migrate-B-NAuO90.mjs} +87 -230
  99. package/dist/migrate-B-NAuO90.mjs.map +1 -0
  100. package/dist/migrate-show-60NNqVia-oGqMaVA9.d.mts +56 -0
  101. package/dist/migrate-show-60NNqVia-oGqMaVA9.d.mts.map +1 -0
  102. package/dist/migrate-show-B2LkXkoB-D1ZNl84C.mjs +202 -0
  103. package/dist/migrate-show-B2LkXkoB-D1ZNl84C.mjs.map +1 -0
  104. package/dist/{migration-diUAhNaa.mjs → migration-DAJY-NmR.mjs} +3 -3
  105. package/dist/{migration-diUAhNaa.mjs.map → migration-DAJY-NmR.mjs.map} +1 -1
  106. package/dist/migration-check-BDjtAn7x-B0nEBR0k.mjs +254 -0
  107. package/dist/migration-check-BDjtAn7x-B0nEBR0k.mjs.map +1 -0
  108. package/dist/{migration-check-CueEJelQ-J81XR_ns.mjs → migration-check-DONPyXff-CGTUpLv-.mjs} +12 -254
  109. package/dist/migration-check-DONPyXff-CGTUpLv-.mjs.map +1 -0
  110. package/dist/{migration-command-scaffold-DNRo4exb-9JCezdoT.mjs → migration-command-scaffold-BPqXPCFV-Bls2Wwg7.mjs} +4 -4
  111. package/dist/{migration-command-scaffold-DNRo4exb-9JCezdoT.mjs.map → migration-command-scaffold-BPqXPCFV-Bls2Wwg7.mjs.map} +1 -1
  112. package/dist/{migration-graph-D6bN-mX0-DwMWY8DA.mjs → migration-graph-DDaOHo10-yJFAbKCu.mjs} +3 -3
  113. package/dist/{migration-graph-D6bN-mX0-DwMWY8DA.mjs.map → migration-graph-DDaOHo10-yJFAbKCu.mjs.map} +1 -1
  114. package/dist/{migration-graph-BL6vfLcE.mjs → migration-graph-Dn469b0l.mjs} +10 -19
  115. package/dist/migration-graph-Dn469b0l.mjs.map +1 -0
  116. package/dist/migration-graph-HKch1Xk4-DyWhXtjZ.mjs +35 -0
  117. package/dist/migration-graph-HKch1Xk4-DyWhXtjZ.mjs.map +1 -0
  118. package/dist/migration-list-C9OPCMt--C28yBgVr.mjs +102 -0
  119. package/dist/migration-list-C9OPCMt--C28yBgVr.mjs.map +1 -0
  120. package/dist/migration-list-jk4iCtmO.mjs +120 -0
  121. package/dist/migration-list-jk4iCtmO.mjs.map +1 -0
  122. package/dist/{migration-log-BXbz6-Lj-CKHbat5f.mjs → migration-log-DQzUBrm8-D3m9wcuf.mjs} +7 -5
  123. package/dist/migration-log-DQzUBrm8-D3m9wcuf.mjs.map +1 -0
  124. package/dist/migration-new-BkSY6m0t.mjs +50 -0
  125. package/dist/migration-new-BkSY6m0t.mjs.map +1 -0
  126. package/dist/{migration-new-szZFsA3C.mjs → migration-new-g98oB3nC-BcrkxAAt.mjs} +12 -52
  127. package/dist/migration-new-g98oB3nC-BcrkxAAt.mjs.map +1 -0
  128. package/dist/{migration-path-target-BPYp3LNc-qRQlG_Yn.mjs → migration-path-target-BPYp3LNc-DsDdLU0J.mjs} +2 -2
  129. package/dist/{migration-path-target-BPYp3LNc-qRQlG_Yn.mjs.map → migration-path-target-BPYp3LNc-DsDdLU0J.mjs.map} +1 -1
  130. package/dist/migration-plan-BsOYRogP-CC1UFAbu.d.mts +159 -0
  131. package/dist/migration-plan-BsOYRogP-CC1UFAbu.d.mts.map +1 -0
  132. package/dist/migration-plan-CjIYMJZy.mjs +172 -0
  133. package/dist/migration-plan-CjIYMJZy.mjs.map +1 -0
  134. package/dist/{migration-plan-CxXAXYc8-Dnp-v8Nl.mjs → migration-plan-CwuZLXVE-DAJ-JUQT.mjs} +45 -183
  135. package/dist/migration-plan-CwuZLXVE-DAJ-JUQT.mjs.map +1 -0
  136. package/dist/{migration-show-BKsIh7Uz.mjs → migration-show-CW6EKtfw.mjs} +13 -9
  137. package/dist/migration-show-CW6EKtfw.mjs.map +1 -0
  138. package/dist/{migration-status-CNnRInne--cvmx56T.mjs → migration-status-DSQcBhiN.mjs} +37 -68
  139. package/dist/migration-status-DSQcBhiN.mjs.map +1 -0
  140. package/dist/migration-tools.d.mts +4 -4
  141. package/dist/migration-tools.mjs +13 -13
  142. package/dist/migration-tools__aggregate.mjs +1 -1
  143. package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
  144. package/dist/migration-tools__errors.d.mts +2 -2
  145. package/dist/migration-tools__errors.mjs +2 -2
  146. package/dist/migration-tools__invariants.mjs +1 -1
  147. package/dist/migration-tools__io.mjs +1 -1
  148. package/dist/migration-tools__migration-graph.mjs +2 -2
  149. package/dist/migration-tools__migration.mjs +1 -1
  150. package/dist/migration-tools__ref-resolution.mjs +1 -1
  151. package/dist/migration-tools__refs.mjs +1 -1
  152. package/dist/migration-tools__spaces.mjs +2 -2
  153. package/dist/{project-import-root-C_bd0ooL-CLXW-gp6.mjs → project-import-root-C_bd0ooL-WkbJLnAA.mjs} +2 -2
  154. package/dist/{project-import-root-C_bd0ooL-CLXW-gp6.mjs.map → project-import-root-C_bd0ooL-WkbJLnAA.mjs.map} +1 -1
  155. package/dist/ref-DSAZime8.mjs +72 -0
  156. package/dist/ref-DSAZime8.mjs.map +1 -0
  157. package/dist/ref-advancement-DaZBzm7m-BZQtedYC.mjs +96 -0
  158. package/dist/ref-advancement-DaZBzm7m-BZQtedYC.mjs.map +1 -0
  159. package/dist/ref-eJjxzYTh-CNiyDL4p.mjs +109 -0
  160. package/dist/ref-eJjxzYTh-CNiyDL4p.mjs.map +1 -0
  161. package/dist/{ref-resolution-BsdziDFA.mjs → ref-resolution-Ct2GMcNB.mjs} +2 -2
  162. package/dist/{ref-resolution-BsdziDFA.mjs.map → ref-resolution-Ct2GMcNB.mjs.map} +1 -1
  163. package/dist/ref-resolution-_S4xTT2L-BE5zgO2W.mjs +16 -0
  164. package/dist/ref-resolution-_S4xTT2L-BE5zgO2W.mjs.map +1 -0
  165. package/dist/{refs-DtoeUivZ-qay0UMSP.mjs → refs-B2BL8z3i-DGGFB7Mj.mjs} +3 -3
  166. package/dist/{refs-DtoeUivZ-qay0UMSP.mjs.map → refs-B2BL8z3i-DGGFB7Mj.mjs.map} +1 -1
  167. package/dist/refs-fQLFcMoq-UTlvnijY.mjs +47 -0
  168. package/dist/refs-fQLFcMoq-UTlvnijY.mjs.map +1 -0
  169. package/dist/{spaces-BNd2Tlk0.mjs → spaces-DxuvClN9.mjs} +6 -6
  170. package/dist/{spaces-BNd2Tlk0.mjs.map → spaces-DxuvClN9.mjs.map} +1 -1
  171. package/dist/{telemetry-DVBHDQd6-BEdoMii0.mjs → telemetry-DVBHDQd6-Ckn5oClN.mjs} +2 -2
  172. package/dist/{telemetry-DVBHDQd6-BEdoMii0.mjs.map → telemetry-DVBHDQd6-Ckn5oClN.mjs.map} +1 -1
  173. package/dist/{verify-C6L_hiJU-CN3eEe3Y.mjs → verify-C6L_hiJU-B4V3bqvG.mjs} +2 -2
  174. package/dist/{verify-C6L_hiJU-CN3eEe3Y.mjs.map → verify-C6L_hiJU-B4V3bqvG.mjs.map} +1 -1
  175. package/dist/{verify-contract-spaces-Ak73-zQK-y4qVyu-y.mjs → verify-contract-spaces-WvjSiWcB-zGhaCnfs.mjs} +4 -4
  176. package/dist/{verify-contract-spaces-Ak73-zQK-y4qVyu-y.mjs.map → verify-contract-spaces-WvjSiWcB-zGhaCnfs.mjs.map} +1 -1
  177. package/dist/vite-plugin-contract-emit.mjs +1 -1
  178. package/package.json +12 -12
  179. package/dist/config-loader.d.mts.map +0 -1
  180. package/dist/contract-at-errors-YdCQ5OOk-okxG7Eaj.mjs.map +0 -1
  181. package/dist/contract-space-aggregate-loader-CziO_ZRW-DIoQOL0P.mjs.map +0 -1
  182. package/dist/db-init-CXMcvoIA.mjs.map +0 -1
  183. package/dist/db-sign-xV_rpoIc.mjs.map +0 -1
  184. package/dist/db-update-DXa2DIvu.mjs.map +0 -1
  185. package/dist/errors-AkMBj-YP.d.mts.map +0 -1
  186. package/dist/migrate-COusRrm7.mjs.map +0 -1
  187. package/dist/migration-check-CueEJelQ-J81XR_ns.mjs.map +0 -1
  188. package/dist/migration-graph-BL6vfLcE.mjs.map +0 -1
  189. package/dist/migration-list-D2_JdzWC-MRHYYVQE.mjs +0 -228
  190. package/dist/migration-list-D2_JdzWC-MRHYYVQE.mjs.map +0 -1
  191. package/dist/migration-log-BXbz6-Lj-CKHbat5f.mjs.map +0 -1
  192. package/dist/migration-new-szZFsA3C.mjs.map +0 -1
  193. package/dist/migration-plan-CxXAXYc8-Dnp-v8Nl.mjs.map +0 -1
  194. package/dist/migration-show-BKsIh7Uz.mjs.map +0 -1
  195. package/dist/migration-status-CNnRInne--cvmx56T.mjs.map +0 -1
  196. package/dist/ref-DjZ5Y8ju.mjs +0 -171
  197. package/dist/ref-DjZ5Y8ju.mjs.map +0 -1
  198. package/dist/ref-advancement-CSPMoQs3-CPkL3IFF.mjs +0 -57
  199. package/dist/ref-advancement-CSPMoQs3-CPkL3IFF.mjs.map +0 -1
  200. package/dist/types-2n_H3DQ9-Bks8UPEO.d.mts.map +0 -1
@@ -1,6 +1,19 @@
1
- import { A as SchemaVerifyOptions, C as EmitSuccess, E as IntrospectOptions, M as VerifyOptions, N as executeDbVerify, O as OnControlProgress, S as EmitResult, T as ExecuteDbVerifyResult, _ as DbUpdateSuccess, a as ControlClient, b as EmitFailureCode, c as DbInitFailure, d as DbInitResult, f as DbInitSuccess, g as DbUpdateResult, h as DbUpdateOptions, i as ControlActionName, j as SignOptions, l as DbInitFailureCode, m as DbUpdateFailureCode, n as ContractEmitOptions, o as ControlClientOptions, p as DbUpdateFailure, r as ContractEmitResult, s as ControlProgressEvent, u as DbInitOptions, v as EmitContractConfig, w as ExecuteDbVerifyOptions, x as EmitOptions, y as EmitFailure } from "./types-2n_H3DQ9-Bks8UPEO.mjs";
1
+ import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
2
+ import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
3
+ import { r as MigrationRef, t as ContractRef } from "./ref-resolution-COGOSL57.mjs";
4
+ import { A as SchemaVerifyOptions, C as EmitSuccess, E as IntrospectOptions, M as VerifyOptions, N as executeDbVerify, O as OnControlProgress, S as EmitResult, T as ExecuteDbVerifyResult, _ as DbUpdateSuccess, a as ControlClient, b as EmitFailureCode, c as DbInitFailure, d as DbInitResult, f as DbInitSuccess, g as DbUpdateResult, h as DbUpdateOptions, i as ControlActionName, j as SignOptions, l as DbInitFailureCode, m as DbUpdateFailureCode, n as ContractEmitOptions, o as ControlClientOptions, p as DbUpdateFailure, r as ContractEmitResult, s as ControlProgressEvent, t as CliStructuredError$1, u as DbInitOptions, v as EmitContractConfig, w as ExecuteDbVerifyOptions, x as EmitOptions, y as EmitFailure } from "./cli-errors-CDr3WcJP-NFry5GHb.mjs";
5
+ import { n as OnDiskMigrationPackage } from "./package-CfWiDNrr-ZR4HM_Iz.mjs";
6
+ import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-BflrjWPO.mjs";
7
+ import { i as executeMigrateShowPlan, n as MigrateShowMigration, r as MigrateShowPlanSuccess, t as ExecuteMigrateShowPlanOptions } from "./migrate-show-60NNqVia-oGqMaVA9.mjs";
8
+ import { n as MigrationCheckResult, o as MigrationSpaceGraphEntry, r as MigrationListResult, s as MigrationSpaceListEntry } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
9
+ import { t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
10
+ import "./package-N9PPdFV_.mjs";
11
+ import { a as executeMigrationPlanCommand, i as MigrationPlanResult, n as ContractSpaceSeedPhaseRecord, o as runContractSpaceSeedPhase, r as ContractSpaceSeedPhaseResult, t as ContractSpaceSeedPhaseInputs } from "./migration-plan-BsOYRogP-CC1UFAbu.mjs";
12
+ import { i as loadConfig } from "./index-Df9igRvP.mjs";
13
+ import { Result } from "@prisma/orm-framework/utils/result";
2
14
  import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
3
15
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
16
+ import { PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
4
17
  import { Contract } from "@prisma/orm-framework/contract/types";
5
18
  //#region ../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts
6
19
  //#region src/control-api/client.d.ts
@@ -22,6 +35,15 @@ declare function createControlClient(options: ControlClientOptions): ControlClie
22
35
  */
23
36
  declare function enrichContract(ir: Contract, components: ReadonlyArray<TargetBoundComponentDescriptor<string, string>>): Contract;
24
37
  //#endregion
38
+ //#region src/control-api/operations/caught-errors.d.ts
39
+ /** CliStructuredError (including MigrationToolsError) → identity; anything else → null (caller rethrows/wraps). */
40
+ declare function mapCaughtMigrationError(error: unknown): CliStructuredError$1 | null;
41
+ //#endregion
42
+ //#region src/control-api/operations/contract-at-errors.d.ts
43
+ declare function mapContractAtError(error: unknown, options?: {
44
+ readonly artifactRole?: 'from' | 'to';
45
+ }): Result<never, CliStructuredError$1>;
46
+ //#endregion
25
47
  //#region src/control-api/operations/contract-emit.d.ts
26
48
  /**
27
49
  * Canonical contract emit operation.
@@ -45,6 +67,136 @@ declare function enrichContract(ir: Contract, components: ReadonlyArray<TargetBo
45
67
  */
46
68
  declare function executeContractEmit(options: ContractEmitOptions): Promise<ContractEmitResult>;
47
69
  //#endregion
70
+ //#region src/control-api/operations/contract-snapshot-resolution.d.ts
71
+ interface ResolveContractRefToSnapshotBaseOptions {
72
+ readonly config: PrismaNextConfig;
73
+ readonly migrationsDir: string;
74
+ /** User-supplied contract reference (hash, prefix, ref name, migration dir name, <dir>^, or ./path). */
75
+ readonly refInput: string;
76
+ /** Absolute path of the emitted contract.json (fallback source + snapshot-path derivation). */
77
+ readonly contractPathAbsolute: string;
78
+ }
79
+ /**
80
+ * `fallbackToEmitted` discriminates the missing-bundle behavior:
81
+ * true (db sign): fall back to the emitted contract when no bundle matches and its
82
+ * storage.storageHash matches; else the 'No contract file found for hash "<hash>"' errorRuntime.
83
+ * false (db update --to): missing bundle = the errorUnexpected 'No migration bundle found for
84
+ * <flag> "<input>" (resolved hash: <hash>)' envelope, so `missingBundleFlag` (the flag label
85
+ * for that message) is required in this branch.
86
+ */
87
+ type ResolveContractRefToSnapshotOptions = ResolveContractRefToSnapshotBaseOptions & ({
88
+ readonly fallbackToEmitted: true;
89
+ readonly missingBundleFlag?: never;
90
+ } | {
91
+ readonly fallbackToEmitted: false;
92
+ readonly missingBundleFlag: '--to';
93
+ });
94
+ interface ResolveContractRefToSnapshotSuccess {
95
+ readonly hash: string;
96
+ readonly contractJson: Record<string, unknown>;
97
+ /** snapshot → join(contractSnapshotDir(migrationsDir, hash), 'contract.json'); emitted → contractPathAbsolute. */
98
+ readonly contractJsonPath: string;
99
+ readonly source: 'snapshot' | 'emitted';
100
+ }
101
+ declare function resolveContractRefToSnapshot(options: ResolveContractRefToSnapshotOptions): Promise<Result<ResolveContractRefToSnapshotSuccess, CliStructuredError$1>>;
102
+ //#endregion
103
+ //#region src/control-api/operations/contract-space-aggregate-loader.d.ts
104
+ /**
105
+ * Map the integrity violations `checkIntegrity` reports into a single
106
+ * CLI structured-error envelope, preserving the error codes the prior
107
+ * throw-on-load loader emitted: `MIGRATION.CONTRACT_SPACE_LAYOUT_VIOLATION`
108
+ * (layout drift, bundled) and `MIGRATION.CONTRACT_SPACE_VIOLATION` (target /
109
+ * disjointness / contract-validation / structural integrity). Returns
110
+ * `null` when there is nothing to refuse on.
111
+ *
112
+ * Precedence reproduces the prior loader's first-failure ordering:
113
+ * layout drift first (every offence bundled into one envelope), then
114
+ * target mismatch, then disjointness, then a contract-validation
115
+ * failure, then any remaining structural integrity violation.
116
+ */
117
+ declare function mapIntegrityViolations(violations: readonly IntegrityViolation[]): CliStructuredError$1 | null;
118
+ /**
119
+ * Inputs needed to compose the aggregate loader at the CLI surface.
120
+ *
121
+ * Keeps the loader framework-neutral (no `Config` import) by accepting
122
+ * already-resolved structural inputs: validated app contract, target
123
+ * id, migrations root directory, and the set of extension descriptors.
124
+ */
125
+ interface BuildAggregateInputs<TFamilyId extends string, TTargetId extends string> {
126
+ readonly targetId: TTargetId;
127
+ readonly migrationsDir: string;
128
+ readonly appContract: Contract;
129
+ readonly extensions: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
130
+ readonly deserializeContract: (contractJson: unknown) => Contract;
131
+ }
132
+ /**
133
+ * Reject extension descriptors whose configured target disagrees with
134
+ * the project target before any on-disk read.
135
+ */
136
+ declare function refuseDeclaredExtensionTargetMismatch<TFamilyId extends string, TTargetId extends string>(inputs: BuildAggregateInputs<TFamilyId, TTargetId>): CliStructuredError$1 | null;
137
+ /**
138
+ * Load the tolerant {@link ContractSpaceAggregate} once at the CLI
139
+ * surface. Construction never throws on disk content; callers query
140
+ * {@link ContractSpaceAggregate.app} / extension facets instead of
141
+ * re-reading `migrations/`.
142
+ */
143
+ declare function loadContractSpaceAggregateForCli<TFamilyId extends string, TTargetId extends string>(inputs: BuildAggregateInputs<TFamilyId, TTargetId>): Promise<Result<ContractSpaceAggregate, CliStructuredError$1>>;
144
+ /**
145
+ * Run `checkIntegrity` on a loaded aggregate and map violations into
146
+ * the contract-space refusal envelope, or return `null` when the model
147
+ * is acceptable for the requested check scope.
148
+ */
149
+ declare function refuseContractSpaceIntegrity(aggregate: ContractSpaceAggregate, options: IntegrityQueryOptions): CliStructuredError$1 | null;
150
+ /**
151
+ * Reader-subset integrity refusal for `migration status`: package
152
+ * corruptions only (`hashMismatch`, `providedInvariantsMismatch`,
153
+ * `packageUnloadable`).
154
+ */
155
+ declare function refusePackageCorruptionOnAggregate(aggregate: ContractSpaceAggregate): CliStructuredError$1 | null;
156
+ /**
157
+ * Construct the tolerant {@link ContractSpaceAggregate} at the CLI
158
+ * surface and apply the explicit integrity refusal.
159
+ *
160
+ * App-space migration packages are read from `migrations/<app>/` by the
161
+ * loader itself; callers no longer thread them through.
162
+ */
163
+ declare function buildContractSpaceAggregate<TFamilyId extends string, TTargetId extends string>(inputs: BuildAggregateInputs<TFamilyId, TTargetId>): Promise<Result<ContractSpaceAggregate, CliStructuredError$1>>;
164
+ /**
165
+ * Build a minimal app {@link Contract} carrying only the project's
166
+ * contract-identity (`storage.storageHash` + `target` / `targetFamily`)
167
+ * when the real `contract.json` is absent or undeserializable.
168
+ *
169
+ * `loadContractSpaceAggregate` requires an `appContract` to synthesise the
170
+ * app space's head ref from its storage hash. Read commands query only that
171
+ * hash and the target — never `models` — so an empty-`models` stand-in is
172
+ * sufficient for them. It is *not* a valid contract for any consumer that
173
+ * reads schema, which is why this is confined to the read-aggregate path.
174
+ */
175
+ declare function appContractStandInFromIdentity(args: {
176
+ readonly contractHash: string;
177
+ readonly targetId: string;
178
+ readonly targetFamily: string;
179
+ }): Contract;
180
+ declare function loadContractRawSafely(config: {
181
+ contract?: {
182
+ output?: string;
183
+ };
184
+ }): Promise<unknown | null>;
185
+ /**
186
+ * Tolerant {@link ContractSpaceAggregate} assembly for read-only CLI
187
+ * commands. No integrity gate — callers query `aggregate.app` (or other
188
+ * facets) without re-reading `migrations/`. When `contract.json` is absent
189
+ * or undeserializable, the app contract falls back to an identity-only
190
+ * stand-in ({@link appContractStandInFromIdentity}), so these commands
191
+ * load without requiring a readable contract.
192
+ */
193
+ declare function buildReadAggregate(config: PrismaNextConfig, options: {
194
+ readonly migrationsDir: string;
195
+ }): Promise<Result<{
196
+ readonly aggregate: ContractSpaceAggregate;
197
+ readonly contractHash: string;
198
+ }, CliStructuredError$1>>;
199
+ //#endregion
48
200
  //#region src/control-api/operations/db-init.d.ts
49
201
  /**
50
202
  * Options for executing the `db init` operation.
@@ -134,8 +286,356 @@ interface ExecuteDbUpdateOptions<TFamilyId extends string, TTargetId extends str
134
286
  */
135
287
  declare function executeDbUpdate<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbUpdateOptions<TFamilyId, TTargetId>): Promise<DbUpdateResult>;
136
288
  //#endregion
289
+ //#region src/control-api/operations/graph-queries.d.ts
290
+ /** True when the on-disk graph contains a path fromHash → toHash. */
291
+ declare function hasMigrationPath(graph: MigrationGraph, fromHash: string, toHash: string): boolean;
292
+ /**
293
+ * Refusal for a live marker hash that is not a node of the on-disk app graph.
294
+ * Same errorMarkerMismatch envelope migrate raises today, or null when the marker is a node.
295
+ */
296
+ declare function refuseMarkerOutsideGraph(args: {
297
+ readonly markerHash: string;
298
+ readonly graph: MigrationGraph;
299
+ }): CliStructuredError$1 | null;
300
+ //#endregion
301
+ //#region src/control-api/operations/invariants.d.ts
302
+ /** Refuses ref invariants neither declared on any graph edge nor present on the live marker. */
303
+ declare function refuseUnknownInvariants(args: {
304
+ readonly graph: MigrationGraph;
305
+ readonly markerInvariants: readonly string[];
306
+ readonly refInvariants: readonly string[];
307
+ readonly refName?: string;
308
+ }): CliStructuredError$1 | null;
309
+ /** Refuses a --to target whose missing invariants no path from originHash satisfies. */
310
+ declare function refuseMissingInvariantPath(args: {
311
+ readonly graph: MigrationGraph;
312
+ readonly originHash: string;
313
+ readonly targetHash: string;
314
+ readonly missing: readonly string[];
315
+ readonly refName?: string;
316
+ }): CliStructuredError$1 | null;
317
+ //#endregion
318
+ //#region src/control-api/operations/migration-check.d.ts
319
+ /**
320
+ * One contract space's on-disk state, resolved for the explicit graph
321
+ * checks `runMigrationCheck` runs per space: the space's migration
322
+ * packages, its user-authored refs, its induced graph, and the absolute
323
+ * `migrations/<space>/` + `migrations/<space>/refs/` directories the
324
+ * file-existence and dangling-ref `where` paths are derived from.
325
+ */
326
+ interface CheckSpace {
327
+ readonly spaceId: string;
328
+ readonly packages: readonly OnDiskMigrationPackage[];
329
+ readonly refs: Refs;
330
+ readonly graph: MigrationGraph;
331
+ readonly migrationsDir: string;
332
+ readonly refsDir: string;
333
+ /** Migrations root the contract-snapshot store lives under — shared by every space. */
334
+ readonly projectMigrationsDir: string;
335
+ }
336
+ /**
337
+ * Project the loaded {@link ContractSpaceAggregate} into the
338
+ * {@link CheckSpace} rows the multi-space check iterates — one per on-disk
339
+ * contract-space directory, in the aggregate's `app`-first ordering. Mirrors
340
+ * `migration list`'s `migrationSpaceListEntriesFromAggregate`: space
341
+ * membership matches the on-disk directories, package / ref / graph data come
342
+ * from `aggregate.space(id)`.
343
+ */
344
+ declare function enumerateCheckSpaces(aggregate: ContractSpaceAggregate, projectMigrationsDir: string): Promise<readonly CheckSpace[]>;
345
+ /**
346
+ * Inputs for {@link runMigrationCheck} — the multi-space policy core of
347
+ * the holistic (no-arg) `migration check`. Enumeration is supplied by the
348
+ * caller (the CLI shell builds it from {@link enumerateCheckSpaces}); the
349
+ * core does not touch config, flags, or streams.
350
+ */
351
+ interface RunMigrationCheckInputs {
352
+ readonly spaces: readonly CheckSpace[];
353
+ readonly spaceFilter?: string;
354
+ }
355
+ /**
356
+ * Policy core of the holistic `migration check`: validates `--space`,
357
+ * narrows the pre-enumerated spaces, and runs the per-space explicit graph
358
+ * checks (file-existence, snapshot consistency, reachability, dangling
359
+ * refs), aggregating every failure into one {@link MigrationCheckResult}.
360
+ *
361
+ * `--space` validation mirrors `migration list`: an invalid id →
362
+ * {@link errorInvalidSpaceId}; an id with no on-disk space →
363
+ * {@link errorSpaceNotFound}. Both map to exit `PRECONDITION` at the shell.
364
+ * Aggregate-integrity violations (which already span every space) are folded
365
+ * in by the caller, not here.
366
+ */
367
+ declare function runMigrationCheck(inputs: RunMigrationCheckInputs): Promise<Result<MigrationCheckResult, CliStructuredError$1>>;
368
+ declare function loadAggregateIntegrityViolations(config: Awaited<ReturnType<typeof loadConfig>>, migrationsDir: string): Promise<readonly IntegrityViolation[]>;
369
+ interface MigrationCheckOutcome {
370
+ readonly result?: MigrationCheckResult;
371
+ readonly error?: CliStructuredError$1;
372
+ readonly exitCode: number;
373
+ readonly resolvedSpaceId?: string;
374
+ }
375
+ interface SingleTargetInputs {
376
+ readonly spaces: readonly CheckSpace[];
377
+ readonly spaceFilter?: string;
378
+ readonly appMigrationsDir: string;
379
+ readonly appMigrationsRelative: string;
380
+ }
381
+ /**
382
+ * Single-target (`check <ref/path>`) mode — resolves a migration reference
383
+ * across all contract spaces (or the one space narrowed by `--space <id>`).
384
+ *
385
+ * Resolution:
386
+ * - filesystem path → find the owning space by checking which space's
387
+ * `migrationsDir` contains the resolved path; falls back to app-relative
388
+ * validation when the path is outside every space dir.
389
+ * - ref → `parseMigrationRef` against each in-scope space; collect every
390
+ * (space, package) hit; 0 hits = not-found, 1 = check it, >1 = ambiguity
391
+ * error (qualify with `--space`).
392
+ *
393
+ * `--space <id>` is validated the same way the holistic path does it:
394
+ * invalid id → `errorInvalidSpaceId`; no on-disk space → `errorSpaceNotFound`.
395
+ */
396
+ declare function checkSingleTarget(target: string, inputs: SingleTargetInputs): Promise<MigrationCheckOutcome>;
397
+ //#endregion
398
+ //#region src/control-api/operations/migration-graph.d.ts
399
+ /**
400
+ * Project scoped list entries into the per-space contracts+migrations rows the migration
401
+ * graph --json output serializes (EMPTY_CONTRACT_HASH from-hash → null). Skips space ids
402
+ * the aggregate no longer resolves, mirroring the command loop.
403
+ */
404
+ declare function buildMigrationSpaceGraphEntries(args: {
405
+ readonly aggregate: ContractSpaceAggregate;
406
+ readonly scopedSpaces: readonly MigrationSpaceListEntry[];
407
+ }): readonly MigrationSpaceGraphEntry[];
408
+ //#endregion
409
+ //#region src/control-api/operations/migration-list.d.ts
410
+ /**
411
+ * Ref names decorating a space's destination contract hashes. The
412
+ * tolerant `space.refs` deliberately omits the structural `head.json`;
413
+ * for extension spaces the old enumerator surfaced it as a `head`
414
+ * decoration on the tip migration, so fold `space.headRef` back in to
415
+ * keep that output. The app space synthesises its head, so it carries
416
+ * no on-disk `head` ref to restore.
417
+ */
418
+ declare function listRefsByContractHash(space: AggregateContractSpace): ReadonlyMap<string, readonly string[]>;
419
+ /**
420
+ * Project the loaded {@link ContractSpaceAggregate} into the render-ready
421
+ * {@link MigrationSpaceListEntry} rows `migration list` displays.
422
+ *
423
+ * Space membership matches the on-disk contract-space directories (not the
424
+ * aggregate's always-present synthesized app space when `migrations/app/`
425
+ * is absent); package and ref data come from `aggregate.space(id)`.
426
+ */
427
+ declare function migrationSpaceListEntriesFromAggregate(aggregate: ContractSpaceAggregate, projectMigrationsDir: string): Promise<readonly MigrationSpaceListEntry[]>;
428
+ /**
429
+ * Inputs for {@link runMigrationList} — the policy core of `migration list`
430
+ * that tests exercise directly.
431
+ *
432
+ * The core does not call `loadConfig`, parse CLI flags, render a styled
433
+ * header, or write to any stream. Enumeration is supplied by the caller
434
+ * (the CLI shell builds it from {@link migrationSpaceListEntriesFromAggregate}).
435
+ */
436
+ interface RunMigrationListInputs {
437
+ readonly spaces: readonly MigrationSpaceListEntry[];
438
+ readonly spaceFilter?: string;
439
+ }
440
+ /**
441
+ * Policy core of `migration list`: validates `--space`, narrows the
442
+ * pre-enumerated spaces, and assembles a {@link MigrationListResult}.
443
+ *
444
+ * - `migrations/` missing or contains no valid space directories →
445
+ * caller passes `spaces: []`; this synthesizes `[{ spaceId: APP_SPACE_ID, migrations: [] }]`.
446
+ * - `--space <id>` on an existing-but-empty space → `{ spaceId, migrations: [] }` in the input.
447
+ * - `--space <id>` on a non-existent (or reserved) space → `SPACE_NOT_FOUND`.
448
+ */
449
+ declare function runMigrationList(inputs: RunMigrationListInputs): Result<MigrationListResult, CliStructuredError$1>;
450
+ //#endregion
451
+ //#region src/control-api/operations/migration-new.d.ts
452
+ interface MigrationNewOptions extends CommonCommandOptions {
453
+ readonly name?: string;
454
+ readonly from?: string;
455
+ readonly config?: string;
456
+ }
457
+ interface MigrationNewResult {
458
+ readonly ok: true;
459
+ readonly dir: string;
460
+ readonly from: string | null;
461
+ readonly to: string;
462
+ readonly summary: string;
463
+ }
464
+ declare function executeMigrationNewCommand(options: MigrationNewOptions): Promise<Result<MigrationNewResult, CliStructuredError$1>>;
465
+ //#endregion
466
+ //#region src/utils/formatters/migration-graph-labels.d.ts
467
+ interface MigrationEdgeAnnotation {
468
+ readonly status?: 'applied' | 'pending';
469
+ readonly operationCount?: number;
470
+ readonly invariants?: readonly string[];
471
+ /**
472
+ * Path-highlight annotation for `migrate --show` preview.
473
+ * - `'on-path'`: migration is on the chosen path; rendered in bright green.
474
+ * - `'off-path'`: migration is off the chosen path; fully drawn but dim grey.
475
+ */
476
+ readonly pathHighlight?: 'on-path' | 'off-path';
477
+ }
478
+ //#endregion
479
+ //#region src/control-api/operations/migration-status-overlay.d.ts
480
+ /** Origin hash for status path computation: the live/override marker, or the empty-contract sentinel. */
481
+ declare function originHashForStatus(markerHash: string | undefined): string;
482
+ interface DeriveStatusEdgeAnnotationsInput {
483
+ readonly graph: MigrationGraph;
484
+ readonly targetHash: string;
485
+ readonly originHash: string;
486
+ readonly appliedMigrationHashes: ReadonlySet<string>;
487
+ readonly showAppliedOverlay: boolean;
488
+ }
489
+ declare function deriveStatusEdgeAnnotations(input: DeriveStatusEdgeAnnotationsInput): ReadonlyMap<string, MigrationEdgeAnnotation>;
490
+ declare function appliedHashesFromLedger(ledgerEntries: ReadonlyArray<{
491
+ readonly migrationHash: string;
492
+ }>): ReadonlySet<string>;
493
+ declare function statusForMigrationHash(migrationHash: string, annotations: ReadonlyMap<string, MigrationEdgeAnnotation>): 'applied' | 'pending' | null;
494
+ //#endregion
495
+ //#region src/control-api/operations/plan-resolution.d.ts
496
+ type FromResolution = {
497
+ kind: 'greenfield';
498
+ fromHash: null;
499
+ fromContract: null;
500
+ } | {
501
+ kind: 'graph-node';
502
+ fromHash: string;
503
+ fromContract: Contract;
504
+ } | {
505
+ kind: 'ref';
506
+ fromHash: string;
507
+ fromContract: Contract;
508
+ contractDts: string;
509
+ contractJson: unknown;
510
+ } | {
511
+ kind: 'auto-baseline';
512
+ fromHash: string;
513
+ fromContract: Contract;
514
+ contractDts: string;
515
+ contractJson: unknown;
516
+ };
517
+ interface ResolveFromForPlanInput {
518
+ readonly optionsFrom?: string | undefined;
519
+ readonly space: AggregateContractSpace;
520
+ }
521
+ declare function resolveFromForPlan(input: ResolveFromForPlanInput): Promise<Result<FromResolution, CliStructuredError$1>>;
522
+ interface ResolveToForPlanInput {
523
+ readonly space: AggregateContractSpace;
524
+ }
525
+ interface ResolvedContractRef {
526
+ readonly hash: string;
527
+ readonly contract: Contract;
528
+ readonly contractJson: unknown;
529
+ readonly contractDts: string;
530
+ }
531
+ declare function resolveToForPlan(optionsTo: string, input: ResolveToForPlanInput): Promise<Result<ResolvedContractRef, CliStructuredError$1>>;
532
+ //#endregion
533
+ //#region src/control-api/operations/ref.d.ts
534
+ interface RefSetResult {
535
+ readonly ok: true;
536
+ readonly ref: string;
537
+ readonly hash: string;
538
+ readonly invariants: readonly string[];
539
+ }
540
+ interface RefDeleteResult {
541
+ readonly ok: true;
542
+ readonly ref: string;
543
+ readonly deleted: true;
544
+ }
545
+ interface RefListResult {
546
+ readonly ok: true;
547
+ readonly refs: Record<string, RefEntry>;
548
+ }
549
+ declare function executeRefSetCommand(name: string, contractInput: string, options: {
550
+ config?: string;
551
+ }): Promise<Result<RefSetResult, CliStructuredError$1>>;
552
+ declare function executeRefDeleteCommand(name: string, options: {
553
+ config?: string;
554
+ }): Promise<Result<RefDeleteResult, CliStructuredError$1>>;
555
+ declare function executeRefListCommand(options: {
556
+ config?: string;
557
+ }): Promise<Result<RefListResult, CliStructuredError$1>>;
558
+ //#endregion
559
+ //#region src/control-api/operations/ref-advancement.d.ts
560
+ interface ContractIR {
561
+ readonly contract: unknown;
562
+ readonly contractDts: string;
563
+ }
564
+ interface RefAdvancementFields {
565
+ readonly advancedRef: {
566
+ readonly name: string;
567
+ readonly hash: string;
568
+ } | null;
569
+ readonly plannedAdvanceRef: {
570
+ readonly name: string;
571
+ readonly hash: string;
572
+ } | null;
573
+ }
574
+ declare function computeRefAdvancementName(options: {
575
+ readonly advanceRef?: string;
576
+ readonly db?: string;
577
+ }): string | null;
578
+ declare function readContractIR(contractJson: Record<string, unknown>, contractJsonPath: string): Promise<ContractIR>;
579
+ declare function executeRefAdvancement(refsDir: string, migrationsDir: string, name: string, hash: string, contractIR: ContractIR): Promise<{
580
+ name: string;
581
+ hash: string;
582
+ }>;
583
+ declare function buildRefAdvancementFields(options: {
584
+ readonly advanceRef?: string;
585
+ readonly db?: string;
586
+ readonly refsDir: string;
587
+ readonly migrationsDir: string;
588
+ readonly contractIR: ContractIR;
589
+ readonly mode: 'plan' | 'apply';
590
+ readonly hash: string;
591
+ }): Promise<RefAdvancementFields>;
592
+ interface ResolveRefAdvancementFieldsOptions {
593
+ readonly advanceRef?: string;
594
+ readonly db?: string;
595
+ readonly refsDir: string;
596
+ readonly migrationsDir: string;
597
+ readonly contractJson: Record<string, unknown>;
598
+ /** Path whose sibling .d.ts readContractIR derives (contract.json path). */
599
+ readonly contractJsonPath: string;
600
+ readonly mode: 'plan' | 'apply';
601
+ readonly hash: string;
602
+ }
603
+ /**
604
+ * Full ref-advancement phase for db init/update: ok({advancedRef:null, plannedAdvanceRef:null})
605
+ * when computeRefAdvancementName is null; else readContractIR + buildRefAdvancementFields with
606
+ * MigrationToolsError mapped, other errors rethrown.
607
+ */
608
+ declare function resolveRefAdvancementFields(options: ResolveRefAdvancementFieldsOptions): Promise<Result<RefAdvancementFields, CliStructuredError$1>>;
609
+ /** migrate's --advance-ref tail: executeRefAdvancement with MigrationToolsError passed through, others rethrown. */
610
+ declare function advanceRefSafely(args: {
611
+ readonly refsDir: string;
612
+ readonly migrationsDir: string;
613
+ readonly name: string;
614
+ readonly hash: string;
615
+ readonly contractIR: ContractIR;
616
+ }): Promise<Result<{
617
+ readonly name: string;
618
+ readonly hash: string;
619
+ }, CliStructuredError$1>>;
620
+ //#endregion
621
+ //#region src/control-api/operations/ref-resolution.d.ts
622
+ interface RefResolutionContext {
623
+ readonly graph: MigrationGraph;
624
+ readonly refs: Refs;
625
+ readonly contractHash?: string;
626
+ }
627
+ declare function resolveContractRef(input: string, context: RefResolutionContext): Result<ContractRef, CliStructuredError$1>;
628
+ declare function resolveMigrationRef(input: string, context: {
629
+ readonly graph: MigrationGraph;
630
+ readonly refs: Refs;
631
+ }): Result<MigrationRef, CliStructuredError$1>;
632
+ //#endregion
633
+ //#region src/control-api/operations/refs.d.ts
634
+ /** Reads migrations/<app>/refs, passing MigrationToolsError through; other errors rethrow. */
635
+ declare function readMigrationRefs(refsDir: string): Promise<Result<Refs, CliStructuredError$1>>;
636
+ //#endregion
137
637
  //#region src/utils/emit-queue.d.ts
138
638
  declare function disposeEmitQueue(outputJsonPath: string): void;
139
639
  //#endregion
140
- export { type ContractEmitOptions, type ContractEmitResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type DbInitFailure, type DbInitFailureCode, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbUpdateFailure, type DbUpdateFailureCode, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type ExecuteDbInitOptions, type ExecuteDbUpdateOptions, type ExecuteDbVerifyOptions, type ExecuteDbVerifyResult, type IntrospectOptions, type OnControlProgress, type SchemaVerifyOptions, type SignDatabaseResult, type SignOptions, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, createControlClient, disposeEmitQueue, enrichContract, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify };
640
+ export { type BuildAggregateInputs, type CheckSpace, type ContractEmitOptions, type ContractEmitResult, type ContractIR, type ContractSpaceSeedPhaseInputs, type ContractSpaceSeedPhaseRecord, type ContractSpaceSeedPhaseResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type DbInitFailure, type DbInitFailureCode, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbUpdateFailure, type DbUpdateFailureCode, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type ExecuteDbInitOptions, type ExecuteDbUpdateOptions, type ExecuteDbVerifyOptions, type ExecuteDbVerifyResult, type ExecuteMigrateShowPlanOptions, type FromResolution, type IntrospectOptions, type MigrateShowMigration, type MigrateShowPlanSuccess, type MigrationCheckOutcome, type MigrationPlanResult, type OnControlProgress, type RefAdvancementFields, type ResolveContractRefToSnapshotOptions, type ResolveContractRefToSnapshotSuccess, type ResolvedContractRef, type RunMigrationCheckInputs, type RunMigrationListInputs, type SchemaVerifyOptions, type SignDatabaseResult, type SignOptions, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSpaceAggregateForCli, mapCaughtMigrationError, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, originHashForStatus, readContractIR, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveRefAdvancementFields, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
141
641
  //# sourceMappingURL=cli__control-api.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;iBAeiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;iBAuBzG,oBAAoB,SAAS,sBAAsB,QAAQ;;;;;;;;;;;;;;;;;;;;UAoBlE,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;;;;;WAK7E;;;;;WAKA,UAAU;;;;;;WAMV,aAAa,cAAc,2BAA2B,WAAW;;WAEjE,aAAa;;;;;;;;;iBASP,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ;;;;;;;;;;;;UAYvI,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;WACA;WACA,UAAU;WACV,aAAa,cAAc,2BAA2B,WAAW;WACjE,aAAa;;;;;;;;;;;iBAWP,gBAAgB,0BAA0B,0BAA0B,SAAS,uBAAuB,WAAW,aAAa,QAAQ;;;iBAGpI,iBAAiB"}
1
+ {"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;iBAIzG,wBAAwB,iBAAiB;;;iBAGzC,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;;;;;;;;;;;;;;;;;;;;;iBAuBD,oBAAoB,SAAS,sBAAsB,QAAQ;;;UAGlE;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;;;;KAUN,sCAAsC;WAChC;WACA;;WAEA;WACA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;;;;;;;;;;;;;;iBAgBhI,uBAAuB,qBAAqB,uBAAuB;;;;;;;;UAQ1E,qBAAqB,0BAA0B;WAC9C,UAAU;WACV;WACA,aAAa;WACb,YAAY,cAAc,2BAA2B,WAAW;WAChE,sBAAsB,0BAA0B;;;;;;iBAM1C,sCAAsC,0BAA0B,0BAA0B,QAAQ,qBAAqB,WAAW,aAAa;;;;;;;iBAO/I,iCAAiC,0BAA0B,0BAA0B,QAAQ,qBAAqB,WAAW,aAAa,QAAQ,OAAO,wBAAwB;;;;;;iBAMjL,6BAA6B,WAAW,wBAAwB,SAAS,wBAAwB;;;;;;iBAMjG,mCAAmC,WAAW,yBAAyB;;;;;;;;iBAQvE,4BAA4B,0BAA0B,0BAA0B,QAAQ,qBAAqB,WAAW,aAAa,QAAQ,OAAO,wBAAwB;;;;;;;;;;;;iBAY5K,+BAA+B;WACrC;WACA;WACA;IACP;iBACa,sBAAsB;EACrC;IACE;;IAEA;;;;;;;;;iBASa,mBAAmB,QAAQ,kBAAkB;WACnD;IACP,QAAQ;WACD,WAAW;WACX;GACR;;;;;;;;;;;;;;;;;;;;UAoBO,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;;;;;WAK7E;;;;;WAKA,UAAU;;;;;;WAMV,aAAa,cAAc,2BAA2B,WAAW;;WAEjE,aAAa;;;;;;;;;iBASP,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ;;;;;;;;;;;;UAYvI,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;WACA;WACA,UAAU;WACV,aAAa,cAAc,2BAA2B,WAAW;WACjE,aAAa;;;;;;;;;;;iBAWP,gBAAgB,0BAA0B,0BAA0B,SAAS,uBAAuB,WAAW,aAAa,QAAQ;;;;iBAIpI,iBAAiB,OAAO,gBAAgB,kBAAkB;;;;;iBAK1D,yBAAyB;WAC/B;WACA,OAAO;IACd;;;;iBAIa,wBAAwB;WAC9B,OAAO;WACP;WACA;WACA;IACP;;iBAEa,2BAA2B;WACjC,OAAO;WACP;WACA;WACA;WACA;IACP;;;;;;;;;;UAUM;WACC;WACA,mBAAmB;WACnB,MAAM;WACN,OAAO;WACP;WACA;;WAEA;;;;;;;;;;iBAUM,qBAAqB,WAAW,wBAAwB,+BAA+B,iBAAiB;;;;;;;UAO/G;WACC,iBAAiB;WACjB;;;;;;;;;;;;;;iBAcM,kBAAkB,QAAQ,0BAA0B,QAAQ,OAAO,sBAAsB;iBACzF,iCAAiC,QAAQ,QAAQ,kBAAkB,cAAc,wBAAwB,iBAAiB;UACjI;WACC,SAAS;WACT,QAAQ;WACR;WACA;;UAED;WACC,iBAAiB;WACjB;WACA;WACA;;;;;;;;;;;;;;;;;iBAiBM,kBAAkB,gBAAgB,QAAQ,qBAAqB,QAAQ;;;;;;;;iBAQvE,gCAAgC;WACtC,WAAW;WACX,uBAAuB;aACrB;;;;;;;;;;;iBAWI,uBAAuB,OAAO,yBAAyB;;;;;;;;;iBASvD,uCAAuC,WAAW,wBAAwB,+BAA+B,iBAAiB;;;;;;;;;UASjI;WACC,iBAAiB;WACjB;;;;;;;;;;;iBAWM,iBAAiB,QAAQ,yBAAyB,OAAO,qBAAqB;;;UAGrF,4BAA4B;WAC3B;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;WACA;;iBAEM,2BAA2B,SAAS,sBAAsB,QAAQ,OAAO,oBAAoB;;;UAGpG;WACC;WACA;WACA;;;;;;WAMA;;;;;iBAKM,oBAAoB;UAC3B;WACC,OAAO;WACP;WACA;WACA,wBAAwB;WACxB;;iBAEM,4BAA4B,OAAO,mCAAmC,oBAAoB;iBAC1F,wBAAwB,eAAe;WAC7C;KACN;iBACY,uBAAuB,uBAAuB,aAAa,oBAAoB;;;KAG3F;EACH;EACA;EACA;;EAEA;EACA;EACA,cAAc;;EAEd;EACA;EACA,cAAc;EACd;EACA;;EAEA;EACA;EACA,cAAc;EACd;EACA;;UAEQ;WACC;WACA,OAAO;;iBAED,mBAAmB,OAAO,0BAA0B,QAAQ,OAAO,gBAAgB;UAC1F;WACC,OAAO;;UAER;WACC;WACA,UAAU;WACV;WACA;;iBAEM,iBAAiB,mBAAmB,OAAO,wBAAwB,QAAQ,OAAO,qBAAqB;;;UAG9G;WACC;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA,MAAM,eAAe;;iBAEf,qBAAqB,cAAc,uBAAuB;EACzE;IACE,QAAQ,OAAO,cAAc;iBAChB,wBAAwB,cAAc;EACrD;IACE,QAAQ,OAAO,iBAAiB;iBACnB,sBAAsB;EACrC;IACE,QAAQ,OAAO,eAAe;;;UAGxB;WACC;WACA;;UAED;WACC;aACE;aACA;;WAEF;aACE;aACA;;;iBAGI,0BAA0B;WAChC;WACA;;iBAEM,eAAe,cAAc,yBAAyB,2BAA2B,QAAQ;iBACzF,sBAAsB,iBAAiB,uBAAuB,cAAc,cAAc,YAAY,aAAa;EAClI;EACA;;iBAEe,0BAA0B;WAChC;WACA;WACA;WACA;WACA,YAAY;WACZ;WACA;IACP,QAAQ;UACF;WACC;WACA;WACA;WACA;WACA,cAAc;;WAEd;WACA;WACA;;;;;;;iBAOM,4BAA4B,SAAS,qCAAqC,QAAQ,OAAO,sBAAsB;;iBAE/G,iBAAiB;WACvB;WACA;WACA;WACA;WACA,YAAY;IACnB,QAAQ;WACD;WACA;GACR;;;UAGO;WACC,OAAO;WACP,MAAM;WACN;;iBAEM,mBAAmB,eAAe,SAAS,uBAAuB,OAAO,aAAa;iBACtF,oBAAoB,eAAe;WACzC,OAAO;WACP,MAAM;IACb,OAAO,cAAc;;;;iBAIR,kBAAkB,kBAAkB,QAAQ,OAAO,MAAM;;;iBAGzD,iBAAiB"}
@@ -1,4 +1,19 @@
1
- import { n as disposeEmitQueue, r as executeContractEmit } from "./contract-emit-CTm2zfuG-8mtkxW8M.mjs";
1
+ import { n as disposeEmitQueue, r as executeContractEmit } from "./contract-emit-CTm2zfuG-7PV9SBY6.mjs";
2
2
  import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
3
- import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-7aUYC7ci-Bh9mLxkl.mjs";
4
- export { createControlClient, disposeEmitQueue, enrichContract, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify };
3
+ import { a as readContractIR, i as executeRefAdvancement, n as buildRefAdvancementFields, o as resolveRefAdvancementFields, r as computeRefAdvancementName, t as advanceRefSafely } from "./ref-advancement-DaZBzm7m-BZQtedYC.mjs";
4
+ import { a as loadContractSpaceAggregateForCli, c as refuseDeclaredExtensionTargetMismatch, i as loadContractRawSafely, l as refusePackageCorruptionOnAggregate, n as buildContractSpaceAggregate, o as mapIntegrityViolations, r as buildReadAggregate, s as refuseContractSpaceIntegrity, t as appContractStandInFromIdentity } from "./contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs";
5
+ import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-Y6qbDk7X-BzKLmBZo.mjs";
6
+ import { t as resolveContractRefToSnapshot } from "./contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs";
7
+ import { t as executeMigrationNewCommand } from "./migration-new-g98oB3nC-BcrkxAAt.mjs";
8
+ import { t as mapContractAtError } from "./contract-at-errors-Dv1mxKYO-C29YB4RC.mjs";
9
+ import { i as runContractSpaceSeedPhase, n as resolveFromForPlan, r as resolveToForPlan, t as executeMigrationPlanCommand } from "./migration-plan-CwuZLXVE-DAJ-JUQT.mjs";
10
+ import { n as resolveMigrationRef, t as resolveContractRef } from "./ref-resolution-_S4xTT2L-BE5zgO2W.mjs";
11
+ import { i as refuseUnknownInvariants, n as refuseMarkerOutsideGraph, r as refuseMissingInvariantPath, t as hasMigrationPath } from "./invariants-BzYfO9IL-BXTvx0z9.mjs";
12
+ import { n as migrationSpaceListEntriesFromAggregate, r as runMigrationList, t as listRefsByContractHash } from "./migration-list-C9OPCMt--C28yBgVr.mjs";
13
+ import { a as statusForMigrationHash, i as readMigrationRefs, n as deriveStatusEdgeAnnotations, r as originHashForStatus, t as appliedHashesFromLedger } from "./refs-fQLFcMoq-UTlvnijY.mjs";
14
+ import { t as mapCaughtMigrationError } from "./caught-errors-D7Qznyrm-BzYooF6H.mjs";
15
+ import { t as buildMigrationSpaceGraphEntries } from "./migration-graph-HKch1Xk4-DyWhXtjZ.mjs";
16
+ import { i as runMigrationCheck, n as enumerateCheckSpaces, r as loadAggregateIntegrityViolations, t as checkSingleTarget } from "./migration-check-DONPyXff-CGTUpLv-.mjs";
17
+ import { t as executeMigrateShowPlan } from "./migrate-show-B2LkXkoB-D1ZNl84C.mjs";
18
+ import { n as executeRefListCommand, r as executeRefSetCommand, t as executeRefDeleteCommand } from "./ref-eJjxzYTh-CNiyDL4p.mjs";
19
+ export { advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSpaceAggregateForCli, mapCaughtMigrationError, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, originHashForStatus, readContractIR, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveRefAdvancementFields, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
@@ -1,6 +1,6 @@
1
- import { g as errorInvalidJson } from "./errors-BwusfLIN-BXM7K-ww.mjs";
1
+ import { g as errorInvalidJson } from "./errors-Co-8oaiB-CB-6Uqki.mjs";
2
2
  import { r as loadConfig } from "./exports-CDX9kZuw.mjs";
3
- import { r as buildMigrationArtifacts } from "./migration-diUAhNaa.mjs";
3
+ import { r as buildMigrationArtifacts } from "./migration-DAJY-NmR.mjs";
4
4
  import { CliStructuredError, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag } from "@prisma/orm-framework/errors/control";
5
5
  import { dirname, join } from "pathe";
6
6
  import { createControlStack } from "@prisma/orm-framework/components/control";
@@ -1,12 +1,12 @@
1
- import { O as errorNoInvariantPath } from "./errors-BwusfLIN-BXM7K-ww.mjs";
1
+ import { O as errorNoInvariantPath } from "./errors-Co-8oaiB-CB-6Uqki.mjs";
2
2
  import "./constants-CM-w38DQ-Cz_EXbOc.mjs";
3
- import { o as findPathWithDecision } from "./migration-graph-D6bN-mX0-DwMWY8DA.mjs";
4
- import { t as CliStructuredError$1 } from "./command-helpers-C4WpR-QE-CK2gkj6l.mjs";
5
- import { t as assertFrameworkComponentsCompatible } from "./framework-components-3DdB31mk-BPGSuOyZ.mjs";
3
+ import { o as findPathWithDecision } from "./migration-graph-DDaOHo10-yJFAbKCu.mjs";
4
+ import { t as CliStructuredError$1 } from "./command-helpers-C4WpR-QE-DE494TSG.mjs";
5
+ import { t as assertFrameworkComponentsCompatible } from "./framework-components-3DdB31mk-BHyX-OlJ.mjs";
6
6
  import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
7
7
  import { t as emit } from "./exports-BCLg4CiV-okAfZydo.mjs";
8
- import { d as resolveRecordedPath, f as verifyMigration, l as planMigration, n as buildFabricatedMigrationEdge, r as collectAggregateNamespaces, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-i-rfetSO.mjs";
9
- import { t as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-CziO_ZRW-DIoQOL0P.mjs";
8
+ import { d as resolveRecordedPath, f as verifyMigration, l as planMigration, n as buildFabricatedMigrationEdge, r as collectAggregateNamespaces, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-D53gnb7v.mjs";
9
+ import { n as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs";
10
10
  import { CliStructuredError } from "@prisma/orm-framework/errors/control";
11
11
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
12
12
  import { notOk, ok } from "@prisma/orm-framework/utils/result";
@@ -14,7 +14,7 @@ import { APP_SPACE_ID, createControlStack, hasMigrations, hasOperationPreview, h
14
14
  import { blindCast, castAs } from "@prisma/orm-framework/utils/casts";
15
15
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
16
16
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
17
- //#region ../../../1-framework/3-tooling/cli/dist/client-7aUYC7ci.mjs
17
+ //#region ../../../1-framework/3-tooling/cli/dist/client-Y6qbDk7X.mjs
18
18
  /**
19
19
  * Strips operation objects to their public shape (id, label, operationClass).
20
20
  * Used at the API boundary to avoid leaking internal fields (precheck, execute, postcheck, etc.).
@@ -1607,4 +1607,4 @@ var ControlClientImpl = class {
1607
1607
  //#endregion
1608
1608
  export { planSpacePath as a, executeDbVerify as i, executeDbInit as n, executeDbUpdate as r, createControlClient as t };
1609
1609
 
1610
- //# sourceMappingURL=client-7aUYC7ci-Bh9mLxkl.mjs.map
1610
+ //# sourceMappingURL=client-Y6qbDk7X-BzKLmBZo.mjs.map