@prisma/orm-toolchain 0.16.0-dev.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +28 -0
- package/dist/aggregate-B4mhR4Sk.mjs +1012 -0
- package/dist/aggregate-B4mhR4Sk.mjs.map +1 -0
- package/dist/aggregate-BflrjWPO.d.mts +803 -0
- package/dist/aggregate-BflrjWPO.d.mts.map +1 -0
- package/dist/bin__prisma-next.mjs +800 -0
- package/dist/bin__prisma-next.mjs.map +1 -0
- package/dist/cli-telemetry.d.mts +367 -0
- package/dist/cli-telemetry.d.mts.map +1 -0
- package/dist/cli-telemetry.mjs +48 -0
- package/dist/cli-telemetry.mjs.map +1 -0
- package/dist/cli-telemetry__sender.d.mts +1 -0
- package/dist/cli-telemetry__sender.mjs +1 -0
- package/dist/cli.d.mts +31 -0
- package/dist/cli.d.mts.map +1 -0
- package/dist/cli.mjs +180 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/cli__commands__contract-emit.d.mts +2 -0
- package/dist/cli__commands__contract-emit.mjs +2 -0
- package/dist/cli__commands__contract-infer.d.mts +7 -0
- package/dist/cli__commands__contract-infer.d.mts.map +1 -0
- package/dist/cli__commands__contract-infer.mjs +2 -0
- package/dist/cli__commands__db-init.d.mts +7 -0
- package/dist/cli__commands__db-init.d.mts.map +1 -0
- package/dist/cli__commands__db-init.mjs +2 -0
- package/dist/cli__commands__db-schema.d.mts +7 -0
- package/dist/cli__commands__db-schema.d.mts.map +1 -0
- package/dist/cli__commands__db-schema.mjs +2 -0
- package/dist/cli__commands__db-sign.d.mts +7 -0
- package/dist/cli__commands__db-sign.d.mts.map +1 -0
- package/dist/cli__commands__db-sign.mjs +2 -0
- package/dist/cli__commands__db-update.d.mts +7 -0
- package/dist/cli__commands__db-update.d.mts.map +1 -0
- package/dist/cli__commands__db-update.mjs +2 -0
- package/dist/cli__commands__db-verify.d.mts +7 -0
- package/dist/cli__commands__db-verify.d.mts.map +1 -0
- package/dist/cli__commands__db-verify.mjs +2 -0
- package/dist/cli__commands__migrate.d.mts +66 -0
- package/dist/cli__commands__migrate.d.mts.map +1 -0
- package/dist/cli__commands__migrate.mjs +2 -0
- package/dist/cli__commands__migration-check.d.mts +64 -0
- package/dist/cli__commands__migration-check.d.mts.map +1 -0
- package/dist/cli__commands__migration-check.mjs +3 -0
- package/dist/cli__commands__migration-graph.d.mts +36 -0
- package/dist/cli__commands__migration-graph.d.mts.map +1 -0
- package/dist/cli__commands__migration-graph.mjs +2 -0
- package/dist/cli__commands__migration-list.d.mts +79 -0
- package/dist/cli__commands__migration-list.d.mts.map +1 -0
- package/dist/cli__commands__migration-list.mjs +2 -0
- package/dist/cli__commands__migration-log.d.mts +20 -0
- package/dist/cli__commands__migration-log.d.mts.map +1 -0
- package/dist/cli__commands__migration-log.mjs +2 -0
- package/dist/cli__commands__migration-new.d.mts +7 -0
- package/dist/cli__commands__migration-new.d.mts.map +1 -0
- package/dist/cli__commands__migration-new.mjs +2 -0
- package/dist/cli__commands__migration-plan.d.mts +79 -0
- package/dist/cli__commands__migration-plan.d.mts.map +1 -0
- package/dist/cli__commands__migration-plan.mjs +2 -0
- package/dist/cli__commands__migration-show.d.mts +27 -0
- package/dist/cli__commands__migration-show.d.mts.map +1 -0
- package/dist/cli__commands__migration-show.mjs +2 -0
- package/dist/cli__commands__migration-status.d.mts +55 -0
- package/dist/cli__commands__migration-status.d.mts.map +1 -0
- package/dist/cli__commands__migration-status.mjs +3 -0
- package/dist/cli__commands__ref.d.mts +34 -0
- package/dist/cli__commands__ref.d.mts.map +1 -0
- package/dist/cli__commands__ref.mjs +2 -0
- package/dist/cli__commands__telemetry.d.mts +7 -0
- package/dist/cli__commands__telemetry.d.mts.map +1 -0
- package/dist/cli__commands__telemetry.mjs +2 -0
- package/dist/cli__config-types.d.mts +2 -0
- package/dist/cli__config-types.mjs +2 -0
- package/dist/cli__control-api.d.mts +141 -0
- package/dist/cli__control-api.d.mts.map +1 -0
- package/dist/cli__control-api.mjs +4 -0
- package/dist/cli__init-output.d.mts +37 -0
- package/dist/cli__init-output.d.mts.map +1 -0
- package/dist/cli__init-output.mjs +2 -0
- package/dist/cli__migration-cli.d.mts +79 -0
- package/dist/cli__migration-cli.d.mts.map +1 -0
- package/dist/cli__migration-cli.mjs +407 -0
- package/dist/cli__migration-cli.mjs.map +1 -0
- package/dist/client-75qrAPqf-DZAVUxFa.mjs +1606 -0
- package/dist/client-75qrAPqf-DZAVUxFa.mjs.map +1 -0
- package/dist/command-helpers-CAoXqAY9-DWUBcTXM.mjs +1671 -0
- package/dist/command-helpers-CAoXqAY9-DWUBcTXM.mjs.map +1 -0
- package/dist/config-loader.d.mts +18 -0
- package/dist/config-loader.d.mts.map +1 -0
- package/dist/config-loader.mjs +2 -0
- package/dist/constants-CM-w38DQ-Cz_EXbOc.mjs +10 -0
- package/dist/constants-CM-w38DQ-Cz_EXbOc.mjs.map +1 -0
- package/dist/constants-Dkcn8Qu4.d.mts +10 -0
- package/dist/constants-Dkcn8Qu4.d.mts.map +1 -0
- package/dist/contract-at-errors-BX7w-p19-SxA8eaV2.mjs +36 -0
- package/dist/contract-at-errors-BX7w-p19-SxA8eaV2.mjs.map +1 -0
- package/dist/contract-emit-0hSjbuxp-BBOKldTZ.mjs +148 -0
- package/dist/contract-emit-0hSjbuxp-BBOKldTZ.mjs.map +1 -0
- package/dist/contract-emit-B65_UiFn.d.mts +7 -0
- package/dist/contract-emit-B65_UiFn.d.mts.map +1 -0
- package/dist/contract-emit-B6odMoem-CK3diBPk.mjs +359 -0
- package/dist/contract-emit-B6odMoem-CK3diBPk.mjs.map +1 -0
- package/dist/contract-enrichment-DrMvvY2A-DxNGeF4d.mjs +56 -0
- package/dist/contract-enrichment-DrMvvY2A-DxNGeF4d.mjs.map +1 -0
- package/dist/contract-infer-BnkqpftN-DVM2eKJ3.mjs +73 -0
- package/dist/contract-infer-BnkqpftN-DVM2eKJ3.mjs.map +1 -0
- package/dist/contract-snapshot-store-CbqynbtE.d.mts +28 -0
- package/dist/contract-snapshot-store-CbqynbtE.d.mts.map +1 -0
- package/dist/contract-snapshot-store-sf5nP4mb-MLpG-ihh.mjs +118 -0
- package/dist/contract-snapshot-store-sf5nP4mb-MLpG-ihh.mjs.map +1 -0
- package/dist/contract-space-aggregate-loader-CFH-336b-BhAyRQEL.mjs +302 -0
- package/dist/contract-space-aggregate-loader-CFH-336b-BhAyRQEL.mjs.map +1 -0
- package/dist/db-init-Vbkb_TKZ.mjs +153 -0
- package/dist/db-init-Vbkb_TKZ.mjs.map +1 -0
- package/dist/db-schema-ClQCu3xY.mjs +47 -0
- package/dist/db-schema-ClQCu3xY.mjs.map +1 -0
- package/dist/db-sign-jjXDgQ1u.mjs +175 -0
- package/dist/db-sign-jjXDgQ1u.mjs.map +1 -0
- package/dist/db-update-BQlrqtDD.mjs +183 -0
- package/dist/db-update-BQlrqtDD.mjs.map +1 -0
- package/dist/db-verify-CKPsRFrj-3udprZQD.mjs +396 -0
- package/dist/db-verify-CKPsRFrj-3udprZQD.mjs.map +1 -0
- package/dist/domain-type-generation-DAn9y5d2-BgoT5uKI.mjs +334 -0
- package/dist/domain-type-generation-DAn9y5d2-BgoT5uKI.mjs.map +1 -0
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts +63 -0
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts.map +1 -0
- package/dist/emitter.d.mts +75 -0
- package/dist/emitter.d.mts.map +1 -0
- package/dist/emitter.mjs +3 -0
- package/dist/emitter__domain-type-generation.d.mts +2 -0
- package/dist/emitter__domain-type-generation.mjs +2 -0
- package/dist/emitter__type-expression-safety.d.mts +6 -0
- package/dist/emitter__type-expression-safety.d.mts.map +1 -0
- package/dist/emitter__type-expression-safety.mjs +2 -0
- package/dist/errors--qsXZUtL.d.mts +72 -0
- package/dist/errors--qsXZUtL.d.mts.map +1 -0
- package/dist/errors-IpZm1Skp-BH495dRd.mjs +378 -0
- package/dist/errors-IpZm1Skp-BH495dRd.mjs.map +1 -0
- package/dist/exports-BN0vFTxG.mjs +276 -0
- package/dist/exports-BN0vFTxG.mjs.map +1 -0
- package/dist/exports-B_xhKZmC.mjs +1436 -0
- package/dist/exports-B_xhKZmC.mjs.map +1 -0
- package/dist/exports-D3-NwrMA-CadaBGQ3.mjs +154 -0
- package/dist/exports-D3-NwrMA-CadaBGQ3.mjs.map +1 -0
- package/dist/exports-Dl2aGAk7.mjs +119 -0
- package/dist/exports-Dl2aGAk7.mjs.map +1 -0
- package/dist/format-ByDm2goZ-DKLyhNHo.mjs +101 -0
- package/dist/format-ByDm2goZ-DKLyhNHo.mjs.map +1 -0
- package/dist/framework-components-CjshQKHA-Dlp6Leo5.mjs +58 -0
- package/dist/framework-components-CjshQKHA-Dlp6Leo5.mjs.map +1 -0
- package/dist/global-flags-BpoOYtNZ-CHZD3fud.d.mts +35 -0
- package/dist/global-flags-BpoOYtNZ-CHZD3fud.d.mts.map +1 -0
- package/dist/graph-bDjJ4GL9-BhFevsJS.d.mts +28 -0
- package/dist/graph-bDjJ4GL9-BhFevsJS.d.mts.map +1 -0
- package/dist/graph-membership-DW6nnbyQ-Bp2KcVwR.mjs +14 -0
- package/dist/graph-membership-DW6nnbyQ-Bp2KcVwR.mjs.map +1 -0
- package/dist/hash-DH8hl5Rq-BpM2t3Nu.mjs +64 -0
- package/dist/hash-DH8hl5Rq-BpM2t3Nu.mjs.map +1 -0
- package/dist/hash-XZYYKJ-i.d.mts +53 -0
- package/dist/hash-XZYYKJ-i.d.mts.map +1 -0
- package/dist/import-roots-B6CtsWXb.d.mts +119 -0
- package/dist/import-roots-B6CtsWXb.d.mts.map +1 -0
- package/dist/import-roots-NDOIEDVj.mjs +217 -0
- package/dist/import-roots-NDOIEDVj.mjs.map +1 -0
- package/dist/init-DHctXAI9-DSlaaYXN.mjs +2186 -0
- package/dist/init-DHctXAI9-DSlaaYXN.mjs.map +1 -0
- package/dist/inspect-live-schema-CnwYTRZ0-BErPHMni.mjs +91 -0
- package/dist/inspect-live-schema-CnwYTRZ0-BErPHMni.mjs.map +1 -0
- package/dist/invariants-B5wLrgQS.d.mts +39 -0
- package/dist/invariants-B5wLrgQS.d.mts.map +1 -0
- package/dist/invariants-lXzy6txi-DAoP4nTE.mjs +57 -0
- package/dist/invariants-lXzy6txi-DAoP4nTE.mjs.map +1 -0
- package/dist/io-C8TdyBKt-DloEBi70.mjs +313 -0
- package/dist/io-C8TdyBKt-DloEBi70.mjs.map +1 -0
- package/dist/io-DYfeLJxR.d.mts +1 -0
- package/dist/io-sr4CO9_t-C3eV_kn-.d.mts +125 -0
- package/dist/io-sr4CO9_t-C3eV_kn-.d.mts.map +1 -0
- package/dist/ledger-origin-BGRN77Oy.d.mts +6 -0
- package/dist/ledger-origin-BGRN77Oy.d.mts.map +1 -0
- package/dist/ledger-origin-D7PN4Fon.mjs +9 -0
- package/dist/ledger-origin-D7PN4Fon.mjs.map +1 -0
- package/dist/metadata-2nbOAGsV-uYNeq2Cp.d.mts +2 -0
- package/dist/metadata-BtscDay2.d.mts +1 -0
- package/dist/migrate-Cb_iv264.mjs +500 -0
- package/dist/migrate-Cb_iv264.mjs.map +1 -0
- package/dist/migration-B2ljMJim.d.mts +155 -0
- package/dist/migration-B2ljMJim.d.mts.map +1 -0
- package/dist/migration-BuUmO7It.mjs +209 -0
- package/dist/migration-BuUmO7It.mjs.map +1 -0
- package/dist/migration-check-CcG-fB8r-CDs5C9vt.mjs +597 -0
- package/dist/migration-check-CcG-fB8r-CDs5C9vt.mjs.map +1 -0
- package/dist/migration-command-scaffold-BCuoeAki-B1pVGX8d.mjs +103 -0
- package/dist/migration-command-scaffold-BCuoeAki-B1pVGX8d.mjs.map +1 -0
- package/dist/migration-graph-CBf9ORe7-B4xAF8GN.mjs +500 -0
- package/dist/migration-graph-CBf9ORe7-B4xAF8GN.mjs.map +1 -0
- package/dist/migration-graph-DkoCC0Qy.mjs +185 -0
- package/dist/migration-graph-DkoCC0Qy.mjs.map +1 -0
- package/dist/migration-graph-Dqndu0i5.d.mts +9 -0
- package/dist/migration-graph-Dqndu0i5.d.mts.map +1 -0
- package/dist/migration-graph-command-render-BKrg6BPv-BP8Pfj4J.mjs +1945 -0
- package/dist/migration-graph-command-render-BKrg6BPv-BP8Pfj4J.mjs.map +1 -0
- package/dist/migration-graph-tarTxJ99-BrGBANeE.d.mts +124 -0
- package/dist/migration-graph-tarTxJ99-BrGBANeE.d.mts.map +1 -0
- package/dist/migration-list-BFBeo1_X-c0kqYokL.mjs +228 -0
- package/dist/migration-list-BFBeo1_X-c0kqYokL.mjs.map +1 -0
- package/dist/migration-log-CS5IWcNq-BQ-32Low.mjs +220 -0
- package/dist/migration-log-CS5IWcNq-BQ-32Low.mjs.map +1 -0
- package/dist/migration-new-BurCjyaQ.mjs +168 -0
- package/dist/migration-new-BurCjyaQ.mjs.map +1 -0
- package/dist/migration-path-target-D3Sj55PI-BICblCuk.mjs +38 -0
- package/dist/migration-path-target-D3Sj55PI-BICblCuk.mjs.map +1 -0
- package/dist/migration-plan-q_L84PN1-BWE0LTH6.mjs +759 -0
- package/dist/migration-plan-q_L84PN1-BWE0LTH6.mjs.map +1 -0
- package/dist/migration-show-Bx5I5aW9.mjs +171 -0
- package/dist/migration-show-Bx5I5aW9.mjs.map +1 -0
- package/dist/migration-status-CFlzlRmu-DewBN8Ys.mjs +444 -0
- package/dist/migration-status-CFlzlRmu-DewBN8Ys.mjs.map +1 -0
- package/dist/migration-tools.d.mts +23 -0
- package/dist/migration-tools.mjs +17 -0
- package/dist/migration-tools__aggregate.d.mts +2 -0
- package/dist/migration-tools__aggregate.mjs +2 -0
- package/dist/migration-tools__constants.d.mts +2 -0
- package/dist/migration-tools__constants.mjs +2 -0
- package/dist/migration-tools__contract-snapshot-store.d.mts +2 -0
- package/dist/migration-tools__contract-snapshot-store.mjs +2 -0
- package/dist/migration-tools__errors.d.mts +2 -0
- package/dist/migration-tools__errors.mjs +2 -0
- package/dist/migration-tools__graph.d.mts +2 -0
- package/dist/migration-tools__graph.mjs +1 -0
- package/dist/migration-tools__hash.d.mts +2 -0
- package/dist/migration-tools__hash.mjs +2 -0
- package/dist/migration-tools__invariants.d.mts +2 -0
- package/dist/migration-tools__invariants.mjs +2 -0
- package/dist/migration-tools__io.d.mts +3 -0
- package/dist/migration-tools__io.mjs +2 -0
- package/dist/migration-tools__ledger-origin.d.mts +2 -0
- package/dist/migration-tools__ledger-origin.mjs +2 -0
- package/dist/migration-tools__metadata.d.mts +3 -0
- package/dist/migration-tools__metadata.mjs +1 -0
- package/dist/migration-tools__migration-graph.d.mts +3 -0
- package/dist/migration-tools__migration-graph.mjs +3 -0
- package/dist/migration-tools__migration-ts.d.mts +2 -0
- package/dist/migration-tools__migration-ts.mjs +2 -0
- package/dist/migration-tools__migration.d.mts +2 -0
- package/dist/migration-tools__migration.mjs +2 -0
- package/dist/migration-tools__package.d.mts +3 -0
- package/dist/migration-tools__package.mjs +1 -0
- package/dist/migration-tools__ref-resolution.d.mts +2 -0
- package/dist/migration-tools__ref-resolution.mjs +2 -0
- package/dist/migration-tools__refs.d.mts +2 -0
- package/dist/migration-tools__refs.mjs +2 -0
- package/dist/migration-tools__spaces.d.mts +3 -0
- package/dist/migration-tools__spaces.mjs +3 -0
- package/dist/migration-ts-CNaAtK8C.d.mts +38 -0
- package/dist/migration-ts-CNaAtK8C.d.mts.map +1 -0
- package/dist/migration-ts-FyF55c4M.mjs +67 -0
- package/dist/migration-ts-FyF55c4M.mjs.map +1 -0
- package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs +13 -0
- package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs.map +1 -0
- package/dist/output-DWNYqZGc-D2sRgLAm.mjs +109 -0
- package/dist/output-DWNYqZGc-D2sRgLAm.mjs.map +1 -0
- package/dist/package-CfWiDNrr-ZR4HM_Iz.d.mts +21 -0
- package/dist/package-CfWiDNrr-ZR4HM_Iz.d.mts.map +1 -0
- package/dist/package-N9PPdFV_.d.mts +3 -0
- package/dist/progress-adapter-CjAeTxY_-BXYSd1eY.mjs +43 -0
- package/dist/progress-adapter-CjAeTxY_-BXYSd1eY.mjs.map +1 -0
- package/dist/project-import-root-CpwLCDLY-DkVwAnWj.mjs +99 -0
- package/dist/project-import-root-CpwLCDLY-DkVwAnWj.mjs.map +1 -0
- package/dist/publish-surface.d.mts +3 -0
- package/dist/publish-surface.mjs +3 -0
- package/dist/publish-surface__import-roots.d.mts +2 -0
- package/dist/publish-surface__import-roots.mjs +2 -0
- package/dist/publish-surface__shells.d.mts +2 -0
- package/dist/publish-surface__shells.mjs +2 -0
- package/dist/quick-reference-mongo.md +114 -0
- package/dist/quick-reference-postgres.md +93 -0
- package/dist/readme-mongo.md +35 -0
- package/dist/readme-postgres.md +34 -0
- package/dist/ref-B6cTthTi.mjs +171 -0
- package/dist/ref-B6cTthTi.mjs.map +1 -0
- package/dist/ref-advancement-CSPMoQs3-fEipZrdu.mjs +57 -0
- package/dist/ref-advancement-CSPMoQs3-fEipZrdu.mjs.map +1 -0
- package/dist/ref-resolution-BjJBWPjX.mjs +250 -0
- package/dist/ref-resolution-BjJBWPjX.mjs.map +1 -0
- package/dist/ref-resolution-COGOSL57.d.mts +127 -0
- package/dist/ref-resolution-COGOSL57.d.mts.map +1 -0
- package/dist/refs-BDbB9BRB-D6Za3Q49.mjs +241 -0
- package/dist/refs-BDbB9BRB-D6Za3Q49.mjs.map +1 -0
- package/dist/refs-BNCUu58Y-BIso5Jfg.d.mts +43 -0
- package/dist/refs-BNCUu58Y-BIso5Jfg.d.mts.map +1 -0
- package/dist/schemas-CeGMYFYX-h3OcU__O.d.mts +192 -0
- package/dist/schemas-CeGMYFYX-h3OcU__O.d.mts.map +1 -0
- package/dist/schemas-KhXMzNA_-CzZ7GFX_.mjs +112 -0
- package/dist/schemas-KhXMzNA_-CzZ7GFX_.mjs.map +1 -0
- package/dist/shells-BenrJHp2.mjs +602 -0
- package/dist/shells-BenrJHp2.mjs.map +1 -0
- package/dist/shells-COHV_Ozf.d.mts +135 -0
- package/dist/shells-COHV_Ozf.d.mts.map +1 -0
- package/dist/spaces-C27bA-xc.mjs +267 -0
- package/dist/spaces-C27bA-xc.mjs.map +1 -0
- package/dist/spaces-DxFj5y8l.d.mts +415 -0
- package/dist/spaces-DxFj5y8l.d.mts.map +1 -0
- package/dist/telemetry-CmbCa3Ld-CmE5zcIG.mjs +120 -0
- package/dist/telemetry-CmbCa3Ld-CmE5zcIG.mjs.map +1 -0
- package/dist/terminal-ui-BN4QOsm5-Bf3pim46.d.mts +133 -0
- package/dist/terminal-ui-BN4QOsm5-Bf3pim46.d.mts.map +1 -0
- package/dist/type-expression-safety-CgHTWypx.mjs +8 -0
- package/dist/type-expression-safety-CgHTWypx.mjs.map +1 -0
- package/dist/types-DZWEs4si-D8UlyJI0.d.mts +893 -0
- package/dist/types-DZWEs4si-D8UlyJI0.d.mts.map +1 -0
- package/dist/verify-DnVNjc5C-BGdsblBK.mjs +283 -0
- package/dist/verify-DnVNjc5C-BGdsblBK.mjs.map +1 -0
- package/dist/verify-contract-spaces-BZDcJsuA-De8v4Z4T.mjs +252 -0
- package/dist/verify-contract-spaces-BZDcJsuA-De8v4Z4T.mjs.map +1 -0
- package/dist/verify-contract-spaces-Cc1u_wJo-BilPJS2S.d.mts +136 -0
- package/dist/verify-contract-spaces-Cc1u_wJo-BilPJS2S.d.mts.map +1 -0
- package/dist/vite-plugin-contract-emit.d.mts +54 -0
- package/dist/vite-plugin-contract-emit.d.mts.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +303 -0
- package/dist/vite-plugin-contract-emit.mjs.map +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-helpers-CAoXqAY9-DWUBcTXM.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/command-helpers-CAoXqAY9.mjs"],"sourcesContent":["import { CliStructuredError as CliStructuredError$1, errorConfigValidation, errorContractConfigMissing as errorContractConfigMissing$1, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorFileNotFound, errorInvalidOutputFormat, errorMigrationPlanningFailed, errorOutputFormatMutex, errorTargetMigrationNotSupported, errorUnexpected } from \"@internal/errors/control\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { notOk } from \"@internal/utils/result\";\nimport { relative, resolve } from \"pathe\";\nimport { readFile } from \"node:fs/promises\";\nimport { hasMigrations } from \"@internal/framework-components/control\";\nimport { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorRunnerFailed, errorRuntime, errorRuntime as errorRuntime$1, errorTargetMismatch } from \"@internal/errors/execution\";\nimport \"@internal/errors/migration\";\nimport { APP_SPACE_ID as APP_SPACE_ID$1, spaceMigrationDirectory } from \"@internal/migration-tools/spaces\";\nimport { blue, bold, cyan, dim, green, magenta, red, yellow } from \"colorette\";\nimport wrapAnsi from \"wrap-ansi\";\nimport stringWidth from \"string-width\";\nimport stripAnsi from \"strip-ansi\";\nimport { isCI } from \"ci-info\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport * as clack from \"@clack/prompts\";\n//#region src/utils/cli-errors.ts\nfunction errorRefSetHashNotInGraph(resolvedHash, reachableHashes, graphTipHash) {\n\tconst reachableList = reachableHashes.length > 0 ? reachableHashes.join(\", \") : \"(none — migration graph is empty)\";\n\tconst fix = reachableHashes.length > 0 ? graphTipHash !== null ? `Set the ref to a graph-node hash such as ${graphTipHash}, or run \\`prisma-next migration plan\\` to extend the graph.` : \"Set the ref to a hash that appears in the migration graph.\" : \"Run `prisma-next migration plan` first.\";\n\treturn errorRuntime(`Resolved contract hash is not in the migration graph: ${resolvedHash}`, {\n\t\twhy: reachableHashes.length > 0 ? `The migration graph reaches ${reachableList}; resolved ${resolvedHash} isn't a graph node.` : \"The migration graph is empty — no hashes reachable.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.HASH_NOT_IN_GRAPH\",\n\t\t\tresolvedHash,\n\t\t\treachableHashes: [...reachableHashes],\n\t\t\t...graphTipHash !== null ? { graphTipHash } : {}\n\t\t}\n\t});\n}\nfunction errorRefSetEmptySentinel(hash) {\n\treturn errorRuntime(`Cannot set ref to the empty-database sentinel: ${hash}`, {\n\t\twhy: \"The empty-database sentinel is a planner internal; it is not a valid ref target.\",\n\t\tfix: \"Set the ref to a contract hash from the migration graph, or use another ref name.\",\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.REF_SET_EMPTY_SENTINEL\",\n\t\t\thash\n\t\t}\n\t});\n}\n/**\n* `--legend` was combined with a machine-readable or silent output flag.\n* The legend is human-only decoration on stderr.\n*/\nfunction errorLegendHumanOnly(conflictingFlag) {\n\treturn errorRuntime(\"`--legend` is only available for human-readable output\", {\n\t\twhy: `\\`--legend\\` prints a glyph key to stderr and cannot be combined with ${conflictingFlag}.`,\n\t\tfix: `Omit ${conflictingFlag} to print the legend alongside the tree, or omit --legend when using ${conflictingFlag}.`,\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.LEGEND_HUMAN_ONLY\",\n\t\t\tconflictingFlag\n\t\t}\n\t});\n}\n/**\n* `--space <id>` was given a value that doesn't satisfy the contract-space\n* naming rule (`[a-z][a-z0-9_-]{0,63}` per `isValidSpaceId`). Fires before\n* any fs work — the input is syntactically rejected the same way an on-disk\n* directory with that name would be skipped by the enumerator.\n*/\nfunction errorInvalidSpaceId(spaceId) {\n\treturn errorRuntime(`Invalid contract space id: ${spaceId}`, {\n\t\twhy: \"Contract space ids must match [a-z][a-z0-9_-]{0,63} (lowercase, starts with a letter, max 64 characters — the rule applied to every on-disk space directory).\",\n\t\tfix: \"Pass a space id that matches the directory naming rule, or omit --space to list every space.\",\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.INVALID_SPACE_ID\",\n\t\t\tspaceId\n\t\t}\n\t});\n}\n/**\n* `migration list --space <id>` was given a contract-space id that has no\n* directory under `migrations/`. Distinct from \"the space exists but is\n* empty\" — that path renders the empty-state line and exits 0 per the\n* slice spec § Empty-state. This error fires only when `<projectMigrationsDir>/<spaceId>`\n* does not exist on disk.\n*\n* `availableSpaces` lists the contract-space directory names actually\n* present, sorted lex-asc, so the diagnostic can suggest a near match\n* without making the user reach for `ls`.\n*/\nfunction errorSpaceNotFound(spaceId, availableSpaces) {\n\tconst availableList = availableSpaces.length > 0 ? availableSpaces.join(\", \") : \"(none — no contract spaces on disk yet)\";\n\tconst fix = availableSpaces.length > 0 ? `Pick one of: ${availableList}. Run \\`prisma-next migration list\\` (no --space) to see every space's migrations.` : \"Author a migration with `prisma-next migration new` to create the first contract-space directory.\";\n\treturn errorRuntime(`Unknown contract space: ${spaceId}`, {\n\t\twhy: `No directory named \"${spaceId}\" exists under the migrations root.`,\n\t\tfix,\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.SPACE_NOT_FOUND\",\n\t\t\tspaceId,\n\t\t\tavailableSpaces: [...availableSpaces]\n\t\t}\n\t});\n}\nfunction errorRefSetBundleNotFound(hash) {\n\treturn errorRuntime(`No migration bundle matches graph-node hash ${hash}`, {\n\t\twhy: `The hash is a graph node but no on-disk bundle has metadata.to = ${hash}.`,\n\t\tfix: \"Run `pnpm fixtures:check`, or re-emit the migration that produces this hash so its bundle is restored.\",\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.REF_SET_BUNDLE_NOT_FOUND\",\n\t\t\thash\n\t\t}\n\t});\n}\nfunction errorPlanForgotTheFlag(resolvedHash, reachableRefs, graphTipHash) {\n\tconst reachableList = reachableRefs.length > 0 ? reachableRefs.map((r) => `${r.name} (${r.hash})`).join(\", \") : \"(none)\";\n\tconst refFix = reachableRefs.length > 0 ? `Run migration plan with ${reachableRefs.map((r) => `--from ${r.name}`).join(\" or \")}.` : graphTipHash !== null ? `Run migration plan --from ${graphTipHash}.` : \"Commit pending migrations first, then run migration plan.\";\n\treturn errorRuntime(`Resolved from-hash is not in the migration graph: ${resolvedHash}`, {\n\t\twhy: `The migration graph reaches ${reachableList}; resolved ${resolvedHash} isn't a graph node.`,\n\t\tfix: refFix,\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.HASH_NOT_IN_GRAPH\",\n\t\t\tresolvedHash,\n\t\t\treachableRefs: reachableRefs.map((r) => r.name),\n\t\t\t...graphTipHash !== null ? { graphTipHash } : {}\n\t\t}\n\t});\n}\n/**\n* `viaRef: true` (the default) mirrors migration-tools' `errorRefNotResolvable`:\n* a ref name with no pointer file, where the fallback hash isn't a graph\n* node either — there's nothing to materialize a contract from.\n* `viaRef: false` is a distinct, ref-independent case: an explicit `--from\n* <hash>` that doesn't name a ref, on an empty migration graph, so there is\n* no graph node and no ref to resolve a contract through.\n*/\nfunction errorSnapshotMissing(identifier, options) {\n\tconst viaRef = options?.viaRef !== false;\n\tconst fix = viaRef ? `Create the ref with \"prisma-next ref set ${identifier} <hash>\" (or advance it via \"prisma-next db update --advance-ref ${identifier}\"), or pass a hash that is a node in the migration graph.` : `No contract source exists for hash \"${identifier}\" on an empty migration graph. Use --from with a ref name (its contract resolves through the snapshot store), or run db update first.`;\n\treturn errorRuntime(viaRef ? `Ref \"${identifier}\" is not resolvable` : `No contract source for from-hash \"${identifier}\"`, {\n\t\twhy: viaRef ? `Ref \"${identifier}\" has no pointer file, and the hash being resolved is not a node in the migration graph either.` : `Hash \"${identifier}\" is not a node in the migration graph (the graph is empty), and it does not name a ref either.`,\n\t\tfix,\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.SNAPSHOT_MISSING\",\n\t\t\tidentifier,\n\t\t\tviaRef\n\t\t}\n\t});\n}\nfunction errorMarkerMismatch(markerHash, reachableHashes, graphTip) {\n\tconst reachableList = reachableHashes.length > 0 ? reachableHashes.join(\", \") : \"(none — migration graph is empty)\";\n\tconst planFromFix = graphTip !== null ? `Run \\`prisma-next migration plan --from ${graphTip}\\` if the live marker is canonical and the on-disk graph needs catching up.` : \"Run `prisma-next migration plan` if the live marker is canonical and the on-disk graph needs catching up.\";\n\treturn errorRuntime(\"Database marker is not reachable in the on-disk migration graph\", {\n\t\twhy: `DB marker is ${markerHash}, but the on-disk migration graph reaches: ${reachableList}.`,\n\t\tfix: [\n\t\t\tplanFromFix,\n\t\t\t`Run \\`prisma-next ref set db ${markerHash}\\` if the on-disk graph is canonical and the local \\`db\\` ref drifted.`,\n\t\t\t\"Investigate whether the database was migrated by an out-of-band process.\"\n\t\t].join(\"\\n\"),\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.MARKER_MISMATCH\",\n\t\t\tmarkerHash,\n\t\t\treachableHashes: [...reachableHashes],\n\t\t\t...graphTip !== null ? { graphTip } : {}\n\t\t}\n\t});\n}\nfunction errorPathUnreachable(failure) {\n\tconst meta = failure.meta ?? {};\n\tconst fromHashMeta = typeof meta[\"fromHash\"] === \"string\" ? meta[\"fromHash\"] : null;\n\tconst planFromHash = fromHashMeta === \"<empty>\" ? null : fromHashMeta;\n\tconst targetHash = typeof meta[\"targetHash\"] === \"string\" ? meta[\"targetHash\"] : typeof meta[\"target\"] === \"string\" ? meta[\"target\"] : null;\n\tconst deadEnds = meta[\"deadEnds\"];\n\tconst deadEndsSuffix = Array.isArray(deadEnds) && deadEnds.length > 0 ? ` Dead-ends: ${deadEnds.map(String).join(\", \")}.` : \"\";\n\tconst neverPlanned = meta[\"kind\"] === \"neverPlanned\";\n\tconst planCommand = (() => {\n\t\tif (neverPlanned) return \"prisma-next migration plan --name <slug>\";\n\t\tif (planFromHash !== null && targetHash !== null) return `prisma-next migration plan --from ${planFromHash} --to ${targetHash} --name <slug>`;\n\t\tif (targetHash !== null) return `prisma-next migration plan --to ${targetHash} --name <slug>`;\n\t\tif (planFromHash !== null) return `prisma-next migration plan --from ${planFromHash} --name <slug>`;\n\t\treturn \"prisma-next migration plan\";\n\t})();\n\tconst applyCommand = targetHash !== null && !neverPlanned ? `prisma-next migrate --to ${targetHash}` : \"prisma-next migrate\";\n\treturn errorRuntime(failure.summary, {\n\t\twhy: failure.why ?? `Cannot reach target \"${targetHash ?? \"<unknown>\"}\" from current marker \"${fromHashMeta ?? \"<unknown>\"}\".${deadEndsSuffix}`,\n\t\tfix: [\n\t\t\t\"Plan the missing edge, then apply it:\",\n\t\t\t` 1. ${planCommand}`,\n\t\t\t` 2. ${applyCommand}`,\n\t\t\t\"A rollback (reverse) plan is expected to contain destructive (DROP) operations — review them before applying.\",\n\t\t\t\"Narrower cases (rename inference, re-adding a NOT NULL column without a safe default, or a type change that needs data) may additionally need a hint in the planned migration.\",\n\t\t\t\"Inspect the on-disk graph with `prisma-next migration list`, or `prisma-next migration show <bundle>` for any bundle in the path you expected.\"\n\t\t].join(\"\\n\"),\n\t\tmeta: {\n\t\t\t...meta,\n\t\t\tcode: \"MIGRATION.PATH_UNREACHABLE\"\n\t\t}\n\t});\n}\n/**\n* Maps a `MigrationToolsError` raised by the migration-tools loader/graph\n* surface (`readMigrationPackage`, `readMigrationsDir`, `readRefs`,\n* `resolveRef`, `reconstructGraph`, ...) into a CLI `errorRuntime` envelope.\n*\n* The full `error.details` payload is forwarded into `meta` so machine\n* consumers (`--json`) see structural fields like `dir`, `storedHash`,\n* `computedHash` (for `MIGRATION.HASH_MISMATCH`) alongside the stable\n* `code`. The user-visible `summary`/`why`/`fix` text is unchanged.\n*\n* Callers are expected to gate on `MigrationToolsError.is(error)` first\n* (mirroring the original inline pattern); non-`MigrationToolsError`\n* values are caller-classified (rethrow, wrap with command-specific\n* `errorUnexpected`, etc.).\n*/\nfunction mapMigrationToolsError(error) {\n\treturn errorRuntime(error.message, {\n\t\twhy: error.why,\n\t\tfix: error.fix,\n\t\tmeta: {\n\t\t\tcode: error.code,\n\t\t\t...error.details ?? {}\n\t\t}\n\t});\n}\n/**\n* Shared \"needs a live database\" precondition for read verbs that consult the\n* marker/ledger (`migration log`, `migration status`). A command needs both a\n* connection string and a control-plane driver; either missing yields the same\n* `CONFIG.DB_CONNECTION_REQUIRED` envelope with `meta.missingFlags` (canonical long-form flags\n* per CLI Style Guide §Errors) so callers can react programmatically. Returns\n* `null` when both are present.\n*/\nfunction requireLiveDatabase(args) {\n\tif (args.dbConnection && args.hasDriver) return null;\n\tconst missingFlags = args.dbConnection ? [] : [\"--db\"];\n\treturn errorDatabaseConnectionRequired({\n\t\twhy: args.why,\n\t\tmissingFlags,\n\t\t...ifDefined(\"commandName\", args.commandName),\n\t\t...ifDefined(\"retryCommand\", args.retryCommand)\n\t});\n}\n/**\n* Maps a `RefResolutionError` from the contract/migration reference\n* resolver into a CLI structured error envelope.\n*/\n/**\n* A migration ref (dirName or hash-prefix) resolves in more than one contract\n* space. The user must qualify with `--space <id>` to disambiguate.\n*/\nfunction errorAmbiguousMigrationRef(ref, spaceIds) {\n\tconst spaceList = spaceIds.join(\", \");\n\treturn errorRuntime(`Ambiguous migration reference: \"${ref}\" resolves in multiple spaces — qualify with --space <id>`, {\n\t\twhy: `\"${ref}\" matches migrations in spaces: ${spaceList}.`,\n\t\tfix: `Qualify with --space <id> to select one space. Available matching spaces: ${spaceList}.`,\n\t\tmeta: {\n\t\t\tcode: \"MIGRATION.AMBIGUOUS_MIGRATION_REF\",\n\t\t\tref,\n\t\t\tspaceIds: [...spaceIds]\n\t\t}\n\t});\n}\nfunction mapRefResolutionError(error) {\n\tswitch (error.kind) {\n\t\tcase \"not-found\": return errorRuntime(`Not a known ${error.grammar} reference: \"${error.input}\"`, {\n\t\t\twhy: `No ${error.grammar} matching \"${error.input}\" exists in the migration graph or refs index.`,\n\t\t\tfix: error.grammar === \"contract\" ? \"Provide a valid contract hash, ref name, or migration directory name.\" : \"Provide a valid migration directory name or migration hash.\",\n\t\t\tmeta: {\n\t\t\t\tinput: error.input,\n\t\t\t\tgrammar: error.grammar\n\t\t\t}\n\t\t});\n\t\tcase \"ambiguous\": return errorRuntime(`Ambiguous ${error.grammar} reference: \"${error.input}\"`, {\n\t\t\twhy: `\"${error.input}\" matches multiple ${error.grammar}s: ${error.candidates.join(\", \")}`,\n\t\t\tfix: \"Provide a longer prefix or use the full hash to disambiguate.\",\n\t\t\tmeta: {\n\t\t\t\tinput: error.input,\n\t\t\t\tcandidates: error.candidates,\n\t\t\t\tgrammar: error.grammar\n\t\t\t}\n\t\t});\n\t\tcase \"wrong-grammar\": return errorRuntime(error.message, {\n\t\t\twhy: error.message,\n\t\t\tfix: error.fix,\n\t\t\tmeta: {\n\t\t\t\tinput: error.input,\n\t\t\t\texpectedGrammar: error.expectedGrammar\n\t\t\t}\n\t\t});\n\t\tcase \"invalid-format\": return errorRuntime(`Invalid reference format: \"${error.input}\"`, {\n\t\t\twhy: error.reason,\n\t\t\tfix: \"Provide a valid contract hash, ref name, or migration directory name.\",\n\t\t\tmeta: { input: error.input }\n\t\t});\n\t}\n}\n//#endregion\n//#region src/utils/formatters/helpers.ts\n/**\n* Checks if verbose output is enabled at the specified level.\n*/\nfunction isVerbose(flags, level) {\n\treturn (flags.verbose ?? 0) >= level;\n}\n/**\n* Creates a color-aware formatter function.\n* Returns a function that applies the color only if colors are enabled.\n*/\nfunction createColorFormatter(useColor, colorFn) {\n\treturn useColor ? colorFn : (text) => text;\n}\n/**\n* Formats text with dim styling if colors are enabled.\n*/\nfunction formatDim(useColor, text) {\n\treturn useColor ? dim(text) : text;\n}\n//#endregion\n//#region src/utils/formatters/styled.ts\n/**\n* Fixed width for left column in help output.\n*/\nconst LEFT_COLUMN_WIDTH$1 = 20;\n/**\n* Creates an arrow segment badge with green background and white text.\n* Body: green background with white \"prisma-next\" text\n* Tip: dark grey arrow pointing right (Powerline separator)\n*/\nfunction createPrismaNextBadge$1(useColor) {\n\tif (!useColor) return \"prisma-next\";\n\treturn bold(\"prisma-next\");\n}\n/**\n* Creates a padding function.\n*/\nfunction createPadFunction() {\n\treturn (s, w) => s + \" \".repeat(Math.max(0, w - s.length));\n}\n/**\n* Formats a header line: brand + operation + intent\n*/\nfunction formatHeaderLine$1(options) {\n\tif (options.operation) return `${options.brand} ${options.operation} → ${options.intent}`;\n\treturn `${options.brand} ${options.intent}`;\n}\n/**\n* Formats a \"Read more\" URL line.\n* The \"Read more\" label is in default color (not cyan), and the URL is blue.\n*/\nfunction formatReadMoreLine$1(options) {\n\tconst labelPadded = createPadFunction()(\"Read more\", options.maxLabelWidth);\n\tconst valueColored = options.useColor ? blue(options.url) : options.url;\n\treturn `${options.formatDimText(\"│\")} ${labelPadded} ${valueColored}`;\n}\n/**\n* Pads text to a fixed width, accounting for ANSI escape codes.\n* Uses string-width to measure the actual display width.\n*/\nfunction padToFixedWidth(text, width) {\n\tconst actualWidth = stringWidth(text);\n\tconst padding = Math.max(0, width - actualWidth);\n\treturn text + \" \".repeat(padding);\n}\n/**\n* Renders a command tree structure.\n* Handles both single-level (subcommands of a command) and multi-level (top-level commands with subcommands) trees.\n*/\nfunction renderCommandTree(options) {\n\tconst { commands, useColor, formatDimText, hasItemsAfter, continuationPrefix } = options;\n\tconst lines = [];\n\tif (commands.length === 0) return lines;\n\tfor (let i = 0; i < commands.length; i++) {\n\t\tconst cmd = commands[i];\n\t\tif (!cmd) continue;\n\t\tconst subcommands = cmd.commands.filter((subcmd) => !subcmd.name().startsWith(\"_\"));\n\t\tconst isLastCommand = i === commands.length - 1;\n\t\tif (subcommands.length > 0) {\n\t\t\tconst treePrefix = `${isLastCommand && !hasItemsAfter ? formatDimText(\"└\") : formatDimText(\"├\")}─ `;\n\t\t\tconst treePrefixWidth = stringWidth(stripAnsi(treePrefix));\n\t\t\tconst remainingWidth = LEFT_COLUMN_WIDTH$1 - treePrefixWidth;\n\t\t\tconst commandNamePadded = padToFixedWidth(cmd.name(), remainingWidth);\n\t\t\tconst commandNameColored = useColor ? cyan(commandNamePadded) : commandNamePadded;\n\t\t\tlines.push(`${formatDimText(\"│\")} ${treePrefix}${commandNameColored}`);\n\t\t\tfor (let j = 0; j < subcommands.length; j++) {\n\t\t\t\tconst subcmd = subcommands[j];\n\t\t\t\tif (!subcmd) continue;\n\t\t\t\tconst isLastSubcommand = j === subcommands.length - 1;\n\t\t\t\tconst shortDescription = subcmd.description() || \"\";\n\t\t\t\tconst treeChar = isLastSubcommand ? \"└\" : \"├\";\n\t\t\t\tconst continuation = continuationPrefix ?? (isLastCommand && isLastSubcommand && !hasItemsAfter ? \" \" : formatDimText(\"│\"));\n\t\t\t\tconst subTreePrefix = `${continuation === \" \" ? \" \" : continuation} ${formatDimText(treeChar)}─ `;\n\t\t\t\tconst subTreePrefixWidth = stringWidth(stripAnsi(subTreePrefix));\n\t\t\t\tconst subRemainingWidth = LEFT_COLUMN_WIDTH$1 - subTreePrefixWidth;\n\t\t\t\tconst subcommandNamePadded = padToFixedWidth(subcmd.name(), subRemainingWidth);\n\t\t\t\tconst subcommandNameColored = useColor ? cyan(subcommandNamePadded) : subcommandNamePadded;\n\t\t\t\tlines.push(`${formatDimText(\"│\")} ${subTreePrefix}${subcommandNameColored} ${shortDescription}`);\n\t\t\t}\n\t\t} else {\n\t\t\tconst treePrefix = `${isLastCommand && !hasItemsAfter ? formatDimText(\"└\") : formatDimText(\"├\")}─ `;\n\t\t\tconst treePrefixWidth = stringWidth(stripAnsi(treePrefix));\n\t\t\tconst remainingWidth = LEFT_COLUMN_WIDTH$1 - treePrefixWidth;\n\t\t\tconst commandNamePadded = padToFixedWidth(cmd.name(), remainingWidth);\n\t\t\tconst commandNameColored = useColor ? cyan(commandNamePadded) : commandNamePadded;\n\t\t\tconst shortDescription = cmd.description() || \"\";\n\t\t\tlines.push(`${formatDimText(\"│\")} ${treePrefix}${commandNameColored} ${shortDescription}`);\n\t\t}\n\t}\n\treturn lines;\n}\n/**\n* Formats the header in the new experimental visual style.\n* This header appears at the start of command output, showing the operation,\n* intent, documentation link, and parameters.\n*/\nfunction formatStyledHeader(options) {\n\tconst lines = [];\n\tconst useColor = options.flags.color !== false;\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst brand = createPrismaNextBadge$1(useColor);\n\tconst operation = useColor ? bold(options.command) : options.command;\n\tconst intent = formatDimText(options.description);\n\tlines.push(formatHeaderLine$1({\n\t\tbrand,\n\t\toperation,\n\t\tintent\n\t}));\n\tlines.push(formatDimText(\"│\"));\n\tfor (const detail of options.details) {\n\t\tconst labelPadded = padToFixedWidth(`${detail.label}:`, LEFT_COLUMN_WIDTH$1);\n\t\tconst labelColored = useColor ? cyan(labelPadded) : labelPadded;\n\t\tlines.push(`${formatDimText(\"│\")} ${labelColored} ${detail.value}`);\n\t}\n\tif (options.url) {\n\t\tlines.push(formatDimText(\"│\"));\n\t\tlines.push(formatReadMoreLine$1({\n\t\t\turl: options.url,\n\t\t\tmaxLabelWidth: LEFT_COLUMN_WIDTH$1,\n\t\t\tuseColor,\n\t\t\tformatDimText\n\t\t}));\n\t}\n\tlines.push(formatDimText(\"└\"));\n\treturn `${lines.join(\"\\n\")}\\n`;\n}\n/**\n* Formats a success message in the styled output format.\n*/\nfunction formatSuccessMessage(flags) {\n\treturn `${createColorFormatter(flags.color !== false, green)(\"✔\")} Success`;\n}\n//#endregion\n//#region src/utils/formatters/help.ts\n/**\n* Fixed width for left column in help output.\n* Must match the value in styled.ts.\n*/\nconst LEFT_COLUMN_WIDTH = 20;\n/**\n* Minimum width for right column wrapping in help output.\n*/\nconst RIGHT_COLUMN_MIN_WIDTH = 40;\n/**\n* Maximum width for right column wrapping in help output (when terminal is wide enough).\n*/\nconst RIGHT_COLUMN_MAX_WIDTH = 90;\n/**\n* Gets the terminal width, or returns a default if not available.\n*/\nfunction getTerminalWidth() {\n\tconst terminalWidth = process.stderr.columns || process.stdout.columns;\n\tconst envWidth = Number.parseInt(process.env[\"CLI_WIDTH\"] || \"\", 10);\n\treturn terminalWidth || (Number.isFinite(envWidth) ? envWidth : 80);\n}\n/**\n* Calculates the available width for the right column based on terminal width.\n*/\nfunction calculateRightColumnWidth() {\n\tconst availableWidth = getTerminalWidth() - 2 - LEFT_COLUMN_WIDTH - 2;\n\treturn Math.max(RIGHT_COLUMN_MIN_WIDTH, Math.min(availableWidth, RIGHT_COLUMN_MAX_WIDTH));\n}\n/**\n* Creates the CLI brand badge.\n*/\nfunction createPrismaNextBadge(useColor) {\n\treturn useColor ? bold(\"prisma-next\") : \"prisma-next\";\n}\n/**\n* Formats a header line: brand + operation + intent\n*/\nfunction formatHeaderLine(options) {\n\tif (options.operation) return `${options.brand} ${options.operation} → ${options.intent}`;\n\treturn `${options.brand} ${options.intent}`;\n}\n/**\n* Wraps text to fit within a specified width using wrap-ansi.\n*/\nfunction wrapTextAnsi(text, width) {\n\treturn wrapAnsi(text, width, {\n\t\thard: false,\n\t\ttrim: true\n\t}).split(\"\\n\");\n}\n/**\n* Formats a default value as \"default: <value>\" with dimming.\n*/\nfunction formatDefaultValue(value, useColor) {\n\tconst defaultText = `default: ${String(value)}`;\n\treturn useColor ? dim(defaultText) : defaultText;\n}\n/**\n* Formats a \"Read more\" URL line.\n*/\nfunction formatReadMoreLine(options) {\n\tconst labelPadded = `Read more${\" \".repeat(Math.max(0, options.maxLabelWidth - 9))}`;\n\tconst valueColored = options.useColor ? blue(options.url) : options.url;\n\treturn `${options.formatDimText(\"│\")} ${labelPadded} ${valueColored}`;\n}\n/**\n* Formats multiline description with \"Prisma Next\" in green.\n*/\nfunction formatMultilineDescription(options) {\n\tconst lines = [];\n\tconst formatGreen = (text) => options.useColor ? green(text) : text;\n\tconst wrapWidth = 24 + calculateRightColumnWidth() - 2;\n\tfor (const descLine of options.descriptionLines) {\n\t\tconst wrappedLines = wrapTextAnsi(descLine.replace(/Prisma Next/g, (match) => formatGreen(match)), wrapWidth);\n\t\tfor (const wrappedLine of wrappedLines) lines.push(`${options.formatDimText(\"│\")} ${wrappedLine}`);\n\t}\n\treturn lines;\n}\n/**\n* Maps command paths to their documentation URLs.\n*/\nfunction getCommandDocsUrl(commandPath) {\n\treturn {\n\t\t\"contract emit\": \"https://pris.ly/contract-emit\",\n\t\t\"contract infer\": \"https://pris.ly/contract-infer\",\n\t\t\"db schema\": \"https://pris.ly/db-schema\",\n\t\t\"db verify\": \"https://pris.ly/db-verify\",\n\t\t\"db update\": \"https://pris.ly/db-update\",\n\t\t\"migration plan\": \"https://pris.ly/migration-plan\",\n\t\tmigrate: \"https://pris.ly/migrate\",\n\t\t\"migration show\": \"https://pris.ly/migration-show\",\n\t\t\"migration status\": \"https://pris.ly/migration-status\"\n\t}[commandPath];\n}\n/**\n* Builds the full command path from a command and its parents.\n*/\nfunction buildCommandPath(command) {\n\tconst parts = [];\n\tlet current = command;\n\twhile (current && current.name() !== \"prisma-next\") {\n\t\tparts.unshift(current.name());\n\t\tcurrent = current.parent ?? void 0;\n\t}\n\treturn parts.join(\" \");\n}\n/**\n* Formats help output for a command using the styled format.\n*/\nfunction formatCommandHelp(options) {\n\tconst { command, flags } = options;\n\tconst lines = [];\n\tconst useColor = flags.color !== false;\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst commandPath = buildCommandPath(command);\n\tconst shortDescription = command.description() || \"\";\n\tconst longDescription = getLongDescription(command);\n\tconst argsSuffix = command.registeredArguments.map((arg) => arg.required ? `<${arg.name()}>` : `[${arg.name()}]`).join(\" \");\n\tconst brand = createPrismaNextBadge(useColor);\n\tconst commandWithArgs = argsSuffix ? `${commandPath} ${argsSuffix}` : commandPath;\n\tconst operation = useColor ? bold(commandWithArgs) : commandWithArgs;\n\tconst intent = formatDimText(shortDescription);\n\tlines.push(formatHeaderLine({\n\t\tbrand,\n\t\toperation,\n\t\tintent\n\t}));\n\tlines.push(formatDimText(\"│\"));\n\tconst optionsList = command.options.map((opt) => {\n\t\tconst description = opt.description || \"\";\n\t\tconst defaultValue = opt.defaultValue;\n\t\treturn {\n\t\t\tflags: opt.flags,\n\t\t\tdescription,\n\t\t\tdefaultValue\n\t\t};\n\t});\n\tconst subcommands = command.commands.filter((cmd) => !cmd.name().startsWith(\"_\"));\n\tif (subcommands.length > 0) {\n\t\tconst treeLines = renderCommandTree({\n\t\t\tcommands: subcommands,\n\t\t\tuseColor,\n\t\t\tformatDimText,\n\t\t\thasItemsAfter: optionsList.length > 0\n\t\t});\n\t\tlines.push(...treeLines);\n\t}\n\tif (subcommands.length > 0 && optionsList.length > 0) lines.push(formatDimText(\"│\"));\n\tif (optionsList.length > 0) for (const opt of optionsList) {\n\t\tconst flagsPadded = padToFixedWidth(opt.flags, LEFT_COLUMN_WIDTH);\n\t\tlet flagsColored = flagsPadded;\n\t\tif (useColor) {\n\t\t\tflagsColored = flagsPadded.replace(/(<[^>]+>)/g, (match) => magenta(match));\n\t\t\tflagsColored = cyan(flagsColored);\n\t\t}\n\t\tconst rightColumnWidth = calculateRightColumnWidth();\n\t\tconst wrappedDescription = wrapTextAnsi(opt.description, rightColumnWidth);\n\t\tlines.push(`${formatDimText(\"│\")} ${flagsColored} ${wrappedDescription[0] || \"\"}`);\n\t\tfor (let i = 1; i < wrappedDescription.length; i++) {\n\t\t\tconst emptyLabel = \" \".repeat(LEFT_COLUMN_WIDTH);\n\t\t\tlines.push(`${formatDimText(\"│\")} ${emptyLabel} ${wrappedDescription[i] || \"\"}`);\n\t\t}\n\t\tif (opt.defaultValue !== void 0) {\n\t\t\tconst emptyLabel = \" \".repeat(LEFT_COLUMN_WIDTH);\n\t\t\tconst defaultText = formatDefaultValue(opt.defaultValue, useColor);\n\t\t\tlines.push(`${formatDimText(\"│\")} ${emptyLabel} ${defaultText}`);\n\t\t}\n\t}\n\tconst docsUrl = getCommandDocsUrl(commandPath);\n\tif (docsUrl) {\n\t\tlines.push(formatDimText(\"│\"));\n\t\tlines.push(formatReadMoreLine({\n\t\t\turl: docsUrl,\n\t\t\tmaxLabelWidth: LEFT_COLUMN_WIDTH,\n\t\t\tuseColor,\n\t\t\tformatDimText\n\t\t}));\n\t}\n\tconst examples = getCommandExamples(command);\n\tif (examples && examples.length > 0) {\n\t\tlines.push(formatDimText(\"│\"));\n\t\tlines.push(`${formatDimText(\"│\")} ${formatDimText(\"Examples:\")}`);\n\t\tfor (const example of examples) lines.push(`${formatDimText(\"│\")} ${useColor ? dim(\"$\") : \"$\"} ${example}`);\n\t}\n\tconst seeAlso = getCommandSeeAlso(command);\n\tif (seeAlso && seeAlso.length > 0) {\n\t\tlines.push(formatDimText(\"│\"));\n\t\tlines.push(`${formatDimText(\"│\")} ${formatDimText(\"See also:\")}`);\n\t\tfor (const ref of seeAlso) lines.push(`${formatDimText(\"│\")} ${ref.verb} ${formatDimText(ref.oneLiner)}`);\n\t}\n\tif (longDescription) {\n\t\tlines.push(formatDimText(\"│\"));\n\t\tconst descriptionLines = longDescription.split(\"\\n\").filter((line) => line.trim().length > 0);\n\t\tlines.push(...formatMultilineDescription({\n\t\t\tdescriptionLines,\n\t\t\tuseColor,\n\t\t\tformatDimText\n\t\t}));\n\t}\n\tlines.push(formatDimText(\"└\"));\n\treturn `${lines.join(\"\\n\")}\\n`;\n}\n/**\n* Formats help output for the root program using the styled format.\n*/\nfunction formatRootHelp(options) {\n\tconst { program, flags } = options;\n\tconst lines = [];\n\tconst useColor = flags.color !== false;\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst brand = createPrismaNextBadge(useColor);\n\tconst intent = formatDimText(\"Manage your data layer\");\n\tlines.push(formatHeaderLine({\n\t\tbrand,\n\t\toperation: \"\",\n\t\tintent\n\t}));\n\tlines.push(formatDimText(\"│\"));\n\tconst topLevelCommands = program.commands.filter((cmd) => !cmd.name().startsWith(\"_\") && cmd.name() !== \"help\");\n\tconst globalOptions = program.options.map((opt) => {\n\t\tconst description = opt.description || \"\";\n\t\tconst defaultValue = opt.defaultValue;\n\t\treturn {\n\t\t\tflags: opt.flags,\n\t\t\tdescription,\n\t\t\tdefaultValue\n\t\t};\n\t});\n\tif (topLevelCommands.length > 0) {\n\t\tconst treeLines = renderCommandTree({\n\t\t\tcommands: topLevelCommands,\n\t\t\tuseColor,\n\t\t\tformatDimText,\n\t\t\thasItemsAfter: globalOptions.length > 0\n\t\t});\n\t\tlines.push(...treeLines);\n\t}\n\tif (topLevelCommands.length > 0 && globalOptions.length > 0) lines.push(formatDimText(\"│\"));\n\tif (globalOptions.length > 0) for (const opt of globalOptions) {\n\t\tconst flagsPadded = padToFixedWidth(opt.flags, LEFT_COLUMN_WIDTH);\n\t\tlet flagsColored = flagsPadded;\n\t\tif (useColor) {\n\t\t\tflagsColored = flagsPadded.replace(/(<[^>]+>)/g, (match) => magenta(match));\n\t\t\tflagsColored = cyan(flagsColored);\n\t\t}\n\t\tconst rightColumnWidth = calculateRightColumnWidth();\n\t\tconst wrappedDescription = wrapTextAnsi(opt.description, rightColumnWidth);\n\t\tlines.push(`${formatDimText(\"│\")} ${flagsColored} ${wrappedDescription[0] || \"\"}`);\n\t\tfor (let i = 1; i < wrappedDescription.length; i++) {\n\t\t\tconst emptyLabel = \" \".repeat(LEFT_COLUMN_WIDTH);\n\t\t\tlines.push(`${formatDimText(\"│\")} ${emptyLabel} ${wrappedDescription[i] || \"\"}`);\n\t\t}\n\t\tif (opt.defaultValue !== void 0) {\n\t\t\tconst emptyLabel = \" \".repeat(LEFT_COLUMN_WIDTH);\n\t\t\tconst defaultText = formatDefaultValue(opt.defaultValue, useColor);\n\t\t\tlines.push(`${formatDimText(\"│\")} ${emptyLabel} ${defaultText}`);\n\t\t}\n\t}\n\tconst formatGreen = (text) => useColor ? green(text) : text;\n\tconst 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.`];\n\tif (descriptionLines.length > 0) {\n\t\tlines.push(formatDimText(\"│\"));\n\t\tlines.push(...formatMultilineDescription({\n\t\t\tdescriptionLines,\n\t\t\tuseColor,\n\t\t\tformatDimText\n\t\t}));\n\t}\n\tlines.push(formatDimText(\"└\"));\n\treturn `${lines.join(\"\\n\")}\\n`;\n}\n//#endregion\n//#region src/utils/is-ci.ts\n/**\n* Returns true when the process is running in any CI environment recognised\n* by the `ci-info` package. The single source of truth for CI detection\n* across this CLI — colour-output suppression and telemetry-skip both call\n* this helper, so neither path drifts from the other when a new CI provider\n* is added upstream.\n*\n* `ci-info` checks the standard `CI=true` marker plus dozens of\n* provider-specific environment variables (Buildkite, Jenkins, Drone,\n* Bitbucket Pipelines, Azure Pipelines, AWS CodeBuild, …) that the raw\n* `process.env.CI` read misses.\n*\n*/\nfunction isCI$1() {\n\treturn isCI;\n}\n//#endregion\n//#region src/utils/formatters/migrations.ts\n/**\n* Render a single statement of an `OperationPreview` for the human-readable\n* preview block. SQL statements get a trailing `;` if missing so the rendered\n* preview is byte-identical to the legacy `string[]`-based renderer for SQL\n* targets. Other languages (`'mongodb-shell'`) render verbatim.\n*/\nfunction renderPreviewStatement(text, language) {\n\tconst trimmed = text.trim();\n\tif (!trimmed) return void 0;\n\tif (language === \"sql\") return trimmed.endsWith(\";\") ? trimmed : `${trimmed};`;\n\treturn trimmed;\n}\n/**\n* Choose the header label for a preview block. SQL-only previews keep the\n* legacy `DDL preview` label so the rendered output is byte-identical to the\n* pre-aggregate SQL CLI; previews from any other family — or a mix that\n* includes any non-SQL language — use the family-agnostic `Operation preview`\n* label.\n*\n* An empty `statements` array deliberately renders as `Operation preview`\n* rather than `DDL preview`: `Array.prototype.every` is vacuously true for\n* empty arrays, but we have no evidence the preview is SQL-only when no\n* statements are present, so the family-agnostic label is the safer default.\n*/\nfunction previewBlockHeader(preview) {\n\treturn preview.statements.length > 0 && preview.statements.every((s) => s.language === \"sql\") ? \"DDL preview\" : \"Operation preview\";\n}\nfunction formatPlannerWarningsBlock(warnings, useColor) {\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst lines = [\"\", \"Warnings:\"];\n\tfor (const warning of warnings) lines.push(` ${formatDimText(`- ${warning.summary}`)}`);\n\treturn lines;\n}\n/**\n* Render the shared per-space execution block consumed by the `db init`\n* / `db update` / `migrate` summaries. Always shows: space\n* label (`Extension space: <id>` or `App space`) → per-op lines under\n* each space → per-space marker hash (when known).\n*\n* `mode` controls the marker label phrasing — `'apply'` shows\n* `marker → <hash>` (post-apply), `'plan'` omits the marker line\n* entirely (no marker has been written yet).\n*/\nfunction formatPerSpaceBlock(perSpace, mode, useColor) {\n\tconst formatYellow = createColorFormatter(useColor, yellow);\n\tconst formatCyan = createColorFormatter(useColor, cyan);\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst lines = [];\n\tfor (let s = 0; s < perSpace.length; s++) {\n\t\tconst space = perSpace[s];\n\t\tif (s > 0) lines.push(\"\");\n\t\tconst header = space.kind === \"app\" ? formatCyan(\"App space\") : formatCyan(`Extension space: ${space.spaceId}`);\n\t\tlines.push(header);\n\t\tif (space.operations.length === 0) lines.push(` ${formatDimText(\"(no operations)\")}`);\n\t\telse for (let i = 0; i < space.operations.length; i++) {\n\t\t\tconst op = space.operations[i];\n\t\t\tconst treeChar = i === space.operations.length - 1 ? \"└\" : \"├\";\n\t\t\tconst destructiveMarker = op.operationClass === \"destructive\" ? ` ${formatYellow(\"(destructive)\")}` : \"\";\n\t\t\tlines.push(` ${formatDimText(treeChar)}─ ${op.label}${destructiveMarker}`);\n\t\t}\n\t\tif (mode === \"apply\" && space.marker) lines.push(` ${formatDimText(`marker: ${space.marker.storageHash}`)}`);\n\t}\n\treturn lines;\n}\n/**\n* Formats human-readable output for migration commands (db init, db update) in plan mode.\n*/\nfunction formatMigrationPlanOutput(result, flags) {\n\tif (flags.quiet) return \"\";\n\tconst lines = [];\n\tconst useColor = flags.color !== false;\n\tconst formatGreen = createColorFormatter(useColor, green);\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst operationCount = result.plan?.operations.length ?? 0;\n\tconst spaceCount = result.perSpace?.length ?? 0;\n\tif (spaceCount > 0) lines.push(`${formatGreen(\"✔\")} Planned ${operationCount} operation(s) across ${spaceCount} contract space${spaceCount === 1 ? \"\" : \"s\"}`);\n\telse lines.push(`${formatGreen(\"✔\")} Planned ${operationCount} operation(s)`);\n\tif (result.warnings && result.warnings.length > 0) lines.push(...formatPlannerWarningsBlock(result.warnings, useColor));\n\tconst formatYellow = createColorFormatter(useColor, yellow);\n\tif (result.perSpace && result.perSpace.length > 0) {\n\t\tlines.push(\"\");\n\t\tlines.push(...formatPerSpaceBlock(result.perSpace, \"plan\", useColor));\n\t\tif (result.perSpace.some((s) => s.operations.some((op) => op.operationClass === \"destructive\"))) {\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(`${formatYellow(\"⚠\")} This migration contains destructive operations that may cause data loss.`);\n\t\t}\n\t} else if (result.plan?.operations && result.plan.operations.length > 0) {\n\t\tlines.push(`${formatDimText(\"│\")}`);\n\t\tfor (let i = 0; i < result.plan.operations.length; i++) {\n\t\t\tconst op = result.plan.operations[i];\n\t\t\tif (!op) continue;\n\t\t\tconst treeChar = i === result.plan.operations.length - 1 ? \"└\" : \"├\";\n\t\t\tconst destructiveMarker = op.operationClass === \"destructive\" ? ` ${formatYellow(\"(destructive)\")}` : \"\";\n\t\t\tlines.push(`${formatDimText(treeChar)}─ ${op.label}${destructiveMarker}`);\n\t\t}\n\t\tif (result.plan.operations.some((op) => op.operationClass === \"destructive\")) {\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(`${formatYellow(\"⚠\")} This migration contains destructive operations that may cause data loss.`);\n\t\t}\n\t}\n\tif (result.plan?.destination) {\n\t\tlines.push(\"\");\n\t\tlines.push(`${formatDimText(`Destination hash: ${result.plan.destination.storageHash}`)}`);\n\t}\n\tif (result.plannedAdvanceRef) {\n\t\tlines.push(\"\");\n\t\tlines.push(formatDimText(`Would advance ref \"${result.plannedAdvanceRef.name}\" → ${result.plannedAdvanceRef.hash}`));\n\t}\n\tconst preview = result.plan?.preview;\n\tif (preview) {\n\t\tlines.push(\"\");\n\t\tlines.push(`${formatDimText(previewBlockHeader(preview))}`);\n\t\tif (preview.statements.length === 0) lines.push(`${formatDimText(\"No operations.\")}`);\n\t\telse {\n\t\t\tlines.push(\"\");\n\t\t\tfor (const statement of preview.statements) {\n\t\t\t\tconst rendered = renderPreviewStatement(statement.text, statement.language);\n\t\t\t\tif (rendered) lines.push(rendered);\n\t\t\t}\n\t\t}\n\t}\n\tif (isVerbose(flags, 1)) lines.push(`${formatDimText(`Total time: ${result.timings.total}ms`)}`);\n\tlines.push(\"\");\n\tlines.push(`${formatDimText(\"This is a dry run. No changes were applied.\")}`);\n\tlines.push(`${formatDimText(\"Run without --dry-run to apply changes.\")}`);\n\treturn lines.join(\"\\n\");\n}\nfunction formatMigrationApplyCommandOutput(result, flags) {\n\tif (flags.quiet) return \"\";\n\tconst lines = [];\n\tconst useColor = flags.color !== false;\n\tconst formatGreen = createColorFormatter(useColor, green);\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tlines.push(`${formatGreen(\"✔\")} ${result.summary}`);\n\tif (result.perSpace.length > 0) {\n\t\tlines.push(\"\");\n\t\tfor (const line of formatPerSpaceBlock(result.perSpace, \"apply\", useColor)) lines.push(line);\n\t}\n\tif (result.advancedRef) {\n\t\tlines.push(\"\");\n\t\tlines.push(formatDimText(`Advanced ref \"${result.advancedRef.name}\" → ${result.advancedRef.hash}`));\n\t}\n\tlines.push(\"\");\n\tlines.push(formatDimText(\"Next: prisma-next migration status\"));\n\tif (isVerbose(flags, 1) && result.timings) {\n\t\tlines.push(\"\");\n\t\tlines.push(formatDimText(`Total time: ${result.timings.total}ms`));\n\t}\n\treturn lines.join(\"\\n\");\n}\nfunction formatSpaceShowBlock(space, useColor) {\n\tconst formatGreen = createColorFormatter(useColor, green);\n\tconst formatYellow = createColorFormatter(useColor, yellow);\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tconst lines = [];\n\tlines.push(`${formatGreen(\"✔\")} ${space.name}`);\n\tlines.push(`${formatDimText(` from: ${space.fromContract ?? \"(baseline)\"}`)}`);\n\tlines.push(`${formatDimText(` to: ${space.toContract}`)}`);\n\tlines.push(`${formatDimText(` hash: ${space.hash}`)}`);\n\tlines.push(`${formatDimText(` created: ${space.createdAt}`)}`);\n\tlines.push(\"\");\n\tlines.push(`${space.operations.length} operation(s)`);\n\tif (space.operations.length > 0) {\n\t\tlines.push(`${formatDimText(\"│\")}`);\n\t\tfor (let i = 0; i < space.operations.length; i++) {\n\t\t\tconst op = space.operations[i];\n\t\t\tconst treeChar = i === space.operations.length - 1 ? \"└\" : \"├\";\n\t\t\tconst destructiveMarker = op.operationClass === \"destructive\" ? ` ${formatYellow(\"(destructive)\")}` : \"\";\n\t\t\tlines.push(`${formatDimText(treeChar)}─ ${op.label}${destructiveMarker}`);\n\t\t}\n\t\tif (space.operations.some((op) => op.operationClass === \"destructive\")) {\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(`${formatYellow(\"⚠\")} This migration contains destructive operations that may cause data loss.`);\n\t\t}\n\t}\n\tif (space.preview.statements.length > 0) {\n\t\tlines.push(\"\");\n\t\tlines.push(`${formatDimText(previewBlockHeader(space.preview))}`);\n\t\tlines.push(\"\");\n\t\tfor (const statement of space.preview.statements) {\n\t\t\tconst rendered = renderPreviewStatement(statement.text, statement.language);\n\t\t\tif (rendered) lines.push(rendered);\n\t\t}\n\t}\n\treturn lines;\n}\nfunction formatMigrationShowOutput(result, flags) {\n\tif (flags.quiet) return \"\";\n\tconst useColor = flags.color !== false;\n\treturn formatSpaceShowBlock(result.migration, useColor).join(\"\\n\");\n}\n/**\n* Formats human-readable output for migration commands (db init, db update) in apply mode.\n*/\nfunction formatMigrationApplyOutput(result, flags) {\n\tif (flags.quiet) return \"\";\n\tconst lines = [];\n\tconst useColor = flags.color !== false;\n\tconst formatGreen = createColorFormatter(useColor, green);\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tif (result.ok) {\n\t\tconst executed = result.execution?.operationsExecuted ?? 0;\n\t\tconst spaceCount = result.perSpace?.length ?? 0;\n\t\tif (executed === 0) {\n\t\t\tconst acrossClause = spaceCount > 0 ? ` across ${spaceCount} contract space${spaceCount === 1 ? \"\" : \"s\"}` : \"\";\n\t\t\tlines.push(`${formatGreen(\"✔\")} Database already matches contract${acrossClause}`);\n\t\t} else if (spaceCount > 0) lines.push(`${formatGreen(\"✔\")} Applied ${executed} operation(s) across ${spaceCount} contract space${spaceCount === 1 ? \"\" : \"s\"}`);\n\t\telse lines.push(`${formatGreen(\"✔\")} Applied ${executed} operation(s)`);\n\t\tif (result.warnings && result.warnings.length > 0) lines.push(...formatPlannerWarningsBlock(result.warnings, useColor));\n\t\tif (result.perSpace && result.perSpace.length > 0) {\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(...formatPerSpaceBlock(result.perSpace, \"apply\", useColor));\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(formatDimText(`Run 'prisma-next migration status' to confirm ${spaceCount === 1 ? \"the space is\" : \"all spaces are\"} up to date.`));\n\t\t} else if (result.marker) {\n\t\t\tlines.push(`${formatDimText(` App-space marker: ${result.marker.storageHash}`)}`);\n\t\t\tif (result.marker.profileHash) lines.push(`${formatDimText(` Profile hash: ${result.marker.profileHash}`)}`);\n\t\t}\n\t\tif (isVerbose(flags, 1)) lines.push(`${formatDimText(` Total time: ${result.timings.total}ms`)}`);\n\t\tif (result.advancedRef) lines.push(formatDimText(`Advanced ref \"${result.advancedRef.name}\" → ${result.advancedRef.hash}`));\n\t}\n\treturn lines.join(\"\\n\");\n}\n/**\n* Formats JSON output for migration commands (db init, db update).\n*/\nfunction formatMigrationJson(result) {\n\treturn JSON.stringify(result, null, 2);\n}\n//#endregion\n//#region src/utils/formatters/errors.ts\n/**\n* The display label for a schema-diff issue in the shared error envelope,\n* derived from which sides are present: expected-only is a missing object,\n* actual-only an extra one, both a mismatch. `undefined` when the entry is not\n* a schema-diff issue (it carries neither side) so the caller can fall through\n* to its generic label.\n*/\nfunction schemaDiffIssueLabel(issue) {\n\tconst hasExpected = issue.expected !== void 0;\n\tconst hasActual = issue.actual !== void 0;\n\tif (hasExpected && hasActual) return \"mismatch\";\n\tif (hasExpected) return \"missing\";\n\tif (hasActual) return \"extra\";\n}\n/**\n* Formats error output for human-readable display.\n*/\nfunction formatErrorOutput(error, flags) {\n\tconst lines = [];\n\tconst useColor = flags.color !== false;\n\tconst formatRed = createColorFormatter(useColor, red);\n\tconst formatDimText = (text) => formatDim(useColor, text);\n\tlines.push(`${formatRed(\"✖\")} ${error.summary} (${error.code})`);\n\tif (error.why) lines.push(`${formatDimText(` Why: ${error.why}`)}`);\n\tif (error.fix) lines.push(`${formatDimText(` Fix: ${error.fix}`)}`);\n\tif (error.where?.path) {\n\t\tconst whereLine = error.where.line ? `${error.where.path}:${error.where.line}` : error.where.path;\n\t\tlines.push(`${formatDimText(` Where: ${whereLine}`)}`);\n\t}\n\tif (error.meta?.[\"conflicts\"]) {\n\t\tconst conflicts = error.meta[\"conflicts\"];\n\t\tif (conflicts.length > 0) {\n\t\t\tconst maxToShow = isVerbose(flags, 1) ? conflicts.length : Math.min(3, conflicts.length);\n\t\t\tconst header = isVerbose(flags, 1) ? \" Conflicts:\" : ` Conflicts (showing ${maxToShow} of ${conflicts.length}):`;\n\t\t\tlines.push(`${formatDimText(header)}`);\n\t\t\tfor (const conflict of conflicts.slice(0, maxToShow)) lines.push(`${formatDimText(` - [${conflict.kind}] ${conflict.summary}`)}`);\n\t\t\tif (!isVerbose(flags, 1) && conflicts.length > maxToShow) lines.push(`${formatDimText(\" Re-run with -v/--verbose to see all conflicts\")}`);\n\t\t}\n\t}\n\tif (error.meta?.[\"issues\"]) {\n\t\tconst issues = error.meta[\"issues\"];\n\t\tif (issues.length > 0) {\n\t\t\tconst maxToShow = isVerbose(flags, 1) ? issues.length : Math.min(3, issues.length);\n\t\t\tconst header = isVerbose(flags, 1) ? \" Issues:\" : ` Issues (showing ${maxToShow} of ${issues.length}):`;\n\t\t\tlines.push(`${formatDimText(header)}`);\n\t\t\tfor (const issue of issues.slice(0, maxToShow)) {\n\t\t\t\tconst label = issue.kind ?? schemaDiffIssueLabel(issue) ?? \"issue\";\n\t\t\t\tconst message = issue.message ?? issue.path?.join(\"/\") ?? \"\";\n\t\t\t\tlines.push(`${formatDimText(` - [${label}] ${message}`)}`);\n\t\t\t}\n\t\t\tif (!isVerbose(flags, 1) && issues.length > maxToShow) lines.push(`${formatDimText(\" Re-run with -v/--verbose to see all issues\")}`);\n\t\t}\n\t}\n\tif (error.docsUrl && isVerbose(flags, 1)) lines.push(formatDimText(error.docsUrl));\n\tconst plannerWarnings = error.meta?.[\"plannerWarnings\"];\n\tif (Array.isArray(plannerWarnings) && plannerWarnings.length > 0) {\n\t\tconst typedWarnings = blindCast(plannerWarnings);\n\t\tlines.push(...formatPlannerWarningsBlock(typedWarnings, useColor));\n\t}\n\tif (isVerbose(flags, 2) && error.meta) lines.push(`${formatDimText(` Meta: ${JSON.stringify(error.meta, null, 2)}`)}`);\n\treturn lines.join(\"\\n\");\n}\n/**\n* Formats error output as JSON.\n*/\nfunction formatErrorJson(error) {\n\treturn JSON.stringify(error, null, 2);\n}\n//#endregion\n//#region src/utils/result-handler.ts\n/**\n* Processes a CLI command result, handling both success and error cases.\n* Formats output appropriately and returns the exit code.\n* Never throws - returns exit code for commands to use with process.exit().\n*\n* Error output:\n* - JSON mode: JSON error to stdout (piped) via ui.output(), human sees nothing on stderr.\n* - Interactive: human-readable error to stderr.\n*/\nfunction handleResult(result, flags, ui, onSuccess) {\n\tif (result.ok) {\n\t\tif (onSuccess) onSuccess(result.value);\n\t\treturn 0;\n\t}\n\tconst envelope = result.failure.toEnvelope();\n\tif (flags.json) ui.output(formatErrorJson(envelope));\n\telse ui.error(formatErrorOutput(envelope, flags));\n\treturn result.failure.code === \"CLI.INIT_USER_ABORTED\" ? 3 : 2;\n}\n//#endregion\n//#region src/utils/glyph-mode.ts\nfunction localeString(env) {\n\treturn env[\"LC_ALL\"] ?? env[\"LC_CTYPE\"] ?? env[\"LANG\"] ?? \"\";\n}\nfunction isUtf8Locale(env) {\n\tconst locale = localeString(env);\n\tif (locale.length === 0) return false;\n\treturn /UTF-8|utf8/i.test(locale);\n}\nfunction detectGlyphMode(input) {\n\tif (!input.isTTY) return \"ascii\";\n\tif (!isUtf8Locale(input.env)) return \"ascii\";\n\treturn \"unicode\";\n}\n//#endregion\n//#region src/utils/shutdown.ts\nfunction createShutdownHandler(options) {\n\tconst exit = options?.exit ?? ((code) => process.exit(code));\n\tconst gracePeriodMs = options?.gracePeriodMs ?? 3e3;\n\tconst controller = new AbortController();\n\tlet shuttingDown = false;\n\tlet graceTimer;\n\tconst onSignal = () => {\n\t\tif (shuttingDown) {\n\t\t\texit(130);\n\t\t\treturn;\n\t\t}\n\t\tshuttingDown = true;\n\t\tcontroller.abort();\n\t\tgraceTimer = setTimeout(() => exit(130), gracePeriodMs);\n\t\tgraceTimer.unref();\n\t};\n\treturn {\n\t\tsignal: controller.signal,\n\t\tisShuttingDown: () => shuttingDown,\n\t\tonSignal,\n\t\tclearGraceTimer: () => {\n\t\t\tif (graceTimer !== void 0) {\n\t\t\t\tclearTimeout(graceTimer);\n\t\t\t\tgraceTimer = void 0;\n\t\t\t}\n\t\t}\n\t};\n}\nconst globalHandler = createShutdownHandler();\n/**\n* The global AbortSignal. Pass this to any async operation that should\n* be cancellable on Ctrl+C (e.g., DB queries, long-running emit).\n*/\nconst shutdownSignal = globalHandler.signal;\n/**\n* Installs SIGINT and SIGTERM handlers. Call once at CLI startup.\n*\n* - First signal: aborts the controller, starts a 3s grace timer.\n* - Second signal: force-exits immediately.\n*/\nlet installed = false;\nfunction installShutdownHandlers() {\n\tif (installed) return;\n\tinstalled = true;\n\tprocess.on(\"SIGINT\", globalHandler.onSignal);\n\tprocess.on(\"SIGTERM\", globalHandler.onSignal);\n}\n//#endregion\n//#region src/utils/terminal-ui.ts\n/**\n* Composable CLI output abstraction.\n*\n* Follows the Unix convention of separating data from decoration:\n* - **stdout** — data output only (`ui.output()`). This is what scripts and pipes capture.\n* - **stderr** — all decoration (spinners, logs, notes, intro/outro). Visible in terminal, invisible in pipes.\n*\n* Rules:\n* 1. All methods except `output()` and `error()` write to stderr only in interactive mode.\n* 2. `output(data)` always writes to stdout — if a command calls it, there is data to emit.\n* 3. `error()` always writes to stderr — errors matter even when piped.\n* 4. Decoration is suppressed when piped unless `--format pretty` was explicit (`forcePretty`).\n* 5. Never write data to stderr — decoration methods are for human context only.\n* 6. Never write decoration to stdout — it breaks pipes, `$(...)` captures, and `> file` redirects.\n*/\nvar TerminalUI = class TerminalUI {\n\t/**\n\t* True when stdout is a TTY (interactive terminal).\n\t* False when piped (e.g., `prisma-next db verify | jq`).\n\t*/\n\tisInteractive;\n\t/**\n\t* Whether color output is enabled.\n\t*/\n\tuseColor;\n\t/**\n\t* When true, decoration methods write even on non-TTY stdout\n\t* (explicit `--format pretty`).\n\t*/\n\tforcePretty;\n\t/**\n\t* Whether stdout is a TTY — used for migration-list graph glyph detection.\n\t*/\n\tstdoutIsTTY;\n\t/**\n\t* Process environment snapshot for locale-aware glyph detection.\n\t*/\n\tenv;\n\tstatic stderrOpts = { output: process.stderr };\n\tconstructor(options) {\n\t\tthis.isInteractive = options?.interactive ?? !!process.stdout.isTTY;\n\t\tthis.forcePretty = options?.forcePretty ?? false;\n\t\tthis.useColor = options?.color ?? (this.isInteractive || this.forcePretty);\n\t\tthis.stdoutIsTTY = options?.stdoutIsTTY ?? !!process.stdout.isTTY;\n\t\tthis.env = options?.env ?? process.env;\n\t}\n\tget isTTY() {\n\t\treturn this.stdoutIsTTY;\n\t}\n\t/**\n\t* Resolve glyph mode for migration list/tree output. `--ascii` forces ASCII;\n\t* otherwise delegates to the pure {@link detectGlyphMode} helper.\n\t*/\n\tresolveGlyphMode(forceAscii) {\n\t\tif (forceAscii) return \"ascii\";\n\t\treturn detectGlyphMode(this.glyphModeInput());\n\t}\n\tglyphModeInput() {\n\t\treturn {\n\t\t\tisTTY: this.stdoutIsTTY,\n\t\t\tenv: this.env\n\t\t};\n\t}\n\tget shouldDecorate() {\n\t\treturn this.isInteractive || this.forcePretty;\n\t}\n\t/**\n\t* Log a message line to stderr. No-op when piped unless forcePretty.\n\t*/\n\tlog(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.log.message(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Log a success message to stderr. No-op when piped unless forcePretty.\n\t*/\n\tsuccess(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.log.success(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Log a warning message to stderr. No-op when piped unless forcePretty.\n\t*/\n\twarn(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.log.warn(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Log an error message to stderr. Always writes (errors matter even in pipes).\n\t*/\n\terror(message) {\n\t\tclack.log.error(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Log an info message to stderr. No-op when piped unless forcePretty.\n\t*/\n\tinfo(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.log.info(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Log a step message to stderr. No-op when piped unless forcePretty.\n\t*/\n\tstep(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.log.step(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Display a note box on stderr. No-op when piped unless forcePretty.\n\t*/\n\tnote(message, title) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.note(message, title, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Display intro banner on stderr. No-op when piped unless forcePretty.\n\t*/\n\tintro(title) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.intro(title, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Display outro banner on stderr. No-op when piped unless forcePretty.\n\t*/\n\toutro(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tclack.outro(message, TerminalUI.stderrOpts);\n\t}\n\t/**\n\t* Create a Clack spinner on stderr with a 100ms delay threshold.\n\t* The spinner only appears if the operation takes longer than the threshold,\n\t* avoiding flicker for fast operations. Returns a no-op spinner when not decorating.\n\t*/\n\tspinner(delayMs = 100) {\n\t\tconst noop = {\n\t\t\tstart: () => {},\n\t\t\tstop: () => {},\n\t\t\tcancel: () => {},\n\t\t\terror: () => {},\n\t\t\tmessage: () => {},\n\t\t\tclear: () => {},\n\t\t\tget isCancelled() {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\tif (!this.shouldDecorate) return noop;\n\t\tlet inner;\n\t\tlet timer;\n\t\tlet pendingMsg;\n\t\tlet settled = false;\n\t\tconst ensureCleared = () => {\n\t\t\tif (timer !== void 0) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t\ttimer = void 0;\n\t\t\t}\n\t\t};\n\t\tconst onAbort = () => {\n\t\t\tif (!settled) {\n\t\t\t\tsettled = true;\n\t\t\t\tensureCleared();\n\t\t\t\tif (inner) inner.cancel(\"Interrupted\");\n\t\t\t}\n\t\t};\n\t\tif (!shutdownSignal.aborted) shutdownSignal.addEventListener(\"abort\", onAbort, { once: true });\n\t\treturn {\n\t\t\tstart(msg) {\n\t\t\t\tpendingMsg = msg;\n\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\tif (!settled) {\n\t\t\t\t\t\tinner = clack.spinner(TerminalUI.stderrOpts);\n\t\t\t\t\t\tinner.start(pendingMsg);\n\t\t\t\t\t}\n\t\t\t\t}, delayMs);\n\t\t\t},\n\t\t\tstop(msg) {\n\t\t\t\tsettled = true;\n\t\t\t\tensureCleared();\n\t\t\t\tif (inner) inner.stop(msg);\n\t\t\t},\n\t\t\tcancel(msg) {\n\t\t\t\tsettled = true;\n\t\t\t\tensureCleared();\n\t\t\t\tif (inner) inner.cancel(msg);\n\t\t\t},\n\t\t\terror(msg) {\n\t\t\t\tsettled = true;\n\t\t\t\tensureCleared();\n\t\t\t\tif (inner) inner.error(msg);\n\t\t\t},\n\t\t\tmessage(msg) {\n\t\t\t\tpendingMsg = msg;\n\t\t\t\tif (inner) inner.message(msg);\n\t\t\t},\n\t\t\tclear() {\n\t\t\t\tsettled = true;\n\t\t\t\tensureCleared();\n\t\t\t\tif (inner) inner.clear();\n\t\t\t},\n\t\t\tget isCancelled() {\n\t\t\t\treturn inner?.isCancelled ?? false;\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Prompt for yes/no confirmation on stderr. Returns true if confirmed.\n\t* In non-interactive mode or when cancelled (Ctrl-C), returns false.\n\t*/\n\tasync confirm(message) {\n\t\tif (!this.isInteractive) return false;\n\t\tconst result = await clack.confirm({\n\t\t\tmessage,\n\t\t\t...TerminalUI.stderrOpts\n\t\t});\n\t\tif (clack.isCancel(result)) return false;\n\t\treturn result;\n\t}\n\t/**\n\t* Write a raw line to stderr. No-op when piped unless forcePretty.\n\t* Use for decoration that doesn't fit Clack's log format (e.g. styled headers).\n\t*/\n\tstderr(message) {\n\t\tif (!this.shouldDecorate) return;\n\t\tprocess.stderr.write(`${message}\\n`);\n\t}\n\t/**\n\t* Write machine-readable data to stdout.\n\t* Always writes — if a command calls output(), there is data to emit.\n\t*\n\t* This is what scripts and pipes capture: `prisma-next db verify --json | jq .ok`\n\t*/\n\toutput(data) {\n\t\tprocess.stdout.write(`${data}\\n`);\n\t}\n\tgreen(text) {\n\t\treturn this.useColor ? green(text) : text;\n\t}\n\tred(text) {\n\t\treturn this.useColor ? red(text) : text;\n\t}\n\tcyan(text) {\n\t\treturn this.useColor ? cyan(text) : text;\n\t}\n\tdim(text) {\n\t\treturn this.useColor ? dim(text) : text;\n\t}\n\tbold(text) {\n\t\treturn this.useColor ? bold(text) : text;\n\t}\n\tyellow(text) {\n\t\treturn this.useColor ? yellow(text) : text;\n\t}\n};\nfunction createTerminalUI(flags, runtime) {\n\treturn new TerminalUI({\n\t\tcolor: flags.color,\n\t\tinteractive: flags.interactive,\n\t\tforcePretty: flags.format === \"pretty\" && flags.explicitFormat,\n\t\tstdoutIsTTY: runtime?.isTTY,\n\t\tenv: runtime?.env\n\t});\n}\n//#endregion\n//#region src/utils/global-flags.ts\nfunction isJsonFlagSet(json) {\n\treturn json === true;\n}\nfunction resolveOutputFormat(options) {\n\tconst formatOption = options.format;\n\tconst jsonFlag = isJsonFlagSet(options.json);\n\tif (formatOption !== void 0) {\n\t\tif (formatOption !== \"pretty\" && formatOption !== \"json\") throw errorInvalidOutputFormat(formatOption);\n\t\tif (jsonFlag && formatOption === \"pretty\") throw errorOutputFormatMutex();\n\t\treturn {\n\t\t\tformat: formatOption,\n\t\t\texplicitFormat: true\n\t\t};\n\t}\n\tif (jsonFlag) return {\n\t\tformat: \"json\",\n\t\texplicitFormat: false\n\t};\n\tif (!process.stdout.isTTY) return {\n\t\tformat: \"json\",\n\t\texplicitFormat: false\n\t};\n\treturn {\n\t\tformat: \"pretty\",\n\t\texplicitFormat: false\n\t};\n}\nfunction inferJsonModeForParseError(options) {\n\tif (options.format === \"json\") return true;\n\tif (isJsonFlagSet(options.json) && options.format !== \"pretty\") return true;\n\tif (options.format !== void 0) return false;\n\treturn !process.stdout.isTTY;\n}\nfunction emitGlobalFlagParseError(error, options) {\n\tconst jsonMode = inferJsonModeForParseError(options);\n\tconst flags = {\n\t\tformat: jsonMode ? \"json\" : \"pretty\",\n\t\texplicitFormat: false,\n\t\t...jsonMode ? { json: true } : {},\n\t\tcolor: false,\n\t\tverbose: 0,\n\t\tinteractive: false\n\t};\n\tconst ui = createTerminalUI(flags);\n\tconst exitCode = handleResult(notOk(error), flags, ui);\n\tprocess.exit(exitCode);\n}\n/**\n* Parses global flags from CLI options.\n* Handles verbosity flags (-v, --trace), output format (--format, --json),\n* quiet mode, color, interactivity (--interactive/--no-interactive), and\n* auto-accept (-y/--yes).\n*\n* On invalid or conflicting format flags, prints a structured CLI error\n* envelope and exits with code 2.\n*/\nfunction parseGlobalFlagsOrExit(options) {\n\ttry {\n\t\treturn parseGlobalFlags(options);\n\t} catch (error) {\n\t\tif (CliStructuredError$1.is(error)) emitGlobalFlagParseError(error, options);\n\t\tthrow error;\n\t}\n}\n/**\n* Parses global flags from CLI options.\n* Handles verbosity flags (-v, --trace), output format (--format, --json),\n* quiet mode, color, interactivity (--interactive/--no-interactive), and\n* auto-accept (-y/--yes).\n*\n* Throws {@link CliStructuredError} for invalid or conflicting format flags.\n*/\nfunction parseGlobalFlags(options) {\n\tconst { format, explicitFormat } = resolveOutputFormat(options);\n\tconst flags = {\n\t\tformat,\n\t\texplicitFormat\n\t};\n\tif (format === \"json\") flags.json = true;\n\tif (options.quiet || options.q) flags.quiet = true;\n\tif (options.trace || process.env[\"PRISMA_NEXT_TRACE\"] === \"1\") flags.verbose = 2;\n\telse if (options.verbose || options.v || process.env[\"PRISMA_NEXT_DEBUG\"] === \"1\") flags.verbose = 1;\n\telse flags.verbose = 0;\n\tif (process.env[\"NO_COLOR\"] || flags.json) flags.color = false;\n\telse if (options[\"no-color\"]) flags.color = false;\n\telse if (options.color !== void 0) flags.color = options.color;\n\telse flags.color = process.stdout.isTTY && !isCI$1();\n\tif (options[\"no-interactive\"]) flags.interactive = false;\n\telse if (options.interactive !== void 0) flags.interactive = options.interactive;\n\telse flags.interactive = !!process.stdout.isTTY;\n\tif (options.yes || options.y) flags.yes = true;\n\treturn flags;\n}\n/**\n* Bridges the two TTY checks (stdout via `flags`, stdin via\n* `process.stdin.isTTY`) into the `canPrompt` boolean the interactive\n* `init` flow consumes.\n*\n* Per the [Style Guide § Interactivity](../../../../../../../docs/CLI%20Style%20Guide.md#interactivity):\n*\n* - `flags.interactive` governs *decoration* (TerminalUI, intro/outro,\n* spinners) and is derived from stdout-TTY by `parseGlobalFlags`,\n* honouring `--interactive` / `--no-interactive`.\n* - Prompting additionally requires a stdin TTY — closing stdin is a\n* common signal in CI / agent environments even when stdout stays\n* attached.\n* - `--interactive` is the explicit override: when the user passes it,\n* we honour it (e.g. testing flows where stdin is stubbed).\n*\n* Single source of truth for the interactive-prompt decision: both the\n* `init` action handler and the preAction telemetry bridge derive\n* prompt-eligibility from this helper so they cannot drift. Lives in\n* `global-flags` (alongside `parseGlobalFlags`) to keep\n* `utils/telemetry` and `commands/init/index` free of an import cycle.\n*\n* Exported so callers and tests can derive the same value without\n* touching `process` globals.\n*/\nfunction deriveCanPrompt(opts) {\n\tif (opts.optionInteractive === true) return true;\n\tif (opts.flagsInteractive === false) return false;\n\treturn opts.stdinIsTTY;\n}\n//#endregion\n//#region src/utils/command-helpers.ts\nconst longDescriptions = /* @__PURE__ */ new WeakMap();\nconst commandExamples = /* @__PURE__ */ new WeakMap();\nconst commandSeeAlso = /* @__PURE__ */ new WeakMap();\n/**\n* Sets both short and long descriptions for a command.\n* The short description is used in command trees and headers.\n* The long description is shown at the bottom of help output.\n*/\nfunction setCommandDescriptions(command, shortDescription, longDescription) {\n\tcommand.description(shortDescription);\n\tif (longDescription) longDescriptions.set(command, longDescription);\n\treturn command;\n}\n/**\n* Sets copy-pastable examples for a command, shown in help text.\n*/\nfunction setCommandExamples(command, examples) {\n\tcommandExamples.set(command, examples);\n\treturn command;\n}\n/**\n* Gets the long description from a command if it was set via setCommandDescriptions.\n*/\nfunction getLongDescription(command) {\n\treturn longDescriptions.get(command);\n}\n/**\n* Gets examples from a command if set via setCommandExamples.\n*/\nfunction getCommandExamples(command) {\n\treturn commandExamples.get(command);\n}\n/**\n* Sets cross-references to related commands, rendered in a \"See also\"\n* section below the Examples block in help output.\n*/\nfunction setCommandSeeAlso(command, refs) {\n\tcommandSeeAlso.set(command, refs);\n\treturn command;\n}\n/**\n* Gets the see-also cross-references from a command.\n*/\nfunction getCommandSeeAlso(command) {\n\treturn commandSeeAlso.get(command);\n}\n/**\n* Resolves the absolute path to contract.json from the config.\n*/\nfunction resolveContractPath(config) {\n\tif (config.contract?.output === void 0) throw errorRuntime$1(\"config.contract.output is required to resolve the contract path\", {\n\t\twhy: \"CLI commands read the emitted contract from config.contract.output; the config has no value to read.\",\n\t\tfix: \"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.\"\n\t});\n\treturn resolve(config.contract.output);\n}\n/**\n* Resolves the migrations directory and config path from CLI options.\n* Shared by migrate, migration-plan, and migration-status.\n*\n* - `migrationsDir` is the project's top-level `migrations/` directory\n* (the root that the aggregate loader walks for every contract space).\n* - `appMigrationsDir` is the app subspace directory under it\n* (`<migrationsDir>/<APP_SPACE_ID>/`). Every per-app reader / writer\n* (`migration new`, `migration plan`, `migrate`,\n* `migration status`, `migration show`, `migration ref`) operates on\n* this directory. Extensions own their own `migrations/<spaceId>/`.\n* - `refsDir` is the app's refs directory (`<appMigrationsDir>/refs/`).\n* The framework does not maintain refs at the migrations root.\n*/\nfunction resolveMigrationPaths(configOption, config) {\n\tconst configPath = configOption ? relative(process.cwd(), resolve(configOption)) : \"prisma-next.config.ts\";\n\tconst migrationsDir = resolve(configOption ? resolve(configOption, \"..\") : process.cwd(), config.migrations?.dir ?? \"migrations\");\n\tconst migrationsRelative = relative(process.cwd(), migrationsDir);\n\tconst appMigrationsDir = spaceMigrationDirectory(migrationsDir, APP_SPACE_ID$1);\n\treturn {\n\t\tconfigPath,\n\t\tmigrationsDir,\n\t\tmigrationsRelative,\n\t\tappMigrationsDir,\n\t\tappMigrationsRelative: relative(process.cwd(), appMigrationsDir),\n\t\trefsDir: resolve(appMigrationsDir, \"refs\")\n\t};\n}\nfunction collectDeclaredInvariants(graph) {\n\tconst declared = /* @__PURE__ */ new Set();\n\tfor (const edges of graph.forwardChain.values()) for (const edge of edges) for (const inv of edge.invariants) declared.add(inv);\n\treturn declared;\n}\n/**\n* Maps a `MigrationEdge` to the structural-edge shape used in the\n* `MIGRATION.NO_INVARIANT_PATH` error envelope. Shared between\n* `migrate` and `migration status` so both commands surface\n* the same JSON wire shape when an invariant-aware route is unsatisfiable.\n*/\nfunction toStructuralEdge(edge) {\n\treturn {\n\t\tdirName: edge.dirName,\n\t\tmigrationHash: edge.migrationHash,\n\t\tfrom: edge.from,\n\t\tto: edge.to,\n\t\tinvariants: edge.invariants\n\t};\n}\nfunction targetSupportsMigrations(target) {\n\treturn hasMigrations(target);\n}\nfunction getTargetMigrations(target) {\n\treturn hasMigrations(target) ? target.migrations : void 0;\n}\n/**\n* Reads and parses contract.json, validating the framework-level envelope\n* fields (storageHash, schemaVersion, target, targetFamily).\n*\n* Family-specific validation (storage structure, codec mappings, etc.)\n* happens downstream in the control client via the family instance.\n*/\nasync function readContractEnvelope(config) {\n\tconst contractPath = resolveContractPath(config);\n\tconst content = await readFile(contractPath, \"utf-8\");\n\tconst json = JSON.parse(content);\n\tconst { schemaVersion, target, targetFamily, profileHash } = json;\n\tconst storageHash = json[\"storage\"]?.[\"storageHash\"];\n\tif (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 } });\n\tif (typeof schemaVersion !== \"string\") throw new CliStructuredError$1(\"CONTRACT.VALIDATION_FAILED\", `Contract at ${relative(process.cwd(), contractPath)} is missing schemaVersion.`, { where: { path: contractPath } });\n\tif (typeof target !== \"string\") throw new CliStructuredError$1(\"CONTRACT.VALIDATION_FAILED\", `Contract at ${relative(process.cwd(), contractPath)} is missing target.`, { where: { path: contractPath } });\n\tif (typeof targetFamily !== \"string\") throw new CliStructuredError$1(\"CONTRACT.VALIDATION_FAILED\", `Contract at ${relative(process.cwd(), contractPath)} is missing targetFamily.`, { where: { path: contractPath } });\n\treturn {\n\t\t...json,\n\t\tstorageHash,\n\t\tschemaVersion,\n\t\ttarget,\n\t\ttargetFamily,\n\t\t...typeof profileHash === \"string\" ? { profileHash } : {}\n\t};\n}\n/**\n* Masks credentials in a database connection URL.\n* Handles standard URLs (username + password + query params) and libpq-style key=value strings.\n*/\nfunction maskConnectionUrl(url) {\n\ttry {\n\t\tconst parsed = new URL(url);\n\t\tif (parsed.username) parsed.username = \"****\";\n\t\tif (parsed.password) parsed.password = \"****\";\n\t\tfor (const key of [...parsed.searchParams.keys()]) if (/password/i.test(key)) parsed.searchParams.set(key, \"****\");\n\t\treturn parsed.toString();\n\t} catch {\n\t\treturn url.replace(/password\\s*=\\s*\\S+/gi, \"password=****\").replace(/user\\s*=\\s*\\S+/gi, \"user=****\");\n\t}\n}\n/**\n* Strips raw connection URL fragments from an error message to prevent credential leakage.\n* Call this before surfacing driver errors to the user.\n*/\nfunction sanitizeErrorMessage(message, connectionUrl) {\n\tif (!connectionUrl) return message;\n\ttry {\n\t\tconst parsed = new URL(connectionUrl);\n\t\tlet sanitized = message;\n\t\tsanitized = sanitized.replaceAll(connectionUrl, maskConnectionUrl(connectionUrl));\n\t\tif (parsed.password) sanitized = sanitized.replaceAll(parsed.password, \"****\");\n\t\tif (parsed.username) sanitized = sanitized.replaceAll(parsed.username, \"****\");\n\t\treturn sanitized;\n\t} catch {\n\t\treturn message.replace(/password\\s*=\\s*\\S+/gi, \"password=****\").replace(/user\\s*=\\s*\\S+/gi, \"user=****\");\n\t}\n}\n/**\n* Registers the global CLI options shared by every command:\n* --format, --json, -q/--quiet, -v/--verbose, --trace, --color, --no-color,\n* --interactive, --no-interactive, -y/--yes.\n*\n* Also sets up the styled help formatter.\n*/\nfunction addGlobalOptions(command) {\n\treturn command.configureHelp({ formatHelp: (cmd) => {\n\t\treturn formatCommandHelp({\n\t\t\tcommand: cmd,\n\t\t\tflags: parseGlobalFlags({})\n\t\t});\n\t} }).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\");\n}\n//#endregion\nexport { errorRefSetBundleNotFound as $, formatStyledHeader as A, errorContractValidationFailed as B, formatMigrationApplyOutput as C, isCI$1 as D, formatMigrationShowOutput as E, CliStructuredError$1 as F, errorHashMismatch as G, errorDestructiveChanges as H, ERROR_CODE_DESTRUCTIVE_CHANGES as I, errorMarkerMismatch as J, errorInvalidSpaceId as K, errorAmbiguousMigrationRef as L, createColorFormatter as M, formatDim as N, formatCommandHelp as O, isVerbose as P, errorPlanForgotTheFlag as Q, errorConfigValidation as R, formatMigrationApplyCommandOutput as S, formatMigrationPlanOutput as T, errorDriverRequired as U, errorDatabaseConnectionRequired as V, errorFileNotFound as W, errorMigrationPlanningFailed as X, errorMarkerMissing as Y, errorPathUnreachable as Z, createTerminalUI as _, readContractEnvelope as a, errorSpaceNotFound as at, formatErrorJson as b, sanitizeErrorMessage as c, errorUnexpected as ct, setCommandSeeAlso as d, requireLiveDatabase as dt, errorRefSetEmptySentinel as et, targetSupportsMigrations as f, parseGlobalFlagsOrExit as g, parseGlobalFlags as h, maskConnectionUrl as i, errorSnapshotMissing as it, formatSuccessMessage as j, formatRootHelp as k, setCommandDescriptions as l, mapMigrationToolsError as lt, deriveCanPrompt as m, collectDeclaredInvariants as n, errorRunnerFailed as nt, resolveContractPath as o, errorTargetMigrationNotSupported as ot, toStructuralEdge as p, errorLegendHumanOnly as q, getTargetMigrations as r, errorRuntime$1 as rt, resolveMigrationPaths as s, errorTargetMismatch as st, addGlobalOptions as t, errorRefSetHashNotInGraph as tt, setCommandExamples as u, mapRefResolutionError as ut, installShutdownHandlers as v, formatMigrationJson as w, formatErrorOutput as x, handleResult as y, errorContractConfigMissing$1 as z };\n\n//# sourceMappingURL=command-helpers-CAoXqAY9.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,0BAA0B,cAAc,iBAAiB,cAAc;CAC/E,MAAM,gBAAgB,gBAAgB,SAAS,IAAI,gBAAgB,KAAK,IAAI,IAAI;CAChF,MAAM,MAAM,gBAAgB,SAAS,IAAI,iBAAiB,OAAO,4CAA4C,aAAa,gEAAgE,+DAA+D;CACzP,OAAO,aAAa,yDAAyD,gBAAgB;EAC5F,KAAK,gBAAgB,SAAS,IAAI,+BAA+B,cAAc,aAAa,aAAa,wBAAwB;EACjI;EACA,MAAM;GACL,MAAM;GACN;GACA,iBAAiB,CAAC,GAAG,eAAe;GACpC,GAAG,iBAAiB,OAAO,EAAE,aAAa,IAAI,CAAC;EAChD;CACD,CAAC;AACF;AACA,SAAS,yBAAyB,MAAM;CACvC,OAAO,aAAa,kDAAkD,QAAQ;EAC7E,KAAK;E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Ae;CACrD,IAAI,CAAC,eAAe,OAAO;CAC3B,IAAI;EACH,MAAM,SAAS,IAAI,IAAI,aAAa;EACpC,IAAI,YAAY;EAChB,YAAY,UAAU,WAAW,eAAe,kBAAkB,aAAa,CAAC;EAChF,IAAI,OAAO,UAAU,YAAY,UAAU,WAAW,OAAO,UAAU,MAAM;EAC7E,IAAI,OAAO,UAAU,YAAY,UAAU,WAAW,OAAO,UAAU,MAAM;EAC7E,OAAO;CACR,QAAQ;EACP,OAAO,QAAQ,QAAQ,wBAAwB,eAAe,CAAC,CAAC,QAAQ,oBAAoB,WAAW;CACxG;AACD;;;;;;;;AAQA,SAAS,iBAAiB,SAAS;CAClC,OAAO,QAAQ,cAAc,EAAE,aAAa,QAAQ;EACnD,OAAO,kBAAkB;GACxB,SAAS;GACT,OAAO,iBAAiB,CAAC,CAAC;EAC3B,CAAC;CACF,EAAE,CAAC,CAAC,CAAC,OAAO,0BAA0B,mEAAmE,CAAC,CAAC,OAAO,UAAU,0CAA0C,CAAC,CAAC,OAAO,eAAe,yBAAyB,CAAC,CAAC,OAAO,iBAAiB,qCAAqC,CAAC,CAAC,OAAO,WAAW,4CAA4C,CAAC,CAAC,OAAO,WAAW,oBAAoB,CAAC,CAAC,OAAO,cAAc,sBAAsB,CAAC,CAAC,OAAO,iBAAiB,wBAAwB,CAAC,CAAC,OAAO,oBAAoB,6BAA6B,CAAC,CAAC,OAAO,aAAa,qBAAqB;AACnkB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PrismaNextConfig, PrismaNextConfig as PrismaNextConfig$1 } from "@prisma/orm-framework/config/config-types";
|
|
2
|
+
//#region ../../../1-framework/3-tooling/config-loader/dist/exports/index.d.mts
|
|
3
|
+
//#region src/finalize-config.d.ts
|
|
4
|
+
declare function finalizeConfig(config: PrismaNextConfig$1, configDir: string): PrismaNextConfig$1;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/load.d.ts
|
|
7
|
+
declare function findNearestConfigPathForFile(filePath: string): Promise<string | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* Loads, validates, and finalizes the Prisma Next config, mapping every failure
|
|
10
|
+
* to a structured `@internal/errors/control` error (`CliStructuredError`).
|
|
11
|
+
* This is the sole public entry point: callers that need to degrade gracefully
|
|
12
|
+
* (e.g. the language server) branch on the structured error's stable `.code`.
|
|
13
|
+
*/
|
|
14
|
+
declare function loadConfig(configPath?: string): Promise<PrismaNextConfig$1>;
|
|
15
|
+
declare function loadConfigForFile(filePath: string): Promise<PrismaNextConfig$1>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { type PrismaNextConfig, finalizeConfig, findNearestConfigPathForFile, loadConfig, loadConfigForFile };
|
|
18
|
+
//# sourceMappingURL=config-loader.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-loader.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/config-loader/dist/exports/index.d.mts"],"mappings":";;;iBAEiB,eAAe,QAAQ,oBAAoB,oBAAoB;;;iBAG/D,6BAA6B,mBAAmB;;;;;;;iBAOhD,WAAW,sBAAsB,QAAQ;iBACzC,kBAAkB,mBAAmB,QAAQ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../../1-framework/3-tooling/migration/dist/constants-CM-w38DQ.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Sentinel value representing the absence of a contract (empty/new project).
|
|
4
|
+
* This is a human-readable marker, not a real SHA-256 hash.
|
|
5
|
+
*/
|
|
6
|
+
const EMPTY_CONTRACT_HASH = "empty";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { EMPTY_CONTRACT_HASH as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=constants-CM-w38DQ-Cz_EXbOc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CM-w38DQ-Cz_EXbOc.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/constants-CM-w38DQ.mjs"],"sourcesContent":["//#region src/constants.ts\n/**\n* Sentinel value representing the absence of a contract (empty/new project).\n* This is a human-readable marker, not a real SHA-256 hash.\n*/\nconst EMPTY_CONTRACT_HASH = \"empty\";\n//#endregion\nexport { EMPTY_CONTRACT_HASH as t };\n\n//# sourceMappingURL=constants-CM-w38DQ.mjs.map"],"mappings":";;;;;AAKA,MAAM,sBAAsB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../../1-framework/3-tooling/migration/dist/exports/constants.d.mts
|
|
2
|
+
//#region src/constants.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Sentinel value representing the absence of a contract (empty/new project).
|
|
5
|
+
* This is a human-readable marker, not a real SHA-256 hash.
|
|
6
|
+
*/
|
|
7
|
+
declare const EMPTY_CONTRACT_HASH: "empty";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { EMPTY_CONTRACT_HASH as t };
|
|
10
|
+
//# sourceMappingURL=constants-Dkcn8Qu4.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-Dkcn8Qu4.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/exports/constants.d.mts"],"mappings":";;;;;;cAKc"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as MigrationToolsError } from "./errors-IpZm1Skp-BH495dRd.mjs";
|
|
2
|
+
import { N as errorUnexpected, Z as mapMigrationToolsError, d as errorContractValidationFailed, h as errorFileNotFound, k as errorSnapshotMissing, t as CliStructuredError$1 } from "./command-helpers-CAoXqAY9-DWUBcTXM.mjs";
|
|
3
|
+
import { notOk } from "@prisma/orm-framework/utils/result";
|
|
4
|
+
//#region ../../../1-framework/3-tooling/cli/dist/contract-at-errors-BX7w-p19.mjs
|
|
5
|
+
function mapContractAtError(error, options) {
|
|
6
|
+
if (MigrationToolsError.is(error)) switch (error.code) {
|
|
7
|
+
case "MIGRATION.REF_NOT_RESOLVABLE": return notOk(errorSnapshotMissing(typeof error.details?.["refName"] === "string" ? error.details["refName"] : typeof error.details?.["identifier"] === "string" ? error.details["identifier"] : "unknown"));
|
|
8
|
+
case "MIGRATION.CONTRACT_DESERIALIZATION_FAILED": {
|
|
9
|
+
const filePath = typeof error.details?.["filePath"] === "string" ? error.details["filePath"] : "unknown";
|
|
10
|
+
return notOk(errorContractValidationFailed(`Predecessor contract at ${filePath} failed to deserialize: ${typeof error.details?.["message"] === "string" ? error.details["message"] : error.message}`, { where: { path: filePath } }));
|
|
11
|
+
}
|
|
12
|
+
case "MIGRATION.INVALID_JSON": {
|
|
13
|
+
const filePath = typeof error.details?.["filePath"] === "string" ? error.details["filePath"] : "unknown";
|
|
14
|
+
const message = typeof error.details?.["parseError"] === "string" ? error.details["parseError"] : error.message;
|
|
15
|
+
return notOk(errorContractValidationFailed((options?.artifactRole ?? "from") === "to" ? `Target contract at ${filePath} failed to deserialize: ${message}` : `Predecessor contract at ${filePath} failed to deserialize: ${message}`, { where: { path: filePath } }));
|
|
16
|
+
}
|
|
17
|
+
case "MIGRATION.BUNDLE_NOT_FOUND_FOR_GRAPH_NODE": return notOk(errorUnexpected(error.message, {
|
|
18
|
+
why: error.why,
|
|
19
|
+
fix: error.fix
|
|
20
|
+
}));
|
|
21
|
+
case "MIGRATION.CONTRACT_SNAPSHOT_MISSING": {
|
|
22
|
+
const expectedPath = typeof error.details?.["expectedPath"] === "string" ? error.details["expectedPath"] : "migrations/snapshots/";
|
|
23
|
+
return notOk(errorFileNotFound(expectedPath, {
|
|
24
|
+
why: (options?.artifactRole ?? "from") === "to" ? `Target migration is missing its contract snapshot at ${expectedPath}` : `Predecessor migration is missing its contract snapshot at ${expectedPath}`,
|
|
25
|
+
fix: "Restore migrations/snapshots/ from version control, or re-run the command that produced this migration to regenerate its snapshot."
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
default: return notOk(mapMigrationToolsError(error));
|
|
29
|
+
}
|
|
30
|
+
if (CliStructuredError$1.is(error)) return notOk(error);
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { mapContractAtError as t };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=contract-at-errors-BX7w-p19-SxA8eaV2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-at-errors-BX7w-p19-SxA8eaV2.mjs","names":["CliStructuredError"],"sources":["../../../../1-framework/3-tooling/cli/dist/contract-at-errors-BX7w-p19.mjs"],"sourcesContent":["import { B as errorContractValidationFailed, F as CliStructuredError, W as errorFileNotFound, ct as errorUnexpected, it as errorSnapshotMissing, lt as mapMigrationToolsError } from \"./command-helpers-CAoXqAY9.mjs\";\nimport { notOk } from \"@internal/utils/result\";\nimport { MigrationToolsError } from \"@internal/migration-tools/errors\";\n//#region src/utils/contract-at-errors.ts\nfunction mapContractAtError(error, options) {\n\tif (MigrationToolsError.is(error)) switch (error.code) {\n\t\tcase \"MIGRATION.REF_NOT_RESOLVABLE\": return notOk(errorSnapshotMissing(typeof error.details?.[\"refName\"] === \"string\" ? error.details[\"refName\"] : typeof error.details?.[\"identifier\"] === \"string\" ? error.details[\"identifier\"] : \"unknown\"));\n\t\tcase \"MIGRATION.CONTRACT_DESERIALIZATION_FAILED\": {\n\t\t\tconst filePath = typeof error.details?.[\"filePath\"] === \"string\" ? error.details[\"filePath\"] : \"unknown\";\n\t\t\treturn notOk(errorContractValidationFailed(`Predecessor contract at ${filePath} failed to deserialize: ${typeof error.details?.[\"message\"] === \"string\" ? error.details[\"message\"] : error.message}`, { where: { path: filePath } }));\n\t\t}\n\t\tcase \"MIGRATION.INVALID_JSON\": {\n\t\t\tconst filePath = typeof error.details?.[\"filePath\"] === \"string\" ? error.details[\"filePath\"] : \"unknown\";\n\t\t\tconst message = typeof error.details?.[\"parseError\"] === \"string\" ? error.details[\"parseError\"] : error.message;\n\t\t\treturn notOk(errorContractValidationFailed((options?.artifactRole ?? \"from\") === \"to\" ? `Target contract at ${filePath} failed to deserialize: ${message}` : `Predecessor contract at ${filePath} failed to deserialize: ${message}`, { where: { path: filePath } }));\n\t\t}\n\t\tcase \"MIGRATION.BUNDLE_NOT_FOUND_FOR_GRAPH_NODE\": return notOk(errorUnexpected(error.message, {\n\t\t\twhy: error.why,\n\t\t\tfix: error.fix\n\t\t}));\n\t\tcase \"MIGRATION.CONTRACT_SNAPSHOT_MISSING\": {\n\t\t\tconst expectedPath = typeof error.details?.[\"expectedPath\"] === \"string\" ? error.details[\"expectedPath\"] : \"migrations/snapshots/\";\n\t\t\treturn notOk(errorFileNotFound(expectedPath, {\n\t\t\t\twhy: (options?.artifactRole ?? \"from\") === \"to\" ? `Target migration is missing its contract snapshot at ${expectedPath}` : `Predecessor migration is missing its contract snapshot at ${expectedPath}`,\n\t\t\t\tfix: \"Restore migrations/snapshots/ from version control, or re-run the command that produced this migration to regenerate its snapshot.\"\n\t\t\t}));\n\t\t}\n\t\tdefault: return notOk(mapMigrationToolsError(error));\n\t}\n\tif (CliStructuredError.is(error)) return notOk(error);\n\tthrow error;\n}\n//#endregion\nexport { mapContractAtError as t };\n\n//# sourceMappingURL=contract-at-errors-BX7w-p19.mjs.map"],"mappings":";;;;AAIA,SAAS,mBAAmB,OAAO,SAAS;CAC3C,IAAI,oBAAoB,GAAG,KAAK,GAAG,QAAQ,MAAM,MAAd;EAClC,KAAK,gCAAgC,OAAO,MAAM,qBAAqB,OAAO,MAAM,UAAU,eAAe,WAAW,MAAM,QAAQ,aAAa,OAAO,MAAM,UAAU,kBAAkB,WAAW,MAAM,QAAQ,gBAAgB,SAAS,CAAC;EAC/O,KAAK,6CAA6C;GACjD,MAAM,WAAW,OAAO,MAAM,UAAU,gBAAgB,WAAW,MAAM,QAAQ,cAAc;GAC/F,OAAO,MAAM,8BAA8B,2BAA2B,SAAS,0BAA0B,OAAO,MAAM,UAAU,eAAe,WAAW,MAAM,QAAQ,aAAa,MAAM,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,EAAE,CAAC,CAAC;EACrO;EACA,KAAK,0BAA0B;GAC9B,MAAM,WAAW,OAAO,MAAM,UAAU,gBAAgB,WAAW,MAAM,QAAQ,cAAc;GAC/F,MAAM,UAAU,OAAO,MAAM,UAAU,kBAAkB,WAAW,MAAM,QAAQ,gBAAgB,MAAM;GACxG,OAAO,MAAM,+BAA+B,SAAS,gBAAgB,YAAY,OAAO,sBAAsB,SAAS,0BAA0B,YAAY,2BAA2B,SAAS,0BAA0B,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,EAAE,CAAC,CAAC;EACrQ;EACA,KAAK,6CAA6C,OAAO,MAAM,gBAAgB,MAAM,SAAS;GAC7F,KAAK,MAAM;GACX,KAAK,MAAM;EACZ,CAAC,CAAC;EACF,KAAK,uCAAuC;GAC3C,MAAM,eAAe,OAAO,MAAM,UAAU,oBAAoB,WAAW,MAAM,QAAQ,kBAAkB;GAC3G,OAAO,MAAM,kBAAkB,cAAc;IAC5C,MAAM,SAAS,gBAAgB,YAAY,OAAO,wDAAwD,iBAAiB,6DAA6D;IACxL,KAAK;GACN,CAAC,CAAC;EACH;EACA,SAAS,OAAO,MAAM,uBAAuB,KAAK,CAAC;CACpD;CACA,IAAIA,qBAAmB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;CACpD,MAAM;AACP"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { r as executeContractEmit } from "./contract-emit-B6odMoem-CK3diBPk.mjs";
|
|
2
|
+
import { G as formatSuccessMessage, N as errorUnexpected$1, W as formatStyledHeader, X as isVerbose, ct as setCommandExamples, o as createTerminalUI, q as handleResult, r as addGlobalOptions, st as setCommandDescriptions, t as CliStructuredError$1, tt as parseGlobalFlagsOrExit } from "./command-helpers-CAoXqAY9-DWUBcTXM.mjs";
|
|
3
|
+
import { r as getEmittedArtifactPaths } from "./exports-D3-NwrMA-CadaBGQ3.mjs";
|
|
4
|
+
import { r as loadConfig } from "./exports-Dl2aGAk7.mjs";
|
|
5
|
+
import { t as createProgressAdapter } from "./progress-adapter-CjAeTxY_-BXYSd1eY.mjs";
|
|
6
|
+
import { errorContractConfigMissing } from "@prisma/orm-framework/errors/control";
|
|
7
|
+
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
8
|
+
import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
9
|
+
import { dirname, join, relative, resolve } from "pathe";
|
|
10
|
+
import { Command } from "commander";
|
|
11
|
+
//#region ../../../1-framework/3-tooling/cli/dist/contract-emit-0hSjbuxp.mjs
|
|
12
|
+
/**
|
|
13
|
+
* Formats human-readable output for contract emit.
|
|
14
|
+
*/
|
|
15
|
+
function formatEmitOutput(result, flags) {
|
|
16
|
+
if (flags.quiet) return "";
|
|
17
|
+
const lines = [];
|
|
18
|
+
const jsonPath = relative(process.cwd(), result.files.json);
|
|
19
|
+
const dtsPath = relative(process.cwd(), result.files.dts);
|
|
20
|
+
lines.push(`✔ Emitted contract.json → ${jsonPath}`);
|
|
21
|
+
lines.push(`✔ Emitted contract.d.ts → ${dtsPath}`);
|
|
22
|
+
lines.push(` storageHash: ${result.storageHash}`);
|
|
23
|
+
if (result.executionHash) lines.push(` executionHash: ${result.executionHash}`);
|
|
24
|
+
if (result.profileHash) lines.push(` profileHash: ${result.profileHash}`);
|
|
25
|
+
if (isVerbose(flags, 1)) lines.push(` Total time: ${result.timings.total}ms`);
|
|
26
|
+
return lines.join("\n");
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Formats JSON output for contract emit.
|
|
30
|
+
*/
|
|
31
|
+
function formatEmitJson(result) {
|
|
32
|
+
const output = {
|
|
33
|
+
ok: true,
|
|
34
|
+
storageHash: result.storageHash,
|
|
35
|
+
...ifDefined("executionHash", result.executionHash),
|
|
36
|
+
...result.profileHash ? { profileHash: result.profileHash } : {},
|
|
37
|
+
outDir: result.outDir,
|
|
38
|
+
files: result.files,
|
|
39
|
+
timings: result.timings
|
|
40
|
+
};
|
|
41
|
+
return JSON.stringify(output, null, 2);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Pre-load the config just to compute display paths for the styled header. The
|
|
45
|
+
* actual emit work goes through `executeContractEmit`, which loads the config
|
|
46
|
+
* itself; the redundant load here is bounded and lets the header render before
|
|
47
|
+
* the emit spans start.
|
|
48
|
+
*/
|
|
49
|
+
async function resolveHeaderPaths(configOption, outputPath) {
|
|
50
|
+
const displayConfigPath = configOption ? relative(process.cwd(), resolve(configOption)) : "prisma-next.config.ts";
|
|
51
|
+
let config;
|
|
52
|
+
try {
|
|
53
|
+
config = await loadConfig(configOption);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
if (error instanceof CliStructuredError$1) return notOk(error);
|
|
56
|
+
return notOk(errorUnexpected$1(error instanceof Error ? error.message : String(error), { why: "Failed to load config" }));
|
|
57
|
+
}
|
|
58
|
+
const effectiveJsonPath = outputPath !== void 0 ? join(outputPath, "contract.json") : config.contract?.output;
|
|
59
|
+
if (!effectiveJsonPath) return notOk(errorContractConfigMissing({ why: "Config.contract.output is required for emit. Define it in your config: contract: { source: ..., output: ... }" }));
|
|
60
|
+
try {
|
|
61
|
+
const { jsonPath: outputJsonPath, dtsPath: outputDtsPath } = getEmittedArtifactPaths(effectiveJsonPath);
|
|
62
|
+
return ok({
|
|
63
|
+
displayConfigPath,
|
|
64
|
+
outputJsonPath,
|
|
65
|
+
outputDtsPath
|
|
66
|
+
});
|
|
67
|
+
} catch (error) {
|
|
68
|
+
return notOk(errorContractConfigMissing({ why: error instanceof Error ? error.message : String(error) }));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async function executeContractEmitCommand(options, flags, ui, startTime) {
|
|
72
|
+
const outputPath = options.outputPath !== void 0 ? resolve(options.outputPath) : void 0;
|
|
73
|
+
const headerPathsResult = await resolveHeaderPaths(options.config, outputPath);
|
|
74
|
+
if (!headerPathsResult.ok) return headerPathsResult;
|
|
75
|
+
const { displayConfigPath, outputJsonPath, outputDtsPath } = headerPathsResult.value;
|
|
76
|
+
if (!flags.json && !flags.quiet) ui.stderr(formatStyledHeader({
|
|
77
|
+
command: "contract emit",
|
|
78
|
+
description: "Emit your contract artifacts",
|
|
79
|
+
url: "https://pris.ly/contract-emit",
|
|
80
|
+
details: [
|
|
81
|
+
{
|
|
82
|
+
label: "config",
|
|
83
|
+
value: displayConfigPath
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "contract",
|
|
87
|
+
value: relative(process.cwd(), outputJsonPath)
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: "types",
|
|
91
|
+
value: relative(process.cwd(), outputDtsPath)
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
flags
|
|
95
|
+
}));
|
|
96
|
+
const onProgress = createProgressAdapter({
|
|
97
|
+
ui,
|
|
98
|
+
flags
|
|
99
|
+
});
|
|
100
|
+
const configPath = options.config ? resolve(options.config) : "prisma-next.config.ts";
|
|
101
|
+
let result;
|
|
102
|
+
try {
|
|
103
|
+
result = await executeContractEmit({
|
|
104
|
+
configPath,
|
|
105
|
+
onProgress,
|
|
106
|
+
...ifDefined("outputPath", outputPath)
|
|
107
|
+
});
|
|
108
|
+
} catch (error) {
|
|
109
|
+
if (CliStructuredError$1.is(error)) return notOk(error);
|
|
110
|
+
return notOk(errorUnexpected$1("Unexpected error during contract emit", { why: error instanceof Error ? error.message : String(error) }));
|
|
111
|
+
}
|
|
112
|
+
if (result.validationWarning) ui.warn(result.validationWarning);
|
|
113
|
+
return ok({
|
|
114
|
+
storageHash: result.storageHash,
|
|
115
|
+
...ifDefined("executionHash", result.executionHash),
|
|
116
|
+
profileHash: result.profileHash,
|
|
117
|
+
outDir: dirname(result.files.json),
|
|
118
|
+
files: result.files,
|
|
119
|
+
timings: { total: Date.now() - startTime }
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function createContractEmitCommand() {
|
|
123
|
+
const command = new Command("emit");
|
|
124
|
+
setCommandDescriptions(command, "Emit your contract artifacts", "Reads your contract source (TypeScript or Prisma schema) and emits contract.json and\ncontract.d.ts. The contract.json contains the canonical contract structure, and\ncontract.d.ts provides TypeScript types for type-safe query building.");
|
|
125
|
+
setCommandExamples(command, [
|
|
126
|
+
"prisma-next contract emit",
|
|
127
|
+
"prisma-next contract emit --config ./custom-config.ts",
|
|
128
|
+
"prisma-next contract emit --output-path ./generated"
|
|
129
|
+
]);
|
|
130
|
+
addGlobalOptions(command).option("--config <path>", "Path to prisma-next.config.ts").option("--output-path <dir>", "Directory to write contract.json and contract.d.ts into").action(async (options) => {
|
|
131
|
+
const flags = parseGlobalFlagsOrExit(options);
|
|
132
|
+
const ui = createTerminalUI(flags);
|
|
133
|
+
const exitCode = handleResult(await executeContractEmitCommand(options, flags, ui, Date.now()), flags, ui, (emitResult) => {
|
|
134
|
+
if (flags.json) ui.output(formatEmitJson(emitResult));
|
|
135
|
+
else {
|
|
136
|
+
const output = formatEmitOutput(emitResult, flags);
|
|
137
|
+
if (output) ui.log(output);
|
|
138
|
+
if (!flags.quiet) ui.success(formatSuccessMessage(flags));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
process.exit(exitCode);
|
|
142
|
+
});
|
|
143
|
+
return command;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
export { createContractEmitCommand as t };
|
|
147
|
+
|
|
148
|
+
//# sourceMappingURL=contract-emit-0hSjbuxp-BBOKldTZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-emit-0hSjbuxp-BBOKldTZ.mjs","names":["errorUnexpected"],"sources":["../../../../1-framework/3-tooling/cli/dist/contract-emit-0hSjbuxp.mjs"],"sourcesContent":["import { n as executeContractEmit } from \"./contract-emit-B6odMoem.mjs\";\nimport { A as formatStyledHeader, F as CliStructuredError$1, P as isVerbose, _ as createTerminalUI, ct as errorUnexpected, g as parseGlobalFlagsOrExit, j as formatSuccessMessage, l as setCommandDescriptions, t as addGlobalOptions, u as setCommandExamples, y as handleResult } from \"./command-helpers-CAoXqAY9.mjs\";\nimport { t as createProgressAdapter } from \"./progress-adapter-CjAeTxY_.mjs\";\nimport { Command } from \"commander\";\nimport { loadConfig } from \"@internal/config-loader\";\nimport { getEmittedArtifactPaths } from \"@internal/emitter\";\nimport { errorContractConfigMissing } from \"@internal/errors/control\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { dirname, join, relative, resolve } from \"pathe\";\n//#region src/utils/formatters/emit.ts\n/**\n* Formats human-readable output for contract emit.\n*/\nfunction formatEmitOutput(result, flags) {\n\tif (flags.quiet) return \"\";\n\tconst lines = [];\n\tconst jsonPath = relative(process.cwd(), result.files.json);\n\tconst dtsPath = relative(process.cwd(), result.files.dts);\n\tlines.push(`✔ Emitted contract.json → ${jsonPath}`);\n\tlines.push(`✔ Emitted contract.d.ts → ${dtsPath}`);\n\tlines.push(` storageHash: ${result.storageHash}`);\n\tif (result.executionHash) lines.push(` executionHash: ${result.executionHash}`);\n\tif (result.profileHash) lines.push(` profileHash: ${result.profileHash}`);\n\tif (isVerbose(flags, 1)) lines.push(` Total time: ${result.timings.total}ms`);\n\treturn lines.join(\"\\n\");\n}\n/**\n* Formats JSON output for contract emit.\n*/\nfunction formatEmitJson(result) {\n\tconst output = {\n\t\tok: true,\n\t\tstorageHash: result.storageHash,\n\t\t...ifDefined(\"executionHash\", result.executionHash),\n\t\t...result.profileHash ? { profileHash: result.profileHash } : {},\n\t\toutDir: result.outDir,\n\t\tfiles: result.files,\n\t\ttimings: result.timings\n\t};\n\treturn JSON.stringify(output, null, 2);\n}\n//#endregion\n//#region src/commands/contract-emit.ts\n/**\n* Pre-load the config just to compute display paths for the styled header. The\n* actual emit work goes through `executeContractEmit`, which loads the config\n* itself; the redundant load here is bounded and lets the header render before\n* the emit spans start.\n*/\nasync function resolveHeaderPaths(configOption, outputPath) {\n\tconst displayConfigPath = configOption ? relative(process.cwd(), resolve(configOption)) : \"prisma-next.config.ts\";\n\tlet config;\n\ttry {\n\t\tconfig = await loadConfig(configOption);\n\t} catch (error) {\n\t\tif (error instanceof CliStructuredError$1) return notOk(error);\n\t\treturn notOk(errorUnexpected(error instanceof Error ? error.message : String(error), { why: \"Failed to load config\" }));\n\t}\n\tconst effectiveJsonPath = outputPath !== void 0 ? join(outputPath, \"contract.json\") : config.contract?.output;\n\tif (!effectiveJsonPath) return notOk(errorContractConfigMissing({ why: \"Config.contract.output is required for emit. Define it in your config: contract: { source: ..., output: ... }\" }));\n\ttry {\n\t\tconst { jsonPath: outputJsonPath, dtsPath: outputDtsPath } = getEmittedArtifactPaths(effectiveJsonPath);\n\t\treturn ok({\n\t\t\tdisplayConfigPath,\n\t\t\toutputJsonPath,\n\t\t\toutputDtsPath\n\t\t});\n\t} catch (error) {\n\t\treturn notOk(errorContractConfigMissing({ why: error instanceof Error ? error.message : String(error) }));\n\t}\n}\nasync function executeContractEmitCommand(options, flags, ui, startTime) {\n\tconst outputPath = options.outputPath !== void 0 ? resolve(options.outputPath) : void 0;\n\tconst headerPathsResult = await resolveHeaderPaths(options.config, outputPath);\n\tif (!headerPathsResult.ok) return headerPathsResult;\n\tconst { displayConfigPath, outputJsonPath, outputDtsPath } = headerPathsResult.value;\n\tif (!flags.json && !flags.quiet) ui.stderr(formatStyledHeader({\n\t\tcommand: \"contract emit\",\n\t\tdescription: \"Emit your contract artifacts\",\n\t\turl: \"https://pris.ly/contract-emit\",\n\t\tdetails: [\n\t\t\t{\n\t\t\t\tlabel: \"config\",\n\t\t\t\tvalue: displayConfigPath\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: \"contract\",\n\t\t\t\tvalue: relative(process.cwd(), outputJsonPath)\n\t\t\t},\n\t\t\t{\n\t\t\t\tlabel: \"types\",\n\t\t\t\tvalue: relative(process.cwd(), outputDtsPath)\n\t\t\t}\n\t\t],\n\t\tflags\n\t}));\n\tconst onProgress = createProgressAdapter({\n\t\tui,\n\t\tflags\n\t});\n\tconst configPath = options.config ? resolve(options.config) : \"prisma-next.config.ts\";\n\tlet result;\n\ttry {\n\t\tresult = await executeContractEmit({\n\t\t\tconfigPath,\n\t\t\tonProgress,\n\t\t\t...ifDefined(\"outputPath\", outputPath)\n\t\t});\n\t} catch (error) {\n\t\tif (CliStructuredError$1.is(error)) return notOk(error);\n\t\treturn notOk(errorUnexpected(\"Unexpected error during contract emit\", { why: error instanceof Error ? error.message : String(error) }));\n\t}\n\tif (result.validationWarning) ui.warn(result.validationWarning);\n\treturn ok({\n\t\tstorageHash: result.storageHash,\n\t\t...ifDefined(\"executionHash\", result.executionHash),\n\t\tprofileHash: result.profileHash,\n\t\toutDir: dirname(result.files.json),\n\t\tfiles: result.files,\n\t\ttimings: { total: Date.now() - startTime }\n\t});\n}\nfunction createContractEmitCommand() {\n\tconst command = new Command(\"emit\");\n\tsetCommandDescriptions(command, \"Emit your contract artifacts\", \"Reads your contract source (TypeScript or Prisma schema) and emits contract.json and\\ncontract.d.ts. The contract.json contains the canonical contract structure, and\\ncontract.d.ts provides TypeScript types for type-safe query building.\");\n\tsetCommandExamples(command, [\n\t\t\"prisma-next contract emit\",\n\t\t\"prisma-next contract emit --config ./custom-config.ts\",\n\t\t\"prisma-next contract emit --output-path ./generated\"\n\t]);\n\taddGlobalOptions(command).option(\"--config <path>\", \"Path to prisma-next.config.ts\").option(\"--output-path <dir>\", \"Directory to write contract.json and contract.d.ts into\").action(async (options) => {\n\t\tconst flags = parseGlobalFlagsOrExit(options);\n\t\tconst ui = createTerminalUI(flags);\n\t\tconst exitCode = handleResult(await executeContractEmitCommand(options, flags, ui, Date.now()), flags, ui, (emitResult) => {\n\t\t\tif (flags.json) ui.output(formatEmitJson(emitResult));\n\t\t\telse {\n\t\t\t\tconst output = formatEmitOutput(emitResult, flags);\n\t\t\t\tif (output) ui.log(output);\n\t\t\t\tif (!flags.quiet) ui.success(formatSuccessMessage(flags));\n\t\t\t}\n\t\t});\n\t\tprocess.exit(exitCode);\n\t});\n\treturn command;\n}\n//#endregion\nexport { createContractEmitCommand as t };\n\n//#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OAAO,MAAM,KAAK;EACtD,OAAO,MAAMA,kBAAgB,yCAAyC,EAAE,KAAK,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,EAAE,CAAC,CAAC;CACvI;CACA,IAAI,OAAO,mBAAmB,GAAG,KAAK,OAAO,iBAAiB;CAC9D,OAAO,GAAG;EACT,aAAa,OAAO;EACpB,GAAG,UAAU,iBAAiB,OAAO,aAAa;EAClD,aAAa,OAAO;EACpB,QAAQ,QAAQ,OAAO,MAAM,IAAI;EACjC,OAAO,OAAO;EACd,SAAS,EAAE,OAAO,KAAK,IAAI,IAAI,UAAU;CAC1C,CAAC;AACF;AACA,SAAS,4BAA4B;CACpC,MAAM,UAAU,IAAI,QAAQ,MAAM;CAClC,uBAAuB,SAAS,gCAAgC,8OAA8O;CAC9S,mBAAmB,SAAS;EAC3B;EACA;EACA;CACD,CAAC;CACD,iBAAiB,OAAO,CAAC,CAAC,OAAO,mBAAmB,+BAA+B,CAAC,CAAC,OAAO,uBAAuB,yDAAyD,CAAC,CAAC,OAAO,OAAO,YAAY;EACvM,MAAM,QAAQ,uBAAuB,OAAO;EAC5C,MAAM,KAAK,iBAAiB,KAAK;EACjC,MAAM,WAAW,aAAa,MAAM,2BAA2B,SAAS,OAAO,IAAI,KAAK,IAAI,CAAC,GAAG,OAAO,KAAK,eAAe;GAC1H,IAAI,MAAM,MAAM,GAAG,OAAO,eAAe,UAAU,CAAC;QAC/C;IACJ,MAAM,SAAS,iBAAiB,YAAY,KAAK;IACjD,IAAI,QAAQ,GAAG,IAAI,MAAM;IACzB,IAAI,CAAC,MAAM,OAAO,GAAG,QAAQ,qBAAqB,KAAK,CAAC;GACzD;EACD,CAAC;EACD,QAAQ,KAAK,QAAQ;CACtB,CAAC;CACD,OAAO;AACR"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/contract-emit.d.mts
|
|
3
|
+
//#region src/commands/contract-emit.d.ts
|
|
4
|
+
declare function createContractEmitCommand(): Command;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { createContractEmitCommand as t };
|
|
7
|
+
//# sourceMappingURL=contract-emit-B65_UiFn.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-emit-B65_UiFn.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/contract-emit.d.mts"],"mappings":";;;iBAEiB,6BAA6B"}
|