@nicia-ai/typegraph 0.42.1 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/backend/drizzle/indexes.cjs +9 -9
  2. package/dist/backend/drizzle/indexes.d.cts +1 -1
  3. package/dist/backend/drizzle/indexes.d.ts +1 -1
  4. package/dist/backend/drizzle/indexes.js +5 -5
  5. package/dist/backend/index.cjs +50 -50
  6. package/dist/backend/index.d.cts +3 -3
  7. package/dist/backend/index.d.ts +3 -3
  8. package/dist/backend/index.js +11 -11
  9. package/dist/backend/postgres/index.cjs +26 -26
  10. package/dist/backend/postgres/index.d.cts +6 -5
  11. package/dist/backend/postgres/index.d.ts +6 -5
  12. package/dist/backend/postgres/index.js +13 -13
  13. package/dist/backend/postgres/pglite-store.cjs +33 -33
  14. package/dist/backend/postgres/pglite-store.cjs.map +1 -1
  15. package/dist/backend/postgres/pglite-store.d.cts +7 -7
  16. package/dist/backend/postgres/pglite-store.d.ts +7 -7
  17. package/dist/backend/postgres/pglite-store.js +29 -29
  18. package/dist/backend/postgres/pglite-store.js.map +1 -1
  19. package/dist/backend/postgres/pglite.cjs +15 -15
  20. package/dist/backend/postgres/pglite.d.cts +3 -2
  21. package/dist/backend/postgres/pglite.d.ts +3 -2
  22. package/dist/backend/postgres/pglite.js +14 -14
  23. package/dist/backend/sqlite/index.cjs +23 -23
  24. package/dist/backend/sqlite/index.d.cts +7 -6
  25. package/dist/backend/sqlite/index.d.ts +7 -6
  26. package/dist/backend/sqlite/index.js +11 -11
  27. package/dist/backend/sqlite/libsql.cjs +17 -17
  28. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  29. package/dist/backend/sqlite/libsql.d.cts +3 -2
  30. package/dist/backend/sqlite/libsql.d.ts +3 -2
  31. package/dist/backend/sqlite/libsql.js +13 -13
  32. package/dist/backend/sqlite/libsql.js.map +1 -1
  33. package/dist/backend/sqlite/local-store.cjs +34 -34
  34. package/dist/backend/sqlite/local-store.cjs.map +1 -1
  35. package/dist/backend/sqlite/local-store.d.cts +8 -7
  36. package/dist/backend/sqlite/local-store.d.ts +8 -7
  37. package/dist/backend/sqlite/local-store.js +30 -30
  38. package/dist/backend/sqlite/local-store.js.map +1 -1
  39. package/dist/backend/sqlite/local.cjs +16 -16
  40. package/dist/backend/sqlite/local.d.cts +3 -2
  41. package/dist/backend/sqlite/local.d.ts +3 -2
  42. package/dist/backend/sqlite/local.js +14 -14
  43. package/dist/{chunk-3RPQDGUE.cjs → chunk-2BIG7U6E.cjs} +5 -5
  44. package/dist/{chunk-3RPQDGUE.cjs.map → chunk-2BIG7U6E.cjs.map} +1 -1
  45. package/dist/{chunk-2OOY4OYT.js → chunk-2L54C2C2.js} +4 -4
  46. package/dist/{chunk-2OOY4OYT.js.map → chunk-2L54C2C2.js.map} +1 -1
  47. package/dist/{chunk-V2GZBPY2.cjs → chunk-2VLBGQBY.cjs} +310 -61
  48. package/dist/chunk-2VLBGQBY.cjs.map +1 -0
  49. package/dist/{chunk-RXOAXO3R.js → chunk-2WDD2NO3.js} +3 -3
  50. package/dist/{chunk-RXOAXO3R.js.map → chunk-2WDD2NO3.js.map} +1 -1
  51. package/dist/{chunk-2HKIID5K.js → chunk-2Y4IFKW7.js} +5 -5
  52. package/dist/{chunk-2HKIID5K.js.map → chunk-2Y4IFKW7.js.map} +1 -1
  53. package/dist/{chunk-ECU53PMN.cjs → chunk-3PRKZW6D.cjs} +5 -5
  54. package/dist/chunk-3PRKZW6D.cjs.map +1 -0
  55. package/dist/{chunk-2G6ZEGYO.js → chunk-46GDII45.js} +4 -4
  56. package/dist/{chunk-2G6ZEGYO.js.map → chunk-46GDII45.js.map} +1 -1
  57. package/dist/{chunk-OYJSYDIH.js → chunk-4MB3AQAQ.js} +13 -3
  58. package/dist/chunk-4MB3AQAQ.js.map +1 -0
  59. package/dist/chunk-4SZ6XPTG.cjs +12 -0
  60. package/dist/{chunk-VGMNGWBR.cjs.map → chunk-4SZ6XPTG.cjs.map} +1 -1
  61. package/dist/{chunk-FY4VY5EV.cjs → chunk-5MUSU4ZP.cjs} +20 -20
  62. package/dist/chunk-5MUSU4ZP.cjs.map +1 -0
  63. package/dist/{chunk-ZIRC2U6G.js → chunk-63KCKSSH.js} +78 -16
  64. package/dist/chunk-63KCKSSH.js.map +1 -0
  65. package/dist/{chunk-7Y6BV3TK.cjs → chunk-66UVLHQA.cjs} +100 -100
  66. package/dist/{chunk-7Y6BV3TK.cjs.map → chunk-66UVLHQA.cjs.map} +1 -1
  67. package/dist/{chunk-M4GYQF2H.js → chunk-6DCB664D.js} +7 -4
  68. package/dist/chunk-6DCB664D.js.map +1 -0
  69. package/dist/{chunk-OMQ2NBOR.cjs → chunk-6JZUSDY2.cjs} +27 -27
  70. package/dist/{chunk-OMQ2NBOR.cjs.map → chunk-6JZUSDY2.cjs.map} +1 -1
  71. package/dist/{chunk-Z3WIL6S3.js → chunk-7G32LIQM.js} +5 -5
  72. package/dist/{chunk-Z3WIL6S3.js.map → chunk-7G32LIQM.js.map} +1 -1
  73. package/dist/{chunk-2SO5I5AI.cjs → chunk-7V2FGGI2.cjs} +250 -198
  74. package/dist/chunk-7V2FGGI2.cjs.map +1 -0
  75. package/dist/{chunk-I73ATSAH.cjs → chunk-A2I2XO52.cjs} +4 -4
  76. package/dist/{chunk-I73ATSAH.cjs.map → chunk-A2I2XO52.cjs.map} +1 -1
  77. package/dist/{chunk-O2GZM7UK.cjs → chunk-A4PBRX4C.cjs} +7 -7
  78. package/dist/{chunk-O2GZM7UK.cjs.map → chunk-A4PBRX4C.cjs.map} +1 -1
  79. package/dist/{chunk-5P6IPIT6.cjs → chunk-ALFUGRYB.cjs} +75 -65
  80. package/dist/chunk-ALFUGRYB.cjs.map +1 -0
  81. package/dist/{chunk-NXIZL7ZZ.js → chunk-ATLN63JA.js} +6 -6
  82. package/dist/chunk-ATLN63JA.js.map +1 -0
  83. package/dist/{chunk-CUPJL6TS.js → chunk-B75XRV3O.js} +3 -3
  84. package/dist/{chunk-CUPJL6TS.js.map → chunk-B75XRV3O.js.map} +1 -1
  85. package/dist/{chunk-DP7KC6CL.js → chunk-BCP7LLOY.js} +754 -476
  86. package/dist/chunk-BCP7LLOY.js.map +1 -0
  87. package/dist/{chunk-RAWG2FEU.js → chunk-BEFM74L2.js} +264 -18
  88. package/dist/chunk-BEFM74L2.js.map +1 -0
  89. package/dist/{chunk-LQLVJWUH.js → chunk-BNUFUFAU.js} +7 -7
  90. package/dist/chunk-BNUFUFAU.js.map +1 -0
  91. package/dist/{chunk-KTBTSHU6.cjs → chunk-C4F7VJ5D.cjs} +13 -3
  92. package/dist/chunk-C4F7VJ5D.cjs.map +1 -0
  93. package/dist/{chunk-CVK4T34X.cjs → chunk-CPEL3YIR.cjs} +22 -22
  94. package/dist/{chunk-CVK4T34X.cjs.map → chunk-CPEL3YIR.cjs.map} +1 -1
  95. package/dist/{chunk-O3USVVWS.js → chunk-DK2S42XB.js} +3 -3
  96. package/dist/{chunk-O3USVVWS.js.map → chunk-DK2S42XB.js.map} +1 -1
  97. package/dist/{chunk-DMZEVJGL.cjs → chunk-EE7N5XXQ.cjs} +13 -13
  98. package/dist/{chunk-DMZEVJGL.cjs.map → chunk-EE7N5XXQ.cjs.map} +1 -1
  99. package/dist/{chunk-ZGOUVMVS.js → chunk-EFELJVLA.js} +5 -5
  100. package/dist/{chunk-ZGOUVMVS.js.map → chunk-EFELJVLA.js.map} +1 -1
  101. package/dist/chunk-EPTSMFH7.cjs +12 -0
  102. package/dist/{chunk-U3YRCZ5L.cjs.map → chunk-EPTSMFH7.cjs.map} +1 -1
  103. package/dist/{chunk-FSCJOTHF.cjs → chunk-EQ7JKLZO.cjs} +10 -10
  104. package/dist/{chunk-FSCJOTHF.cjs.map → chunk-EQ7JKLZO.cjs.map} +1 -1
  105. package/dist/{chunk-5Q3P6OIC.cjs → chunk-FGO5JFVJ.cjs} +12 -12
  106. package/dist/chunk-FGO5JFVJ.cjs.map +1 -0
  107. package/dist/{chunk-VC26BUNP.js → chunk-FMGEZBAQ.js} +5 -5
  108. package/dist/{chunk-VC26BUNP.js.map → chunk-FMGEZBAQ.js.map} +1 -1
  109. package/dist/{chunk-UZLEQFTV.js → chunk-FMMIX6N4.js} +4 -4
  110. package/dist/chunk-FMMIX6N4.js.map +1 -0
  111. package/dist/{chunk-5C75HQYQ.js → chunk-FRHHDHKH.js} +5 -5
  112. package/dist/{chunk-5C75HQYQ.js.map → chunk-FRHHDHKH.js.map} +1 -1
  113. package/dist/{chunk-EVFL2ZY5.js → chunk-FSXTPBRN.js} +63 -12
  114. package/dist/chunk-FSXTPBRN.js.map +1 -0
  115. package/dist/{chunk-TRC646QQ.cjs → chunk-GFRGG2US.cjs} +7 -7
  116. package/dist/{chunk-TRC646QQ.cjs.map → chunk-GFRGG2US.cjs.map} +1 -1
  117. package/dist/{chunk-UJRWOV5B.js → chunk-GWEDD3DH.js} +5 -5
  118. package/dist/{chunk-UJRWOV5B.js.map → chunk-GWEDD3DH.js.map} +1 -1
  119. package/dist/{chunk-AQR6BHB3.cjs → chunk-HJH3RMXG.cjs} +10 -10
  120. package/dist/{chunk-AQR6BHB3.cjs.map → chunk-HJH3RMXG.cjs.map} +1 -1
  121. package/dist/{chunk-F7TDKSVB.cjs → chunk-HOHAJ2NR.cjs} +4 -4
  122. package/dist/{chunk-F7TDKSVB.cjs.map → chunk-HOHAJ2NR.cjs.map} +1 -1
  123. package/dist/{chunk-YPVQYM3L.js → chunk-HOIFFY4M.js} +100 -20
  124. package/dist/chunk-HOIFFY4M.js.map +1 -0
  125. package/dist/{chunk-LDCWO5B6.js → chunk-IIMQJYAM.js} +3 -3
  126. package/dist/{chunk-LDCWO5B6.js.map → chunk-IIMQJYAM.js.map} +1 -1
  127. package/dist/{chunk-OM6RIOA5.cjs → chunk-IIT5K7SK.cjs} +13 -13
  128. package/dist/{chunk-OM6RIOA5.cjs.map → chunk-IIT5K7SK.cjs.map} +1 -1
  129. package/dist/{chunk-EQOQOT55.js → chunk-IJTLXNGJ.js} +5 -5
  130. package/dist/{chunk-EQOQOT55.js.map → chunk-IJTLXNGJ.js.map} +1 -1
  131. package/dist/{chunk-4XRP2N6B.js → chunk-JRP3VGHS.js} +3 -3
  132. package/dist/{chunk-4XRP2N6B.js.map → chunk-JRP3VGHS.js.map} +1 -1
  133. package/dist/{chunk-42XYPKZU.js → chunk-K3BUWSFR.js} +41 -3
  134. package/dist/chunk-K3BUWSFR.js.map +1 -0
  135. package/dist/{chunk-GT7NEXSU.js → chunk-KCO5EFJU.js} +3 -3
  136. package/dist/{chunk-GT7NEXSU.js.map → chunk-KCO5EFJU.js.map} +1 -1
  137. package/dist/{chunk-ARN3ZODS.cjs → chunk-KKYELPZ2.cjs} +6 -6
  138. package/dist/{chunk-ARN3ZODS.cjs.map → chunk-KKYELPZ2.cjs.map} +1 -1
  139. package/dist/{chunk-33PAKPED.cjs → chunk-MCHP7RHZ.cjs} +41 -41
  140. package/dist/{chunk-33PAKPED.cjs.map → chunk-MCHP7RHZ.cjs.map} +1 -1
  141. package/dist/{chunk-CDYRPI5U.js → chunk-MIJKEVV7.js} +4 -4
  142. package/dist/{chunk-CDYRPI5U.js.map → chunk-MIJKEVV7.js.map} +1 -1
  143. package/dist/{chunk-K2HHCWZO.cjs → chunk-NCX65HBY.cjs} +137 -108
  144. package/dist/chunk-NCX65HBY.cjs.map +1 -0
  145. package/dist/{chunk-6TJ6PKPS.cjs → chunk-NN3QSOVS.cjs} +27 -27
  146. package/dist/{chunk-6TJ6PKPS.cjs.map → chunk-NN3QSOVS.cjs.map} +1 -1
  147. package/dist/{chunk-F2KVJ6FF.cjs → chunk-OSZPLZIV.cjs} +179 -117
  148. package/dist/chunk-OSZPLZIV.cjs.map +1 -0
  149. package/dist/{chunk-UTTW2Q3M.cjs → chunk-OVUUTCPJ.cjs} +171 -133
  150. package/dist/chunk-OVUUTCPJ.cjs.map +1 -0
  151. package/dist/{chunk-FMPZPOUD.js → chunk-PAW2XUZN.js} +3 -3
  152. package/dist/{chunk-FMPZPOUD.js.map → chunk-PAW2XUZN.js.map} +1 -1
  153. package/dist/{chunk-5ZPRE4CV.cjs → chunk-PDGEXGS6.cjs} +204 -124
  154. package/dist/chunk-PDGEXGS6.cjs.map +1 -0
  155. package/dist/{chunk-CVNGKTHO.js → chunk-PHXITZE4.js} +4 -4
  156. package/dist/{chunk-CVNGKTHO.js.map → chunk-PHXITZE4.js.map} +1 -1
  157. package/dist/{chunk-ZPCKPLMX.cjs → chunk-QB6VMOJ2.cjs} +8 -8
  158. package/dist/{chunk-ZPCKPLMX.cjs.map → chunk-QB6VMOJ2.cjs.map} +1 -1
  159. package/dist/{chunk-5AERZSHC.cjs → chunk-QGKILWGZ.cjs} +4 -4
  160. package/dist/{chunk-5AERZSHC.cjs.map → chunk-QGKILWGZ.cjs.map} +1 -1
  161. package/dist/{chunk-ZOHCFYXE.js → chunk-QT6V3YRH.js} +3 -3
  162. package/dist/{chunk-ZOHCFYXE.js.map → chunk-QT6V3YRH.js.map} +1 -1
  163. package/dist/{chunk-XDMPDUKL.cjs → chunk-QYWINYEA.cjs} +9 -9
  164. package/dist/{chunk-XDMPDUKL.cjs.map → chunk-QYWINYEA.cjs.map} +1 -1
  165. package/dist/{chunk-3V6D5DEC.js → chunk-S4KQ5LV4.js} +3 -3
  166. package/dist/{chunk-3V6D5DEC.js.map → chunk-S4KQ5LV4.js.map} +1 -1
  167. package/dist/{chunk-6NB73BXV.js → chunk-SBPC5IP3.js} +40 -12
  168. package/dist/chunk-SBPC5IP3.js.map +1 -0
  169. package/dist/{chunk-HHBKGPEI.js → chunk-SQRD2CYF.js} +264 -21
  170. package/dist/chunk-SQRD2CYF.js.map +1 -0
  171. package/dist/{chunk-O7XVCLXW.cjs → chunk-ST3LPB2V.cjs} +324 -77
  172. package/dist/chunk-ST3LPB2V.cjs.map +1 -0
  173. package/dist/{chunk-FFQGI67R.cjs → chunk-STQ3BSED.cjs} +44 -44
  174. package/dist/{chunk-FFQGI67R.cjs.map → chunk-STQ3BSED.cjs.map} +1 -1
  175. package/dist/{chunk-JOYPNY33.js → chunk-TCRIQMBU.js} +9 -9
  176. package/dist/{chunk-JOYPNY33.js.map → chunk-TCRIQMBU.js.map} +1 -1
  177. package/dist/{chunk-ZP2KPDNN.js → chunk-TFMVL4QH.js} +3 -3
  178. package/dist/{chunk-ZP2KPDNN.js.map → chunk-TFMVL4QH.js.map} +1 -1
  179. package/dist/{chunk-4WYFRACU.js → chunk-TVLKA4AY.js} +3 -3
  180. package/dist/{chunk-4WYFRACU.js.map → chunk-TVLKA4AY.js.map} +1 -1
  181. package/dist/{chunk-X2XOQZT3.cjs → chunk-U5W4LKZV.cjs} +13 -9
  182. package/dist/chunk-U5W4LKZV.cjs.map +1 -0
  183. package/dist/{chunk-WYQILW5V.js → chunk-VITTKBWF.js} +43 -33
  184. package/dist/chunk-VITTKBWF.js.map +1 -0
  185. package/dist/{chunk-AO2WPYFZ.cjs → chunk-WBUFJ7BS.cjs} +4 -4
  186. package/dist/{chunk-AO2WPYFZ.cjs.map → chunk-WBUFJ7BS.cjs.map} +1 -1
  187. package/dist/{chunk-CI5NPLXX.js → chunk-XMYJY7NI.js} +3 -3
  188. package/dist/{chunk-CI5NPLXX.js.map → chunk-XMYJY7NI.js.map} +1 -1
  189. package/dist/{chunk-277UZV7X.cjs → chunk-XR4YZFKW.cjs} +1803 -1525
  190. package/dist/chunk-XR4YZFKW.cjs.map +1 -0
  191. package/dist/{chunk-5GV4JQNA.cjs → chunk-YNULOIR5.cjs} +43 -43
  192. package/dist/{chunk-5GV4JQNA.cjs.map → chunk-YNULOIR5.cjs.map} +1 -1
  193. package/dist/{chunk-ZBV4LQD2.cjs → chunk-ZTAJL4DT.cjs} +4 -4
  194. package/dist/{chunk-ZBV4LQD2.cjs.map → chunk-ZTAJL4DT.cjs.map} +1 -1
  195. package/dist/core/index.cjs +28 -28
  196. package/dist/core/index.d.cts +5 -5
  197. package/dist/core/index.d.ts +5 -5
  198. package/dist/core/index.js +8 -8
  199. package/dist/{ddl-Bc4Dl8fu.d.ts → ddl-D5369kOY.d.ts} +3 -3
  200. package/dist/{ddl-3unqC-kg.d.cts → ddl-eWg7hx6R.d.cts} +3 -3
  201. package/dist/{define-graph-Byslw2OO.d.cts → define-graph-DVF-oN1i.d.cts} +1 -1
  202. package/dist/{define-graph-DBFnc7u_.d.ts → define-graph-SvYXOl78.d.ts} +1 -1
  203. package/dist/graph-extension/index.cjs +20 -20
  204. package/dist/graph-extension/index.d.cts +4 -4
  205. package/dist/graph-extension/index.d.ts +4 -4
  206. package/dist/graph-extension/index.js +5 -5
  207. package/dist/graph-merge/index.cjs +104 -104
  208. package/dist/graph-merge/index.d.cts +9 -8
  209. package/dist/graph-merge/index.d.ts +9 -8
  210. package/dist/graph-merge/index.js +24 -24
  211. package/dist/{index-DQzVJBHa.d.ts → index-By89Sezh.d.ts} +37 -7
  212. package/dist/{index-DHXw7QAl.d.cts → index-DcQ3Sxs-.d.cts} +37 -7
  213. package/dist/index.cjs +210 -202
  214. package/dist/index.d.cts +13 -13
  215. package/dist/index.d.ts +13 -13
  216. package/dist/index.js +34 -34
  217. package/dist/indexes/index.cjs +13 -13
  218. package/dist/indexes/index.d.cts +4 -4
  219. package/dist/indexes/index.d.ts +4 -4
  220. package/dist/indexes/index.js +6 -6
  221. package/dist/interchange/index.cjs +49 -41
  222. package/dist/interchange/index.cjs.map +1 -1
  223. package/dist/interchange/index.d.cts +11 -11
  224. package/dist/interchange/index.d.ts +11 -11
  225. package/dist/interchange/index.js +23 -15
  226. package/dist/interchange/index.js.map +1 -1
  227. package/dist/{manager-Dl0-er1G.d.ts → manager-B0KjKE93.d.ts} +44 -6
  228. package/dist/{manager-U9_zopqr.d.cts → manager-Cn0NFIhN.d.cts} +44 -6
  229. package/dist/{materialize-indexes-BM3u0aXE.d.ts → materialize-indexes-BD4V3svD.d.ts} +1 -1
  230. package/dist/{materialize-indexes-DzMCetZe.d.cts → materialize-indexes-DVRhd5h4.d.cts} +1 -1
  231. package/dist/{postgres-C5-WMKFA.d.ts → postgres-DaEWvN4x.d.cts} +1 -1
  232. package/dist/{postgres-DpJqtbSX.d.cts → postgres-u0a0HN2D.d.ts} +1 -1
  233. package/dist/profiler/index.d.cts +10 -9
  234. package/dist/profiler/index.d.ts +10 -9
  235. package/dist/provenance/index.cjs +38 -38
  236. package/dist/provenance/index.cjs.map +1 -1
  237. package/dist/provenance/index.d.cts +7 -7
  238. package/dist/provenance/index.d.ts +7 -7
  239. package/dist/provenance/index.js +8 -8
  240. package/dist/provenance/index.js.map +1 -1
  241. package/dist/schema/index.cjs +41 -41
  242. package/dist/schema/index.d.cts +7 -7
  243. package/dist/schema/index.d.ts +7 -7
  244. package/dist/schema/index.js +14 -14
  245. package/dist/{searchable-B4mUXZT6.d.cts → searchable-BT7j9_IK.d.cts} +2 -2
  246. package/dist/{searchable-C7jmPNLT.d.ts → searchable-CnYEancP.d.ts} +2 -2
  247. package/dist/{sqlite-Da7jiYu9.d.cts → sqlite-BrMoSsI7.d.cts} +1 -1
  248. package/dist/{sqlite-Ch5tSYQY.d.ts → sqlite-CHhZUyO5.d.ts} +1 -1
  249. package/dist/{store-view-CNcOG8bQ.d.cts → store-view-Bvdku0Ht.d.ts} +199 -35
  250. package/dist/{store-view-6C2vTWqf.d.ts → store-view-w-md0nQ4.d.cts} +199 -35
  251. package/dist/{temporal-BtrTYTiB.d.ts → temporal--x9T8K4S.d.ts} +1 -1
  252. package/dist/{temporal-CMpigMCW.d.cts → temporal-BCORwUau.d.cts} +1 -1
  253. package/dist/{types-G4sVM-76.d.cts → types-6-WJmSD4.d.cts} +1 -1
  254. package/dist/{types-D2rU5Taq.d.ts → types-COODtTJU.d.ts} +1 -1
  255. package/dist/{types-Dh-EgT-w.d.ts → types-Cjvkj0jA.d.cts} +351 -12
  256. package/dist/{types-Dh-EgT-w.d.cts → types-Cjvkj0jA.d.ts} +351 -12
  257. package/dist/{where-B8Y21kig.d.ts → where-5xVawAwL.d.ts} +1 -1
  258. package/dist/{where-DbZ9XDOI.d.cts → where-CUQmCR6d.d.cts} +1 -1
  259. package/package.json +1 -1
  260. package/dist/chunk-277UZV7X.cjs.map +0 -1
  261. package/dist/chunk-2SO5I5AI.cjs.map +0 -1
  262. package/dist/chunk-42XYPKZU.js.map +0 -1
  263. package/dist/chunk-5P6IPIT6.cjs.map +0 -1
  264. package/dist/chunk-5Q3P6OIC.cjs.map +0 -1
  265. package/dist/chunk-5ZPRE4CV.cjs.map +0 -1
  266. package/dist/chunk-6NB73BXV.js.map +0 -1
  267. package/dist/chunk-DP7KC6CL.js.map +0 -1
  268. package/dist/chunk-ECU53PMN.cjs.map +0 -1
  269. package/dist/chunk-EVFL2ZY5.js.map +0 -1
  270. package/dist/chunk-F2KVJ6FF.cjs.map +0 -1
  271. package/dist/chunk-FY4VY5EV.cjs.map +0 -1
  272. package/dist/chunk-HHBKGPEI.js.map +0 -1
  273. package/dist/chunk-K2HHCWZO.cjs.map +0 -1
  274. package/dist/chunk-KTBTSHU6.cjs.map +0 -1
  275. package/dist/chunk-LQLVJWUH.js.map +0 -1
  276. package/dist/chunk-M4GYQF2H.js.map +0 -1
  277. package/dist/chunk-NXIZL7ZZ.js.map +0 -1
  278. package/dist/chunk-O7XVCLXW.cjs.map +0 -1
  279. package/dist/chunk-OYJSYDIH.js.map +0 -1
  280. package/dist/chunk-RAWG2FEU.js.map +0 -1
  281. package/dist/chunk-U3YRCZ5L.cjs +0 -12
  282. package/dist/chunk-UTTW2Q3M.cjs.map +0 -1
  283. package/dist/chunk-UZLEQFTV.js.map +0 -1
  284. package/dist/chunk-V2GZBPY2.cjs.map +0 -1
  285. package/dist/chunk-VGMNGWBR.cjs +0 -12
  286. package/dist/chunk-WYQILW5V.js.map +0 -1
  287. package/dist/chunk-X2XOQZT3.cjs.map +0 -1
  288. package/dist/chunk-YPVQYM3L.js.map +0 -1
  289. package/dist/chunk-ZIRC2U6G.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { a as NodeType, b as AnyEdgeType, v as SchemaVersionRow, w as GraphBackend, x as SerializedSchema } from './types-Dh-EgT-w.cjs';
2
- import { G as GraphDef } from './define-graph-Byslw2OO.cjs';
3
- import { S as SchemaDiff } from './materialize-indexes-DzMCetZe.cjs';
1
+ import { b as NodeType, c as AnyEdgeType, w as SchemaVersionRow, x as GraphBackend, y as SerializedSchema } from './types-Cjvkj0jA.cjs';
2
+ import { G as GraphDef } from './define-graph-DVF-oN1i.cjs';
3
+ import { S as SchemaDiff } from './materialize-indexes-DVRhd5h4.cjs';
4
4
 
5
5
  /**
6
6
  * KindRegistry holds precomputed closures for ontological reasoning.
@@ -342,6 +342,28 @@ declare function assertSchemaCurrent<G extends GraphDef>(backend: GraphBackend,
342
342
  * @returns The created schema version row
343
343
  */
344
344
  declare function initializeSchema<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaVersionRow>;
345
+ type MigrateSchemaOptions = Readonly<{
346
+ /**
347
+ * Commit even when a dropped kind still holds rows.
348
+ *
349
+ * **This does not preserve those rows.** They are immediately unreachable —
350
+ * nothing references the kind any more — and they are not safe from
351
+ * deletion either: `materializeRemovals` re-derives removals by walking
352
+ * schema-version history, so the next reconcile finds the dropped kind and
353
+ * hard-deletes its rows, including soft-deleted ones. The flag buys a
354
+ * committed schema, not retained data.
355
+ *
356
+ * If you need the rows, copy them out **before** committing. If you want
357
+ * them removed, prefer `Store.removeKinds()`, which queues the cleanup
358
+ * explicitly instead of relying on history reconciliation.
359
+ *
360
+ * Dropping an *empty* kind needs no flag — it strands nothing, and it is
361
+ * the last step of the documented three-deploy kind-removal flow.
362
+ *
363
+ * @defaultValue false
364
+ */
365
+ discardDroppedKindRows?: boolean;
366
+ }>;
345
367
  /**
346
368
  * Migrates the schema to match the current graph definition.
347
369
  *
@@ -352,12 +374,21 @@ declare function initializeSchema<G extends GraphDef>(backend: GraphBackend, gra
352
374
  * active version since `currentVersion` was read, this throws
353
375
  * `StaleVersionError`; the caller should refetch and retry.
354
376
  *
377
+ * Folds the persisted graph extension into `graph` first, like every other
378
+ * commit path — kinds committed at runtime by `Store.evolve()` live in
379
+ * `schema_doc.extension`, so committing the caller's graph verbatim would
380
+ * erase them while leaving their rows behind. Property-level breaking
381
+ * changes (the documented "force the contract deploy" use) are unaffected.
382
+ *
355
383
  * @param backend - The database backend
356
384
  * @param graph - The current graph definition
357
385
  * @param currentVersion - The current active schema version
386
+ * @param options - See {@link MigrateSchemaOptions}
358
387
  * @returns The new version number
388
+ * @throws MigrationError with `reason: "kind-removal"` when the commit would
389
+ * drop a kind that still holds rows and `discardDroppedKindRows` is not set.
359
390
  */
360
- declare function migrateSchema<G extends GraphDef>(backend: GraphBackend, graph: G, currentVersion: number): Promise<number>;
391
+ declare function migrateSchema<G extends GraphDef>(backend: GraphBackend, graph: G, currentVersion: number, options?: MigrateSchemaOptions): Promise<number>;
361
392
  /**
362
393
  * Rolls back the active schema to a previous version.
363
394
  *
@@ -377,7 +408,11 @@ declare function migrateSchema<G extends GraphDef>(backend: GraphBackend, graph:
377
408
  */
378
409
  declare function rollbackSchema(backend: GraphBackend, graphId: string, targetVersion: number): Promise<void>;
379
410
  /**
380
- * Gets the current active schema for a graph.
411
+ * Gets the current active schema for a graph — the committed document itself,
412
+ * with the `nodes` / `edges` / `ontology` maps the database actually holds.
413
+ *
414
+ * This is the answer to "what kinds does this database already have?". Use
415
+ * {@link getCommittedSchemaVersion} when only the version number is needed.
381
416
  *
382
417
  * @param backend - The database backend
383
418
  * @param graphId - The graph ID
@@ -435,6 +470,9 @@ declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, gr
435
470
  * further; it is a backward-compatible follow-up, not required for the
436
471
  * round-trip win above.
437
472
  *
473
+ * Returns only the version; for the document it names, see
474
+ * {@link getActiveSchema}.
475
+ *
438
476
  * @param backend - The database backend
439
477
  * @param graphId - The graph ID
440
478
  * @returns The active committed version, or `undefined` if the schema has not
@@ -442,4 +480,4 @@ declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, gr
442
480
  */
443
481
  declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
444
482
 
445
- export { KindRegistry as K, type MigrationHookContext as M, type SchemaManagerOptions as S, type SchemaValidationResult as a, applyDeprecatedKinds as b, assertSchemaCurrent as c, getCommittedSchemaVersion as d, ensureSchema as e, getSchemaChanges as f, getActiveSchema as g, isSchemaInitialized as h, initializeSchema as i, loadAndMergeGraphExtensionDocument as j, rollbackSchema as k, loadActiveSchemaWithBootstrap as l, migrateSchema as m, parseSerializedSchema as p, requiresMigration as r };
483
+ export { KindRegistry as K, type MigrateSchemaOptions as M, type SchemaManagerOptions as S, type MigrationHookContext as a, type SchemaValidationResult as b, applyDeprecatedKinds as c, assertSchemaCurrent as d, ensureSchema as e, getCommittedSchemaVersion as f, getActiveSchema as g, getSchemaChanges as h, initializeSchema as i, isSchemaInitialized as j, loadAndMergeGraphExtensionDocument as k, loadActiveSchemaWithBootstrap as l, migrateSchema as m, rollbackSchema as n, parseSerializedSchema as p, requiresMigration as r };
@@ -1,4 +1,4 @@
1
- import { y as SerializedNodeDef, z as SerializedEdgeDef, C as IndexEntity, I as IndexDeclaration, x as SerializedSchema } from './types-Dh-EgT-w.js';
1
+ import { z as SerializedNodeDef, H as SerializedEdgeDef, L as IndexEntity, I as IndexDeclaration, y as SerializedSchema } from './types-Cjvkj0jA.js';
2
2
 
3
3
  /**
4
4
  * Schema migration utilities.
@@ -1,4 +1,4 @@
1
- import { y as SerializedNodeDef, z as SerializedEdgeDef, C as IndexEntity, I as IndexDeclaration, x as SerializedSchema } from './types-Dh-EgT-w.cjs';
1
+ import { z as SerializedNodeDef, H as SerializedEdgeDef, L as IndexEntity, I as IndexDeclaration, y as SerializedSchema } from './types-Cjvkj0jA.cjs';
2
2
 
3
3
  /**
4
4
  * Schema migration utilities.
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { I as IndexDeclaration } from './types-Dh-EgT-w.js';
2
+ import { I as IndexDeclaration } from './types-Cjvkj0jA.cjs';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { I as IndexDeclaration } from './types-Dh-EgT-w.cjs';
2
+ import { I as IndexDeclaration } from './types-Cjvkj0jA.js';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -1,13 +1,14 @@
1
- import { G as GraphDef } from '../define-graph-Byslw2OO.cjs';
2
- import { Q as QueryAst } from '../types-Dh-EgT-w.cjs';
3
- import { a as Store } from '../store-view-CNcOG8bQ.cjs';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-G4sVM-76.cjs';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-G4sVM-76.cjs';
1
+ import { Q as QueryAst } from '../types-Cjvkj0jA.cjs';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../types-Cjvkj0jA.cjs';
3
+ import { G as GraphDef } from '../define-graph-DVF-oN1i.cjs';
4
+ import { a as Store } from '../store-view-w-md0nQ4.cjs';
5
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-6-WJmSD4.cjs';
6
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-6-WJmSD4.cjs';
6
7
  import 'zod';
7
- import '../temporal-CMpigMCW.cjs';
8
- import '../manager-U9_zopqr.cjs';
9
- import '../materialize-indexes-DzMCetZe.cjs';
10
- import '../searchable-B4mUXZT6.cjs';
8
+ import '../temporal-BCORwUau.cjs';
9
+ import '../manager-Cn0NFIhN.cjs';
10
+ import '../materialize-indexes-DVRhd5h4.cjs';
11
+ import '../searchable-BT7j9_IK.cjs';
11
12
 
12
13
  /**
13
14
  * A Store with profiling capabilities.
@@ -1,13 +1,14 @@
1
- import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
2
- import { Q as QueryAst } from '../types-Dh-EgT-w.js';
3
- import { a as Store } from '../store-view-6C2vTWqf.js';
4
- import { P as ProfilerOptions, a as ProfileReport } from '../types-D2rU5Taq.js';
5
- export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-D2rU5Taq.js';
1
+ import { Q as QueryAst } from '../types-Cjvkj0jA.js';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../types-Cjvkj0jA.js';
3
+ import { G as GraphDef } from '../define-graph-SvYXOl78.js';
4
+ import { a as Store } from '../store-view-Bvdku0Ht.js';
5
+ import { P as ProfilerOptions, a as ProfileReport } from '../types-COODtTJU.js';
6
+ export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-COODtTJU.js';
6
7
  import 'zod';
7
- import '../temporal-BtrTYTiB.js';
8
- import '../manager-Dl0-er1G.js';
9
- import '../materialize-indexes-BM3u0aXE.js';
10
- import '../searchable-C7jmPNLT.js';
8
+ import '../temporal--x9T8K4S.js';
9
+ import '../manager-B0KjKE93.js';
10
+ import '../materialize-indexes-BD4V3svD.js';
11
+ import '../searchable-CnYEancP.js';
11
12
 
12
13
  /**
13
14
  * A Store with profiling capabilities.
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SO5I5AI_cjs = require('../chunk-2SO5I5AI.cjs');
3
+ var chunk7V2FGGI2_cjs = require('../chunk-7V2FGGI2.cjs');
4
4
  require('../chunk-ZDH3DX3C.cjs');
5
- require('../chunk-CVK4T34X.cjs');
6
- var chunkECU53PMN_cjs = require('../chunk-ECU53PMN.cjs');
7
- require('../chunk-FSCJOTHF.cjs');
5
+ require('../chunk-CPEL3YIR.cjs');
6
+ var chunk3PRKZW6D_cjs = require('../chunk-3PRKZW6D.cjs');
7
+ require('../chunk-EQ7JKLZO.cjs');
8
8
  var chunkTRF4EBJT_cjs = require('../chunk-TRF4EBJT.cjs');
9
- require('../chunk-AO2WPYFZ.cjs');
10
- var chunkZBV4LQD2_cjs = require('../chunk-ZBV4LQD2.cjs');
9
+ require('../chunk-WBUFJ7BS.cjs');
10
+ var chunkZTAJL4DT_cjs = require('../chunk-ZTAJL4DT.cjs');
11
11
  require('../chunk-NAUA4PW5.cjs');
12
- require('../chunk-X2XOQZT3.cjs');
12
+ require('../chunk-U5W4LKZV.cjs');
13
13
  require('../chunk-SJDMVITW.cjs');
14
14
  require('../chunk-764JHTLT.cjs');
15
15
  require('../chunk-HAHNRASW.cjs');
16
16
  var chunkDI74SMXS_cjs = require('../chunk-DI74SMXS.cjs');
17
- var chunkKTBTSHU6_cjs = require('../chunk-KTBTSHU6.cjs');
17
+ var chunkC4F7VJ5D_cjs = require('../chunk-C4F7VJ5D.cjs');
18
18
  require('../chunk-TDXIBCGY.cjs');
19
19
 
20
20
  // src/provenance/index.ts
@@ -35,7 +35,7 @@ function edgeToKey(edge) {
35
35
  function keyToRef(key) {
36
36
  const separatorIndex = key.indexOf(KEY_SEPARATOR);
37
37
  if (separatorIndex === -1) {
38
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
38
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
39
39
  "Invalid provenance identity key.",
40
40
  { key },
41
41
  {
@@ -51,9 +51,9 @@ function sortedReferences(keys) {
51
51
  return [...keys].toSorted((left, right) => chunkTRF4EBJT_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
52
52
  }
53
53
  function parseNodeProps(row) {
54
- const parsed = chunkECU53PMN_cjs.rowPropsToObject(row.props);
54
+ const parsed = chunk3PRKZW6D_cjs.rowPropsToObject(row.props);
55
55
  if (!chunkDI74SMXS_cjs.isPlainObject(parsed)) {
56
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
56
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
57
57
  `Node ${row.kind}/${row.id} props are not an object.`,
58
58
  { kind: row.kind, id: row.id }
59
59
  );
@@ -65,7 +65,7 @@ function sourceRetractedState(row, retractedField) {
65
65
  const value = props[retractedField];
66
66
  if (value === void 0) return "available";
67
67
  if (typeof value !== "boolean") {
68
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
68
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
69
69
  `Provenance source field "${retractedField}" must contain a boolean value.`,
70
70
  { kind: row.kind, id: row.id, field: retractedField },
71
71
  {
@@ -83,26 +83,26 @@ function normalizeConfig(graph, config) {
83
83
  const derivesKind = config.derives.kind;
84
84
  const retractedField = config.source.retractedField ?? DEFAULT_RETRACTED_FIELD;
85
85
  if (sourceKinds.length === 0) {
86
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
86
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
87
87
  "Provenance retraction requires at least one source kind.",
88
88
  { role: "source" }
89
89
  );
90
90
  }
91
91
  if (factKinds.length === 0) {
92
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
92
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
93
93
  "Provenance retraction requires at least one fact kind.",
94
94
  { role: "fact" }
95
95
  );
96
96
  }
97
97
  const duplicateSourceKinds = duplicateValues(sourceKinds);
98
98
  if (duplicateSourceKinds.length > 0) {
99
- throw new chunkKTBTSHU6_cjs.ConfigurationError("Provenance source kinds must be unique.", {
99
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError("Provenance source kinds must be unique.", {
100
100
  duplicateSourceKinds
101
101
  });
102
102
  }
103
103
  const duplicateFactKinds = duplicateValues(factKinds);
104
104
  if (duplicateFactKinds.length > 0) {
105
- throw new chunkKTBTSHU6_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
105
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
106
106
  duplicateFactKinds
107
107
  });
108
108
  }
@@ -120,7 +120,7 @@ function normalizeConfig(graph, config) {
120
120
  if (factKinds.some(
121
121
  (kind) => sourceKinds.includes(kind) || kind === justificationKind
122
122
  )) {
123
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
123
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
124
124
  "Provenance fact kinds must be distinct from source and justification kinds.",
125
125
  { sourceKinds, justificationKind, factKinds }
126
126
  );
@@ -162,7 +162,7 @@ function duplicateValues(values) {
162
162
  }
163
163
  function assertKind(records, kind, role, noun, graphId) {
164
164
  if (Object.hasOwn(records, kind)) return;
165
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
165
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
166
166
  `Provenance ${role} kind "${kind}" is not a ${noun} kind in this graph.`,
167
167
  { role, kind, graphId }
168
168
  );
@@ -171,7 +171,7 @@ function assertSourceField(graph, sourceKind, retractedField) {
171
171
  const registration = graph.nodes[sourceKind];
172
172
  if (registration === void 0) return;
173
173
  if (Object.hasOwn(registration.type.schema.shape, retractedField)) return;
174
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
174
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
175
175
  `Provenance source kind "${sourceKind}" must include field "${retractedField}".`,
176
176
  { sourceKind, retractedField },
177
177
  {
@@ -186,14 +186,14 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
186
186
  const toKinds = new Set(registration.to.map((node) => node.kind));
187
187
  for (const kind of expected.fromKinds) {
188
188
  if (fromKinds.has(kind)) continue;
189
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
189
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
190
190
  `Provenance ${expected.role} edge "${edgeKind}" cannot start at "${kind}".`,
191
191
  { edgeKind, role: expected.role, expectedFrom: kind }
192
192
  );
193
193
  }
194
194
  for (const kind of expected.toKinds) {
195
195
  if (toKinds.has(kind)) continue;
196
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
196
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
197
197
  `Provenance ${expected.role} edge "${edgeKind}" cannot end at "${kind}".`,
198
198
  { edgeKind, role: expected.role, expectedTo: kind }
199
199
  );
@@ -299,7 +299,7 @@ function buildSupportEdges(config, rows) {
299
299
  };
300
300
  }
301
301
  async function loadSupportGraph(backend, graphId, config) {
302
- const asOf = chunkZBV4LQD2_cjs.nowIso();
302
+ const asOf = chunkZTAJL4DT_cjs.nowIso();
303
303
  const roles = await readRoles(backend, graphId, config, asOf);
304
304
  const supportEdges = buildSupportEdges(config, roles);
305
305
  const sourceRowsByKind = await Promise.all(
@@ -430,21 +430,21 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
430
430
  snapshot,
431
431
  affected,
432
432
  (key) => !snapshot.supportedFactKeys.has(key),
433
- chunkECU53PMN_cjs.isLiveNodeRow,
433
+ chunk3PRKZW6D_cjs.isLiveNodeRow,
434
434
  (row) => closeFactCurrency(backend, store, runHooks, row, lock)
435
435
  );
436
436
  await forEachAffectedFact(
437
437
  snapshot,
438
438
  affected,
439
439
  (key) => snapshot.supportedFactKeys.has(key),
440
- chunkECU53PMN_cjs.isTombstonedNodeRow,
440
+ chunk3PRKZW6D_cjs.isTombstonedNodeRow,
441
441
  (row) => reopenFactCurrency(backend, store, runHooks, row, lock)
442
442
  );
443
443
  }
444
444
  function getFactRegistration(store, row) {
445
445
  const registration = store.graph.nodes[row.kind];
446
446
  if (registration !== void 0) return registration;
447
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
447
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
448
448
  `Provenance fact kind "${row.kind}" is not a node kind in this graph.`,
449
449
  { kind: row.kind, graphId: store.graphId }
450
450
  );
@@ -452,8 +452,8 @@ function getFactRegistration(store, row) {
452
452
  async function closeFactCurrency(backend, store, runHooks, row, lock) {
453
453
  await runHooks("delete", row.kind, row.id, async () => {
454
454
  const registration = getFactRegistration(store, row);
455
- await chunk2SO5I5AI_cjs.applyNodeSoftDelete(
456
- chunk2SO5I5AI_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
455
+ await chunk7V2FGGI2_cjs.applyNodeSoftDelete(
456
+ chunk7V2FGGI2_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
457
457
  {
458
458
  existing: row,
459
459
  schema: registration.type.schema,
@@ -468,8 +468,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
468
468
  async function reopenFactCurrency(backend, store, runHooks, row, lock) {
469
469
  await runHooks("update", row.kind, row.id, async () => {
470
470
  const registration = getFactRegistration(store, row);
471
- await chunk2SO5I5AI_cjs.applyNodeResurrect(
472
- chunk2SO5I5AI_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
471
+ await chunk7V2FGGI2_cjs.applyNodeResurrect(
472
+ chunk7V2FGGI2_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
473
473
  {
474
474
  existing: row,
475
475
  schema: registration.type.schema,
@@ -482,7 +482,7 @@ async function reopenFactCurrency(backend, store, runHooks, row, lock) {
482
482
  function getTransactionNodeCollection(tx, kind) {
483
483
  const collection = tx.getNodeCollection(kind);
484
484
  if (collection !== void 0) return collection;
485
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
485
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
486
486
  `Provenance source kind "${kind}" is not available on this transaction.`,
487
487
  { kind }
488
488
  );
@@ -495,14 +495,14 @@ async function runTransition(store, config, sources, retracted) {
495
495
  const uniqueSources = uniqueNodeReferences(sources);
496
496
  for (const source of uniqueSources) {
497
497
  if (config.sourceKinds.includes(source.kind)) continue;
498
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
498
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
499
499
  `Provenance retraction source must be one of: ${config.sourceKinds.join(", ")}.`,
500
500
  { expectedKinds: config.sourceKinds, actualKind: source.kind }
501
501
  );
502
502
  }
503
503
  return store.transaction(async (tx) => {
504
- const backend = chunk2SO5I5AI_cjs.transactionBackend(tx);
505
- const lock = await chunk2SO5I5AI_cjs.lockRecordedGraphWrite(backend, store.graphId);
504
+ const backend = chunk7V2FGGI2_cjs.transactionBackend(tx);
505
+ const lock = await chunk7V2FGGI2_cjs.lockRecordedGraphWrite(backend, store.graphId);
506
506
  const rows = await Promise.all(
507
507
  uniqueSources.map(
508
508
  (source) => backend.getNode(store.graphId, source.kind, source.id)
@@ -511,7 +511,7 @@ async function runTransition(store, config, sources, retracted) {
511
511
  const sourceRows = uniqueSources.map((source, index) => {
512
512
  const sourceRow = rows[index];
513
513
  if (sourceRow === void 0 || sourceRow.deleted_at !== void 0) {
514
- throw new chunkKTBTSHU6_cjs.NodeNotFoundError(source.kind, source.id);
514
+ throw new chunkC4F7VJ5D_cjs.NodeNotFoundError(source.kind, source.id);
515
515
  }
516
516
  return { source, row: sourceRow };
517
517
  });
@@ -538,7 +538,7 @@ async function runTransition(store, config, sources, retracted) {
538
538
  await synchronizeFactCurrency(
539
539
  backend,
540
540
  store,
541
- chunk2SO5I5AI_cjs.transactionNodeOperationHookRunner(tx),
541
+ chunk7V2FGGI2_cjs.transactionNodeOperationHookRunner(tx),
542
542
  after,
543
543
  affected,
544
544
  lock
@@ -564,8 +564,8 @@ function createRetractionCapability(store, config) {
564
564
  unRetractMany: (sources) => transition(sources, false),
565
565
  async holding() {
566
566
  return store.transaction(async (tx) => {
567
- const backend = chunk2SO5I5AI_cjs.transactionBackend(tx);
568
- await chunk2SO5I5AI_cjs.lockRecordedGraphWrite(backend, store.graphId);
567
+ const backend = chunk7V2FGGI2_cjs.transactionBackend(tx);
568
+ await chunk7V2FGGI2_cjs.lockRecordedGraphWrite(backend, store.graphId);
569
569
  const snapshot = await computeSupport(
570
570
  backend,
571
571
  store.graphId,
@@ -580,7 +580,7 @@ function createRetractionCapability(store, config) {
580
580
  }
581
581
  function assertRetractionHistoryEnabled(store) {
582
582
  if (!store.historyEnabled) {
583
- throw new chunkKTBTSHU6_cjs.ConfigurationError(
583
+ throw new chunkC4F7VJ5D_cjs.ConfigurationError(
584
584
  "createRetractionCapability requires a store created with { history: true }.",
585
585
  { graphId: store.graphId },
586
586
  {