@nicia-ai/typegraph 0.37.0 → 0.38.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 (372) hide show
  1. package/README.md +12 -10
  2. package/dist/backend/drizzle/indexes.cjs +32 -0
  3. package/dist/backend/drizzle/indexes.cjs.map +1 -0
  4. package/dist/backend/drizzle/indexes.d.cts +43 -0
  5. package/dist/backend/drizzle/indexes.d.ts +43 -0
  6. package/dist/backend/drizzle/indexes.js +11 -0
  7. package/dist/backend/drizzle/indexes.js.map +1 -0
  8. package/dist/backend/index.cjs +161 -0
  9. package/dist/backend/index.cjs.map +1 -0
  10. package/dist/backend/index.d.cts +3 -0
  11. package/dist/backend/index.d.ts +3 -0
  12. package/dist/backend/index.js +8 -0
  13. package/dist/backend/index.js.map +1 -0
  14. package/dist/backend/postgres/index.cjs +32 -28
  15. package/dist/backend/postgres/index.d.cts +13 -12
  16. package/dist/backend/postgres/index.d.ts +13 -12
  17. package/dist/backend/postgres/index.js +19 -15
  18. package/dist/backend/postgres/pglite-store.cjs +67 -0
  19. package/dist/backend/postgres/pglite-store.cjs.map +1 -0
  20. package/dist/backend/postgres/pglite-store.d.cts +38 -0
  21. package/dist/backend/postgres/pglite-store.d.ts +38 -0
  22. package/dist/backend/postgres/pglite-store.js +65 -0
  23. package/dist/backend/postgres/pglite-store.js.map +1 -0
  24. package/dist/backend/postgres/pglite.cjs +25 -50
  25. package/dist/backend/postgres/pglite.cjs.map +1 -1
  26. package/dist/backend/postgres/pglite.d.cts +10 -9
  27. package/dist/backend/postgres/pglite.d.ts +10 -9
  28. package/dist/backend/postgres/pglite.js +20 -52
  29. package/dist/backend/postgres/pglite.js.map +1 -1
  30. package/dist/backend/sqlite/index.cjs +29 -25
  31. package/dist/backend/sqlite/index.d.cts +11 -11
  32. package/dist/backend/sqlite/index.d.ts +11 -11
  33. package/dist/backend/sqlite/index.js +17 -13
  34. package/dist/backend/sqlite/libsql.cjs +23 -19
  35. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  36. package/dist/backend/sqlite/libsql.d.cts +9 -10
  37. package/dist/backend/sqlite/libsql.d.ts +9 -10
  38. package/dist/backend/sqlite/libsql.js +19 -15
  39. package/dist/backend/sqlite/libsql.js.map +1 -1
  40. package/dist/backend/sqlite/local-store.cjs +72 -0
  41. package/dist/backend/sqlite/local-store.cjs.map +1 -0
  42. package/dist/backend/sqlite/local-store.d.cts +42 -0
  43. package/dist/backend/sqlite/local-store.d.ts +42 -0
  44. package/dist/backend/sqlite/local-store.js +67 -0
  45. package/dist/backend/sqlite/local-store.js.map +1 -0
  46. package/dist/backend/sqlite/local.cjs +28 -183
  47. package/dist/backend/sqlite/local.cjs.map +1 -1
  48. package/dist/backend/sqlite/local.d.cts +8 -81
  49. package/dist/backend/sqlite/local.d.ts +8 -81
  50. package/dist/backend/sqlite/local.js +20 -180
  51. package/dist/backend/sqlite/local.js.map +1 -1
  52. package/dist/chunk-2EBMPJBO.js +16 -0
  53. package/dist/chunk-2EBMPJBO.js.map +1 -0
  54. package/dist/{chunk-NBP2WTJW.cjs → chunk-2SL7OGPR.cjs} +2900 -1597
  55. package/dist/chunk-2SL7OGPR.cjs.map +1 -0
  56. package/dist/chunk-35S6P5ZU.js +27 -0
  57. package/dist/chunk-35S6P5ZU.js.map +1 -0
  58. package/dist/chunk-3LKL3S6X.js +50 -0
  59. package/dist/chunk-3LKL3S6X.js.map +1 -0
  60. package/dist/chunk-6G5CQ6JX.js +47 -0
  61. package/dist/chunk-6G5CQ6JX.js.map +1 -0
  62. package/dist/chunk-6XDBRDZE.js +312 -0
  63. package/dist/chunk-6XDBRDZE.js.map +1 -0
  64. package/dist/chunk-764JHTLT.cjs +15 -0
  65. package/dist/chunk-764JHTLT.cjs.map +1 -0
  66. package/dist/chunk-76HE7DJP.js +68 -0
  67. package/dist/chunk-76HE7DJP.js.map +1 -0
  68. package/dist/{chunk-VGDDG3XJ.cjs → chunk-7M3NACL3.cjs} +12 -12
  69. package/dist/{chunk-VGDDG3XJ.cjs.map → chunk-7M3NACL3.cjs.map} +1 -1
  70. package/dist/{chunk-NXQFATMF.cjs → chunk-7VLCN3JB.cjs} +153 -123
  71. package/dist/chunk-7VLCN3JB.cjs.map +1 -0
  72. package/dist/{chunk-552KNYQJ.js → chunk-A2FGSWMQ.js} +1907 -607
  73. package/dist/chunk-A2FGSWMQ.js.map +1 -0
  74. package/dist/chunk-AOL64O4Z.js +165 -0
  75. package/dist/chunk-AOL64O4Z.js.map +1 -0
  76. package/dist/{chunk-27SSDCEP.cjs → chunk-B63IFHXR.cjs} +53 -74
  77. package/dist/chunk-B63IFHXR.cjs.map +1 -0
  78. package/dist/{chunk-3XXGYU62.cjs → chunk-BKAKAVRW.cjs} +56 -53
  79. package/dist/chunk-BKAKAVRW.cjs.map +1 -0
  80. package/dist/{chunk-YTSN73ND.js → chunk-BQITNFQJ.js} +3 -3
  81. package/dist/{chunk-YTSN73ND.js.map → chunk-BQITNFQJ.js.map} +1 -1
  82. package/dist/{chunk-NUIG3BCV.cjs → chunk-CQC6VBAF.cjs} +93 -155
  83. package/dist/chunk-CQC6VBAF.cjs.map +1 -0
  84. package/dist/{chunk-6EEO3OVU.cjs → chunk-CWX77JB4.cjs} +22 -59
  85. package/dist/chunk-CWX77JB4.cjs.map +1 -0
  86. package/dist/{chunk-UGZUAYAR.js → chunk-D7PG5D5K.js} +4 -3
  87. package/dist/chunk-D7PG5D5K.js.map +1 -0
  88. package/dist/chunk-DDCIXXOO.js +9 -0
  89. package/dist/chunk-DDCIXXOO.js.map +1 -0
  90. package/dist/chunk-DDCYVIVV.cjs +44 -0
  91. package/dist/chunk-DDCYVIVV.cjs.map +1 -0
  92. package/dist/{chunk-XPCZADMT.cjs → chunk-DOVMTPKE.cjs} +89 -27
  93. package/dist/chunk-DOVMTPKE.cjs.map +1 -0
  94. package/dist/{chunk-5PNMDJ7J.js → chunk-DPNA466P.js} +14 -9
  95. package/dist/chunk-DPNA466P.js.map +1 -0
  96. package/dist/{chunk-BYPOGQWK.js → chunk-DRACN6XG.js} +6 -4
  97. package/dist/chunk-DRACN6XG.js.map +1 -0
  98. package/dist/chunk-E6TXEISH.cjs +175 -0
  99. package/dist/chunk-E6TXEISH.cjs.map +1 -0
  100. package/dist/{chunk-TKT2XHED.js → chunk-E6YZRKMM.js} +13 -12
  101. package/dist/chunk-E6YZRKMM.js.map +1 -0
  102. package/dist/{chunk-3C2RYI6L.cjs → chunk-EOJFGECD.cjs} +11 -11
  103. package/dist/chunk-EOJFGECD.cjs.map +1 -0
  104. package/dist/{chunk-XWV4JT34.js → chunk-ERZ4QPQX.js} +27 -22
  105. package/dist/chunk-ERZ4QPQX.js.map +1 -0
  106. package/dist/{chunk-DFVLCOP6.js → chunk-EZH7FNUS.js} +3 -3
  107. package/dist/{chunk-DFVLCOP6.js.map → chunk-EZH7FNUS.js.map} +1 -1
  108. package/dist/{chunk-WWFHO375.cjs → chunk-FJMPR3OH.cjs} +4 -3
  109. package/dist/chunk-FJMPR3OH.cjs.map +1 -0
  110. package/dist/chunk-FMNUSGZ4.cjs +12 -0
  111. package/dist/chunk-FMNUSGZ4.cjs.map +1 -0
  112. package/dist/{chunk-K3Q3LJY3.js → chunk-G32AO634.js} +201 -100
  113. package/dist/chunk-G32AO634.js.map +1 -0
  114. package/dist/{chunk-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
  115. package/dist/chunk-G3CSQLLT.js.map +1 -0
  116. package/dist/chunk-GNPGGLAE.cjs +212 -0
  117. package/dist/chunk-GNPGGLAE.cjs.map +1 -0
  118. package/dist/{chunk-QARBLBXT.cjs → chunk-GUUWKPTK.cjs} +7 -7
  119. package/dist/{chunk-QARBLBXT.cjs.map → chunk-GUUWKPTK.cjs.map} +1 -1
  120. package/dist/chunk-GYA4JRP5.js +31 -0
  121. package/dist/chunk-GYA4JRP5.js.map +1 -0
  122. package/dist/chunk-I6FX7AAG.js +39 -0
  123. package/dist/chunk-I6FX7AAG.js.map +1 -0
  124. package/dist/chunk-IMQKXL4E.cjs +12 -0
  125. package/dist/{chunk-QSXTWU4U.cjs.map → chunk-IMQKXL4E.cjs.map} +1 -1
  126. package/dist/chunk-J6IJARLG.js +94 -0
  127. package/dist/chunk-J6IJARLG.js.map +1 -0
  128. package/dist/{chunk-W63OVYY4.js → chunk-K34OPSJK.js} +3 -3
  129. package/dist/{chunk-W63OVYY4.js.map → chunk-K34OPSJK.js.map} +1 -1
  130. package/dist/{chunk-TGOMW4MB.cjs → chunk-KCLZHYPU.cjs} +110 -109
  131. package/dist/chunk-KCLZHYPU.cjs.map +1 -0
  132. package/dist/{chunk-XGPUQ56G.js → chunk-KFLXWVUJ.js} +4 -38
  133. package/dist/chunk-KFLXWVUJ.js.map +1 -0
  134. package/dist/{chunk-3DS7Z4T4.cjs → chunk-LZ3TVJY4.cjs} +44 -43
  135. package/dist/chunk-LZ3TVJY4.cjs.map +1 -0
  136. package/dist/{chunk-UXLSNRYL.js → chunk-MTNEGGM2.js} +4 -4
  137. package/dist/chunk-MTNEGGM2.js.map +1 -0
  138. package/dist/{chunk-IP3CGGPA.cjs → chunk-N2V3HJFV.cjs} +92 -185
  139. package/dist/chunk-N2V3HJFV.cjs.map +1 -0
  140. package/dist/chunk-NAUA4PW5.cjs +28 -0
  141. package/dist/chunk-NAUA4PW5.cjs.map +1 -0
  142. package/dist/chunk-NMQ6C6TS.cjs +61 -0
  143. package/dist/chunk-NMQ6C6TS.cjs.map +1 -0
  144. package/dist/{chunk-2N6EOBTH.cjs → chunk-NPWACFQJ.cjs} +58 -53
  145. package/dist/chunk-NPWACFQJ.cjs.map +1 -0
  146. package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
  147. package/dist/chunk-NT6ILURI.cjs.map +1 -0
  148. package/dist/chunk-NU23DUSJ.cjs +192 -0
  149. package/dist/chunk-NU23DUSJ.cjs.map +1 -0
  150. package/dist/{chunk-WOJMKB3N.cjs → chunk-NWYCOFEZ.cjs} +1677 -308
  151. package/dist/chunk-NWYCOFEZ.cjs.map +1 -0
  152. package/dist/{chunk-3GH67G4Z.cjs → chunk-O5H62ZWJ.cjs} +4 -42
  153. package/dist/chunk-O5H62ZWJ.cjs.map +1 -0
  154. package/dist/{chunk-3SLPDKHQ.js → chunk-PH4IJ3V5.js} +5 -77
  155. package/dist/chunk-PH4IJ3V5.js.map +1 -0
  156. package/dist/chunk-PWXGB77L.cjs +56 -0
  157. package/dist/chunk-PWXGB77L.cjs.map +1 -0
  158. package/dist/chunk-PZHC5GCD.js +193 -0
  159. package/dist/chunk-PZHC5GCD.js.map +1 -0
  160. package/dist/chunk-QMQLUA66.js +12 -0
  161. package/dist/chunk-QMQLUA66.js.map +1 -0
  162. package/dist/{chunk-5WWVZMVX.js → chunk-QZ7A6HBM.js} +2 -2
  163. package/dist/{chunk-5WWVZMVX.js.map → chunk-QZ7A6HBM.js.map} +1 -1
  164. package/dist/{chunk-VKGKDOKR.js → chunk-RQPRCEIO.js} +1539 -206
  165. package/dist/chunk-RQPRCEIO.js.map +1 -0
  166. package/dist/chunk-RW24SAHI.cjs +74 -0
  167. package/dist/chunk-RW24SAHI.cjs.map +1 -0
  168. package/dist/{chunk-BVRDGYXQ.cjs → chunk-SAFZ6JTI.cjs} +14 -9
  169. package/dist/chunk-SAFZ6JTI.cjs.map +1 -0
  170. package/dist/{chunk-L7HQ2OSI.js → chunk-SCTZRFW5.js} +87 -166
  171. package/dist/chunk-SCTZRFW5.js.map +1 -0
  172. package/dist/{chunk-5KPNWT6X.js → chunk-SDHV2MWU.js} +24 -45
  173. package/dist/chunk-SDHV2MWU.js.map +1 -0
  174. package/dist/chunk-SVJ5GEXW.cjs +45 -0
  175. package/dist/chunk-SVJ5GEXW.cjs.map +1 -0
  176. package/dist/chunk-SVUKGWSN.cjs +102 -0
  177. package/dist/chunk-SVUKGWSN.cjs.map +1 -0
  178. package/dist/chunk-TAUGGLNQ.js +59 -0
  179. package/dist/chunk-TAUGGLNQ.js.map +1 -0
  180. package/dist/{chunk-J4IUSYFF.js → chunk-TE5ZA4VX.js} +69 -27
  181. package/dist/chunk-TE5ZA4VX.js.map +1 -0
  182. package/dist/{chunk-A42GCBGX.cjs → chunk-TRF4EBJT.cjs} +6 -4
  183. package/dist/chunk-TRF4EBJT.cjs.map +1 -0
  184. package/dist/{chunk-KQJ54OG5.js → chunk-U4JDJKPD.js} +19 -56
  185. package/dist/chunk-U4JDJKPD.js.map +1 -0
  186. package/dist/chunk-UH2USOMG.cjs +627 -0
  187. package/dist/chunk-UH2USOMG.cjs.map +1 -0
  188. package/dist/{chunk-RCVLFTCT.js → chunk-UPXDVI3T.js} +13 -12
  189. package/dist/chunk-UPXDVI3T.js.map +1 -0
  190. package/dist/{chunk-5VQM6VWP.cjs → chunk-UWG5GX6E.cjs} +2 -2
  191. package/dist/{chunk-5VQM6VWP.cjs.map → chunk-UWG5GX6E.cjs.map} +1 -1
  192. package/dist/{chunk-3RWZPJKV.js → chunk-VBH7ZXSZ.js} +21 -78
  193. package/dist/chunk-VBH7ZXSZ.js.map +1 -0
  194. package/dist/{chunk-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
  195. package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
  196. package/dist/chunk-X4PVHAZ6.cjs +83 -0
  197. package/dist/chunk-X4PVHAZ6.cjs.map +1 -0
  198. package/dist/{chunk-UYQMBBWJ.js → chunk-X6CNEA32.js} +23 -20
  199. package/dist/chunk-X6CNEA32.js.map +1 -0
  200. package/dist/chunk-X6RDQ5NB.cjs +335 -0
  201. package/dist/chunk-X6RDQ5NB.cjs.map +1 -0
  202. package/dist/chunk-XD6X7O5R.js +184 -0
  203. package/dist/chunk-XD6X7O5R.js.map +1 -0
  204. package/dist/{chunk-DIQ3AV5W.cjs → chunk-XFY73JWD.cjs} +324 -224
  205. package/dist/chunk-XFY73JWD.cjs.map +1 -0
  206. package/dist/{chunk-DEFQM7JU.cjs → chunk-XRU7V7FF.cjs} +7 -7
  207. package/dist/{chunk-DEFQM7JU.cjs.map → chunk-XRU7V7FF.cjs.map} +1 -1
  208. package/dist/{chunk-TPF25IG6.js → chunk-XZA3Y4YH.js} +3 -3
  209. package/dist/{chunk-TPF25IG6.js.map → chunk-XZA3Y4YH.js.map} +1 -1
  210. package/dist/chunk-Y7M44XEK.js +462 -0
  211. package/dist/chunk-Y7M44XEK.js.map +1 -0
  212. package/dist/{chunk-RRSNR3TP.js → chunk-YIRLBUNN.js} +3 -3
  213. package/dist/{chunk-RRSNR3TP.js.map → chunk-YIRLBUNN.js.map} +1 -1
  214. package/dist/{chunk-IXGYRP2P.js → chunk-YJDSPA5E.js} +79 -49
  215. package/dist/chunk-YJDSPA5E.js.map +1 -0
  216. package/dist/{chunk-JBNOGRKW.cjs → chunk-YLINFV7Z.cjs} +157 -115
  217. package/dist/chunk-YLINFV7Z.cjs.map +1 -0
  218. package/dist/{chunk-QERAIDRJ.js → chunk-Z2PPIVOO.js} +82 -22
  219. package/dist/chunk-Z2PPIVOO.js.map +1 -0
  220. package/dist/chunk-Z5QHVL5U.cjs +12 -0
  221. package/dist/chunk-Z5QHVL5U.cjs.map +1 -0
  222. package/dist/chunk-ZDH3DX3C.cjs +30 -0
  223. package/dist/chunk-ZDH3DX3C.cjs.map +1 -0
  224. package/dist/chunk-ZE6NVENI.js +77 -0
  225. package/dist/chunk-ZE6NVENI.js.map +1 -0
  226. package/dist/chunk-ZHX4KEM7.cjs +49 -0
  227. package/dist/chunk-ZHX4KEM7.cjs.map +1 -0
  228. package/dist/chunk-ZKZAIX42.cjs +479 -0
  229. package/dist/chunk-ZKZAIX42.cjs.map +1 -0
  230. package/dist/{chunk-TEDRJXOG.cjs → chunk-ZY4GXIVN.cjs} +5 -5
  231. package/dist/{chunk-TEDRJXOG.cjs.map → chunk-ZY4GXIVN.cjs.map} +1 -1
  232. package/dist/core/index.cjs +117 -0
  233. package/dist/core/index.cjs.map +1 -0
  234. package/dist/core/index.d.cts +225 -0
  235. package/dist/core/index.d.ts +225 -0
  236. package/dist/core/index.js +12 -0
  237. package/dist/core/index.js.map +1 -0
  238. package/dist/{ddl-CS0KUVwB.d.ts → ddl-Dx3Z0_WC.d.ts} +3 -3
  239. package/dist/{ddl-BD-ZfKeX.d.cts → ddl-J6sDyABg.d.cts} +3 -3
  240. package/dist/define-graph-CzEvA_8F.d.cts +174 -0
  241. package/dist/define-graph-DRo9xpYN.d.ts +174 -0
  242. package/dist/{extension-types-BM2ACfYO.d.cts → extension-types-BLEVH4SG.d.cts} +1 -1
  243. package/dist/{extension-types-BM2ACfYO.d.ts → extension-types-BLEVH4SG.d.ts} +1 -1
  244. package/dist/graph-extension/index.cjs +21 -19
  245. package/dist/graph-extension/index.d.cts +4 -4
  246. package/dist/graph-extension/index.d.ts +4 -4
  247. package/dist/graph-extension/index.js +6 -4
  248. package/dist/graph-merge/index.cjs +265 -214
  249. package/dist/graph-merge/index.cjs.map +1 -1
  250. package/dist/graph-merge/index.d.cts +8 -89
  251. package/dist/graph-merge/index.d.ts +8 -89
  252. package/dist/graph-merge/index.js +141 -90
  253. package/dist/graph-merge/index.js.map +1 -1
  254. package/dist/{index-BeacbPoe.d.ts → index-BD_3TCgh.d.ts} +6 -4
  255. package/dist/{index-BPM59vsg.d.cts → index-BihFPsPu.d.cts} +6 -4
  256. package/dist/{fulltext-strategy-C27vXaeB.d.cts → index-Bq7vSPHy.d.ts} +3195 -2646
  257. package/dist/{fulltext-strategy-DebsMrqg.d.ts → index-CrFL_ENI.d.cts} +3195 -2646
  258. package/dist/index.cjs +326 -315
  259. package/dist/index.cjs.map +1 -1
  260. package/dist/index.d.cts +59 -240
  261. package/dist/index.d.ts +59 -240
  262. package/dist/index.js +46 -79
  263. package/dist/index.js.map +1 -1
  264. package/dist/indexes/index.cjs +26 -38
  265. package/dist/indexes/index.d.cts +6 -41
  266. package/dist/indexes/index.d.ts +6 -41
  267. package/dist/indexes/index.js +14 -10
  268. package/dist/interchange/index.cjs +48 -39
  269. package/dist/interchange/index.cjs.map +1 -1
  270. package/dist/interchange/index.d.cts +7 -8
  271. package/dist/interchange/index.d.ts +7 -8
  272. package/dist/interchange/index.js +23 -14
  273. package/dist/interchange/index.js.map +1 -1
  274. package/dist/local-options-CZ1BnIoF.d.cts +29 -0
  275. package/dist/local-options-CZ1BnIoF.d.ts +29 -0
  276. package/dist/{manager-D00_NXvT.d.ts → manager-CASfhmzV.d.ts} +4 -173
  277. package/dist/{manager-nU1vTJLy.d.cts → manager-nCEJiYBb.d.cts} +4 -173
  278. package/dist/{materialize-indexes-zK2J_flP.d.ts → materialize-indexes-D4iei4Kp.d.ts} +1 -1
  279. package/dist/{materialize-indexes-CuR3gAZb.d.cts → materialize-indexes-ExQ6OrAh.d.cts} +1 -1
  280. package/dist/{postgres-IaBA4RgE.d.ts → postgres-Cl1ZAN1G.d.ts} +1 -1
  281. package/dist/{postgres-YrYmPlaU.d.cts → postgres-DMgIKQU-.d.cts} +1 -1
  282. package/dist/postgres-execution-fKW0qRiN.d.cts +14 -0
  283. package/dist/postgres-execution-fKW0qRiN.d.ts +14 -0
  284. package/dist/profiler/index.cjs +9 -8
  285. package/dist/profiler/index.cjs.map +1 -1
  286. package/dist/profiler/index.d.cts +9 -17
  287. package/dist/profiler/index.d.ts +9 -17
  288. package/dist/profiler/index.js +8 -7
  289. package/dist/profiler/index.js.map +1 -1
  290. package/dist/provenance/index.cjs +61 -55
  291. package/dist/provenance/index.cjs.map +1 -1
  292. package/dist/provenance/index.d.cts +7 -8
  293. package/dist/provenance/index.d.ts +7 -8
  294. package/dist/provenance/index.js +34 -28
  295. package/dist/provenance/index.js.map +1 -1
  296. package/dist/schema/index.cjs +46 -37
  297. package/dist/schema/index.cjs.map +1 -1
  298. package/dist/schema/index.d.cts +8 -10
  299. package/dist/schema/index.d.ts +8 -10
  300. package/dist/schema/index.js +22 -13
  301. package/dist/schema/index.js.map +1 -1
  302. package/dist/{sqlite-BUOHPx7p.d.ts → sqlite-BDkW39aa.d.cts} +1 -1
  303. package/dist/{sqlite-Pp8O19WE.d.cts → sqlite-CYfhvESj.d.ts} +1 -1
  304. package/dist/sqlite-execution-DwbE2a9y.d.cts +32 -0
  305. package/dist/sqlite-execution-DwbE2a9y.d.ts +32 -0
  306. package/dist/{store-view-X96Rd00T.d.cts → store-view-BoHqdHjB.d.cts} +394 -1393
  307. package/dist/{store-view-ANL6mTph.d.ts → store-view-Ctq-3OHy.d.ts} +394 -1393
  308. package/dist/temporal-BC_NQV5Y.d.cts +281 -0
  309. package/dist/temporal-DqtOEo_B.d.ts +281 -0
  310. package/dist/{types-r-Zyq2Hz.d.cts → types-COq3-vMC.d.cts} +2 -2
  311. package/dist/{types-wsvuBgPK.d.ts → types-CUevi_D1.d.ts} +2 -2
  312. package/dist/{where-CJOpJj3a.d.ts → where-BdE_cYtx.d.ts} +5 -5
  313. package/dist/{where-K3uBP33l.d.cts → where-C92TXCzT.d.cts} +5 -5
  314. package/package.json +37 -6
  315. package/dist/chunk-27SSDCEP.cjs.map +0 -1
  316. package/dist/chunk-2N6EOBTH.cjs.map +0 -1
  317. package/dist/chunk-3C2RYI6L.cjs.map +0 -1
  318. package/dist/chunk-3DS7Z4T4.cjs.map +0 -1
  319. package/dist/chunk-3GH67G4Z.cjs.map +0 -1
  320. package/dist/chunk-3RWZPJKV.js.map +0 -1
  321. package/dist/chunk-3SLPDKHQ.js.map +0 -1
  322. package/dist/chunk-3XXGYU62.cjs.map +0 -1
  323. package/dist/chunk-44TA22QT.js +0 -1478
  324. package/dist/chunk-44TA22QT.js.map +0 -1
  325. package/dist/chunk-552KNYQJ.js.map +0 -1
  326. package/dist/chunk-5KEQ74YU.cjs.map +0 -1
  327. package/dist/chunk-5KPNWT6X.js.map +0 -1
  328. package/dist/chunk-5PNMDJ7J.js.map +0 -1
  329. package/dist/chunk-6EEO3OVU.cjs.map +0 -1
  330. package/dist/chunk-7YSP4V4R.cjs +0 -69
  331. package/dist/chunk-7YSP4V4R.cjs.map +0 -1
  332. package/dist/chunk-A42GCBGX.cjs.map +0 -1
  333. package/dist/chunk-BVRDGYXQ.cjs.map +0 -1
  334. package/dist/chunk-BYPOGQWK.js.map +0 -1
  335. package/dist/chunk-CUHM5CWJ.cjs +0 -12
  336. package/dist/chunk-CUHM5CWJ.cjs.map +0 -1
  337. package/dist/chunk-DIQ3AV5W.cjs.map +0 -1
  338. package/dist/chunk-EXU3RASM.js.map +0 -1
  339. package/dist/chunk-IP3CGGPA.cjs.map +0 -1
  340. package/dist/chunk-IPSVVTWT.cjs +0 -1540
  341. package/dist/chunk-IPSVVTWT.cjs.map +0 -1
  342. package/dist/chunk-IXGYRP2P.js.map +0 -1
  343. package/dist/chunk-J4IUSYFF.js.map +0 -1
  344. package/dist/chunk-JBNOGRKW.cjs.map +0 -1
  345. package/dist/chunk-K3Q3LJY3.js.map +0 -1
  346. package/dist/chunk-KQJ54OG5.js.map +0 -1
  347. package/dist/chunk-L7HQ2OSI.js.map +0 -1
  348. package/dist/chunk-M6VES7V6.js +0 -239
  349. package/dist/chunk-M6VES7V6.js.map +0 -1
  350. package/dist/chunk-NBP2WTJW.cjs.map +0 -1
  351. package/dist/chunk-NUIG3BCV.cjs.map +0 -1
  352. package/dist/chunk-NXQFATMF.cjs.map +0 -1
  353. package/dist/chunk-OHMP6N2J.js +0 -47
  354. package/dist/chunk-OHMP6N2J.js.map +0 -1
  355. package/dist/chunk-QERAIDRJ.js.map +0 -1
  356. package/dist/chunk-QSXTWU4U.cjs +0 -12
  357. package/dist/chunk-RCVLFTCT.js.map +0 -1
  358. package/dist/chunk-TGOMW4MB.cjs.map +0 -1
  359. package/dist/chunk-TKT2XHED.js.map +0 -1
  360. package/dist/chunk-UGZUAYAR.js.map +0 -1
  361. package/dist/chunk-UXLSNRYL.js.map +0 -1
  362. package/dist/chunk-UYQMBBWJ.js.map +0 -1
  363. package/dist/chunk-VKGKDOKR.js.map +0 -1
  364. package/dist/chunk-VL2V6PEN.cjs +0 -261
  365. package/dist/chunk-VL2V6PEN.cjs.map +0 -1
  366. package/dist/chunk-WOJMKB3N.cjs.map +0 -1
  367. package/dist/chunk-WWFHO375.cjs.map +0 -1
  368. package/dist/chunk-XGPUQ56G.js.map +0 -1
  369. package/dist/chunk-XGU7DZDA.cjs +0 -1095
  370. package/dist/chunk-XGU7DZDA.cjs.map +0 -1
  371. package/dist/chunk-XPCZADMT.cjs.map +0 -1
  372. package/dist/chunk-XWV4JT34.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,244 +1,70 @@
1
- import { z } from 'zod';
2
- import { f as KindAnnotations, N as NodeType, g as EdgeType } from './extension-types-BM2ACfYO.js';
3
- export { A as AnyEdgeType, C as CURRENT_GRAPH_EXTENSION_VERSION, m as Cardinality, n as Collation, D as DeleteBehavior, e as EdgeId, o as EdgeProps, E as EdgeRegistration, p as EdgeTypeWithEndpoints, q as EndpointExistence, c as GraphDefaults, G as GraphExtension, h as GraphExtensionVersion, J as JsonValue, L as LEGACY_GRAPH_EXTENSION_VERSION, d as NodeId, r as NodeProps, b as NodeRegistration, T as TemporalMode, U as UniqueConstraint, s as UniquenessScope, t as asEdgeId, u as asNodeId, v as isEdgeType, w as isEdgeTypeWithEndpoints, x as isNodeType } from './extension-types-BM2ACfYO.js';
4
- import { K as InferenceType, M as MetaEdge, V as VectorStrategy, G as GraphBackend, O as OntologyRelation, L as AggregateExpr, P as FieldRef, T as ComparisonOp, U as AggregateComparisonPredicate, W as TraversalDirection } from './fulltext-strategy-DebsMrqg.js';
5
- export { X as AdoptedTransaction, B as BackendCapabilities, Y as BackendIdentity, Z as BackendLifecycle, _ as BackendMaintenance, $ as BackendTransactions, a0 as CommitSchemaVersionExpected, a1 as CommitSchemaVersionParams, a2 as CompiledRowsSql, a3 as CompiledSelectSql, a4 as CompiledStatementSql, a5 as ContributionMaterializationBackend, a6 as DEFAULT_SQL_SCHEMA, a7 as DeleteFulltextBatchParams, a8 as EdgeEntityReadBackend, a9 as EdgeEntityWriteBackend, d as EdgeIndexConfig, E as EdgeIndexDeclaration, e as EdgeIndexDirection, f as EdgeIndexWhereBuilder, aa as ExternalRecordedReadSource, ab as FilteredApproximateSearch, ac as FilteredApproximateSearchMode, ad as FulltextBatchRow, ae as FulltextCapabilities, af as FulltextOperationBackend, ag as FulltextQueryMode, ah as FulltextSearchParams, ai as FulltextSearchResult, F as FulltextStrategy, aj as GraphAnalyticsCapabilities, ak as GraphEntityReadBackend, al as GraphEntityWriteBackend, am as GraphLifecycleBackend, an as HybridFusionOptions, I as IndexDeclaration, ao as IndexMaterializationBackend, g as IndexOrigin, h as IndexScope, i as IndexWhereExpression, j as IndexWhereFieldBuilder, k as IndexWhereInput, ap as IntentSql, J as JsonPointer, aq as JsonPointerFor, ar as JsonPointerInput, as as JsonPointerSegment, at as JsonPointerSegments, au as JsonPointerSegmentsFor, av as MAX_JSON_POINTER_DEPTH, aw as MetaEdgeProperties, ax as NodeEntityReadBackend, ay as NodeEntityWriteBackend, l as NodeIndexConfig, N as NodeIndexDeclaration, m as NodeIndexWhereBuilder, az as OrderSpec, aA as ParameterRef, aB as QueryExecutionBackend, aC as RawQueryExecutionBackend, aD as RawStatementExecutionBackend, aE as RecordedRelationOptions, aF as RemovalMaterializationBackend, aG as ResolveJsonPointer, aH as ResolveJsonPointerSegments, aI as ResolvedSqlTableNames, aJ as RowProps, aK as SchemaCommitBackend, aL as SchemaReadBackend, H as SchemaVersionRow, aM as SetActiveVersionParams, aN as SortDirection, c as SqlDialect, aO as SqlIntent, aP as SqlSchema, aQ as SqlTableNames, aR as StrategyTableContribution, aS as TableContribution, aT as TransactionBackend, aU as TraversalExpansion, aV as TrustedImportSession, aW as UniqueConstraintBackend, aX as UpsertFulltextBatchParams, aY as VectorCapabilities, aZ as VectorOperationBackend, a_ as VectorSlot, a$ as asCompiledRowsSql, b0 as asCompiledSelectSql, b1 as asCompiledStatementSql, b2 as buildVectorCapabilities, b3 as createSqlSchema, b4 as fts5Strategy, b5 as isMetaEdge, b6 as joinJsonPointers, b7 as jsonPointer, b8 as normalizeJsonPointer, b9 as parseJsonPointer, ba as recordedRelation, bb as rowPropsToJsonText, bc as rowPropsToObject, bd as tsvectorStrategy } from './fulltext-strategy-DebsMrqg.js';
6
- import { E as EmbeddingMetric, a as EmbeddingIndexType, A as AliasMap, b as EdgeAliasMap, R as RecursiveAliasMap, Q as QueryCoordinateState, c as QueryBuilder, d as EmptyRecursiveAliasMap, T as TraversalBuilder } from './store-view-ANL6mTph.js';
7
- export { e as AggregateResult, f as AlgorithmCyclePolicy, g as AnyEdge, h as AnyNode, B as BaseTraversalOptions, i as BatchResults, j as BatchableQuery, C as ConstraintNames, k as CreateEdgeInput, l as CreateNodeInput, D as DEFAULT_SEARCHABLE_LANGUAGE, m as DegreeOptions, n as DynamicEdgeAccessor, o as DynamicEdgeCollection, p as DynamicEdgeType, q as DynamicFieldBuilder, r as DynamicNodeAccessor, s as DynamicNodeCollection, t as DynamicNodeType, u as DynamicSelectableEdge, v as DynamicSelectableNode, w as Edge, x as EdgeAccessor, y as EdgeBatchReads, z as EdgeCollection, F as EdgeFindByEndpointsOptions, G as EdgeGetOrCreateByEndpointsOptions, I as EdgeGetOrCreateByEndpointsResult, J as EdgeIntrospection, K as EdgeTemporalReads, L as EdgeWrites, M as EmbeddingSchema, O as EmbeddingValue, P as EmptyAliasMap, V as EmptyEdgeAliasMap, W as ExecutableAggregateQuery, X as ExecutableQuery, Y as FieldAccessor, Z as FulltextSearchHit, _ as FulltextSearchOptions, $ as GetOrCreateAction, a0 as GraphAlgorithms, a1 as GraphEdgeCollections, a2 as GraphNodeCollections, a3 as HistorySafeBackend, a4 as HistorySafeTransactionBackend, H as HistoryStore, a5 as HistoryStoreOptions, a6 as HistoryTransactionContext, a7 as HistoryWithTransactionUnavailable, a8 as HookContext, a9 as HybridFulltextOptions, aa as HybridSearchHit, ab as HybridSearchOptions, ac as HybridVectorOptions, ad as IfExistsMode, ae as InitialQueryBuilder, af as KindIntrospection, ag as LiveStoreOptions, ah as MaterializeRemovalsEntry, ai as MaterializeRemovalsOptions, aj as MaterializeRemovalsResult, ak as MeasurableHistoryTransactionContext, al as MeasurableTransactionContext, am as NeighborsOptions, an as NoRecordedCoordinate, N as Node, ao as NodeAccessor, ap as NodeAlias, aq as NodeBulkFindByIndexOptions, ar as NodeCollection, as as NodeCurrentReads, at as NodeGetOrCreateByConstraintOptions, au as NodeGetOrCreateByConstraintResult, av as NodeIdentifier, aw as NodeRef, ax as NodeTemporalReads, ay as NodeWrites, az as OntologyIntrospection, aA as OperationHookContext, aB as PaginateOptions, aC as PaginatedResult, aD as PathNode, aE as Predicate, aF as PreparedQuery, aG as PropsAccessor, aH as QueryHookContext, aI as QueryOptions, aJ as ReachableNode, aK as ReachableOptions, aL as RebuildFulltextOptions, aM as RebuildFulltextResult, aN as ReclaimedVectorFieldEntry, aO as RecordedInstant, aP as RecordedReadStore, aQ as RecordedStoreView, aR as RecordedStoreViewEdgeCollection, aS as RecordedStoreViewEdgeCollections, aT as RecordedStoreViewNodeCollection, aU as RecordedStoreViewNodeCollections, aV as RecursiveTraversalOptions, aW as ReembedFunction, aX as ReembedVectorFieldOptions, aY as ReembedVectorFieldResult, aZ as SchemaIntrospection, a_ as ScopedMeasure, a$ as SearchScopeOptions, b0 as SearchableMetadata, b1 as SearchableOptions, b2 as SearchableSchema, b3 as SelectContext, b4 as SelectableEdge, b5 as SelectableNode, b6 as ShortestPathOptions, b7 as ShortestPathResult, b8 as SqlAvailability, S as Store, b9 as StoreHooks, ba as StoreOptions, bb as StoreProjection, bc as StoreRef, bd as StoreSearch, be as StoreView, bf as StoreViewCanReachOptions, bg as StoreViewCoordinate, bh as StoreViewDegreeOptions, bi as StoreViewEdgeCollection, bj as StoreViewEdgeCollections, bk as StoreViewGraphAlgorithms, bl as StoreViewNeighborsOptions, bm as StoreViewNodeCollection, bn as StoreViewNodeCollections, bo as StoreViewReachableOptions, bp as StoreViewShortestPathOptions, bq as StoreViewSubgraphOptions, br as StoreViewWeaklyConnectedComponentsOptions, bs as StoreViewWeightedShortestPathOptions, bt as StreamOptions, bu as SubgraphEdgeResult, bv as SubgraphNodeResult, bw as SubgraphOptions, bx as SubgraphResult, by as SubsetEdge, bz as SubsetNode, bA as TemporalAlgorithmOptions, bB as TransactionContext, bC as TransactionOutcome, bD as TransactionReceipt, bE as TraversalDirection, bF as TypedEdgeCollection, bG as TypedRecordedStoreViewEdgeCollection, bH as TypedStoreViewEdgeCollection, bI as UnionableQuery, U as UniqueIntrospection, bJ as UpdateEdgeInput, bK as UpdateNodeInput, bL as VectorSearchHit, bM as VectorSearchOptions, bN as WeaklyConnectedComponentMembership, bO as WeaklyConnectedComponentsOptions, bP as WeightedShortestPathOptions, bQ as WeightedShortestPathResult, bR as asRecordedInstant, bS as createQueryBuilder, bT as createStore, bU as createStoreWithSchema, bV as createVerifiedStore, bW as defineSubgraphProject, bX as embedding, bY as exists, bZ as fieldRef, b_ as getEmbeddingDimensions, b$ as getSearchableMetadata, c0 as inSubquery, c1 as isEmbeddingSchema, c2 as isParameterRef, c3 as isSearchableSchema, c4 as notExists, c5 as notInSubquery, c6 as param, c7 as resolveGraphVectorSlots, c8 as searchable } from './store-view-ANL6mTph.js';
8
- import { G as GraphDef } from './manager-D00_NXvT.js';
9
- export { A as AllEdgeTypes, v as AllNodeTypes, w as EdgeKinds, x as GetEdgeType, u as GetNodeType, t as NodeKinds, c as SchemaManagerOptions, d as SchemaValidationResult, y as defineGraph, z as getEdgeKinds, B as getNodeKinds, F as isGraphDef } from './manager-D00_NXvT.js';
10
- export { B as BackendDisposedError, C as CardinalityError, b as CardinalityErrorDetails, c as CompilerInvariantError, d as ConfigurationError, D as DatabaseOperationError, e as DatabaseOperationErrorDetails, f as DisjointError, g as DisjointErrorDetails, E as EagerMaterializationError, h as EagerMaterializationErrorDetails, i as EdgeNotFoundError, j as EdgeNotFoundErrorDetails, k as EmbeddingDimensionChangedError, l as EmbeddingDimensionChangedErrorDetails, m as EndpointError, n as EndpointErrorDetails, o as EndpointNotFoundError, p as EndpointNotFoundErrorDetails, q as ErrorCategory, G as GraphAlgorithmConvergenceError, I as InvalidEdgeWeightError, r as InvalidEdgeWeightErrorDetails, s as InvalidEdgeWeightReason, K as KindNotFoundError, t as KindNotFoundErrorDetails, M as MigrationError, u as MigrationErrorDetails, N as NodeConstraintNotFoundError, v as NodeConstraintNotFoundErrorDetails, w as NodeIndexNotFoundError, x as NodeIndexNotFoundErrorDetails, y as NodeNotFoundError, z as NodeNotFoundErrorDetails, R as RECORDED_CAPTURE_GUARD_CODES, A as RecordedCaptureGuardCode, F as RecordedCaptureGuardError, H as RestrictedDeleteError, J as RestrictedDeleteErrorDetails, S as SchemaContentConflictError, L as SchemaContentConflictErrorDetails, O as SchemaMismatchError, P as SchemaMismatchErrorDetails, Q as StaleVersionError, U as StaleVersionErrorDetails, W as StoreNotInitializedError, X as StoreNotInitializedErrorDetails, Y as StoreNotInitializedReason, Z as TransactionClosedError, _ as TrustedImportError, $ as TrustedImportErrorReason, T as TypeGraphError, a0 as TypeGraphErrorOptions, a1 as UniquenessError, a2 as UniquenessErrorDetails, a3 as UnsupportedBackendCapabilityError, a4 as UnsupportedPredicateError, a as ValidationError, a5 as ValidationErrorDetails, V as ValidationIssue, a6 as VersionConflictError, a7 as VersionConflictErrorDetails, a8 as getErrorSuggestion, a9 as isConstraintError, aa as isRecordedCaptureGuardError, ab as isSystemError, ac as isTypeGraphError, ad as isUserRecoverable } from './index-BeacbPoe.js';
11
- export { a as MaterializeIndexesEntry, b as MaterializeIndexesOptions, M as MaterializeIndexesResult, c as MaterializeSystemIndexesOptions } from './materialize-indexes-zK2J_flP.js';
12
- export { S as SYSTEM_INDEX_DECLARATIONS, a as SystemIndexDeclaration, b as SystemIndexTable, c as andWhere, d as defineEdgeIndex, e as defineNodeIndex, n as notWhere, o as orWhere } from './where-CJOpJj3a.js';
1
+ export { DefineEdgeOptions, DefineNodeOptions, ExternalRefSchema, ExternalRefValue, MetaEdgeOptions, createExternalRef, defineEdge, defineNode, externalRef, getExternalRefTable, isExternalRefSchema, metaEdge } from './core/index.js';
2
+ import { E as EmbeddingMetric, a as EmbeddingIndexType } from './temporal-DqtOEo_B.js';
3
+ export { D as DEFAULT_SEARCHABLE_LANGUAGE, b as EmbeddingSchema, c as EmbeddingValue, R as RecordedInstant, S as SearchableMetadata, d as SearchableOptions, e as SearchableSchema, f as asRecordedInstant, g as embedding, h as getEmbeddingDimensions, i as getSearchableMetadata, j as isEmbeddingSchema, k as isSearchableSchema, r as resolveGraphVectorSlots, s as searchable } from './temporal-DqtOEo_B.js';
4
+ import { G as GraphDef } from './define-graph-DRo9xpYN.js';
5
+ export { A as AllEdgeTypes, a as AllNodeTypes, E as EdgeKinds, b as GetEdgeType, c as GetNodeType, N as NodeKinds, d as defineGraph, g as getEdgeKinds, e as getNodeKinds, i as isGraphDef } from './define-graph-DRo9xpYN.js';
6
+ import { a as NodeType, d as EdgeType } from './extension-types-BLEVH4SG.js';
7
+ export { A as AnyEdgeType, C as CURRENT_GRAPH_EXTENSION_VERSION, e as Cardinality, f as Collation, D as DeleteBehavior, g as EdgeId, h as EdgeProps, E as EdgeRegistration, i as EdgeTypeWithEndpoints, j as EndpointExistence, b as GraphDefaults, G as GraphExtension, k as GraphExtensionVersion, J as JsonValue, l as KindAnnotations, L as LEGACY_GRAPH_EXTENSION_VERSION, m as NodeId, n as NodeProps, N as NodeRegistration, T as TemporalMode, U as UniqueConstraint, o as UniquenessScope, p as asEdgeId, q as asNodeId, r as isEdgeType, s as isEdgeTypeWithEndpoints, t as isNodeType } from './extension-types-BLEVH4SG.js';
8
+ import { V as VectorStrategy, G as GraphBackend, O as OntologyRelation, D as InferenceType, H as AggregateExpr, K as FieldRef, L as ComparisonOp, M as AggregateComparisonPredicate, T as TraversalDirection } from './index-Bq7vSPHy.js';
9
+ export { A as AdapterBackend, P as AdapterBackendTransactions, B as BackendCapabilities, U as BackendIdentity, W as BackendLifecycle, X as BackendMaintenance, Y as BackendTransactions, Z as CommitSchemaVersionExpected, _ as CommitSchemaVersionParams, $ as CompiledRowsSql, a0 as CompiledSelectSql, a1 as CompiledStatementSql, a2 as ContributionMaterializationBackend, a3 as DEFAULT_SQL_SCHEMA, a4 as DeleteFulltextBatchParams, a5 as EdgeEntityReadBackend, a6 as EdgeEntityWriteBackend, a as EdgeIndexConfig, E as EdgeIndexDeclaration, b as EdgeIndexDirection, c as EdgeIndexWhereBuilder, a7 as ExternalRecordedReadSource, a8 as FilteredApproximateSearch, a9 as FilteredApproximateSearchMode, aa as FulltextBatchRow, ab as FulltextCapabilities, ac as FulltextOperationBackend, ad as FulltextQueryMode, ae as FulltextSearchParams, af as FulltextSearchResult, F as FulltextStrategy, ag as GraphAnalyticsCapabilities, ah as GraphEntityReadBackend, ai as GraphEntityWriteBackend, aj as GraphLifecycleBackend, ak as HybridFusionOptions, I as IndexDeclaration, al as IndexMaterializationBackend, d as IndexOrigin, e as IndexScope, f as IndexWhereExpression, g as IndexWhereFieldBuilder, h as IndexWhereInput, am as IntentSql, J as JsonPointer, an as JsonPointerFor, ao as JsonPointerInput, ap as JsonPointerSegment, aq as JsonPointerSegments, ar as JsonPointerSegmentsFor, as as MAX_JSON_POINTER_DEPTH, at as MetaEdge, au as MetaEdgeProperties, av as NodeEntityReadBackend, aw as NodeEntityWriteBackend, i as NodeIndexConfig, N as NodeIndexDeclaration, j as NodeIndexWhereBuilder, ax as OrderSpec, ay as ParameterRef, az as Placeholder, aA as QueryExecutionBackend, aB as RawQueryExecutionBackend, aC as RawStatementExecutionBackend, aD as RecordedRelationOptions, aE as RemovalMaterializationBackend, aF as RenderedSql, aG as ResolveJsonPointer, aH as ResolveJsonPointerSegments, aI as ResolvedSqlTableNames, aJ as RowProps, aK as SchemaCommitBackend, aL as SchemaReadBackend, C as SchemaVersionRow, aM as SetActiveVersionParams, aN as SortDirection, aO as SqlChunk, S as SqlDialect, aP as SqlFragment, aQ as SqlIdentifierChunk, aR as SqlIntent, aS as SqlParameterChunk, aT as SqlPlaceholderChunk, aU as SqlSchema, aV as SqlTableNames, aW as SqlTag, aX as SqlTextChunk, aY as StrategyTableContribution, aZ as TableContribution, a_ as TransactionBackend, a$ as TransactionOptions, b0 as TransactionReadBackend, b1 as TraversalExpansion, b2 as TrustedImportSession, b3 as UniqueConstraintBackend, b4 as UpsertFulltextBatchParams, b5 as VectorCapabilities, b6 as VectorOperationBackend, p as VectorSlot, b7 as buildVectorCapabilities, b8 as createSqlSchema, b9 as fts5Strategy, ba as isMetaEdge, bb as isSqlFragment, bc as joinJsonPointers, bd as jsonPointer, be as normalizeJsonPointer, bf as parseJsonPointer, bg as recordedRelation, bh as renderPostgres, bi as renderSql, bj as renderSqlInline, bk as renderSqlite, bl as rowPropsToJsonText, bm as rowPropsToObject, bn as sql, bo as tsvectorStrategy } from './index-Bq7vSPHy.js';
10
+ export { B as BackendDisposedError, C as CardinalityError, b as CardinalityErrorDetails, c as CompilerInvariantError, d as ConfigurationError, D as DatabaseOperationError, e as DatabaseOperationErrorDetails, f as DisjointError, g as DisjointErrorDetails, E as EagerMaterializationError, h as EagerMaterializationErrorDetails, i as EdgeNotFoundError, j as EdgeNotFoundErrorDetails, k as EmbeddingDimensionChangedError, l as EmbeddingDimensionChangedErrorDetails, m as EndpointError, n as EndpointErrorDetails, o as EndpointNotFoundError, p as EndpointNotFoundErrorDetails, q as ErrorCategory, G as GraphAlgorithmConvergenceError, I as InvalidEdgeWeightError, r as InvalidEdgeWeightErrorDetails, s as InvalidEdgeWeightReason, K as KindNotFoundError, t as KindNotFoundErrorDetails, M as MigrationError, u as MigrationErrorDetails, N as NodeConstraintNotFoundError, v as NodeConstraintNotFoundErrorDetails, w as NodeIndexNotFoundError, x as NodeIndexNotFoundErrorDetails, y as NodeNotFoundError, z as NodeNotFoundErrorDetails, R as RECORDED_CAPTURE_GUARD_CODES, A as RecordedCaptureGuardCode, F as RecordedCaptureGuardError, H as RestrictedDeleteError, J as RestrictedDeleteErrorDetails, S as SchemaContentConflictError, L as SchemaContentConflictErrorDetails, O as SchemaMismatchError, P as SchemaMismatchErrorDetails, Q as StaleVersionError, T as StaleVersionErrorDetails, U as StoreNotInitializedError, W as StoreNotInitializedErrorDetails, X as StoreNotInitializedReason, Y as TransactionClosedError, Z as TrustedImportError, _ as TrustedImportErrorReason, $ as TypeGraphError, a0 as TypeGraphErrorOptions, a1 as UniquenessError, a2 as UniquenessErrorDetails, a3 as UnsupportedBackendCapabilityError, a4 as UnsupportedPredicateError, a as ValidationError, a5 as ValidationErrorDetails, V as ValidationIssue, a6 as VersionConflictError, a7 as VersionConflictErrorDetails, a8 as getErrorSuggestion, a9 as isConstraintError, aa as isRecordedCaptureGuardError, ab as isSystemError, ac as isTypeGraphError, ad as isUserRecoverable } from './index-BD_3TCgh.js';
11
+ import { A as AliasMap, E as EdgeAliasMap, d as RecursiveAliasMap, Q as QueryCoordinateState, e as QueryBuilder, f as EmptyRecursiveAliasMap, T as TraversalBuilder } from './store-view-Ctq-3OHy.js';
12
+ export { g as AdapterHistoryStore, h as AdapterHistoryTransactionContext, i as AdapterRecordedReadStore, j as AdapterStore, k as AdapterTransactionContext, l as AggregateResult, m as AlgorithmCyclePolicy, n as AnyEdge, o as AnyNode, B as BaseStoreOptions, p as BaseTraversalOptions, q as BatchResults, r as BatchableQuery, C as ConstraintNames, s as CreateEdgeInput, t as CreateNodeInput, D as DegreeOptions, u as DynamicEdgeAccessor, v as DynamicEdgeCollection, w as DynamicEdgeType, x as DynamicFieldBuilder, y as DynamicNodeAccessor, z as DynamicNodeCollection, F as DynamicNodeType, G as DynamicSelectableEdge, I as DynamicSelectableNode, J as Edge, K as EdgeAccessor, M as EdgeBatchReads, N as EdgeCollection, O as EdgeFindByEndpointsOptions, P as EdgeGetOrCreateByEndpointsOptions, V as EdgeGetOrCreateByEndpointsResult, W as EdgeIntrospection, X as EdgeTemporalReads, Y as EdgeWrites, Z as EmptyAliasMap, _ as EmptyEdgeAliasMap, $ as ExecutableAggregateQuery, a0 as ExecutableQuery, a1 as FieldAccessor, a2 as FulltextSearchHit, a3 as FulltextSearchOptions, a4 as GetOrCreateAction, a5 as GraphAlgorithms, a6 as GraphEdgeCollections, a7 as GraphNodeCollections, b as HistoryStore, a8 as HistoryStoreBackend, H as HistoryStoreOptions, a9 as HookContext, aa as HybridFulltextOptions, ab as HybridSearchHit, ac as HybridSearchOptions, ad as HybridVectorOptions, ae as IfExistsMode, af as InitialQueryBuilder, ag as KindIntrospection, ah as LabelPropagationMembership, ai as LabelPropagationOptions, L as LiveStoreOptions, aj as MaterializeRemovalsEntry, ak as MaterializeRemovalsOptions, al as MaterializeRemovalsResult, am as MeasurableAdapterHistoryTransactionContext, an as MeasurableAdapterTransactionContext, ao as MeasurableTransactionContext, ap as NeighborsOptions, aq as NoRecordedCoordinate, ar as Node, as as NodeAccessor, at as NodeAlias, au as NodeBulkFindByIndexOptions, av as NodeCollection, aw as NodeCurrentReads, ax as NodeGetOrCreateByConstraintOptions, ay as NodeGetOrCreateByConstraintResult, az as NodeIdentifier, aA as NodeRef, aB as NodeTemporalReads, aC as NodeWrites, aD as OntologyIntrospection, aE as OperationHookContext, aF as PageRankOptions, aG as PageRankScore, aH as PaginateOptions, aI as PaginatedResult, aJ as PathNode, aK as PersonalizedPageRankOptions, aL as PersonalizedPageRankSeed, aM as Predicate, aN as PreparedQuery, aO as PropsAccessor, aP as QueryHookContext, aQ as QueryOptions, aR as ReachableNode, aS as ReachableOptions, aT as RebuildFulltextOptions, aU as RebuildFulltextResult, aV as ReclaimedVectorFieldEntry, c as RecordedReadStore, R as RecordedReadStoreOptions, aW as RecordedStoreView, aX as RecordedStoreViewEdgeCollection, aY as RecordedStoreViewEdgeCollections, aZ as RecordedStoreViewNodeCollection, a_ as RecordedStoreViewNodeCollections, a$ as RecursiveTraversalOptions, b0 as ReembedFunction, b1 as ReembedVectorFieldOptions, b2 as ReembedVectorFieldResult, b3 as SchemaIntrospection, b4 as ScopedMeasure, b5 as SearchScopeOptions, b6 as SelectContext, b7 as SelectableEdge, b8 as SelectableNode, b9 as ShortestPathOptions, ba as ShortestPathResult, bb as SqlAvailability, a as Store, bc as StoreHooks, S as StoreOptions, bd as StoreProjection, be as StoreRef, bf as StoreSearch, bg as StoreView, bh as StoreViewCanReachOptions, bi as StoreViewCoordinate, bj as StoreViewDegreeOptions, bk as StoreViewEdgeCollection, bl as StoreViewEdgeCollections, bm as StoreViewGraphAlgorithms, bn as StoreViewLabelPropagationOptions, bo as StoreViewNeighborsOptions, bp as StoreViewNodeCollection, bq as StoreViewNodeCollections, br as StoreViewPageRankOptions, bs as StoreViewPersonalizedPageRankOptions, bt as StoreViewReachableOptions, bu as StoreViewShortestPathOptions, bv as StoreViewSubgraphOptions, bw as StoreViewWeaklyConnectedComponentsOptions, bx as StoreViewWeightedShortestPathOptions, by as StreamOptions, bz as SubgraphEdgeResult, bA as SubgraphNodeResult, bB as SubgraphOptions, bC as SubgraphResult, bD as SubsetEdge, bE as SubsetNode, bF as TemporalAlgorithmOptions, bG as TransactionContext, bH as TransactionOutcome, bI as TransactionReceipt, bJ as TraversalDirection, bK as TypedEdgeCollection, bL as TypedRecordedStoreViewEdgeCollection, bM as TypedStoreViewEdgeCollection, U as UnboundLiveStoreOptions, bN as UnionableQuery, bO as UniqueIntrospection, bP as UpdateEdgeInput, bQ as UpdateNodeInput, bR as VectorSearchHit, bS as VectorSearchOptions, bT as WeaklyConnectedComponentMembership, bU as WeaklyConnectedComponentsOptions, bV as WeightedShortestPathOptions, bW as WeightedShortestPathResult, bX as createAdapterStore, bY as createAdapterStoreWithSchema, bZ as createQueryBuilder, b_ as createStore, b$ as createStoreWithSchema, c0 as createVerifiedAdapterStore, c1 as createVerifiedStore, c2 as defineSubgraphProject, c3 as exists, c4 as fieldRef, c5 as inSubquery, c6 as isParameterRef, c7 as notExists, c8 as notInSubquery, c9 as param } from './store-view-Ctq-3OHy.js';
13
+ export { a as MaterializeIndexesEntry, b as MaterializeIndexesOptions, M as MaterializeIndexesResult, c as MaterializeSystemIndexesOptions } from './materialize-indexes-D4iei4Kp.js';
14
+ export { S as SYSTEM_INDEX_DECLARATIONS, a as SystemIndexDeclaration, b as SystemIndexTable, c as andWhere, d as defineEdgeIndex, e as defineNodeIndex, n as notWhere, o as orWhere } from './where-BdE_cYtx.js';
13
15
  export { GraphExtensionError, GraphExtensionIssue, GraphExtensionIssueCode, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChange, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, KindReferent, RemoveCompileTimeKindError, defineGraphExtension, validateGraphExtension } from './graph-extension/index.js';
14
- import 'drizzle-orm';
15
- import 'drizzle-orm/pg-core';
16
- import 'drizzle-orm/sqlite-core';
16
+ export { S as SchemaManagerOptions, d as SchemaValidationResult } from './manager-CASfhmzV.js';
17
+ import 'zod';
17
18
  import './result-DWo6mUVz.js';
18
19
 
19
- /**
20
- * Options for defining a node type.
21
- */
22
- type DefineNodeOptions<S extends z.ZodObject<z.ZodRawShape>> = Readonly<{
23
- /** Zod schema for node properties */
24
- schema: S;
25
- /** Optional description for documentation */
26
- description?: string;
27
- /**
28
- * Consumer-owned structured annotations for the kind.
29
- *
30
- * Stored in the canonical schema and **participates in schema hashing** —
31
- * any change bumps the schema version and shows up as a `safe`-severity
32
- * diff in `getSchemaChanges`. See `KindAnnotations` for the contract.
33
- */
34
- annotations?: KindAnnotations;
35
- }>;
36
- /**
37
- * Creates a node type definition.
38
- *
39
- * @example
40
- * ```typescript
41
- * const Person = defineNode("Person", {
42
- * schema: z.object({
43
- * fullName: z.string().min(1),
44
- * email: z.string().email().optional(),
45
- * }),
46
- * description: "A person in the system",
47
- * });
48
- * ```
49
- */
50
- declare function defineNode<K extends string, S extends z.ZodObject<z.ZodRawShape>>(name: K, options: DefineNodeOptions<S>): NodeType<K, S>;
51
-
52
- /**
53
- * Options for defining an edge type.
54
- */
55
- type DefineEdgeOptions<S extends z.ZodObject<z.ZodRawShape>, From extends readonly NodeType[] | undefined = undefined, To extends readonly NodeType[] | undefined = undefined> = Readonly<{
56
- /** Zod schema for edge properties (defaults to empty object) */
57
- schema?: S;
58
- /** Optional description for documentation */
59
- description?: string;
60
- /**
61
- * Consumer-owned structured annotations for the kind.
62
- *
63
- * Stored in the canonical schema and **participates in schema hashing** —
64
- * any change bumps the schema version and shows up as a `safe`-severity
65
- * diff in `getSchemaChanges`. See `KindAnnotations` for the contract.
66
- */
67
- annotations?: KindAnnotations;
68
- /** Node types that can be the source of this edge (domain constraint) */
69
- from?: From;
70
- /** Node types that can be the target of this edge (range constraint) */
71
- to?: To;
72
- }>;
73
- declare const EMPTY_SCHEMA: z.ZodObject<{}, z.core.$strip>;
74
- type EmptySchema = typeof EMPTY_SCHEMA;
75
- /**
76
- * Creates an edge type definition.
77
- *
78
- * @example
79
- * ```typescript
80
- * // Edge with no properties
81
- * const hasEpisode = defineEdge("hasEpisode");
82
- *
83
- * // Edge with properties
84
- * const employedAt = defineEdge("employedAt", {
85
- * schema: z.object({
86
- * isPrimary: z.boolean().default(true),
87
- * startedAt: z.date(),
88
- * }),
89
- * description: "Employment relationship",
90
- * });
91
- *
92
- * // Edge with domain/range constraints (can be used directly in defineGraph)
93
- * const worksAt = defineEdge("worksAt", {
94
- * schema: z.object({ role: z.string() }),
95
- * from: [Person],
96
- * to: [Company],
97
- * });
98
- * ```
99
- */
100
- declare function defineEdge<K extends string>(name: K): EdgeType<K, EmptySchema>;
101
- declare function defineEdge<K extends string, S extends z.ZodObject<z.ZodRawShape>, From extends readonly NodeType[], To extends readonly NodeType[]>(name: K, options: DefineEdgeOptions<S, From, To> & {
102
- from: From;
103
- to: To;
104
- }): EdgeType<K, S, From, To>;
105
- declare function defineEdge<K extends string, S extends z.ZodObject<z.ZodRawShape>>(name: K, options: DefineEdgeOptions<S>): EdgeType<K, S>;
106
-
107
- /**
108
- * Options for creating a meta-edge.
109
- */
110
- type MetaEdgeOptions = Readonly<{
111
- /** Whether the relationship is transitive (A→B, B→C implies A→C) */
112
- transitive?: boolean;
113
- /** Whether the relationship is symmetric (A→B implies B→A) */
114
- symmetric?: boolean;
115
- /** Whether the relationship is reflexive (A→A is always true) */
116
- reflexive?: boolean;
117
- /** Name of the inverse meta-edge */
118
- inverse?: string;
119
- /** How this meta-edge affects queries and validation */
120
- inference?: InferenceType;
121
- /** Optional description */
122
- description?: string;
123
- }>;
124
- /**
125
- * Creates a custom meta-edge definition.
126
- *
127
- * @example
128
- * ```typescript
129
- * // Custom meta-edge for regulatory relationships
130
- * const regulatedBy = metaEdge("regulatedBy", {
131
- * description: "Type X is regulated by authority type Y",
132
- * transitive: false,
133
- * symmetric: false,
134
- * });
135
- * ```
136
- */
137
- declare function metaEdge<K extends string>(name: K, options?: MetaEdgeOptions): MetaEdge<K>;
138
-
139
- /**
140
- * External reference type for hybrid overlay patterns.
141
- *
142
- * Creates a Zod-compatible schema for referencing entities in external
143
- * data sources (e.g., existing application tables) from TypeGraph nodes.
144
- */
145
-
146
- /**
147
- * Symbol key for storing external table name on the schema.
148
- * This allows the schema introspector to detect external reference types
149
- * and extract source information.
150
- */
151
- declare const EXTERNAL_REF_TABLE_KEY: "_externalRefTable";
152
- /**
153
- * The shape of an external reference value.
154
- * Contains the source table identifier and the ID of the referenced record.
155
- */
156
- type ExternalRefValue<T extends string = string> = Readonly<{
157
- table: T;
158
- id: string;
159
- }>;
160
- /**
161
- * A Zod schema for external references with attached table metadata.
162
- */
163
- type ExternalRefSchema<T extends string = string> = z.ZodType<ExternalRefValue<T>> & Readonly<{
164
- [EXTERNAL_REF_TABLE_KEY]: T;
165
- }>;
166
- /**
167
- * Creates a Zod schema for referencing external data sources.
168
- *
169
- * Use this when building a hybrid overlay where TypeGraph stores
170
- * graph relationships and metadata while your existing tables
171
- * remain the source of truth for entity data.
172
- *
173
- * @param table - The identifier for the external table/source (e.g., "users", "documents")
174
- * @returns A Zod schema that validates external reference objects
175
- *
176
- * @example
177
- * ```typescript
178
- * import { defineNode, externalRef, embedding } from "@nicia-ai/typegraph";
179
- *
180
- * // Reference documents from your existing application database
181
- * const Document = defineNode("Document", {
182
- * schema: z.object({
183
- * source: externalRef("documents"),
184
- * embedding: embedding(1536).optional(),
185
- * extractedTopics: z.array(z.string()).optional(),
186
- * }),
187
- * });
188
- *
189
- * // Create a node referencing an external document
190
- * await store.nodes.Document.create({
191
- * source: { table: "documents", id: "doc_abc123" },
192
- * embedding: await generateEmbedding(docContent),
193
- * });
194
- *
195
- * // Query and hydrate with external data
196
- * const results = await store
197
- * .query()
198
- * .from("Document", "d")
199
- * .whereNode("d", (d) => d.embedding.similarTo(query, 10))
200
- * .select((ctx) => ctx.d.source)
201
- * .execute();
202
- *
203
- * // Fetch full data from your app database
204
- * const externalIds = results.map((r) => r.id);
205
- * const fullDocs = await appDb.query.documents.findMany({
206
- * where: inArray(documents.id, externalIds),
207
- * });
208
- * ```
209
- */
210
- declare function externalRef<T extends string>(table: T): ExternalRefSchema<T>;
211
- /**
212
- * Checks if a value is an external reference schema.
213
- */
214
- declare function isExternalRefSchema(value: unknown): value is ExternalRefSchema;
215
- /**
216
- * Gets the table name from an external reference schema.
217
- * Returns undefined if the schema is not an external reference schema.
218
- */
219
- declare function getExternalRefTable(schema: z.ZodType): string | undefined;
220
- /**
221
- * Helper function to create a typed external reference value.
222
- * Useful when you want to avoid repeating the table name.
223
- *
224
- * @example
225
- * ```typescript
226
- * const docRef = createExternalRef("documents");
227
- *
228
- * await store.nodes.Document.create({
229
- * source: docRef("doc_123"),
230
- * embedding: [...],
231
- * });
232
- * ```
233
- */
234
- declare function createExternalRef<T extends string>(table: T): (id: string) => ExternalRefValue<T>;
235
-
236
20
  declare const libsqlVectorStrategy: VectorStrategy;
237
21
 
238
22
  declare const pgvectorStrategy: VectorStrategy;
239
23
 
240
24
  declare const sqliteVecStrategy: VectorStrategy;
241
25
 
26
+ /**
27
+ * One-time offline migration: legacy shared embeddings table → per-field
28
+ * strategy storage.
29
+ *
30
+ * ## What this is for
31
+ *
32
+ * The cross-backend vector cutover (#157) dropped the single shared
33
+ * `typegraph_node_embeddings` table. Each
34
+ * `VectorStrategy` now OWNS one typed, fixed-dimension structure per
35
+ * `(nodeKind, fieldPath)` — the only layout that can be ANN-indexed on
36
+ * libSQL and sqlite-vec, not just pgvector.
37
+ *
38
+ * Deployments that wrote embeddings under the old shared table before
39
+ * upgrading still hold those rows. This utility drains them into the new
40
+ * per-field storage **once**, during the upgrade, so existing embedded
41
+ * data survives the cutover without re-embedding from source.
42
+ *
43
+ * It is an explicitly-run, offline step — not wired into `materializeIndexes`
44
+ * or any boot path. Run it once after deploying the new version and before
45
+ * (or alongside) the first `materializeIndexes()`, then drop the legacy
46
+ * table at your leisure.
47
+ *
48
+ * ## How it works
49
+ *
50
+ * - Skips cleanly (returns a zero summary) when the legacy table is absent —
51
+ * a fresh install, or a re-run after the table was dropped.
52
+ * - Reads rows in keyset-paginated batches (never the whole table at once),
53
+ * decoding the engine-native embedding column to a numeric array at the SQL
54
+ * level: sqlite-vec stored a `vec_f32` blob (`vec_to_json` decodes it);
55
+ * pgvector stored a native `vector` (`::text` yields a `[…]` literal).
56
+ * - Re-inserts each row through `backend.upsertEmbedding`, which routes the
57
+ * active strategy's `buildUpsert` and idempotently provisions the per-field
58
+ * storage (the same `(nodeKind, fieldPath)` slot a fresh store write uses).
59
+ * The migration stays graph-agnostic and execution-correct on both the
60
+ * sync (better-sqlite3) and async (libsql / Postgres) backends — it does
61
+ * not re-implement the backend's statement-execution glue.
62
+ *
63
+ * Idempotent and resumable: a partial run followed by a full run converges
64
+ * to the same per-field tables, because every write is an upsert keyed by
65
+ * `(graph_id, node_id)` in the strategy's owned storage.
66
+ */
67
+
242
68
  /**
243
69
  * The resolved storage config for one `(nodeKind, fieldPath)` slot that the
244
70
  * legacy table did not record. The legacy shared table stored only the
@@ -577,13 +403,6 @@ declare function invertClosure(closure: ReadonlyMap<string, ReadonlySet<string>>
577
403
  */
578
404
  declare function isReachable(closure: ReadonlyMap<string, ReadonlySet<string>>, source: string, target: string): boolean;
579
405
 
580
- /**
581
- * Recursive CTE Compilation
582
- *
583
- * Compiles variable-length path traversals using WITH RECURSIVE.
584
- * Handles cycle detection and depth limiting using dialect-specific operations.
585
- */
586
-
587
406
  /**
588
407
  * Maximum depth for recursive CTE queries when maxDepth is unlimited (-1).
589
408
  *
@@ -888,4 +707,4 @@ type IdConfig = Readonly<{
888
707
  edgeIdGenerator: IdGenerator;
889
708
  }>;
890
709
 
891
- export { AliasMap, type DefineEdgeOptions, type DefineNodeOptions, EdgeType, EmptyRecursiveAliasMap, type ExternalRefSchema, type ExternalRefValue, FieldRef, type FlexibleQueryFragment, GraphBackend, GraphDef, type IdConfig, type IdGenerator, InferenceType, KindAnnotations, type LegacyEmbeddingSlotConfig, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, MetaEdge, type MetaEdgeOptions, type MigrateLegacyEmbeddingsOptions, type MigrateLegacyEmbeddingsResult, NodeType, OntologyRelation, QueryBuilder, QueryCoordinateState, type QueryFragment, type TraversalFragment, VectorStrategy, avg, broader, composeFragments, computeTransitiveClosure, core, count, countDistinct, countDistinctEdges, countEdges, createExternalRef, createFragment, defineEdge, defineNode, differentFrom, disjointWith, equivalentTo, externalRef, field, generateId, getExternalRefTable, hasPart, having, havingEq, havingGt, havingGte, havingLt, havingLte, implies, inverseOf, invertClosure, isExternalRefSchema, isReachable, libsqlVectorStrategy, limitFragment, max, metaEdge, migrateLegacyEmbeddings, min, narrower, offsetFragment, orderByFragment, partOf, pgvectorStrategy, relatedTo, sameAs, sqliteVecStrategy, subClassOf, sum };
710
+ export { AliasMap, EdgeType, EmptyRecursiveAliasMap, FieldRef, type FlexibleQueryFragment, GraphBackend, GraphDef, type IdConfig, type IdGenerator, InferenceType, type LegacyEmbeddingSlotConfig, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, type MigrateLegacyEmbeddingsOptions, type MigrateLegacyEmbeddingsResult, NodeType, OntologyRelation, QueryBuilder, QueryCoordinateState, type QueryFragment, type TraversalFragment, VectorStrategy, avg, broader, composeFragments, computeTransitiveClosure, core, count, countDistinct, countDistinctEdges, countEdges, createFragment, differentFrom, disjointWith, equivalentTo, field, generateId, hasPart, having, havingEq, havingGt, havingGte, havingLt, havingLte, implies, inverseOf, invertClosure, isReachable, libsqlVectorStrategy, limitFragment, max, migrateLegacyEmbeddings, min, narrower, offsetFragment, orderByFragment, partOf, pgvectorStrategy, relatedTo, sameAs, sqliteVecStrategy, subClassOf, sum };
package/dist/index.js CHANGED
@@ -1,85 +1,52 @@
1
- export { sqliteVecStrategy } from './chunk-UYQMBBWJ.js';
2
- export { libsqlVectorStrategy } from './chunk-XWV4JT34.js';
3
- export { pgvectorStrategy } from './chunk-5KPNWT6X.js';
4
- import './chunk-DFVLCOP6.js';
5
- import { LEGACY_EMBEDDINGS_TABLE_NAME } from './chunk-UXLSNRYL.js';
6
- export { andWhere, notWhere, orWhere } from './chunk-5WWVZMVX.js';
7
- import './chunk-QERAIDRJ.js';
8
- export { defineGraphExtension } from './chunk-RRSNR3TP.js';
9
- export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-552KNYQJ.js';
10
- import './chunk-M6VES7V6.js';
11
- import './chunk-RCVLFTCT.js';
12
- import { META_EDGE_BRAND } from './chunk-3RWZPJKV.js';
13
- export { broader, core, defineEdge, defineNode, differentFrom, disjointWith, equivalentTo, hasPart, implies, inverseOf, isMetaEdge, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-3RWZPJKV.js';
14
- export { asEdgeId, asNodeId, defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from './chunk-3SLPDKHQ.js';
1
+ export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-A2FGSWMQ.js';
2
+ import './chunk-DRACN6XG.js';
3
+ export { sqliteVecStrategy } from './chunk-X6CNEA32.js';
4
+ export { libsqlVectorStrategy } from './chunk-ERZ4QPQX.js';
5
+ export { pgvectorStrategy } from './chunk-SDHV2MWU.js';
6
+ import './chunk-EZH7FNUS.js';
7
+ import { LEGACY_EMBEDDINGS_TABLE_NAME } from './chunk-MTNEGGM2.js';
8
+ import './chunk-AOL64O4Z.js';
9
+ import './chunk-Z2PPIVOO.js';
10
+ export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchema, metaEdge } from './chunk-3LKL3S6X.js';
11
+ import './chunk-UPXDVI3T.js';
12
+ export { DEFAULT_SQL_SCHEMA, createSqlSchema, exists, fieldRef, generateId, inSubquery, isParameterRef, notExists, notInSubquery, param, recordedRelation } from './chunk-RQPRCEIO.js';
13
+ import './chunk-35S6P5ZU.js';
14
+ export { rowPropsToJsonText, rowPropsToObject } from './chunk-PZHC5GCD.js';
15
+ export { asRecordedInstant } from './chunk-J6IJARLG.js';
16
+ export { broader, core, differentFrom, disjointWith, equivalentTo, hasPart, implies, inverseOf, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-VBH7ZXSZ.js';
17
+ export { defineEdge, defineNode, isMetaEdge } from './chunk-76HE7DJP.js';
18
+ import './chunk-ZE6NVENI.js';
15
19
  import './chunk-UR7W5YQK.js';
16
- import './chunk-KQJ54OG5.js';
17
- export { SYSTEM_INDEX_DECLARATIONS } from './chunk-YTSN73ND.js';
18
- export { defineEdgeIndex, defineNodeIndex } from './chunk-K5UBVGJN.js';
19
- import './chunk-W63OVYY4.js';
20
- export { buildVectorCapabilities, fts5Strategy, tsvectorStrategy } from './chunk-EXU3RASM.js';
21
- import './chunk-UGZUAYAR.js';
22
- export { CURRENT_GRAPH_EXTENSION_VERSION, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, computeTransitiveClosure, invertClosure, isReachable, validateGraphExtension } from './chunk-L7HQ2OSI.js';
23
- import './chunk-TPF25IG6.js';
24
- import './chunk-BYPOGQWK.js';
25
- export { DEFAULT_SQL_SCHEMA, asRecordedInstant, createSqlSchema, generateId, recordedRelation } from './chunk-VKGKDOKR.js';
26
- import { asCompiledRowsSql } from './chunk-44TA22QT.js';
27
- export { asCompiledRowsSql, asCompiledSelectSql, asCompiledStatementSql, exists, fieldRef, inSubquery, isParameterRef, notExists, notInSubquery, param, rowPropsToJsonText, rowPropsToObject } from './chunk-44TA22QT.js';
28
- import { isMissingTableError } from './chunk-XGPUQ56G.js';
29
- import { quotedTableName } from './chunk-OHMP6N2J.js';
20
+ import { isMissingTableError } from './chunk-KFLXWVUJ.js';
21
+ export { asEdgeId, asNodeId, defineGraph, getEdgeKinds, getNodeKinds, isEdgeType, isEdgeTypeWithEndpoints, isGraphDef, isNodeType } from './chunk-PH4IJ3V5.js';
22
+ import './chunk-I6FX7AAG.js';
23
+ export { andWhere, notWhere, orWhere } from './chunk-QZ7A6HBM.js';
24
+ import './chunk-U4JDJKPD.js';
25
+ export { SYSTEM_INDEX_DECLARATIONS } from './chunk-BQITNFQJ.js';
26
+ export { defineEdgeIndex, defineNodeIndex } from './chunk-VDYA2HMS.js';
27
+ import './chunk-K34OPSJK.js';
28
+ import './chunk-2EBMPJBO.js';
29
+ import './chunk-G3CSQLLT.js';
30
+ import './chunk-DDCIXXOO.js';
31
+ export { buildVectorCapabilities, fts5Strategy, tsvectorStrategy } from './chunk-Y7M44XEK.js';
32
+ import { sql, asCompiledRowsSql } from './chunk-6XDBRDZE.js';
33
+ export { Placeholder, isSqlFragment, renderPostgres, renderSql, renderSqlInline, renderSqlite, sql } from './chunk-6XDBRDZE.js';
34
+ import './chunk-D7PG5D5K.js';
35
+ import './chunk-SNXVDZAJ.js';
36
+ import { requireDefined } from './chunk-QMQLUA66.js';
30
37
  import { DEFAULT_EMBEDDING_INDEX_TYPE, DEFAULT_EMBEDDING_METRIC } from './chunk-PC2UBAUB.js';
31
38
  export { DEFAULT_SEARCHABLE_LANGUAGE, embedding, getEmbeddingDimensions, getSearchableMetadata, isEmbeddingSchema, isSearchableSchema, resolveGraphVectorSlots, searchable } from './chunk-PC2UBAUB.js';
32
- import './chunk-SNXVDZAJ.js';
39
+ export { defineGraphExtension } from './chunk-YIRLBUNN.js';
40
+ export { CURRENT_GRAPH_EXTENSION_VERSION, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, computeTransitiveClosure, invertClosure, isReachable, validateGraphExtension } from './chunk-SCTZRFW5.js';
41
+ import './chunk-GYA4JRP5.js';
42
+ import './chunk-TAUGGLNQ.js';
33
43
  import './chunk-ITE4IXAK.js';
34
- import { EmbeddingDimensionChangedError } from './chunk-5PNMDJ7J.js';
35
- export { BackendDisposedError, CardinalityError, CompilerInvariantError, ConfigurationError, DatabaseOperationError, DisjointError, EagerMaterializationError, EdgeNotFoundError, EmbeddingDimensionChangedError, EndpointError, EndpointNotFoundError, GraphAlgorithmConvergenceError, InvalidEdgeWeightError, KindNotFoundError, MigrationError, NodeConstraintNotFoundError, NodeIndexNotFoundError, NodeNotFoundError, RECORDED_CAPTURE_GUARD_CODES, RestrictedDeleteError, SchemaContentConflictError, SchemaMismatchError, StaleVersionError, StoreNotInitializedError, TransactionClosedError, TrustedImportError, TypeGraphError, UniquenessError, UnsupportedBackendCapabilityError, UnsupportedPredicateError, ValidationError, VersionConflictError, getErrorSuggestion, isConstraintError, isRecordedCaptureGuardError, isSystemError, isTypeGraphError, isUserRecoverable } from './chunk-5PNMDJ7J.js';
44
+ import './chunk-XZA3Y4YH.js';
45
+ import { EmbeddingDimensionChangedError } from './chunk-DPNA466P.js';
46
+ export { BackendDisposedError, CardinalityError, CompilerInvariantError, ConfigurationError, DatabaseOperationError, DisjointError, EagerMaterializationError, EdgeNotFoundError, EmbeddingDimensionChangedError, EndpointError, EndpointNotFoundError, GraphAlgorithmConvergenceError, InvalidEdgeWeightError, KindNotFoundError, MigrationError, NodeConstraintNotFoundError, NodeIndexNotFoundError, NodeNotFoundError, RECORDED_CAPTURE_GUARD_CODES, RestrictedDeleteError, SchemaContentConflictError, SchemaMismatchError, StaleVersionError, StoreNotInitializedError, TransactionClosedError, TrustedImportError, TypeGraphError, UniquenessError, UnsupportedBackendCapabilityError, UnsupportedPredicateError, ValidationError, VersionConflictError, getErrorSuggestion, isConstraintError, isRecordedCaptureGuardError, isSystemError, isTypeGraphError, isUserRecoverable } from './chunk-DPNA466P.js';
36
47
  export { MAX_JSON_POINTER_DEPTH, joinJsonPointers, jsonPointer, normalizeJsonPointer, parseJsonPointer } from './chunk-G6Q5UM7U.js';
37
- import { z } from 'zod';
38
- import { sql } from 'drizzle-orm';
39
48
 
40
- // src/core/meta-edge.ts
41
- function metaEdge(name, options = {}) {
42
- const properties = {
43
- transitive: options.transitive ?? false,
44
- symmetric: options.symmetric ?? false,
45
- reflexive: options.reflexive ?? false,
46
- inverse: options.inverse,
47
- inference: options.inference ?? "none",
48
- description: options.description
49
- };
50
- return Object.freeze({
51
- [META_EDGE_BRAND]: true,
52
- name,
53
- properties
54
- });
55
- }
56
- var EXTERNAL_REF_TABLE_KEY = "_externalRefTable";
57
- function externalRef(table) {
58
- if (typeof table !== "string" || table.length === 0) {
59
- throw new Error(
60
- `External reference table must be a non-empty string, got: ${typeof table === "string" ? `"${table}"` : typeof table}`
61
- );
62
- }
63
- const schema = z.object({
64
- table: z.literal(table),
65
- id: z.string().min(1, "External reference ID must be non-empty")
66
- });
67
- return Object.assign(schema, {
68
- [EXTERNAL_REF_TABLE_KEY]: table
69
- });
70
- }
71
- function isExternalRefSchema(value) {
72
- return typeof value === "object" && value !== null && EXTERNAL_REF_TABLE_KEY in value && typeof value[EXTERNAL_REF_TABLE_KEY] === "string";
73
- }
74
- function getExternalRefTable(schema) {
75
- if (isExternalRefSchema(schema)) {
76
- return schema[EXTERNAL_REF_TABLE_KEY];
77
- }
78
- return void 0;
79
- }
80
- function createExternalRef(table) {
81
- return (id) => ({ table, id });
82
- }
49
+ // src/backend/migrate-vectors.ts
83
50
  var DEFAULT_BATCH_SIZE = 500;
84
51
  var DEFAULT_SLOT_METRIC = DEFAULT_EMBEDDING_METRIC;
85
52
  var DEFAULT_SLOT_INDEX_TYPE = DEFAULT_EMBEDDING_INDEX_TYPE;
@@ -176,7 +143,7 @@ async function migrateLegacyEmbeddings(options) {
176
143
  perField[slotKey] = (perField[slotKey] ?? 0) + 1;
177
144
  }
178
145
  if (batch.length < batchSize) break;
179
- const last = batch.at(-1);
146
+ const last = requireDefined(batch.at(-1));
180
147
  cursor = {
181
148
  graphId: last.graph_id,
182
149
  nodeKind: last.node_kind,
@@ -193,7 +160,7 @@ async function migrateLegacyEmbeddings(options) {
193
160
  };
194
161
  }
195
162
  async function readLegacyBatch(backend, params) {
196
- const table = quotedTableName(params.legacyTableName);
163
+ const table = sql.identifier(params.legacyTableName);
197
164
  const embeddingJson = legacyEmbeddingDecodeExpression(backend);
198
165
  const conditions = [];
199
166
  if (params.graphId !== void 0) {
@@ -272,6 +239,6 @@ function decodeEmbeddingJson(row) {
272
239
  return parsed;
273
240
  }
274
241
 
275
- export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchema, metaEdge, migrateLegacyEmbeddings };
242
+ export { migrateLegacyEmbeddings };
276
243
  //# sourceMappingURL=index.js.map
277
244
  //# sourceMappingURL=index.js.map