@nicia-ai/typegraph 0.66.1 → 0.67.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 (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +15 -0
  3. package/dist/backend/postgres/pglite-store.cjs +1 -1
  4. package/dist/backend/postgres/pglite-store.js +1 -1
  5. package/dist/backend/sqlite/local-store.cjs +1 -1
  6. package/dist/backend/sqlite/local-store.js +1 -1
  7. package/dist/{chunk-TR7QTODF.js → chunk-55DGFZYC.js} +3 -3
  8. package/dist/{chunk-TR7QTODF.js.map → chunk-55DGFZYC.js.map} +1 -1
  9. package/dist/{chunk-WB55URNM.js → chunk-6CKSTY2D.js} +7 -3
  10. package/dist/chunk-6CKSTY2D.js.map +1 -0
  11. package/dist/{chunk-SSDHR2C2.js → chunk-EFSXK3DW.js} +3 -3
  12. package/dist/{chunk-SSDHR2C2.js.map → chunk-EFSXK3DW.js.map} +1 -1
  13. package/dist/{chunk-Y4X6ODVY.cjs → chunk-FS2GVO2T.cjs} +56 -56
  14. package/dist/{chunk-Y4X6ODVY.cjs.map → chunk-FS2GVO2T.cjs.map} +1 -1
  15. package/dist/{chunk-K7YACILO.cjs → chunk-GXHEGNI6.cjs} +9 -9
  16. package/dist/{chunk-K7YACILO.cjs.map → chunk-GXHEGNI6.cjs.map} +1 -1
  17. package/dist/{chunk-BX42F7IJ.cjs → chunk-SSDLQPMY.cjs} +7 -2
  18. package/dist/chunk-SSDLQPMY.cjs.map +1 -0
  19. package/dist/graph-merge/index.cjs +500 -26
  20. package/dist/graph-merge/index.cjs.map +1 -1
  21. package/dist/graph-merge/index.d.cts +384 -2
  22. package/dist/graph-merge/index.d.ts +384 -2
  23. package/dist/graph-merge/index.js +485 -15
  24. package/dist/graph-merge/index.js.map +1 -1
  25. package/dist/index.cjs +63 -63
  26. package/dist/index.js +3 -3
  27. package/dist/{local-store-impl-OUINMCYI.cjs → local-store-impl-7SPBIS4M.cjs} +5 -5
  28. package/dist/{local-store-impl-OUINMCYI.cjs.map → local-store-impl-7SPBIS4M.cjs.map} +1 -1
  29. package/dist/{local-store-impl-ERPNYOCL.js → local-store-impl-E23EDYPV.js} +4 -4
  30. package/dist/{local-store-impl-ERPNYOCL.js.map → local-store-impl-E23EDYPV.js.map} +1 -1
  31. package/dist/{pglite-store-impl-Z3SOOP75.cjs → pglite-store-impl-U55HQ5ZY.cjs} +5 -5
  32. package/dist/{pglite-store-impl-Z3SOOP75.cjs.map → pglite-store-impl-U55HQ5ZY.cjs.map} +1 -1
  33. package/dist/{pglite-store-impl-DUJBQZS5.js → pglite-store-impl-VAIEJZOU.js} +4 -4
  34. package/dist/{pglite-store-impl-DUJBQZS5.js.map → pglite-store-impl-VAIEJZOU.js.map} +1 -1
  35. package/dist/schema/index.cjs +27 -27
  36. package/dist/schema/index.js +2 -2
  37. package/package.json +1 -1
  38. package/dist/chunk-BX42F7IJ.cjs.map +0 -1
  39. package/dist/chunk-WB55URNM.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkY4X6ODVY_cjs = require('./chunk-Y4X6ODVY.cjs');
3
+ var chunkFS2GVO2T_cjs = require('./chunk-FS2GVO2T.cjs');
4
4
  var chunkCBHZX3G5_cjs = require('./chunk-CBHZX3G5.cjs');
5
5
  var chunkCBH7KZOS_cjs = require('./chunk-CBH7KZOS.cjs');
6
6
  var chunkFZKXBPTS_cjs = require('./chunk-FZKXBPTS.cjs');
@@ -15,8 +15,8 @@ require('./chunk-I7SBZJI2.cjs');
15
15
  require('./chunk-G7OKJDMG.cjs');
16
16
  require('./chunk-R255UE5U.cjs');
17
17
  require('./chunk-MRUOOAIQ.cjs');
18
- var chunkK7YACILO_cjs = require('./chunk-K7YACILO.cjs');
19
- var chunkBX42F7IJ_cjs = require('./chunk-BX42F7IJ.cjs');
18
+ var chunkGXHEGNI6_cjs = require('./chunk-GXHEGNI6.cjs');
19
+ var chunkSSDLQPMY_cjs = require('./chunk-SSDLQPMY.cjs');
20
20
  require('./chunk-6YKISECL.cjs');
21
21
  var chunkICOTLZBV_cjs = require('./chunk-ICOTLZBV.cjs');
22
22
  require('./chunk-EBQX7MYL.cjs');
@@ -274,167 +274,167 @@ function decodeEmbeddingJson(row) {
274
274
 
275
275
  Object.defineProperty(exports, "ExecutableAggregateQuery", {
276
276
  enumerable: true,
277
- get: function () { return chunkY4X6ODVY_cjs.ExecutableAggregateQuery; }
277
+ get: function () { return chunkFS2GVO2T_cjs.ExecutableAggregateQuery; }
278
278
  });
279
279
  Object.defineProperty(exports, "ExecutableProjectionQuery", {
280
280
  enumerable: true,
281
- get: function () { return chunkY4X6ODVY_cjs.ExecutableProjectionQuery; }
281
+ get: function () { return chunkFS2GVO2T_cjs.ExecutableProjectionQuery; }
282
282
  });
283
283
  Object.defineProperty(exports, "ExecutableQuery", {
284
284
  enumerable: true,
285
- get: function () { return chunkY4X6ODVY_cjs.ExecutableQuery; }
285
+ get: function () { return chunkFS2GVO2T_cjs.ExecutableQuery; }
286
286
  });
287
287
  Object.defineProperty(exports, "ExecutableRelationQuery", {
288
288
  enumerable: true,
289
- get: function () { return chunkY4X6ODVY_cjs.ExecutableRelationQuery; }
289
+ get: function () { return chunkFS2GVO2T_cjs.ExecutableRelationQuery; }
290
290
  });
291
291
  Object.defineProperty(exports, "MAX_EXPLICIT_RECURSIVE_DEPTH", {
292
292
  enumerable: true,
293
- get: function () { return chunkY4X6ODVY_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
293
+ get: function () { return chunkFS2GVO2T_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
294
294
  });
295
295
  Object.defineProperty(exports, "MAX_RECURSIVE_DEPTH", {
296
296
  enumerable: true,
297
- get: function () { return chunkY4X6ODVY_cjs.MAX_RECURSIVE_DEPTH; }
297
+ get: function () { return chunkFS2GVO2T_cjs.MAX_RECURSIVE_DEPTH; }
298
298
  });
299
299
  Object.defineProperty(exports, "PreparedQuery", {
300
300
  enumerable: true,
301
- get: function () { return chunkY4X6ODVY_cjs.PreparedQuery; }
301
+ get: function () { return chunkFS2GVO2T_cjs.PreparedQuery; }
302
302
  });
303
303
  Object.defineProperty(exports, "QueryBuilder", {
304
304
  enumerable: true,
305
- get: function () { return chunkY4X6ODVY_cjs.QueryBuilder; }
305
+ get: function () { return chunkFS2GVO2T_cjs.QueryBuilder; }
306
306
  });
307
307
  Object.defineProperty(exports, "RecordedStoreView", {
308
308
  enumerable: true,
309
- get: function () { return chunkY4X6ODVY_cjs.RecordedStoreView; }
309
+ get: function () { return chunkFS2GVO2T_cjs.RecordedStoreView; }
310
310
  });
311
311
  Object.defineProperty(exports, "StoreAnalysisCursorStaleError", {
312
312
  enumerable: true,
313
- get: function () { return chunkY4X6ODVY_cjs.StoreAnalysisCursorStaleError; }
313
+ get: function () { return chunkFS2GVO2T_cjs.StoreAnalysisCursorStaleError; }
314
314
  });
315
315
  Object.defineProperty(exports, "StoreSearch", {
316
316
  enumerable: true,
317
- get: function () { return chunkY4X6ODVY_cjs.StoreSearch; }
317
+ get: function () { return chunkFS2GVO2T_cjs.StoreSearch; }
318
318
  });
319
319
  Object.defineProperty(exports, "StoreView", {
320
320
  enumerable: true,
321
- get: function () { return chunkY4X6ODVY_cjs.StoreView; }
321
+ get: function () { return chunkFS2GVO2T_cjs.StoreView; }
322
322
  });
323
323
  Object.defineProperty(exports, "UnionableQuery", {
324
324
  enumerable: true,
325
- get: function () { return chunkY4X6ODVY_cjs.UnionableQuery; }
325
+ get: function () { return chunkFS2GVO2T_cjs.UnionableQuery; }
326
326
  });
327
327
  Object.defineProperty(exports, "avg", {
328
328
  enumerable: true,
329
- get: function () { return chunkY4X6ODVY_cjs.avg; }
329
+ get: function () { return chunkFS2GVO2T_cjs.avg; }
330
330
  });
331
331
  Object.defineProperty(exports, "composeFragments", {
332
332
  enumerable: true,
333
- get: function () { return chunkY4X6ODVY_cjs.composeFragments; }
333
+ get: function () { return chunkFS2GVO2T_cjs.composeFragments; }
334
334
  });
335
335
  Object.defineProperty(exports, "count", {
336
336
  enumerable: true,
337
- get: function () { return chunkY4X6ODVY_cjs.count; }
337
+ get: function () { return chunkFS2GVO2T_cjs.count; }
338
338
  });
339
339
  Object.defineProperty(exports, "countDistinct", {
340
340
  enumerable: true,
341
- get: function () { return chunkY4X6ODVY_cjs.countDistinct; }
341
+ get: function () { return chunkFS2GVO2T_cjs.countDistinct; }
342
342
  });
343
343
  Object.defineProperty(exports, "countDistinctEdges", {
344
344
  enumerable: true,
345
- get: function () { return chunkY4X6ODVY_cjs.countDistinctEdges; }
345
+ get: function () { return chunkFS2GVO2T_cjs.countDistinctEdges; }
346
346
  });
347
347
  Object.defineProperty(exports, "countEdges", {
348
348
  enumerable: true,
349
- get: function () { return chunkY4X6ODVY_cjs.countEdges; }
349
+ get: function () { return chunkFS2GVO2T_cjs.countEdges; }
350
350
  });
351
351
  Object.defineProperty(exports, "createAdapterStore", {
352
352
  enumerable: true,
353
- get: function () { return chunkY4X6ODVY_cjs.createAdapterStore; }
353
+ get: function () { return chunkFS2GVO2T_cjs.createAdapterStore; }
354
354
  });
355
355
  Object.defineProperty(exports, "createAdapterStoreWithSchema", {
356
356
  enumerable: true,
357
- get: function () { return chunkY4X6ODVY_cjs.createAdapterStoreWithSchema; }
357
+ get: function () { return chunkFS2GVO2T_cjs.createAdapterStoreWithSchema; }
358
358
  });
359
359
  Object.defineProperty(exports, "createFragment", {
360
360
  enumerable: true,
361
- get: function () { return chunkY4X6ODVY_cjs.createFragment; }
361
+ get: function () { return chunkFS2GVO2T_cjs.createFragment; }
362
362
  });
363
363
  Object.defineProperty(exports, "createQueryBuilder", {
364
364
  enumerable: true,
365
- get: function () { return chunkY4X6ODVY_cjs.createQueryBuilder; }
365
+ get: function () { return chunkFS2GVO2T_cjs.createQueryBuilder; }
366
366
  });
367
367
  Object.defineProperty(exports, "createStore", {
368
368
  enumerable: true,
369
- get: function () { return chunkY4X6ODVY_cjs.createStore; }
369
+ get: function () { return chunkFS2GVO2T_cjs.createStore; }
370
370
  });
371
371
  Object.defineProperty(exports, "createStoreWithSchema", {
372
372
  enumerable: true,
373
- get: function () { return chunkY4X6ODVY_cjs.createStoreWithSchema; }
373
+ get: function () { return chunkFS2GVO2T_cjs.createStoreWithSchema; }
374
374
  });
375
375
  Object.defineProperty(exports, "createVerifiedAdapterStore", {
376
376
  enumerable: true,
377
- get: function () { return chunkY4X6ODVY_cjs.createVerifiedAdapterStore; }
377
+ get: function () { return chunkFS2GVO2T_cjs.createVerifiedAdapterStore; }
378
378
  });
379
379
  Object.defineProperty(exports, "createVerifiedStore", {
380
380
  enumerable: true,
381
- get: function () { return chunkY4X6ODVY_cjs.createVerifiedStore; }
381
+ get: function () { return chunkFS2GVO2T_cjs.createVerifiedStore; }
382
382
  });
383
383
  Object.defineProperty(exports, "defineSubgraphProject", {
384
384
  enumerable: true,
385
- get: function () { return chunkY4X6ODVY_cjs.defineSubgraphProject; }
385
+ get: function () { return chunkFS2GVO2T_cjs.defineSubgraphProject; }
386
386
  });
387
387
  Object.defineProperty(exports, "field", {
388
388
  enumerable: true,
389
- get: function () { return chunkY4X6ODVY_cjs.field; }
389
+ get: function () { return chunkFS2GVO2T_cjs.field; }
390
390
  });
391
391
  Object.defineProperty(exports, "having", {
392
392
  enumerable: true,
393
- get: function () { return chunkY4X6ODVY_cjs.having; }
393
+ get: function () { return chunkFS2GVO2T_cjs.having; }
394
394
  });
395
395
  Object.defineProperty(exports, "havingEq", {
396
396
  enumerable: true,
397
- get: function () { return chunkY4X6ODVY_cjs.havingEq; }
397
+ get: function () { return chunkFS2GVO2T_cjs.havingEq; }
398
398
  });
399
399
  Object.defineProperty(exports, "havingGt", {
400
400
  enumerable: true,
401
- get: function () { return chunkY4X6ODVY_cjs.havingGt; }
401
+ get: function () { return chunkFS2GVO2T_cjs.havingGt; }
402
402
  });
403
403
  Object.defineProperty(exports, "havingGte", {
404
404
  enumerable: true,
405
- get: function () { return chunkY4X6ODVY_cjs.havingGte; }
405
+ get: function () { return chunkFS2GVO2T_cjs.havingGte; }
406
406
  });
407
407
  Object.defineProperty(exports, "havingLt", {
408
408
  enumerable: true,
409
- get: function () { return chunkY4X6ODVY_cjs.havingLt; }
409
+ get: function () { return chunkFS2GVO2T_cjs.havingLt; }
410
410
  });
411
411
  Object.defineProperty(exports, "havingLte", {
412
412
  enumerable: true,
413
- get: function () { return chunkY4X6ODVY_cjs.havingLte; }
413
+ get: function () { return chunkFS2GVO2T_cjs.havingLte; }
414
414
  });
415
415
  Object.defineProperty(exports, "limitFragment", {
416
416
  enumerable: true,
417
- get: function () { return chunkY4X6ODVY_cjs.limitFragment; }
417
+ get: function () { return chunkFS2GVO2T_cjs.limitFragment; }
418
418
  });
419
419
  Object.defineProperty(exports, "max", {
420
420
  enumerable: true,
421
- get: function () { return chunkY4X6ODVY_cjs.max; }
421
+ get: function () { return chunkFS2GVO2T_cjs.max; }
422
422
  });
423
423
  Object.defineProperty(exports, "min", {
424
424
  enumerable: true,
425
- get: function () { return chunkY4X6ODVY_cjs.min; }
425
+ get: function () { return chunkFS2GVO2T_cjs.min; }
426
426
  });
427
427
  Object.defineProperty(exports, "offsetFragment", {
428
428
  enumerable: true,
429
- get: function () { return chunkY4X6ODVY_cjs.offsetFragment; }
429
+ get: function () { return chunkFS2GVO2T_cjs.offsetFragment; }
430
430
  });
431
431
  Object.defineProperty(exports, "orderByFragment", {
432
432
  enumerable: true,
433
- get: function () { return chunkY4X6ODVY_cjs.orderByFragment; }
433
+ get: function () { return chunkFS2GVO2T_cjs.orderByFragment; }
434
434
  });
435
435
  Object.defineProperty(exports, "sum", {
436
436
  enumerable: true,
437
- get: function () { return chunkY4X6ODVY_cjs.sum; }
437
+ get: function () { return chunkFS2GVO2T_cjs.sum; }
438
438
  });
439
439
  Object.defineProperty(exports, "sqliteVecStrategy", {
440
440
  enumerable: true,
@@ -486,79 +486,79 @@ Object.defineProperty(exports, "metaEdge", {
486
486
  });
487
487
  Object.defineProperty(exports, "instantiateGraph", {
488
488
  enumerable: true,
489
- get: function () { return chunkK7YACILO_cjs.instantiateGraph; }
489
+ get: function () { return chunkGXHEGNI6_cjs.instantiateGraph; }
490
490
  });
491
491
  Object.defineProperty(exports, "instantiateGraphTemplate", {
492
492
  enumerable: true,
493
- get: function () { return chunkK7YACILO_cjs.instantiateGraphTemplate; }
493
+ get: function () { return chunkGXHEGNI6_cjs.instantiateGraphTemplate; }
494
494
  });
495
495
  Object.defineProperty(exports, "registerGraphTemplate", {
496
496
  enumerable: true,
497
- get: function () { return chunkK7YACILO_cjs.registerGraphTemplate; }
497
+ get: function () { return chunkGXHEGNI6_cjs.registerGraphTemplate; }
498
498
  });
499
499
  Object.defineProperty(exports, "broader", {
500
500
  enumerable: true,
501
- get: function () { return chunkBX42F7IJ_cjs.broader; }
501
+ get: function () { return chunkSSDLQPMY_cjs.broader; }
502
502
  });
503
503
  Object.defineProperty(exports, "core", {
504
504
  enumerable: true,
505
- get: function () { return chunkBX42F7IJ_cjs.core; }
505
+ get: function () { return chunkSSDLQPMY_cjs.core; }
506
506
  });
507
507
  Object.defineProperty(exports, "differentFrom", {
508
508
  enumerable: true,
509
- get: function () { return chunkBX42F7IJ_cjs.differentFrom; }
509
+ get: function () { return chunkSSDLQPMY_cjs.differentFrom; }
510
510
  });
511
511
  Object.defineProperty(exports, "disjointWith", {
512
512
  enumerable: true,
513
- get: function () { return chunkBX42F7IJ_cjs.disjointWith; }
513
+ get: function () { return chunkSSDLQPMY_cjs.disjointWith; }
514
514
  });
515
515
  Object.defineProperty(exports, "equivalentTo", {
516
516
  enumerable: true,
517
- get: function () { return chunkBX42F7IJ_cjs.equivalentTo; }
517
+ get: function () { return chunkSSDLQPMY_cjs.equivalentTo; }
518
518
  });
519
519
  Object.defineProperty(exports, "getActiveSchema", {
520
520
  enumerable: true,
521
- get: function () { return chunkBX42F7IJ_cjs.getActiveSchema; }
521
+ get: function () { return chunkSSDLQPMY_cjs.getActiveSchema; }
522
522
  });
523
523
  Object.defineProperty(exports, "getCommittedSchemaVersion", {
524
524
  enumerable: true,
525
- get: function () { return chunkBX42F7IJ_cjs.getCommittedSchemaVersion; }
525
+ get: function () { return chunkSSDLQPMY_cjs.getCommittedSchemaVersion; }
526
526
  });
527
527
  Object.defineProperty(exports, "hasPart", {
528
528
  enumerable: true,
529
- get: function () { return chunkBX42F7IJ_cjs.hasPart; }
529
+ get: function () { return chunkSSDLQPMY_cjs.hasPart; }
530
530
  });
531
531
  Object.defineProperty(exports, "implies", {
532
532
  enumerable: true,
533
- get: function () { return chunkBX42F7IJ_cjs.implies; }
533
+ get: function () { return chunkSSDLQPMY_cjs.implies; }
534
534
  });
535
535
  Object.defineProperty(exports, "inverseOf", {
536
536
  enumerable: true,
537
- get: function () { return chunkBX42F7IJ_cjs.inverseOf; }
537
+ get: function () { return chunkSSDLQPMY_cjs.inverseOf; }
538
538
  });
539
539
  Object.defineProperty(exports, "isSchemaInitialized", {
540
540
  enumerable: true,
541
- get: function () { return chunkBX42F7IJ_cjs.isSchemaInitialized; }
541
+ get: function () { return chunkSSDLQPMY_cjs.isSchemaInitialized; }
542
542
  });
543
543
  Object.defineProperty(exports, "narrower", {
544
544
  enumerable: true,
545
- get: function () { return chunkBX42F7IJ_cjs.narrower; }
545
+ get: function () { return chunkSSDLQPMY_cjs.narrower; }
546
546
  });
547
547
  Object.defineProperty(exports, "partOf", {
548
548
  enumerable: true,
549
- get: function () { return chunkBX42F7IJ_cjs.partOf; }
549
+ get: function () { return chunkSSDLQPMY_cjs.partOf; }
550
550
  });
551
551
  Object.defineProperty(exports, "relatedTo", {
552
552
  enumerable: true,
553
- get: function () { return chunkBX42F7IJ_cjs.relatedTo; }
553
+ get: function () { return chunkSSDLQPMY_cjs.relatedTo; }
554
554
  });
555
555
  Object.defineProperty(exports, "sameAs", {
556
556
  enumerable: true,
557
- get: function () { return chunkBX42F7IJ_cjs.sameAs; }
557
+ get: function () { return chunkSSDLQPMY_cjs.sameAs; }
558
558
  });
559
559
  Object.defineProperty(exports, "subClassOf", {
560
560
  enumerable: true,
561
- get: function () { return chunkBX42F7IJ_cjs.subClassOf; }
561
+ get: function () { return chunkSSDLQPMY_cjs.subClassOf; }
562
562
  });
563
563
  Object.defineProperty(exports, "defineEdge", {
564
564
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ExecutableAggregateQuery, ExecutableProjectionQuery, ExecutableQuery, ExecutableRelationQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-TR7QTODF.js';
1
+ export { ExecutableAggregateQuery, ExecutableProjectionQuery, ExecutableQuery, ExecutableRelationQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-55DGFZYC.js';
2
2
  export { sqliteVecStrategy } from './chunk-JVWXWAV5.js';
3
3
  export { libsqlVectorStrategy } from './chunk-ZL67ENQW.js';
4
4
  export { pgvectorStrategy } from './chunk-D2DMFIH2.js';
@@ -13,8 +13,8 @@ import './chunk-6ECNYQDW.js';
13
13
  import './chunk-CDKNGCE7.js';
14
14
  import './chunk-N535PWMA.js';
15
15
  import './chunk-UFKYMQJ5.js';
16
- export { instantiateGraph, instantiateGraphTemplate, registerGraphTemplate } from './chunk-SSDHR2C2.js';
17
- export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-WB55URNM.js';
16
+ export { instantiateGraph, instantiateGraphTemplate, registerGraphTemplate } from './chunk-EFSXK3DW.js';
17
+ export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-6CKSTY2D.js';
18
18
  import './chunk-RFMSZ7CF.js';
19
19
  export { defineEdge, defineNode, isMetaEdge } from './chunk-Q2SPDS3B.js';
20
20
  import './chunk-SYXTWPX6.js';
@@ -4,7 +4,7 @@ var chunkANMCKLZQ_cjs = require('./chunk-ANMCKLZQ.cjs');
4
4
  require('./chunk-QCD5JKU4.cjs');
5
5
  var chunkMN325MG4_cjs = require('./chunk-MN325MG4.cjs');
6
6
  require('./chunk-DCYIUKIM.cjs');
7
- var chunkY4X6ODVY_cjs = require('./chunk-Y4X6ODVY.cjs');
7
+ var chunkFS2GVO2T_cjs = require('./chunk-FS2GVO2T.cjs');
8
8
  require('./chunk-CBHZX3G5.cjs');
9
9
  require('./chunk-FZKXBPTS.cjs');
10
10
  require('./chunk-76OB5RSH.cjs');
@@ -16,7 +16,7 @@ require('./chunk-I7SBZJI2.cjs');
16
16
  require('./chunk-G7OKJDMG.cjs');
17
17
  require('./chunk-R255UE5U.cjs');
18
18
  require('./chunk-MRUOOAIQ.cjs');
19
- require('./chunk-BX42F7IJ.cjs');
19
+ require('./chunk-SSDLQPMY.cjs');
20
20
  require('./chunk-6YKISECL.cjs');
21
21
  require('./chunk-ICOTLZBV.cjs');
22
22
  require('./chunk-EBQX7MYL.cjs');
@@ -67,7 +67,7 @@ async function createLocalSqliteStoreImpl(graph, options) {
67
67
  ...tables === void 0 ? {} : { tables }
68
68
  });
69
69
  try {
70
- const [store] = await chunkY4X6ODVY_cjs.createStoreWithSchema(graph, backend, {
70
+ const [store] = await chunkFS2GVO2T_cjs.createStoreWithSchema(graph, backend, {
71
71
  ...options.store,
72
72
  // The type already excludes `schema` here; the runtime strip guards
73
73
  // untyped callers, so the provisioned schema (or the default tables)
@@ -81,5 +81,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
81
81
  }
82
82
 
83
83
  exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
84
- //# sourceMappingURL=local-store-impl-OUINMCYI.cjs.map
85
- //# sourceMappingURL=local-store-impl-OUINMCYI.cjs.map
84
+ //# sourceMappingURL=local-store-impl-7SPBIS4M.cjs.map
85
+ //# sourceMappingURL=local-store-impl-7SPBIS4M.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-OUINMCYI.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-7SPBIS4M.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,7 +2,7 @@ import { createLocalSqliteBackend } from './chunk-YHMXF7OZ.js';
2
2
  import './chunk-H4FY6OZK.js';
3
3
  import { createSqliteTables } from './chunk-2DJKHZQ4.js';
4
4
  import './chunk-DX6DIU2S.js';
5
- import { createStoreWithSchema } from './chunk-TR7QTODF.js';
5
+ import { createStoreWithSchema } from './chunk-55DGFZYC.js';
6
6
  import './chunk-JVWXWAV5.js';
7
7
  import './chunk-D2DMFIH2.js';
8
8
  import './chunk-OF63ZHSD.js';
@@ -14,7 +14,7 @@ import './chunk-6ECNYQDW.js';
14
14
  import './chunk-CDKNGCE7.js';
15
15
  import './chunk-N535PWMA.js';
16
16
  import './chunk-UFKYMQJ5.js';
17
- import './chunk-WB55URNM.js';
17
+ import './chunk-6CKSTY2D.js';
18
18
  import './chunk-RFMSZ7CF.js';
19
19
  import './chunk-Q2SPDS3B.js';
20
20
  import './chunk-SYXTWPX6.js';
@@ -79,5 +79,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
79
79
  }
80
80
 
81
81
  export { createLocalSqliteStoreImpl };
82
- //# sourceMappingURL=local-store-impl-ERPNYOCL.js.map
83
- //# sourceMappingURL=local-store-impl-ERPNYOCL.js.map
82
+ //# sourceMappingURL=local-store-impl-E23EDYPV.js.map
83
+ //# sourceMappingURL=local-store-impl-E23EDYPV.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-ERPNYOCL.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-E23EDYPV.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,7 +3,7 @@
3
3
  var chunkWWSYGZED_cjs = require('./chunk-WWSYGZED.cjs');
4
4
  var chunkMN325MG4_cjs = require('./chunk-MN325MG4.cjs');
5
5
  require('./chunk-DCYIUKIM.cjs');
6
- var chunkY4X6ODVY_cjs = require('./chunk-Y4X6ODVY.cjs');
6
+ var chunkFS2GVO2T_cjs = require('./chunk-FS2GVO2T.cjs');
7
7
  require('./chunk-FZKXBPTS.cjs');
8
8
  require('./chunk-76OB5RSH.cjs');
9
9
  require('./chunk-2XQYRCPM.cjs');
@@ -14,7 +14,7 @@ require('./chunk-I7SBZJI2.cjs');
14
14
  require('./chunk-G7OKJDMG.cjs');
15
15
  require('./chunk-R255UE5U.cjs');
16
16
  require('./chunk-MRUOOAIQ.cjs');
17
- require('./chunk-BX42F7IJ.cjs');
17
+ require('./chunk-SSDLQPMY.cjs');
18
18
  require('./chunk-6YKISECL.cjs');
19
19
  require('./chunk-ICOTLZBV.cjs');
20
20
  require('./chunk-EBQX7MYL.cjs');
@@ -64,7 +64,7 @@ async function createLocalPgliteStoreImpl(graph, options) {
64
64
  ...tables === void 0 ? {} : { tables }
65
65
  });
66
66
  try {
67
- const [store] = await chunkY4X6ODVY_cjs.createStoreWithSchema(graph, backend, {
67
+ const [store] = await chunkFS2GVO2T_cjs.createStoreWithSchema(graph, backend, {
68
68
  ...options.store,
69
69
  // The type already excludes `schema` here; the runtime strip guards
70
70
  // untyped callers, so the provisioned schema (or the default tables)
@@ -78,5 +78,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
78
78
  }
79
79
 
80
80
  exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
81
- //# sourceMappingURL=pglite-store-impl-Z3SOOP75.cjs.map
82
- //# sourceMappingURL=pglite-store-impl-Z3SOOP75.cjs.map
81
+ //# sourceMappingURL=pglite-store-impl-U55HQ5ZY.cjs.map
82
+ //# sourceMappingURL=pglite-store-impl-U55HQ5ZY.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-Z3SOOP75.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-U55HQ5ZY.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,7 +1,7 @@
1
1
  import { createLocalPgliteBackend } from './chunk-ZONDBN6H.js';
2
2
  import { createPostgresTables } from './chunk-2DJKHZQ4.js';
3
3
  import './chunk-DX6DIU2S.js';
4
- import { createStoreWithSchema } from './chunk-TR7QTODF.js';
4
+ import { createStoreWithSchema } from './chunk-55DGFZYC.js';
5
5
  import './chunk-D2DMFIH2.js';
6
6
  import './chunk-OF63ZHSD.js';
7
7
  import './chunk-XELE7ZOX.js';
@@ -12,7 +12,7 @@ import './chunk-6ECNYQDW.js';
12
12
  import './chunk-CDKNGCE7.js';
13
13
  import './chunk-N535PWMA.js';
14
14
  import './chunk-UFKYMQJ5.js';
15
- import './chunk-WB55URNM.js';
15
+ import './chunk-6CKSTY2D.js';
16
16
  import './chunk-RFMSZ7CF.js';
17
17
  import './chunk-Q2SPDS3B.js';
18
18
  import './chunk-SYXTWPX6.js';
@@ -76,5 +76,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
76
76
  }
77
77
 
78
78
  export { createLocalPgliteStoreImpl };
79
- //# sourceMappingURL=pglite-store-impl-DUJBQZS5.js.map
80
- //# sourceMappingURL=pglite-store-impl-DUJBQZS5.js.map
79
+ //# sourceMappingURL=pglite-store-impl-VAIEJZOU.js.map
80
+ //# sourceMappingURL=pglite-store-impl-VAIEJZOU.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-DUJBQZS5.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-VAIEJZOU.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"]}