@prisma/orm-toolchain 8.0.0-rc.20-dev.5 → 8.0.0-rc.20-dev.7
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/{aggregate-T_HG6gq6.mjs → aggregate-CNSeEdzt.mjs} +2 -2
- package/dist/{aggregate-T_HG6gq6.mjs.map → aggregate-CNSeEdzt.mjs.map} +1 -1
- package/dist/{aggregate-BpcQdygS.d.mts → aggregate-L_KguJXL.d.mts} +2 -2
- package/dist/{aggregate-BpcQdygS.d.mts.map → aggregate-L_KguJXL.d.mts.map} +1 -1
- package/dist/{caught-errors-Bmbi1dBu-DKO5X2tN.mjs → caught-errors-Bmbi1dBu-DKj0QTCf.mjs} +2 -2
- package/dist/{caught-errors-Bmbi1dBu-DKO5X2tN.mjs.map → caught-errors-Bmbi1dBu-DKj0QTCf.mjs.map} +1 -1
- package/dist/cli.mjs +6 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +4 -4
- package/dist/cli__control-api.mjs +2 -2
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/cli__migration-cli.mjs +1 -1
- package/dist/{db-sign-D_XlrpfY-BnnlVa7_.d.mts → db-sign-DtBrncU3-CYlYP2Fd.d.mts} +5 -5
- package/dist/{db-sign-D_XlrpfY-BnnlVa7_.d.mts.map → db-sign-DtBrncU3-CYlYP2Fd.d.mts.map} +1 -1
- package/dist/migration-tools.d.mts +3 -3
- package/dist/migration-tools.mjs +3 -3
- package/dist/migration-tools__aggregate.d.mts +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/migration-tools__spaces.d.mts +2 -2
- package/dist/migration-tools__spaces.mjs +2 -2
- package/dist/{ref-lBShHvAG-BwIX69xi.mjs → ref-CGWRjVD8-BxOiLf_j.mjs} +33 -26
- package/dist/ref-CGWRjVD8-BxOiLf_j.mjs.map +1 -0
- package/dist/{spaces-c9xdiXW8.mjs → spaces-B0zxbzdl.mjs} +2 -2
- package/dist/{spaces-c9xdiXW8.mjs.map → spaces-B0zxbzdl.mjs.map} +1 -1
- package/dist/{spaces-BWULKO54.d.mts → spaces-VChSCSMQ.d.mts} +2 -2
- package/dist/{spaces-BWULKO54.d.mts.map → spaces-VChSCSMQ.d.mts.map} +1 -1
- package/dist/{verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs → verify-contract-spaces-B12R3P5U-CfBKlBjj.mjs} +3 -3
- package/dist/{verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs.map → verify-contract-spaces-B12R3P5U-CfBKlBjj.mjs.map} +1 -1
- package/dist/{verify-contract-spaces-C3PiFBk3-DfomYyOE.d.mts → verify-contract-spaces-DHD3C7sU-DA28bANE.d.mts} +6 -5
- package/dist/verify-contract-spaces-DHD3C7sU-DA28bANE.d.mts.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/ref-lBShHvAG-BwIX69xi.mjs.map +0 -1
- package/dist/verify-contract-spaces-C3PiFBk3-DfomYyOE.d.mts.map +0 -1
|
@@ -6,9 +6,9 @@ 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 { A as ExecuteDbSignResult, B as RenderContractDtsFailure, C as EmitContractConfig, D as EmitResult, E as EmitOptions, F as OnControlProgress, G as SchemaVerifyOptions, H as RenderContractDtsOptions, I as PlanAnswer, J as TemporaryValueReport, K as StatementText, L as PlanQuestion, M as ExecuteDbVerifyResult, N as IntrospectOptions, O as EmitSuccess, R as PlanQuestionVerb, S as DbUpdateSuccess, T as EmitFailureCode, U as RenderContractDtsResult, V as RenderContractDtsFailureCode, W as RenderContractDtsSuccess, X as executeDbSign, Y as VerifyOptions, Z as executeDbVerify, _ as DbSignOptions, a as CliInvocation, b as DbUpdateOptions, c as ContractEmitResult, d as ControlClientOptions, f as ControlProgressEvent, g as DbInitSuccess, h as DbInitResult, i as AskedSubject, j as ExecuteDbVerifyOptions, k as ExecuteDbSignOptions, l as ControlActionName, m as DbInitOptions, n as AppliedStatementReport, o as CliStructuredError$2, p as CreateControlClient, q as StatementVerb, r as AskedDataLoss, s as ContractEmitOptions, t as AnswerPlanQuestions, u as ControlClient, v as DbSignSpaceFailure, w as EmitFailure, x as DbUpdateResult, y as DbSignSpaceOutcome, z as PlannerWarningsListener } from "./db-sign-
|
|
9
|
+
import { A as ExecuteDbSignResult, B as RenderContractDtsFailure, C as EmitContractConfig, D as EmitResult, E as EmitOptions, F as OnControlProgress, G as SchemaVerifyOptions, H as RenderContractDtsOptions, I as PlanAnswer, J as TemporaryValueReport, K as StatementText, L as PlanQuestion, M as ExecuteDbVerifyResult, N as IntrospectOptions, O as EmitSuccess, R as PlanQuestionVerb, S as DbUpdateSuccess, T as EmitFailureCode, U as RenderContractDtsResult, V as RenderContractDtsFailureCode, W as RenderContractDtsSuccess, X as executeDbSign, Y as VerifyOptions, Z as executeDbVerify, _ as DbSignOptions, a as CliInvocation, b as DbUpdateOptions, c as ContractEmitResult, d as ControlClientOptions, f as ControlProgressEvent, g as DbInitSuccess, h as DbInitResult, i as AskedSubject, j as ExecuteDbVerifyOptions, k as ExecuteDbSignOptions, l as ControlActionName, m as DbInitOptions, n as AppliedStatementReport, o as CliStructuredError$2, p as CreateControlClient, q as StatementVerb, r as AskedDataLoss, s as ContractEmitOptions, t as AnswerPlanQuestions, u as ControlClient, v as DbSignSpaceFailure, w as EmitFailure, x as DbUpdateResult, y as DbSignSpaceOutcome, z as PlannerWarningsListener } from "./db-sign-DtBrncU3-CYlYP2Fd.mjs";
|
|
10
10
|
import { a as emit } from "./index-tAySVPvZ.mjs";
|
|
11
|
-
import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-
|
|
11
|
+
import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-L_KguJXL.mjs";
|
|
12
12
|
import "./metadata-BtscDay2.mjs";
|
|
13
13
|
import "./package-N9PPdFV_.mjs";
|
|
14
14
|
import { CliStructuredError } from "@prisma/orm-framework/errors/control";
|
|
@@ -304,8 +304,8 @@ declare function runContractSpaceSeedPhase(inputs: ContractSpaceSeedPhaseInputs)
|
|
|
304
304
|
* 2. The aggregate planner runs with `callerPolicy.ignoreGraphFor`
|
|
305
305
|
* locked to the app space — synth strategy for the app, graph-walk
|
|
306
306
|
* for every extension.
|
|
307
|
-
* 3. The runner's `execute` applies the per-space plans
|
|
308
|
-
*
|
|
307
|
+
* 3. The runner's `execute` applies the per-space plans; a failure
|
|
308
|
+
* says whether the database changed.
|
|
309
309
|
*
|
|
310
310
|
* `extensions` mirrors `Config.extensions` (descriptor list).
|
|
311
311
|
* The loader (sub-spec § Loader) is the sole descriptor-import boundary.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { D as errorFromCaught } from "./caught-errors-Bmbi1dBu-
|
|
2
|
-
import { $ as refuseMarkerOutsideGraph, A as executeRefDeleteCommand, B as loadContractRawSafely, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, J as migrationSpaceListEntriesFromAggregate, K as mapIntegrityViolations, L as listRefsByContractHash, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as refuseDeclaredExtensionTargetMismatch, S as executeDbInit, T as executeDbVerify, U as loadContractSpaceAggregateForCli, V as loadContractSource, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as deriveStatusEdgeAnnotations, _t as statusForMigrationHash, a as advanceRefSafely, at as resolveContractRef$1, b as enumerateCheckSpaces, c as buildContractSpaceAggregate, ct as resolveMigrationRef, d as buildRefAdvancementFields, et as refuseMissingInvariantPath, f as checkSingleTarget, ft as runContractSpaceSeedPhase, g as createControlClient, j as executeRefListCommand, k as executeRefAdvancement, l as buildMigrationSpaceGraphEntries, lt as resolveStatements, mt as runMigrationList, n as NO_REF_ADVANCEMENT, nt as refuseUnknownInvariants, o as appContractStandInFromIdentity, ot as resolveContractRefToSnapshot, p as computeRefAdvancementName, pt as runMigrationCheck, s as appliedHashesFromLedger, st as resolveFromForPlan, tt as refusePackageCorruptionOnAggregate, u as buildReadAggregate, ut as resolveToForPlan, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract, z as loadAggregateIntegrityViolations } from "./ref-
|
|
1
|
+
import { D as errorFromCaught } from "./caught-errors-Bmbi1dBu-DKj0QTCf.mjs";
|
|
2
|
+
import { $ as refuseMarkerOutsideGraph, A as executeRefDeleteCommand, B as loadContractRawSafely, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, J as migrationSpaceListEntriesFromAggregate, K as mapIntegrityViolations, L as listRefsByContractHash, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as refuseDeclaredExtensionTargetMismatch, S as executeDbInit, T as executeDbVerify, U as loadContractSpaceAggregateForCli, V as loadContractSource, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as deriveStatusEdgeAnnotations, _t as statusForMigrationHash, a as advanceRefSafely, at as resolveContractRef$1, b as enumerateCheckSpaces, c as buildContractSpaceAggregate, ct as resolveMigrationRef, d as buildRefAdvancementFields, et as refuseMissingInvariantPath, f as checkSingleTarget, ft as runContractSpaceSeedPhase, g as createControlClient, j as executeRefListCommand, k as executeRefAdvancement, l as buildMigrationSpaceGraphEntries, lt as resolveStatements, mt as runMigrationList, n as NO_REF_ADVANCEMENT, nt as refuseUnknownInvariants, o as appContractStandInFromIdentity, ot as resolveContractRefToSnapshot, p as computeRefAdvancementName, pt as runMigrationCheck, s as appliedHashesFromLedger, st as resolveFromForPlan, tt as refusePackageCorruptionOnAggregate, u as buildReadAggregate, ut as resolveToForPlan, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract, z as loadAggregateIntegrityViolations } from "./ref-CGWRjVD8-BxOiLf_j.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 ExecuteDbSignResult, D as EmitResult, M as ExecuteDbVerifyResult, P as MigrateResult, U as RenderContractDtsResult, h as DbInitResult, u as ControlClient, x as DbUpdateResult } from "./db-sign-
|
|
1
|
+
import { A as ExecuteDbSignResult, D as EmitResult, M as ExecuteDbVerifyResult, P as MigrateResult, U as RenderContractDtsResult, h as DbInitResult, u as ControlClient, x as DbUpdateResult } from "./db-sign-DtBrncU3-CYlYP2Fd.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as requireConfigSections, p as loadConfigForSections, s as findNearestConfigPathForFile, t as CONFIG_FILENAME, u as loadConfig } from "./exports-BlYTE3-J.mjs";
|
|
2
2
|
import { g as errorInvalidJson } from "./errors-DXha_4l--relAaiI4.mjs";
|
|
3
|
-
import { D as errorFromCaught, at as migrationsDirFor } from "./caught-errors-Bmbi1dBu-
|
|
3
|
+
import { D as errorFromCaught, at as migrationsDirFor } from "./caught-errors-Bmbi1dBu-DKj0QTCf.mjs";
|
|
4
4
|
import { r as buildMigrationArtifacts } from "./migration-CWyjX9vz.mjs";
|
|
5
5
|
import { errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag } from "@prisma/orm-framework/errors/control";
|
|
6
6
|
import { createControlStack } from "@prisma/orm-framework/components/control";
|
|
@@ -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-
|
|
16
|
+
//#region ../../../1-framework/3-tooling/cli/dist/db-sign-DtBrncU3.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';
|
|
@@ -956,9 +956,9 @@ interface ControlClient {
|
|
|
956
956
|
*/
|
|
957
957
|
readLedger(space?: string): Promise<readonly LedgerEntryRecord[]>;
|
|
958
958
|
/**
|
|
959
|
-
* Advances the database along the migration graph to the target contract.
|
|
960
|
-
*
|
|
961
|
-
* Resume-safe: re-running after failure picks up from the
|
|
959
|
+
* Advances the database along the migration graph to the target contract, with full execution checks.
|
|
960
|
+
* On a target whose DDL is transactional a failure rolls back every space; otherwise the operations that already ran stay applied.
|
|
961
|
+
* Resume-safe: re-running after failure picks up from the marker of each space.
|
|
962
962
|
*
|
|
963
963
|
* @param options.contract - The target contract to migrate to
|
|
964
964
|
* @param options.migrationsDir - Root migrations directory (`migrations/` under the project)
|
|
@@ -1062,4 +1062,4 @@ type ExecuteDbSignResult = Result<ExecuteDbSignSuccess, CliStructuredError$2>;
|
|
|
1062
1062
|
declare function executeDbSign<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbSignOptions<TFamilyId, TTargetId>): Promise<ExecuteDbSignResult>;
|
|
1063
1063
|
//#endregion
|
|
1064
1064
|
export { ExecuteDbSignResult as A, RenderContractDtsFailure as B, EmitContractConfig as C, EmitResult as D, EmitOptions as E, OnControlProgress as F, SchemaVerifyOptions as G, RenderContractDtsOptions as H, PlanAnswer as I, TemporaryValueReport as J, StatementText as K, PlanQuestion as L, ExecuteDbVerifyResult as M, IntrospectOptions as N, EmitSuccess as O, MigrateResult as P, PlanQuestionVerb as R, DbUpdateSuccess as S, EmitFailureCode as T, RenderContractDtsResult as U, RenderContractDtsFailureCode as V, RenderContractDtsSuccess as W, executeDbSign as X, VerifyOptions as Y, executeDbVerify as Z, DbSignOptions as _, CliInvocation as a, DbUpdateOptions as b, ContractEmitResult as c, ControlClientOptions as d, ControlProgressEvent as f, DbInitSuccess as g, DbInitResult as h, AskedSubject as i, ExecuteDbVerifyOptions as j, ExecuteDbSignOptions as k, ControlActionName as l, DbInitOptions as m, AppliedStatementReport as n, CliStructuredError$2 as o, CreateControlClient as p, StatementVerb as q, AskedDataLoss as r, ContractEmitOptions as s, AnswerPlanQuestions as t, ControlClient as u, DbSignSpaceFailure as v, EmitFailure as w, DbUpdateResult as x, DbSignSpaceOutcome as y, PlannerWarningsListener as z };
|
|
1065
|
-
//# sourceMappingURL=db-sign-
|
|
1065
|
+
//# sourceMappingURL=db-sign-DtBrncU3-CYlYP2Fd.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-sign-
|
|
1
|
+
{"version":3,"file":"db-sign-DtBrncU3-CYlYP2Fd.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/db-sign-DtBrncU3.d.mts"],"mappings":"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"}
|
|
@@ -6,10 +6,10 @@ import "./contract-snapshot-store-DrIwu5pn.mjs";
|
|
|
6
6
|
import { a as deleteRef, c as refsByContractHash, d as validateRefName, f as validateRefValue, i as Refs, l as resolveRef, n as RefEntry, o as readRef, p as writeRef, s as readRefs, t as HEAD_REF_NAME, u as resolveRefsByContractHash } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
|
|
7
7
|
import { n as MigrationGraph, t as MigrationEdge } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
8
8
|
import { _ as isReservedContractRef, a as MigrationRef, c as RefResolutionAmbiguous, d as RefResolutionInvalidFormat, f as RefResolutionNotFound, g as isLiveMarkerRef, h as findEdgeByDirName, i as LIVE_MARKER_REF, l as RefResolutionContext, m as WORKING_CONTRACT_REF, n as ContractRefProvenance, o as MigrationRefProvenance, p as RefResolutionWrongGrammar, r as EMPTY_CONTRACT_REF, s as RESERVED_CONTRACT_REFS, t as ContractRef, u as RefResolutionError, v as parseContractRef, y as parseMigrationRef } from "./ref-resolution-BPhR-kta.mjs";
|
|
9
|
-
import { a as VerifyContractSpacesResult, i as VerifyContractSpacesInputs, n as SpaceMarkerRecord, o as listContractSpaceDirectories, r as SpaceVerifierViolation, s as verifyContractSpaces, t as ContractSpaceHeadRecord } from "./verify-contract-spaces-
|
|
9
|
+
import { a as VerifyContractSpacesResult, i as VerifyContractSpacesInputs, n as SpaceMarkerRecord, o as listContractSpaceDirectories, r as SpaceVerifierViolation, s as verifyContractSpaces, t as ContractSpaceHeadRecord } from "./verify-contract-spaces-DHD3C7sU-DA28bANE.mjs";
|
|
10
10
|
import { a as materialiseExtensionMigrationPackageIfMissing, c as readMigrationsDir, d as writeMigrationPackage, i as formatMigrationDirName, l as writeMigrationMetadata, n as ReadMigrationsDirResult, o as materialiseMigrationPackage, r as copyFilesWithRename, s as readMigrationPackage, t as PackageLoadProblem, u as writeMigrationOps } from "./io-DZfMV51z-BKlH5Dhb.mjs";
|
|
11
11
|
import { a as findPathWithDecision, i as findPath, n as detectCycles, o as findPathWithInvariants, r as detectOrphans, s as reconstructGraph, t as PathDecision } from "./migration-graph-D8IuOkZb-pSI7-k4_.mjs";
|
|
12
|
-
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-
|
|
12
|
+
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-L_KguJXL.mjs";
|
|
13
13
|
import "./metadata-BtscDay2.mjs";
|
|
14
14
|
import { t as MigrationPackage } from "./package-N9PPdFV_.mjs";
|
|
15
15
|
import { a as buildMigrationArtifacts, i as MigrationMeta, n as MigrationArtifacts, o as isDirectEntrypoint, r as MigrationContractViews, t as Migration } from "./migration-Bjz05034.mjs";
|
|
@@ -21,5 +21,5 @@ import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } f
|
|
|
21
21
|
import { t as EMPTY_CONTRACT_HASH } from "./constants-Dkcn8Qu4.mjs";
|
|
22
22
|
import { t as ledgerOriginFromStored } from "./ledger-origin-BGRN77Oy.mjs";
|
|
23
23
|
import { a as shebangLineFor, i as hasMigrationTs, n as detectScaffoldRuntime, o as writeMigrationTs, r as formatMigrationTs, t as ScaffoldRuntime } from "./migration-ts-SGer0PXq.mjs";
|
|
24
|
-
import { C as spaceMigrationDirectory, S as readContractSpaceHeadRef, _ as contractSpaceFromJson, a as DescriptorSelfConsistencyInputs, b as isValidSpaceId, c as RESERVED_SPACE_SUBDIR_NAMES, d as SpacePlanInput, f as SpacePlanOutput, g as computeExtensionSpaceApplyPath, h as assertValidSpaceId, i as ContractSpaceHeadRef, l as SPACE_REFS_DIRNAME, m as assertDescriptorSelfConsistency, n as ComputeExtensionSpaceApplyPathInputs, o as DiskContractSpaceState, p as ValidSpaceId, r as ContractSpaceArtifactInputs, s as ExtensionSpaceApplyPathOutcome, t as APP_SPACE_ID, u as SpaceApplyInput, v as emitContractSpaceArtifacts, w as spaceRefsDirectory, x as planAllSpaces, y as gatherDiskContractSpaceState } from "./spaces-
|
|
24
|
+
import { C as spaceMigrationDirectory, S as readContractSpaceHeadRef, _ as contractSpaceFromJson, a as DescriptorSelfConsistencyInputs, b as isValidSpaceId, c as RESERVED_SPACE_SUBDIR_NAMES, d as SpacePlanInput, f as SpacePlanOutput, g as computeExtensionSpaceApplyPath, h as assertValidSpaceId, i as ContractSpaceHeadRef, l as SPACE_REFS_DIRNAME, m as assertDescriptorSelfConsistency, n as ComputeExtensionSpaceApplyPathInputs, o as DiskContractSpaceState, p as ValidSpaceId, r as ContractSpaceArtifactInputs, s as ExtensionSpaceApplyPathOutcome, t as APP_SPACE_ID, u as SpaceApplyInput, v as emitContractSpaceArtifacts, w as spaceRefsDirectory, x as planAllSpaces, y as gatherDiskContractSpaceState } from "./spaces-VChSCSMQ.mjs";
|
|
25
25
|
export { APP_SPACE_ID, type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, type AppSpacePlanningInputs, type CallerPolicy, type ComputeExtensionSpaceApplyPathInputs, type ContractAtOptions, type ContractAtResult, type ContractMarkerRecordLike, type ContractRef, type ContractRefProvenance, type ContractSnapshotInput, type ContractSpaceAggregate, type ContractSpaceArtifactInputs, type ContractSpaceHeadRecord, type ContractSpaceHeadRef, type DeclaredExtensionEntry, type DescriptorSelfConsistencyInputs, type DiskContractSpaceState, EMPTY_CONTRACT_HASH, EMPTY_CONTRACT_REF, type ExtensionSpaceApplyPathOutcome, HEAD_REF_NAME, type IntegrityComputationInput, type IntegrityQueryOptions, type IntegritySpaceState, type IntegrityViolation, LIVE_MARKER_REF, type LoadAggregateInput, type MarkerCheckResult, type MarkerCheckSection, Migration, type MigrationArtifacts, MigrationContractViews, type MigrationEdge, type MigrationGraph, type MigrationMeta, type MigrationMetadata$1 as MigrationMetadata, type MigrationOps, type MigrationPackage, type MigrationRef, type MigrationRefProvenance, MigrationToolsError, type NoInvariantPathExtensionSpace, type NoInvariantPathStructuralEdge, type OnDiskMigrationPackage, type PackageLoadProblem, type PathDecision, type PerSpacePlan, type PlannerError, type PlannerInput, type PlannerOutput, type PlannerSuccess, RESERVED_CONTRACT_REFS, RESERVED_SPACE_SUBDIR_NAMES, type ReadMigrationsDirResult, type RefEntry, type RefResolutionAmbiguous, type RefResolutionContext, type RefResolutionError, type RefResolutionInvalidFormat, type RefResolutionNotFound, type RefResolutionWrongGrammar, type Refs, type ResolveRecordedPathInputs, type ResolveRecordedPathOutcome, SPACE_REFS_DIRNAME, type ScaffoldRuntime, type SchemaCheckSection, type SnapshotCanonicalizationHooks, type SnapshotContentVerifier, type SpaceApplyInput, type SpaceMarkerRecord, type SpacePlanInput, type SpacePlanOutput, type SpaceVerifierViolation, type ValidSpaceId, type VerifierError, type VerifierInput, type VerifierOutput, type VerifierSuccess, type VerifyContractSpacesInputs, type VerifyContractSpacesResult, type VerifyResult, WORKING_CONTRACT_REF, allStorageElementsExternal, assertDescriptorSelfConsistency, assertHashIsGraphNode, assertValidSpaceId, buildFabricatedMigrationEdge, buildMigrationArtifacts, collectAggregateNamespaces, computeExtensionSpaceApplyPath, computeIntegrityViolations, computeMigrationHash, contractHashAtMarker, contractSnapshotDir, contractSpaceFromJson, copyFilesWithRename, createAggregateContractSpace, createContractSpaceAggregate, createSnapshotContentVerifier, deleteRef, deriveProvidedInvariants, detectCycles, detectOrphans, detectScaffoldRuntime, emitContractSpaceArtifacts, errorContractDeserializationFailed, errorContractSnapshotHashMismatch, errorContractSnapshotMissing, errorDescriptorHeadHashMismatch, errorInvalidJson, errorInvalidRefName, errorNoInvariantPath, errorUnknownInvariant, findEdgeByDirName, findPath, findPathWithDecision, findPathWithInvariants, formatMigrationDirName, formatMigrationTs, gatherDiskContractSpaceState, hasMigrationTs, isDirectEntrypoint, isGraphNode, isInSpaceHistory, isLiveMarkerRef, isReservedContractRef, isValidSpaceId, ledgerOriginFromStored, listContractSpaceDirectories, loadContractSpaceAggregate, loadProblemToViolation, materialiseExtensionMigrationPackageIfMissing, materialiseMigrationPackage, parseContractRef, parseMigrationRef, planAllSpaces, planMigration, readContractSnapshotJson, readContractSnapshotJsonTolerant, readContractSpaceHeadRef, readMigrationPackage, readMigrationsDir, readRef, readRefs, reconstructGraph, refsByContractHash, requireHeadRef, resolveRecordedPath, resolveRef, resolveRefsByContractHash, shebangLineFor, snapshotsImportPathFrom, spaceMigrationDirectory, spaceRefsDirectory, spacesInApplyOrder, validateInvariantId, validateRefName, validateRefValue, verifyContractSpaces, verifyMigration, verifyMigrationHash, writeContractSnapshot, writeMigrationMetadata, writeMigrationOps, writeMigrationPackage, writeMigrationTs, writeRef };
|
package/dist/migration-tools.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import { a as snapshotsImportPathFrom, i as readContractSnapshotJsonTolerant, n
|
|
|
5
5
|
import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-DrF9p5Gd-BF70vGl1.mjs";
|
|
6
6
|
import { a as materialiseMigrationPackage, c as writeMigrationMetadata, i as materialiseExtensionMigrationPackageIfMissing, l as writeMigrationOps, n as copyFilesWithRename, o as readMigrationPackage, r as formatMigrationDirName, s as readMigrationsDir, u as writeMigrationPackage } from "./io-BNxFm3eg-DYD82QeZ.mjs";
|
|
7
7
|
import { a as findPathWithInvariants, i as findPathWithDecision, n as detectOrphans, o as reconstructGraph, r as findPath, t as detectCycles } from "./migration-graph-BoiiZAaU-DLht12k7.mjs";
|
|
8
|
-
import { a as isValidSpaceId, c as spaceMigrationDirectory, i as assertValidSpaceId, l as spaceRefsDirectory, n as RESERVED_SPACE_SUBDIR_NAMES, o as listContractSpaceDirectories, r as SPACE_REFS_DIRNAME, s as readContractSpaceHeadRef, t as APP_SPACE_ID, u as verifyContractSpaces } from "./verify-contract-spaces-
|
|
9
|
-
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-
|
|
8
|
+
import { a as isValidSpaceId, c as spaceMigrationDirectory, i as assertValidSpaceId, l as spaceRefsDirectory, n as RESERVED_SPACE_SUBDIR_NAMES, o as listContractSpaceDirectories, r as SPACE_REFS_DIRNAME, s as readContractSpaceHeadRef, t as APP_SPACE_ID, u as verifyContractSpaces } from "./verify-contract-spaces-B12R3P5U-CfBKlBjj.mjs";
|
|
9
|
+
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-B0zxbzdl.mjs";
|
|
10
10
|
import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./graph-membership-DxpNgxfZ-BfqA-H7V.mjs";
|
|
11
11
|
import { c as resolveRefsByContractHash, d as writeRef, i as readRefs, l as validateRefName, n as deleteRef, o as refsByContractHash, r as readRef, s as resolveRef, t as HEAD_REF_NAME, u as validateRefValue } from "./refs-DM3q3IZC-BC6H6P0X.mjs";
|
|
12
|
-
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-
|
|
12
|
+
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-CNSeEdzt.mjs";
|
|
13
13
|
import { a as findEdgeByDirName, c as parseContractRef, i as WORKING_CONTRACT_REF, l as parseMigrationRef, n as LIVE_MARKER_REF, o as isLiveMarkerRef, r as RESERVED_CONTRACT_REFS, s as isReservedContractRef, t as EMPTY_CONTRACT_REF } from "./ref-resolution-Eo0QHp4f.mjs";
|
|
14
14
|
import { a as writeMigrationTs, i as shebangLineFor, n as formatMigrationTs, r as hasMigrationTs, t as detectScaffoldRuntime } from "./migration-ts-DDgjsR1O.mjs";
|
|
15
15
|
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-CWyjX9vz.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-
|
|
1
|
+
import { A as allStorageElementsExternal, B as requireHeadRef, C as ResolveRecordedPathInputs, D as VerifierInput, E as VerifierError, F as createAggregateContractSpace, H as spacesInApplyOrder, I as createContractSpaceAggregate, L as loadContractSpaceAggregate, M as collectAggregateNamespaces, N as computeIntegrityViolations, O as VerifierOutput, P as contractHashAtMarker, R as loadProblemToViolation, S as PlannerSuccess, T as SchemaCheckSection, U as verifyMigration, V as resolveRecordedPath, _ as MarkerCheckSection, a as CallerPolicy, b as PlannerInput, c as ContractMarkerRecordLike, d as IntegrityComputationInput, f as IntegrityQueryOptions, g as MarkerCheckResult, h as LoadAggregateInput, i as AppSpacePlanningInputs, j as buildFabricatedMigrationEdge, k as VerifierSuccess, l as ContractSpaceAggregate, m as IntegrityViolation, n as AggregateCurrentDBState, o as ContractAtOptions, p as IntegritySpaceState, r as AggregateMigrationEdgeRef, s as ContractAtResult, t as AggregateContractSpace, u as DeclaredExtensionEntry, v as PerSpacePlan, w as ResolveRecordedPathOutcome, x as PlannerOutput, y as PlannerError, z as planMigration } from "./aggregate-L_KguJXL.mjs";
|
|
2
2
|
export { type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, type AppSpacePlanningInputs, type CallerPolicy, type ContractAtOptions, type ContractAtResult, type ContractMarkerRecordLike, type ContractSpaceAggregate, type DeclaredExtensionEntry, type IntegrityComputationInput, type IntegrityQueryOptions, type IntegritySpaceState, type IntegrityViolation, type LoadAggregateInput, type MarkerCheckResult, type MarkerCheckSection, type PerSpacePlan, type PlannerError, type PlannerInput, type PlannerOutput, type PlannerSuccess, type ResolveRecordedPathInputs, type ResolveRecordedPathOutcome, type SchemaCheckSection, type VerifierError, type VerifierInput, type VerifierOutput, type VerifierSuccess, allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, contractHashAtMarker, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-
|
|
1
|
+
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, i as computeIntegrityViolations, l as loadProblemToViolation, m as verifyMigration, n as buildFabricatedMigrationEdge, o as createAggregateContractSpace, p as spacesInApplyOrder, r as collectAggregateNamespaces, s as createContractSpaceAggregate, t as allStorageElementsExternal, u as planMigration } from "./aggregate-CNSeEdzt.mjs";
|
|
2
2
|
export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, contractHashAtMarker, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as VerifyContractSpacesResult, i as VerifyContractSpacesInputs, n as SpaceMarkerRecord, o as listContractSpaceDirectories, r as SpaceVerifierViolation, s as verifyContractSpaces, t as ContractSpaceHeadRecord } from "./verify-contract-spaces-
|
|
2
|
-
import { C as spaceMigrationDirectory, S as readContractSpaceHeadRef, _ as contractSpaceFromJson, a as DescriptorSelfConsistencyInputs, b as isValidSpaceId, c as RESERVED_SPACE_SUBDIR_NAMES, d as SpacePlanInput, f as SpacePlanOutput, g as computeExtensionSpaceApplyPath, h as assertValidSpaceId, i as ContractSpaceHeadRef, l as SPACE_REFS_DIRNAME, m as assertDescriptorSelfConsistency, n as ComputeExtensionSpaceApplyPathInputs, o as DiskContractSpaceState, p as ValidSpaceId, r as ContractSpaceArtifactInputs, s as ExtensionSpaceApplyPathOutcome, t as APP_SPACE_ID, u as SpaceApplyInput, v as emitContractSpaceArtifacts, w as spaceRefsDirectory, x as planAllSpaces, y as gatherDiskContractSpaceState } from "./spaces-
|
|
1
|
+
import { a as VerifyContractSpacesResult, i as VerifyContractSpacesInputs, n as SpaceMarkerRecord, o as listContractSpaceDirectories, r as SpaceVerifierViolation, s as verifyContractSpaces, t as ContractSpaceHeadRecord } from "./verify-contract-spaces-DHD3C7sU-DA28bANE.mjs";
|
|
2
|
+
import { C as spaceMigrationDirectory, S as readContractSpaceHeadRef, _ as contractSpaceFromJson, a as DescriptorSelfConsistencyInputs, b as isValidSpaceId, c as RESERVED_SPACE_SUBDIR_NAMES, d as SpacePlanInput, f as SpacePlanOutput, g as computeExtensionSpaceApplyPath, h as assertValidSpaceId, i as ContractSpaceHeadRef, l as SPACE_REFS_DIRNAME, m as assertDescriptorSelfConsistency, n as ComputeExtensionSpaceApplyPathInputs, o as DiskContractSpaceState, p as ValidSpaceId, r as ContractSpaceArtifactInputs, s as ExtensionSpaceApplyPathOutcome, t as APP_SPACE_ID, u as SpaceApplyInput, v as emitContractSpaceArtifacts, w as spaceRefsDirectory, x as planAllSpaces, y as gatherDiskContractSpaceState } from "./spaces-VChSCSMQ.mjs";
|
|
3
3
|
export { APP_SPACE_ID, type ComputeExtensionSpaceApplyPathInputs, type ContractSpaceArtifactInputs, type ContractSpaceHeadRecord, type ContractSpaceHeadRef, type DescriptorSelfConsistencyInputs, type DiskContractSpaceState, type ExtensionSpaceApplyPathOutcome, RESERVED_SPACE_SUBDIR_NAMES, SPACE_REFS_DIRNAME, type SpaceApplyInput, type SpaceMarkerRecord, type SpacePlanInput, type SpacePlanOutput, type SpaceVerifierViolation, type ValidSpaceId, type VerifyContractSpacesInputs, type VerifyContractSpacesResult, assertDescriptorSelfConsistency, assertValidSpaceId, computeExtensionSpaceApplyPath, contractSpaceFromJson, emitContractSpaceArtifacts, gatherDiskContractSpaceState, isValidSpaceId, listContractSpaceDirectories, planAllSpaces, readContractSpaceHeadRef, spaceMigrationDirectory, spaceRefsDirectory, verifyContractSpaces };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as isValidSpaceId, c as spaceMigrationDirectory, i as assertValidSpaceId, l as spaceRefsDirectory, n as RESERVED_SPACE_SUBDIR_NAMES, o as listContractSpaceDirectories, r as SPACE_REFS_DIRNAME, s as readContractSpaceHeadRef, t as APP_SPACE_ID, u as verifyContractSpaces } from "./verify-contract-spaces-
|
|
2
|
-
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-
|
|
1
|
+
import { a as isValidSpaceId, c as spaceMigrationDirectory, i as assertValidSpaceId, l as spaceRefsDirectory, n as RESERVED_SPACE_SUBDIR_NAMES, o as listContractSpaceDirectories, r as SPACE_REFS_DIRNAME, s as readContractSpaceHeadRef, t as APP_SPACE_ID, u as verifyContractSpaces } from "./verify-contract-spaces-B12R3P5U-CfBKlBjj.mjs";
|
|
2
|
+
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-B0zxbzdl.mjs";
|
|
3
3
|
export { APP_SPACE_ID, RESERVED_SPACE_SUBDIR_NAMES, SPACE_REFS_DIRNAME, assertDescriptorSelfConsistency, assertValidSpaceId, computeExtensionSpaceApplyPath, contractSpaceFromJson, emitContractSpaceArtifacts, gatherDiskContractSpaceState, isValidSpaceId, listContractSpaceDirectories, planAllSpaces, readContractSpaceHeadRef, spaceMigrationDirectory, spaceRefsDirectory, verifyContractSpaces };
|
|
@@ -6,13 +6,13 @@ import { a as snapshotsImportPathFrom, n as createSnapshotContentVerifier, o as
|
|
|
6
6
|
import { t as deriveProvidedInvariants } from "./invariants-DrF9p5Gd-BF70vGl1.mjs";
|
|
7
7
|
import { i as materialiseExtensionMigrationPackageIfMissing, r as formatMigrationDirName, u as writeMigrationPackage } from "./io-BNxFm3eg-DYD82QeZ.mjs";
|
|
8
8
|
import { i as findPathWithDecision, r as findPath } from "./migration-graph-BoiiZAaU-DLht12k7.mjs";
|
|
9
|
-
import { a as isValidSpaceId, c as spaceMigrationDirectory, l as spaceRefsDirectory, o as listContractSpaceDirectories, s as readContractSpaceHeadRef, t as APP_SPACE_ID$1 } from "./verify-contract-spaces-
|
|
10
|
-
import { i as emitContractSpaceArtifacts, o as planAllSpaces } from "./spaces-
|
|
11
|
-
import { $ as errorTargetMigrationNotSupported, B as errorRefSetBundleNotFound, D as errorFromCaught, E as errorFileNotFound, G as errorSnapshotMissing, H as errorRefSetHashNotInGraph, I as errorPathUnreachable, J as errorStatementDidNotResolveLoss, K as errorSpaceNotFound, L as errorPlanForgotTheFlag, P as errorMigrationPlanningFailed, Q as errorStatementUnresolved, R as errorPlanOriginUnknown, S as errorContractValidationFailed, U as errorRuntime, V as errorRefSetEmptySentinel, X as errorStatementNeedsMigrationFile, Y as errorStatementInvalid, Z as errorStatementOriginUnknown, _ as errorAmbiguousMigrationRef, c as cliCommand, ct as readContractEnvelope, d as closeQuietly, dt as resolveContractPath, f as collectDeclaredInvariants, ft as resolveMigrationPaths, gt as statementFlag, h as editFileAction, j as errorMarkerMismatch, k as errorInvalidSpaceId, l as cliErrorFromStructured, mt as selfEmitCommand, n as CliStructuredError$1, nt as getTargetMigrations, ot as printedPath, pt as runCommandAction, q as errorStatementAnswersNoQuestion, r as STORE_ORIGIN_SNAPSHOT_STEPS, rt as mapRefResolutionError, s as chooseAction, st as printedPlanCommand, t as ActionableCliError, tt as errorUnexpected, ut as requireLiveDatabase, v as errorConfigValidation$1, vt as toStructuralEdge, x as errorContractConfigMissing, y as errorConsentUnused, z as errorPlanProducedNoOperations } from "./caught-errors-Bmbi1dBu-
|
|
9
|
+
import { a as isValidSpaceId, c as spaceMigrationDirectory, l as spaceRefsDirectory, o as listContractSpaceDirectories, s as readContractSpaceHeadRef, t as APP_SPACE_ID$1 } from "./verify-contract-spaces-B12R3P5U-CfBKlBjj.mjs";
|
|
10
|
+
import { i as emitContractSpaceArtifacts, o as planAllSpaces } from "./spaces-B0zxbzdl.mjs";
|
|
11
|
+
import { $ as errorTargetMigrationNotSupported, B as errorRefSetBundleNotFound, D as errorFromCaught, E as errorFileNotFound, G as errorSnapshotMissing, H as errorRefSetHashNotInGraph, I as errorPathUnreachable, J as errorStatementDidNotResolveLoss, K as errorSpaceNotFound, L as errorPlanForgotTheFlag, P as errorMigrationPlanningFailed, Q as errorStatementUnresolved, R as errorPlanOriginUnknown, S as errorContractValidationFailed, U as errorRuntime, V as errorRefSetEmptySentinel, X as errorStatementNeedsMigrationFile, Y as errorStatementInvalid, Z as errorStatementOriginUnknown, _ as errorAmbiguousMigrationRef, c as cliCommand, ct as readContractEnvelope, d as closeQuietly, dt as resolveContractPath, f as collectDeclaredInvariants, ft as resolveMigrationPaths, gt as statementFlag, h as editFileAction, j as errorMarkerMismatch, k as errorInvalidSpaceId, l as cliErrorFromStructured, mt as selfEmitCommand, n as CliStructuredError$1, nt as getTargetMigrations, ot as printedPath, pt as runCommandAction, q as errorStatementAnswersNoQuestion, r as STORE_ORIGIN_SNAPSHOT_STEPS, rt as mapRefResolutionError, s as chooseAction, st as printedPlanCommand, t as ActionableCliError, tt as errorUnexpected, ut as requireLiveDatabase, v as errorConfigValidation$1, vt as toStructuralEdge, x as errorContractConfigMissing, y as errorConsentUnused, z as errorPlanProducedNoOperations } from "./caught-errors-Bmbi1dBu-DKj0QTCf.mjs";
|
|
12
12
|
import { r as getEmittedArtifactPaths, t as emit } from "./exports-BCIlMjIW-DkUBVDzl.mjs";
|
|
13
13
|
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-DxpNgxfZ-BfqA-H7V.mjs";
|
|
14
14
|
import { d as writeRef, i as readRefs, l as validateRefName, n as deleteRef, o as refsByContractHash, t as HEAD_REF_NAME, u as validateRefValue } from "./refs-DM3q3IZC-BC6H6P0X.mjs";
|
|
15
|
-
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, m as verifyMigration, n as buildFabricatedMigrationEdge, p as spacesInApplyOrder, r as collectAggregateNamespaces, t as allStorageElementsExternal, u as planMigration } from "./aggregate-
|
|
15
|
+
import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, m as verifyMigration, n as buildFabricatedMigrationEdge, p as spacesInApplyOrder, r as collectAggregateNamespaces, t as allStorageElementsExternal, u as planMigration } from "./aggregate-CNSeEdzt.mjs";
|
|
16
16
|
import { c as internalImportRoot, o as importRootForDependencies, r as createImportSpecifierResolver, t as ImportRootError } from "./import-roots-BPn2s_fq.mjs";
|
|
17
17
|
import { c as parseContractRef, l as parseMigrationRef, o as isLiveMarkerRef, r as RESERVED_CONTRACT_REFS, s as isReservedContractRef, t as EMPTY_CONTRACT_REF } from "./ref-resolution-Eo0QHp4f.mjs";
|
|
18
18
|
import { a as writeMigrationTs } from "./migration-ts-DDgjsR1O.mjs";
|
|
@@ -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-
|
|
37
|
+
//#region ../../../1-framework/3-tooling/cli/dist/ref-CGWRjVD8.mjs
|
|
38
38
|
/**
|
|
39
39
|
* The meta of a contract that failed to load because the family refused it, such as the columns whose defaults it refused, for the command to report: the refusal's own meta, or the `refusedDefaults` a migration-tools error kept from it.
|
|
40
40
|
*/
|
|
@@ -370,14 +370,21 @@ function migrateAdvice(failure, facts, failedOnDisk, invocation) {
|
|
|
370
370
|
function adviceText(advice) {
|
|
371
371
|
return advice.map(({ label }, index) => index === 0 ? `${label}.` : `Or: ${label}.`).join(" ");
|
|
372
372
|
}
|
|
373
|
+
/** The runner's why, naming the contract space the apply stopped in when it is not the application's own. */
|
|
374
|
+
function whyNamingSpace(failure) {
|
|
375
|
+
const { failingSpace } = failure.meta;
|
|
376
|
+
if (failingSpace === void 0 || failingSpace === APP_SPACE_ID) return failure.why;
|
|
377
|
+
const stopped = `The apply stopped in contract space "${failingSpace}".`;
|
|
378
|
+
return failure.why === void 0 ? stopped : `${failure.why} ${stopped}`;
|
|
379
|
+
}
|
|
373
380
|
/**
|
|
374
|
-
* A runner failure as the CLI reports it: the runner's code, message, why and meta,
|
|
375
|
-
*
|
|
376
|
-
*
|
|
381
|
+
* A runner failure as the CLI reports it: the runner's code, message, why and meta, and the failure
|
|
382
|
+
* itself as `cause`, with the CLI's advice: each way out as a next action, and all of them as `fix`
|
|
383
|
+
* prose. When the apply stopped in a space other than the application's, the why names it.
|
|
377
384
|
*/
|
|
378
385
|
function runnerFailureError(failure, advice) {
|
|
379
386
|
return new ActionableCliError(failure.code, failure.message, {
|
|
380
|
-
...ifDefined("why", failure
|
|
387
|
+
...ifDefined("why", whyNamingSpace(failure)),
|
|
381
388
|
fix: adviceText(advice),
|
|
382
389
|
nextActions: advice,
|
|
383
390
|
meta: failure.meta,
|
|
@@ -2082,11 +2089,11 @@ function runnerFailureFacts(failure, resolutions) {
|
|
|
2082
2089
|
* plans (the planner-vs-replay distinction is owned by the caller) and
|
|
2083
2090
|
* dispatches them to the runner in canonical order.
|
|
2084
2091
|
*
|
|
2085
|
-
*
|
|
2086
|
-
*
|
|
2087
|
-
* space's
|
|
2088
|
-
*
|
|
2089
|
-
*
|
|
2092
|
+
* The runner writes each space's marker as the last step of applying that
|
|
2093
|
+
* space, so this primitive does not advance markers separately — by the time
|
|
2094
|
+
* `execute` returns ok, every space's marker has been advanced to its plan's
|
|
2095
|
+
* destination. A failure is returned as the runner reported it; its `why`
|
|
2096
|
+
* says whether the database changed.
|
|
2090
2097
|
*
|
|
2091
2098
|
* Span emission (`spanStart 'apply'` / `spanEnd 'apply'`) is owned here
|
|
2092
2099
|
* so callers don't have to duplicate it; the `action` field on each
|
|
@@ -2144,7 +2151,7 @@ async function runMigration(inputs) {
|
|
|
2144
2151
|
*
|
|
2145
2152
|
* `includeMarkers` is `true` for apply-mode (each space's marker is
|
|
2146
2153
|
* the `destination.storageHash` of its plan, which the runner
|
|
2147
|
-
* advances as the last step of each space
|
|
2154
|
+
* advances as the last step of applying each space) and `false`
|
|
2148
2155
|
* for plan-mode (no marker has been written yet).
|
|
2149
2156
|
*
|
|
2150
2157
|
* Exported alongside {@link runMigration} so plan-mode callers can
|
|
@@ -2227,9 +2234,9 @@ const SPAN_IDS$1 = {
|
|
|
2227
2234
|
* behaviour); every extension space walks its on-disk graph via
|
|
2228
2235
|
* `resolveRecordedPath`.
|
|
2229
2236
|
* 4. **Apply** (when `mode === 'apply'`): every per-space `MigrationPlan`
|
|
2230
|
-
* feeds into the runner's `execute
|
|
2231
|
-
*
|
|
2232
|
-
*
|
|
2237
|
+
* feeds into the runner's `execute`. On a target whose DDL is
|
|
2238
|
+
* transactional a failure rolls back every space's writes; otherwise
|
|
2239
|
+
* the operations that already ran stay applied.
|
|
2233
2240
|
*/
|
|
2234
2241
|
async function executeRun(options) {
|
|
2235
2242
|
const { driver, adapter, familyInstance, contract, mode, migrations, frameworkComponents, migrationsDir, extensions, targetId, policy, action, onProgress } = options;
|
|
@@ -2264,7 +2271,7 @@ async function executeRun(options) {
|
|
|
2264
2271
|
};
|
|
2265
2272
|
const statements = resolveRenames(statementTexts);
|
|
2266
2273
|
if (mode === "apply") {
|
|
2267
|
-
const orphanMarkerError = detectOrphanMarkers(aggregate, markerRows);
|
|
2274
|
+
const orphanMarkerError = detectOrphanMarkers(aggregate, markerRows, familyInstance.markerLocation);
|
|
2268
2275
|
if (orphanMarkerError !== null) throw orphanMarkerError;
|
|
2269
2276
|
}
|
|
2270
2277
|
onProgress?.({
|
|
@@ -2555,7 +2562,7 @@ function aggregatePlannerWarnings(orderedResolutions) {
|
|
|
2555
2562
|
return warnings.length > 0 ? warnings : void 0;
|
|
2556
2563
|
}
|
|
2557
2564
|
/**
|
|
2558
|
-
* Compare the live
|
|
2565
|
+
* Compare the live marker rows, kept in `markerLocation`, against the aggregate's
|
|
2559
2566
|
* declared contract spaces. Any marker row whose `space` is not a space of
|
|
2560
2567
|
* the aggregate is an "orphan" — typically a marker left behind by
|
|
2561
2568
|
* an extension that was removed from `extensions` without first
|
|
@@ -2569,15 +2576,15 @@ function aggregatePlannerWarnings(orderedResolutions) {
|
|
|
2569
2576
|
* tooling (integration tests, JSON consumers) keeps asserting on the
|
|
2570
2577
|
* same shape.
|
|
2571
2578
|
*/
|
|
2572
|
-
function detectOrphanMarkers(aggregate, markerRows) {
|
|
2579
|
+
function detectOrphanMarkers(aggregate, markerRows, markerLocation) {
|
|
2573
2580
|
const aggregateSpaceIds = /* @__PURE__ */ new Set([aggregate.app.spaceId, ...aggregate.extensions.map((m) => m.spaceId)]);
|
|
2574
2581
|
const orphans = [];
|
|
2575
2582
|
for (const [spaceId, row] of markerRows) if (row !== null && row !== void 0 && !aggregateSpaceIds.has(spaceId)) orphans.push(spaceId);
|
|
2576
2583
|
if (orphans.length === 0) return null;
|
|
2577
2584
|
orphans.sort((a, b) => a.localeCompare(b));
|
|
2578
2585
|
return new CliStructuredError$1("MIGRATION.CONTRACT_SPACE_VIOLATION", orphans.length === 1 ? `Orphan contract-space marker detected for "${orphans[0]}"` : `Orphan contract-space markers detected for ${orphans.length} spaces`, {
|
|
2579
|
-
why: `The database has \`
|
|
2580
|
-
fix:
|
|
2586
|
+
why: `The database has \`${markerLocation}\` rows for spaces (${orphans.map((s) => `"${s}"`).join(", ")}) that are not declared in the project's \`extensions\`. The aggregate pipeline refuses to advance markers it cannot account for.`,
|
|
2587
|
+
fix: `Either re-declare the missing extension(s) in \`extensions\` (so the aggregate owns them again), or remove the orphan marker row(s) from \`${markerLocation}\` once you have confirmed the corresponding tables can be safely retired.`,
|
|
2581
2588
|
docsUrl: "https://pris.ly/contract-spaces",
|
|
2582
2589
|
meta: { violations: orphans.map((spaceId) => ({
|
|
2583
2590
|
kind: "orphanMarker",
|
|
@@ -3294,8 +3301,8 @@ function migrateRunnerFailureError(failure, facts, failedMigration, invocation)
|
|
|
3294
3301
|
* fails loudly — "never planned" is a user-error condition for
|
|
3295
3302
|
* replay.
|
|
3296
3303
|
* 4. Hand off to {@link runMigration} (the runner-driving tail
|
|
3297
|
-
* shared with `db init` / `db update`).
|
|
3298
|
-
*
|
|
3304
|
+
* shared with `db init` / `db update`). The runner advances each
|
|
3305
|
+
* space's marker as the last step of applying it.
|
|
3299
3306
|
*
|
|
3300
3307
|
* Encodes the replay-only contract: the app contract space must have an
|
|
3301
3308
|
* authored migration graph on disk before this operation can advance it.
|
|
@@ -6693,4 +6700,4 @@ async function executeRefListCommand(options) {
|
|
|
6693
6700
|
//#endregion
|
|
6694
6701
|
export { refuseMarkerOutsideGraph 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, migrationSpaceListEntriesFromAggregate as J, mapIntegrityViolations as K, listRefsByContractHash as L, executeRefSetCommand as M, findPackageByDirPath as N, executeMigrationPlanCommand as O, formatSourceDiagnostic as P, refuseDeclaredExtensionTargetMismatch as Q, liveMarkerUse as R, executeDbInit as S, executeDbVerify as T, loadContractSpaceAggregateForCli as U, loadContractSource as V, looksLikePath as W, readMigrationRefs as X, preflightRefAdvancement as Y, refuseContractSpaceIntegrity as Z, deriveStatusEdgeAnnotations as _, statusForMigrationHash as _t, advanceRefSafely as a, resolveContractRef$1 as at, enumerateCheckSpaces as b, withWarningFindings as bt, buildContractSpaceAggregate as c, resolveMigrationRef as ct, buildRefAdvancementFields as d, retryCommandFor as dt, refuseMissingInvariantPath as et, checkSingleTarget as f, runContractSpaceSeedPhase as ft, createControlClient as g, sourceWarningDiagnostic as gt, convertAndDelete as h, snapshotVerifierFor as ht, RECORDED_OR_EMPTY_CONTRACT_REF_FORMS as i, resolveAppTargetPath as it, executeRefListCommand as j, executeRefAdvancement as k, buildMigrationSpaceGraphEntries as l, resolveStatements as lt, contractValidationMeta as m, runMigrationList as mt, NO_REF_ADVANCEMENT as n, refuseUnknownInvariants as nt, appContractStandInFromIdentity as o, resolveContractRefToSnapshot as ot, computeRefAdvancementName as p, runMigrationCheck as pt, matchConsents as q, RECORDED_CONTRACT_REF_FORMS as r, requireDatabaseForLiveMarkerUse as rt, appliedHashesFromLedger as s, resolveFromForPlan as st, ALL_CONTRACT_REF_FORMS as t, refusePackageCorruptionOnAggregate as tt, buildReadAggregate as u, resolveToForPlan as ut, disposeEmitQueue as v, toDeclaredExtensionsFromRaw as vt, executeDbUpdate as w, executeContractEmit as x, enrichContract as y, validateLoadedContract as yt, loadAggregateIntegrityViolations as z };
|
|
6695
6702
|
|
|
6696
|
-
//# sourceMappingURL=ref-
|
|
6703
|
+
//# sourceMappingURL=ref-CGWRjVD8-BxOiLf_j.mjs.map
|