@prisma/orm-toolchain 8.0.0-rc.1-dev.22 → 8.0.0-rc.1-dev.24
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.
- package/dist/{aggregate-D53gnb7v.mjs → aggregate-BKbHUHLA.mjs} +7 -7
- package/dist/{aggregate-D53gnb7v.mjs.map → aggregate-BKbHUHLA.mjs.map} +1 -1
- package/dist/{aggregate-BflrjWPO.d.mts → aggregate-CA6bJ8UO.d.mts} +3 -3
- package/dist/{aggregate-BflrjWPO.d.mts.map → aggregate-CA6bJ8UO.d.mts.map} +1 -1
- package/dist/bin__prisma-next.mjs +31 -26
- package/dist/bin__prisma-next.mjs.map +1 -1
- package/dist/{caught-errors-D7Qznyrm-BzYooF6H.mjs → caught-errors-nYuTn3NK-DkD-ZrDr.mjs} +3 -3
- package/dist/caught-errors-nYuTn3NK-DkD-ZrDr.mjs.map +1 -0
- package/dist/{cli-errors-CDr3WcJP-NFry5GHb.d.mts → cli-errors-C7vbvQuK-DLpSxz4U.d.mts} +16 -8
- package/dist/{cli-errors-CDr3WcJP-NFry5GHb.d.mts.map → cli-errors-C7vbvQuK-DLpSxz4U.d.mts.map} +1 -1
- package/dist/cli-errors-kU09RUaz-CUkQ9XuM.mjs +235 -0
- package/dist/cli-errors-kU09RUaz-CUkQ9XuM.mjs.map +1 -0
- package/dist/cli-telemetry.mjs +7 -6
- package/dist/cli-telemetry.mjs.map +1 -1
- package/dist/cli.d.mts +38 -2
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +358 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__commands__contract-emit.d.mts +1 -1
- package/dist/cli__commands__contract-emit.mjs +1 -1
- package/dist/cli__commands__contract-infer.mjs +1 -1
- package/dist/cli__commands__db-init.mjs +1 -1
- package/dist/cli__commands__db-schema.mjs +1 -1
- package/dist/cli__commands__db-sign.mjs +1 -1
- package/dist/cli__commands__db-update.mjs +1 -1
- package/dist/cli__commands__db-verify.mjs +1 -1
- package/dist/cli__commands__migrate.d.mts +2 -2
- package/dist/cli__commands__migrate.mjs +1 -1
- package/dist/cli__commands__migration-check.mjs +1 -1
- package/dist/cli__commands__migration-graph.d.mts +1 -1
- package/dist/cli__commands__migration-graph.mjs +1 -1
- package/dist/cli__commands__migration-list.d.mts +2 -2
- package/dist/cli__commands__migration-list.mjs +1 -1
- package/dist/cli__commands__migration-log.d.mts +1 -1
- package/dist/cli__commands__migration-log.mjs +1 -1
- package/dist/cli__commands__migration-new.mjs +1 -1
- package/dist/cli__commands__migration-plan.d.mts +1 -1
- package/dist/cli__commands__migration-plan.mjs +1 -1
- package/dist/cli__commands__migration-show.mjs +1 -1
- package/dist/cli__commands__migration-status.d.mts +1 -1
- package/dist/cli__commands__migration-status.mjs +1 -1
- package/dist/cli__commands__ref.mjs +1 -1
- package/dist/cli__commands__telemetry.mjs +1 -1
- package/dist/cli__control-api.d.mts +26 -19
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +16 -16
- package/dist/cli__control-api__testing.d.mts +66 -0
- package/dist/cli__control-api__testing.d.mts.map +1 -0
- package/dist/cli__control-api__testing.mjs +255 -0
- package/dist/cli__control-api__testing.mjs.map +1 -0
- package/dist/cli__migration-cli.mjs +16 -7
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/{client-Y6qbDk7X-BzKLmBZo.mjs → client-milNsAnF-B92uF3yv.mjs} +11 -11
- package/dist/client-milNsAnF-B92uF3yv.mjs.map +1 -0
- package/dist/command-helpers-bGYd7Aab-BNSzfbHK.mjs +765 -0
- package/dist/command-helpers-bGYd7Aab-BNSzfbHK.mjs.map +1 -0
- package/dist/config-loader.d.mts +2 -2
- package/dist/config-loader.mjs +2 -2
- package/dist/{contract-at-errors-Dv1mxKYO-C29YB4RC.mjs → contract-at-errors-BTeDEXm4-BAIDia2-.mjs} +3 -3
- package/dist/contract-at-errors-BTeDEXm4-BAIDia2-.mjs.map +1 -0
- package/dist/{contract-emit-CTm2zfuG-7PV9SBY6.mjs → contract-emit-Bdf4DAR4-lKqkbfZT.mjs} +8 -38
- package/dist/contract-emit-Bdf4DAR4-lKqkbfZT.mjs.map +1 -0
- package/dist/{contract-emit-D8IXP9Qp-Df6NwXn8.mjs → contract-emit-Ci-8sP-b-QzQXK2xQ.mjs} +29 -23
- package/dist/contract-emit-Ci-8sP-b-QzQXK2xQ.mjs.map +1 -0
- package/dist/{contract-emit-B65_UiFn.d.mts → contract-emit-CvwNE4R1-DEn1V1Zo.d.mts} +2 -2
- package/dist/contract-emit-CvwNE4R1-DEn1V1Zo.d.mts.map +1 -0
- package/dist/contract-emit-E6m8HE42-Bfiodzf_.mjs +2 -0
- package/dist/{contract-infer-BwT7ngoo-Dx6aAwIN.mjs → contract-infer-hhyMJiwS-BJ5cYC9P.mjs} +7 -6
- package/dist/contract-infer-hhyMJiwS-BJ5cYC9P.mjs.map +1 -0
- package/dist/{contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs → contract-snapshot-resolution-CyvX0DPz-BBQI_70j.mjs} +7 -7
- package/dist/contract-snapshot-resolution-CyvX0DPz-BBQI_70j.mjs.map +1 -0
- package/dist/{contract-snapshot-store-C9-J6OBn-ByElY0EC.mjs → contract-snapshot-store-C9-J6OBn-kpuB2oCK.mjs} +2 -2
- package/dist/{contract-snapshot-store-C9-J6OBn-ByElY0EC.mjs.map → contract-snapshot-store-C9-J6OBn-kpuB2oCK.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs → contract-space-aggregate-loader-DOzo1sk9-CCPCubsg.mjs} +7 -6
- package/dist/contract-space-aggregate-loader-DOzo1sk9-CCPCubsg.mjs.map +1 -0
- package/dist/{db-init-CBj_EWg3.mjs → db-init-3CbSYxRI-BlTkWh8n.mjs} +10 -8
- package/dist/db-init-3CbSYxRI-BlTkWh8n.mjs.map +1 -0
- package/dist/{db-schema-BWpeh0Q_.mjs → db-schema-BVLbe3EL-WLnbuo77.mjs} +6 -5
- package/dist/db-schema-BVLbe3EL-WLnbuo77.mjs.map +1 -0
- package/dist/{db-sign-DCb_DKtv.mjs → db-sign-Cdw2RmoG-C-X5UheR.mjs} +24 -11
- package/dist/db-sign-Cdw2RmoG-C-X5UheR.mjs.map +1 -0
- package/dist/{db-update-WX0KitcX.mjs → db-update-BHOdo8PV-BVBNKrJc.mjs} +11 -9
- package/dist/db-update-BHOdo8PV-BVBNKrJc.mjs.map +1 -0
- package/dist/{db-verify-B8ax2Y_x-Bp4s5Ra6.mjs → db-verify-C9P9oNCs-gieY7hV2.mjs} +33 -16
- package/dist/db-verify-C9P9oNCs-gieY7hV2.mjs.map +1 -0
- package/dist/{domain-type-generation-bpSO3Y0L-Cdauqrnc.mjs → domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs} +2 -2
- package/dist/{domain-type-generation-bpSO3Y0L-Cdauqrnc.mjs.map → domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs.map} +1 -1
- package/dist/emitter.d.mts +1 -1
- package/dist/emitter.mjs +2 -2
- package/dist/emitter__domain-type-generation.mjs +1 -1
- package/dist/{exports-BCLg4CiV-okAfZydo.mjs → exports-BCLg4CiV-05kuwcb0.mjs} +4 -4
- package/dist/{exports-BCLg4CiV-okAfZydo.mjs.map → exports-BCLg4CiV-05kuwcb0.mjs.map} +1 -1
- package/dist/exports-BZLNbtkY.mjs +215 -0
- package/dist/exports-BZLNbtkY.mjs.map +1 -0
- package/dist/{exports-BN0vFTxG.mjs → exports-CqNUihkI.mjs} +2 -2
- package/dist/{exports-BN0vFTxG.mjs.map → exports-CqNUihkI.mjs.map} +1 -1
- package/dist/{exports-BnihzVhw.mjs → exports-DaxzMVtq.mjs} +16 -4
- package/dist/exports-DaxzMVtq.mjs.map +1 -0
- package/dist/{format-Bw3LVJ1v-BJ6lVFMA.mjs → format-Ddhz7xFW-Bo1nhay8.mjs} +18 -15
- package/dist/format-Ddhz7xFW-Bo1nhay8.mjs.map +1 -0
- package/dist/{framework-components-3DdB31mk-BHyX-OlJ.mjs → framework-components-Cruf6BPK-CaQvMI3T.mjs} +7 -5
- package/dist/framework-components-Cruf6BPK-CaQvMI3T.mjs.map +1 -0
- package/dist/index-mCsi_ND5.d.mts +49 -0
- package/dist/index-mCsi_ND5.d.mts.map +1 -0
- package/dist/{init-CPB89WK2-DPZRZ9Ee.mjs → init-BbmawfZx-DCylULYh.mjs} +23 -8
- package/dist/init-BbmawfZx-DCylULYh.mjs.map +1 -0
- package/dist/{inspect-live-schema-Da76TWOs-CAFqkhGb.mjs → inspect-live-schema-BEQun_1x-CZpCgg8A.mjs} +17 -13
- package/dist/inspect-live-schema-BEQun_1x-CZpCgg8A.mjs.map +1 -0
- package/dist/{invariants-BzYfO9IL-BXTvx0z9.mjs → invariants-D5TNnX5E-rjPoJGFq.mjs} +4 -3
- package/dist/invariants-D5TNnX5E-rjPoJGFq.mjs.map +1 -0
- package/dist/{io-CHUUeHh0-CoCBe9eN.mjs → io-CHUUeHh0-CbyTkKP6.mjs} +2 -2
- package/dist/{io-CHUUeHh0-CoCBe9eN.mjs.map → io-CHUUeHh0-CbyTkKP6.mjs.map} +1 -1
- package/dist/{legend-5iwwlLU2-CB8bdQKJ.mjs → legend-BBtAETiW-BHqTbUjx.mjs} +3 -3
- package/dist/legend-BBtAETiW-BHqTbUjx.mjs.map +1 -0
- package/dist/{migrate-B-NAuO90.mjs → migrate-B-hpVTxi-DJzFYT2w.mjs} +44 -17
- package/dist/migrate-B-hpVTxi-DJzFYT2w.mjs.map +1 -0
- package/dist/{migrate-show-B2LkXkoB-D1ZNl84C.mjs → migrate-show-CUymfnbM-BbpcO2FY.mjs} +9 -12
- package/dist/migrate-show-CUymfnbM-BbpcO2FY.mjs.map +1 -0
- package/dist/{migrate-show-60NNqVia-oGqMaVA9.d.mts → migrate-show-g71Z4vJw-ocdTvf70.d.mts} +10 -5
- package/dist/migrate-show-g71Z4vJw-ocdTvf70.d.mts.map +1 -0
- package/dist/{migration-DAJY-NmR.mjs → migration-_C5W2uXF.mjs} +2 -2
- package/dist/{migration-DAJY-NmR.mjs.map → migration-_C5W2uXF.mjs.map} +1 -1
- package/dist/{migration-check-DONPyXff-CGTUpLv-.mjs → migration-check-DHYPMUFe-Cni_ZUzB.mjs} +33 -30
- package/dist/migration-check-DHYPMUFe-Cni_ZUzB.mjs.map +1 -0
- package/dist/{migration-check-BDjtAn7x-B0nEBR0k.mjs → migration-check-zgqYe3SB-B6LI6wY7.mjs} +22 -9
- package/dist/migration-check-zgqYe3SB-B6LI6wY7.mjs.map +1 -0
- package/dist/{migration-command-scaffold-BPqXPCFV-Bls2Wwg7.mjs → migration-command-scaffold-DsT7ke7B-D3u913Po.mjs} +26 -8
- package/dist/migration-command-scaffold-DsT7ke7B-D3u913Po.mjs.map +1 -0
- package/dist/{migration-graph-HKch1Xk4-DyWhXtjZ.mjs → migration-graph-CChCjts3-ERrIm5aT.mjs} +3 -3
- package/dist/{migration-graph-HKch1Xk4-DyWhXtjZ.mjs.map → migration-graph-CChCjts3-ERrIm5aT.mjs.map} +1 -1
- package/dist/{migration-graph-Dn469b0l.mjs → migration-graph-Dm9gU0oE-DxPD_SNA.mjs} +20 -10
- package/dist/migration-graph-Dm9gU0oE-DxPD_SNA.mjs.map +1 -0
- package/dist/{migration-list-C9OPCMt--C28yBgVr.mjs → migration-list-Bkase_ZM-D-bErpSr.mjs} +4 -4
- package/dist/migration-list-Bkase_ZM-D-bErpSr.mjs.map +1 -0
- package/dist/{migration-list-jk4iCtmO.mjs → migration-list-DDGUTC8Y-B_X7rkez.mjs} +19 -9
- package/dist/migration-list-DDGUTC8Y-B_X7rkez.mjs.map +1 -0
- package/dist/{migration-log-DQzUBrm8-D3m9wcuf.mjs → migration-log-Cft50PRu-DcnHdxT4.mjs} +20 -8
- package/dist/migration-log-Cft50PRu-DcnHdxT4.mjs.map +1 -0
- package/dist/{migration-new-BkSY6m0t.mjs → migration-new-D9GHbYwF-C8D22HXG.mjs} +25 -5
- package/dist/migration-new-D9GHbYwF-C8D22HXG.mjs.map +1 -0
- package/dist/{migration-new-g98oB3nC-BcrkxAAt.mjs → migration-new-RorO1I8r-Ch8NQ4GQ.mjs} +19 -18
- package/dist/migration-new-RorO1I8r-Ch8NQ4GQ.mjs.map +1 -0
- package/dist/{migration-path-target-BPYp3LNc-DsDdLU0J.mjs → migration-path-target-DhGt62Mi-dm4TU1hJ.mjs} +4 -4
- package/dist/migration-path-target-DhGt62Mi-dm4TU1hJ.mjs.map +1 -0
- package/dist/{migration-plan-CjIYMJZy.mjs → migration-plan-BOhasCLr-GJWYoOA8.mjs} +25 -5
- package/dist/migration-plan-BOhasCLr-GJWYoOA8.mjs.map +1 -0
- package/dist/{migration-plan-CwuZLXVE-DAJ-JUQT.mjs → migration-plan-DrCTzrXH-CDJbdiC6.mjs} +29 -28
- package/dist/migration-plan-DrCTzrXH-CDJbdiC6.mjs.map +1 -0
- package/dist/{migration-plan-BsOYRogP-CC1UFAbu.d.mts → migration-plan-t2e_8yD2-w5Ffa0V_.d.mts} +10 -5
- package/dist/migration-plan-t2e_8yD2-w5Ffa0V_.d.mts.map +1 -0
- package/dist/{migration-show-CW6EKtfw.mjs → migration-show-DRARjIbv-1p6EE_Uw.mjs} +24 -12
- package/dist/migration-show-DRARjIbv-1p6EE_Uw.mjs.map +1 -0
- package/dist/{migration-status-DSQcBhiN.mjs → migration-status-Yh0eOQJN-YpcPDpNh.mjs} +26 -13
- package/dist/migration-status-Yh0eOQJN-YpcPDpNh.mjs.map +1 -0
- package/dist/migration-tools.d.mts +2 -2
- package/dist/migration-tools.mjs +8 -8
- package/dist/migration-tools__aggregate.d.mts +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
- package/dist/migration-tools__io.mjs +1 -1
- package/dist/migration-tools__migration-ts.mjs +1 -1
- package/dist/migration-tools__migration.mjs +1 -1
- package/dist/migration-tools__spaces.d.mts +1 -1
- package/dist/migration-tools__spaces.mjs +2 -2
- package/dist/{migration-ts-FyF55c4M.mjs → migration-ts-BoHxxGvi.mjs} +2 -2
- package/dist/{migration-ts-FyF55c4M.mjs.map → migration-ts-BoHxxGvi.mjs.map} +1 -1
- package/dist/{project-import-root-C_bd0ooL-WkbJLnAA.mjs → project-import-root--e8xli8Z-Bfrvrv67.mjs} +3 -3
- package/dist/project-import-root--e8xli8Z-Bfrvrv67.mjs.map +1 -0
- package/dist/{ref-eJjxzYTh-CNiyDL4p.mjs → ref-BQcl8Ksv-BYZY0Ktb.mjs} +12 -17
- package/dist/ref-BQcl8Ksv-BYZY0Ktb.mjs.map +1 -0
- package/dist/{ref-DSAZime8.mjs → ref-Cu7Zc1Hv-_R4MnDfr.mjs} +30 -7
- package/dist/ref-Cu7Zc1Hv-_R4MnDfr.mjs.map +1 -0
- package/dist/{ref-advancement-DaZBzm7m-BZQtedYC.mjs → ref-advancement-DaZBzm7m-Deq5Cs7O.mjs} +3 -3
- package/dist/{ref-advancement-DaZBzm7m-BZQtedYC.mjs.map → ref-advancement-DaZBzm7m-Deq5Cs7O.mjs.map} +1 -1
- package/dist/{ref-resolution-_S4xTT2L-BE5zgO2W.mjs → ref-resolution-BYCRg72z-DFhwf-XR.mjs} +3 -3
- package/dist/ref-resolution-BYCRg72z-DFhwf-XR.mjs.map +1 -0
- package/dist/{spaces-DxuvClN9.mjs → spaces-DBTCE3Js.mjs} +6 -6
- package/dist/{spaces-DxuvClN9.mjs.map → spaces-DBTCE3Js.mjs.map} +1 -1
- package/dist/{spaces-D5qtTlhj.d.mts → spaces-tWQi7CUv.d.mts} +2 -2
- package/dist/{spaces-D5qtTlhj.d.mts.map → spaces-tWQi7CUv.d.mts.map} +1 -1
- package/dist/{telemetry-DVBHDQd6-Ckn5oClN.mjs → telemetry-Dh6e0ams-BsjGN3tQ.mjs} +5 -4
- package/dist/telemetry-Dh6e0ams-BsjGN3tQ.mjs.map +1 -0
- package/dist/terminal-ui-ypPE9cN6-ilMBkmwT.mjs +645 -0
- package/dist/terminal-ui-ypPE9cN6-ilMBkmwT.mjs.map +1 -0
- package/dist/{verify-C6L_hiJU-B4V3bqvG.mjs → verify-DBsKxZrK-eDPxNiSS.mjs} +3 -3
- package/dist/verify-DBsKxZrK-eDPxNiSS.mjs.map +1 -0
- package/dist/{verify-contract-spaces-WvjSiWcB-zGhaCnfs.mjs → verify-contract-spaces-WvjSiWcB-DZPPCwWO.mjs} +2 -2
- package/dist/{verify-contract-spaces-WvjSiWcB-zGhaCnfs.mjs.map → verify-contract-spaces-WvjSiWcB-DZPPCwWO.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +16 -4
- package/dist/vite-plugin-contract-emit.mjs.map +1 -1
- package/package.json +14 -12
- package/dist/caught-errors-D7Qznyrm-BzYooF6H.mjs.map +0 -1
- package/dist/client-Y6qbDk7X-BzKLmBZo.mjs.map +0 -1
- package/dist/command-helpers-C4WpR-QE-DE494TSG.mjs +0 -1627
- package/dist/command-helpers-C4WpR-QE-DE494TSG.mjs.map +0 -1
- package/dist/contract-at-errors-Dv1mxKYO-C29YB4RC.mjs.map +0 -1
- package/dist/contract-emit-B65_UiFn.d.mts.map +0 -1
- package/dist/contract-emit-CTm2zfuG-7PV9SBY6.mjs.map +0 -1
- package/dist/contract-emit-D8IXP9Qp-Df6NwXn8.mjs.map +0 -1
- package/dist/contract-infer-BwT7ngoo-Dx6aAwIN.mjs.map +0 -1
- package/dist/contract-snapshot-resolution-SATuw0JW-CsYq7g_n.mjs.map +0 -1
- package/dist/contract-space-aggregate-loader-C5r12INu-Db_pa3rX.mjs.map +0 -1
- package/dist/db-init-CBj_EWg3.mjs.map +0 -1
- package/dist/db-schema-BWpeh0Q_.mjs.map +0 -1
- package/dist/db-sign-DCb_DKtv.mjs.map +0 -1
- package/dist/db-update-WX0KitcX.mjs.map +0 -1
- package/dist/db-verify-B8ax2Y_x-Bp4s5Ra6.mjs.map +0 -1
- package/dist/exports-BnihzVhw.mjs.map +0 -1
- package/dist/exports-CDX9kZuw.mjs +0 -119
- package/dist/exports-CDX9kZuw.mjs.map +0 -1
- package/dist/format-Bw3LVJ1v-BJ6lVFMA.mjs.map +0 -1
- package/dist/framework-components-3DdB31mk-BHyX-OlJ.mjs.map +0 -1
- package/dist/index-Df9igRvP.d.mts +0 -18
- package/dist/index-Df9igRvP.d.mts.map +0 -1
- package/dist/init-CPB89WK2-DPZRZ9Ee.mjs.map +0 -1
- package/dist/inspect-live-schema-Da76TWOs-CAFqkhGb.mjs.map +0 -1
- package/dist/invariants-BzYfO9IL-BXTvx0z9.mjs.map +0 -1
- package/dist/legend-5iwwlLU2-CB8bdQKJ.mjs.map +0 -1
- package/dist/migrate-B-NAuO90.mjs.map +0 -1
- package/dist/migrate-show-60NNqVia-oGqMaVA9.d.mts.map +0 -1
- package/dist/migrate-show-B2LkXkoB-D1ZNl84C.mjs.map +0 -1
- package/dist/migration-check-BDjtAn7x-B0nEBR0k.mjs.map +0 -1
- package/dist/migration-check-DONPyXff-CGTUpLv-.mjs.map +0 -1
- package/dist/migration-command-scaffold-BPqXPCFV-Bls2Wwg7.mjs.map +0 -1
- package/dist/migration-graph-Dn469b0l.mjs.map +0 -1
- package/dist/migration-list-C9OPCMt--C28yBgVr.mjs.map +0 -1
- package/dist/migration-list-jk4iCtmO.mjs.map +0 -1
- package/dist/migration-log-DQzUBrm8-D3m9wcuf.mjs.map +0 -1
- package/dist/migration-new-BkSY6m0t.mjs.map +0 -1
- package/dist/migration-new-g98oB3nC-BcrkxAAt.mjs.map +0 -1
- package/dist/migration-path-target-BPYp3LNc-DsDdLU0J.mjs.map +0 -1
- package/dist/migration-plan-BsOYRogP-CC1UFAbu.d.mts.map +0 -1
- package/dist/migration-plan-CjIYMJZy.mjs.map +0 -1
- package/dist/migration-plan-CwuZLXVE-DAJ-JUQT.mjs.map +0 -1
- package/dist/migration-show-CW6EKtfw.mjs.map +0 -1
- package/dist/migration-status-DSQcBhiN.mjs.map +0 -1
- package/dist/project-import-root-C_bd0ooL-WkbJLnAA.mjs.map +0 -1
- package/dist/ref-DSAZime8.mjs.map +0 -1
- package/dist/ref-eJjxzYTh-CNiyDL4p.mjs.map +0 -1
- package/dist/ref-resolution-_S4xTT2L-BE5zgO2W.mjs.map +0 -1
- package/dist/telemetry-DVBHDQd6-Ckn5oClN.mjs.map +0 -1
- package/dist/verify-C6L_hiJU-B4V3bqvG.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as MigrateShowMigration } from "./migrate-show-
|
|
1
|
+
import { A as PerSpaceExecutionEntry, D as MigratePathDecision } from "./cli-errors-C7vbvQuK-DLpSxz4U.mjs";
|
|
2
|
+
import { n as MigrateShowMigration } from "./migrate-show-g71Z4vJw-ocdTvf70.mjs";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migrate.d.mts
|
|
5
5
|
//#region src/commands/migrate.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrateCommand } from "./migrate-B-
|
|
1
|
+
import { t as createMigrateCommand } from "./migrate-B-hpVTxi-DJzFYT2w.mjs";
|
|
2
2
|
export { createMigrateCommand };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as migrationCheckResultSchema } from "./schemas-KhXMzNA_-CzZ7GFX_.mjs";
|
|
2
|
-
import { t as createMigrationCheckCommand } from "./migration-check-
|
|
2
|
+
import { t as createMigrationCheckCommand } from "./migration-check-zgqYe3SB-B6LI6wY7.mjs";
|
|
3
3
|
export { createMigrationCheckCommand, migrationCheckResultSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
2
|
-
import { t as CliStructuredError$1 } from "./cli-errors-
|
|
2
|
+
import { t as CliStructuredError$1 } from "./cli-errors-C7vbvQuK-DLpSxz4U.mjs";
|
|
3
3
|
import { o as MigrationSpaceGraphEntry } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
|
|
4
4
|
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
5
5
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationGraphCommand, r as formatMigrationGraphHumanOutput, t as createMigrationGraphCommand } from "./migration-graph-
|
|
1
|
+
import { n as executeMigrationGraphCommand, r as formatMigrationGraphHumanOutput, t as createMigrationGraphCommand } from "./migration-graph-Dm9gU0oE-DxPD_SNA.mjs";
|
|
2
2
|
export { createMigrationGraphCommand, executeMigrationGraphCommand, formatMigrationGraphHumanOutput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
2
|
-
import { t as CliStructuredError$1 } from "./cli-errors-
|
|
3
|
-
import { c as ContractSpaceAggregate } from "./aggregate-
|
|
2
|
+
import { t as CliStructuredError$1 } from "./cli-errors-C7vbvQuK-DLpSxz4U.mjs";
|
|
3
|
+
import { c as ContractSpaceAggregate } from "./aggregate-CA6bJ8UO.mjs";
|
|
4
4
|
import { r as MigrationListResult } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
|
|
5
5
|
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
6
6
|
import { n as TerminalUI, t as GlyphMode } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationListCommand, r as renderMigrationListHumanOutput, t as createMigrationListCommand } from "./migration-list-
|
|
1
|
+
import { n as executeMigrationListCommand, r as renderMigrationListHumanOutput, t as createMigrationListCommand } from "./migration-list-DDGUTC8Y-B_X7rkez.mjs";
|
|
2
2
|
export { createMigrationListCommand, executeMigrationListCommand, renderMigrationListHumanOutput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CliStructuredError$1 } from "./cli-errors-
|
|
1
|
+
import { t as CliStructuredError$1 } from "./cli-errors-C7vbvQuK-DLpSxz4U.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-
|
|
1
|
+
import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-Cft50PRu-DcnHdxT4.mjs";
|
|
2
2
|
export { createMigrationLogCommand, executeMigrationLogCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrationNewCommand } from "./migration-new-
|
|
1
|
+
import { t as createMigrationNewCommand } from "./migration-new-D9GHbYwF-C8D22HXG.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-
|
|
2
|
+
import { i as MigrationPlanResult } from "./migration-plan-t2e_8yD2-w5Ffa0V_.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-
|
|
1
|
+
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-BOhasCLr-GJWYoOA8.mjs";
|
|
2
2
|
export { createMigrationPlanCommand, formatMigrationPlanOutput, resolveBundleByPrefix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrationShowCommand } from "./migration-show-
|
|
1
|
+
import { t as createMigrationShowCommand } from "./migration-show-DRARjIbv-1p6EE_Uw.mjs";
|
|
2
2
|
export { createMigrationShowCommand };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CliStructuredError$1 } from "./cli-errors-
|
|
1
|
+
import { t as CliStructuredError$1 } from "./cli-errors-C7vbvQuK-DLpSxz4U.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-
|
|
2
|
+
import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-Yh0eOQJN-YpcPDpNh.mjs";
|
|
3
3
|
export { buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createRefCommand } from "./ref-
|
|
1
|
+
import { t as createRefCommand } from "./ref-Cu7Zc1Hv-_R4MnDfr.mjs";
|
|
2
2
|
export { createRefCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createTelemetryCommand } from "./telemetry-
|
|
1
|
+
import { t as createTelemetryCommand } from "./telemetry-Dh6e0ams-BsjGN3tQ.mjs";
|
|
2
2
|
export { createTelemetryCommand };
|
|
@@ -1,18 +1,18 @@
|
|
|
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 {
|
|
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-C7vbvQuK-DLpSxz4U.mjs";
|
|
5
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-
|
|
7
|
-
import { i as executeMigrateShowPlan, n as MigrateShowMigration, r as MigrateShowPlanSuccess, t as ExecuteMigrateShowPlanOptions } from "./migrate-show-
|
|
6
|
+
import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-CA6bJ8UO.mjs";
|
|
7
|
+
import { i as executeMigrateShowPlan, n as MigrateShowMigration, r as MigrateShowPlanSuccess, t as ExecuteMigrateShowPlanOptions } from "./migrate-show-g71Z4vJw-ocdTvf70.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-
|
|
12
|
-
import {
|
|
13
|
-
import { Result } from "@prisma/orm-framework/utils/result";
|
|
14
|
-
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
11
|
+
import { a as executeMigrationPlanCommand, i as MigrationPlanResult, n as ContractSpaceSeedPhaseRecord, o as runContractSpaceSeedPhase, r as ContractSpaceSeedPhaseResult, t as ContractSpaceSeedPhaseInputs } from "./migration-plan-t2e_8yD2-w5Ffa0V_.mjs";
|
|
12
|
+
import { r as PrismaNextConfig$1 } from "./index-mCsi_ND5.mjs";
|
|
15
13
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
14
|
+
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
15
|
+
import { Result } from "@prisma/orm-framework/utils/result";
|
|
16
16
|
import { PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
|
|
17
17
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
18
18
|
//#region ../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts
|
|
@@ -332,6 +332,8 @@ interface CheckSpace {
|
|
|
332
332
|
readonly refsDir: string;
|
|
333
333
|
/** Migrations root the contract-snapshot store lives under — shared by every space. */
|
|
334
334
|
readonly projectMigrationsDir: string;
|
|
335
|
+
/** Directory the command was invoked from; every `where` path is relative to it. */
|
|
336
|
+
readonly cwd: string;
|
|
335
337
|
}
|
|
336
338
|
/**
|
|
337
339
|
* Project the loaded {@link ContractSpaceAggregate} into the
|
|
@@ -341,7 +343,7 @@ interface CheckSpace {
|
|
|
341
343
|
* membership matches the on-disk directories, package / ref / graph data come
|
|
342
344
|
* from `aggregate.space(id)`.
|
|
343
345
|
*/
|
|
344
|
-
declare function enumerateCheckSpaces(aggregate: ContractSpaceAggregate, projectMigrationsDir: string): Promise<readonly CheckSpace[]>;
|
|
346
|
+
declare function enumerateCheckSpaces(aggregate: ContractSpaceAggregate, projectMigrationsDir: string, cwd: string): Promise<readonly CheckSpace[]>;
|
|
345
347
|
/**
|
|
346
348
|
* Inputs for {@link runMigrationCheck} — the multi-space policy core of
|
|
347
349
|
* the holistic (no-arg) `migration check`. Enumeration is supplied by the
|
|
@@ -365,7 +367,7 @@ interface RunMigrationCheckInputs {
|
|
|
365
367
|
* in by the caller, not here.
|
|
366
368
|
*/
|
|
367
369
|
declare function runMigrationCheck(inputs: RunMigrationCheckInputs): Promise<Result<MigrationCheckResult, CliStructuredError$1>>;
|
|
368
|
-
declare function loadAggregateIntegrityViolations(config:
|
|
370
|
+
declare function loadAggregateIntegrityViolations(config: PrismaNextConfig$1, migrationsDir: string): Promise<readonly IntegrityViolation[]>;
|
|
369
371
|
interface MigrationCheckOutcome {
|
|
370
372
|
readonly result?: MigrationCheckResult;
|
|
371
373
|
readonly error?: CliStructuredError$1;
|
|
@@ -450,9 +452,13 @@ declare function runMigrationList(inputs: RunMigrationListInputs): Result<Migrat
|
|
|
450
452
|
//#endregion
|
|
451
453
|
//#region src/control-api/operations/migration-new.d.ts
|
|
452
454
|
interface MigrationNewOptions extends CommonCommandOptions {
|
|
455
|
+
readonly config: PrismaNextConfig;
|
|
456
|
+
/** Directory the command was invoked from. */
|
|
457
|
+
readonly cwd: string;
|
|
458
|
+
/** `--config` as the user wrote it, used only to locate project paths and for display. */
|
|
459
|
+
readonly configPath?: string;
|
|
453
460
|
readonly name?: string;
|
|
454
461
|
readonly from?: string;
|
|
455
|
-
readonly config?: string;
|
|
456
462
|
}
|
|
457
463
|
interface MigrationNewResult {
|
|
458
464
|
readonly ok: true;
|
|
@@ -546,15 +552,16 @@ interface RefListResult {
|
|
|
546
552
|
readonly ok: true;
|
|
547
553
|
readonly refs: Record<string, RefEntry>;
|
|
548
554
|
}
|
|
549
|
-
|
|
550
|
-
config
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
config
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
555
|
+
interface RefOperationOptions {
|
|
556
|
+
readonly config: PrismaNextConfig;
|
|
557
|
+
/** Directory the command was invoked from. */
|
|
558
|
+
readonly cwd: string;
|
|
559
|
+
/** `--config` as the user wrote it, used only to locate the migrations directory and for display. */
|
|
560
|
+
readonly configPath?: string;
|
|
561
|
+
}
|
|
562
|
+
declare function executeRefSetCommand(name: string, contractInput: string, options: RefOperationOptions): Promise<Result<RefSetResult, CliStructuredError$1>>;
|
|
563
|
+
declare function executeRefDeleteCommand(name: string, options: RefOperationOptions): Promise<Result<RefDeleteResult, CliStructuredError$1>>;
|
|
564
|
+
declare function executeRefListCommand(options: RefOperationOptions): Promise<Result<RefListResult, CliStructuredError$1>>;
|
|
558
565
|
//#endregion
|
|
559
566
|
//#region src/control-api/operations/ref-advancement.d.ts
|
|
560
567
|
interface ContractIR {
|
|
@@ -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;WACrC;WACA;WACA;IACP;iBACa,sBAAsB;EACrC;IACE;;IAEA;;;;;;;;;iBASa,mBAAmB,QAAQ,
|
|
1
|
+
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;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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,19 +1,19 @@
|
|
|
1
|
-
import { n as disposeEmitQueue, r as executeContractEmit } from "./contract-emit-CTm2zfuG-7PV9SBY6.mjs";
|
|
2
1
|
import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
|
|
3
|
-
import {
|
|
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-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { i as
|
|
12
|
-
import { n as
|
|
2
|
+
import { n as executeContractEmit, t as disposeEmitQueue } from "./contract-emit-Bdf4DAR4-lKqkbfZT.mjs";
|
|
3
|
+
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-DOzo1sk9-CCPCubsg.mjs";
|
|
4
|
+
import { n as migrationSpaceListEntriesFromAggregate, r as runMigrationList, t as listRefsByContractHash } from "./migration-list-Bkase_ZM-D-bErpSr.mjs";
|
|
5
|
+
import { a as readContractIR, i as executeRefAdvancement, n as buildRefAdvancementFields, o as resolveRefAdvancementFields, r as computeRefAdvancementName, t as advanceRefSafely } from "./ref-advancement-DaZBzm7m-Deq5Cs7O.mjs";
|
|
6
|
+
import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-milNsAnF-B92uF3yv.mjs";
|
|
7
|
+
import { t as resolveContractRefToSnapshot } from "./contract-snapshot-resolution-CyvX0DPz-BBQI_70j.mjs";
|
|
8
|
+
import { t as executeMigrationNewCommand } from "./migration-new-RorO1I8r-Ch8NQ4GQ.mjs";
|
|
9
|
+
import { t as mapContractAtError } from "./contract-at-errors-BTeDEXm4-BAIDia2-.mjs";
|
|
10
|
+
import { i as runContractSpaceSeedPhase, n as resolveFromForPlan, r as resolveToForPlan, t as executeMigrationPlanCommand } from "./migration-plan-DrCTzrXH-CDJbdiC6.mjs";
|
|
11
|
+
import { n as resolveMigrationRef, t as resolveContractRef } from "./ref-resolution-BYCRg72z-DFhwf-XR.mjs";
|
|
12
|
+
import { i as refuseUnknownInvariants, n as refuseMarkerOutsideGraph, r as refuseMissingInvariantPath, t as hasMigrationPath } from "./invariants-D5TNnX5E-rjPoJGFq.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-
|
|
15
|
-
import { t as buildMigrationSpaceGraphEntries } from "./migration-graph-
|
|
16
|
-
import { i as runMigrationCheck, n as enumerateCheckSpaces, r as loadAggregateIntegrityViolations, t as checkSingleTarget } from "./migration-check-
|
|
17
|
-
import { t as executeMigrateShowPlan } from "./migrate-show-
|
|
18
|
-
import { n as executeRefListCommand, r as executeRefSetCommand, t as executeRefDeleteCommand } from "./ref-
|
|
14
|
+
import { t as mapCaughtMigrationError } from "./caught-errors-nYuTn3NK-DkD-ZrDr.mjs";
|
|
15
|
+
import { t as buildMigrationSpaceGraphEntries } from "./migration-graph-CChCjts3-ERrIm5aT.mjs";
|
|
16
|
+
import { i as runMigrationCheck, n as enumerateCheckSpaces, r as loadAggregateIntegrityViolations, t as checkSingleTarget } from "./migration-check-DHYPMUFe-Cni_ZUzB.mjs";
|
|
17
|
+
import { t as executeMigrateShowPlan } from "./migrate-show-CUymfnbM-BbpcO2FY.mjs";
|
|
18
|
+
import { n as executeRefListCommand, r as executeRefSetCommand, t as executeRefDeleteCommand } from "./ref-BQcl8Ksv-BYZY0Ktb.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-C7vbvQuK-DLpSxz4U.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 { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
|
|
3
|
+
import { ok } from "@prisma/orm-framework/utils/result";
|
|
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,gBAAgB,EAAE;EACvC,aAAa;EACb,WAAW;GACV,mBAAmB;GACnB,oBAAoB;EACrB;EACA,QAAQ;EACR,UAAU,CAAC;GACV,SAAS;GACT,MAAM;GACN,YAAY,CAAC,gBAA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