@nicia-ai/typegraph 0.59.0 → 0.60.0

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 (81) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +3 -0
  3. package/dist/backend/postgres/pglite-store.cjs +1 -1
  4. package/dist/backend/postgres/pglite-store.d.cts +2 -2
  5. package/dist/backend/postgres/pglite-store.d.ts +2 -2
  6. package/dist/backend/postgres/pglite-store.js +1 -1
  7. package/dist/backend/sqlite/local-store.cjs +1 -1
  8. package/dist/backend/sqlite/local-store.d.cts +2 -2
  9. package/dist/backend/sqlite/local-store.d.ts +2 -2
  10. package/dist/backend/sqlite/local-store.js +1 -1
  11. package/dist/{chunk-MKQY4ZLZ.js → chunk-2DKIJP2R.js} +73 -41
  12. package/dist/chunk-2DKIJP2R.js.map +1 -0
  13. package/dist/{chunk-6BVZHDAZ.js → chunk-43DOTETB.js} +3 -3
  14. package/dist/{chunk-6BVZHDAZ.js.map → chunk-43DOTETB.js.map} +1 -1
  15. package/dist/{chunk-IV5W7LKW.cjs → chunk-A22XPVBQ.cjs} +2 -2
  16. package/dist/chunk-A22XPVBQ.cjs.map +1 -0
  17. package/dist/{chunk-W4NT4IMI.js → chunk-B4P4DAW3.js} +3 -3
  18. package/dist/{chunk-W4NT4IMI.js.map → chunk-B4P4DAW3.js.map} +1 -1
  19. package/dist/{chunk-CA76FVJB.cjs → chunk-CNFKFE5L.cjs} +399 -367
  20. package/dist/chunk-CNFKFE5L.cjs.map +1 -0
  21. package/dist/{chunk-EN67I47R.cjs → chunk-EHDLHPMK.cjs} +9 -9
  22. package/dist/{chunk-EN67I47R.cjs.map → chunk-EHDLHPMK.cjs.map} +1 -1
  23. package/dist/{chunk-V3JKR2CN.js → chunk-FTDRMXIJ.js} +5 -5
  24. package/dist/{chunk-V3JKR2CN.js.map → chunk-FTDRMXIJ.js.map} +1 -1
  25. package/dist/{chunk-3GX5HTPP.js → chunk-ILVXUOQY.js} +3 -3
  26. package/dist/{chunk-3GX5HTPP.js.map → chunk-ILVXUOQY.js.map} +1 -1
  27. package/dist/{chunk-XGYUUUHY.cjs → chunk-KGQVK2II.cjs} +40 -40
  28. package/dist/{chunk-XGYUUUHY.cjs.map → chunk-KGQVK2II.cjs.map} +1 -1
  29. package/dist/{chunk-BPYZUJX5.cjs → chunk-MTJAT6UO.cjs} +5 -5
  30. package/dist/{chunk-BPYZUJX5.cjs.map → chunk-MTJAT6UO.cjs.map} +1 -1
  31. package/dist/{chunk-2GZL5ED3.cjs → chunk-OKA6H3B3.cjs} +19 -19
  32. package/dist/{chunk-2GZL5ED3.cjs.map → chunk-OKA6H3B3.cjs.map} +1 -1
  33. package/dist/{chunk-26CL47SW.cjs → chunk-PTFO3JI5.cjs} +110 -110
  34. package/dist/{chunk-26CL47SW.cjs.map → chunk-PTFO3JI5.cjs.map} +1 -1
  35. package/dist/{chunk-UOHFBYYH.cjs → chunk-Q6ZVQWH7.cjs} +36 -36
  36. package/dist/{chunk-UOHFBYYH.cjs.map → chunk-Q6ZVQWH7.cjs.map} +1 -1
  37. package/dist/{chunk-HWWPL2YL.js → chunk-QWIR5533.js} +2 -2
  38. package/dist/chunk-QWIR5533.js.map +1 -0
  39. package/dist/{chunk-DZ3ETMXF.js → chunk-UVQMUBZ6.js} +6 -6
  40. package/dist/{chunk-DZ3ETMXF.js.map → chunk-UVQMUBZ6.js.map} +1 -1
  41. package/dist/{chunk-E6PU35DE.js → chunk-W6K6NSRT.js} +4 -4
  42. package/dist/{chunk-E6PU35DE.js.map → chunk-W6K6NSRT.js.map} +1 -1
  43. package/dist/graph-merge/index.cjs +119 -119
  44. package/dist/graph-merge/index.d.cts +2 -2
  45. package/dist/graph-merge/index.d.ts +2 -2
  46. package/dist/graph-merge/index.js +7 -7
  47. package/dist/{graph-templates-DQnmCPkd.d.ts → graph-templates-ClBhrXiA.d.ts} +1 -1
  48. package/dist/{graph-templates-Buh-RlmQ.d.cts → graph-templates-DfmKDARd.d.cts} +1 -1
  49. package/dist/index.cjs +68 -68
  50. package/dist/index.d.cts +3 -3
  51. package/dist/index.d.ts +3 -3
  52. package/dist/index.js +8 -8
  53. package/dist/interchange/index.cjs +28 -28
  54. package/dist/interchange/index.d.cts +2 -2
  55. package/dist/interchange/index.d.ts +2 -2
  56. package/dist/interchange/index.js +5 -5
  57. package/dist/{local-store-impl-GFBZBCTN.cjs → local-store-impl-QGSRYFZF.cjs} +9 -9
  58. package/dist/{local-store-impl-GFBZBCTN.cjs.map → local-store-impl-QGSRYFZF.cjs.map} +1 -1
  59. package/dist/{local-store-impl-EPUMDNQJ.js → local-store-impl-VEVK2VGA.js} +8 -8
  60. package/dist/{local-store-impl-EPUMDNQJ.js.map → local-store-impl-VEVK2VGA.js.map} +1 -1
  61. package/dist/{pglite-store-impl-DB4RRLB7.cjs → pglite-store-impl-33CI3P3M.cjs} +9 -9
  62. package/dist/{pglite-store-impl-DB4RRLB7.cjs.map → pglite-store-impl-33CI3P3M.cjs.map} +1 -1
  63. package/dist/{pglite-store-impl-M5PWKN7Z.js → pglite-store-impl-RDPTOOP3.js} +8 -8
  64. package/dist/{pglite-store-impl-M5PWKN7Z.js.map → pglite-store-impl-RDPTOOP3.js.map} +1 -1
  65. package/dist/profiler/index.d.cts +2 -2
  66. package/dist/profiler/index.d.ts +2 -2
  67. package/dist/provenance/index.cjs +15 -15
  68. package/dist/provenance/index.d.cts +2 -2
  69. package/dist/provenance/index.d.ts +2 -2
  70. package/dist/provenance/index.js +2 -2
  71. package/dist/schema/index.cjs +34 -34
  72. package/dist/schema/index.d.cts +3 -3
  73. package/dist/schema/index.d.ts +3 -3
  74. package/dist/schema/index.js +4 -4
  75. package/dist/{store-sLu0hcRm.d.ts → store-B5WZ8E5m.d.ts} +225 -215
  76. package/dist/{store-CvtRQ8Nb.d.cts → store-DdhFpX53.d.cts} +225 -215
  77. package/package.json +1 -1
  78. package/dist/chunk-CA76FVJB.cjs.map +0 -1
  79. package/dist/chunk-HWWPL2YL.js.map +0 -1
  80. package/dist/chunk-IV5W7LKW.cjs.map +0 -1
  81. package/dist/chunk-MKQY4ZLZ.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkXGYUUUHY_cjs = require('../chunk-XGYUUUHY.cjs');
4
- require('../chunk-26CL47SW.cjs');
5
- require('../chunk-BPYZUJX5.cjs');
3
+ var chunkKGQVK2II_cjs = require('../chunk-KGQVK2II.cjs');
4
+ require('../chunk-PTFO3JI5.cjs');
5
+ require('../chunk-MTJAT6UO.cjs');
6
6
  require('../chunk-Y6M5BFRJ.cjs');
7
7
  require('../chunk-GD7IWK36.cjs');
8
8
  require('../chunk-R255UE5U.cjs');
9
9
  require('../chunk-XUCVGEJT.cjs');
10
- require('../chunk-UOHFBYYH.cjs');
11
- require('../chunk-IV5W7LKW.cjs');
10
+ require('../chunk-Q6ZVQWH7.cjs');
11
+ require('../chunk-A22XPVBQ.cjs');
12
12
  require('../chunk-WEXAMJTA.cjs');
13
13
  require('../chunk-OGK7F2J3.cjs');
14
14
  require('../chunk-EOLNL35G.cjs');
@@ -32,95 +32,95 @@ require('../chunk-BXHAPCQG.cjs');
32
32
 
33
33
  Object.defineProperty(exports, "ConflictStrategySchema", {
34
34
  enumerable: true,
35
- get: function () { return chunkXGYUUUHY_cjs.ConflictStrategySchema; }
35
+ get: function () { return chunkKGQVK2II_cjs.ConflictStrategySchema; }
36
36
  });
37
37
  Object.defineProperty(exports, "ExportOptionsSchema", {
38
38
  enumerable: true,
39
- get: function () { return chunkXGYUUUHY_cjs.ExportOptionsSchema; }
39
+ get: function () { return chunkKGQVK2II_cjs.ExportOptionsSchema; }
40
40
  });
41
41
  Object.defineProperty(exports, "ExportStreamOptionsSchema", {
42
42
  enumerable: true,
43
- get: function () { return chunkXGYUUUHY_cjs.ExportStreamOptionsSchema; }
43
+ get: function () { return chunkKGQVK2II_cjs.ExportStreamOptionsSchema; }
44
44
  });
45
45
  Object.defineProperty(exports, "FORMAT_VERSION", {
46
46
  enumerable: true,
47
- get: function () { return chunkXGYUUUHY_cjs.FORMAT_VERSION; }
47
+ get: function () { return chunkKGQVK2II_cjs.FORMAT_VERSION; }
48
48
  });
49
49
  Object.defineProperty(exports, "GraphDataHeaderSchema", {
50
50
  enumerable: true,
51
- get: function () { return chunkXGYUUUHY_cjs.GraphDataHeaderSchema; }
51
+ get: function () { return chunkKGQVK2II_cjs.GraphDataHeaderSchema; }
52
52
  });
53
53
  Object.defineProperty(exports, "GraphDataSchema", {
54
54
  enumerable: true,
55
- get: function () { return chunkXGYUUUHY_cjs.GraphDataSchema; }
55
+ get: function () { return chunkKGQVK2II_cjs.GraphDataSchema; }
56
56
  });
57
57
  Object.defineProperty(exports, "GraphDataSourceSchema", {
58
58
  enumerable: true,
59
- get: function () { return chunkXGYUUUHY_cjs.GraphDataSourceSchema; }
59
+ get: function () { return chunkKGQVK2II_cjs.GraphDataSourceSchema; }
60
60
  });
61
61
  Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
62
62
  enumerable: true,
63
- get: function () { return chunkXGYUUUHY_cjs.GraphInterchangeChunkSchema; }
63
+ get: function () { return chunkKGQVK2II_cjs.GraphInterchangeChunkSchema; }
64
64
  });
65
65
  Object.defineProperty(exports, "IdentityInterchangeModeSchema", {
66
66
  enumerable: true,
67
- get: function () { return chunkXGYUUUHY_cjs.IdentityInterchangeModeSchema; }
67
+ get: function () { return chunkKGQVK2II_cjs.IdentityInterchangeModeSchema; }
68
68
  });
69
69
  Object.defineProperty(exports, "ImportErrorSchema", {
70
70
  enumerable: true,
71
- get: function () { return chunkXGYUUUHY_cjs.ImportErrorSchema; }
71
+ get: function () { return chunkKGQVK2II_cjs.ImportErrorSchema; }
72
72
  });
73
73
  Object.defineProperty(exports, "ImportOptionsSchema", {
74
74
  enumerable: true,
75
- get: function () { return chunkXGYUUUHY_cjs.ImportOptionsSchema; }
75
+ get: function () { return chunkKGQVK2II_cjs.ImportOptionsSchema; }
76
76
  });
77
77
  Object.defineProperty(exports, "ImportResultSchema", {
78
78
  enumerable: true,
79
- get: function () { return chunkXGYUUUHY_cjs.ImportResultSchema; }
79
+ get: function () { return chunkKGQVK2II_cjs.ImportResultSchema; }
80
80
  });
81
81
  Object.defineProperty(exports, "InterchangeEdgeSchema", {
82
82
  enumerable: true,
83
- get: function () { return chunkXGYUUUHY_cjs.InterchangeEdgeSchema; }
83
+ get: function () { return chunkKGQVK2II_cjs.InterchangeEdgeSchema; }
84
84
  });
85
85
  Object.defineProperty(exports, "InterchangeIdentityAssertionSchema", {
86
86
  enumerable: true,
87
- get: function () { return chunkXGYUUUHY_cjs.InterchangeIdentityAssertionSchema; }
87
+ get: function () { return chunkKGQVK2II_cjs.InterchangeIdentityAssertionSchema; }
88
88
  });
89
89
  Object.defineProperty(exports, "InterchangeIdentitySchema", {
90
90
  enumerable: true,
91
- get: function () { return chunkXGYUUUHY_cjs.InterchangeIdentitySchema; }
91
+ get: function () { return chunkKGQVK2II_cjs.InterchangeIdentitySchema; }
92
92
  });
93
93
  Object.defineProperty(exports, "InterchangeNodeSchema", {
94
94
  enumerable: true,
95
- get: function () { return chunkXGYUUUHY_cjs.InterchangeNodeSchema; }
95
+ get: function () { return chunkKGQVK2II_cjs.InterchangeNodeSchema; }
96
96
  });
97
97
  Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
98
98
  enumerable: true,
99
- get: function () { return chunkXGYUUUHY_cjs.UnknownPropertyStrategySchema; }
99
+ get: function () { return chunkKGQVK2II_cjs.UnknownPropertyStrategySchema; }
100
100
  });
101
101
  Object.defineProperty(exports, "exportGraph", {
102
102
  enumerable: true,
103
- get: function () { return chunkXGYUUUHY_cjs.exportGraph; }
103
+ get: function () { return chunkKGQVK2II_cjs.exportGraph; }
104
104
  });
105
105
  Object.defineProperty(exports, "exportGraphStream", {
106
106
  enumerable: true,
107
- get: function () { return chunkXGYUUUHY_cjs.exportGraphStream; }
107
+ get: function () { return chunkKGQVK2II_cjs.exportGraphStream; }
108
108
  });
109
109
  Object.defineProperty(exports, "importGraph", {
110
110
  enumerable: true,
111
- get: function () { return chunkXGYUUUHY_cjs.importGraph; }
111
+ get: function () { return chunkKGQVK2II_cjs.importGraph; }
112
112
  });
113
113
  Object.defineProperty(exports, "importGraphStream", {
114
114
  enumerable: true,
115
- get: function () { return chunkXGYUUUHY_cjs.importGraphStream; }
115
+ get: function () { return chunkKGQVK2II_cjs.importGraphStream; }
116
116
  });
117
117
  Object.defineProperty(exports, "trustedImportGraph", {
118
118
  enumerable: true,
119
- get: function () { return chunkXGYUUUHY_cjs.trustedImportGraph; }
119
+ get: function () { return chunkKGQVK2II_cjs.trustedImportGraph; }
120
120
  });
121
121
  Object.defineProperty(exports, "trustedImportGraphStream", {
122
122
  enumerable: true,
123
- get: function () { return chunkXGYUUUHY_cjs.trustedImportGraphStream; }
123
+ get: function () { return chunkKGQVK2II_cjs.trustedImportGraphStream; }
124
124
  });
125
125
  //# sourceMappingURL=index.cjs.map
126
126
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { e as GraphDef } from '../types-Dky3sCFz.cjs';
2
2
  export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-Dky3sCFz.cjs';
3
- import { b as Store } from '../store-CvtRQ8Nb.cjs';
4
- export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-CvtRQ8Nb.cjs';
3
+ import { b as Store } from '../store-DdhFpX53.cjs';
4
+ export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-DdhFpX53.cjs';
5
5
  import { z } from 'zod';
6
6
  import { I as IngestionImportTarget } from '../ingestion-import-target-BSgJagqI.cjs';
7
7
  import '../searchable-BEAN91Ce.cjs';
@@ -1,7 +1,7 @@
1
1
  import { e as GraphDef } from '../types-Dky3sCFz.js';
2
2
  export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-Dky3sCFz.js';
3
- import { b as Store } from '../store-sLu0hcRm.js';
4
- export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-sLu0hcRm.js';
3
+ import { b as Store } from '../store-B5WZ8E5m.js';
4
+ export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-B5WZ8E5m.js';
5
5
  import { z } from 'zod';
6
6
  import { I as IngestionImportTarget } from '../ingestion-import-target-PNw10V4T.js';
7
7
  import '../searchable-Bg2lMPRm.js';
@@ -1,12 +1,12 @@
1
- export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream } from '../chunk-DZ3ETMXF.js';
2
- import '../chunk-V3JKR2CN.js';
3
- import '../chunk-6BVZHDAZ.js';
1
+ export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream } from '../chunk-UVQMUBZ6.js';
2
+ import '../chunk-FTDRMXIJ.js';
3
+ import '../chunk-43DOTETB.js';
4
4
  import '../chunk-AHRNKPEV.js';
5
5
  import '../chunk-IM4X2ZOR.js';
6
6
  import '../chunk-N535PWMA.js';
7
7
  import '../chunk-2DNUADXX.js';
8
- import '../chunk-W4NT4IMI.js';
9
- import '../chunk-HWWPL2YL.js';
8
+ import '../chunk-B4P4DAW3.js';
9
+ import '../chunk-QWIR5533.js';
10
10
  import '../chunk-XWMB3AFN.js';
11
11
  import '../chunk-ZQIDQHDR.js';
12
12
  import '../chunk-LI7JGO5B.js';
@@ -4,23 +4,23 @@ var chunkQBQ465OX_cjs = require('./chunk-QBQ465OX.cjs');
4
4
  require('./chunk-QCD5JKU4.cjs');
5
5
  var chunkT2M2S5YZ_cjs = require('./chunk-T2M2S5YZ.cjs');
6
6
  require('./chunk-KW3ON5IU.cjs');
7
- var chunkCA76FVJB_cjs = require('./chunk-CA76FVJB.cjs');
7
+ var chunkCNFKFE5L_cjs = require('./chunk-CNFKFE5L.cjs');
8
8
  require('./chunk-PKWAO4NC.cjs');
9
9
  require('./chunk-YB26L7MD.cjs');
10
10
  require('./chunk-7BHUIAZR.cjs');
11
11
  require('./chunk-JFLJVLNU.cjs');
12
12
  require('./chunk-OPEKIWJL.cjs');
13
- require('./chunk-26CL47SW.cjs');
14
- require('./chunk-BPYZUJX5.cjs');
13
+ require('./chunk-PTFO3JI5.cjs');
14
+ require('./chunk-MTJAT6UO.cjs');
15
15
  require('./chunk-Y6M5BFRJ.cjs');
16
16
  require('./chunk-GD7IWK36.cjs');
17
17
  require('./chunk-R255UE5U.cjs');
18
18
  require('./chunk-XUCVGEJT.cjs');
19
- require('./chunk-2GZL5ED3.cjs');
19
+ require('./chunk-OKA6H3B3.cjs');
20
20
  require('./chunk-6YKISECL.cjs');
21
21
  require('./chunk-UVVDQGOY.cjs');
22
- require('./chunk-UOHFBYYH.cjs');
23
- require('./chunk-IV5W7LKW.cjs');
22
+ require('./chunk-Q6ZVQWH7.cjs');
23
+ require('./chunk-A22XPVBQ.cjs');
24
24
  require('./chunk-WEXAMJTA.cjs');
25
25
  require('./chunk-OGK7F2J3.cjs');
26
26
  var chunkEOLNL35G_cjs = require('./chunk-EOLNL35G.cjs');
@@ -63,7 +63,7 @@ async function createLocalSqliteStoreImpl(graph, options) {
63
63
  ...tables === void 0 ? {} : { tables }
64
64
  });
65
65
  try {
66
- const [store] = await chunkCA76FVJB_cjs.createStoreWithSchema(graph, backend, {
66
+ const [store] = await chunkCNFKFE5L_cjs.createStoreWithSchema(graph, backend, {
67
67
  ...options.store,
68
68
  // The type already excludes `schema` here; the runtime strip guards
69
69
  // untyped callers, so the provisioned schema (or the default tables)
@@ -77,5 +77,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
77
77
  }
78
78
 
79
79
  exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
80
- //# sourceMappingURL=local-store-impl-GFBZBCTN.cjs.map
81
- //# sourceMappingURL=local-store-impl-GFBZBCTN.cjs.map
80
+ //# sourceMappingURL=local-store-impl-QGSRYFZF.cjs.map
81
+ //# sourceMappingURL=local-store-impl-QGSRYFZF.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-GFBZBCTN.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-QGSRYFZF.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"]}
@@ -2,23 +2,23 @@ import { createLocalSqliteBackend } from './chunk-7GNPCBS2.js';
2
2
  import './chunk-H4FY6OZK.js';
3
3
  import { createSqliteTables } from './chunk-TNNDNSNH.js';
4
4
  import './chunk-HCNC53MU.js';
5
- import { createStoreWithSchema } from './chunk-MKQY4ZLZ.js';
5
+ import { createStoreWithSchema } from './chunk-2DKIJP2R.js';
6
6
  import './chunk-2AZXVMSX.js';
7
7
  import './chunk-CLGE3366.js';
8
8
  import './chunk-EFTVYPGQ.js';
9
9
  import './chunk-7GZJ36LN.js';
10
10
  import './chunk-VEW3743S.js';
11
- import './chunk-V3JKR2CN.js';
12
- import './chunk-6BVZHDAZ.js';
11
+ import './chunk-FTDRMXIJ.js';
12
+ import './chunk-43DOTETB.js';
13
13
  import './chunk-AHRNKPEV.js';
14
14
  import './chunk-IM4X2ZOR.js';
15
15
  import './chunk-N535PWMA.js';
16
16
  import './chunk-2DNUADXX.js';
17
- import './chunk-E6PU35DE.js';
17
+ import './chunk-W6K6NSRT.js';
18
18
  import './chunk-RFMSZ7CF.js';
19
19
  import './chunk-YXT3CCTR.js';
20
- import './chunk-W4NT4IMI.js';
21
- import './chunk-HWWPL2YL.js';
20
+ import './chunk-B4P4DAW3.js';
21
+ import './chunk-QWIR5533.js';
22
22
  import './chunk-XWMB3AFN.js';
23
23
  import './chunk-ZQIDQHDR.js';
24
24
  import { closeAfterFailure } from './chunk-LI7JGO5B.js';
@@ -75,5 +75,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
75
75
  }
76
76
 
77
77
  export { createLocalSqliteStoreImpl };
78
- //# sourceMappingURL=local-store-impl-EPUMDNQJ.js.map
79
- //# sourceMappingURL=local-store-impl-EPUMDNQJ.js.map
78
+ //# sourceMappingURL=local-store-impl-VEVK2VGA.js.map
79
+ //# sourceMappingURL=local-store-impl-VEVK2VGA.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-EPUMDNQJ.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-VEVK2VGA.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"]}
@@ -3,22 +3,22 @@
3
3
  var chunkDWO6WZP5_cjs = require('./chunk-DWO6WZP5.cjs');
4
4
  var chunkT2M2S5YZ_cjs = require('./chunk-T2M2S5YZ.cjs');
5
5
  require('./chunk-KW3ON5IU.cjs');
6
- var chunkCA76FVJB_cjs = require('./chunk-CA76FVJB.cjs');
6
+ var chunkCNFKFE5L_cjs = require('./chunk-CNFKFE5L.cjs');
7
7
  require('./chunk-YB26L7MD.cjs');
8
8
  require('./chunk-7BHUIAZR.cjs');
9
9
  require('./chunk-JFLJVLNU.cjs');
10
10
  require('./chunk-OPEKIWJL.cjs');
11
- require('./chunk-26CL47SW.cjs');
12
- require('./chunk-BPYZUJX5.cjs');
11
+ require('./chunk-PTFO3JI5.cjs');
12
+ require('./chunk-MTJAT6UO.cjs');
13
13
  require('./chunk-Y6M5BFRJ.cjs');
14
14
  require('./chunk-GD7IWK36.cjs');
15
15
  require('./chunk-R255UE5U.cjs');
16
16
  require('./chunk-XUCVGEJT.cjs');
17
- require('./chunk-2GZL5ED3.cjs');
17
+ require('./chunk-OKA6H3B3.cjs');
18
18
  require('./chunk-6YKISECL.cjs');
19
19
  require('./chunk-UVVDQGOY.cjs');
20
- require('./chunk-UOHFBYYH.cjs');
21
- require('./chunk-IV5W7LKW.cjs');
20
+ require('./chunk-Q6ZVQWH7.cjs');
21
+ require('./chunk-A22XPVBQ.cjs');
22
22
  require('./chunk-WEXAMJTA.cjs');
23
23
  require('./chunk-OGK7F2J3.cjs');
24
24
  var chunkEOLNL35G_cjs = require('./chunk-EOLNL35G.cjs');
@@ -60,7 +60,7 @@ async function createLocalPgliteStoreImpl(graph, options) {
60
60
  ...tables === void 0 ? {} : { tables }
61
61
  });
62
62
  try {
63
- const [store] = await chunkCA76FVJB_cjs.createStoreWithSchema(graph, backend, {
63
+ const [store] = await chunkCNFKFE5L_cjs.createStoreWithSchema(graph, backend, {
64
64
  ...options.store,
65
65
  // The type already excludes `schema` here; the runtime strip guards
66
66
  // untyped callers, so the provisioned schema (or the default tables)
@@ -74,5 +74,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
74
74
  }
75
75
 
76
76
  exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
77
- //# sourceMappingURL=pglite-store-impl-DB4RRLB7.cjs.map
78
- //# sourceMappingURL=pglite-store-impl-DB4RRLB7.cjs.map
77
+ //# sourceMappingURL=pglite-store-impl-33CI3P3M.cjs.map
78
+ //# sourceMappingURL=pglite-store-impl-33CI3P3M.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-DB4RRLB7.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-33CI3P3M.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,22 +1,22 @@
1
1
  import { createLocalPgliteBackend } from './chunk-GYOQAV6R.js';
2
2
  import { createPostgresTables } from './chunk-TNNDNSNH.js';
3
3
  import './chunk-HCNC53MU.js';
4
- import { createStoreWithSchema } from './chunk-MKQY4ZLZ.js';
4
+ import { createStoreWithSchema } from './chunk-2DKIJP2R.js';
5
5
  import './chunk-CLGE3366.js';
6
6
  import './chunk-EFTVYPGQ.js';
7
7
  import './chunk-7GZJ36LN.js';
8
8
  import './chunk-VEW3743S.js';
9
- import './chunk-V3JKR2CN.js';
10
- import './chunk-6BVZHDAZ.js';
9
+ import './chunk-FTDRMXIJ.js';
10
+ import './chunk-43DOTETB.js';
11
11
  import './chunk-AHRNKPEV.js';
12
12
  import './chunk-IM4X2ZOR.js';
13
13
  import './chunk-N535PWMA.js';
14
14
  import './chunk-2DNUADXX.js';
15
- import './chunk-E6PU35DE.js';
15
+ import './chunk-W6K6NSRT.js';
16
16
  import './chunk-RFMSZ7CF.js';
17
17
  import './chunk-YXT3CCTR.js';
18
- import './chunk-W4NT4IMI.js';
19
- import './chunk-HWWPL2YL.js';
18
+ import './chunk-B4P4DAW3.js';
19
+ import './chunk-QWIR5533.js';
20
20
  import './chunk-XWMB3AFN.js';
21
21
  import './chunk-ZQIDQHDR.js';
22
22
  import { closeAfterFailure } from './chunk-LI7JGO5B.js';
@@ -72,5 +72,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
72
72
  }
73
73
 
74
74
  export { createLocalPgliteStoreImpl };
75
- //# sourceMappingURL=pglite-store-impl-M5PWKN7Z.js.map
76
- //# sourceMappingURL=pglite-store-impl-M5PWKN7Z.js.map
75
+ //# sourceMappingURL=pglite-store-impl-RDPTOOP3.js.map
76
+ //# sourceMappingURL=pglite-store-impl-RDPTOOP3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/postgres/pglite-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,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,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,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":"pglite-store-impl-M5PWKN7Z.js","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":[],"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,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,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,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":"pglite-store-impl-RDPTOOP3.js","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,7 +1,7 @@
1
1
  import { e as GraphDef, Q as QueryAst } from '../types-Dky3sCFz.cjs';
2
2
  export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-Dky3sCFz.cjs';
3
- import { b as Store } from '../store-CvtRQ8Nb.cjs';
4
- export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-CvtRQ8Nb.cjs';
3
+ import { b as Store } from '../store-DdhFpX53.cjs';
4
+ export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-DdhFpX53.cjs';
5
5
  import { P as ProfilerOptions, a as ProfileReport } from '../types-BUA3dZ99.cjs';
6
6
  export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-BUA3dZ99.cjs';
7
7
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  import { e as GraphDef, Q as QueryAst } from '../types-Dky3sCFz.js';
2
2
  export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-Dky3sCFz.js';
3
- import { b as Store } from '../store-sLu0hcRm.js';
4
- export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-sLu0hcRm.js';
3
+ import { b as Store } from '../store-B5WZ8E5m.js';
4
+ export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-B5WZ8E5m.js';
5
5
  import { P as ProfilerOptions, a as ProfileReport } from '../types-CPtb7KNf.js';
6
6
  export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CPtb7KNf.js';
7
7
  import 'zod';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkBPYZUJX5_cjs = require('../chunk-BPYZUJX5.cjs');
3
+ var chunkMTJAT6UO_cjs = require('../chunk-MTJAT6UO.cjs');
4
4
  require('../chunk-GD7IWK36.cjs');
5
5
  require('../chunk-R255UE5U.cjs');
6
- var chunkIV5W7LKW_cjs = require('../chunk-IV5W7LKW.cjs');
6
+ var chunkA22XPVBQ_cjs = require('../chunk-A22XPVBQ.cjs');
7
7
  require('../chunk-WEXAMJTA.cjs');
8
8
  var chunkOGK7F2J3_cjs = require('../chunk-OGK7F2J3.cjs');
9
9
  var chunkEOLNL35G_cjs = require('../chunk-EOLNL35G.cjs');
@@ -453,13 +453,13 @@ function getFactRegistration(store, row) {
453
453
  async function closeFactCurrency(backend, store, runHooks, row, lock) {
454
454
  await runHooks("delete", row.kind, row.id, async () => {
455
455
  const registration = getFactRegistration(store, row);
456
- await chunkBPYZUJX5_cjs.applyNodeSoftDelete(
457
- chunkBPYZUJX5_cjs.createNodeWriteContext(
456
+ await chunkMTJAT6UO_cjs.applyNodeSoftDelete(
457
+ chunkMTJAT6UO_cjs.createNodeWriteContext(
458
458
  store.graphId,
459
459
  store.registry,
460
460
  lock,
461
- chunkOGK7F2J3_cjs.createClaimsVerdictThunk(chunkIV5W7LKW_cjs.storeBackend(store)),
462
- chunkBXHAPCQG_cjs.requireDefined(chunkIV5W7LKW_cjs.storeRuntime(store).uniqueSidecarBatch)
461
+ chunkOGK7F2J3_cjs.createClaimsVerdictThunk(chunkA22XPVBQ_cjs.storeBackend(store)),
462
+ chunkBXHAPCQG_cjs.requireDefined(chunkA22XPVBQ_cjs.storeRuntime(store).uniqueSidecarBatch)
463
463
  ),
464
464
  {
465
465
  existing: row,
@@ -475,13 +475,13 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
475
475
  async function reopenFactCurrency(backend, store, runHooks, row, lock) {
476
476
  await runHooks("update", row.kind, row.id, async () => {
477
477
  const registration = getFactRegistration(store, row);
478
- await chunkBPYZUJX5_cjs.applyNodeResurrect(
479
- chunkBPYZUJX5_cjs.createNodeWriteContext(
478
+ await chunkMTJAT6UO_cjs.applyNodeResurrect(
479
+ chunkMTJAT6UO_cjs.createNodeWriteContext(
480
480
  store.graphId,
481
481
  store.registry,
482
482
  lock,
483
- chunkOGK7F2J3_cjs.createClaimsVerdictThunk(chunkIV5W7LKW_cjs.storeBackend(store)),
484
- chunkBXHAPCQG_cjs.requireDefined(chunkIV5W7LKW_cjs.storeRuntime(store).uniqueSidecarBatch)
483
+ chunkOGK7F2J3_cjs.createClaimsVerdictThunk(chunkA22XPVBQ_cjs.storeBackend(store)),
484
+ chunkBXHAPCQG_cjs.requireDefined(chunkA22XPVBQ_cjs.storeRuntime(store).uniqueSidecarBatch)
485
485
  ),
486
486
  {
487
487
  existing: row,
@@ -514,8 +514,8 @@ async function runTransition(store, config, sources, retracted) {
514
514
  );
515
515
  }
516
516
  return store.transaction(async (tx) => {
517
- const backend = chunkIV5W7LKW_cjs.transactionBackend(tx);
518
- const lock = await chunkIV5W7LKW_cjs.lockRecordedGraphWrite(backend, store.graphId);
517
+ const backend = chunkA22XPVBQ_cjs.transactionBackend(tx);
518
+ const lock = await chunkA22XPVBQ_cjs.lockRecordedGraphWrite(backend, store.graphId);
519
519
  const rows = await Promise.all(
520
520
  uniqueSources.map(
521
521
  (source) => backend.getNode(store.graphId, source.kind, source.id)
@@ -551,7 +551,7 @@ async function runTransition(store, config, sources, retracted) {
551
551
  await synchronizeFactCurrency(
552
552
  backend,
553
553
  store,
554
- chunkIV5W7LKW_cjs.transactionNodeOperationHookRunner(tx),
554
+ chunkA22XPVBQ_cjs.transactionNodeOperationHookRunner(tx),
555
555
  after,
556
556
  affected,
557
557
  lock
@@ -577,8 +577,8 @@ function createRetractionCapability(store, config) {
577
577
  unRetractMany: (sources) => transition(sources, false),
578
578
  async holding() {
579
579
  return store.transaction(async (tx) => {
580
- const backend = chunkIV5W7LKW_cjs.transactionBackend(tx);
581
- await chunkIV5W7LKW_cjs.lockRecordedGraphWrite(backend, store.graphId);
580
+ const backend = chunkA22XPVBQ_cjs.transactionBackend(tx);
581
+ await chunkA22XPVBQ_cjs.lockRecordedGraphWrite(backend, store.graphId);
582
582
  const snapshot = await computeSupport(
583
583
  backend,
584
584
  store.graphId,
@@ -1,7 +1,7 @@
1
1
  import { e as GraphDef } from '../types-Dky3sCFz.cjs';
2
2
  export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-Dky3sCFz.cjs';
3
- import { c as HistoryStore } from '../store-CvtRQ8Nb.cjs';
4
- export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-CvtRQ8Nb.cjs';
3
+ import { c as HistoryStore } from '../store-DdhFpX53.cjs';
4
+ export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-DdhFpX53.cjs';
5
5
  import 'zod';
6
6
  import '../searchable-BEAN91Ce.cjs';
7
7
  import '../resolve-mLksuBg2.cjs';
@@ -1,7 +1,7 @@
1
1
  import { e as GraphDef } from '../types-Dky3sCFz.js';
2
2
  export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-Dky3sCFz.js';
3
- import { c as HistoryStore } from '../store-sLu0hcRm.js';
4
- export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-sLu0hcRm.js';
3
+ import { c as HistoryStore } from '../store-B5WZ8E5m.js';
4
+ export { B as BatchReadBuilder, C as CompiledOneStatementRead } from '../store-B5WZ8E5m.js';
5
5
  import 'zod';
6
6
  import '../searchable-Bg2lMPRm.js';
7
7
  import '../resolve-BbjZDYTw.js';
@@ -1,7 +1,7 @@
1
- import { applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-6BVZHDAZ.js';
1
+ import { applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-43DOTETB.js';
2
2
  import '../chunk-IM4X2ZOR.js';
3
3
  import '../chunk-N535PWMA.js';
4
- import { transactionBackend, lockRecordedGraphWrite, transactionNodeOperationHookRunner, storeBackend, storeRuntime } from '../chunk-HWWPL2YL.js';
4
+ import { transactionBackend, lockRecordedGraphWrite, transactionNodeOperationHookRunner, storeBackend, storeRuntime } from '../chunk-QWIR5533.js';
5
5
  import '../chunk-XWMB3AFN.js';
6
6
  import { createClaimsVerdictThunk } from '../chunk-ZQIDQHDR.js';
7
7
  import { rowPropsToObject, isLiveNodeRow, isTombstonedNodeRow } from '../chunk-LI7JGO5B.js';