@prisma/orm-toolchain 8.0.0-rc.18-dev.13 → 8.0.0-rc.18-dev.14

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.
@@ -6,7 +6,7 @@ import "./contract-snapshot-store-DrIwu5pn.mjs";
6
6
  import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
7
7
  import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
8
8
  import { a as MigrationRef, t as ContractRef } from "./ref-resolution-BPhR-kta.mjs";
9
- import { $ as executeDbVerify, A as EmitResult, B as PlanQuestion, C as DbUpdateOptions, D as EmitFailure, E as EmitContractConfig, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, H as RenderContractDtsFailure, I as IntrospectOptions, J as StatementText, K as RenderContractDtsSuccess, M as ExecuteDbSignOptions, N as ExecuteDbSignResult, O as EmitFailureCode, P as ExecuteDbVerifyOptions, Q as executeDbSign, R as OnControlProgress, S as DbUpdateFailureCode, T as DbUpdateSuccess, U as RenderContractDtsFailureCode, V as PlanQuestionVerb, W as RenderContractDtsOptions, X as TemporaryValueReport, Y as StatementVerb, Z as VerifyOptions, _ as DbInitSuccess, a as CliStructuredError$2, b as DbSignSpaceOutcome, c as ControlActionName, d as ControlProgressEvent, f as CreateControlClient, g as DbInitResult, h as DbInitOptions, i as AskedSubject, j as EmitSuccess, k as EmitOptions, l as ControlClient, m as DbInitFailureCode, n as AppliedStatementReport, o as ContractEmitOptions, p as DbInitFailure, q as SchemaVerifyOptions, r as AskedDataLoss, s as ContractEmitResult, t as AnswerPlanQuestions, u as ControlClientOptions, v as DbSignOptions, w as DbUpdateResult, x as DbUpdateFailure, y as DbSignSpaceFailure, z as PlanAnswer } from "./db-sign-D90hPxFE-B-YLAvFQ.mjs";
9
+ import { $ as executeDbVerify, A as EmitResult, B as PlanQuestion, C as DbUpdateOptions, D as EmitFailure, E as EmitContractConfig, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, H as RenderContractDtsFailure, I as IntrospectOptions, J as StatementText, K as RenderContractDtsSuccess, M as ExecuteDbSignOptions, N as ExecuteDbSignResult, O as EmitFailureCode, P as ExecuteDbVerifyOptions, Q as executeDbSign, R as OnControlProgress, S as DbUpdateFailureCode, T as DbUpdateSuccess, U as RenderContractDtsFailureCode, V as PlanQuestionVerb, W as RenderContractDtsOptions, X as TemporaryValueReport, Y as StatementVerb, Z as VerifyOptions, _ as DbInitSuccess, a as CliStructuredError$2, b as DbSignSpaceOutcome, c as ControlActionName, d as ControlProgressEvent, f as CreateControlClient, g as DbInitResult, h as DbInitOptions, i as AskedSubject, j as EmitSuccess, k as EmitOptions, l as ControlClient, m as DbInitFailureCode, n as AppliedStatementReport, o as ContractEmitOptions, p as DbInitFailure, q as SchemaVerifyOptions, r as AskedDataLoss, s as ContractEmitResult, t as AnswerPlanQuestions, u as ControlClientOptions, v as DbSignOptions, w as DbUpdateResult, x as DbUpdateFailure, y as DbSignSpaceFailure, z as PlanAnswer } from "./db-sign-JgxFUHAx-BnA61Q5l.mjs";
10
10
  import { a as emit } from "./index-Co6ho75S.mjs";
11
11
  import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-MAVa_CD0.mjs";
12
12
  import "./metadata-BtscDay2.mjs";
@@ -1,3 +1,3 @@
1
1
  import { w as errorFromCaught } from "./caught-errors-olsx_RBn-Cg0ilJtv.mjs";
2
- import { $ as refuseMissingInvariantPath, A as executeRefDeleteCommand, B as loadContractRawSafely, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, J as preflightRefAdvancement, K as mapIntegrityViolations, L as listRefsByContractHash, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as refuseMarkerOutsideGraph, S as executeDbInit, T as executeDbVerify, U as loadContractSpaceAggregateForCli, V as loadContractSource, X as refuseContractSpaceIntegrity, Y as readMigrationRefs, Z as refuseDeclaredExtensionTargetMismatch, _ as deriveStatusEdgeAnnotations, at as resolveContractRefToSnapshot, b as enumerateCheckSpaces, c as appliedHashesFromLedger, ct as resolveStatements, d as buildReadAggregate, dt as runContractSpaceSeedPhase, et as refusePackageCorruptionOnAggregate, f as buildRefAdvancementFields, ft as runMigrationCheck, g as createControlClient, gt as statusForMigrationHash, it as resolveContractRef$1, j as executeRefListCommand, k as executeRefAdvancement, l as buildContractSpaceAggregate, lt as resolveToForPlan, m as computeRefAdvancementName, o as advanceRefSafely, ot as resolveFromForPlan, p as checkSingleTarget, pt as runMigrationList, q as migrationSpaceListEntriesFromAggregate, r as NO_REF_ADVANCEMENT, s as appContractStandInFromIdentity, st as resolveMigrationRef, tt as refuseUnknownInvariants, u as buildMigrationSpaceGraphEntries, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract, z as loadAggregateIntegrityViolations } from "./ref-D0TsCUZG-jEQXQOEL.mjs";
2
+ import { $ as refuseMissingInvariantPath, A as executeRefDeleteCommand, B as loadContractRawSafely, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, J as preflightRefAdvancement, K as mapIntegrityViolations, L as listRefsByContractHash, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as refuseMarkerOutsideGraph, S as executeDbInit, T as executeDbVerify, U as loadContractSpaceAggregateForCli, V as loadContractSource, X as refuseContractSpaceIntegrity, Y as readMigrationRefs, Z as refuseDeclaredExtensionTargetMismatch, _ as deriveStatusEdgeAnnotations, at as resolveContractRefToSnapshot, b as enumerateCheckSpaces, c as appliedHashesFromLedger, ct as resolveStatements, d as buildReadAggregate, dt as runContractSpaceSeedPhase, et as refusePackageCorruptionOnAggregate, f as buildRefAdvancementFields, ft as runMigrationCheck, g as createControlClient, gt as statusForMigrationHash, it as resolveContractRef$1, j as executeRefListCommand, k as executeRefAdvancement, l as buildContractSpaceAggregate, lt as resolveToForPlan, m as computeRefAdvancementName, o as advanceRefSafely, ot as resolveFromForPlan, p as checkSingleTarget, pt as runMigrationList, q as migrationSpaceListEntriesFromAggregate, r as NO_REF_ADVANCEMENT, s as appContractStandInFromIdentity, st as resolveMigrationRef, tt as refuseUnknownInvariants, u as buildMigrationSpaceGraphEntries, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract, z as loadAggregateIntegrityViolations } from "./ref-CPPMhLAs-Bxf2BJcA.mjs";
3
3
  export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, errorFromCaught, executeContractEmit, executeDbInit, executeDbSign, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveStatements, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
@@ -1,4 +1,4 @@
1
- import { A as EmitResult, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, L as MigrateResult, N as ExecuteDbSignResult, g as DbInitResult, l as ControlClient, w as DbUpdateResult } from "./db-sign-D90hPxFE-B-YLAvFQ.mjs";
1
+ import { A as EmitResult, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, L as MigrateResult, N as ExecuteDbSignResult, g as DbInitResult, l as ControlClient, w as DbUpdateResult } from "./db-sign-JgxFUHAx-BnA61Q5l.mjs";
2
2
  import { CoreSchemaView, OperationPreview, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
3
3
  import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
4
4
  import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
@@ -13,7 +13,7 @@ import { Contract, ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-f
13
13
  import "@prisma/cli-engine/protocol";
14
14
  import { ContractSourceDiagnostic, ContractSourceDiagnostics, ContractSourceProvider, PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
15
15
  import { AuthoringPslBlockDescriptorNamespace } from "@prisma/orm-framework/components/authoring";
16
- //#region ../../../1-framework/3-tooling/cli/dist/db-sign-D90hPxFE.d.mts
16
+ //#region ../../../1-framework/3-tooling/cli/dist/db-sign-JgxFUHAx.d.mts
17
17
  //#region src/control-api/statements/statement-text.d.ts
18
18
  /** The verbs a statement can have. */
19
19
  type StatementVerb = 'rename' | 'delete' | 'allow' | 'convert' | 'backfill';
@@ -541,6 +541,8 @@ interface DbInitFailure {
541
541
  readonly meta: Record<string, unknown> | undefined;
542
542
  /** The fields that were to become required while rows had no value for them; the failed one first. */
543
543
  readonly rowsWithoutValue?: readonly RowsWithoutValueReport[];
544
+ /** The check that failed before its operation ran. */
545
+ readonly failedPrecheck?: FailedPrecheckReport;
544
546
  /** Underlying failure or error for diagnostics; never serialized into envelopes. */
545
547
  readonly cause?: unknown;
546
548
  readonly marker?: {
@@ -621,6 +623,16 @@ type FailedTypeChangeReport = (Pick<FailedCast, 'by' | 'reason'> & {
621
623
  }) | (Pick<FailedConversion, 'by' | 'reason'> & {
622
624
  readonly field: string;
623
625
  });
626
+ /** A check that failed before its operation ran, when the runner gave no explanation of its own. */
627
+ interface FailedPrecheckReport {
628
+ readonly operationId: string;
629
+ /** The check, as the operation describes it. */
630
+ readonly description: string;
631
+ /**
632
+ * Whether the failing space's plan starts from the contract its marker names. True only for `db migrate` on a database with a marker; `db init` and `db update` plan from no origin, so it is false for them whatever the database holds.
633
+ */
634
+ readonly planStartsFromMarker: boolean;
635
+ }
624
636
  /** A field that was to become required while rows had no value for it, as the advice names it. */
625
637
  interface RowsWithoutValueReport {
626
638
  /** The field, as a `backfill` statement names it, when the contract names one. */
@@ -647,6 +659,8 @@ interface DbUpdateFailure {
647
659
  readonly meta: Record<string, unknown> | undefined;
648
660
  /** The fields that were to become required while rows had no value for them; the failed one first. */
649
661
  readonly rowsWithoutValue?: readonly RowsWithoutValueReport[];
662
+ /** The check that failed before its operation ran. */
663
+ readonly failedPrecheck?: FailedPrecheckReport;
650
664
  /**
651
665
  * The storage hash of the contract the database is at, when a migration of the graph ends at it:
652
666
  * the origin a `migration plan` for this database starts from.
@@ -827,6 +841,8 @@ interface MigrateFailure {
827
841
  readonly meta: Record<string, unknown> | undefined;
828
842
  /** The fields that were to become required while rows had no value for them; the failed one first. */
829
843
  readonly rowsWithoutValue?: readonly RowsWithoutValueReport[];
844
+ /** The check that failed before its operation ran. */
845
+ readonly failedPrecheck?: FailedPrecheckReport;
830
846
  /** The written migration of the failed operation: its directory, and the contract it starts from. */
831
847
  readonly failedMigration?: {
832
848
  readonly directory: string;
@@ -1127,4 +1143,4 @@ type ExecuteDbSignResult = Result<ExecuteDbSignSuccess, CliStructuredError$2>;
1127
1143
  declare function executeDbSign<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbSignOptions<TFamilyId, TTargetId>): Promise<ExecuteDbSignResult>;
1128
1144
  //#endregion
1129
1145
  export { executeDbVerify as $, EmitResult as A, PlanQuestion as B, DbUpdateOptions as C, EmitFailure as D, EmitContractConfig as E, ExecuteDbVerifyResult as F, RenderContractDtsResult as G, RenderContractDtsFailure as H, IntrospectOptions as I, StatementText as J, RenderContractDtsSuccess as K, MigrateResult as L, ExecuteDbSignOptions as M, ExecuteDbSignResult as N, EmitFailureCode as O, ExecuteDbVerifyOptions as P, executeDbSign as Q, OnControlProgress as R, DbUpdateFailureCode as S, DbUpdateSuccess as T, RenderContractDtsFailureCode as U, PlanQuestionVerb as V, RenderContractDtsOptions as W, TemporaryValueReport as X, StatementVerb as Y, VerifyOptions as Z, DbInitSuccess as _, CliStructuredError$2 as a, DbSignSpaceOutcome as b, ControlActionName as c, ControlProgressEvent as d, CreateControlClient as f, DbInitResult as g, DbInitOptions as h, AskedSubject as i, EmitSuccess as j, EmitOptions as k, ControlClient as l, DbInitFailureCode as m, AppliedStatementReport as n, ContractEmitOptions as o, DbInitFailure as p, SchemaVerifyOptions as q, AskedDataLoss as r, ContractEmitResult as s, AnswerPlanQuestions as t, ControlClientOptions as u, DbSignOptions as v, DbUpdateResult as w, DbUpdateFailure as x, DbSignSpaceFailure as y, PlanAnswer as z };
1130
- //# sourceMappingURL=db-sign-D90hPxFE-B-YLAvFQ.d.mts.map
1146
+ //# sourceMappingURL=db-sign-JgxFUHAx-BnA61Q5l.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db-sign-JgxFUHAx-BnA61Q5l.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/db-sign-JgxFUHAx.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;KAiBK;;;;;;UAMK;WACC,MAAM;WACN;;;;;;;;;;;;;UAaD,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,UAAU;WACV,YAAY,cAAc,2BAA2B,WAAW;WAChE,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;WACA;WACA;;WAEA,wBAAwB;WACxB,aAAa;;;;;;;;;;;;;;UAcd;WACC,eAAe,oBAAoB;;;;;;WAMnC;WACA;WACA;;;;;;;;WAQA,aAAa;;KAEnB,wBAAwB,OAAO,wBAAwB;;;;;;;;;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;;;;;EAO1C,WAAW,UAAU,oBAAoB;;;;;;;;EAQzC,aAAa,oBAAoB;;;;;;;;EAQjC,iBAAiB,oBAAoB;;;;;;;;EAQrC,0BAA0B;;;;;;;;;EAS1B,mBAAmB,qBAAqB,2BAA2B;;;;;;;;EAQnE,KAAK,SAAS,cAAc,QAAQ;;;;;;;;EAQpC,kBAAkB,SAAS,2BAA2B,QAAQ;;;;UAItD,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,gBAAgB,sBAAsB;;WAEtC,UAAU;WACV;WACA,UAAU;WACV,YAAY,cAAc,2BAA2B,WAAW;WAChE,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E,wBAAwB;WACxB,aAAa;;;UAGd;WACC;WACA;WACA,UAAU;WACV,QAAQ;;;;;KAKd,qBAAqB,iBAAiB;UACjC;;WAEC,iBAAiB;;KAEvB,sBAAsB,OAAO,sBAAsB;;;;iBAIvC,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ"}
@@ -34,7 +34,7 @@ import { asNamespaceId } from "@prisma/orm-framework/contract/types";
34
34
  import { isDeepStrictEqual } from "node:util";
35
35
  import { abortable } from "@prisma/orm-framework/utils/abortable";
36
36
  import { resolve as resolve$1 } from "node:path";
37
- //#region ../../../1-framework/3-tooling/cli/dist/ref-D0TsCUZG.mjs
37
+ //#region ../../../1-framework/3-tooling/cli/dist/ref-CPPMhLAs.mjs
38
38
  /**
39
39
  * Asserts that all framework components are compatible with the expected family and target.
40
40
  *
@@ -1484,6 +1484,16 @@ function failureReports(failure, resolutions) {
1484
1484
  })
1485
1485
  };
1486
1486
  }
1487
+ function failedPrecheckOf(failure, resolutions) {
1488
+ const check = failure.failedCheck;
1489
+ if (check === void 0 || check.phase !== "precheck" || failure.why !== void 0) return;
1490
+ const resolution = resolutions.find(({ spaceId }) => spaceId === failure.failingSpace);
1491
+ return {
1492
+ operationId: check.operationId,
1493
+ description: check.description,
1494
+ planStartsFromMarker: resolution !== void 0 && resolution.entry.plan.origin !== null
1495
+ };
1496
+ }
1487
1497
  /**
1488
1498
  * Runner-driving tail shared by every run caller — `db init`,
1489
1499
  * `db update`, and `migrate`. Consumes already-resolved per-space
@@ -1540,6 +1550,7 @@ async function runMigration(inputs) {
1540
1550
  runnerErrorCode: runnerResult.failure.code
1541
1551
  },
1542
1552
  ...failureReports(runnerResult.failure, orderedResolutions),
1553
+ ...ifDefined("failedPrecheck", failedPrecheckOf(runnerResult.failure, orderedResolutions)),
1543
1554
  cause: runnerResult.failure
1544
1555
  });
1545
1556
  }
@@ -1861,6 +1872,7 @@ async function executeRun(options) {
1861
1872
  ...ifDefined("warnings", plannerWarnings),
1862
1873
  ...ifDefined("failedTypeChange", applied.failure.failedTypeChange),
1863
1874
  ...ifDefined("rowsWithoutValue", applied.failure.rowsWithoutValue),
1875
+ ...ifDefined("failedPrecheck", applied.failure.failedPrecheck),
1864
1876
  ...ifDefined("databaseStorageHash", databaseStorageHash),
1865
1877
  ...ifDefined("cause", applied.failure.cause)
1866
1878
  });
@@ -2081,6 +2093,7 @@ function buildRunnerFailure(args) {
2081
2093
  ...ifDefined("warnings", args.warnings),
2082
2094
  ...ifDefined("failedTypeChange", args.failedTypeChange),
2083
2095
  ...ifDefined("rowsWithoutValue", args.rowsWithoutValue),
2096
+ ...ifDefined("failedPrecheck", args.failedPrecheck),
2084
2097
  ...ifDefined("databaseStorageHash", args.databaseStorageHash),
2085
2098
  ...ifDefined("cause", args.cause)
2086
2099
  }));
@@ -2797,6 +2810,7 @@ async function executeMigrate(options) {
2797
2810
  meta: applied.failure.meta,
2798
2811
  ...ifDefined("failedTypeChange", applied.failure.failedTypeChange),
2799
2812
  ...ifDefined("rowsWithoutValue", applied.failure.rowsWithoutValue),
2813
+ ...ifDefined("failedPrecheck", applied.failure.failedPrecheck),
2800
2814
  ...ifDefined("failedMigration", applied.failure.failedMigration === void 0 ? void 0 : failedMigrationOnDisk(applied.failure.failedMigration, migrationsDir)),
2801
2815
  ...ifDefined("cause", applied.failure.cause)
2802
2816
  });
@@ -6062,4 +6076,4 @@ async function executeRefListCommand(options) {
6062
6076
  //#endregion
6063
6077
  export { refuseMissingInvariantPath as $, executeRefDeleteCommand as A, loadContractRawSafely as B, executeDbSign as C, executeMigrationNewCommand as D, executeMigrateShowPlan as E, hasMigrationPath as F, mapContractAtError as G, loadContractSourceWithStack as H, isStatementVerb as I, preflightRefAdvancement as J, mapIntegrityViolations as K, listRefsByContractHash as L, executeRefSetCommand as M, findPackageByDirPath as N, executeMigrationPlanCommand as O, formatSourceDiagnostic as P, refuseMarkerOutsideGraph as Q, liveMarkerUse as R, executeDbInit as S, executeDbVerify as T, loadContractSpaceAggregateForCli as U, loadContractSource as V, looksLikePath as W, refuseContractSpaceIntegrity as X, readMigrationRefs as Y, refuseDeclaredExtensionTargetMismatch as Z, deriveStatusEdgeAnnotations as _, toDeclaredExtensionsFromRaw as _t, RECORDED_OR_EMPTY_CONTRACT_REF_FORMS as a, resolveContractRefToSnapshot as at, enumerateCheckSpaces as b, appliedHashesFromLedger as c, resolveStatements as ct, buildReadAggregate as d, runContractSpaceSeedPhase as dt, refusePackageCorruptionOnAggregate as et, buildRefAdvancementFields as f, runMigrationCheck as ft, createControlClient as g, statusForMigrationHash as gt, convertAndDelete as h, sourceWarningDiagnostic as ht, RECORDED_CONTRACT_REF_FORMS as i, resolveContractRef$1 as it, executeRefListCommand as j, executeRefAdvancement as k, buildContractSpaceAggregate as l, resolveToForPlan as lt, computeRefAdvancementName as m, snapshotVerifierFor as mt, DB_UPDATE_POLICY as n, requireDatabaseForLiveMarkerUse as nt, advanceRefSafely as o, resolveFromForPlan as ot, checkSingleTarget as p, runMigrationList as pt, migrationSpaceListEntriesFromAggregate as q, NO_REF_ADVANCEMENT as r, resolveAppTargetPath as rt, appContractStandInFromIdentity as s, resolveMigrationRef as st, ALL_CONTRACT_REF_FORMS as t, refuseUnknownInvariants as tt, buildMigrationSpaceGraphEntries as u, retryCommandFor as ut, disposeEmitQueue as v, validateLoadedContract as vt, executeDbUpdate as w, executeContractEmit as x, enrichContract as y, loadAggregateIntegrityViolations as z };
6064
6078
 
6065
- //# sourceMappingURL=ref-D0TsCUZG-jEQXQOEL.mjs.map
6079
+ //# sourceMappingURL=ref-CPPMhLAs-Bxf2BJcA.mjs.map