@nicia-ai/typegraph 0.65.0 → 0.66.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 (196) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/{atomic-mutation-program-BznZQ06C.d.ts → atomic-mutation-program-BhP75Qn0.d.ts} +1 -1
  3. package/dist/{atomic-mutation-program-Bfu5z-je.d.cts → atomic-mutation-program-DMdmc4s0.d.cts} +1 -1
  4. package/dist/backend/drizzle/engine/index.cjs +13 -13
  5. package/dist/backend/drizzle/engine/index.d.cts +9 -9
  6. package/dist/backend/drizzle/engine/index.d.ts +9 -9
  7. package/dist/backend/drizzle/engine/index.js +8 -8
  8. package/dist/backend/drizzle/indexes.d.cts +1 -1
  9. package/dist/backend/drizzle/indexes.d.ts +1 -1
  10. package/dist/backend/index.cjs +91 -91
  11. package/dist/backend/index.d.cts +7 -7
  12. package/dist/backend/index.d.ts +7 -7
  13. package/dist/backend/index.js +8 -8
  14. package/dist/backend/postgres/index.cjs +23 -23
  15. package/dist/backend/postgres/index.d.cts +8 -8
  16. package/dist/backend/postgres/index.d.ts +8 -8
  17. package/dist/backend/postgres/index.js +8 -8
  18. package/dist/backend/postgres/pglite-store.cjs +1 -1
  19. package/dist/backend/postgres/pglite-store.d.cts +6 -6
  20. package/dist/backend/postgres/pglite-store.d.ts +6 -6
  21. package/dist/backend/postgres/pglite-store.js +1 -1
  22. package/dist/backend/postgres/pglite.cjs +10 -10
  23. package/dist/backend/postgres/pglite.d.cts +3 -3
  24. package/dist/backend/postgres/pglite.d.ts +3 -3
  25. package/dist/backend/postgres/pglite.js +9 -9
  26. package/dist/backend/sqlite/index.cjs +21 -21
  27. package/dist/backend/sqlite/index.d.cts +7 -7
  28. package/dist/backend/sqlite/index.d.ts +7 -7
  29. package/dist/backend/sqlite/index.js +8 -8
  30. package/dist/backend/sqlite/libsql.cjs +14 -14
  31. package/dist/backend/sqlite/libsql.d.cts +3 -3
  32. package/dist/backend/sqlite/libsql.d.ts +3 -3
  33. package/dist/backend/sqlite/libsql.js +8 -8
  34. package/dist/backend/sqlite/local-store.cjs +1 -1
  35. package/dist/backend/sqlite/local-store.d.cts +6 -6
  36. package/dist/backend/sqlite/local-store.d.ts +6 -6
  37. package/dist/backend/sqlite/local-store.js +1 -1
  38. package/dist/backend/sqlite/local.cjs +10 -10
  39. package/dist/backend/sqlite/local.d.cts +3 -3
  40. package/dist/backend/sqlite/local.d.ts +3 -3
  41. package/dist/backend/sqlite/local.js +9 -9
  42. package/dist/{chunk-PFXNQFFY.js → chunk-2DJKHZQ4.js} +75 -8
  43. package/dist/chunk-2DJKHZQ4.js.map +1 -0
  44. package/dist/{chunk-337ONI2I.js → chunk-3SUZXB5X.js} +146 -80
  45. package/dist/chunk-3SUZXB5X.js.map +1 -0
  46. package/dist/{chunk-4VTCIEK3.js → chunk-4TQOIBWH.js} +3 -3
  47. package/dist/{chunk-4VTCIEK3.js.map → chunk-4TQOIBWH.js.map} +1 -1
  48. package/dist/{chunk-JRWKRBI5.cjs → chunk-5JOCIMQ3.cjs} +6 -6
  49. package/dist/{chunk-JRWKRBI5.cjs.map → chunk-5JOCIMQ3.cjs.map} +1 -1
  50. package/dist/{chunk-BWQA3POT.cjs → chunk-6B3LQUYG.cjs} +206 -138
  51. package/dist/chunk-6B3LQUYG.cjs.map +1 -0
  52. package/dist/{chunk-RQPCUHIH.js → chunk-6ECNYQDW.js} +3 -3
  53. package/dist/{chunk-RQPCUHIH.js.map → chunk-6ECNYQDW.js.map} +1 -1
  54. package/dist/{chunk-OLB75LRQ.js → chunk-6GKKAQMW.js} +5 -5
  55. package/dist/{chunk-OLB75LRQ.js.map → chunk-6GKKAQMW.js.map} +1 -1
  56. package/dist/{chunk-OC5ROP7V.cjs → chunk-6JRVV2SS.cjs} +8 -2
  57. package/dist/chunk-6JRVV2SS.cjs.map +1 -0
  58. package/dist/{chunk-DSX3P4S5.cjs → chunk-76OB5RSH.cjs} +6 -6
  59. package/dist/{chunk-DSX3P4S5.cjs.map → chunk-76OB5RSH.cjs.map} +1 -1
  60. package/dist/{chunk-DHRLOQLQ.cjs → chunk-7LQTDGV5.cjs} +11 -11
  61. package/dist/{chunk-DHRLOQLQ.cjs.map → chunk-7LQTDGV5.cjs.map} +1 -1
  62. package/dist/{chunk-Q25QYSOH.js → chunk-7YJHUY4T.js} +9 -9
  63. package/dist/{chunk-Q25QYSOH.js.map → chunk-7YJHUY4T.js.map} +1 -1
  64. package/dist/{chunk-JERQGJKG.cjs → chunk-ANMCKLZQ.cjs} +18 -18
  65. package/dist/{chunk-JERQGJKG.cjs.map → chunk-ANMCKLZQ.cjs.map} +1 -1
  66. package/dist/{chunk-BBOMNH44.js → chunk-BABP4D5B.js} +3 -3
  67. package/dist/{chunk-BBOMNH44.js.map → chunk-BABP4D5B.js.map} +1 -1
  68. package/dist/{chunk-EVGZ2TRQ.js → chunk-BE75G3M5.js} +3 -3
  69. package/dist/{chunk-EVGZ2TRQ.js.map → chunk-BE75G3M5.js.map} +1 -1
  70. package/dist/{chunk-FXGZT3WO.cjs → chunk-BX42F7IJ.cjs} +41 -41
  71. package/dist/{chunk-FXGZT3WO.cjs.map → chunk-BX42F7IJ.cjs.map} +1 -1
  72. package/dist/{chunk-G6T23JU7.js → chunk-CDKNGCE7.js} +3 -3
  73. package/dist/{chunk-G6T23JU7.js.map → chunk-CDKNGCE7.js.map} +1 -1
  74. package/dist/{chunk-BNTJ5YFO.cjs → chunk-EACDHXJL.cjs} +4 -4
  75. package/dist/{chunk-BNTJ5YFO.cjs.map → chunk-EACDHXJL.cjs.map} +1 -1
  76. package/dist/{chunk-SNDJUTMB.cjs → chunk-EBQX7MYL.cjs} +72 -72
  77. package/dist/{chunk-SNDJUTMB.cjs.map → chunk-EBQX7MYL.cjs.map} +1 -1
  78. package/dist/{chunk-GKSAEUX6.js → chunk-FXOFJ4FS.js} +7 -7
  79. package/dist/{chunk-GKSAEUX6.js.map → chunk-FXOFJ4FS.js.map} +1 -1
  80. package/dist/{chunk-ZOWRACZQ.cjs → chunk-G7OKJDMG.cjs} +5 -5
  81. package/dist/{chunk-ZOWRACZQ.cjs.map → chunk-G7OKJDMG.cjs.map} +1 -1
  82. package/dist/{chunk-MKJPBSID.cjs → chunk-I7SBZJI2.cjs} +4 -4
  83. package/dist/{chunk-MKJPBSID.cjs.map → chunk-I7SBZJI2.cjs.map} +1 -1
  84. package/dist/{chunk-H346QK3V.cjs → chunk-K7YACILO.cjs} +9 -9
  85. package/dist/{chunk-H346QK3V.cjs.map → chunk-K7YACILO.cjs.map} +1 -1
  86. package/dist/{chunk-3KWF25MF.cjs → chunk-MN325MG4.cjs} +313 -246
  87. package/dist/chunk-MN325MG4.cjs.map +1 -0
  88. package/dist/{chunk-KDNRACRG.cjs → chunk-MRUOOAIQ.cjs} +4 -4
  89. package/dist/{chunk-KDNRACRG.cjs.map → chunk-MRUOOAIQ.cjs.map} +1 -1
  90. package/dist/{chunk-HTSJTWUT.js → chunk-OF63ZHSD.js} +4 -4
  91. package/dist/{chunk-HTSJTWUT.js.map → chunk-OF63ZHSD.js.map} +1 -1
  92. package/dist/{chunk-NGA3THGU.cjs → chunk-QR7W37HG.cjs} +14 -14
  93. package/dist/{chunk-NGA3THGU.cjs.map → chunk-QR7W37HG.cjs.map} +1 -1
  94. package/dist/{chunk-QFEO4M5W.js → chunk-RTPMG6LQ.js} +11 -11
  95. package/dist/{chunk-QFEO4M5W.js.map → chunk-RTPMG6LQ.js.map} +1 -1
  96. package/dist/{chunk-PFD4NUYV.js → chunk-SSDHR2C2.js} +3 -3
  97. package/dist/{chunk-PFD4NUYV.js.map → chunk-SSDHR2C2.js.map} +1 -1
  98. package/dist/{chunk-THK3SCQA.js → chunk-SYXTWPX6.js} +5 -5
  99. package/dist/{chunk-THK3SCQA.js.map → chunk-SYXTWPX6.js.map} +1 -1
  100. package/dist/{chunk-XSLQYGNR.cjs → chunk-T3VU3YRQ.cjs} +69 -69
  101. package/dist/{chunk-XSLQYGNR.cjs.map → chunk-T3VU3YRQ.cjs.map} +1 -1
  102. package/dist/{chunk-MIBWA6HX.js → chunk-TR7QTODF.js} +213 -33
  103. package/dist/chunk-TR7QTODF.js.map +1 -0
  104. package/dist/{chunk-AD3NLSV5.js → chunk-TU22BFMP.js} +8 -2
  105. package/dist/chunk-TU22BFMP.js.map +1 -0
  106. package/dist/{chunk-WTMSUIRO.js → chunk-UFKYMQJ5.js} +3 -3
  107. package/dist/{chunk-WTMSUIRO.js.map → chunk-UFKYMQJ5.js.map} +1 -1
  108. package/dist/{chunk-35LDKSMM.cjs → chunk-VNJMM2QQ.cjs} +30 -30
  109. package/dist/{chunk-35LDKSMM.cjs.map → chunk-VNJMM2QQ.cjs.map} +1 -1
  110. package/dist/{chunk-53ZEBIMD.js → chunk-WB55URNM.js} +6 -6
  111. package/dist/{chunk-53ZEBIMD.js.map → chunk-WB55URNM.js.map} +1 -1
  112. package/dist/{chunk-L2GBVYRU.cjs → chunk-WWSYGZED.cjs} +11 -11
  113. package/dist/{chunk-L2GBVYRU.cjs.map → chunk-WWSYGZED.cjs.map} +1 -1
  114. package/dist/{chunk-D2JPOFRZ.cjs → chunk-WY3IFEKV.cjs} +191 -191
  115. package/dist/{chunk-D2JPOFRZ.cjs.map → chunk-WY3IFEKV.cjs.map} +1 -1
  116. package/dist/{chunk-3RSFLZ7A.cjs → chunk-Y4X6ODVY.cjs} +943 -763
  117. package/dist/chunk-Y4X6ODVY.cjs.map +1 -0
  118. package/dist/{chunk-VZRXXABW.js → chunk-YHMXF7OZ.js} +5 -5
  119. package/dist/{chunk-VZRXXABW.js.map → chunk-YHMXF7OZ.js.map} +1 -1
  120. package/dist/{chunk-VROJKWZ7.js → chunk-ZONDBN6H.js} +5 -5
  121. package/dist/{chunk-VROJKWZ7.js.map → chunk-ZONDBN6H.js.map} +1 -1
  122. package/dist/core/index.d.cts +3 -3
  123. package/dist/core/index.d.ts +3 -3
  124. package/dist/{ddl-DvW9aobX.d.ts → ddl-2q7xLM1X.d.ts} +3 -3
  125. package/dist/{ddl-BjuXbPfw.d.cts → ddl-D_09BfbN.d.cts} +3 -3
  126. package/dist/graph-extension/index.d.cts +2 -2
  127. package/dist/graph-extension/index.d.ts +2 -2
  128. package/dist/graph-merge/index.cjs +156 -156
  129. package/dist/graph-merge/index.d.cts +7 -7
  130. package/dist/graph-merge/index.d.ts +7 -7
  131. package/dist/graph-merge/index.js +14 -14
  132. package/dist/{graph-templates-1vMqlPsu.d.cts → graph-templates-B5Q7oYAA.d.cts} +2 -2
  133. package/dist/{graph-templates-Y52w16dH.d.ts → graph-templates-D9N-Z9kw.d.ts} +2 -2
  134. package/dist/index.cjs +99 -99
  135. package/dist/index.d.cts +10 -10
  136. package/dist/index.d.ts +10 -10
  137. package/dist/index.js +18 -18
  138. package/dist/indexes/index.d.cts +4 -4
  139. package/dist/indexes/index.d.ts +4 -4
  140. package/dist/{ingestion-import-target-CCKeXZbW.d.ts → ingestion-import-target-B8EU6ug2.d.ts} +1 -1
  141. package/dist/{ingestion-import-target-774QRgkF.d.cts → ingestion-import-target-C5sHNFJF.d.cts} +1 -1
  142. package/dist/interchange/index.cjs +34 -34
  143. package/dist/interchange/index.d.cts +7 -7
  144. package/dist/interchange/index.d.ts +7 -7
  145. package/dist/interchange/index.js +11 -11
  146. package/dist/{local-store-impl-DFKS7QTV.js → local-store-impl-ERPNYOCL.js} +18 -18
  147. package/dist/{local-store-impl-DFKS7QTV.js.map → local-store-impl-ERPNYOCL.js.map} +1 -1
  148. package/dist/{local-store-impl-3E4VLFCI.cjs → local-store-impl-OUINMCYI.cjs} +22 -22
  149. package/dist/{local-store-impl-3E4VLFCI.cjs.map → local-store-impl-OUINMCYI.cjs.map} +1 -1
  150. package/dist/{pglite-store-impl-N63GGBU2.js → pglite-store-impl-DUJBQZS5.js} +18 -18
  151. package/dist/{pglite-store-impl-N63GGBU2.js.map → pglite-store-impl-DUJBQZS5.js.map} +1 -1
  152. package/dist/{pglite-store-impl-T75O3LVQ.cjs → pglite-store-impl-Z3SOOP75.cjs} +22 -22
  153. package/dist/{pglite-store-impl-T75O3LVQ.cjs.map → pglite-store-impl-Z3SOOP75.cjs.map} +1 -1
  154. package/dist/{postgres-C9gitL71.d.ts → postgres-BbTYW3b_.d.ts} +3 -3
  155. package/dist/{postgres-BONrXHb4.d.cts → postgres-DOBXcZVg.d.cts} +1 -1
  156. package/dist/{postgres-DAFRdnTr.d.ts → postgres-DhZixg92.d.ts} +1 -1
  157. package/dist/{postgres-2FYdVYCm.d.cts → postgres-Dp3MpyJt.d.cts} +3 -3
  158. package/dist/{profile-CAD65CqS.d.ts → profile-Ch5SSewK.d.ts} +8 -8
  159. package/dist/{profile-Bmcg07Ki.d.cts → profile-DppApFgt.d.cts} +8 -8
  160. package/dist/profiler/index.d.cts +8 -8
  161. package/dist/profiler/index.d.ts +8 -8
  162. package/dist/provenance/index.cjs +22 -22
  163. package/dist/provenance/index.d.cts +6 -6
  164. package/dist/provenance/index.d.ts +6 -6
  165. package/dist/provenance/index.js +6 -6
  166. package/dist/{repair-validity-windows-CinP91t7.d.cts → repair-validity-windows-CpP_GpIx.d.cts} +1 -1
  167. package/dist/{repair-validity-windows-BJz4nffP.d.ts → repair-validity-windows-lfe275bY.d.ts} +1 -1
  168. package/dist/{resolve-DgOSlXx_.d.ts → resolve-CoYqHqno.d.cts} +7 -2
  169. package/dist/{resolve-DQXSEN_A.d.cts → resolve-DV0Iposp.d.ts} +7 -2
  170. package/dist/schema/index.cjs +37 -37
  171. package/dist/schema/index.d.cts +7 -7
  172. package/dist/schema/index.d.ts +7 -7
  173. package/dist/schema/index.js +7 -7
  174. package/dist/{searchable-DMdCwkXO.d.cts → searchable-C7Xt6g45.d.cts} +1 -1
  175. package/dist/{searchable-BPRF0Bah.d.ts → searchable-KKXrPet3.d.ts} +1 -1
  176. package/dist/{sqlite-DgbYa-1Y.d.cts → sqlite-BkQM9ZeI.d.cts} +1 -1
  177. package/dist/{sqlite-Co_uIpfs.d.cts → sqlite-BpRtjC36.d.cts} +3 -3
  178. package/dist/{sqlite-DcDAAYow.d.ts → sqlite-CH0Zq0Qv.d.ts} +3 -3
  179. package/dist/{sqlite-UlG5prJQ.d.ts → sqlite-CcCSeXGg.d.ts} +1 -1
  180. package/dist/{store-HxoFyQMu.d.cts → store-3nfPQK5j.d.cts} +30 -7
  181. package/dist/{store-C9T1c9Az.d.ts → store-C8ZPl7OW.d.ts} +30 -7
  182. package/dist/{types-CRCyg1fJ.d.cts → types-BynPp5kU.d.cts} +18 -2
  183. package/dist/{types-CRCyg1fJ.d.ts → types-BynPp5kU.d.ts} +18 -2
  184. package/dist/{types-Dg_prBqC.d.ts → types-C9YwrkSe.d.ts} +1 -1
  185. package/dist/{types-B5AUesS1.d.cts → types-JG-4CG6P.d.cts} +1 -1
  186. package/dist/{where-gRyc3jj_.d.cts → where-D1gBDqQ_.d.cts} +1 -1
  187. package/dist/{where-D-NDKMPw.d.ts → where-D2GqMFp-.d.ts} +1 -1
  188. package/package.json +1 -1
  189. package/dist/chunk-337ONI2I.js.map +0 -1
  190. package/dist/chunk-3KWF25MF.cjs.map +0 -1
  191. package/dist/chunk-3RSFLZ7A.cjs.map +0 -1
  192. package/dist/chunk-AD3NLSV5.js.map +0 -1
  193. package/dist/chunk-BWQA3POT.cjs.map +0 -1
  194. package/dist/chunk-MIBWA6HX.js.map +0 -1
  195. package/dist/chunk-OC5ROP7V.cjs.map +0 -1
  196. package/dist/chunk-PFXNQFFY.js.map +0 -1
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunk3RSFLZ7A_cjs = require('../chunk-3RSFLZ7A.cjs');
4
- require('../chunk-DSX3P4S5.cjs');
3
+ var chunkY4X6ODVY_cjs = require('../chunk-Y4X6ODVY.cjs');
4
+ require('../chunk-76OB5RSH.cjs');
5
5
  var chunk3HMEGR7U_cjs = require('../chunk-3HMEGR7U.cjs');
6
6
  require('../chunk-2XQYRCPM.cjs');
7
- var chunkXSLQYGNR_cjs = require('../chunk-XSLQYGNR.cjs');
8
- require('../chunk-D2JPOFRZ.cjs');
9
- require('../chunk-35LDKSMM.cjs');
10
- require('../chunk-MKJPBSID.cjs');
11
- require('../chunk-ZOWRACZQ.cjs');
7
+ var chunkT3VU3YRQ_cjs = require('../chunk-T3VU3YRQ.cjs');
8
+ require('../chunk-WY3IFEKV.cjs');
9
+ require('../chunk-VNJMM2QQ.cjs');
10
+ require('../chunk-I7SBZJI2.cjs');
11
+ require('../chunk-G7OKJDMG.cjs');
12
12
  require('../chunk-R255UE5U.cjs');
13
- require('../chunk-KDNRACRG.cjs');
14
- var chunkFXGZT3WO_cjs = require('../chunk-FXGZT3WO.cjs');
13
+ require('../chunk-MRUOOAIQ.cjs');
14
+ var chunkBX42F7IJ_cjs = require('../chunk-BX42F7IJ.cjs');
15
15
  require('../chunk-6YKISECL.cjs');
16
16
  var chunkICOTLZBV_cjs = require('../chunk-ICOTLZBV.cjs');
17
- var chunkSNDJUTMB_cjs = require('../chunk-SNDJUTMB.cjs');
18
- var chunkBWQA3POT_cjs = require('../chunk-BWQA3POT.cjs');
19
- var chunkJRWKRBI5_cjs = require('../chunk-JRWKRBI5.cjs');
20
- var chunkDHRLOQLQ_cjs = require('../chunk-DHRLOQLQ.cjs');
21
- var chunkOC5ROP7V_cjs = require('../chunk-OC5ROP7V.cjs');
17
+ var chunkEBQX7MYL_cjs = require('../chunk-EBQX7MYL.cjs');
18
+ var chunk6B3LQUYG_cjs = require('../chunk-6B3LQUYG.cjs');
19
+ var chunk5JOCIMQ3_cjs = require('../chunk-5JOCIMQ3.cjs');
20
+ var chunk7LQTDGV5_cjs = require('../chunk-7LQTDGV5.cjs');
21
+ var chunk6JRVV2SS_cjs = require('../chunk-6JRVV2SS.cjs');
22
22
  var chunk7D2ZLF4O_cjs = require('../chunk-7D2ZLF4O.cjs');
23
23
  var chunk5ICDVLI3_cjs = require('../chunk-5ICDVLI3.cjs');
24
24
  var chunkL4L4AV6F_cjs = require('../chunk-L4L4AV6F.cjs');
@@ -49,10 +49,10 @@ var zod = require('zod');
49
49
 
50
50
  // src/graph-merge/canonical-props.ts
51
51
  function canonicalizeProps(props) {
52
- return JSON.stringify(props, chunkJRWKRBI5_cjs.sortedReplacer);
52
+ return JSON.stringify(props, chunk5JOCIMQ3_cjs.sortedReplacer);
53
53
  }
54
54
  function canonicalValueKey(value) {
55
- return JSON.stringify(value, chunkJRWKRBI5_cjs.sortedReplacer);
55
+ return JSON.stringify(value, chunk5JOCIMQ3_cjs.sortedReplacer);
56
56
  }
57
57
  function edgeStateSignature(edge) {
58
58
  return JSON.stringify([
@@ -759,7 +759,7 @@ function identityEndpointKey(assertion) {
759
759
  return chunk5ICDVLI3_cjs.encodeTupleKey(endpointTuple(assertion));
760
760
  }
761
761
  function identitySemanticKey(assertion) {
762
- return chunkSNDJUTMB_cjs.identityAssertionSemanticKey(
762
+ return chunkEBQX7MYL_cjs.identityAssertionSemanticKey(
763
763
  assertion.relation,
764
764
  assertion.a,
765
765
  assertion.b
@@ -823,7 +823,7 @@ function assertNoOpposingIdentityRelations(assertions) {
823
823
  );
824
824
  for (const sameAssertion of same) {
825
825
  for (const differentAssertion of different) {
826
- if (!chunkSNDJUTMB_cjs.identityValidityWindowsOverlap(sameAssertion, differentAssertion)) {
826
+ if (!chunkEBQX7MYL_cjs.identityValidityWindowsOverlap(sameAssertion, differentAssertion)) {
827
827
  continue;
828
828
  }
829
829
  throw new IdentityMergeConflictError(
@@ -983,7 +983,7 @@ function remapIdentityAssertionEndpoints(assertions, canonicalOf, retypeMap, sto
983
983
  );
984
984
  continue;
985
985
  }
986
- const [a, b] = chunkSNDJUTMB_cjs.normalizeIdentityPair(remappedA, remappedB);
986
+ const [a, b] = chunkEBQX7MYL_cjs.normalizeIdentityPair(remappedA, remappedB);
987
987
  const endpointWindowA = endpointWindows.get(mergeKeyOf(a));
988
988
  const endpointWindowB = endpointWindows.get(mergeKeyOf(b));
989
989
  const validFrom = [
@@ -1138,7 +1138,7 @@ async function buildIdentityPeerProbe(target, probedIds, targetPeers, plan, prof
1138
1138
  (group) => group.map((member) => mergeKey(member.kind, member.id))
1139
1139
  )
1140
1140
  ]);
1141
- const ledger = (await relevantLedgerAssertions(target, memberKeys, chunkBWQA3POT_cjs.storeBackend(target))).filter(
1141
+ const ledger = (await relevantLedgerAssertions(target, memberKeys, chunk6B3LQUYG_cjs.storeBackend(target))).filter(
1142
1142
  (assertion) => !plannedDeletions.has(mergeKey(assertion.a.kind, assertion.a.id)) && !plannedDeletions.has(mergeKey(assertion.b.kind, assertion.b.id))
1143
1143
  );
1144
1144
  return {
@@ -1159,7 +1159,7 @@ async function buildIdentityPeerProbe(target, probedIds, targetPeers, plan, prof
1159
1159
  };
1160
1160
  }
1161
1161
  async function snapshotIdentityClasses(target, seeds, liveKeys, plannedDeletions, txBackend) {
1162
- const classes = await chunkBWQA3POT_cjs.storeRuntime(target).structuralIdentityClasses(
1162
+ const classes = await chunk6B3LQUYG_cjs.storeRuntime(target).structuralIdentityClasses(
1163
1163
  seeds,
1164
1164
  txBackend
1165
1165
  );
@@ -1167,7 +1167,7 @@ async function snapshotIdentityClasses(target, seeds, liveKeys, plannedDeletions
1167
1167
  const groups = [];
1168
1168
  for (const seed of seeds) {
1169
1169
  const key = mergeKey(seed.kind, seed.id);
1170
- const members = (classes.get(chunkSNDJUTMB_cjs.identityReferenceKey(seed)) ?? [seed]).filter(
1170
+ const members = (classes.get(chunkEBQX7MYL_cjs.identityReferenceKey(seed)) ?? [seed]).filter(
1171
1171
  (member) => !plannedDeletions.has(mergeKey(member.kind, member.id))
1172
1172
  );
1173
1173
  groups.push(members);
@@ -1176,7 +1176,7 @@ async function snapshotIdentityClasses(target, seeds, liveKeys, plannedDeletions
1176
1176
  return { fingerprints, groups };
1177
1177
  }
1178
1178
  async function relevantLedgerAssertions(target, memberKeys, backend) {
1179
- const current = await chunkBWQA3POT_cjs.storeRuntime(target).identityAssertionsAtTarget(
1179
+ const current = await chunk6B3LQUYG_cjs.storeRuntime(target).identityAssertionsAtTarget(
1180
1180
  backend,
1181
1181
  "state"
1182
1182
  );
@@ -1249,7 +1249,7 @@ async function assertPlannedIdentityIdsFresh(target, txBackend, plan) {
1249
1249
  ...plan.identityRetractions.map((retraction) => retraction.id)
1250
1250
  ];
1251
1251
  if (plannedIds.length === 0) return;
1252
- const storedById = await chunkBWQA3POT_cjs.storeRuntime(target).identityAssertionRowsByIds(
1252
+ const storedById = await chunk6B3LQUYG_cjs.storeRuntime(target).identityAssertionRowsByIds(
1253
1253
  plannedIds,
1254
1254
  txBackend
1255
1255
  );
@@ -1302,7 +1302,7 @@ function affectedIdentityClassSeeds(plan, profile) {
1302
1302
  return [...seedsByKey.values()];
1303
1303
  }
1304
1304
  async function assertMergedIdentityClassesConsistent(target, txBackend, plan) {
1305
- await chunkBWQA3POT_cjs.storeRuntime(target).assertIdentityClassesConsistentAtTarget(
1305
+ await chunk6B3LQUYG_cjs.storeRuntime(target).assertIdentityClassesConsistentAtTarget(
1306
1306
  txBackend,
1307
1307
  affectedIdentityClassSeeds(plan, target.graph.identity?.sameIdAcrossKinds)
1308
1308
  );
@@ -1356,7 +1356,7 @@ function translateIdentityCommitError(error) {
1356
1356
  }
1357
1357
  async function assertIdentityPeersStable(target, txBackend, probe, plan) {
1358
1358
  if (probe === void 0) return;
1359
- const live = (await chunkBWQA3POT_cjs.storeRuntime(target).liveNodesSharingIds(probe.ids, txBackend)).filter((peer) => !probe.plannedDeletions.has(mergeKey(peer.kind, peer.id)));
1359
+ const live = (await chunk6B3LQUYG_cjs.storeRuntime(target).liveNodesSharingIds(probe.ids, txBackend)).filter((peer) => !probe.plannedDeletions.has(mergeKey(peer.kind, peer.id)));
1360
1360
  const seedKindsById = /* @__PURE__ */ new Map();
1361
1361
  for (const seed of probe.seeds) {
1362
1362
  const kinds = seedKindsById.get(seed.id) ?? /* @__PURE__ */ new Set();
@@ -1486,9 +1486,9 @@ function filterRowsByIds(rows, ids) {
1486
1486
  }
1487
1487
  async function fetchNodesByIds(backend, graphId, kind, ids) {
1488
1488
  if (ids.length === 0) return [];
1489
- const rowsById2 = await chunkBWQA3POT_cjs.getNodeRowsByIds(
1489
+ const rowsById2 = await chunk6B3LQUYG_cjs.getNodeRowsByIds(
1490
1490
  backend,
1491
- chunkDHRLOQLQ_cjs.batchPointReadVerdict(backend),
1491
+ chunk7LQTDGV5_cjs.batchPointReadVerdict(backend),
1492
1492
  graphId,
1493
1493
  kind,
1494
1494
  ids
@@ -1497,9 +1497,9 @@ async function fetchNodesByIds(backend, graphId, kind, ids) {
1497
1497
  }
1498
1498
  async function fetchEdgesByIds(backend, graphId, kind, ids) {
1499
1499
  if (ids.length === 0) return [];
1500
- const rowsById2 = await chunkBWQA3POT_cjs.getEdgeRowsByIds(
1500
+ const rowsById2 = await chunk6B3LQUYG_cjs.getEdgeRowsByIds(
1501
1501
  backend,
1502
- chunkDHRLOQLQ_cjs.batchPointReadVerdict(backend),
1502
+ chunk7LQTDGV5_cjs.batchPointReadVerdict(backend),
1503
1503
  graphId,
1504
1504
  ids
1505
1505
  );
@@ -1686,8 +1686,8 @@ async function diffAgainstBase(baseStore, forkStore, captureForkState = true, pr
1686
1686
  const nodeKinds = chunk7D2ZLF4O_cjs.getNodeKinds(graph);
1687
1687
  const edgeKinds = chunk7D2ZLF4O_cjs.getEdgeKinds(graph);
1688
1688
  const [baseIdentity, forkIdentity] = await Promise.all([
1689
- chunkBWQA3POT_cjs.storeRuntime(baseStore).readCurrentIdentityAssertions("archival"),
1690
- chunkBWQA3POT_cjs.storeRuntime(forkStore).readCurrentIdentityAssertions("archival")
1689
+ chunk6B3LQUYG_cjs.storeRuntime(baseStore).readCurrentIdentityAssertions("archival"),
1690
+ chunk6B3LQUYG_cjs.storeRuntime(forkStore).readCurrentIdentityAssertions("archival")
1691
1691
  ]);
1692
1692
  const baseIdentityById = new Map(
1693
1693
  baseIdentity.map((assertion) => [assertion.id, assertion])
@@ -1703,21 +1703,21 @@ async function diffAgainstBase(baseStore, forkStore, captureForkState = true, pr
1703
1703
  for (const kind of nodeKinds) {
1704
1704
  const nodeIds = prunedKeys === void 0 ? [] : idsForKind(prunedKeys.nodes, kind);
1705
1705
  const baseRows = prunedKeys === void 0 ? await enumerateAllNodes(
1706
- chunkBWQA3POT_cjs.storeBackend(baseStore),
1706
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
1707
1707
  baseStore.graphId,
1708
1708
  kind
1709
1709
  ) : await fetchNodesByIds(
1710
- chunkBWQA3POT_cjs.storeBackend(baseStore),
1710
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
1711
1711
  baseStore.graphId,
1712
1712
  kind,
1713
1713
  nodeIds
1714
1714
  );
1715
1715
  const forkRowsFetched = captureForkState || prunedKeys === void 0 ? await enumerateAllNodes(
1716
- chunkBWQA3POT_cjs.storeBackend(forkStore),
1716
+ chunk6B3LQUYG_cjs.storeBackend(forkStore),
1717
1717
  forkStore.graphId,
1718
1718
  kind
1719
1719
  ) : await fetchNodesByIds(
1720
- chunkBWQA3POT_cjs.storeBackend(forkStore),
1720
+ chunk6B3LQUYG_cjs.storeBackend(forkStore),
1721
1721
  forkStore.graphId,
1722
1722
  kind,
1723
1723
  nodeIds
@@ -1750,21 +1750,21 @@ async function diffAgainstBase(baseStore, forkStore, captureForkState = true, pr
1750
1750
  for (const kind of edgeKinds) {
1751
1751
  const edgeIds = prunedKeys === void 0 ? [] : idsForKind(prunedKeys.edges, kind);
1752
1752
  const baseRows = prunedKeys === void 0 ? await enumerateAllEdges(
1753
- chunkBWQA3POT_cjs.storeBackend(baseStore),
1753
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
1754
1754
  baseStore.graphId,
1755
1755
  kind
1756
1756
  ) : await fetchEdgesByIds(
1757
- chunkBWQA3POT_cjs.storeBackend(baseStore),
1757
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
1758
1758
  baseStore.graphId,
1759
1759
  kind,
1760
1760
  edgeIds
1761
1761
  );
1762
1762
  const forkRowsFetched = captureForkState || prunedKeys === void 0 ? await enumerateAllEdges(
1763
- chunkBWQA3POT_cjs.storeBackend(forkStore),
1763
+ chunk6B3LQUYG_cjs.storeBackend(forkStore),
1764
1764
  forkStore.graphId,
1765
1765
  kind
1766
1766
  ) : await fetchEdgesByIds(
1767
- chunkBWQA3POT_cjs.storeBackend(forkStore),
1767
+ chunk6B3LQUYG_cjs.storeBackend(forkStore),
1768
1768
  forkStore.graphId,
1769
1769
  kind,
1770
1770
  edgeIds
@@ -1864,10 +1864,10 @@ async function readActiveSchemaVersion(backend, graphId) {
1864
1864
  }
1865
1865
  async function computeSchemaComponent(store) {
1866
1866
  const version = await readActiveSchemaVersion(
1867
- chunkBWQA3POT_cjs.storeBackend(store),
1867
+ chunk6B3LQUYG_cjs.storeBackend(store),
1868
1868
  store.graphId
1869
1869
  );
1870
- return chunkFXGZT3WO_cjs.computeSchemaHash(chunkFXGZT3WO_cjs.serializeSchema(store.graph, version));
1870
+ return chunkBX42F7IJ_cjs.computeSchemaHash(chunkBX42F7IJ_cjs.serializeSchema(store.graph, version));
1871
1871
  }
1872
1872
  function byDigestEntry(left, right) {
1873
1873
  const byKind = chunkNYWU6CBZ_cjs.compareStrings(left.kind, right.kind);
@@ -1926,15 +1926,15 @@ async function computeBaseVersion(store) {
1926
1926
  computeSchemaComponent(store),
1927
1927
  store.revisionOriginNow(),
1928
1928
  store.revisionNow(),
1929
- readActiveSchemaVersion(chunkBWQA3POT_cjs.storeBackend(store), store.graphId)
1929
+ readActiveSchemaVersion(chunk6B3LQUYG_cjs.storeBackend(store), store.graphId)
1930
1930
  ]);
1931
1931
  return asBaseVersion(
1932
1932
  `${schemaComponent2}${SCHEMA_VERSION_TAG}${activeVersion}${TOKEN_SEPARATOR}${revisionComponent(origin, revision)}`
1933
1933
  );
1934
1934
  }
1935
- const lineage = chunkBWQA3POT_cjs.resolveLineage(store);
1935
+ const lineage = chunk6B3LQUYG_cjs.resolveLineage(store);
1936
1936
  if (lineage !== void 0) {
1937
- const backend = chunkBWQA3POT_cjs.storeBackend(store);
1937
+ const backend = chunk6B3LQUYG_cjs.storeBackend(store);
1938
1938
  const [schemaComponent2, activeVersion, origin, revision] = await Promise.all([
1939
1939
  computeSchemaComponent(store),
1940
1940
  readActiveSchemaVersion(backend, store.graphId),
@@ -1944,9 +1944,9 @@ async function computeBaseVersion(store) {
1944
1944
  // tracking) still gets a durable per-graph namespace to distinguish
1945
1945
  // it from an unrelated database whose engine coincidentally reports
1946
1946
  // the same revision. See `engineComponent`'s own doc.
1947
- chunkBWQA3POT_cjs.ensureRevisionOrigin(
1947
+ chunk6B3LQUYG_cjs.ensureRevisionOrigin(
1948
1948
  backend,
1949
- chunkDHRLOQLQ_cjs.recordedRevisionOriginsVerdict(backend),
1949
+ chunk7LQTDGV5_cjs.recordedRevisionOriginsVerdict(backend),
1950
1950
  store.revisionSchema,
1951
1951
  store.graphId
1952
1952
  ),
@@ -1965,9 +1965,9 @@ async function computeBaseVersion(store) {
1965
1965
  );
1966
1966
  }
1967
1967
  async function computeStoreContentComponent(store) {
1968
- const identityAssertions = await chunkBWQA3POT_cjs.storeRuntime(store).readCurrentIdentityAssertions("state");
1968
+ const identityAssertions = await chunk6B3LQUYG_cjs.storeRuntime(store).readCurrentIdentityAssertions("state");
1969
1969
  return computeContentComponent(
1970
- chunkBWQA3POT_cjs.storeBackend(store),
1970
+ chunk6B3LQUYG_cjs.storeBackend(store),
1971
1971
  store.graphId,
1972
1972
  store.graph,
1973
1973
  identityAssertions
@@ -2021,7 +2021,7 @@ function revisionOriginOf(version) {
2021
2021
  }
2022
2022
  async function revisionOriginMatch(backend, schema, graphId, expectedVersion) {
2023
2023
  const expectedOrigin = revisionOriginOf(expectedVersion) ?? engineAnchorOriginOf(expectedVersion);
2024
- const liveOrigin = await chunkBWQA3POT_cjs.readRevisionOrigin(backend, schema, graphId);
2024
+ const liveOrigin = await chunk6B3LQUYG_cjs.readRevisionOrigin(backend, schema, graphId);
2025
2025
  return { expectedOrigin, liveOrigin, matches: liveOrigin === expectedOrigin };
2026
2026
  }
2027
2027
  function revisionPartsOf(version) {
@@ -2048,9 +2048,9 @@ function schemaActiveVersionOf(version) {
2048
2048
  async function lineageDeltaSinceAnchor(baseStore, base) {
2049
2049
  const revisionAnchor = revisionAnchorOf(base);
2050
2050
  if (revisionAnchor !== void 0) {
2051
- if (!chunkBWQA3POT_cjs.storeCaptureEnabled(baseStore)) return void 0;
2051
+ if (!chunk6B3LQUYG_cjs.storeCaptureEnabled(baseStore)) return void 0;
2052
2052
  const originMatch = await revisionOriginMatch(
2053
- chunkBWQA3POT_cjs.storeBackend(baseStore),
2053
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
2054
2054
  baseStore.revisionSchema,
2055
2055
  baseStore.graphId,
2056
2056
  base
@@ -2058,25 +2058,25 @@ async function lineageDeltaSinceAnchor(baseStore, base) {
2058
2058
  if (!originMatch.matches || originMatch.liveOrigin === void 0) {
2059
2059
  return void 0;
2060
2060
  }
2061
- return chunkBWQA3POT_cjs.recordedRelationsLineage(baseStore).changesSince(
2062
- chunkBWQA3POT_cjs.storeBackend(baseStore),
2063
- chunkBWQA3POT_cjs.encodeRecordedLineageRevision(originMatch.liveOrigin, revisionAnchor),
2061
+ return chunk6B3LQUYG_cjs.recordedRelationsLineage(baseStore).changesSince(
2062
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
2063
+ chunk6B3LQUYG_cjs.encodeRecordedLineageRevision(originMatch.liveOrigin, revisionAnchor),
2064
2064
  baseStore.graphId
2065
2065
  );
2066
2066
  }
2067
2067
  const engineAnchor = engineAnchorOf(base);
2068
2068
  if (engineAnchor === void 0) return void 0;
2069
2069
  const engineOriginMatch = await revisionOriginMatch(
2070
- chunkBWQA3POT_cjs.storeBackend(baseStore),
2070
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
2071
2071
  baseStore.revisionSchema,
2072
2072
  baseStore.graphId,
2073
2073
  base
2074
2074
  );
2075
2075
  if (!engineOriginMatch.matches) return void 0;
2076
- const lineage = chunkBWQA3POT_cjs.resolveLineage(baseStore);
2076
+ const lineage = chunk6B3LQUYG_cjs.resolveLineage(baseStore);
2077
2077
  if (lineage === void 0) return void 0;
2078
2078
  return lineage.changesSince(
2079
- chunkBWQA3POT_cjs.storeBackend(baseStore),
2079
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
2080
2080
  engineAnchor,
2081
2081
  baseStore.graphId
2082
2082
  );
@@ -2101,7 +2101,7 @@ function cloneWorkingCopyWithGraphStrategy(makeBackend, graphForClone) {
2101
2101
  create: async (baseStore) => {
2102
2102
  const backend = await makeBackend();
2103
2103
  try {
2104
- const [freshStore] = await chunk3RSFLZ7A_cjs.createStoreWithSchema(
2104
+ const [freshStore] = await chunkY4X6ODVY_cjs.createStoreWithSchema(
2105
2105
  graphForClone(baseStore),
2106
2106
  backend,
2107
2107
  {
@@ -2136,16 +2136,16 @@ function cloneWorkingCopyWithGraphStrategy(makeBackend, graphForClone) {
2136
2136
  validateReferences: true,
2137
2137
  batchSize: CLONE_IMPORT_BATCH_SIZE
2138
2138
  };
2139
- const result = chunkOC5ROP7V_cjs.snapshotExportContention(
2140
- chunkBWQA3POT_cjs.storeBackend(baseStore),
2141
- chunkBWQA3POT_cjs.storeBackend(freshStore)
2142
- ) === void 0 ? await chunkXSLQYGNR_cjs.importGraphStream(
2139
+ const result = chunk6JRVV2SS_cjs.snapshotExportContention(
2140
+ chunk6B3LQUYG_cjs.storeBackend(baseStore),
2141
+ chunk6B3LQUYG_cjs.storeBackend(freshStore)
2142
+ ) === void 0 ? await chunkT3VU3YRQ_cjs.importGraphStream(
2143
2143
  freshStore,
2144
- chunkXSLQYGNR_cjs.exportGraphStream(baseStore, exportOptions),
2144
+ chunkT3VU3YRQ_cjs.exportGraphStream(baseStore, exportOptions),
2145
2145
  importOptions
2146
- ) : await chunkXSLQYGNR_cjs.importGraph(
2146
+ ) : await chunkT3VU3YRQ_cjs.importGraph(
2147
2147
  freshStore,
2148
- await chunkXSLQYGNR_cjs.exportGraph(baseStore, exportOptions),
2148
+ await chunkT3VU3YRQ_cjs.exportGraph(baseStore, exportOptions),
2149
2149
  importOptions
2150
2150
  );
2151
2151
  if (!result.success) {
@@ -2181,15 +2181,15 @@ function resolvedTableNamesEqual(a, b) {
2181
2181
  return [...keys].every((key) => a[key] === b[key]);
2182
2182
  }
2183
2183
  function forkAliasesBase(connectedBackend, baseStore) {
2184
- const baseBackend = chunkBWQA3POT_cjs.storeBackend(baseStore);
2185
- return connectedBackend === baseBackend || chunkOC5ROP7V_cjs.isBackendDerivedFrom(connectedBackend, baseBackend) || chunkOC5ROP7V_cjs.isBackendDerivedFrom(baseBackend, connectedBackend) || chunkOC5ROP7V_cjs.sharesSerializedTransactionResource(connectedBackend, baseBackend);
2184
+ const baseBackend = chunk6B3LQUYG_cjs.storeBackend(baseStore);
2185
+ return connectedBackend === baseBackend || chunk6JRVV2SS_cjs.isBackendDerivedFrom(connectedBackend, baseBackend) || chunk6JRVV2SS_cjs.isBackendDerivedFrom(baseBackend, connectedBackend) || chunk6JRVV2SS_cjs.sharesSerializedTransactionResource(connectedBackend, baseBackend);
2186
2186
  }
2187
2187
  function coalescedWorkingCopyClose(store) {
2188
2188
  let closed = false;
2189
2189
  let inFlight;
2190
2190
  return async () => {
2191
2191
  if (closed) return;
2192
- inFlight ??= chunkBWQA3POT_cjs.storeBackend(store).close().then(() => {
2192
+ inFlight ??= chunk6B3LQUYG_cjs.storeBackend(store).close().then(() => {
2193
2193
  closed = true;
2194
2194
  }).finally(() => {
2195
2195
  inFlight = void 0;
@@ -2220,13 +2220,13 @@ function forkedWorkingCopyStrategy(options) {
2220
2220
  "Fork backend aliases its base: connect() returned the base store's own backend instead of an independent connection to the fork \u2014 directly (the same backend object), through backend derivation, or through a connection the two backends share. Writing to this working copy would mutate the base, and closing it would close the base's own backend."
2221
2221
  );
2222
2222
  }
2223
- const backend = chunkOC5ROP7V_cjs.wrapWithManagedClose(connectedBackend, async () => {
2223
+ const backend = chunk6JRVV2SS_cjs.wrapWithManagedClose(connectedBackend, async () => {
2224
2224
  await fork.dispose?.();
2225
2225
  });
2226
2226
  try {
2227
2227
  const forkOptions = forkStoreOptions(baseStore);
2228
2228
  const inheritedTables = baseStore.revisionSchema.tables;
2229
- const connectedTables = chunkOC5ROP7V_cjs.createSqlSchema(
2229
+ const connectedTables = chunk6JRVV2SS_cjs.createSqlSchema(
2230
2230
  connectedBackend.tableNames
2231
2231
  ).tables;
2232
2232
  if (!resolvedTableNamesEqual(inheritedTables, connectedTables)) {
@@ -2235,7 +2235,7 @@ function forkedWorkingCopyStrategy(options) {
2235
2235
  { details: { inheritedTables, connectedTables } }
2236
2236
  );
2237
2237
  }
2238
- const forkStore = chunk3RSFLZ7A_cjs.createStore(baseStore.graph, backend, forkOptions);
2238
+ const forkStore = chunkY4X6ODVY_cjs.createStore(baseStore.graph, backend, forkOptions);
2239
2239
  const forkVersion = await computeBaseVersion(forkStore);
2240
2240
  if (forkVersion !== base) {
2241
2241
  throw new BranchError(
@@ -2283,7 +2283,7 @@ function graphWithoutNodeUniqueness(graph) {
2283
2283
  async function branch(baseStore, makeBackend, options, strategy) {
2284
2284
  try {
2285
2285
  const base = await computeBaseVersion(baseStore);
2286
- const id = options?.id ?? asBranchId(chunkBWQA3POT_cjs.generateId());
2286
+ const id = options?.id ?? asBranchId(chunk6B3LQUYG_cjs.generateId());
2287
2287
  const workingCopyStrategy = strategy ?? cloneWorkingCopyStrategy(makeBackend);
2288
2288
  const store = await workingCopyStrategy.create(baseStore, base);
2289
2289
  const { schemaAnchor, forkRevision } = await captureBranchForkState(store);
@@ -2305,14 +2305,14 @@ async function branch(baseStore, makeBackend, options, strategy) {
2305
2305
  }
2306
2306
  async function captureBranchForkState(store) {
2307
2307
  try {
2308
- const schemaRow = await chunkBWQA3POT_cjs.storeBackend(store).getActiveSchema(store.graphId);
2308
+ const schemaRow = await chunk6B3LQUYG_cjs.storeBackend(store).getActiveSchema(store.graphId);
2309
2309
  const schemaAnchor = schemaRow === void 0 ? void 0 : { version: schemaRow.version, hash: schemaRow.schema_hash };
2310
- const lineage = chunkBWQA3POT_cjs.resolveLineage(store);
2311
- const forkRevision = lineage === void 0 ? void 0 : await lineage.revision(chunkBWQA3POT_cjs.storeBackend(store));
2310
+ const lineage = chunk6B3LQUYG_cjs.resolveLineage(store);
2311
+ const forkRevision = lineage === void 0 ? void 0 : await lineage.revision(chunk6B3LQUYG_cjs.storeBackend(store));
2312
2312
  return { schemaAnchor, forkRevision };
2313
2313
  } catch (error) {
2314
2314
  try {
2315
- await chunkBWQA3POT_cjs.storeBackend(store).close();
2315
+ await chunk6B3LQUYG_cjs.storeBackend(store).close();
2316
2316
  } catch {
2317
2317
  }
2318
2318
  throw error;
@@ -2321,7 +2321,7 @@ async function captureBranchForkState(store) {
2321
2321
 
2322
2322
  // src/graph-merge/evolution-target.ts
2323
2323
  function evolutionPlanningTarget(store, plan) {
2324
- const planningTarget = chunkBWQA3POT_cjs.storeRuntime(store).evolutionPlanningTarget;
2324
+ const planningTarget = chunk6B3LQUYG_cjs.storeRuntime(store).evolutionPlanningTarget;
2325
2325
  if (planningTarget === void 0) {
2326
2326
  throw new MergePlanCapabilityError(
2327
2327
  "This Store cannot construct a resulting-schema merge planning view.",
@@ -2380,7 +2380,7 @@ async function ingestionBranch(baseStore, makeBackend, options) {
2380
2380
  close: coalescedWorkingCopyClose(store)
2381
2381
  });
2382
2382
  PRIVATE_BRANCHES.set(handle, privateBranch);
2383
- chunkXSLQYGNR_cjs.registerIngestionImportTarget(handle, store);
2383
+ chunkT3VU3YRQ_cjs.registerIngestionImportTarget(handle, store);
2384
2384
  return chunkHQU2SE74_cjs.ok(handle);
2385
2385
  } catch (error) {
2386
2386
  return chunkHQU2SE74_cjs.err(
@@ -2403,21 +2403,21 @@ function unwrapMergeBranches(inputs) {
2403
2403
 
2404
2404
  // src/graph-merge/adopted-transaction.ts
2405
2405
  async function assertMergeTransactionPristine(target, txBackend) {
2406
- if (chunkBWQA3POT_cjs.hasPendingRecordedGraphWrites(txBackend, target.graphId) || chunkBWQA3POT_cjs.hasPendingWriteTransactionRevision(txBackend)) {
2406
+ if (chunk6B3LQUYG_cjs.hasPendingRecordedGraphWrites(txBackend, target.graphId) || chunk6B3LQUYG_cjs.hasPendingWriteTransactionRevision(txBackend)) {
2407
2407
  throw new MergePlanCapabilityError(
2408
2408
  "Apply the merge plan before writing to its target graph in this transaction.",
2409
2409
  { details: { capability: "mergeTransactionPristine" } }
2410
2410
  );
2411
2411
  }
2412
- if (chunkOC5ROP7V_cjs.resolveWriteFencePlan(txBackend).kind !== "engine-serialized") return;
2413
- const statements = chunkDHRLOQLQ_cjs.statementExecutionVerdict(chunkBWQA3POT_cjs.storeBackend(target));
2412
+ if (chunk6JRVV2SS_cjs.resolveWriteFencePlan(txBackend).kind !== "engine-serialized") return;
2413
+ const statements = chunk7LQTDGV5_cjs.statementExecutionVerdict(chunk6B3LQUYG_cjs.storeBackend(target));
2414
2414
  if (!statements.supported) {
2415
2415
  throw new MergePlanCapabilityError(
2416
2416
  "Adopted merge application requires transaction-scoped statement execution to acquire the engine writer slot.",
2417
2417
  { details: { capability: "mergeTransactionWriterSlot" } }
2418
2418
  );
2419
2419
  }
2420
- await chunkBWQA3POT_cjs.ensureEngineSerializedWriterSlot(
2420
+ await chunk6B3LQUYG_cjs.ensureEngineSerializedWriterSlot(
2421
2421
  txBackend,
2422
2422
  target.revisionSchema,
2423
2423
  statements
@@ -2426,8 +2426,8 @@ async function assertMergeTransactionPristine(target, txBackend) {
2426
2426
 
2427
2427
  // src/graph-merge/apply-callbacks.ts
2428
2428
  var NODE_READ_NAMES = [
2429
- ...chunk3RSFLZ7A_cjs.NODE_TEMPORAL_READ_NAMES,
2430
- ...chunk3RSFLZ7A_cjs.CURRENT_ONLY_READ_NAMES
2429
+ ...chunkY4X6ODVY_cjs.NODE_TEMPORAL_READ_NAMES,
2430
+ ...chunkY4X6ODVY_cjs.CURRENT_ONLY_READ_NAMES
2431
2431
  ];
2432
2432
  function pickReadMethods(source, names) {
2433
2433
  return Object.fromEntries(names.map((name) => [name, source[name]]));
@@ -2445,12 +2445,12 @@ function mergePlanReadContext(tx, graph) {
2445
2445
  kind,
2446
2446
  pickReadMethods(
2447
2447
  chunkBXHAPCQG_cjs.requireDefined(tx.edges[kind]),
2448
- chunk3RSFLZ7A_cjs.EDGE_TEMPORAL_READ_NAMES
2448
+ chunkY4X6ODVY_cjs.EDGE_TEMPORAL_READ_NAMES
2449
2449
  )
2450
2450
  ])
2451
2451
  ),
2452
2452
  ..."identity" in tx ? {
2453
- identity: pickReadMethods(tx.identity, chunk3RSFLZ7A_cjs.IDENTITY_READ_NAMES)
2453
+ identity: pickReadMethods(tx.identity, chunkY4X6ODVY_cjs.IDENTITY_READ_NAMES)
2454
2454
  } : {}
2455
2455
  };
2456
2456
  }
@@ -5148,7 +5148,7 @@ var mergePlanArtifactV1Schema = mergePlanArtifactV1BaseSchema.superRefine(
5148
5148
  // src/graph-merge/plan-canonical.ts
5149
5149
  function canonicalMergePlanJson(artifact) {
5150
5150
  const digestless = "digest" in artifact ? omitDigest(artifact) : artifact;
5151
- return JSON.stringify(digestless, chunkJRWKRBI5_cjs.sortedReplacer);
5151
+ return JSON.stringify(digestless, chunk5JOCIMQ3_cjs.sortedReplacer);
5152
5152
  }
5153
5153
  async function computeMergePlanDigest(artifact) {
5154
5154
  return chunkZY4GXIVN_cjs.sha256Hex(canonicalMergePlanJson(artifact), 32);
@@ -5162,7 +5162,7 @@ async function finalizeMergePlanArtifact(artifact) {
5162
5162
  }
5163
5163
  };
5164
5164
  const canonical = JSON.parse(
5165
- JSON.stringify(finalized, chunkJRWKRBI5_cjs.sortedReplacer)
5165
+ JSON.stringify(finalized, chunk5JOCIMQ3_cjs.sortedReplacer)
5166
5166
  );
5167
5167
  return canonical;
5168
5168
  }
@@ -5268,7 +5268,7 @@ function buildProvenanceGraph(targetGraphId) {
5268
5268
  });
5269
5269
  }
5270
5270
  async function openProvenanceStore(...args) {
5271
- const [backend, targetGraphId] = args.length === 1 ? [chunkBWQA3POT_cjs.storeBackend(args[0]), args[0].graphId] : args;
5271
+ const [backend, targetGraphId] = args.length === 1 ? [chunk6B3LQUYG_cjs.storeBackend(args[0]), args[0].graphId] : args;
5272
5272
  const graph = buildOwnedProvenanceGraph(targetGraphId);
5273
5273
  const preflight = await inspectSidecarGraphId(backend, graph, targetGraphId);
5274
5274
  if (preflight.state === "refuse") {
@@ -5280,7 +5280,7 @@ async function openProvenanceStore(...args) {
5280
5280
  throw provenanceGraphIdCollision(graph.id, targetGraphId, claim.reason);
5281
5281
  }
5282
5282
  }
5283
- const [store] = await chunk3RSFLZ7A_cjs.createStoreWithSchema(graph, backend);
5283
+ const [store] = await chunkY4X6ODVY_cjs.createStoreWithSchema(graph, backend);
5284
5284
  return store;
5285
5285
  }
5286
5286
  async function claimSidecarOwnership(backend, graph, targetGraphId) {
@@ -5306,8 +5306,8 @@ async function claimSidecarOwnership(backend, graph, targetGraphId) {
5306
5306
  });
5307
5307
  }
5308
5308
  async function drainUnfencedRowWriters(tx) {
5309
- const plan = chunkOC5ROP7V_cjs.resolveWriteFencePlan(tx);
5310
- const fence = chunkOC5ROP7V_cjs.requireWriteFence(
5309
+ const plan = chunk6JRVV2SS_cjs.resolveWriteFencePlan(tx);
5310
+ const fence = chunk6JRVV2SS_cjs.requireWriteFence(
5311
5311
  plan,
5312
5312
  "graph-merge provenance fence",
5313
5313
  "drain"
@@ -5318,10 +5318,10 @@ async function drainUnfencedRowWriters(tx) {
5318
5318
  if (fence.drain !== "table-lock") {
5319
5319
  return;
5320
5320
  }
5321
- const schema = chunkOC5ROP7V_cjs.createSqlSchema(tx.tableNames);
5321
+ const schema = chunk6JRVV2SS_cjs.createSqlSchema(tx.tableNames);
5322
5322
  await tx.executeStatement(
5323
5323
  chunkXPSPDFKO_cjs.asCompiledStatementSql(
5324
- chunkOC5ROP7V_cjs.requireFenceLockTables(fence, "drainUnfencedRowWriters")(
5324
+ chunk6JRVV2SS_cjs.requireFenceLockTables(fence, "drainUnfencedRowWriters")(
5325
5325
  [schema.tables.nodes, schema.tables.edges],
5326
5326
  "share-row-exclusive"
5327
5327
  )
@@ -5350,14 +5350,14 @@ async function inspectSidecarGraphId(port, graph, targetGraphId) {
5350
5350
  if (activeSchema === void 0) {
5351
5351
  return { state: "refuse", reason: "application-graph" };
5352
5352
  }
5353
- const ownedHash = await chunkFXGZT3WO_cjs.computeSchemaHash(
5354
- chunkFXGZT3WO_cjs.serializeSchema(graph, activeSchema.version)
5353
+ const ownedHash = await chunkBX42F7IJ_cjs.computeSchemaHash(
5354
+ chunkBX42F7IJ_cjs.serializeSchema(graph, activeSchema.version)
5355
5355
  );
5356
5356
  if (activeSchema.schema_hash === ownedHash) {
5357
5357
  return { state: "refuse", reason: "unowned-exact-schema-graph" };
5358
5358
  }
5359
- const legacyHash = await chunkFXGZT3WO_cjs.computeSchemaHash(
5360
- chunkFXGZT3WO_cjs.serializeSchema(buildProvenanceGraph(targetGraphId), activeSchema.version)
5359
+ const legacyHash = await chunkBX42F7IJ_cjs.computeSchemaHash(
5360
+ chunkBX42F7IJ_cjs.serializeSchema(buildProvenanceGraph(targetGraphId), activeSchema.version)
5361
5361
  );
5362
5362
  if (activeSchema.schema_hash !== legacyHash) {
5363
5363
  return { state: "refuse", reason: "application-graph" };
@@ -5461,7 +5461,7 @@ async function* readRowsOfKind(port, graphId, kind) {
5461
5461
  }
5462
5462
  }
5463
5463
  async function hasRowsUnderGraphId(port, graphId, scope) {
5464
- const schema = chunkOC5ROP7V_cjs.createSqlSchema(port.tableNames);
5464
+ const schema = chunk6JRVV2SS_cjs.createSqlSchema(port.tableNames);
5465
5465
  const kindFilter = scope === "any" ? chunkXPSPDFKO_cjs.sql.empty() : chunkXPSPDFKO_cjs.sql` AND kind <> ${PROVENANCE_KIND}`;
5466
5466
  if (await hasRowsInTable(port, schema.tables.nodes, graphId, kindFilter)) {
5467
5467
  return true;
@@ -6056,12 +6056,12 @@ function dedupeEntityKeys(keys) {
6056
6056
  }
6057
6057
  async function branchPruneTo(baseStore, branch2) {
6058
6058
  if (branch2.forkRevision === void 0) return void 0;
6059
- const forkLineage = chunkBWQA3POT_cjs.resolveLineage(branch2.store);
6059
+ const forkLineage = chunk6B3LQUYG_cjs.resolveLineage(branch2.store);
6060
6060
  if (forkLineage === void 0) return void 0;
6061
6061
  const forkRevision = branch2.forkRevision;
6062
6062
  const forkDelta = await safeLineageDelta(
6063
6063
  () => forkLineage.changesSince(
6064
- chunkBWQA3POT_cjs.storeBackend(branch2.store),
6064
+ chunk6B3LQUYG_cjs.storeBackend(branch2.store),
6065
6065
  forkRevision,
6066
6066
  branch2.store.graphId
6067
6067
  )
@@ -6095,7 +6095,7 @@ async function stageBranches(baseStore, branches, captureTargetStateFor) {
6095
6095
  const windowedEdges = [];
6096
6096
  const newIdentityAssertions = [];
6097
6097
  const retractedIdentityAssertions = [];
6098
- const baseIdentityAssertions = await chunkBWQA3POT_cjs.storeRuntime(baseStore).readCurrentIdentityAssertions("state");
6098
+ const baseIdentityAssertions = await chunk6B3LQUYG_cjs.storeRuntime(baseStore).readCurrentIdentityAssertions("state");
6099
6099
  let targetNodeVersions = /* @__PURE__ */ new Map();
6100
6100
  let targetEdgeSignatures = /* @__PURE__ */ new Map();
6101
6101
  for (const branch2 of branches) {
@@ -6255,7 +6255,7 @@ function reconcileTypes(clusters, closure, mode) {
6255
6255
  // src/graph-merge/write-fence.ts
6256
6256
  async function lockMergeTargetWrite(txBackend, input) {
6257
6257
  try {
6258
- await chunkBWQA3POT_cjs.lockSchemaVersionForStoreWrite(
6258
+ await chunk6B3LQUYG_cjs.lockSchemaVersionForStoreWrite(
6259
6259
  { graphId: input.graphId, schemaVersion: input.schemaVersion },
6260
6260
  txBackend
6261
6261
  );
@@ -6266,9 +6266,9 @@ async function lockMergeTargetWrite(txBackend, input) {
6266
6266
  throw input.staleSchemaError(error);
6267
6267
  }
6268
6268
  if (input.graphLock === "required") {
6269
- const lock = await chunkBWQA3POT_cjs.lockRecordedGraphWrite(txBackend, input.graphId);
6270
- if (input.requireFreshSnapshot && chunkOC5ROP7V_cjs.resolveWriteFencePlan(txBackend).kind !== "engine-serialized") {
6271
- const isolation = lock.coordination === void 0 ? void 0 : chunkOC5ROP7V_cjs.graphCommandCoordinationIsolation(
6269
+ const lock = await chunk6B3LQUYG_cjs.lockRecordedGraphWrite(txBackend, input.graphId);
6270
+ if (input.requireFreshSnapshot && chunk6JRVV2SS_cjs.resolveWriteFencePlan(txBackend).kind !== "engine-serialized") {
6271
+ const isolation = lock.coordination === void 0 ? void 0 : chunk6JRVV2SS_cjs.graphCommandCoordinationIsolation(
6272
6272
  txBackend.commands,
6273
6273
  input.graphId,
6274
6274
  lock.coordination
@@ -7229,7 +7229,7 @@ async function applyNodeRows(target, txBackend, nodesApi, deletions, upserts) {
7229
7229
  afterImages.set(mergeKey(kind, item.id), props);
7230
7230
  }
7231
7231
  }
7232
- return chunkBWQA3POT_cjs.storeRuntime(target).applyResolvedNodeUniqueness(
7232
+ return chunk6B3LQUYG_cjs.storeRuntime(target).applyResolvedNodeUniqueness(
7233
7233
  txBackend,
7234
7234
  {
7235
7235
  upserts: upserts.map((upsert) => ({
@@ -7277,7 +7277,7 @@ async function applyEdgeRows(edgesApi, deletions, upserts) {
7277
7277
  }
7278
7278
  async function applyIdentityRows(target, txBackend, assertions, retractions, assertConsistent) {
7279
7279
  try {
7280
- const applied = await chunkBWQA3POT_cjs.storeRuntime(target).applyIdentityMergeAtTarget(
7280
+ const applied = await chunk6B3LQUYG_cjs.storeRuntime(target).applyIdentityMergeAtTarget(
7281
7281
  txBackend,
7282
7282
  retractions,
7283
7283
  assertions
@@ -7376,30 +7376,30 @@ async function applyInternalMergePlan(plan, nodesApi, edgesApi, target, txBacken
7376
7376
  }
7377
7377
  var MERGE_COMMIT_ATTEMPTS = 3;
7378
7378
  async function commitPlan(target, plan, expectedBaseVersion) {
7379
- if (!chunkBWQA3POT_cjs.storeBackend(target).capabilities.execution.interactiveTransactions) {
7379
+ if (!chunk6B3LQUYG_cjs.storeBackend(target).capabilities.execution.interactiveTransactions) {
7380
7380
  throw new MergeError(
7381
7381
  "merge() requires a transaction-capable target backend. The merged plan (canonical upserts, soft-deletes, edge upserts) must commit atomically; a non-transactional fallback would leave a partially-merged graph on a mid-commit failure. (mergeIncremental() enforces the same requirement.)",
7382
7382
  { details: { capability: "execution.interactiveTransactions" } }
7383
7383
  );
7384
7384
  }
7385
7385
  return runMergeCommit(
7386
- () => chunkJRWKRBI5_cjs.runRetriedUnit(
7386
+ () => chunk5JOCIMQ3_cjs.runRetriedUnit(
7387
7387
  {
7388
7388
  operation: "commitPlan",
7389
7389
  attempts: MERGE_COMMIT_ATTEMPTS,
7390
- target: chunkBWQA3POT_cjs.storeBackend(target)
7390
+ target: chunk6B3LQUYG_cjs.storeBackend(target)
7391
7391
  },
7392
7392
  () => target.transaction(async (tx) => {
7393
7393
  if (expectedBaseVersion !== void 0) {
7394
7394
  await assertTargetUnchanged(
7395
- chunkBWQA3POT_cjs.transactionBackend(tx),
7395
+ chunk6B3LQUYG_cjs.transactionBackend(tx),
7396
7396
  target,
7397
7397
  expectedBaseVersion
7398
7398
  );
7399
7399
  }
7400
7400
  await assertPlannedIdentityIdsFresh(
7401
7401
  target,
7402
- chunkBWQA3POT_cjs.transactionBackend(tx),
7402
+ chunk6B3LQUYG_cjs.transactionBackend(tx),
7403
7403
  plan
7404
7404
  );
7405
7405
  return applyInternalMergePlan(
@@ -7407,7 +7407,7 @@ async function commitPlan(target, plan, expectedBaseVersion) {
7407
7407
  tx.nodes,
7408
7408
  tx.edges,
7409
7409
  target,
7410
- chunkBWQA3POT_cjs.transactionBackend(tx)
7410
+ chunk6B3LQUYG_cjs.transactionBackend(tx)
7411
7411
  );
7412
7412
  }, mergeCommitTransactionOptions(target))
7413
7413
  )
@@ -7424,7 +7424,7 @@ var MERGE_COMMIT_TX_OPTIONS = {
7424
7424
  isolationLevel: "serializable"
7425
7425
  };
7426
7426
  function mergeCommitTransactionOptions(target) {
7427
- return chunkBWQA3POT_cjs.storeCaptureEnabled(target) ? void 0 : MERGE_COMMIT_TX_OPTIONS;
7427
+ return chunk6B3LQUYG_cjs.storeCaptureEnabled(target) ? void 0 : MERGE_COMMIT_TX_OPTIONS;
7428
7428
  }
7429
7429
  async function engineAnchorMismatch(lineage, session, graphId, expectedRevision) {
7430
7430
  const liveRevision = await lineage.revision(session);
@@ -7473,7 +7473,7 @@ async function assertTargetUnchanged(txBackend, target, expectedBaseVersion) {
7473
7473
  }
7474
7474
  );
7475
7475
  }
7476
- const liveRevision = await chunkBWQA3POT_cjs.readRecordedClock(
7476
+ const liveRevision = await chunk6B3LQUYG_cjs.readRecordedClock(
7477
7477
  txBackend,
7478
7478
  target.revisionSchema,
7479
7479
  target.graphId
@@ -7549,7 +7549,7 @@ async function assertTargetUnchanged(txBackend, target, expectedBaseVersion) {
7549
7549
  txBackend,
7550
7550
  target.graphId,
7551
7551
  target.graph,
7552
- await chunkBWQA3POT_cjs.storeRuntime(target).identityAssertionsAtTarget(txBackend, "state")
7552
+ await chunk6B3LQUYG_cjs.storeRuntime(target).identityAssertionsAtTarget(txBackend, "state")
7553
7553
  );
7554
7554
  const expectedContent = contentComponentOf(expectedBaseVersion);
7555
7555
  if (liveContent !== expectedContent) {
@@ -7596,11 +7596,11 @@ async function toleratedByEngineAnchor(store, expectedVersion, liveVersion) {
7596
7596
  liveVersion
7597
7597
  );
7598
7598
  if (expectedRevision === void 0) return false;
7599
- const lineage = chunkBWQA3POT_cjs.resolveLineage(store);
7599
+ const lineage = chunk6B3LQUYG_cjs.resolveLineage(store);
7600
7600
  if (lineage === void 0) return false;
7601
7601
  const mismatch = await engineAnchorMismatch(
7602
7602
  lineage,
7603
- chunkBWQA3POT_cjs.storeBackend(store),
7603
+ chunk6B3LQUYG_cjs.storeBackend(store),
7604
7604
  store.graphId,
7605
7605
  expectedRevision
7606
7606
  );
@@ -7666,7 +7666,7 @@ async function tryOpenProvenanceStore(target) {
7666
7666
  }
7667
7667
  }
7668
7668
  function assertPublicPlanCapability(target) {
7669
- if (!chunkBWQA3POT_cjs.storeBackend(target).capabilities.execution.interactiveTransactions) {
7669
+ if (!chunk6B3LQUYG_cjs.storeBackend(target).capabilities.execution.interactiveTransactions) {
7670
7670
  throw new MergePlanCapabilityError(
7671
7671
  "Public merge plans require a transaction-capable target backend.",
7672
7672
  { details: { capability: "execution.interactiveTransactions" } }
@@ -7685,7 +7685,7 @@ function assertPublicPlanCapability(target) {
7685
7685
  async function captureMergePlanTargetFence(target) {
7686
7686
  assertPublicPlanCapability(target);
7687
7687
  const [activeSchema, schemaHash, origin, revision] = await Promise.all([
7688
- chunkBWQA3POT_cjs.storeBackend(target).getActiveSchema(target.graphId),
7688
+ chunk6B3LQUYG_cjs.storeBackend(target).getActiveSchema(target.graphId),
7689
7689
  computeSchemaComponent(target),
7690
7690
  target.revisionOriginNow(),
7691
7691
  target.revisionNow()
@@ -7864,7 +7864,7 @@ async function resolveMerge(store, target, branches, options, useBaseSources, in
7864
7864
  }
7865
7865
  }
7866
7866
  for (const branch2 of branches) {
7867
- const branchSchemaRow = await chunkBWQA3POT_cjs.storeBackend(branch2.store).getActiveSchema(
7867
+ const branchSchemaRow = await chunk6B3LQUYG_cjs.storeBackend(branch2.store).getActiveSchema(
7868
7868
  branch2.store.graphId
7869
7869
  );
7870
7870
  let drifted;
@@ -7872,7 +7872,7 @@ async function resolveMerge(store, target, branches, options, useBaseSources, in
7872
7872
  const anchor = branch2.schemaAnchor;
7873
7873
  drifted = anchor === void 0 ? branchSchemaRow !== void 0 : branchSchemaRow?.version !== anchor.version || branchSchemaRow.schema_hash !== anchor.hash;
7874
7874
  } else {
7875
- const sourceSchemaRow = await chunkBWQA3POT_cjs.storeBackend(store).getActiveSchema(
7875
+ const sourceSchemaRow = await chunk6B3LQUYG_cjs.storeBackend(store).getActiveSchema(
7876
7876
  store.graphId
7877
7877
  );
7878
7878
  drifted = branchSchemaRow?.schema_hash !== sourceSchemaRow?.schema_hash;
@@ -7917,7 +7917,7 @@ async function resolveMerge(store, target, branches, options, useBaseSources, in
7917
7917
  options.embedder
7918
7918
  );
7919
7919
  const ctx = {
7920
- backend: chunkBWQA3POT_cjs.storeBackend(store),
7920
+ backend: chunk6B3LQUYG_cjs.storeBackend(store),
7921
7921
  ...embeddings === void 0 ? {} : { embeddings }
7922
7922
  };
7923
7923
  const candidates = await generateAllCandidates(
@@ -7945,7 +7945,7 @@ async function resolveMerge(store, target, branches, options, useBaseSources, in
7945
7945
  ])
7946
7946
  ])
7947
7947
  ];
7948
- const targetPeers = identityProbeIds === void 0 ? [] : await chunkBWQA3POT_cjs.storeRuntime(target).liveNodesSharingIds(identityProbeIds);
7948
+ const targetPeers = identityProbeIds === void 0 ? [] : await chunk6B3LQUYG_cjs.storeRuntime(target).liveNodesSharingIds(identityProbeIds);
7949
7949
  const stagedIdentityIds = [
7950
7950
  .../* @__PURE__ */ new Set([
7951
7951
  ...staging.newIdentityAssertions.map((staged) => staged.assertion.id),
@@ -7954,7 +7954,7 @@ async function resolveMerge(store, target, branches, options, useBaseSources, in
7954
7954
  )
7955
7955
  ])
7956
7956
  ];
7957
- const storedIdentityRowsById = stagedIdentityIds.length === 0 || target.graph.identity === void 0 ? NO_STORED_ASSERTIONS : await chunkBWQA3POT_cjs.storeRuntime(target).identityAssertionRowsByIds(
7957
+ const storedIdentityRowsById = stagedIdentityIds.length === 0 || target.graph.identity === void 0 ? NO_STORED_ASSERTIONS : await chunk6B3LQUYG_cjs.storeRuntime(target).identityAssertionRowsByIds(
7958
7958
  stagedIdentityIds
7959
7959
  );
7960
7960
  const identityContext = {
@@ -7979,14 +7979,14 @@ async function resolveMerge(store, target, branches, options, useBaseSources, in
7979
7979
  if (plan.identityAssertions.length > 0) {
7980
7980
  assertOneIdOneTruth(
7981
7981
  plan.identityAssertions,
7982
- await chunkBWQA3POT_cjs.storeRuntime(target).identityAssertionRowsByIds(
7982
+ await chunk6B3LQUYG_cjs.storeRuntime(target).identityAssertionRowsByIds(
7983
7983
  plan.identityAssertions.map((assertion) => assertion.id)
7984
7984
  )
7985
7985
  );
7986
7986
  }
7987
7987
  let identityGuard;
7988
7988
  if (identityProbeIds !== void 0 && incremental !== void 0) {
7989
- const freshPeers = await chunkBWQA3POT_cjs.storeRuntime(target).liveNodesSharingIds(identityProbeIds);
7989
+ const freshPeers = await chunk6B3LQUYG_cjs.storeRuntime(target).liveNodesSharingIds(identityProbeIds);
7990
7990
  const built = await buildIdentityPeerProbe(
7991
7991
  target,
7992
7992
  identityProbeIds,
@@ -8345,7 +8345,7 @@ async function planMergeIncremental(args) {
8345
8345
  computeSchemaComponent(target)
8346
8346
  ]);
8347
8347
  if (forkSchema !== targetSchema) return chunkHQU2SE74_cjs.err(incrementalSchemaError());
8348
- const forkActiveSchema = await chunkBWQA3POT_cjs.storeBackend(forkPoint).getActiveSchema(
8348
+ const forkActiveSchema = await chunk6B3LQUYG_cjs.storeBackend(forkPoint).getActiveSchema(
8349
8349
  forkPoint.graphId
8350
8350
  );
8351
8351
  const targetBranch = {
@@ -8727,7 +8727,7 @@ async function assertMergePlanFenceInsideTransaction(target, txBackend, artifact
8727
8727
  { details: { expected: artifact.target.schema, live: liveSchema } }
8728
8728
  );
8729
8729
  }
8730
- const liveOrigin = await chunkBWQA3POT_cjs.readRevisionOrigin(
8730
+ const liveOrigin = await chunk6B3LQUYG_cjs.readRevisionOrigin(
8731
8731
  txBackend,
8732
8732
  target.revisionSchema,
8733
8733
  target.graphId
@@ -8743,7 +8743,7 @@ async function assertMergePlanFenceInsideTransaction(target, txBackend, artifact
8743
8743
  }
8744
8744
  );
8745
8745
  }
8746
- const liveRevision = await chunkBWQA3POT_cjs.readRecordedClock(
8746
+ const liveRevision = await chunk6B3LQUYG_cjs.readRecordedClock(
8747
8747
  txBackend,
8748
8748
  target.revisionSchema,
8749
8749
  target.graphId
@@ -8819,7 +8819,7 @@ async function applyWireMergeWrites(target, nodesApi, edgesApi, txBackend, artif
8819
8819
  txBackend,
8820
8820
  identityAssertions,
8821
8821
  identityRetractions,
8822
- () => chunkBWQA3POT_cjs.storeRuntime(target).assertIdentityClassesConsistentAtTarget(
8822
+ () => chunk6B3LQUYG_cjs.storeRuntime(target).assertIdentityClassesConsistentAtTarget(
8823
8823
  txBackend,
8824
8824
  identityConsistencySeeds(
8825
8825
  artifact,
@@ -8827,8 +8827,8 @@ async function applyWireMergeWrites(target, nodesApi, edgesApi, txBackend, artif
8827
8827
  )
8828
8828
  )
8829
8829
  );
8830
- if (!chunkBWQA3POT_cjs.forceRecordedGraphRevision(txBackend, target.graphId) && !chunkBWQA3POT_cjs.forceWriteTransactionRevision(txBackend)) {
8831
- await chunkBWQA3POT_cjs.advanceRevisionClock(
8830
+ if (!chunk6B3LQUYG_cjs.forceRecordedGraphRevision(txBackend, target.graphId) && !chunk6B3LQUYG_cjs.forceWriteTransactionRevision(txBackend)) {
8831
+ await chunk6B3LQUYG_cjs.advanceRevisionClock(
8832
8832
  txBackend,
8833
8833
  target.revisionSchema,
8834
8834
  target.graphId,
@@ -8890,7 +8890,7 @@ async function validateMergePlanForTarget(target, input) {
8890
8890
  }
8891
8891
  async function applyValidatedMergePlanInTransaction(target, tx, artifact, options, requireFreshSnapshot) {
8892
8892
  const { beforeApply, afterApply } = options;
8893
- const txBackend = chunkBWQA3POT_cjs.transactionBackend(tx);
8893
+ const txBackend = chunk6B3LQUYG_cjs.transactionBackend(tx);
8894
8894
  await assertMergePlanFenceInsideTransaction(
8895
8895
  target,
8896
8896
  txBackend,
@@ -8949,11 +8949,11 @@ async function applyMergePlan(target, input, options = {}) {
8949
8949
  if (provenanceStore !== void 0 && chunkHQU2SE74_cjs.isErr(provenanceStore)) {
8950
8950
  return chunkHQU2SE74_cjs.err(provenanceStore.error);
8951
8951
  }
8952
- const merged = await chunkJRWKRBI5_cjs.runRetriedUnit(
8952
+ const merged = await chunk5JOCIMQ3_cjs.runRetriedUnit(
8953
8953
  {
8954
8954
  operation: "applyMergePlan",
8955
8955
  attempts: MERGE_COMMIT_ATTEMPTS,
8956
- target: chunkBWQA3POT_cjs.storeBackend(target)
8956
+ target: chunk6B3LQUYG_cjs.storeBackend(target)
8957
8957
  },
8958
8958
  () => target.transaction(
8959
8959
  (tx) => applyValidatedMergePlanInTransaction(
@@ -9005,7 +9005,7 @@ async function applyMergePlanInTransaction(target, tx, input) {
9005
9005
  try {
9006
9006
  let effectiveTarget;
9007
9007
  try {
9008
- effectiveTarget = chunkBWQA3POT_cjs.resolveEvolvedTransactionStore(tx, target);
9008
+ effectiveTarget = chunk6B3LQUYG_cjs.resolveEvolvedTransactionStore(tx, target);
9009
9009
  } catch (error) {
9010
9010
  throw new MergePlanCapabilityError(
9011
9011
  "The merge transaction must belong to an active callback of the target Store.",
@@ -9023,7 +9023,7 @@ async function applyMergePlanInTransaction(target, tx, input) {
9023
9023
  }
9024
9024
  );
9025
9025
  }
9026
- const txBackend = chunkBWQA3POT_cjs.transactionBackend(tx);
9026
+ const txBackend = chunk6B3LQUYG_cjs.transactionBackend(tx);
9027
9027
  await assertMergeTransactionPristine(effectiveTarget, txBackend);
9028
9028
  const merged = await applyValidatedMergePlanInTransaction(
9029
9029
  effectiveTarget,
@@ -9469,11 +9469,11 @@ async function assertForkPointUnchanged(precondition) {
9469
9469
  liveVersion
9470
9470
  );
9471
9471
  if (expectedEngineRevision !== void 0) {
9472
- const lineage = chunkBWQA3POT_cjs.resolveLineage(precondition.store);
9472
+ const lineage = chunk6B3LQUYG_cjs.resolveLineage(precondition.store);
9473
9473
  if (lineage !== void 0) {
9474
9474
  const mismatch = await engineAnchorMismatch(
9475
9475
  lineage,
9476
- chunkBWQA3POT_cjs.storeBackend(precondition.store),
9476
+ chunk6B3LQUYG_cjs.storeBackend(precondition.store),
9477
9477
  precondition.store.graphId,
9478
9478
  expectedEngineRevision
9479
9479
  );
@@ -9492,21 +9492,21 @@ async function assertForkPointUnchanged(precondition) {
9492
9492
  );
9493
9493
  }
9494
9494
  async function commitIncrementalPlan(target, plan, guard) {
9495
- if (!chunkBWQA3POT_cjs.storeBackend(target).capabilities.execution.interactiveTransactions) {
9495
+ if (!chunk6B3LQUYG_cjs.storeBackend(target).capabilities.execution.interactiveTransactions) {
9496
9496
  throw new MergeError(
9497
9497
  "mergeIncremental() requires a transaction-capable target backend. Incremental writes must preflight existing rows and commit atomically; non-transactional fallback would allow partial graph writes.",
9498
9498
  { details: { capability: "execution.interactiveTransactions" } }
9499
9499
  );
9500
9500
  }
9501
9501
  return runMergeCommit(
9502
- () => chunkJRWKRBI5_cjs.runRetriedUnit(
9502
+ () => chunk5JOCIMQ3_cjs.runRetriedUnit(
9503
9503
  {
9504
9504
  operation: "commitIncrementalPlan",
9505
9505
  attempts: MERGE_COMMIT_ATTEMPTS,
9506
- target: chunkBWQA3POT_cjs.storeBackend(target)
9506
+ target: chunk6B3LQUYG_cjs.storeBackend(target)
9507
9507
  },
9508
9508
  () => target.transaction(async (tx) => {
9509
- await lockMergeTargetWrite(chunkBWQA3POT_cjs.transactionBackend(tx), {
9509
+ await lockMergeTargetWrite(chunk6B3LQUYG_cjs.transactionBackend(tx), {
9510
9510
  graphId: target.graphId,
9511
9511
  schemaVersion: target.introspect().schemaVersion,
9512
9512
  graphLock: target.revisionTrackingEnabled ? "required" : "not-required",
@@ -9524,12 +9524,12 @@ async function commitIncrementalPlan(target, plan, guard) {
9524
9524
  );
9525
9525
  await assertPlannedIdentityIdsFresh(
9526
9526
  target,
9527
- chunkBWQA3POT_cjs.transactionBackend(tx),
9527
+ chunk6B3LQUYG_cjs.transactionBackend(tx),
9528
9528
  plan
9529
9529
  );
9530
9530
  await assertIdentityPeersStable(
9531
9531
  target,
9532
- chunkBWQA3POT_cjs.transactionBackend(tx),
9532
+ chunk6B3LQUYG_cjs.transactionBackend(tx),
9533
9533
  guard.identityPeerProbe,
9534
9534
  plan
9535
9535
  );
@@ -9541,7 +9541,7 @@ async function commitIncrementalPlan(target, plan, guard) {
9541
9541
  nodesApi,
9542
9542
  edgesApi,
9543
9543
  target,
9544
- chunkBWQA3POT_cjs.transactionBackend(tx)
9544
+ chunk6B3LQUYG_cjs.transactionBackend(tx)
9545
9545
  );
9546
9546
  }, mergeCommitTransactionOptions(target))
9547
9547
  )
@@ -9635,10 +9635,10 @@ var CandidateWriteSetSchema = zod.z.object({
9635
9635
  target: CandidateWriteSetTargetSchema,
9636
9636
  nodes: zod.z.array(candidateNodeSchema),
9637
9637
  edges: zod.z.array(candidateEdgeSchema),
9638
- identity: chunkXSLQYGNR_cjs.InterchangeIdentitySchema.optional()
9638
+ identity: chunkT3VU3YRQ_cjs.InterchangeIdentitySchema.optional()
9639
9639
  });
9640
9640
  async function captureCandidateWriteSetTarget(target) {
9641
- const activeSchema = await chunkBWQA3POT_cjs.storeBackend(target).getActiveSchema(
9641
+ const activeSchema = await chunk6B3LQUYG_cjs.storeBackend(target).getActiveSchema(
9642
9642
  target.graphId
9643
9643
  );
9644
9644
  return {
@@ -9728,7 +9728,7 @@ async function planCandidateWriteSet(args) {
9728
9728
  }
9729
9729
  const candidate = created.data;
9730
9730
  try {
9731
- const imported = await chunkXSLQYGNR_cjs.importGraph(
9731
+ const imported = await chunkT3VU3YRQ_cjs.importGraph(
9732
9732
  candidate,
9733
9733
  interchangeDocument(writeSet),
9734
9734
  {
@@ -9828,7 +9828,7 @@ async function planCandidateWriteSetForEvolution(args) {
9828
9828
  }
9829
9829
  const candidate = created.data;
9830
9830
  try {
9831
- const imported = await chunkXSLQYGNR_cjs.importGraph(
9831
+ const imported = await chunkT3VU3YRQ_cjs.importGraph(
9832
9832
  candidate,
9833
9833
  interchangeDocument(writeSet),
9834
9834
  {
@@ -9871,7 +9871,7 @@ async function planCandidateWriteSetForEvolution(args) {
9871
9871
  // src/graph-merge/review-evidence.ts
9872
9872
  function reviewJson(value) {
9873
9873
  if (value === void 0) return "undefined";
9874
- return JSON.stringify(value, chunkJRWKRBI5_cjs.sortedReplacer);
9874
+ return JSON.stringify(value, chunk5JOCIMQ3_cjs.sortedReplacer);
9875
9875
  }
9876
9876
  async function reviewDigest(value) {
9877
9877
  return chunkZY4GXIVN_cjs.sha256Hex(reviewJson(value), 32);
@@ -9927,7 +9927,7 @@ function reviewRowKey(row) {
9927
9927
  return JSON.stringify([row.role, row.kind, row.id]);
9928
9928
  }
9929
9929
  async function captureReviewBaseline(target) {
9930
- const backend = chunkBWQA3POT_cjs.storeBackend(target);
9930
+ const backend = chunk6B3LQUYG_cjs.storeBackend(target);
9931
9931
  const rows = [];
9932
9932
  for (const kind of chunk7D2ZLF4O_cjs.getNodeKinds(target.graph)) {
9933
9933
  for (const row of await enumerateAllNodes(backend, target.graphId, kind)) {
@@ -9949,7 +9949,7 @@ async function captureReviewBaseline(target) {
9949
9949
  });
9950
9950
  }
9951
9951
  }
9952
- const identity = await chunkBWQA3POT_cjs.storeRuntime(target).readCurrentIdentityAssertions(
9952
+ const identity = await chunk6B3LQUYG_cjs.storeRuntime(target).readCurrentIdentityAssertions(
9953
9953
  "archival",
9954
9954
  {
9955
9955
  includeDeleted: true