@prisma/orm-toolchain 0.16.0-dev.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +28 -0
- package/dist/aggregate-B4mhR4Sk.mjs +1012 -0
- package/dist/aggregate-B4mhR4Sk.mjs.map +1 -0
- package/dist/aggregate-BflrjWPO.d.mts +803 -0
- package/dist/aggregate-BflrjWPO.d.mts.map +1 -0
- package/dist/bin__prisma-next.mjs +800 -0
- package/dist/bin__prisma-next.mjs.map +1 -0
- package/dist/cli-telemetry.d.mts +367 -0
- package/dist/cli-telemetry.d.mts.map +1 -0
- package/dist/cli-telemetry.mjs +48 -0
- package/dist/cli-telemetry.mjs.map +1 -0
- package/dist/cli-telemetry__sender.d.mts +1 -0
- package/dist/cli-telemetry__sender.mjs +1 -0
- package/dist/cli.d.mts +31 -0
- package/dist/cli.d.mts.map +1 -0
- package/dist/cli.mjs +180 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/cli__commands__contract-emit.d.mts +2 -0
- package/dist/cli__commands__contract-emit.mjs +2 -0
- package/dist/cli__commands__contract-infer.d.mts +7 -0
- package/dist/cli__commands__contract-infer.d.mts.map +1 -0
- package/dist/cli__commands__contract-infer.mjs +2 -0
- package/dist/cli__commands__db-init.d.mts +7 -0
- package/dist/cli__commands__db-init.d.mts.map +1 -0
- package/dist/cli__commands__db-init.mjs +2 -0
- package/dist/cli__commands__db-schema.d.mts +7 -0
- package/dist/cli__commands__db-schema.d.mts.map +1 -0
- package/dist/cli__commands__db-schema.mjs +2 -0
- package/dist/cli__commands__db-sign.d.mts +7 -0
- package/dist/cli__commands__db-sign.d.mts.map +1 -0
- package/dist/cli__commands__db-sign.mjs +2 -0
- package/dist/cli__commands__db-update.d.mts +7 -0
- package/dist/cli__commands__db-update.d.mts.map +1 -0
- package/dist/cli__commands__db-update.mjs +2 -0
- package/dist/cli__commands__db-verify.d.mts +7 -0
- package/dist/cli__commands__db-verify.d.mts.map +1 -0
- package/dist/cli__commands__db-verify.mjs +2 -0
- package/dist/cli__commands__migrate.d.mts +66 -0
- package/dist/cli__commands__migrate.d.mts.map +1 -0
- package/dist/cli__commands__migrate.mjs +2 -0
- package/dist/cli__commands__migration-check.d.mts +64 -0
- package/dist/cli__commands__migration-check.d.mts.map +1 -0
- package/dist/cli__commands__migration-check.mjs +3 -0
- package/dist/cli__commands__migration-graph.d.mts +36 -0
- package/dist/cli__commands__migration-graph.d.mts.map +1 -0
- package/dist/cli__commands__migration-graph.mjs +2 -0
- package/dist/cli__commands__migration-list.d.mts +79 -0
- package/dist/cli__commands__migration-list.d.mts.map +1 -0
- package/dist/cli__commands__migration-list.mjs +2 -0
- package/dist/cli__commands__migration-log.d.mts +20 -0
- package/dist/cli__commands__migration-log.d.mts.map +1 -0
- package/dist/cli__commands__migration-log.mjs +2 -0
- package/dist/cli__commands__migration-new.d.mts +7 -0
- package/dist/cli__commands__migration-new.d.mts.map +1 -0
- package/dist/cli__commands__migration-new.mjs +2 -0
- package/dist/cli__commands__migration-plan.d.mts +79 -0
- package/dist/cli__commands__migration-plan.d.mts.map +1 -0
- package/dist/cli__commands__migration-plan.mjs +2 -0
- package/dist/cli__commands__migration-show.d.mts +27 -0
- package/dist/cli__commands__migration-show.d.mts.map +1 -0
- package/dist/cli__commands__migration-show.mjs +2 -0
- package/dist/cli__commands__migration-status.d.mts +55 -0
- package/dist/cli__commands__migration-status.d.mts.map +1 -0
- package/dist/cli__commands__migration-status.mjs +3 -0
- package/dist/cli__commands__ref.d.mts +34 -0
- package/dist/cli__commands__ref.d.mts.map +1 -0
- package/dist/cli__commands__ref.mjs +2 -0
- package/dist/cli__commands__telemetry.d.mts +7 -0
- package/dist/cli__commands__telemetry.d.mts.map +1 -0
- package/dist/cli__commands__telemetry.mjs +2 -0
- package/dist/cli__config-types.d.mts +2 -0
- package/dist/cli__config-types.mjs +2 -0
- package/dist/cli__control-api.d.mts +141 -0
- package/dist/cli__control-api.d.mts.map +1 -0
- package/dist/cli__control-api.mjs +4 -0
- package/dist/cli__init-output.d.mts +37 -0
- package/dist/cli__init-output.d.mts.map +1 -0
- package/dist/cli__init-output.mjs +2 -0
- package/dist/cli__migration-cli.d.mts +79 -0
- package/dist/cli__migration-cli.d.mts.map +1 -0
- package/dist/cli__migration-cli.mjs +407 -0
- package/dist/cli__migration-cli.mjs.map +1 -0
- package/dist/client-75qrAPqf-DZAVUxFa.mjs +1606 -0
- package/dist/client-75qrAPqf-DZAVUxFa.mjs.map +1 -0
- package/dist/command-helpers-CAoXqAY9-DWUBcTXM.mjs +1671 -0
- package/dist/command-helpers-CAoXqAY9-DWUBcTXM.mjs.map +1 -0
- package/dist/config-loader.d.mts +18 -0
- package/dist/config-loader.d.mts.map +1 -0
- package/dist/config-loader.mjs +2 -0
- package/dist/constants-CM-w38DQ-Cz_EXbOc.mjs +10 -0
- package/dist/constants-CM-w38DQ-Cz_EXbOc.mjs.map +1 -0
- package/dist/constants-Dkcn8Qu4.d.mts +10 -0
- package/dist/constants-Dkcn8Qu4.d.mts.map +1 -0
- package/dist/contract-at-errors-BX7w-p19-SxA8eaV2.mjs +36 -0
- package/dist/contract-at-errors-BX7w-p19-SxA8eaV2.mjs.map +1 -0
- package/dist/contract-emit-0hSjbuxp-BBOKldTZ.mjs +148 -0
- package/dist/contract-emit-0hSjbuxp-BBOKldTZ.mjs.map +1 -0
- package/dist/contract-emit-B65_UiFn.d.mts +7 -0
- package/dist/contract-emit-B65_UiFn.d.mts.map +1 -0
- package/dist/contract-emit-B6odMoem-CK3diBPk.mjs +359 -0
- package/dist/contract-emit-B6odMoem-CK3diBPk.mjs.map +1 -0
- package/dist/contract-enrichment-DrMvvY2A-DxNGeF4d.mjs +56 -0
- package/dist/contract-enrichment-DrMvvY2A-DxNGeF4d.mjs.map +1 -0
- package/dist/contract-infer-BnkqpftN-DVM2eKJ3.mjs +73 -0
- package/dist/contract-infer-BnkqpftN-DVM2eKJ3.mjs.map +1 -0
- package/dist/contract-snapshot-store-CbqynbtE.d.mts +28 -0
- package/dist/contract-snapshot-store-CbqynbtE.d.mts.map +1 -0
- package/dist/contract-snapshot-store-sf5nP4mb-MLpG-ihh.mjs +118 -0
- package/dist/contract-snapshot-store-sf5nP4mb-MLpG-ihh.mjs.map +1 -0
- package/dist/contract-space-aggregate-loader-CFH-336b-BhAyRQEL.mjs +302 -0
- package/dist/contract-space-aggregate-loader-CFH-336b-BhAyRQEL.mjs.map +1 -0
- package/dist/db-init-Vbkb_TKZ.mjs +153 -0
- package/dist/db-init-Vbkb_TKZ.mjs.map +1 -0
- package/dist/db-schema-ClQCu3xY.mjs +47 -0
- package/dist/db-schema-ClQCu3xY.mjs.map +1 -0
- package/dist/db-sign-jjXDgQ1u.mjs +175 -0
- package/dist/db-sign-jjXDgQ1u.mjs.map +1 -0
- package/dist/db-update-BQlrqtDD.mjs +183 -0
- package/dist/db-update-BQlrqtDD.mjs.map +1 -0
- package/dist/db-verify-CKPsRFrj-3udprZQD.mjs +396 -0
- package/dist/db-verify-CKPsRFrj-3udprZQD.mjs.map +1 -0
- package/dist/domain-type-generation-DAn9y5d2-BgoT5uKI.mjs +334 -0
- package/dist/domain-type-generation-DAn9y5d2-BgoT5uKI.mjs.map +1 -0
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts +63 -0
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts.map +1 -0
- package/dist/emitter.d.mts +75 -0
- package/dist/emitter.d.mts.map +1 -0
- package/dist/emitter.mjs +3 -0
- package/dist/emitter__domain-type-generation.d.mts +2 -0
- package/dist/emitter__domain-type-generation.mjs +2 -0
- package/dist/emitter__type-expression-safety.d.mts +6 -0
- package/dist/emitter__type-expression-safety.d.mts.map +1 -0
- package/dist/emitter__type-expression-safety.mjs +2 -0
- package/dist/errors--qsXZUtL.d.mts +72 -0
- package/dist/errors--qsXZUtL.d.mts.map +1 -0
- package/dist/errors-IpZm1Skp-BH495dRd.mjs +378 -0
- package/dist/errors-IpZm1Skp-BH495dRd.mjs.map +1 -0
- package/dist/exports-BN0vFTxG.mjs +276 -0
- package/dist/exports-BN0vFTxG.mjs.map +1 -0
- package/dist/exports-B_xhKZmC.mjs +1436 -0
- package/dist/exports-B_xhKZmC.mjs.map +1 -0
- package/dist/exports-D3-NwrMA-CadaBGQ3.mjs +154 -0
- package/dist/exports-D3-NwrMA-CadaBGQ3.mjs.map +1 -0
- package/dist/exports-Dl2aGAk7.mjs +119 -0
- package/dist/exports-Dl2aGAk7.mjs.map +1 -0
- package/dist/format-ByDm2goZ-DKLyhNHo.mjs +101 -0
- package/dist/format-ByDm2goZ-DKLyhNHo.mjs.map +1 -0
- package/dist/framework-components-CjshQKHA-Dlp6Leo5.mjs +58 -0
- package/dist/framework-components-CjshQKHA-Dlp6Leo5.mjs.map +1 -0
- package/dist/global-flags-BpoOYtNZ-CHZD3fud.d.mts +35 -0
- package/dist/global-flags-BpoOYtNZ-CHZD3fud.d.mts.map +1 -0
- package/dist/graph-bDjJ4GL9-BhFevsJS.d.mts +28 -0
- package/dist/graph-bDjJ4GL9-BhFevsJS.d.mts.map +1 -0
- package/dist/graph-membership-DW6nnbyQ-Bp2KcVwR.mjs +14 -0
- package/dist/graph-membership-DW6nnbyQ-Bp2KcVwR.mjs.map +1 -0
- package/dist/hash-DH8hl5Rq-BpM2t3Nu.mjs +64 -0
- package/dist/hash-DH8hl5Rq-BpM2t3Nu.mjs.map +1 -0
- package/dist/hash-XZYYKJ-i.d.mts +53 -0
- package/dist/hash-XZYYKJ-i.d.mts.map +1 -0
- package/dist/import-roots-B6CtsWXb.d.mts +119 -0
- package/dist/import-roots-B6CtsWXb.d.mts.map +1 -0
- package/dist/import-roots-NDOIEDVj.mjs +217 -0
- package/dist/import-roots-NDOIEDVj.mjs.map +1 -0
- package/dist/init-DHctXAI9-DSlaaYXN.mjs +2186 -0
- package/dist/init-DHctXAI9-DSlaaYXN.mjs.map +1 -0
- package/dist/inspect-live-schema-CnwYTRZ0-BErPHMni.mjs +91 -0
- package/dist/inspect-live-schema-CnwYTRZ0-BErPHMni.mjs.map +1 -0
- package/dist/invariants-B5wLrgQS.d.mts +39 -0
- package/dist/invariants-B5wLrgQS.d.mts.map +1 -0
- package/dist/invariants-lXzy6txi-DAoP4nTE.mjs +57 -0
- package/dist/invariants-lXzy6txi-DAoP4nTE.mjs.map +1 -0
- package/dist/io-C8TdyBKt-DloEBi70.mjs +313 -0
- package/dist/io-C8TdyBKt-DloEBi70.mjs.map +1 -0
- package/dist/io-DYfeLJxR.d.mts +1 -0
- package/dist/io-sr4CO9_t-C3eV_kn-.d.mts +125 -0
- package/dist/io-sr4CO9_t-C3eV_kn-.d.mts.map +1 -0
- package/dist/ledger-origin-BGRN77Oy.d.mts +6 -0
- package/dist/ledger-origin-BGRN77Oy.d.mts.map +1 -0
- package/dist/ledger-origin-D7PN4Fon.mjs +9 -0
- package/dist/ledger-origin-D7PN4Fon.mjs.map +1 -0
- package/dist/metadata-2nbOAGsV-uYNeq2Cp.d.mts +2 -0
- package/dist/metadata-BtscDay2.d.mts +1 -0
- package/dist/migrate-Cb_iv264.mjs +500 -0
- package/dist/migrate-Cb_iv264.mjs.map +1 -0
- package/dist/migration-B2ljMJim.d.mts +155 -0
- package/dist/migration-B2ljMJim.d.mts.map +1 -0
- package/dist/migration-BuUmO7It.mjs +209 -0
- package/dist/migration-BuUmO7It.mjs.map +1 -0
- package/dist/migration-check-CcG-fB8r-CDs5C9vt.mjs +597 -0
- package/dist/migration-check-CcG-fB8r-CDs5C9vt.mjs.map +1 -0
- package/dist/migration-command-scaffold-BCuoeAki-B1pVGX8d.mjs +103 -0
- package/dist/migration-command-scaffold-BCuoeAki-B1pVGX8d.mjs.map +1 -0
- package/dist/migration-graph-CBf9ORe7-B4xAF8GN.mjs +500 -0
- package/dist/migration-graph-CBf9ORe7-B4xAF8GN.mjs.map +1 -0
- package/dist/migration-graph-DkoCC0Qy.mjs +185 -0
- package/dist/migration-graph-DkoCC0Qy.mjs.map +1 -0
- package/dist/migration-graph-Dqndu0i5.d.mts +9 -0
- package/dist/migration-graph-Dqndu0i5.d.mts.map +1 -0
- package/dist/migration-graph-command-render-BKrg6BPv-BP8Pfj4J.mjs +1945 -0
- package/dist/migration-graph-command-render-BKrg6BPv-BP8Pfj4J.mjs.map +1 -0
- package/dist/migration-graph-tarTxJ99-BrGBANeE.d.mts +124 -0
- package/dist/migration-graph-tarTxJ99-BrGBANeE.d.mts.map +1 -0
- package/dist/migration-list-BFBeo1_X-c0kqYokL.mjs +228 -0
- package/dist/migration-list-BFBeo1_X-c0kqYokL.mjs.map +1 -0
- package/dist/migration-log-CS5IWcNq-BQ-32Low.mjs +220 -0
- package/dist/migration-log-CS5IWcNq-BQ-32Low.mjs.map +1 -0
- package/dist/migration-new-BurCjyaQ.mjs +168 -0
- package/dist/migration-new-BurCjyaQ.mjs.map +1 -0
- package/dist/migration-path-target-D3Sj55PI-BICblCuk.mjs +38 -0
- package/dist/migration-path-target-D3Sj55PI-BICblCuk.mjs.map +1 -0
- package/dist/migration-plan-q_L84PN1-BWE0LTH6.mjs +759 -0
- package/dist/migration-plan-q_L84PN1-BWE0LTH6.mjs.map +1 -0
- package/dist/migration-show-Bx5I5aW9.mjs +171 -0
- package/dist/migration-show-Bx5I5aW9.mjs.map +1 -0
- package/dist/migration-status-CFlzlRmu-DewBN8Ys.mjs +444 -0
- package/dist/migration-status-CFlzlRmu-DewBN8Ys.mjs.map +1 -0
- package/dist/migration-tools.d.mts +23 -0
- package/dist/migration-tools.mjs +17 -0
- package/dist/migration-tools__aggregate.d.mts +2 -0
- package/dist/migration-tools__aggregate.mjs +2 -0
- package/dist/migration-tools__constants.d.mts +2 -0
- package/dist/migration-tools__constants.mjs +2 -0
- package/dist/migration-tools__contract-snapshot-store.d.mts +2 -0
- package/dist/migration-tools__contract-snapshot-store.mjs +2 -0
- package/dist/migration-tools__errors.d.mts +2 -0
- package/dist/migration-tools__errors.mjs +2 -0
- package/dist/migration-tools__graph.d.mts +2 -0
- package/dist/migration-tools__graph.mjs +1 -0
- package/dist/migration-tools__hash.d.mts +2 -0
- package/dist/migration-tools__hash.mjs +2 -0
- package/dist/migration-tools__invariants.d.mts +2 -0
- package/dist/migration-tools__invariants.mjs +2 -0
- package/dist/migration-tools__io.d.mts +3 -0
- package/dist/migration-tools__io.mjs +2 -0
- package/dist/migration-tools__ledger-origin.d.mts +2 -0
- package/dist/migration-tools__ledger-origin.mjs +2 -0
- package/dist/migration-tools__metadata.d.mts +3 -0
- package/dist/migration-tools__metadata.mjs +1 -0
- package/dist/migration-tools__migration-graph.d.mts +3 -0
- package/dist/migration-tools__migration-graph.mjs +3 -0
- package/dist/migration-tools__migration-ts.d.mts +2 -0
- package/dist/migration-tools__migration-ts.mjs +2 -0
- package/dist/migration-tools__migration.d.mts +2 -0
- package/dist/migration-tools__migration.mjs +2 -0
- package/dist/migration-tools__package.d.mts +3 -0
- package/dist/migration-tools__package.mjs +1 -0
- package/dist/migration-tools__ref-resolution.d.mts +2 -0
- package/dist/migration-tools__ref-resolution.mjs +2 -0
- package/dist/migration-tools__refs.d.mts +2 -0
- package/dist/migration-tools__refs.mjs +2 -0
- package/dist/migration-tools__spaces.d.mts +3 -0
- package/dist/migration-tools__spaces.mjs +3 -0
- package/dist/migration-ts-CNaAtK8C.d.mts +38 -0
- package/dist/migration-ts-CNaAtK8C.d.mts.map +1 -0
- package/dist/migration-ts-FyF55c4M.mjs +67 -0
- package/dist/migration-ts-FyF55c4M.mjs.map +1 -0
- package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs +13 -0
- package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs.map +1 -0
- package/dist/output-DWNYqZGc-D2sRgLAm.mjs +109 -0
- package/dist/output-DWNYqZGc-D2sRgLAm.mjs.map +1 -0
- package/dist/package-CfWiDNrr-ZR4HM_Iz.d.mts +21 -0
- package/dist/package-CfWiDNrr-ZR4HM_Iz.d.mts.map +1 -0
- package/dist/package-N9PPdFV_.d.mts +3 -0
- package/dist/progress-adapter-CjAeTxY_-BXYSd1eY.mjs +43 -0
- package/dist/progress-adapter-CjAeTxY_-BXYSd1eY.mjs.map +1 -0
- package/dist/project-import-root-CpwLCDLY-DkVwAnWj.mjs +99 -0
- package/dist/project-import-root-CpwLCDLY-DkVwAnWj.mjs.map +1 -0
- package/dist/publish-surface.d.mts +3 -0
- package/dist/publish-surface.mjs +3 -0
- package/dist/publish-surface__import-roots.d.mts +2 -0
- package/dist/publish-surface__import-roots.mjs +2 -0
- package/dist/publish-surface__shells.d.mts +2 -0
- package/dist/publish-surface__shells.mjs +2 -0
- package/dist/quick-reference-mongo.md +114 -0
- package/dist/quick-reference-postgres.md +93 -0
- package/dist/readme-mongo.md +35 -0
- package/dist/readme-postgres.md +34 -0
- package/dist/ref-B6cTthTi.mjs +171 -0
- package/dist/ref-B6cTthTi.mjs.map +1 -0
- package/dist/ref-advancement-CSPMoQs3-fEipZrdu.mjs +57 -0
- package/dist/ref-advancement-CSPMoQs3-fEipZrdu.mjs.map +1 -0
- package/dist/ref-resolution-BjJBWPjX.mjs +250 -0
- package/dist/ref-resolution-BjJBWPjX.mjs.map +1 -0
- package/dist/ref-resolution-COGOSL57.d.mts +127 -0
- package/dist/ref-resolution-COGOSL57.d.mts.map +1 -0
- package/dist/refs-BDbB9BRB-D6Za3Q49.mjs +241 -0
- package/dist/refs-BDbB9BRB-D6Za3Q49.mjs.map +1 -0
- package/dist/refs-BNCUu58Y-BIso5Jfg.d.mts +43 -0
- package/dist/refs-BNCUu58Y-BIso5Jfg.d.mts.map +1 -0
- package/dist/schemas-CeGMYFYX-h3OcU__O.d.mts +192 -0
- package/dist/schemas-CeGMYFYX-h3OcU__O.d.mts.map +1 -0
- package/dist/schemas-KhXMzNA_-CzZ7GFX_.mjs +112 -0
- package/dist/schemas-KhXMzNA_-CzZ7GFX_.mjs.map +1 -0
- package/dist/shells-BenrJHp2.mjs +602 -0
- package/dist/shells-BenrJHp2.mjs.map +1 -0
- package/dist/shells-COHV_Ozf.d.mts +135 -0
- package/dist/shells-COHV_Ozf.d.mts.map +1 -0
- package/dist/spaces-C27bA-xc.mjs +267 -0
- package/dist/spaces-C27bA-xc.mjs.map +1 -0
- package/dist/spaces-DxFj5y8l.d.mts +415 -0
- package/dist/spaces-DxFj5y8l.d.mts.map +1 -0
- package/dist/telemetry-CmbCa3Ld-CmE5zcIG.mjs +120 -0
- package/dist/telemetry-CmbCa3Ld-CmE5zcIG.mjs.map +1 -0
- package/dist/terminal-ui-BN4QOsm5-Bf3pim46.d.mts +133 -0
- package/dist/terminal-ui-BN4QOsm5-Bf3pim46.d.mts.map +1 -0
- package/dist/type-expression-safety-CgHTWypx.mjs +8 -0
- package/dist/type-expression-safety-CgHTWypx.mjs.map +1 -0
- package/dist/types-DZWEs4si-D8UlyJI0.d.mts +893 -0
- package/dist/types-DZWEs4si-D8UlyJI0.d.mts.map +1 -0
- package/dist/verify-DnVNjc5C-BGdsblBK.mjs +283 -0
- package/dist/verify-DnVNjc5C-BGdsblBK.mjs.map +1 -0
- package/dist/verify-contract-spaces-BZDcJsuA-De8v4Z4T.mjs +252 -0
- package/dist/verify-contract-spaces-BZDcJsuA-De8v4Z4T.mjs.map +1 -0
- package/dist/verify-contract-spaces-Cc1u_wJo-BilPJS2S.d.mts +136 -0
- package/dist/verify-contract-spaces-Cc1u_wJo-BilPJS2S.d.mts.map +1 -0
- package/dist/vite-plugin-contract-emit.d.mts +54 -0
- package/dist/vite-plugin-contract-emit.d.mts.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +303 -0
- package/dist/vite-plugin-contract-emit.mjs.map +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-new.d.mts
|
|
3
|
+
//#region src/commands/migration-new.d.ts
|
|
4
|
+
declare function createMigrationNewCommand(): Command;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { createMigrationNewCommand };
|
|
7
|
+
//# sourceMappingURL=cli__commands__migration-new.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__commands__migration-new.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/migration-new.d.mts"],"mappings":";;;iBAEiB,6BAA6B"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as GlobalFlags } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
2
|
+
import { Result } from "@prisma/orm-framework/utils/result";
|
|
3
|
+
import { OperationPreview } from "@prisma/orm-framework/components/control";
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-plan.d.mts
|
|
6
|
+
//#region src/commands/migration-plan.d.ts
|
|
7
|
+
interface MigrationPlanResult {
|
|
8
|
+
readonly ok: boolean;
|
|
9
|
+
readonly noOp: boolean;
|
|
10
|
+
readonly from: string | null;
|
|
11
|
+
readonly to: string;
|
|
12
|
+
readonly dir?: string;
|
|
13
|
+
readonly baselineDir?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Extension-space migration packages materialised onto disk during this
|
|
16
|
+
* `plan` run. Each entry names a `migrations/<spaceId>/<dirName>/`
|
|
17
|
+
* tree the framework wrote alongside the app-space migration directory.
|
|
18
|
+
* Empty when the project has no extension packs declaring a contract
|
|
19
|
+
* space, or when every extension-space package is already on disk.
|
|
20
|
+
*
|
|
21
|
+
* Surfacing these in the result (rather than only via `ui.step` log
|
|
22
|
+
* lines) makes the cross-space side effect explicit to JSON consumers
|
|
23
|
+
* and the success-summary renderer — the same cross-space side effect
|
|
24
|
+
* that `migrate` will replay.
|
|
25
|
+
*/
|
|
26
|
+
readonly emittedExtensionDirs: readonly {
|
|
27
|
+
readonly spaceId: string;
|
|
28
|
+
readonly dirName: string;
|
|
29
|
+
}[];
|
|
30
|
+
readonly operations: readonly {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly label: string;
|
|
33
|
+
readonly operationClass: string;
|
|
34
|
+
}[];
|
|
35
|
+
/**
|
|
36
|
+
* Family-agnostic textual preview of the migration plan operations.
|
|
37
|
+
* Replaces the previous `sql?: readonly string[]` field; consumers should
|
|
38
|
+
* read `result.preview?.statements`.
|
|
39
|
+
*/
|
|
40
|
+
readonly preview?: OperationPreview;
|
|
41
|
+
readonly summary: string;
|
|
42
|
+
/**
|
|
43
|
+
* When true, `migration.ts` was written but contains unfilled
|
|
44
|
+
* `placeholder(...)` calls. The user must edit the file and then run
|
|
45
|
+
* `node migration.ts` to self-emit `ops.json` / `migration.json`.
|
|
46
|
+
*/
|
|
47
|
+
readonly pendingPlaceholders?: boolean;
|
|
48
|
+
readonly timings: {
|
|
49
|
+
readonly total: number;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
declare function createMigrationPlanCommand(): Command;
|
|
53
|
+
declare function formatMigrationPlanOutput(result: MigrationPlanResult, flags: GlobalFlags): string;
|
|
54
|
+
type PrefixResolutionFailure = {
|
|
55
|
+
reason: 'ambiguous';
|
|
56
|
+
count: number;
|
|
57
|
+
} | {
|
|
58
|
+
reason: 'not-found';
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Resolve a migration package by **target contract hash** (`metadata.to`)
|
|
62
|
+
* using exact match or prefix match.
|
|
63
|
+
*
|
|
64
|
+
* Note: matches `metadata.to` (the contract hash this migration produces),
|
|
65
|
+
* not `metadata.migrationHash` (the package's content-addressed identity).
|
|
66
|
+
* Tries exact match first, then prefix match. Returns the matched package on
|
|
67
|
+
* success, or a discriminated failure indicating whether the prefix was
|
|
68
|
+
* ambiguous or simply not found.
|
|
69
|
+
*
|
|
70
|
+
* @internal Exported for testing only.
|
|
71
|
+
*/
|
|
72
|
+
declare function resolveBundleByPrefix<T extends {
|
|
73
|
+
metadata: {
|
|
74
|
+
to: string;
|
|
75
|
+
};
|
|
76
|
+
}>(bundles: readonly T[], needle: string): Result<T, PrefixResolutionFailure>;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { MigrationPlanResult, PrefixResolutionFailure, createMigrationPlanCommand, formatMigrationPlanOutput, resolveBundleByPrefix };
|
|
79
|
+
//# sourceMappingURL=cli__commands__migration-plan.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__commands__migration-plan.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/migration-plan.d.mts"],"mappings":";;;;;;UAKU;WACC;WACA;WACA;WACA;WACA;WACA;;;;;;;;;;;;;WAaA;aACE;aACA;;WAEF;aACE;aACA;aACA;;;;;;;WAOF,UAAU;WACV;;;;;;WAMA;WACA;aACE;;;iBAGI,8BAA8B;iBAC9B,0BAA0B,QAAQ,qBAAqB,OAAO;KAC1E;EACH;EACA;;EAEA;;;;;;;;;;;;;;iBAce,sBAAsB;EACrC;IACE;;GAED,kBAAkB,KAAK,iBAAiB,OAAO,GAAG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as MigrationShowResult } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-show.d.mts
|
|
4
|
+
//#region src/commands/migration-show.d.ts
|
|
5
|
+
interface MigrationShowPresent {
|
|
6
|
+
readonly space: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly fromContract: string | null;
|
|
9
|
+
readonly toContract: string;
|
|
10
|
+
readonly hash: string;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
readonly operations: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
operationClass: string;
|
|
16
|
+
}[];
|
|
17
|
+
readonly preview: {
|
|
18
|
+
statements: {
|
|
19
|
+
text: string;
|
|
20
|
+
language: string;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare function createMigrationShowCommand(): Command;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { MigrationShowPresent, type MigrationShowResult, createMigrationShowCommand };
|
|
27
|
+
//# sourceMappingURL=cli__commands__migration-show.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__commands__migration-show.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/migration-show.d.mts"],"mappings":";;;;UAGU;WACC;WACA;WACA;WACA;WACA;WACA;WACA;IACP;IACA;IACA;;WAEO;IACP;MACE;MACA;;;;iBAIW,8BAA8B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as CliStructuredError$1 } from "./types-DZWEs4si-D8UlyJI0.mjs";
|
|
2
|
+
import { c as MigrationStatusEntry, d as StatusDiagnosticJson, l as MigrationStatusResult, p as migrationStatusJsonResultSchema, u as MigrationStatusSpace } from "./schemas-CeGMYFYX-h3OcU__O.mjs";
|
|
3
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
4
|
+
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
5
|
+
import { Result } from "@prisma/orm-framework/utils/result";
|
|
6
|
+
import { Command } from "commander";
|
|
7
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-status.d.mts
|
|
8
|
+
//#region src/utils/migration-types.d.ts
|
|
9
|
+
interface StatusRef {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly hash: string;
|
|
12
|
+
readonly active: boolean;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/commands/migration-status.d.ts
|
|
16
|
+
interface MigrationStatusOptions extends CommonCommandOptions {
|
|
17
|
+
readonly db?: string;
|
|
18
|
+
readonly config?: string;
|
|
19
|
+
readonly to?: string;
|
|
20
|
+
readonly from?: string;
|
|
21
|
+
readonly space?: string;
|
|
22
|
+
readonly legend?: boolean;
|
|
23
|
+
readonly ascii?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface MigrationStatusTreeSection {
|
|
26
|
+
readonly space: string;
|
|
27
|
+
readonly tree: string;
|
|
28
|
+
readonly showHeading: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface MigrationStatusCommandResult {
|
|
31
|
+
readonly ok: true;
|
|
32
|
+
readonly spaces: readonly MigrationStatusSpace[];
|
|
33
|
+
readonly summary: string;
|
|
34
|
+
readonly diagnostics: readonly StatusDiagnosticJson[];
|
|
35
|
+
readonly treeSections: readonly MigrationStatusTreeSection[];
|
|
36
|
+
}
|
|
37
|
+
declare function buildNoPathSummary(args: {
|
|
38
|
+
readonly markerHash: string | undefined;
|
|
39
|
+
readonly targetHash: string;
|
|
40
|
+
readonly explicitTarget: boolean;
|
|
41
|
+
readonly refName: string | undefined;
|
|
42
|
+
}): string;
|
|
43
|
+
declare function buildStatusHeadline(args: {
|
|
44
|
+
readonly pendingCount: number;
|
|
45
|
+
readonly targetHash: string;
|
|
46
|
+
readonly markerDiverged: boolean;
|
|
47
|
+
readonly markerHash: string | undefined;
|
|
48
|
+
}): string;
|
|
49
|
+
declare function formatStatusSummary(result: MigrationStatusCommandResult, colorize: boolean): string;
|
|
50
|
+
declare function formatStatusHumanOutput(result: MigrationStatusCommandResult, colorize: boolean): string;
|
|
51
|
+
declare function executeMigrationStatusCommand(options: MigrationStatusOptions, flags: GlobalFlags, ui: TerminalUI): Promise<Result<MigrationStatusCommandResult, CliStructuredError$1>>;
|
|
52
|
+
declare function createMigrationStatusCommand(): Command;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { type MigrationStatusEntry, MigrationStatusOptions, type MigrationStatusResult, type MigrationStatusSpace, MigrationStatusTreeSection, type StatusDiagnosticJson, type StatusRef, buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
|
|
55
|
+
//# sourceMappingURL=cli__commands__migration-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__commands__migration-status.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/migration-status.d.mts"],"mappings":";;;;;;;;UAOU;WACC;WACA;WACA;;;;UAID,+BAA+B;WAC9B;WACA;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA,iBAAiB;WACjB;WACA,sBAAsB;WACtB,uBAAuB;;iBAEjB,mBAAmB;WACzB;WACA;WACA;WACA;;iBAEM,oBAAoB;WAC1B;WACA;WACA;WACA;;iBAEM,oBAAoB,QAAQ,8BAA8B;iBAC1D,wBAAwB,QAAQ,8BAA8B;iBAC9D,8BAA8B,SAAS,wBAAwB,OAAO,aAAa,IAAI,aAAa,QAAQ,OAAO,8BAA8B;iBACjJ,gCAAgC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { n as migrationStatusJsonResultSchema } from "./schemas-KhXMzNA_-CzZ7GFX_.mjs";
|
|
2
|
+
import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-CFlzlRmu-DewBN8Ys.mjs";
|
|
3
|
+
export { buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
|
|
2
|
+
import { t as CliStructuredError$1 } from "./types-DZWEs4si-D8UlyJI0.mjs";
|
|
3
|
+
import { Result } from "@prisma/orm-framework/utils/result";
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/ref.d.mts
|
|
6
|
+
//#region src/commands/ref.d.ts
|
|
7
|
+
interface RefSetResult {
|
|
8
|
+
readonly ok: true;
|
|
9
|
+
readonly ref: string;
|
|
10
|
+
readonly hash: string;
|
|
11
|
+
readonly invariants: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
interface RefDeleteResult {
|
|
14
|
+
readonly ok: true;
|
|
15
|
+
readonly ref: string;
|
|
16
|
+
readonly deleted: true;
|
|
17
|
+
}
|
|
18
|
+
interface RefListResult {
|
|
19
|
+
readonly ok: true;
|
|
20
|
+
readonly refs: Record<string, RefEntry>;
|
|
21
|
+
}
|
|
22
|
+
declare function executeRefSetCommand(name: string, contractInput: string, options: {
|
|
23
|
+
config?: string;
|
|
24
|
+
}): Promise<Result<RefSetResult, CliStructuredError$1>>;
|
|
25
|
+
declare function executeRefDeleteCommand(name: string, options: {
|
|
26
|
+
config?: string;
|
|
27
|
+
}): Promise<Result<RefDeleteResult, CliStructuredError$1>>;
|
|
28
|
+
declare function executeRefListCommand(options: {
|
|
29
|
+
config?: string;
|
|
30
|
+
}): Promise<Result<RefListResult, CliStructuredError$1>>;
|
|
31
|
+
declare function createRefCommand(): Command;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { createRefCommand, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand };
|
|
34
|
+
//# sourceMappingURL=cli__commands__ref.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__commands__ref.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/ref.d.mts"],"mappings":";;;;;;UAKU;WACC;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA,MAAM,eAAe;;iBAEf,qBAAqB,cAAc,uBAAuB;EACzE;IACE,QAAQ,OAAO,cAAc;iBAChB,wBAAwB,cAAc;EACrD;IACE,QAAQ,OAAO,iBAAiB;iBACnB,sBAAsB;EACrC;IACE,QAAQ,OAAO,eAAe;iBACjB,oBAAoB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
//#region ../../../1-framework/3-tooling/cli/dist/commands/telemetry/index.d.mts
|
|
3
|
+
//#region src/commands/telemetry/index.d.ts
|
|
4
|
+
declare function createTelemetryCommand(): Command;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { createTelemetryCommand };
|
|
7
|
+
//# sourceMappingURL=cli__commands__telemetry.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__commands__telemetry.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/commands/telemetry/index.d.mts"],"mappings":";;;iBAEiB,0BAA0B"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { A as SchemaVerifyOptions, C as EmitSuccess, E as IntrospectOptions, M as VerifyOptions, N as executeDbVerify, O as OnControlProgress, S as EmitResult, T as ExecuteDbVerifyResult, _ as DbUpdateSuccess, a as ControlClient, b as EmitFailureCode, c as DbInitFailure, d as DbInitResult, f as DbInitSuccess, g as DbUpdateResult, h as DbUpdateOptions, i as ControlActionName, j as SignOptions, l as DbInitFailureCode, m as DbUpdateFailureCode, n as ContractEmitOptions, o as ControlClientOptions, p as DbUpdateFailure, r as ContractEmitResult, s as ControlProgressEvent, u as DbInitOptions, v as EmitContractConfig, w as ExecuteDbVerifyOptions, x as EmitOptions, y as EmitFailure } from "./types-DZWEs4si-D8UlyJI0.mjs";
|
|
2
|
+
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
3
|
+
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
4
|
+
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
5
|
+
//#region ../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts
|
|
6
|
+
//#region src/control-api/client.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Creates a programmatic control client for Prisma Next operations.
|
|
9
|
+
*
|
|
10
|
+
* The client accepts framework component descriptors at creation time,
|
|
11
|
+
* manages driver lifecycle via connect()/close(), and exposes domain
|
|
12
|
+
* operations that delegate to the existing family instance methods.
|
|
13
|
+
*
|
|
14
|
+
* @see {@link ControlClient} for the client interface
|
|
15
|
+
* @see README.md "Programmatic Control API" section for usage examples
|
|
16
|
+
*/
|
|
17
|
+
declare function createControlClient(options: ControlClientOptions): ControlClient;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/control-api/contract-enrichment.d.ts
|
|
20
|
+
/**
|
|
21
|
+
* Enriches a raw contract with framework-derived metadata: capabilities from all component descriptors and extension pack metadata from extension descriptors. Produces deterministically sorted output.
|
|
22
|
+
*/
|
|
23
|
+
declare function enrichContract(ir: Contract, components: ReadonlyArray<TargetBoundComponentDescriptor<string, string>>): Contract;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/control-api/operations/contract-emit.d.ts
|
|
26
|
+
/**
|
|
27
|
+
* Canonical contract emit operation.
|
|
28
|
+
*
|
|
29
|
+
* This is the SINGLE publication path used by both the CLI command
|
|
30
|
+
* (`prisma-next contract emit`) and the Vite plugin
|
|
31
|
+
* (`@internal/vite-plugin-contract-emit`). New callers must go through this
|
|
32
|
+
* function rather than re-implementing load → emit → publish.
|
|
33
|
+
*
|
|
34
|
+
* The whole flow (load config → resolve source → emit bytes → atomic publish)
|
|
35
|
+
* is serialized per output JSON path via `queueEmitByOutput`. Concurrent calls
|
|
36
|
+
* for the same output line up FIFO; the user-visible outcome is "last
|
|
37
|
+
* submission wins on disk" without any supersession bookkeeping. Within a
|
|
38
|
+
* single emit, `publishContractArtifactPair` stages temp files, renames
|
|
39
|
+
* `contract.d.ts` before `contract.json`, and attempts to restore the previous
|
|
40
|
+
* pair if either rename fails — so type-only consumers never observe a
|
|
41
|
+
* mismatched pair.
|
|
42
|
+
*
|
|
43
|
+
* @throws {CliStructuredError} on config/source/validation problems
|
|
44
|
+
* @throws {DOMException} `AbortError` if cancelled via `signal`
|
|
45
|
+
*/
|
|
46
|
+
declare function executeContractEmit(options: ContractEmitOptions): Promise<ContractEmitResult>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/control-api/operations/db-init.d.ts
|
|
49
|
+
/**
|
|
50
|
+
* Options for executing the `db init` operation.
|
|
51
|
+
*
|
|
52
|
+
* `db init` runs the loader → planner → runner pipeline:
|
|
53
|
+
*
|
|
54
|
+
* 1. {@link executeRun} loads a `ContractSpaceAggregate` via
|
|
55
|
+
* {@link import('@prisma/orm-toolchain/migration-tools/aggregate').loadContractSpaceAggregate}
|
|
56
|
+
* from the supplied descriptor set + on-disk on-disk artefacts.
|
|
57
|
+
* 2. The aggregate planner runs with `callerPolicy.ignoreGraphFor`
|
|
58
|
+
* locked to the app space — synth strategy for the app, graph-walk
|
|
59
|
+
* for every extension.
|
|
60
|
+
* 3. The runner's `execute` applies the per-space plans
|
|
61
|
+
* inside one outer transaction.
|
|
62
|
+
*
|
|
63
|
+
* `extensions` mirrors `Config.extensions` (descriptor list).
|
|
64
|
+
* The loader (sub-spec § Loader) is the sole descriptor-import boundary.
|
|
65
|
+
*/
|
|
66
|
+
interface ExecuteDbInitOptions<TFamilyId extends string, TTargetId extends string> {
|
|
67
|
+
readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
|
|
68
|
+
readonly adapter: ControlAdapterInstance<TFamilyId, TTargetId>;
|
|
69
|
+
readonly familyInstance: ControlFamilyInstance<TFamilyId, unknown>;
|
|
70
|
+
readonly contract: Contract;
|
|
71
|
+
readonly mode: 'plan' | 'apply';
|
|
72
|
+
readonly migrations: TargetMigrationsCapability<TFamilyId, TTargetId, ControlFamilyInstance<TFamilyId, unknown>>;
|
|
73
|
+
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
|
|
74
|
+
/**
|
|
75
|
+
* On-disk migrations directory the aggregate loader reads on-disk
|
|
76
|
+
* artefacts from. Required.
|
|
77
|
+
*/
|
|
78
|
+
readonly migrationsDir: string;
|
|
79
|
+
/**
|
|
80
|
+
* Resolved adapter target id. Threaded through to the loader for
|
|
81
|
+
* target-consistency checks across descriptors and the app contract.
|
|
82
|
+
*/
|
|
83
|
+
readonly targetId: TTargetId;
|
|
84
|
+
/**
|
|
85
|
+
* Declared extension descriptors. Defaults to an empty list, which
|
|
86
|
+
* routes through the same loader → planner → runner pipeline with no
|
|
87
|
+
* extension spaces in the aggregate.
|
|
88
|
+
*/
|
|
89
|
+
readonly extensions?: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
|
|
90
|
+
/** Optional progress callback for observing operation progress */
|
|
91
|
+
readonly onProgress?: OnControlProgress;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Execute `db init` against the configured contract.
|
|
95
|
+
*
|
|
96
|
+
* Routes through the loader → planner → runner pipeline (sub-spec
|
|
97
|
+
* "Commit-by-commit § Commit 4"). Always additive-only; destructive
|
|
98
|
+
* changes belong to `db update`.
|
|
99
|
+
*/
|
|
100
|
+
declare function executeDbInit<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbInitOptions<TFamilyId, TTargetId>): Promise<DbInitResult>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/control-api/operations/db-update.d.ts
|
|
103
|
+
/**
|
|
104
|
+
* Options for the `db update` operation.
|
|
105
|
+
*
|
|
106
|
+
* Same loader → planner → runner pipeline as `db init`, but with the
|
|
107
|
+
* widened operation policy (additive + widening + destructive). The
|
|
108
|
+
* destructive-change confirmation gate runs at this layer: when
|
|
109
|
+
* `mode === 'apply'` and `acceptDataLoss` is `false`, the operation
|
|
110
|
+
* pre-plans, surfaces destructive ops to the caller, and aborts.
|
|
111
|
+
*/
|
|
112
|
+
interface ExecuteDbUpdateOptions<TFamilyId extends string, TTargetId extends string> {
|
|
113
|
+
readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
|
|
114
|
+
readonly adapter: ControlAdapterInstance<TFamilyId, TTargetId>;
|
|
115
|
+
readonly familyInstance: ControlFamilyInstance<TFamilyId, unknown>;
|
|
116
|
+
readonly contract: Contract;
|
|
117
|
+
readonly mode: 'plan' | 'apply';
|
|
118
|
+
readonly migrations: TargetMigrationsCapability<TFamilyId, TTargetId, ControlFamilyInstance<TFamilyId, unknown>>;
|
|
119
|
+
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
|
|
120
|
+
readonly acceptDataLoss?: boolean;
|
|
121
|
+
readonly migrationsDir: string;
|
|
122
|
+
readonly targetId: TTargetId;
|
|
123
|
+
readonly extensions?: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
|
|
124
|
+
readonly onProgress?: OnControlProgress;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Execute `db update` against the configured contract.
|
|
128
|
+
*
|
|
129
|
+
* Routes through the loader → planner → runner pipeline. Destructive
|
|
130
|
+
* operations require either `acceptDataLoss: true` or a prior
|
|
131
|
+
* `mode: 'plan'` invocation that surfaces the destructive ops; the
|
|
132
|
+
* confirmation gate is implemented here so the lower-level applier
|
|
133
|
+
* remains policy-agnostic.
|
|
134
|
+
*/
|
|
135
|
+
declare function executeDbUpdate<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbUpdateOptions<TFamilyId, TTargetId>): Promise<DbUpdateResult>;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/utils/emit-queue.d.ts
|
|
138
|
+
declare function disposeEmitQueue(outputJsonPath: string): void;
|
|
139
|
+
//#endregion
|
|
140
|
+
export { type ContractEmitOptions, type ContractEmitResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type DbInitFailure, type DbInitFailureCode, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbUpdateFailure, type DbUpdateFailureCode, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type ExecuteDbInitOptions, type ExecuteDbUpdateOptions, type ExecuteDbVerifyOptions, type ExecuteDbVerifyResult, type IntrospectOptions, type OnControlProgress, type SchemaVerifyOptions, type SignDatabaseResult, type SignOptions, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, createControlClient, disposeEmitQueue, enrichContract, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify };
|
|
141
|
+
//# sourceMappingURL=cli__control-api.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;iBAeiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;iBAuBzG,oBAAoB,SAAS,sBAAsB,QAAQ;;;;;;;;;;;;;;;;;;;;UAoBlE,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;;;;;WAK7E;;;;;WAKA,UAAU;;;;;;WAMV,aAAa,cAAc,2BAA2B,WAAW;;WAEjE,aAAa;;;;;;;;;iBASP,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ;;;;;;;;;;;;UAYvI,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;WACA;WACA,UAAU;WACV,aAAa,cAAc,2BAA2B,WAAW;WACjE,aAAa;;;;;;;;;;;iBAWP,gBAAgB,0BAA0B,0BAA0B,SAAS,uBAAuB,WAAW,aAAa,QAAQ;;;iBAGpI,iBAAiB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { n as disposeEmitQueue, r as executeContractEmit } from "./contract-emit-B6odMoem-CK3diBPk.mjs";
|
|
2
|
+
import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
|
|
3
|
+
import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-75qrAPqf-DZAVUxFa.mjs";
|
|
4
|
+
export { createControlClient, disposeEmitQueue, enrichContract, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
2
|
+
//#region ../../../1-framework/3-tooling/cli/dist/exports/init-output.d.mts
|
|
3
|
+
//#region src/commands/init/output.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* arktype schema for the structured success document `init --json` writes
|
|
6
|
+
* to stdout (FR1.5). The same shape backs the human-readable outro
|
|
7
|
+
* renderer (FR10), so the two output modes carry identical information.
|
|
8
|
+
*
|
|
9
|
+
* `target` is normalised to the user-facing flag value (`mongodb` rather
|
|
10
|
+
* than the internal `mongo`) so consumers can round-trip the document
|
|
11
|
+
* straight into a follow-up `--target` invocation.
|
|
12
|
+
*
|
|
13
|
+
* The `ok: true` literal is the documented success/error discriminator —
|
|
14
|
+
* see [Style Guide § JSON Semantics](../../../../../../../docs/CLI%20Style%20Guide.md#json-semantics).
|
|
15
|
+
* Error envelopes (`CliErrorEnvelope`) carry `ok: false` so consumers can
|
|
16
|
+
* branch with `if (doc.ok)` without inspecting the rest of the structure.
|
|
17
|
+
*/
|
|
18
|
+
declare const InitOutputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
19
|
+
ok: true;
|
|
20
|
+
target: "postgres" | "mongodb";
|
|
21
|
+
authoring: "psl" | "typescript";
|
|
22
|
+
schemaPath: string;
|
|
23
|
+
filesWritten: string[];
|
|
24
|
+
filesDeleted: string[];
|
|
25
|
+
packagesInstalled: {
|
|
26
|
+
skipped: boolean;
|
|
27
|
+
deps: string[];
|
|
28
|
+
devDeps: string[];
|
|
29
|
+
};
|
|
30
|
+
contractEmitted: boolean;
|
|
31
|
+
nextSteps: string[];
|
|
32
|
+
warnings: string[];
|
|
33
|
+
}, {}>;
|
|
34
|
+
type InitOutput = typeof InitOutputSchema.infer;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { type InitOutput, InitOutputSchema };
|
|
37
|
+
//# sourceMappingURL=cli__init-output.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__init-output.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/init-output.d.mts"],"mappings":";;;;;;;;;;;;;;;;;cAgBc,gEAAgE;EAC5E;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;;EAEF;EACA;EACA;;KAEG,oBAAoB,iBAAiB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { t as Migration } from "./migration-B2ljMJim.mjs";
|
|
2
|
+
import { Writable } from "node:stream";
|
|
3
|
+
//#region ../../../1-framework/3-tooling/cli/dist/migration-cli.d.mts
|
|
4
|
+
//#region src/migration-cli.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Constructor shape accepted by `MigrationCLI.run`. `Migration` subclasses
|
|
7
|
+
* accept an optional `ControlStack` in their constructor (each subclass
|
|
8
|
+
* narrows the stack to its own family/target generics); the CLI always
|
|
9
|
+
* passes one assembled from the loaded config. We use a rest-args `any[]`
|
|
10
|
+
* constructor signature so that subclass constructors with narrower
|
|
11
|
+
* parameter types remain assignable - constructor type compatibility in
|
|
12
|
+
* TS is contravariant in the parameter, and a wider `unknown` parameter
|
|
13
|
+
* on the alias side would reject any narrower subclass signature.
|
|
14
|
+
*
|
|
15
|
+
* The CLI only ever passes one argument (`new MigrationClass(stack)`);
|
|
16
|
+
* the rest-arity is purely a type-compatibility concession for subclass
|
|
17
|
+
* constructors that declare narrower parameter types, not an extension
|
|
18
|
+
* point for additional construction arguments.
|
|
19
|
+
*/
|
|
20
|
+
type MigrationConstructor = new (...args: any[]) => Migration;
|
|
21
|
+
/**
|
|
22
|
+
* Stream surface accepted by `MigrationCLI.run`'s `options.stdout` /
|
|
23
|
+
* `options.stderr`. Aliases node's `Writable` because clipanion's
|
|
24
|
+
* `BaseContext.stdout`/`stderr` are typed as `Writable`, and the CLI
|
|
25
|
+
* forwards the injected streams into clipanion's context.
|
|
26
|
+
*
|
|
27
|
+
* `process.stdout` and `process.stderr` are `Writable`-shaped, so the
|
|
28
|
+
* default-fallback path remains a no-op for existing two-argument
|
|
29
|
+
* callers like `MigrationCLI.run(import.meta.url, MyMigration)`.
|
|
30
|
+
*
|
|
31
|
+
* Tests inject a `Writable` subclass that captures chunks for
|
|
32
|
+
* assertions.
|
|
33
|
+
*/
|
|
34
|
+
type MigrationCliWritable = Writable;
|
|
35
|
+
/**
|
|
36
|
+
* The CLI surface invoked by an authored `migration.ts` file. Exposed as
|
|
37
|
+
* a class with a static `run` method (rather than a free function) to
|
|
38
|
+
* give the concept a stable identity in the ubiquitous language: this is
|
|
39
|
+
* the "migration-file CLI", distinct from the apply-time runner that
|
|
40
|
+
* executes migration JSON ops.
|
|
41
|
+
*
|
|
42
|
+
* Currently a single static method. Future surface (e.g. a programmatic
|
|
43
|
+
* `MigrationCLI.serializeOnly(...)` for tests, or extra subcommands) can
|
|
44
|
+
* land here without changing the import shape used by every authored
|
|
45
|
+
* migration.
|
|
46
|
+
*/
|
|
47
|
+
declare class MigrationCLI {
|
|
48
|
+
/**
|
|
49
|
+
* Orchestrates a class-flow `migration.ts` script run.
|
|
50
|
+
*
|
|
51
|
+
* The third argument is the in-process testability surface: callers
|
|
52
|
+
* (and tests) may inject `argv`, `stdout`, and `stderr` instead of
|
|
53
|
+
* relying on `process.argv` / `process.stdout` / `process.stderr`.
|
|
54
|
+
* Each option defaults to its `process` global when omitted, so
|
|
55
|
+
* existing two-argument call sites
|
|
56
|
+
* (`MigrationCLI.run(import.meta.url, MyMigration)`) continue to
|
|
57
|
+
* compile and behave identically.
|
|
58
|
+
*
|
|
59
|
+
* Returns the exit code so the caller can branch on it. Also writes
|
|
60
|
+
* the same code to `process.exitCode` so script-style callers that
|
|
61
|
+
* don't await the return value still surface a non-zero exit when
|
|
62
|
+
* something fails.
|
|
63
|
+
*
|
|
64
|
+
* Exit codes:
|
|
65
|
+
* - 0 — success, or `--help`, or imported-not-entrypoint no-op.
|
|
66
|
+
* - 1 — runtime/orchestration error (config not found, target
|
|
67
|
+
* mismatch, etc.).
|
|
68
|
+
* - 2 — usage error (unknown flag, malformed `--config`). Aligns
|
|
69
|
+
* with `docs/CLI Style Guide.md` § Exit Codes.
|
|
70
|
+
*/
|
|
71
|
+
static run(importMetaUrl: string, MigrationClass: MigrationConstructor, options?: {
|
|
72
|
+
readonly argv?: readonly string[];
|
|
73
|
+
readonly stdout?: MigrationCliWritable;
|
|
74
|
+
readonly stderr?: MigrationCliWritable;
|
|
75
|
+
}): Promise<number>;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { MigrationCLI, MigrationCliWritable, MigrationConstructor };
|
|
79
|
+
//# sourceMappingURL=cli__migration-cli.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli__migration-cli.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/migration-cli.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;KAkBK,+BAA+B,gBAAgB;;;;;;;;;;;;;;KAc/C,uBAAuB;;;;;;;;;;;;;cAad;;;;;;;;;;;;;;;;;;;;;;;;SAwBL,IAAI,uBAAuB,gBAAgB,sBAAsB;aAC7D;aACA,SAAS;aACT,SAAS;MAChB"}
|