@nicia-ai/typegraph 0.57.0 → 0.57.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 (72) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/backend/drizzle/engine/index.cjs +8 -8
  3. package/dist/backend/drizzle/engine/index.d.cts +4 -4
  4. package/dist/backend/drizzle/engine/index.d.ts +4 -4
  5. package/dist/backend/drizzle/engine/index.js +3 -3
  6. package/dist/backend/drizzle/indexes.cjs +6 -6
  7. package/dist/backend/drizzle/indexes.js +2 -2
  8. package/dist/backend/postgres/index.cjs +17 -17
  9. package/dist/backend/postgres/index.d.cts +2 -2
  10. package/dist/backend/postgres/index.d.ts +2 -2
  11. package/dist/backend/postgres/index.js +3 -3
  12. package/dist/backend/postgres/pglite-store.cjs +1 -1
  13. package/dist/backend/postgres/pglite-store.js +1 -1
  14. package/dist/backend/postgres/pglite.cjs +5 -5
  15. package/dist/backend/postgres/pglite.js +4 -4
  16. package/dist/backend/sqlite/index.cjs +16 -16
  17. package/dist/backend/sqlite/index.d.cts +2 -2
  18. package/dist/backend/sqlite/index.d.ts +2 -2
  19. package/dist/backend/sqlite/index.js +3 -3
  20. package/dist/backend/sqlite/libsql.cjs +7 -7
  21. package/dist/backend/sqlite/libsql.js +3 -3
  22. package/dist/backend/sqlite/local-store.cjs +1 -1
  23. package/dist/backend/sqlite/local-store.js +1 -1
  24. package/dist/backend/sqlite/local.cjs +5 -5
  25. package/dist/backend/sqlite/local.js +4 -4
  26. package/dist/{chunk-B2FYH5VR.cjs → chunk-2GXLAV4H.cjs} +2 -2
  27. package/dist/{chunk-B2FYH5VR.cjs.map → chunk-2GXLAV4H.cjs.map} +1 -1
  28. package/dist/{chunk-S2U4AZEO.js → chunk-3B6AEIK4.js} +3 -3
  29. package/dist/{chunk-S2U4AZEO.js.map → chunk-3B6AEIK4.js.map} +1 -1
  30. package/dist/{chunk-PZJYWJQB.cjs → chunk-C2LSQ3SJ.cjs} +6 -6
  31. package/dist/{chunk-PZJYWJQB.cjs.map → chunk-C2LSQ3SJ.cjs.map} +1 -1
  32. package/dist/{chunk-CZNYXNOY.cjs → chunk-DIVOGAPS.cjs} +90 -82
  33. package/dist/chunk-DIVOGAPS.cjs.map +1 -0
  34. package/dist/{chunk-GSRUQXYE.cjs → chunk-G72YXUND.cjs} +5 -5
  35. package/dist/{chunk-GSRUQXYE.cjs.map → chunk-G72YXUND.cjs.map} +1 -1
  36. package/dist/{chunk-DLDGDFDF.js → chunk-MPX2F64V.js} +3 -3
  37. package/dist/{chunk-DLDGDFDF.js.map → chunk-MPX2F64V.js.map} +1 -1
  38. package/dist/{chunk-AKCXD3VV.js → chunk-N7XZENEJ.js} +26 -18
  39. package/dist/chunk-N7XZENEJ.js.map +1 -0
  40. package/dist/{chunk-2EMCMUTX.js → chunk-NDLVGHQA.js} +3 -3
  41. package/dist/{chunk-2EMCMUTX.js.map → chunk-NDLVGHQA.js.map} +1 -1
  42. package/dist/{chunk-BP3ANNRA.cjs → chunk-NLLZSEHL.cjs} +8 -8
  43. package/dist/{chunk-BP3ANNRA.cjs.map → chunk-NLLZSEHL.cjs.map} +1 -1
  44. package/dist/{chunk-RWE33LCI.js → chunk-NXK2ZBVV.js} +2 -2
  45. package/dist/{chunk-RWE33LCI.js.map → chunk-NXK2ZBVV.js.map} +1 -1
  46. package/dist/{chunk-53GIRRN2.cjs → chunk-TDRZ46SF.cjs} +12 -12
  47. package/dist/{chunk-53GIRRN2.cjs.map → chunk-TDRZ46SF.cjs.map} +1 -1
  48. package/dist/{chunk-OX2NMPRS.js → chunk-UJW55GPE.js} +3 -3
  49. package/dist/{chunk-OX2NMPRS.js.map → chunk-UJW55GPE.js.map} +1 -1
  50. package/dist/graph-merge/index.cjs +9 -9
  51. package/dist/graph-merge/index.js +2 -2
  52. package/dist/index.cjs +42 -42
  53. package/dist/index.js +2 -2
  54. package/dist/indexes/index.cjs +3 -3
  55. package/dist/indexes/index.js +1 -1
  56. package/dist/{local-store-impl-HRFYR5WM.cjs → local-store-impl-EDCPRE6P.cjs} +10 -10
  57. package/dist/{local-store-impl-HRFYR5WM.cjs.map → local-store-impl-EDCPRE6P.cjs.map} +1 -1
  58. package/dist/{local-store-impl-JSXB77IJ.js → local-store-impl-GAWJELMM.js} +7 -7
  59. package/dist/{local-store-impl-JSXB77IJ.js.map → local-store-impl-GAWJELMM.js.map} +1 -1
  60. package/dist/{pglite-store-impl-Z47DA4XJ.js → pglite-store-impl-7GHPD535.js} +7 -7
  61. package/dist/{pglite-store-impl-Z47DA4XJ.js.map → pglite-store-impl-7GHPD535.js.map} +1 -1
  62. package/dist/{pglite-store-impl-OVR7CZ34.cjs → pglite-store-impl-AJ5E6PGZ.cjs} +10 -10
  63. package/dist/{pglite-store-impl-OVR7CZ34.cjs.map → pglite-store-impl-AJ5E6PGZ.cjs.map} +1 -1
  64. package/dist/{postgres-pzUsZov1.d.ts → postgres-BI8Msmji.d.ts} +1 -1
  65. package/dist/{postgres-BpGAssib.d.cts → postgres-Bj_zNOpG.d.cts} +1 -1
  66. package/dist/{profile-DBDoRSzj.d.ts → profile-DEx6nWHO.d.ts} +10 -10
  67. package/dist/{profile-D1_16oM5.d.cts → profile-DLncvbZ_.d.cts} +10 -10
  68. package/dist/{sqlite-Bg5h3Jk0.d.ts → sqlite-C7AHJCO4.d.ts} +1 -1
  69. package/dist/{sqlite-BzHm5Mc2.d.cts → sqlite-CL86_33e.d.cts} +1 -1
  70. package/package.json +1 -1
  71. package/dist/chunk-AKCXD3VV.js.map +0 -1
  72. package/dist/chunk-CZNYXNOY.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBP3ANNRA_cjs = require('./chunk-BP3ANNRA.cjs');
3
+ var chunkNLLZSEHL_cjs = require('./chunk-NLLZSEHL.cjs');
4
4
  var chunkTMEOXADA_cjs = require('./chunk-TMEOXADA.cjs');
5
5
  var chunkTDBFLGJF_cjs = require('./chunk-TDBFLGJF.cjs');
6
6
  var chunkYKFKW6BC_cjs = require('./chunk-YKFKW6BC.cjs');
@@ -29,7 +29,7 @@ var chunkA2NZH6JQ_cjs = require('./chunk-A2NZH6JQ.cjs');
29
29
  var chunkRAN6YI6S_cjs = require('./chunk-RAN6YI6S.cjs');
30
30
  var chunkUWG5GX6E_cjs = require('./chunk-UWG5GX6E.cjs');
31
31
  require('./chunk-HNMVDH6A.cjs');
32
- var chunkB2FYH5VR_cjs = require('./chunk-B2FYH5VR.cjs');
32
+ var chunk2GXLAV4H_cjs = require('./chunk-2GXLAV4H.cjs');
33
33
  var chunkEUDJXMMN_cjs = require('./chunk-EUDJXMMN.cjs');
34
34
  require('./chunk-ZY4GXIVN.cjs');
35
35
  require('./chunk-7LGA7PK2.cjs');
@@ -270,159 +270,159 @@ function decodeEmbeddingJson(row) {
270
270
 
271
271
  Object.defineProperty(exports, "ExecutableAggregateQuery", {
272
272
  enumerable: true,
273
- get: function () { return chunkBP3ANNRA_cjs.ExecutableAggregateQuery; }
273
+ get: function () { return chunkNLLZSEHL_cjs.ExecutableAggregateQuery; }
274
274
  });
275
275
  Object.defineProperty(exports, "ExecutableQuery", {
276
276
  enumerable: true,
277
- get: function () { return chunkBP3ANNRA_cjs.ExecutableQuery; }
277
+ get: function () { return chunkNLLZSEHL_cjs.ExecutableQuery; }
278
278
  });
279
279
  Object.defineProperty(exports, "MAX_EXPLICIT_RECURSIVE_DEPTH", {
280
280
  enumerable: true,
281
- get: function () { return chunkBP3ANNRA_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
281
+ get: function () { return chunkNLLZSEHL_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
282
282
  });
283
283
  Object.defineProperty(exports, "MAX_RECURSIVE_DEPTH", {
284
284
  enumerable: true,
285
- get: function () { return chunkBP3ANNRA_cjs.MAX_RECURSIVE_DEPTH; }
285
+ get: function () { return chunkNLLZSEHL_cjs.MAX_RECURSIVE_DEPTH; }
286
286
  });
287
287
  Object.defineProperty(exports, "PreparedQuery", {
288
288
  enumerable: true,
289
- get: function () { return chunkBP3ANNRA_cjs.PreparedQuery; }
289
+ get: function () { return chunkNLLZSEHL_cjs.PreparedQuery; }
290
290
  });
291
291
  Object.defineProperty(exports, "QueryBuilder", {
292
292
  enumerable: true,
293
- get: function () { return chunkBP3ANNRA_cjs.QueryBuilder; }
293
+ get: function () { return chunkNLLZSEHL_cjs.QueryBuilder; }
294
294
  });
295
295
  Object.defineProperty(exports, "RecordedStoreView", {
296
296
  enumerable: true,
297
- get: function () { return chunkBP3ANNRA_cjs.RecordedStoreView; }
297
+ get: function () { return chunkNLLZSEHL_cjs.RecordedStoreView; }
298
298
  });
299
299
  Object.defineProperty(exports, "StoreAnalysisCursorStaleError", {
300
300
  enumerable: true,
301
- get: function () { return chunkBP3ANNRA_cjs.StoreAnalysisCursorStaleError; }
301
+ get: function () { return chunkNLLZSEHL_cjs.StoreAnalysisCursorStaleError; }
302
302
  });
303
303
  Object.defineProperty(exports, "StoreSearch", {
304
304
  enumerable: true,
305
- get: function () { return chunkBP3ANNRA_cjs.StoreSearch; }
305
+ get: function () { return chunkNLLZSEHL_cjs.StoreSearch; }
306
306
  });
307
307
  Object.defineProperty(exports, "StoreView", {
308
308
  enumerable: true,
309
- get: function () { return chunkBP3ANNRA_cjs.StoreView; }
309
+ get: function () { return chunkNLLZSEHL_cjs.StoreView; }
310
310
  });
311
311
  Object.defineProperty(exports, "UnionableQuery", {
312
312
  enumerable: true,
313
- get: function () { return chunkBP3ANNRA_cjs.UnionableQuery; }
313
+ get: function () { return chunkNLLZSEHL_cjs.UnionableQuery; }
314
314
  });
315
315
  Object.defineProperty(exports, "avg", {
316
316
  enumerable: true,
317
- get: function () { return chunkBP3ANNRA_cjs.avg; }
317
+ get: function () { return chunkNLLZSEHL_cjs.avg; }
318
318
  });
319
319
  Object.defineProperty(exports, "composeFragments", {
320
320
  enumerable: true,
321
- get: function () { return chunkBP3ANNRA_cjs.composeFragments; }
321
+ get: function () { return chunkNLLZSEHL_cjs.composeFragments; }
322
322
  });
323
323
  Object.defineProperty(exports, "count", {
324
324
  enumerable: true,
325
- get: function () { return chunkBP3ANNRA_cjs.count; }
325
+ get: function () { return chunkNLLZSEHL_cjs.count; }
326
326
  });
327
327
  Object.defineProperty(exports, "countDistinct", {
328
328
  enumerable: true,
329
- get: function () { return chunkBP3ANNRA_cjs.countDistinct; }
329
+ get: function () { return chunkNLLZSEHL_cjs.countDistinct; }
330
330
  });
331
331
  Object.defineProperty(exports, "countDistinctEdges", {
332
332
  enumerable: true,
333
- get: function () { return chunkBP3ANNRA_cjs.countDistinctEdges; }
333
+ get: function () { return chunkNLLZSEHL_cjs.countDistinctEdges; }
334
334
  });
335
335
  Object.defineProperty(exports, "countEdges", {
336
336
  enumerable: true,
337
- get: function () { return chunkBP3ANNRA_cjs.countEdges; }
337
+ get: function () { return chunkNLLZSEHL_cjs.countEdges; }
338
338
  });
339
339
  Object.defineProperty(exports, "createAdapterStore", {
340
340
  enumerable: true,
341
- get: function () { return chunkBP3ANNRA_cjs.createAdapterStore; }
341
+ get: function () { return chunkNLLZSEHL_cjs.createAdapterStore; }
342
342
  });
343
343
  Object.defineProperty(exports, "createAdapterStoreWithSchema", {
344
344
  enumerable: true,
345
- get: function () { return chunkBP3ANNRA_cjs.createAdapterStoreWithSchema; }
345
+ get: function () { return chunkNLLZSEHL_cjs.createAdapterStoreWithSchema; }
346
346
  });
347
347
  Object.defineProperty(exports, "createFragment", {
348
348
  enumerable: true,
349
- get: function () { return chunkBP3ANNRA_cjs.createFragment; }
349
+ get: function () { return chunkNLLZSEHL_cjs.createFragment; }
350
350
  });
351
351
  Object.defineProperty(exports, "createQueryBuilder", {
352
352
  enumerable: true,
353
- get: function () { return chunkBP3ANNRA_cjs.createQueryBuilder; }
353
+ get: function () { return chunkNLLZSEHL_cjs.createQueryBuilder; }
354
354
  });
355
355
  Object.defineProperty(exports, "createStore", {
356
356
  enumerable: true,
357
- get: function () { return chunkBP3ANNRA_cjs.createStore; }
357
+ get: function () { return chunkNLLZSEHL_cjs.createStore; }
358
358
  });
359
359
  Object.defineProperty(exports, "createStoreWithSchema", {
360
360
  enumerable: true,
361
- get: function () { return chunkBP3ANNRA_cjs.createStoreWithSchema; }
361
+ get: function () { return chunkNLLZSEHL_cjs.createStoreWithSchema; }
362
362
  });
363
363
  Object.defineProperty(exports, "createVerifiedAdapterStore", {
364
364
  enumerable: true,
365
- get: function () { return chunkBP3ANNRA_cjs.createVerifiedAdapterStore; }
365
+ get: function () { return chunkNLLZSEHL_cjs.createVerifiedAdapterStore; }
366
366
  });
367
367
  Object.defineProperty(exports, "createVerifiedStore", {
368
368
  enumerable: true,
369
- get: function () { return chunkBP3ANNRA_cjs.createVerifiedStore; }
369
+ get: function () { return chunkNLLZSEHL_cjs.createVerifiedStore; }
370
370
  });
371
371
  Object.defineProperty(exports, "defineSubgraphProject", {
372
372
  enumerable: true,
373
- get: function () { return chunkBP3ANNRA_cjs.defineSubgraphProject; }
373
+ get: function () { return chunkNLLZSEHL_cjs.defineSubgraphProject; }
374
374
  });
375
375
  Object.defineProperty(exports, "field", {
376
376
  enumerable: true,
377
- get: function () { return chunkBP3ANNRA_cjs.field; }
377
+ get: function () { return chunkNLLZSEHL_cjs.field; }
378
378
  });
379
379
  Object.defineProperty(exports, "having", {
380
380
  enumerable: true,
381
- get: function () { return chunkBP3ANNRA_cjs.having; }
381
+ get: function () { return chunkNLLZSEHL_cjs.having; }
382
382
  });
383
383
  Object.defineProperty(exports, "havingEq", {
384
384
  enumerable: true,
385
- get: function () { return chunkBP3ANNRA_cjs.havingEq; }
385
+ get: function () { return chunkNLLZSEHL_cjs.havingEq; }
386
386
  });
387
387
  Object.defineProperty(exports, "havingGt", {
388
388
  enumerable: true,
389
- get: function () { return chunkBP3ANNRA_cjs.havingGt; }
389
+ get: function () { return chunkNLLZSEHL_cjs.havingGt; }
390
390
  });
391
391
  Object.defineProperty(exports, "havingGte", {
392
392
  enumerable: true,
393
- get: function () { return chunkBP3ANNRA_cjs.havingGte; }
393
+ get: function () { return chunkNLLZSEHL_cjs.havingGte; }
394
394
  });
395
395
  Object.defineProperty(exports, "havingLt", {
396
396
  enumerable: true,
397
- get: function () { return chunkBP3ANNRA_cjs.havingLt; }
397
+ get: function () { return chunkNLLZSEHL_cjs.havingLt; }
398
398
  });
399
399
  Object.defineProperty(exports, "havingLte", {
400
400
  enumerable: true,
401
- get: function () { return chunkBP3ANNRA_cjs.havingLte; }
401
+ get: function () { return chunkNLLZSEHL_cjs.havingLte; }
402
402
  });
403
403
  Object.defineProperty(exports, "limitFragment", {
404
404
  enumerable: true,
405
- get: function () { return chunkBP3ANNRA_cjs.limitFragment; }
405
+ get: function () { return chunkNLLZSEHL_cjs.limitFragment; }
406
406
  });
407
407
  Object.defineProperty(exports, "max", {
408
408
  enumerable: true,
409
- get: function () { return chunkBP3ANNRA_cjs.max; }
409
+ get: function () { return chunkNLLZSEHL_cjs.max; }
410
410
  });
411
411
  Object.defineProperty(exports, "min", {
412
412
  enumerable: true,
413
- get: function () { return chunkBP3ANNRA_cjs.min; }
413
+ get: function () { return chunkNLLZSEHL_cjs.min; }
414
414
  });
415
415
  Object.defineProperty(exports, "offsetFragment", {
416
416
  enumerable: true,
417
- get: function () { return chunkBP3ANNRA_cjs.offsetFragment; }
417
+ get: function () { return chunkNLLZSEHL_cjs.offsetFragment; }
418
418
  });
419
419
  Object.defineProperty(exports, "orderByFragment", {
420
420
  enumerable: true,
421
- get: function () { return chunkBP3ANNRA_cjs.orderByFragment; }
421
+ get: function () { return chunkNLLZSEHL_cjs.orderByFragment; }
422
422
  });
423
423
  Object.defineProperty(exports, "sum", {
424
424
  enumerable: true,
425
- get: function () { return chunkBP3ANNRA_cjs.sum; }
425
+ get: function () { return chunkNLLZSEHL_cjs.sum; }
426
426
  });
427
427
  Object.defineProperty(exports, "sqliteVecStrategy", {
428
428
  enumerable: true,
@@ -694,7 +694,7 @@ Object.defineProperty(exports, "orWhere", {
694
694
  });
695
695
  Object.defineProperty(exports, "SYSTEM_INDEX_DECLARATIONS", {
696
696
  enumerable: true,
697
- get: function () { return chunkB2FYH5VR_cjs.SYSTEM_INDEX_DECLARATIONS; }
697
+ get: function () { return chunk2GXLAV4H_cjs.SYSTEM_INDEX_DECLARATIONS; }
698
698
  });
699
699
  Object.defineProperty(exports, "defineEdgeIndex", {
700
700
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ExecutableAggregateQuery, ExecutableQuery, 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-S2U4AZEO.js';
1
+ export { ExecutableAggregateQuery, ExecutableQuery, 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-3B6AEIK4.js';
2
2
  export { sqliteVecStrategy } from './chunk-LB4J3CK7.js';
3
3
  export { libsqlVectorStrategy } from './chunk-UXD4SCMD.js';
4
4
  export { pgvectorStrategy } from './chunk-K6KT2RRK.js';
@@ -29,7 +29,7 @@ export { asEdgeId, asNodeId, isEdgeTargetMap, isEdgeType, isEdgeTypeWithEndpoint
29
29
  export { asRecordedInstant, compareRecordedInstants, recordedInstantRevision, recordedInstantWallTime } from './chunk-YA77H2XC.js';
30
30
  export { andWhere, notWhere, orWhere } from './chunk-QZ7A6HBM.js';
31
31
  import './chunk-BOLOXURT.js';
32
- export { SYSTEM_INDEX_DECLARATIONS } from './chunk-RWE33LCI.js';
32
+ export { SYSTEM_INDEX_DECLARATIONS } from './chunk-NXK2ZBVV.js';
33
33
  export { defineEdgeIndex, defineNodeIndex } from './chunk-F6XCLEZF.js';
34
34
  import './chunk-K34OPSJK.js';
35
35
  import './chunk-GZM2HWN2.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkUWG5GX6E_cjs = require('../chunk-UWG5GX6E.cjs');
4
4
  var chunkHNMVDH6A_cjs = require('../chunk-HNMVDH6A.cjs');
5
- var chunkB2FYH5VR_cjs = require('../chunk-B2FYH5VR.cjs');
5
+ var chunk2GXLAV4H_cjs = require('../chunk-2GXLAV4H.cjs');
6
6
  var chunkEUDJXMMN_cjs = require('../chunk-EUDJXMMN.cjs');
7
7
  require('../chunk-ZY4GXIVN.cjs');
8
8
  require('../chunk-7LGA7PK2.cjs');
@@ -53,11 +53,11 @@ Object.defineProperty(exports, "generateNodeIndexDDL", {
53
53
  });
54
54
  Object.defineProperty(exports, "SYSTEM_INDEX_DECLARATIONS", {
55
55
  enumerable: true,
56
- get: function () { return chunkB2FYH5VR_cjs.SYSTEM_INDEX_DECLARATIONS; }
56
+ get: function () { return chunk2GXLAV4H_cjs.SYSTEM_INDEX_DECLARATIONS; }
57
57
  });
58
58
  Object.defineProperty(exports, "generateSystemIndexDDL", {
59
59
  enumerable: true,
60
- get: function () { return chunkB2FYH5VR_cjs.generateSystemIndexDDL; }
60
+ get: function () { return chunk2GXLAV4H_cjs.generateSystemIndexDDL; }
61
61
  });
62
62
  Object.defineProperty(exports, "defineEdgeIndex", {
63
63
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  export { andWhere, notWhere, orWhere, toDeclaredIndex, toDeclaredIndexes } from '../chunk-QZ7A6HBM.js';
2
2
  export { generateEdgeIndexDDL, generateIndexDDL, generateNodeIndexDDL } from '../chunk-BOLOXURT.js';
3
- export { SYSTEM_INDEX_DECLARATIONS, generateSystemIndexDDL } from '../chunk-RWE33LCI.js';
3
+ export { SYSTEM_INDEX_DECLARATIONS, generateSystemIndexDDL } from '../chunk-NXK2ZBVV.js';
4
4
  export { defineEdgeIndex, defineNodeIndex } from '../chunk-F6XCLEZF.js';
5
5
  import '../chunk-K34OPSJK.js';
6
6
  import '../chunk-GZM2HWN2.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk53GIRRN2_cjs = require('./chunk-53GIRRN2.cjs');
3
+ var chunkTDRZ46SF_cjs = require('./chunk-TDRZ46SF.cjs');
4
4
  require('./chunk-QCD5JKU4.cjs');
5
- var chunkCZNYXNOY_cjs = require('./chunk-CZNYXNOY.cjs');
6
- require('./chunk-GSRUQXYE.cjs');
7
- var chunkBP3ANNRA_cjs = require('./chunk-BP3ANNRA.cjs');
5
+ var chunkDIVOGAPS_cjs = require('./chunk-DIVOGAPS.cjs');
6
+ require('./chunk-G72YXUND.cjs');
7
+ var chunkNLLZSEHL_cjs = require('./chunk-NLLZSEHL.cjs');
8
8
  require('./chunk-TMEOXADA.cjs');
9
9
  require('./chunk-YKFKW6BC.cjs');
10
10
  require('./chunk-D2U6E77Y.cjs');
@@ -28,7 +28,7 @@ require('./chunk-6YREIOSH.cjs');
28
28
  require('./chunk-A2NZH6JQ.cjs');
29
29
  require('./chunk-RAN6YI6S.cjs');
30
30
  require('./chunk-HNMVDH6A.cjs');
31
- require('./chunk-B2FYH5VR.cjs');
31
+ require('./chunk-2GXLAV4H.cjs');
32
32
  require('./chunk-EUDJXMMN.cjs');
33
33
  require('./chunk-ZY4GXIVN.cjs');
34
34
  require('./chunk-7LGA7PK2.cjs');
@@ -54,8 +54,8 @@ function withoutSchemaOverride(schemaManagement) {
54
54
  return rest;
55
55
  }
56
56
  async function createLocalSqliteStoreImpl(graph, options) {
57
- const tables = options.store?.schema === void 0 ? void 0 : chunkCZNYXNOY_cjs.createSqliteTables(options.store.schema.tables);
58
- const { backend } = chunk53GIRRN2_cjs.createLocalSqliteBackend({
57
+ const tables = options.store?.schema === void 0 ? void 0 : chunkDIVOGAPS_cjs.createSqliteTables(options.store.schema.tables);
58
+ const { backend } = chunkTDRZ46SF_cjs.createLocalSqliteBackend({
59
59
  ...options.path === void 0 ? {} : { path: options.path },
60
60
  ...options.pragmas === void 0 ? {} : { pragmas: options.pragmas },
61
61
  ...options.capabilities === void 0 ? {} : { capabilities: options.capabilities },
@@ -63,7 +63,7 @@ async function createLocalSqliteStoreImpl(graph, options) {
63
63
  ...tables === void 0 ? {} : { tables }
64
64
  });
65
65
  try {
66
- const [store] = await chunkBP3ANNRA_cjs.createStoreWithSchema(graph, backend, {
66
+ const [store] = await chunkNLLZSEHL_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-HRFYR5WM.cjs.map
81
- //# sourceMappingURL=local-store-impl-HRFYR5WM.cjs.map
80
+ //# sourceMappingURL=local-store-impl-EDCPRE6P.cjs.map
81
+ //# sourceMappingURL=local-store-impl-EDCPRE6P.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-HRFYR5WM.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-EDCPRE6P.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,8 +1,8 @@
1
- import { createLocalSqliteBackend } from './chunk-2EMCMUTX.js';
1
+ import { createLocalSqliteBackend } from './chunk-NDLVGHQA.js';
2
2
  import './chunk-H4FY6OZK.js';
3
- import { createSqliteTables } from './chunk-AKCXD3VV.js';
4
- import './chunk-OX2NMPRS.js';
5
- import { createStoreWithSchema } from './chunk-S2U4AZEO.js';
3
+ import { createSqliteTables } from './chunk-N7XZENEJ.js';
4
+ import './chunk-UJW55GPE.js';
5
+ import { createStoreWithSchema } from './chunk-3B6AEIK4.js';
6
6
  import './chunk-LB4J3CK7.js';
7
7
  import './chunk-K6KT2RRK.js';
8
8
  import './chunk-YZ3QYASQ.js';
@@ -26,7 +26,7 @@ import './chunk-BO5XSNFS.js';
26
26
  import './chunk-NG62VPFW.js';
27
27
  import './chunk-YA77H2XC.js';
28
28
  import './chunk-BOLOXURT.js';
29
- import './chunk-RWE33LCI.js';
29
+ import './chunk-NXK2ZBVV.js';
30
30
  import './chunk-F6XCLEZF.js';
31
31
  import './chunk-K34OPSJK.js';
32
32
  import './chunk-GZM2HWN2.js';
@@ -75,5 +75,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
75
75
  }
76
76
 
77
77
  export { createLocalSqliteStoreImpl };
78
- //# sourceMappingURL=local-store-impl-JSXB77IJ.js.map
79
- //# sourceMappingURL=local-store-impl-JSXB77IJ.js.map
78
+ //# sourceMappingURL=local-store-impl-GAWJELMM.js.map
79
+ //# sourceMappingURL=local-store-impl-GAWJELMM.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-JSXB77IJ.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-GAWJELMM.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,7 +1,7 @@
1
- import { createLocalPgliteBackend } from './chunk-DLDGDFDF.js';
2
- import { createPostgresTables } from './chunk-AKCXD3VV.js';
3
- import './chunk-OX2NMPRS.js';
4
- import { createStoreWithSchema } from './chunk-S2U4AZEO.js';
1
+ import { createLocalPgliteBackend } from './chunk-MPX2F64V.js';
2
+ import { createPostgresTables } from './chunk-N7XZENEJ.js';
3
+ import './chunk-UJW55GPE.js';
4
+ import { createStoreWithSchema } from './chunk-3B6AEIK4.js';
5
5
  import './chunk-K6KT2RRK.js';
6
6
  import './chunk-YZ3QYASQ.js';
7
7
  import './chunk-NJAG3AH4.js';
@@ -24,7 +24,7 @@ import './chunk-BO5XSNFS.js';
24
24
  import './chunk-NG62VPFW.js';
25
25
  import './chunk-YA77H2XC.js';
26
26
  import './chunk-BOLOXURT.js';
27
- import './chunk-RWE33LCI.js';
27
+ import './chunk-NXK2ZBVV.js';
28
28
  import './chunk-F6XCLEZF.js';
29
29
  import './chunk-K34OPSJK.js';
30
30
  import './chunk-GZM2HWN2.js';
@@ -72,5 +72,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
72
72
  }
73
73
 
74
74
  export { createLocalPgliteStoreImpl };
75
- //# sourceMappingURL=pglite-store-impl-Z47DA4XJ.js.map
76
- //# sourceMappingURL=pglite-store-impl-Z47DA4XJ.js.map
75
+ //# sourceMappingURL=pglite-store-impl-7GHPD535.js.map
76
+ //# sourceMappingURL=pglite-store-impl-7GHPD535.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-Z47DA4XJ.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-7GHPD535.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,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkPZJYWJQB_cjs = require('./chunk-PZJYWJQB.cjs');
4
- var chunkCZNYXNOY_cjs = require('./chunk-CZNYXNOY.cjs');
5
- require('./chunk-GSRUQXYE.cjs');
6
- var chunkBP3ANNRA_cjs = require('./chunk-BP3ANNRA.cjs');
3
+ var chunkC2LSQ3SJ_cjs = require('./chunk-C2LSQ3SJ.cjs');
4
+ var chunkDIVOGAPS_cjs = require('./chunk-DIVOGAPS.cjs');
5
+ require('./chunk-G72YXUND.cjs');
6
+ var chunkNLLZSEHL_cjs = require('./chunk-NLLZSEHL.cjs');
7
7
  require('./chunk-YKFKW6BC.cjs');
8
8
  require('./chunk-D2U6E77Y.cjs');
9
9
  require('./chunk-HBFGTRJT.cjs');
@@ -26,7 +26,7 @@ require('./chunk-6YREIOSH.cjs');
26
26
  require('./chunk-A2NZH6JQ.cjs');
27
27
  require('./chunk-RAN6YI6S.cjs');
28
28
  require('./chunk-HNMVDH6A.cjs');
29
- require('./chunk-B2FYH5VR.cjs');
29
+ require('./chunk-2GXLAV4H.cjs');
30
30
  require('./chunk-EUDJXMMN.cjs');
31
31
  require('./chunk-ZY4GXIVN.cjs');
32
32
  require('./chunk-7LGA7PK2.cjs');
@@ -52,15 +52,15 @@ function withoutSchemaOverride(schemaManagement) {
52
52
  return rest;
53
53
  }
54
54
  async function createLocalPgliteStoreImpl(graph, options) {
55
- const tables = options.store?.schema === void 0 ? void 0 : chunkCZNYXNOY_cjs.createPostgresTables(options.store.schema.tables);
56
- const { backend } = await chunkPZJYWJQB_cjs.createLocalPgliteBackend({
55
+ const tables = options.store?.schema === void 0 ? void 0 : chunkDIVOGAPS_cjs.createPostgresTables(options.store.schema.tables);
56
+ const { backend } = await chunkC2LSQ3SJ_cjs.createLocalPgliteBackend({
57
57
  ...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
58
58
  ...options.vector === false ? { vector: false } : {},
59
59
  ...options.fulltext === void 0 ? {} : { fulltext: options.fulltext },
60
60
  ...tables === void 0 ? {} : { tables }
61
61
  });
62
62
  try {
63
- const [store] = await chunkBP3ANNRA_cjs.createStoreWithSchema(graph, backend, {
63
+ const [store] = await chunkNLLZSEHL_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-OVR7CZ34.cjs.map
78
- //# sourceMappingURL=pglite-store-impl-OVR7CZ34.cjs.map
77
+ //# sourceMappingURL=pglite-store-impl-AJ5E6PGZ.cjs.map
78
+ //# sourceMappingURL=pglite-store-impl-AJ5E6PGZ.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-OVR7CZ34.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-AJ5E6PGZ.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,5 +1,5 @@
1
1
  import { d as FulltextStrategy, V as VectorStrategy, B as BundledBackendCapabilityOverrides, A as AdapterBackend } from './types-D9AOUjL0.js';
2
- import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-DBDoRSzj.js';
2
+ import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-DEx6nWHO.js';
3
3
  import { a as PostgresTables } from './postgres-1NCFLpJv.js';
4
4
  import { A as AnyPgDatabase, a as AnyPgTransaction } from './postgres-execution-fKW0qRiN.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { d as FulltextStrategy, V as VectorStrategy, B as BundledBackendCapabilityOverrides, A as AdapterBackend } from './types-D9AOUjL0.cjs';
2
- import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-D1_16oM5.cjs';
2
+ import { S as SerializedResourceDeclaration, a as SqlEngineProfile } from './profile-DLncvbZ_.cjs';
3
3
  import { a as PostgresTables } from './postgres-Bj5mqvEU.cjs';
4
4
  import { A as AnyPgDatabase, a as AnyPgTransaction } from './postgres-execution-fKW0qRiN.cjs';
5
5
 
@@ -511,17 +511,17 @@ type CreateBaseSchemaMembersDeps = Readonly<{
511
511
  */
512
512
  ensureEdgeMatchIdentityStorage: () => Promise<void>;
513
513
  /**
514
- * `CREATE INDEX IF NOT EXISTS` for the base-schema release's three
515
- * `since_idx` indexes (the lineage capability's changed-since scan), in
516
- * `(recordedNodes, recordedEdges, recordedIdentityAssertions)` order —
517
- * the version-3 adoption step, built once by the caller via
518
- * `sinceIndexAdoptionDdl` (`../../../indexes/system`) from its own
519
- * dialect's physical table names. All three indexes already exist after
520
- * a fresh bootstrap (the schema factories derive them from the same
521
- * declarations), so this dep is only exercised by the offline `adopt()`
522
- * path, the same way `fencesTableDdl` is for version 2.
514
+ * DDL for version-3 adoption: ensure recorded identity-assertions storage
515
+ * and its structural indexes before creating the three changed-since indexes.
516
+ * Older installations can lack the identity-assertions relation even with a
517
+ * version-1 or version-2 marker: it originally shipped only in bootstrap DDL.
518
+ * Dialect factories generate its table and index DDL from the same schema
519
+ * definition as bootstrap, then append `sinceIndexAdoptionDdl` for the
520
+ * `(recordedNodes, recordedEdges, recordedIdentityAssertions)` since indexes.
521
+ * Fresh bootstrap already creates all of this storage, so the statements
522
+ * are only exercised by offline `adopt()`.
523
523
  */
524
- sinceIndexDdl: readonly [string, string, string];
524
+ sinceIndexDdl: readonly string[];
525
525
  }>;
526
526
 
527
527
  /**
@@ -511,17 +511,17 @@ type CreateBaseSchemaMembersDeps = Readonly<{
511
511
  */
512
512
  ensureEdgeMatchIdentityStorage: () => Promise<void>;
513
513
  /**
514
- * `CREATE INDEX IF NOT EXISTS` for the base-schema release's three
515
- * `since_idx` indexes (the lineage capability's changed-since scan), in
516
- * `(recordedNodes, recordedEdges, recordedIdentityAssertions)` order —
517
- * the version-3 adoption step, built once by the caller via
518
- * `sinceIndexAdoptionDdl` (`../../../indexes/system`) from its own
519
- * dialect's physical table names. All three indexes already exist after
520
- * a fresh bootstrap (the schema factories derive them from the same
521
- * declarations), so this dep is only exercised by the offline `adopt()`
522
- * path, the same way `fencesTableDdl` is for version 2.
514
+ * DDL for version-3 adoption: ensure recorded identity-assertions storage
515
+ * and its structural indexes before creating the three changed-since indexes.
516
+ * Older installations can lack the identity-assertions relation even with a
517
+ * version-1 or version-2 marker: it originally shipped only in bootstrap DDL.
518
+ * Dialect factories generate its table and index DDL from the same schema
519
+ * definition as bootstrap, then append `sinceIndexAdoptionDdl` for the
520
+ * `(recordedNodes, recordedEdges, recordedIdentityAssertions)` since indexes.
521
+ * Fresh bootstrap already creates all of this storage, so the statements
522
+ * are only exercised by offline `adopt()`.
523
523
  */
524
- sinceIndexDdl: readonly [string, string, string];
524
+ sinceIndexDdl: readonly string[];
525
525
  }>;
526
526
 
527
527
  /**