@prisma/orm-toolchain 8.0.0-rc.11-dev.53 → 8.0.0-rc.11-dev.55
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-D1pUq5oA.mjs → aggregate-CZyUi3Gt.mjs} +10 -10
- package/dist/{aggregate-D1pUq5oA.mjs.map → aggregate-CZyUi3Gt.mjs.map} +1 -1
- package/dist/{aggregate-CnwOnxnJ.d.mts → aggregate-DwZNs0oH.d.mts} +3 -3
- package/dist/{aggregate-CnwOnxnJ.d.mts.map → aggregate-DwZNs0oH.d.mts.map} +1 -1
- package/dist/cli-telemetry.mjs +2 -2
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +57 -38
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +11 -11
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/cli__control-api__testing.mjs +1 -1
- package/dist/cli__migration-cli.mjs +5 -5
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/config-loader.d.mts +2 -2
- package/dist/config-loader.mjs +2 -2
- package/dist/{contract-snapshot-store-CM9ubenX-o8kTVHxP.mjs → contract-snapshot-store-1S_6vaGt-mzFobPtq.mjs} +5 -5
- package/dist/{contract-snapshot-store-CM9ubenX-o8kTVHxP.mjs.map → contract-snapshot-store-1S_6vaGt-mzFobPtq.mjs.map} +1 -1
- package/dist/{db-verify-BkwsVjIf-CDWnVSjr.d.mts → db-verify-BkwsVjIf-BQHjqQoO.d.mts} +3 -3
- package/dist/{db-verify-BkwsVjIf-CDWnVSjr.d.mts.map → db-verify-BkwsVjIf-BQHjqQoO.d.mts.map} +1 -1
- package/dist/{errors-BIroGS9E-Dg6CF-dm.mjs → errors-DD6iLGXk-B4Q4tIha.mjs} +4 -32
- package/dist/errors-DD6iLGXk-B4Q4tIha.mjs.map +1 -0
- package/dist/{exports-ClG6amXs.mjs → exports-8-S4PGn0.mjs} +36 -7
- package/dist/exports-8-S4PGn0.mjs.map +1 -0
- package/dist/{exports-BiGALu6k.mjs → exports-DVWNaJUr.mjs} +6 -15
- package/dist/exports-DVWNaJUr.mjs.map +1 -0
- package/dist/{graph-membership-CdU6royq-gP9Kb9Eh.mjs → graph-membership-BQ43lP4A-B8rZC7rC.mjs} +3 -3
- package/dist/{graph-membership-CdU6royq-gP9Kb9Eh.mjs.map → graph-membership-BQ43lP4A-B8rZC7rC.mjs.map} +1 -1
- package/dist/{index-CjMp0WzN.d.mts → index-DFX8XFLx.d.mts} +22 -4
- package/dist/index-DFX8XFLx.d.mts.map +1 -0
- package/dist/{invariants-CUbFGAse-DqgE4fhO.mjs → invariants-C0lpc60l-MH7CqDAw.mjs} +3 -3
- package/dist/{invariants-CUbFGAse-DqgE4fhO.mjs.map → invariants-C0lpc60l-MH7CqDAw.mjs.map} +1 -1
- package/dist/{io-CyV6U3am-CMJIi_UO.mjs → io-xKnQrxIC-D_C_lwGm.mjs} +5 -5
- package/dist/{io-CyV6U3am-CMJIi_UO.mjs.map → io-xKnQrxIC-D_C_lwGm.mjs.map} +1 -1
- package/dist/{migration-D95UJ0Dj.mjs → migration-CkACVhgz.mjs} +4 -4
- package/dist/{migration-D95UJ0Dj.mjs.map → migration-CkACVhgz.mjs.map} +1 -1
- package/dist/{migration-graph-B4xBv7B2-CQ8kM0NF.mjs → migration-graph-BoiiZAaU-DLht12k7.mjs} +3 -81
- package/dist/migration-graph-BoiiZAaU-DLht12k7.mjs.map +1 -0
- package/dist/{migration-graph-Dow0Gaw0-Dy6qj7aU.d.mts → migration-graph-D8IuOkZb-pSI7-k4_.d.mts} +4 -24
- package/dist/{migration-graph-Dow0Gaw0-Dy6qj7aU.d.mts.map → migration-graph-D8IuOkZb-pSI7-k4_.d.mts.map} +1 -1
- package/dist/{migration-graph-DhDB8qEP.d.mts → migration-graph-De1gCcTL.d.mts} +2 -2
- package/dist/{migration-graph-DhDB8qEP.d.mts.map → migration-graph-De1gCcTL.d.mts.map} +1 -1
- package/dist/migration-tools.d.mts +4 -4
- package/dist/migration-tools.mjs +14 -14
- package/dist/migration-tools__aggregate.d.mts +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
- package/dist/migration-tools__errors.mjs +1 -1
- package/dist/migration-tools__invariants.mjs +1 -1
- package/dist/migration-tools__io.mjs +1 -1
- package/dist/migration-tools__migration-graph.d.mts +3 -3
- package/dist/migration-tools__migration-graph.mjs +3 -3
- package/dist/migration-tools__migration-ts.mjs +1 -1
- package/dist/migration-tools__migration.mjs +1 -1
- package/dist/migration-tools__ref-resolution.mjs +1 -1
- package/dist/migration-tools__refs.mjs +1 -1
- package/dist/migration-tools__spaces.mjs +2 -2
- package/dist/{migration-ts-DdVm0rws.mjs → migration-ts-FyF55c4M.mjs} +2 -2
- package/dist/{migration-ts-DdVm0rws.mjs.map → migration-ts-FyF55c4M.mjs.map} +1 -1
- package/dist/{ref-DL4C2p9T-B6EVNIhl.mjs → ref-CTp4Kvp--3Dgd8LXq.mjs} +245 -226
- package/dist/ref-CTp4Kvp--3Dgd8LXq.mjs.map +1 -0
- package/dist/{ref-resolution-BwWLoU7C.mjs → ref-resolution-be3JMf5X.mjs} +2 -2
- package/dist/{ref-resolution-BwWLoU7C.mjs.map → ref-resolution-be3JMf5X.mjs.map} +1 -1
- package/dist/{refs-S0wu2JkI-BbFdehLe.mjs → refs-qwvw4_dV-Bk9tl756.mjs} +3 -3
- package/dist/{refs-S0wu2JkI-BbFdehLe.mjs.map → refs-qwvw4_dV-Bk9tl756.mjs.map} +1 -1
- package/dist/{spaces-Bk9Q5fMp.mjs → spaces-D1-7OKid.mjs} +8 -8
- package/dist/{spaces-Bk9Q5fMp.mjs.map → spaces-D1-7OKid.mjs.map} +1 -1
- package/dist/{verify-contract-spaces-BLkC9r9l-CJIppNL8.mjs → verify-contract-spaces-CYjc343k-9_2GpPRg.mjs} +5 -5
- package/dist/{verify-contract-spaces-BLkC9r9l-CJIppNL8.mjs.map → verify-contract-spaces-CYjc343k-9_2GpPRg.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +3 -3
- package/dist/vite-plugin-contract-emit.mjs.map +1 -1
- package/package.json +13 -12
- package/dist/errors-BIroGS9E-Dg6CF-dm.mjs.map +0 -1
- package/dist/exports-BiGALu6k.mjs.map +0 -1
- package/dist/exports-ClG6amXs.mjs.map +0 -1
- package/dist/index-CjMp0WzN.d.mts.map +0 -1
- package/dist/migration-graph-B4xBv7B2-CQ8kM0NF.mjs.map +0 -1
- package/dist/ref-DL4C2p9T-B6EVNIhl.mjs.map +0 -1
package/dist/migration-tools.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as errorNoInvariantPath, M as errorUnknownInvariant, a as errorContractSnapshotHashMismatch, b as errorInvalidRefName, g as errorInvalidJson, l as errorDescriptorHeadHashMismatch, o as errorContractSnapshotMissing, r as errorContractDeserializationFailed, t as MigrationToolsError } from "./errors-DD6iLGXk-B4Q4tIha.mjs";
|
|
2
2
|
import { r as verifyMigrationHash, t as computeMigrationHash } from "./hash-BAZVWU4a-BdynTmar.mjs";
|
|
3
|
-
import { a as snapshotsImportPathFrom, i as readContractSnapshotJsonTolerant, n as createSnapshotContentVerifier, o as writeContractSnapshot, r as readContractSnapshotJson, t as contractSnapshotDir } from "./contract-snapshot-store-
|
|
4
|
-
import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-
|
|
5
|
-
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-
|
|
3
|
+
import { a as snapshotsImportPathFrom, i as readContractSnapshotJsonTolerant, n as createSnapshotContentVerifier, o as writeContractSnapshot, r as readContractSnapshotJson, t as contractSnapshotDir } from "./contract-snapshot-store-1S_6vaGt-mzFobPtq.mjs";
|
|
4
|
+
import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-C0lpc60l-MH7CqDAw.mjs";
|
|
5
|
+
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-xKnQrxIC-D_C_lwGm.mjs";
|
|
6
6
|
import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
7
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-
|
|
8
|
-
import { a as
|
|
9
|
-
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-
|
|
10
|
-
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-
|
|
11
|
-
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-
|
|
12
|
-
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-
|
|
13
|
-
import { n as parseContractRef, r as parseMigrationRef, t as findEdgeByDirName } from "./ref-resolution-
|
|
14
|
-
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-
|
|
15
|
-
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-
|
|
7
|
+
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-BQ43lP4A-B8rZC7rC.mjs";
|
|
8
|
+
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";
|
|
9
|
+
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-Bk9tl756.mjs";
|
|
10
|
+
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-9_2GpPRg.mjs";
|
|
11
|
+
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-CZyUi3Gt.mjs";
|
|
12
|
+
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-D1-7OKid.mjs";
|
|
13
|
+
import { n as parseContractRef, r as parseMigrationRef, t as findEdgeByDirName } from "./ref-resolution-be3JMf5X.mjs";
|
|
14
|
+
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-FyF55c4M.mjs";
|
|
15
|
+
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-CkACVhgz.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,
|
|
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, validateInvariantId, validateRefName, validateRefValue, verifyContractSpaces, verifyMigration, verifyMigrationHash, writeContractSnapshot, writeMigrationMetadata, writeMigrationOps, writeMigrationPackage, writeMigrationTs, writeRef };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as buildFabricatedMigrationEdge, B as verifyMigration, C as ResolveRecordedPathOutcome, D as VerifierOutput, E as VerifierInput, F as loadContractSpaceAggregate, I as loadProblemToViolation, L as planMigration, M as computeIntegrityViolations, N as createAggregateContractSpace, O as VerifierSuccess, P as createContractSpaceAggregate, R as requireHeadRef, S as ResolveRecordedPathInputs, T as VerifierError, _ 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 resolveRecordedPath } from "./aggregate-
|
|
1
|
+
import { A as buildFabricatedMigrationEdge, B as verifyMigration, C as ResolveRecordedPathOutcome, D as VerifierOutput, E as VerifierInput, F as loadContractSpaceAggregate, I as loadProblemToViolation, L as planMigration, M as computeIntegrityViolations, N as createAggregateContractSpace, O as VerifierSuccess, P as createContractSpaceAggregate, R as requireHeadRef, S as ResolveRecordedPathInputs, T as VerifierError, _ 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 resolveRecordedPath } from "./aggregate-DwZNs0oH.mjs";
|
|
2
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, verifyMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-
|
|
1
|
+
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-CZyUi3Gt.mjs";
|
|
2
2
|
export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, verifyMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as snapshotsImportPathFrom, i as readContractSnapshotJsonTolerant, n as createSnapshotContentVerifier, o as writeContractSnapshot, r as readContractSnapshotJson, t as contractSnapshotDir } from "./contract-snapshot-store-
|
|
1
|
+
import { a as snapshotsImportPathFrom, i as readContractSnapshotJsonTolerant, n as createSnapshotContentVerifier, o as writeContractSnapshot, r as readContractSnapshotJson, t as contractSnapshotDir } from "./contract-snapshot-store-1S_6vaGt-mzFobPtq.mjs";
|
|
2
2
|
export { contractSnapshotDir, createSnapshotContentVerifier, readContractSnapshotJson, readContractSnapshotJsonTolerant, snapshotsImportPathFrom, writeContractSnapshot };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as errorNoInvariantPath, M as errorUnknownInvariant, a as errorContractSnapshotHashMismatch, b as errorInvalidRefName, g as errorInvalidJson, l as errorDescriptorHeadHashMismatch, o as errorContractSnapshotMissing, r as errorContractDeserializationFailed, t as MigrationToolsError } from "./errors-DD6iLGXk-B4Q4tIha.mjs";
|
|
2
2
|
export { MigrationToolsError, errorContractDeserializationFailed, errorContractSnapshotHashMismatch, errorContractSnapshotMissing, errorDescriptorHeadHashMismatch, errorInvalidJson, errorInvalidRefName, errorNoInvariantPath, errorUnknownInvariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-
|
|
1
|
+
import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-C0lpc60l-MH7CqDAw.mjs";
|
|
2
2
|
export { deriveProvidedInvariants, validateInvariantId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-xKnQrxIC-D_C_lwGm.mjs";
|
|
2
2
|
export { copyFilesWithRename, formatMigrationDirName, materialiseExtensionMigrationPackageIfMissing, materialiseMigrationPackage, readMigrationPackage, readMigrationsDir, writeMigrationMetadata, writeMigrationOps, writeMigrationPackage };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./migration-graph-
|
|
3
|
-
export { type PathDecision, assertHashIsGraphNode, detectCycles, detectOrphans,
|
|
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-De1gCcTL.mjs";
|
|
3
|
+
export { type PathDecision, assertHashIsGraphNode, detectCycles, detectOrphans, findPath, findPathWithDecision, findPathWithInvariants, isGraphNode, reconstructGraph };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-
|
|
2
|
-
import { a as
|
|
3
|
-
export { assertHashIsGraphNode, detectCycles, detectOrphans,
|
|
1
|
+
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-BQ43lP4A-B8rZC7rC.mjs";
|
|
2
|
+
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";
|
|
3
|
+
export { assertHashIsGraphNode, detectCycles, detectOrphans, findPath, findPathWithDecision, findPathWithInvariants, isGraphNode, reconstructGraph };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-
|
|
1
|
+
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-FyF55c4M.mjs";
|
|
2
2
|
export { detectScaffoldRuntime, hasMigrationTs, shebangLineFor, writeMigrationTs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-
|
|
1
|
+
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-CkACVhgz.mjs";
|
|
2
2
|
export { Migration, MigrationContractViews, buildMigrationArtifacts, isDirectEntrypoint };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as parseContractRef, r as parseMigrationRef, t as findEdgeByDirName } from "./ref-resolution-
|
|
1
|
+
import { n as parseContractRef, r as parseMigrationRef, t as findEdgeByDirName } from "./ref-resolution-be3JMf5X.mjs";
|
|
2
2
|
export { findEdgeByDirName, parseContractRef, parseMigrationRef };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-Bk9tl756.mjs";
|
|
2
2
|
export { HEAD_REF_NAME, deleteRef, readRef, readRefs, refsByContractHash, resolveRef, resolveRefsByContractHash, validateRefName, validateRefValue, writeRef };
|
|
@@ -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-CYjc343k-9_2GpPRg.mjs";
|
|
2
|
+
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-D1-7OKid.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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { format } from "prettier";
|
|
2
1
|
import { join } from "pathe";
|
|
3
2
|
import { stat, writeFile } from "node:fs/promises";
|
|
3
|
+
import { format } from "prettier";
|
|
4
4
|
//#region ../../../1-framework/3-tooling/migration/dist/exports/migration-ts.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Utilities for reading/writing `migration.ts` files.
|
|
@@ -64,4 +64,4 @@ function shebangLineFor(runtime) {
|
|
|
64
64
|
//#endregion
|
|
65
65
|
export { writeMigrationTs as i, hasMigrationTs as n, shebangLineFor as r, detectScaffoldRuntime as t };
|
|
66
66
|
|
|
67
|
-
//# sourceMappingURL=migration-ts-
|
|
67
|
+
//# sourceMappingURL=migration-ts-FyF55c4M.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-ts-
|
|
1
|
+
{"version":3,"file":"migration-ts-FyF55c4M.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/exports/migration-ts.mjs"],"sourcesContent":["import { join } from \"pathe\";\nimport { stat, writeFile } from \"node:fs/promises\";\nimport { format } from \"prettier\";\n//#region src/migration-ts.ts\n/**\n* Utilities for reading/writing `migration.ts` files.\n*\n* Rendering migration.ts source is the target's responsibility — the CLI\n* obtains source strings from a planner's `plan.renderTypeScript()`. The\n* helper here is limited to file I/O: writing the returned source with the\n* right executable bit and probing for existence.\n*/\nconst MIGRATION_TS_FILE = \"migration.ts\";\n/**\n* Writes a pre-rendered `migration.ts` source string to the given package\n* directory. If the source begins with a shebang, the file is written with\n* executable permissions (0o755) so it can be run directly via\n* `./migration.ts` — the rendered scaffold ends with\n* `MigrationCLI.run(import.meta.url, M)` from\n* `@internal/cli/migration-cli` (re-exported by the postgres facade),\n* which guards on the entrypoint and serializes when the file is the main\n* module.\n*\n* The source is run through prettier before writing so migration renderers\n* can produce structurally-correct but loosely-indented source and rely on\n* a single canonical format on disk. Matches what `@internal/emitter`\n* already does for generated `contract.d.ts`.\n*/\nasync function writeMigrationTs(packageDir, content) {\n\tconst formatted = await formatMigrationTsSource(content);\n\tconst isExecutable = formatted.startsWith(\"#!\");\n\tawait writeFile(join(packageDir, MIGRATION_TS_FILE), formatted, isExecutable ? { mode: 493 } : void 0);\n}\nasync function formatMigrationTsSource(source) {\n\treturn format(source, {\n\t\tparser: \"typescript\",\n\t\tsingleQuote: true,\n\t\tsemi: true,\n\t\tprintWidth: 100\n\t});\n}\n/**\n* Checks whether a migration.ts file exists in the package directory.\n*/\nasync function hasMigrationTs(packageDir) {\n\ttry {\n\t\treturn (await stat(join(packageDir, MIGRATION_TS_FILE))).isFile();\n\t} catch {\n\t\treturn false;\n\t}\n}\n//#endregion\n//#region src/runtime-detection.ts\nfunction detectScaffoldRuntime() {\n\tif (typeof globalThis.Bun !== \"undefined\") return \"bun\";\n\tif (typeof globalThis.Deno !== \"undefined\") return \"deno\";\n\treturn \"node\";\n}\nfunction shebangLineFor(runtime) {\n\tswitch (runtime) {\n\t\tcase \"bun\": return \"#!/usr/bin/env -S bun\";\n\t\tcase \"deno\": return \"#!/usr/bin/env -S deno run -A\";\n\t\tcase \"node\": return \"#!/usr/bin/env -S node\";\n\t}\n}\n//#endregion\nexport { detectScaffoldRuntime, hasMigrationTs, shebangLineFor, writeMigrationTs };\n\n//# sourceMappingURL=migration-ts.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,oBAAoB;;;;;;;;;;;;;;;;AAgB1B,eAAe,iBAAiB,YAAY,SAAS;CACpD,MAAM,YAAY,MAAM,wBAAwB,OAAO;CACvD,MAAM,eAAe,UAAU,WAAW,IAAI;CAC9C,MAAM,UAAU,KAAK,YAAY,iBAAiB,GAAG,WAAW,eAAe,EAAE,MAAM,IAAI,IAAI,KAAK,CAAC;AACtG;AACA,eAAe,wBAAwB,QAAQ;CAC9C,OAAO,OAAO,QAAQ;EACrB,QAAQ;EACR,aAAa;EACb,MAAM;EACN,YAAY;CACb,CAAC;AACF;;;;AAIA,eAAe,eAAe,YAAY;CACzC,IAAI;EACH,QAAQ,MAAM,KAAK,KAAK,YAAY,iBAAiB,CAAC,EAAA,CAAG,OAAO;CACjE,QAAQ;EACP,OAAO;CACR;AACD;AAGA,SAAS,wBAAwB;CAChC,IAAI,OAAO,WAAW,QAAQ,aAAa,OAAO;CAClD,IAAI,OAAO,WAAW,SAAS,aAAa,OAAO;CACnD,OAAO;AACR;AACA,SAAS,eAAe,SAAS;CAChC,QAAQ,SAAR;EACC,KAAK,OAAO,OAAO;EACnB,KAAK,QAAQ,OAAO;EACpB,KAAK,QAAQ,OAAO;CACrB;AACD"}
|