@nicia-ai/typegraph 0.73.0 → 0.73.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/backend/postgres/pglite-store.cjs +1 -1
  3. package/dist/backend/postgres/pglite-store.js +1 -1
  4. package/dist/backend/postgres/working-copy.cjs +85 -85
  5. package/dist/backend/postgres/working-copy.js +4 -4
  6. package/dist/backend/sqlite/local-store.cjs +1 -1
  7. package/dist/backend/sqlite/local-store.js +1 -1
  8. package/dist/{chunk-7QQ3ICAZ.cjs → chunk-BZ5EXHZX.cjs} +11 -11
  9. package/dist/{chunk-7QQ3ICAZ.cjs.map → chunk-BZ5EXHZX.cjs.map} +1 -1
  10. package/dist/{chunk-ZN24TFVZ.cjs → chunk-GLDGT3L3.cjs} +6 -3
  11. package/dist/chunk-GLDGT3L3.cjs.map +1 -0
  12. package/dist/{chunk-ORTKLAAU.js → chunk-LJG2TYCN.js} +3 -3
  13. package/dist/{chunk-ORTKLAAU.js.map → chunk-LJG2TYCN.js.map} +1 -1
  14. package/dist/{chunk-VKMLQTXP.cjs → chunk-MPCF5XBW.cjs} +159 -159
  15. package/dist/{chunk-VKMLQTXP.cjs.map → chunk-MPCF5XBW.cjs.map} +1 -1
  16. package/dist/{chunk-5RTWCMBC.js → chunk-OA4PF2QI.js} +6 -3
  17. package/dist/chunk-OA4PF2QI.js.map +1 -0
  18. package/dist/{chunk-XGYVKBI5.cjs → chunk-P52FOZSI.cjs} +8 -8
  19. package/dist/{chunk-XGYVKBI5.cjs.map → chunk-P52FOZSI.cjs.map} +1 -1
  20. package/dist/{chunk-KI7VMCOG.cjs → chunk-QJGQ3FN2.cjs} +16 -16
  21. package/dist/{chunk-KI7VMCOG.cjs.map → chunk-QJGQ3FN2.cjs.map} +1 -1
  22. package/dist/{chunk-MSUUUG5B.js → chunk-TI2O2U4G.js} +4 -4
  23. package/dist/{chunk-MSUUUG5B.js.map → chunk-TI2O2U4G.js.map} +1 -1
  24. package/dist/{chunk-FC7INRDS.js → chunk-WX7BQELV.js} +4 -4
  25. package/dist/{chunk-FC7INRDS.js.map → chunk-WX7BQELV.js.map} +1 -1
  26. package/dist/{chunk-NMLLXBGF.js → chunk-XIFBU27X.js} +3 -3
  27. package/dist/{chunk-NMLLXBGF.js.map → chunk-XIFBU27X.js.map} +1 -1
  28. package/dist/graph-merge/index.cjs +531 -531
  29. package/dist/graph-merge/index.js +6 -6
  30. package/dist/index.cjs +43 -43
  31. package/dist/index.js +2 -2
  32. package/dist/interchange/index.cjs +26 -26
  33. package/dist/interchange/index.js +3 -3
  34. package/dist/{local-store-impl-ALYCG7CX.js → local-store-impl-HPNBERU4.js} +4 -4
  35. package/dist/{local-store-impl-ALYCG7CX.js.map → local-store-impl-HPNBERU4.js.map} +1 -1
  36. package/dist/{local-store-impl-2HTGPM6A.cjs → local-store-impl-WIVQ5HDM.cjs} +5 -5
  37. package/dist/{local-store-impl-2HTGPM6A.cjs.map → local-store-impl-WIVQ5HDM.cjs.map} +1 -1
  38. package/dist/{pglite-store-impl-F2WHYIM7.cjs → pglite-store-impl-IXKIXLH6.cjs} +5 -5
  39. package/dist/{pglite-store-impl-F2WHYIM7.cjs.map → pglite-store-impl-IXKIXLH6.cjs.map} +1 -1
  40. package/dist/{pglite-store-impl-3UUTJLGP.js → pglite-store-impl-U3TW3Z4C.js} +4 -4
  41. package/dist/{pglite-store-impl-3UUTJLGP.js.map → pglite-store-impl-U3TW3Z4C.js.map} +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunk-5RTWCMBC.js.map +0 -1
  44. package/dist/chunk-ZN24TFVZ.cjs.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkGZBI2EQM_cjs = require('./chunk-GZBI2EQM.cjs');
4
4
  var chunkB5C2V2LN_cjs = require('./chunk-B5C2V2LN.cjs');
5
- var chunkZN24TFVZ_cjs = require('./chunk-ZN24TFVZ.cjs');
5
+ var chunkGLDGT3L3_cjs = require('./chunk-GLDGT3L3.cjs');
6
6
  var chunk7USI4E2O_cjs = require('./chunk-7USI4E2O.cjs');
7
7
  var chunkBJCI4W4M_cjs = require('./chunk-BJCI4W4M.cjs');
8
8
  var chunkTHCONLOL_cjs = require('./chunk-THCONLOL.cjs');
@@ -4529,7 +4529,7 @@ function neighborOutputNames() {
4529
4529
  ];
4530
4530
  }
4531
4531
  function mapEdge(row) {
4532
- return chunkZN24TFVZ_cjs.rowToEdge({
4532
+ return chunkGLDGT3L3_cjs.rowToEdge({
4533
4533
  id: String(row["edge_id"]),
4534
4534
  kind: String(row["edge_kind"]),
4535
4535
  from_kind: String(row["edge_from_kind"]),
@@ -4557,7 +4557,7 @@ function mapEdge(row) {
4557
4557
  });
4558
4558
  }
4559
4559
  function mapNode(row) {
4560
- return chunkZN24TFVZ_cjs.rowToNode({
4560
+ return chunkGLDGT3L3_cjs.rowToNode({
4561
4561
  id: String(row["node_id"]),
4562
4562
  kind: String(row["node_kind"]),
4563
4563
  props: row["node_props"],
@@ -5559,7 +5559,7 @@ function mapSubgraphNodeRow(row, projectionPlan) {
5559
5559
  const kindPlan = projectionPlan.projectedKinds.get(row.kind);
5560
5560
  if (kindPlan === void 0) {
5561
5561
  const normalizedRow = normalizeSubgraphRowTimestamps(row);
5562
- return chunkZN24TFVZ_cjs.rowToNode({
5562
+ return chunkGLDGT3L3_cjs.rowToNode({
5563
5563
  ...normalizedRow,
5564
5564
  props: normalizeProps(normalizedRow.props)
5565
5565
  });
@@ -5569,7 +5569,7 @@ function mapSubgraphNodeRow(row, projectionPlan) {
5569
5569
  id: row.id
5570
5570
  };
5571
5571
  if (kindPlan.includeMeta) {
5572
- projectedNode["meta"] = chunkZN24TFVZ_cjs.rowToNodeMeta(normalizeSubgraphRowTimestamps(row));
5572
+ projectedNode["meta"] = chunkGLDGT3L3_cjs.rowToNodeMeta(normalizeSubgraphRowTimestamps(row));
5573
5573
  }
5574
5574
  applyProjectedFields(projectedNode, row, kindPlan);
5575
5575
  return projectedNode;
@@ -5578,7 +5578,7 @@ function mapSubgraphEdgeRow(row, projectionPlan) {
5578
5578
  const kindPlan = projectionPlan.projectedKinds.get(row.kind);
5579
5579
  if (kindPlan === void 0) {
5580
5580
  const normalizedRow = normalizeSubgraphRowTimestamps(row);
5581
- return chunkZN24TFVZ_cjs.rowToEdge({
5581
+ return chunkGLDGT3L3_cjs.rowToEdge({
5582
5582
  ...normalizedRow,
5583
5583
  props: normalizeProps(normalizedRow.props)
5584
5584
  });
@@ -5592,7 +5592,7 @@ function mapSubgraphEdgeRow(row, projectionPlan) {
5592
5592
  toId: row.to_id
5593
5593
  };
5594
5594
  if (kindPlan.includeMeta) {
5595
- projectedEdge["meta"] = chunkZN24TFVZ_cjs.rowToEdgeMeta(normalizeSubgraphRowTimestamps(row));
5595
+ projectedEdge["meta"] = chunkGLDGT3L3_cjs.rowToEdgeMeta(normalizeSubgraphRowTimestamps(row));
5596
5596
  }
5597
5597
  applyProjectedFields(projectedEdge, row, kindPlan);
5598
5598
  return projectedEdge;
@@ -15970,7 +15970,7 @@ async function executeHybridSearch(ctx, nodeKind, options) {
15970
15970
  ...candidates === void 0 ? {} : { candidates }
15971
15971
  });
15972
15972
  return rows.map((row, index) => {
15973
- const typedNode = chunkZN24TFVZ_cjs.rowToNode(row.node);
15973
+ const typedNode = chunkGLDGT3L3_cjs.rowToNode(row.node);
15974
15974
  return {
15975
15975
  node: typedNode,
15976
15976
  score: row.fusedScore,
@@ -16249,13 +16249,13 @@ async function fetchNodesByIds(backend, batchPointRead, graphId, nodeKind, ids)
16249
16249
  const rows = await bound.getNodes(graphId, nodeKind, ids);
16250
16250
  for (const row of rows) {
16251
16251
  if (row.deleted_at !== void 0) continue;
16252
- map.set(row.id, chunkZN24TFVZ_cjs.rowToNode(row));
16252
+ map.set(row.id, chunkGLDGT3L3_cjs.rowToNode(row));
16253
16253
  }
16254
16254
  return map;
16255
16255
  }
16256
16256
  for (const id of ids) {
16257
16257
  const row = await backend.getNode(graphId, nodeKind, id);
16258
- if (row && row.deleted_at === void 0) map.set(row.id, chunkZN24TFVZ_cjs.rowToNode(row));
16258
+ if (row && row.deleted_at === void 0) map.set(row.id, chunkGLDGT3L3_cjs.rowToNode(row));
16259
16259
  }
16260
16260
  return map;
16261
16261
  }
@@ -20259,18 +20259,18 @@ function lowerBoundRequiresWrite(requested, stored) {
20259
20259
  return requestedValidFrom !== void 0 && requestedValidFrom !== null && !chunk3XJGYE66_cjs.isCanonicalIsoDate(requestedValidFrom);
20260
20260
  }
20261
20261
  function upsertWindowChanges(requested, current) {
20262
- return lowerBoundRequiresWrite(requested, current.valid_from) || requested?.clearValidTo === true && chunkZN24TFVZ_cjs.validityEndAfterMutation(requested, current.valid_to) !== current.valid_to || requested?.clearValidTo === true && requested.validTo !== void 0 || windowFieldChanges("validTo", requested?.validTo, current.valid_to);
20262
+ return lowerBoundRequiresWrite(requested, current.valid_from) || requested?.clearValidTo === true && chunkGLDGT3L3_cjs.validityEndAfterMutation(requested, current.valid_to) !== current.valid_to || requested?.clearValidTo === true && requested.validTo !== void 0 || windowFieldChanges("validTo", requested?.validTo, current.valid_to);
20263
20263
  }
20264
20264
  function windowAfterUpsertCreate(requested) {
20265
20265
  return {
20266
20266
  valid_from: requested.validFrom === null ? void 0 : requested.validFrom ?? UNKNOWN_VALIDITY_LOWER_BOUND,
20267
- valid_to: chunkZN24TFVZ_cjs.validityEndAfterMutation(requested, void 0)
20267
+ valid_to: chunkGLDGT3L3_cjs.validityEndAfterMutation(requested, void 0)
20268
20268
  };
20269
20269
  }
20270
20270
  function windowAfterUpsertUpdate(current, requested) {
20271
20271
  return {
20272
20272
  valid_from: current.valid_from,
20273
- valid_to: chunkZN24TFVZ_cjs.validityEndAfterMutation(requested, current.valid_to)
20273
+ valid_to: chunkGLDGT3L3_cjs.validityEndAfterMutation(requested, current.valid_to)
20274
20274
  };
20275
20275
  }
20276
20276
  function shouldCoalesceUpsert(existing, options, runDirtyCheck) {
@@ -20586,13 +20586,13 @@ function createEdgeCollection(config) {
20586
20586
  async bulkUpsertById(items) {
20587
20587
  if (items.length === 0) return [];
20588
20588
  for (const item of items) {
20589
- chunkZN24TFVZ_cjs.assertValidityEndMutation(item, {
20589
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(item, {
20590
20590
  entityType: "edge",
20591
20591
  kind,
20592
20592
  id: item.id
20593
20593
  });
20594
20594
  if (item.clearValidTo === true) {
20595
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "edge");
20595
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "edge");
20596
20596
  }
20597
20597
  }
20598
20598
  const upsertAll = async (target) => {
@@ -20765,7 +20765,7 @@ function createEdgeCollection(config) {
20765
20765
  }
20766
20766
  return { results: results2, mutations: toCreate.length + toUpdate.length };
20767
20767
  };
20768
- const { results, mutations } = await chunkZN24TFVZ_cjs.runResolvedMutationSetConverging(
20768
+ const { results, mutations } = await chunkGLDGT3L3_cjs.runResolvedMutationSetConverging(
20769
20769
  "edge",
20770
20770
  backend,
20771
20771
  () => chunkKT5UIJ3J_cjs.runOptionallyInTransaction(backend, (target) => upsertAll(target))
@@ -20795,7 +20795,7 @@ function createEdgeCollection(config) {
20795
20795
  return result === void 0 ? void 0 : narrowEdge(result);
20796
20796
  },
20797
20797
  async getOrCreateByEndpoints(from, to, props, options) {
20798
- chunkZN24TFVZ_cjs.assertValidityEndMutation(options ?? {}, {
20798
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(options ?? {}, {
20799
20799
  entityType: "edge",
20800
20800
  kind
20801
20801
  });
@@ -20830,7 +20830,7 @@ function createEdgeCollection(config) {
20830
20830
  async bulkGetOrCreateByEndpoints(items, options) {
20831
20831
  if (items.length === 0) return [];
20832
20832
  for (const item of items) {
20833
- chunkZN24TFVZ_cjs.assertValidityEndMutation(item, {
20833
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(item, {
20834
20834
  entityType: "edge",
20835
20835
  kind
20836
20836
  });
@@ -21202,13 +21202,13 @@ function createNodeCollection(config) {
21202
21202
  return this.upsertByIdFromRecord(id, props, options);
21203
21203
  },
21204
21204
  async upsertByIdFromRecord(id, data, options) {
21205
- chunkZN24TFVZ_cjs.assertValidityEndMutation(options ?? {}, {
21205
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(options ?? {}, {
21206
21206
  entityType: "node",
21207
21207
  kind,
21208
21208
  id
21209
21209
  });
21210
21210
  if (options?.clearValidTo === true) {
21211
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "node");
21211
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "node");
21212
21212
  }
21213
21213
  const existing = await backend.getNode(graphId, kind, id);
21214
21214
  const coalesces = (row) => {
@@ -21281,7 +21281,7 @@ function createNodeCollection(config) {
21281
21281
  await config.maybeRefreshStatisticsAfterBulk?.(attempt.value.length);
21282
21282
  return narrowNodes(attempt.value);
21283
21283
  }
21284
- const results = await chunkZN24TFVZ_cjs.runResolvedMutationSetConverging(
21284
+ const results = await chunkGLDGT3L3_cjs.runResolvedMutationSetConverging(
21285
21285
  "node",
21286
21286
  backend,
21287
21287
  () => chunkKT5UIJ3J_cjs.runOptionallyInTransaction(backend, async (target) => {
@@ -21332,13 +21332,13 @@ function createNodeCollection(config) {
21332
21332
  async bulkUpsertById(items) {
21333
21333
  if (items.length === 0) return [];
21334
21334
  for (const item of items) {
21335
- chunkZN24TFVZ_cjs.assertValidityEndMutation(item, {
21335
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(item, {
21336
21336
  entityType: "node",
21337
21337
  kind,
21338
21338
  id: item.id
21339
21339
  });
21340
21340
  if (item.clearValidTo === true) {
21341
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "node");
21341
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "node");
21342
21342
  }
21343
21343
  }
21344
21344
  const upsertAll = async (target) => {
@@ -21478,7 +21478,7 @@ function createNodeCollection(config) {
21478
21478
  }
21479
21479
  return { results: results2, mutations: toCreate.length + toUpdate.length };
21480
21480
  };
21481
- const { results, mutations } = await chunkZN24TFVZ_cjs.runResolvedMutationSetConverging(
21481
+ const { results, mutations } = await chunkGLDGT3L3_cjs.runResolvedMutationSetConverging(
21482
21482
  "node",
21483
21483
  backend,
21484
21484
  () => chunkKT5UIJ3J_cjs.runOptionallyInTransaction(backend, (target) => upsertAll(target))
@@ -23291,7 +23291,7 @@ async function validateAndPrepareEdgeCreate(ctx, input, id, backend, options) {
23291
23291
  kind,
23292
23292
  operation: "create"
23293
23293
  });
23294
- const matchIdentity = chunkZN24TFVZ_cjs.resolveEdgeMatchIdentityStorage(
23294
+ const matchIdentity = chunkGLDGT3L3_cjs.resolveEdgeMatchIdentityStorage(
23295
23295
  registration.matchIdentity,
23296
23296
  {
23297
23297
  fromKind,
@@ -23315,7 +23315,7 @@ async function validateAndPrepareEdgeCreate(ctx, input, id, backend, options) {
23315
23315
  backend
23316
23316
  };
23317
23317
  if (options?.validateCardinality ?? true) {
23318
- await chunkZN24TFVZ_cjs.checkCardinalityConstraint(
23318
+ await chunkGLDGT3L3_cjs.checkCardinalityConstraint(
23319
23319
  constraintContext,
23320
23320
  kind,
23321
23321
  cardinality,
@@ -23367,7 +23367,7 @@ function createdEdgeResult(edge) {
23367
23367
  return { outcome: "created", edge };
23368
23368
  }
23369
23369
  function foundEdgeResult(row) {
23370
- return { outcome: "found", edge: chunkZN24TFVZ_cjs.rowToEdge(row), row };
23370
+ return { outcome: "found", edge: chunkGLDGT3L3_cjs.rowToEdge(row), row };
23371
23371
  }
23372
23372
  function edgeCreateDidWrite(result) {
23373
23373
  return result.outcome === "created";
@@ -23431,13 +23431,13 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23431
23431
  convergesDynamically: convergeOn !== void 0 && !durableConvergence,
23432
23432
  cardinality: edgeCardinality(ctx, kind)
23433
23433
  } : void 0;
23434
- const schemaFenceInFirstWrite = candidate !== void 0 && chunkZN24TFVZ_cjs.canFuseSchemaFenceInFirstWrite({ kind: "edge", candidate });
23435
- const autocommitSingleStatement = autocommitBackend !== void 0 && candidate !== void 0 && chunkZN24TFVZ_cjs.isAutocommitSingleStatementWrite({ kind: "edge", candidate });
23436
- const plan = chunkZN24TFVZ_cjs.edgeWritePlan(
23437
- convergeOn === void 0 || durableConvergence ? chunkZN24TFVZ_cjs.edgeWriteNeedsConstraintFence(edgeCardinality(ctx, kind)) : "edgeMatchKeyConvergence"
23434
+ const schemaFenceInFirstWrite = candidate !== void 0 && chunkGLDGT3L3_cjs.canFuseSchemaFenceInFirstWrite({ kind: "edge", candidate });
23435
+ const autocommitSingleStatement = autocommitBackend !== void 0 && candidate !== void 0 && chunkGLDGT3L3_cjs.isAutocommitSingleStatementWrite({ kind: "edge", candidate });
23436
+ const plan = chunkGLDGT3L3_cjs.edgeWritePlan(
23437
+ convergeOn === void 0 || durableConvergence ? chunkGLDGT3L3_cjs.edgeWriteNeedsConstraintFence(edgeCardinality(ctx, kind)) : "edgeMatchKeyConvergence"
23438
23438
  );
23439
23439
  const rowWork = async (session, target, _overlaidSession, lock, transactionMode) => {
23440
- const targetBackend = chunkZN24TFVZ_cjs.unfencedTarget(target);
23440
+ const targetBackend = chunkGLDGT3L3_cjs.unfencedTarget(target);
23441
23441
  const fuseSchemaFenceInFirstWrite = schemaFenceInFirstWrite && chunkKT5UIJ3J_cjs.isSchemaFencedInsertEligible(targetBackend) && !chunkQV6LL3PK_cjs.hasLeasedSchemaFence(ctx, targetBackend);
23442
23442
  if (schemaFenceInFirstWrite && !fuseSchemaFenceInFirstWrite) {
23443
23443
  await chunkQV6LL3PK_cjs.lockSchemaVersionForStoreWrite(ctx, targetBackend);
@@ -23447,7 +23447,7 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23447
23447
  await chunkQV6LL3PK_cjs.diagnoseFusedSchemaFenceNoRow(ctx, targetBackend);
23448
23448
  const directInteractiveAutocommit = autocommitSingleStatement && transactionMode === "none" && targetBackend.capabilities.execution.interactiveTransactions;
23449
23449
  if (directInteractiveAutocommit) {
23450
- throw new chunkZN24TFVZ_cjs.AutocommitWriteRequiresTransaction();
23450
+ throw new chunkGLDGT3L3_cjs.AutocommitWriteRequiresTransaction();
23451
23451
  }
23452
23452
  if (transactionMode !== "none") {
23453
23453
  await chunkQV6LL3PK_cjs.lockSchemaVersionForStoreWrite(ctx, targetBackend);
@@ -23514,7 +23514,7 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23514
23514
  match: durableMatchIdentity === void 0 ? { kind: "dynamic", ...chunkBXHAPCQG_cjs.requireDefined(convergeOn) } : { kind: "durable", identity: durableMatchIdentity }
23515
23515
  };
23516
23516
  const result = lock.coordination === void 0 && command.match.kind === "dynamic" ? {
23517
- outcome: "unsupported"} : await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation(
23517
+ outcome: "unsupported"} : await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation(
23518
23518
  "edge",
23519
23519
  () => chunkKT5UIJ3J_cjs.executeAuthoritativeGraphCommand(
23520
23520
  target.commands,
@@ -23526,7 +23526,7 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23526
23526
  if (durableMatchIdentity !== void 0 && work2.claim !== void 0) {
23527
23527
  await chunkTHCONLOL_cjs.claimEdgeCardinality(target, ctx.claimsVerdict(), work2.claim);
23528
23528
  }
23529
- return createdEdgeResult(chunkZN24TFVZ_cjs.rowToEdge(result.row));
23529
+ return createdEdgeResult(chunkGLDGT3L3_cjs.rowToEdge(result.row));
23530
23530
  }
23531
23531
  if (result.outcome === "found") {
23532
23532
  if (command.match.kind === "dynamic") {
@@ -23633,7 +23633,7 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23633
23633
  ...usesFusedCardinalityInsert && fusedWork.claim !== void 0 ? { cardinalityClaim: fusedWork.claim } : {}
23634
23634
  }
23635
23635
  };
23636
- const fusedResult = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation(
23636
+ const fusedResult = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation(
23637
23637
  "edge",
23638
23638
  () => session.createEdgeWithPlan(fusedCommand)
23639
23639
  );
@@ -23641,20 +23641,20 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23641
23641
  if (fuseSchemaFenceInFirstWrite) {
23642
23642
  chunkQV6LL3PK_cjs.memoizeLeasedSchemaFence(ctx, targetBackend);
23643
23643
  }
23644
- return createdEdgeResult(chunkZN24TFVZ_cjs.rowToEdge(fusedResult.row));
23644
+ return createdEdgeResult(chunkGLDGT3L3_cjs.rowToEdge(fusedResult.row));
23645
23645
  }
23646
23646
  prepared = await diagnoseFusedCreateNoRow(true);
23647
23647
  }
23648
23648
  const work = edgeInsertWork(prepared);
23649
- const row = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation("edge", async () => {
23649
+ const row = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation("edge", async () => {
23650
23650
  if (shouldReturnRow) return session.createEdge(work);
23651
23651
  await session.createEdgeNoReturn(work);
23652
23652
  return;
23653
23653
  });
23654
- return createdEdgeResult(row === void 0 ? void 0 : chunkZN24TFVZ_cjs.rowToEdge(row));
23654
+ return createdEdgeResult(row === void 0 ? void 0 : chunkGLDGT3L3_cjs.rowToEdge(row));
23655
23655
  };
23656
23656
  if (autocommitSingleStatement) {
23657
- return chunkZN24TFVZ_cjs.runAutocommitSingleStatementWritePlan(
23657
+ return chunkGLDGT3L3_cjs.runAutocommitSingleStatementWritePlan(
23658
23658
  ctx,
23659
23659
  opContext,
23660
23660
  plan,
@@ -23667,12 +23667,12 @@ async function executeEdgeCreateInternal(ctx, input, backend, options) {
23667
23667
  );
23668
23668
  }
23669
23669
  if (options?.skipHooks === true) {
23670
- return chunkZN24TFVZ_cjs.runWritePlan(ctx, plan, backend, rowWork, {
23670
+ return chunkGLDGT3L3_cjs.runWritePlan(ctx, plan, backend, rowWork, {
23671
23671
  schemaFenceInFirstWrite,
23672
23672
  didWrite: edgeCreateDidWrite
23673
23673
  });
23674
23674
  }
23675
- return chunkZN24TFVZ_cjs.runHookedWritePlan(ctx, opContext, plan, backend, rowWork, {
23675
+ return chunkGLDGT3L3_cjs.runHookedWritePlan(ctx, opContext, plan, backend, rowWork, {
23676
23676
  schemaFenceInFirstWrite,
23677
23677
  didWrite: edgeCreateDidWrite
23678
23678
  });
@@ -23722,7 +23722,7 @@ async function prepareEdgeBatchCreates(ctx, inputs, backend) {
23722
23722
  backend: validationBackend,
23723
23723
  registerPendingEdgeForCardinality,
23724
23724
  seedEndpointRow
23725
- } = chunkZN24TFVZ_cjs.createEdgeBatchValidationBackend(backend);
23725
+ } = chunkGLDGT3L3_cjs.createEdgeBatchValidationBackend(backend);
23726
23726
  await primeEdgeBatchValidationCache(ctx, inputs, backend, seedEndpointRow);
23727
23727
  const preparedCreates = [];
23728
23728
  for (const input of inputs) {
@@ -23871,7 +23871,7 @@ async function assertAtomicEdgeBatchCardinality(ctx, inputs, backend) {
23871
23871
  const errors = await Promise.all(
23872
23872
  window.map(async (input) => {
23873
23873
  try {
23874
- await chunkZN24TFVZ_cjs.checkCardinalityConstraint(
23874
+ await chunkGLDGT3L3_cjs.checkCardinalityConstraint(
23875
23875
  constraintContext,
23876
23876
  input.kind,
23877
23877
  edgeCardinality(ctx, input.kind),
@@ -23900,7 +23900,7 @@ async function runAtomicEdgeBatchProgram(ctx, inputs, preparation, backend, atom
23900
23900
  graphId: ctx.graphId,
23901
23901
  expectedVersion: chunkBXHAPCQG_cjs.requireDefined(ctx.schemaVersion)
23902
23902
  };
23903
- const result = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation("edge", async () => {
23903
+ const result = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation("edge", async () => {
23904
23904
  try {
23905
23905
  if (resultMode === "count") {
23906
23906
  return await atomicExecutor({
@@ -23958,7 +23958,7 @@ async function runAtomicEdgeBatchProgram(ctx, inputs, preparation, backend, atom
23958
23958
  return result;
23959
23959
  }
23960
23960
  function assertDurableBatchRows(work, rows) {
23961
- const outcomes = chunkZN24TFVZ_cjs.classifyDurableEdgeBatchOutcomes(
23961
+ const outcomes = chunkGLDGT3L3_cjs.classifyDurableEdgeBatchOutcomes(
23962
23962
  work.map((item) => item.params),
23963
23963
  rows
23964
23964
  );
@@ -23982,7 +23982,7 @@ async function executeEdgeCreateNoReturnBatch(ctx, inputs, backend) {
23982
23982
  if (inputs.length === 0) {
23983
23983
  return;
23984
23984
  }
23985
- const atomicExecutor = chunkZN24TFVZ_cjs.resolveAtomicEdgeBatchExecutor({
23985
+ const atomicExecutor = chunkGLDGT3L3_cjs.resolveAtomicEdgeBatchExecutor({
23986
23986
  backend,
23987
23987
  graph: ctx.graph,
23988
23988
  inputs,
@@ -24006,9 +24006,9 @@ async function executeEdgeCreateNoReturnBatch(ctx, inputs, backend) {
24006
24006
  );
24007
24007
  return;
24008
24008
  }
24009
- await chunkZN24TFVZ_cjs.runWritePlan(
24009
+ await chunkGLDGT3L3_cjs.runWritePlan(
24010
24010
  ctx,
24011
- chunkZN24TFVZ_cjs.edgeWritePlan(batchFencesConstraintProbe(ctx, inputs)),
24011
+ chunkGLDGT3L3_cjs.edgeWritePlan(batchFencesConstraintProbe(ctx, inputs)),
24012
24012
  backend,
24013
24013
  async (session, target) => {
24014
24014
  const { batchInsertWork } = await prepareEdgeBatchCreates(
@@ -24025,7 +24025,7 @@ async function executeEdgeCreateNoReturnBatch(ctx, inputs, backend) {
24025
24025
  await executeEdgeCreateInternal(
24026
24026
  ctx,
24027
24027
  input,
24028
- chunkZN24TFVZ_cjs.nestedManagedWriteTarget(target),
24028
+ chunkGLDGT3L3_cjs.nestedManagedWriteTarget(target),
24029
24029
  {
24030
24030
  returnRow: false,
24031
24031
  skipHooks: true
@@ -24034,14 +24034,14 @@ async function executeEdgeCreateNoReturnBatch(ctx, inputs, backend) {
24034
24034
  }
24035
24035
  return;
24036
24036
  }
24037
- const rows = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation(
24037
+ const rows = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation(
24038
24038
  "edge",
24039
24039
  () => chunkBXHAPCQG_cjs.requireDefined(session.createEdgesDurable)(batchInsertWork)
24040
24040
  );
24041
24041
  assertDurableBatchRows(batchInsertWork, rows);
24042
24042
  return;
24043
24043
  }
24044
- await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation(
24044
+ await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation(
24045
24045
  "edge",
24046
24046
  () => session.createEdgesNoReturn(batchInsertWork)
24047
24047
  );
@@ -24052,7 +24052,7 @@ async function executeEdgeCreateBatch(ctx, inputs, backend) {
24052
24052
  if (inputs.length === 0) {
24053
24053
  return [];
24054
24054
  }
24055
- const atomicExecutor = chunkZN24TFVZ_cjs.resolveAtomicEdgeBatchExecutor({
24055
+ const atomicExecutor = chunkGLDGT3L3_cjs.resolveAtomicEdgeBatchExecutor({
24056
24056
  backend,
24057
24057
  graph: ctx.graph,
24058
24058
  inputs,
@@ -24074,11 +24074,11 @@ async function executeEdgeCreateBatch(ctx, inputs, backend) {
24074
24074
  atomicExecutor,
24075
24075
  "rows"
24076
24076
  );
24077
- return rows.map((row) => chunkZN24TFVZ_cjs.rowToEdge(row));
24077
+ return rows.map((row) => chunkGLDGT3L3_cjs.rowToEdge(row));
24078
24078
  }
24079
- return chunkZN24TFVZ_cjs.runWritePlan(
24079
+ return chunkGLDGT3L3_cjs.runWritePlan(
24080
24080
  ctx,
24081
- chunkZN24TFVZ_cjs.edgeWritePlan(batchFencesConstraintProbe(ctx, inputs)),
24081
+ chunkGLDGT3L3_cjs.edgeWritePlan(batchFencesConstraintProbe(ctx, inputs)),
24082
24082
  backend,
24083
24083
  async (session, target) => {
24084
24084
  const { batchInsertWork } = await prepareEdgeBatchCreates(
@@ -24096,7 +24096,7 @@ async function executeEdgeCreateBatch(ctx, inputs, backend) {
24096
24096
  const result = await executeEdgeCreateInternal(
24097
24097
  ctx,
24098
24098
  input,
24099
- chunkZN24TFVZ_cjs.nestedManagedWriteTarget(target),
24099
+ chunkGLDGT3L3_cjs.nestedManagedWriteTarget(target),
24100
24100
  { returnRow: true, skipHooks: true }
24101
24101
  );
24102
24102
  if (result.outcome !== "created") {
@@ -24115,24 +24115,24 @@ async function executeEdgeCreateBatch(ctx, inputs, backend) {
24115
24115
  }
24116
24116
  return fallbackRows;
24117
24117
  }
24118
- const rows2 = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation(
24118
+ const rows2 = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation(
24119
24119
  "edge",
24120
24120
  () => chunkBXHAPCQG_cjs.requireDefined(session.createEdgesDurable)(batchInsertWork)
24121
24121
  );
24122
24122
  assertDurableBatchRows(batchInsertWork, rows2);
24123
- return rows2.map((row) => chunkZN24TFVZ_cjs.rowToEdge(row));
24123
+ return rows2.map((row) => chunkGLDGT3L3_cjs.rowToEdge(row));
24124
24124
  }
24125
- const rows = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation(
24125
+ const rows = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation(
24126
24126
  "edge",
24127
24127
  () => session.createEdges(batchInsertWork)
24128
24128
  );
24129
- return rows.map((row) => chunkZN24TFVZ_cjs.rowToEdge(row));
24129
+ return rows.map((row) => chunkGLDGT3L3_cjs.rowToEdge(row));
24130
24130
  }
24131
24131
  );
24132
24132
  }
24133
24133
  function batchFencesConstraintProbe(ctx, inputs) {
24134
24134
  for (const input of inputs) {
24135
- const reason = chunkZN24TFVZ_cjs.edgeWriteNeedsConstraintFence(
24135
+ const reason = chunkGLDGT3L3_cjs.edgeWriteNeedsConstraintFence(
24136
24136
  edgeCardinality(ctx, input.kind)
24137
24137
  );
24138
24138
  if (reason !== void 0) return reason;
@@ -24146,7 +24146,7 @@ function computeEdgeUpdate(ctx, kind, id, existingProps, inputProps) {
24146
24146
  { ...existingProps, ...inputProps },
24147
24147
  { kind, operation: "update", id }
24148
24148
  );
24149
- const identityRefusal = chunkZN24TFVZ_cjs.edgeMatchIdentityUpdateRefusal({
24149
+ const identityRefusal = chunkGLDGT3L3_cjs.edgeMatchIdentityUpdateRefusal({
24150
24150
  identity: registration.matchIdentity,
24151
24151
  kind,
24152
24152
  id,
@@ -24182,7 +24182,7 @@ function edgeUpsertDirtyCheck(ctx, kind, id, existingProps, inputProps) {
24182
24182
  }
24183
24183
  async function performEdgeUpdate(ctx, input, session, target, options, resolvedExisting) {
24184
24184
  const id = input.id;
24185
- chunkZN24TFVZ_cjs.assertValidityEndMutation(input, {
24185
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(input, {
24186
24186
  entityType: "edge",
24187
24187
  kind: input.identity.kind,
24188
24188
  id
@@ -24208,7 +24208,7 @@ async function performEdgeUpdate(ctx, input, session, target, options, resolvedE
24208
24208
  const preservesLiveLowerBound = options?.clearDeleted !== true && chunk3XJGYE66_cjs.preservesImmutableLowerBound(input.onImmutableLowerBound);
24209
24209
  const appliedValidFrom = preservesLiveLowerBound ? void 0 : statedValidFrom;
24210
24210
  const validTo = chunk3XJGYE66_cjs.validateOptionalCanonicalIsoDate(input.validTo, "validTo");
24211
- const effectiveValidTo = options?.clearDeleted === true && appliedValidFrom !== void 0 ? validTo : chunkZN24TFVZ_cjs.validityEndAfterMutation(
24211
+ const effectiveValidTo = options?.clearDeleted === true && appliedValidFrom !== void 0 ? validTo : chunkGLDGT3L3_cjs.validityEndAfterMutation(
24212
24212
  input.clearValidTo === true ? { clearValidTo: true } : validTo === void 0 ? {} : { validTo },
24213
24213
  existing.valid_to
24214
24214
  );
@@ -24217,7 +24217,7 @@ async function performEdgeUpdate(ctx, input, session, target, options, resolvedE
24217
24217
  let reentryClaim;
24218
24218
  const reentersActivePopulation = cardinality === "oneActive" && effectiveValidTo === void 0 && (existing.deleted_at !== void 0 || existing.valid_to !== void 0);
24219
24219
  if (reentersLivePopulation || reentersActivePopulation) {
24220
- await chunkZN24TFVZ_cjs.checkCardinalityConstraint(
24220
+ await chunkGLDGT3L3_cjs.checkCardinalityConstraint(
24221
24221
  {
24222
24222
  graphId: ctx.graphId,
24223
24223
  registry: ctx.registry,
@@ -24278,10 +24278,10 @@ async function performEdgeUpdate(ctx, input, session, target, options, resolvedE
24278
24278
  // "Did this write assert any window state?" is one predicate with one
24279
24279
  // owner, consulted here and by the fence appliers that carry it, rather
24280
24280
  // than re-derived from the params the diagnosis never sees.
24281
- chunkZN24TFVZ_cjs.assertsStoredWindowState(fences),
24281
+ chunkGLDGT3L3_cjs.assertsStoredWindowState(fences),
24282
24282
  () => session.reviseEdge(work, fences)
24283
24283
  );
24284
- return chunkZN24TFVZ_cjs.rowToEdge(row);
24284
+ return chunkGLDGT3L3_cjs.rowToEdge(row);
24285
24285
  }
24286
24286
  var EDGE_UPDATE_ATTEMPTS = 2;
24287
24287
  async function performEdgeUpdateConverging(ctx, input, session, target, options, resolvedExisting) {
@@ -24317,7 +24317,7 @@ function resolveAtomicEdgeUpdateExecutor(ctx, entries, backend) {
24317
24317
  )) {
24318
24318
  return;
24319
24319
  }
24320
- return chunkZN24TFVZ_cjs.resolveAtomicEdgeResolvedUpdateBatchExecutor({
24320
+ return chunkGLDGT3L3_cjs.resolveAtomicEdgeResolvedUpdateBatchExecutor({
24321
24321
  backend,
24322
24322
  graph: ctx.graph,
24323
24323
  schemaVersion: ctx.schemaVersion,
@@ -24341,7 +24341,7 @@ async function executeEdgeUpdate(ctx, input, backend) {
24341
24341
  );
24342
24342
  const opContext = ctx.createOperationContext("update", "edge", gate.kind, id);
24343
24343
  if (input.clearValidTo === true) {
24344
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "edge");
24344
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "edge");
24345
24345
  }
24346
24346
  const atomicEntry = {
24347
24347
  input,
@@ -24354,7 +24354,7 @@ async function executeEdgeUpdate(ctx, input, backend) {
24354
24354
  backend
24355
24355
  );
24356
24356
  if (atomicExecutor !== void 0) {
24357
- return chunkZN24TFVZ_cjs.runAtomicProgramWithHooks(
24357
+ return chunkGLDGT3L3_cjs.runAtomicProgramWithHooks(
24358
24358
  ctx,
24359
24359
  opContext,
24360
24360
  async () => {
@@ -24366,36 +24366,36 @@ async function executeEdgeUpdate(ctx, input, backend) {
24366
24366
  );
24367
24367
  return chunkBXHAPCQG_cjs.requireDefined(edges[0]);
24368
24368
  },
24369
- chunkZN24TFVZ_cjs.writeResultAlwaysChanges
24369
+ chunkGLDGT3L3_cjs.writeResultAlwaysChanges
24370
24370
  );
24371
24371
  }
24372
- return chunkZN24TFVZ_cjs.runHookedWritePlan(
24372
+ return chunkGLDGT3L3_cjs.runHookedWritePlan(
24373
24373
  ctx,
24374
24374
  opContext,
24375
24375
  // An in-place props update on a live edge re-derives no constraint verdict.
24376
24376
  // Clearing an `oneActive` edge's end DOES: it re-admits the row to the
24377
24377
  // counted active population.
24378
- chunkZN24TFVZ_cjs.edgeWritePlan(
24379
- input.clearValidTo === true && edgeCardinality(ctx, gate.kind) === "oneActive" ? chunkZN24TFVZ_cjs.edgeWriteNeedsConstraintFence("oneActive") : void 0
24378
+ chunkGLDGT3L3_cjs.edgeWritePlan(
24379
+ input.clearValidTo === true && edgeCardinality(ctx, gate.kind) === "oneActive" ? chunkGLDGT3L3_cjs.edgeWriteNeedsConstraintFence("oneActive") : void 0
24380
24380
  ),
24381
24381
  backend,
24382
24382
  (session, target) => performEdgeUpdateConverging(ctx, input, session, target),
24383
- { didWrite: chunkZN24TFVZ_cjs.writeResultAlwaysChanges }
24383
+ { didWrite: chunkGLDGT3L3_cjs.writeResultAlwaysChanges }
24384
24384
  );
24385
24385
  }
24386
24386
  async function executeEdgeUpsertUpdateWithOutcome(ctx, input, backend, options) {
24387
24387
  if (input.clearValidTo === true) {
24388
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "edge");
24388
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "edge");
24389
24389
  }
24390
- return chunkZN24TFVZ_cjs.runWritePlan(
24390
+ return chunkGLDGT3L3_cjs.runWritePlan(
24391
24391
  ctx,
24392
24392
  // An in-place props update re-derives no constraint verdict: endpoints
24393
24393
  // are immutable, so cardinality cannot change under it. A coalescing upsert
24394
24394
  // converges on a match key no database key backs; a resurrect or a cleared
24395
24395
  // end re-admits the row to the counted population its cardinality
24396
24396
  // constrains.
24397
- chunkZN24TFVZ_cjs.edgeWritePlan(
24398
- options?.coalesceUnchanged === true ? "edgeMatchKeyConvergence" : input.clearValidTo === true || options?.clearDeleted === true ? chunkZN24TFVZ_cjs.edgeWriteNeedsConstraintFence(edgeCardinality(ctx, input.identity.kind)) : void 0
24397
+ chunkGLDGT3L3_cjs.edgeWritePlan(
24398
+ options?.coalesceUnchanged === true ? "edgeMatchKeyConvergence" : input.clearValidTo === true || options?.clearDeleted === true ? chunkGLDGT3L3_cjs.edgeWriteNeedsConstraintFence(edgeCardinality(ctx, input.identity.kind)) : void 0
24399
24399
  ),
24400
24400
  backend,
24401
24401
  async (session, target) => {
@@ -24419,7 +24419,7 @@ async function executeEdgeUpsertUpdateWithOutcome(ctx, input, backend, options)
24419
24419
  input.props
24420
24420
  );
24421
24421
  if (shouldCoalesceUpsert(existing, input, runDirtyCheck)) {
24422
- return { edge: chunkZN24TFVZ_cjs.rowToEdge(existing), wrote: false };
24422
+ return { edge: chunkGLDGT3L3_cjs.rowToEdge(existing), wrote: false };
24423
24423
  }
24424
24424
  }
24425
24425
  }
@@ -24448,10 +24448,10 @@ async function executeEdgeUpsertUpdate(ctx, input, backend, options) {
24448
24448
  }
24449
24449
  async function executeEdgeResolvedMutationSet(ctx, creates, updates, backend) {
24450
24450
  if (creates.length === 0 || updates.length === 0) {
24451
- return chunkZN24TFVZ_cjs.unsupportedResolvedMutationSet();
24451
+ return chunkGLDGT3L3_cjs.unsupportedResolvedMutationSet();
24452
24452
  }
24453
24453
  const firstUpdate = chunkBXHAPCQG_cjs.requireDefined(updates[0]);
24454
- const executor = chunkZN24TFVZ_cjs.resolveAtomicEdgeResolvedMutationSetExecutor({
24454
+ const executor = chunkGLDGT3L3_cjs.resolveAtomicEdgeResolvedMutationSetExecutor({
24455
24455
  backend,
24456
24456
  graph: ctx.graph,
24457
24457
  schemaVersion: ctx.schemaVersion,
@@ -24461,18 +24461,18 @@ async function executeEdgeResolvedMutationSet(ctx, creates, updates, backend) {
24461
24461
  creates,
24462
24462
  updateCount: updates.length
24463
24463
  });
24464
- if (executor === void 0) return chunkZN24TFVZ_cjs.unsupportedResolvedMutationSet();
24464
+ if (executor === void 0) return chunkGLDGT3L3_cjs.unsupportedResolvedMutationSet();
24465
24465
  const ids = /* @__PURE__ */ new Set([
24466
24466
  ...creates.map((input) => chunkBXHAPCQG_cjs.requireDefined(input.id)),
24467
24467
  ...updates.map((entry2) => entry2.input.id)
24468
24468
  ]);
24469
24469
  if (ids.size !== creates.length + updates.length) {
24470
- return chunkZN24TFVZ_cjs.unsupportedResolvedMutationSet();
24470
+ return chunkGLDGT3L3_cjs.unsupportedResolvedMutationSet();
24471
24471
  }
24472
24472
  if (updates.some(
24473
24473
  (entry2) => entry2.clearDeleted || entry2.existing === void 0 || entry2.input.validFrom !== void 0 || entry2.input.validTo !== void 0 || entry2.input.clearValidTo === true
24474
24474
  )) {
24475
- return chunkZN24TFVZ_cjs.unsupportedResolvedMutationSet();
24475
+ return chunkGLDGT3L3_cjs.unsupportedResolvedMutationSet();
24476
24476
  }
24477
24477
  const preparation = await prepareAtomicEdgeBatchCreates(
24478
24478
  ctx,
@@ -24502,7 +24502,7 @@ async function executeEdgeResolvedMutationSet(ctx, creates, updates, backend) {
24502
24502
  );
24503
24503
  return { existing, props: validatedProps };
24504
24504
  });
24505
- const result = await chunkZN24TFVZ_cjs.withAlreadyExistsTranslation("edge", async () => {
24505
+ const result = await chunkGLDGT3L3_cjs.withAlreadyExistsTranslation("edge", async () => {
24506
24506
  try {
24507
24507
  return await executor({
24508
24508
  kind: "resolved-set",
@@ -24527,7 +24527,7 @@ async function executeEdgeResolvedMutationSet(ctx, creates, updates, backend) {
24527
24527
  });
24528
24528
  if (result.created.length === 0 && result.updated.length === 0) {
24529
24529
  await chunkQV6LL3PK_cjs.diagnoseFusedSchemaFenceNoRow(ctx, backend);
24530
- throw new chunkZN24TFVZ_cjs.ResolvedMutationSetMoved("edge", executor);
24530
+ throw new chunkGLDGT3L3_cjs.ResolvedMutationSetMoved("edge", executor);
24531
24531
  }
24532
24532
  if (result.created.length !== creates.length || result.updated.length !== updates.length) {
24533
24533
  throw new chunk7XYPLAPL_cjs.CompilerInvariantError(
@@ -24537,12 +24537,12 @@ async function executeEdgeResolvedMutationSet(ctx, creates, updates, backend) {
24537
24537
  chunkQV6LL3PK_cjs.memoizeLeasedSchemaFence(ctx, backend);
24538
24538
  const createdById = new Map(result.created.map((row) => [row.id, row]));
24539
24539
  const updatedById = new Map(result.updated.map((row) => [row.id, row]));
24540
- return chunkZN24TFVZ_cjs.appliedResolvedMutationSet({
24540
+ return chunkGLDGT3L3_cjs.appliedResolvedMutationSet({
24541
24541
  created: creates.map(
24542
- (input) => chunkZN24TFVZ_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(createdById.get(chunkBXHAPCQG_cjs.requireDefined(input.id))))
24542
+ (input) => chunkGLDGT3L3_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(createdById.get(chunkBXHAPCQG_cjs.requireDefined(input.id))))
24543
24543
  ),
24544
24544
  updated: updates.map(
24545
- (entry2) => chunkZN24TFVZ_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(updatedById.get(entry2.input.id)))
24545
+ (entry2) => chunkGLDGT3L3_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(updatedById.get(entry2.input.id)))
24546
24546
  )
24547
24547
  });
24548
24548
  }
@@ -24550,7 +24550,7 @@ async function executeEdgeUpsertUpdateBatch(ctx, entries, backend) {
24550
24550
  if (entries.length === 0) return [];
24551
24551
  for (const entry2 of entries) {
24552
24552
  if (entry2.input.clearValidTo === true) {
24553
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "edge");
24553
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "edge");
24554
24554
  }
24555
24555
  }
24556
24556
  const first = chunkBXHAPCQG_cjs.requireDefined(entries[0]);
@@ -24567,10 +24567,10 @@ async function executeEdgeUpsertUpdateBatch(ctx, entries, backend) {
24567
24567
  const needsConstraintFence = entries.some(
24568
24568
  (entry2) => entry2.clearDeleted || entry2.input.clearValidTo === true
24569
24569
  );
24570
- return chunkZN24TFVZ_cjs.runWritePlan(
24570
+ return chunkGLDGT3L3_cjs.runWritePlan(
24571
24571
  ctx,
24572
- chunkZN24TFVZ_cjs.edgeWritePlan(
24573
- needsConstraintFence ? chunkZN24TFVZ_cjs.edgeWriteNeedsConstraintFence(
24572
+ chunkGLDGT3L3_cjs.edgeWritePlan(
24573
+ needsConstraintFence ? chunkGLDGT3L3_cjs.edgeWriteNeedsConstraintFence(
24574
24574
  edgeCardinality(ctx, first.input.identity.kind)
24575
24575
  ) : void 0
24576
24576
  ),
@@ -24594,11 +24594,11 @@ async function executeEdgeUpsertUpdateBatch(ctx, entries, backend) {
24594
24594
  }
24595
24595
  return edges;
24596
24596
  },
24597
- { didWrite: chunkZN24TFVZ_cjs.writeResultAlwaysChanges }
24597
+ { didWrite: chunkGLDGT3L3_cjs.writeResultAlwaysChanges }
24598
24598
  );
24599
24599
  }
24600
24600
  async function executeAtomicEdgeResolvedUpdates(ctx, entries, backend, atomicExecutor) {
24601
- const maxAttempts = chunkZN24TFVZ_cjs.atomicResolvedUpdateAttemptBudget(
24601
+ const maxAttempts = chunkGLDGT3L3_cjs.atomicResolvedUpdateAttemptBudget(
24602
24602
  entries.length,
24603
24603
  EDGE_UPDATE_ATTEMPTS
24604
24604
  );
@@ -24646,7 +24646,7 @@ async function executeAtomicEdgeResolvedUpdates(ctx, entries, backend, atomicExe
24646
24646
  chunkQV6LL3PK_cjs.memoizeLeasedSchemaFence(ctx, backend);
24647
24647
  const returned = new Map(rows.map((row) => [row.id, row]));
24648
24648
  return entries.map(
24649
- (entry2) => chunkZN24TFVZ_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(returned.get(entry2.input.id)))
24649
+ (entry2) => chunkGLDGT3L3_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(returned.get(entry2.input.id)))
24650
24650
  );
24651
24651
  }
24652
24652
  if (rows.length > 0) {
@@ -24692,7 +24692,7 @@ async function executeEdgeDelete(ctx, expectedKind, id, backend) {
24692
24692
  );
24693
24693
  if (gate.deleted_at) return;
24694
24694
  const opContext = ctx.createOperationContext("delete", "edge", gate.kind, id);
24695
- const atomicExecutor = chunkZN24TFVZ_cjs.resolveAtomicEdgeDeleteBatchExecutor({
24695
+ const atomicExecutor = chunkGLDGT3L3_cjs.resolveAtomicEdgeDeleteBatchExecutor({
24696
24696
  backend,
24697
24697
  graph: ctx.graph,
24698
24698
  expectedKind,
@@ -24702,7 +24702,7 @@ async function executeEdgeDelete(ctx, expectedKind, id, backend) {
24702
24702
  revisionTrackingEnabled: ctx.revisionTrackingEnabled
24703
24703
  });
24704
24704
  if (atomicExecutor !== void 0) {
24705
- await chunkZN24TFVZ_cjs.runAtomicProgramWithHooks(
24705
+ await chunkGLDGT3L3_cjs.runAtomicProgramWithHooks(
24706
24706
  ctx,
24707
24707
  opContext,
24708
24708
  () => executeAtomicEdgeDeletes(
@@ -24716,11 +24716,11 @@ async function executeEdgeDelete(ctx, expectedKind, id, backend) {
24716
24716
  );
24717
24717
  return;
24718
24718
  }
24719
- return chunkZN24TFVZ_cjs.runHookedWritePlan(
24719
+ return chunkGLDGT3L3_cjs.runHookedWritePlan(
24720
24720
  ctx,
24721
24721
  opContext,
24722
24722
  // A soft delete decides nothing a concurrent write could invalidate.
24723
- chunkZN24TFVZ_cjs.edgeWritePlan(void 0),
24723
+ chunkGLDGT3L3_cjs.edgeWritePlan(void 0),
24724
24724
  backend,
24725
24725
  async (session) => {
24726
24726
  await session.retireEdge({ id, kind: expectedKind });
@@ -24728,7 +24728,7 @@ async function executeEdgeDelete(ctx, expectedKind, id, backend) {
24728
24728
  );
24729
24729
  }
24730
24730
  async function executeEdgeDeleteBatch(ctx, expectedKind, ids, backend) {
24731
- const atomicExecutor = chunkZN24TFVZ_cjs.resolveAtomicEdgeDeleteBatchExecutor({
24731
+ const atomicExecutor = chunkGLDGT3L3_cjs.resolveAtomicEdgeDeleteBatchExecutor({
24732
24732
  backend,
24733
24733
  graph: ctx.graph,
24734
24734
  expectedKind,
@@ -24747,9 +24747,9 @@ async function executeEdgeDeleteBatch(ctx, expectedKind, ids, backend) {
24747
24747
  );
24748
24748
  return;
24749
24749
  }
24750
- await chunkZN24TFVZ_cjs.runWritePlan(
24750
+ await chunkGLDGT3L3_cjs.runWritePlan(
24751
24751
  ctx,
24752
- chunkZN24TFVZ_cjs.edgeWritePlan(void 0),
24752
+ chunkGLDGT3L3_cjs.edgeWritePlan(void 0),
24753
24753
  backend,
24754
24754
  async (session, target) => {
24755
24755
  const rowsById = await chunkQV6LL3PK_cjs.getEdgeRowsByIds(
@@ -24791,7 +24791,7 @@ async function executeAtomicEdgeDeletes(ctx, expectedKind, ids, backend, atomicE
24791
24791
  expectedVersion: chunkBXHAPCQG_cjs.requireDefined(ctx.schemaVersion)
24792
24792
  }
24793
24793
  });
24794
- await chunkZN24TFVZ_cjs.assertAtomicDeleteSchemaFenceMatched(
24794
+ await chunkGLDGT3L3_cjs.assertAtomicDeleteSchemaFenceMatched(
24795
24795
  result.schemaFenceMatched,
24796
24796
  ctx,
24797
24797
  backend,
@@ -24833,10 +24833,10 @@ async function executeEdgeHardDelete(ctx, expectedKind, id, backend) {
24833
24833
  "hardDelete"
24834
24834
  );
24835
24835
  const opContext = ctx.createOperationContext("delete", "edge", gate.kind, id);
24836
- return chunkZN24TFVZ_cjs.runHookedWritePlan(
24836
+ return chunkGLDGT3L3_cjs.runHookedWritePlan(
24837
24837
  ctx,
24838
24838
  opContext,
24839
- chunkZN24TFVZ_cjs.edgeWritePlan(void 0),
24839
+ chunkGLDGT3L3_cjs.edgeWritePlan(void 0),
24840
24840
  backend,
24841
24841
  async (session) => {
24842
24842
  await session.purgeEdge({
@@ -24905,7 +24905,7 @@ function findMatchingEdge(rows, matchOn, inputProps) {
24905
24905
  if (matchOn.length > 0) {
24906
24906
  const rowProps = chunkKT5UIJ3J_cjs.rowPropsToObject(row.props);
24907
24907
  const matches = matchOn.every(
24908
- (field2) => chunkZN24TFVZ_cjs.canonicalPersistedJsonValue(chunkBXHAPCQG_cjs.readOwnProperty(rowProps, field2)) === chunkZN24TFVZ_cjs.canonicalPersistedJsonValue(chunkBXHAPCQG_cjs.readOwnProperty(inputProps, field2))
24908
+ (field2) => chunkGLDGT3L3_cjs.canonicalPersistedJsonValue(chunkBXHAPCQG_cjs.readOwnProperty(rowProps, field2)) === chunkGLDGT3L3_cjs.canonicalPersistedJsonValue(chunkBXHAPCQG_cjs.readOwnProperty(inputProps, field2))
24909
24909
  );
24910
24910
  if (!matches) continue;
24911
24911
  }
@@ -24926,7 +24926,7 @@ function assertEdgeMatchKey(row, matchOn, matchProps) {
24926
24926
  }
24927
24927
  async function executeEdgeFindByEndpoints(ctx, kind, fromKind, fromId, toKind, toId, backend, options) {
24928
24928
  const matchOn = options?.matchOn ?? [];
24929
- const matchProps = chunkZN24TFVZ_cjs.normalizePersistedEdgeMatchProps(options?.props ?? {});
24929
+ const matchProps = chunkGLDGT3L3_cjs.normalizePersistedEdgeMatchProps(options?.props ?? {});
24930
24930
  const registration = getEdgeRegistration(ctx.graph, kind);
24931
24931
  const edgeKind = registration.type;
24932
24932
  if (matchOn.length > 0) {
@@ -24946,9 +24946,9 @@ async function executeEdgeFindByEndpoints(ctx, kind, fromKind, fromId, toKind, t
24946
24946
  ...options?.asOf !== void 0 && { asOf: options.asOf }
24947
24947
  });
24948
24948
  if (candidateRows.length === 0) return void 0;
24949
- if (matchOn.length === 0) return chunkZN24TFVZ_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(candidateRows[0]));
24949
+ if (matchOn.length === 0) return chunkGLDGT3L3_cjs.rowToEdge(chunkBXHAPCQG_cjs.requireDefined(candidateRows[0]));
24950
24950
  const { liveRow } = findMatchingEdge(candidateRows, matchOn, matchProps);
24951
- return liveRow === void 0 ? void 0 : chunkZN24TFVZ_cjs.rowToEdge(liveRow);
24951
+ return liveRow === void 0 ? void 0 : chunkGLDGT3L3_cjs.rowToEdge(liveRow);
24952
24952
  }
24953
24953
  function defersEndpointWindowOrdering(ifExists, onImmutableLowerBound) {
24954
24954
  return ifExists === "update" && chunk3XJGYE66_cjs.preservesImmutableLowerBound(onImmutableLowerBound);
@@ -24973,15 +24973,15 @@ async function executeEdgeGetOrCreateByEndpoints(ctx, kind, fromKind, fromId, to
24973
24973
  registration.matchIdentity?.fields,
24974
24974
  options?.matchOn
24975
24975
  );
24976
- chunkZN24TFVZ_cjs.assertValidityEndMutation(options ?? {}, { entityType: "edge", kind });
24976
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(options ?? {}, { entityType: "edge", kind });
24977
24977
  if (options?.clearValidTo === true) {
24978
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "edge");
24978
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "edge");
24979
24979
  }
24980
24980
  const validatedProps = chunkQV6LL3PK_cjs.validateEdgeProps(edgeKind.schema, props, {
24981
24981
  kind,
24982
24982
  operation: "create"
24983
24983
  });
24984
- const matchProps = chunkZN24TFVZ_cjs.normalizePersistedEdgeMatchProps(validatedProps);
24984
+ const matchProps = chunkGLDGT3L3_cjs.normalizePersistedEdgeMatchProps(validatedProps);
24985
24985
  validateMatchOnFields(edgeKind.schema, matchOn, kind);
24986
24986
  const validFrom = chunk3XJGYE66_cjs.validateStatedValidityLowerBound(
24987
24987
  options?.validFrom,
@@ -25025,7 +25025,7 @@ async function executeEdgeGetOrCreateByEndpoints(ctx, kind, fromKind, fromId, to
25025
25025
  );
25026
25026
  if (currentLiveRow !== void 0) {
25027
25027
  assertEndpointClearCanApply(ifExists, options?.clearValidTo, kind);
25028
- return { edge: chunkZN24TFVZ_cjs.rowToEdge(currentLiveRow), action: "found" };
25028
+ return { edge: chunkGLDGT3L3_cjs.rowToEdge(currentLiveRow), action: "found" };
25029
25029
  }
25030
25030
  initialCandidateRead = {
25031
25031
  rows: currentRows,
@@ -25042,7 +25042,7 @@ async function executeEdgeGetOrCreateByEndpoints(ctx, kind, fromKind, fromId, to
25042
25042
  if (!isDeleted) {
25043
25043
  if (ifExists === "return") {
25044
25044
  assertEndpointClearCanApply(ifExists, options?.clearValidTo, kind);
25045
- return { edge: chunkZN24TFVZ_cjs.rowToEdge(matchedRow), action: "found" };
25045
+ return { edge: chunkGLDGT3L3_cjs.rowToEdge(matchedRow), action: "found" };
25046
25046
  }
25047
25047
  const outcome = await executeEdgeUpsertUpdateWithOutcome(
25048
25048
  ctx,
@@ -25250,15 +25250,15 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25250
25250
  validateMatchOnFields(edgeKind.schema, matchOn, kind);
25251
25251
  const validated = [];
25252
25252
  for (const item of items) {
25253
- chunkZN24TFVZ_cjs.assertValidityEndMutation(item, { entityType: "edge", kind });
25253
+ chunkGLDGT3L3_cjs.assertValidityEndMutation(item, { entityType: "edge", kind });
25254
25254
  if (item.clearValidTo === true) {
25255
- chunkZN24TFVZ_cjs.assertClearValidToSupported(backend, "edge");
25255
+ chunkGLDGT3L3_cjs.assertClearValidToSupported(backend, "edge");
25256
25256
  }
25257
25257
  const validatedProps = chunkQV6LL3PK_cjs.validateEdgeProps(edgeKind.schema, item.props, {
25258
25258
  kind,
25259
25259
  operation: "create"
25260
25260
  });
25261
- const matchProps = chunkZN24TFVZ_cjs.normalizePersistedEdgeMatchProps(validatedProps);
25261
+ const matchProps = chunkGLDGT3L3_cjs.normalizePersistedEdgeMatchProps(validatedProps);
25262
25262
  const validFrom = chunk3XJGYE66_cjs.validateStatedValidityLowerBound(
25263
25263
  item.validFrom,
25264
25264
  "validFrom"
@@ -25271,7 +25271,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25271
25271
  validTo
25272
25272
  );
25273
25273
  }
25274
- const compositeKey = chunkZN24TFVZ_cjs.buildEdgeMatchKey({
25274
+ const compositeKey = chunkGLDGT3L3_cjs.buildEdgeMatchKey({
25275
25275
  fromKind: item.fromKind,
25276
25276
  fromId: item.fromId,
25277
25277
  toKind: item.toKind,
@@ -25302,7 +25302,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25302
25302
  }
25303
25303
  });
25304
25304
  }
25305
- const atomicConvergenceExecutor = chunkZN24TFVZ_cjs.resolveAtomicEdgeConvergenceExecutor({
25305
+ const atomicConvergenceExecutor = chunkGLDGT3L3_cjs.resolveAtomicEdgeConvergenceExecutor({
25306
25306
  backend,
25307
25307
  graph: ctx.graph,
25308
25308
  schemaVersion: ctx.schemaVersion,
@@ -25328,7 +25328,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25328
25328
  ctx.registry
25329
25329
  );
25330
25330
  if (endpointError) throw endpointError;
25331
- const matchIdentity = chunkZN24TFVZ_cjs.resolveEdgeMatchIdentityStorage(
25331
+ const matchIdentity = chunkGLDGT3L3_cjs.resolveEdgeMatchIdentityStorage(
25332
25332
  registration.matchIdentity,
25333
25333
  {
25334
25334
  fromKind: entry2.fromKind,
@@ -25407,7 +25407,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25407
25407
  for (const [nativeIndex, nativeResult] of nativeResults.entries()) {
25408
25408
  const nativeEntry = chunkBXHAPCQG_cjs.requireDefined(nativeEntries[nativeIndex]);
25409
25409
  const result = {
25410
- edge: chunkZN24TFVZ_cjs.rowToEdge(nativeResult.row),
25410
+ edge: chunkGLDGT3L3_cjs.rowToEdge(nativeResult.row),
25411
25411
  action: nativeResult.outcome
25412
25412
  };
25413
25413
  results[nativeEntry.index] = result;
@@ -25579,7 +25579,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25579
25579
  const found = Array.from({ length: items.length });
25580
25580
  for (const entry2 of partition.toFetch) {
25581
25581
  assertEndpointClearCanApply(ifExists, entry2.clearValidTo, kind);
25582
- found[entry2.index] = { edge: chunkZN24TFVZ_cjs.rowToEdge(entry2.row), action: "found" };
25582
+ found[entry2.index] = { edge: chunkGLDGT3L3_cjs.rowToEdge(entry2.row), action: "found" };
25583
25583
  }
25584
25584
  for (const { index, sourceIndex } of partition.duplicateOf) {
25585
25585
  found[index] = {
@@ -25596,15 +25596,15 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25596
25596
  if (found !== void 0) return found;
25597
25597
  }
25598
25598
  function runBatch() {
25599
- return chunkZN24TFVZ_cjs.runWritePlan(
25599
+ return chunkGLDGT3L3_cjs.runWritePlan(
25600
25600
  ctx,
25601
25601
  // A bulk getOrCreate always converges on a match key no database key
25602
25602
  // backs, whatever its cardinality — the same reason the single-item path
25603
25603
  // fences unconditionally.
25604
- chunkZN24TFVZ_cjs.edgeWritePlan("edgeMatchKeyConvergence"),
25604
+ chunkGLDGT3L3_cjs.edgeWritePlan("edgeMatchKeyConvergence"),
25605
25605
  backend,
25606
25606
  async (session, target, _overlaidSession, lock) => {
25607
- const rawTarget = chunkZN24TFVZ_cjs.nestedManagedWriteTarget(target);
25607
+ const rawTarget = chunkGLDGT3L3_cjs.nestedManagedWriteTarget(target);
25608
25608
  const { toCreate, toFetch, duplicateOf } = partitionEntries(
25609
25609
  await fetchRowsByEndpoint(target)
25610
25610
  );
@@ -25682,7 +25682,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25682
25682
  if (entry2.isDeleted) continue;
25683
25683
  assertEndpointClearCanApply(ifExists, entry2.clearValidTo, kind);
25684
25684
  results[entry2.index] = {
25685
- edge: chunkZN24TFVZ_cjs.rowToEdge(entry2.row),
25685
+ edge: chunkGLDGT3L3_cjs.rowToEdge(entry2.row),
25686
25686
  action: "found"
25687
25687
  };
25688
25688
  }
@@ -25717,7 +25717,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
25717
25717
  } else {
25718
25718
  assertEndpointClearCanApply(ifExists, entry2.clearValidTo, kind);
25719
25719
  results[entry2.index] = {
25720
- edge: chunkZN24TFVZ_cjs.rowToEdge(entry2.row),
25720
+ edge: chunkGLDGT3L3_cjs.rowToEdge(entry2.row),
25721
25721
  action: "found"
25722
25722
  };
25723
25723
  }
@@ -25996,7 +25996,7 @@ function createRecordedReadService(params) {
25996
25996
  kind,
25997
25997
  ids,
25998
25998
  coordinate,
25999
- toEntity: (row) => chunkZN24TFVZ_cjs.rowToNode(mapRecordedNodeRow(row))
25999
+ toEntity: (row) => chunkGLDGT3L3_cjs.rowToNode(mapRecordedNodeRow(row))
26000
26000
  });
26001
26001
  }
26002
26002
  function edgeGetByIds(kind, ids, coordinate) {
@@ -26011,7 +26011,7 @@ function createRecordedReadService(params) {
26011
26011
  kind,
26012
26012
  ids,
26013
26013
  coordinate,
26014
- toEntity: (row) => chunkZN24TFVZ_cjs.rowToEdge(mapRecordedEdgeRow(row))
26014
+ toEntity: (row) => chunkGLDGT3L3_cjs.rowToEdge(mapRecordedEdgeRow(row))
26015
26015
  });
26016
26016
  }
26017
26017
  function nodeScan(kind, coordinate, options) {
@@ -26026,7 +26026,7 @@ function createRecordedReadService(params) {
26026
26026
  kind,
26027
26027
  coordinate,
26028
26028
  options,
26029
- toEntity: (row) => chunkZN24TFVZ_cjs.rowToNode(mapRecordedNodeRow(row))
26029
+ toEntity: (row) => chunkGLDGT3L3_cjs.rowToNode(mapRecordedNodeRow(row))
26030
26030
  });
26031
26031
  }
26032
26032
  function edgeScan(kind, coordinate, options) {
@@ -26041,7 +26041,7 @@ function createRecordedReadService(params) {
26041
26041
  kind,
26042
26042
  coordinate,
26043
26043
  options,
26044
- toEntity: (row) => chunkZN24TFVZ_cjs.rowToEdge(mapRecordedEdgeRow(row))
26044
+ toEntity: (row) => chunkGLDGT3L3_cjs.rowToEdge(mapRecordedEdgeRow(row))
26045
26045
  });
26046
26046
  }
26047
26047
  return {
@@ -27462,13 +27462,13 @@ var StoreImplementation = class _StoreImplementation {
27462
27462
  #buildNodeOperations(ctx) {
27463
27463
  return {
27464
27464
  defaultTemporalMode: this.#graph.defaults.temporalMode,
27465
- rowToNode: (row) => chunkZN24TFVZ_cjs.rowToNode(row),
27465
+ rowToNode: (row) => chunkGLDGT3L3_cjs.rowToNode(row),
27466
27466
  maybeRefreshStatisticsAfterBulk: (rowCount) => this.#maybeRefreshStatisticsAfterBulk(rowCount),
27467
- executeCreate: (input, backend) => chunkZN24TFVZ_cjs.executeNodeCreate(ctx, input, backend),
27468
- executeCreateBatch: (inputs, backend, options) => chunkZN24TFVZ_cjs.executeNodeCreateBatch(ctx, inputs, backend, options),
27469
- executeCreateNoReturnBatch: (inputs, backend) => chunkZN24TFVZ_cjs.executeNodeCreateNoReturnBatch(ctx, inputs, backend),
27470
- executeUpdate: (input, backend, options) => chunkZN24TFVZ_cjs.executeNodeUpdate(ctx, { ...input, id: input.id }, backend, options),
27471
- executeNodeSetUpdate: (kind, patch, candidateIds, candidateIdColumn, backend, options) => chunkZN24TFVZ_cjs.executeNodeSetUpdate(
27467
+ executeCreate: (input, backend) => chunkGLDGT3L3_cjs.executeNodeCreate(ctx, input, backend),
27468
+ executeCreateBatch: (inputs, backend, options) => chunkGLDGT3L3_cjs.executeNodeCreateBatch(ctx, inputs, backend, options),
27469
+ executeCreateNoReturnBatch: (inputs, backend) => chunkGLDGT3L3_cjs.executeNodeCreateNoReturnBatch(ctx, inputs, backend),
27470
+ executeUpdate: (input, backend, options) => chunkGLDGT3L3_cjs.executeNodeUpdate(ctx, { ...input, id: input.id }, backend, options),
27471
+ executeNodeSetUpdate: (kind, patch, candidateIds, candidateIdColumn, backend, options) => chunkGLDGT3L3_cjs.executeNodeSetUpdate(
27472
27472
  ctx,
27473
27473
  kind,
27474
27474
  patch,
@@ -27477,20 +27477,20 @@ var StoreImplementation = class _StoreImplementation {
27477
27477
  backend,
27478
27478
  options
27479
27479
  ),
27480
- executeUpsertUpdateBatch: (entries, backend) => chunkZN24TFVZ_cjs.executeNodeUpsertUpdateBatch(ctx, entries, backend),
27481
- executeResolvedMutationSet: (creates, updates, backend) => chunkZN24TFVZ_cjs.executeNodeResolvedMutationSet(ctx, creates, updates, backend),
27482
- prepareReplacement: (kind, props) => chunkZN24TFVZ_cjs.prepareNodeReplacement(ctx, kind, props),
27483
- executeReplacementBatch: (kind, items, backend) => chunkZN24TFVZ_cjs.executeNodeReplacementBatch(ctx, kind, items, backend),
27480
+ executeUpsertUpdateBatch: (entries, backend) => chunkGLDGT3L3_cjs.executeNodeUpsertUpdateBatch(ctx, entries, backend),
27481
+ executeResolvedMutationSet: (creates, updates, backend) => chunkGLDGT3L3_cjs.executeNodeResolvedMutationSet(ctx, creates, updates, backend),
27482
+ prepareReplacement: (kind, props) => chunkGLDGT3L3_cjs.prepareNodeReplacement(ctx, kind, props),
27483
+ executeReplacementBatch: (kind, items, backend) => chunkGLDGT3L3_cjs.executeNodeReplacementBatch(ctx, kind, items, backend),
27484
27484
  // Present only when opted in; its absence is the coalesce off switch.
27485
27485
  ...ctx.coalesceUnchangedUpsertsEnabled && {
27486
- upsertDirtyCheck: (kind, id, existingProps, inputProps) => chunkZN24TFVZ_cjs.nodeUpsertDirtyCheck(ctx, kind, id, existingProps, inputProps)
27486
+ upsertDirtyCheck: (kind, id, existingProps, inputProps) => chunkGLDGT3L3_cjs.nodeUpsertDirtyCheck(ctx, kind, id, existingProps, inputProps)
27487
27487
  },
27488
- executeDelete: (kind, id, backend) => chunkZN24TFVZ_cjs.executeNodeDelete(ctx, kind, id, backend),
27489
- executeDeleteBatch: (kind, ids, backend) => chunkZN24TFVZ_cjs.executeNodeDeleteBatch(ctx, kind, ids, backend),
27490
- executeHardDelete: (kind, id, backend) => chunkZN24TFVZ_cjs.executeNodeHardDelete(ctx, kind, id, backend),
27488
+ executeDelete: (kind, id, backend) => chunkGLDGT3L3_cjs.executeNodeDelete(ctx, kind, id, backend),
27489
+ executeDeleteBatch: (kind, ids, backend) => chunkGLDGT3L3_cjs.executeNodeDeleteBatch(ctx, kind, ids, backend),
27490
+ executeHardDelete: (kind, id, backend) => chunkGLDGT3L3_cjs.executeNodeHardDelete(ctx, kind, id, backend),
27491
27491
  temporalRowMatcher: (options) => this.#temporalRowMatcher(options),
27492
27492
  createQuery: () => this.query(),
27493
- executeGetOrCreateByConstraint: (kind, constraintName, props, backend, options) => chunkZN24TFVZ_cjs.executeNodeGetOrCreateByConstraint(
27493
+ executeGetOrCreateByConstraint: (kind, constraintName, props, backend, options) => chunkGLDGT3L3_cjs.executeNodeGetOrCreateByConstraint(
27494
27494
  ctx,
27495
27495
  kind,
27496
27496
  constraintName,
@@ -27498,7 +27498,7 @@ var StoreImplementation = class _StoreImplementation {
27498
27498
  backend,
27499
27499
  options
27500
27500
  ),
27501
- executeBulkGetOrCreateByConstraint: (kind, constraintName, items, backend, options) => chunkZN24TFVZ_cjs.executeNodeBulkGetOrCreateByConstraint(
27501
+ executeBulkGetOrCreateByConstraint: (kind, constraintName, items, backend, options) => chunkGLDGT3L3_cjs.executeNodeBulkGetOrCreateByConstraint(
27502
27502
  ctx,
27503
27503
  kind,
27504
27504
  constraintName,
@@ -27506,15 +27506,15 @@ var StoreImplementation = class _StoreImplementation {
27506
27506
  backend,
27507
27507
  options
27508
27508
  ),
27509
- executeFindByConstraint: (kind, constraintName, props, backend) => chunkZN24TFVZ_cjs.executeNodeFindByConstraint(ctx, kind, constraintName, props, backend),
27510
- executeBulkFindByConstraint: (kind, constraintName, items, backend) => chunkZN24TFVZ_cjs.executeNodeBulkFindByConstraint(
27509
+ executeFindByConstraint: (kind, constraintName, props, backend) => chunkGLDGT3L3_cjs.executeNodeFindByConstraint(ctx, kind, constraintName, props, backend),
27510
+ executeBulkFindByConstraint: (kind, constraintName, items, backend) => chunkGLDGT3L3_cjs.executeNodeBulkFindByConstraint(
27511
27511
  ctx,
27512
27512
  kind,
27513
27513
  constraintName,
27514
27514
  items,
27515
27515
  backend
27516
27516
  ),
27517
- executeBulkFindByIndex: (kind, indexName, items, backend, options) => chunkZN24TFVZ_cjs.executeNodeBulkFindByIndex(
27517
+ executeBulkFindByIndex: (kind, indexName, items, backend, options) => chunkGLDGT3L3_cjs.executeNodeBulkFindByIndex(
27518
27518
  ctx,
27519
27519
  kind,
27520
27520
  indexName,
@@ -27533,7 +27533,7 @@ var StoreImplementation = class _StoreImplementation {
27533
27533
  #buildEdgeOperations(ctx) {
27534
27534
  return {
27535
27535
  defaultTemporalMode: this.#graph.defaults.temporalMode,
27536
- rowToEdge: (row) => chunkZN24TFVZ_cjs.rowToEdge(row),
27536
+ rowToEdge: (row) => chunkGLDGT3L3_cjs.rowToEdge(row),
27537
27537
  maybeRefreshStatisticsAfterBulk: (rowCount) => this.#maybeRefreshStatisticsAfterBulk(rowCount),
27538
27538
  executeCreate: (input, backend) => executeEdgeCreate(ctx, input, backend),
27539
27539
  executeCreateBatch: (inputs, backend) => executeEdgeCreateBatch(ctx, inputs, backend),
@@ -28189,7 +28189,7 @@ var StoreImplementation = class _StoreImplementation {
28189
28189
  });
28190
28190
  const edgesBySource = /* @__PURE__ */ new Map();
28191
28191
  for (const row of rows) {
28192
- const edge = chunkZN24TFVZ_cjs.rowToEdge(row);
28192
+ const edge = chunkGLDGT3L3_cjs.rowToEdge(row);
28193
28193
  const key = side === "from" ? `${edge.fromKind}\0${edge.fromId}` : `${edge.toKind}\0${edge.toId}`;
28194
28194
  const bucket = edgesBySource.get(key);
28195
28195
  if (bucket === void 0) edgesBySource.set(key, [edge]);
@@ -28859,7 +28859,7 @@ var StoreImplementation = class _StoreImplementation {
28859
28859
  }
28860
28860
  for (const row of rows) receiptRecorder?.recordNode(row.kind, 1);
28861
28861
  return rows.map(
28862
- (row) => chunkZN24TFVZ_cjs.rowToNode(row)
28862
+ (row) => chunkGLDGT3L3_cjs.rowToNode(row)
28863
28863
  );
28864
28864
  }
28865
28865
  /**
@@ -29040,7 +29040,7 @@ var StoreImplementation = class _StoreImplementation {
29040
29040
  if (!includeTombstoned && row.deleted_at !== void 0) continue;
29041
29041
  loadedByReference.set(
29042
29042
  chunkQT3KWMGH_cjs.refKey({ kind, id: row.id }),
29043
- chunkZN24TFVZ_cjs.rowToNode(row)
29043
+ chunkGLDGT3L3_cjs.rowToNode(row)
29044
29044
  );
29045
29045
  }
29046
29046
  })
@@ -31247,5 +31247,5 @@ exports.relationalIndexDdlOptions = relationalIndexDdlOptions;
31247
31247
  exports.relationalIndexIdentity = relationalIndexIdentity;
31248
31248
  exports.sum = sum;
31249
31249
  exports.vectorIndexParams = vectorIndexParams;
31250
- //# sourceMappingURL=chunk-VKMLQTXP.cjs.map
31251
- //# sourceMappingURL=chunk-VKMLQTXP.cjs.map
31250
+ //# sourceMappingURL=chunk-MPCF5XBW.cjs.map
31251
+ //# sourceMappingURL=chunk-MPCF5XBW.cjs.map