@prisma/orm-toolchain 8.0.0-rc.14-dev.38 → 8.0.0-rc.14-dev.40
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-qXuJ6w_I.mjs → aggregate-C7IHVcsV.mjs} +7 -3
- package/dist/aggregate-C7IHVcsV.mjs.map +1 -0
- package/dist/{aggregate-5NMLDtcl.d.mts → aggregate-DLptsx8n.d.mts} +4 -2
- package/dist/aggregate-DLptsx8n.d.mts.map +1 -0
- package/dist/cli.mjs +170 -111
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +14 -21
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +2 -2
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/{db-sign-BxYV7wMQ-BB1hlVbH.d.mts → db-sign-BxYV7wMQ-CNy01Yj7.d.mts} +2 -2
- package/dist/{db-sign-BxYV7wMQ-BB1hlVbH.d.mts.map → db-sign-BxYV7wMQ-CNy01Yj7.d.mts.map} +1 -1
- package/dist/graph-membership-C_ZO26nT-B7C4CJsh.mjs +19 -0
- package/dist/graph-membership-C_ZO26nT-B7C4CJsh.mjs.map +1 -0
- package/dist/{migration-graph-De1gCcTL.d.mts → migration-graph-Dra4CcyN.d.mts} +7 -2
- package/dist/migration-graph-Dra4CcyN.d.mts.map +1 -0
- package/dist/migration-tools.d.mts +4 -4
- package/dist/migration-tools.mjs +4 -4
- package/dist/migration-tools__aggregate.d.mts +2 -2
- package/dist/migration-tools__aggregate.mjs +2 -2
- package/dist/migration-tools__migration-graph.d.mts +2 -2
- package/dist/migration-tools__migration-graph.mjs +2 -2
- package/dist/migration-tools__ref-resolution.d.mts +2 -2
- package/dist/migration-tools__ref-resolution.mjs +2 -2
- package/dist/{ref-Bcy3ShDD-S7NKefbN.mjs → ref-DQpde3VD-BW3Yc5ni.mjs} +145 -90
- package/dist/ref-DQpde3VD-BW3Yc5ni.mjs.map +1 -0
- package/dist/{ref-resolution-CaHQJXE0.d.mts → ref-resolution-BPhR-kta.d.mts} +20 -12
- package/dist/ref-resolution-BPhR-kta.d.mts.map +1 -0
- package/dist/{ref-resolution-CoHoeFT7.mjs → ref-resolution-d7rcmU6F.mjs} +22 -5
- package/dist/ref-resolution-d7rcmU6F.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/aggregate-5NMLDtcl.d.mts.map +0 -1
- package/dist/aggregate-qXuJ6w_I.mjs.map +0 -1
- package/dist/graph-membership-BQ43lP4A-i4Ov419-.mjs +0 -14
- package/dist/graph-membership-BQ43lP4A-i4Ov419-.mjs.map +0 -1
- package/dist/migration-graph-De1gCcTL.d.mts.map +0 -1
- package/dist/ref-Bcy3ShDD-S7NKefbN.mjs.map +0 -1
- package/dist/ref-resolution-CaHQJXE0.d.mts.map +0 -1
- package/dist/ref-resolution-CoHoeFT7.mjs.map +0 -1
|
@@ -5,10 +5,10 @@ import { n as SnapshotContentVerifier } from "./contract-snapshot-store-Bok5nQYi
|
|
|
5
5
|
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
|
-
import {
|
|
9
|
-
import { A as ExecuteDbVerifyOptions, B as SchemaVerifyOptions, C as EmitFailure, D as EmitSuccess, E as EmitResult, F as RenderContractDtsFailure, H as executeDbSign, I as RenderContractDtsFailureCode, L as RenderContractDtsOptions, M as IntrospectOptions, O as ExecuteDbSignOptions, P as OnControlProgress, R as RenderContractDtsResult, S as EmitContractConfig, T as EmitOptions, U as executeDbVerify, V as VerifyOptions, _ as DbUpdateFailure, a as ControlClient, b as DbUpdateResult, c as CreateControlClient, d as DbInitOptions, f as DbInitResult, g as DbSignSpaceOutcome, h as DbSignSpaceFailure, i as ControlActionName, j as ExecuteDbVerifyResult, k as ExecuteDbSignResult, l as DbInitFailure, m as DbSignOptions, n as ContractEmitOptions, o as ControlClientOptions, p as DbInitSuccess, r as ContractEmitResult, s as ControlProgressEvent, t as CliStructuredError$2, u as DbInitFailureCode, v as DbUpdateFailureCode, w as EmitFailureCode, x as DbUpdateSuccess, y as DbUpdateOptions, z as RenderContractDtsSuccess } from "./db-sign-BxYV7wMQ-
|
|
8
|
+
import { a as MigrationRef, t as ContractRef } from "./ref-resolution-BPhR-kta.mjs";
|
|
9
|
+
import { A as ExecuteDbVerifyOptions, B as SchemaVerifyOptions, C as EmitFailure, D as EmitSuccess, E as EmitResult, F as RenderContractDtsFailure, H as executeDbSign, I as RenderContractDtsFailureCode, L as RenderContractDtsOptions, M as IntrospectOptions, O as ExecuteDbSignOptions, P as OnControlProgress, R as RenderContractDtsResult, S as EmitContractConfig, T as EmitOptions, U as executeDbVerify, V as VerifyOptions, _ as DbUpdateFailure, a as ControlClient, b as DbUpdateResult, c as CreateControlClient, d as DbInitOptions, f as DbInitResult, g as DbSignSpaceOutcome, h as DbSignSpaceFailure, i as ControlActionName, j as ExecuteDbVerifyResult, k as ExecuteDbSignResult, l as DbInitFailure, m as DbSignOptions, n as ContractEmitOptions, o as ControlClientOptions, p as DbInitSuccess, r as ContractEmitResult, s as ControlProgressEvent, t as CliStructuredError$2, u as DbInitFailureCode, v as DbUpdateFailureCode, w as EmitFailureCode, x as DbUpdateSuccess, y as DbUpdateOptions, z as RenderContractDtsSuccess } from "./db-sign-BxYV7wMQ-CNy01Yj7.mjs";
|
|
10
10
|
import { a as emit } from "./index-C1kfLErt.mjs";
|
|
11
|
-
import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-
|
|
11
|
+
import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-DLptsx8n.mjs";
|
|
12
12
|
import "./metadata-BtscDay2.mjs";
|
|
13
13
|
import "./package-N9PPdFV_.mjs";
|
|
14
14
|
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, OperationPreview, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
@@ -82,25 +82,22 @@ declare function executeContractEmit(options: ContractEmitOptions, dependencies?
|
|
|
82
82
|
interface ResolveContractRefToSnapshotBaseOptions {
|
|
83
83
|
readonly config: PrismaNextConfig;
|
|
84
84
|
readonly migrationsDir: string;
|
|
85
|
-
/** User-supplied contract reference (hash, prefix, ref name, migration dir name, <dir
|
|
85
|
+
/** User-supplied contract reference (hash, prefix, ref name, migration dir name, or <dir>^). */
|
|
86
86
|
readonly refInput: string;
|
|
87
|
-
/**
|
|
88
|
-
readonly
|
|
87
|
+
/** How errors name the argument that carried `refInput`, for example `--to`. */
|
|
88
|
+
readonly argument: string;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* `fallbackToEmitted`
|
|
92
|
-
* true (db sign)
|
|
93
|
-
*
|
|
94
|
-
* false (db update --to): missing bundle = the errorUnexpected 'No migration bundle found for
|
|
95
|
-
* <flag> "<input>" (resolved hash: <hash>)' envelope, so `missingBundleFlag` (the flag label
|
|
96
|
-
* for that message) is required in this branch.
|
|
91
|
+
* `fallbackToEmitted` decides what happens when no migration bundle ends at the resolved hash:
|
|
92
|
+
* true (db sign) falls back to the emitted contract when its storage hash matches; false
|
|
93
|
+
* (db update --to) fails, because the argument must name a migration destination.
|
|
97
94
|
*/
|
|
98
95
|
type ResolveContractRefToSnapshotOptions = ResolveContractRefToSnapshotBaseOptions & ({
|
|
99
96
|
readonly fallbackToEmitted: true;
|
|
100
|
-
|
|
97
|
+
/** Absolute path of the emitted contract.json, the fallback source. */
|
|
98
|
+
readonly contractPathAbsolute: string;
|
|
101
99
|
} | {
|
|
102
100
|
readonly fallbackToEmitted: false;
|
|
103
|
-
readonly missingBundleFlag: '--to';
|
|
104
101
|
});
|
|
105
102
|
interface ResolveContractRefToSnapshotSuccess {
|
|
106
103
|
readonly hash: string;
|
|
@@ -490,10 +487,8 @@ interface MigrateShowPlanSuccess {
|
|
|
490
487
|
readonly contractHash: string;
|
|
491
488
|
readonly migrations: readonly MigrateShowMigration[];
|
|
492
489
|
readonly summary: string;
|
|
493
|
-
/**
|
|
494
|
-
readonly
|
|
495
|
-
/** True when the live DB marker was read — gates the ★ db marker in the tree. */
|
|
496
|
-
readonly usedLiveMarker: boolean;
|
|
490
|
+
/** Present when the preview read the database: the marker hash, or the empty contract, of each space whose plan uses the marker. */
|
|
491
|
+
readonly databaseMarkerHashBySpace?: ReadonlyMap<string, string>;
|
|
497
492
|
}
|
|
498
493
|
/**
|
|
499
494
|
* Computes the path through the SAME seam as `executeMigrate`:
|
|
@@ -861,8 +856,6 @@ interface MigrationEdgeAnnotation {
|
|
|
861
856
|
}
|
|
862
857
|
//#endregion
|
|
863
858
|
//#region src/control-api/operations/migration-status-overlay.d.ts
|
|
864
|
-
/** Origin hash for status path computation: the live/override marker, or the empty-contract sentinel. */
|
|
865
|
-
declare function originHashForStatus(markerHash: string | undefined): string;
|
|
866
859
|
interface DeriveStatusEdgeAnnotationsInput {
|
|
867
860
|
readonly graph: MigrationGraph;
|
|
868
861
|
readonly targetHash: string;
|
|
@@ -1033,5 +1026,5 @@ declare function readMigrationRefs(refsDir: string): Promise<Result<Refs, CliStr
|
|
|
1033
1026
|
//#region src/utils/emit-queue.d.ts
|
|
1034
1027
|
declare function disposeEmitQueue(outputJsonPath: string): void;
|
|
1035
1028
|
//#endregion
|
|
1036
|
-
export { type BuildAggregateInputs, type CheckSpace, type ContractEmitOptions, type ContractEmitResult, type ContractIR, type ContractSourceFailure, type ContractSpaceSeedPhaseInputs, type ContractSpaceSeedPhaseRecord, type ContractSpaceSeedPhaseResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type DbInitFailure, type DbInitFailureCode, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbSignOptions, type DbSignSpaceFailure, type DbSignSpaceOutcome, type DbUpdateFailure, type DbUpdateFailureCode, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type ExecuteDbInitOptions, type ExecuteDbSignOptions, type ExecuteDbSignResult, type ExecuteDbUpdateOptions, type ExecuteDbVerifyOptions, type ExecuteDbVerifyResult, type ExecuteMigrateShowPlanOptions, type FromResolution, type IntrospectOptions, type MigrateShowMigration, type MigrateShowPlanSuccess, type MigrationCheckOutcome, type MigrationPlanResult, NO_REF_ADVANCEMENT, type OnControlProgress, type RefAdvancementFields, type RenderContractDtsFailure, type RenderContractDtsFailureCode, type RenderContractDtsOptions, type RenderContractDtsResult, type RenderContractDtsSuccess, type ResolveContractRefToSnapshotOptions, type ResolveContractRefToSnapshotSuccess, type ResolvedContractRef, type RunMigrationCheckInputs, type RunMigrationListInputs, type SchemaVerifyOptions, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, 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,
|
|
1029
|
+
export { type BuildAggregateInputs, type CheckSpace, type ContractEmitOptions, type ContractEmitResult, type ContractIR, type ContractSourceFailure, type ContractSpaceSeedPhaseInputs, type ContractSpaceSeedPhaseRecord, type ContractSpaceSeedPhaseResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type DbInitFailure, type DbInitFailureCode, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbSignOptions, type DbSignSpaceFailure, type DbSignSpaceOutcome, type DbUpdateFailure, type DbUpdateFailureCode, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type ExecuteDbInitOptions, type ExecuteDbSignOptions, type ExecuteDbSignResult, type ExecuteDbUpdateOptions, type ExecuteDbVerifyOptions, type ExecuteDbVerifyResult, type ExecuteMigrateShowPlanOptions, type FromResolution, type IntrospectOptions, type MigrateShowMigration, type MigrateShowPlanSuccess, type MigrationCheckOutcome, type MigrationPlanResult, NO_REF_ADVANCEMENT, type OnControlProgress, type RefAdvancementFields, type RenderContractDtsFailure, type RenderContractDtsFailureCode, type RenderContractDtsOptions, type RenderContractDtsResult, type RenderContractDtsSuccess, type ResolveContractRefToSnapshotOptions, type ResolveContractRefToSnapshotSuccess, type ResolvedContractRef, type RunMigrationCheckInputs, type RunMigrationListInputs, type SchemaVerifyOptions, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, 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, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
1037
1030
|
//# sourceMappingURL=cli__control-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;iBAQzG,gBAAgB,gBAAgB,MAAM,4BAA4B;WACxE;IACP;;;iBAGa,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAsBP,oBAAoB,SAAS,qBAAqB,eAAe,2BAA2B,QAAQ;;;UAG3G;WACC,QAAQ;WACR;;WAEA;;WAEA
|
|
1
|
+
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;iBAQzG,gBAAgB,gBAAgB,MAAM,4BAA4B;WACxE;IACP;;;iBAGa,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAsBP,oBA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B,SAAS,sBAAsB,QAAQ,OAAO,cAAc;iBACtH,wBAAwB,cAAc,SAAS,sBAAsB,QAAQ,OAAO,iBAAiB;iBACrG,sBAAsB,SAAS,sBAAsB,QAAQ,OAAO,eAAe;;;;UAI1F;WACC;WACA;;UAED;WACC;aACE;aACA;;WAEF;aACE;aACA;;;cAGC,oBAAoB;iBACjB,0BAA0B;WAChC;WACA;;;;;;;;;;iBAUM,wBAAwB;WAC9B;WACA,cAAc;WACd;WACA;WACA,QAAQ,KAAK;IACpB,QAAQ,OAAO,YAAY;iBACd,sBAAsB,iBAAiB,uBAAuB,cAAc,cAAc,YAAY,aAAa;EAClI;EACA;;;;;;;iBAOe,0BAA0B;WAChC;WACA;WACA;WACA,YAAY;WACZ;WACA;IACP,QAAQ,OAAO,sBAAsB;;;;;iBAKxB,iBAAiB;WACvB;WACA;WACA;WACA;WACA,YAAY;IACnB,QAAQ;WACD;WACA;GACR;;;UAGO;WACC,OAAO;WACP,MAAM;WACN;;iBAEM,mBAAmB,eAAe,SAAS,uBAAuB,OAAO,aAAa;iBACtF,oBAAoB,eAAe;WACzC,OAAO;WACP,MAAM;IACb,OAAO,cAAc;;;;iBAIR,kBAAkB,kBAAkB,QAAQ,OAAO,MAAM;;;iBAGzD,iBAAiB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { v as errorFromCaught } from "./caught-errors-DUIDd-Vm-RNMiEz4x.mjs";
|
|
2
|
-
import { $ as
|
|
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,
|
|
2
|
+
import { $ as refuseUnknownInvariants, A as executeRefListCommand, C as executeDbUpdate, D as executeMigrationPlanCommand, E as executeMigrationNewCommand, F as listRefsByContractHash, G as migrationSpaceListEntriesFromAggregate, J as refuseContractSpaceIntegrity, K as preflightRefAdvancement, L as loadAggregateIntegrityViolations, O as executeRefAdvancement, P as hasMigrationPath, Q as refusePackageCorruptionOnAggregate, R as loadContractRawSafely, S as executeDbSign, T as executeMigrateShowPlan, U as mapContractAtError, V as loadContractSpaceAggregateForCli, W as mapIntegrityViolations, X as refuseMarkerOutsideGraph, Y as refuseDeclaredExtensionTargetMismatch, Z as refuseMissingInvariantPath, _ as disposeEmitQueue, at as resolveMigrationRef, b as executeContractEmit, c as appliedHashesFromLedger, ct as runContractSpaceSeedPhase, d as buildReadAggregate, f as buildRefAdvancementFields, g as deriveStatusEdgeAnnotations, h as createControlClient, it as resolveFromForPlan, j as executeRefSetCommand, k as executeRefDeleteCommand, l as buildContractSpaceAggregate, lt as runMigrationCheck, m as computeRefAdvancementName, nt as resolveContractRef$1, o as advanceRefSafely, ot as resolveToForPlan, p as checkSingleTarget, pt as statusForMigrationHash, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, s as appContractStandInFromIdentity, u as buildMigrationSpaceGraphEntries, ut as runMigrationList, v as enrichContract, w as executeDbVerify, x as executeDbInit, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-DQpde3VD-BW3Yc5ni.mjs";
|
|
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, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EmitResult, N as MigrateResult, R as RenderContractDtsResult, a as ControlClient, b as DbUpdateResult, f as DbInitResult, j as ExecuteDbVerifyResult, k as ExecuteDbSignResult } from "./db-sign-BxYV7wMQ-
|
|
1
|
+
import { E as EmitResult, N as MigrateResult, R as RenderContractDtsResult, a as ControlClient, b as DbUpdateResult, f as DbInitResult, j as ExecuteDbVerifyResult, k as ExecuteDbSignResult } from "./db-sign-BxYV7wMQ-CNy01Yj7.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 { n as SnapshotContentVerifier } from "./contract-snapshot-store-Bok5nQYi-D3g_P7im.mjs";
|
|
2
2
|
import "./contract-snapshot-store-DrIwu5pn.mjs";
|
|
3
|
-
import "./ref-resolution-
|
|
3
|
+
import "./ref-resolution-BPhR-kta.mjs";
|
|
4
4
|
import { CliStructuredError as CliStructuredError$2 } from "@prisma/orm-framework/errors/control";
|
|
5
5
|
import { ControlAdapterDescriptor, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyDescriptor, ControlFamilyInstance, ControlTargetDescriptor, CoreSchemaView, MarkerHashes, MigrationPlanOperation, MigrationPlannerConflict, OperationPreview, SpaceSignature, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
6
6
|
import "@prisma/orm-framework/errors/execution";
|
|
@@ -1025,4 +1025,4 @@ type ExecuteDbSignResult = Result<ExecuteDbSignSuccess, CliStructuredError$2>;
|
|
|
1025
1025
|
declare function executeDbSign<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbSignOptions<TFamilyId, TTargetId>): Promise<ExecuteDbSignResult>;
|
|
1026
1026
|
//#endregion
|
|
1027
1027
|
export { ExecuteDbVerifyOptions as A, SchemaVerifyOptions as B, EmitFailure as C, EmitSuccess as D, EmitResult as E, RenderContractDtsFailure as F, executeDbSign as H, RenderContractDtsFailureCode as I, RenderContractDtsOptions as L, IntrospectOptions as M, MigrateResult as N, ExecuteDbSignOptions as O, OnControlProgress as P, RenderContractDtsResult as R, EmitContractConfig as S, EmitOptions as T, executeDbVerify as U, VerifyOptions as V, DbUpdateFailure as _, ControlClient as a, DbUpdateResult as b, CreateControlClient as c, DbInitOptions as d, DbInitResult as f, DbSignSpaceOutcome as g, DbSignSpaceFailure as h, ControlActionName as i, ExecuteDbVerifyResult as j, ExecuteDbSignResult as k, DbInitFailure as l, DbSignOptions as m, ContractEmitOptions as n, ControlClientOptions as o, DbInitSuccess as p, ContractEmitResult as r, ControlProgressEvent as s, CliStructuredError$2 as t, DbInitFailureCode as u, DbUpdateFailureCode as v, EmitFailureCode as w, DbUpdateSuccess as x, DbUpdateOptions as y, RenderContractDtsSuccess as z };
|
|
1028
|
-
//# sourceMappingURL=db-sign-BxYV7wMQ-
|
|
1028
|
+
//# sourceMappingURL=db-sign-BxYV7wMQ-CNy01Yj7.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-sign-BxYV7wMQ-
|
|
1
|
+
{"version":3,"file":"db-sign-BxYV7wMQ-CNy01Yj7.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/db-sign-BxYV7wMQ.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;UAyBU,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;;;;;;;;;;;;;;;;;iBAiB3C,gBAAgB,0BAA0B,0BAA0B,SAAS,uBAAuB,WAAW,aAAa,QAAQ;;;;;;;UAO3I;;WAEC;;;;;;WAMA,yBAAyB;;UAE1B;;WAEC;;KAEN;UACK;WACC,MAAM;WACN;WACA;;WAEA;;KAEN,0BAA0B,OAAO,0BAA0B;;;;;;;;;;;;;;UActD;WACC,QAAQ;WACR,QAAQ;WACR,SAAS;;WAET,SAAS;WACT,aAAa,cAAc;;;;;;WAM3B;;;;;;KAMN,uBAAuB,SAAS,yBAAyB;;;;KAIzD;;;;;;;;;;;;;;KAcA;WACM,QAAQ;WACR;WACA;WACA;WACA;;WAEA,QAAQ;WACR;WACA;WACA;;;;;;;KAON,qBAAqB,OAAO;;;;UAIvB;;WAEC;;;;;;WAMA;;WAEA,aAAa;;;;;UAKd;;WAE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C,WAAW,iBAAiB,iBAAiB;;;;;;;;;;;;;;EAc7C,QAAQ,SAAS,iBAAiB,QAAQ;;;;;;;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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { p as errorHashNotInGraph } from "./errors-DD6iLGXk-6I9PqjpZ.mjs";
|
|
2
|
+
//#region ../../../1-framework/3-tooling/migration/dist/graph-membership-C_ZO26nT.mjs
|
|
3
|
+
function isGraphNode(hash, graph) {
|
|
4
|
+
if (hash === "empty") return true;
|
|
5
|
+
return graph.nodes.has(hash);
|
|
6
|
+
}
|
|
7
|
+
/** True when a marker hash is in a space's history: a graph node, or the head of a space that has no migrations. */
|
|
8
|
+
function isInSpaceHistory(hash, space) {
|
|
9
|
+
if (isGraphNode(hash, space.graph)) return true;
|
|
10
|
+
return space.graph.nodes.size === 0 && hash === space.headHash;
|
|
11
|
+
}
|
|
12
|
+
function assertHashIsGraphNode(hash, graph) {
|
|
13
|
+
if (isGraphNode(hash, graph)) return;
|
|
14
|
+
throw errorHashNotInGraph(hash, graph);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { isGraphNode as n, isInSpaceHistory as r, assertHashIsGraphNode as t };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=graph-membership-C_ZO26nT-B7C4CJsh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-membership-C_ZO26nT-B7C4CJsh.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/graph-membership-C_ZO26nT.mjs"],"sourcesContent":["import { p as errorHashNotInGraph } from \"./errors-DD6iLGXk.mjs\";\nimport \"./constants-CM-w38DQ.mjs\";\n//#region src/graph-membership.ts\nfunction isGraphNode(hash, graph) {\n\tif (hash === \"empty\") return true;\n\treturn graph.nodes.has(hash);\n}\n/** True when a marker hash is in a space's history: a graph node, or the head of a space that has no migrations. */\nfunction isInSpaceHistory(hash, space) {\n\tif (isGraphNode(hash, space.graph)) return true;\n\treturn space.graph.nodes.size === 0 && hash === space.headHash;\n}\nfunction assertHashIsGraphNode(hash, graph) {\n\tif (isGraphNode(hash, graph)) return;\n\tthrow errorHashNotInGraph(hash, graph);\n}\n//#endregion\nexport { isGraphNode as n, isInSpaceHistory as r, assertHashIsGraphNode as t };\n\n//# sourceMappingURL=graph-membership-C_ZO26nT.mjs.map"],"mappings":";;AAGA,SAAS,YAAY,MAAM,OAAO;CACjC,IAAI,SAAS,SAAS,OAAO;CAC7B,OAAO,MAAM,MAAM,IAAI,IAAI;AAC5B;;AAEA,SAAS,iBAAiB,MAAM,OAAO;CACtC,IAAI,YAAY,MAAM,MAAM,KAAK,GAAG,OAAO;CAC3C,OAAO,MAAM,MAAM,MAAM,SAAS,KAAK,SAAS,MAAM;AACvD;AACA,SAAS,sBAAsB,MAAM,OAAO;CAC3C,IAAI,YAAY,MAAM,KAAK,GAAG;CAC9B,MAAM,oBAAoB,MAAM,KAAK;AACtC"}
|
|
@@ -3,7 +3,12 @@ import "./migration-graph-D8IuOkZb-pSI7-k4_.mjs";
|
|
|
3
3
|
//#region ../../../1-framework/3-tooling/migration/dist/exports/migration-graph.d.mts
|
|
4
4
|
//#region src/graph-membership.d.ts
|
|
5
5
|
declare function isGraphNode(hash: string, graph: MigrationGraph): boolean;
|
|
6
|
+
/** True when a marker hash is in a space's history: a graph node, or the head of a space that has no migrations. */
|
|
7
|
+
declare function isInSpaceHistory(hash: string, space: {
|
|
8
|
+
readonly graph: MigrationGraph;
|
|
9
|
+
readonly headHash: string | undefined;
|
|
10
|
+
}): boolean;
|
|
6
11
|
declare function assertHashIsGraphNode(hash: string, graph: MigrationGraph): asserts hash is string;
|
|
7
12
|
//#endregion
|
|
8
|
-
export { isGraphNode as n, assertHashIsGraphNode as t };
|
|
9
|
-
//# sourceMappingURL=migration-graph-
|
|
13
|
+
export { isGraphNode as n, isInSpaceHistory as r, assertHashIsGraphNode as t };
|
|
14
|
+
//# sourceMappingURL=migration-graph-Dra4CcyN.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-graph-Dra4CcyN.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/exports/migration-graph.d.mts"],"mappings":";;;;iBAGiB,YAAY,cAAc,OAAO;;iBAEjC,iBAAiB,cAAc;WACrC,OAAO;WACP;;iBAEM,sBAAsB,cAAc,OAAO,yBAAyB"}
|
|
@@ -5,11 +5,11 @@ import { a as readContractSnapshotJson, c as writeContractSnapshot, i as createS
|
|
|
5
5
|
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
|
-
import { a as
|
|
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
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-C3PiFBk3-DfomYyOE.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 buildFabricatedMigrationEdge, B as
|
|
12
|
+
import { A as buildFabricatedMigrationEdge, B as resolveRecordedPath, C as ResolveRecordedPathOutcome, D as VerifierOutput, E as VerifierInput, F as createContractSpaceAggregate, H as verifyMigration, I as loadContractSpaceAggregate, L as loadProblemToViolation, M as computeIntegrityViolations, N as contractHashAtMarker, O as VerifierSuccess, P as createAggregateContractSpace, R as planMigration, S as ResolveRecordedPathInputs, T as VerifierError, V as spacesInApplyOrder, _ as PerSpacePlan, a as ContractAtOptions, b as PlannerOutput, c as ContractSpaceAggregate, d as IntegrityQueryOptions, f as IntegritySpaceState, g as MarkerCheckSection, h as MarkerCheckResult, i as CallerPolicy, j as collectAggregateNamespaces, k as allStorageElementsExternal, l as DeclaredExtensionEntry, m as LoadAggregateInput, n as AggregateCurrentDBState, o as ContractAtResult, p as IntegrityViolation, r as AggregateMigrationEdgeRef, s as ContractMarkerRecordLike, t as AggregateContractSpace, u as IntegrityComputationInput, v as PlannerError, w as SchemaCheckSection, x as PlannerSuccess, y as PlannerInput, z as requireHeadRef } from "./aggregate-DLptsx8n.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-B2ljMJim.mjs";
|
|
@@ -17,9 +17,9 @@ import { a as errorContractSnapshotMissing, c as errorInvalidRefName, i as error
|
|
|
17
17
|
import "./io-D8Epu7iY.mjs";
|
|
18
18
|
import "./hash-CwWGlFWV.mjs";
|
|
19
19
|
import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-B5wLrgQS.mjs";
|
|
20
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./migration-graph-
|
|
20
|
+
import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./migration-graph-Dra4CcyN.mjs";
|
|
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 writeMigrationTs, i as shebangLineFor, n as detectScaffoldRuntime, r as hasMigrationTs, t as ScaffoldRuntime } from "./migration-ts-CNaAtK8C.mjs";
|
|
24
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-BWULKO54.mjs";
|
|
25
|
-
export { APP_SPACE_ID, type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, 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, type ExtensionSpaceApplyPathOutcome, HEAD_REF_NAME, type IntegrityComputationInput, type IntegrityQueryOptions, type IntegritySpaceState, type IntegrityViolation, 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 NoInvariantPathStructuralEdge, type OnDiskMigrationPackage, type PackageLoadProblem, type PathDecision, type PerSpacePlan, type PlannerError, type PlannerInput, type PlannerOutput, type PlannerSuccess, 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, allStorageElementsExternal, assertDescriptorSelfConsistency, assertHashIsGraphNode, assertValidSpaceId, buildFabricatedMigrationEdge, buildMigrationArtifacts, collectAggregateNamespaces, computeExtensionSpaceApplyPath, computeIntegrityViolations, computeMigrationHash, 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, gatherDiskContractSpaceState, hasMigrationTs, isDirectEntrypoint, isGraphNode, 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 };
|
|
25
|
+
export { APP_SPACE_ID, type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, 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 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, 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
|
@@ -7,11 +7,11 @@ import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.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
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-CYjc343k-FXABEJZE.mjs";
|
|
9
9
|
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-CzLQQYa9.mjs";
|
|
10
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-
|
|
10
|
+
import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./graph-membership-C_ZO26nT-B7C4CJsh.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-qwvw4_dV-X8sR92eT.mjs";
|
|
12
|
-
import { a as
|
|
13
|
-
import {
|
|
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-C7IHVcsV.mjs";
|
|
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-d7rcmU6F.mjs";
|
|
14
14
|
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-BQuIba9e.mjs";
|
|
15
15
|
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-DaFjTC8t.mjs";
|
|
16
16
|
import { t as ledgerOriginFromStored } from "./ledger-origin-D7PN4Fon.mjs";
|
|
17
|
-
export { APP_SPACE_ID, EMPTY_CONTRACT_HASH, HEAD_REF_NAME, Migration, MigrationContractViews, MigrationToolsError, RESERVED_SPACE_SUBDIR_NAMES, SPACE_REFS_DIRNAME, allStorageElementsExternal, assertDescriptorSelfConsistency, assertHashIsGraphNode, assertValidSpaceId, buildFabricatedMigrationEdge, buildMigrationArtifacts, collectAggregateNamespaces, computeExtensionSpaceApplyPath, computeIntegrityViolations, computeMigrationHash, 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, gatherDiskContractSpaceState, hasMigrationTs, isDirectEntrypoint, isGraphNode, 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 };
|
|
17
|
+
export { APP_SPACE_ID, EMPTY_CONTRACT_HASH, EMPTY_CONTRACT_REF, HEAD_REF_NAME, LIVE_MARKER_REF, Migration, MigrationContractViews, MigrationToolsError, RESERVED_CONTRACT_REFS, RESERVED_SPACE_SUBDIR_NAMES, SPACE_REFS_DIRNAME, 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, 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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as buildFabricatedMigrationEdge, B as
|
|
2
|
-
export { type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, 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, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|
|
1
|
+
import { A as buildFabricatedMigrationEdge, B as resolveRecordedPath, C as ResolveRecordedPathOutcome, D as VerifierOutput, E as VerifierInput, F as createContractSpaceAggregate, H as verifyMigration, I as loadContractSpaceAggregate, L as loadProblemToViolation, M as computeIntegrityViolations, N as contractHashAtMarker, O as VerifierSuccess, P as createAggregateContractSpace, R as planMigration, S as ResolveRecordedPathInputs, T as VerifierError, V as spacesInApplyOrder, _ as PerSpacePlan, a as ContractAtOptions, b as PlannerOutput, c as ContractSpaceAggregate, d as IntegrityQueryOptions, f as IntegritySpaceState, g as MarkerCheckSection, h as MarkerCheckResult, i as CallerPolicy, j as collectAggregateNamespaces, k as allStorageElementsExternal, l as DeclaredExtensionEntry, m as LoadAggregateInput, n as AggregateCurrentDBState, o as ContractAtResult, p as IntegrityViolation, r as AggregateMigrationEdgeRef, s as ContractMarkerRecordLike, t as AggregateContractSpace, u as IntegrityComputationInput, v as PlannerError, w as SchemaCheckSection, x as PlannerSuccess, y as PlannerInput, z as requireHeadRef } from "./aggregate-DLptsx8n.mjs";
|
|
2
|
+
export { type AggregateContractSpace, type AggregateCurrentDBState, type AggregateMigrationEdgeRef, 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
|
|
2
|
-
export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|
|
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-C7IHVcsV.mjs";
|
|
2
|
+
export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, contractHashAtMarker, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, verifyMigration };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
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";
|
|
2
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./migration-graph-
|
|
3
|
-
export { type PathDecision, assertHashIsGraphNode, detectCycles, detectOrphans, findPath, findPathWithDecision, findPathWithInvariants, isGraphNode, reconstructGraph };
|
|
2
|
+
import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./migration-graph-Dra4CcyN.mjs";
|
|
3
|
+
export { type PathDecision, assertHashIsGraphNode, detectCycles, detectOrphans, findPath, findPathWithDecision, findPathWithInvariants, isGraphNode, isInSpaceHistory, reconstructGraph };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
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";
|
|
2
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-
|
|
3
|
-
export { assertHashIsGraphNode, detectCycles, detectOrphans, findPath, findPathWithDecision, findPathWithInvariants, isGraphNode, reconstructGraph };
|
|
2
|
+
import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./graph-membership-C_ZO26nT-B7C4CJsh.mjs";
|
|
3
|
+
export { assertHashIsGraphNode, detectCycles, detectOrphans, findPath, findPathWithDecision, findPathWithInvariants, isGraphNode, isInSpaceHistory, reconstructGraph };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { type ContractRef, type ContractRefProvenance, type MigrationRef, type MigrationRefProvenance, type RefResolutionAmbiguous, type RefResolutionContext, type RefResolutionError, type RefResolutionInvalidFormat, type RefResolutionNotFound, type RefResolutionWrongGrammar, findEdgeByDirName, parseContractRef, parseMigrationRef };
|
|
1
|
+
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";
|
|
2
|
+
export { type ContractRef, type ContractRefProvenance, EMPTY_CONTRACT_REF, LIVE_MARKER_REF, type MigrationRef, type MigrationRefProvenance, RESERVED_CONTRACT_REFS, type RefResolutionAmbiguous, type RefResolutionContext, type RefResolutionError, type RefResolutionInvalidFormat, type RefResolutionNotFound, type RefResolutionWrongGrammar, WORKING_CONTRACT_REF, findEdgeByDirName, isLiveMarkerRef, isReservedContractRef, parseContractRef, parseMigrationRef };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { findEdgeByDirName, parseContractRef, parseMigrationRef };
|
|
1
|
+
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-d7rcmU6F.mjs";
|
|
2
|
+
export { EMPTY_CONTRACT_REF, LIVE_MARKER_REF, RESERVED_CONTRACT_REFS, WORKING_CONTRACT_REF, findEdgeByDirName, isLiveMarkerRef, isReservedContractRef, parseContractRef, parseMigrationRef };
|