@nicia-ai/typegraph 0.73.0 → 0.73.1

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 (44) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/backend/postgres/pglite-store.cjs +1 -1
  3. package/dist/backend/postgres/pglite-store.js +1 -1
  4. package/dist/backend/postgres/working-copy.cjs +85 -85
  5. package/dist/backend/postgres/working-copy.js +4 -4
  6. package/dist/backend/sqlite/local-store.cjs +1 -1
  7. package/dist/backend/sqlite/local-store.js +1 -1
  8. package/dist/{chunk-7QQ3ICAZ.cjs → chunk-BZ5EXHZX.cjs} +11 -11
  9. package/dist/{chunk-7QQ3ICAZ.cjs.map → chunk-BZ5EXHZX.cjs.map} +1 -1
  10. package/dist/{chunk-ZN24TFVZ.cjs → chunk-GLDGT3L3.cjs} +6 -3
  11. package/dist/chunk-GLDGT3L3.cjs.map +1 -0
  12. package/dist/{chunk-ORTKLAAU.js → chunk-LJG2TYCN.js} +3 -3
  13. package/dist/{chunk-ORTKLAAU.js.map → chunk-LJG2TYCN.js.map} +1 -1
  14. package/dist/{chunk-VKMLQTXP.cjs → chunk-MPCF5XBW.cjs} +159 -159
  15. package/dist/{chunk-VKMLQTXP.cjs.map → chunk-MPCF5XBW.cjs.map} +1 -1
  16. package/dist/{chunk-5RTWCMBC.js → chunk-OA4PF2QI.js} +6 -3
  17. package/dist/chunk-OA4PF2QI.js.map +1 -0
  18. package/dist/{chunk-XGYVKBI5.cjs → chunk-P52FOZSI.cjs} +8 -8
  19. package/dist/{chunk-XGYVKBI5.cjs.map → chunk-P52FOZSI.cjs.map} +1 -1
  20. package/dist/{chunk-KI7VMCOG.cjs → chunk-QJGQ3FN2.cjs} +16 -16
  21. package/dist/{chunk-KI7VMCOG.cjs.map → chunk-QJGQ3FN2.cjs.map} +1 -1
  22. package/dist/{chunk-MSUUUG5B.js → chunk-TI2O2U4G.js} +4 -4
  23. package/dist/{chunk-MSUUUG5B.js.map → chunk-TI2O2U4G.js.map} +1 -1
  24. package/dist/{chunk-FC7INRDS.js → chunk-WX7BQELV.js} +4 -4
  25. package/dist/{chunk-FC7INRDS.js.map → chunk-WX7BQELV.js.map} +1 -1
  26. package/dist/{chunk-NMLLXBGF.js → chunk-XIFBU27X.js} +3 -3
  27. package/dist/{chunk-NMLLXBGF.js.map → chunk-XIFBU27X.js.map} +1 -1
  28. package/dist/graph-merge/index.cjs +531 -531
  29. package/dist/graph-merge/index.js +6 -6
  30. package/dist/index.cjs +43 -43
  31. package/dist/index.js +2 -2
  32. package/dist/interchange/index.cjs +26 -26
  33. package/dist/interchange/index.js +3 -3
  34. package/dist/{local-store-impl-ALYCG7CX.js → local-store-impl-HPNBERU4.js} +4 -4
  35. package/dist/{local-store-impl-ALYCG7CX.js.map → local-store-impl-HPNBERU4.js.map} +1 -1
  36. package/dist/{local-store-impl-2HTGPM6A.cjs → local-store-impl-WIVQ5HDM.cjs} +5 -5
  37. package/dist/{local-store-impl-2HTGPM6A.cjs.map → local-store-impl-WIVQ5HDM.cjs.map} +1 -1
  38. package/dist/{pglite-store-impl-F2WHYIM7.cjs → pglite-store-impl-IXKIXLH6.cjs} +5 -5
  39. package/dist/{pglite-store-impl-F2WHYIM7.cjs.map → pglite-store-impl-IXKIXLH6.cjs.map} +1 -1
  40. package/dist/{pglite-store-impl-3UUTJLGP.js → pglite-store-impl-U3TW3Z4C.js} +4 -4
  41. package/dist/{pglite-store-impl-3UUTJLGP.js.map → pglite-store-impl-U3TW3Z4C.js.map} +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunk-5RTWCMBC.js.map +0 -1
  44. package/dist/chunk-ZN24TFVZ.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
- import { asBranchId, compareMergeKeys, mergeKey, canonicalValueKey, branch, cloneIngestionWorkingCopyStrategy, BranchError, coalescedWorkingCopyClose, parseRowProps, MergePlanCapabilityError, MergeError, describeCause, MergePlanningStaleError, computeSchemaComponent, InvalidMergePlanError, translateMergeCommitError, BaseVersionMismatchError, computeBaseVersion, CandidateWriteSetError, MergeReviewError, durableDescriptorRefusal, durableOriginOfDescriptor, durableOriginsEqual, DurableOperationError, DurableOperationRequestError, DurableOperationEvidenceError, cloneWorkingCopyStrategy, InvalidMergeOptionsError, NO_STORED_ASSERTIONS, assertOneIdOneTruth, buildIdentityPeerProbe, assertNoContradictoryIdentityClosure, mergeKeyOf, idOf, kindOf, MergePlanTargetMismatchError, assertPlannedIdentityIdsFresh, isLegacyBaseVersion, LEGACY_BASE_VERSION_REFUSAL, hasRevisionAnchor, revisionAnchorOf, revisionOriginOf, schemaComponentOf, graphWithoutNodeUniqueness, createGraphNodeKindReader, createGraphEdgeKindReader, DurableOperationUnsupportedError, readActiveSchemaVersion, schemaActiveVersionOf, diffAgainstBase, planIdentityChanges, RETRACTION_DELETION_OVERRULED_DROP_REASON, remapIdentityAssertionEndpoints, assertIdentityEndpointsNotDeleted, edgeStateSignature, MergePlanDigestMismatchError, UnsupportedMergePlanVersionError, MergePlanSchemaMismatchError, MergePlanOriginMismatchError, StaleMergePlanError, engineAnchorOf, CandidateSourceError, MatchEvidenceError, canonicalizeProps, translateIdentityCommitError, lineageDeltaSinceAnchor, VALIDITY_END_TARGET_PRECEDENCE, SimilarityUnavailableError, compareBaseVersionAtTarget, assertIdentityPeersStable, assertMergedIdentityClassesConsistent } from '../chunk-FC7INRDS.js';
2
- export { BaseVersionMismatchError, BranchError, CandidateSourceError, CandidateWriteSetError, DurableEvidenceUndeliveredError, DurableOperationConflictError, DurableOperationError, DurableOperationEvidenceError, DurableOperationRequestError, DurableOperationUnsupportedError, IdentityMergeConflictError, InvalidMergeOptionsError, InvalidMergePlanError, MERGE_ERROR_CODES, MatchEvidenceError, MergeConflictError, MergeConstraintConflictError, MergeError, MergePlanCapabilityError, MergePlanDigestMismatchError, MergePlanOriginMismatchError, MergePlanSchemaMismatchError, MergePlanTargetMismatchError, MergePlanningStaleError, MergeReviewError, SimilarityUnavailableError, StaleMergePlanError, UnsupportedMergePlanVersionError, VALIDITY_END_TARGET_PRECEDENCE, asBaseVersion, asBranchId, branch, branchDurable, cloneWorkingCopyStrategy, computeBaseVersion, destroyDurableBranch, durableDescriptorRefusal, durableOriginOfDescriptor, durableOriginsEqual, forkedWorkingCopyStrategy, reopenDurableBranch } from '../chunk-FC7INRDS.js';
3
- import { NODE_TEMPORAL_READ_NAMES, CURRENT_ONLY_READ_NAMES, createStoreWithSchema, ensureTrigramExtension, relationalIndexDdlOptions, createStore, vectorIndexParams, indexMaterializationStatusKey, IDENTITY_READ_NAMES, EDGE_TEMPORAL_READ_NAMES } from '../chunk-NMLLXBGF.js';
1
+ import { asBranchId, compareMergeKeys, mergeKey, canonicalValueKey, branch, cloneIngestionWorkingCopyStrategy, BranchError, coalescedWorkingCopyClose, parseRowProps, MergePlanCapabilityError, MergeError, describeCause, MergePlanningStaleError, computeSchemaComponent, InvalidMergePlanError, translateMergeCommitError, BaseVersionMismatchError, computeBaseVersion, CandidateWriteSetError, MergeReviewError, durableDescriptorRefusal, durableOriginOfDescriptor, durableOriginsEqual, DurableOperationError, DurableOperationRequestError, DurableOperationEvidenceError, cloneWorkingCopyStrategy, InvalidMergeOptionsError, NO_STORED_ASSERTIONS, assertOneIdOneTruth, buildIdentityPeerProbe, assertNoContradictoryIdentityClosure, mergeKeyOf, idOf, kindOf, MergePlanTargetMismatchError, assertPlannedIdentityIdsFresh, isLegacyBaseVersion, LEGACY_BASE_VERSION_REFUSAL, hasRevisionAnchor, revisionAnchorOf, revisionOriginOf, schemaComponentOf, graphWithoutNodeUniqueness, createGraphNodeKindReader, createGraphEdgeKindReader, DurableOperationUnsupportedError, readActiveSchemaVersion, schemaActiveVersionOf, diffAgainstBase, planIdentityChanges, RETRACTION_DELETION_OVERRULED_DROP_REASON, remapIdentityAssertionEndpoints, assertIdentityEndpointsNotDeleted, edgeStateSignature, MergePlanDigestMismatchError, UnsupportedMergePlanVersionError, MergePlanSchemaMismatchError, MergePlanOriginMismatchError, StaleMergePlanError, engineAnchorOf, CandidateSourceError, MatchEvidenceError, canonicalizeProps, translateIdentityCommitError, lineageDeltaSinceAnchor, VALIDITY_END_TARGET_PRECEDENCE, SimilarityUnavailableError, compareBaseVersionAtTarget, assertIdentityPeersStable, assertMergedIdentityClassesConsistent } from '../chunk-WX7BQELV.js';
2
+ export { BaseVersionMismatchError, BranchError, CandidateSourceError, CandidateWriteSetError, DurableEvidenceUndeliveredError, DurableOperationConflictError, DurableOperationError, DurableOperationEvidenceError, DurableOperationRequestError, DurableOperationUnsupportedError, IdentityMergeConflictError, InvalidMergeOptionsError, InvalidMergePlanError, MERGE_ERROR_CODES, MatchEvidenceError, MergeConflictError, MergeConstraintConflictError, MergeError, MergePlanCapabilityError, MergePlanDigestMismatchError, MergePlanOriginMismatchError, MergePlanSchemaMismatchError, MergePlanTargetMismatchError, MergePlanningStaleError, MergeReviewError, SimilarityUnavailableError, StaleMergePlanError, UnsupportedMergePlanVersionError, VALIDITY_END_TARGET_PRECEDENCE, asBaseVersion, asBranchId, branch, branchDurable, cloneWorkingCopyStrategy, computeBaseVersion, destroyDurableBranch, durableDescriptorRefusal, durableOriginOfDescriptor, durableOriginsEqual, forkedWorkingCopyStrategy, reopenDurableBranch } from '../chunk-WX7BQELV.js';
3
+ import { NODE_TEMPORAL_READ_NAMES, CURRENT_ONLY_READ_NAMES, createStoreWithSchema, ensureTrigramExtension, relationalIndexDdlOptions, createStore, vectorIndexParams, indexMaterializationStatusKey, IDENTITY_READ_NAMES, EDGE_TEMPORAL_READ_NAMES } from '../chunk-XIFBU27X.js';
4
4
  import { pgvectorStrategy, pgvectorIndexName } from '../chunk-VLDTIQW3.js';
5
5
  import '../chunk-TR2KKEE2.js';
6
- import '../chunk-MSUUUG5B.js';
7
- import { InterchangeIdentitySchema, registerIngestionImportTarget, importGraph, validateImportProperties } from '../chunk-ORTKLAAU.js';
8
- import { resolveEdgeMatchIdentityStorage } from '../chunk-5RTWCMBC.js';
6
+ import '../chunk-TI2O2U4G.js';
7
+ import { InterchangeIdentitySchema, registerIngestionImportTarget, importGraph, validateImportProperties } from '../chunk-LJG2TYCN.js';
8
+ import { resolveEdgeMatchIdentityStorage } from '../chunk-OA4PF2QI.js';
9
9
  import '../chunk-7RGPBLHZ.js';
10
10
  import '../chunk-QNDNUCHU.js';
11
11
  import { EDGE_CARDINALITY_SPECS } from '../chunk-G7TFDTGI.js';
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkVKMLQTXP_cjs = require('./chunk-VKMLQTXP.cjs');
3
+ var chunkMPCF5XBW_cjs = require('./chunk-MPCF5XBW.cjs');
4
4
  var chunk4F32L7D7_cjs = require('./chunk-4F32L7D7.cjs');
5
5
  var chunkGWXR2J7B_cjs = require('./chunk-GWXR2J7B.cjs');
6
6
  var chunkGZBI2EQM_cjs = require('./chunk-GZBI2EQM.cjs');
@@ -8,7 +8,7 @@ var chunk72FGF3TK_cjs = require('./chunk-72FGF3TK.cjs');
8
8
  require('./chunk-B5C2V2LN.cjs');
9
9
  var chunkNTLYNEMV_cjs = require('./chunk-NTLYNEMV.cjs');
10
10
  var chunkXF55JTVP_cjs = require('./chunk-XF55JTVP.cjs');
11
- require('./chunk-ZN24TFVZ.cjs');
11
+ require('./chunk-GLDGT3L3.cjs');
12
12
  require('./chunk-7USI4E2O.cjs');
13
13
  require('./chunk-BJCI4W4M.cjs');
14
14
  require('./chunk-THCONLOL.cjs');
@@ -529,167 +529,167 @@ function decodeEmbeddingJson(row) {
529
529
 
530
530
  Object.defineProperty(exports, "ExecutableAggregateQuery", {
531
531
  enumerable: true,
532
- get: function () { return chunkVKMLQTXP_cjs.ExecutableAggregateQuery; }
532
+ get: function () { return chunkMPCF5XBW_cjs.ExecutableAggregateQuery; }
533
533
  });
534
534
  Object.defineProperty(exports, "ExecutableProjectionQuery", {
535
535
  enumerable: true,
536
- get: function () { return chunkVKMLQTXP_cjs.ExecutableProjectionQuery; }
536
+ get: function () { return chunkMPCF5XBW_cjs.ExecutableProjectionQuery; }
537
537
  });
538
538
  Object.defineProperty(exports, "ExecutableQuery", {
539
539
  enumerable: true,
540
- get: function () { return chunkVKMLQTXP_cjs.ExecutableQuery; }
540
+ get: function () { return chunkMPCF5XBW_cjs.ExecutableQuery; }
541
541
  });
542
542
  Object.defineProperty(exports, "ExecutableRelationQuery", {
543
543
  enumerable: true,
544
- get: function () { return chunkVKMLQTXP_cjs.ExecutableRelationQuery; }
544
+ get: function () { return chunkMPCF5XBW_cjs.ExecutableRelationQuery; }
545
545
  });
546
546
  Object.defineProperty(exports, "MAX_EXPLICIT_RECURSIVE_DEPTH", {
547
547
  enumerable: true,
548
- get: function () { return chunkVKMLQTXP_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
548
+ get: function () { return chunkMPCF5XBW_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
549
549
  });
550
550
  Object.defineProperty(exports, "MAX_RECURSIVE_DEPTH", {
551
551
  enumerable: true,
552
- get: function () { return chunkVKMLQTXP_cjs.MAX_RECURSIVE_DEPTH; }
552
+ get: function () { return chunkMPCF5XBW_cjs.MAX_RECURSIVE_DEPTH; }
553
553
  });
554
554
  Object.defineProperty(exports, "PreparedQuery", {
555
555
  enumerable: true,
556
- get: function () { return chunkVKMLQTXP_cjs.PreparedQuery; }
556
+ get: function () { return chunkMPCF5XBW_cjs.PreparedQuery; }
557
557
  });
558
558
  Object.defineProperty(exports, "QueryBuilder", {
559
559
  enumerable: true,
560
- get: function () { return chunkVKMLQTXP_cjs.QueryBuilder; }
560
+ get: function () { return chunkMPCF5XBW_cjs.QueryBuilder; }
561
561
  });
562
562
  Object.defineProperty(exports, "RecordedStoreView", {
563
563
  enumerable: true,
564
- get: function () { return chunkVKMLQTXP_cjs.RecordedStoreView; }
564
+ get: function () { return chunkMPCF5XBW_cjs.RecordedStoreView; }
565
565
  });
566
566
  Object.defineProperty(exports, "StoreAnalysisCursorStaleError", {
567
567
  enumerable: true,
568
- get: function () { return chunkVKMLQTXP_cjs.StoreAnalysisCursorStaleError; }
568
+ get: function () { return chunkMPCF5XBW_cjs.StoreAnalysisCursorStaleError; }
569
569
  });
570
570
  Object.defineProperty(exports, "StoreSearch", {
571
571
  enumerable: true,
572
- get: function () { return chunkVKMLQTXP_cjs.StoreSearch; }
572
+ get: function () { return chunkMPCF5XBW_cjs.StoreSearch; }
573
573
  });
574
574
  Object.defineProperty(exports, "StoreView", {
575
575
  enumerable: true,
576
- get: function () { return chunkVKMLQTXP_cjs.StoreView; }
576
+ get: function () { return chunkMPCF5XBW_cjs.StoreView; }
577
577
  });
578
578
  Object.defineProperty(exports, "UnionableQuery", {
579
579
  enumerable: true,
580
- get: function () { return chunkVKMLQTXP_cjs.UnionableQuery; }
580
+ get: function () { return chunkMPCF5XBW_cjs.UnionableQuery; }
581
581
  });
582
582
  Object.defineProperty(exports, "avg", {
583
583
  enumerable: true,
584
- get: function () { return chunkVKMLQTXP_cjs.avg; }
584
+ get: function () { return chunkMPCF5XBW_cjs.avg; }
585
585
  });
586
586
  Object.defineProperty(exports, "composeFragments", {
587
587
  enumerable: true,
588
- get: function () { return chunkVKMLQTXP_cjs.composeFragments; }
588
+ get: function () { return chunkMPCF5XBW_cjs.composeFragments; }
589
589
  });
590
590
  Object.defineProperty(exports, "count", {
591
591
  enumerable: true,
592
- get: function () { return chunkVKMLQTXP_cjs.count; }
592
+ get: function () { return chunkMPCF5XBW_cjs.count; }
593
593
  });
594
594
  Object.defineProperty(exports, "countDistinct", {
595
595
  enumerable: true,
596
- get: function () { return chunkVKMLQTXP_cjs.countDistinct; }
596
+ get: function () { return chunkMPCF5XBW_cjs.countDistinct; }
597
597
  });
598
598
  Object.defineProperty(exports, "countDistinctEdges", {
599
599
  enumerable: true,
600
- get: function () { return chunkVKMLQTXP_cjs.countDistinctEdges; }
600
+ get: function () { return chunkMPCF5XBW_cjs.countDistinctEdges; }
601
601
  });
602
602
  Object.defineProperty(exports, "countEdges", {
603
603
  enumerable: true,
604
- get: function () { return chunkVKMLQTXP_cjs.countEdges; }
604
+ get: function () { return chunkMPCF5XBW_cjs.countEdges; }
605
605
  });
606
606
  Object.defineProperty(exports, "createAdapterStore", {
607
607
  enumerable: true,
608
- get: function () { return chunkVKMLQTXP_cjs.createAdapterStore; }
608
+ get: function () { return chunkMPCF5XBW_cjs.createAdapterStore; }
609
609
  });
610
610
  Object.defineProperty(exports, "createAdapterStoreWithSchema", {
611
611
  enumerable: true,
612
- get: function () { return chunkVKMLQTXP_cjs.createAdapterStoreWithSchema; }
612
+ get: function () { return chunkMPCF5XBW_cjs.createAdapterStoreWithSchema; }
613
613
  });
614
614
  Object.defineProperty(exports, "createFragment", {
615
615
  enumerable: true,
616
- get: function () { return chunkVKMLQTXP_cjs.createFragment; }
616
+ get: function () { return chunkMPCF5XBW_cjs.createFragment; }
617
617
  });
618
618
  Object.defineProperty(exports, "createQueryBuilder", {
619
619
  enumerable: true,
620
- get: function () { return chunkVKMLQTXP_cjs.createQueryBuilder; }
620
+ get: function () { return chunkMPCF5XBW_cjs.createQueryBuilder; }
621
621
  });
622
622
  Object.defineProperty(exports, "createStore", {
623
623
  enumerable: true,
624
- get: function () { return chunkVKMLQTXP_cjs.createStore; }
624
+ get: function () { return chunkMPCF5XBW_cjs.createStore; }
625
625
  });
626
626
  Object.defineProperty(exports, "createStoreWithSchema", {
627
627
  enumerable: true,
628
- get: function () { return chunkVKMLQTXP_cjs.createStoreWithSchema; }
628
+ get: function () { return chunkMPCF5XBW_cjs.createStoreWithSchema; }
629
629
  });
630
630
  Object.defineProperty(exports, "createVerifiedAdapterStore", {
631
631
  enumerable: true,
632
- get: function () { return chunkVKMLQTXP_cjs.createVerifiedAdapterStore; }
632
+ get: function () { return chunkMPCF5XBW_cjs.createVerifiedAdapterStore; }
633
633
  });
634
634
  Object.defineProperty(exports, "createVerifiedStore", {
635
635
  enumerable: true,
636
- get: function () { return chunkVKMLQTXP_cjs.createVerifiedStore; }
636
+ get: function () { return chunkMPCF5XBW_cjs.createVerifiedStore; }
637
637
  });
638
638
  Object.defineProperty(exports, "defineSubgraphProject", {
639
639
  enumerable: true,
640
- get: function () { return chunkVKMLQTXP_cjs.defineSubgraphProject; }
640
+ get: function () { return chunkMPCF5XBW_cjs.defineSubgraphProject; }
641
641
  });
642
642
  Object.defineProperty(exports, "field", {
643
643
  enumerable: true,
644
- get: function () { return chunkVKMLQTXP_cjs.field; }
644
+ get: function () { return chunkMPCF5XBW_cjs.field; }
645
645
  });
646
646
  Object.defineProperty(exports, "having", {
647
647
  enumerable: true,
648
- get: function () { return chunkVKMLQTXP_cjs.having; }
648
+ get: function () { return chunkMPCF5XBW_cjs.having; }
649
649
  });
650
650
  Object.defineProperty(exports, "havingEq", {
651
651
  enumerable: true,
652
- get: function () { return chunkVKMLQTXP_cjs.havingEq; }
652
+ get: function () { return chunkMPCF5XBW_cjs.havingEq; }
653
653
  });
654
654
  Object.defineProperty(exports, "havingGt", {
655
655
  enumerable: true,
656
- get: function () { return chunkVKMLQTXP_cjs.havingGt; }
656
+ get: function () { return chunkMPCF5XBW_cjs.havingGt; }
657
657
  });
658
658
  Object.defineProperty(exports, "havingGte", {
659
659
  enumerable: true,
660
- get: function () { return chunkVKMLQTXP_cjs.havingGte; }
660
+ get: function () { return chunkMPCF5XBW_cjs.havingGte; }
661
661
  });
662
662
  Object.defineProperty(exports, "havingLt", {
663
663
  enumerable: true,
664
- get: function () { return chunkVKMLQTXP_cjs.havingLt; }
664
+ get: function () { return chunkMPCF5XBW_cjs.havingLt; }
665
665
  });
666
666
  Object.defineProperty(exports, "havingLte", {
667
667
  enumerable: true,
668
- get: function () { return chunkVKMLQTXP_cjs.havingLte; }
668
+ get: function () { return chunkMPCF5XBW_cjs.havingLte; }
669
669
  });
670
670
  Object.defineProperty(exports, "limitFragment", {
671
671
  enumerable: true,
672
- get: function () { return chunkVKMLQTXP_cjs.limitFragment; }
672
+ get: function () { return chunkMPCF5XBW_cjs.limitFragment; }
673
673
  });
674
674
  Object.defineProperty(exports, "max", {
675
675
  enumerable: true,
676
- get: function () { return chunkVKMLQTXP_cjs.max; }
676
+ get: function () { return chunkMPCF5XBW_cjs.max; }
677
677
  });
678
678
  Object.defineProperty(exports, "min", {
679
679
  enumerable: true,
680
- get: function () { return chunkVKMLQTXP_cjs.min; }
680
+ get: function () { return chunkMPCF5XBW_cjs.min; }
681
681
  });
682
682
  Object.defineProperty(exports, "offsetFragment", {
683
683
  enumerable: true,
684
- get: function () { return chunkVKMLQTXP_cjs.offsetFragment; }
684
+ get: function () { return chunkMPCF5XBW_cjs.offsetFragment; }
685
685
  });
686
686
  Object.defineProperty(exports, "orderByFragment", {
687
687
  enumerable: true,
688
- get: function () { return chunkVKMLQTXP_cjs.orderByFragment; }
688
+ get: function () { return chunkMPCF5XBW_cjs.orderByFragment; }
689
689
  });
690
690
  Object.defineProperty(exports, "sum", {
691
691
  enumerable: true,
692
- get: function () { return chunkVKMLQTXP_cjs.sum; }
692
+ get: function () { return chunkMPCF5XBW_cjs.sum; }
693
693
  });
694
694
  Object.defineProperty(exports, "sqliteVecStrategy", {
695
695
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ExecutableAggregateQuery, ExecutableProjectionQuery, ExecutableQuery, ExecutableRelationQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-NMLLXBGF.js';
1
+ export { ExecutableAggregateQuery, ExecutableProjectionQuery, ExecutableQuery, ExecutableRelationQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-XIFBU27X.js';
2
2
  export { sqliteVecStrategy } from './chunk-EAJOIHZS.js';
3
3
  export { libsqlVectorStrategy } from './chunk-CI2UDBVH.js';
4
4
  export { createPgvectorStrategy, pgvectorStrategy } from './chunk-VLDTIQW3.js';
@@ -6,7 +6,7 @@ export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecord
6
6
  import './chunk-TR2KKEE2.js';
7
7
  import { LEGACY_EMBEDDINGS_TABLE_NAME } from './chunk-WJDEEL36.js';
8
8
  export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchema, metaEdge } from './chunk-6DNI2NZE.js';
9
- import './chunk-5RTWCMBC.js';
9
+ import './chunk-OA4PF2QI.js';
10
10
  import './chunk-7RGPBLHZ.js';
11
11
  import './chunk-QNDNUCHU.js';
12
12
  import './chunk-G7TFDTGI.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkXGYVKBI5_cjs = require('../chunk-XGYVKBI5.cjs');
4
- var chunkKI7VMCOG_cjs = require('../chunk-KI7VMCOG.cjs');
5
- require('../chunk-ZN24TFVZ.cjs');
3
+ var chunkP52FOZSI_cjs = require('../chunk-P52FOZSI.cjs');
4
+ var chunkQJGQ3FN2_cjs = require('../chunk-QJGQ3FN2.cjs');
5
+ require('../chunk-GLDGT3L3.cjs');
6
6
  require('../chunk-7USI4E2O.cjs');
7
7
  require('../chunk-BJCI4W4M.cjs');
8
8
  require('../chunk-THCONLOL.cjs');
@@ -37,95 +37,95 @@ require('../chunk-7XYPLAPL.cjs');
37
37
 
38
38
  Object.defineProperty(exports, "trustedImportGraph", {
39
39
  enumerable: true,
40
- get: function () { return chunkXGYVKBI5_cjs.trustedImportGraph; }
40
+ get: function () { return chunkP52FOZSI_cjs.trustedImportGraph; }
41
41
  });
42
42
  Object.defineProperty(exports, "trustedImportGraphStream", {
43
43
  enumerable: true,
44
- get: function () { return chunkXGYVKBI5_cjs.trustedImportGraphStream; }
44
+ get: function () { return chunkP52FOZSI_cjs.trustedImportGraphStream; }
45
45
  });
46
46
  Object.defineProperty(exports, "ConflictStrategySchema", {
47
47
  enumerable: true,
48
- get: function () { return chunkKI7VMCOG_cjs.ConflictStrategySchema; }
48
+ get: function () { return chunkQJGQ3FN2_cjs.ConflictStrategySchema; }
49
49
  });
50
50
  Object.defineProperty(exports, "ExportOptionsSchema", {
51
51
  enumerable: true,
52
- get: function () { return chunkKI7VMCOG_cjs.ExportOptionsSchema; }
52
+ get: function () { return chunkQJGQ3FN2_cjs.ExportOptionsSchema; }
53
53
  });
54
54
  Object.defineProperty(exports, "ExportStreamOptionsSchema", {
55
55
  enumerable: true,
56
- get: function () { return chunkKI7VMCOG_cjs.ExportStreamOptionsSchema; }
56
+ get: function () { return chunkQJGQ3FN2_cjs.ExportStreamOptionsSchema; }
57
57
  });
58
58
  Object.defineProperty(exports, "FORMAT_VERSION", {
59
59
  enumerable: true,
60
- get: function () { return chunkKI7VMCOG_cjs.FORMAT_VERSION; }
60
+ get: function () { return chunkQJGQ3FN2_cjs.FORMAT_VERSION; }
61
61
  });
62
62
  Object.defineProperty(exports, "GraphDataHeaderSchema", {
63
63
  enumerable: true,
64
- get: function () { return chunkKI7VMCOG_cjs.GraphDataHeaderSchema; }
64
+ get: function () { return chunkQJGQ3FN2_cjs.GraphDataHeaderSchema; }
65
65
  });
66
66
  Object.defineProperty(exports, "GraphDataSchema", {
67
67
  enumerable: true,
68
- get: function () { return chunkKI7VMCOG_cjs.GraphDataSchema; }
68
+ get: function () { return chunkQJGQ3FN2_cjs.GraphDataSchema; }
69
69
  });
70
70
  Object.defineProperty(exports, "GraphDataSourceSchema", {
71
71
  enumerable: true,
72
- get: function () { return chunkKI7VMCOG_cjs.GraphDataSourceSchema; }
72
+ get: function () { return chunkQJGQ3FN2_cjs.GraphDataSourceSchema; }
73
73
  });
74
74
  Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
75
75
  enumerable: true,
76
- get: function () { return chunkKI7VMCOG_cjs.GraphInterchangeChunkSchema; }
76
+ get: function () { return chunkQJGQ3FN2_cjs.GraphInterchangeChunkSchema; }
77
77
  });
78
78
  Object.defineProperty(exports, "IdentityInterchangeModeSchema", {
79
79
  enumerable: true,
80
- get: function () { return chunkKI7VMCOG_cjs.IdentityInterchangeModeSchema; }
80
+ get: function () { return chunkQJGQ3FN2_cjs.IdentityInterchangeModeSchema; }
81
81
  });
82
82
  Object.defineProperty(exports, "ImportErrorSchema", {
83
83
  enumerable: true,
84
- get: function () { return chunkKI7VMCOG_cjs.ImportErrorSchema; }
84
+ get: function () { return chunkQJGQ3FN2_cjs.ImportErrorSchema; }
85
85
  });
86
86
  Object.defineProperty(exports, "ImportOptionsSchema", {
87
87
  enumerable: true,
88
- get: function () { return chunkKI7VMCOG_cjs.ImportOptionsSchema; }
88
+ get: function () { return chunkQJGQ3FN2_cjs.ImportOptionsSchema; }
89
89
  });
90
90
  Object.defineProperty(exports, "ImportResultSchema", {
91
91
  enumerable: true,
92
- get: function () { return chunkKI7VMCOG_cjs.ImportResultSchema; }
92
+ get: function () { return chunkQJGQ3FN2_cjs.ImportResultSchema; }
93
93
  });
94
94
  Object.defineProperty(exports, "InterchangeEdgeSchema", {
95
95
  enumerable: true,
96
- get: function () { return chunkKI7VMCOG_cjs.InterchangeEdgeSchema; }
96
+ get: function () { return chunkQJGQ3FN2_cjs.InterchangeEdgeSchema; }
97
97
  });
98
98
  Object.defineProperty(exports, "InterchangeIdentityAssertionSchema", {
99
99
  enumerable: true,
100
- get: function () { return chunkKI7VMCOG_cjs.InterchangeIdentityAssertionSchema; }
100
+ get: function () { return chunkQJGQ3FN2_cjs.InterchangeIdentityAssertionSchema; }
101
101
  });
102
102
  Object.defineProperty(exports, "InterchangeIdentitySchema", {
103
103
  enumerable: true,
104
- get: function () { return chunkKI7VMCOG_cjs.InterchangeIdentitySchema; }
104
+ get: function () { return chunkQJGQ3FN2_cjs.InterchangeIdentitySchema; }
105
105
  });
106
106
  Object.defineProperty(exports, "InterchangeNodeSchema", {
107
107
  enumerable: true,
108
- get: function () { return chunkKI7VMCOG_cjs.InterchangeNodeSchema; }
108
+ get: function () { return chunkQJGQ3FN2_cjs.InterchangeNodeSchema; }
109
109
  });
110
110
  Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
111
111
  enumerable: true,
112
- get: function () { return chunkKI7VMCOG_cjs.UnknownPropertyStrategySchema; }
112
+ get: function () { return chunkQJGQ3FN2_cjs.UnknownPropertyStrategySchema; }
113
113
  });
114
114
  Object.defineProperty(exports, "exportGraph", {
115
115
  enumerable: true,
116
- get: function () { return chunkKI7VMCOG_cjs.exportGraph; }
116
+ get: function () { return chunkQJGQ3FN2_cjs.exportGraph; }
117
117
  });
118
118
  Object.defineProperty(exports, "exportGraphStream", {
119
119
  enumerable: true,
120
- get: function () { return chunkKI7VMCOG_cjs.exportGraphStream; }
120
+ get: function () { return chunkQJGQ3FN2_cjs.exportGraphStream; }
121
121
  });
122
122
  Object.defineProperty(exports, "importGraph", {
123
123
  enumerable: true,
124
- get: function () { return chunkKI7VMCOG_cjs.importGraph; }
124
+ get: function () { return chunkQJGQ3FN2_cjs.importGraph; }
125
125
  });
126
126
  Object.defineProperty(exports, "importGraphStream", {
127
127
  enumerable: true,
128
- get: function () { return chunkKI7VMCOG_cjs.importGraphStream; }
128
+ get: function () { return chunkQJGQ3FN2_cjs.importGraphStream; }
129
129
  });
130
130
  //# sourceMappingURL=index.cjs.map
131
131
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
- export { trustedImportGraph, trustedImportGraphStream } from '../chunk-MSUUUG5B.js';
2
- export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-ORTKLAAU.js';
3
- import '../chunk-5RTWCMBC.js';
1
+ export { trustedImportGraph, trustedImportGraphStream } from '../chunk-TI2O2U4G.js';
2
+ export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-LJG2TYCN.js';
3
+ import '../chunk-OA4PF2QI.js';
4
4
  import '../chunk-7RGPBLHZ.js';
5
5
  import '../chunk-QNDNUCHU.js';
6
6
  import '../chunk-G7TFDTGI.js';
@@ -3,12 +3,12 @@ import './chunk-H4FY6OZK.js';
3
3
  import './chunk-SLVNQ663.js';
4
4
  import { createSqliteTables } from './chunk-35UUWWCW.js';
5
5
  import './chunk-YVF4VVOJ.js';
6
- import { createStoreWithSchema } from './chunk-NMLLXBGF.js';
6
+ import { createStoreWithSchema } from './chunk-XIFBU27X.js';
7
7
  import './chunk-EAJOIHZS.js';
8
8
  import './chunk-VLDTIQW3.js';
9
9
  import './chunk-TR2KKEE2.js';
10
10
  import './chunk-WJDEEL36.js';
11
- import './chunk-5RTWCMBC.js';
11
+ import './chunk-OA4PF2QI.js';
12
12
  import './chunk-7RGPBLHZ.js';
13
13
  import './chunk-QNDNUCHU.js';
14
14
  import './chunk-G7TFDTGI.js';
@@ -80,5 +80,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
80
80
  }
81
81
 
82
82
  export { createLocalSqliteStoreImpl };
83
- //# sourceMappingURL=local-store-impl-ALYCG7CX.js.map
84
- //# sourceMappingURL=local-store-impl-ALYCG7CX.js.map
83
+ //# sourceMappingURL=local-store-impl-HPNBERU4.js.map
84
+ //# sourceMappingURL=local-store-impl-HPNBERU4.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,kBAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,wBAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-ALYCG7CX.js","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,kBAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,wBAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-HPNBERU4.js","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
@@ -5,12 +5,12 @@ require('./chunk-QCD5JKU4.cjs');
5
5
  require('./chunk-TJ67WWF6.cjs');
6
6
  var chunkUFUXXN4U_cjs = require('./chunk-UFUXXN4U.cjs');
7
7
  require('./chunk-6F3HFVD2.cjs');
8
- var chunkVKMLQTXP_cjs = require('./chunk-VKMLQTXP.cjs');
8
+ var chunkMPCF5XBW_cjs = require('./chunk-MPCF5XBW.cjs');
9
9
  require('./chunk-4F32L7D7.cjs');
10
10
  require('./chunk-GZBI2EQM.cjs');
11
11
  require('./chunk-B5C2V2LN.cjs');
12
12
  require('./chunk-NTLYNEMV.cjs');
13
- require('./chunk-ZN24TFVZ.cjs');
13
+ require('./chunk-GLDGT3L3.cjs');
14
14
  require('./chunk-7USI4E2O.cjs');
15
15
  require('./chunk-BJCI4W4M.cjs');
16
16
  require('./chunk-THCONLOL.cjs');
@@ -68,7 +68,7 @@ async function createLocalSqliteStoreImpl(graph, options) {
68
68
  ...tables === void 0 ? {} : { tables }
69
69
  });
70
70
  try {
71
- const [store] = await chunkVKMLQTXP_cjs.createStoreWithSchema(graph, backend, {
71
+ const [store] = await chunkMPCF5XBW_cjs.createStoreWithSchema(graph, backend, {
72
72
  ...options.store,
73
73
  // The type already excludes `schema` here; the runtime strip guards
74
74
  // untyped callers, so the provisioned schema (or the default tables)
@@ -82,5 +82,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
82
82
  }
83
83
 
84
84
  exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
85
- //# sourceMappingURL=local-store-impl-2HTGPM6A.cjs.map
86
- //# sourceMappingURL=local-store-impl-2HTGPM6A.cjs.map
85
+ //# sourceMappingURL=local-store-impl-WIVQ5HDM.cjs.map
86
+ //# sourceMappingURL=local-store-impl-WIVQ5HDM.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-2HTGPM6A.cjs","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-WIVQ5HDM.cjs","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
@@ -4,11 +4,11 @@ var chunkTFB7EUFP_cjs = require('./chunk-TFB7EUFP.cjs');
4
4
  require('./chunk-TJ67WWF6.cjs');
5
5
  var chunkUFUXXN4U_cjs = require('./chunk-UFUXXN4U.cjs');
6
6
  require('./chunk-6F3HFVD2.cjs');
7
- var chunkVKMLQTXP_cjs = require('./chunk-VKMLQTXP.cjs');
7
+ var chunkMPCF5XBW_cjs = require('./chunk-MPCF5XBW.cjs');
8
8
  require('./chunk-GZBI2EQM.cjs');
9
9
  require('./chunk-B5C2V2LN.cjs');
10
10
  require('./chunk-NTLYNEMV.cjs');
11
- require('./chunk-ZN24TFVZ.cjs');
11
+ require('./chunk-GLDGT3L3.cjs');
12
12
  require('./chunk-7USI4E2O.cjs');
13
13
  require('./chunk-BJCI4W4M.cjs');
14
14
  require('./chunk-THCONLOL.cjs');
@@ -65,7 +65,7 @@ async function createLocalPgliteStoreImpl(graph, options) {
65
65
  ...tables === void 0 ? {} : { tables }
66
66
  });
67
67
  try {
68
- const [store] = await chunkVKMLQTXP_cjs.createStoreWithSchema(graph, backend, {
68
+ const [store] = await chunkMPCF5XBW_cjs.createStoreWithSchema(graph, backend, {
69
69
  ...options.store,
70
70
  // The type already excludes `schema` here; the runtime strip guards
71
71
  // untyped callers, so the provisioned schema (or the default tables)
@@ -79,5 +79,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
79
79
  }
80
80
 
81
81
  exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
82
- //# sourceMappingURL=pglite-store-impl-F2WHYIM7.cjs.map
83
- //# sourceMappingURL=pglite-store-impl-F2WHYIM7.cjs.map
82
+ //# sourceMappingURL=pglite-store-impl-IXKIXLH6.cjs.map
83
+ //# sourceMappingURL=pglite-store-impl-IXKIXLH6.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-F2WHYIM7.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-IXKIXLH6.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(options.fulltext === undefined ? {} : { fulltext: options.fulltext }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
@@ -2,11 +2,11 @@ import { createLocalPgliteBackend } from './chunk-2SAPKIP5.js';
2
2
  import './chunk-SLVNQ663.js';
3
3
  import { createPostgresTables } from './chunk-35UUWWCW.js';
4
4
  import './chunk-YVF4VVOJ.js';
5
- import { createStoreWithSchema } from './chunk-NMLLXBGF.js';
5
+ import { createStoreWithSchema } from './chunk-XIFBU27X.js';
6
6
  import './chunk-VLDTIQW3.js';
7
7
  import './chunk-TR2KKEE2.js';
8
8
  import './chunk-WJDEEL36.js';
9
- import './chunk-5RTWCMBC.js';
9
+ import './chunk-OA4PF2QI.js';
10
10
  import './chunk-7RGPBLHZ.js';
11
11
  import './chunk-QNDNUCHU.js';
12
12
  import './chunk-G7TFDTGI.js';
@@ -77,5 +77,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
77
77
  }
78
78
 
79
79
  export { createLocalPgliteStoreImpl };
80
- //# sourceMappingURL=pglite-store-impl-3UUTJLGP.js.map
81
- //# sourceMappingURL=pglite-store-impl-3UUTJLGP.js.map
80
+ //# sourceMappingURL=pglite-store-impl-U3TW3Z4C.js.map
81
+ //# sourceMappingURL=pglite-store-impl-U3TW3Z4C.js.map