@prisma/orm-toolchain 8.0.0-rc.1-dev.24 → 8.0.0-rc.1-dev.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin__prisma-next.mjs +24 -24
- package/dist/bin__prisma-next.mjs.map +1 -1
- package/dist/{caught-errors-nYuTn3NK-DkD-ZrDr.mjs → caught-errors-B_oGFiYw-BqX49eW0.mjs} +3 -3
- package/dist/{caught-errors-nYuTn3NK-DkD-ZrDr.mjs.map → caught-errors-B_oGFiYw-BqX49eW0.mjs.map} +1 -1
- package/dist/{cli-errors-C7vbvQuK-DLpSxz4U.d.mts → cli-errors-C8DGzS94-CPP3UmRT.d.mts} +6 -5
- package/dist/cli-errors-C8DGzS94-CPP3UmRT.d.mts.map +1 -0
- package/dist/{cli-errors-kU09RUaz-CUkQ9XuM.mjs → cli-errors-CihMAEVj-C1uUYBop.mjs} +122 -28
- package/dist/cli-errors-CihMAEVj-C1uUYBop.mjs.map +1 -0
- package/dist/cli.mjs +383 -14
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__commands__contract-emit.mjs +1 -1
- package/dist/cli__commands__contract-infer.mjs +1 -1
- package/dist/cli__commands__db-init.mjs +1 -1
- package/dist/cli__commands__db-schema.mjs +1 -1
- package/dist/cli__commands__db-sign.mjs +1 -1
- package/dist/cli__commands__db-update.mjs +1 -1
- package/dist/cli__commands__db-verify.mjs +1 -1
- package/dist/cli__commands__migrate.d.mts +2 -2
- package/dist/cli__commands__migrate.mjs +1 -1
- package/dist/cli__commands__migration-check.d.mts +1 -1
- package/dist/cli__commands__migration-check.mjs +2 -2
- package/dist/cli__commands__migration-graph.d.mts +12 -10
- package/dist/cli__commands__migration-graph.d.mts.map +1 -1
- package/dist/cli__commands__migration-graph.mjs +1 -1
- package/dist/cli__commands__migration-list.d.mts +4 -4
- package/dist/cli__commands__migration-list.mjs +1 -1
- package/dist/cli__commands__migration-log.d.mts +4 -4
- package/dist/cli__commands__migration-log.mjs +1 -1
- package/dist/cli__commands__migration-new.mjs +1 -1
- package/dist/cli__commands__migration-plan.d.mts +1 -1
- package/dist/cli__commands__migration-plan.mjs +1 -1
- package/dist/cli__commands__migration-show.d.mts +1 -1
- package/dist/cli__commands__migration-show.mjs +1 -1
- package/dist/cli__commands__migration-status.d.mts +4 -4
- package/dist/cli__commands__migration-status.mjs +2 -2
- package/dist/cli__commands__ref.mjs +1 -1
- package/dist/cli__commands__telemetry.mjs +1 -1
- package/dist/cli__control-api.d.mts +33 -31
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +15 -15
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/{client-milNsAnF-B92uF3yv.mjs → client-CaIWFVnh-PVaTEvdx.mjs} +5 -5
- package/dist/{client-milNsAnF-B92uF3yv.mjs.map → client-CaIWFVnh-PVaTEvdx.mjs.map} +1 -1
- package/dist/{command-helpers-bGYd7Aab-BNSzfbHK.mjs → command-helpers-DutQjYgy-CDfFwtAa.mjs} +16 -5
- package/dist/{command-helpers-bGYd7Aab-BNSzfbHK.mjs.map → command-helpers-DutQjYgy-CDfFwtAa.mjs.map} +1 -1
- package/dist/{contract-at-errors-BTeDEXm4-BAIDia2-.mjs → contract-at-errors-BsQiGdZC-BY8u2is4.mjs} +3 -3
- package/dist/{contract-at-errors-BTeDEXm4-BAIDia2-.mjs.map → contract-at-errors-BsQiGdZC-BY8u2is4.mjs.map} +1 -1
- package/dist/contract-emit-BAfPwP3y-DfV1Stry.mjs +2 -0
- package/dist/{contract-emit-Ci-8sP-b-QzQXK2xQ.mjs → contract-emit-BJDLPMxp-qaGmQUQr.mjs} +6 -6
- package/dist/{contract-emit-Ci-8sP-b-QzQXK2xQ.mjs.map → contract-emit-BJDLPMxp-qaGmQUQr.mjs.map} +1 -1
- package/dist/{contract-emit-Bdf4DAR4-lKqkbfZT.mjs → contract-emit-WIAaN0lC-DKOdtrUQ.mjs} +5 -5
- package/dist/{contract-emit-Bdf4DAR4-lKqkbfZT.mjs.map → contract-emit-WIAaN0lC-DKOdtrUQ.mjs.map} +1 -1
- package/dist/{contract-infer-hhyMJiwS-BJ5cYC9P.mjs → contract-infer-B929dnCJ-KkT9frLY.mjs} +5 -5
- package/dist/{contract-infer-hhyMJiwS-BJ5cYC9P.mjs.map → contract-infer-B929dnCJ-KkT9frLY.mjs.map} +1 -1
- package/dist/{contract-snapshot-resolution-CyvX0DPz-BBQI_70j.mjs → contract-snapshot-resolution-D2f9kGs0-BenF4tbi.mjs} +4 -4
- package/dist/{contract-snapshot-resolution-CyvX0DPz-BBQI_70j.mjs.map → contract-snapshot-resolution-D2f9kGs0-BenF4tbi.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-DOzo1sk9-CCPCubsg.mjs → contract-space-aggregate-loader-sF0OJ6oz-jRjdZoyZ.mjs} +4 -4
- package/dist/{contract-space-aggregate-loader-DOzo1sk9-CCPCubsg.mjs.map → contract-space-aggregate-loader-sF0OJ6oz-jRjdZoyZ.mjs.map} +1 -1
- package/dist/{db-init-3CbSYxRI-BlTkWh8n.mjs → db-init-CU_x-p2M-_6oEFLiG.mjs} +7 -7
- package/dist/db-init-CU_x-p2M-_6oEFLiG.mjs.map +1 -0
- package/dist/{db-schema-BVLbe3EL-WLnbuo77.mjs → db-schema-BKAn8UrM-DP4k7BAB.mjs} +6 -6
- package/dist/{db-schema-BVLbe3EL-WLnbuo77.mjs.map → db-schema-BKAn8UrM-DP4k7BAB.mjs.map} +1 -1
- package/dist/{db-sign-Cdw2RmoG-C-X5UheR.mjs → db-sign-BQF-jVXg-D467Bhpj.mjs} +9 -9
- package/dist/db-sign-BQF-jVXg-D467Bhpj.mjs.map +1 -0
- package/dist/{db-update-BHOdo8PV-BVBNKrJc.mjs → db-update-B0_Q4ykE-CT9vcaMu.mjs} +8 -8
- package/dist/db-update-B0_Q4ykE-CT9vcaMu.mjs.map +1 -0
- package/dist/{db-verify-C9P9oNCs-gieY7hV2.mjs → db-verify-C0DJc8z6-f3gZeEMD.mjs} +9 -9
- package/dist/db-verify-C0DJc8z6-f3gZeEMD.mjs.map +1 -0
- package/dist/{format-Ddhz7xFW-Bo1nhay8.mjs → format-SYdHyutg-IqXk-tDV.mjs} +5 -5
- package/dist/{format-Ddhz7xFW-Bo1nhay8.mjs.map → format-SYdHyutg-IqXk-tDV.mjs.map} +1 -1
- package/dist/{framework-components-Cruf6BPK-CaQvMI3T.mjs → framework-components-CXxMNF8E-C-g2cchI.mjs} +3 -3
- package/dist/{framework-components-Cruf6BPK-CaQvMI3T.mjs.map → framework-components-CXxMNF8E-C-g2cchI.mjs.map} +1 -1
- package/dist/{init-BbmawfZx-DCylULYh.mjs → init-BvE3r7P6-CjJraEPP.mjs} +5 -5
- package/dist/{init-BbmawfZx-DCylULYh.mjs.map → init-BvE3r7P6-CjJraEPP.mjs.map} +1 -1
- package/dist/{inspect-live-schema-BEQun_1x-CZpCgg8A.mjs → inspect-live-schema-D8d7aI6a-_Q_4S5wm.mjs} +6 -6
- package/dist/inspect-live-schema-D8d7aI6a-_Q_4S5wm.mjs.map +1 -0
- package/dist/{invariants-D5TNnX5E-rjPoJGFq.mjs → invariants-TW5CizTS-BsIpi4h4.mjs} +4 -4
- package/dist/{invariants-D5TNnX5E-rjPoJGFq.mjs.map → invariants-TW5CizTS-BsIpi4h4.mjs.map} +1 -1
- package/dist/{legend-BBtAETiW-BHqTbUjx.mjs → legend-QYDKKevn-DCIlAPn4.mjs} +3 -3
- package/dist/{legend-BBtAETiW-BHqTbUjx.mjs.map → legend-QYDKKevn-DCIlAPn4.mjs.map} +1 -1
- package/dist/{migrate-show-CUymfnbM-BbpcO2FY.mjs → migrate-show-C-fdCznr-BH88FGVn.mjs} +7 -7
- package/dist/migrate-show-C-fdCznr-BH88FGVn.mjs.map +1 -0
- package/dist/{migrate-show-g71Z4vJw-ocdTvf70.d.mts → migrate-show-DWIvU6Y_-BQyWhZD1.d.mts} +4 -4
- package/dist/{migrate-show-g71Z4vJw-ocdTvf70.d.mts.map → migrate-show-DWIvU6Y_-BQyWhZD1.d.mts.map} +1 -1
- package/dist/{migrate-B-hpVTxi-DJzFYT2w.mjs → migrate-vNMZJk7M-DKogRyOh.mjs} +14 -14
- package/dist/migrate-vNMZJk7M-DKogRyOh.mjs.map +1 -0
- package/dist/{migration-check-DHYPMUFe-Cni_ZUzB.mjs → migration-check-C-2GTAGq-Duc0P6Uo.mjs} +16 -16
- package/dist/migration-check-C-2GTAGq-Duc0P6Uo.mjs.map +1 -0
- package/dist/{migration-check-zgqYe3SB-B6LI6wY7.mjs → migration-check-DATj3HSn-Del6ZSln.mjs} +26 -21
- package/dist/migration-check-DATj3HSn-Del6ZSln.mjs.map +1 -0
- package/dist/{migration-command-scaffold-DsT7ke7B-D3u913Po.mjs → migration-command-scaffold-BezR8GWB-BZFB2PC-.mjs} +5 -5
- package/dist/{migration-command-scaffold-DsT7ke7B-D3u913Po.mjs.map → migration-command-scaffold-BezR8GWB-BZFB2PC-.mjs.map} +1 -1
- package/dist/{migration-graph-Dm9gU0oE-DxPD_SNA.mjs → migration-graph-B1mg_jel-HVG6FLD0.mjs} +20 -62
- package/dist/migration-graph-B1mg_jel-HVG6FLD0.mjs.map +1 -0
- package/dist/{migration-graph-CChCjts3-ERrIm5aT.mjs → migration-graph-BtP1Va3T-CMOZgqVW.mjs} +3 -3
- package/dist/{migration-graph-CChCjts3-ERrIm5aT.mjs.map → migration-graph-BtP1Va3T-CMOZgqVW.mjs.map} +1 -1
- package/dist/migration-graph-sections-BVqyqBHg-DAwWjIIf.mjs +67 -0
- package/dist/migration-graph-sections-BVqyqBHg-DAwWjIIf.mjs.map +1 -0
- package/dist/{migration-list-Bkase_ZM-D-bErpSr.mjs → migration-list-AKRIIovW-Cr39jOaI.mjs} +3 -3
- package/dist/{migration-list-Bkase_ZM-D-bErpSr.mjs.map → migration-list-AKRIIovW-Cr39jOaI.mjs.map} +1 -1
- package/dist/{migration-list-DDGUTC8Y-B_X7rkez.mjs → migration-list-RSlyGyvD-KKmZtdY1.mjs} +7 -7
- package/dist/{migration-list-DDGUTC8Y-B_X7rkez.mjs.map → migration-list-RSlyGyvD-KKmZtdY1.mjs.map} +1 -1
- package/dist/migration-log-CBfOcyPC-DTqCL1cs.mjs +123 -0
- package/dist/migration-log-CBfOcyPC-DTqCL1cs.mjs.map +1 -0
- package/dist/{migration-log-Cft50PRu-DcnHdxT4.mjs → migration-log-table-C0dSMG9T-BhBYrdka.mjs} +4 -120
- package/dist/migration-log-table-C0dSMG9T-BhBYrdka.mjs.map +1 -0
- package/dist/{migration-new-D9GHbYwF-C8D22HXG.mjs → migration-new-1LYliIXy-BK_Xz0Z6.mjs} +5 -5
- package/dist/{migration-new-D9GHbYwF-C8D22HXG.mjs.map → migration-new-1LYliIXy-BK_Xz0Z6.mjs.map} +1 -1
- package/dist/{migration-new-RorO1I8r-Ch8NQ4GQ.mjs → migration-new-DcPO4tiw-Bew7S-bj.mjs} +7 -7
- package/dist/{migration-new-RorO1I8r-Ch8NQ4GQ.mjs.map → migration-new-DcPO4tiw-Bew7S-bj.mjs.map} +1 -1
- package/dist/{migration-path-target-DhGt62Mi-dm4TU1hJ.mjs → migration-path-target-yA4h5Zc6-DlzBblBG.mjs} +7 -7
- package/dist/migration-path-target-yA4h5Zc6-DlzBblBG.mjs.map +1 -0
- package/dist/{migration-plan-BOhasCLr-GJWYoOA8.mjs → migration-plan-B0z2Qpa5-6b1SJSsb.mjs} +5 -5
- package/dist/{migration-plan-BOhasCLr-GJWYoOA8.mjs.map → migration-plan-B0z2Qpa5-6b1SJSsb.mjs.map} +1 -1
- package/dist/{migration-plan-DrCTzrXH-CDJbdiC6.mjs → migration-plan-Cb7s5Ifx-Bwa2O0Ov.mjs} +8 -8
- package/dist/{migration-plan-DrCTzrXH-CDJbdiC6.mjs.map → migration-plan-Cb7s5Ifx-Bwa2O0Ov.mjs.map} +1 -1
- package/dist/{migration-plan-t2e_8yD2-w5Ffa0V_.d.mts → migration-plan-s94qwFHi-86F_Aklp.d.mts} +4 -4
- package/dist/{migration-plan-t2e_8yD2-w5Ffa0V_.d.mts.map → migration-plan-s94qwFHi-86F_Aklp.d.mts.map} +1 -1
- package/dist/{migration-show-DRARjIbv-1p6EE_Uw.mjs → migration-show-BRy1GVBE-NuwoczhZ.mjs} +13 -22
- package/dist/migration-show-BRy1GVBE-NuwoczhZ.mjs.map +1 -0
- package/dist/{migration-status-Yh0eOQJN-YpcPDpNh.mjs → migration-status-Dob4onB1-0YkQF25g.mjs} +12 -12
- package/dist/migration-status-Dob4onB1-0YkQF25g.mjs.map +1 -0
- package/dist/{project-import-root--e8xli8Z-Bfrvrv67.mjs → project-import-root-Bkz1gPB2-jhrMFebo.mjs} +3 -3
- package/dist/{project-import-root--e8xli8Z-Bfrvrv67.mjs.map → project-import-root-Bkz1gPB2-jhrMFebo.mjs.map} +1 -1
- package/dist/{ref-Cu7Zc1Hv-_R4MnDfr.mjs → ref-B643Z0CS-CoJgdv7h.mjs} +5 -5
- package/dist/{ref-Cu7Zc1Hv-_R4MnDfr.mjs.map → ref-B643Z0CS-CoJgdv7h.mjs.map} +1 -1
- package/dist/{ref-BQcl8Ksv-BYZY0Ktb.mjs → ref-D9J4TNYz-Dk7HCAoq.mjs} +5 -5
- package/dist/{ref-BQcl8Ksv-BYZY0Ktb.mjs.map → ref-D9J4TNYz-Dk7HCAoq.mjs.map} +1 -1
- package/dist/{ref-resolution-BYCRg72z-DFhwf-XR.mjs → ref-resolution-Bi4lpxM8-BX-7sl0f.mjs} +3 -3
- package/dist/{ref-resolution-BYCRg72z-DFhwf-XR.mjs.map → ref-resolution-Bi4lpxM8-BX-7sl0f.mjs.map} +1 -1
- package/dist/{schemas-KhXMzNA_-CzZ7GFX_.mjs → schemas-BMkqaqvM-CLaqlat4.mjs} +9 -3
- package/dist/{schemas-KhXMzNA_-CzZ7GFX_.mjs.map → schemas-BMkqaqvM-CLaqlat4.mjs.map} +1 -1
- package/dist/{schemas-CeGMYFYX-h3OcU__O.d.mts → schemas-Bm2e3Hk1-qLKF0B36.d.mts} +16 -4
- package/dist/{schemas-CeGMYFYX-h3OcU__O.d.mts.map → schemas-Bm2e3Hk1-qLKF0B36.d.mts.map} +1 -1
- package/dist/{telemetry-Dh6e0ams-BsjGN3tQ.mjs → telemetry-DFEbk6sD-BYEW2bCJ.mjs} +4 -4
- package/dist/{telemetry-Dh6e0ams-BsjGN3tQ.mjs.map → telemetry-DFEbk6sD-BYEW2bCJ.mjs.map} +1 -1
- package/dist/{terminal-ui-ypPE9cN6-ilMBkmwT.mjs → terminal-ui-DQNCDg2u-B3PFqjB8.mjs} +10 -3
- package/dist/terminal-ui-DQNCDg2u-B3PFqjB8.mjs.map +1 -0
- package/dist/{verify-DBsKxZrK-eDPxNiSS.mjs → verify-TphNCyMu-h8vrnbud.mjs} +3 -3
- package/dist/{verify-DBsKxZrK-eDPxNiSS.mjs.map → verify-TphNCyMu-h8vrnbud.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/cli-errors-C7vbvQuK-DLpSxz4U.d.mts.map +0 -1
- package/dist/cli-errors-kU09RUaz-CUkQ9XuM.mjs.map +0 -1
- package/dist/contract-emit-E6m8HE42-Bfiodzf_.mjs +0 -2
- package/dist/db-init-3CbSYxRI-BlTkWh8n.mjs.map +0 -1
- package/dist/db-sign-Cdw2RmoG-C-X5UheR.mjs.map +0 -1
- package/dist/db-update-BHOdo8PV-BVBNKrJc.mjs.map +0 -1
- package/dist/db-verify-C9P9oNCs-gieY7hV2.mjs.map +0 -1
- package/dist/inspect-live-schema-BEQun_1x-CZpCgg8A.mjs.map +0 -1
- package/dist/migrate-B-hpVTxi-DJzFYT2w.mjs.map +0 -1
- package/dist/migrate-show-CUymfnbM-BbpcO2FY.mjs.map +0 -1
- package/dist/migration-check-DHYPMUFe-Cni_ZUzB.mjs.map +0 -1
- package/dist/migration-check-zgqYe3SB-B6LI6wY7.mjs.map +0 -1
- package/dist/migration-graph-Dm9gU0oE-DxPD_SNA.mjs.map +0 -1
- package/dist/migration-log-Cft50PRu-DcnHdxT4.mjs.map +0 -1
- package/dist/migration-path-target-DhGt62Mi-dm4TU1hJ.mjs.map +0 -1
- package/dist/migration-show-DRARjIbv-1p6EE_Uw.mjs.map +0 -1
- package/dist/migration-status-Yh0eOQJN-YpcPDpNh.mjs.map +0 -1
- package/dist/terminal-ui-ypPE9cN6-ilMBkmwT.mjs.map +0 -1
package/dist/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":["CliStructuredError"],"sources":["../../../../1-framework/3-tooling/cli/dist/load-config-Aw9VS_dF.mjs","../../../../1-framework/3-tooling/cli/dist/exports/index.mjs"],"sourcesContent":["import { r as buildReadAggregate } from \"./contract-space-aggregate-loader-DOzo1sk9.mjs\";\nimport { n as migrationSpaceListEntriesFromAggregate, r as runMigrationList } from \"./migration-list-Bkase_ZM.mjs\";\nimport { a as renderMigrationGraphLegend, c as renderMigrationListWithStyle, o as createAnsiMigrationListStyler } from \"./migration-graph-command-render-BKrg6BPv.mjs\";\nimport { loadConfig } from \"@internal/config-loader\";\nimport { getEmittedArtifactPaths } from \"@internal/emitter\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { normalize, resolve } from \"pathe\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { DOCS_BASE, isStructuredError } from \"@internal/utils/structured-error\";\nimport { defineCommand, defineCommandFamily, defineConfigSection, flag } from \"@prisma/cli-engine\";\nimport { collectConfigIssues } from \"@internal/config/config-validation\";\nimport { CliStructuredError, notOk, ok } from \"@prisma/cli-engine/protocol\";\nconst MISSING_CONFIG_ACTION = {\n\tkind: \"run-command\",\n\tlabel: \"Create a configuration file\",\n\tcommand: \"prisma-next init\"\n};\nfunction editConfigAction(field) {\n\treturn {\n\t\tkind: \"edit-file\",\n\t\tlabel: `Correct ${field} in prisma-next.config.ts`\n\t};\n}\nfunction issueDiagnostic(issue) {\n\treturn {\n\t\tcode: \"CONFIG.VALIDATION_FAILED\",\n\t\tseverity: \"error\",\n\t\tsummary: issue.message,\n\t\twhy: issue.message,\n\t\tnextActions: [editConfigAction(issue.field)],\n\t\tmeta: {\n\t\t\tfield: issue.field,\n\t\t\tsection: issue.section\n\t\t}\n\t};\n}\nfunction sectionAbsentDiagnostic() {\n\treturn {\n\t\tcode: \"CONFIG.FILE_NOT_FOUND\",\n\t\tseverity: \"error\",\n\t\tsummary: \"No Prisma Next configuration was loaded\",\n\t\twhy: `The orm config section is absent, so prisma-next.config.ts was never evaluated.`,\n\t\tnextActions: [MISSING_CONFIG_ACTION]\n\t};\n}\nfunction notAnObjectDiagnostic() {\n\treturn {\n\t\tcode: \"CONFIG.VALIDATION_FAILED\",\n\t\tseverity: \"error\",\n\t\tsummary: \"Prisma Next configuration must be an object\",\n\t\twhy: `The orm config section is not an object, so no section can be read from it.`,\n\t\tnextActions: [{\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Export a configuration object from prisma-next.config.ts\"\n\t\t}]\n\t};\n}\nfunction unreadableDiagnostic(error) {\n\treturn {\n\t\tcode: \"CONFIG.VALIDATION_FAILED\",\n\t\tseverity: \"error\",\n\t\tsummary: \"Prisma Next configuration could not be inspected\",\n\t\twhy: error instanceof Error ? error.message : String(error),\n\t\tnextActions: [{\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Export a plain configuration object from prisma-next.config.ts\"\n\t\t}]\n\t};\n}\nfunction isRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n/**\n* An emitted artifact listed as its own contract input makes every emit\n* consume its previous output. Structural, filesystem-free, and therefore the\n* section validator's business rather than the loader's.\n*/\nfunction collectArtifactCollisionIssues(raw) {\n\tconst contract = raw[\"contract\"];\n\tif (!isRecord(contract)) return [];\n\tconst source = contract[\"source\"];\n\tconst output = contract[\"output\"];\n\tif (!isRecord(source) || typeof output !== \"string\") return [];\n\tconst inputs = source[\"inputs\"];\n\tif (!Array.isArray(inputs)) return [];\n\tlet emitted;\n\ttry {\n\t\temitted = getEmittedArtifactPaths(output);\n\t} catch (error) {\n\t\treturn [{\n\t\t\tsection: \"contract\",\n\t\t\tfield: \"contract.output\",\n\t\t\tmessage: error instanceof Error ? error.message : String(error)\n\t\t}];\n\t}\n\tconst emittedPaths = /* @__PURE__ */ new Set([normalize(emitted.jsonPath), normalize(emitted.dtsPath)]);\n\tif (!inputs.some((input) => typeof input === \"string\" && emittedPaths.has(normalize(input)))) return [];\n\treturn [{\n\t\tsection: \"contract\",\n\t\tfield: \"contract.source.inputs[]\",\n\t\tmessage: \"Config.contract.source.inputs must not include emitted artifact paths derived from contract.output\"\n\t}];\n}\nfunction validate(raw) {\n\tif (raw === void 0) return {\n\t\tok: false,\n\t\tdiagnostics: [sectionAbsentDiagnostic()]\n\t};\n\tif (!isRecord(raw)) return {\n\t\tok: false,\n\t\tdiagnostics: [notAnObjectDiagnostic()]\n\t};\n\tlet issues;\n\ttry {\n\t\tissues = [...collectConfigIssues(raw), ...collectArtifactCollisionIssues(raw)];\n\t} catch (error) {\n\t\treturn {\n\t\t\tok: false,\n\t\t\tdiagnostics: [unreadableDiagnostic(error)]\n\t\t};\n\t}\n\tif (issues.length > 0) return {\n\t\tok: false,\n\t\tdiagnostics: issues.map(issueDiagnostic)\n\t};\n\treturn {\n\t\tok: true,\n\t\tvalue: blindCast(raw),\n\t\tdiagnostics: []\n\t};\n}\nconst ormConfigSection = defineConfigSection({\n\tname: \"orm\",\n\tvalidate\n});\n//#endregion\n//#region src/orm/normalize-error.ts\n/**\n* `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the\n* regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts\n* reaches `Diagnostic['code']`.\n*/\nfunction isRaisedError(error) {\n\treturn error instanceof Error && isStructuredError(error);\n}\n/**\n* The fallback for anything that is not a structured error: a bare throw, and also an error whose\n* `code` is not a dotted one — a Node `ENOENT`, say. The rejected code survives in `meta` rather\n* than in `code`, where it would produce a docs link to a page that does not exist.\n*/\nfunction toUnexpected(error) {\n\tconst summary = error instanceof Error ? error.message : String(error);\n\tconst rejectedCode = error instanceof Error ? Reflect.get(error, \"code\") : void 0;\n\treturn new CliStructuredError(\"CLI.UNEXPECTED\", summary, {\n\t\t...ifDefined(\"meta\", typeof rejectedCode === \"string\" ? { code: rejectedCode } : void 0),\n\t\tcause: error\n\t});\n}\n/**\n* Both classes name themselves `CliStructuredError`, so the engine's duck test\n* accepts prisma/prisma's too. What actually separates them is `nextActions`:\n* the engine's constructor always sets it, prisma/prisma's never does.\n*/\nfunction conformsToProtocol(error) {\n\treturn CliStructuredError.is(error) && Array.isArray(error.nextActions);\n}\n/**\n* Turns the transitional `fix` prose into typed actions. A multi-line fix is\n* several pieces of advice, so it becomes one action per line.\n*/\nfunction actionsFromFix(fix) {\n\tif (fix === void 0) return [];\n\treturn fix.split(\"\\n\").map((line) => line.trim()).filter((line) => line.length > 0).map((label) => ({\n\t\tkind: \"user-choice\",\n\t\tlabel\n\t}));\n}\n/**\n* Projects a prisma/prisma-raised error onto the engine's diagnostic shape.\n*/\nfunction toEngineDiagnostic(error) {\n\treturn {\n\t\tcode: error.code,\n\t\tseverity: error.severity ?? \"error\",\n\t\tsummary: error.message,\n\t\t...ifDefined(\"why\", error.why),\n\t\tnextActions: actionsFromFix(error.fix),\n\t\t...ifDefined(\"where\", error.where),\n\t\t...ifDefined(\"meta\", error.meta),\n\t\t...ifDefined(\"docsUrl\", error.docsUrl)\n\t};\n}\n/**\n* The handler boundary's single conversion. Handlers pass every error they\n* return through `notOk` — and every error a top-of-handler catch sees —\n* through this, so a settled envelope always carries `nextActions` and never\n* the non-protocol `fix` field.\n*/\nfunction normalizeError(error) {\n\tif (conformsToProtocol(error)) return error;\n\tif (!isRaisedError(error)) return toUnexpected(error);\n\tconst diagnostic = toEngineDiagnostic(error);\n\treturn new CliStructuredError(diagnostic.code, diagnostic.summary, {\n\t\tseverity: diagnostic.severity,\n\t\tnextActions: diagnostic.nextActions,\n\t\t...ifDefined(\"why\", diagnostic.why),\n\t\t...ifDefined(\"where\", diagnostic.where),\n\t\t...ifDefined(\"meta\", diagnostic.meta),\n\t\t...ifDefined(\"docsUrl\", diagnostic.docsUrl),\n\t\tcause: error\n\t});\n}\n//#endregion\n//#region src/orm/define-command.ts\n/**\n* `defineCommand` with the ORM's error boundary already attached. Every ORM command is defined\n* through this rather than through `defineCommand` directly.\n*\n* Without it, an error a handler throws reaches the engine, whose duck test accepts\n* prisma/prisma's `CliStructuredError` — both classes carry that name — and then settles it\n* through fields the engine's own class has and this one does not. The envelope that results is\n* off-protocol. Catching here means every handler settles through the single conversion instead.\n*/\nfunction defineOrmCommand(def) {\n\treturn defineCommand({\n\t\t...def,\n\t\thandler: async (args, ctx) => {\n\t\t\ttry {\n\t\t\t\treturn await def.handler(args, ctx);\n\t\t\t} catch (error) {\n\t\t\t\treturn notOk(normalizeError(error));\n\t\t\t}\n\t\t}\n\t});\n}\n//#endregion\n//#region src/orm/migration/list.ts\n/**\n* Where migrations live for this project. Resolved against the invocation\n* directory, which is also the config file's directory for every default\n* invocation.\n*/\nfunction migrationsDirFor(config, cwd) {\n\treturn resolve(cwd, config.migrations?.dir ?? \"migrations\");\n}\nfunction listPresentations(inputs) {\n\treturn {\n\t\thuman: () => [{\n\t\t\tkind: \"fields\",\n\t\t\trows: [{\n\t\t\t\tlabel: \"migrations\",\n\t\t\t\tvalue: inputs.migrationsDir\n\t\t\t}, ...inputs.space === void 0 ? [] : [{\n\t\t\t\tlabel: \"space\",\n\t\t\t\tvalue: inputs.space\n\t\t\t}]]\n\t\t}, ...inputs.legendLines.length === 0 ? [] : [{\n\t\t\tkind: \"list\",\n\t\t\titems: [...inputs.legendLines]\n\t\t}]],\n\t\tstdout: () => inputs.lines,\n\t\tjson: () => inputs.list\n\t};\n}\nconst migrationListCommand = defineOrmCommand({\n\thelp: {\n\t\tsummary: \"List on-disk migrations per contract space\",\n\t\tdescription: \"Enumerates every on-disk migration under migrations/<space>/ for every\\ncontract space found on disk. Offline — does not consult the database.\\nHuman output draws the shared migration graph tree with operation counts,\\ninvariants on each migration row, and refs on destination contract nodes.\\nPass --space <id> to narrow to one contract space. --ascii forces ASCII\\ntree glyphs.\",\n\t\texamples: [\n\t\t\t\"migration list\",\n\t\t\t\"migration list --space app\",\n\t\t\t\"migration list --ascii\",\n\t\t\t\"migration list --legend\",\n\t\t\t\"migration list --json\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tspace: flag.string({\n\t\t\tbrief: \"Narrow output to a single contract space\",\n\t\t\tplaceholder: \"id\"\n\t\t}),\n\t\tascii: flag.boolean({ brief: \"Use ASCII kind glyphs (pipe-friendly)\" }),\n\t\tlegend: flag.boolean({ brief: \"Print a key for the tree glyphs and lane colors\" })\n\t} },\n\tneeds: { config: ormConfigSection },\n\thandler: async (args, ctx) => {\n\t\tconst migrationsDir = migrationsDirFor(ctx.config, ctx.cwd);\n\t\tconst loaded = await buildReadAggregate(ctx.config, { migrationsDir });\n\t\tif (!loaded.ok) return notOk(normalizeError(loaded.failure));\n\t\tconst { aggregate, contractHash: liveContractHash } = loaded.value;\n\t\tconst listed = runMigrationList({\n\t\t\tspaces: await migrationSpaceListEntriesFromAggregate(aggregate, migrationsDir),\n\t\t\t...ifDefined(\"spaceFilter\", args.flags.space)\n\t\t});\n\t\tif (!listed.ok) return notOk(normalizeError(listed.failure));\n\t\tconst glyphMode = args.flags.ascii ? \"ascii\" : \"unicode\";\n\t\tconst lines = renderMigrationListWithStyle(listed.value, createAnsiMigrationListStyler({ useColor: false }), glyphMode, {\n\t\t\tcolorize: false,\n\t\t\tliveContractHash,\n\t\t\tgraphForSpace: (spaceId) => aggregate.space(spaceId)?.graph(),\n\t\t\tappSpaceId: aggregate.app.spaceId\n\t\t}).split(\"\\n\");\n\t\tconst legendLines = args.flags.legend ? renderMigrationGraphLegend({\n\t\t\tcolorize: false,\n\t\t\tglyphMode\n\t\t}).split(\"\\n\") : [];\n\t\treturn ok(ctx.present({ data: listed.value }, listPresentations({\n\t\t\tlist: listed.value,\n\t\t\tlines,\n\t\t\tmigrationsDir,\n\t\t\tspace: args.flags.space,\n\t\t\tlegendLines\n\t\t})));\n\t}\n});\n//#endregion\n//#region src/orm/family.ts\n/**\n* The engine derives each diagnostic's docs link from this base plus the\n* dotted code.\n*/\nconst DOCS_BASE_URL = `${DOCS_BASE}/`;\n/**\n* The unit the ORM contributes to a CLI: its config section, its commands by\n* name, and where its diagnostics are documented. The shell owns the command\n* tree, so nothing here says where a command mounts.\n*/\nconst ormCommandFamily = defineCommandFamily({\n\tconfigSection: ormConfigSection,\n\tcommands: { \"migration list\": migrationListCommand },\n\tdocsBaseUrl: DOCS_BASE_URL\n});\n//#endregion\n//#region src/orm/load-config.ts\n/**\n* Builds the engine's `Runtime.config` from `prisma-next.config.ts`.\n*\n* The engine's own loader reads `prisma.config.ts` and the `$prismaConfig`\n* marker, which is not the file this bin reads, so the bin owns the load: the\n* ORM's c12 loader evaluates the module asynchronously and finalizes paths\n* against the config file's own directory. The whole result nests as the\n* single `orm` section — the engine models one section per family, and\n* `contract`, `db`, `migrations` and the rest are subsections of it.\n*\n* Only failures that prevent evaluation entirely are diagnostics here, and\n* they carry `section: null` so they fail exactly the commands that read\n* config. Structural verdicts belong to the section validator.\n*/\nasync function loadOrmConfig(options) {\n\tconst loaded = await loadConfig(options.configPath, { cwd: options.cwd });\n\tif (!loaded.ok) return {\n\t\tsections: {},\n\t\tdiagnostics: [{\n\t\t\tsection: null,\n\t\t\tdiagnostic: toEngineDiagnostic(loaded.failure)\n\t\t}]\n\t};\n\treturn {\n\t\tsections: { [\"orm\"]: loaded.value.config },\n\t\tdiagnostics: []\n\t};\n}\n//#endregion\nexport { ormConfigSection as a, normalizeError as i, ormCommandFamily as n, migrationListCommand as r, loadOrmConfig as t };\n\n//# sourceMappingURL=load-config-Aw9VS_dF.mjs.map","import { t as createContractEmitCommand } from \"../contract-emit-Ci-8sP-b.mjs\";\nimport { t as createFormatCommand } from \"../format-Ddhz7xFW.mjs\";\nimport { a as ormConfigSection, n as ormCommandFamily, t as loadOrmConfig } from \"../load-config-Aw9VS_dF.mjs\";\nimport { CliStructuredError } from \"@internal/errors/control\";\nimport { join, resolve } from \"pathe\";\nimport { existsSync, unlinkSync, writeFileSync } from \"node:fs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { tmpdir } from \"node:os\";\nimport { pathToFileURL } from \"node:url\";\nimport { build } from \"esbuild\";\n//#region src/load-ts-contract.ts\nfunction contractSourceError(code, message, options) {\n\tconst error = new CliStructuredError(code, message, options?.meta !== void 0 ? { meta: options.meta } : void 0);\n\tif (options?.cause !== void 0) error.cause = options.cause;\n\treturn error;\n}\nconst DEFAULT_ALLOWLIST = [\n\t\"@internal/*\",\n\t\"@prisma/orm-*\",\n\t\"node:crypto\"\n];\nfunction isAllowedImport(importPath, allowlist) {\n\tfor (const pattern of allowlist) if (pattern.endsWith(\"/*\")) {\n\t\tconst prefix = pattern.slice(0, -2);\n\t\tif (importPath === prefix || importPath.startsWith(`${prefix}/`)) return true;\n\t} else if (pattern.endsWith(\"*\")) {\n\t\tconst prefix = pattern.slice(0, -1);\n\t\tif (importPath.startsWith(prefix)) return true;\n\t} else if (importPath === pattern) return true;\n\treturn false;\n}\nfunction validatePurity(value, entryPath) {\n\tif (typeof value !== \"object\" || value === null) return;\n\tconst path = /* @__PURE__ */ new WeakSet();\n\tfunction check(value) {\n\t\tif (value === null || typeof value !== \"object\") return;\n\t\tif (path.has(value)) throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", \"Contract export contains circular references\", { meta: {\n\t\t\tpath: entryPath,\n\t\t\treason: \"circular\"\n\t\t} });\n\t\tpath.add(value);\n\t\ttry {\n\t\t\tfor (const key in value) {\n\t\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(value, key);\n\t\t\t\tif (descriptor && (descriptor.get || descriptor.set)) throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export contains getter/setter at key \"${key}\"`, { meta: {\n\t\t\t\t\tpath: entryPath,\n\t\t\t\t\treason: \"getter\",\n\t\t\t\t\tkey\n\t\t\t\t} });\n\t\t\t\tif (descriptor && typeof descriptor.value === \"function\") throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export contains function at key \"${key}\"`, { meta: {\n\t\t\t\t\tpath: entryPath,\n\t\t\t\t\treason: \"function\",\n\t\t\t\t\tkey\n\t\t\t\t} });\n\t\t\t\tcheck(value[key]);\n\t\t\t}\n\t\t} finally {\n\t\t\tpath.delete(value);\n\t\t}\n\t}\n\ttry {\n\t\tcheck(value);\n\t\tJSON.stringify(value);\n\t} catch (error) {\n\t\tif (error instanceof Error) {\n\t\t\tif (error.message.includes(\"getter\") || error.message.includes(\"circular\")) throw error;\n\t\t\tthrow contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export is not JSON-serializable: ${error.message}`, {\n\t\t\t\tmeta: {\n\t\t\t\t\tpath: entryPath,\n\t\t\t\t\treason: \"not-json-serializable\"\n\t\t\t\t},\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t\tthrow contractSourceError(\"CONTRACT.EXPORT_INVALID\", \"Contract export is not JSON-serializable\", { meta: {\n\t\t\tpath: entryPath,\n\t\t\treason: \"not-json-serializable\"\n\t\t} });\n\t}\n}\nfunction createImportAllowlistPlugin(allowlist, entryPath, collected) {\n\tconst entryAbs = resolve(entryPath);\n\tfunction isFromEntry(importer) {\n\t\treturn importer === entryAbs || importer === entryPath || importer === \"<stdin>\";\n\t}\n\treturn {\n\t\tname: \"import-allowlist\",\n\t\tsetup(build) {\n\t\t\tbuild.onResolve({ filter: /.*/ }, (args) => {\n\t\t\t\tif (args.kind === \"entry-point\") return;\n\t\t\t\tif (args.path.startsWith(\".\") || args.path.startsWith(\"/\")) return;\n\t\t\t\tif (isFromEntry(args.importer) && !isAllowedImport(args.path, allowlist)) {\n\t\t\t\t\tcollected.add(args.path);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpath: args.path,\n\t\t\t\t\t\texternal: true\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n}\n/**\n* Loads a contract from a TypeScript file and returns it as Contract.\n*\n* **Responsibility: Parsing Only**\n* This function loads and parses a TypeScript contract file. It does NOT normalize the contract.\n* The contract should already be normalized if it was built using the contract builder.\n*\n* Normalization must happen in the contract builder when the contract is created.\n* This function only validates that the contract is JSON-serializable and returns it as-is.\n*\n* @param entryPath - Path to the TypeScript contract file\n* @param options - Optional configuration (import allowlist)\n* @returns The contract as Contract (should already be normalized)\n* @throws structured errors: `CLI.FILE_NOT_FOUND`, `CONTRACT.SOURCE_LOAD_FAILED`,\n* `CONTRACT.SOURCE_IMPORT_DISALLOWED`, `CONTRACT.MODULE_EXPORT_MISSING`, `CONTRACT.EXPORT_INVALID`\n*/\nasync function loadContractFromTs(entryPath, options) {\n\tconst allowlist = options?.allowlist ?? DEFAULT_ALLOWLIST;\n\tif (!existsSync(entryPath)) throw new CliStructuredError(\"CLI.FILE_NOT_FOUND\", `Contract file not found: ${entryPath}`, { where: { path: entryPath } });\n\tconst tempFile = join(tmpdir(), `prisma-next-contract-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);\n\tconst disallowedFromEntry = /* @__PURE__ */ new Set();\n\ttry {\n\t\tconst result = await build({\n\t\t\tentryPoints: [entryPath],\n\t\t\tbundle: true,\n\t\t\tformat: \"esm\",\n\t\t\tplatform: \"node\",\n\t\t\ttarget: \"es2022\",\n\t\t\toutfile: tempFile,\n\t\t\twrite: false,\n\t\t\tmetafile: true,\n\t\t\tplugins: [createImportAllowlistPlugin(allowlist, entryPath, disallowedFromEntry)],\n\t\t\tlogLevel: \"error\"\n\t\t});\n\t\tif (result.errors.length > 0) throw contractSourceError(\"CONTRACT.SOURCE_LOAD_FAILED\", `Failed to bundle contract file: ${result.errors.map((e) => e.text).join(\"\\n\")}`, { meta: {\n\t\t\tpath: entryPath,\n\t\t\tstage: \"bundle\"\n\t\t} });\n\t\tif (!result.outputFiles || result.outputFiles.length === 0) throw new InternalError(\"No output files generated from bundling\");\n\t\tif (disallowedFromEntry.size > 0) throw contractSourceError(\"CONTRACT.SOURCE_IMPORT_DISALLOWED\", `Disallowed imports detected. Only imports matching the allowlist are permitted:\\n Allowlist: ${allowlist.join(\", \")}\\n Disallowed imports: ${[...disallowedFromEntry].join(\", \")}`, { meta: {\n\t\t\tallowlist: [...allowlist],\n\t\t\tdisallowed: [...disallowedFromEntry]\n\t\t} });\n\t\tconst bundleContent = result.outputFiles[0]?.text;\n\t\tif (bundleContent === void 0) throw new InternalError(\"Bundle content is undefined\");\n\t\twriteFileSync(tempFile, bundleContent, \"utf-8\");\n\t\tconst module = await import(\n\t\t\t/* @vite-ignore */\n\t\t\tpathToFileURL(tempFile).href\n);\n\t\tunlinkSync(tempFile);\n\t\tlet contract;\n\t\tif (module.default !== void 0) contract = module.default;\n\t\telse if (module.contract !== void 0) contract = module.contract;\n\t\telse throw new CliStructuredError(\"CONTRACT.MODULE_EXPORT_MISSING\", `Contract file must export a contract as default export or named export 'contract'. Found exports: ${Object.keys(module).join(\", \") || \"none\"}`, { where: { path: entryPath } });\n\t\tif (typeof contract !== \"object\" || contract === null) throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export must be an object, got ${typeof contract}`, { meta: {\n\t\t\tpath: entryPath,\n\t\t\treason: \"not-object\"\n\t\t} });\n\t\tvalidatePurity(contract, entryPath);\n\t\treturn contract;\n\t} catch (error) {\n\t\ttry {\n\t\t\tif (tempFile) unlinkSync(tempFile);\n\t\t} catch {}\n\t\tif (error instanceof Error) throw error;\n\t\tthrow contractSourceError(\"CONTRACT.SOURCE_LOAD_FAILED\", `Failed to load contract from ${entryPath}: ${String(error)}`, {\n\t\t\tmeta: {\n\t\t\t\tpath: entryPath,\n\t\t\t\tstage: \"import\"\n\t\t\t},\n\t\t\tcause: error\n\t\t});\n\t}\n}\n//#endregion\nexport { createContractEmitCommand, createFormatCommand, loadContractFromTs, loadOrmConfig, ormCommandFamily, ormConfigSection };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,wBAAwB;CAC7B,MAAM;CACN,OAAO;CACP,SAAS;AACV;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO;EACN,MAAM;EACN,OAAO,WAAW,MAAM;CACzB;AACD;AACA,SAAS,gBAAgB,OAAO;CAC/B,OAAO;EACN,MAAM;EACN,UAAU;EACV,SAAS,MAAM;EACf,KAAK,MAAM;EACX,aAAa,CAAC,iBAAiB,MAAM,KAAK,CAAC;EAC3C,MAAM;GACL,OAAO,MAAM;GACb,SAAS,MAAM;EAChB;CACD;AACD;AACA,SAAS,0BAA0B;CAClC,OAAO;EACN,MAAM;EACN,UAAU;EACV,SAAS;EACT,KAAK;EACL,aAAa,CAAC,qBAAqB;CACpC;AACD;AACA,SAAS,wBAAwB;CAChC,OAAO;EACN,MAAM;EACN,UAAU;EACV,SAAS;EACT,KAAK;EACL,aAAa,CAAC;GACb,MAAM;GACN,OAAO;EACR,CAAC;CACF;AACD;AACA,SAAS,qBAAqB,OAAO;CACpC,OAAO;EACN,MAAM;EACN,UAAU;EACV,SAAS;EACT,KAAK,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;EAC1D,aAAa,CAAC;GACb,MAAM;GACN,OAAO;EACR,CAAC;CACF;AACD;AACA,SAAS,SAAS,OAAO;CACxB,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC3E;;;;;;AAMA,SAAS,+BAA+B,KAAK;CAC5C,MAAM,WAAW,IAAI;CACrB,IAAI,CAAC,SAAS,QAAQ,GAAG,OAAO,CAAC;CACjC,MAAM,SAAS,SAAS;CACxB,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,SAAS,MAAM,KAAK,OAAO,WAAW,UAAU,OAAO,CAAC;CAC7D,MAAM,SAAS,OAAO;CACtB,IAAI,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;EAC9C,MAAM,SAAS,MAAM;;GAEpB,cAAc,QAAQ,CAAC,CAAC;;EAEzB,WAAW,QAAQ;EACnB,IAAI;EACJ,IAAI,OAAO,YAAY,KAAK,GAAG,WAAW,OAAO;OAC5C,IAAI,OAAO,aAAa,KAAK,GAAG,WAAW,OAAO;OAClD,MAAM,IAAI,mBAAmB,kCAAkC,qGAAqG,OAAO,KAAK,MAAM,CAAC,CAAC,KAAK,IAAI,KAAK,UAAU,EAAE,OAAO,EAAE,MAAM,UAAU,EAAE,CAAC;EACnP,IAAI,OAAO,aAAa,YAAY,aAAa,MAAM,MAAM,oBAAoB,2BAA2B,0CAA0C,OAAO,YAAY,EAAE,MAAM;GAChL,MAAM;GACN,QAAQ;EACT,EAAE,CAAC;EACH,eAAe,UAAU,SAAS;EAClC,OAAO;CACR,SAAS,OAAO;EACf,IAAI;GACH,IAAI,UAAU,WAAW,QAAQ;EAClC,QAAQ,CAAC;EACT,IAAI,iBAAiB,OAAO,MAAM;EAClC,MAAM,oBAAoB,+BAA+B,gCAAgC,UAAU,IAAI,OAAO,KAAK,KAAK;GACvH,MAAM;IACL,MAAM;IACN,OAAO;GACR;GACA,OAAO;EACR,CAAC;CACF;AACD"}
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":["CliStructuredError","errorConfigValidation"],"sources":["../../../../1-framework/3-tooling/cli/dist/load-config-Bj0g_Kv6.mjs","../../../../1-framework/3-tooling/cli/dist/exports/index.mjs"],"sourcesContent":["import { A as errorTargetMigrationNotSupported, M as errorUnexpected, P as requireLiveDatabase, _ as errorMigrationPackageNotFound, i as errorConfigValidation, m as errorLegendHumanOnly, o as errorContractValidationFailed, u as errorFileNotFound, y as errorNoMigrations } from \"./cli-errors-CihMAEVj.mjs\";\nimport { u as renderMigrationShowLines } from \"./terminal-ui-DQNCDg2u.mjs\";\nimport { a as maskConnectionUrl, n as closeQuietly, p as targetSupportsMigrations } from \"./command-helpers-DutQjYgy.mjs\";\nimport { a as loadContractSpaceAggregateForCli, r as buildReadAggregate } from \"./contract-space-aggregate-loader-sF0OJ6oz.mjs\";\nimport { t as createControlClient } from \"./client-CaIWFVnh.mjs\";\nimport { t as mapCaughtMigrationError } from \"./caught-errors-B_oGFiYw.mjs\";\nimport { n as migrationSpaceListEntriesFromAggregate, r as runMigrationList } from \"./migration-list-AKRIIovW.mjs\";\nimport { n as resolveMigrationRef } from \"./ref-resolution-Bi4lpxM8.mjs\";\nimport { a as renderMigrationGraphLegend, c as renderMigrationListWithStyle, o as createAnsiMigrationListStyler } from \"./migration-graph-command-render-BKrg6BPv.mjs\";\nimport { n as looksLikePath, r as resolveAppTargetPath, t as findPackageByDirPath } from \"./migration-path-target-yA4h5Zc6.mjs\";\nimport { t as buildMigrationSpaceGraphEntries } from \"./migration-graph-BtP1Va3T.mjs\";\nimport { n as renderMigrationGraphDot, r as renderMigrationGraphSections, t as buildMigrationGraphTreeSections } from \"./migration-graph-sections-BVqyqBHg.mjs\";\nimport { n as renderMigrationLogTable, r as serializeLedgerEntriesForJson, t as MIGRATION_LOG_EMPTY_MESSAGE } from \"./migration-log-table-C0dSMG9T.mjs\";\nimport { loadConfig } from \"@internal/config-loader\";\nimport { getEmittedArtifactPaths } from \"@internal/emitter\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { normalize, relative, resolve } from \"pathe\";\nimport { readFile } from \"node:fs/promises\";\nimport { APP_SPACE_ID, createControlStack } from \"@internal/framework-components/control\";\nimport { spaceMigrationDirectory } from \"@internal/migration-tools/spaces\";\nimport { blindCast, castAs } from \"@internal/utils/casts\";\nimport { DOCS_BASE, isStructuredError } from \"@internal/utils/structured-error\";\nimport { defineCommand, defineCommandFamily, defineConfigSection, flag, positional } from \"@prisma/cli-engine\";\nimport { collectConfigIssues } from \"@internal/config/config-validation\";\nimport { CliStructuredError, notOk, ok } from \"@prisma/cli-engine/protocol\";\nconst MISSING_CONFIG_ACTION = {\n\tkind: \"run-command\",\n\tlabel: \"Create a configuration file\",\n\tcommand: \"prisma-next init\"\n};\nfunction editConfigAction(field) {\n\treturn {\n\t\tkind: \"edit-file\",\n\t\tlabel: `Correct ${field} in prisma-next.config.ts`\n\t};\n}\nfunction issueDiagnostic(issue) {\n\treturn {\n\t\tcode: \"CONFIG.VALIDATION_FAILED\",\n\t\tseverity: \"error\",\n\t\tsummary: issue.message,\n\t\twhy: issue.message,\n\t\tnextActions: [editConfigAction(issue.field)],\n\t\tmeta: {\n\t\t\tfield: issue.field,\n\t\t\tsection: issue.section\n\t\t}\n\t};\n}\nfunction sectionAbsentDiagnostic() {\n\treturn {\n\t\tcode: \"CONFIG.FILE_NOT_FOUND\",\n\t\tseverity: \"error\",\n\t\tsummary: \"No Prisma Next configuration was loaded\",\n\t\twhy: `The orm config section is absent, so prisma-next.config.ts was never evaluated.`,\n\t\tnextActions: [MISSING_CONFIG_ACTION]\n\t};\n}\nfunction notAnObjectDiagnostic() {\n\treturn {\n\t\tcode: \"CONFIG.VALIDATION_FAILED\",\n\t\tseverity: \"error\",\n\t\tsummary: \"Prisma Next configuration must be an object\",\n\t\twhy: `The orm config section is not an object, so no section can be read from it.`,\n\t\tnextActions: [{\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Export a configuration object from prisma-next.config.ts\"\n\t\t}]\n\t};\n}\nfunction unreadableDiagnostic(error) {\n\treturn {\n\t\tcode: \"CONFIG.VALIDATION_FAILED\",\n\t\tseverity: \"error\",\n\t\tsummary: \"Prisma Next configuration could not be inspected\",\n\t\twhy: error instanceof Error ? error.message : String(error),\n\t\tnextActions: [{\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Export a plain configuration object from prisma-next.config.ts\"\n\t\t}]\n\t};\n}\nfunction isRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n/**\n* An emitted artifact listed as its own contract input makes every emit\n* consume its previous output. Structural, filesystem-free, and therefore the\n* section validator's business rather than the loader's.\n*/\nfunction collectArtifactCollisionIssues(raw) {\n\tconst contract = raw[\"contract\"];\n\tif (!isRecord(contract)) return [];\n\tconst source = contract[\"source\"];\n\tconst output = contract[\"output\"];\n\tif (!isRecord(source) || typeof output !== \"string\") return [];\n\tconst inputs = source[\"inputs\"];\n\tif (!Array.isArray(inputs)) return [];\n\tlet emitted;\n\ttry {\n\t\temitted = getEmittedArtifactPaths(output);\n\t} catch (error) {\n\t\treturn [{\n\t\t\tsection: \"contract\",\n\t\t\tfield: \"contract.output\",\n\t\t\tmessage: error instanceof Error ? error.message : String(error)\n\t\t}];\n\t}\n\tconst emittedPaths = /* @__PURE__ */ new Set([normalize(emitted.jsonPath), normalize(emitted.dtsPath)]);\n\tif (!inputs.some((input) => typeof input === \"string\" && emittedPaths.has(normalize(input)))) return [];\n\treturn [{\n\t\tsection: \"contract\",\n\t\tfield: \"contract.source.inputs[]\",\n\t\tmessage: \"Config.contract.source.inputs must not include emitted artifact paths derived from contract.output\"\n\t}];\n}\nfunction validate(raw) {\n\tif (raw === void 0) return {\n\t\tok: false,\n\t\tdiagnostics: [sectionAbsentDiagnostic()]\n\t};\n\tif (!isRecord(raw)) return {\n\t\tok: false,\n\t\tdiagnostics: [notAnObjectDiagnostic()]\n\t};\n\tlet issues;\n\ttry {\n\t\tissues = [...collectConfigIssues(raw), ...collectArtifactCollisionIssues(raw)];\n\t} catch (error) {\n\t\treturn {\n\t\t\tok: false,\n\t\t\tdiagnostics: [unreadableDiagnostic(error)]\n\t\t};\n\t}\n\tif (issues.length > 0) return {\n\t\tok: false,\n\t\tdiagnostics: issues.map(issueDiagnostic)\n\t};\n\treturn {\n\t\tok: true,\n\t\tvalue: blindCast(raw),\n\t\tdiagnostics: []\n\t};\n}\nconst ormConfigSection = defineConfigSection({\n\tname: \"orm\",\n\tvalidate\n});\n//#endregion\n//#region src/orm/normalize-error.ts\n/**\n* `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the\n* regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts\n* reaches `Diagnostic['code']`.\n*/\nfunction isRaisedError(error) {\n\treturn error instanceof Error && isStructuredError(error);\n}\n/**\n* The fallback for anything that is not a structured error: a bare throw, and also an error whose\n* `code` is not a dotted one — a Node `ENOENT`, say. The rejected code survives in `meta` rather\n* than in `code`, where it would produce a docs link to a page that does not exist.\n*/\nfunction toUnexpected(error) {\n\tconst summary = error instanceof Error ? error.message : String(error);\n\tconst rejectedCode = error instanceof Error ? Reflect.get(error, \"code\") : void 0;\n\treturn new CliStructuredError(\"CLI.UNEXPECTED\", summary, {\n\t\t...ifDefined(\"meta\", typeof rejectedCode === \"string\" ? { code: rejectedCode } : void 0),\n\t\tcause: error\n\t});\n}\n/**\n* Both classes name themselves `CliStructuredError`, so the engine's duck test\n* accepts prisma/prisma's too, and a CLI factory carrying typed actions looks\n* conformant without being one — its `toEnvelope` still writes `fix` and no\n* `nextActions`. Only an error the engine itself built is already in protocol\n* shape, and `@prisma/cli-engine` is an exact-pinned, unbundled dependency, so\n* there is one module instance and identity holds.\n*/\nfunction conformsToProtocol(error) {\n\treturn error instanceof CliStructuredError;\n}\n/**\n* Turns the transitional `fix` prose into typed actions. A multi-line fix is\n* several pieces of advice, so it becomes one action per line.\n*/\nfunction actionsFromFix(fix) {\n\tif (fix === void 0) return [];\n\treturn fix.split(\"\\n\").map((line) => line.trim()).filter((line) => line.length > 0).map((label) => ({\n\t\tkind: \"user-choice\",\n\t\tlabel\n\t}));\n}\n/**\n* Projects a prisma/prisma-raised error onto the engine's diagnostic shape.\n*/\nfunction toEngineDiagnostic(error) {\n\treturn {\n\t\tcode: error.code,\n\t\tseverity: error.severity ?? \"error\",\n\t\tsummary: error.message,\n\t\t...ifDefined(\"why\", error.why),\n\t\tnextActions: error.nextActions ?? actionsFromFix(error.fix),\n\t\t...ifDefined(\"where\", error.where),\n\t\t...ifDefined(\"meta\", error.meta),\n\t\t...ifDefined(\"docsUrl\", error.docsUrl)\n\t};\n}\n/**\n* The handler boundary's single conversion. Handlers pass every error they\n* return through `notOk` — and every error a top-of-handler catch sees —\n* through this, so a settled envelope always carries `nextActions` and never\n* the non-protocol `fix` field.\n*/\nfunction normalizeError(error) {\n\tif (conformsToProtocol(error)) return error;\n\tif (!isRaisedError(error)) return toUnexpected(error);\n\tconst diagnostic = toEngineDiagnostic(error);\n\treturn new CliStructuredError(diagnostic.code, diagnostic.summary, {\n\t\tseverity: diagnostic.severity,\n\t\tnextActions: diagnostic.nextActions,\n\t\t...ifDefined(\"why\", diagnostic.why),\n\t\t...ifDefined(\"where\", diagnostic.where),\n\t\t...ifDefined(\"meta\", diagnostic.meta),\n\t\t...ifDefined(\"docsUrl\", diagnostic.docsUrl),\n\t\tcause: error\n\t});\n}\n//#endregion\n//#region src/orm/define-command.ts\n/**\n* `defineCommand` with the ORM's error boundary already attached. Every ORM command is defined\n* through this rather than through `defineCommand` directly.\n*\n* Without it, an error a handler throws reaches the engine, whose duck test accepts\n* prisma/prisma's `CliStructuredError` — both classes carry that name — and then settles it\n* through fields the engine's own class has and this one does not. The envelope that results is\n* off-protocol. Catching here means every handler settles through the single conversion instead.\n*/\nfunction defineOrmCommand(def) {\n\treturn defineCommand({\n\t\t...def,\n\t\thandler: async (args, ctx) => {\n\t\t\ttry {\n\t\t\t\treturn await def.handler(args, ctx);\n\t\t\t} catch (error) {\n\t\t\t\treturn notOk(normalizeError(error));\n\t\t\t}\n\t\t}\n\t});\n}\n//#endregion\n//#region src/orm/migration/paths.ts\n/**\n* Where migrations live for this project. Resolved against the invocation\n* directory, which is also the config file's directory for every default\n* invocation.\n*/\nfunction migrationsDirFor(config, cwd) {\n\treturn resolve(cwd, config.migrations?.dir ?? \"migrations\");\n}\n/** The app subspace under {@link migrationsDirFor}. */\nfunction appMigrationsDirFor(config, cwd) {\n\treturn spaceMigrationDirectory(migrationsDirFor(config, cwd), APP_SPACE_ID);\n}\n/**\n* The emitted contract. The config loader has already resolved\n* `contract.output` against the config file's directory, so this only has an\n* effect for a config handed in raw, as tests do.\n*/\nfunction contractPathFor(config, cwd) {\n\tconst output = config.contract?.output;\n\treturn output === void 0 ? void 0 : resolve(cwd, output);\n}\n/**\n* The header's rendering of a path: relative to where the user invoked the\n* CLI, as the commander shell rendered it against the config file.\n*/\nfunction displayPath(path, cwd) {\n\treturn relative(cwd, path);\n}\n//#endregion\n//#region src/orm/migration/graph.ts\nfunction graphPresentations(inputs) {\n\treturn {\n\t\thuman: () => [{\n\t\t\tkind: \"fields\",\n\t\t\trows: [{\n\t\t\t\tlabel: \"migrations\",\n\t\t\t\tvalue: inputs.migrationsDir\n\t\t\t}, ...inputs.space === void 0 ? [] : [{\n\t\t\t\tlabel: \"space\",\n\t\t\t\tvalue: inputs.space\n\t\t\t}]]\n\t\t}, ...inputs.legendLines.length === 0 ? [] : [{\n\t\t\tkind: \"list\",\n\t\t\titems: [...inputs.legendLines]\n\t\t}]],\n\t\tstdout: () => inputs.lines,\n\t\tjson: () => inputs.document\n\t};\n}\nfunction graphSummary(spaces) {\n\tconst contracts = spaces.reduce((count, space) => count + space.contracts.length, 0);\n\tconst migrations = spaces.reduce((count, space) => count + space.migrations.length, 0);\n\treturn `${spaces.length} space(s), ${contracts} contract(s), ${migrations} migration(s)`;\n}\nconst migrationGraphCommand = defineOrmCommand({\n\thelp: {\n\t\tsummary: \"Show the migration graph topology\",\n\t\tdescription: \"Renders the migration graph topology. Offline — does not consult the\\ndatabase. --ascii swaps box-drawing for pipe-friendly ASCII glyphs.\\n--dot emits Graphviz DOT for the app graph instead of the tree, and\\nignores --space; in json mode the result carries the DOT text alongside\\nthe graph document.\",\n\t\texamples: [\n\t\t\t\"migration graph\",\n\t\t\t\"migration graph --json\",\n\t\t\t\"migration graph --dot\",\n\t\t\t\"migration graph --ascii\",\n\t\t\t\"migration graph --legend\",\n\t\t\t\"migration graph --space app\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tspace: flag.string({\n\t\t\tbrief: \"Narrow output to a single contract space\",\n\t\t\tplaceholder: \"id\"\n\t\t}),\n\t\tdot: flag.boolean({ brief: \"Emit Graphviz DOT for the app graph\" }),\n\t\tascii: flag.boolean({ brief: \"Use ASCII glyphs (pipe-friendly)\" }),\n\t\tlegend: flag.boolean({ brief: \"Print a key for the tree glyphs and lane colors\" })\n\t} },\n\tneeds: { config: ormConfigSection },\n\thandler: async (args, ctx) => {\n\t\tif (args.flags.legend && args.flags.dot) return notOk(normalizeError(errorLegendHumanOnly(\"--dot\")));\n\t\tconst migrationsDir = migrationsDirFor(ctx.config, ctx.cwd);\n\t\tconst loaded = await buildReadAggregate(ctx.config, { migrationsDir });\n\t\tif (!loaded.ok) return notOk(normalizeError(loaded.failure));\n\t\tconst { aggregate, contractHash: liveContractHash } = loaded.value;\n\t\tconst listed = runMigrationList({\n\t\t\tspaces: await migrationSpaceListEntriesFromAggregate(aggregate, migrationsDir),\n\t\t\t...ifDefined(\"spaceFilter\", args.flags.space)\n\t\t});\n\t\tif (!listed.ok) return notOk(normalizeError(listed.failure));\n\t\tconst scopedSpaces = listed.value.spaces;\n\t\tconst glyphMode = args.flags.ascii ? \"ascii\" : \"unicode\";\n\t\tconst graphSpaces = [...buildMigrationSpaceGraphEntries({\n\t\t\taggregate,\n\t\t\tscopedSpaces\n\t\t})];\n\t\tconst summary = graphSummary(graphSpaces);\n\t\tconst graphDocument = {\n\t\t\tok: true,\n\t\t\tspaces: graphSpaces,\n\t\t\tsummary\n\t\t};\n\t\tconst dot = args.flags.dot ? renderMigrationGraphDot(aggregate.app.graph()) : void 0;\n\t\tconst document = dot === void 0 ? graphDocument : {\n\t\t\t...graphDocument,\n\t\t\tdot\n\t\t};\n\t\tconst lines = dot === void 0 ? renderMigrationGraphSections(buildMigrationGraphTreeSections({\n\t\t\taggregate,\n\t\t\tscopedSpaces,\n\t\t\tliveContractHash,\n\t\t\tglyphMode,\n\t\t\tcolorize: false\n\t\t}), summary).split(\"\\n\") : dot.split(\"\\n\");\n\t\tconst legendLines = args.flags.legend ? renderMigrationGraphLegend({\n\t\t\tcolorize: false,\n\t\t\tglyphMode\n\t\t}).split(\"\\n\") : [];\n\t\treturn ok(ctx.present({ data: document }, graphPresentations({\n\t\t\tdocument,\n\t\t\tlines,\n\t\t\tmigrationsDir: displayPath(migrationsDir, ctx.cwd),\n\t\t\tspace: args.flags.space,\n\t\t\tlegendLines\n\t\t})));\n\t}\n});\n//#endregion\n//#region src/orm/migration/list.ts\nfunction listPresentations(inputs) {\n\treturn {\n\t\thuman: () => [{\n\t\t\tkind: \"fields\",\n\t\t\trows: [{\n\t\t\t\tlabel: \"migrations\",\n\t\t\t\tvalue: inputs.migrationsDir\n\t\t\t}, ...inputs.space === void 0 ? [] : [{\n\t\t\t\tlabel: \"space\",\n\t\t\t\tvalue: inputs.space\n\t\t\t}]]\n\t\t}, ...inputs.legendLines.length === 0 ? [] : [{\n\t\t\tkind: \"list\",\n\t\t\titems: [...inputs.legendLines]\n\t\t}]],\n\t\tstdout: () => inputs.lines,\n\t\tjson: () => inputs.list\n\t};\n}\nconst migrationListCommand = defineOrmCommand({\n\thelp: {\n\t\tsummary: \"List on-disk migrations per contract space\",\n\t\tdescription: \"Enumerates every on-disk migration under migrations/<space>/ for every\\ncontract space found on disk. Offline — does not consult the database.\\nHuman output draws the shared migration graph tree with operation counts,\\ninvariants on each migration row, and refs on destination contract nodes.\\nPass --space <id> to narrow to one contract space. --ascii forces ASCII\\ntree glyphs.\",\n\t\texamples: [\n\t\t\t\"migration list\",\n\t\t\t\"migration list --space app\",\n\t\t\t\"migration list --ascii\",\n\t\t\t\"migration list --legend\",\n\t\t\t\"migration list --json\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tspace: flag.string({\n\t\t\tbrief: \"Narrow output to a single contract space\",\n\t\t\tplaceholder: \"id\"\n\t\t}),\n\t\tascii: flag.boolean({ brief: \"Use ASCII kind glyphs (pipe-friendly)\" }),\n\t\tlegend: flag.boolean({ brief: \"Print a key for the tree glyphs and lane colors\" })\n\t} },\n\tneeds: { config: ormConfigSection },\n\thandler: async (args, ctx) => {\n\t\tconst migrationsDir = migrationsDirFor(ctx.config, ctx.cwd);\n\t\tconst loaded = await buildReadAggregate(ctx.config, { migrationsDir });\n\t\tif (!loaded.ok) return notOk(normalizeError(loaded.failure));\n\t\tconst { aggregate, contractHash: liveContractHash } = loaded.value;\n\t\tconst listed = runMigrationList({\n\t\t\tspaces: await migrationSpaceListEntriesFromAggregate(aggregate, migrationsDir),\n\t\t\t...ifDefined(\"spaceFilter\", args.flags.space)\n\t\t});\n\t\tif (!listed.ok) return notOk(normalizeError(listed.failure));\n\t\tconst glyphMode = args.flags.ascii ? \"ascii\" : \"unicode\";\n\t\tconst lines = renderMigrationListWithStyle(listed.value, createAnsiMigrationListStyler({ useColor: false }), glyphMode, {\n\t\t\tcolorize: false,\n\t\t\tliveContractHash,\n\t\t\tgraphForSpace: (spaceId) => aggregate.space(spaceId)?.graph(),\n\t\t\tappSpaceId: aggregate.app.spaceId\n\t\t}).split(\"\\n\");\n\t\tconst legendLines = args.flags.legend ? renderMigrationGraphLegend({\n\t\t\tcolorize: false,\n\t\t\tglyphMode\n\t\t}).split(\"\\n\") : [];\n\t\treturn ok(ctx.present({ data: listed.value }, listPresentations({\n\t\t\tlist: listed.value,\n\t\t\tlines,\n\t\t\tmigrationsDir: displayPath(migrationsDir, ctx.cwd),\n\t\t\tspace: args.flags.space,\n\t\t\tlegendLines\n\t\t})));\n\t}\n});\n//#endregion\n//#region src/orm/flags.ts\n/**\n* The database connection override, declared from here by every command that\n* accepts one so its brief and placeholder cannot drift apart. Resolution\n* order is the flag, then `config.db.connection`, then\n* `CONFIG.DB_CONNECTION_REQUIRED`.\n*/\nconst dbFlag = flag.string({\n\tbrief: \"Database connection string\",\n\tplaceholder: \"url\"\n});\n//#endregion\n//#region src/orm/migration/log.ts\nfunction logPresentations(inputs) {\n\treturn {\n\t\thuman: () => inputs.database === void 0 ? [] : [{\n\t\t\tkind: \"fields\",\n\t\t\trows: [{\n\t\t\t\tlabel: \"database\",\n\t\t\t\tvalue: inputs.database\n\t\t\t}]\n\t\t}],\n\t\tstdout: () => inputs.lines,\n\t\tjson: () => inputs.document\n\t};\n}\nfunction logLines(entries, options) {\n\tif (entries.length === 0) return [MIGRATION_LOG_EMPTY_MESSAGE];\n\treturn renderMigrationLogTable(entries, {\n\t\tutc: options.utc,\n\t\tstyler: createAnsiMigrationListStyler({ useColor: false }),\n\t\tglyphMode: options.glyphMode\n\t}).split(\"\\n\");\n}\nconst migrationLogCommand = defineOrmCommand({\n\thelp: {\n\t\tsummary: \"Show executed migration history\",\n\t\tdescription: \"Reads the database ledger and displays every applied migration edge in\\nchronological order, including rollbacks and re-applies, merged across\\nall contract spaces. Requires a database connection.\",\n\t\texamples: [\n\t\t\t\"migration log\",\n\t\t\t\"migration log --db $DATABASE_URL\",\n\t\t\t\"migration log --utc\",\n\t\t\t\"migration log --json\"\n\t\t]\n\t},\n\targs: { flags: {\n\t\tdb: dbFlag,\n\t\tutc: flag.boolean({ brief: \"Render human timestamps in UTC instead of local time\" }),\n\t\tascii: flag.boolean({ brief: \"Use ASCII glyphs (pipe-friendly)\" })\n\t} },\n\tneeds: { config: ormConfigSection },\n\thandler: async (args, ctx) => {\n\t\tconst dbConnection = args.flags.db ?? ctx.config.db?.connection;\n\t\tconst missingDb = requireLiveDatabase({\n\t\t\tdbConnection,\n\t\t\thasDriver: ctx.config.driver !== void 0,\n\t\t\twhy: \"migration log needs a database connection and driver to read the ledger (set db.connection in prisma-next.config.ts, or pass --db <url>)\",\n\t\t\tcommandName: \"migration log\"\n\t\t});\n\t\tif (missingDb !== null) return notOk(normalizeError(missingDb));\n\t\tif (!targetSupportsMigrations(ctx.config.target)) return notOk(normalizeError(errorTargetMigrationNotSupported({ why: \"migration log reads the ledger a migration runner writes, and the configured target provides no runner.\" })));\n\t\tconst client = createControlClient({\n\t\t\tfamily: ctx.config.family,\n\t\t\ttarget: ctx.config.target,\n\t\t\tadapter: ctx.config.adapter,\n\t\t\t...ifDefined(\"driver\", ctx.config.driver),\n\t\t\textensions: ctx.config.extensions ?? []\n\t\t});\n\t\tlet entries;\n\t\ttry {\n\t\t\tawait client.connect(dbConnection);\n\t\t\tentries = await client.readLedger();\n\t\t} catch (error) {\n\t\t\treturn notOk(normalizeError(mapCaughtMigrationError(error) ?? errorUnexpected(error instanceof Error ? error.message : String(error), { why: `Failed to read migration log: ${error instanceof Error ? error.message : String(error)}` })));\n\t\t} finally {\n\t\t\tawait closeQuietly(client);\n\t\t}\n\t\tconst records = serializeLedgerEntriesForJson(entries);\n\t\tconst document = {\n\t\t\tok: true,\n\t\t\trecords,\n\t\t\tsummary: `${records.length} migration(s) applied`\n\t\t};\n\t\tconst glyphMode = args.flags.ascii ? \"ascii\" : \"unicode\";\n\t\treturn ok(ctx.present({ data: document }, logPresentations({\n\t\t\tdocument,\n\t\t\tlines: logLines(entries, {\n\t\t\t\tutc: args.flags.utc,\n\t\t\t\tglyphMode\n\t\t\t}),\n\t\t\tdatabase: typeof dbConnection === \"string\" ? maskConnectionUrl(dbConnection) : void 0\n\t\t})));\n\t}\n});\n//#endregion\n//#region src/orm/migration/show.ts\nfunction showPresentations(inputs) {\n\treturn {\n\t\thuman: () => [{\n\t\t\tkind: \"fields\",\n\t\t\trows: [\n\t\t\t\t{\n\t\t\t\t\tlabel: \"contract\",\n\t\t\t\t\tvalue: inputs.contractPath\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: \"migrations\",\n\t\t\t\t\tvalue: inputs.appMigrationsRelative\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: \"target\",\n\t\t\t\t\tvalue: inputs.target\n\t\t\t\t}\n\t\t\t]\n\t\t}],\n\t\tstdout: () => renderMigrationShowLines(inputs.document.migration, { colorize: false }),\n\t\tjson: () => inputs.document\n\t};\n}\n/**\n* A path-looking target must land inside `migrations/app/`; anything else is a\n* migration reference resolved against the app graph and refs. Both routes are\n* app-space only, as they are today.\n*/\nfunction resolvePackage(inputs) {\n\tif (looksLikePath(inputs.target)) {\n\t\tconst path = resolveAppTargetPath(inputs.cwd, inputs.target, inputs.appMigrationsDir, inputs.appMigrationsRelative);\n\t\tif (!path.ok) return notOk(normalizeError(path.failure));\n\t\tconst matched = findPackageByDirPath(inputs.packages, path.value);\n\t\treturn matched === void 0 ? notOk(normalizeError(errorMigrationPackageNotFound(`No loaded migration package at ${relative(inputs.cwd, path.value)}`))) : ok(matched);\n\t}\n\tif (inputs.packages.length === 0) return notOk(normalizeError(errorNoMigrations(inputs.appMigrationsRelative)));\n\tconst ref = resolveMigrationRef(inputs.target, {\n\t\tgraph: inputs.graph,\n\t\trefs: inputs.refs\n\t});\n\tif (!ref.ok) return notOk(normalizeError(ref.failure));\n\tconst matched = inputs.packages.find((candidate) => candidate.metadata.migrationHash === ref.value.migrationHash);\n\treturn matched === void 0 ? notOk(normalizeError(errorMigrationPackageNotFound(`Resolved migration \"${ref.value.dirName}\" but the package was not loaded`))) : ok(matched);\n}\nconst migrationShowCommand = defineOrmCommand({\n\thelp: {\n\t\tsummary: \"Display migration package contents\",\n\t\tdescription: \"Shows the operations, statement preview, and metadata for one app-space\\nmigration. Accepts a directory path, directory name, or hash prefix.\\nOffline — does not consult the database.\",\n\t\texamples: [\n\t\t\t\"migration show 20260101_100000_add_user\",\n\t\t\t\"migration show a1b2c3\",\n\t\t\t\"migration show migrations/app/20260101_100000_add_user\",\n\t\t\t\"migration show 20260101_100000_add_user --json\"\n\t\t]\n\t},\n\targs: { positionals: { target: positional.string({\n\t\tbrief: \"Migration reference: directory name, hash/prefix, ref, or path\",\n\t\tplaceholder: \"target\"\n\t}) } },\n\tneeds: { config: ormConfigSection },\n\thandler: async (args, ctx) => {\n\t\tconst { target } = args.positionals;\n\t\tconst contractPath = contractPathFor(ctx.config, ctx.cwd);\n\t\tif (contractPath === void 0) return notOk(normalizeError(errorConfigValidation(\"contract.output\", {\n\t\t\twhy: \"migration show reads the emitted contract from config.contract.output; the config has no value to read.\",\n\t\t\tsection: \"contract\"\n\t\t})));\n\t\tconst migrationsDir = migrationsDirFor(ctx.config, ctx.cwd);\n\t\tconst appMigrationsDir = appMigrationsDirFor(ctx.config, ctx.cwd);\n\t\tconst appMigrationsRelative = displayPath(appMigrationsDir, ctx.cwd);\n\t\tlet contractJson;\n\t\ttry {\n\t\t\tcontractJson = await readFile(contractPath, \"utf-8\");\n\t\t} catch (error) {\n\t\t\treturn notOk(normalizeError(Reflect.get(Object(error), \"code\") === \"ENOENT\" ? errorFileNotFound(contractPath, {\n\t\t\t\twhy: `Contract file not found at ${contractPath}`,\n\t\t\t\tfix: `Run \\`prisma-next contract emit\\` to generate ${relative(ctx.cwd, contractPath)}`\n\t\t\t}) : errorUnexpected(error instanceof Error ? error.message : String(error), { why: \"Failed to read contract file\" })));\n\t\t}\n\t\tconst familyInstance = ctx.config.family.create(createControlStack(ctx.config));\n\t\tlet appContract;\n\t\ttry {\n\t\t\tappContract = familyInstance.deserializeContract(castAs(JSON.parse(contractJson)));\n\t\t} catch (error) {\n\t\t\treturn notOk(normalizeError(errorContractValidationFailed(`Contract at ${contractPath} failed to deserialize: ${error instanceof Error ? error.message : String(error)}`, { where: { path: contractPath } })));\n\t\t}\n\t\tconst loaded = await loadContractSpaceAggregateForCli({\n\t\t\ttargetId: ctx.config.target.targetId,\n\t\t\tmigrationsDir,\n\t\t\tappContract,\n\t\t\textensions: [],\n\t\t\tdeserializeContract: (json) => familyInstance.deserializeContract(json)\n\t\t});\n\t\tif (!loaded.ok) return notOk(normalizeError(loaded.failure));\n\t\tconst aggregate = loaded.value;\n\t\tconst resolved = resolvePackage({\n\t\t\ttarget,\n\t\t\tcwd: ctx.cwd,\n\t\t\tappMigrationsDir,\n\t\t\tappMigrationsRelative,\n\t\t\tpackages: aggregate.app.packages,\n\t\t\tgraph: aggregate.app.graph(),\n\t\t\trefs: aggregate.app.refs\n\t\t});\n\t\tif (!resolved.ok) return notOk(resolved.failure);\n\t\tconst pkg = resolved.value;\n\t\tconst client = createControlClient({\n\t\t\tfamily: ctx.config.family,\n\t\t\ttarget: ctx.config.target,\n\t\t\tadapter: ctx.config.adapter,\n\t\t\t...ifDefined(\"driver\", ctx.config.driver),\n\t\t\textensions: ctx.config.extensions ?? []\n\t\t});\n\t\tconst ops = castAs(pkg.ops);\n\t\tconst preview = client.toOperationPreview(ops) ?? { statements: [] };\n\t\tconst migration = {\n\t\t\tspace: APP_SPACE_ID,\n\t\t\tname: pkg.dirName,\n\t\t\thash: pkg.metadata.migrationHash,\n\t\t\tfromContract: pkg.metadata.from,\n\t\t\ttoContract: pkg.metadata.to,\n\t\t\tcreatedAt: pkg.metadata.createdAt,\n\t\t\toperations: ops.map((op) => ({\n\t\t\t\tid: op.id,\n\t\t\t\tlabel: op.label,\n\t\t\t\toperationClass: op.operationClass\n\t\t\t})),\n\t\t\tpreview: { statements: [...preview.statements] }\n\t\t};\n\t\tconst document = {\n\t\t\tok: true,\n\t\t\tsummary: `Migration ${migration.name} in ${migration.space}: ${migration.operations.length} operation(s)`,\n\t\t\tmigration\n\t\t};\n\t\treturn ok(ctx.present({ data: document }, showPresentations({\n\t\t\tdocument,\n\t\t\tcontractPath: displayPath(contractPath, ctx.cwd),\n\t\t\tappMigrationsRelative,\n\t\t\ttarget\n\t\t})));\n\t}\n});\n//#endregion\n//#region src/orm/family.ts\n/**\n* The engine derives each diagnostic's docs link from this base plus the\n* dotted code.\n*/\nconst DOCS_BASE_URL = `${DOCS_BASE}/`;\n/**\n* The unit the ORM contributes to a CLI: its config section, its commands by\n* name, and where its diagnostics are documented. The shell owns the command\n* tree, so nothing here says where a command mounts.\n*/\nconst ormCommandFamily = defineCommandFamily({\n\tconfigSection: ormConfigSection,\n\tcommands: {\n\t\t\"migration graph\": migrationGraphCommand,\n\t\t\"migration list\": migrationListCommand,\n\t\t\"migration log\": migrationLogCommand,\n\t\t\"migration show\": migrationShowCommand\n\t},\n\tdocsBaseUrl: DOCS_BASE_URL\n});\n//#endregion\n//#region src/orm/load-config.ts\n/**\n* Builds the engine's `Runtime.config` from `prisma-next.config.ts`.\n*\n* The engine's own loader reads `prisma.config.ts` and the `$prismaConfig`\n* marker, which is not the file this bin reads, so the bin owns the load: the\n* ORM's c12 loader evaluates the module asynchronously and finalizes paths\n* against the config file's own directory. The whole result nests as the\n* single `orm` section — the engine models one section per family, and\n* `contract`, `db`, `migrations` and the rest are subsections of it.\n*\n* Only failures that prevent evaluation entirely are diagnostics here, and\n* they carry `section: null` so they fail exactly the commands that read\n* config. Structural verdicts belong to the section validator.\n*/\nasync function loadOrmConfig(options) {\n\tconst loaded = await loadConfig(options.configPath, { cwd: options.cwd });\n\tif (!loaded.ok) return {\n\t\tsections: {},\n\t\tdiagnostics: [{\n\t\t\tsection: null,\n\t\t\tdiagnostic: toEngineDiagnostic(loaded.failure)\n\t\t}]\n\t};\n\treturn {\n\t\tsections: { [\"orm\"]: loaded.value.config },\n\t\tdiagnostics: []\n\t};\n}\n//#endregion\nexport { migrationListCommand as a, ormConfigSection as c, migrationLogCommand as i, ormCommandFamily as n, migrationGraphCommand as o, migrationShowCommand as r, normalizeError as s, loadOrmConfig as t };\n\n//# sourceMappingURL=load-config-Bj0g_Kv6.mjs.map","import { t as createContractEmitCommand } from \"../contract-emit-BJDLPMxp.mjs\";\nimport { t as createFormatCommand } from \"../format-SYdHyutg.mjs\";\nimport { c as ormConfigSection, n as ormCommandFamily, t as loadOrmConfig } from \"../load-config-Bj0g_Kv6.mjs\";\nimport { CliStructuredError } from \"@internal/errors/control\";\nimport { join, resolve } from \"pathe\";\nimport { existsSync, unlinkSync, writeFileSync } from \"node:fs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { tmpdir } from \"node:os\";\nimport { pathToFileURL } from \"node:url\";\nimport { build } from \"esbuild\";\n//#region src/load-ts-contract.ts\nfunction contractSourceError(code, message, options) {\n\tconst error = new CliStructuredError(code, message, options?.meta !== void 0 ? { meta: options.meta } : void 0);\n\tif (options?.cause !== void 0) error.cause = options.cause;\n\treturn error;\n}\nconst DEFAULT_ALLOWLIST = [\n\t\"@internal/*\",\n\t\"@prisma/orm-*\",\n\t\"node:crypto\"\n];\nfunction isAllowedImport(importPath, allowlist) {\n\tfor (const pattern of allowlist) if (pattern.endsWith(\"/*\")) {\n\t\tconst prefix = pattern.slice(0, -2);\n\t\tif (importPath === prefix || importPath.startsWith(`${prefix}/`)) return true;\n\t} else if (pattern.endsWith(\"*\")) {\n\t\tconst prefix = pattern.slice(0, -1);\n\t\tif (importPath.startsWith(prefix)) return true;\n\t} else if (importPath === pattern) return true;\n\treturn false;\n}\nfunction validatePurity(value, entryPath) {\n\tif (typeof value !== \"object\" || value === null) return;\n\tconst path = /* @__PURE__ */ new WeakSet();\n\tfunction check(value) {\n\t\tif (value === null || typeof value !== \"object\") return;\n\t\tif (path.has(value)) throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", \"Contract export contains circular references\", { meta: {\n\t\t\tpath: entryPath,\n\t\t\treason: \"circular\"\n\t\t} });\n\t\tpath.add(value);\n\t\ttry {\n\t\t\tfor (const key in value) {\n\t\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(value, key);\n\t\t\t\tif (descriptor && (descriptor.get || descriptor.set)) throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export contains getter/setter at key \"${key}\"`, { meta: {\n\t\t\t\t\tpath: entryPath,\n\t\t\t\t\treason: \"getter\",\n\t\t\t\t\tkey\n\t\t\t\t} });\n\t\t\t\tif (descriptor && typeof descriptor.value === \"function\") throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export contains function at key \"${key}\"`, { meta: {\n\t\t\t\t\tpath: entryPath,\n\t\t\t\t\treason: \"function\",\n\t\t\t\t\tkey\n\t\t\t\t} });\n\t\t\t\tcheck(value[key]);\n\t\t\t}\n\t\t} finally {\n\t\t\tpath.delete(value);\n\t\t}\n\t}\n\ttry {\n\t\tcheck(value);\n\t\tJSON.stringify(value);\n\t} catch (error) {\n\t\tif (error instanceof Error) {\n\t\t\tif (error.message.includes(\"getter\") || error.message.includes(\"circular\")) throw error;\n\t\t\tthrow contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export is not JSON-serializable: ${error.message}`, {\n\t\t\t\tmeta: {\n\t\t\t\t\tpath: entryPath,\n\t\t\t\t\treason: \"not-json-serializable\"\n\t\t\t\t},\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t\tthrow contractSourceError(\"CONTRACT.EXPORT_INVALID\", \"Contract export is not JSON-serializable\", { meta: {\n\t\t\tpath: entryPath,\n\t\t\treason: \"not-json-serializable\"\n\t\t} });\n\t}\n}\nfunction createImportAllowlistPlugin(allowlist, entryPath, collected) {\n\tconst entryAbs = resolve(entryPath);\n\tfunction isFromEntry(importer) {\n\t\treturn importer === entryAbs || importer === entryPath || importer === \"<stdin>\";\n\t}\n\treturn {\n\t\tname: \"import-allowlist\",\n\t\tsetup(build) {\n\t\t\tbuild.onResolve({ filter: /.*/ }, (args) => {\n\t\t\t\tif (args.kind === \"entry-point\") return;\n\t\t\t\tif (args.path.startsWith(\".\") || args.path.startsWith(\"/\")) return;\n\t\t\t\tif (isFromEntry(args.importer) && !isAllowedImport(args.path, allowlist)) {\n\t\t\t\t\tcollected.add(args.path);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpath: args.path,\n\t\t\t\t\t\texternal: true\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n}\n/**\n* Loads a contract from a TypeScript file and returns it as Contract.\n*\n* **Responsibility: Parsing Only**\n* This function loads and parses a TypeScript contract file. It does NOT normalize the contract.\n* The contract should already be normalized if it was built using the contract builder.\n*\n* Normalization must happen in the contract builder when the contract is created.\n* This function only validates that the contract is JSON-serializable and returns it as-is.\n*\n* @param entryPath - Path to the TypeScript contract file\n* @param options - Optional configuration (import allowlist)\n* @returns The contract as Contract (should already be normalized)\n* @throws structured errors: `CLI.FILE_NOT_FOUND`, `CONTRACT.SOURCE_LOAD_FAILED`,\n* `CONTRACT.SOURCE_IMPORT_DISALLOWED`, `CONTRACT.MODULE_EXPORT_MISSING`, `CONTRACT.EXPORT_INVALID`\n*/\nasync function loadContractFromTs(entryPath, options) {\n\tconst allowlist = options?.allowlist ?? DEFAULT_ALLOWLIST;\n\tif (!existsSync(entryPath)) throw new CliStructuredError(\"CLI.FILE_NOT_FOUND\", `Contract file not found: ${entryPath}`, { where: { path: entryPath } });\n\tconst tempFile = join(tmpdir(), `prisma-next-contract-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);\n\tconst disallowedFromEntry = /* @__PURE__ */ new Set();\n\ttry {\n\t\tconst result = await build({\n\t\t\tentryPoints: [entryPath],\n\t\t\tbundle: true,\n\t\t\tformat: \"esm\",\n\t\t\tplatform: \"node\",\n\t\t\ttarget: \"es2022\",\n\t\t\toutfile: tempFile,\n\t\t\twrite: false,\n\t\t\tmetafile: true,\n\t\t\tplugins: [createImportAllowlistPlugin(allowlist, entryPath, disallowedFromEntry)],\n\t\t\tlogLevel: \"error\"\n\t\t});\n\t\tif (result.errors.length > 0) throw contractSourceError(\"CONTRACT.SOURCE_LOAD_FAILED\", `Failed to bundle contract file: ${result.errors.map((e) => e.text).join(\"\\n\")}`, { meta: {\n\t\t\tpath: entryPath,\n\t\t\tstage: \"bundle\"\n\t\t} });\n\t\tif (!result.outputFiles || result.outputFiles.length === 0) throw new InternalError(\"No output files generated from bundling\");\n\t\tif (disallowedFromEntry.size > 0) throw contractSourceError(\"CONTRACT.SOURCE_IMPORT_DISALLOWED\", `Disallowed imports detected. Only imports matching the allowlist are permitted:\\n Allowlist: ${allowlist.join(\", \")}\\n Disallowed imports: ${[...disallowedFromEntry].join(\", \")}`, { meta: {\n\t\t\tallowlist: [...allowlist],\n\t\t\tdisallowed: [...disallowedFromEntry]\n\t\t} });\n\t\tconst bundleContent = result.outputFiles[0]?.text;\n\t\tif (bundleContent === void 0) throw new InternalError(\"Bundle content is undefined\");\n\t\twriteFileSync(tempFile, bundleContent, \"utf-8\");\n\t\tconst module = await import(\n\t\t\t/* @vite-ignore */\n\t\t\tpathToFileURL(tempFile).href\n);\n\t\tunlinkSync(tempFile);\n\t\tlet contract;\n\t\tif (module.default !== void 0) contract = module.default;\n\t\telse if (module.contract !== void 0) contract = module.contract;\n\t\telse throw new CliStructuredError(\"CONTRACT.MODULE_EXPORT_MISSING\", `Contract file must export a contract as default export or named export 'contract'. Found exports: ${Object.keys(module).join(\", \") || \"none\"}`, { where: { path: entryPath } });\n\t\tif (typeof contract !== \"object\" || contract === null) throw contractSourceError(\"CONTRACT.EXPORT_INVALID\", `Contract export must be an object, got ${typeof contract}`, { meta: {\n\t\t\tpath: entryPath,\n\t\t\treason: \"not-object\"\n\t\t} });\n\t\tvalidatePurity(contract, entryPath);\n\t\treturn contract;\n\t} catch (error) {\n\t\ttry {\n\t\t\tif (tempFile) unlinkSync(tempFile);\n\t\t} catch {}\n\t\tif (error instanceof Error) throw error;\n\t\tthrow contractSourceError(\"CONTRACT.SOURCE_LOAD_FAILED\", `Failed to load contract from ${entryPath}: ${String(error)}`, {\n\t\t\tmeta: {\n\t\t\t\tpath: entryPath,\n\t\t\t\tstage: \"import\"\n\t\t\t},\n\t\t\tcause: error\n\t\t});\n\t}\n}\n//#endregion\nexport { createContractEmitCommand, createFormatCommand, loadContractFromTs, loadOrmConfig, ormCommandFamily, ormConfigSection };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAM,wBAAwB;CAC7B,MAAM;CACN,OAAO;CACP,SAAS;AACV;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO;EACN,MAAM;EACN,OAAO,WAAW,MAAM;CACzB;AACD;AACA,SAAS,gBAAgB,OAAO;CAC/B,OAAO;EACN,MAAM;EACN,UAAU;EACV,SAAS,MAAM;EACf,KAAK,MAAM;EACX,aAAa,CAAC,iBAAiB,MAAM,KAAK,CAAC;EAC3C,MAAM;GACL,OAAO,MAAM;GACb,SAAS,MAAM;EAChB;CACD;AACD;AACA,SAAS,0BAA0B;CAClC,OAAO;EACN,MAAM;EACN,UAAU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Q,CAAC;EACT,IAAI,iBAAiB,OAAO,MAAM;EAClC,MAAM,oBAAoB,+BAA+B,gCAAgC,UAAU,IAAI,OAAO,KAAK,KAAK;GACvH,MAAM;IACL,MAAM;IACN,OAAO;GACR;GACA,OAAO;EACR,CAAC;CACF;AACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createContractEmitCommand } from "./contract-emit-
|
|
1
|
+
import { t as createContractEmitCommand } from "./contract-emit-BJDLPMxp-qaGmQUQr.mjs";
|
|
2
2
|
export { createContractEmitCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createContractInferCommand } from "./contract-infer-
|
|
1
|
+
import { t as createContractInferCommand } from "./contract-infer-B929dnCJ-KkT9frLY.mjs";
|
|
2
2
|
export { createContractInferCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbInitCommand } from "./db-init-
|
|
1
|
+
import { t as createDbInitCommand } from "./db-init-CU_x-p2M-_6oEFLiG.mjs";
|
|
2
2
|
export { createDbInitCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbSchemaCommand } from "./db-schema-
|
|
1
|
+
import { t as createDbSchemaCommand } from "./db-schema-BKAn8UrM-DP4k7BAB.mjs";
|
|
2
2
|
export { createDbSchemaCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbSignCommand } from "./db-sign-
|
|
1
|
+
import { t as createDbSignCommand } from "./db-sign-BQF-jVXg-D467Bhpj.mjs";
|
|
2
2
|
export { createDbSignCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbUpdateCommand } from "./db-update-
|
|
1
|
+
import { t as createDbUpdateCommand } from "./db-update-B0_Q4ykE-CT9vcaMu.mjs";
|
|
2
2
|
export { createDbUpdateCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbVerifyCommand } from "./db-verify-
|
|
1
|
+
import { t as createDbVerifyCommand } from "./db-verify-C0DJc8z6-f3gZeEMD.mjs";
|
|
2
2
|
export { createDbVerifyCommand };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as PerSpaceExecutionEntry, D as MigratePathDecision } from "./cli-errors-
|
|
2
|
-
import { n as MigrateShowMigration } from "./migrate-show-
|
|
1
|
+
import { A as PerSpaceExecutionEntry, D as MigratePathDecision } from "./cli-errors-C8DGzS94-CPP3UmRT.mjs";
|
|
2
|
+
import { n as MigrateShowMigration } from "./migrate-show-DWIvU6Y_-BQyWhZD1.mjs";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migrate.d.mts
|
|
5
5
|
//#region src/commands/migrate.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrateCommand } from "./migrate-
|
|
1
|
+
import { t as createMigrateCommand } from "./migrate-vNMZJk7M-DKogRyOh.mjs";
|
|
2
2
|
export { createMigrateCommand };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as migrationCheckResultSchema, n as MigrationCheckResult, t as CheckFailure } from "./schemas-
|
|
1
|
+
import { f as migrationCheckResultSchema, n as MigrationCheckResult, t as CheckFailure } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-check.d.mts
|
|
4
4
|
//#region src/commands/migration-check.d.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as migrationCheckResultSchema } from "./schemas-
|
|
2
|
-
import { t as createMigrationCheckCommand } from "./migration-check-
|
|
1
|
+
import { t as migrationCheckResultSchema } from "./schemas-BMkqaqvM-CLaqlat4.mjs";
|
|
2
|
+
import { t as createMigrationCheckCommand } from "./migration-check-DATj3HSn-Del6ZSln.mjs";
|
|
3
3
|
export { createMigrationCheckCommand, migrationCheckResultSchema };
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
2
|
-
import { t as CliStructuredError$
|
|
3
|
-
import { o as MigrationSpaceGraphEntry } from "./schemas-
|
|
4
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
2
|
+
import { t as CliStructuredError$2 } from "./cli-errors-C8DGzS94-CPP3UmRT.mjs";
|
|
3
|
+
import { o as MigrationSpaceGraphEntry } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
5
4
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
5
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
6
6
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
7
7
|
import { Command } from "commander";
|
|
8
8
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-graph.d.mts
|
|
9
|
+
//#region src/utils/formatters/migration-graph-sections.d.ts
|
|
10
|
+
interface MigrationGraphTreeSection {
|
|
11
|
+
readonly space: string;
|
|
12
|
+
readonly tree: string;
|
|
13
|
+
readonly showHeading: boolean;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
9
16
|
//#region src/commands/migration-graph.d.ts
|
|
10
17
|
interface MigrationGraphOptions extends CommonCommandOptions {
|
|
11
18
|
readonly config?: string;
|
|
@@ -14,11 +21,6 @@ interface MigrationGraphOptions extends CommonCommandOptions {
|
|
|
14
21
|
readonly ascii?: boolean;
|
|
15
22
|
readonly legend?: boolean;
|
|
16
23
|
}
|
|
17
|
-
interface MigrationGraphTreeSection {
|
|
18
|
-
readonly space: string;
|
|
19
|
-
readonly tree: string;
|
|
20
|
-
readonly showHeading: boolean;
|
|
21
|
-
}
|
|
22
24
|
interface MigrationGraphResult {
|
|
23
25
|
readonly ok: true;
|
|
24
26
|
/** App-space graph for the `--dot` Graphviz output. */
|
|
@@ -29,8 +31,8 @@ interface MigrationGraphResult {
|
|
|
29
31
|
readonly summary: string;
|
|
30
32
|
}
|
|
31
33
|
declare function formatMigrationGraphHumanOutput(result: MigrationGraphResult): string;
|
|
32
|
-
declare function executeMigrationGraphCommand(options: MigrationGraphOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationGraphResult, CliStructuredError$
|
|
34
|
+
declare function executeMigrationGraphCommand(options: MigrationGraphOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationGraphResult, CliStructuredError$2>>;
|
|
33
35
|
declare function createMigrationGraphCommand(): Command;
|
|
34
36
|
//#endregion
|
|
35
|
-
export { MigrationGraphResult,
|
|
37
|
+
export { MigrationGraphResult, createMigrationGraphCommand, executeMigrationGraphCommand, formatMigrationGraphHumanOutput };
|
|
36
38
|
//# sourceMappingURL=cli__commands__migration-graph.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli__commands__migration-graph.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/migration-graph.d.mts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cli__commands__migration-graph.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/migration-graph.d.mts"],"mappings":";;;;;;;;;UASU;WACC;WACA;WACA;;;;UAID,8BAA8B;WAC7B;WACA;WACA;WACA;WACA;;UAED;WACC;;WAEA,OAAO;;WAEP,iBAAiB;WACjB,uBAAuB;WACvB;;iBAEM,gCAAgC,QAAQ;iBACxC,6BAA6B,SAAS,uBAAuB,OAAO,aAAa,IAAI,aAAa,QAAQ,OAAO,sBAAsB;iBACvI,+BAA+B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationGraphCommand, r as formatMigrationGraphHumanOutput, t as createMigrationGraphCommand } from "./migration-graph-
|
|
1
|
+
import { n as executeMigrationGraphCommand, r as formatMigrationGraphHumanOutput, t as createMigrationGraphCommand } from "./migration-graph-B1mg_jel-HVG6FLD0.mjs";
|
|
2
2
|
export { createMigrationGraphCommand, executeMigrationGraphCommand, formatMigrationGraphHumanOutput };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
2
|
-
import { t as CliStructuredError$
|
|
2
|
+
import { t as CliStructuredError$2 } from "./cli-errors-C8DGzS94-CPP3UmRT.mjs";
|
|
3
3
|
import { c as ContractSpaceAggregate } from "./aggregate-CA6bJ8UO.mjs";
|
|
4
|
-
import { r as MigrationListResult } from "./schemas-
|
|
5
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
4
|
+
import { r as MigrationListResult } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
6
5
|
import { n as TerminalUI, t as GlyphMode } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
6
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
7
7
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
8
8
|
import { Command } from "commander";
|
|
9
9
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-list.d.mts
|
|
@@ -32,7 +32,7 @@ declare function renderMigrationListHumanOutput(result: MigrationListResult, opt
|
|
|
32
32
|
* stderr (interactive mode only), and delegates to {@link runMigrationList}.
|
|
33
33
|
* Kept intentionally thin so the unit-testable surface lives in the core.
|
|
34
34
|
*/
|
|
35
|
-
declare function executeMigrationListCommand(options: MigrationListOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationListExecuteResult, CliStructuredError$
|
|
35
|
+
declare function executeMigrationListCommand(options: MigrationListOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationListExecuteResult, CliStructuredError$2>>;
|
|
36
36
|
declare function createMigrationListCommand(): Command;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { MigrationListExecuteResult, MigrationListHumanRenderOptions, createMigrationListCommand, executeMigrationListCommand, renderMigrationListHumanOutput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationListCommand, r as renderMigrationListHumanOutput, t as createMigrationListCommand } from "./migration-list-
|
|
1
|
+
import { n as executeMigrationListCommand, r as renderMigrationListHumanOutput, t as createMigrationListCommand } from "./migration-list-RSlyGyvD-KKmZtdY1.mjs";
|
|
2
2
|
export { createMigrationListCommand, executeMigrationListCommand, renderMigrationListHumanOutput };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as CliStructuredError$
|
|
2
|
-
import { i as MigrationLogResult } from "./schemas-
|
|
3
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
1
|
+
import { t as CliStructuredError$2 } from "./cli-errors-C8DGzS94-CPP3UmRT.mjs";
|
|
2
|
+
import { i as MigrationLogResult } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
4
3
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
4
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
5
5
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
@@ -13,7 +13,7 @@ interface MigrationLogOptions extends CommonCommandOptions {
|
|
|
13
13
|
readonly utc?: boolean;
|
|
14
14
|
readonly ascii?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare function executeMigrationLogCommand(options: MigrationLogOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<readonly LedgerEntryRecord[], CliStructuredError$
|
|
16
|
+
declare function executeMigrationLogCommand(options: MigrationLogOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<readonly LedgerEntryRecord[], CliStructuredError$2>>;
|
|
17
17
|
declare function createMigrationLogCommand(): Command;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { type MigrationLogResult, createMigrationLogCommand, executeMigrationLogCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-
|
|
1
|
+
import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-CBfOcyPC-DTqCL1cs.mjs";
|
|
2
2
|
export { createMigrationLogCommand, executeMigrationLogCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrationNewCommand } from "./migration-new-
|
|
1
|
+
import { t as createMigrationNewCommand } from "./migration-new-1LYliIXy-BK_Xz0Z6.mjs";
|
|
2
2
|
export { createMigrationNewCommand };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as GlobalFlags } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
2
|
-
import { i as MigrationPlanResult } from "./migration-plan-
|
|
2
|
+
import { i as MigrationPlanResult } from "./migration-plan-s94qwFHi-86F_Aklp.mjs";
|
|
3
3
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-plan.d.mts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-
|
|
1
|
+
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-B0z2Qpa5-6b1SJSsb.mjs";
|
|
2
2
|
export { createMigrationPlanCommand, formatMigrationPlanOutput, resolveBundleByPrefix };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MigrationShowResult } from "./schemas-
|
|
1
|
+
import { a as MigrationShowResult } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-show.d.mts
|
|
4
4
|
//#region src/commands/migration-show.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrationShowCommand } from "./migration-show-
|
|
1
|
+
import { t as createMigrationShowCommand } from "./migration-show-BRy1GVBE-NuwoczhZ.mjs";
|
|
2
2
|
export { createMigrationShowCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as CliStructuredError$
|
|
2
|
-
import { c as MigrationStatusEntry, d as StatusDiagnosticJson, l as MigrationStatusResult, p as migrationStatusJsonResultSchema, u as MigrationStatusSpace } from "./schemas-
|
|
3
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
1
|
+
import { t as CliStructuredError$2 } from "./cli-errors-C8DGzS94-CPP3UmRT.mjs";
|
|
2
|
+
import { c as MigrationStatusEntry, d as StatusDiagnosticJson, l as MigrationStatusResult, p as migrationStatusJsonResultSchema, u as MigrationStatusSpace } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
4
3
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
4
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
5
5
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-status.d.mts
|
|
@@ -48,7 +48,7 @@ declare function buildStatusHeadline(args: {
|
|
|
48
48
|
}): string;
|
|
49
49
|
declare function formatStatusSummary(result: MigrationStatusCommandResult, colorize: boolean): string;
|
|
50
50
|
declare function formatStatusHumanOutput(result: MigrationStatusCommandResult, colorize: boolean): string;
|
|
51
|
-
declare function executeMigrationStatusCommand(options: MigrationStatusOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationStatusCommandResult, CliStructuredError$
|
|
51
|
+
declare function executeMigrationStatusCommand(options: MigrationStatusOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationStatusCommandResult, CliStructuredError$2>>;
|
|
52
52
|
declare function createMigrationStatusCommand(): Command;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { type MigrationStatusEntry, MigrationStatusOptions, type MigrationStatusResult, type MigrationStatusSpace, MigrationStatusTreeSection, type StatusDiagnosticJson, type StatusRef, buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as migrationStatusJsonResultSchema } from "./schemas-
|
|
2
|
-
import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-
|
|
1
|
+
import { n as migrationStatusJsonResultSchema } from "./schemas-BMkqaqvM-CLaqlat4.mjs";
|
|
2
|
+
import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-Dob4onB1-0YkQF25g.mjs";
|
|
3
3
|
export { buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createRefCommand } from "./ref-
|
|
1
|
+
import { t as createRefCommand } from "./ref-B643Z0CS-CoJgdv7h.mjs";
|
|
2
2
|
export { createRefCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createTelemetryCommand } from "./telemetry-
|
|
1
|
+
import { t as createTelemetryCommand } from "./telemetry-DFEbk6sD-BYEW2bCJ.mjs";
|
|
2
2
|
export { createTelemetryCommand };
|