@prisma/orm-toolchain 8.0.0-rc.16-dev.5 → 8.0.0-rc.16-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.
Files changed (69) hide show
  1. package/dist/{aggregate-DLptsx8n.d.mts → aggregate-BGdw05Nj.d.mts} +20 -3
  2. package/dist/{aggregate-DLptsx8n.d.mts.map → aggregate-BGdw05Nj.d.mts.map} +1 -1
  3. package/dist/{aggregate-C7IHVcsV.mjs → aggregate-CG8Nfsg1.mjs} +26 -7
  4. package/dist/aggregate-CG8Nfsg1.mjs.map +1 -0
  5. package/dist/{caught-errors-N266GMql-B7p73Xyj.mjs → caught-errors-DHRx2eml-Az6yWv1r.mjs} +86 -8
  6. package/dist/caught-errors-DHRx2eml-Az6yWv1r.mjs.map +1 -0
  7. package/dist/cli-telemetry.mjs +1 -1
  8. package/dist/cli.mjs +57 -13
  9. package/dist/cli.mjs.map +1 -1
  10. package/dist/cli__control-api.d.mts +54 -5
  11. package/dist/cli__control-api.d.mts.map +1 -1
  12. package/dist/cli__control-api.mjs +3 -3
  13. package/dist/cli__control-api__testing.d.mts +1 -1
  14. package/dist/cli__control-api__testing.mjs +1 -0
  15. package/dist/cli__control-api__testing.mjs.map +1 -1
  16. package/dist/cli__migration-cli.d.mts +1 -1
  17. package/dist/cli__migration-cli.mjs +3 -3
  18. package/dist/cli__migration-cli.mjs.map +1 -1
  19. package/dist/config-loader.mjs +1 -1
  20. package/dist/{contract-snapshot-store-1S_6vaGt-CQPNFWho.mjs → contract-snapshot-store-1S_6vaGt-HJIMKsVd.mjs} +2 -2
  21. package/dist/{contract-snapshot-store-1S_6vaGt-CQPNFWho.mjs.map → contract-snapshot-store-1S_6vaGt-HJIMKsVd.mjs.map} +1 -1
  22. package/dist/{db-sign-BxYV7wMQ-CNy01Yj7.d.mts → db-sign-DqskX43K-CtEwW2Y6.d.mts} +36 -4
  23. package/dist/db-sign-DqskX43K-CtEwW2Y6.d.mts.map +1 -0
  24. package/dist/emitter.mjs +1 -1
  25. package/dist/{exports-02v-utfh.mjs → exports-Bd3uWDtm.mjs} +2 -2
  26. package/dist/{exports-02v-utfh.mjs.map → exports-Bd3uWDtm.mjs.map} +1 -1
  27. package/dist/{exports-Ca10vlXU.mjs → exports-C7GzkPEc.mjs} +3 -3
  28. package/dist/{exports-Ca10vlXU.mjs.map → exports-C7GzkPEc.mjs.map} +1 -1
  29. package/dist/{exports-B41NJHCo-BaEu3TXy.mjs → exports-DaDckULH-JNQeM6Nn.mjs} +30 -5
  30. package/dist/exports-DaDckULH-JNQeM6Nn.mjs.map +1 -0
  31. package/dist/{io-xKnQrxIC-BPHEfarH.mjs → io-xKnQrxIC-CEXpCgE_.mjs} +3 -3
  32. package/dist/{io-xKnQrxIC-BPHEfarH.mjs.map → io-xKnQrxIC-CEXpCgE_.mjs.map} +1 -1
  33. package/dist/{migration-B2ljMJim.d.mts → migration-Bjz05034.d.mts} +12 -5
  34. package/dist/migration-Bjz05034.d.mts.map +1 -0
  35. package/dist/{migration-DaFjTC8t.mjs → migration-oIynqb-J.mjs} +14 -2
  36. package/dist/migration-oIynqb-J.mjs.map +1 -0
  37. package/dist/migration-tools.d.mts +3 -3
  38. package/dist/migration-tools.mjs +9 -9
  39. package/dist/migration-tools__aggregate.d.mts +2 -2
  40. package/dist/migration-tools__aggregate.mjs +1 -1
  41. package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
  42. package/dist/migration-tools__io.mjs +1 -1
  43. package/dist/migration-tools__migration-ts.mjs +1 -1
  44. package/dist/migration-tools__migration.d.mts +1 -1
  45. package/dist/migration-tools__migration.mjs +1 -1
  46. package/dist/migration-tools__ref-resolution.mjs +1 -1
  47. package/dist/migration-tools__refs.mjs +1 -1
  48. package/dist/migration-tools__spaces.mjs +2 -2
  49. package/dist/{migration-ts-BQuIba9e.mjs → migration-ts-FyF55c4M.mjs} +2 -2
  50. package/dist/{migration-ts-BQuIba9e.mjs.map → migration-ts-FyF55c4M.mjs.map} +1 -1
  51. package/dist/{ref-BCEAH4F9-Dxp5Czpw.mjs → ref-QYB51IgO-ywgKx10n.mjs} +606 -32
  52. package/dist/ref-QYB51IgO-ywgKx10n.mjs.map +1 -0
  53. package/dist/{ref-resolution-d7rcmU6F.mjs → ref-resolution-Be_zewf7.mjs} +2 -2
  54. package/dist/{ref-resolution-d7rcmU6F.mjs.map → ref-resolution-Be_zewf7.mjs.map} +1 -1
  55. package/dist/{refs-qwvw4_dV-X8sR92eT.mjs → refs-qwvw4_dV-DNg_7WTD.mjs} +2 -2
  56. package/dist/{refs-qwvw4_dV-X8sR92eT.mjs.map → refs-qwvw4_dV-DNg_7WTD.mjs.map} +1 -1
  57. package/dist/{spaces-CzLQQYa9.mjs → spaces-DGu96Hkk.mjs} +5 -5
  58. package/dist/{spaces-CzLQQYa9.mjs.map → spaces-DGu96Hkk.mjs.map} +1 -1
  59. package/dist/{verify-contract-spaces-CYjc343k-FXABEJZE.mjs → verify-contract-spaces-CYjc343k-ClHHEkJF.mjs} +3 -3
  60. package/dist/{verify-contract-spaces-CYjc343k-FXABEJZE.mjs.map → verify-contract-spaces-CYjc343k-ClHHEkJF.mjs.map} +1 -1
  61. package/dist/vite-plugin-contract-emit.mjs +3 -3
  62. package/package.json +12 -12
  63. package/dist/aggregate-C7IHVcsV.mjs.map +0 -1
  64. package/dist/caught-errors-N266GMql-B7p73Xyj.mjs.map +0 -1
  65. package/dist/db-sign-BxYV7wMQ-CNy01Yj7.d.mts.map +0 -1
  66. package/dist/exports-B41NJHCo-BaEu3TXy.mjs.map +0 -1
  67. package/dist/migration-B2ljMJim.d.mts.map +0 -1
  68. package/dist/migration-DaFjTC8t.mjs.map +0 -1
  69. package/dist/ref-BCEAH4F9-Dxp5Czpw.mjs.map +0 -1
@@ -1,17 +1,17 @@
1
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-6I9PqjpZ.mjs";
2
2
  import { r as verifyMigrationHash, t as computeMigrationHash } from "./hash-BAZVWU4a-BQovI7hF.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-1S_6vaGt-CQPNFWho.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-1S_6vaGt-HJIMKsVd.mjs";
4
4
  import { n as validateInvariantId, t as deriveProvidedInvariants } from "./invariants-C0lpc60l-CMUCvk4O.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-BPHEfarH.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-CEXpCgE_.mjs";
6
6
  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
- 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
- import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-CzLQQYa9.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-CYjc343k-ClHHEkJF.mjs";
9
+ import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-DGu96Hkk.mjs";
10
10
  import { n as isGraphNode, r as isInSpaceHistory, t as assertHashIsGraphNode } from "./graph-membership-C_ZO26nT-B7C4CJsh.mjs";
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 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
- import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-BQuIba9e.mjs";
15
- import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-DaFjTC8t.mjs";
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-DNg_7WTD.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-CG8Nfsg1.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-Be_zewf7.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-oIynqb-J.mjs";
16
16
  import { t as ledgerOriginFromStored } from "./ledger-origin-D7PN4Fon.mjs";
17
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 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
+ 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-BGdw05Nj.mjs";
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-C7IHVcsV.mjs";
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-CG8Nfsg1.mjs";
2
2
  export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, contractHashAtMarker, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, spacesInApplyOrder, 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-1S_6vaGt-CQPNFWho.mjs";
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-HJIMKsVd.mjs";
2
2
  export { contractSnapshotDir, createSnapshotContentVerifier, readContractSnapshotJson, readContractSnapshotJsonTolerant, snapshotsImportPathFrom, writeContractSnapshot };
@@ -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-xKnQrxIC-BPHEfarH.mjs";
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-CEXpCgE_.mjs";
2
2
  export { copyFilesWithRename, formatMigrationDirName, materialiseExtensionMigrationPackageIfMissing, materialiseMigrationPackage, readMigrationPackage, readMigrationsDir, writeMigrationMetadata, writeMigrationOps, writeMigrationPackage };
@@ -1,2 +1,2 @@
1
- import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-BQuIba9e.mjs";
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 { a as buildMigrationArtifacts, i as MigrationMeta, n as MigrationArtifacts, o as isDirectEntrypoint, r as MigrationContractViews, t as Migration } from "./migration-B2ljMJim.mjs";
1
+ import { a as buildMigrationArtifacts, i as MigrationMeta, n as MigrationArtifacts, o as isDirectEntrypoint, r as MigrationContractViews, t as Migration } from "./migration-Bjz05034.mjs";
2
2
  export { Migration, type MigrationArtifacts, MigrationContractViews, type MigrationMeta, buildMigrationArtifacts, isDirectEntrypoint };
@@ -1,2 +1,2 @@
1
- import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-DaFjTC8t.mjs";
1
+ import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-oIynqb-J.mjs";
2
2
  export { Migration, MigrationContractViews, buildMigrationArtifacts, isDirectEntrypoint };
@@ -1,2 +1,2 @@
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";
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-Be_zewf7.mjs";
2
2
  export { EMPTY_CONTRACT_REF, LIVE_MARKER_REF, RESERVED_CONTRACT_REFS, WORKING_CONTRACT_REF, findEdgeByDirName, isLiveMarkerRef, isReservedContractRef, 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-qwvw4_dV-X8sR92eT.mjs";
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-DNg_7WTD.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-CYjc343k-FXABEJZE.mjs";
2
- import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-CzLQQYa9.mjs";
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-ClHHEkJF.mjs";
2
+ import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-DGu96Hkk.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,5 +1,5 @@
1
- import { stat, writeFile } from "node:fs/promises";
2
1
  import { join } from "pathe";
2
+ import { stat, writeFile } from "node:fs/promises";
3
3
  import { format } from "prettier";
4
4
  //#region ../../../1-framework/3-tooling/migration/dist/exports/migration-ts.mjs
5
5
  /**
@@ -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-BQuIba9e.mjs.map
67
+ //# sourceMappingURL=migration-ts-FyF55c4M.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-ts-BQuIba9e.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"}
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"}