@nicia-ai/typegraph 0.49.0 → 0.51.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 (370) hide show
  1. package/README.md +12 -0
  2. package/dist/backend/drizzle/indexes.cjs +11 -9
  3. package/dist/backend/drizzle/indexes.d.cts +1 -1
  4. package/dist/backend/drizzle/indexes.d.ts +1 -1
  5. package/dist/backend/drizzle/indexes.js +7 -5
  6. package/dist/backend/index.cjs +190 -53
  7. package/dist/backend/index.d.cts +90 -4
  8. package/dist/backend/index.d.ts +90 -4
  9. package/dist/backend/index.js +9 -12
  10. package/dist/backend/postgres/index.cjs +36 -28
  11. package/dist/backend/postgres/index.d.cts +7 -7
  12. package/dist/backend/postgres/index.d.ts +7 -7
  13. package/dist/backend/postgres/index.js +19 -15
  14. package/dist/backend/postgres/pglite-store.cjs +7 -62
  15. package/dist/backend/postgres/pglite-store.cjs.map +1 -1
  16. package/dist/backend/postgres/pglite-store.d.cts +8 -8
  17. package/dist/backend/postgres/pglite-store.d.ts +8 -8
  18. package/dist/backend/postgres/pglite-store.js +7 -62
  19. package/dist/backend/postgres/pglite-store.js.map +1 -1
  20. package/dist/backend/postgres/pglite.cjs +21 -17
  21. package/dist/backend/postgres/pglite.d.cts +3 -3
  22. package/dist/backend/postgres/pglite.d.ts +3 -3
  23. package/dist/backend/postgres/pglite.js +20 -16
  24. package/dist/backend/sqlite/index.cjs +33 -25
  25. package/dist/backend/sqlite/index.d.cts +7 -7
  26. package/dist/backend/sqlite/index.d.ts +7 -7
  27. package/dist/backend/sqlite/index.js +17 -13
  28. package/dist/backend/sqlite/libsql.cjs +24 -20
  29. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  30. package/dist/backend/sqlite/libsql.d.cts +3 -3
  31. package/dist/backend/sqlite/libsql.d.ts +3 -3
  32. package/dist/backend/sqlite/libsql.js +19 -15
  33. package/dist/backend/sqlite/libsql.js.map +1 -1
  34. package/dist/backend/sqlite/local-store.cjs +9 -64
  35. package/dist/backend/sqlite/local-store.cjs.map +1 -1
  36. package/dist/backend/sqlite/local-store.d.cts +8 -8
  37. package/dist/backend/sqlite/local-store.d.ts +8 -8
  38. package/dist/backend/sqlite/local-store.js +8 -64
  39. package/dist/backend/sqlite/local-store.js.map +1 -1
  40. package/dist/backend/sqlite/local.cjs +25 -20
  41. package/dist/backend/sqlite/local.d.cts +3 -3
  42. package/dist/backend/sqlite/local.d.ts +3 -3
  43. package/dist/backend/sqlite/local.js +21 -16
  44. package/dist/chunk-2CVDZCXH.cjs +1278 -0
  45. package/dist/chunk-2CVDZCXH.cjs.map +1 -0
  46. package/dist/{chunk-MYKHJI2J.js → chunk-2DWTBNSH.js} +3 -3
  47. package/dist/{chunk-MYKHJI2J.js.map → chunk-2DWTBNSH.js.map} +1 -1
  48. package/dist/{chunk-JB6T4GLL.cjs → chunk-2KCTP3U2.cjs} +870 -528
  49. package/dist/chunk-2KCTP3U2.cjs.map +1 -0
  50. package/dist/{chunk-OORXGFL5.cjs → chunk-322TBTOQ.cjs} +48 -48
  51. package/dist/{chunk-OORXGFL5.cjs.map → chunk-322TBTOQ.cjs.map} +1 -1
  52. package/dist/{chunk-FA2AFWLP.cjs → chunk-36SX6QXP.cjs} +31 -12
  53. package/dist/chunk-36SX6QXP.cjs.map +1 -0
  54. package/dist/{chunk-SDBBMD4N.js → chunk-36VYWVQU.js} +3 -3
  55. package/dist/{chunk-SDBBMD4N.js.map → chunk-36VYWVQU.js.map} +1 -1
  56. package/dist/chunk-4DKY6RIU.js +1253 -0
  57. package/dist/chunk-4DKY6RIU.js.map +1 -0
  58. package/dist/chunk-4QKOZYMV.js +9 -0
  59. package/dist/chunk-4QKOZYMV.js.map +1 -0
  60. package/dist/{chunk-WIC7DRXW.js → chunk-57JM6NW3.js} +9 -19
  61. package/dist/chunk-57JM6NW3.js.map +1 -0
  62. package/dist/chunk-5WWEYV4H.cjs +5113 -0
  63. package/dist/chunk-5WWEYV4H.cjs.map +1 -0
  64. package/dist/chunk-6KQEICJ6.cjs +12 -0
  65. package/dist/{chunk-MKJ4KXL5.cjs.map → chunk-6KQEICJ6.cjs.map} +1 -1
  66. package/dist/{chunk-DZAICA5J.js → chunk-6NKSE5AU.js} +4 -4
  67. package/dist/{chunk-DZAICA5J.js.map → chunk-6NKSE5AU.js.map} +1 -1
  68. package/dist/{chunk-KKBDXCLQ.js → chunk-6NLYIMJO.js} +4 -4
  69. package/dist/{chunk-KKBDXCLQ.js.map → chunk-6NLYIMJO.js.map} +1 -1
  70. package/dist/{chunk-BFUOME67.cjs → chunk-7B7I7YAW.cjs} +20 -11
  71. package/dist/chunk-7B7I7YAW.cjs.map +1 -0
  72. package/dist/{chunk-ZDKTPBGV.js → chunk-7G5IYROL.js} +6 -548
  73. package/dist/chunk-7G5IYROL.js.map +1 -0
  74. package/dist/{chunk-3DMMGT6S.js → chunk-7QFRK6PU.js} +4 -8
  75. package/dist/chunk-7QFRK6PU.js.map +1 -0
  76. package/dist/chunk-A4C4NJ5U.cjs +12 -0
  77. package/dist/chunk-A4C4NJ5U.cjs.map +1 -0
  78. package/dist/{chunk-CHAOFCHV.js → chunk-AH2A74OZ.js} +3 -3
  79. package/dist/{chunk-CHAOFCHV.js.map → chunk-AH2A74OZ.js.map} +1 -1
  80. package/dist/{chunk-UGHQV7MP.cjs → chunk-B3MN7EJR.cjs} +228 -162
  81. package/dist/chunk-B3MN7EJR.cjs.map +1 -0
  82. package/dist/{chunk-TZEGUG6D.cjs → chunk-BZ5MVITP.cjs} +4 -4
  83. package/dist/{chunk-TZEGUG6D.cjs.map → chunk-BZ5MVITP.cjs.map} +1 -1
  84. package/dist/{chunk-YVF2EM7B.js → chunk-CAI6SMP6.js} +3 -3
  85. package/dist/{chunk-YVF2EM7B.js.map → chunk-CAI6SMP6.js.map} +1 -1
  86. package/dist/{chunk-JONXFAPO.js → chunk-CBOD7TXH.js} +5 -5
  87. package/dist/{chunk-JONXFAPO.js.map → chunk-CBOD7TXH.js.map} +1 -1
  88. package/dist/{chunk-FQPEMEWX.cjs → chunk-CRZ56SZU.cjs} +81 -32
  89. package/dist/chunk-CRZ56SZU.cjs.map +1 -0
  90. package/dist/{chunk-DO7SAMEK.cjs → chunk-D3GWARN7.cjs} +47 -47
  91. package/dist/{chunk-DO7SAMEK.cjs.map → chunk-D3GWARN7.cjs.map} +1 -1
  92. package/dist/{chunk-QTD6HX4O.js → chunk-D3OUDFU7.js} +5 -5
  93. package/dist/{chunk-QTD6HX4O.js.map → chunk-D3OUDFU7.js.map} +1 -1
  94. package/dist/{chunk-2QGYQBS2.cjs → chunk-DWUDZ66O.cjs} +10 -10
  95. package/dist/{chunk-2QGYQBS2.cjs.map → chunk-DWUDZ66O.cjs.map} +1 -1
  96. package/dist/chunk-EKG2UXNX.cjs +23 -0
  97. package/dist/chunk-EKG2UXNX.cjs.map +1 -0
  98. package/dist/chunk-FMMW3KX7.cjs +148 -0
  99. package/dist/chunk-FMMW3KX7.cjs.map +1 -0
  100. package/dist/{chunk-XVWOYKIK.js → chunk-FZHF5UWR.js} +3 -3
  101. package/dist/{chunk-XVWOYKIK.js.map → chunk-FZHF5UWR.js.map} +1 -1
  102. package/dist/chunk-H2VWDQWC.cjs +571 -0
  103. package/dist/chunk-H2VWDQWC.cjs.map +1 -0
  104. package/dist/chunk-H4FY6OZK.js +13 -0
  105. package/dist/chunk-H4FY6OZK.js.map +1 -0
  106. package/dist/{chunk-EDN4Y4ZG.cjs → chunk-H5IJSROF.cjs} +9 -15
  107. package/dist/chunk-H5IJSROF.cjs.map +1 -0
  108. package/dist/chunk-HZUB5CON.js +27 -0
  109. package/dist/chunk-HZUB5CON.js.map +1 -0
  110. package/dist/{chunk-NACVVDWB.js → chunk-I5IOSA27.js} +103 -105
  111. package/dist/chunk-I5IOSA27.js.map +1 -0
  112. package/dist/{chunk-OI2GQ25X.cjs → chunk-I7YAY2VQ.cjs} +7 -7
  113. package/dist/{chunk-OI2GQ25X.cjs.map → chunk-I7YAY2VQ.cjs.map} +1 -1
  114. package/dist/chunk-IRCWIA3R.js +20 -0
  115. package/dist/chunk-IRCWIA3R.js.map +1 -0
  116. package/dist/chunk-IVQBLXBK.cjs +55 -0
  117. package/dist/chunk-IVQBLXBK.cjs.map +1 -0
  118. package/dist/{chunk-7SQSZN2J.js → chunk-IZD4HTCP.js} +5 -5
  119. package/dist/{chunk-7SQSZN2J.js.map → chunk-IZD4HTCP.js.map} +1 -1
  120. package/dist/{chunk-3FPR224C.cjs → chunk-JHRUZ73O.cjs} +116 -107
  121. package/dist/chunk-JHRUZ73O.cjs.map +1 -0
  122. package/dist/{chunk-EZEEWCFJ.cjs → chunk-JQKMEKKW.cjs} +525 -298
  123. package/dist/chunk-JQKMEKKW.cjs.map +1 -0
  124. package/dist/chunk-JVA3KDEA.cjs +691 -0
  125. package/dist/chunk-JVA3KDEA.cjs.map +1 -0
  126. package/dist/{chunk-5K2BKEBD.js → chunk-K46SDNQD.js} +10 -4
  127. package/dist/chunk-K46SDNQD.js.map +1 -0
  128. package/dist/{chunk-7LZJNLA5.js → chunk-K67P5DLL.js} +108 -42
  129. package/dist/chunk-K67P5DLL.js.map +1 -0
  130. package/dist/{chunk-3G5W2U2L.cjs → chunk-KACEYDYV.cjs} +335 -258
  131. package/dist/chunk-KACEYDYV.cjs.map +1 -0
  132. package/dist/{chunk-JFRT7S3B.cjs → chunk-L6EVYIID.cjs} +318 -478
  133. package/dist/chunk-L6EVYIID.cjs.map +1 -0
  134. package/dist/{chunk-SHFBB23Q.js → chunk-LI4K2KEJ.js} +6 -4
  135. package/dist/chunk-LI4K2KEJ.js.map +1 -0
  136. package/dist/chunk-LKZDQ2B4.js +1581 -0
  137. package/dist/chunk-LKZDQ2B4.js.map +1 -0
  138. package/dist/{chunk-WODMN3Q2.cjs → chunk-LLFPQOBA.cjs} +27 -27
  139. package/dist/{chunk-WODMN3Q2.cjs.map → chunk-LLFPQOBA.cjs.map} +1 -1
  140. package/dist/{chunk-P6YLZTRE.js → chunk-LZMQ3SFK.js} +3 -3
  141. package/dist/{chunk-P6YLZTRE.js.map → chunk-LZMQ3SFK.js.map} +1 -1
  142. package/dist/{chunk-HEV35TGT.js → chunk-M3VTS3F6.js} +13 -4
  143. package/dist/chunk-M3VTS3F6.js.map +1 -0
  144. package/dist/{chunk-TQHGE7UC.cjs → chunk-M5MSP3BI.cjs} +18 -10
  145. package/dist/chunk-M5MSP3BI.cjs.map +1 -0
  146. package/dist/{chunk-D4QLTJSM.js → chunk-NBOS7BY3.js} +63 -23
  147. package/dist/chunk-NBOS7BY3.js.map +1 -0
  148. package/dist/chunk-NGQDGL5X.js +140 -0
  149. package/dist/chunk-NGQDGL5X.js.map +1 -0
  150. package/dist/{chunk-SIT26LAZ.cjs → chunk-NLX5OWK7.cjs} +33 -5
  151. package/dist/chunk-NLX5OWK7.cjs.map +1 -0
  152. package/dist/chunk-NUQ2YFFH.cjs +1637 -0
  153. package/dist/chunk-NUQ2YFFH.cjs.map +1 -0
  154. package/dist/{chunk-UMGZDVOA.cjs → chunk-OGL4X4PH.cjs} +206 -208
  155. package/dist/chunk-OGL4X4PH.cjs.map +1 -0
  156. package/dist/{chunk-LRQKXRXO.cjs → chunk-OTNTGEXR.cjs} +4 -4
  157. package/dist/{chunk-LRQKXRXO.cjs.map → chunk-OTNTGEXR.cjs.map} +1 -1
  158. package/dist/chunk-OTWE63BW.js +53 -0
  159. package/dist/chunk-OTWE63BW.js.map +1 -0
  160. package/dist/chunk-PC5NGH5A.js +549 -0
  161. package/dist/chunk-PC5NGH5A.js.map +1 -0
  162. package/dist/{chunk-26YKDNUD.cjs → chunk-PS3TUWJM.cjs} +12 -10
  163. package/dist/chunk-PS3TUWJM.cjs.map +1 -0
  164. package/dist/{chunk-OMZ37BM2.js → chunk-PVFFH7TL.js} +5 -5
  165. package/dist/{chunk-OMZ37BM2.js.map → chunk-PVFFH7TL.js.map} +1 -1
  166. package/dist/chunk-QCD5JKU4.cjs +15 -0
  167. package/dist/chunk-QCD5JKU4.cjs.map +1 -0
  168. package/dist/{chunk-UGHG7PGX.js → chunk-QG5VEOKX.js} +30 -4
  169. package/dist/chunk-QG5VEOKX.js.map +1 -0
  170. package/dist/{chunk-TUNPBZY3.cjs → chunk-QLLZM5I3.cjs} +4 -4
  171. package/dist/{chunk-TUNPBZY3.cjs.map → chunk-QLLZM5I3.cjs.map} +1 -1
  172. package/dist/{chunk-BRRP76WO.js → chunk-RCBG6YMT.js} +781 -375
  173. package/dist/chunk-RCBG6YMT.js.map +1 -0
  174. package/dist/{chunk-LTXQOEIC.js → chunk-RI7RJH4G.js} +281 -204
  175. package/dist/chunk-RI7RJH4G.js.map +1 -0
  176. package/dist/{chunk-GYEG3ZLZ.cjs → chunk-RJMHU2MG.cjs} +121 -18
  177. package/dist/chunk-RJMHU2MG.cjs.map +1 -0
  178. package/dist/{chunk-GLHXM7C4.js → chunk-RVUL2HXY.js} +61 -23
  179. package/dist/chunk-RVUL2HXY.js.map +1 -0
  180. package/dist/chunk-RWUWTJQY.cjs +30 -0
  181. package/dist/chunk-RWUWTJQY.cjs.map +1 -0
  182. package/dist/{chunk-2O4PCIZ6.cjs → chunk-S5GU4LUN.cjs} +13 -13
  183. package/dist/{chunk-2O4PCIZ6.cjs.map → chunk-S5GU4LUN.cjs.map} +1 -1
  184. package/dist/{chunk-JPD2CTC3.js → chunk-SDPWO2Z5.js} +7 -7
  185. package/dist/{chunk-JPD2CTC3.js.map → chunk-SDPWO2Z5.js.map} +1 -1
  186. package/dist/{chunk-OVI7IXYX.js → chunk-SLGGT2XD.js} +3 -3
  187. package/dist/{chunk-OVI7IXYX.js.map → chunk-SLGGT2XD.js.map} +1 -1
  188. package/dist/{chunk-ROR5ZR6A.cjs → chunk-TIJUA4I6.cjs} +45 -45
  189. package/dist/{chunk-ROR5ZR6A.cjs.map → chunk-TIJUA4I6.cjs.map} +1 -1
  190. package/dist/{chunk-AOSSQDVO.cjs → chunk-TM54OBHX.cjs} +13 -13
  191. package/dist/{chunk-AOSSQDVO.cjs.map → chunk-TM54OBHX.cjs.map} +1 -1
  192. package/dist/{chunk-KF6K7TGH.js → chunk-TYEYRCXL.js} +766 -433
  193. package/dist/chunk-TYEYRCXL.js.map +1 -0
  194. package/dist/{chunk-Z2JCLZFJ.js → chunk-UKOVGCRN.js} +2151 -570
  195. package/dist/chunk-UKOVGCRN.js.map +1 -0
  196. package/dist/chunk-UYKDYE5D.cjs +12 -0
  197. package/dist/{chunk-CICO5GXD.cjs.map → chunk-UYKDYE5D.cjs.map} +1 -1
  198. package/dist/{chunk-S5TERQVW.js → chunk-VAAC7L57.js} +284 -66
  199. package/dist/chunk-VAAC7L57.js.map +1 -0
  200. package/dist/{chunk-7UOLHNWC.cjs → chunk-VKHXYVN7.cjs} +22 -33
  201. package/dist/chunk-VKHXYVN7.cjs.map +1 -0
  202. package/dist/{chunk-6NGW27EO.cjs → chunk-VLBTRXA2.cjs} +10 -10
  203. package/dist/{chunk-6NGW27EO.cjs.map → chunk-VLBTRXA2.cjs.map} +1 -1
  204. package/dist/{chunk-YIURNGXI.js → chunk-VUQZNUHU.js} +22 -6
  205. package/dist/chunk-VUQZNUHU.js.map +1 -0
  206. package/dist/{chunk-YYUHLYM2.cjs → chunk-WDM5WQK4.cjs} +183 -143
  207. package/dist/chunk-WDM5WQK4.cjs.map +1 -0
  208. package/dist/{chunk-ZFMCDJGB.js → chunk-WFSYYU4W.js} +70 -220
  209. package/dist/chunk-WFSYYU4W.js.map +1 -0
  210. package/dist/{chunk-SR725PWF.cjs → chunk-WRBV2FNH.cjs} +2065 -1659
  211. package/dist/chunk-WRBV2FNH.cjs.map +1 -0
  212. package/dist/{chunk-MRDBBHIZ.cjs → chunk-X4GDXBOP.cjs} +2 -2
  213. package/dist/chunk-X4GDXBOP.cjs.map +1 -0
  214. package/dist/chunk-XORONCV3.js +202 -0
  215. package/dist/chunk-XORONCV3.js.map +1 -0
  216. package/dist/{chunk-D5R42W5D.js → chunk-XZW2CTNO.js} +115 -12
  217. package/dist/chunk-XZW2CTNO.js.map +1 -0
  218. package/dist/{chunk-ZLONH2UD.js → chunk-YDEJQWOL.js} +2 -2
  219. package/dist/chunk-YDEJQWOL.js.map +1 -0
  220. package/dist/{chunk-2TYSSBU5.js → chunk-YT2IVFAI.js} +30 -21
  221. package/dist/chunk-YT2IVFAI.js.map +1 -0
  222. package/dist/chunk-ZGVTNKTX.cjs +217 -0
  223. package/dist/chunk-ZGVTNKTX.cjs.map +1 -0
  224. package/dist/core/index.cjs +29 -28
  225. package/dist/core/index.d.cts +4 -4
  226. package/dist/core/index.d.ts +4 -4
  227. package/dist/core/index.js +9 -8
  228. package/dist/{ddl-D_oW-EVO.d.ts → ddl-BvcbgzHo.d.ts} +3 -3
  229. package/dist/{ddl-BL1NZLMY.d.cts → ddl-Ufebz5q5.d.cts} +3 -3
  230. package/dist/graph-extension/index.cjs +21 -20
  231. package/dist/graph-extension/index.d.cts +2 -4
  232. package/dist/graph-extension/index.d.ts +2 -4
  233. package/dist/graph-extension/index.js +5 -4
  234. package/dist/graph-merge/index.cjs +324 -307
  235. package/dist/graph-merge/index.cjs.map +1 -1
  236. package/dist/graph-merge/index.d.cts +8 -9
  237. package/dist/graph-merge/index.d.ts +8 -9
  238. package/dist/graph-merge/index.js +51 -34
  239. package/dist/graph-merge/index.js.map +1 -1
  240. package/dist/index.cjs +224 -222
  241. package/dist/index.cjs.map +1 -1
  242. package/dist/index.d.cts +11 -12
  243. package/dist/index.d.ts +11 -12
  244. package/dist/index.js +38 -36
  245. package/dist/index.js.map +1 -1
  246. package/dist/indexes/index.cjs +15 -13
  247. package/dist/indexes/index.d.cts +4 -4
  248. package/dist/indexes/index.d.ts +4 -4
  249. package/dist/indexes/index.js +8 -6
  250. package/dist/{ingestion-import-target-dNeL7iAv.d.ts → ingestion-import-target-CAs1OX-l.d.cts} +1 -1
  251. package/dist/{ingestion-import-target-XPxZYw89.d.cts → ingestion-import-target-DCQSPfNx.d.ts} +1 -1
  252. package/dist/interchange/index.cjs +57 -54
  253. package/dist/interchange/index.cjs.map +1 -1
  254. package/dist/interchange/index.d.cts +19 -8
  255. package/dist/interchange/index.d.ts +19 -8
  256. package/dist/interchange/index.js +21 -18
  257. package/dist/interchange/index.js.map +1 -1
  258. package/dist/local-store-impl-6DDTFM32.cjs +77 -0
  259. package/dist/local-store-impl-6DDTFM32.cjs.map +1 -0
  260. package/dist/local-store-impl-OXTOVU2J.js +75 -0
  261. package/dist/local-store-impl-OXTOVU2J.js.map +1 -0
  262. package/dist/{manager-CYaff3n3.d.cts → manager-B68OrPR2.d.ts} +29 -2
  263. package/dist/{manager-D9eRT_ns.d.ts → manager-D_t7oK69.d.cts} +29 -2
  264. package/dist/pglite-store-impl-6EMZGL7K.js +73 -0
  265. package/dist/pglite-store-impl-6EMZGL7K.js.map +1 -0
  266. package/dist/pglite-store-impl-GJG3Y7RP.cjs +75 -0
  267. package/dist/pglite-store-impl-GJG3Y7RP.cjs.map +1 -0
  268. package/dist/{postgres-CcL4bAHS.d.ts → postgres-BPLSVyHM.d.ts} +279 -2
  269. package/dist/{postgres-DMj39MEu.d.cts → postgres-CqvtFC2y.d.cts} +279 -2
  270. package/dist/profiler/index.d.cts +9 -9
  271. package/dist/profiler/index.d.ts +9 -9
  272. package/dist/provenance/index.cjs +59 -44
  273. package/dist/provenance/index.cjs.map +1 -1
  274. package/dist/provenance/index.d.cts +7 -7
  275. package/dist/provenance/index.d.ts +7 -7
  276. package/dist/provenance/index.js +28 -13
  277. package/dist/provenance/index.js.map +1 -1
  278. package/dist/{repair-validity-windows-BFNZvd_H.d.cts → repair-validity-windows-DEzCKAdy.d.cts} +7 -3
  279. package/dist/{repair-validity-windows-DlUSqwCg.d.ts → repair-validity-windows-GMdaS2AH.d.ts} +7 -3
  280. package/dist/resolve-D_H8MHtq.d.ts +1805 -0
  281. package/dist/resolve-WEW8gWws.d.cts +1805 -0
  282. package/dist/schema/index.cjs +48 -46
  283. package/dist/schema/index.d.cts +4 -6
  284. package/dist/schema/index.d.ts +4 -6
  285. package/dist/schema/index.js +21 -19
  286. package/dist/{searchable-bpE1bBfc.d.ts → searchable-C_UREI9K.d.ts} +1 -1
  287. package/dist/{searchable-DHJMh_nj.d.cts → searchable-ClgET_i7.d.cts} +1 -1
  288. package/dist/{sqlite-YppHrNFb.d.cts → sqlite-D1mXO9Kp.d.cts} +310 -2
  289. package/dist/{sqlite-D7Oz0SQh.d.ts → sqlite-MZA3oZNB.d.ts} +310 -2
  290. package/dist/{store-bphCSo7z.d.cts → store-CuFX7fCx.d.cts} +117 -31
  291. package/dist/{store-DRrFCx5x.d.ts → store-D-ZjXQpW.d.ts} +117 -31
  292. package/dist/{temporal-CbnLzTmM.d.ts → temporal-CpyEiRY8.d.cts} +1 -1
  293. package/dist/{temporal-5GqpYCk2.d.cts → temporal-y0Aep9Su.d.ts} +1 -1
  294. package/dist/{types-BqFZTQmV.d.cts → types-6yf0Vv-_.d.cts} +2016 -94
  295. package/dist/{types-BqFZTQmV.d.ts → types-6yf0Vv-_.d.ts} +2016 -94
  296. package/dist/{types-Bx74kaTt.d.ts → types-DzJ4dlzk.d.cts} +1 -1
  297. package/dist/{types-CXAhpW-c.d.cts → types-_vVSB9k-.d.ts} +1 -1
  298. package/dist/{where-O-k2wgYm.d.ts → where-DuG2LCLe.d.ts} +1 -1
  299. package/dist/{where-DI_Fqz-X.d.cts → where-Mhf_yyKX.d.cts} +1 -1
  300. package/package.json +7 -2
  301. package/dist/chunk-26YKDNUD.cjs.map +0 -1
  302. package/dist/chunk-2TYSSBU5.js.map +0 -1
  303. package/dist/chunk-3DMMGT6S.js.map +0 -1
  304. package/dist/chunk-3FPR224C.cjs.map +0 -1
  305. package/dist/chunk-3G5W2U2L.cjs.map +0 -1
  306. package/dist/chunk-3KOY4FH3.cjs +0 -934
  307. package/dist/chunk-3KOY4FH3.cjs.map +0 -1
  308. package/dist/chunk-3QNZ5SAJ.cjs +0 -3502
  309. package/dist/chunk-3QNZ5SAJ.cjs.map +0 -1
  310. package/dist/chunk-3U5ABFDW.cjs +0 -259
  311. package/dist/chunk-3U5ABFDW.cjs.map +0 -1
  312. package/dist/chunk-5K2BKEBD.js.map +0 -1
  313. package/dist/chunk-5PRKMB24.cjs +0 -124
  314. package/dist/chunk-5PRKMB24.cjs.map +0 -1
  315. package/dist/chunk-6LN7FIVU.js +0 -107
  316. package/dist/chunk-6LN7FIVU.js.map +0 -1
  317. package/dist/chunk-6SWPJEYN.js +0 -1126
  318. package/dist/chunk-6SWPJEYN.js.map +0 -1
  319. package/dist/chunk-7LZJNLA5.js.map +0 -1
  320. package/dist/chunk-7UOLHNWC.cjs.map +0 -1
  321. package/dist/chunk-BFUOME67.cjs.map +0 -1
  322. package/dist/chunk-BRRP76WO.js.map +0 -1
  323. package/dist/chunk-CICO5GXD.cjs +0 -12
  324. package/dist/chunk-D4QLTJSM.js.map +0 -1
  325. package/dist/chunk-D5R42W5D.js.map +0 -1
  326. package/dist/chunk-EDN4Y4ZG.cjs.map +0 -1
  327. package/dist/chunk-EZEEWCFJ.cjs.map +0 -1
  328. package/dist/chunk-FA2AFWLP.cjs.map +0 -1
  329. package/dist/chunk-FQPEMEWX.cjs.map +0 -1
  330. package/dist/chunk-GLHXM7C4.js.map +0 -1
  331. package/dist/chunk-GYEG3ZLZ.cjs.map +0 -1
  332. package/dist/chunk-HDL2ARHX.cjs +0 -1156
  333. package/dist/chunk-HDL2ARHX.cjs.map +0 -1
  334. package/dist/chunk-HEV35TGT.js.map +0 -1
  335. package/dist/chunk-I4GAZH5Z.js +0 -913
  336. package/dist/chunk-I4GAZH5Z.js.map +0 -1
  337. package/dist/chunk-JB6T4GLL.cjs.map +0 -1
  338. package/dist/chunk-JBQQ7THH.js +0 -20
  339. package/dist/chunk-JBQQ7THH.js.map +0 -1
  340. package/dist/chunk-JFRT7S3B.cjs.map +0 -1
  341. package/dist/chunk-KF6K7TGH.js.map +0 -1
  342. package/dist/chunk-L3LQNR34.cjs +0 -1254
  343. package/dist/chunk-L3LQNR34.cjs.map +0 -1
  344. package/dist/chunk-LTXQOEIC.js.map +0 -1
  345. package/dist/chunk-MKJ4KXL5.cjs +0 -12
  346. package/dist/chunk-MRDBBHIZ.cjs.map +0 -1
  347. package/dist/chunk-NACVVDWB.js.map +0 -1
  348. package/dist/chunk-NVY5CJFP.js +0 -244
  349. package/dist/chunk-NVY5CJFP.js.map +0 -1
  350. package/dist/chunk-PWLJ77UV.cjs +0 -23
  351. package/dist/chunk-PWLJ77UV.cjs.map +0 -1
  352. package/dist/chunk-S5TERQVW.js.map +0 -1
  353. package/dist/chunk-SHFBB23Q.js.map +0 -1
  354. package/dist/chunk-SIT26LAZ.cjs.map +0 -1
  355. package/dist/chunk-SR725PWF.cjs.map +0 -1
  356. package/dist/chunk-TQHGE7UC.cjs.map +0 -1
  357. package/dist/chunk-UGHG7PGX.js.map +0 -1
  358. package/dist/chunk-UGHQV7MP.cjs.map +0 -1
  359. package/dist/chunk-UMGZDVOA.cjs.map +0 -1
  360. package/dist/chunk-WIC7DRXW.js.map +0 -1
  361. package/dist/chunk-YIURNGXI.js.map +0 -1
  362. package/dist/chunk-YYUHLYM2.cjs.map +0 -1
  363. package/dist/chunk-Z2JCLZFJ.js.map +0 -1
  364. package/dist/chunk-ZDKTPBGV.js.map +0 -1
  365. package/dist/chunk-ZFMCDJGB.js.map +0 -1
  366. package/dist/chunk-ZLONH2UD.js.map +0 -1
  367. package/dist/index-COs_z6nV.d.cts +0 -1132
  368. package/dist/index-D7d1u2gr.d.ts +0 -1132
  369. package/dist/materialize-indexes-DJ3ykH59.d.ts +0 -266
  370. package/dist/materialize-indexes-DTtAnvfY.d.cts +0 -266
@@ -1,5 +1,4 @@
1
- import { dg as NodeType, dh as AnyEdgeType, aR as GraphIdentityConfig, di as SqlSchema, bR as SchemaVersionRow, aM as GraphBackend, bZ as SerializedSchema, d8 as GraphDef } from './types-BqFZTQmV.cjs';
2
- import { S as SchemaDiff } from './materialize-indexes-DTtAnvfY.cjs';
1
+ import { dF as NodeType, dG as AnyEdgeType, G as GraphIdentityConfig, dH as SchemaDiff, dI as SqlSchema, ca as SchemaVersionRow, e as GraphBackend, ci as SerializedSchema, d as GraphDef } from './types-6yf0Vv-_.js';
3
2
 
4
3
  /**
5
4
  * KindRegistry holds precomputed closures for ontological reasoning.
@@ -7,6 +6,7 @@ import { S as SchemaDiff } from './materialize-indexes-DTtAnvfY.cjs';
7
6
  * Computed at store initialization and cached for fast query-time lookups.
8
7
  */
9
8
  declare class KindRegistry {
9
+ #private;
10
10
  readonly nodeKinds: ReadonlyMap<string, NodeType>;
11
11
  readonly edgeKinds: ReadonlyMap<string, AnyEdgeType>;
12
12
  /**
@@ -60,6 +60,11 @@ declare class KindRegistry {
60
60
  * Gets all descendants of a kind (via subClassOf).
61
61
  */
62
62
  getDescendants(kind: string): ReadonlySet<string>;
63
+ /**
64
+ * Returns the precomputed undirected `subClassOf` component containing kind,
65
+ * in code-point order. Every member of one component returns the same array.
66
+ */
67
+ getSubClassComponent(kind: string): readonly string[];
63
68
  /**
64
69
  * Checks if narrowerConcept is narrower than broaderConcept.
65
70
  */
@@ -90,10 +95,32 @@ declare class KindRegistry {
90
95
  resolveIri(iri: string): string | undefined;
91
96
  /** Gets directly associated kinds declared through symmetric `relatedTo`. */
92
97
  getRelatedKinds(kind: string): readonly string[];
98
+ /**
99
+ * THE canonical label of an unordered pair of kinds — the form
100
+ * {@link disjointPairs} stores, and the form a disjointness CLAIM AXIS is
101
+ * folded from.
102
+ *
103
+ * Exposed on the registry because the claim axis needs it: a fence keyed on
104
+ * a second spelling of this normalization would put the two kinds of one
105
+ * disjoint pair on two rows that can never collide, which is exactly the
106
+ * failure the fence exists to prevent. One expression, called by the
107
+ * membership test, by the pair computation, and by the axis.
108
+ */
109
+ disjointPairLabel(a: string, b: string): string;
93
110
  /**
94
111
  * Checks if two kinds are disjoint.
95
112
  */
96
113
  areDisjoint(a: string, b: string): boolean;
114
+ /**
115
+ * Every declared disjoint pair, once each, as the two kinds it names.
116
+ *
117
+ * The inverse of {@link disjointPairLabel} lives in this module alone, so a
118
+ * caller enumerating the pairs — the fence audit is the one that needs them —
119
+ * never has to know how a label is spelled. Iterating the kinds and folding
120
+ * {@link getDisjointKinds} would be a second, order-dependent spelling of
121
+ * exactly this set.
122
+ */
123
+ disjointKindPairs(): readonly (readonly [string, string])[];
97
124
  /**
98
125
  * Gets all kinds that are disjoint with the given kind.
99
126
  */
@@ -1,5 +1,4 @@
1
- import { dg as NodeType, dh as AnyEdgeType, aR as GraphIdentityConfig, di as SqlSchema, bR as SchemaVersionRow, aM as GraphBackend, bZ as SerializedSchema, d8 as GraphDef } from './types-BqFZTQmV.js';
2
- import { S as SchemaDiff } from './materialize-indexes-DJ3ykH59.js';
1
+ import { dF as NodeType, dG as AnyEdgeType, G as GraphIdentityConfig, dH as SchemaDiff, dI as SqlSchema, ca as SchemaVersionRow, e as GraphBackend, ci as SerializedSchema, d as GraphDef } from './types-6yf0Vv-_.cjs';
3
2
 
4
3
  /**
5
4
  * KindRegistry holds precomputed closures for ontological reasoning.
@@ -7,6 +6,7 @@ import { S as SchemaDiff } from './materialize-indexes-DJ3ykH59.js';
7
6
  * Computed at store initialization and cached for fast query-time lookups.
8
7
  */
9
8
  declare class KindRegistry {
9
+ #private;
10
10
  readonly nodeKinds: ReadonlyMap<string, NodeType>;
11
11
  readonly edgeKinds: ReadonlyMap<string, AnyEdgeType>;
12
12
  /**
@@ -60,6 +60,11 @@ declare class KindRegistry {
60
60
  * Gets all descendants of a kind (via subClassOf).
61
61
  */
62
62
  getDescendants(kind: string): ReadonlySet<string>;
63
+ /**
64
+ * Returns the precomputed undirected `subClassOf` component containing kind,
65
+ * in code-point order. Every member of one component returns the same array.
66
+ */
67
+ getSubClassComponent(kind: string): readonly string[];
63
68
  /**
64
69
  * Checks if narrowerConcept is narrower than broaderConcept.
65
70
  */
@@ -90,10 +95,32 @@ declare class KindRegistry {
90
95
  resolveIri(iri: string): string | undefined;
91
96
  /** Gets directly associated kinds declared through symmetric `relatedTo`. */
92
97
  getRelatedKinds(kind: string): readonly string[];
98
+ /**
99
+ * THE canonical label of an unordered pair of kinds — the form
100
+ * {@link disjointPairs} stores, and the form a disjointness CLAIM AXIS is
101
+ * folded from.
102
+ *
103
+ * Exposed on the registry because the claim axis needs it: a fence keyed on
104
+ * a second spelling of this normalization would put the two kinds of one
105
+ * disjoint pair on two rows that can never collide, which is exactly the
106
+ * failure the fence exists to prevent. One expression, called by the
107
+ * membership test, by the pair computation, and by the axis.
108
+ */
109
+ disjointPairLabel(a: string, b: string): string;
93
110
  /**
94
111
  * Checks if two kinds are disjoint.
95
112
  */
96
113
  areDisjoint(a: string, b: string): boolean;
114
+ /**
115
+ * Every declared disjoint pair, once each, as the two kinds it names.
116
+ *
117
+ * The inverse of {@link disjointPairLabel} lives in this module alone, so a
118
+ * caller enumerating the pairs — the fence audit is the one that needs them —
119
+ * never has to know how a label is spelled. Iterating the kinds and folding
120
+ * {@link getDisjointKinds} would be a second, order-dependent spelling of
121
+ * exactly this set.
122
+ */
123
+ disjointKindPairs(): readonly (readonly [string, string])[];
97
124
  /**
98
125
  * Gets all kinds that are disjoint with the given kind.
99
126
  */
@@ -0,0 +1,73 @@
1
+ import { createLocalPgliteBackend } from './chunk-SDPWO2Z5.js';
2
+ import './chunk-K67P5DLL.js';
3
+ import { createPostgresTables } from './chunk-UKOVGCRN.js';
4
+ import './chunk-PVFFH7TL.js';
5
+ import { createStoreWithSchema } from './chunk-RCBG6YMT.js';
6
+ import './chunk-CBOD7TXH.js';
7
+ import './chunk-SLGGT2XD.js';
8
+ import './chunk-VUQZNUHU.js';
9
+ import './chunk-IRCWIA3R.js';
10
+ import './chunk-TYEYRCXL.js';
11
+ import './chunk-4DKY6RIU.js';
12
+ import './chunk-NGQDGL5X.js';
13
+ import './chunk-YT2IVFAI.js';
14
+ import './chunk-LI4K2KEJ.js';
15
+ import './chunk-WFSYYU4W.js';
16
+ import './chunk-VAAC7L57.js';
17
+ import './chunk-QG5VEOKX.js';
18
+ import './chunk-XORONCV3.js';
19
+ import { closeAfterFailure } from './chunk-LKZDQ2B4.js';
20
+ import './chunk-M3VTS3F6.js';
21
+ import './chunk-RVUL2HXY.js';
22
+ import './chunk-6NKSE5AU.js';
23
+ import './chunk-K46SDNQD.js';
24
+ import './chunk-6NLYIMJO.js';
25
+ import './chunk-36VYWVQU.js';
26
+ import './chunk-LZMQ3SFK.js';
27
+ import './chunk-K34OPSJK.js';
28
+ import './chunk-7G5IYROL.js';
29
+ import './chunk-4QKOZYMV.js';
30
+ import './chunk-2EBMPJBO.js';
31
+ import './chunk-PC5NGH5A.js';
32
+ import './chunk-7QFRK6PU.js';
33
+ import './chunk-AMKPPFUO.js';
34
+ import './chunk-W6OG3HDG.js';
35
+ import './chunk-PC2UBAUB.js';
36
+ import './chunk-XZW2CTNO.js';
37
+ import './chunk-JXXDZTMN.js';
38
+ import './chunk-FZHF5UWR.js';
39
+ import './chunk-HZUB5CON.js';
40
+ import './chunk-YDEJQWOL.js';
41
+ import './chunk-FWJKWH6U.js';
42
+ import './chunk-DYATYRY4.js';
43
+
44
+ // src/backend/postgres/pglite-store-impl.ts
45
+ function withoutSchemaOverride(schemaManagement) {
46
+ if (schemaManagement === void 0) return {};
47
+ const { schema: smuggled, ...rest } = schemaManagement;
48
+ return rest;
49
+ }
50
+ async function createLocalPgliteStoreImpl(graph, options) {
51
+ const tables = options.store?.schema === void 0 ? void 0 : createPostgresTables(options.store.schema.tables);
52
+ const { backend } = await createLocalPgliteBackend({
53
+ ...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
54
+ ...options.vector === false ? { vector: false } : {},
55
+ ...tables === void 0 ? {} : { tables }
56
+ });
57
+ try {
58
+ const [store] = await createStoreWithSchema(graph, backend, {
59
+ ...options.store,
60
+ // The type already excludes `schema` here; the runtime strip guards
61
+ // untyped callers, so the provisioned schema (or the default tables)
62
+ // can never diverge from the one the Store reads.
63
+ ...withoutSchemaOverride(options.schemaManagement)
64
+ });
65
+ return store;
66
+ } catch (error) {
67
+ return closeAfterFailure(backend, error);
68
+ }
69
+ }
70
+
71
+ export { createLocalPgliteStoreImpl };
72
+ //# sourceMappingURL=pglite-store-impl-6EMZGL7K.js.map
73
+ //# sourceMappingURL=pglite-store-impl-6EMZGL7K.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-6EMZGL7K.js","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
@@ -0,0 +1,75 @@
1
+ 'use strict';
2
+
3
+ var chunkS5GU4LUN_cjs = require('./chunk-S5GU4LUN.cjs');
4
+ require('./chunk-B3MN7EJR.cjs');
5
+ var chunk5WWEYV4H_cjs = require('./chunk-5WWEYV4H.cjs');
6
+ require('./chunk-LLFPQOBA.cjs');
7
+ var chunkWRBV2FNH_cjs = require('./chunk-WRBV2FNH.cjs');
8
+ require('./chunk-TIJUA4I6.cjs');
9
+ require('./chunk-UYKDYE5D.cjs');
10
+ require('./chunk-36SX6QXP.cjs');
11
+ require('./chunk-EKG2UXNX.cjs');
12
+ require('./chunk-2KCTP3U2.cjs');
13
+ require('./chunk-2CVDZCXH.cjs');
14
+ require('./chunk-FMMW3KX7.cjs');
15
+ require('./chunk-JHRUZ73O.cjs');
16
+ require('./chunk-PS3TUWJM.cjs');
17
+ require('./chunk-L6EVYIID.cjs');
18
+ require('./chunk-JQKMEKKW.cjs');
19
+ require('./chunk-NLX5OWK7.cjs');
20
+ require('./chunk-ZGVTNKTX.cjs');
21
+ var chunkNUQ2YFFH_cjs = require('./chunk-NUQ2YFFH.cjs');
22
+ require('./chunk-7B7I7YAW.cjs');
23
+ require('./chunk-CRZ56SZU.cjs');
24
+ require('./chunk-DWUDZ66O.cjs');
25
+ require('./chunk-M5MSP3BI.cjs');
26
+ require('./chunk-TM54OBHX.cjs');
27
+ require('./chunk-I7YAY2VQ.cjs');
28
+ require('./chunk-OTNTGEXR.cjs');
29
+ require('./chunk-ZY4GXIVN.cjs');
30
+ require('./chunk-JVA3KDEA.cjs');
31
+ require('./chunk-A4C4NJ5U.cjs');
32
+ require('./chunk-NAUA4PW5.cjs');
33
+ require('./chunk-H2VWDQWC.cjs');
34
+ require('./chunk-H5IJSROF.cjs');
35
+ require('./chunk-7EO3TCQB.cjs');
36
+ require('./chunk-RT5ZY4XA.cjs');
37
+ require('./chunk-HAHNRASW.cjs');
38
+ require('./chunk-RJMHU2MG.cjs');
39
+ require('./chunk-XUO3KQFO.cjs');
40
+ require('./chunk-VLBTRXA2.cjs');
41
+ require('./chunk-RWUWTJQY.cjs');
42
+ require('./chunk-X4GDXBOP.cjs');
43
+ require('./chunk-A7J2YDDI.cjs');
44
+ require('./chunk-N66HCGCY.cjs');
45
+
46
+ // src/backend/postgres/pglite-store-impl.ts
47
+ function withoutSchemaOverride(schemaManagement) {
48
+ if (schemaManagement === void 0) return {};
49
+ const { schema: smuggled, ...rest } = schemaManagement;
50
+ return rest;
51
+ }
52
+ async function createLocalPgliteStoreImpl(graph, options) {
53
+ const tables = options.store?.schema === void 0 ? void 0 : chunk5WWEYV4H_cjs.createPostgresTables(options.store.schema.tables);
54
+ const { backend } = await chunkS5GU4LUN_cjs.createLocalPgliteBackend({
55
+ ...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
56
+ ...options.vector === false ? { vector: false } : {},
57
+ ...tables === void 0 ? {} : { tables }
58
+ });
59
+ try {
60
+ const [store] = await chunkWRBV2FNH_cjs.createStoreWithSchema(graph, backend, {
61
+ ...options.store,
62
+ // The type already excludes `schema` here; the runtime strip guards
63
+ // untyped callers, so the provisioned schema (or the default tables)
64
+ // can never diverge from the one the Store reads.
65
+ ...withoutSchemaOverride(options.schemaManagement)
66
+ });
67
+ return store;
68
+ } catch (error) {
69
+ return chunkNUQ2YFFH_cjs.closeAfterFailure(backend, error);
70
+ }
71
+ }
72
+
73
+ exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
74
+ //# sourceMappingURL=pglite-store-impl-GJG3Y7RP.cjs.map
75
+ //# sourceMappingURL=pglite-store-impl-GJG3Y7RP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-GJG3Y7RP.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { I as IndexDeclaration } from './types-BqFZTQmV.js';
2
+ import { I as IndexDeclaration } from './types-6yf0Vv-_.js';
3
3
 
4
4
  /**
5
5
  * Table name configuration.
@@ -16,6 +16,7 @@ type PostgresTableNames = Readonly<{
16
16
  identityClosure: string;
17
17
  identitySeparation: string;
18
18
  uniques: string;
19
+ edgeClaims: string;
19
20
  schemaVersions: string;
20
21
  fulltext: string;
21
22
  indexMaterializations: string;
@@ -2069,6 +2070,98 @@ declare function createPostgresTables(names?: Partial<PostgresTableNames>, optio
2069
2070
  };
2070
2071
  dialect: "pg";
2071
2072
  }>;
2073
+ readonly edgeClaims: drizzle_orm_pg_core.PgTableWithColumns<{
2074
+ name: string;
2075
+ schema: undefined;
2076
+ columns: {
2077
+ graphId: drizzle_orm_pg_core.PgColumn<{
2078
+ name: "graph_id";
2079
+ tableName: string;
2080
+ dataType: "string";
2081
+ columnType: "PgText";
2082
+ data: string;
2083
+ driverParam: string;
2084
+ notNull: true;
2085
+ hasDefault: false;
2086
+ isPrimaryKey: false;
2087
+ isAutoincrement: false;
2088
+ hasRuntimeDefault: false;
2089
+ enumValues: [string, ...string[]];
2090
+ baseColumn: never;
2091
+ identity: undefined;
2092
+ generated: undefined;
2093
+ }, {}, {}>;
2094
+ axis: drizzle_orm_pg_core.PgColumn<{
2095
+ name: "axis";
2096
+ tableName: string;
2097
+ dataType: "string";
2098
+ columnType: "PgText";
2099
+ data: string;
2100
+ driverParam: string;
2101
+ notNull: true;
2102
+ hasDefault: false;
2103
+ isPrimaryKey: false;
2104
+ isAutoincrement: false;
2105
+ hasRuntimeDefault: false;
2106
+ enumValues: [string, ...string[]];
2107
+ baseColumn: never;
2108
+ identity: undefined;
2109
+ generated: undefined;
2110
+ }, {}, {}>;
2111
+ key: drizzle_orm_pg_core.PgColumn<{
2112
+ name: "key";
2113
+ tableName: string;
2114
+ dataType: "string";
2115
+ columnType: "PgText";
2116
+ data: string;
2117
+ driverParam: string;
2118
+ notNull: true;
2119
+ hasDefault: false;
2120
+ isPrimaryKey: false;
2121
+ isAutoincrement: false;
2122
+ hasRuntimeDefault: false;
2123
+ enumValues: [string, ...string[]];
2124
+ baseColumn: never;
2125
+ identity: undefined;
2126
+ generated: undefined;
2127
+ }, {}, {}>;
2128
+ edgeId: drizzle_orm_pg_core.PgColumn<{
2129
+ name: "edge_id";
2130
+ tableName: string;
2131
+ dataType: "string";
2132
+ columnType: "PgText";
2133
+ data: string;
2134
+ driverParam: string;
2135
+ notNull: true;
2136
+ hasDefault: false;
2137
+ isPrimaryKey: false;
2138
+ isAutoincrement: false;
2139
+ hasRuntimeDefault: false;
2140
+ enumValues: [string, ...string[]];
2141
+ baseColumn: never;
2142
+ identity: undefined;
2143
+ generated: undefined;
2144
+ }, {}, {}>;
2145
+ updatedAt: drizzle_orm_pg_core.PgColumn<{
2146
+ name: "updated_at";
2147
+ tableName: string;
2148
+ dataType: "date";
2149
+ columnType: "PgTimestamp";
2150
+ data: Date;
2151
+ driverParam: string;
2152
+ notNull: true;
2153
+ hasDefault: false;
2154
+ isPrimaryKey: false;
2155
+ isAutoincrement: false;
2156
+ hasRuntimeDefault: false;
2157
+ enumValues: undefined;
2158
+ baseColumn: never;
2159
+ identity: undefined;
2160
+ generated: undefined;
2161
+ }, {}, {}>;
2162
+ };
2163
+ dialect: "pg";
2164
+ }>;
2072
2165
  readonly schemaVersions: drizzle_orm_pg_core.PgTableWithColumns<{
2073
2166
  name: string;
2074
2167
  schema: undefined;
@@ -4852,6 +4945,98 @@ declare const tables: {
4852
4945
  };
4853
4946
  dialect: "pg";
4854
4947
  }>;
4948
+ readonly edgeClaims: drizzle_orm_pg_core.PgTableWithColumns<{
4949
+ name: string;
4950
+ schema: undefined;
4951
+ columns: {
4952
+ graphId: drizzle_orm_pg_core.PgColumn<{
4953
+ name: "graph_id";
4954
+ tableName: string;
4955
+ dataType: "string";
4956
+ columnType: "PgText";
4957
+ data: string;
4958
+ driverParam: string;
4959
+ notNull: true;
4960
+ hasDefault: false;
4961
+ isPrimaryKey: false;
4962
+ isAutoincrement: false;
4963
+ hasRuntimeDefault: false;
4964
+ enumValues: [string, ...string[]];
4965
+ baseColumn: never;
4966
+ identity: undefined;
4967
+ generated: undefined;
4968
+ }, {}, {}>;
4969
+ axis: drizzle_orm_pg_core.PgColumn<{
4970
+ name: "axis";
4971
+ tableName: string;
4972
+ dataType: "string";
4973
+ columnType: "PgText";
4974
+ data: string;
4975
+ driverParam: string;
4976
+ notNull: true;
4977
+ hasDefault: false;
4978
+ isPrimaryKey: false;
4979
+ isAutoincrement: false;
4980
+ hasRuntimeDefault: false;
4981
+ enumValues: [string, ...string[]];
4982
+ baseColumn: never;
4983
+ identity: undefined;
4984
+ generated: undefined;
4985
+ }, {}, {}>;
4986
+ key: drizzle_orm_pg_core.PgColumn<{
4987
+ name: "key";
4988
+ tableName: string;
4989
+ dataType: "string";
4990
+ columnType: "PgText";
4991
+ data: string;
4992
+ driverParam: string;
4993
+ notNull: true;
4994
+ hasDefault: false;
4995
+ isPrimaryKey: false;
4996
+ isAutoincrement: false;
4997
+ hasRuntimeDefault: false;
4998
+ enumValues: [string, ...string[]];
4999
+ baseColumn: never;
5000
+ identity: undefined;
5001
+ generated: undefined;
5002
+ }, {}, {}>;
5003
+ edgeId: drizzle_orm_pg_core.PgColumn<{
5004
+ name: "edge_id";
5005
+ tableName: string;
5006
+ dataType: "string";
5007
+ columnType: "PgText";
5008
+ data: string;
5009
+ driverParam: string;
5010
+ notNull: true;
5011
+ hasDefault: false;
5012
+ isPrimaryKey: false;
5013
+ isAutoincrement: false;
5014
+ hasRuntimeDefault: false;
5015
+ enumValues: [string, ...string[]];
5016
+ baseColumn: never;
5017
+ identity: undefined;
5018
+ generated: undefined;
5019
+ }, {}, {}>;
5020
+ updatedAt: drizzle_orm_pg_core.PgColumn<{
5021
+ name: "updated_at";
5022
+ tableName: string;
5023
+ dataType: "date";
5024
+ columnType: "PgTimestamp";
5025
+ data: Date;
5026
+ driverParam: string;
5027
+ notNull: true;
5028
+ hasDefault: false;
5029
+ isPrimaryKey: false;
5030
+ isAutoincrement: false;
5031
+ hasRuntimeDefault: false;
5032
+ enumValues: undefined;
5033
+ baseColumn: never;
5034
+ identity: undefined;
5035
+ generated: undefined;
5036
+ }, {}, {}>;
5037
+ };
5038
+ dialect: "pg";
5039
+ }>;
4855
5040
  readonly schemaVersions: drizzle_orm_pg_core.PgTableWithColumns<{
4856
5041
  name: string;
4857
5042
  schema: undefined;
@@ -6834,6 +7019,98 @@ declare const uniques: drizzle_orm_pg_core.PgTableWithColumns<{
6834
7019
  };
6835
7020
  dialect: "pg";
6836
7021
  }>;
7022
+ declare const edgeClaims: drizzle_orm_pg_core.PgTableWithColumns<{
7023
+ name: string;
7024
+ schema: undefined;
7025
+ columns: {
7026
+ graphId: drizzle_orm_pg_core.PgColumn<{
7027
+ name: "graph_id";
7028
+ tableName: string;
7029
+ dataType: "string";
7030
+ columnType: "PgText";
7031
+ data: string;
7032
+ driverParam: string;
7033
+ notNull: true;
7034
+ hasDefault: false;
7035
+ isPrimaryKey: false;
7036
+ isAutoincrement: false;
7037
+ hasRuntimeDefault: false;
7038
+ enumValues: [string, ...string[]];
7039
+ baseColumn: never;
7040
+ identity: undefined;
7041
+ generated: undefined;
7042
+ }, {}, {}>;
7043
+ axis: drizzle_orm_pg_core.PgColumn<{
7044
+ name: "axis";
7045
+ tableName: string;
7046
+ dataType: "string";
7047
+ columnType: "PgText";
7048
+ data: string;
7049
+ driverParam: string;
7050
+ notNull: true;
7051
+ hasDefault: false;
7052
+ isPrimaryKey: false;
7053
+ isAutoincrement: false;
7054
+ hasRuntimeDefault: false;
7055
+ enumValues: [string, ...string[]];
7056
+ baseColumn: never;
7057
+ identity: undefined;
7058
+ generated: undefined;
7059
+ }, {}, {}>;
7060
+ key: drizzle_orm_pg_core.PgColumn<{
7061
+ name: "key";
7062
+ tableName: string;
7063
+ dataType: "string";
7064
+ columnType: "PgText";
7065
+ data: string;
7066
+ driverParam: string;
7067
+ notNull: true;
7068
+ hasDefault: false;
7069
+ isPrimaryKey: false;
7070
+ isAutoincrement: false;
7071
+ hasRuntimeDefault: false;
7072
+ enumValues: [string, ...string[]];
7073
+ baseColumn: never;
7074
+ identity: undefined;
7075
+ generated: undefined;
7076
+ }, {}, {}>;
7077
+ edgeId: drizzle_orm_pg_core.PgColumn<{
7078
+ name: "edge_id";
7079
+ tableName: string;
7080
+ dataType: "string";
7081
+ columnType: "PgText";
7082
+ data: string;
7083
+ driverParam: string;
7084
+ notNull: true;
7085
+ hasDefault: false;
7086
+ isPrimaryKey: false;
7087
+ isAutoincrement: false;
7088
+ hasRuntimeDefault: false;
7089
+ enumValues: [string, ...string[]];
7090
+ baseColumn: never;
7091
+ identity: undefined;
7092
+ generated: undefined;
7093
+ }, {}, {}>;
7094
+ updatedAt: drizzle_orm_pg_core.PgColumn<{
7095
+ name: "updated_at";
7096
+ tableName: string;
7097
+ dataType: "date";
7098
+ columnType: "PgTimestamp";
7099
+ data: Date;
7100
+ driverParam: string;
7101
+ notNull: true;
7102
+ hasDefault: false;
7103
+ isPrimaryKey: false;
7104
+ isAutoincrement: false;
7105
+ hasRuntimeDefault: false;
7106
+ enumValues: undefined;
7107
+ baseColumn: never;
7108
+ identity: undefined;
7109
+ generated: undefined;
7110
+ }, {}, {}>;
7111
+ };
7112
+ dialect: "pg";
7113
+ }>;
6837
7114
  declare const schemaVersions: drizzle_orm_pg_core.PgTableWithColumns<{
6838
7115
  name: string;
6839
7116
  schema: undefined;
@@ -7080,4 +7357,4 @@ declare const fulltext: drizzle_orm_pg_core.PgTableWithColumns<{
7080
7357
  */
7081
7358
  type PostgresTables = ReturnType<typeof createPostgresTables>;
7082
7359
 
7083
- export { type CreatePostgresTablesOptions as C, type PostgresTables as P, type PostgresTableNames as a, recordedEdges as b, createPostgresTables as c, recordedNodes as d, edges as e, fulltext as f, nodes as n, recordedClock as r, schemaVersions as s, tables as t, uniques as u };
7360
+ export { type CreatePostgresTablesOptions as C, type PostgresTables as P, type PostgresTableNames as a, edges as b, createPostgresTables as c, recordedEdges as d, edgeClaims as e, fulltext as f, recordedNodes as g, nodes as n, recordedClock as r, schemaVersions as s, tables as t, uniques as u };