@nicia-ai/typegraph 0.38.0 → 0.39.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 (95) hide show
  1. package/dist/backend/postgres/index.cjs +16 -16
  2. package/dist/backend/postgres/index.js +3 -3
  3. package/dist/backend/postgres/pglite-store.cjs +11 -11
  4. package/dist/backend/postgres/pglite-store.d.cts +1 -1
  5. package/dist/backend/postgres/pglite-store.d.ts +1 -1
  6. package/dist/backend/postgres/pglite-store.js +8 -8
  7. package/dist/backend/postgres/pglite.cjs +5 -5
  8. package/dist/backend/postgres/pglite.js +4 -4
  9. package/dist/backend/sqlite/index.cjs +6 -6
  10. package/dist/backend/sqlite/index.js +3 -3
  11. package/dist/backend/sqlite/libsql.cjs +5 -5
  12. package/dist/backend/sqlite/libsql.js +3 -3
  13. package/dist/backend/sqlite/local-store.cjs +11 -11
  14. package/dist/backend/sqlite/local-store.d.cts +1 -1
  15. package/dist/backend/sqlite/local-store.d.ts +1 -1
  16. package/dist/backend/sqlite/local-store.js +9 -9
  17. package/dist/backend/sqlite/local.cjs +6 -6
  18. package/dist/backend/sqlite/local.js +4 -4
  19. package/dist/{chunk-UPXDVI3T.js → chunk-3SK4SVTW.js} +3 -3
  20. package/dist/{chunk-UPXDVI3T.js.map → chunk-3SK4SVTW.js.map} +1 -1
  21. package/dist/{chunk-NU23DUSJ.cjs → chunk-3YFDFOYB.cjs} +7 -7
  22. package/dist/{chunk-NU23DUSJ.cjs.map → chunk-3YFDFOYB.cjs.map} +1 -1
  23. package/dist/{chunk-NWYCOFEZ.cjs → chunk-5ELKD2FQ.cjs} +4 -4
  24. package/dist/chunk-5ELKD2FQ.cjs.map +1 -0
  25. package/dist/{chunk-2SL7OGPR.cjs → chunk-6SRLCSAV.cjs} +478 -338
  26. package/dist/chunk-6SRLCSAV.cjs.map +1 -0
  27. package/dist/{chunk-A2FGSWMQ.js → chunk-CBK2IVI2.js} +167 -27
  28. package/dist/chunk-CBK2IVI2.js.map +1 -0
  29. package/dist/{chunk-TE5ZA4VX.js → chunk-DOKUXLFH.js} +14 -10
  30. package/dist/chunk-DOKUXLFH.js.map +1 -0
  31. package/dist/{chunk-KCLZHYPU.cjs → chunk-E2Q7SP2K.cjs} +52 -52
  32. package/dist/{chunk-KCLZHYPU.cjs.map → chunk-E2Q7SP2K.cjs.map} +1 -1
  33. package/dist/{chunk-YLINFV7Z.cjs → chunk-GKQU44SQ.cjs} +67 -63
  34. package/dist/chunk-GKQU44SQ.cjs.map +1 -0
  35. package/dist/{chunk-O5H62ZWJ.cjs → chunk-HP6LWBLB.cjs} +14 -2
  36. package/dist/chunk-HP6LWBLB.cjs.map +1 -0
  37. package/dist/{chunk-7VLCN3JB.cjs → chunk-HTQOBY75.cjs} +59 -59
  38. package/dist/{chunk-7VLCN3JB.cjs.map → chunk-HTQOBY75.cjs.map} +1 -1
  39. package/dist/{chunk-RQPRCEIO.js → chunk-IFDXG2YJ.js} +3 -3
  40. package/dist/chunk-IFDXG2YJ.js.map +1 -0
  41. package/dist/{chunk-YJDSPA5E.js → chunk-IFRPHG7O.js} +4 -4
  42. package/dist/{chunk-YJDSPA5E.js.map → chunk-IFRPHG7O.js.map} +1 -1
  43. package/dist/{chunk-LZ3TVJY4.cjs → chunk-JD2YC62H.cjs} +17 -17
  44. package/dist/{chunk-LZ3TVJY4.cjs.map → chunk-JD2YC62H.cjs.map} +1 -1
  45. package/dist/{chunk-XD6X7O5R.js → chunk-KAFXPB2L.js} +4 -4
  46. package/dist/{chunk-XD6X7O5R.js.map → chunk-KAFXPB2L.js.map} +1 -1
  47. package/dist/{chunk-ZHX4KEM7.cjs → chunk-KIZSHRUI.cjs} +7 -7
  48. package/dist/{chunk-ZHX4KEM7.cjs.map → chunk-KIZSHRUI.cjs.map} +1 -1
  49. package/dist/{chunk-G32AO634.js → chunk-KXFUQNF2.js} +3 -3
  50. package/dist/{chunk-G32AO634.js.map → chunk-KXFUQNF2.js.map} +1 -1
  51. package/dist/{chunk-E6YZRKMM.js → chunk-NQBYTLPW.js} +4 -4
  52. package/dist/{chunk-E6YZRKMM.js.map → chunk-NQBYTLPW.js.map} +1 -1
  53. package/dist/{chunk-VBH7ZXSZ.js → chunk-SU7VQOJ3.js} +3 -3
  54. package/dist/{chunk-VBH7ZXSZ.js.map → chunk-SU7VQOJ3.js.map} +1 -1
  55. package/dist/{chunk-KFLXWVUJ.js → chunk-UUIBACKJ.js} +14 -3
  56. package/dist/chunk-UUIBACKJ.js.map +1 -0
  57. package/dist/{chunk-CQC6VBAF.cjs → chunk-VXAFOF6Z.cjs} +5 -5
  58. package/dist/{chunk-CQC6VBAF.cjs.map → chunk-VXAFOF6Z.cjs.map} +1 -1
  59. package/dist/{chunk-XFY73JWD.cjs → chunk-Y6UA55YS.cjs} +5 -5
  60. package/dist/{chunk-XFY73JWD.cjs.map → chunk-Y6UA55YS.cjs.map} +1 -1
  61. package/dist/{chunk-6G5CQ6JX.js → chunk-YPUNPG2T.js} +4 -4
  62. package/dist/{chunk-6G5CQ6JX.js.map → chunk-YPUNPG2T.js.map} +1 -1
  63. package/dist/graph-merge/index.cjs +30 -32
  64. package/dist/graph-merge/index.cjs.map +1 -1
  65. package/dist/graph-merge/index.d.cts +10 -5
  66. package/dist/graph-merge/index.d.ts +10 -5
  67. package/dist/graph-merge/index.js +9 -11
  68. package/dist/graph-merge/index.js.map +1 -1
  69. package/dist/index.cjs +68 -68
  70. package/dist/index.d.cts +2 -2
  71. package/dist/index.d.ts +2 -2
  72. package/dist/index.js +5 -5
  73. package/dist/interchange/index.cjs +23 -23
  74. package/dist/interchange/index.d.cts +1 -1
  75. package/dist/interchange/index.d.ts +1 -1
  76. package/dist/interchange/index.js +4 -4
  77. package/dist/profiler/index.d.cts +1 -1
  78. package/dist/profiler/index.d.ts +1 -1
  79. package/dist/provenance/index.cjs +11 -11
  80. package/dist/provenance/index.d.cts +1 -1
  81. package/dist/provenance/index.d.ts +1 -1
  82. package/dist/provenance/index.js +2 -2
  83. package/dist/schema/index.cjs +22 -22
  84. package/dist/schema/index.js +3 -3
  85. package/dist/{store-view-BoHqdHjB.d.cts → store-view-BJd6Vwpt.d.cts} +39 -17
  86. package/dist/{store-view-Ctq-3OHy.d.ts → store-view-CLIhwMMX.d.ts} +39 -17
  87. package/package.json +1 -1
  88. package/dist/chunk-2SL7OGPR.cjs.map +0 -1
  89. package/dist/chunk-A2FGSWMQ.js.map +0 -1
  90. package/dist/chunk-KFLXWVUJ.js.map +0 -1
  91. package/dist/chunk-NWYCOFEZ.cjs.map +0 -1
  92. package/dist/chunk-O5H62ZWJ.cjs.map +0 -1
  93. package/dist/chunk-RQPRCEIO.js.map +0 -1
  94. package/dist/chunk-TE5ZA4VX.js.map +0 -1
  95. package/dist/chunk-YLINFV7Z.cjs.map +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkXFY73JWD_cjs = require('./chunk-XFY73JWD.cjs');
3
+ var chunkY6UA55YS_cjs = require('./chunk-Y6UA55YS.cjs');
4
4
  var chunkB63IFHXR_cjs = require('./chunk-B63IFHXR.cjs');
5
5
  var chunkE6TXEISH_cjs = require('./chunk-E6TXEISH.cjs');
6
6
  var chunkDOVMTPKE_cjs = require('./chunk-DOVMTPKE.cjs');
7
7
  var chunkZDH3DX3C_cjs = require('./chunk-ZDH3DX3C.cjs');
8
8
  var chunkGNPGGLAE_cjs = require('./chunk-GNPGGLAE.cjs');
9
- var chunkO5H62ZWJ_cjs = require('./chunk-O5H62ZWJ.cjs');
9
+ var chunkHP6LWBLB_cjs = require('./chunk-HP6LWBLB.cjs');
10
10
  var chunkZKZAIX42_cjs = require('./chunk-ZKZAIX42.cjs');
11
11
  var chunkX6RDQ5NB_cjs = require('./chunk-X6RDQ5NB.cjs');
12
12
  var chunk764JHTLT_cjs = require('./chunk-764JHTLT.cjs');
@@ -45,7 +45,7 @@ var DEFAULT_POSTGRES_STATEMENT_CACHE_MAX = 256;
45
45
  var STATEMENT_NAME_CACHE = /* @__PURE__ */ new Map();
46
46
  var nextStatementId = 0;
47
47
  function statementNameFor(sqlText, cacheMax) {
48
- return chunkXFY73JWD_cjs.getOrCreateLru(STATEMENT_NAME_CACHE, sqlText, cacheMax, () => {
48
+ return chunkY6UA55YS_cjs.getOrCreateLru(STATEMENT_NAME_CACHE, sqlText, cacheMax, () => {
49
49
  const name = `tg_${nextStatementId}`;
50
50
  nextStatementId += 1;
51
51
  return name;
@@ -302,7 +302,7 @@ function buildPostgresCapabilities(fulltextStrategy, vectorStrategy) {
302
302
  };
303
303
  }
304
304
  function createPostgresBackend(db, options = {}) {
305
- const tables2 = options.tables ?? chunkXFY73JWD_cjs.tables;
305
+ const tables2 = options.tables ?? chunkY6UA55YS_cjs.tables;
306
306
  const fulltextStrategy = options.fulltext ?? chunkZKZAIX42_cjs.tsvectorStrategy;
307
307
  const vectorStrategy = options.vector === false ? void 0 : options.vector ?? chunkB63IFHXR_cjs.pgvectorStrategy;
308
308
  const iterativeScanProbe = createIterativeScanProbe();
@@ -353,11 +353,11 @@ function createPostgresBackend(db, options = {}) {
353
353
  tableNames.recordedEdges,
354
354
  tableNames.recordedClock
355
355
  ];
356
- const operationStrategy = chunkXFY73JWD_cjs.createPostgresOperationStrategy(
356
+ const operationStrategy = chunkY6UA55YS_cjs.createPostgresOperationStrategy(
357
357
  tables2,
358
358
  fulltextStrategy
359
359
  );
360
- const recordedTableExists = chunkXFY73JWD_cjs.createCachedTableExistence(
360
+ const recordedTableExists = chunkY6UA55YS_cjs.createCachedTableExistence(
361
361
  async (tableName) => {
362
362
  const rows = await executionAdapter.execute(
363
363
  operationStrategy.buildTableExists(tableName)
@@ -368,7 +368,7 @@ function createPostgresBackend(db, options = {}) {
368
368
  );
369
369
  const matTable = tables2.contributionMaterializations;
370
370
  async function ensureContributionMaterializationsTableImpl() {
371
- await db.execute(drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generatePgCreateTableSQL(matTable)));
371
+ await db.execute(drizzleOrm.sql.raw(chunkY6UA55YS_cjs.generatePgCreateTableSQL(matTable)));
372
372
  }
373
373
  async function getContributionMaterializationRow(identity) {
374
374
  const rows = await db.select().from(matTable).where(
@@ -381,25 +381,25 @@ function createPostgresBackend(db, options = {}) {
381
381
  );
382
382
  const row = rows[0];
383
383
  if (row === void 0) return void 0;
384
- return chunkXFY73JWD_cjs.mapContributionMaterializationRow(
384
+ return chunkY6UA55YS_cjs.mapContributionMaterializationRow(
385
385
  row,
386
- chunkXFY73JWD_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
386
+ chunkY6UA55YS_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
387
387
  );
388
388
  }
389
389
  async function getContributionMaterializationRows(graphId) {
390
390
  const rows = await db.select().from(matTable).where(drizzleOrm.eq(matTable.graphId, graphId));
391
391
  return rows.map(
392
- (row) => chunkXFY73JWD_cjs.mapContributionMaterializationRow(
392
+ (row) => chunkY6UA55YS_cjs.mapContributionMaterializationRow(
393
393
  row,
394
- chunkXFY73JWD_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
394
+ chunkY6UA55YS_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
395
395
  )
396
396
  );
397
397
  }
398
398
  async function recordContributionMaterializationRow(params) {
399
399
  await db.insert(matTable).values(
400
- chunkXFY73JWD_cjs.buildContributionInsertValues(
400
+ chunkY6UA55YS_cjs.buildContributionInsertValues(
401
401
  params,
402
- chunkXFY73JWD_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.encode
402
+ chunkY6UA55YS_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.encode
403
403
  )
404
404
  ).onConflictDoUpdate({
405
405
  target: [
@@ -408,7 +408,7 @@ function createPostgresBackend(db, options = {}) {
408
408
  matTable.owner,
409
409
  matTable.tableName
410
410
  ],
411
- set: chunkXFY73JWD_cjs.buildContributionOnConflictSet(
411
+ set: chunkY6UA55YS_cjs.buildContributionOnConflictSet(
412
412
  matTable.materializedAt,
413
413
  params.materializedAt
414
414
  )
@@ -424,7 +424,7 @@ function createPostgresBackend(db, options = {}) {
424
424
  )
425
425
  );
426
426
  }
427
- const contributionMaterializer = chunkXFY73JWD_cjs.createContributionMaterializer({
427
+ const contributionMaterializer = chunkY6UA55YS_cjs.createContributionMaterializer({
428
428
  dialect: "postgres",
429
429
  fulltextStrategy,
430
430
  fulltextTableName: tables2.fulltextTableName,
@@ -493,7 +493,7 @@ function createPostgresBackend(db, options = {}) {
493
493
  iterativeScanProbe
494
494
  });
495
495
  return {
496
- backend: chunkXFY73JWD_cjs.gateFulltext(
496
+ backend: chunkY6UA55YS_cjs.gateFulltext(
497
497
  backend2,
498
498
  contributionMaterializer.assertInitialized
499
499
  ),
@@ -521,30 +521,30 @@ function createPostgresBackend(db, options = {}) {
521
521
  return executeCompiled({ params, sql: sqlText });
522
522
  }
523
523
  });
524
- await chunkXFY73JWD_cjs.lockPostgresTrustedImportTables(trustedTx, tableNames);
525
- await chunkXFY73JWD_cjs.assertTrustedImportDatabaseEmpty(trustedTx, tableNames);
526
- const indexDefinitions = await chunkXFY73JWD_cjs.suspendPostgresSecondaryIndexes(
524
+ await chunkY6UA55YS_cjs.lockPostgresTrustedImportTables(trustedTx, tableNames);
525
+ await chunkY6UA55YS_cjs.assertTrustedImportDatabaseEmpty(trustedTx, tableNames);
526
+ const indexDefinitions = await chunkY6UA55YS_cjs.suspendPostgresSecondaryIndexes(
527
527
  trustedTx,
528
528
  tableNames
529
529
  );
530
530
  const result = await fn(
531
- chunkXFY73JWD_cjs.createPostgresTrustedImportSession(trustedTx, tableNames)
531
+ chunkY6UA55YS_cjs.createPostgresTrustedImportSession(trustedTx, tableNames)
532
532
  );
533
- await chunkXFY73JWD_cjs.restoreSecondaryIndexes(trustedTx, indexDefinitions);
534
- await chunkXFY73JWD_cjs.analyzeImportedTables(trustedTx, tableNames);
533
+ await chunkY6UA55YS_cjs.restoreSecondaryIndexes(trustedTx, indexDefinitions);
534
+ await chunkY6UA55YS_cjs.analyzeImportedTables(trustedTx, tableNames);
535
535
  return result;
536
536
  });
537
537
  }
538
538
  } : {},
539
539
  async bootstrapTables() {
540
- const statements = chunkXFY73JWD_cjs.generatePostgresDDL(tables2, fulltextStrategy);
540
+ const statements = chunkY6UA55YS_cjs.generatePostgresDDL(tables2, fulltextStrategy);
541
541
  for (const statement of statements) {
542
542
  await db.execute(drizzleOrm.sql.raw(statement));
543
543
  }
544
544
  },
545
545
  async ensureRevisionOriginsTable() {
546
546
  await db.execute(
547
- drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generatePgCreateTableSQL(tables2.revisionOrigins))
547
+ drizzleOrm.sql.raw(chunkY6UA55YS_cjs.generatePgCreateTableSQL(tables2.revisionOrigins))
548
548
  );
549
549
  },
550
550
  // Every fulltext-touching method asserts the durable marker instead
@@ -552,7 +552,7 @@ function createPostgresBackend(db, options = {}) {
552
552
  // uninitialized database throws `StoreNotInitializedError` loudly
553
553
  // rather than self-healing on a read/write path (#135). Shared
554
554
  // verbatim with the tx-scoped gate via `gateFulltextMethods`.
555
- ...chunkXFY73JWD_cjs.gateFulltextMethods(
555
+ ...chunkY6UA55YS_cjs.gateFulltextMethods(
556
556
  operations,
557
557
  contributionMaterializer.assertInitialized
558
558
  ),
@@ -561,7 +561,7 @@ function createPostgresBackend(db, options = {}) {
561
561
  },
562
562
  async ensureIndexMaterializationsTable() {
563
563
  await db.execute(
564
- drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generatePgCreateTableSQL(tables2.indexMaterializations))
564
+ drizzleOrm.sql.raw(chunkY6UA55YS_cjs.generatePgCreateTableSQL(tables2.indexMaterializations))
565
565
  );
566
566
  const tableName = drizzleOrm.getTableName(tables2.indexMaterializations);
567
567
  await db.execute(
@@ -613,26 +613,26 @@ function createPostgresBackend(db, options = {}) {
613
613
  const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
614
614
  const row = rows[0];
615
615
  if (row === void 0) return void 0;
616
- return chunkXFY73JWD_cjs.mapMaterializationRow(row, chunkXFY73JWD_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode);
616
+ return chunkY6UA55YS_cjs.mapMaterializationRow(row, chunkY6UA55YS_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode);
617
617
  },
618
618
  async getIndexMaterializations(statusKeys) {
619
619
  if (statusKeys.length === 0) return [];
620
620
  const t = tables2.indexMaterializations;
621
621
  const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
622
622
  return rows.map(
623
- (row) => chunkXFY73JWD_cjs.mapMaterializationRow(row, chunkXFY73JWD_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode)
623
+ (row) => chunkY6UA55YS_cjs.mapMaterializationRow(row, chunkY6UA55YS_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode)
624
624
  );
625
625
  },
626
626
  async recordIndexMaterialization(params) {
627
627
  const t = tables2.indexMaterializations;
628
628
  await db.insert(t).values(
629
- chunkXFY73JWD_cjs.buildMaterializationInsertValues(
629
+ chunkY6UA55YS_cjs.buildMaterializationInsertValues(
630
630
  params,
631
- chunkXFY73JWD_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.encode
631
+ chunkY6UA55YS_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.encode
632
632
  )
633
633
  ).onConflictDoUpdate({
634
634
  target: t.indexName,
635
- set: chunkXFY73JWD_cjs.buildMaterializationOnConflictSet(params.materializedAt)
635
+ set: chunkY6UA55YS_cjs.buildMaterializationOnConflictSet(params.materializedAt)
636
636
  });
637
637
  },
638
638
  async ensureContributionMaterializationsTable() {
@@ -648,37 +648,37 @@ function createPostgresBackend(db, options = {}) {
648
648
  await contributionMaterializer.assertInitialized(graphId);
649
649
  },
650
650
  async ensureKindRemovalsTable() {
651
- await db.execute(drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generatePgCreateTableSQL(tables2.kindRemovals)));
651
+ await db.execute(drizzleOrm.sql.raw(chunkY6UA55YS_cjs.generatePgCreateTableSQL(tables2.kindRemovals)));
652
652
  },
653
653
  async getPendingKindRemovals(graphId) {
654
654
  const t = tables2.kindRemovals;
655
655
  const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
656
656
  return rows.map(
657
- (row) => chunkXFY73JWD_cjs.mapKindRemovalRow(row, chunkXFY73JWD_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
657
+ (row) => chunkY6UA55YS_cjs.mapKindRemovalRow(row, chunkY6UA55YS_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
658
658
  );
659
659
  },
660
660
  async getAllKindRemovals(graphId) {
661
661
  const t = tables2.kindRemovals;
662
662
  const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
663
663
  return rows.map(
664
- (row) => chunkXFY73JWD_cjs.mapKindRemovalRow(row, chunkXFY73JWD_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
664
+ (row) => chunkY6UA55YS_cjs.mapKindRemovalRow(row, chunkY6UA55YS_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
665
665
  );
666
666
  },
667
667
  async recordKindRemoval(params) {
668
668
  const t = tables2.kindRemovals;
669
669
  await db.insert(t).values(
670
- chunkXFY73JWD_cjs.buildKindRemovalInsertValues(
670
+ chunkY6UA55YS_cjs.buildKindRemovalInsertValues(
671
671
  params,
672
- chunkXFY73JWD_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.encode
672
+ chunkY6UA55YS_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.encode
673
673
  )
674
674
  ).onConflictDoUpdate({
675
675
  target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
676
- set: chunkXFY73JWD_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
676
+ set: chunkY6UA55YS_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
677
677
  });
678
678
  },
679
679
  async ensureReconciliationMarkersTable() {
680
680
  await db.execute(
681
- drizzleOrm.sql.raw(chunkXFY73JWD_cjs.generatePgCreateTableSQL(tables2.reconciliationMarkers))
681
+ drizzleOrm.sql.raw(chunkY6UA55YS_cjs.generatePgCreateTableSQL(tables2.reconciliationMarkers))
682
682
  );
683
683
  },
684
684
  async ensureRuntimeContributions(graphId) {
@@ -796,7 +796,7 @@ function createPostgresBackend(db, options = {}) {
796
796
  }
797
797
  );
798
798
  }
799
- chunkXFY73JWD_cjs.assertAdoptedDialect(
799
+ chunkY6UA55YS_cjs.assertAdoptedDialect(
800
800
  externalTx,
801
801
  pgCore.PgTransaction,
802
802
  "postgres"
@@ -956,7 +956,7 @@ function createPostgresOperationBackend(options) {
956
956
  embeddingUpsertBatchSize: Math.max(
957
957
  1,
958
958
  Math.floor(
959
- (capabilities.maxBindParameters ?? chunkGNPGGLAE_cjs.POSTGRES_MAX_BIND_PARAMETERS) / chunkXFY73JWD_cjs.EMBEDDING_UPSERT_PARAM_COUNT
959
+ (capabilities.maxBindParameters ?? chunkGNPGGLAE_cjs.POSTGRES_MAX_BIND_PARAMETERS) / chunkY6UA55YS_cjs.EMBEDDING_UPSERT_PARAM_COUNT
960
960
  )
961
961
  ),
962
962
  getEdgesChunkSize: POSTGRES_GET_EDGES_ID_CHUNK_SIZE,
@@ -964,7 +964,7 @@ function createPostgresOperationBackend(options) {
964
964
  nodeInsertBatchSize: POSTGRES_NODE_INSERT_BATCH_SIZE,
965
965
  uniqueInsertBatchSize: POSTGRES_UNIQUE_INSERT_BATCH_SIZE
966
966
  };
967
- const commonBackend = chunkXFY73JWD_cjs.createCommonOperationBackend({
967
+ const commonBackend = chunkY6UA55YS_cjs.createCommonOperationBackend({
968
968
  batchConfig,
969
969
  execution: {
970
970
  execAll,
@@ -989,7 +989,7 @@ function createPostgresOperationBackend(options) {
989
989
  };
990
990
  const vectorEmbeddingMethods = vectorStrategy === void 0 ? {} : {
991
991
  async upsertEmbedding(params) {
992
- const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
992
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromParams(params);
993
993
  await contributionMaterializer.assertVectorSlot(slot);
994
994
  const statements = vectorStrategy.buildUpsert(slot, params, chunkE6TXEISH_cjs.nowIso());
995
995
  try {
@@ -997,12 +997,12 @@ function createPostgresOperationBackend(options) {
997
997
  await execRun(statement);
998
998
  }
999
999
  } catch (error) {
1000
- throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
1000
+ throw chunkY6UA55YS_cjs.mapVectorWriteError(error, params);
1001
1001
  }
1002
1002
  },
1003
1003
  async upsertEmbeddingBatch(params) {
1004
1004
  if (params.rows.length === 0) return;
1005
- const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
1005
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromParams(params);
1006
1006
  await contributionMaterializer.assertVectorSlot(slot);
1007
1007
  const rowsById = new Map(
1008
1008
  params.rows.map((row) => [row.nodeId, row])
@@ -1039,11 +1039,11 @@ function createPostgresOperationBackend(options) {
1039
1039
  }
1040
1040
  }
1041
1041
  } catch (error) {
1042
- throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
1042
+ throw chunkY6UA55YS_cjs.mapVectorWriteError(error, params);
1043
1043
  }
1044
1044
  },
1045
1045
  async deleteEmbedding(params) {
1046
- const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
1046
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromParams(params);
1047
1047
  await contributionMaterializer.assertVectorSlot(slot);
1048
1048
  const statements = vectorStrategy.buildDelete(slot, params);
1049
1049
  for (const statement of statements) {
@@ -1053,13 +1053,13 @@ function createPostgresOperationBackend(options) {
1053
1053
  async vectorSearch(params) {
1054
1054
  chunkZKZAIX42_cjs.assertVectorSearchLimit(params.limit);
1055
1055
  chunkB63IFHXR_cjs.assertPgvectorEfSearch(params.efSearch);
1056
- const slot = chunkXFY73JWD_cjs.vectorSlotFromParams(params);
1056
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromParams(params);
1057
1057
  const query = vectorStrategy.buildSearch(
1058
1058
  slot,
1059
1059
  params,
1060
1060
  // Store-compiled candidates (predicates + subclass + currency)
1061
1061
  // take precedence; the live-node default covers direct backend use.
1062
- params.candidates ?? chunkXFY73JWD_cjs.buildLiveNodeCandidates(
1062
+ params.candidates ?? chunkY6UA55YS_cjs.buildLiveNodeCandidates(
1063
1063
  tableNames.nodes,
1064
1064
  params.graphId,
1065
1065
  params.nodeKind,
@@ -1071,7 +1071,7 @@ function createPostgresOperationBackend(options) {
1071
1071
  try {
1072
1072
  rows = await runVectorSearch(gucOverrides, query);
1073
1073
  } catch (error) {
1074
- throw chunkXFY73JWD_cjs.mapVectorWriteError(error, params);
1074
+ throw chunkY6UA55YS_cjs.mapVectorWriteError(error, params);
1075
1075
  }
1076
1076
  return rows.map((row) => ({
1077
1077
  nodeId: row.node_id,
@@ -1086,7 +1086,7 @@ function createPostgresOperationBackend(options) {
1086
1086
  chunkZKZAIX42_cjs.assertVectorSearchLimit(params.limit);
1087
1087
  chunkZKZAIX42_cjs.assertVectorSearchLimit(params.vector.k);
1088
1088
  chunkB63IFHXR_cjs.assertPgvectorEfSearch(params.vector.efSearch);
1089
- const slot = chunkXFY73JWD_cjs.vectorSlotFromParams({
1089
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromParams({
1090
1090
  graphId: params.graphId,
1091
1091
  nodeKind: params.nodeKind,
1092
1092
  fieldPath: params.vector.fieldPath,
@@ -1094,7 +1094,7 @@ function createPostgresOperationBackend(options) {
1094
1094
  metric: params.vector.metric,
1095
1095
  indexType: params.vector.indexType
1096
1096
  });
1097
- const candidates = params.candidates ?? chunkXFY73JWD_cjs.buildLiveNodeCandidates(
1097
+ const candidates = params.candidates ?? chunkY6UA55YS_cjs.buildLiveNodeCandidates(
1098
1098
  tableNames.nodes,
1099
1099
  params.graphId,
1100
1100
  params.nodeKind,
@@ -1132,9 +1132,9 @@ function createPostgresOperationBackend(options) {
1132
1132
  statement
1133
1133
  );
1134
1134
  } catch (error) {
1135
- throw chunkXFY73JWD_cjs.mapVectorWriteError(error, vectorParams);
1135
+ throw chunkY6UA55YS_cjs.mapVectorWriteError(error, vectorParams);
1136
1136
  }
1137
- return raw.map((row) => chunkXFY73JWD_cjs.mapHybridSearchRow(row, toNodeRow));
1137
+ return raw.map((row) => chunkY6UA55YS_cjs.mapHybridSearchRow(row, toNodeRow));
1138
1138
  }
1139
1139
  } : {}
1140
1140
  };
@@ -1150,7 +1150,7 @@ function createPostgresOperationBackend(options) {
1150
1150
  // === Vector Index Operations ===
1151
1151
  async createVectorIndex(params) {
1152
1152
  if (vectorStrategy === void 0) return;
1153
- const slot = chunkXFY73JWD_cjs.vectorSlotFromCreateIndexParams(params);
1153
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromCreateIndexParams(params);
1154
1154
  await contributionMaterializer.ensureVectorSlot(slot);
1155
1155
  const indexStatement = vectorStrategy.buildCreateIndex?.(slot, {
1156
1156
  concurrent: params.concurrent === true
@@ -1159,7 +1159,7 @@ function createPostgresOperationBackend(options) {
1159
1159
  try {
1160
1160
  await execRun(indexStatement);
1161
1161
  } catch (error) {
1162
- if (!chunkO5H62ZWJ_cjs.isInsufficientResourcesError(error)) throw error;
1162
+ if (!chunkHP6LWBLB_cjs.isInsufficientResourcesError(error)) throw error;
1163
1163
  const dropStatement = vectorStrategy.buildDropIndex?.(slot);
1164
1164
  if (dropStatement !== void 0) {
1165
1165
  await execRun(dropStatement);
@@ -1244,13 +1244,13 @@ function createPostgresOperationBackend(options) {
1244
1244
  },
1245
1245
  async dropVectorIndex(params) {
1246
1246
  if (vectorStrategy === void 0) return;
1247
- const slot = chunkXFY73JWD_cjs.vectorSlotFromDropIndexParams(params);
1247
+ const slot = chunkY6UA55YS_cjs.vectorSlotFromDropIndexParams(params);
1248
1248
  const dropStatement = vectorStrategy.buildDropIndex?.(slot);
1249
1249
  if (dropStatement === void 0) return;
1250
1250
  try {
1251
1251
  await execRun(dropStatement);
1252
1252
  } catch (error) {
1253
- if (!chunkO5H62ZWJ_cjs.isMissingTableError(error)) throw error;
1253
+ if (!chunkHP6LWBLB_cjs.isMissingTableError(error)) throw error;
1254
1254
  }
1255
1255
  },
1256
1256
  // === Query Execution ===
@@ -1294,5 +1294,5 @@ function createTransactionBackend(options) {
1294
1294
  }
1295
1295
 
1296
1296
  exports.createPostgresBackend = createPostgresBackend;
1297
- //# sourceMappingURL=chunk-7VLCN3JB.cjs.map
1298
- //# sourceMappingURL=chunk-7VLCN3JB.cjs.map
1297
+ //# sourceMappingURL=chunk-HTQOBY75.cjs.map
1298
+ //# sourceMappingURL=chunk-HTQOBY75.cjs.map