@prisma/orm-toolchain 8.0.0-rc.1-dev.21 → 8.0.0-rc.1-dev.23

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 (167) hide show
  1. package/dist/bin__prisma-next.mjs +23 -23
  2. package/dist/bin__prisma-next.mjs.map +1 -1
  3. package/dist/{caught-errors-D7Qznyrm-BzYooF6H.mjs → caught-errors-D7Qznyrm-DaZubR00.mjs} +2 -2
  4. package/dist/{caught-errors-D7Qznyrm-BzYooF6H.mjs.map → caught-errors-D7Qznyrm-DaZubR00.mjs.map} +1 -1
  5. package/dist/{cli-errors-CDr3WcJP-NFry5GHb.d.mts → cli-errors-BKPhkBSf-Ca-ymb6S.d.mts} +3 -3
  6. package/dist/{cli-errors-CDr3WcJP-NFry5GHb.d.mts.map → cli-errors-BKPhkBSf-Ca-ymb6S.d.mts.map} +1 -1
  7. package/dist/cli-telemetry.mjs +6 -5
  8. package/dist/cli-telemetry.mjs.map +1 -1
  9. package/dist/cli.mjs +2 -2
  10. package/dist/cli.mjs.map +1 -1
  11. package/dist/cli__commands__contract-emit.mjs +1 -1
  12. package/dist/cli__commands__contract-infer.mjs +1 -1
  13. package/dist/cli__commands__db-init.mjs +1 -1
  14. package/dist/cli__commands__db-schema.mjs +1 -1
  15. package/dist/cli__commands__db-sign.mjs +1 -1
  16. package/dist/cli__commands__db-update.mjs +1 -1
  17. package/dist/cli__commands__db-verify.mjs +1 -1
  18. package/dist/cli__commands__migrate.d.mts +2 -2
  19. package/dist/cli__commands__migrate.mjs +1 -1
  20. package/dist/cli__commands__migration-check.mjs +1 -1
  21. package/dist/cli__commands__migration-graph.d.mts +1 -1
  22. package/dist/cli__commands__migration-graph.mjs +1 -1
  23. package/dist/cli__commands__migration-list.d.mts +1 -1
  24. package/dist/cli__commands__migration-list.mjs +1 -1
  25. package/dist/cli__commands__migration-log.d.mts +1 -1
  26. package/dist/cli__commands__migration-log.mjs +1 -1
  27. package/dist/cli__commands__migration-new.mjs +1 -1
  28. package/dist/cli__commands__migration-plan.d.mts +1 -1
  29. package/dist/cli__commands__migration-plan.mjs +1 -1
  30. package/dist/cli__commands__migration-show.mjs +1 -1
  31. package/dist/cli__commands__migration-status.d.mts +1 -1
  32. package/dist/cli__commands__migration-status.mjs +1 -1
  33. package/dist/cli__commands__ref.mjs +1 -1
  34. package/dist/cli__commands__telemetry.mjs +1 -1
  35. package/dist/cli__control-api.d.mts +5 -5
  36. package/dist/cli__control-api.d.mts.map +1 -1
  37. package/dist/cli__control-api.mjs +15 -15
  38. package/dist/cli__control-api__testing.d.mts +66 -0
  39. package/dist/cli__control-api__testing.d.mts.map +1 -0
  40. package/dist/cli__control-api__testing.mjs +255 -0
  41. package/dist/cli__control-api__testing.mjs.map +1 -0
  42. package/dist/cli__migration-cli.mjs +13 -4
  43. package/dist/cli__migration-cli.mjs.map +1 -1
  44. package/dist/{client-Y6qbDk7X-BzKLmBZo.mjs → client-BNAEJZ76-ld7eOxpZ.mjs} +5 -5
  45. package/dist/{client-Y6qbDk7X-BzKLmBZo.mjs.map → client-BNAEJZ76-ld7eOxpZ.mjs.map} +1 -1
  46. package/dist/{command-helpers-C4WpR-QE-DE494TSG.mjs → command-helpers-C4WpR-QE-DNllqff1.mjs} +3 -3
  47. package/dist/{command-helpers-C4WpR-QE-DE494TSG.mjs.map → command-helpers-C4WpR-QE-DNllqff1.mjs.map} +1 -1
  48. package/dist/config-loader.d.mts +2 -2
  49. package/dist/config-loader.mjs +2 -2
  50. package/dist/{contract-at-errors-Dv1mxKYO-C29YB4RC.mjs → contract-at-errors-Dv1mxKYO-D4xfRBW5.mjs} +2 -2
  51. package/dist/{contract-at-errors-Dv1mxKYO-C29YB4RC.mjs.map → contract-at-errors-Dv1mxKYO-D4xfRBW5.mjs.map} +1 -1
  52. package/dist/{contract-emit-D8IXP9Qp-Df6NwXn8.mjs → contract-emit-DFu7h-Zl-7DBgYNv7.mjs} +9 -13
  53. package/dist/contract-emit-DFu7h-Zl-7DBgYNv7.mjs.map +1 -0
  54. package/dist/{contract-emit-CTm2zfuG-7PV9SBY6.mjs → contract-emit-DT0JKUZT-BYE7WZPc.mjs} +17 -9
  55. package/dist/contract-emit-DT0JKUZT-BYE7WZPc.mjs.map +1 -0
  56. package/dist/{contract-infer-BwT7ngoo-Dx6aAwIN.mjs → contract-infer-C_b7E71m-D2UO-X-k.mjs} +4 -4
  57. package/dist/{contract-infer-BwT7ngoo-Dx6aAwIN.mjs.map → contract-infer-C_b7E71m-D2UO-X-k.mjs.map} +1 -1
  58. package/dist/{contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs → contract-snapshot-resolution-SATuw0JW-DpTZJd1x.mjs} +3 -3
  59. package/dist/{contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs.map → contract-snapshot-resolution-SATuw0JW-DpTZJd1x.mjs.map} +1 -1
  60. package/dist/{contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs → contract-space-aggregate-loader-C5r12INu-DfE0nmtZ.mjs} +2 -2
  61. package/dist/{contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs.map → contract-space-aggregate-loader-C5r12INu-DfE0nmtZ.mjs.map} +1 -1
  62. package/dist/{db-init-CBj_EWg3.mjs → db-init-Cqjw5Flp.mjs} +3 -3
  63. package/dist/{db-init-CBj_EWg3.mjs.map → db-init-Cqjw5Flp.mjs.map} +1 -1
  64. package/dist/{db-schema-BWpeh0Q_.mjs → db-schema-CRGCFKlH.mjs} +4 -4
  65. package/dist/{db-schema-BWpeh0Q_.mjs.map → db-schema-CRGCFKlH.mjs.map} +1 -1
  66. package/dist/{db-sign-DCb_DKtv.mjs → db-sign-BPQduGHb.mjs} +18 -7
  67. package/dist/db-sign-BPQduGHb.mjs.map +1 -0
  68. package/dist/{db-update-WX0KitcX.mjs → db-update-DuEk-ra5.mjs} +4 -4
  69. package/dist/{db-update-WX0KitcX.mjs.map → db-update-DuEk-ra5.mjs.map} +1 -1
  70. package/dist/{db-verify-B8ax2Y_x-Bp4s5Ra6.mjs → db-verify-DPH4lonK-pteoYVnK.mjs} +26 -11
  71. package/dist/db-verify-DPH4lonK-pteoYVnK.mjs.map +1 -0
  72. package/dist/exports-BN0vFTxG.mjs.map +1 -1
  73. package/dist/{exports-BnihzVhw.mjs → exports-DAA3XD4a.mjs} +15 -3
  74. package/dist/exports-DAA3XD4a.mjs.map +1 -0
  75. package/dist/exports-DVoyX2LM.mjs +173 -0
  76. package/dist/exports-DVoyX2LM.mjs.map +1 -0
  77. package/dist/{format-Bw3LVJ1v-BJ6lVFMA.mjs → format-DyVeO1z5-D1lnTJaz.mjs} +7 -11
  78. package/dist/format-DyVeO1z5-D1lnTJaz.mjs.map +1 -0
  79. package/dist/{framework-components-3DdB31mk-BHyX-OlJ.mjs → framework-components-ioeTnj2Z-yyQtaVWk.mjs} +7 -5
  80. package/dist/framework-components-ioeTnj2Z-yyQtaVWk.mjs.map +1 -0
  81. package/dist/index-Deu3DQZI.d.mts +47 -0
  82. package/dist/index-Deu3DQZI.d.mts.map +1 -0
  83. package/dist/{init-CPB89WK2-DPZRZ9Ee.mjs → init-BwYYd10C-CJq9i42m.mjs} +4 -4
  84. package/dist/{init-CPB89WK2-DPZRZ9Ee.mjs.map → init-BwYYd10C-CJq9i42m.mjs.map} +1 -1
  85. package/dist/{inspect-live-schema-Da76TWOs-CAFqkhGb.mjs → inspect-live-schema-CXH4ZGHT-BfUdyZme.mjs} +15 -12
  86. package/dist/inspect-live-schema-CXH4ZGHT-BfUdyZme.mjs.map +1 -0
  87. package/dist/{invariants-BzYfO9IL-BXTvx0z9.mjs → invariants-BzYfO9IL-BPDPDIr0.mjs} +2 -2
  88. package/dist/{invariants-BzYfO9IL-BXTvx0z9.mjs.map → invariants-BzYfO9IL-BPDPDIr0.mjs.map} +1 -1
  89. package/dist/{legend-5iwwlLU2-CB8bdQKJ.mjs → legend-5iwwlLU2-Bit8enjF.mjs} +2 -2
  90. package/dist/{legend-5iwwlLU2-CB8bdQKJ.mjs.map → legend-5iwwlLU2-Bit8enjF.mjs.map} +1 -1
  91. package/dist/{migrate-B-NAuO90.mjs → migrate-Bfsw18KQ.mjs} +23 -12
  92. package/dist/migrate-Bfsw18KQ.mjs.map +1 -0
  93. package/dist/{migrate-show-B2LkXkoB-D1ZNl84C.mjs → migrate-show-CO5OiR3J-DE4NIjvW.mjs} +18 -7
  94. package/dist/migrate-show-CO5OiR3J-DE4NIjvW.mjs.map +1 -0
  95. package/dist/{migrate-show-60NNqVia-oGqMaVA9.d.mts → migrate-show-Cu3k9mZm-B-nCgvK1.d.mts} +3 -3
  96. package/dist/{migrate-show-60NNqVia-oGqMaVA9.d.mts.map → migrate-show-Cu3k9mZm-B-nCgvK1.d.mts.map} +1 -1
  97. package/dist/{migration-check-BDjtAn7x-B0nEBR0k.mjs → migration-check-BfOnfgyY-DII6Ty5m.mjs} +19 -7
  98. package/dist/migration-check-BfOnfgyY-DII6Ty5m.mjs.map +1 -0
  99. package/dist/{migration-check-DONPyXff-CGTUpLv-.mjs → migration-check-DONPyXff-KpD0q3Zh.mjs} +4 -4
  100. package/dist/{migration-check-DONPyXff-CGTUpLv-.mjs.map → migration-check-DONPyXff-KpD0q3Zh.mjs.map} +1 -1
  101. package/dist/{migration-command-scaffold-BPqXPCFV-Bls2Wwg7.mjs → migration-command-scaffold-CGcbYM2B-C3B8S3c-.mjs} +24 -7
  102. package/dist/migration-command-scaffold-CGcbYM2B-C3B8S3c-.mjs.map +1 -0
  103. package/dist/{migration-graph-Dn469b0l.mjs → migration-graph-BHiSuhBR.mjs} +17 -8
  104. package/dist/migration-graph-BHiSuhBR.mjs.map +1 -0
  105. package/dist/{migration-graph-HKch1Xk4-DyWhXtjZ.mjs → migration-graph-HKch1Xk4-DD-3zdSg.mjs} +2 -2
  106. package/dist/{migration-graph-HKch1Xk4-DyWhXtjZ.mjs.map → migration-graph-HKch1Xk4-DD-3zdSg.mjs.map} +1 -1
  107. package/dist/{migration-list-jk4iCtmO.mjs → migration-list-BkTNEeOK.mjs} +16 -7
  108. package/dist/migration-list-BkTNEeOK.mjs.map +1 -0
  109. package/dist/{migration-list-C9OPCMt--C28yBgVr.mjs → migration-list-C9OPCMt--BBm2c7tN.mjs} +2 -2
  110. package/dist/{migration-list-C9OPCMt--C28yBgVr.mjs.map → migration-list-C9OPCMt--BBm2c7tN.mjs.map} +1 -1
  111. package/dist/{migration-log-DQzUBrm8-D3m9wcuf.mjs → migration-log-CqrwQXER-cqf2INDN.mjs} +17 -7
  112. package/dist/migration-log-CqrwQXER-cqf2INDN.mjs.map +1 -0
  113. package/dist/{migration-new-g98oB3nC-BcrkxAAt.mjs → migration-new-Cjhe_MIE-CIovsuXK.mjs} +17 -8
  114. package/dist/migration-new-Cjhe_MIE-CIovsuXK.mjs.map +1 -0
  115. package/dist/{migration-new-BkSY6m0t.mjs → migration-new-NuMfcbH8.mjs} +3 -3
  116. package/dist/{migration-new-BkSY6m0t.mjs.map → migration-new-NuMfcbH8.mjs.map} +1 -1
  117. package/dist/{migration-path-target-BPYp3LNc-DsDdLU0J.mjs → migration-path-target-BPYp3LNc-DjdEIQsZ.mjs} +2 -2
  118. package/dist/{migration-path-target-BPYp3LNc-DsDdLU0J.mjs.map → migration-path-target-BPYp3LNc-DjdEIQsZ.mjs.map} +1 -1
  119. package/dist/{migration-plan-CjIYMJZy.mjs → migration-plan-D81XmVwy.mjs} +3 -3
  120. package/dist/{migration-plan-CjIYMJZy.mjs.map → migration-plan-D81XmVwy.mjs.map} +1 -1
  121. package/dist/{migration-plan-CwuZLXVE-DAJ-JUQT.mjs → migration-plan-DE7-vtqT-jgtSH4Lw.mjs} +18 -9
  122. package/dist/migration-plan-DE7-vtqT-jgtSH4Lw.mjs.map +1 -0
  123. package/dist/{migration-plan-BsOYRogP-CC1UFAbu.d.mts → migration-plan-DvBJhxXg-B5aHAOtu.d.mts} +3 -3
  124. package/dist/{migration-plan-BsOYRogP-CC1UFAbu.d.mts.map → migration-plan-DvBJhxXg-B5aHAOtu.d.mts.map} +1 -1
  125. package/dist/{migration-show-CW6EKtfw.mjs → migration-show-DEsLJ6-a.mjs} +18 -8
  126. package/dist/migration-show-DEsLJ6-a.mjs.map +1 -0
  127. package/dist/{migration-status-DSQcBhiN.mjs → migration-status-DfLM3VqL.mjs} +21 -10
  128. package/dist/migration-status-DfLM3VqL.mjs.map +1 -0
  129. package/dist/{project-import-root-C_bd0ooL-WkbJLnAA.mjs → project-import-root-C_bd0ooL-CusfluWF.mjs} +2 -2
  130. package/dist/{project-import-root-C_bd0ooL-WkbJLnAA.mjs.map → project-import-root-C_bd0ooL-CusfluWF.mjs.map} +1 -1
  131. package/dist/{ref-DSAZime8.mjs → ref-D6JzE8nq.mjs} +3 -3
  132. package/dist/{ref-DSAZime8.mjs.map → ref-D6JzE8nq.mjs.map} +1 -1
  133. package/dist/{ref-eJjxzYTh-CNiyDL4p.mjs → ref-DrAvdDhN-q1ccuI03.mjs} +21 -10
  134. package/dist/ref-DrAvdDhN-q1ccuI03.mjs.map +1 -0
  135. package/dist/{ref-resolution-_S4xTT2L-BE5zgO2W.mjs → ref-resolution-_S4xTT2L-JfNjZU9d.mjs} +2 -2
  136. package/dist/{ref-resolution-_S4xTT2L-BE5zgO2W.mjs.map → ref-resolution-_S4xTT2L-JfNjZU9d.mjs.map} +1 -1
  137. package/dist/{telemetry-DVBHDQd6-Ckn5oClN.mjs → telemetry-DVBHDQd6-CWNTFnMO.mjs} +2 -2
  138. package/dist/{telemetry-DVBHDQd6-Ckn5oClN.mjs.map → telemetry-DVBHDQd6-CWNTFnMO.mjs.map} +1 -1
  139. package/dist/{verify-C6L_hiJU-B4V3bqvG.mjs → verify-C6L_hiJU-MX67LFfI.mjs} +2 -2
  140. package/dist/{verify-C6L_hiJU-B4V3bqvG.mjs.map → verify-C6L_hiJU-MX67LFfI.mjs.map} +1 -1
  141. package/dist/vite-plugin-contract-emit.mjs +5 -3
  142. package/dist/vite-plugin-contract-emit.mjs.map +1 -1
  143. package/package.json +13 -12
  144. package/dist/contract-emit-CTm2zfuG-7PV9SBY6.mjs.map +0 -1
  145. package/dist/contract-emit-D8IXP9Qp-Df6NwXn8.mjs.map +0 -1
  146. package/dist/db-sign-DCb_DKtv.mjs.map +0 -1
  147. package/dist/db-verify-B8ax2Y_x-Bp4s5Ra6.mjs.map +0 -1
  148. package/dist/exports-BnihzVhw.mjs.map +0 -1
  149. package/dist/exports-CDX9kZuw.mjs +0 -119
  150. package/dist/exports-CDX9kZuw.mjs.map +0 -1
  151. package/dist/format-Bw3LVJ1v-BJ6lVFMA.mjs.map +0 -1
  152. package/dist/framework-components-3DdB31mk-BHyX-OlJ.mjs.map +0 -1
  153. package/dist/index-Df9igRvP.d.mts +0 -18
  154. package/dist/index-Df9igRvP.d.mts.map +0 -1
  155. package/dist/inspect-live-schema-Da76TWOs-CAFqkhGb.mjs.map +0 -1
  156. package/dist/migrate-B-NAuO90.mjs.map +0 -1
  157. package/dist/migrate-show-B2LkXkoB-D1ZNl84C.mjs.map +0 -1
  158. package/dist/migration-check-BDjtAn7x-B0nEBR0k.mjs.map +0 -1
  159. package/dist/migration-command-scaffold-BPqXPCFV-Bls2Wwg7.mjs.map +0 -1
  160. package/dist/migration-graph-Dn469b0l.mjs.map +0 -1
  161. package/dist/migration-list-jk4iCtmO.mjs.map +0 -1
  162. package/dist/migration-log-DQzUBrm8-D3m9wcuf.mjs.map +0 -1
  163. package/dist/migration-new-g98oB3nC-BcrkxAAt.mjs.map +0 -1
  164. package/dist/migration-plan-CwuZLXVE-DAJ-JUQT.mjs.map +0 -1
  165. package/dist/migration-show-CW6EKtfw.mjs.map +0 -1
  166. package/dist/migration-status-DSQcBhiN.mjs.map +0 -1
  167. package/dist/ref-eJjxzYTh-CNiyDL4p.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { t as CliStructuredError$1 } from "./cli-errors-CDr3WcJP-NFry5GHb.mjs";
1
+ import { t as CliStructuredError$1 } from "./cli-errors-BKPhkBSf-Ca-ymb6S.mjs";
2
2
  import { i as MigrationLogResult } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
3
3
  import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
4
4
  import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
@@ -1,2 +1,2 @@
1
- import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-DQzUBrm8-D3m9wcuf.mjs";
1
+ import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-CqrwQXER-cqf2INDN.mjs";
2
2
  export { createMigrationLogCommand, executeMigrationLogCommand };
@@ -1,2 +1,2 @@
1
- import { t as createMigrationNewCommand } from "./migration-new-BkSY6m0t.mjs";
1
+ import { t as createMigrationNewCommand } from "./migration-new-NuMfcbH8.mjs";
2
2
  export { createMigrationNewCommand };
@@ -1,5 +1,5 @@
1
1
  import { n as GlobalFlags } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
2
- import { i as MigrationPlanResult } from "./migration-plan-BsOYRogP-CC1UFAbu.mjs";
2
+ import { i as MigrationPlanResult } from "./migration-plan-DvBJhxXg-B5aHAOtu.mjs";
3
3
  import { Result } from "@prisma/orm-framework/utils/result";
4
4
  import { Command } from "commander";
5
5
  //#region ../../../1-framework/3-tooling/cli/dist/commands/migration-plan.d.mts
@@ -1,2 +1,2 @@
1
- import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-CjIYMJZy.mjs";
1
+ import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-D81XmVwy.mjs";
2
2
  export { createMigrationPlanCommand, formatMigrationPlanOutput, resolveBundleByPrefix };
@@ -1,2 +1,2 @@
1
- import { t as createMigrationShowCommand } from "./migration-show-CW6EKtfw.mjs";
1
+ import { t as createMigrationShowCommand } from "./migration-show-DEsLJ6-a.mjs";
2
2
  export { createMigrationShowCommand };
@@ -1,4 +1,4 @@
1
- import { t as CliStructuredError$1 } from "./cli-errors-CDr3WcJP-NFry5GHb.mjs";
1
+ import { t as CliStructuredError$1 } from "./cli-errors-BKPhkBSf-Ca-ymb6S.mjs";
2
2
  import { c as MigrationStatusEntry, d as StatusDiagnosticJson, l as MigrationStatusResult, p as migrationStatusJsonResultSchema, u as MigrationStatusSpace } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
3
3
  import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
4
4
  import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
@@ -1,3 +1,3 @@
1
1
  import { n as migrationStatusJsonResultSchema } from "./schemas-KhXMzNA_-CzZ7GFX_.mjs";
2
- import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-DSQcBhiN.mjs";
2
+ import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-DfLM3VqL.mjs";
3
3
  export { buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
@@ -1,2 +1,2 @@
1
- import { t as createRefCommand } from "./ref-DSAZime8.mjs";
1
+ import { t as createRefCommand } from "./ref-D6JzE8nq.mjs";
2
2
  export { createRefCommand };
@@ -1,2 +1,2 @@
1
- import { t as createTelemetryCommand } from "./telemetry-DVBHDQd6-Ckn5oClN.mjs";
1
+ import { t as createTelemetryCommand } from "./telemetry-DVBHDQd6-CWNTFnMO.mjs";
2
2
  export { createTelemetryCommand };
@@ -1,15 +1,15 @@
1
1
  import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
2
2
  import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
3
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";
4
+ import { C as EmitSuccess, E as IntrospectOptions, M as SignOptions, N as VerifyOptions, P as executeDbVerify, 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 SchemaVerifyOptions, k as OnControlProgress, 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-BKPhkBSf-Ca-ymb6S.mjs";
5
5
  import { n as OnDiskMigrationPackage } from "./package-CfWiDNrr-ZR4HM_Iz.mjs";
6
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";
7
+ import { i as executeMigrateShowPlan, n as MigrateShowMigration, r as MigrateShowPlanSuccess, t as ExecuteMigrateShowPlanOptions } from "./migrate-show-Cu3k9mZm-B-nCgvK1.mjs";
8
8
  import { n as MigrationCheckResult, o as MigrationSpaceGraphEntry, r as MigrationListResult, s as MigrationSpaceListEntry } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
9
9
  import { t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
10
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";
11
+ import { a as executeMigrationPlanCommand, i as MigrationPlanResult, n as ContractSpaceSeedPhaseRecord, o as runContractSpaceSeedPhase, r as ContractSpaceSeedPhaseResult, t as ContractSpaceSeedPhaseInputs } from "./migration-plan-DvBJhxXg-B5aHAOtu.mjs";
12
+ import { r as PrismaNextConfig$1 } from "./index-Deu3DQZI.mjs";
13
13
  import { Result } from "@prisma/orm-framework/utils/result";
14
14
  import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
15
15
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
@@ -365,7 +365,7 @@ interface RunMigrationCheckInputs {
365
365
  * in by the caller, not here.
366
366
  */
367
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[]>;
368
+ declare function loadAggregateIntegrityViolations(config: PrismaNextConfig$1, migrationsDir: string): Promise<readonly IntegrityViolation[]>;
369
369
  interface MigrationCheckOutcome {
370
370
  readonly result?: MigrationCheckResult;
371
371
  readonly error?: CliStructuredError$1;
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;WAC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AuB;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
+ {"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;;W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O;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,19 +1,19 @@
1
- import { n as disposeEmitQueue, r as executeContractEmit } from "./contract-emit-CTm2zfuG-7PV9SBY6.mjs";
1
+ import { n as disposeEmitQueue, r as executeContractEmit } from "./contract-emit-DT0JKUZT-BYE7WZPc.mjs";
2
2
  import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
3
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";
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-DfE0nmtZ.mjs";
5
+ import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-BNAEJZ76-ld7eOxpZ.mjs";
6
+ import { t as resolveContractRefToSnapshot } from "./contract-snapshot-resolution-SATuw0JW-DpTZJd1x.mjs";
7
+ import { t as executeMigrationNewCommand } from "./migration-new-Cjhe_MIE-CIovsuXK.mjs";
8
+ import { t as mapContractAtError } from "./contract-at-errors-Dv1mxKYO-D4xfRBW5.mjs";
9
+ import { i as runContractSpaceSeedPhase, n as resolveFromForPlan, r as resolveToForPlan, t as executeMigrationPlanCommand } from "./migration-plan-DE7-vtqT-jgtSH4Lw.mjs";
10
+ import { n as resolveMigrationRef, t as resolveContractRef } from "./ref-resolution-_S4xTT2L-JfNjZU9d.mjs";
11
+ import { i as refuseUnknownInvariants, n as refuseMarkerOutsideGraph, r as refuseMissingInvariantPath, t as hasMigrationPath } from "./invariants-BzYfO9IL-BPDPDIr0.mjs";
12
+ import { n as migrationSpaceListEntriesFromAggregate, r as runMigrationList, t as listRefsByContractHash } from "./migration-list-C9OPCMt--BBm2c7tN.mjs";
13
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";
14
+ import { t as mapCaughtMigrationError } from "./caught-errors-D7Qznyrm-DaZubR00.mjs";
15
+ import { t as buildMigrationSpaceGraphEntries } from "./migration-graph-HKch1Xk4-DD-3zdSg.mjs";
16
+ import { i as runMigrationCheck, n as enumerateCheckSpaces, r as loadAggregateIntegrityViolations, t as checkSingleTarget } from "./migration-check-DONPyXff-KpD0q3Zh.mjs";
17
+ import { t as executeMigrateShowPlan } from "./migrate-show-CO5OiR3J-DE4NIjvW.mjs";
18
+ import { n as executeRefListCommand, r as executeRefSetCommand, t as executeRefDeleteCommand } from "./ref-DrAvdDhN-q1ccuI03.mjs";
19
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 };
@@ -0,0 +1,66 @@
1
+ import { O as MigrateResult, S as EmitResult, T as ExecuteDbVerifyResult, a as ControlClient, d as DbInitResult, g as DbUpdateResult } from "./cli-errors-BKPhkBSf-Ca-ymb6S.mjs";
2
+ import { CoreSchemaView, OperationPreview, SignDatabaseResult, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
3
+ import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
4
+ import { AuthoringPslBlockDescriptorNamespace } from "@prisma/orm-framework/components/authoring";
5
+ import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
6
+ //#region ../../../1-framework/3-tooling/cli/dist/exports/control-api-testing.d.mts
7
+ //#region src/control-api/testing/fixture-client.d.ts
8
+ declare const FIXTURE_STORAGE_HASH = "7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26";
9
+ declare const FIXTURE_PROFILE_HASH = "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae";
10
+ declare const FIXTURE_MIGRATION_HASH = "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9";
11
+ /** Target id the default fixtures report; overridable per test. */
12
+ declare const FIXTURE_TARGET_ID = "fixture-target";
13
+ /** Family id the default fixtures report in emitted contract payloads. */
14
+ declare const FIXTURE_FAMILY_ID = "fixture-family";
15
+ /**
16
+ * The value each {@link ControlClient} operation resolves to. Every key can be
17
+ * replaced per test via `createFixtureControlClient(overrides)`.
18
+ */
19
+ interface ControlClientFixtures {
20
+ readonly verify: VerifyDatabaseResult;
21
+ readonly schemaVerify: VerifyDatabaseSchemaResult;
22
+ readonly sign: SignDatabaseResult;
23
+ readonly dbInit: DbInitResult;
24
+ readonly dbUpdate: DbUpdateResult;
25
+ readonly dbVerify: ExecuteDbVerifyResult;
26
+ readonly readMarker: ContractMarkerRecord | null;
27
+ readonly readAllMarkers: ReadonlyMap<string, ContractMarkerRecord>;
28
+ readonly readLedger: readonly LedgerEntryRecord[];
29
+ readonly migrate: MigrateResult;
30
+ readonly introspect: unknown;
31
+ readonly toSchemaView: CoreSchemaView | undefined;
32
+ readonly inferPslContract: PslDocumentAst | undefined;
33
+ readonly getPslBlockDescriptors: AuthoringPslBlockDescriptorNamespace;
34
+ readonly toOperationPreview: OperationPreview | undefined;
35
+ readonly emit: EmitResult;
36
+ }
37
+ interface FixtureControlClientCall {
38
+ readonly operation: string;
39
+ readonly options: unknown;
40
+ }
41
+ /**
42
+ * A {@link ControlClient} test double. Behaves like the real client's surface
43
+ * but resolves every operation from fixtures instead of a database, and
44
+ * records each call for assertions. Operations the real client runs against a
45
+ * driver reject with `DRIVER.NOT_CONNECTED` until `connect()` is awaited.
46
+ */
47
+ interface FixtureControlClient extends ControlClient {
48
+ /** Every operation invocation in order, with the options it received. */
49
+ readonly calls: readonly FixtureControlClientCall[];
50
+ /** Connection state as driven by `connect()` / `close()`. */
51
+ readonly connected: boolean;
52
+ }
53
+ /**
54
+ * Target-neutral defaults for every operation: a healthy database whose
55
+ * marker, ledger, and schema all match the fixture contract.
56
+ */
57
+ declare function defaultControlClientFixtures(): ControlClientFixtures;
58
+ /**
59
+ * Creates a fixture-backed {@link ControlClient} double for host and product
60
+ * tests: every operation resolves a realistic fixture payload without a
61
+ * database or driver, and each fixture is overridable per test.
62
+ */
63
+ declare function createFixtureControlClient(overrides?: Partial<ControlClientFixtures>): FixtureControlClient;
64
+ //#endregion
65
+ export { type ControlClientFixtures, FIXTURE_FAMILY_ID, FIXTURE_MIGRATION_HASH, FIXTURE_PROFILE_HASH, FIXTURE_STORAGE_HASH, FIXTURE_TARGET_ID, type FixtureControlClient, type FixtureControlClientCall, createFixtureControlClient, defaultControlClientFixtures };
66
+ //# sourceMappingURL=cli__control-api__testing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli__control-api__testing.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api-testing.d.mts"],"mappings":";;;;;;;cAMc;cACA;cACA;;cAEA;;cAEA;;;;;UAKJ;WACC,QAAQ;WACR,cAAc;WACd,MAAM;WACN,QAAQ;WACR,UAAU;WACV,UAAU;WACV,YAAY;WACZ,gBAAgB,oBAAoB;WACpC,qBAAqB;WACrB,SAAS;WACT;WACA,cAAc;WACd,kBAAkB;WAClB,wBAAwB;WACxB,oBAAoB;WACpB,MAAM;;UAEP;WACC;WACA;;;;;;;;UAQD,6BAA6B;;WAE5B,gBAAgB;;WAEhB;;;;;;iBAMM,gCAAgC;;;;;;iBAMhC,2BAA2B,YAAY,QAAQ,yBAAyB"}
@@ -0,0 +1,255 @@
1
+ import { CliStructuredError } from "@prisma/orm-framework/errors/control";
2
+ import { ok } from "@prisma/orm-framework/utils/result";
3
+ import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
4
+ //#region ../../../1-framework/3-tooling/cli/dist/exports/control-api-testing.mjs
5
+ const FIXTURE_STORAGE_HASH = "7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26";
6
+ const FIXTURE_PROFILE_HASH = "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae";
7
+ const FIXTURE_MIGRATION_HASH = "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9";
8
+ const FIXTURE_TIMESTAMP = "2026-01-01T00:00:00.000Z";
9
+ /** Target id the default fixtures report; overridable per test. */
10
+ const FIXTURE_TARGET_ID = "fixture-target";
11
+ /** Family id the default fixtures report in emitted contract payloads. */
12
+ const FIXTURE_FAMILY_ID = "fixture-family";
13
+ const fixtureOperation = {
14
+ id: "op-1",
15
+ label: "create User",
16
+ operationClass: "additive"
17
+ };
18
+ function fixtureMarker() {
19
+ return {
20
+ storageHash: FIXTURE_STORAGE_HASH,
21
+ profileHash: FIXTURE_PROFILE_HASH,
22
+ contractJson: null,
23
+ canonicalVersion: 1,
24
+ updatedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),
25
+ appTag: null,
26
+ meta: {},
27
+ invariants: []
28
+ };
29
+ }
30
+ /**
31
+ * Target-neutral defaults for every operation: a healthy database whose
32
+ * marker, ledger, and schema all match the fixture contract.
33
+ */
34
+ function defaultControlClientFixtures() {
35
+ const contract = {
36
+ storageHash: FIXTURE_STORAGE_HASH,
37
+ profileHash: FIXTURE_PROFILE_HASH
38
+ };
39
+ const target = {
40
+ expected: FIXTURE_TARGET_ID,
41
+ actual: FIXTURE_TARGET_ID
42
+ };
43
+ const schemaVerify = {
44
+ ok: true,
45
+ summary: "Schema satisfies contract",
46
+ contract,
47
+ target,
48
+ schema: { issues: [] },
49
+ timings: { total: 5 }
50
+ };
51
+ const applySuccess = {
52
+ mode: "apply",
53
+ plan: { operations: [fixtureOperation] },
54
+ destination: contract,
55
+ execution: {
56
+ operationsPlanned: 1,
57
+ operationsExecuted: 1
58
+ },
59
+ marker: contract,
60
+ perSpace: [{
61
+ spaceId: APP_SPACE_ID,
62
+ kind: "app",
63
+ operations: [fixtureOperation],
64
+ marker: { storageHash: FIXTURE_STORAGE_HASH }
65
+ }],
66
+ summary: "Applied 1 operation"
67
+ };
68
+ return {
69
+ verify: {
70
+ ok: true,
71
+ summary: "Database matches contract",
72
+ contract,
73
+ marker: contract,
74
+ target,
75
+ timings: { total: 5 }
76
+ },
77
+ schemaVerify,
78
+ sign: {
79
+ ok: true,
80
+ summary: "Signature written",
81
+ contract,
82
+ target,
83
+ marker: {
84
+ created: true,
85
+ updated: false
86
+ },
87
+ timings: { total: 5 }
88
+ },
89
+ dbInit: ok(applySuccess),
90
+ dbUpdate: ok(applySuccess),
91
+ dbVerify: ok({
92
+ schemaResults: /* @__PURE__ */ new Map([[APP_SPACE_ID, schemaVerify]]),
93
+ unclaimed: [],
94
+ spaceOrder: [APP_SPACE_ID],
95
+ appSpaceId: APP_SPACE_ID
96
+ }),
97
+ readMarker: fixtureMarker(),
98
+ readAllMarkers: /* @__PURE__ */ new Map([[APP_SPACE_ID, fixtureMarker()]]),
99
+ readLedger: [{
100
+ space: APP_SPACE_ID,
101
+ migrationName: "20260101000000_init",
102
+ migrationHash: FIXTURE_MIGRATION_HASH,
103
+ from: null,
104
+ to: FIXTURE_STORAGE_HASH,
105
+ appliedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),
106
+ operationCount: 1
107
+ }],
108
+ migrate: ok({
109
+ migrationsApplied: 1,
110
+ markerHash: FIXTURE_STORAGE_HASH,
111
+ applied: [{
112
+ spaceId: APP_SPACE_ID,
113
+ dirName: "20260101000000_init",
114
+ migrationHash: FIXTURE_MIGRATION_HASH,
115
+ from: FIXTURE_PROFILE_HASH,
116
+ to: FIXTURE_STORAGE_HASH,
117
+ operationsExecuted: 1
118
+ }],
119
+ summary: "Applied 1 migration",
120
+ perSpace: [{
121
+ spaceId: APP_SPACE_ID,
122
+ kind: "app",
123
+ operations: [fixtureOperation],
124
+ marker: { storageHash: FIXTURE_STORAGE_HASH }
125
+ }]
126
+ }),
127
+ introspect: {},
128
+ toSchemaView: void 0,
129
+ inferPslContract: void 0,
130
+ getPslBlockDescriptors: {},
131
+ toOperationPreview: void 0,
132
+ emit: ok({
133
+ storageHash: FIXTURE_STORAGE_HASH,
134
+ profileHash: FIXTURE_PROFILE_HASH,
135
+ contractJson: `{"targetFamily":"${FIXTURE_FAMILY_ID}"}`,
136
+ contractDts: `export type Contract = { targetFamily: "${FIXTURE_FAMILY_ID}" };`
137
+ })
138
+ };
139
+ }
140
+ var FixtureControlClientImpl = class {
141
+ calls = [];
142
+ connected = false;
143
+ initialized = false;
144
+ fixtures;
145
+ constructor(overrides) {
146
+ this.fixtures = {
147
+ ...defaultControlClientFixtures(),
148
+ ...overrides
149
+ };
150
+ }
151
+ record(operation, options, value) {
152
+ this.init();
153
+ this.calls.push({
154
+ operation,
155
+ options
156
+ });
157
+ return value;
158
+ }
159
+ /**
160
+ * Records an operation the real client runs against a driver, so a caller
161
+ * that skipped `connect()` fails here exactly as it would in production.
162
+ */
163
+ recordConnected(operation, options, value) {
164
+ const supplied = typeof options === "object" && options !== null ? Reflect.get(options, "connection") : void 0;
165
+ if (supplied !== void 0) this.markConnected(supplied);
166
+ if (!this.connected) throw new CliStructuredError("DRIVER.NOT_CONNECTED", "Not connected. Call connect(connection) first.");
167
+ return this.record(operation, options, value);
168
+ }
169
+ init() {
170
+ if (this.initialized) return;
171
+ this.initialized = true;
172
+ this.calls.push({
173
+ operation: "init",
174
+ options: void 0
175
+ });
176
+ }
177
+ markConnected(connection) {
178
+ this.init();
179
+ this.calls.push({
180
+ operation: "connect",
181
+ options: connection
182
+ });
183
+ this.connected = true;
184
+ }
185
+ async connect(connection) {
186
+ this.markConnected(connection);
187
+ }
188
+ async close() {
189
+ this.calls.push({
190
+ operation: "close",
191
+ options: void 0
192
+ });
193
+ this.connected = false;
194
+ }
195
+ async verify(options) {
196
+ return this.recordConnected("verify", options, this.fixtures.verify);
197
+ }
198
+ async schemaVerify(options) {
199
+ return this.recordConnected("schemaVerify", options, this.fixtures.schemaVerify);
200
+ }
201
+ async sign(options) {
202
+ return this.recordConnected("sign", options, this.fixtures.sign);
203
+ }
204
+ async dbInit(options) {
205
+ return this.recordConnected("dbInit", options, this.fixtures.dbInit);
206
+ }
207
+ async dbUpdate(options) {
208
+ return this.recordConnected("dbUpdate", options, this.fixtures.dbUpdate);
209
+ }
210
+ async dbVerify(options) {
211
+ return this.recordConnected("dbVerify", options, this.fixtures.dbVerify);
212
+ }
213
+ async readMarker() {
214
+ return this.recordConnected("readMarker", void 0, this.fixtures.readMarker);
215
+ }
216
+ async readAllMarkers() {
217
+ return this.recordConnected("readAllMarkers", void 0, this.fixtures.readAllMarkers);
218
+ }
219
+ async readLedger(space) {
220
+ return this.recordConnected("readLedger", space, this.fixtures.readLedger);
221
+ }
222
+ async migrate(options) {
223
+ return this.recordConnected("migrate", options, this.fixtures.migrate);
224
+ }
225
+ async introspect(options) {
226
+ return this.recordConnected("introspect", options, this.fixtures.introspect);
227
+ }
228
+ toSchemaView(schemaIR) {
229
+ return this.record("toSchemaView", schemaIR, this.fixtures.toSchemaView);
230
+ }
231
+ inferPslContract(schemaIR) {
232
+ return this.record("inferPslContract", schemaIR, this.fixtures.inferPslContract);
233
+ }
234
+ getPslBlockDescriptors() {
235
+ return this.record("getPslBlockDescriptors", void 0, this.fixtures.getPslBlockDescriptors);
236
+ }
237
+ toOperationPreview(operations) {
238
+ return this.record("toOperationPreview", operations, this.fixtures.toOperationPreview);
239
+ }
240
+ async emit(options) {
241
+ return this.record("emit", options, this.fixtures.emit);
242
+ }
243
+ };
244
+ /**
245
+ * Creates a fixture-backed {@link ControlClient} double for host and product
246
+ * tests: every operation resolves a realistic fixture payload without a
247
+ * database or driver, and each fixture is overridable per test.
248
+ */
249
+ function createFixtureControlClient(overrides) {
250
+ return new FixtureControlClientImpl(overrides);
251
+ }
252
+ //#endregion
253
+ export { FIXTURE_FAMILY_ID, FIXTURE_MIGRATION_HASH, FIXTURE_PROFILE_HASH, FIXTURE_STORAGE_HASH, FIXTURE_TARGET_ID, createFixtureControlClient, defaultControlClientFixtures };
254
+
255
+ //# sourceMappingURL=cli__control-api__testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli__control-api__testing.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api-testing.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/errors/control\";\nimport { ok } from \"@internal/utils/result\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\n//#region src/control-api/testing/fixture-client.ts\nconst FIXTURE_STORAGE_HASH = \"7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26\";\nconst FIXTURE_PROFILE_HASH = \"2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae\";\nconst FIXTURE_MIGRATION_HASH = \"fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9\";\nconst FIXTURE_TIMESTAMP = \"2026-01-01T00:00:00.000Z\";\n/** Target id the default fixtures report; overridable per test. */\nconst FIXTURE_TARGET_ID = \"fixture-target\";\n/** Family id the default fixtures report in emitted contract payloads. */\nconst FIXTURE_FAMILY_ID = \"fixture-family\";\nconst fixtureOperation = {\n\tid: \"op-1\",\n\tlabel: \"create User\",\n\toperationClass: \"additive\"\n};\nfunction fixtureMarker() {\n\treturn {\n\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\tprofileHash: FIXTURE_PROFILE_HASH,\n\t\tcontractJson: null,\n\t\tcanonicalVersion: 1,\n\t\tupdatedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),\n\t\tappTag: null,\n\t\tmeta: {},\n\t\tinvariants: []\n\t};\n}\n/**\n* Target-neutral defaults for every operation: a healthy database whose\n* marker, ledger, and schema all match the fixture contract.\n*/\nfunction defaultControlClientFixtures() {\n\tconst contract = {\n\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\tprofileHash: FIXTURE_PROFILE_HASH\n\t};\n\tconst target = {\n\t\texpected: FIXTURE_TARGET_ID,\n\t\tactual: FIXTURE_TARGET_ID\n\t};\n\tconst schemaVerify = {\n\t\tok: true,\n\t\tsummary: \"Schema satisfies contract\",\n\t\tcontract,\n\t\ttarget,\n\t\tschema: { issues: [] },\n\t\ttimings: { total: 5 }\n\t};\n\tconst applySuccess = {\n\t\tmode: \"apply\",\n\t\tplan: { operations: [fixtureOperation] },\n\t\tdestination: contract,\n\t\texecution: {\n\t\t\toperationsPlanned: 1,\n\t\t\toperationsExecuted: 1\n\t\t},\n\t\tmarker: contract,\n\t\tperSpace: [{\n\t\t\tspaceId: APP_SPACE_ID,\n\t\t\tkind: \"app\",\n\t\t\toperations: [fixtureOperation],\n\t\t\tmarker: { storageHash: FIXTURE_STORAGE_HASH }\n\t\t}],\n\t\tsummary: \"Applied 1 operation\"\n\t};\n\treturn {\n\t\tverify: {\n\t\t\tok: true,\n\t\t\tsummary: \"Database matches contract\",\n\t\t\tcontract,\n\t\t\tmarker: contract,\n\t\t\ttarget,\n\t\t\ttimings: { total: 5 }\n\t\t},\n\t\tschemaVerify,\n\t\tsign: {\n\t\t\tok: true,\n\t\t\tsummary: \"Signature written\",\n\t\t\tcontract,\n\t\t\ttarget,\n\t\t\tmarker: {\n\t\t\t\tcreated: true,\n\t\t\t\tupdated: false\n\t\t\t},\n\t\t\ttimings: { total: 5 }\n\t\t},\n\t\tdbInit: ok(applySuccess),\n\t\tdbUpdate: ok(applySuccess),\n\t\tdbVerify: ok({\n\t\t\tschemaResults: /* @__PURE__ */ new Map([[APP_SPACE_ID, schemaVerify]]),\n\t\t\tunclaimed: [],\n\t\t\tspaceOrder: [APP_SPACE_ID],\n\t\t\tappSpaceId: APP_SPACE_ID\n\t\t}),\n\t\treadMarker: fixtureMarker(),\n\t\treadAllMarkers: /* @__PURE__ */ new Map([[APP_SPACE_ID, fixtureMarker()]]),\n\t\treadLedger: [{\n\t\t\tspace: APP_SPACE_ID,\n\t\t\tmigrationName: \"20260101000000_init\",\n\t\t\tmigrationHash: FIXTURE_MIGRATION_HASH,\n\t\t\tfrom: null,\n\t\t\tto: FIXTURE_STORAGE_HASH,\n\t\t\tappliedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),\n\t\t\toperationCount: 1\n\t\t}],\n\t\tmigrate: ok({\n\t\t\tmigrationsApplied: 1,\n\t\t\tmarkerHash: FIXTURE_STORAGE_HASH,\n\t\t\tapplied: [{\n\t\t\t\tspaceId: APP_SPACE_ID,\n\t\t\t\tdirName: \"20260101000000_init\",\n\t\t\t\tmigrationHash: FIXTURE_MIGRATION_HASH,\n\t\t\t\tfrom: FIXTURE_PROFILE_HASH,\n\t\t\t\tto: FIXTURE_STORAGE_HASH,\n\t\t\t\toperationsExecuted: 1\n\t\t\t}],\n\t\t\tsummary: \"Applied 1 migration\",\n\t\t\tperSpace: [{\n\t\t\t\tspaceId: APP_SPACE_ID,\n\t\t\t\tkind: \"app\",\n\t\t\t\toperations: [fixtureOperation],\n\t\t\t\tmarker: { storageHash: FIXTURE_STORAGE_HASH }\n\t\t\t}]\n\t\t}),\n\t\tintrospect: {},\n\t\ttoSchemaView: void 0,\n\t\tinferPslContract: void 0,\n\t\tgetPslBlockDescriptors: {},\n\t\ttoOperationPreview: void 0,\n\t\temit: ok({\n\t\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\t\tprofileHash: FIXTURE_PROFILE_HASH,\n\t\t\tcontractJson: `{\"targetFamily\":\"${FIXTURE_FAMILY_ID}\"}`,\n\t\t\tcontractDts: `export type Contract = { targetFamily: \"${FIXTURE_FAMILY_ID}\" };`\n\t\t})\n\t};\n}\nvar FixtureControlClientImpl = class {\n\tcalls = [];\n\tconnected = false;\n\tinitialized = false;\n\tfixtures;\n\tconstructor(overrides) {\n\t\tthis.fixtures = {\n\t\t\t...defaultControlClientFixtures(),\n\t\t\t...overrides\n\t\t};\n\t}\n\trecord(operation, options, value) {\n\t\tthis.init();\n\t\tthis.calls.push({\n\t\t\toperation,\n\t\t\toptions\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Records an operation the real client runs against a driver, so a caller\n\t* that skipped `connect()` fails here exactly as it would in production.\n\t*/\n\trecordConnected(operation, options, value) {\n\t\tconst supplied = typeof options === \"object\" && options !== null ? Reflect.get(options, \"connection\") : void 0;\n\t\tif (supplied !== void 0) this.markConnected(supplied);\n\t\tif (!this.connected) throw new CliStructuredError(\"DRIVER.NOT_CONNECTED\", \"Not connected. Call connect(connection) first.\");\n\t\treturn this.record(operation, options, value);\n\t}\n\tinit() {\n\t\tif (this.initialized) return;\n\t\tthis.initialized = true;\n\t\tthis.calls.push({\n\t\t\toperation: \"init\",\n\t\t\toptions: void 0\n\t\t});\n\t}\n\tmarkConnected(connection) {\n\t\tthis.init();\n\t\tthis.calls.push({\n\t\t\toperation: \"connect\",\n\t\t\toptions: connection\n\t\t});\n\t\tthis.connected = true;\n\t}\n\tasync connect(connection) {\n\t\tthis.markConnected(connection);\n\t}\n\tasync close() {\n\t\tthis.calls.push({\n\t\t\toperation: \"close\",\n\t\t\toptions: void 0\n\t\t});\n\t\tthis.connected = false;\n\t}\n\tasync verify(options) {\n\t\treturn this.recordConnected(\"verify\", options, this.fixtures.verify);\n\t}\n\tasync schemaVerify(options) {\n\t\treturn this.recordConnected(\"schemaVerify\", options, this.fixtures.schemaVerify);\n\t}\n\tasync sign(options) {\n\t\treturn this.recordConnected(\"sign\", options, this.fixtures.sign);\n\t}\n\tasync dbInit(options) {\n\t\treturn this.recordConnected(\"dbInit\", options, this.fixtures.dbInit);\n\t}\n\tasync dbUpdate(options) {\n\t\treturn this.recordConnected(\"dbUpdate\", options, this.fixtures.dbUpdate);\n\t}\n\tasync dbVerify(options) {\n\t\treturn this.recordConnected(\"dbVerify\", options, this.fixtures.dbVerify);\n\t}\n\tasync readMarker() {\n\t\treturn this.recordConnected(\"readMarker\", void 0, this.fixtures.readMarker);\n\t}\n\tasync readAllMarkers() {\n\t\treturn this.recordConnected(\"readAllMarkers\", void 0, this.fixtures.readAllMarkers);\n\t}\n\tasync readLedger(space) {\n\t\treturn this.recordConnected(\"readLedger\", space, this.fixtures.readLedger);\n\t}\n\tasync migrate(options) {\n\t\treturn this.recordConnected(\"migrate\", options, this.fixtures.migrate);\n\t}\n\tasync introspect(options) {\n\t\treturn this.recordConnected(\"introspect\", options, this.fixtures.introspect);\n\t}\n\ttoSchemaView(schemaIR) {\n\t\treturn this.record(\"toSchemaView\", schemaIR, this.fixtures.toSchemaView);\n\t}\n\tinferPslContract(schemaIR) {\n\t\treturn this.record(\"inferPslContract\", schemaIR, this.fixtures.inferPslContract);\n\t}\n\tgetPslBlockDescriptors() {\n\t\treturn this.record(\"getPslBlockDescriptors\", void 0, this.fixtures.getPslBlockDescriptors);\n\t}\n\ttoOperationPreview(operations) {\n\t\treturn this.record(\"toOperationPreview\", operations, this.fixtures.toOperationPreview);\n\t}\n\tasync emit(options) {\n\t\treturn this.record(\"emit\", options, this.fixtures.emit);\n\t}\n};\n/**\n* Creates a fixture-backed {@link ControlClient} double for host and product\n* tests: every operation resolves a realistic fixture payload without a\n* database or driver, and each fixture is overridable per test.\n*/\nfunction createFixtureControlClient(overrides) {\n\treturn new FixtureControlClientImpl(overrides);\n}\n//#endregion\nexport { FIXTURE_FAMILY_ID, FIXTURE_MIGRATION_HASH, FIXTURE_PROFILE_HASH, FIXTURE_STORAGE_HASH, FIXTURE_TARGET_ID, createFixtureControlClient, defaultControlClientFixtures };\n\n//# sourceMappingURL=control-api-testing.mjs.map"],"mappings":";;;;AAIA,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,oBAAoB;;AAE1B,MAAM,oBAAoB;;AAE1B,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;CACxB,IAAI;CACJ,OAAO;CACP,gBAAgB;AACjB;AACA,SAAS,gBAAgB;CACxB,OAAO;EACN,aAAa;EACb,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,2BAA2B,IAAI,KAAK,iBAAiB;EACrD,QAAQ;EACR,MAAM,CAAC;EACP,YAAY,CAAC;CACd;AACD;;;;;AAKA,SAAS,+BAA+B;CACvC,MAAM,WAAW;EAChB,aAAa;EACb,aAAa;CACd;CACA,MAAM,SAAS;EACd,UAAU;EACV,QAAQ;CACT;CACA,MAAM,eAAe;EACpB,IAAI;EACJ,SAAS;EACT;EACA;EACA,QAAQ,EAAE,QAAQ,CAAC,EAAE;EACrB,SAAS,EAAE,OAAO,EAAE;CACrB;CACA,MAAM,eAAe;EACpB,MAAM;EACN,MAAM,EAAE,YAAY,CAAC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,OAAO,IAAI,yBAAyB,SAAS;AAC9C"}
@@ -1,5 +1,5 @@
1
1
  import { g as errorInvalidJson } from "./errors-Co-8oaiB-CB-6Uqki.mjs";
2
- import { r as loadConfig } from "./exports-CDX9kZuw.mjs";
2
+ import { a as loadConfigForSections } from "./exports-DVoyX2LM.mjs";
3
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";
@@ -28,8 +28,9 @@ import { Cli, Command, Option, UsageError } from "clipanion";
28
28
  * 1. Detects whether the file is the direct entrypoint (no-op when imported).
29
29
  * 2. Parses CLI args (`--help`, `--dry-run`, `--config <path>`) via
30
30
  * [clipanion](https://github.com/arcanis/clipanion).
31
- * 3. Loads the project's `prisma-next.config.ts` via the same `loadConfig`
32
- * the CLI commands use, walking up from the migration file's directory.
31
+ * 3. Loads the project's `prisma-next.config.ts` via the same
32
+ * `loadConfigForSections` the CLI commands use, walking up from the
33
+ * migration file's directory.
33
34
  * 4. Probe-instantiates the migration class without a stack so it can read
34
35
  * `targetId` and verify it matches `config.target.targetId`
35
36
  * (`MIGRATION.TARGET_MISMATCH` on mismatch) before any stack-driven adapter
@@ -389,7 +390,15 @@ async function serializeMigrationToDisk(instance, migrationDir, dryRun, stdout)
389
390
  */
390
391
  async function runMigration(importMetaUrl, MigrationClass, parsed, ctx) {
391
392
  const migrationDir = dirname(fileURLToPath(importMetaUrl));
392
- const config = await loadConfig(parsed.config);
393
+ const configResult = await loadConfigForSections(parsed.config, [
394
+ "family",
395
+ "target",
396
+ "adapter",
397
+ "driver",
398
+ "extensions"
399
+ ]);
400
+ if (!configResult.ok) throw configResult.failure;
401
+ const config = configResult.value;
393
402
  const probe = new MigrationClass();
394
403
  if (probe.targetId !== config.target.targetId) throw errorMigrationTargetMismatch({
395
404
  migrationTargetId: probe.targetId,