@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
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
import { T as errorRuntime$1, f as errorInvalidOutputFormat, t as CliStructuredError$1, v as errorOutputFormatMutex } from "./cli-errors-kU09RUaz-CUkQ9XuM.mjs";
|
|
2
|
+
import { a as formatErrorOutput, i as formatErrorJson, n as createTerminalUI, r as formatDim, t as createColorFormatter } from "./terminal-ui-ypPE9cN6-ilMBkmwT.mjs";
|
|
3
|
+
import { c as spaceMigrationDirectory, t as APP_SPACE_ID$1 } from "./verify-contract-spaces-WvjSiWcB-DZPPCwWO.mjs";
|
|
4
|
+
import "@prisma/orm-framework/utils/defined";
|
|
5
|
+
import { relative, resolve } from "pathe";
|
|
6
|
+
import { readFile } from "node:fs/promises";
|
|
7
|
+
import { hasMigrations } from "@prisma/orm-framework/components/control";
|
|
8
|
+
import { blue, bold, cyan, dim, green, magenta } from "colorette";
|
|
9
|
+
import { notOk } from "@prisma/orm-framework/utils/result";
|
|
10
|
+
import wrapAnsi from "wrap-ansi";
|
|
11
|
+
import stringWidth from "string-width";
|
|
12
|
+
import stripAnsi from "strip-ansi";
|
|
13
|
+
import { isCI } from "ci-info";
|
|
14
|
+
//#region ../../../1-framework/3-tooling/cli/dist/command-helpers-bGYd7Aab.mjs
|
|
15
|
+
/**
|
|
16
|
+
* Fixed width for left column in help output.
|
|
17
|
+
*/
|
|
18
|
+
const LEFT_COLUMN_WIDTH$1 = 20;
|
|
19
|
+
/**
|
|
20
|
+
* Creates an arrow segment badge with green background and white text.
|
|
21
|
+
* Body: green background with white "prisma-next" text
|
|
22
|
+
* Tip: dark grey arrow pointing right (Powerline separator)
|
|
23
|
+
*/
|
|
24
|
+
function createPrismaNextBadge$1(useColor) {
|
|
25
|
+
if (!useColor) return "prisma-next";
|
|
26
|
+
return bold("prisma-next");
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates a padding function.
|
|
30
|
+
*/
|
|
31
|
+
function createPadFunction() {
|
|
32
|
+
return (s, w) => s + " ".repeat(Math.max(0, w - s.length));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Formats a header line: brand + operation + intent
|
|
36
|
+
*/
|
|
37
|
+
function formatHeaderLine$1(options) {
|
|
38
|
+
if (options.operation) return `${options.brand} ${options.operation} → ${options.intent}`;
|
|
39
|
+
return `${options.brand} ${options.intent}`;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Formats a "Read more" URL line.
|
|
43
|
+
* The "Read more" label is in default color (not cyan), and the URL is blue.
|
|
44
|
+
*/
|
|
45
|
+
function formatReadMoreLine$1(options) {
|
|
46
|
+
const labelPadded = createPadFunction()("Read more", options.maxLabelWidth);
|
|
47
|
+
const valueColored = options.useColor ? blue(options.url) : options.url;
|
|
48
|
+
return `${options.formatDimText("│")} ${labelPadded} ${valueColored}`;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Pads text to a fixed width, accounting for ANSI escape codes.
|
|
52
|
+
* Uses string-width to measure the actual display width.
|
|
53
|
+
*/
|
|
54
|
+
function padToFixedWidth(text, width) {
|
|
55
|
+
const actualWidth = stringWidth(text);
|
|
56
|
+
const padding = Math.max(0, width - actualWidth);
|
|
57
|
+
return text + " ".repeat(padding);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Renders a command tree structure.
|
|
61
|
+
* Handles both single-level (subcommands of a command) and multi-level (top-level commands with subcommands) trees.
|
|
62
|
+
*/
|
|
63
|
+
function renderCommandTree(options) {
|
|
64
|
+
const { commands, useColor, formatDimText, hasItemsAfter, continuationPrefix } = options;
|
|
65
|
+
const lines = [];
|
|
66
|
+
if (commands.length === 0) return lines;
|
|
67
|
+
for (let i = 0; i < commands.length; i++) {
|
|
68
|
+
const cmd = commands[i];
|
|
69
|
+
if (!cmd) continue;
|
|
70
|
+
const subcommands = cmd.commands.filter((subcmd) => !subcmd.name().startsWith("_"));
|
|
71
|
+
const isLastCommand = i === commands.length - 1;
|
|
72
|
+
if (subcommands.length > 0) {
|
|
73
|
+
const treePrefix = `${isLastCommand && !hasItemsAfter ? formatDimText("└") : formatDimText("├")}─ `;
|
|
74
|
+
const treePrefixWidth = stringWidth(stripAnsi(treePrefix));
|
|
75
|
+
const remainingWidth = LEFT_COLUMN_WIDTH$1 - treePrefixWidth;
|
|
76
|
+
const commandNamePadded = padToFixedWidth(cmd.name(), remainingWidth);
|
|
77
|
+
const commandNameColored = useColor ? cyan(commandNamePadded) : commandNamePadded;
|
|
78
|
+
lines.push(`${formatDimText("│")} ${treePrefix}${commandNameColored}`);
|
|
79
|
+
for (let j = 0; j < subcommands.length; j++) {
|
|
80
|
+
const subcmd = subcommands[j];
|
|
81
|
+
if (!subcmd) continue;
|
|
82
|
+
const isLastSubcommand = j === subcommands.length - 1;
|
|
83
|
+
const shortDescription = subcmd.description() || "";
|
|
84
|
+
const treeChar = isLastSubcommand ? "└" : "├";
|
|
85
|
+
const continuation = continuationPrefix ?? (isLastCommand && isLastSubcommand && !hasItemsAfter ? " " : formatDimText("│"));
|
|
86
|
+
const subTreePrefix = `${continuation === " " ? " " : continuation} ${formatDimText(treeChar)}─ `;
|
|
87
|
+
const subTreePrefixWidth = stringWidth(stripAnsi(subTreePrefix));
|
|
88
|
+
const subRemainingWidth = LEFT_COLUMN_WIDTH$1 - subTreePrefixWidth;
|
|
89
|
+
const subcommandNamePadded = padToFixedWidth(subcmd.name(), subRemainingWidth);
|
|
90
|
+
const subcommandNameColored = useColor ? cyan(subcommandNamePadded) : subcommandNamePadded;
|
|
91
|
+
lines.push(`${formatDimText("│")} ${subTreePrefix}${subcommandNameColored} ${shortDescription}`);
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
const treePrefix = `${isLastCommand && !hasItemsAfter ? formatDimText("└") : formatDimText("├")}─ `;
|
|
95
|
+
const treePrefixWidth = stringWidth(stripAnsi(treePrefix));
|
|
96
|
+
const remainingWidth = LEFT_COLUMN_WIDTH$1 - treePrefixWidth;
|
|
97
|
+
const commandNamePadded = padToFixedWidth(cmd.name(), remainingWidth);
|
|
98
|
+
const commandNameColored = useColor ? cyan(commandNamePadded) : commandNamePadded;
|
|
99
|
+
const shortDescription = cmd.description() || "";
|
|
100
|
+
lines.push(`${formatDimText("│")} ${treePrefix}${commandNameColored} ${shortDescription}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return lines;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Formats the header in the new experimental visual style.
|
|
107
|
+
* This header appears at the start of command output, showing the operation,
|
|
108
|
+
* intent, documentation link, and parameters.
|
|
109
|
+
*/
|
|
110
|
+
function formatStyledHeader(options) {
|
|
111
|
+
const lines = [];
|
|
112
|
+
const useColor = options.flags.color !== false;
|
|
113
|
+
const formatDimText = (text) => formatDim(useColor, text);
|
|
114
|
+
const brand = createPrismaNextBadge$1(useColor);
|
|
115
|
+
const operation = useColor ? bold(options.command) : options.command;
|
|
116
|
+
const intent = formatDimText(options.description);
|
|
117
|
+
lines.push(formatHeaderLine$1({
|
|
118
|
+
brand,
|
|
119
|
+
operation,
|
|
120
|
+
intent
|
|
121
|
+
}));
|
|
122
|
+
lines.push(formatDimText("│"));
|
|
123
|
+
for (const detail of options.details) {
|
|
124
|
+
const labelPadded = padToFixedWidth(`${detail.label}:`, LEFT_COLUMN_WIDTH$1);
|
|
125
|
+
const labelColored = useColor ? cyan(labelPadded) : labelPadded;
|
|
126
|
+
lines.push(`${formatDimText("│")} ${labelColored} ${detail.value}`);
|
|
127
|
+
}
|
|
128
|
+
if (options.url) {
|
|
129
|
+
lines.push(formatDimText("│"));
|
|
130
|
+
lines.push(formatReadMoreLine$1({
|
|
131
|
+
url: options.url,
|
|
132
|
+
maxLabelWidth: LEFT_COLUMN_WIDTH$1,
|
|
133
|
+
useColor,
|
|
134
|
+
formatDimText
|
|
135
|
+
}));
|
|
136
|
+
}
|
|
137
|
+
lines.push(formatDimText("└"));
|
|
138
|
+
return `${lines.join("\n")}\n`;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Formats a success message in the styled output format.
|
|
142
|
+
*/
|
|
143
|
+
function formatSuccessMessage(flags) {
|
|
144
|
+
return `${createColorFormatter(flags.color !== false, green)("✔")} Success`;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Fixed width for left column in help output.
|
|
148
|
+
* Must match the value in styled.ts.
|
|
149
|
+
*/
|
|
150
|
+
const LEFT_COLUMN_WIDTH = 20;
|
|
151
|
+
/**
|
|
152
|
+
* Minimum width for right column wrapping in help output.
|
|
153
|
+
*/
|
|
154
|
+
const RIGHT_COLUMN_MIN_WIDTH = 40;
|
|
155
|
+
/**
|
|
156
|
+
* Maximum width for right column wrapping in help output (when terminal is wide enough).
|
|
157
|
+
*/
|
|
158
|
+
const RIGHT_COLUMN_MAX_WIDTH = 90;
|
|
159
|
+
/**
|
|
160
|
+
* Gets the terminal width, or returns a default if not available.
|
|
161
|
+
*/
|
|
162
|
+
function getTerminalWidth() {
|
|
163
|
+
const terminalWidth = process.stderr.columns || process.stdout.columns;
|
|
164
|
+
const envWidth = Number.parseInt(process.env["CLI_WIDTH"] || "", 10);
|
|
165
|
+
return terminalWidth || (Number.isFinite(envWidth) ? envWidth : 80);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Calculates the available width for the right column based on terminal width.
|
|
169
|
+
*/
|
|
170
|
+
function calculateRightColumnWidth() {
|
|
171
|
+
const availableWidth = getTerminalWidth() - 2 - LEFT_COLUMN_WIDTH - 2;
|
|
172
|
+
return Math.max(RIGHT_COLUMN_MIN_WIDTH, Math.min(availableWidth, RIGHT_COLUMN_MAX_WIDTH));
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Creates the CLI brand badge.
|
|
176
|
+
*/
|
|
177
|
+
function createPrismaNextBadge(useColor) {
|
|
178
|
+
return useColor ? bold("prisma-next") : "prisma-next";
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Formats a header line: brand + operation + intent
|
|
182
|
+
*/
|
|
183
|
+
function formatHeaderLine(options) {
|
|
184
|
+
if (options.operation) return `${options.brand} ${options.operation} → ${options.intent}`;
|
|
185
|
+
return `${options.brand} ${options.intent}`;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Wraps text to fit within a specified width using wrap-ansi.
|
|
189
|
+
*/
|
|
190
|
+
function wrapTextAnsi(text, width) {
|
|
191
|
+
return wrapAnsi(text, width, {
|
|
192
|
+
hard: false,
|
|
193
|
+
trim: true
|
|
194
|
+
}).split("\n");
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Formats a default value as "default: <value>" with dimming.
|
|
198
|
+
*/
|
|
199
|
+
function formatDefaultValue(value, useColor) {
|
|
200
|
+
const defaultText = `default: ${String(value)}`;
|
|
201
|
+
return useColor ? dim(defaultText) : defaultText;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Formats a "Read more" URL line.
|
|
205
|
+
*/
|
|
206
|
+
function formatReadMoreLine(options) {
|
|
207
|
+
const labelPadded = `Read more${" ".repeat(Math.max(0, options.maxLabelWidth - 9))}`;
|
|
208
|
+
const valueColored = options.useColor ? blue(options.url) : options.url;
|
|
209
|
+
return `${options.formatDimText("│")} ${labelPadded} ${valueColored}`;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Formats multiline description with "Prisma Next" in green.
|
|
213
|
+
*/
|
|
214
|
+
function formatMultilineDescription(options) {
|
|
215
|
+
const lines = [];
|
|
216
|
+
const formatGreen = (text) => options.useColor ? green(text) : text;
|
|
217
|
+
const wrapWidth = 24 + calculateRightColumnWidth() - 2;
|
|
218
|
+
for (const descLine of options.descriptionLines) {
|
|
219
|
+
const wrappedLines = wrapTextAnsi(descLine.replace(/Prisma Next/g, (match) => formatGreen(match)), wrapWidth);
|
|
220
|
+
for (const wrappedLine of wrappedLines) lines.push(`${options.formatDimText("│")} ${wrappedLine}`);
|
|
221
|
+
}
|
|
222
|
+
return lines;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Maps command paths to their documentation URLs.
|
|
226
|
+
*/
|
|
227
|
+
function getCommandDocsUrl(commandPath) {
|
|
228
|
+
return {
|
|
229
|
+
"contract emit": "https://pris.ly/contract-emit",
|
|
230
|
+
"contract infer": "https://pris.ly/contract-infer",
|
|
231
|
+
"db schema": "https://pris.ly/db-schema",
|
|
232
|
+
"db verify": "https://pris.ly/db-verify",
|
|
233
|
+
"db update": "https://pris.ly/db-update",
|
|
234
|
+
"migration plan": "https://pris.ly/migration-plan",
|
|
235
|
+
migrate: "https://pris.ly/migrate",
|
|
236
|
+
"migration show": "https://pris.ly/migration-show",
|
|
237
|
+
"migration status": "https://pris.ly/migration-status"
|
|
238
|
+
}[commandPath];
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Builds the full command path from a command and its parents.
|
|
242
|
+
*/
|
|
243
|
+
function buildCommandPath(command) {
|
|
244
|
+
const parts = [];
|
|
245
|
+
let current = command;
|
|
246
|
+
while (current && current.name() !== "prisma-next") {
|
|
247
|
+
parts.unshift(current.name());
|
|
248
|
+
current = current.parent ?? void 0;
|
|
249
|
+
}
|
|
250
|
+
return parts.join(" ");
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Formats help output for a command using the styled format.
|
|
254
|
+
*/
|
|
255
|
+
function formatCommandHelp(options) {
|
|
256
|
+
const { command, flags } = options;
|
|
257
|
+
const lines = [];
|
|
258
|
+
const useColor = flags.color !== false;
|
|
259
|
+
const formatDimText = (text) => formatDim(useColor, text);
|
|
260
|
+
const commandPath = buildCommandPath(command);
|
|
261
|
+
const shortDescription = command.description() || "";
|
|
262
|
+
const longDescription = getLongDescription(command);
|
|
263
|
+
const argsSuffix = command.registeredArguments.map((arg) => arg.required ? `<${arg.name()}>` : `[${arg.name()}]`).join(" ");
|
|
264
|
+
const brand = createPrismaNextBadge(useColor);
|
|
265
|
+
const commandWithArgs = argsSuffix ? `${commandPath} ${argsSuffix}` : commandPath;
|
|
266
|
+
const operation = useColor ? bold(commandWithArgs) : commandWithArgs;
|
|
267
|
+
const intent = formatDimText(shortDescription);
|
|
268
|
+
lines.push(formatHeaderLine({
|
|
269
|
+
brand,
|
|
270
|
+
operation,
|
|
271
|
+
intent
|
|
272
|
+
}));
|
|
273
|
+
lines.push(formatDimText("│"));
|
|
274
|
+
const optionsList = command.options.map((opt) => {
|
|
275
|
+
const description = opt.description || "";
|
|
276
|
+
const defaultValue = opt.defaultValue;
|
|
277
|
+
return {
|
|
278
|
+
flags: opt.flags,
|
|
279
|
+
description,
|
|
280
|
+
defaultValue
|
|
281
|
+
};
|
|
282
|
+
});
|
|
283
|
+
const subcommands = command.commands.filter((cmd) => !cmd.name().startsWith("_"));
|
|
284
|
+
if (subcommands.length > 0) {
|
|
285
|
+
const treeLines = renderCommandTree({
|
|
286
|
+
commands: subcommands,
|
|
287
|
+
useColor,
|
|
288
|
+
formatDimText,
|
|
289
|
+
hasItemsAfter: optionsList.length > 0
|
|
290
|
+
});
|
|
291
|
+
lines.push(...treeLines);
|
|
292
|
+
}
|
|
293
|
+
if (subcommands.length > 0 && optionsList.length > 0) lines.push(formatDimText("│"));
|
|
294
|
+
if (optionsList.length > 0) for (const opt of optionsList) {
|
|
295
|
+
const flagsPadded = padToFixedWidth(opt.flags, LEFT_COLUMN_WIDTH);
|
|
296
|
+
let flagsColored = flagsPadded;
|
|
297
|
+
if (useColor) {
|
|
298
|
+
flagsColored = flagsPadded.replace(/(<[^>]+>)/g, (match) => magenta(match));
|
|
299
|
+
flagsColored = cyan(flagsColored);
|
|
300
|
+
}
|
|
301
|
+
const rightColumnWidth = calculateRightColumnWidth();
|
|
302
|
+
const wrappedDescription = wrapTextAnsi(opt.description, rightColumnWidth);
|
|
303
|
+
lines.push(`${formatDimText("│")} ${flagsColored} ${wrappedDescription[0] || ""}`);
|
|
304
|
+
for (let i = 1; i < wrappedDescription.length; i++) {
|
|
305
|
+
const emptyLabel = " ".repeat(LEFT_COLUMN_WIDTH);
|
|
306
|
+
lines.push(`${formatDimText("│")} ${emptyLabel} ${wrappedDescription[i] || ""}`);
|
|
307
|
+
}
|
|
308
|
+
if (opt.defaultValue !== void 0) {
|
|
309
|
+
const emptyLabel = " ".repeat(LEFT_COLUMN_WIDTH);
|
|
310
|
+
const defaultText = formatDefaultValue(opt.defaultValue, useColor);
|
|
311
|
+
lines.push(`${formatDimText("│")} ${emptyLabel} ${defaultText}`);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
const docsUrl = getCommandDocsUrl(commandPath);
|
|
315
|
+
if (docsUrl) {
|
|
316
|
+
lines.push(formatDimText("│"));
|
|
317
|
+
lines.push(formatReadMoreLine({
|
|
318
|
+
url: docsUrl,
|
|
319
|
+
maxLabelWidth: LEFT_COLUMN_WIDTH,
|
|
320
|
+
useColor,
|
|
321
|
+
formatDimText
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
const examples = getCommandExamples(command);
|
|
325
|
+
if (examples && examples.length > 0) {
|
|
326
|
+
lines.push(formatDimText("│"));
|
|
327
|
+
lines.push(`${formatDimText("│")} ${formatDimText("Examples:")}`);
|
|
328
|
+
for (const example of examples) lines.push(`${formatDimText("│")} ${useColor ? dim("$") : "$"} ${example}`);
|
|
329
|
+
}
|
|
330
|
+
const seeAlso = getCommandSeeAlso(command);
|
|
331
|
+
if (seeAlso && seeAlso.length > 0) {
|
|
332
|
+
lines.push(formatDimText("│"));
|
|
333
|
+
lines.push(`${formatDimText("│")} ${formatDimText("See also:")}`);
|
|
334
|
+
for (const ref of seeAlso) lines.push(`${formatDimText("│")} ${ref.verb} ${formatDimText(ref.oneLiner)}`);
|
|
335
|
+
}
|
|
336
|
+
if (longDescription) {
|
|
337
|
+
lines.push(formatDimText("│"));
|
|
338
|
+
const descriptionLines = longDescription.split("\n").filter((line) => line.trim().length > 0);
|
|
339
|
+
lines.push(...formatMultilineDescription({
|
|
340
|
+
descriptionLines,
|
|
341
|
+
useColor,
|
|
342
|
+
formatDimText
|
|
343
|
+
}));
|
|
344
|
+
}
|
|
345
|
+
lines.push(formatDimText("└"));
|
|
346
|
+
return `${lines.join("\n")}\n`;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Formats help output for the root program using the styled format.
|
|
350
|
+
*/
|
|
351
|
+
function formatRootHelp(options) {
|
|
352
|
+
const { program, flags } = options;
|
|
353
|
+
const lines = [];
|
|
354
|
+
const useColor = flags.color !== false;
|
|
355
|
+
const formatDimText = (text) => formatDim(useColor, text);
|
|
356
|
+
const brand = createPrismaNextBadge(useColor);
|
|
357
|
+
const intent = formatDimText("Manage your data layer");
|
|
358
|
+
lines.push(formatHeaderLine({
|
|
359
|
+
brand,
|
|
360
|
+
operation: "",
|
|
361
|
+
intent
|
|
362
|
+
}));
|
|
363
|
+
lines.push(formatDimText("│"));
|
|
364
|
+
const topLevelCommands = program.commands.filter((cmd) => !cmd.name().startsWith("_") && cmd.name() !== "help");
|
|
365
|
+
const globalOptions = program.options.map((opt) => {
|
|
366
|
+
const description = opt.description || "";
|
|
367
|
+
const defaultValue = opt.defaultValue;
|
|
368
|
+
return {
|
|
369
|
+
flags: opt.flags,
|
|
370
|
+
description,
|
|
371
|
+
defaultValue
|
|
372
|
+
};
|
|
373
|
+
});
|
|
374
|
+
if (topLevelCommands.length > 0) {
|
|
375
|
+
const treeLines = renderCommandTree({
|
|
376
|
+
commands: topLevelCommands,
|
|
377
|
+
useColor,
|
|
378
|
+
formatDimText,
|
|
379
|
+
hasItemsAfter: globalOptions.length > 0
|
|
380
|
+
});
|
|
381
|
+
lines.push(...treeLines);
|
|
382
|
+
}
|
|
383
|
+
if (topLevelCommands.length > 0 && globalOptions.length > 0) lines.push(formatDimText("│"));
|
|
384
|
+
if (globalOptions.length > 0) for (const opt of globalOptions) {
|
|
385
|
+
const flagsPadded = padToFixedWidth(opt.flags, LEFT_COLUMN_WIDTH);
|
|
386
|
+
let flagsColored = flagsPadded;
|
|
387
|
+
if (useColor) {
|
|
388
|
+
flagsColored = flagsPadded.replace(/(<[^>]+>)/g, (match) => magenta(match));
|
|
389
|
+
flagsColored = cyan(flagsColored);
|
|
390
|
+
}
|
|
391
|
+
const rightColumnWidth = calculateRightColumnWidth();
|
|
392
|
+
const wrappedDescription = wrapTextAnsi(opt.description, rightColumnWidth);
|
|
393
|
+
lines.push(`${formatDimText("│")} ${flagsColored} ${wrappedDescription[0] || ""}`);
|
|
394
|
+
for (let i = 1; i < wrappedDescription.length; i++) {
|
|
395
|
+
const emptyLabel = " ".repeat(LEFT_COLUMN_WIDTH);
|
|
396
|
+
lines.push(`${formatDimText("│")} ${emptyLabel} ${wrappedDescription[i] || ""}`);
|
|
397
|
+
}
|
|
398
|
+
if (opt.defaultValue !== void 0) {
|
|
399
|
+
const emptyLabel = " ".repeat(LEFT_COLUMN_WIDTH);
|
|
400
|
+
const defaultText = formatDefaultValue(opt.defaultValue, useColor);
|
|
401
|
+
lines.push(`${formatDimText("│")} ${emptyLabel} ${defaultText}`);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
const formatGreen = (text) => useColor ? green(text) : text;
|
|
405
|
+
const descriptionLines = [`Use ${formatGreen("Prisma Next")} to define your data layer as a contract. Sign your database and application with the same contract to guarantee compatibility. Plan and apply migrations to safely evolve your schema.`];
|
|
406
|
+
if (descriptionLines.length > 0) {
|
|
407
|
+
lines.push(formatDimText("│"));
|
|
408
|
+
lines.push(...formatMultilineDescription({
|
|
409
|
+
descriptionLines,
|
|
410
|
+
useColor,
|
|
411
|
+
formatDimText
|
|
412
|
+
}));
|
|
413
|
+
}
|
|
414
|
+
lines.push(formatDimText("└"));
|
|
415
|
+
return `${lines.join("\n")}\n`;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Returns true when the process is running in any CI environment recognised
|
|
419
|
+
* by the `ci-info` package. The single source of truth for CI detection
|
|
420
|
+
* across this CLI — colour-output suppression and telemetry-skip both call
|
|
421
|
+
* this helper, so neither path drifts from the other when a new CI provider
|
|
422
|
+
* is added upstream.
|
|
423
|
+
*
|
|
424
|
+
* `ci-info` checks the standard `CI=true` marker plus dozens of
|
|
425
|
+
* provider-specific environment variables (Buildkite, Jenkins, Drone,
|
|
426
|
+
* Bitbucket Pipelines, Azure Pipelines, AWS CodeBuild, …) that the raw
|
|
427
|
+
* `process.env.CI` read misses.
|
|
428
|
+
*
|
|
429
|
+
*/
|
|
430
|
+
function isCI$1() {
|
|
431
|
+
return isCI;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Processes a CLI command result, handling both success and error cases.
|
|
435
|
+
* Formats output appropriately and returns the exit code.
|
|
436
|
+
* Never throws - returns exit code for commands to use with process.exit().
|
|
437
|
+
*
|
|
438
|
+
* Error output:
|
|
439
|
+
* - JSON mode: JSON error to stdout (piped) via ui.output(), human sees nothing on stderr.
|
|
440
|
+
* - Interactive: human-readable error to stderr.
|
|
441
|
+
*/
|
|
442
|
+
function handleResult(result, flags, ui, onSuccess) {
|
|
443
|
+
if (result.ok) {
|
|
444
|
+
if (onSuccess) onSuccess(result.value);
|
|
445
|
+
return 0;
|
|
446
|
+
}
|
|
447
|
+
const envelope = result.failure.toEnvelope();
|
|
448
|
+
if (flags.json) ui.output(formatErrorJson(envelope));
|
|
449
|
+
else ui.error(formatErrorOutput(envelope, flags));
|
|
450
|
+
return result.failure.code === "CLI.INIT_USER_ABORTED" ? 3 : 2;
|
|
451
|
+
}
|
|
452
|
+
function isJsonFlagSet(json) {
|
|
453
|
+
return json === true;
|
|
454
|
+
}
|
|
455
|
+
function resolveOutputFormat(options) {
|
|
456
|
+
const formatOption = options.format;
|
|
457
|
+
const jsonFlag = isJsonFlagSet(options.json);
|
|
458
|
+
if (formatOption !== void 0) {
|
|
459
|
+
if (formatOption !== "pretty" && formatOption !== "json") throw errorInvalidOutputFormat(formatOption);
|
|
460
|
+
if (jsonFlag && formatOption === "pretty") throw errorOutputFormatMutex();
|
|
461
|
+
return {
|
|
462
|
+
format: formatOption,
|
|
463
|
+
explicitFormat: true
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
if (jsonFlag) return {
|
|
467
|
+
format: "json",
|
|
468
|
+
explicitFormat: false
|
|
469
|
+
};
|
|
470
|
+
if (!process.stdout.isTTY) return {
|
|
471
|
+
format: "json",
|
|
472
|
+
explicitFormat: false
|
|
473
|
+
};
|
|
474
|
+
return {
|
|
475
|
+
format: "pretty",
|
|
476
|
+
explicitFormat: false
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
function inferJsonModeForParseError(options) {
|
|
480
|
+
if (options.format === "json") return true;
|
|
481
|
+
if (isJsonFlagSet(options.json) && options.format !== "pretty") return true;
|
|
482
|
+
if (options.format !== void 0) return false;
|
|
483
|
+
return !process.stdout.isTTY;
|
|
484
|
+
}
|
|
485
|
+
function emitGlobalFlagParseError(error, options) {
|
|
486
|
+
const jsonMode = inferJsonModeForParseError(options);
|
|
487
|
+
const flags = {
|
|
488
|
+
format: jsonMode ? "json" : "pretty",
|
|
489
|
+
explicitFormat: false,
|
|
490
|
+
...jsonMode ? { json: true } : {},
|
|
491
|
+
color: false,
|
|
492
|
+
verbose: 0,
|
|
493
|
+
interactive: false
|
|
494
|
+
};
|
|
495
|
+
const ui = createTerminalUI(flags);
|
|
496
|
+
const exitCode = handleResult(notOk(error), flags, ui);
|
|
497
|
+
process.exit(exitCode);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Parses global flags from CLI options.
|
|
501
|
+
* Handles verbosity flags (-v, --trace), output format (--format, --json),
|
|
502
|
+
* quiet mode, color, interactivity (--interactive/--no-interactive), and
|
|
503
|
+
* auto-accept (-y/--yes).
|
|
504
|
+
*
|
|
505
|
+
* On invalid or conflicting format flags, prints a structured CLI error
|
|
506
|
+
* envelope and exits with code 2.
|
|
507
|
+
*/
|
|
508
|
+
function parseGlobalFlagsOrExit(options) {
|
|
509
|
+
try {
|
|
510
|
+
return parseGlobalFlags(options);
|
|
511
|
+
} catch (error) {
|
|
512
|
+
if (CliStructuredError$1.is(error)) emitGlobalFlagParseError(error, options);
|
|
513
|
+
throw error;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Parses global flags from CLI options.
|
|
518
|
+
* Handles verbosity flags (-v, --trace), output format (--format, --json),
|
|
519
|
+
* quiet mode, color, interactivity (--interactive/--no-interactive), and
|
|
520
|
+
* auto-accept (-y/--yes).
|
|
521
|
+
*
|
|
522
|
+
* Throws {@link CliStructuredError} for invalid or conflicting format flags.
|
|
523
|
+
*/
|
|
524
|
+
function parseGlobalFlags(options) {
|
|
525
|
+
const { format, explicitFormat } = resolveOutputFormat(options);
|
|
526
|
+
const flags = {
|
|
527
|
+
format,
|
|
528
|
+
explicitFormat
|
|
529
|
+
};
|
|
530
|
+
if (format === "json") flags.json = true;
|
|
531
|
+
if (options.quiet || options.q) flags.quiet = true;
|
|
532
|
+
if (options.trace || process.env["PRISMA_NEXT_TRACE"] === "1") flags.verbose = 2;
|
|
533
|
+
else if (options.verbose || options.v || process.env["PRISMA_NEXT_DEBUG"] === "1") flags.verbose = 1;
|
|
534
|
+
else flags.verbose = 0;
|
|
535
|
+
if (process.env["NO_COLOR"] || flags.json) flags.color = false;
|
|
536
|
+
else if (options["no-color"]) flags.color = false;
|
|
537
|
+
else if (options.color !== void 0) flags.color = options.color;
|
|
538
|
+
else flags.color = process.stdout.isTTY && !isCI$1();
|
|
539
|
+
if (options["no-interactive"]) flags.interactive = false;
|
|
540
|
+
else if (options.interactive !== void 0) flags.interactive = options.interactive;
|
|
541
|
+
else flags.interactive = !!process.stdout.isTTY;
|
|
542
|
+
if (options.yes || options.y) flags.yes = true;
|
|
543
|
+
return flags;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Bridges the two TTY checks (stdout via `flags`, stdin via
|
|
547
|
+
* `process.stdin.isTTY`) into the `canPrompt` boolean the interactive
|
|
548
|
+
* `init` flow consumes.
|
|
549
|
+
*
|
|
550
|
+
* Per the [Style Guide § Interactivity](../../../../../../../docs/CLI%20Style%20Guide.md#interactivity):
|
|
551
|
+
*
|
|
552
|
+
* - `flags.interactive` governs *decoration* (TerminalUI, intro/outro,
|
|
553
|
+
* spinners) and is derived from stdout-TTY by `parseGlobalFlags`,
|
|
554
|
+
* honouring `--interactive` / `--no-interactive`.
|
|
555
|
+
* - Prompting additionally requires a stdin TTY — closing stdin is a
|
|
556
|
+
* common signal in CI / agent environments even when stdout stays
|
|
557
|
+
* attached.
|
|
558
|
+
* - `--interactive` is the explicit override: when the user passes it,
|
|
559
|
+
* we honour it (e.g. testing flows where stdin is stubbed).
|
|
560
|
+
*
|
|
561
|
+
* Single source of truth for the interactive-prompt decision: both the
|
|
562
|
+
* `init` action handler and the preAction telemetry bridge derive
|
|
563
|
+
* prompt-eligibility from this helper so they cannot drift. Lives in
|
|
564
|
+
* `global-flags` (alongside `parseGlobalFlags`) to keep
|
|
565
|
+
* `utils/telemetry` and `commands/init/index` free of an import cycle.
|
|
566
|
+
*
|
|
567
|
+
* Exported so callers and tests can derive the same value without
|
|
568
|
+
* touching `process` globals.
|
|
569
|
+
*/
|
|
570
|
+
function deriveCanPrompt(opts) {
|
|
571
|
+
if (opts.optionInteractive === true) return true;
|
|
572
|
+
if (opts.flagsInteractive === false) return false;
|
|
573
|
+
return opts.stdinIsTTY;
|
|
574
|
+
}
|
|
575
|
+
const longDescriptions = /* @__PURE__ */ new WeakMap();
|
|
576
|
+
const commandExamples = /* @__PURE__ */ new WeakMap();
|
|
577
|
+
const commandSeeAlso = /* @__PURE__ */ new WeakMap();
|
|
578
|
+
/**
|
|
579
|
+
* Sets both short and long descriptions for a command.
|
|
580
|
+
* The short description is used in command trees and headers.
|
|
581
|
+
* The long description is shown at the bottom of help output.
|
|
582
|
+
*/
|
|
583
|
+
function setCommandDescriptions(command, shortDescription, longDescription) {
|
|
584
|
+
command.description(shortDescription);
|
|
585
|
+
if (longDescription) longDescriptions.set(command, longDescription);
|
|
586
|
+
return command;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Sets copy-pastable examples for a command, shown in help text.
|
|
590
|
+
*/
|
|
591
|
+
function setCommandExamples(command, examples) {
|
|
592
|
+
commandExamples.set(command, examples);
|
|
593
|
+
return command;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Gets the long description from a command if it was set via setCommandDescriptions.
|
|
597
|
+
*/
|
|
598
|
+
function getLongDescription(command) {
|
|
599
|
+
return longDescriptions.get(command);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Gets examples from a command if set via setCommandExamples.
|
|
603
|
+
*/
|
|
604
|
+
function getCommandExamples(command) {
|
|
605
|
+
return commandExamples.get(command);
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Sets cross-references to related commands, rendered in a "See also"
|
|
609
|
+
* section below the Examples block in help output.
|
|
610
|
+
*/
|
|
611
|
+
function setCommandSeeAlso(command, refs) {
|
|
612
|
+
commandSeeAlso.set(command, refs);
|
|
613
|
+
return command;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Gets the see-also cross-references from a command.
|
|
617
|
+
*/
|
|
618
|
+
function getCommandSeeAlso(command) {
|
|
619
|
+
return commandSeeAlso.get(command);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Resolves the absolute path to contract.json from the config.
|
|
623
|
+
*/
|
|
624
|
+
function resolveContractPath(config) {
|
|
625
|
+
if (config.contract?.output === void 0) throw errorRuntime$1("CONFIG.VALIDATION_FAILED", "config.contract.output is required to resolve the contract path", {
|
|
626
|
+
why: "CLI commands read the emitted contract from config.contract.output; the config has no value to read.",
|
|
627
|
+
fix: "Ensure your prisma-next.config.ts goes through `defineConfig()`, which normalises a default output when the provider supplies an input path, or set `contract.output` explicitly."
|
|
628
|
+
});
|
|
629
|
+
return resolve(config.contract.output);
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Resolves the migrations directory and config path from CLI options.
|
|
633
|
+
* Shared by migrate, migration-plan, and migration-status.
|
|
634
|
+
*
|
|
635
|
+
* - `migrationsDir` is the project's top-level `migrations/` directory
|
|
636
|
+
* (the root that the aggregate loader walks for every contract space).
|
|
637
|
+
* - `appMigrationsDir` is the app subspace directory under it
|
|
638
|
+
* (`<migrationsDir>/<APP_SPACE_ID>/`). Every per-app reader / writer
|
|
639
|
+
* (`migration new`, `migration plan`, `migrate`,
|
|
640
|
+
* `migration status`, `migration show`, `migration ref`) operates on
|
|
641
|
+
* this directory. Extensions own their own `migrations/<spaceId>/`.
|
|
642
|
+
* - `refsDir` is the app's refs directory (`<appMigrationsDir>/refs/`).
|
|
643
|
+
* The framework does not maintain refs at the migrations root.
|
|
644
|
+
*
|
|
645
|
+
* `cwd` is the directory the command was invoked from; every relative path in
|
|
646
|
+
* the result is computed against it.
|
|
647
|
+
*/
|
|
648
|
+
function resolveMigrationPaths(configOption, config, cwd) {
|
|
649
|
+
const resolvedConfigPath = configOption ? resolve(cwd, configOption) : void 0;
|
|
650
|
+
const configPath = resolvedConfigPath ? relative(cwd, resolvedConfigPath) : "prisma-next.config.ts";
|
|
651
|
+
const migrationsDir = resolve(resolvedConfigPath ? resolve(resolvedConfigPath, "..") : cwd, config.migrations?.dir ?? "migrations");
|
|
652
|
+
const migrationsRelative = relative(cwd, migrationsDir);
|
|
653
|
+
const appMigrationsDir = spaceMigrationDirectory(migrationsDir, APP_SPACE_ID$1);
|
|
654
|
+
return {
|
|
655
|
+
configPath,
|
|
656
|
+
migrationsDir,
|
|
657
|
+
migrationsRelative,
|
|
658
|
+
appMigrationsDir,
|
|
659
|
+
appMigrationsRelative: relative(cwd, appMigrationsDir),
|
|
660
|
+
refsDir: resolve(appMigrationsDir, "refs")
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
function collectDeclaredInvariants(graph) {
|
|
664
|
+
const declared = /* @__PURE__ */ new Set();
|
|
665
|
+
for (const edges of graph.forwardChain.values()) for (const edge of edges) for (const inv of edge.invariants) declared.add(inv);
|
|
666
|
+
return declared;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Maps a `MigrationEdge` to the structural-edge shape used in the
|
|
670
|
+
* `MIGRATION.NO_INVARIANT_PATH` error envelope. Shared between
|
|
671
|
+
* `migrate` and `migration status` so both commands surface
|
|
672
|
+
* the same JSON wire shape when an invariant-aware route is unsatisfiable.
|
|
673
|
+
*/
|
|
674
|
+
function toStructuralEdge(edge) {
|
|
675
|
+
return {
|
|
676
|
+
dirName: edge.dirName,
|
|
677
|
+
migrationHash: edge.migrationHash,
|
|
678
|
+
from: edge.from,
|
|
679
|
+
to: edge.to,
|
|
680
|
+
invariants: edge.invariants
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
function targetSupportsMigrations(target) {
|
|
684
|
+
return hasMigrations(target);
|
|
685
|
+
}
|
|
686
|
+
function getTargetMigrations(target) {
|
|
687
|
+
return hasMigrations(target) ? target.migrations : void 0;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Reads and parses contract.json, validating the framework-level envelope
|
|
691
|
+
* fields (storageHash, schemaVersion, target, targetFamily).
|
|
692
|
+
*
|
|
693
|
+
* Family-specific validation (storage structure, codec mappings, etc.)
|
|
694
|
+
* happens downstream in the control client via the family instance.
|
|
695
|
+
*/
|
|
696
|
+
async function readContractEnvelope(config) {
|
|
697
|
+
const contractPath = resolveContractPath(config);
|
|
698
|
+
const content = await readFile(contractPath, "utf-8");
|
|
699
|
+
const json = JSON.parse(content);
|
|
700
|
+
const { schemaVersion, target, targetFamily, profileHash } = json;
|
|
701
|
+
const storageHash = json["storage"]?.["storageHash"];
|
|
702
|
+
if (typeof storageHash !== "string") throw new CliStructuredError$1("CONTRACT.VALIDATION_FAILED", `Contract at ${relative(process.cwd(), contractPath)} is missing a valid storage.storageHash. Run \`prisma-next contract emit\` to regenerate.`, { where: { path: contractPath } });
|
|
703
|
+
if (typeof schemaVersion !== "string") throw new CliStructuredError$1("CONTRACT.VALIDATION_FAILED", `Contract at ${relative(process.cwd(), contractPath)} is missing schemaVersion.`, { where: { path: contractPath } });
|
|
704
|
+
if (typeof target !== "string") throw new CliStructuredError$1("CONTRACT.VALIDATION_FAILED", `Contract at ${relative(process.cwd(), contractPath)} is missing target.`, { where: { path: contractPath } });
|
|
705
|
+
if (typeof targetFamily !== "string") throw new CliStructuredError$1("CONTRACT.VALIDATION_FAILED", `Contract at ${relative(process.cwd(), contractPath)} is missing targetFamily.`, { where: { path: contractPath } });
|
|
706
|
+
return {
|
|
707
|
+
...json,
|
|
708
|
+
storageHash,
|
|
709
|
+
schemaVersion,
|
|
710
|
+
target,
|
|
711
|
+
targetFamily,
|
|
712
|
+
...typeof profileHash === "string" ? { profileHash } : {}
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Masks credentials in a database connection URL.
|
|
717
|
+
* Handles standard URLs (username + password + query params) and libpq-style key=value strings.
|
|
718
|
+
*/
|
|
719
|
+
function maskConnectionUrl(url) {
|
|
720
|
+
try {
|
|
721
|
+
const parsed = new URL(url);
|
|
722
|
+
if (parsed.username) parsed.username = "****";
|
|
723
|
+
if (parsed.password) parsed.password = "****";
|
|
724
|
+
for (const key of [...parsed.searchParams.keys()]) if (/password/i.test(key)) parsed.searchParams.set(key, "****");
|
|
725
|
+
return parsed.toString();
|
|
726
|
+
} catch {
|
|
727
|
+
return url.replace(/password\s*=\s*\S+/gi, "password=****").replace(/user\s*=\s*\S+/gi, "user=****");
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Strips raw connection URL fragments from an error message to prevent credential leakage.
|
|
732
|
+
* Call this before surfacing driver errors to the user.
|
|
733
|
+
*/
|
|
734
|
+
function sanitizeErrorMessage(message, connectionUrl) {
|
|
735
|
+
if (!connectionUrl) return message;
|
|
736
|
+
try {
|
|
737
|
+
const parsed = new URL(connectionUrl);
|
|
738
|
+
let sanitized = message;
|
|
739
|
+
sanitized = sanitized.replaceAll(connectionUrl, maskConnectionUrl(connectionUrl));
|
|
740
|
+
if (parsed.password) sanitized = sanitized.replaceAll(parsed.password, "****");
|
|
741
|
+
if (parsed.username) sanitized = sanitized.replaceAll(parsed.username, "****");
|
|
742
|
+
return sanitized;
|
|
743
|
+
} catch {
|
|
744
|
+
return message.replace(/password\s*=\s*\S+/gi, "password=****").replace(/user\s*=\s*\S+/gi, "user=****");
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Registers the global CLI options shared by every command:
|
|
749
|
+
* --format, --json, -q/--quiet, -v/--verbose, --trace, --color, --no-color,
|
|
750
|
+
* --interactive, --no-interactive, -y/--yes.
|
|
751
|
+
*
|
|
752
|
+
* Also sets up the styled help formatter.
|
|
753
|
+
*/
|
|
754
|
+
function addGlobalOptions(command) {
|
|
755
|
+
return command.configureHelp({ formatHelp: (cmd) => {
|
|
756
|
+
return formatCommandHelp({
|
|
757
|
+
command: cmd,
|
|
758
|
+
flags: parseGlobalFlags({})
|
|
759
|
+
});
|
|
760
|
+
} }).option("--format <pretty|json>", "Output format (default: pretty, or json when stdout is not a TTY)").option("--json", "Output as JSON (alias for --format json)").option("-q, --quiet", "Quiet mode: errors only").option("-v, --verbose", "Verbose output: debug info, timings").option("--trace", "Trace output: deep internals, stack traces").option("--color", "Force color output").option("--no-color", "Disable color output").option("--interactive", "Force interactive mode").option("--no-interactive", "Disable interactive prompts").option("-y, --yes", "Auto-accept prompts");
|
|
761
|
+
}
|
|
762
|
+
//#endregion
|
|
763
|
+
export { toStructuralEdge as S, sanitizeErrorMessage as _, formatRootHelp as a, setCommandSeeAlso as b, getTargetMigrations as c, maskConnectionUrl as d, parseGlobalFlags as f, resolveMigrationPaths as g, resolveContractPath as h, formatCommandHelp as i, handleResult as l, readContractEnvelope as m, collectDeclaredInvariants as n, formatStyledHeader as o, parseGlobalFlagsOrExit as p, deriveCanPrompt as r, formatSuccessMessage as s, addGlobalOptions as t, isCI$1 as u, setCommandDescriptions as v, targetSupportsMigrations as x, setCommandExamples as y };
|
|
764
|
+
|
|
765
|
+
//# sourceMappingURL=command-helpers-bGYd7Aab-BNSzfbHK.mjs.map
|