@prisma/orm-toolchain 8.0.0-rc.1-dev.36 → 8.0.0-rc.1-dev.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin__prisma-next.mjs +23 -23
- package/dist/bin__prisma-next.mjs.map +1 -1
- package/dist/{caught-errors-BZ-9WASe-DH4DaDha.mjs → caught-errors-DLPzfzIW-CQ9BoXD-.mjs} +3 -3
- package/dist/{caught-errors-BZ-9WASe-DH4DaDha.mjs.map → caught-errors-DLPzfzIW-CQ9BoXD-.mjs.map} +1 -1
- package/dist/{cli-errors-C6_pH59O-CzD4SYcJ.mjs → cli-errors-BG6bItjG-DwdKIeGz.mjs} +4 -4
- package/dist/cli-errors-BG6bItjG-DwdKIeGz.mjs.map +1 -0
- package/dist/{cli-errors-f5PRtVdm-C6xVKeQn.d.mts → cli-errors-BiKBrOXc-JPxQqO58.d.mts} +48 -6
- package/dist/cli-errors-BiKBrOXc-JPxQqO58.d.mts.map +1 -0
- package/dist/cli.mjs +572 -33
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__commands__contract-emit.mjs +1 -1
- package/dist/cli__commands__contract-infer.mjs +1 -1
- package/dist/cli__commands__db-init.mjs +1 -1
- package/dist/cli__commands__db-schema.mjs +1 -1
- package/dist/cli__commands__db-sign.mjs +1 -1
- package/dist/cli__commands__db-update.mjs +1 -1
- package/dist/cli__commands__db-verify.mjs +1 -1
- package/dist/cli__commands__migrate.d.mts +2 -2
- package/dist/cli__commands__migrate.mjs +1 -1
- package/dist/cli__commands__migration-check.mjs +1 -1
- package/dist/cli__commands__migration-graph.d.mts +1 -1
- package/dist/cli__commands__migration-graph.mjs +1 -1
- package/dist/cli__commands__migration-list.d.mts +1 -1
- package/dist/cli__commands__migration-list.mjs +1 -1
- package/dist/cli__commands__migration-log.d.mts +1 -1
- package/dist/cli__commands__migration-log.mjs +1 -1
- package/dist/cli__commands__migration-new.mjs +1 -1
- package/dist/cli__commands__migration-plan.d.mts +1 -1
- package/dist/cli__commands__migration-plan.mjs +1 -1
- package/dist/cli__commands__migration-show.mjs +1 -1
- package/dist/cli__commands__migration-status.d.mts +1 -1
- package/dist/cli__commands__migration-status.mjs +1 -1
- package/dist/cli__commands__ref.mjs +1 -1
- package/dist/cli__commands__telemetry.mjs +1 -1
- package/dist/cli__control-api.d.mts +11 -3
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +15 -15
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/{client-BqhVohc5-DFRVWFps.mjs → client-DU9qtBxW-BjVHiKzE.mjs} +57 -11
- package/dist/client-DU9qtBxW-BjVHiKzE.mjs.map +1 -0
- package/dist/{command-helpers-kD9CO1hd-BPhnkBin.mjs → command-helpers-CwLvFwMB-BWwUQhlT.mjs} +3 -3
- package/dist/{command-helpers-kD9CO1hd-BPhnkBin.mjs.map → command-helpers-CwLvFwMB-BWwUQhlT.mjs.map} +1 -1
- package/dist/{contract-at-errors-CLFX1-Gc-MNPXDx1t.mjs → contract-at-errors-Dptf8RE_-B5gr04Sc.mjs} +3 -3
- package/dist/{contract-at-errors-CLFX1-Gc-MNPXDx1t.mjs.map → contract-at-errors-Dptf8RE_-B5gr04Sc.mjs.map} +1 -1
- package/dist/{contract-emit-BlvUNMHM-BEioUVR5.mjs → contract-emit-BQFpcb2A-BwT9iVdb.mjs} +5 -5
- package/dist/{contract-emit-BlvUNMHM-BEioUVR5.mjs.map → contract-emit-BQFpcb2A-BwT9iVdb.mjs.map} +1 -1
- package/dist/contract-emit-Bzt11N4v-BQ2Pr8KG.mjs +2 -0
- package/dist/{contract-emit-CrYO0A8x-60BOqXFr.mjs → contract-emit-CZQZ1i4z-p9LSGmmQ.mjs} +6 -6
- package/dist/{contract-emit-CrYO0A8x-60BOqXFr.mjs.map → contract-emit-CZQZ1i4z-p9LSGmmQ.mjs.map} +1 -1
- package/dist/{contract-infer-C8kLphsm-C7-AIYMc.mjs → contract-infer-C6cYOihE-CIUCgmw0.mjs} +4 -4
- package/dist/{contract-infer-C8kLphsm-C7-AIYMc.mjs.map → contract-infer-C6cYOihE-CIUCgmw0.mjs.map} +1 -1
- package/dist/{contract-snapshot-resolution-BUUdIcgG-8mbs6-OD.mjs → contract-snapshot-resolution-DvZvbNcZ-DHFCWe_k.mjs} +4 -4
- package/dist/{contract-snapshot-resolution-BUUdIcgG-8mbs6-OD.mjs.map → contract-snapshot-resolution-DvZvbNcZ-DHFCWe_k.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-BpdB-mHG-BiU0IUeb.mjs → contract-space-aggregate-loader-CoLTf3Ce-pQDru2w0.mjs} +4 -4
- package/dist/{contract-space-aggregate-loader-BpdB-mHG-BiU0IUeb.mjs.map → contract-space-aggregate-loader-CoLTf3Ce-pQDru2w0.mjs.map} +1 -1
- package/dist/{db-init-CyNsXRAB-D3xWQ-vy.mjs → db-init-DypCy1e3-CBrYfhHF.mjs} +6 -6
- package/dist/{db-init-CyNsXRAB-D3xWQ-vy.mjs.map → db-init-DypCy1e3-CBrYfhHF.mjs.map} +1 -1
- package/dist/{db-init-failure-XYOVL4o7-BitY_JYn.mjs → db-init-failure-BmCcHUfc-BqDxyrJE.mjs} +3 -3
- package/dist/{db-init-failure-XYOVL4o7-BitY_JYn.mjs.map → db-init-failure-BmCcHUfc-BqDxyrJE.mjs.map} +1 -1
- package/dist/{db-schema-7zNGHgYN-BVaRHPxg.mjs → db-schema-DHfPM-5V-JeCjrQ55.mjs} +4 -4
- package/dist/{db-schema-7zNGHgYN-BVaRHPxg.mjs.map → db-schema-DHfPM-5V-JeCjrQ55.mjs.map} +1 -1
- package/dist/{db-sign-DAs6J3XG-xxP2CCnO.mjs → db-sign-DbAxRcZh-C-nT9kcG.mjs} +6 -6
- package/dist/{db-sign-DAs6J3XG-xxP2CCnO.mjs.map → db-sign-DbAxRcZh-C-nT9kcG.mjs.map} +1 -1
- package/dist/{db-update-BX1sOuQk-CpeLgPeN.mjs → db-update-J59yROwL-DCP-_z2W.mjs} +16 -7
- package/dist/db-update-J59yROwL-DCP-_z2W.mjs.map +1 -0
- package/dist/{db-verify-CN4nmxxF-DSRWae0u.mjs → db-verify-0TpDMziA-CJDKutMN.mjs} +5 -5
- package/dist/{db-verify-CN4nmxxF-DSRWae0u.mjs.map → db-verify-0TpDMziA-CJDKutMN.mjs.map} +1 -1
- package/dist/{format-DceifGAK-BJhTdkcO.mjs → format-cbJY7l6v-CjMUDTAs.mjs} +5 -5
- package/dist/{format-DceifGAK-BJhTdkcO.mjs.map → format-cbJY7l6v-CjMUDTAs.mjs.map} +1 -1
- package/dist/{framework-components-CPFWl2Ix-CrIZL3jG.mjs → framework-components-C3K7SBeC-Bj5gx85-.mjs} +3 -3
- package/dist/{framework-components-CPFWl2Ix-CrIZL3jG.mjs.map → framework-components-C3K7SBeC-Bj5gx85-.mjs.map} +1 -1
- package/dist/{init-SY01IBU--CQFYh2As.mjs → init-Bco4QkKJ-DqUZVrBU.mjs} +4 -4
- package/dist/{init-SY01IBU--CQFYh2As.mjs.map → init-Bco4QkKJ-DqUZVrBU.mjs.map} +1 -1
- package/dist/{inspect-live-schema-BaLAtOgO-Bs0gs_yP.mjs → inspect-live-schema-Cf77j9Vd-i5fzNW4T.mjs} +5 -5
- package/dist/{inspect-live-schema-BaLAtOgO-Bs0gs_yP.mjs.map → inspect-live-schema-Cf77j9Vd-i5fzNW4T.mjs.map} +1 -1
- package/dist/{invariants-1L2zfc6--BpedlAbF.mjs → invariants-1zL5-9Mc-BCeOLxd_.mjs} +4 -4
- package/dist/{invariants-1L2zfc6--BpedlAbF.mjs.map → invariants-1zL5-9Mc-BCeOLxd_.mjs.map} +1 -1
- package/dist/{legend-aXC5H1jH-Dg1yWonK.mjs → legend-BQcPKTLe-bn9e4_ZU.mjs} +3 -3
- package/dist/{legend-aXC5H1jH-Dg1yWonK.mjs.map → legend-BQcPKTLe-bn9e4_ZU.mjs.map} +1 -1
- package/dist/{migrate-DRiUHRCS-Cci6EEZv.mjs → migrate-CgSnzAUm-aGstaO5N.mjs} +12 -12
- package/dist/{migrate-DRiUHRCS-Cci6EEZv.mjs.map → migrate-CgSnzAUm-aGstaO5N.mjs.map} +1 -1
- package/dist/{migrate-failure-Bdr3AJee-C9yNeQXy.mjs → migrate-failure-CnoUcDms-taa9pfd7.mjs} +4 -4
- package/dist/{migrate-failure-Bdr3AJee-C9yNeQXy.mjs.map → migrate-failure-CnoUcDms-taa9pfd7.mjs.map} +1 -1
- package/dist/{migrate-show-DutwCc2F-BhGfH7D-.d.mts → migrate-show-Dlo-YzOk-BXo-DmwI.d.mts} +3 -3
- package/dist/{migrate-show-DutwCc2F-BhGfH7D-.d.mts.map → migrate-show-Dlo-YzOk-BXo-DmwI.d.mts.map} +1 -1
- package/dist/{migrate-show-bdXjSFgh-CQxl5yNp.mjs → migrate-show-kVUG1xdo-bVTW8tu4.mjs} +6 -6
- package/dist/{migrate-show-bdXjSFgh-CQxl5yNp.mjs.map → migrate-show-kVUG1xdo-bVTW8tu4.mjs.map} +1 -1
- package/dist/{migration-check-BHiINj74-CVazN1LV.mjs → migration-check-BVK9vfan-Dfg8lbeB.mjs} +6 -6
- package/dist/{migration-check-BHiINj74-CVazN1LV.mjs.map → migration-check-BVK9vfan-Dfg8lbeB.mjs.map} +1 -1
- package/dist/{migration-check-of-RPYRk-HuXtDO8i.mjs → migration-check-CBMoMDX2-DhSEOGNg.mjs} +6 -6
- package/dist/{migration-check-of-RPYRk-HuXtDO8i.mjs.map → migration-check-CBMoMDX2-DhSEOGNg.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-zJFTGn5k-5AGczeSx.mjs → migration-command-scaffold-B1BiWKLI-Bskk5UKX.mjs} +5 -5
- package/dist/{migration-command-scaffold-zJFTGn5k-5AGczeSx.mjs.map → migration-command-scaffold-B1BiWKLI-Bskk5UKX.mjs.map} +1 -1
- package/dist/{migration-graph-DmdVVJoZ-DDBKjUMz.mjs → migration-graph-B30X5398-BH3zB9Mn.mjs} +3 -3
- package/dist/{migration-graph-DmdVVJoZ-DDBKjUMz.mjs.map → migration-graph-B30X5398-BH3zB9Mn.mjs.map} +1 -1
- package/dist/{migration-graph-D0KHjNJ--CWzX9Zzc.mjs → migration-graph-D2dbLCkl-CCHL0aDA.mjs} +8 -8
- package/dist/{migration-graph-D0KHjNJ--CWzX9Zzc.mjs.map → migration-graph-D2dbLCkl-CCHL0aDA.mjs.map} +1 -1
- package/dist/{migration-graph-sections-BWcFCOL6-_G0Wb4QR.mjs → migration-graph-sections-0lKA5l1b-CTHQquu7.mjs} +3 -3
- package/dist/{migration-graph-sections-BWcFCOL6-_G0Wb4QR.mjs.map → migration-graph-sections-0lKA5l1b-CTHQquu7.mjs.map} +1 -1
- package/dist/{migration-list-W0dqabIj-Dc2NH_LY.mjs → migration-list-BQTfSGbT-DoNqbNsu.mjs} +3 -3
- package/dist/{migration-list-W0dqabIj-Dc2NH_LY.mjs.map → migration-list-BQTfSGbT-DoNqbNsu.mjs.map} +1 -1
- package/dist/{migration-list-B0SANIeM-DiXQ9LyS.mjs → migration-list-DCx0KOFp-B3MiGnpa.mjs} +6 -6
- package/dist/{migration-list-B0SANIeM-DiXQ9LyS.mjs.map → migration-list-DCx0KOFp-B3MiGnpa.mjs.map} +1 -1
- package/dist/{migration-log-B3iiP8ns-B4tdLSye.mjs → migration-log-CJ6_9_uj-uWyc3vlC.mjs} +6 -6
- package/dist/{migration-log-B3iiP8ns-B4tdLSye.mjs.map → migration-log-CJ6_9_uj-uWyc3vlC.mjs.map} +1 -1
- package/dist/{migration-new-YSdtJTRp-Dc06LNJe.mjs → migration-new-Bp5dPKnF-D-Fb6vEp.mjs} +7 -7
- package/dist/{migration-new-YSdtJTRp-Dc06LNJe.mjs.map → migration-new-Bp5dPKnF-D-Fb6vEp.mjs.map} +1 -1
- package/dist/{migration-new-Bf5K9fNK-Cd90rYmm.mjs → migration-new-CXLgOLXz-2C5s_q7n.mjs} +4 -4
- package/dist/{migration-new-Bf5K9fNK-Cd90rYmm.mjs.map → migration-new-CXLgOLXz-2C5s_q7n.mjs.map} +1 -1
- package/dist/{migration-path-target-5r1leSW5-B0EMgvEv.mjs → migration-path-target-BNTSTPAc-D7dQ4K7x.mjs} +3 -3
- package/dist/{migration-path-target-5r1leSW5-B0EMgvEv.mjs.map → migration-path-target-BNTSTPAc-D7dQ4K7x.mjs.map} +1 -1
- package/dist/{migration-plan-oterbw8h-_GrKbsRb.mjs → migration-plan-BxfF1Hdo-BKn0xMlY.mjs} +4 -4
- package/dist/{migration-plan-oterbw8h-_GrKbsRb.mjs.map → migration-plan-BxfF1Hdo-BKn0xMlY.mjs.map} +1 -1
- package/dist/{migration-plan-CZY8HVCh-BbfQvxnb.mjs → migration-plan-C6KrFHJT-CRkTsE7L.mjs} +8 -8
- package/dist/{migration-plan-CZY8HVCh-BbfQvxnb.mjs.map → migration-plan-C6KrFHJT-CRkTsE7L.mjs.map} +1 -1
- package/dist/{migration-plan-4cnnP6yM-DXzRfi_A.d.mts → migration-plan-CharRhoN-BIB3WL65.d.mts} +3 -3
- package/dist/{migration-plan-4cnnP6yM-DXzRfi_A.d.mts.map → migration-plan-CharRhoN-BIB3WL65.d.mts.map} +1 -1
- package/dist/{migration-show-iX2cduR4-C3-FENR4.mjs → migration-show-Dhnlx_GU-DhWLLt3Z.mjs} +8 -8
- package/dist/{migration-show-iX2cduR4-C3-FENR4.mjs.map → migration-show-Dhnlx_GU-DhWLLt3Z.mjs.map} +1 -1
- package/dist/{migration-status-BZ6gOxyJ-sbhPgABr.mjs → migration-status-S88DjM8c-DLHnCKfW.mjs} +10 -10
- package/dist/{migration-status-BZ6gOxyJ-sbhPgABr.mjs.map → migration-status-S88DjM8c-DLHnCKfW.mjs.map} +1 -1
- package/dist/{project-import-root-BPuwl2j1-DTX9G73z.mjs → project-import-root-nwdoPWap--5vXe4zp.mjs} +3 -3
- package/dist/{project-import-root-BPuwl2j1-DTX9G73z.mjs.map → project-import-root-nwdoPWap--5vXe4zp.mjs.map} +1 -1
- package/dist/{ref-CVD6j3jA-BAgpZLNM.mjs → ref-C8oaaeky-ColNkWpr.mjs} +5 -5
- package/dist/{ref-CVD6j3jA-BAgpZLNM.mjs.map → ref-C8oaaeky-ColNkWpr.mjs.map} +1 -1
- package/dist/{ref-CaqNqeRF-cjWFAueu.mjs → ref-gZQjdz8I-CW6n9Fc0.mjs} +4 -4
- package/dist/{ref-CaqNqeRF-cjWFAueu.mjs.map → ref-gZQjdz8I-CW6n9Fc0.mjs.map} +1 -1
- package/dist/{ref-resolution-D4fAdXo8-Dfaky0yw.mjs → ref-resolution-DAK4OK3x-B-8ZZc0f.mjs} +3 -3
- package/dist/{ref-resolution-D4fAdXo8-Dfaky0yw.mjs.map → ref-resolution-DAK4OK3x-B-8ZZc0f.mjs.map} +1 -1
- package/dist/{telemetry-fKuZOFpu-DNUWfIHo.mjs → telemetry-DPXFYAsz-CPW2USxs.mjs} +3 -3
- package/dist/{telemetry-fKuZOFpu-DNUWfIHo.mjs.map → telemetry-DPXFYAsz-CPW2USxs.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/cli-errors-C6_pH59O-CzD4SYcJ.mjs.map +0 -1
- package/dist/cli-errors-f5PRtVdm-C6xVKeQn.d.mts.map +0 -1
- package/dist/client-BqhVohc5-DFRVWFps.mjs.map +0 -1
- package/dist/contract-emit-Csa6R0gt-DvxFlS0O.mjs +0 -2
- package/dist/db-update-BX1sOuQk-CpeLgPeN.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createContractEmitCommand } from "./contract-emit-
|
|
1
|
+
import { t as createContractEmitCommand } from "./contract-emit-BQFpcb2A-BwT9iVdb.mjs";
|
|
2
2
|
export { createContractEmitCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createContractInferCommand } from "./contract-infer-
|
|
1
|
+
import { t as createContractInferCommand } from "./contract-infer-C6cYOihE-CIUCgmw0.mjs";
|
|
2
2
|
export { createContractInferCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbInitCommand } from "./db-init-
|
|
1
|
+
import { t as createDbInitCommand } from "./db-init-DypCy1e3-CBrYfhHF.mjs";
|
|
2
2
|
export { createDbInitCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbSchemaCommand } from "./db-schema-
|
|
1
|
+
import { t as createDbSchemaCommand } from "./db-schema-DHfPM-5V-JeCjrQ55.mjs";
|
|
2
2
|
export { createDbSchemaCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbSignCommand } from "./db-sign-
|
|
1
|
+
import { t as createDbSignCommand } from "./db-sign-DbAxRcZh-C-nT9kcG.mjs";
|
|
2
2
|
export { createDbSignCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbUpdateCommand } from "./db-update-
|
|
1
|
+
import { t as createDbUpdateCommand } from "./db-update-J59yROwL-DCP-_z2W.mjs";
|
|
2
2
|
export { createDbUpdateCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDbVerifyCommand } from "./db-verify-
|
|
1
|
+
import { t as createDbVerifyCommand } from "./db-verify-0TpDMziA-CJDKutMN.mjs";
|
|
2
2
|
export { createDbVerifyCommand };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as MigratePathDecision, j as PerSpaceExecutionEntry } from "./cli-errors-
|
|
2
|
-
import { n as MigrateShowMigration } from "./migrate-show-
|
|
1
|
+
import { O as MigratePathDecision, j as PerSpaceExecutionEntry } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
2
|
+
import { n as MigrateShowMigration } from "./migrate-show-Dlo-YzOk-BXo-DmwI.mjs";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migrate.d.mts
|
|
5
5
|
//#region src/commands/migrate.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrateCommand } from "./migrate-
|
|
1
|
+
import { t as createMigrateCommand } from "./migrate-CgSnzAUm-aGstaO5N.mjs";
|
|
2
2
|
export { createMigrateCommand };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as migrationCheckResultSchema } from "./schemas-BMkqaqvM-CLaqlat4.mjs";
|
|
2
|
-
import { t as createMigrationCheckCommand } from "./migration-check-
|
|
2
|
+
import { t as createMigrationCheckCommand } from "./migration-check-BVK9vfan-Dfg8lbeB.mjs";
|
|
3
3
|
export { createMigrationCheckCommand, migrationCheckResultSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
2
|
-
import { t as CliStructuredError$2 } from "./cli-errors-
|
|
2
|
+
import { t as CliStructuredError$2 } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
3
3
|
import { o as MigrationSpaceGraphEntry } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
4
4
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
5
5
|
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationGraphCommand, r as formatMigrationGraphHumanOutput, t as createMigrationGraphCommand } from "./migration-graph-
|
|
1
|
+
import { n as executeMigrationGraphCommand, r as formatMigrationGraphHumanOutput, t as createMigrationGraphCommand } from "./migration-graph-D2dbLCkl-CCHL0aDA.mjs";
|
|
2
2
|
export { createMigrationGraphCommand, executeMigrationGraphCommand, formatMigrationGraphHumanOutput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
2
|
-
import { t as CliStructuredError$2 } from "./cli-errors-
|
|
2
|
+
import { t as CliStructuredError$2 } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
3
3
|
import { c as ContractSpaceAggregate } from "./aggregate-CA6bJ8UO.mjs";
|
|
4
4
|
import { r as MigrationListResult } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
5
5
|
import { n as TerminalUI, t as GlyphMode } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationListCommand, r as renderMigrationListHumanOutput, t as createMigrationListCommand } from "./migration-list-
|
|
1
|
+
import { n as executeMigrationListCommand, r as renderMigrationListHumanOutput, t as createMigrationListCommand } from "./migration-list-DCx0KOFp-B3MiGnpa.mjs";
|
|
2
2
|
export { createMigrationListCommand, executeMigrationListCommand, renderMigrationListHumanOutput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CliStructuredError$2 } from "./cli-errors-
|
|
1
|
+
import { t as CliStructuredError$2 } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
2
2
|
import { i as MigrationLogResult } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
3
3
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
4
4
|
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-
|
|
1
|
+
import { n as executeMigrationLogCommand, t as createMigrationLogCommand } from "./migration-log-CJ6_9_uj-uWyc3vlC.mjs";
|
|
2
2
|
export { createMigrationLogCommand, executeMigrationLogCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrationNewCommand } from "./migration-new-
|
|
1
|
+
import { t as createMigrationNewCommand } from "./migration-new-CXLgOLXz-2C5s_q7n.mjs";
|
|
2
2
|
export { createMigrationNewCommand };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as GlobalFlags } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
2
|
-
import { i as MigrationPlanResult } from "./migration-plan-
|
|
2
|
+
import { i as MigrationPlanResult } from "./migration-plan-CharRhoN-BIB3WL65.mjs";
|
|
3
3
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
//#region ../../../1-framework/3-tooling/cli/dist/commands/migration-plan.d.mts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-
|
|
1
|
+
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "./migration-plan-BxfF1Hdo-BKn0xMlY.mjs";
|
|
2
2
|
export { createMigrationPlanCommand, formatMigrationPlanOutput, resolveBundleByPrefix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createMigrationShowCommand } from "./migration-show-
|
|
1
|
+
import { t as createMigrationShowCommand } from "./migration-show-Dhnlx_GU-DhWLLt3Z.mjs";
|
|
2
2
|
export { createMigrationShowCommand };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CliStructuredError$2 } from "./cli-errors-
|
|
1
|
+
import { t as CliStructuredError$2 } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
2
2
|
import { c as MigrationStatusEntry, d as StatusDiagnosticJson, l as MigrationStatusResult, p as migrationStatusJsonResultSchema, u as MigrationStatusSpace } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
3
3
|
import { n as TerminalUI } from "./terminal-ui-BN4QOsm5-Bf3pim46.mjs";
|
|
4
4
|
import { n as GlobalFlags, t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as migrationStatusJsonResultSchema } from "./schemas-BMkqaqvM-CLaqlat4.mjs";
|
|
2
|
-
import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-
|
|
2
|
+
import { a as formatStatusHumanOutput, i as executeMigrationStatusCommand, n as buildStatusHeadline, o as formatStatusSummary, r as createMigrationStatusCommand, t as buildNoPathSummary } from "./migration-status-S88DjM8c-DLHnCKfW.mjs";
|
|
3
3
|
export { buildNoPathSummary, buildStatusHeadline, createMigrationStatusCommand, executeMigrationStatusCommand, formatStatusHumanOutput, formatStatusSummary, migrationStatusJsonResultSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createRefCommand } from "./ref-
|
|
1
|
+
import { t as createRefCommand } from "./ref-gZQjdz8I-CW6n9Fc0.mjs";
|
|
2
2
|
export { createRefCommand };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createTelemetryCommand } from "./telemetry-
|
|
1
|
+
import { t as createTelemetryCommand } from "./telemetry-DPXFYAsz-CPW2USxs.mjs";
|
|
2
2
|
export { createTelemetryCommand };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
|
|
2
2
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
3
3
|
import { r as MigrationRef, t as ContractRef } from "./ref-resolution-COGOSL57.mjs";
|
|
4
|
-
import { A as OnControlProgress, C as EmitResult, D as IntrospectOptions, E as ExecuteDbVerifyResult, F as executeDbVerify, M as SchemaVerifyOptions, N as SignOptions, P as VerifyOptions, S as EmitOptions, T as ExecuteDbVerifyOptions, _ as DbUpdateResult, a as ControlClient, b as EmitFailure, d as DbInitOptions, f as DbInitResult, g as DbUpdateOptions, h as DbUpdateFailureCode, i as ControlActionName, l as DbInitFailure, m as DbUpdateFailure, n as ContractEmitOptions, o as ControlClientOptions, p as DbInitSuccess, r as ContractEmitResult, s as ControlProgressEvent, t as CliStructuredError$2, u as DbInitFailureCode, v as DbUpdateSuccess, w as EmitSuccess, x as EmitFailureCode, y as EmitContractConfig } from "./cli-errors-
|
|
4
|
+
import { A as OnControlProgress, C as EmitResult, D as IntrospectOptions, E as ExecuteDbVerifyResult, F as executeDbVerify, M as SchemaVerifyOptions, N as SignOptions, P as VerifyOptions, S as EmitOptions, T as ExecuteDbVerifyOptions, _ as DbUpdateResult, a as ControlClient, b as EmitFailure, d as DbInitOptions, f as DbInitResult, g as DbUpdateOptions, h as DbUpdateFailureCode, i as ControlActionName, l as DbInitFailure, m as DbUpdateFailure, n as ContractEmitOptions, o as ControlClientOptions, p as DbInitSuccess, r as ContractEmitResult, s as ControlProgressEvent, t as CliStructuredError$2, u as DbInitFailureCode, v as DbUpdateSuccess, w as EmitSuccess, x as EmitFailureCode, y as EmitContractConfig } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
5
5
|
import { n as OnDiskMigrationPackage } from "./package-CfWiDNrr-ZR4HM_Iz.mjs";
|
|
6
6
|
import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-CA6bJ8UO.mjs";
|
|
7
|
-
import { i as executeMigrateShowPlan, n as MigrateShowMigration, r as MigrateShowPlanSuccess, t as ExecuteMigrateShowPlanOptions } from "./migrate-show-
|
|
7
|
+
import { i as executeMigrateShowPlan, n as MigrateShowMigration, r as MigrateShowPlanSuccess, t as ExecuteMigrateShowPlanOptions } from "./migrate-show-Dlo-YzOk-BXo-DmwI.mjs";
|
|
8
8
|
import { n as MigrationCheckResult, o as MigrationSpaceGraphEntry, r as MigrationListResult, s as MigrationSpaceListEntry } from "./schemas-Bm2e3Hk1-qLKF0B36.mjs";
|
|
9
9
|
import { t as CommonCommandOptions } from "./global-flags-BpoOYtNZ-CHZD3fud.mjs";
|
|
10
10
|
import "./package-N9PPdFV_.mjs";
|
|
11
|
-
import { a as executeMigrationPlanCommand, i as MigrationPlanResult, n as ContractSpaceSeedPhaseRecord, o as runContractSpaceSeedPhase, r as ContractSpaceSeedPhaseResult, t as ContractSpaceSeedPhaseInputs } from "./migration-plan-
|
|
11
|
+
import { a as executeMigrationPlanCommand, i as MigrationPlanResult, n as ContractSpaceSeedPhaseRecord, o as runContractSpaceSeedPhase, r as ContractSpaceSeedPhaseResult, t as ContractSpaceSeedPhaseInputs } from "./migration-plan-CharRhoN-BIB3WL65.mjs";
|
|
12
12
|
import { r as PrismaNextConfig$1 } from "./index-mCsi_ND5.mjs";
|
|
13
13
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
14
14
|
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
@@ -284,6 +284,14 @@ interface ExecuteDbUpdateOptions<TFamilyId extends string, TTargetId extends str
|
|
|
284
284
|
readonly migrations: TargetMigrationsCapability<TFamilyId, TTargetId, ControlFamilyInstance<TFamilyId, unknown>>;
|
|
285
285
|
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
|
|
286
286
|
readonly acceptDataLoss?: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Consent to the plan a prior `DESTRUCTIVE_CHANGES` refusal named by its
|
|
289
|
+
* `planHash`. The apply recomputes its plan and refuses with
|
|
290
|
+
* `CONSENT_PLAN_MISMATCH` when the fresh plan differs.
|
|
291
|
+
*/
|
|
292
|
+
readonly consent?: {
|
|
293
|
+
readonly planHash: string;
|
|
294
|
+
};
|
|
287
295
|
readonly migrationsDir: string;
|
|
288
296
|
readonly targetId: TTargetId;
|
|
289
297
|
readonly extensions?: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/migration-list-render-C0T5jWZo.d.mts","../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;UAEU;WACC;WACA;WACA;;;;;;WAMA;;;;;;;;;;;;;;;iBCiBM,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;iBAIzG,wBAAwB,iBAAiB;;;iBAGzC,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;;;;;;;;;;;;;;;;;;;;;iBAuBD,oBAAoB,SAAS,sBAAsB,QAAQ;;;UAGlE;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;;;;KAUN,sCAAsC;WAChC;WACA;;WAEA;WACA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;;;;;;;;;;;;;;iBAgBhI,uBAAuB,qBAAqB,uBAAuB;;;;;;;;UAQ1E,qBAAqB,0BAA0B;WAC9C,UAAU;WACV;WACA,aAAa;WACb,YAAY,cAAc,2BAA2B,WAAW;WAChE,sBAAsB,0BAA0B;;;;;;iBAM1C,sCAAsC,0BAA0B,0BAA0B,QAAQ,qBAAqB,WAAW,aAAa;;;;;;;iBAO/I,iCAAiC,0BAA0B,0BAA0B,QAAQ,qBAAqB,WAAW,aAAa,QAAQ,OAAO,wBAAwB;;;;;;iBAMjL,6BAA6B,WAAW,wBAAwB,SAAS,wBAAwB;;;;;;iBAMjG,mCAAmC,WAAW,yBAAyB;;;;;;;;iBAQvE,4BAA4B,0BAA0B,0BAA0B,QAAQ,qBAAqB,WAAW,aAAa,QAAQ,OAAO,wBAAwB;;;;;;;;;;;;iBAY5K,+BAA+B;WACrC;WACA;WACA;IACP;iBACa,sBAAsB;EACrC;IACE;;IAEA;;;;;;;;;iBASa,mBAAmB,QAAQ,kBAAoB;WACrD;IACP,QAAQ;WACD,WAAW;WACX;GACR;;;;;;;;;;;;;;;;;;;;UAoBO,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;;;;;WAK7E;;;;;WAKA,UAAU;;;;;;WAMV,aAAa,cAAc,2BAA2B,WAAW;;WAEjE,aAAa;;;;;;;;;iBASP,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ;;;;;;;;;;;;UAYvI,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,SAAS,uBAAuB,WAAW;WAC3C,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,YAAY,2BAA2B,WAAW,WAAW,sBAAsB;WACnF,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;
|
|
1
|
+
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/migration-list-render-C0T5jWZo.d.mts","../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;UAEU;WACC;WACA;WACA;;;;;;WAMA;;;;;;;;;;;;;;;iBCiBM,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;iBAIzG,wBAAwB,iBAAiB;;;iBAGzC,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;;;;;;;;;;;;;;;;;;;;;iBAuBD,oBAAoB,SAAS,sBAAsB,QAAQ;;;UAGlE;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;;;;KAUN,sCAAsC;WAChC;WACA;;WAEA;WACA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;;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mB,eAAe,SAAS,uBAAuB,OAAO,aAAa;iBACtF,oBAAoB,eAAe;WACzC,OAAO;WACP,MAAM;IACb,OAAO,cAAc;;;;iBAIR,kBAAkB,kBAAkB,QAAQ,OAAO,MAAM;;;iBAGzD,iBAAiB"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
|
|
2
|
-
import { n as executeContractEmit, t as disposeEmitQueue } from "./contract-emit-
|
|
3
|
-
import { a as loadContractSpaceAggregateForCli, c as refuseDeclaredExtensionTargetMismatch, i as loadContractRawSafely, l as refusePackageCorruptionOnAggregate, n as buildContractSpaceAggregate, o as mapIntegrityViolations, r as buildReadAggregate, s as refuseContractSpaceIntegrity, t as appContractStandInFromIdentity } from "./contract-space-aggregate-loader-
|
|
4
|
-
import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-
|
|
2
|
+
import { n as executeContractEmit, t as disposeEmitQueue } from "./contract-emit-CZQZ1i4z-p9LSGmmQ.mjs";
|
|
3
|
+
import { a as loadContractSpaceAggregateForCli, c as refuseDeclaredExtensionTargetMismatch, i as loadContractRawSafely, l as refusePackageCorruptionOnAggregate, n as buildContractSpaceAggregate, o as mapIntegrityViolations, r as buildReadAggregate, s as refuseContractSpaceIntegrity, t as appContractStandInFromIdentity } from "./contract-space-aggregate-loader-CoLTf3Ce-pQDru2w0.mjs";
|
|
4
|
+
import { i as executeDbVerify, n as executeDbInit, r as executeDbUpdate, t as createControlClient } from "./client-DU9qtBxW-BjVHiKzE.mjs";
|
|
5
5
|
import { a as readContractIR, i as executeRefAdvancement, n as buildRefAdvancementFields, o as resolveRefAdvancementFields, r as computeRefAdvancementName, t as advanceRefSafely } from "./ref-advancement-DaZBzm7m-WoqnFAyr.mjs";
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as executeMigrationNewCommand } from "./migration-new-
|
|
16
|
-
import { i as runContractSpaceSeedPhase, n as resolveFromForPlan, r as resolveToForPlan, t as executeMigrationPlanCommand } from "./migration-plan-
|
|
6
|
+
import { t as resolveContractRefToSnapshot } from "./contract-snapshot-resolution-DvZvbNcZ-DHFCWe_k.mjs";
|
|
7
|
+
import { t as mapCaughtMigrationError } from "./caught-errors-DLPzfzIW-CQ9BoXD-.mjs";
|
|
8
|
+
import { t as mapContractAtError } from "./contract-at-errors-Dptf8RE_-B5gr04Sc.mjs";
|
|
9
|
+
import { i as refuseUnknownInvariants, n as refuseMarkerOutsideGraph, r as refuseMissingInvariantPath, t as hasMigrationPath } from "./invariants-1zL5-9Mc-BCeOLxd_.mjs";
|
|
10
|
+
import { t as executeMigrateShowPlan } from "./migrate-show-kVUG1xdo-bVTW8tu4.mjs";
|
|
11
|
+
import { n as resolveMigrationRef, t as resolveContractRef } from "./ref-resolution-DAK4OK3x-B-8ZZc0f.mjs";
|
|
12
|
+
import { n as migrationSpaceListEntriesFromAggregate, r as runMigrationList, t as listRefsByContractHash } from "./migration-list-BQTfSGbT-DoNqbNsu.mjs";
|
|
13
|
+
import { t as buildMigrationSpaceGraphEntries } from "./migration-graph-B30X5398-BH3zB9Mn.mjs";
|
|
14
|
+
import { n as executeRefListCommand, r as executeRefSetCommand, t as executeRefDeleteCommand } from "./ref-C8oaaeky-ColNkWpr.mjs";
|
|
15
|
+
import { t as executeMigrationNewCommand } from "./migration-new-Bp5dPKnF-D-Fb6vEp.mjs";
|
|
16
|
+
import { i as runContractSpaceSeedPhase, n as resolveFromForPlan, r as resolveToForPlan, t as executeMigrationPlanCommand } from "./migration-plan-C6KrFHJT-CRkTsE7L.mjs";
|
|
17
17
|
import { a as statusForMigrationHash, i as readMigrationRefs, n as deriveStatusEdgeAnnotations, r as originHashForStatus, t as appliedHashesFromLedger } from "./refs-fQLFcMoq-aTBeUU9H.mjs";
|
|
18
|
-
import { i as runMigrationCheck, n as enumerateCheckSpaces, r as loadAggregateIntegrityViolations, t as checkSingleTarget } from "./migration-check-
|
|
18
|
+
import { i as runMigrationCheck, n as enumerateCheckSpaces, r as loadAggregateIntegrityViolations, t as checkSingleTarget } from "./migration-check-CBMoMDX2-DhSEOGNg.mjs";
|
|
19
19
|
export { advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSpaceAggregateForCli, mapCaughtMigrationError, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, originHashForStatus, readContractIR, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveRefAdvancementFields, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as EmitResult, E as ExecuteDbVerifyResult, _ as DbUpdateResult, a as ControlClient, f as DbInitResult, k as MigrateResult } from "./cli-errors-
|
|
1
|
+
import { C as EmitResult, E as ExecuteDbVerifyResult, _ as DbUpdateResult, a as ControlClient, f as DbInitResult, k as MigrateResult } from "./cli-errors-BiKBrOXc-JPxQqO58.mjs";
|
|
2
2
|
import { CoreSchemaView, OperationPreview, SignDatabaseResult, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
3
3
|
import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
4
4
|
import { AuthoringPslBlockDescriptorNamespace } from "@prisma/orm-framework/components/authoring";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as CliStructuredError$1 } from "./cli-errors-
|
|
2
|
-
import { t as assertFrameworkComponentsCompatible } from "./framework-components-
|
|
1
|
+
import { t as CliStructuredError$1 } from "./cli-errors-BG6bItjG-DwdKIeGz.mjs";
|
|
2
|
+
import { t as assertFrameworkComponentsCompatible } from "./framework-components-C3K7SBeC-Bj5gx85-.mjs";
|
|
3
3
|
import { t as enrichContract } from "./contract-enrichment-DrMvvY2A-DxNGeF4d.mjs";
|
|
4
4
|
import { t as emit } from "./exports-BCLg4CiV-05kuwcb0.mjs";
|
|
5
5
|
import { O as errorNoInvariantPath } from "./errors-CXbGUWGu-BQi6YS-H.mjs";
|
|
6
6
|
import "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
7
7
|
import { o as findPathWithDecision } from "./migration-graph-_SJImD5V-D5RCc651.mjs";
|
|
8
8
|
import { d as resolveRecordedPath, f as verifyMigration, l as planMigration, n as buildFabricatedMigrationEdge, r as collectAggregateNamespaces, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-BBsCbXgJ.mjs";
|
|
9
|
-
import { n as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-
|
|
9
|
+
import { n as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-CoLTf3Ce-pQDru2w0.mjs";
|
|
10
10
|
import { CliStructuredError } from "@prisma/orm-framework/errors/control";
|
|
11
11
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
12
12
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
@@ -14,7 +14,9 @@ import { blindCast, castAs } from "@prisma/orm-framework/utils/casts";
|
|
|
14
14
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
15
15
|
import { APP_SPACE_ID, createControlStack, hasMigrations, hasOperationPreview, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView } from "@prisma/orm-framework/components/control";
|
|
16
16
|
import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
17
|
-
|
|
17
|
+
import { createHash } from "node:crypto";
|
|
18
|
+
import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
|
|
19
|
+
//#region ../../../1-framework/3-tooling/cli/dist/client-DU9qtBxW.mjs
|
|
18
20
|
/**
|
|
19
21
|
* Strips operation objects to their public shape (id, label, operationClass).
|
|
20
22
|
* Used at the API boundary to avoid leaking internal fields (precheck, execute, postcheck, etc.).
|
|
@@ -27,6 +29,20 @@ function stripOperations(operations) {
|
|
|
27
29
|
}));
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
32
|
+
* Content identity of a `db update` plan: what it does (the ordered display
|
|
33
|
+
* operations) and where it lands (the destination storage hash). A
|
|
34
|
+
* `DESTRUCTIVE_CHANGES` refusal names the refused plan by this hash, and the
|
|
35
|
+
* apply that carries the consent back recomputes it to prove it is still
|
|
36
|
+
* applying the plan that was consented to.
|
|
37
|
+
*/
|
|
38
|
+
function computePlanHash(plan) {
|
|
39
|
+
const canonical = canonicalizeJson({
|
|
40
|
+
operations: plan.operations,
|
|
41
|
+
destination: { storageHash: plan.destination.storageHash }
|
|
42
|
+
});
|
|
43
|
+
return createHash("sha256").update(canonical).digest("hex");
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
30
46
|
* Span id emitted via `onProgress` for the run phase. Stable
|
|
31
47
|
* identifier consumed by the structured-output renderer and by tests.
|
|
32
48
|
*/
|
|
@@ -279,6 +295,24 @@ async function executeRun(options) {
|
|
|
279
295
|
...ifDefined("warnings", plannerWarnings)
|
|
280
296
|
});
|
|
281
297
|
}
|
|
298
|
+
if (options.consentedPlanHash !== void 0) {
|
|
299
|
+
const planHash = computePlanHash({
|
|
300
|
+
operations: stripOperations(orderedResolutions.flatMap((r) => r.entry.displayOps)),
|
|
301
|
+
destination: appPlan.destination
|
|
302
|
+
});
|
|
303
|
+
if (planHash !== options.consentedPlanHash) return notOk({
|
|
304
|
+
code: "CONSENT_PLAN_MISMATCH",
|
|
305
|
+
summary: "The plan changed between consent and apply",
|
|
306
|
+
why: "The plan recomputed for the consented apply is not the plan that was consented to, so applying it could destroy something nobody agreed to.",
|
|
307
|
+
conflicts: void 0,
|
|
308
|
+
meta: void 0,
|
|
309
|
+
consentPlanMismatch: {
|
|
310
|
+
consentedPlanHash: options.consentedPlanHash,
|
|
311
|
+
planHash
|
|
312
|
+
},
|
|
313
|
+
...ifDefined("warnings", plannerWarnings)
|
|
314
|
+
});
|
|
315
|
+
}
|
|
282
316
|
const applied = await runMigration({
|
|
283
317
|
aggregate,
|
|
284
318
|
perSpacePlans: planResult.value.perSpace,
|
|
@@ -476,13 +510,14 @@ async function executeDbUpdate(options) {
|
|
|
476
510
|
action: "dbUpdate",
|
|
477
511
|
...ifDefined("onProgress", options.onProgress)
|
|
478
512
|
};
|
|
479
|
-
if (options.mode === "apply" && !options.acceptDataLoss) {
|
|
480
|
-
const
|
|
481
|
-
if (
|
|
513
|
+
if (options.mode === "apply" && !options.acceptDataLoss && options.consent === void 0) {
|
|
514
|
+
const refusal = await guardDestructiveChanges(sharedInputs);
|
|
515
|
+
if (refusal !== null) return refusal;
|
|
482
516
|
}
|
|
483
517
|
return await executeRun({
|
|
484
518
|
...sharedInputs,
|
|
485
|
-
mode: options.mode
|
|
519
|
+
mode: options.mode,
|
|
520
|
+
...ifDefined("consentedPlanHash", options.consent?.planHash)
|
|
486
521
|
});
|
|
487
522
|
}
|
|
488
523
|
/**
|
|
@@ -503,12 +538,22 @@ async function guardDestructiveChanges(sharedInputs) {
|
|
|
503
538
|
label: op.label
|
|
504
539
|
}));
|
|
505
540
|
if (destructiveOps.length === 0) return null;
|
|
541
|
+
const databaseName = await sharedInputs.driver.databaseName?.();
|
|
506
542
|
return notOk({
|
|
507
543
|
code: "DESTRUCTIVE_CHANGES",
|
|
508
544
|
summary: `Planned ${destructiveOps.length} destructive operation(s) that require confirmation`,
|
|
509
|
-
why: "Destructive operations require
|
|
545
|
+
why: "Destructive operations require explicit consent, which the caller has not given",
|
|
510
546
|
conflicts: void 0,
|
|
511
|
-
meta:
|
|
547
|
+
meta: void 0,
|
|
548
|
+
destructiveChanges: {
|
|
549
|
+
destructiveOperations: destructiveOps,
|
|
550
|
+
databaseName,
|
|
551
|
+
planHash: computePlanHash({
|
|
552
|
+
operations: planResult.value.plan.operations,
|
|
553
|
+
destination: planResult.value.destination
|
|
554
|
+
})
|
|
555
|
+
},
|
|
556
|
+
...ifDefined("warnings", planResult.value.warnings)
|
|
512
557
|
});
|
|
513
558
|
}
|
|
514
559
|
/**
|
|
@@ -1369,6 +1414,7 @@ var ControlClientImpl = class {
|
|
|
1369
1414
|
targetId: this.options.target.targetId,
|
|
1370
1415
|
extensions: this.options.extensions ?? [],
|
|
1371
1416
|
...ifDefined("acceptDataLoss", options.acceptDataLoss),
|
|
1417
|
+
...ifDefined("consent", options.consent),
|
|
1372
1418
|
...ifDefined("onProgress", onProgress)
|
|
1373
1419
|
});
|
|
1374
1420
|
}
|
|
@@ -1607,4 +1653,4 @@ var ControlClientImpl = class {
|
|
|
1607
1653
|
//#endregion
|
|
1608
1654
|
export { planSpacePath as a, executeDbVerify as i, executeDbInit as n, executeDbUpdate as r, createControlClient as t };
|
|
1609
1655
|
|
|
1610
|
-
//# sourceMappingURL=client-
|
|
1656
|
+
//# sourceMappingURL=client-DU9qtBxW-BjVHiKzE.mjs.map
|