@prisma/orm-toolchain 8.0.0-rc.1-dev.45 → 8.0.0-rc.10
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/README.md +3 -7
- package/dist/{aggregate-BBsCbXgJ.mjs → aggregate-B4HKshLQ.mjs} +11 -11
- package/dist/aggregate-B4HKshLQ.mjs.map +1 -0
- package/dist/{aggregate-CA6bJ8UO.d.mts → aggregate-D_eX4zoo.d.mts} +5 -5
- package/dist/{aggregate-CA6bJ8UO.d.mts.map → aggregate-D_eX4zoo.d.mts.map} +1 -1
- package/dist/cli-telemetry.d.mts +27 -12
- package/dist/cli-telemetry.d.mts.map +1 -1
- package/dist/cli-telemetry.mjs +286 -9
- package/dist/cli-telemetry.mjs.map +1 -1
- package/dist/cli.d.mts +7 -13
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +4871 -567
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +314 -34
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +2 -19
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/cli__control-api__testing.mjs.map +1 -1
- package/dist/cli__init-output.d.mts +0 -1
- package/dist/cli__init-output.d.mts.map +1 -1
- package/dist/cli__init-output.mjs +1 -1
- package/dist/cli__migration-cli.mjs +10 -10
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/config-loader.d.mts +1 -1
- package/dist/config-loader.mjs +1 -1
- package/dist/{contract-snapshot-store-B0G1Fw_F-C4JjmWEA.mjs → contract-snapshot-store-qGrwlGmt-Cf2NFzRL.mjs} +5 -5
- package/dist/{contract-snapshot-store-B0G1Fw_F-C4JjmWEA.mjs.map → contract-snapshot-store-qGrwlGmt-Cf2NFzRL.mjs.map} +1 -1
- package/dist/{cli-errors-iquUoY6O-BFboxglv.d.mts → db-verify-Yih5kWtB-B1kv76ec.d.mts} +84 -84
- package/dist/db-verify-Yih5kWtB-B1kv76ec.d.mts.map +1 -0
- package/dist/{domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs → domain-type-generation-CR9ECUau-DOlKbcaE.mjs} +20 -6
- package/dist/domain-type-generation-CR9ECUau-DOlKbcaE.mjs.map +1 -0
- package/dist/{domain-type-generation-PkAb39ob-Ct8AGqow.d.mts → domain-type-generation-X6-AaL1U-DHEoRf_y.d.mts} +14 -3
- package/dist/domain-type-generation-X6-AaL1U-DHEoRf_y.d.mts.map +1 -0
- package/dist/emitter.d.mts +2 -2
- package/dist/emitter.mjs +2 -2
- package/dist/emitter__domain-type-generation.d.mts +2 -2
- package/dist/emitter__domain-type-generation.mjs +2 -2
- package/dist/{errors-KWM8yBAL.d.mts → errors-D59OCpoI.d.mts} +2 -2
- package/dist/{errors-KWM8yBAL.d.mts.map → errors-D59OCpoI.d.mts.map} +1 -1
- package/dist/{errors-CXbGUWGu-BQi6YS-H.mjs → errors-SoLLYLtw-DMxVbVs9.mjs} +10 -10
- package/dist/errors-SoLLYLtw-DMxVbVs9.mjs.map +1 -0
- package/dist/{exports-BZLNbtkY.mjs → exports-BXXeNWlj.mjs} +42 -36
- package/dist/exports-BXXeNWlj.mjs.map +1 -0
- package/dist/exports-CE6OD63o-4Qpqr2W7.mjs +398 -0
- package/dist/exports-CE6OD63o-4Qpqr2W7.mjs.map +1 -0
- package/dist/{exports-B3xY_FHp.mjs → exports-CYa2di3d.mjs} +386 -26
- package/dist/exports-CYa2di3d.mjs.map +1 -0
- package/dist/{graph-membership-BViWUMpP-Cgu4Z2ox.mjs → graph-membership-DY1Onbc3-CwBd6wuB.mjs} +3 -3
- package/dist/{graph-membership-BViWUMpP-Cgu4Z2ox.mjs.map → graph-membership-DY1Onbc3-CwBd6wuB.mjs.map} +1 -1
- package/dist/{import-roots-B6CtsWXb.d.mts → import-roots-ARK1wjzc.d.mts} +4 -4
- package/dist/{import-roots-B6CtsWXb.d.mts.map → import-roots-ARK1wjzc.d.mts.map} +1 -1
- package/dist/{import-roots-NDOIEDVj.mjs → import-roots-BHOrDJbI.mjs} +13 -6
- package/dist/import-roots-BHOrDJbI.mjs.map +1 -0
- package/dist/{index-CnOyYxmv.d.mts → index-D217lbiW.d.mts} +8 -4
- package/dist/index-D217lbiW.d.mts.map +1 -0
- package/dist/{index-mCsi_ND5.d.mts → index-u5RdrumF.d.mts} +2 -11
- package/dist/index-u5RdrumF.d.mts.map +1 -0
- package/dist/{invariants-CTHy88OP-DJ-i5yTz.mjs → invariants-Cww4bv0v-BEiFxmbX.mjs} +3 -3
- package/dist/{invariants-CTHy88OP-DJ-i5yTz.mjs.map → invariants-Cww4bv0v-BEiFxmbX.mjs.map} +1 -1
- package/dist/{io-635GlNx1-D94PxRc-.mjs → io-BmWQNxRP-DQqbcPsS.mjs} +5 -5
- package/dist/{io-635GlNx1-D94PxRc-.mjs.map → io-BmWQNxRP-DQqbcPsS.mjs.map} +1 -1
- package/dist/{migration-gubSSeMk.mjs → migration-B9w-7dKe.mjs} +3 -3
- package/dist/{migration-gubSSeMk.mjs.map → migration-B9w-7dKe.mjs.map} +1 -1
- package/dist/{migration-graph-_SJImD5V-D5RCc651.mjs → migration-graph-CW4bMmTz-B5xFtFVB.mjs} +3 -3
- package/dist/{migration-graph-_SJImD5V-D5RCc651.mjs.map → migration-graph-CW4bMmTz-B5xFtFVB.mjs.map} +1 -1
- package/dist/migration-tools.d.mts +5 -5
- package/dist/migration-tools.mjs +13 -13
- package/dist/migration-tools__aggregate.d.mts +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
- package/dist/migration-tools__errors.d.mts +1 -1
- package/dist/migration-tools__errors.mjs +1 -1
- package/dist/migration-tools__invariants.mjs +1 -1
- package/dist/migration-tools__io.mjs +1 -1
- package/dist/migration-tools__migration-graph.mjs +2 -2
- package/dist/migration-tools__migration-ts.mjs +1 -1
- package/dist/migration-tools__migration.mjs +1 -1
- package/dist/migration-tools__ref-resolution.d.mts +1 -1
- package/dist/migration-tools__ref-resolution.mjs +1 -1
- package/dist/migration-tools__refs.mjs +1 -1
- package/dist/migration-tools__spaces.d.mts +2 -2
- package/dist/migration-tools__spaces.mjs +2 -2
- package/dist/{migration-ts-BoHxxGvi.mjs → migration-ts-DdVm0rws.mjs} +2 -2
- package/dist/{migration-ts-BoHxxGvi.mjs.map → migration-ts-DdVm0rws.mjs.map} +1 -1
- package/dist/{output-DP3woAjV-BxCr9nHA.mjs → output-D83nTTpC-XlvN30yS.mjs} +5 -47
- package/dist/output-D83nTTpC-XlvN30yS.mjs.map +1 -0
- package/dist/publish-surface.d.mts +2 -2
- package/dist/publish-surface.mjs +2 -2
- package/dist/publish-surface__import-roots.d.mts +1 -1
- package/dist/publish-surface__import-roots.mjs +1 -1
- package/dist/publish-surface__shells.d.mts +1 -1
- package/dist/publish-surface__shells.mjs +1 -1
- package/dist/quick-reference-mongo.md +21 -18
- package/dist/quick-reference-postgres.md +20 -17
- package/dist/readme-mongo.md +7 -7
- package/dist/readme-postgres.md +7 -7
- package/dist/ref-DcqFmceq-QaUjgZeM.mjs +4789 -0
- package/dist/ref-DcqFmceq-QaUjgZeM.mjs.map +1 -0
- package/dist/{ref-resolution-sGcINe7o.mjs → ref-resolution-BWpwb8_b.mjs} +9 -2
- package/dist/ref-resolution-BWpwb8_b.mjs.map +1 -0
- package/dist/{ref-resolution-COGOSL57.d.mts → ref-resolution-CaHQJXE0.d.mts} +11 -1
- package/dist/ref-resolution-CaHQJXE0.d.mts.map +1 -0
- package/dist/{refs-WK86uYYp-B6EZkmmT.mjs → refs-BpSpzdYB-BcDelHGt.mjs} +9 -9
- package/dist/refs-BpSpzdYB-BcDelHGt.mjs.map +1 -0
- package/dist/{shells-BenrJHp2.mjs → shells-BIdFZwUY.mjs} +13 -19
- package/dist/shells-BIdFZwUY.mjs.map +1 -0
- package/dist/{shells-COHV_Ozf.d.mts → shells-CIUmT4u4.d.mts} +14 -20
- package/dist/shells-CIUmT4u4.d.mts.map +1 -0
- package/dist/{spaces-tWQi7CUv.d.mts → spaces-B20bgxF9.d.mts} +3 -3
- package/dist/{spaces-tWQi7CUv.d.mts.map → spaces-B20bgxF9.d.mts.map} +1 -1
- package/dist/{spaces-BG2w0P8d.mjs → spaces-BCZiAZQn.mjs} +8 -8
- package/dist/spaces-BCZiAZQn.mjs.map +1 -0
- package/dist/{verify-contract-spaces-Cc1u_wJo-BilPJS2S.d.mts → verify-contract-spaces-C3PiFBk3-DfomYyOE.d.mts} +3 -3
- package/dist/{verify-contract-spaces-Cc1u_wJo-BilPJS2S.d.mts.map → verify-contract-spaces-C3PiFBk3-DfomYyOE.d.mts.map} +1 -1
- package/dist/{verify-contract-spaces-DhJTb0zM-_oh6W6lp.mjs → verify-contract-spaces-CrxvgpwD-D5LLXGci.mjs} +8 -8
- package/dist/{verify-contract-spaces-DhJTb0zM-_oh6W6lp.mjs.map → verify-contract-spaces-CrxvgpwD-D5LLXGci.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.d.mts +3 -3
- package/dist/vite-plugin-contract-emit.mjs +10 -10
- package/dist/vite-plugin-contract-emit.mjs.map +1 -1
- package/package.json +16 -40
- package/dist/aggregate-BBsCbXgJ.mjs.map +0 -1
- package/dist/bin__prisma-next.mjs +0 -512
- package/dist/bin__prisma-next.mjs.map +0 -1
- package/dist/caught-errors-BZo7zcRc-C-pIEasG.mjs +0 -14
- package/dist/caught-errors-BZo7zcRc-C-pIEasG.mjs.map +0 -1
- package/dist/cli-errors-B4zTLaqQ-CXgjO9t4.mjs +0 -347
- package/dist/cli-errors-B4zTLaqQ-CXgjO9t4.mjs.map +0 -1
- package/dist/cli-errors-iquUoY6O-BFboxglv.d.mts.map +0 -1
- package/dist/cli__commands__contract-emit.d.mts +0 -2
- package/dist/cli__commands__contract-emit.mjs +0 -2
- package/dist/cli__commands__contract-infer.d.mts +0 -7
- package/dist/cli__commands__contract-infer.d.mts.map +0 -1
- package/dist/cli__commands__contract-infer.mjs +0 -2
- package/dist/cli__commands__db-init.d.mts +0 -7
- package/dist/cli__commands__db-init.d.mts.map +0 -1
- package/dist/cli__commands__db-init.mjs +0 -2
- package/dist/cli__commands__db-schema.d.mts +0 -7
- package/dist/cli__commands__db-schema.d.mts.map +0 -1
- package/dist/cli__commands__db-schema.mjs +0 -2
- package/dist/cli__commands__db-sign.d.mts +0 -7
- package/dist/cli__commands__db-sign.d.mts.map +0 -1
- package/dist/cli__commands__db-sign.mjs +0 -2
- package/dist/cli__commands__db-update.d.mts +0 -7
- package/dist/cli__commands__db-update.d.mts.map +0 -1
- package/dist/cli__commands__db-update.mjs +0 -2
- package/dist/cli__commands__db-verify.d.mts +0 -7
- package/dist/cli__commands__db-verify.d.mts.map +0 -1
- package/dist/cli__commands__db-verify.mjs +0 -2
- package/dist/cli__commands__migrate.d.mts +0 -57
- package/dist/cli__commands__migrate.d.mts.map +0 -1
- package/dist/cli__commands__migrate.mjs +0 -2
- package/dist/cli__commands__migration-check.d.mts +0 -8
- package/dist/cli__commands__migration-check.d.mts.map +0 -1
- package/dist/cli__commands__migration-check.mjs +0 -3
- package/dist/cli__commands__migration-graph.d.mts +0 -38
- package/dist/cli__commands__migration-graph.d.mts.map +0 -1
- package/dist/cli__commands__migration-graph.mjs +0 -2
- package/dist/cli__commands__migration-list.d.mts +0 -39
- package/dist/cli__commands__migration-list.d.mts.map +0 -1
- package/dist/cli__commands__migration-list.mjs +0 -2
- package/dist/cli__commands__migration-log.d.mts +0 -20
- package/dist/cli__commands__migration-log.d.mts.map +0 -1
- package/dist/cli__commands__migration-log.mjs +0 -2
- package/dist/cli__commands__migration-new.d.mts +0 -7
- package/dist/cli__commands__migration-new.d.mts.map +0 -1
- package/dist/cli__commands__migration-new.mjs +0 -2
- package/dist/cli__commands__migration-plan.d.mts +0 -34
- package/dist/cli__commands__migration-plan.d.mts.map +0 -1
- package/dist/cli__commands__migration-plan.mjs +0 -2
- package/dist/cli__commands__migration-show.d.mts +0 -27
- package/dist/cli__commands__migration-show.d.mts.map +0 -1
- package/dist/cli__commands__migration-show.mjs +0 -2
- package/dist/cli__commands__migration-status.d.mts +0 -55
- package/dist/cli__commands__migration-status.d.mts.map +0 -1
- package/dist/cli__commands__migration-status.mjs +0 -3
- package/dist/cli__commands__ref.d.mts +0 -7
- package/dist/cli__commands__ref.d.mts.map +0 -1
- package/dist/cli__commands__ref.mjs +0 -2
- package/dist/cli__commands__telemetry.d.mts +0 -7
- package/dist/cli__commands__telemetry.d.mts.map +0 -1
- package/dist/cli__commands__telemetry.mjs +0 -2
- package/dist/client-C6Qp5ujC-Dxb7r79B.mjs +0 -1653
- package/dist/client-C6Qp5ujC-Dxb7r79B.mjs.map +0 -1
- package/dist/code-templates-C-jirr19-DDQB0WGo.mjs +0 -295
- package/dist/code-templates-C-jirr19-DDQB0WGo.mjs.map +0 -1
- package/dist/combine-verify-results-B87B_pMc-D4l22OqY.mjs +0 -65
- package/dist/combine-verify-results-B87B_pMc-D4l22OqY.mjs.map +0 -1
- package/dist/command-helpers-BCgwcqTe-lNCtppzM.mjs +0 -776
- package/dist/command-helpers-BCgwcqTe-lNCtppzM.mjs.map +0 -1
- package/dist/contract-at-errors-BSoDI0Hw-BXeUNE3s.mjs +0 -44
- package/dist/contract-at-errors-BSoDI0Hw-BXeUNE3s.mjs.map +0 -1
- package/dist/contract-emit-BG7KL4zk-_a0J310Z.mjs +0 -331
- package/dist/contract-emit-BG7KL4zk-_a0J310Z.mjs.map +0 -1
- package/dist/contract-emit-BkEj3siG-C8M-IyvS.mjs +0 -2
- package/dist/contract-emit-CvwNE4R1-DEn1V1Zo.d.mts +0 -7
- package/dist/contract-emit-CvwNE4R1-DEn1V1Zo.d.mts.map +0 -1
- package/dist/contract-emit-GknCmgn_-BSWdFprC.mjs +0 -154
- package/dist/contract-emit-GknCmgn_-BSWdFprC.mjs.map +0 -1
- package/dist/contract-enrichment-DrMvvY2A-DxNGeF4d.mjs +0 -56
- package/dist/contract-enrichment-DrMvvY2A-DxNGeF4d.mjs.map +0 -1
- package/dist/contract-infer-BwIDGl7v-CZrdWXAr.mjs +0 -74
- package/dist/contract-infer-BwIDGl7v-CZrdWXAr.mjs.map +0 -1
- package/dist/contract-snapshot-resolution-De2VvOJn-DqIAV9cr.mjs +0 -82
- package/dist/contract-snapshot-resolution-De2VvOJn-DqIAV9cr.mjs.map +0 -1
- package/dist/contract-space-aggregate-loader-fa04OIaL-B7LXHle3.mjs +0 -303
- package/dist/contract-space-aggregate-loader-fa04OIaL-B7LXHle3.mjs.map +0 -1
- package/dist/db-init-BolXrKAI-CwG-zEDW.mjs +0 -109
- package/dist/db-init-BolXrKAI-CwG-zEDW.mjs.map +0 -1
- package/dist/db-init-failure-B5cQML4A-5zr-99Ek.mjs +0 -44
- package/dist/db-init-failure-B5cQML4A-5zr-99Ek.mjs.map +0 -1
- package/dist/db-schema-DvdLBdEY-Dl6e1d_Y.mjs +0 -48
- package/dist/db-schema-DvdLBdEY-Dl6e1d_Y.mjs.map +0 -1
- package/dist/db-sign-DCp4c8CA-B3tun-kh.mjs +0 -172
- package/dist/db-sign-DCp4c8CA-B3tun-kh.mjs.map +0 -1
- package/dist/db-update-CfayE8WE-CPhQyDaZ.mjs +0 -171
- package/dist/db-update-CfayE8WE-CPhQyDaZ.mjs.map +0 -1
- package/dist/db-verify-BN7IrOAL-kEzRNJUl.mjs +0 -358
- package/dist/db-verify-BN7IrOAL-kEzRNJUl.mjs.map +0 -1
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts.map +0 -1
- package/dist/domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs.map +0 -1
- package/dist/errors-CXbGUWGu-BQi6YS-H.mjs.map +0 -1
- package/dist/exports-B3xY_FHp.mjs.map +0 -1
- package/dist/exports-BCLg4CiV-05kuwcb0.mjs +0 -160
- package/dist/exports-BCLg4CiV-05kuwcb0.mjs.map +0 -1
- package/dist/exports-BZLNbtkY.mjs.map +0 -1
- package/dist/exports-CqNUihkI.mjs +0 -276
- package/dist/exports-CqNUihkI.mjs.map +0 -1
- package/dist/format-Ca7dUE6B-BMFqrc6D.mjs +0 -110
- package/dist/format-Ca7dUE6B-BMFqrc6D.mjs.map +0 -1
- package/dist/framework-components-Bau7o1-J-DTp6AUoq.mjs +0 -60
- package/dist/framework-components-Bau7o1-J-DTp6AUoq.mjs.map +0 -1
- package/dist/global-flags-BpoOYtNZ-CHZD3fud.d.mts +0 -35
- package/dist/global-flags-BpoOYtNZ-CHZD3fud.d.mts.map +0 -1
- package/dist/import-roots-NDOIEDVj.mjs.map +0 -1
- package/dist/index-CnOyYxmv.d.mts.map +0 -1
- package/dist/index-mCsi_ND5.d.mts.map +0 -1
- package/dist/init-DC7zPKka-BSiUrPw3.mjs +0 -800
- package/dist/init-DC7zPKka-BSiUrPw3.mjs.map +0 -1
- package/dist/inspect-live-schema-BPHXdvqW-DrzL2ZkQ.mjs +0 -95
- package/dist/inspect-live-schema-BPHXdvqW-DrzL2ZkQ.mjs.map +0 -1
- package/dist/integrity-violation-to-check-failure-BmWMLAae-DqiC4_3p.mjs +0 -115
- package/dist/integrity-violation-to-check-failure-BmWMLAae-DqiC4_3p.mjs.map +0 -1
- package/dist/invariants-Bltd8DyA-Cg_1Lu0q.mjs +0 -53
- package/dist/invariants-Bltd8DyA-Cg_1Lu0q.mjs.map +0 -1
- package/dist/legend-DGv9e2_0-BtetgRz4.mjs +0 -22
- package/dist/legend-DGv9e2_0-BtetgRz4.mjs.map +0 -1
- package/dist/migrate-BXATUjYE-Do79Imf-.mjs +0 -343
- package/dist/migrate-BXATUjYE-Do79Imf-.mjs.map +0 -1
- package/dist/migrate-failure-D4NvkoCk-0bttmQs2.mjs +0 -96
- package/dist/migrate-failure-D4NvkoCk-0bttmQs2.mjs.map +0 -1
- package/dist/migrate-show-B8UJ9dmb-C4RTPbDk.d.mts +0 -63
- package/dist/migrate-show-B8UJ9dmb-C4RTPbDk.d.mts.map +0 -1
- package/dist/migrate-show-C_9xR4Qt-B-Y0PGKw.mjs +0 -199
- package/dist/migrate-show-C_9xR4Qt-B-Y0PGKw.mjs.map +0 -1
- package/dist/migration-check-Bbdw7t-r-C2VTMK61.mjs +0 -358
- package/dist/migration-check-Bbdw7t-r-C2VTMK61.mjs.map +0 -1
- package/dist/migration-check-DbHgYK7F-7mtYNVFu.mjs +0 -163
- package/dist/migration-check-DbHgYK7F-7mtYNVFu.mjs.map +0 -1
- package/dist/migration-command-scaffold-SzjR2naH-Yi3-rNfX.mjs +0 -121
- package/dist/migration-command-scaffold-SzjR2naH-Yi3-rNfX.mjs.map +0 -1
- package/dist/migration-graph-B8WxW_tm-qGNf7jQh.mjs +0 -35
- package/dist/migration-graph-B8WxW_tm-qGNf7jQh.mjs.map +0 -1
- package/dist/migration-graph-BOwu76mF-kOTWFvfV.mjs +0 -144
- package/dist/migration-graph-BOwu76mF-kOTWFvfV.mjs.map +0 -1
- package/dist/migration-graph-command-render-h0VdTkSM-C3rPZEw1.mjs +0 -2127
- package/dist/migration-graph-command-render-h0VdTkSM-C3rPZEw1.mjs.map +0 -1
- package/dist/migration-graph-sections-BBHPOFN--COKyUKQ4.mjs +0 -69
- package/dist/migration-graph-sections-BBHPOFN--COKyUKQ4.mjs.map +0 -1
- package/dist/migration-list-CKuYcMQq-CubZzE9i.mjs +0 -130
- package/dist/migration-list-CKuYcMQq-CubZzE9i.mjs.map +0 -1
- package/dist/migration-list-CY08bD8I-PoXuv94c.mjs +0 -102
- package/dist/migration-list-CY08bD8I-PoXuv94c.mjs.map +0 -1
- package/dist/migration-log-CUbGla-9-BLIrWjwN.mjs +0 -123
- package/dist/migration-log-CUbGla-9-BLIrWjwN.mjs.map +0 -1
- package/dist/migration-log-table-eES9lPjv-BCFm8qJr.mjs +0 -116
- package/dist/migration-log-table-eES9lPjv-BCFm8qJr.mjs.map +0 -1
- package/dist/migration-new-ChvZjf5X-BFhEM0BF.mjs +0 -70
- package/dist/migration-new-ChvZjf5X-BFhEM0BF.mjs.map +0 -1
- package/dist/migration-new-DXMvJdbB-BkrpDfcr.mjs +0 -130
- package/dist/migration-new-DXMvJdbB-BkrpDfcr.mjs.map +0 -1
- package/dist/migration-path-target-JDWqF9kj-B7zoMq6X.mjs +0 -38
- package/dist/migration-path-target-JDWqF9kj-B7zoMq6X.mjs.map +0 -1
- package/dist/migration-plan-BV9f5Xjq-DiyscOMc.d.mts +0 -164
- package/dist/migration-plan-BV9f5Xjq-DiyscOMc.d.mts.map +0 -1
- package/dist/migration-plan-Bz1hOTHF-CFCtPuOv.mjs +0 -192
- package/dist/migration-plan-Bz1hOTHF-CFCtPuOv.mjs.map +0 -1
- package/dist/migration-plan-Cfz0efEL-DMNFq5b2.mjs +0 -621
- package/dist/migration-plan-Cfz0efEL-DMNFq5b2.mjs.map +0 -1
- package/dist/migration-show-BGdR1xnT-Cg3M0FPh.mjs +0 -178
- package/dist/migration-show-BGdR1xnT-Cg3M0FPh.mjs.map +0 -1
- package/dist/migration-status-BIrAJ5af-D-_mMBUA.mjs +0 -427
- package/dist/migration-status-BIrAJ5af-D-_mMBUA.mjs.map +0 -1
- package/dist/output-DP3woAjV-BxCr9nHA.mjs.map +0 -1
- package/dist/progress-adapter-CjAeTxY_-BXYSd1eY.mjs +0 -43
- package/dist/progress-adapter-CjAeTxY_-BXYSd1eY.mjs.map +0 -1
- package/dist/project-import-root-B4nM-VWX-D__g0hTb.mjs +0 -101
- package/dist/project-import-root-B4nM-VWX-D__g0hTb.mjs.map +0 -1
- package/dist/redact-secrets-DuKoiMax-Cfe2XVhc.mjs +0 -1476
- package/dist/redact-secrets-DuKoiMax-Cfe2XVhc.mjs.map +0 -1
- package/dist/ref-4x6BGSsd-ClaoZIQh.mjs +0 -95
- package/dist/ref-4x6BGSsd-ClaoZIQh.mjs.map +0 -1
- package/dist/ref-WXLIR9Xm-12IUtoBU.mjs +0 -104
- package/dist/ref-WXLIR9Xm-12IUtoBU.mjs.map +0 -1
- package/dist/ref-advancement-DaZBzm7m-WoqnFAyr.mjs +0 -96
- package/dist/ref-advancement-DaZBzm7m-WoqnFAyr.mjs.map +0 -1
- package/dist/ref-resolution-BSN1amKm-C6-TTM2N.mjs +0 -16
- package/dist/ref-resolution-BSN1amKm-C6-TTM2N.mjs.map +0 -1
- package/dist/ref-resolution-COGOSL57.d.mts.map +0 -1
- package/dist/ref-resolution-sGcINe7o.mjs.map +0 -1
- package/dist/refs-WK86uYYp-B6EZkmmT.mjs.map +0 -1
- package/dist/refs-fQLFcMoq-aTBeUU9H.mjs +0 -47
- package/dist/refs-fQLFcMoq-aTBeUU9H.mjs.map +0 -1
- package/dist/schemas-BGgjiKV0-Rh8RlMCl.d.mts +0 -206
- package/dist/schemas-BGgjiKV0-Rh8RlMCl.d.mts.map +0 -1
- package/dist/schemas-CYSD83Cu-Bff4PPoi.mjs +0 -119
- package/dist/schemas-CYSD83Cu-Bff4PPoi.mjs.map +0 -1
- package/dist/shells-BenrJHp2.mjs.map +0 -1
- package/dist/shells-COHV_Ozf.d.mts.map +0 -1
- package/dist/spaces-BG2w0P8d.mjs.map +0 -1
- package/dist/telemetry-BD52LETE-Cqeb7ebh.mjs +0 -121
- package/dist/telemetry-BD52LETE-Cqeb7ebh.mjs.map +0 -1
- package/dist/terminal-ui-BN4QOsm5-Bf3pim46.d.mts +0 -133
- package/dist/terminal-ui-BN4QOsm5-Bf3pim46.d.mts.map +0 -1
- package/dist/terminal-ui-Cqz4LVL7-B0mcVdLy.mjs +0 -676
- package/dist/terminal-ui-Cqz4LVL7-B0mcVdLy.mjs.map +0 -1
- package/dist/verify-Cogr_Fj9-D3lCWA6t.mjs +0 -283
- package/dist/verify-Cogr_Fj9-D3lCWA6t.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refs-WK86uYYp-B6EZkmmT.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/refs-WK86uYYp.mjs"],"sourcesContent":["import { b as errorInvalidRefName, t as MigrationToolsError, x as errorInvalidRefValue, y as errorInvalidRefFile } from \"./errors-CXbGUWGu.mjs\";\nimport { dirname, join, relative } from \"pathe\";\nimport { mkdir, readFile, readdir, rename, rmdir, unlink, writeFile } from \"node:fs/promises\";\nimport { type } from \"arktype\";\n//#region src/refs.ts\n/**\n* The system head ref lives at `refs/head.json`. It is read (and its\n* corruption judged) through `readContractSpaceHeadRef`, not as a\n* user-authored ref, so {@link readRefsTolerant} excludes it.\n*/\nconst HEAD_REF_NAME = \"head\";\nconst REF_NAME_PATTERN = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\/[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/;\nconst REF_VALUE_PATTERN = /^(empty|[0-9a-f]{64})$/;\nfunction validateRefName(name) {\n\tif (name.length === 0) return false;\n\tif (name.includes(\"..\")) return false;\n\tif (name.includes(\"//\")) return false;\n\tif (name.startsWith(\".\")) return false;\n\treturn REF_NAME_PATTERN.test(name);\n}\nfunction validateRefValue(value) {\n\treturn REF_VALUE_PATTERN.test(value);\n}\nconst RefEntrySchema = type({\n\thash: \"string\",\n\tinvariants: \"string[]\"\n}).narrow((entry, ctx) => {\n\tif (!validateRefValue(entry.hash)) return ctx.mustBe(`a valid contract hash (got \"${entry.hash}\")`);\n\treturn true;\n});\nfunction refFilePath(refsDir, name) {\n\treturn join(refsDir, `${name}.json`);\n}\nfunction refNameFromPath(refsDir, filePath) {\n\treturn relative(refsDir, filePath).replace(/\\.json$/, \"\");\n}\nasync function readRef(refsDir, name) {\n\tif (!validateRefName(name)) throw errorInvalidRefName(name);\n\tconst filePath = refFilePath(refsDir, name);\n\tlet raw;\n\ttry {\n\t\traw = await readFile(filePath, \"utf-8\");\n\t} catch (error) {\n\t\tif (error instanceof Error && error.code === \"ENOENT\") throw new MigrationToolsError(\"MIGRATION.UNKNOWN_REF\", `Unknown ref \"${name}\"`, {\n\t\t\twhy: `No ref file found at \"${filePath}\".`,\n\t\t\tfix: `Create the ref with: prisma-next ref set ${name} <hash>`,\n\t\t\tnextActions: [{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: `Create the ref \"${name}\"`,\n\t\t\t\tcommand: `{bin} ref set ${name} <hash>`\n\t\t\t}],\n\t\t\tmeta: {\n\t\t\t\trefName: name,\n\t\t\t\tfilePath\n\t\t\t}\n\t\t});\n\t\tthrow error;\n\t}\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch {\n\t\tthrow errorInvalidRefFile(filePath, \"Failed to parse as JSON\");\n\t}\n\tconst result = RefEntrySchema(parsed);\n\tif (result instanceof type.errors) throw errorInvalidRefFile(filePath, result.summary);\n\treturn result;\n}\nasync function readRefs(refsDir) {\n\tlet entries;\n\ttry {\n\t\tentries = await readdir(refsDir, {\n\t\t\trecursive: true,\n\t\t\tencoding: \"utf-8\"\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Error && error.code === \"ENOENT\") return {};\n\t\tthrow error;\n\t}\n\tconst jsonFiles = entries.filter((entry) => entry.endsWith(\".json\") && !entry.endsWith(\".contract.json\"));\n\tconst refs = {};\n\tfor (const jsonFile of jsonFiles) {\n\t\tconst filePath = join(refsDir, jsonFile);\n\t\tconst name = refNameFromPath(refsDir, filePath);\n\t\tlet raw;\n\t\ttry {\n\t\t\traw = await readFile(filePath, \"utf-8\");\n\t\t} catch (error) {\n\t\t\tconst code = error instanceof Error ? error.code : void 0;\n\t\t\tif (code === \"ENOENT\" || code === \"EISDIR\") continue;\n\t\t\tthrow error;\n\t\t}\n\t\tlet parsed;\n\t\ttry {\n\t\t\tparsed = JSON.parse(raw);\n\t\t} catch {\n\t\t\tthrow errorInvalidRefFile(filePath, \"Failed to parse as JSON\");\n\t\t}\n\t\tconst result = RefEntrySchema(parsed);\n\t\tif (result instanceof type.errors) throw errorInvalidRefFile(filePath, result.summary);\n\t\trefs[name] = result;\n\t}\n\treturn refs;\n}\n/**\n* Read a space's user-authored refs without ever throwing on disk\n* content. A ref whose JSON is unparseable or whose shape fails\n* {@link RefEntrySchema} is omitted from `refs` and reported as a\n* {@link RefLoadProblem}; the remaining well-formed refs are still\n* returned. A missing `refs/` directory yields no refs and no problems.\n*\n* `refs/head.json` is deliberately skipped here: the system head ref is\n* read through `readContractSpaceHeadRef` (which validates head-ref\n* shape, distinct from the strict user-ref hash grammar), so it is judged\n* there and never doubles as a user ref. Genuine I/O faults (EACCES, EIO,\n* …) still propagate — only parse / schema problems are made tolerant.\n*/\nasync function readRefsTolerant(refsDir) {\n\tlet entries;\n\ttry {\n\t\tentries = await readdir(refsDir, {\n\t\t\trecursive: true,\n\t\t\tencoding: \"utf-8\"\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Error && error.code === \"ENOENT\") return {\n\t\t\trefs: {},\n\t\t\tproblems: []\n\t\t};\n\t\tthrow error;\n\t}\n\tconst jsonFiles = entries.filter((entry) => entry.endsWith(\".json\") && !entry.endsWith(\".contract.json\") && entry !== `head.json`);\n\tconst refs = {};\n\tconst problems = [];\n\tfor (const jsonFile of jsonFiles) {\n\t\tconst filePath = join(refsDir, jsonFile);\n\t\tconst name = refNameFromPath(refsDir, filePath);\n\t\tlet raw;\n\t\ttry {\n\t\t\traw = await readFile(filePath, \"utf-8\");\n\t\t} catch (error) {\n\t\t\tconst code = error instanceof Error ? error.code : void 0;\n\t\t\tif (code === \"ENOENT\" || code === \"EISDIR\") continue;\n\t\t\tthrow error;\n\t\t}\n\t\tlet parsed;\n\t\ttry {\n\t\t\tparsed = JSON.parse(raw);\n\t\t} catch (e) {\n\t\t\tproblems.push({\n\t\t\t\trefName: name,\n\t\t\t\tdetail: e instanceof Error ? e.message : String(e)\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst result = RefEntrySchema(parsed);\n\t\tif (result instanceof type.errors) {\n\t\t\tproblems.push({\n\t\t\t\trefName: name,\n\t\t\t\tdetail: result.summary\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\trefs[name] = result;\n\t}\n\treturn {\n\t\trefs,\n\t\tproblems\n\t};\n}\nasync function writeRef(refsDir, name, entry) {\n\tif (!validateRefName(name)) throw errorInvalidRefName(name);\n\tif (!validateRefValue(entry.hash)) throw errorInvalidRefValue(entry.hash);\n\tconst filePath = refFilePath(refsDir, name);\n\tconst dir = dirname(filePath);\n\tawait mkdir(dir, { recursive: true });\n\tconst tmpPath = join(dir, `.${name.split(\"/\").pop()}.json.${Date.now()}.tmp`);\n\tawait writeFile(tmpPath, `${JSON.stringify({\n\t\thash: entry.hash,\n\t\tinvariants: [...entry.invariants]\n\t}, null, 2)}\\n`);\n\tawait rename(tmpPath, filePath);\n}\nasync function deleteRef(refsDir, name) {\n\tif (!validateRefName(name)) throw errorInvalidRefName(name);\n\tconst filePath = refFilePath(refsDir, name);\n\ttry {\n\t\tawait unlink(filePath);\n\t} catch (error) {\n\t\tif (error instanceof Error && error.code === \"ENOENT\") throw new MigrationToolsError(\"MIGRATION.UNKNOWN_REF\", `Unknown ref \"${name}\"`, {\n\t\t\twhy: `No ref file found at \"${filePath}\".`,\n\t\t\tfix: \"Run `prisma-next ref list` to see available refs.\",\n\t\t\tnextActions: [{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"List the available refs\",\n\t\t\t\tcommand: \"{bin} ref list\"\n\t\t\t}],\n\t\t\tmeta: {\n\t\t\t\trefName: name,\n\t\t\t\tfilePath\n\t\t\t}\n\t\t});\n\t\tthrow error;\n\t}\n\tlet dir = dirname(filePath);\n\twhile (dir !== refsDir && dir.startsWith(refsDir)) try {\n\t\tawait rmdir(dir);\n\t\tdir = dirname(dir);\n\t} catch (error) {\n\t\tconst code = error instanceof Error ? error.code : void 0;\n\t\tif (code === \"ENOTEMPTY\" || code === \"EEXIST\" || code === \"ENOENT\") break;\n\t\tthrow error;\n\t}\n}\n/**\n* Index user-authored refs by the contract hash each ref points at.\n* Each bucket is sorted lex-asc for deterministic output.\n*/\nfunction refsByContractHash(refs) {\n\tconst byHash = /* @__PURE__ */ new Map();\n\tfor (const [name, entry] of Object.entries(refs)) {\n\t\tconst bucket = byHash.get(entry.hash);\n\t\tif (bucket) bucket.push(name);\n\t\telse byHash.set(entry.hash, [name]);\n\t}\n\tfor (const bucket of byHash.values()) bucket.sort();\n\treturn byHash;\n}\n/**\n* Read `migrations/<space>/refs/*.json` and index by destination hash.\n* Returns an empty map when the refs directory does not exist.\n*/\nasync function resolveRefsByContractHash(refsDir) {\n\treturn refsByContractHash(await readRefs(refsDir));\n}\nfunction resolveRef(refs, name) {\n\tif (!validateRefName(name)) throw errorInvalidRefName(name);\n\tif (!Object.hasOwn(refs, name)) throw new MigrationToolsError(\"MIGRATION.UNKNOWN_REF\", `Unknown ref \"${name}\"`, {\n\t\twhy: `No ref named \"${name}\" exists.`,\n\t\tfix: `Available refs: ${Object.keys(refs).join(\", \") || \"(none)\"}. Create a ref with: prisma-next ref set ${name} <hash>`,\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: `Create the ref \"${name}\"`,\n\t\t\tcommand: `{bin} ref set ${name} <hash>`,\n\t\t\treason: `Available refs: ${Object.keys(refs).join(\", \") || \"(none)\"}.`\n\t\t}],\n\t\tmeta: {\n\t\t\trefName: name,\n\t\t\tavailableRefs: Object.keys(refs)\n\t\t}\n\t});\n\treturn refs[name];\n}\n//#endregion\nexport { readRefsTolerant as a, resolveRefsByContractHash as c, writeRef as d, readRefs as i, validateRefName as l, deleteRef as n, refsByContractHash as o, readRef as r, resolveRef as s, HEAD_REF_NAME as t, validateRefValue as u };\n\n//# sourceMappingURL=refs-WK86uYYp.mjs.map"],"mappings":";;;;;;;;;;AAUA,MAAM,gBAAgB;AACtB,MAAM,mBAAmB;AACzB,MAAM,oBAAoB;AAC1B,SAAS,gBAAgB,MAAM;CAC9B,IAAI,KAAK,WAAW,GAAG,OAAO;CAC9B,IAAI,KAAK,SAAS,IAAI,GAAG,OAAO;CAChC,IAAI,KAAK,SAAS,IAAI,GAAG,OAAO;CAChC,IAAI,KAAK,WAAW,GAAG,GAAG,OAAO;CACjC,OAAO,iBAAiB,KAAK,IAAI;AAClC;AACA,SAAS,iBA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AK,iBAAiB,KAAK;EAC3B,KAAK,mBAAmB,OAAO,KAAK,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,SAAS,2CAA2C,KAAK;EACjH,aAAa,CAAC;GACb,MAAM;GACN,OAAO,mBAAmB,KAAK;GAC/B,SAAS,iBAAiB,KAAK;GAC/B,QAAQ,mBAAmB,OAAO,KAAK,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,SAAS;EACrE,CAAC;EACD,MAAM;GACL,SAAS;GACT,eAAe,OAAO,KAAK,IAAI;EAChC;CACD,CAAC;CACD,OAAO,KAAK;AACb"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { t as MigrationToolsError } from "./errors-CXbGUWGu-BQi6YS-H.mjs";
|
|
2
|
-
import "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
3
|
-
import { a as findPath } from "./migration-graph-_SJImD5V-D5RCc651.mjs";
|
|
4
|
-
import { i as readRefs } from "./refs-WK86uYYp-B6EZkmmT.mjs";
|
|
5
|
-
import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
6
|
-
//#region ../../../1-framework/3-tooling/cli/dist/refs-fQLFcMoq.mjs
|
|
7
|
-
/** Origin hash for status path computation: the live/override marker, or the empty-contract sentinel. */
|
|
8
|
-
function originHashForStatus(markerHash) {
|
|
9
|
-
return markerHash ?? "empty";
|
|
10
|
-
}
|
|
11
|
-
function deriveStatusEdgeAnnotations(input) {
|
|
12
|
-
const annotations = /* @__PURE__ */ new Map();
|
|
13
|
-
if (input.showAppliedOverlay) {
|
|
14
|
-
for (const edge of input.graph.migrationByHash.values()) if (input.appliedMigrationHashes.has(edge.migrationHash)) annotations.set(edge.migrationHash, { status: "applied" });
|
|
15
|
-
}
|
|
16
|
-
if (!input.graph.nodes.has(input.originHash)) return annotations;
|
|
17
|
-
const pendingPath = findPath(input.graph, input.originHash, input.targetHash);
|
|
18
|
-
if (!pendingPath) return annotations;
|
|
19
|
-
for (const edge of pendingPath) {
|
|
20
|
-
if (input.appliedMigrationHashes.has(edge.migrationHash)) continue;
|
|
21
|
-
if (annotations.get(edge.migrationHash)?.status === "applied") continue;
|
|
22
|
-
annotations.set(edge.migrationHash, { status: "pending" });
|
|
23
|
-
}
|
|
24
|
-
return annotations;
|
|
25
|
-
}
|
|
26
|
-
function appliedHashesFromLedger(ledgerEntries) {
|
|
27
|
-
return new Set(ledgerEntries.map((entry) => entry.migrationHash));
|
|
28
|
-
}
|
|
29
|
-
function statusForMigrationHash(migrationHash, annotations) {
|
|
30
|
-
return annotations.get(migrationHash)?.status ?? null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Reads the migrations refs index for commands, mapping MigrationToolsError into the CLI envelope.
|
|
34
|
-
*/
|
|
35
|
-
/** Reads migrations/<app>/refs, passing MigrationToolsError through; other errors rethrow. */
|
|
36
|
-
async function readMigrationRefs(refsDir) {
|
|
37
|
-
try {
|
|
38
|
-
return ok(await readRefs(refsDir));
|
|
39
|
-
} catch (error) {
|
|
40
|
-
if (MigrationToolsError.is(error)) return notOk(error);
|
|
41
|
-
throw error;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
export { statusForMigrationHash as a, readMigrationRefs as i, deriveStatusEdgeAnnotations as n, originHashForStatus as r, appliedHashesFromLedger as t };
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=refs-fQLFcMoq-aTBeUU9H.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refs-fQLFcMoq-aTBeUU9H.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/refs-fQLFcMoq.mjs"],"sourcesContent":["import { notOk, ok } from \"@internal/utils/result\";\nimport { EMPTY_CONTRACT_HASH } from \"@internal/migration-tools/constants\";\nimport { MigrationToolsError } from \"@internal/migration-tools/errors\";\nimport { findPath } from \"@internal/migration-tools/migration-graph\";\nimport { readRefs } from \"@internal/migration-tools/refs\";\n//#region src/control-api/operations/migration-status-overlay.ts\n/** Origin hash for status path computation: the live/override marker, or the empty-contract sentinel. */\nfunction originHashForStatus(markerHash) {\n\treturn markerHash ?? EMPTY_CONTRACT_HASH;\n}\nfunction deriveStatusEdgeAnnotations(input) {\n\tconst annotations = /* @__PURE__ */ new Map();\n\tif (input.showAppliedOverlay) {\n\t\tfor (const edge of input.graph.migrationByHash.values()) if (input.appliedMigrationHashes.has(edge.migrationHash)) annotations.set(edge.migrationHash, { status: \"applied\" });\n\t}\n\tif (!input.graph.nodes.has(input.originHash)) return annotations;\n\tconst pendingPath = findPath(input.graph, input.originHash, input.targetHash);\n\tif (!pendingPath) return annotations;\n\tfor (const edge of pendingPath) {\n\t\tif (input.appliedMigrationHashes.has(edge.migrationHash)) continue;\n\t\tif (annotations.get(edge.migrationHash)?.status === \"applied\") continue;\n\t\tannotations.set(edge.migrationHash, { status: \"pending\" });\n\t}\n\treturn annotations;\n}\nfunction appliedHashesFromLedger(ledgerEntries) {\n\treturn new Set(ledgerEntries.map((entry) => entry.migrationHash));\n}\nfunction statusForMigrationHash(migrationHash, annotations) {\n\treturn annotations.get(migrationHash)?.status ?? null;\n}\n//#endregion\n//#region src/control-api/operations/refs.ts\n/**\n* Reads the migrations refs index for commands, mapping MigrationToolsError into the CLI envelope.\n*/\n/** Reads migrations/<app>/refs, passing MigrationToolsError through; other errors rethrow. */\nasync function readMigrationRefs(refsDir) {\n\ttry {\n\t\treturn ok(await readRefs(refsDir));\n\t} catch (error) {\n\t\tif (MigrationToolsError.is(error)) return notOk(error);\n\t\tthrow error;\n\t}\n}\n//#endregion\nexport { statusForMigrationHash as a, originHashForStatus as i, appliedHashesFromLedger as n, deriveStatusEdgeAnnotations as r, readMigrationRefs as t };\n\n//# sourceMappingURL=refs-fQLFcMoq.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,oBAAoB,YAAY;CACxC,OAAO,cAAA;AACR;AACA,SAAS,4BAA4B,OAAO;CAC3C,MAAM,8BAA8B,IAAI,IAAI;CAC5C,IAAI,MAAM,oBACJ;OAAA,MAAM,QAAQ,MAAM,MAAM,gBAAgB,OAAO,GAAG,IAAI,MAAM,uBAAuB,IAAI,KAAK,aAAa,GAAG,YAAY,IAAI,KAAK,eAAe,EAAE,QAAQ,UAAU,CAAC;CAAA;CAE7K,IAAI,CAAC,MAAM,MAAM,MAAM,IAAI,MAAM,UAAU,GAAG,OAAO;CACrD,MAAM,cAAc,SAAS,MAAM,OAAO,MAAM,YAAY,MAAM,UAAU;CAC5E,IAAI,CAAC,aAAa,OAAO;CACzB,KAAK,MAAM,QAAQ,aAAa;EAC/B,IAAI,MAAM,uBAAuB,IAAI,KAAK,aAAa,GAAG;EAC1D,IAAI,YAAY,IAAI,KAAK,aAAa,CAAC,EAAE,WAAW,WAAW;EAC/D,YAAY,IAAI,KAAK,eAAe,EAAE,QAAQ,UAAU,CAAC;CAC1D;CACA,OAAO;AACR;AACA,SAAS,wBAAwB,eAAe;CAC/C,OAAO,IAAI,IAAI,cAAc,KAAK,UAAU,MAAM,aAAa,CAAC;AACjE;AACA,SAAS,uBAAuB,eAAe,aAAa;CAC3D,OAAO,YAAY,IAAI,aAAa,CAAC,EAAE,UAAU;AAClD;;;;;AAOA,eAAe,kBAAkB,SAAS;CACzC,IAAI;EACH,OAAO,GAAG,MAAM,SAAS,OAAO,CAAC;CAClC,SAAS,OAAO;EACf,IAAI,oBAAoB,GAAG,KAAK,GAAG,OAAO,MAAM,KAAK;EACrD,MAAM;CACP;AACD"}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
//#region ../../../1-framework/3-tooling/cli/dist/schemas-BGgjiKV0.d.mts
|
|
2
|
-
//#region src/commands/json/schemas.d.ts
|
|
3
|
-
declare const migrationSpaceListEntrySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4
|
-
space: string;
|
|
5
|
-
migrations: {
|
|
6
|
-
name: string;
|
|
7
|
-
hash: string;
|
|
8
|
-
fromContract: string | null;
|
|
9
|
-
toContract: string;
|
|
10
|
-
operationCount: number;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
refs: string[];
|
|
13
|
-
providedInvariants: string[];
|
|
14
|
-
}[];
|
|
15
|
-
}, {}>;
|
|
16
|
-
type MigrationSpaceListEntry = typeof migrationSpaceListEntrySchema.infer;
|
|
17
|
-
declare const migrationListResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
18
|
-
ok: true;
|
|
19
|
-
summary: string;
|
|
20
|
-
spaces: {
|
|
21
|
-
space: string;
|
|
22
|
-
migrations: {
|
|
23
|
-
name: string;
|
|
24
|
-
hash: string;
|
|
25
|
-
fromContract: string | null;
|
|
26
|
-
toContract: string;
|
|
27
|
-
operationCount: number;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
refs: string[];
|
|
30
|
-
providedInvariants: string[];
|
|
31
|
-
}[];
|
|
32
|
-
}[];
|
|
33
|
-
}, {}>;
|
|
34
|
-
type MigrationListResult = typeof migrationListResultSchema.infer;
|
|
35
|
-
declare const migrationSpaceGraphEntrySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
36
|
-
space: string;
|
|
37
|
-
contracts: {
|
|
38
|
-
hash: string;
|
|
39
|
-
refs: string[];
|
|
40
|
-
}[];
|
|
41
|
-
migrations: {
|
|
42
|
-
name: string;
|
|
43
|
-
hash: string;
|
|
44
|
-
fromContract: string | null;
|
|
45
|
-
toContract: string;
|
|
46
|
-
}[];
|
|
47
|
-
}, {}>;
|
|
48
|
-
type MigrationSpaceGraphEntry = typeof migrationSpaceGraphEntrySchema.infer;
|
|
49
|
-
declare const migrationStatusEntrySchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
50
|
-
name: string;
|
|
51
|
-
hash: string;
|
|
52
|
-
fromContract: string | null;
|
|
53
|
-
toContract: string;
|
|
54
|
-
operationCount: number;
|
|
55
|
-
createdAt: string;
|
|
56
|
-
refs: string[];
|
|
57
|
-
providedInvariants: string[];
|
|
58
|
-
status: "applied" | "pending" | null;
|
|
59
|
-
}, {}>;
|
|
60
|
-
type MigrationStatusEntry = typeof migrationStatusEntrySchema.infer;
|
|
61
|
-
declare const statusDiagnosticSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
62
|
-
code: "CONTRACT.UNREADABLE";
|
|
63
|
-
severity: "warn" | "info";
|
|
64
|
-
message: string;
|
|
65
|
-
hints: string[];
|
|
66
|
-
} | {
|
|
67
|
-
code: "MIGRATION.MARKER_NOT_IN_HISTORY";
|
|
68
|
-
severity: "warn" | "info";
|
|
69
|
-
message: string;
|
|
70
|
-
hints: string[];
|
|
71
|
-
} | {
|
|
72
|
-
code: "MIGRATION.MISSING_INVARIANTS";
|
|
73
|
-
severity: "warn" | "info";
|
|
74
|
-
invariants: string[];
|
|
75
|
-
message: string;
|
|
76
|
-
ref?: string;
|
|
77
|
-
}, {}>;
|
|
78
|
-
type StatusDiagnosticJson = typeof statusDiagnosticSchema.infer;
|
|
79
|
-
declare const migrationStatusSpaceSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
80
|
-
space: string;
|
|
81
|
-
currentContract: string | null;
|
|
82
|
-
targetContract: string;
|
|
83
|
-
migrations: {
|
|
84
|
-
name: string;
|
|
85
|
-
hash: string;
|
|
86
|
-
fromContract: string | null;
|
|
87
|
-
toContract: string;
|
|
88
|
-
operationCount: number;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
refs: string[];
|
|
91
|
-
providedInvariants: string[];
|
|
92
|
-
status: "applied" | "pending" | null;
|
|
93
|
-
}[];
|
|
94
|
-
}, {}>;
|
|
95
|
-
type MigrationStatusSpace = typeof migrationStatusSpaceSchema.infer;
|
|
96
|
-
declare const migrationStatusJsonResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
97
|
-
ok: true;
|
|
98
|
-
summary: string;
|
|
99
|
-
spaces: {
|
|
100
|
-
space: string;
|
|
101
|
-
currentContract: string | null;
|
|
102
|
-
targetContract: string;
|
|
103
|
-
migrations: {
|
|
104
|
-
name: string;
|
|
105
|
-
hash: string;
|
|
106
|
-
fromContract: string | null;
|
|
107
|
-
toContract: string;
|
|
108
|
-
operationCount: number;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
refs: string[];
|
|
111
|
-
providedInvariants: string[];
|
|
112
|
-
status: "applied" | "pending" | null;
|
|
113
|
-
}[];
|
|
114
|
-
}[];
|
|
115
|
-
diagnostics: ({
|
|
116
|
-
code: "CONTRACT.UNREADABLE";
|
|
117
|
-
severity: "warn" | "info";
|
|
118
|
-
message: string;
|
|
119
|
-
hints: string[];
|
|
120
|
-
} | {
|
|
121
|
-
code: "MIGRATION.MARKER_NOT_IN_HISTORY";
|
|
122
|
-
severity: "warn" | "info";
|
|
123
|
-
message: string;
|
|
124
|
-
hints: string[];
|
|
125
|
-
} | {
|
|
126
|
-
code: "MIGRATION.MISSING_INVARIANTS";
|
|
127
|
-
severity: "warn" | "info";
|
|
128
|
-
invariants: string[];
|
|
129
|
-
message: string;
|
|
130
|
-
ref?: string;
|
|
131
|
-
})[];
|
|
132
|
-
}, {}>;
|
|
133
|
-
type MigrationStatusResult = typeof migrationStatusJsonResultSchema.infer;
|
|
134
|
-
declare const migrationLogResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
135
|
-
ok: true;
|
|
136
|
-
summary: string;
|
|
137
|
-
records: {
|
|
138
|
-
space: string;
|
|
139
|
-
name: string;
|
|
140
|
-
hash: string;
|
|
141
|
-
fromContract: string | null;
|
|
142
|
-
toContract: string;
|
|
143
|
-
appliedAt: string;
|
|
144
|
-
operationCount: number;
|
|
145
|
-
}[];
|
|
146
|
-
}, {}>;
|
|
147
|
-
type MigrationLogResult = typeof migrationLogResultSchema.infer;
|
|
148
|
-
declare const migrationShowResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
149
|
-
ok: true;
|
|
150
|
-
summary: string;
|
|
151
|
-
migration: {
|
|
152
|
-
space: string;
|
|
153
|
-
name: string;
|
|
154
|
-
hash: string;
|
|
155
|
-
fromContract: string | null;
|
|
156
|
-
toContract: string;
|
|
157
|
-
createdAt: string;
|
|
158
|
-
operations: {
|
|
159
|
-
id: string;
|
|
160
|
-
label: string;
|
|
161
|
-
operationClass: string;
|
|
162
|
-
}[];
|
|
163
|
-
preview: {
|
|
164
|
-
statements: {
|
|
165
|
-
text: string;
|
|
166
|
-
language: string;
|
|
167
|
-
}[];
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
}, {}>;
|
|
171
|
-
type MigrationShowResult = typeof migrationShowResultSchema.infer;
|
|
172
|
-
declare const checkFailureSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
173
|
-
space: string;
|
|
174
|
-
code: string;
|
|
175
|
-
where: string;
|
|
176
|
-
why: string;
|
|
177
|
-
nextActions: {
|
|
178
|
-
kind: "run-command" | "open-url" | "user-choice" | "edit-file" | "done";
|
|
179
|
-
label: string;
|
|
180
|
-
command?: string;
|
|
181
|
-
url?: string;
|
|
182
|
-
reason?: string;
|
|
183
|
-
}[];
|
|
184
|
-
}, {}>;
|
|
185
|
-
type CheckFailure = typeof checkFailureSchema.infer;
|
|
186
|
-
declare const migrationCheckResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
187
|
-
ok: boolean;
|
|
188
|
-
failures: {
|
|
189
|
-
space: string;
|
|
190
|
-
code: string;
|
|
191
|
-
where: string;
|
|
192
|
-
why: string;
|
|
193
|
-
nextActions: {
|
|
194
|
-
kind: "run-command" | "open-url" | "user-choice" | "edit-file" | "done";
|
|
195
|
-
label: string;
|
|
196
|
-
command?: string;
|
|
197
|
-
url?: string;
|
|
198
|
-
reason?: string;
|
|
199
|
-
}[];
|
|
200
|
-
}[];
|
|
201
|
-
summary: string;
|
|
202
|
-
}, {}>;
|
|
203
|
-
type MigrationCheckResult = typeof migrationCheckResultSchema.infer;
|
|
204
|
-
//#endregion
|
|
205
|
-
export { MigrationShowResult as a, MigrationStatusEntry as c, StatusDiagnosticJson as d, migrationCheckResultSchema as f, MigrationLogResult as i, MigrationStatusResult as l, MigrationCheckResult as n, MigrationSpaceGraphEntry as o, migrationStatusJsonResultSchema as p, MigrationListResult as r, MigrationSpaceListEntry as s, CheckFailure as t, MigrationStatusSpace as u };
|
|
206
|
-
//# sourceMappingURL=schemas-BGgjiKV0-Rh8RlMCl.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas-BGgjiKV0-Rh8RlMCl.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/schemas-BGgjiKV0.d.mts"],"mappings":";;cACc,6EAA6E;EACzF;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;KAGC,iCAAiC,8BAA8B;cACtD,yEAAyE;EACrF;EACA;EACA;IACE;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;;;;KAID,6BAA6B,0BAA0B;cAC9C,8EAA8E;EAC1F;EACA;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;;;KAGC,kCAAkC,+BAA+B;cACxD,0EAA0E;EACtF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAEG,8BAA8B,2BAA2B;cAChD,sEAAsE;EAClF;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;;KAEG,8BAA8B,uBAAuB;cAC5C,0EAA0E;EACtF;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;KAGC,8BAA8B,2BAA2B;cAChD,+EAA+E;EAC3F;EACA;EACA;IACE;IACA;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;;;EAGJ;IACE;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;IACA;;;KAGC,+BAA+B,gCAAgC;cACtD,wEAAwE;EACpF;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;;;KAGC,4BAA4B,yBAAyB;cAC5C,yEAAyE;EACrF;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;MACE;MACA;MACA;;IAEF;MACE;QACE;QACA;;;;;KAKH,6BAA6B,0BAA0B;cAC9C,kEAAkE;EAC9E;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;;;KAGC,sBAAsB,mBAAmB;cAChC,0EAA0E;EACtF;EACA;IACE;IACA;IACA;IACA;IACA;MACE;MACA;MACA;MACA;MACA;;;EAGJ;;KAEG,8BAA8B,2BAA2B"}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { type } from "arktype";
|
|
2
|
-
//#region ../../../1-framework/3-tooling/cli/dist/schemas-CYSD83Cu.mjs
|
|
3
|
-
const migrationEntrySchema = type({
|
|
4
|
-
name: "string",
|
|
5
|
-
hash: "string",
|
|
6
|
-
fromContract: "string | null",
|
|
7
|
-
toContract: "string",
|
|
8
|
-
operationCount: "number",
|
|
9
|
-
createdAt: "string",
|
|
10
|
-
refs: "string[]",
|
|
11
|
-
providedInvariants: "string[]"
|
|
12
|
-
});
|
|
13
|
-
const contractRefSchema = type({
|
|
14
|
-
hash: "string",
|
|
15
|
-
refs: "string[]"
|
|
16
|
-
});
|
|
17
|
-
const successEnvelopeBaseSchema = type({
|
|
18
|
-
ok: "true",
|
|
19
|
-
summary: "string"
|
|
20
|
-
});
|
|
21
|
-
const migrationSpaceListEntrySchema = type({
|
|
22
|
-
space: "string",
|
|
23
|
-
migrations: migrationEntrySchema.array()
|
|
24
|
-
});
|
|
25
|
-
successEnvelopeBaseSchema.and(type({ spaces: migrationSpaceListEntrySchema.array() }));
|
|
26
|
-
const graphMigrationSchema = type({
|
|
27
|
-
name: "string",
|
|
28
|
-
hash: "string",
|
|
29
|
-
fromContract: "string | null",
|
|
30
|
-
toContract: "string"
|
|
31
|
-
});
|
|
32
|
-
const migrationSpaceGraphEntrySchema = type({
|
|
33
|
-
space: "string",
|
|
34
|
-
contracts: contractRefSchema.array(),
|
|
35
|
-
migrations: graphMigrationSchema.array()
|
|
36
|
-
});
|
|
37
|
-
successEnvelopeBaseSchema.and(type({ spaces: migrationSpaceGraphEntrySchema.array() }));
|
|
38
|
-
const migrationStatusEntrySchema = migrationEntrySchema.and(type({ status: "\"applied\" | \"pending\" | null" }));
|
|
39
|
-
const contractUnreadableDiagnosticSchema = type({
|
|
40
|
-
code: "\"CONTRACT.UNREADABLE\"",
|
|
41
|
-
severity: "\"warn\" | \"info\"",
|
|
42
|
-
message: "string",
|
|
43
|
-
hints: "string[]"
|
|
44
|
-
});
|
|
45
|
-
const markerNotInHistoryDiagnosticSchema = type({
|
|
46
|
-
code: "\"MIGRATION.MARKER_NOT_IN_HISTORY\"",
|
|
47
|
-
severity: "\"warn\" | \"info\"",
|
|
48
|
-
message: "string",
|
|
49
|
-
hints: "string[]"
|
|
50
|
-
});
|
|
51
|
-
const missingInvariantsDiagnosticSchema = type({
|
|
52
|
-
code: "\"MIGRATION.MISSING_INVARIANTS\"",
|
|
53
|
-
severity: "\"warn\" | \"info\"",
|
|
54
|
-
"ref?": "string",
|
|
55
|
-
invariants: "string[]",
|
|
56
|
-
message: "string"
|
|
57
|
-
});
|
|
58
|
-
const statusDiagnosticSchema = contractUnreadableDiagnosticSchema.or(markerNotInHistoryDiagnosticSchema).or(missingInvariantsDiagnosticSchema);
|
|
59
|
-
const migrationStatusSpaceSchema = type({
|
|
60
|
-
space: "string",
|
|
61
|
-
currentContract: "string | null",
|
|
62
|
-
targetContract: "string",
|
|
63
|
-
migrations: migrationStatusEntrySchema.array()
|
|
64
|
-
});
|
|
65
|
-
const migrationStatusJsonResultSchema = successEnvelopeBaseSchema.and(type({
|
|
66
|
-
spaces: migrationStatusSpaceSchema.array(),
|
|
67
|
-
diagnostics: statusDiagnosticSchema.array()
|
|
68
|
-
}));
|
|
69
|
-
const ledgerRecordSchema = type({
|
|
70
|
-
space: "string",
|
|
71
|
-
name: "string",
|
|
72
|
-
hash: "string",
|
|
73
|
-
fromContract: "string | null",
|
|
74
|
-
toContract: "string",
|
|
75
|
-
appliedAt: "string",
|
|
76
|
-
operationCount: "number"
|
|
77
|
-
});
|
|
78
|
-
successEnvelopeBaseSchema.and(type({ records: ledgerRecordSchema.array() }));
|
|
79
|
-
const showOperationSchema = type({
|
|
80
|
-
id: "string",
|
|
81
|
-
label: "string",
|
|
82
|
-
operationClass: "string"
|
|
83
|
-
});
|
|
84
|
-
const showPreviewStatementSchema = type({
|
|
85
|
-
text: "string",
|
|
86
|
-
language: "string"
|
|
87
|
-
});
|
|
88
|
-
const showMigrationSchema = type({
|
|
89
|
-
space: "string",
|
|
90
|
-
name: "string",
|
|
91
|
-
hash: "string",
|
|
92
|
-
fromContract: "string | null",
|
|
93
|
-
toContract: "string",
|
|
94
|
-
createdAt: "string",
|
|
95
|
-
operations: showOperationSchema.array(),
|
|
96
|
-
preview: type({ statements: showPreviewStatementSchema.array() })
|
|
97
|
-
});
|
|
98
|
-
successEnvelopeBaseSchema.and(type({ migration: showMigrationSchema }));
|
|
99
|
-
const migrationCheckResultSchema = type({
|
|
100
|
-
ok: "boolean",
|
|
101
|
-
failures: type({
|
|
102
|
-
space: "string",
|
|
103
|
-
code: "string",
|
|
104
|
-
where: "string",
|
|
105
|
-
why: "string",
|
|
106
|
-
nextActions: type({
|
|
107
|
-
kind: "\"run-command\" | \"open-url\" | \"user-choice\" | \"edit-file\" | \"done\"",
|
|
108
|
-
label: "string",
|
|
109
|
-
"command?": "string",
|
|
110
|
-
"url?": "string",
|
|
111
|
-
"reason?": "string"
|
|
112
|
-
}).array()
|
|
113
|
-
}).array(),
|
|
114
|
-
summary: "string"
|
|
115
|
-
});
|
|
116
|
-
//#endregion
|
|
117
|
-
export { migrationStatusJsonResultSchema as n, migrationCheckResultSchema as t };
|
|
118
|
-
|
|
119
|
-
//# sourceMappingURL=schemas-CYSD83Cu-Bff4PPoi.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas-CYSD83Cu-Bff4PPoi.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/schemas-CYSD83Cu.mjs"],"sourcesContent":["import { type } from \"arktype\";\n//#region src/commands/json/schemas.ts\nconst migrationEntrySchema = type({\n\tname: \"string\",\n\thash: \"string\",\n\tfromContract: \"string | null\",\n\ttoContract: \"string\",\n\toperationCount: \"number\",\n\tcreatedAt: \"string\",\n\trefs: \"string[]\",\n\tprovidedInvariants: \"string[]\"\n});\nconst contractRefSchema = type({\n\thash: \"string\",\n\trefs: \"string[]\"\n});\nconst successEnvelopeBaseSchema = type({\n\tok: \"true\",\n\tsummary: \"string\"\n});\nconst migrationSpaceListEntrySchema = type({\n\tspace: \"string\",\n\tmigrations: migrationEntrySchema.array()\n});\nsuccessEnvelopeBaseSchema.and(type({ spaces: migrationSpaceListEntrySchema.array() }));\nconst graphMigrationSchema = type({\n\tname: \"string\",\n\thash: \"string\",\n\tfromContract: \"string | null\",\n\ttoContract: \"string\"\n});\nconst migrationSpaceGraphEntrySchema = type({\n\tspace: \"string\",\n\tcontracts: contractRefSchema.array(),\n\tmigrations: graphMigrationSchema.array()\n});\nsuccessEnvelopeBaseSchema.and(type({ spaces: migrationSpaceGraphEntrySchema.array() }));\nconst migrationStatusEntrySchema = migrationEntrySchema.and(type({ status: \"\\\"applied\\\" | \\\"pending\\\" | null\" }));\nconst contractUnreadableDiagnosticSchema = type({\n\tcode: \"\\\"CONTRACT.UNREADABLE\\\"\",\n\tseverity: \"\\\"warn\\\" | \\\"info\\\"\",\n\tmessage: \"string\",\n\thints: \"string[]\"\n});\nconst markerNotInHistoryDiagnosticSchema = type({\n\tcode: \"\\\"MIGRATION.MARKER_NOT_IN_HISTORY\\\"\",\n\tseverity: \"\\\"warn\\\" | \\\"info\\\"\",\n\tmessage: \"string\",\n\thints: \"string[]\"\n});\nconst missingInvariantsDiagnosticSchema = type({\n\tcode: \"\\\"MIGRATION.MISSING_INVARIANTS\\\"\",\n\tseverity: \"\\\"warn\\\" | \\\"info\\\"\",\n\t\"ref?\": \"string\",\n\tinvariants: \"string[]\",\n\tmessage: \"string\"\n});\nconst statusDiagnosticSchema = contractUnreadableDiagnosticSchema.or(markerNotInHistoryDiagnosticSchema).or(missingInvariantsDiagnosticSchema);\nconst migrationStatusSpaceSchema = type({\n\tspace: \"string\",\n\tcurrentContract: \"string | null\",\n\ttargetContract: \"string\",\n\tmigrations: migrationStatusEntrySchema.array()\n});\nconst migrationStatusJsonResultSchema = successEnvelopeBaseSchema.and(type({\n\tspaces: migrationStatusSpaceSchema.array(),\n\tdiagnostics: statusDiagnosticSchema.array()\n}));\nconst ledgerRecordSchema = type({\n\tspace: \"string\",\n\tname: \"string\",\n\thash: \"string\",\n\tfromContract: \"string | null\",\n\ttoContract: \"string\",\n\tappliedAt: \"string\",\n\toperationCount: \"number\"\n});\nsuccessEnvelopeBaseSchema.and(type({ records: ledgerRecordSchema.array() }));\nconst showOperationSchema = type({\n\tid: \"string\",\n\tlabel: \"string\",\n\toperationClass: \"string\"\n});\nconst showPreviewStatementSchema = type({\n\ttext: \"string\",\n\tlanguage: \"string\"\n});\nconst showMigrationSchema = type({\n\tspace: \"string\",\n\tname: \"string\",\n\thash: \"string\",\n\tfromContract: \"string | null\",\n\ttoContract: \"string\",\n\tcreatedAt: \"string\",\n\toperations: showOperationSchema.array(),\n\tpreview: type({ statements: showPreviewStatementSchema.array() })\n});\nsuccessEnvelopeBaseSchema.and(type({ migration: showMigrationSchema }));\nconst migrationCheckResultSchema = type({\n\tok: \"boolean\",\n\tfailures: type({\n\t\tspace: \"string\",\n\t\tcode: \"string\",\n\t\twhere: \"string\",\n\t\twhy: \"string\",\n\t\tnextActions: type({\n\t\t\tkind: \"\\\"run-command\\\" | \\\"open-url\\\" | \\\"user-choice\\\" | \\\"edit-file\\\" | \\\"done\\\"\",\n\t\t\tlabel: \"string\",\n\t\t\t\"command?\": \"string\",\n\t\t\t\"url?\": \"string\",\n\t\t\t\"reason?\": \"string\"\n\t\t}).array()\n\t}).array(),\n\tsummary: \"string\"\n});\n//#endregion\nexport { migrationStatusJsonResultSchema as n, migr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ACD,MAAM,kCAAkC,0BAA0B,IAAI,KAAK;CAC1E,QAAQ,2BAA2B,MAAM;CACzC,aAAa,uBAAuB,MAAM;AAC3C,CAAC,CAAC;AACF,MAAM,qBAAqB,KAAK;CAC/B,OAAO;CACP,MAAM;CACN,MAAM;CACN,cAAc;CACd,YAAY;CACZ,WAAW;CACX,gBAAgB;AACjB,CAAC;AACD,0BAA0B,IAAI,KAAK,EAAE,SAAS,mBAAmB,MAAM,EAAE,CAAC,CAAC;AAC3E,MAAM,sBAAsB,KAAK;CAChC,IAAI;CACJ,OAAO;CACP,gBAAgB;AACjB,CAAC;AACD,MAAM,6BAA6B,KAAK;CACvC,MAAM;CACN,UAAU;AACX,CAAC;AACD,MAAM,sBAAsB,KAAK;CAChC,OAAO;CACP,MAAM;CACN,MAAM;CACN,cAAc;CACd,YAAY;CACZ,WAAW;CACX,YAAY,oBAAoB,MAAM;CACtC,SAAS,KAAK,EAAE,YAAY,2BAA2B,MAAM,EAAE,CAAC;AACjE,CAAC;AACD,0BAA0B,IAAI,KAAK,EAAE,WAAW,oBAAoB,CAAC,CAAC;AACtE,MAAM,6BAA6B,KAAK;CACvC,IAAI;CACJ,UAAU,KAAK;EACd,OAAO;EACP,MAAM;EACN,OAAO;EACP,KAAK;EACL,aAAa,KAAK;GACjB,MAAM;GACN,OAAO;GACP,YAAY;GACZ,QAAQ;GACR,WAAW;EACZ,CAAC,CAAC,CAAC,MAAM;CACV,CAAC,CAAC,CAAC,MAAM;CACT,SAAS;AACV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shells-BenrJHp2.mjs","names":[],"sources":["../../../../0-shared/publish-surface/dist/shells.mjs"],"sourcesContent":["//#region src/shells.ts\n/**\n* The CLI command every facade puts on an application's `PATH`. It runs the\n* toolchain's single published copy; the facade only carries the launcher.\n*/\nconst FACADE_BINS = { \"prisma-next\": \"@prisma/orm-toolchain/bin/prisma-next\" };\n/**\n* Surfaces every facade republishes regardless of family.\n*\n* An application depends on one facade and nothing else (ADR 242), so\n* everything it reaches — hand-written and generated alike — has to have a\n* name under the facade. These are the target-agnostic ones: the contract and\n* component surfaces emitted files import, the shared helpers, and the Vite\n* plugin.\n*\n* Entry names follow the name the platform shell gives the same package, so\n* one internal package reads the same way wherever it is reached from.\n*\n* A republished package brings its whole subpath surface with it unless the\n* entry lists `subpaths`, so the cost of an entry is its export count, not\n* one. Nothing goes in here that no application reaches.\n*\n* `migration-tools` is listed by subpath rather than whole. An application\n* does reach it — a project that checks its own migrations are intact, or\n* that stages an extension's pinned contract-space artifacts before `db\n* init`, reads and writes the on-disk migration format, and under a\n* facade-only install there is no other published name for it. But it is a\n* 17-subpath tooling package whose remaining surface (the graph, the\n* pathfinder, ref resolution, the ledger) is the CLI's own working material,\n* and publishing that would freeze it. The five listed here are what the\n* repository's own consumers reach.\n*/\nconst COMMON_FACADE_REEXPORTS = [\n\t{\n\t\tpackage: \"@internal/contract\",\n\t\tentry: \"contract\"\n\t},\n\t{\n\t\tpackage: \"@internal/framework-components\",\n\t\tentry: \"components\"\n\t},\n\t{\n\t\tpackage: \"@internal/utils\",\n\t\tentry: \"utils\"\n\t},\n\t{\n\t\tpackage: \"@internal/vite-plugin-contract-emit\",\n\t\tentry: \"vite-plugin-contract-emit\"\n\t},\n\t{\n\t\tpackage: \"@internal/migration-tools\",\n\t\tentry: \"migration-tools\",\n\t\tsubpaths: [\n\t\t\t\"aggregate\",\n\t\t\t\"contract-snapshot-store\",\n\t\t\t\"hash\",\n\t\t\t\"io\",\n\t\t\t\"spaces\"\n\t\t]\n\t}\n];\n/**\n* The per-database part of a facade's republished surface.\n*\n* `family` is the family's contract package (`@internal/sql-contract` or\n* `@internal/mongo-contract`) and `familyPack` its control-plane and IR\n* pack; `target` and `adapter` carry the codec and operation types emitted\n* contracts reference; `runtime` is the family runtime an application drives\n* queries through.\n*\n* `family-contract` and `family-runtime` take a qualified name because the\n* facade's own `contract` and `runtime` are different modules. `target` and\n* `familyPack` forward subpaths only, so that a facade which publishes its own\n* `./target` or `./family` pack keeps that name for its own module; where a\n* facade publishes neither, the plain name simply stays free.\n*\n* `driver` is carried by every facade. A facade wires its own driver, so the\n* only code that names one is code driving the migration planner or runner\n* itself — which the SQL facades were assumed not to have, until the SQL\n* migration-planner harnesses turned out to need the driver's control\n* descriptor to build a control stack by hand. Two subpaths per facade.\n*/\nfunction facadeReexports(options) {\n\treturn [\n\t\t...COMMON_FACADE_REEXPORTS,\n\t\t{\n\t\t\tpackage: options.family,\n\t\t\tentry: \"family-contract\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.familyPack,\n\t\t\tentry: \"family\",\n\t\t\troot: false\n\t\t},\n\t\t{\n\t\t\tpackage: options.runtime,\n\t\t\tentry: \"family-runtime\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.target,\n\t\t\tentry: \"target\",\n\t\t\troot: false\n\t\t},\n\t\t{\n\t\t\tpackage: options.adapter,\n\t\t\tentry: \"adapter\"\n\t\t},\n\t\t{\n\t\t\tpackage: options.driver,\n\t\t\tentry: \"driver\"\n\t\t},\n\t\t...options.queryBuilders\n\t];\n}\n/**\n* The SQL family's query surfaces, republished by both SQL facades.\n*\n* `schema-ir` carries one subpath. Code that authors a migration by hand, or\n* drives the planner itself, names `SqlSchemaIR` — it is the schema shape the\n* planner takes and returns. The package's other two subpaths are the IR's\n* construction and naming internals, which publishing would freeze.\n*/\nconst SQL_QUERY_REEXPORTS = [\n\t{\n\t\tpackage: \"@internal/sql-orm-client\",\n\t\tentry: \"orm-client\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-builder\",\n\t\tentry: \"builder\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-relational-core\",\n\t\tentry: \"relational-core\"\n\t},\n\t{\n\t\tpackage: \"@internal/sql-schema-ir\",\n\t\tentry: \"schema-ir\",\n\t\tsubpaths: [\"types\"]\n\t}\n];\nconst publicShells = /* @__PURE__ */ new Map([\n\t[\"@prisma/orm-framework\", {\n\t\tdir: \"packages/9-public/@prisma/orm-framework\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/0-foundation/contract\",\n\t\t\t\tname: \"@internal/contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/0-foundation/utils\",\n\t\t\t\tname: \"@internal/utils\",\n\t\t\t\tentry: \"utils\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/config\",\n\t\t\t\tname: \"@internal/config\",\n\t\t\t\tentry: \"config\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/errors\",\n\t\t\t\tname: \"@internal/errors\",\n\t\t\t\tentry: \"errors\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/framework-components\",\n\t\t\t\tname: \"@internal/framework-components\",\n\t\t\t\tentry: \"components\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/operations\",\n\t\t\t\tname: \"@internal/operations\",\n\t\t\t\tentry: \"operations\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/1-core/ts-render\",\n\t\t\t\tname: \"@internal/ts-render\",\n\t\t\t\tentry: \"ts-render\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/contract\",\n\t\t\t\tname: \"@internal/contract-authoring\",\n\t\t\t\tentry: \"contract-authoring\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/ids\",\n\t\t\t\tname: \"@internal/ids\",\n\t\t\t\tentry: \"ids\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/psl-parser\",\n\t\t\t\tname: \"@internal/psl-parser\",\n\t\t\t\tentry: \"psl-parser\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/2-authoring/psl-printer\",\n\t\t\t\tname: \"@internal/psl-printer\",\n\t\t\t\tentry: \"psl-printer\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-toolchain\", {\n\t\tdir: \"packages/9-public/@prisma/orm-toolchain\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/cli\",\n\t\t\t\tname: \"@internal/cli\",\n\t\t\t\tentry: \"cli\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/cli-telemetry\",\n\t\t\t\tname: \"@internal/cli-telemetry\",\n\t\t\t\tentry: \"cli-telemetry\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/config-loader\",\n\t\t\t\tname: \"@internal/config-loader\",\n\t\t\t\tentry: \"config-loader\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/emitter\",\n\t\t\t\tentry: \"emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/language-server\",\n\t\t\t\tname: \"@internal/language-server\",\n\t\t\t\tentry: \"language-server\",\n\t\t\t\tpublished: false\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/migration\",\n\t\t\t\tname: \"@internal/migration-tools\",\n\t\t\t\tentry: \"migration-tools\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/1-framework/3-tooling/vite-plugin-contract-emit\",\n\t\t\t\tname: \"@internal/vite-plugin-contract-emit\",\n\t\t\t\tentry: \"vite-plugin-contract-emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/0-shared/publish-surface\",\n\t\t\t\tname: \"@internal/publish-surface\",\n\t\t\t\tentry: \"publish-surface\"\n\t\t\t}\n\t\t],\n\t\tbins: { \"prisma-next\": \"packages/1-framework/3-tooling/cli/dist/cli.mjs\" },\n\t\tcopy: [\"packages/1-framework/3-tooling/cli/dist/*.md\"]\n\t}],\n\t[\"@prisma/orm-family-sql\", {\n\t\tdir: \"packages/9-public/@prisma/orm-family-sql\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/contract\",\n\t\t\t\tname: \"@internal/sql-contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/errors\",\n\t\t\t\tname: \"@internal/sql-errors\",\n\t\t\t\tentry: \"errors\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/operations\",\n\t\t\t\tname: \"@internal/sql-operations\",\n\t\t\t\tentry: \"operations\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/1-core/schema-ir\",\n\t\t\t\tname: \"@internal/sql-schema-ir\",\n\t\t\t\tentry: \"schema-ir\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-psl\",\n\t\t\t\tname: \"@internal/sql-contract-psl\",\n\t\t\t\tentry: \"contract-psl\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/2-authoring/contract-ts\",\n\t\t\t\tname: \"@internal/sql-contract-ts\",\n\t\t\t\tentry: \"contract-ts\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/sql-contract-emitter\",\n\t\t\t\tentry: \"contract-emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/query-builder\",\n\t\t\t\tname: \"@internal/sql-lane-query-builder\",\n\t\t\t\tentry: \"lane-query-builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/relational-core\",\n\t\t\t\tname: \"@internal/sql-relational-core\",\n\t\t\t\tentry: \"relational-core\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/4-lanes/sql-builder\",\n\t\t\t\tname: \"@internal/sql-builder\",\n\t\t\t\tentry: \"builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/5-runtime\",\n\t\t\t\tname: \"@internal/sql-runtime\",\n\t\t\t\tentry: \"runtime\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-sql/9-family\",\n\t\t\t\tname: \"@internal/family-sql\",\n\t\t\t\tentry: \"family\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-extensions/sql-orm-client\",\n\t\t\t\tname: \"@internal/sql-orm-client\",\n\t\t\t\tentry: \"orm-client\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-family-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-family-mongo\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-codec\",\n\t\t\t\tname: \"@internal/mongo-codec\",\n\t\t\t\tentry: \"codec\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-contract\",\n\t\t\t\tname: \"@internal/mongo-contract\",\n\t\t\t\tentry: \"contract\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/1-foundation/mongo-value\",\n\t\t\t\tname: \"@internal/mongo-value\",\n\t\t\t\tentry: \"value\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/2-authoring/contract-psl\",\n\t\t\t\tname: \"@internal/mongo-contract-psl\",\n\t\t\t\tentry: \"contract-psl\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/2-authoring/contract-ts\",\n\t\t\t\tname: \"@internal/mongo-contract-ts\",\n\t\t\t\tentry: \"contract-ts\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/3-tooling/emitter\",\n\t\t\t\tname: \"@internal/mongo-emitter\",\n\t\t\t\tentry: \"emitter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/3-tooling/mongo-schema-ir\",\n\t\t\t\tname: \"@internal/mongo-schema-ir\",\n\t\t\t\tentry: \"schema-ir\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/4-query/query-ast\",\n\t\t\t\tname: \"@internal/mongo-query-ast\",\n\t\t\t\tentry: \"query-ast\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/5-query-builders/orm\",\n\t\t\t\tname: \"@internal/mongo-orm\",\n\t\t\t\tentry: \"orm\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/5-query-builders/query-builder\",\n\t\t\t\tname: \"@internal/mongo-query-builder\",\n\t\t\t\tentry: \"query-builder\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/6-transport/mongo-lowering\",\n\t\t\t\tname: \"@internal/mongo-lowering\",\n\t\t\t\tentry: \"lowering\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/6-transport/mongo-wire\",\n\t\t\t\tname: \"@internal/mongo-wire\",\n\t\t\t\tentry: \"wire\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/7-runtime\",\n\t\t\t\tname: \"@internal/mongo-runtime\",\n\t\t\t\tentry: \"runtime\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/2-mongo-family/9-family\",\n\t\t\t\tname: \"@internal/family-mongo\",\n\t\t\t\tentry: \"family\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-postgres\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-postgres\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/3-targets/postgres\",\n\t\t\t\tname: \"@internal/target-postgres\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/6-adapters/postgres\",\n\t\t\t\tname: \"@internal/adapter-postgres\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/7-drivers/postgres\",\n\t\t\t\tname: \"@internal/driver-postgres\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-sqlite\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-sqlite\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/3-targets/sqlite\",\n\t\t\t\tname: \"@internal/target-sqlite\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/6-adapters/sqlite\",\n\t\t\t\tname: \"@internal/adapter-sqlite\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-targets/7-drivers/sqlite\",\n\t\t\t\tname: \"@internal/driver-sqlite\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-target-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-target-mongo\",\n\t\tkind: \"platform\",\n\t\tpackages: [\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/1-mongo-target\",\n\t\t\t\tname: \"@internal/target-mongo\",\n\t\t\t\tentry: \"target\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/2-mongo-adapter\",\n\t\t\t\tname: \"@internal/adapter-mongo\",\n\t\t\t\tentry: \"adapter\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tdir: \"packages/3-mongo-target/3-mongo-driver\",\n\t\t\t\tname: \"@internal/driver-mongo\",\n\t\t\t\tentry: \"driver\"\n\t\t\t}\n\t\t]\n\t}],\n\t[\"@prisma/orm-postgres\", {\n\t\tdir: \"packages/9-public/@prisma/orm-postgres\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/postgres\",\n\t\t\tname: \"@internal/postgres\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/sql-contract\",\n\t\t\tfamilyPack: \"@internal/family-sql\",\n\t\t\truntime: \"@internal/sql-runtime\",\n\t\t\ttarget: \"@internal/target-postgres\",\n\t\t\tadapter: \"@internal/adapter-postgres\",\n\t\t\tdriver: \"@internal/driver-postgres\",\n\t\t\tqueryBuilders: SQL_QUERY_REEXPORTS\n\t\t}),\n\t\tforwardedBins: FACADE_BINS\n\t}],\n\t[\"@prisma/orm-sqlite\", {\n\t\tdir: \"packages/9-public/@prisma/orm-sqlite\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/sqlite\",\n\t\t\tname: \"@internal/sqlite\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/sql-contract\",\n\t\t\tfamilyPack: \"@internal/family-sql\",\n\t\t\truntime: \"@internal/sql-runtime\",\n\t\t\ttarget: \"@internal/target-sqlite\",\n\t\t\tadapter: \"@internal/adapter-sqlite\",\n\t\t\tdriver: \"@internal/driver-sqlite\",\n\t\t\tqueryBuilders: SQL_QUERY_REEXPORTS\n\t\t}),\n\t\tforwardedBins: FACADE_BINS\n\t}],\n\t[\"@prisma/orm-mongo\", {\n\t\tdir: \"packages/9-public/@prisma/orm-mongo\",\n\t\tkind: \"facade\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/mongo\",\n\t\t\tname: \"@internal/mongo\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\treexports: facadeReexports({\n\t\t\tfamily: \"@internal/mongo-contract\",\n\t\t\tfamilyPack: \"@internal/family-mongo\",\n\t\t\truntime: \"@internal/mongo-runtime\",\n\t\t\ttarget: \"@internal/target-mongo\",\n\t\t\tadapter: \"@internal/adapter-mongo\",\n\t\t\tdriver: \"@internal/driver-mongo\",\n\t\t\tqueryBuilders: [\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-orm\",\n\t\t\t\t\tentry: \"orm\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-query-builder\",\n\t\t\t\t\tentry: \"query-builder\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-query-ast\",\n\t\t\t\t\tentry: \"query-ast\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpackage: \"@internal/mongo-value\",\n\t\t\t\t\tentry: \"value\"\n\t\t\t\t}\n\t\t\t]\n\t\t}),\n\t\tforwardedBins: FACADE_BINS\n\t}],\n\t[\"@prisma/orm-extension-postgis\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-postgis\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/postgis\",\n\t\t\tname: \"@internal/extension-postgis\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-pgvector\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-pgvector\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/pgvector\",\n\t\t\tname: \"@internal/extension-pgvector\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-paradedb\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-paradedb\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/paradedb\",\n\t\t\tname: \"@internal/extension-paradedb\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-supabase\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-supabase\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/supabase\",\n\t\t\tname: \"@internal/extension-supabase\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-arktype-json\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-arktype-json\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/arktype-json\",\n\t\t\tname: \"@internal/extension-arktype-json\",\n\t\t\tentry: \"\"\n\t\t}],\n\t\tpeerShells: [\"@prisma/orm-target-postgres\"]\n\t}],\n\t[\"@prisma/orm-extension-middleware-cache\", {\n\t\tdir: \"packages/9-public/@prisma/orm-extension-middleware-cache\",\n\t\tkind: \"extension\",\n\t\tpackages: [{\n\t\t\tdir: \"packages/3-extensions/middleware-cache\",\n\t\t\tname: \"@internal/middleware-cache\",\n\t\t\tentry: \"\"\n\t\t}]\n\t}]\n]);\n/** Export subpaths that never ship in a shell (test-only surfaces). */\nconst excludedSubpaths = [/^\\.\\/test(\\/|$)/];\n//#endregion\nexport { excludedSubpaths, publicShells };\n\n//# sourceMappingURL=shells.mjs.map"],"mappings":";;;;;AAKA,MAAM,cAAc,EAAE,eAAe,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2B7E,MAAM,0BAA0B;CAC/B;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;EACP,UAAU;GACT;GACA;GACA;GACA;GACA;EACD;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,gBAAgB,SAAS;CACjC,OAAO;EACN,GAAG;EACH;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;GACP,MAAM;EACP;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;GACP,MAAM;EACP;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA;GACC,SAAS,QAAQ;GACjB,OAAO;EACR;EACA,GAAG,QAAQ;CACZ;AACD;;;;;;;;;AASA,MAAM,sBAAsB;CAC3B;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;CACR;CACA;EACC,SAAS;EACT,OAAO;EACP,UAAU,CAAC,OAAO;CACnB;AACD;AACA,MAAM,+BAA+B,IAAI,IAAI;CAC5C,CAAC,yBAAyB;EACzB,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,yBAAyB;EACzB,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;IACP,WAAW;GACZ;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;EACA,MAAM,EAAE,eAAe,kDAAkD;EACzE,MAAM,CAAC,8CAA8C;CACtD,CAAC;CACD,CAAC,0BAA0B;EAC1B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,4BAA4B;EAC5B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,+BAA+B;EAC/B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,6BAA6B;EAC7B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,4BAA4B;EAC5B,KAAK;EACL,MAAM;EACN,UAAU;GACT;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;GACA;IACC,KAAK;IACL,MAAM;IACN,OAAO;GACR;EACD;CACD,CAAC;CACD,CAAC,wBAAwB;EACxB,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;EACD,WAAW,gBAAgB;GAC1B,QAAQ;GACR,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,eAAe;EAChB,CAAC;EACD,eAAe;CAChB,CAAC;CACD,CAAC,sBAAsB;EACtB,KAAK;EACL,MAAM;E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D,YAAY,CAAC,6BAA6B;CAC3C,CAAC;CACD,CAAC,0CAA0C;EAC1C,KAAK;EACL,MAAM;EACN,UAAU,CAAC;GACV,KAAK;GACL,MAAM;GACN,OAAO;EACR,CAAC;CACF,CAAC;AACF,CAAC;;AAED,MAAM,mBAAmB,CAAC,iBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shells-COHV_Ozf.d.mts","names":[],"sources":["../../../../0-shared/publish-surface/dist/shells.d.mts"],"mappings":";;;;;;;;;;;;;;;;;KAgBK;;;;;;;UAOK;;WAEC;;;;;;;WAOA;;;;;;;;WAQA;;;;;;;;;;WAUA;;UAED;;WAEC;;WAEA;;;;;;WAMA;;;;;;;;;;;WAWA;;UAED;;WAEC;WACA,MAAM;WACN,mBAAmB;;;;;;;;;WASnB,qBAAqB;;;;;;;;WAQrB,OAAO,SAAS;;;;;;;;;;;WAWhB,gBAAgB,SAAS;;;;;;;;;;;;WAYzB,sBAAsB;;;;;;WAMtB;;KAEN;cACS,cAAc,YAAY,WAAW;;cAErC,2BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spaces-BG2w0P8d.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/exports/spaces.mjs"],"sourcesContent":["import { f as errorDuplicateSpaceId, l as errorDescriptorHeadHashMismatch } from \"../errors-CXbGUWGu.mjs\";\nimport { o as writeContractSnapshot } from \"../contract-snapshot-store-B0G1Fw_F.mjs\";\nimport { s as readMigrationsDir } from \"../io-635GlNx1.mjs\";\nimport \"../constants-CM-w38DQ.mjs\";\nimport { l as reconstructGraph, o as findPathWithDecision } from \"../migration-graph-_SJImD5V.mjs\";\nimport { a as RESERVED_SPACE_SUBDIR_NAMES, c as isValidSpaceId, i as APP_SPACE_ID, l as spaceMigrationDirectory, n as verifyContractSpaces, o as SPACE_REFS_DIRNAME, r as readContractSpaceHeadRef, s as assertValidSpaceId, t as listContractSpaceDirectories, u as spaceRefsDirectory } from \"../verify-contract-spaces-DhJTb0zM.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { join } from \"pathe\";\nimport { mkdir, writeFile } from \"node:fs/promises\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { computeStorageHash } from \"@internal/contract/hashing\";\n//#region src/assert-descriptor-self-consistency.ts\n/**\n* Assert that an extension descriptor is self-consistent: the\n* `headRef.hash` it publishes must match the canonical hash recomputed\n* from its `contractSpace.contractJson`.\n*\n* Recomputes via {@link computeStorageHash} — the same canonical-JSON\n* pipeline the descriptor's own emit pipeline produced the hash with —\n* over `(target, targetFamily, storage)`. Mismatch indicates the\n* extension author bumped `contractJson` without rerunning emit, leaving\n* the descriptor's `headRef.hash` stale; the consumer-side helpers\n* (drift detection, on-disk artefact emission, runner marker writes) all\n* trust `headRef.hash` as the canonical identity, so a stale value would\n* silently corrupt every downstream boundary.\n*\n* Synchronous, pure, no I/O. Throws\n* `MIGRATION.DESCRIPTOR_HEAD_HASH_MISMATCH` on failure with both the\n* recomputed and published hashes in `meta` so callers can surface a\n* clear remediation hint without re-deriving them.\n*/\nfunction assertDescriptorSelfConsistency(inputs) {\n\tconst { storageHash: _stripped, ...storageWithoutHash } = inputs.storage;\n\tconst recomputed = computeStorageHash({\n\t\ttarget: inputs.target,\n\t\ttargetFamily: inputs.targetFamily,\n\t\tstorage: storageWithoutHash,\n\t\t...ifDefined(\"shouldPreserveEmpty\", inputs.shouldPreserveEmpty),\n\t\t...ifDefined(\"sortStorage\", inputs.sortStorage)\n\t});\n\tif (recomputed !== inputs.headRefHash) throw errorDescriptorHeadHashMismatch({\n\t\textensionId: inputs.extensionId,\n\t\trecomputedHash: recomputed,\n\t\theadRefHash: inputs.headRefHash\n\t});\n}\n//#endregion\n//#region src/compute-extension-space-apply-path.ts\n/**\n* Compute the apply path for an extension contract space — the shortest\n* sequence of on-disk migration packages that walks the live marker\n* forward to the on-disk head ref hash, covering every required\n* invariant.\n*\n* Reads only on-disk artifacts (`migrations/<spaceId>/refs/head.json`\n* and the per-space migration packages). **Does not import any\n* extension descriptor module** — `db init` / `db update` must remain\n* runnable without the descriptor source on disk.\n*\n* Behaviour:\n* - Returns `{ kind: 'ok', pathOps: [], … }` when the marker is already\n* at the recorded head and no required invariants are missing.\n* - Returns `{ kind: 'unreachable' }` when the marker hash is not\n* structurally connected to the recorded head in the graph.\n* - Returns `{ kind: 'unsatisfiable', missing, … }` when the marker is\n* reachable but no path covers the required invariants.\n* - Returns `{ kind: 'contractSpaceHeadRefMissing' }` when the per-space\n* `refs/head.json` is absent — the precheck verifier should already\n* have rejected this case, but the helper is defensive so callers can\n* surface a coherent error rather than throw.\n*/\nasync function computeExtensionSpaceApplyPath(inputs) {\n\tconst { projectMigrationsDir, spaceId, currentMarkerHash, currentMarkerInvariants } = inputs;\n\tconst contractSpaceHeadRef = await readContractSpaceHeadRef(projectMigrationsDir, spaceId);\n\tif (contractSpaceHeadRef === null) return { kind: \"contractSpaceHeadRefMissing\" };\n\tconst { packages } = await readMigrationsDir(spaceMigrationDirectory(projectMigrationsDir, spaceId), { migrationsDir: projectMigrationsDir });\n\tconst graph = reconstructGraph(packages);\n\tconst fromHash = currentMarkerHash ?? \"empty\";\n\tconst required = new Set(contractSpaceHeadRef.invariants.filter((id) => !currentMarkerInvariants.includes(id)));\n\tconst outcome = findPathWithDecision(graph, fromHash, contractSpaceHeadRef.hash, { required });\n\tif (outcome.kind === \"unreachable\") return {\n\t\tkind: \"unreachable\",\n\t\tcontractSpaceHeadRef\n\t};\n\tif (outcome.kind === \"unsatisfiable\") return {\n\t\tkind: \"unsatisfiable\",\n\t\tcontractSpaceHeadRef,\n\t\tmissing: outcome.missing,\n\t\tstructuralPath: outcome.structuralPath.map(({ dirName, to }) => ({\n\t\t\tdirName,\n\t\t\tto\n\t\t}))\n\t};\n\tconst packagesByHash = new Map(packages.map((pkg) => [pkg.metadata.migrationHash, pkg]));\n\tconst pathOps = [];\n\tconst walkedMigrationDirs = [];\n\tconst providedInvariantsSet = /* @__PURE__ */ new Set();\n\tfor (const edge of outcome.decision.selectedPath) {\n\t\tconst pkg = packagesByHash.get(edge.migrationHash);\n\t\tif (!pkg) throw new InternalError(`Migration package missing for edge ${edge.migrationHash} in space \"${spaceId}\"`);\n\t\twalkedMigrationDirs.push(pkg.dirName);\n\t\tfor (const op of pkg.ops) pathOps.push(op);\n\t\tfor (const invariant of pkg.metadata.providedInvariants) providedInvariantsSet.add(invariant);\n\t}\n\treturn {\n\t\tkind: \"ok\",\n\t\tcontractSpaceHeadRef,\n\t\tprovidedInvariants: [...providedInvariantsSet].sort(),\n\t\tpathOps,\n\t\twalkedMigrationDirs\n\t};\n}\n//#endregion\n//#region src/contract-space-from-json.ts\n/**\n* Materialise a typed {@link ContractSpace} from the JSON artefacts a\n* contract-space extension package emits to disk.\n*\n* Extension descriptors wire `contract.json`, per-migration\n* `migration.json` / `ops.json`, and `refs/head.json` to the framework's\n* typed surfaces. TypeScript widens JSON imports to a structural record\n* that does not preserve readonly modifiers or branded scalars (e.g.\n* `StorageHashBase<'abc123...'>`), so authoring the descriptor inline\n* forces every wiring site to cast through `unknown`. This helper\n* encapsulates the single narrowing point: descriptor sources stay\n* cast-free, and the (necessary) coercion is colocated with the\n* documentation explaining why it is safe.\n*\n* Safety: the JSON files passed here are produced by the framework's own\n* emit pipeline (`prisma-next contract emit` and `MigrationCLI.run`)\n* and re-validated downstream by the runner / verifier. The descriptor\n* is a pass-through wiring layer — no descriptor consumer treats the\n* narrowed types as a stronger guarantee than \"these came from the\n* canonical emit pipeline\".\n*\n* The helper does not introspect or schema-validate the inputs; runtime\n* validation is the responsibility of `family.deserializeContract`\n* (codec-aware, invoked at control-stack construction) and the\n* per-migration `readMigrationPackage` reader used when loading\n* from disk. JSON-imported packages flow through the descriptor without\n* a disk read, so the equivalent runtime guarantee comes from the emit\n* pipeline that produced the JSON in the first place.\n*/\nfunction contractSpaceFromJson(inputs) {\n\tconst migrations = inputs.migrations.map((m) => ({\n\t\tdirName: m.dirName,\n\t\tmetadata: m.metadata,\n\t\tops: m.ops\n\t}));\n\treturn {\n\t\tcontractJson: inputs.contractJson,\n\t\tmigrations,\n\t\theadRef: inputs.headRef\n\t};\n}\n//#endregion\n//#region src/emit-contract-space-artifacts.ts\n/**\n* Emit the per-space artifacts — the head contract snapshot (written into\n* the migrations-root-wide `snapshots/` store, keyed by `headRef.hash`) and\n* `refs/head.json` — under `<projectMigrationsDir>/<spaceId>/`.\n*\n* The head contract snapshot is write-if-absent (see\n* {@link writeContractSnapshot}): a changed extension contract has a new\n* hash, so it lands as a new store entry; an unchanged hash means identical\n* canonical content already sits there. `refs/head.json` stays\n* always-overwrite: the framework owns it, so running `migrate` twice with\n* the same inputs is a no-op observably (idempotent), but the helper does\n* not check pre-existing contents — re-emit always wins.\n*\n* Path layout matches the convention in\n* [`spaceMigrationDirectory`](./space-layout.ts). The space id is\n* validated against `[a-z][a-z0-9_-]{0,63}` via\n* {@link assertValidSpaceId} for filesystem-safety reasons; the helper\n* accepts every space uniformly (including the app space, default\n* `'app'`).\n*\n* The migrations directory and space subdirectory are created if they\n* do not yet exist (`mkdir { recursive: true }`).\n*/\nasync function emitContractSpaceArtifacts(projectMigrationsDir, spaceId, inputs) {\n\tassertValidSpaceId(spaceId);\n\tconst refsDir = spaceRefsDirectory(join(projectMigrationsDir, spaceId));\n\tawait mkdir(refsDir, { recursive: true });\n\tawait writeContractSnapshot(projectMigrationsDir, inputs.headRef.hash, {\n\t\tcontractJson: inputs.contract,\n\t\tcontractDts: inputs.contractDts\n\t});\n\tconst sortedInvariants = [...inputs.headRef.invariants].sort();\n\tconst headJson = canonicalizeJson({\n\t\thash: inputs.headRef.hash,\n\t\tinvariants: sortedInvariants\n\t});\n\tawait writeFile(join(refsDir, \"head.json\"), `${headJson}\\n`);\n}\n//#endregion\n//#region src/gather-disk-contract-space-state.ts\n/**\n* Read the on-disk state the per-space verifier needs:\n*\n* - The list of contract-space directories under\n* `<projectMigrationsDir>/` (via\n* {@link import('./verify-contract-spaces').listContractSpaceDirectories}).\n* - The on-disk head ref `(hash, invariants)` for each declared extension space\n* (via {@link readContractSpaceHeadRef}; missing on-disk artefacts are simply\n* omitted — the verifier reports them as `declaredButUnmigrated`).\n*\n* Synchronous in spirit but async due to filesystem reads. Reads only\n* the user's repo. **Does not import any extension descriptor module.**\n*\n* Composition convention: pure target-agnostic primitive in\n* `1-framework`; the SQL family (and any future target family) wires\n* it into its `dbInit` / `verify` flows alongside its own marker-row\n* read before invoking `verifyContractSpaces`.\n*/\nasync function gatherDiskContractSpaceState(args) {\n\tconst { projectMigrationsDir, loadedSpaceIds } = args;\n\tconst spaceDirsOnDisk = await listContractSpaceDirectories(projectMigrationsDir);\n\tconst headRefsBySpace = /* @__PURE__ */ new Map();\n\tfor (const spaceId of loadedSpaceIds) {\n\t\tif (spaceId === APP_SPACE_ID) continue;\n\t\tconst head = await readContractSpaceHeadRef(projectMigrationsDir, spaceId);\n\t\tif (head !== null) headRefsBySpace.set(spaceId, head);\n\t}\n\treturn {\n\t\tspaceDirsOnDisk,\n\t\theadRefsBySpace\n\t};\n}\n//#endregion\n//#region src/plan-all-spaces.ts\n/**\n* Iterate the per-space planner across a set of loaded contract spaces\n* and return a deterministic shape regardless of declaration order.\n*\n* Behaviour:\n*\n* - The output is sorted alphabetically by `spaceId`. Two callers\n* passing the same set of inputs in different orders observe\n* byte-identical outputs.\n* - The per-space planner (`planSpace`) is called exactly once per\n* input, in alphabetical-by-spaceId order. Its return value is\n* attached to the corresponding output entry verbatim.\n* - Duplicate `spaceId`s in the input array throw\n* `MIGRATION.DUPLICATE_SPACE_ID` before any `planSpace` call runs,\n* keeping the planner pure when the input is malformed.\n*\n* The signature is generic over `TContract` and `TPackage` because the\n* shape is framework-neutral (SQL family today, Mongo family\n* eventually). Callers wire in whatever contract value and migration\n* package shape their family already speaks.\n*\n* Synchronous: the underlying per-space planner (target's\n* `MigrationPlanner.plan(...)`) is synchronous; callers that need to\n* resolve async I/O (e.g. reading on-disk `contract.json` from disk)\n* resolve it before calling `planAllSpaces` and pass the materialised\n* inputs through.\n*/\nfunction planAllSpaces(inputs, planSpace) {\n\tconst seen = /* @__PURE__ */ new Set();\n\tfor (const input of inputs) {\n\t\tif (seen.has(input.spaceId)) throw errorDuplicateSpaceId(input.spaceId);\n\t\tseen.add(input.spaceId);\n\t}\n\treturn [...inputs].sort((a, b) => {\n\t\tif (a.spaceId < b.spaceId) return -1;\n\t\tif (a.spaceId > b.spaceId) return 1;\n\t\treturn 0;\n\t}).map((input) => ({\n\t\tspaceId: input.spaceId,\n\t\tmigrationPackages: planSpace(input)\n\t}));\n}\n//#endregion\nexport { APP_SPACE_ID, RESERVED_SPACE_SUBDIR_NAMES, SPACE_REFS_DIRNAME, assertDescriptorSelfConsistency, assertValidSpaceId, computeExtensionSpaceApplyPath, contractSpaceFromJson, emitContractSpaceArtifacts, gatherDiskContractSpaceState, isValidSpaceId, listContractSpaceDirectories, planAllSpaces, readContractSpaceHeadRef, spaceMigrationDirectory, spaceRefsDirectory, verifyContractSpaces };\n\n//# sourceMappingURL=spaces.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAS,gCAAgC,QAAQ;CAChD,MAAM,EAAE,aAAa,WAAW,GAAG,uBAAuB,OAAO;CACjE,MAAM,aAAa,mBAAmB;EACrC,QAAQ,OAAO;EACf,cAAc,OAAO;EACrB,SAAS;EACT,GAAG,UAAU,uBAAuB,OAAO,mBAAmB;EAC9D,GAAG,UAAU,eAAe,OAAO,WAAW;CAC/C,CAAC;CACD,IAAI,eAAe,OAAO,aAAa,MAAM,gCAAgC;EAC5E,aAAa,OAAO;EACpB,gBAAgB;EAChB,aAAa,OAAO;CACrB,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,eAAe,+BAA+B,QAAQ;CACrD,MAAM,EAAE,sBAAsB,SAAS,mBAAmB,4BAA4B;CACtF,MA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