@nicia-ai/typegraph 0.45.0 → 0.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/dist/backend/drizzle/indexes.cjs +11 -11
  2. package/dist/backend/drizzle/indexes.d.cts +1 -1
  3. package/dist/backend/drizzle/indexes.d.ts +1 -1
  4. package/dist/backend/drizzle/indexes.js +7 -7
  5. package/dist/backend/index.cjs +53 -54
  6. package/dist/backend/index.d.cts +3 -3
  7. package/dist/backend/index.d.ts +3 -3
  8. package/dist/backend/index.js +13 -14
  9. package/dist/backend/postgres/index.cjs +29 -30
  10. package/dist/backend/postgres/index.d.cts +7 -7
  11. package/dist/backend/postgres/index.d.ts +7 -7
  12. package/dist/backend/postgres/index.js +16 -17
  13. package/dist/backend/postgres/pglite-store.cjs +48 -42
  14. package/dist/backend/postgres/pglite-store.cjs.map +1 -1
  15. package/dist/backend/postgres/pglite-store.d.cts +15 -9
  16. package/dist/backend/postgres/pglite-store.d.ts +15 -9
  17. package/dist/backend/postgres/pglite-store.js +44 -38
  18. package/dist/backend/postgres/pglite-store.js.map +1 -1
  19. package/dist/backend/postgres/pglite.cjs +18 -19
  20. package/dist/backend/postgres/pglite.d.cts +4 -4
  21. package/dist/backend/postgres/pglite.d.ts +4 -4
  22. package/dist/backend/postgres/pglite.js +17 -18
  23. package/dist/backend/sqlite/index.cjs +26 -27
  24. package/dist/backend/sqlite/index.d.cts +6 -6
  25. package/dist/backend/sqlite/index.d.ts +6 -6
  26. package/dist/backend/sqlite/index.js +14 -15
  27. package/dist/backend/sqlite/libsql.cjs +21 -22
  28. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  29. package/dist/backend/sqlite/libsql.d.cts +15 -8
  30. package/dist/backend/sqlite/libsql.d.ts +15 -8
  31. package/dist/backend/sqlite/libsql.js +17 -18
  32. package/dist/backend/sqlite/libsql.js.map +1 -1
  33. package/dist/backend/sqlite/local-store.cjs +49 -43
  34. package/dist/backend/sqlite/local-store.cjs.map +1 -1
  35. package/dist/backend/sqlite/local-store.d.cts +15 -10
  36. package/dist/backend/sqlite/local-store.d.ts +15 -10
  37. package/dist/backend/sqlite/local-store.js +45 -39
  38. package/dist/backend/sqlite/local-store.js.map +1 -1
  39. package/dist/backend/sqlite/local.cjs +19 -20
  40. package/dist/backend/sqlite/local.d.cts +3 -3
  41. package/dist/backend/sqlite/local.d.ts +3 -3
  42. package/dist/backend/sqlite/local.js +17 -18
  43. package/dist/{chunk-S3ZRKJHY.js → chunk-2LG2XB2M.js} +3 -3
  44. package/dist/{chunk-S3ZRKJHY.js.map → chunk-2LG2XB2M.js.map} +1 -1
  45. package/dist/{chunk-7PF2L3H6.cjs → chunk-2NA5DYLO.cjs} +4 -4
  46. package/dist/{chunk-7PF2L3H6.cjs.map → chunk-2NA5DYLO.cjs.map} +1 -1
  47. package/dist/chunk-2Z2Z3ZD6.js +58 -0
  48. package/dist/chunk-2Z2Z3ZD6.js.map +1 -0
  49. package/dist/{chunk-VVQM4CZD.cjs → chunk-3DHZCOT7.cjs} +20 -20
  50. package/dist/{chunk-VVQM4CZD.cjs.map → chunk-3DHZCOT7.cjs.map} +1 -1
  51. package/dist/{chunk-JXUTCSXX.cjs → chunk-4UGOKMI5.cjs} +250 -158
  52. package/dist/chunk-4UGOKMI5.cjs.map +1 -0
  53. package/dist/{chunk-RFRM3Q5K.js → chunk-5262ZMTR.js} +14 -5
  54. package/dist/chunk-5262ZMTR.js.map +1 -0
  55. package/dist/{chunk-QRNYDV5Z.js → chunk-5763DULU.js} +214 -69
  56. package/dist/chunk-5763DULU.js.map +1 -0
  57. package/dist/{chunk-BGYJW37L.js → chunk-5UVRGXD3.js} +277 -7
  58. package/dist/chunk-5UVRGXD3.js.map +1 -0
  59. package/dist/{chunk-QR24DJDF.cjs → chunk-62ZP23AW.cjs} +15 -15
  60. package/dist/{chunk-QR24DJDF.cjs.map → chunk-62ZP23AW.cjs.map} +1 -1
  61. package/dist/{chunk-ZI6VQSZA.cjs → chunk-65E3XWGF.cjs} +724 -577
  62. package/dist/chunk-65E3XWGF.cjs.map +1 -0
  63. package/dist/{chunk-S4KQ5LV4.js → chunk-775A4ZMN.js} +40 -6
  64. package/dist/chunk-775A4ZMN.js.map +1 -0
  65. package/dist/{chunk-J2ICGNHO.cjs → chunk-7BQXPCGN.cjs} +830 -169
  66. package/dist/chunk-7BQXPCGN.cjs.map +1 -0
  67. package/dist/{chunk-FJMPR3OH.cjs → chunk-7EO3TCQB.cjs} +33 -7
  68. package/dist/chunk-7EO3TCQB.cjs.map +1 -0
  69. package/dist/{chunk-DXEEHSGN.js → chunk-7VQXLT5O.js} +436 -43
  70. package/dist/chunk-7VQXLT5O.js.map +1 -0
  71. package/dist/chunk-A4OC4DVN.cjs +12 -0
  72. package/dist/{chunk-4SZ6XPTG.cjs.map → chunk-A4OC4DVN.cjs.map} +1 -1
  73. package/dist/{chunk-TDXIBCGY.cjs → chunk-A7J2YDDI.cjs} +5 -3
  74. package/dist/chunk-A7J2YDDI.cjs.map +1 -0
  75. package/dist/{chunk-55ITBQJI.js → chunk-AKLS3BYZ.js} +56 -5
  76. package/dist/chunk-AKLS3BYZ.js.map +1 -0
  77. package/dist/{chunk-D7PG5D5K.js → chunk-AMKPPFUO.js} +32 -6
  78. package/dist/chunk-AMKPPFUO.js.map +1 -0
  79. package/dist/{chunk-WUFASQUO.js → chunk-ASTI57H3.js} +3 -3
  80. package/dist/{chunk-WUFASQUO.js.map → chunk-ASTI57H3.js.map} +1 -1
  81. package/dist/{chunk-4QIKLIGG.js → chunk-BKCUOV7A.js} +15 -5
  82. package/dist/chunk-BKCUOV7A.js.map +1 -0
  83. package/dist/{chunk-JQXSZHF2.cjs → chunk-BSFJMMV3.cjs} +134 -7
  84. package/dist/chunk-BSFJMMV3.cjs.map +1 -0
  85. package/dist/{chunk-4GUTQPVO.js → chunk-C23WSN5E.js} +185 -24
  86. package/dist/chunk-C23WSN5E.js.map +1 -0
  87. package/dist/{chunk-QLUXRWKL.js → chunk-CBTIUB76.js} +3 -3
  88. package/dist/{chunk-QLUXRWKL.js.map → chunk-CBTIUB76.js.map} +1 -1
  89. package/dist/chunk-CMWHLBVN.cjs +2082 -0
  90. package/dist/chunk-CMWHLBVN.cjs.map +1 -0
  91. package/dist/{chunk-QB6VMOJ2.cjs → chunk-CXBHOOIQ.cjs} +45 -10
  92. package/dist/chunk-CXBHOOIQ.cjs.map +1 -0
  93. package/dist/{chunk-FL5UQRES.js → chunk-DCQVHAYQ.js} +5 -5
  94. package/dist/{chunk-FL5UQRES.js.map → chunk-DCQVHAYQ.js.map} +1 -1
  95. package/dist/chunk-DTVWX77L.cjs +3432 -0
  96. package/dist/chunk-DTVWX77L.cjs.map +1 -0
  97. package/dist/chunk-DYATYRY4.js +47 -0
  98. package/dist/chunk-DYATYRY4.js.map +1 -0
  99. package/dist/chunk-E4WNQBEF.cjs +217 -0
  100. package/dist/chunk-E4WNQBEF.cjs.map +1 -0
  101. package/dist/{chunk-G6Q5UM7U.js → chunk-FWJKWH6U.js} +5 -3
  102. package/dist/chunk-FWJKWH6U.js.map +1 -0
  103. package/dist/chunk-GF3KXUTW.js +3393 -0
  104. package/dist/chunk-GF3KXUTW.js.map +1 -0
  105. package/dist/{chunk-VTN3C3CH.js → chunk-HFHTMECK.js} +7 -7
  106. package/dist/{chunk-VTN3C3CH.js.map → chunk-HFHTMECK.js.map} +1 -1
  107. package/dist/{chunk-FLEQ2HBK.js → chunk-I5MOXA4H.js} +20 -14
  108. package/dist/chunk-I5MOXA4H.js.map +1 -0
  109. package/dist/{chunk-4MB3AQAQ.js → chunk-J3WZ3FA2.js} +77 -3
  110. package/dist/chunk-J3WZ3FA2.js.map +1 -0
  111. package/dist/{chunk-UR7W5YQK.js → chunk-JBQQ7THH.js} +5 -3
  112. package/dist/chunk-JBQQ7THH.js.map +1 -0
  113. package/dist/{chunk-TKP5T34P.js → chunk-JXA2ZP2Q.js} +6 -16
  114. package/dist/chunk-JXA2ZP2Q.js.map +1 -0
  115. package/dist/{chunk-GYA4JRP5.js → chunk-JXXDZTMN.js} +2 -2
  116. package/dist/chunk-JXXDZTMN.js.map +1 -0
  117. package/dist/chunk-JZUR7ZWE.js +254 -0
  118. package/dist/chunk-JZUR7ZWE.js.map +1 -0
  119. package/dist/{chunk-42PYUGLS.js → chunk-K5ELX2GT.js} +108 -8
  120. package/dist/chunk-K5ELX2GT.js.map +1 -0
  121. package/dist/{chunk-Q6EDCUXV.js → chunk-L65OU2U3.js} +556 -204
  122. package/dist/chunk-L65OU2U3.js.map +1 -0
  123. package/dist/{chunk-D54WH24V.cjs → chunk-LBJKZXDE.cjs} +115 -13
  124. package/dist/chunk-LBJKZXDE.cjs.map +1 -0
  125. package/dist/{chunk-FQ7ZPOTZ.js → chunk-LGHCOKTT.js} +637 -493
  126. package/dist/chunk-LGHCOKTT.js.map +1 -0
  127. package/dist/chunk-M3WP7RQZ.js +736 -0
  128. package/dist/chunk-M3WP7RQZ.js.map +1 -0
  129. package/dist/{chunk-4MEWSUVM.cjs → chunk-M4BDU5RX.cjs} +12 -12
  130. package/dist/chunk-M4BDU5RX.cjs.map +1 -0
  131. package/dist/chunk-MCLYU6BN.cjs +332 -0
  132. package/dist/chunk-MCLYU6BN.cjs.map +1 -0
  133. package/dist/{chunk-MIJKEVV7.js → chunk-MSY7FSX4.js} +37 -4
  134. package/dist/chunk-MSY7FSX4.js.map +1 -0
  135. package/dist/{chunk-H7VE3FL4.cjs → chunk-MUK4BU7K.cjs} +519 -125
  136. package/dist/chunk-MUK4BU7K.cjs.map +1 -0
  137. package/dist/{chunk-D56XG4EI.cjs → chunk-MXJDTH5B.cjs} +56 -45
  138. package/dist/chunk-MXJDTH5B.cjs.map +1 -0
  139. package/dist/{chunk-5EKPX6QU.js → chunk-MZLPX2R7.js} +8 -9
  140. package/dist/chunk-MZLPX2R7.js.map +1 -0
  141. package/dist/chunk-N66HCGCY.cjs +57 -0
  142. package/dist/chunk-N66HCGCY.cjs.map +1 -0
  143. package/dist/{chunk-CPEL3YIR.cjs → chunk-NFCVHQ5P.cjs} +55 -22
  144. package/dist/chunk-NFCVHQ5P.cjs.map +1 -0
  145. package/dist/{chunk-C4F7VJ5D.cjs → chunk-NI72YOJB.cjs} +84 -2
  146. package/dist/chunk-NI72YOJB.cjs.map +1 -0
  147. package/dist/{chunk-BNS75YNF.cjs → chunk-NK5Q7UNE.cjs} +10 -20
  148. package/dist/chunk-NK5Q7UNE.cjs.map +1 -0
  149. package/dist/{chunk-TKORQCG4.js → chunk-NLI2AVEF.js} +386 -862
  150. package/dist/chunk-NLI2AVEF.js.map +1 -0
  151. package/dist/{chunk-YMTXMPV6.js → chunk-NMWDXFPH.js} +4 -4
  152. package/dist/{chunk-YMTXMPV6.js.map → chunk-NMWDXFPH.js.map} +1 -1
  153. package/dist/{chunk-J7LXTUTP.cjs → chunk-PF6F5NLJ.cjs} +604 -1094
  154. package/dist/chunk-PF6F5NLJ.cjs.map +1 -0
  155. package/dist/{chunk-NAAMUYMS.cjs → chunk-PNN7RHVR.cjs} +58 -48
  156. package/dist/chunk-PNN7RHVR.cjs.map +1 -0
  157. package/dist/{chunk-YOALGKRE.cjs → chunk-PNTCATDE.cjs} +3528 -1763
  158. package/dist/chunk-PNTCATDE.cjs.map +1 -0
  159. package/dist/{chunk-6DCB664D.js → chunk-PQBQG7IM.js} +3 -3
  160. package/dist/{chunk-6DCB664D.js.map → chunk-PQBQG7IM.js.map} +1 -1
  161. package/dist/{chunk-UCQ3BFSY.cjs → chunk-PT7RIRIZ.cjs} +684 -332
  162. package/dist/chunk-PT7RIRIZ.cjs.map +1 -0
  163. package/dist/{chunk-ACSVZPK7.cjs → chunk-PWLJ77UV.cjs} +5 -3
  164. package/dist/chunk-PWLJ77UV.cjs.map +1 -0
  165. package/dist/chunk-Q3G6A4I3.cjs +755 -0
  166. package/dist/chunk-Q3G6A4I3.cjs.map +1 -0
  167. package/dist/{chunk-Z3WO6MND.cjs → chunk-RMQLSPA2.cjs} +297 -27
  168. package/dist/chunk-RMQLSPA2.cjs.map +1 -0
  169. package/dist/{chunk-SJDMVITW.cjs → chunk-RT5ZY4XA.cjs} +6 -5
  170. package/dist/chunk-RT5ZY4XA.cjs.map +1 -0
  171. package/dist/{chunk-ID4WXTKL.js → chunk-S6PW7VV5.js} +2382 -617
  172. package/dist/chunk-S6PW7VV5.js.map +1 -0
  173. package/dist/{chunk-4GUBTVPV.js → chunk-T4XNKYXB.js} +780 -126
  174. package/dist/chunk-T4XNKYXB.js.map +1 -0
  175. package/dist/{chunk-YDWLUT5V.cjs → chunk-TQR4KBY2.cjs} +323 -178
  176. package/dist/chunk-TQR4KBY2.cjs.map +1 -0
  177. package/dist/{chunk-OOA273IJ.cjs → chunk-U5SON7R2.cjs} +27 -27
  178. package/dist/{chunk-OOA273IJ.cjs.map → chunk-U5SON7R2.cjs.map} +1 -1
  179. package/dist/{chunk-IX64T5OL.cjs → chunk-U63GDNRC.cjs} +32 -26
  180. package/dist/chunk-U63GDNRC.cjs.map +1 -0
  181. package/dist/{chunk-WDBXJOU5.cjs → chunk-UDISNXDL.cjs} +56 -47
  182. package/dist/chunk-UDISNXDL.cjs.map +1 -0
  183. package/dist/{chunk-EFEOOCJ3.js → chunk-UV3SN74I.js} +5 -5
  184. package/dist/{chunk-EFEOOCJ3.js.map → chunk-UV3SN74I.js.map} +1 -1
  185. package/dist/{chunk-U5W4LKZV.cjs → chunk-VCRRKBLN.cjs} +9 -9
  186. package/dist/{chunk-U5W4LKZV.cjs.map → chunk-VCRRKBLN.cjs.map} +1 -1
  187. package/dist/{chunk-ISLPNELU.js → chunk-VGTJPTIC.js} +16 -5
  188. package/dist/chunk-VGTJPTIC.js.map +1 -0
  189. package/dist/chunk-VLT6PEWR.cjs +60 -0
  190. package/dist/chunk-VLT6PEWR.cjs.map +1 -0
  191. package/dist/chunk-VQH4VAWD.cjs +12 -0
  192. package/dist/{chunk-B3F2D3SP.cjs.map → chunk-VQH4VAWD.cjs.map} +1 -1
  193. package/dist/{chunk-SNXVDZAJ.js → chunk-W6OG3HDG.js} +5 -4
  194. package/dist/chunk-W6OG3HDG.js.map +1 -0
  195. package/dist/chunk-WDGA7IYB.js +207 -0
  196. package/dist/chunk-WDGA7IYB.js.map +1 -0
  197. package/dist/chunk-WQZLUGVR.js +2057 -0
  198. package/dist/chunk-WQZLUGVR.js.map +1 -0
  199. package/dist/{chunk-EKFUG4G7.cjs → chunk-XBYVV3MP.cjs} +60 -5
  200. package/dist/chunk-XBYVV3MP.cjs.map +1 -0
  201. package/dist/{chunk-5GAONX5G.cjs → chunk-XCAGZAKP.cjs} +7 -7
  202. package/dist/{chunk-5GAONX5G.cjs.map → chunk-XCAGZAKP.cjs.map} +1 -1
  203. package/dist/chunk-XL7SLCXS.js +309 -0
  204. package/dist/chunk-XL7SLCXS.js.map +1 -0
  205. package/dist/{chunk-SVJ5GEXW.cjs → chunk-XUO3KQFO.cjs} +2 -2
  206. package/dist/chunk-XUO3KQFO.cjs.map +1 -0
  207. package/dist/{chunk-F4NHQHEZ.cjs → chunk-YAAM3M2S.cjs} +10 -10
  208. package/dist/{chunk-F4NHQHEZ.cjs.map → chunk-YAAM3M2S.cjs.map} +1 -1
  209. package/dist/{chunk-RUQS6M7G.js → chunk-YBFHZUXX.js} +6 -6
  210. package/dist/chunk-YBFHZUXX.js.map +1 -0
  211. package/dist/{chunk-KMXWZLQX.cjs → chunk-YBQOHKHN.cjs} +99 -100
  212. package/dist/chunk-YBQOHKHN.cjs.map +1 -0
  213. package/dist/{chunk-PVUI6KGR.js → chunk-YDFDBE6D.js} +93 -6
  214. package/dist/chunk-YDFDBE6D.js.map +1 -0
  215. package/dist/{chunk-P7GTYOLB.cjs → chunk-YVWGEQJE.cjs} +297 -135
  216. package/dist/chunk-YVWGEQJE.cjs.map +1 -0
  217. package/dist/{chunk-QT6V3YRH.js → chunk-YWGVVALJ.js} +3 -3
  218. package/dist/{chunk-QT6V3YRH.js.map → chunk-YWGVVALJ.js.map} +1 -1
  219. package/dist/core/index.cjs +40 -40
  220. package/dist/core/index.d.cts +4 -5
  221. package/dist/core/index.d.ts +4 -5
  222. package/dist/core/index.js +8 -8
  223. package/dist/{ddl-BG4J805L.d.cts → ddl-BJcOp4WZ.d.cts} +3 -3
  224. package/dist/{ddl-CgiS9QLj.d.ts → ddl-BXfGHbPN.d.ts} +3 -3
  225. package/dist/graph-extension/index.cjs +26 -22
  226. package/dist/graph-extension/index.d.cts +16 -6
  227. package/dist/graph-extension/index.d.ts +16 -6
  228. package/dist/graph-extension/index.js +7 -7
  229. package/dist/graph-merge/index.cjs +2459 -654
  230. package/dist/graph-merge/index.cjs.map +1 -1
  231. package/dist/graph-merge/index.d.cts +170 -33
  232. package/dist/graph-merge/index.d.ts +170 -33
  233. package/dist/graph-merge/index.js +2269 -467
  234. package/dist/graph-merge/index.js.map +1 -1
  235. package/dist/{index-C3y_98iN.d.cts → index-BSHvKfok.d.ts} +221 -10
  236. package/dist/{index-BBxZCUdu.d.ts → index-DxaYCv8Y.d.cts} +221 -10
  237. package/dist/index.cjs +330 -268
  238. package/dist/index.cjs.map +1 -1
  239. package/dist/index.d.cts +590 -576
  240. package/dist/index.d.ts +590 -576
  241. package/dist/index.js +73 -49
  242. package/dist/index.js.map +1 -1
  243. package/dist/indexes/index.cjs +17 -17
  244. package/dist/indexes/index.d.cts +4 -4
  245. package/dist/indexes/index.d.ts +4 -4
  246. package/dist/indexes/index.js +10 -10
  247. package/dist/interchange/index.cjs +165 -51
  248. package/dist/interchange/index.cjs.map +1 -1
  249. package/dist/interchange/index.d.cts +261 -16
  250. package/dist/interchange/index.d.ts +261 -16
  251. package/dist/interchange/index.js +128 -25
  252. package/dist/interchange/index.js.map +1 -1
  253. package/dist/{manager-YoLEfcc1.d.ts → manager-CfZAimti.d.ts} +36 -5
  254. package/dist/{manager-KS7CGQQT.d.cts → manager-HGk6E_HW.d.cts} +36 -5
  255. package/dist/{materialize-indexes-Bhhyb1B3.d.ts → materialize-indexes-6A7dWGtb.d.cts} +10 -2
  256. package/dist/{materialize-indexes-OHRWypW6.d.cts → materialize-indexes-BMJP6Tms.d.ts} +10 -2
  257. package/dist/{postgres-DpkW3R5Y.d.cts → postgres-DFYWENdR.d.cts} +1961 -439
  258. package/dist/{postgres-DwqyIniy.d.ts → postgres-e7a9TdvR.d.ts} +1961 -439
  259. package/dist/profiler/index.cjs +15 -15
  260. package/dist/profiler/index.d.cts +9 -10
  261. package/dist/profiler/index.d.ts +9 -10
  262. package/dist/profiler/index.js +4 -4
  263. package/dist/provenance/index.cjs +46 -48
  264. package/dist/provenance/index.cjs.map +1 -1
  265. package/dist/provenance/index.d.cts +7 -7
  266. package/dist/provenance/index.d.ts +7 -7
  267. package/dist/provenance/index.js +12 -14
  268. package/dist/provenance/index.js.map +1 -1
  269. package/dist/schema/index.cjs +50 -48
  270. package/dist/schema/index.d.cts +9 -16
  271. package/dist/schema/index.d.ts +9 -16
  272. package/dist/schema/index.js +23 -21
  273. package/dist/{searchable-DLWEfC4a.d.ts → searchable-9OQoPuRs.d.ts} +1 -2
  274. package/dist/{searchable-CIZL8Hyw.d.cts → searchable-CIje5XYD.d.cts} +1 -2
  275. package/dist/{sqlite-DY0WODUK.d.cts → sqlite-DerU5tc7.d.ts} +2029 -347
  276. package/dist/{sqlite-L-VIRzqA.d.ts → sqlite-DitnISa9.d.cts} +2029 -347
  277. package/dist/{store-view-A85FFRnk.d.cts → store-B0h6x7wo.d.cts} +1289 -767
  278. package/dist/{store-view-66p92IPi.d.ts → store-ClQ-MZQS.d.ts} +1289 -767
  279. package/dist/{temporal-BNbjXqer.d.cts → temporal-Bn-Fi8FJ.d.cts} +1 -1
  280. package/dist/{temporal-Bob6Nfbp.d.ts → temporal-BtM4UALv.d.ts} +1 -1
  281. package/dist/{types-DeORZhxn.d.cts → types-CoIx8HX5.d.cts} +1 -1
  282. package/dist/{types-Ch9a0Dx6.d.ts → types-HkveCCx0.d.cts} +726 -5
  283. package/dist/{types-Ch9a0Dx6.d.cts → types-HkveCCx0.d.ts} +726 -5
  284. package/dist/{types-ClCzT-dT.d.ts → types-KFfk-8Ah.d.ts} +1 -1
  285. package/dist/{where-DPw52ksb.d.cts → where--fk7_0kv.d.cts} +1 -1
  286. package/dist/{where-kWUZPvEA.d.ts → where-ws5hf-Ov.d.ts} +1 -1
  287. package/package.json +3 -3
  288. package/dist/chunk-2L54C2C2.js +0 -144
  289. package/dist/chunk-2L54C2C2.js.map +0 -1
  290. package/dist/chunk-35S6P5ZU.js +0 -27
  291. package/dist/chunk-35S6P5ZU.js.map +0 -1
  292. package/dist/chunk-42PYUGLS.js.map +0 -1
  293. package/dist/chunk-4GUBTVPV.js.map +0 -1
  294. package/dist/chunk-4GUTQPVO.js.map +0 -1
  295. package/dist/chunk-4MB3AQAQ.js.map +0 -1
  296. package/dist/chunk-4MEWSUVM.cjs.map +0 -1
  297. package/dist/chunk-4QIKLIGG.js.map +0 -1
  298. package/dist/chunk-4SZ6XPTG.cjs +0 -12
  299. package/dist/chunk-55ITBQJI.js.map +0 -1
  300. package/dist/chunk-5EKPX6QU.js.map +0 -1
  301. package/dist/chunk-6RYPD3NJ.cjs +0 -1282
  302. package/dist/chunk-6RYPD3NJ.cjs.map +0 -1
  303. package/dist/chunk-764JHTLT.cjs +0 -15
  304. package/dist/chunk-764JHTLT.cjs.map +0 -1
  305. package/dist/chunk-ACSVZPK7.cjs.map +0 -1
  306. package/dist/chunk-B3F2D3SP.cjs +0 -12
  307. package/dist/chunk-BGYJW37L.js.map +0 -1
  308. package/dist/chunk-BNS75YNF.cjs.map +0 -1
  309. package/dist/chunk-C4F7VJ5D.cjs.map +0 -1
  310. package/dist/chunk-CBKG6HEP.js +0 -1263
  311. package/dist/chunk-CBKG6HEP.js.map +0 -1
  312. package/dist/chunk-CPEL3YIR.cjs.map +0 -1
  313. package/dist/chunk-D54WH24V.cjs.map +0 -1
  314. package/dist/chunk-D56XG4EI.cjs.map +0 -1
  315. package/dist/chunk-D7PG5D5K.js.map +0 -1
  316. package/dist/chunk-DI74SMXS.cjs +0 -29
  317. package/dist/chunk-DI74SMXS.cjs.map +0 -1
  318. package/dist/chunk-DK2S42XB.js +0 -77
  319. package/dist/chunk-DK2S42XB.js.map +0 -1
  320. package/dist/chunk-DRACN6XG.js +0 -27
  321. package/dist/chunk-DRACN6XG.js.map +0 -1
  322. package/dist/chunk-DXEEHSGN.js.map +0 -1
  323. package/dist/chunk-EKFUG4G7.cjs.map +0 -1
  324. package/dist/chunk-EQ7JKLZO.cjs +0 -157
  325. package/dist/chunk-EQ7JKLZO.cjs.map +0 -1
  326. package/dist/chunk-FJMPR3OH.cjs.map +0 -1
  327. package/dist/chunk-FLEQ2HBK.js.map +0 -1
  328. package/dist/chunk-FQ7ZPOTZ.js.map +0 -1
  329. package/dist/chunk-G6Q5UM7U.js.map +0 -1
  330. package/dist/chunk-GYA4JRP5.js.map +0 -1
  331. package/dist/chunk-H7VE3FL4.cjs.map +0 -1
  332. package/dist/chunk-ID4WXTKL.js.map +0 -1
  333. package/dist/chunk-ISLPNELU.js.map +0 -1
  334. package/dist/chunk-ITE4IXAK.js +0 -25
  335. package/dist/chunk-ITE4IXAK.js.map +0 -1
  336. package/dist/chunk-IX64T5OL.cjs.map +0 -1
  337. package/dist/chunk-J2ICGNHO.cjs.map +0 -1
  338. package/dist/chunk-J7LXTUTP.cjs.map +0 -1
  339. package/dist/chunk-JQXSZHF2.cjs.map +0 -1
  340. package/dist/chunk-JXUTCSXX.cjs.map +0 -1
  341. package/dist/chunk-KCO5EFJU.js +0 -79
  342. package/dist/chunk-KCO5EFJU.js.map +0 -1
  343. package/dist/chunk-KKYELPZ2.cjs +0 -83
  344. package/dist/chunk-KKYELPZ2.cjs.map +0 -1
  345. package/dist/chunk-KMXWZLQX.cjs.map +0 -1
  346. package/dist/chunk-MIJKEVV7.js.map +0 -1
  347. package/dist/chunk-NAAMUYMS.cjs.map +0 -1
  348. package/dist/chunk-P7GTYOLB.cjs.map +0 -1
  349. package/dist/chunk-PVUI6KGR.js.map +0 -1
  350. package/dist/chunk-Q6EDCUXV.js.map +0 -1
  351. package/dist/chunk-QB6VMOJ2.cjs.map +0 -1
  352. package/dist/chunk-QC4MCOFV.cjs +0 -83
  353. package/dist/chunk-QC4MCOFV.cjs.map +0 -1
  354. package/dist/chunk-QMQLUA66.js +0 -12
  355. package/dist/chunk-QMQLUA66.js.map +0 -1
  356. package/dist/chunk-QRNYDV5Z.js.map +0 -1
  357. package/dist/chunk-RFRM3Q5K.js.map +0 -1
  358. package/dist/chunk-RUQS6M7G.js.map +0 -1
  359. package/dist/chunk-S4KQ5LV4.js.map +0 -1
  360. package/dist/chunk-SJDMVITW.cjs.map +0 -1
  361. package/dist/chunk-SNXVDZAJ.js.map +0 -1
  362. package/dist/chunk-SVJ5GEXW.cjs.map +0 -1
  363. package/dist/chunk-TDXIBCGY.cjs.map +0 -1
  364. package/dist/chunk-TKORQCG4.js.map +0 -1
  365. package/dist/chunk-TKP5T34P.js.map +0 -1
  366. package/dist/chunk-TRF4EBJT.cjs +0 -30
  367. package/dist/chunk-TRF4EBJT.cjs.map +0 -1
  368. package/dist/chunk-UCQ3BFSY.cjs.map +0 -1
  369. package/dist/chunk-UR7W5YQK.js.map +0 -1
  370. package/dist/chunk-V34A6R5V.js +0 -134
  371. package/dist/chunk-V34A6R5V.js.map +0 -1
  372. package/dist/chunk-WDAVPX46.js +0 -81
  373. package/dist/chunk-WDAVPX46.js.map +0 -1
  374. package/dist/chunk-WDBXJOU5.cjs.map +0 -1
  375. package/dist/chunk-YDWLUT5V.cjs.map +0 -1
  376. package/dist/chunk-YOALGKRE.cjs.map +0 -1
  377. package/dist/chunk-Z3WO6MND.cjs.map +0 -1
  378. package/dist/chunk-ZDH3DX3C.cjs +0 -30
  379. package/dist/chunk-ZDH3DX3C.cjs.map +0 -1
  380. package/dist/chunk-ZI6VQSZA.cjs.map +0 -1
  381. package/dist/chunk-ZTAJL4DT.cjs +0 -85
  382. package/dist/chunk-ZTAJL4DT.cjs.map +0 -1
  383. package/dist/define-graph-BGrJahvp.d.ts +0 -173
  384. package/dist/define-graph-alREY2wj.d.cts +0 -173
@@ -1,21 +1,20 @@
1
- export { createPostgresBackend } from '../../chunk-QRNYDV5Z.js';
2
- import '../../chunk-DXEEHSGN.js';
3
- import '../../chunk-ISLPNELU.js';
4
- import '../../chunk-QT6V3YRH.js';
5
- import '../../chunk-YMTXMPV6.js';
6
- export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-BGYJW37L.js';
7
- import '../../chunk-EFEOOCJ3.js';
8
- import '../../chunk-35S6P5ZU.js';
9
- import '../../chunk-55ITBQJI.js';
10
- import '../../chunk-UR7W5YQK.js';
11
- import '../../chunk-V34A6R5V.js';
12
- import '../../chunk-QLUXRWKL.js';
1
+ export { createPostgresBackend } from '../../chunk-5763DULU.js';
2
+ import '../../chunk-7VQXLT5O.js';
3
+ import '../../chunk-VGTJPTIC.js';
4
+ import '../../chunk-YWGVVALJ.js';
5
+ import '../../chunk-NMWDXFPH.js';
6
+ export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-5UVRGXD3.js';
7
+ import '../../chunk-UV3SN74I.js';
8
+ import '../../chunk-JBQQ7THH.js';
9
+ import '../../chunk-JZUR7ZWE.js';
10
+ import '../../chunk-AKLS3BYZ.js';
11
+ import '../../chunk-CBTIUB76.js';
13
12
  import '../../chunk-K34OPSJK.js';
14
13
  import '../../chunk-2EBMPJBO.js';
15
- import '../../chunk-PVUI6KGR.js';
16
- import '../../chunk-6DCB664D.js';
17
- import '../../chunk-QMQLUA66.js';
18
- import '../../chunk-4MB3AQAQ.js';
19
- import '../../chunk-G6Q5UM7U.js';
14
+ import '../../chunk-YDFDBE6D.js';
15
+ import '../../chunk-PQBQG7IM.js';
16
+ import '../../chunk-J3WZ3FA2.js';
17
+ import '../../chunk-FWJKWH6U.js';
18
+ import '../../chunk-DYATYRY4.js';
20
19
  //# sourceMappingURL=index.js.map
21
20
  //# sourceMappingURL=index.js.map
@@ -1,62 +1,68 @@
1
1
  'use strict';
2
2
 
3
- var chunk4MEWSUVM_cjs = require('../../chunk-4MEWSUVM.cjs');
4
- require('../../chunk-YDWLUT5V.cjs');
5
- require('../../chunk-H7VE3FL4.cjs');
6
- var chunkYOALGKRE_cjs = require('../../chunk-YOALGKRE.cjs');
7
- require('../../chunk-D56XG4EI.cjs');
8
- require('../../chunk-4SZ6XPTG.cjs');
9
- require('../../chunk-F4NHQHEZ.cjs');
10
- var chunkZ3WO6MND_cjs = require('../../chunk-Z3WO6MND.cjs');
11
- require('../../chunk-OOA273IJ.cjs');
12
- require('../../chunk-UCQ3BFSY.cjs');
13
- require('../../chunk-J7LXTUTP.cjs');
14
- require('../../chunk-ZDH3DX3C.cjs');
15
- require('../../chunk-CPEL3YIR.cjs');
16
- var chunkEKFUG4G7_cjs = require('../../chunk-EKFUG4G7.cjs');
17
- require('../../chunk-EQ7JKLZO.cjs');
18
- require('../../chunk-ZI6VQSZA.cjs');
19
- require('../../chunk-TRF4EBJT.cjs');
20
- require('../../chunk-BNS75YNF.cjs');
21
- require('../../chunk-KKYELPZ2.cjs');
22
- require('../../chunk-ACSVZPK7.cjs');
23
- require('../../chunk-JQXSZHF2.cjs');
24
- require('../../chunk-QB6VMOJ2.cjs');
25
- require('../../chunk-ZTAJL4DT.cjs');
26
- require('../../chunk-QR24DJDF.cjs');
27
- require('../../chunk-5GAONX5G.cjs');
28
- require('../../chunk-IX64T5OL.cjs');
3
+ var chunkM4BDU5RX_cjs = require('../../chunk-M4BDU5RX.cjs');
4
+ require('../../chunk-TQR4KBY2.cjs');
5
+ require('../../chunk-MUK4BU7K.cjs');
6
+ var chunkPNTCATDE_cjs = require('../../chunk-PNTCATDE.cjs');
7
+ require('../../chunk-MXJDTH5B.cjs');
8
+ require('../../chunk-A4OC4DVN.cjs');
9
+ require('../../chunk-YAAM3M2S.cjs');
10
+ var chunkRMQLSPA2_cjs = require('../../chunk-RMQLSPA2.cjs');
11
+ require('../../chunk-U5SON7R2.cjs');
12
+ require('../../chunk-PT7RIRIZ.cjs');
13
+ require('../../chunk-Q3G6A4I3.cjs');
14
+ require('../../chunk-65E3XWGF.cjs');
15
+ require('../../chunk-NK5Q7UNE.cjs');
16
+ require('../../chunk-DTVWX77L.cjs');
17
+ require('../../chunk-PF6F5NLJ.cjs');
18
+ require('../../chunk-PWLJ77UV.cjs');
19
+ require('../../chunk-BSFJMMV3.cjs');
20
+ require('../../chunk-NFCVHQ5P.cjs');
21
+ var chunkXBYVV3MP_cjs = require('../../chunk-XBYVV3MP.cjs');
22
+ require('../../chunk-CXBHOOIQ.cjs');
23
+ require('../../chunk-E4WNQBEF.cjs');
24
+ require('../../chunk-MCLYU6BN.cjs');
25
+ require('../../chunk-62ZP23AW.cjs');
26
+ require('../../chunk-XCAGZAKP.cjs');
27
+ require('../../chunk-U63GDNRC.cjs');
29
28
  require('../../chunk-ZY4GXIVN.cjs');
30
29
  require('../../chunk-NAUA4PW5.cjs');
31
- require('../../chunk-JXUTCSXX.cjs');
32
- require('../../chunk-U5W4LKZV.cjs');
33
- require('../../chunk-FJMPR3OH.cjs');
34
- require('../../chunk-SJDMVITW.cjs');
35
- require('../../chunk-764JHTLT.cjs');
30
+ require('../../chunk-4UGOKMI5.cjs');
31
+ require('../../chunk-VCRRKBLN.cjs');
32
+ require('../../chunk-7EO3TCQB.cjs');
33
+ require('../../chunk-RT5ZY4XA.cjs');
36
34
  require('../../chunk-HAHNRASW.cjs');
37
- require('../../chunk-J2ICGNHO.cjs');
38
- require('../../chunk-SVJ5GEXW.cjs');
39
- require('../../chunk-D54WH24V.cjs');
40
- require('../../chunk-DI74SMXS.cjs');
41
- require('../../chunk-C4F7VJ5D.cjs');
42
- require('../../chunk-TDXIBCGY.cjs');
35
+ require('../../chunk-7BQXPCGN.cjs');
36
+ require('../../chunk-XUO3KQFO.cjs');
37
+ require('../../chunk-LBJKZXDE.cjs');
38
+ require('../../chunk-NI72YOJB.cjs');
39
+ require('../../chunk-A7J2YDDI.cjs');
40
+ require('../../chunk-N66HCGCY.cjs');
43
41
 
44
42
  // src/backend/postgres/pglite-store.ts
43
+ function withoutSchemaOverride(schemaManagement) {
44
+ if (schemaManagement === void 0) return {};
45
+ const { schema: smuggled, ...rest } = schemaManagement;
46
+ return rest;
47
+ }
45
48
  async function createLocalPgliteStore(graph, options = {}) {
46
- const tables = options.store?.schema === void 0 ? void 0 : chunkZ3WO6MND_cjs.createPostgresTables(options.store.schema.tables);
47
- const { backend } = await chunk4MEWSUVM_cjs.createLocalPgliteBackend({
49
+ const tables = options.store?.schema === void 0 ? void 0 : chunkRMQLSPA2_cjs.createPostgresTables(options.store.schema.tables);
50
+ const { backend } = await chunkM4BDU5RX_cjs.createLocalPgliteBackend({
48
51
  ...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
49
52
  ...options.vector === false ? { vector: false } : {},
50
53
  ...tables === void 0 ? {} : { tables }
51
54
  });
52
55
  try {
53
- const [store] = await chunkYOALGKRE_cjs.createStoreWithSchema(graph, backend, {
56
+ const [store] = await chunkPNTCATDE_cjs.createStoreWithSchema(graph, backend, {
54
57
  ...options.store,
55
- ...options.schemaManagement
58
+ // The type already excludes `schema` here; the runtime strip guards
59
+ // untyped callers, so the provisioned schema (or the default tables)
60
+ // can never diverge from the one the Store reads.
61
+ ...withoutSchemaOverride(options.schemaManagement)
56
62
  });
57
63
  return store;
58
64
  } catch (error) {
59
- return chunkEKFUG4G7_cjs.closeAfterFailure(backend, error);
65
+ return chunkXBYVV3MP_cjs.closeAfterFailure(backend, error);
60
66
  }
61
67
  }
62
68
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;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,MACX,GAAG,OAAA,CAAQ;AAAA,KACZ,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store.cjs","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\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 {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /** Schema initialization and migration policy. */\n schemaManagement?: SchemaManagerOptions;\n}>;\n\n/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<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 ...options.schemaManagement,\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,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;AAyBA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;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.cjs","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\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 {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type { GraphIdentityConfig } from \"../../core/define-graph\";\nexport type {\n IdentityAssertion,\n IdentityAssertionId,\n IdentityAssertionResult,\n IdentityFacade,\n IdentityNode,\n IdentityNodeRefInput,\n IdentityPair,\n IdentityReadFacade,\n IdentityRelation,\n IdentityWriteSummary,\n} from \"../../identity\";\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /**\n * Schema initialization and migration policy. `schema` is excluded here:\n * the effective SqlSchema has exactly one source — `store.schema` — which\n * this constructor also uses to provision the physical tables, so a\n * second schema could name tables that were never created.\n */\n schemaManagement?: Omit<SchemaManagerOptions, \"schema\">;\n}>;\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/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<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,11 +1,12 @@
1
- import { G as GraphDef } from '../../define-graph-alREY2wj.cjs';
2
- import { S as SchemaManagerOptions } from '../../manager-KS7CGQQT.cjs';
3
- import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-view-A85FFRnk.cjs';
4
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.cjs';
5
- import '../../materialize-indexes-OHRWypW6.cjs';
6
- import '../../temporal-BNbjXqer.cjs';
1
+ import { d as GraphDef } from '../../types-HkveCCx0.cjs';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.cjs';
3
+ import { S as SchemaManagerOptions } from '../../manager-HGk6E_HW.cjs';
4
+ import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-B0h6x7wo.cjs';
5
+ export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-B0h6x7wo.cjs';
7
6
  import 'zod';
8
- import '../../searchable-CIZL8Hyw.cjs';
7
+ import '../../materialize-indexes-6A7dWGtb.cjs';
8
+ import '../../temporal-Bn-Fi8FJ.cjs';
9
+ import '../../searchable-CIje5XYD.cjs';
9
10
 
10
11
  /**
11
12
  * Batteries-included local PostgreSQL Store backed by PGlite.
@@ -21,8 +22,13 @@ type LocalPgliteStoreOptions<TStoreOptions extends StoreOptions = StoreOptions>
21
22
  vector?: boolean;
22
23
  /** Store behavior, including hooks, history, and custom table names. */
23
24
  store?: TStoreOptions;
24
- /** Schema initialization and migration policy. */
25
- schemaManagement?: SchemaManagerOptions;
25
+ /**
26
+ * Schema initialization and migration policy. `schema` is excluded here:
27
+ * the effective SqlSchema has exactly one source — `store.schema` — which
28
+ * this constructor also uses to provision the physical tables, so a
29
+ * second schema could name tables that were never created.
30
+ */
31
+ schemaManagement?: Omit<SchemaManagerOptions, "schema">;
26
32
  }>;
27
33
  /** Creates, provisions, and returns a full typed local PGlite Store. */
28
34
  declare function createLocalPgliteStore<G extends GraphDef>(graph: G, options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>): Promise<Store<G>>;
@@ -1,11 +1,12 @@
1
- import { G as GraphDef } from '../../define-graph-BGrJahvp.js';
2
- import { S as SchemaManagerOptions } from '../../manager-YoLEfcc1.js';
3
- import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-view-66p92IPi.js';
4
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.js';
5
- import '../../materialize-indexes-Bhhyb1B3.js';
6
- import '../../temporal-Bob6Nfbp.js';
1
+ import { d as GraphDef } from '../../types-HkveCCx0.js';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.js';
3
+ import { S as SchemaManagerOptions } from '../../manager-CfZAimti.js';
4
+ import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-ClQ-MZQS.js';
5
+ export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-ClQ-MZQS.js';
7
6
  import 'zod';
8
- import '../../searchable-DLWEfC4a.js';
7
+ import '../../materialize-indexes-BMJP6Tms.js';
8
+ import '../../temporal-BtM4UALv.js';
9
+ import '../../searchable-9OQoPuRs.js';
9
10
 
10
11
  /**
11
12
  * Batteries-included local PostgreSQL Store backed by PGlite.
@@ -21,8 +22,13 @@ type LocalPgliteStoreOptions<TStoreOptions extends StoreOptions = StoreOptions>
21
22
  vector?: boolean;
22
23
  /** Store behavior, including hooks, history, and custom table names. */
23
24
  store?: TStoreOptions;
24
- /** Schema initialization and migration policy. */
25
- schemaManagement?: SchemaManagerOptions;
25
+ /**
26
+ * Schema initialization and migration policy. `schema` is excluded here:
27
+ * the effective SqlSchema has exactly one source — `store.schema` — which
28
+ * this constructor also uses to provision the physical tables, so a
29
+ * second schema could name tables that were never created.
30
+ */
31
+ schemaManagement?: Omit<SchemaManagerOptions, "schema">;
26
32
  }>;
27
33
  /** Creates, provisions, and returns a full typed local PGlite Store. */
28
34
  declare function createLocalPgliteStore<G extends GraphDef>(graph: G, options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>): Promise<Store<G>>;
@@ -1,45 +1,48 @@
1
- import { createLocalPgliteBackend } from '../../chunk-RUQS6M7G.js';
2
- import '../../chunk-QRNYDV5Z.js';
3
- import '../../chunk-DXEEHSGN.js';
4
- import { createStoreWithSchema } from '../../chunk-ID4WXTKL.js';
5
- import '../../chunk-ISLPNELU.js';
6
- import '../../chunk-QT6V3YRH.js';
7
- import '../../chunk-YMTXMPV6.js';
8
- import { createPostgresTables } from '../../chunk-BGYJW37L.js';
9
- import '../../chunk-EFEOOCJ3.js';
10
- import '../../chunk-Q6EDCUXV.js';
11
- import '../../chunk-TKORQCG4.js';
12
- import '../../chunk-35S6P5ZU.js';
13
- import '../../chunk-MIJKEVV7.js';
14
- import { closeAfterFailure } from '../../chunk-55ITBQJI.js';
15
- import '../../chunk-2L54C2C2.js';
16
- import '../../chunk-FQ7ZPOTZ.js';
17
- import '../../chunk-DRACN6XG.js';
18
- import '../../chunk-TKP5T34P.js';
19
- import '../../chunk-DK2S42XB.js';
20
- import '../../chunk-UR7W5YQK.js';
21
- import '../../chunk-V34A6R5V.js';
22
- import '../../chunk-S4KQ5LV4.js';
23
- import '../../chunk-KCO5EFJU.js';
24
- import '../../chunk-FL5UQRES.js';
25
- import '../../chunk-QLUXRWKL.js';
26
- import '../../chunk-FLEQ2HBK.js';
1
+ import { createLocalPgliteBackend } from '../../chunk-YBFHZUXX.js';
2
+ import '../../chunk-5763DULU.js';
3
+ import '../../chunk-7VQXLT5O.js';
4
+ import { createStoreWithSchema } from '../../chunk-S6PW7VV5.js';
5
+ import '../../chunk-VGTJPTIC.js';
6
+ import '../../chunk-YWGVVALJ.js';
7
+ import '../../chunk-NMWDXFPH.js';
8
+ import { createPostgresTables } from '../../chunk-5UVRGXD3.js';
9
+ import '../../chunk-UV3SN74I.js';
10
+ import '../../chunk-L65OU2U3.js';
11
+ import '../../chunk-M3WP7RQZ.js';
12
+ import '../../chunk-LGHCOKTT.js';
13
+ import '../../chunk-JXA2ZP2Q.js';
14
+ import '../../chunk-GF3KXUTW.js';
15
+ import '../../chunk-NLI2AVEF.js';
16
+ import '../../chunk-JBQQ7THH.js';
17
+ import '../../chunk-JZUR7ZWE.js';
18
+ import '../../chunk-MSY7FSX4.js';
19
+ import { closeAfterFailure } from '../../chunk-AKLS3BYZ.js';
20
+ import '../../chunk-775A4ZMN.js';
21
+ import '../../chunk-WDGA7IYB.js';
22
+ import '../../chunk-XL7SLCXS.js';
23
+ import '../../chunk-DCQVHAYQ.js';
24
+ import '../../chunk-CBTIUB76.js';
25
+ import '../../chunk-I5MOXA4H.js';
27
26
  import '../../chunk-K34OPSJK.js';
28
27
  import '../../chunk-2EBMPJBO.js';
29
- import '../../chunk-PVUI6KGR.js';
30
- import '../../chunk-6DCB664D.js';
31
- import '../../chunk-D7PG5D5K.js';
32
- import '../../chunk-SNXVDZAJ.js';
33
- import '../../chunk-QMQLUA66.js';
28
+ import '../../chunk-YDFDBE6D.js';
29
+ import '../../chunk-PQBQG7IM.js';
30
+ import '../../chunk-AMKPPFUO.js';
31
+ import '../../chunk-W6OG3HDG.js';
34
32
  import '../../chunk-PC2UBAUB.js';
35
- import '../../chunk-4GUBTVPV.js';
36
- import '../../chunk-GYA4JRP5.js';
37
- import '../../chunk-42PYUGLS.js';
38
- import '../../chunk-ITE4IXAK.js';
39
- import '../../chunk-4MB3AQAQ.js';
40
- import '../../chunk-G6Q5UM7U.js';
33
+ import '../../chunk-T4XNKYXB.js';
34
+ import '../../chunk-JXXDZTMN.js';
35
+ import '../../chunk-K5ELX2GT.js';
36
+ import '../../chunk-J3WZ3FA2.js';
37
+ import '../../chunk-FWJKWH6U.js';
38
+ import '../../chunk-DYATYRY4.js';
41
39
 
42
40
  // src/backend/postgres/pglite-store.ts
41
+ function withoutSchemaOverride(schemaManagement) {
42
+ if (schemaManagement === void 0) return {};
43
+ const { schema: smuggled, ...rest } = schemaManagement;
44
+ return rest;
45
+ }
43
46
  async function createLocalPgliteStore(graph, options = {}) {
44
47
  const tables = options.store?.schema === void 0 ? void 0 : createPostgresTables(options.store.schema.tables);
45
48
  const { backend } = await createLocalPgliteBackend({
@@ -50,7 +53,10 @@ async function createLocalPgliteStore(graph, options = {}) {
50
53
  try {
51
54
  const [store] = await createStoreWithSchema(graph, backend, {
52
55
  ...options.store,
53
- ...options.schemaManagement
56
+ // The type already excludes `schema` here; the runtime strip guards
57
+ // untyped callers, so the provisioned schema (or the default tables)
58
+ // can never diverge from the one the Store reads.
59
+ ...withoutSchemaOverride(options.schemaManagement)
54
60
  });
55
61
  return store;
56
62
  } catch (error) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;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,MACX,GAAG,OAAA,CAAQ;AAAA,KACZ,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store.js","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\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 {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /** Schema initialization and migration policy. */\n schemaManagement?: SchemaManagerOptions;\n}>;\n\n/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<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 ...options.schemaManagement,\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,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;AAyBA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;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.js","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\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 {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type { GraphIdentityConfig } from \"../../core/define-graph\";\nexport type {\n IdentityAssertion,\n IdentityAssertionId,\n IdentityAssertionResult,\n IdentityFacade,\n IdentityNode,\n IdentityNodeRefInput,\n IdentityPair,\n IdentityReadFacade,\n IdentityRelation,\n IdentityWriteSummary,\n} from \"../../identity\";\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /**\n * Schema initialization and migration policy. `schema` is excluded here:\n * the effective SqlSchema has exactly one source — `store.schema` — which\n * this constructor also uses to provision the physical tables, so a\n * second schema could name tables that were never created.\n */\n schemaManagement?: Omit<SchemaManagerOptions, \"schema\">;\n}>;\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/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<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,31 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunk4MEWSUVM_cjs = require('../../chunk-4MEWSUVM.cjs');
4
- require('../../chunk-YDWLUT5V.cjs');
5
- require('../../chunk-H7VE3FL4.cjs');
6
- require('../../chunk-D56XG4EI.cjs');
7
- require('../../chunk-4SZ6XPTG.cjs');
8
- require('../../chunk-F4NHQHEZ.cjs');
9
- require('../../chunk-Z3WO6MND.cjs');
10
- require('../../chunk-OOA273IJ.cjs');
11
- require('../../chunk-ZDH3DX3C.cjs');
12
- require('../../chunk-EKFUG4G7.cjs');
13
- require('../../chunk-ACSVZPK7.cjs');
14
- require('../../chunk-JQXSZHF2.cjs');
15
- require('../../chunk-5GAONX5G.cjs');
3
+ var chunkM4BDU5RX_cjs = require('../../chunk-M4BDU5RX.cjs');
4
+ require('../../chunk-TQR4KBY2.cjs');
5
+ require('../../chunk-MUK4BU7K.cjs');
6
+ require('../../chunk-MXJDTH5B.cjs');
7
+ require('../../chunk-A4OC4DVN.cjs');
8
+ require('../../chunk-YAAM3M2S.cjs');
9
+ require('../../chunk-RMQLSPA2.cjs');
10
+ require('../../chunk-U5SON7R2.cjs');
11
+ require('../../chunk-PWLJ77UV.cjs');
12
+ require('../../chunk-BSFJMMV3.cjs');
13
+ require('../../chunk-XBYVV3MP.cjs');
14
+ require('../../chunk-XCAGZAKP.cjs');
16
15
  require('../../chunk-ZY4GXIVN.cjs');
17
16
  require('../../chunk-NAUA4PW5.cjs');
18
- require('../../chunk-JXUTCSXX.cjs');
19
- require('../../chunk-U5W4LKZV.cjs');
20
- require('../../chunk-764JHTLT.cjs');
21
- require('../../chunk-C4F7VJ5D.cjs');
22
- require('../../chunk-TDXIBCGY.cjs');
17
+ require('../../chunk-4UGOKMI5.cjs');
18
+ require('../../chunk-VCRRKBLN.cjs');
19
+ require('../../chunk-NI72YOJB.cjs');
20
+ require('../../chunk-A7J2YDDI.cjs');
21
+ require('../../chunk-N66HCGCY.cjs');
23
22
 
24
23
 
25
24
 
26
25
  Object.defineProperty(exports, "createLocalPgliteBackend", {
27
26
  enumerable: true,
28
- get: function () { return chunk4MEWSUVM_cjs.createLocalPgliteBackend; }
27
+ get: function () { return chunkM4BDU5RX_cjs.createLocalPgliteBackend; }
29
28
  });
30
29
  //# sourceMappingURL=pglite.cjs.map
31
30
  //# sourceMappingURL=pglite.cjs.map
@@ -1,13 +1,13 @@
1
1
  import { Extension, PGlite } from '@electric-sql/pglite';
2
2
  import { PgliteDatabase } from 'drizzle-orm/pglite';
3
+ import { A as AdapterBackend } from '../../types-HkveCCx0.cjs';
4
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.cjs';
3
5
  import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
4
6
  export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.cjs';
5
- import { A as AdapterBackend } from '../../types-Ch9a0Dx6.cjs';
6
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.cjs';
7
- import { P as PostgresTables } from '../../postgres-DpkW3R5Y.cjs';
7
+ import { P as PostgresTables } from '../../postgres-DFYWENdR.cjs';
8
+ import 'zod';
8
9
  import 'drizzle-orm/pg-core';
9
10
  import 'drizzle-orm/relations';
10
- import 'zod';
11
11
 
12
12
  /**
13
13
  * Local PGlite backend — Postgres-in-WASM, running in-process.
@@ -1,13 +1,13 @@
1
1
  import { Extension, PGlite } from '@electric-sql/pglite';
2
2
  import { PgliteDatabase } from 'drizzle-orm/pglite';
3
+ import { A as AdapterBackend } from '../../types-HkveCCx0.js';
4
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.js';
3
5
  import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
4
6
  export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.js';
5
- import { A as AdapterBackend } from '../../types-Ch9a0Dx6.js';
6
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.js';
7
- import { P as PostgresTables } from '../../postgres-DwqyIniy.js';
7
+ import { P as PostgresTables } from '../../postgres-e7a9TdvR.js';
8
+ import 'zod';
8
9
  import 'drizzle-orm/pg-core';
9
10
  import 'drizzle-orm/relations';
10
- import 'zod';
11
11
 
12
12
  /**
13
13
  * Local PGlite backend — Postgres-in-WASM, running in-process.
@@ -1,22 +1,21 @@
1
- export { createLocalPgliteBackend } from '../../chunk-RUQS6M7G.js';
2
- import '../../chunk-QRNYDV5Z.js';
3
- import '../../chunk-DXEEHSGN.js';
4
- import '../../chunk-ISLPNELU.js';
5
- import '../../chunk-QT6V3YRH.js';
6
- import '../../chunk-YMTXMPV6.js';
7
- import '../../chunk-BGYJW37L.js';
8
- import '../../chunk-EFEOOCJ3.js';
9
- import '../../chunk-35S6P5ZU.js';
10
- import '../../chunk-55ITBQJI.js';
11
- import '../../chunk-UR7W5YQK.js';
12
- import '../../chunk-V34A6R5V.js';
13
- import '../../chunk-QLUXRWKL.js';
1
+ export { createLocalPgliteBackend } from '../../chunk-YBFHZUXX.js';
2
+ import '../../chunk-5763DULU.js';
3
+ import '../../chunk-7VQXLT5O.js';
4
+ import '../../chunk-VGTJPTIC.js';
5
+ import '../../chunk-YWGVVALJ.js';
6
+ import '../../chunk-NMWDXFPH.js';
7
+ import '../../chunk-5UVRGXD3.js';
8
+ import '../../chunk-UV3SN74I.js';
9
+ import '../../chunk-JBQQ7THH.js';
10
+ import '../../chunk-JZUR7ZWE.js';
11
+ import '../../chunk-AKLS3BYZ.js';
12
+ import '../../chunk-CBTIUB76.js';
14
13
  import '../../chunk-K34OPSJK.js';
15
14
  import '../../chunk-2EBMPJBO.js';
16
- import '../../chunk-PVUI6KGR.js';
17
- import '../../chunk-6DCB664D.js';
18
- import '../../chunk-QMQLUA66.js';
19
- import '../../chunk-4MB3AQAQ.js';
20
- import '../../chunk-G6Q5UM7U.js';
15
+ import '../../chunk-YDFDBE6D.js';
16
+ import '../../chunk-PQBQG7IM.js';
17
+ import '../../chunk-J3WZ3FA2.js';
18
+ import '../../chunk-FWJKWH6U.js';
19
+ import '../../chunk-DYATYRY4.js';
21
20
  //# sourceMappingURL=pglite.js.map
22
21
  //# sourceMappingURL=pglite.js.map
@@ -1,72 +1,71 @@
1
1
  'use strict';
2
2
 
3
- var chunkP7GTYOLB_cjs = require('../../chunk-P7GTYOLB.cjs');
4
- require('../../chunk-H7VE3FL4.cjs');
5
- require('../../chunk-F4NHQHEZ.cjs');
6
- var chunkZ3WO6MND_cjs = require('../../chunk-Z3WO6MND.cjs');
7
- require('../../chunk-OOA273IJ.cjs');
8
- require('../../chunk-ZDH3DX3C.cjs');
9
- require('../../chunk-EKFUG4G7.cjs');
10
- require('../../chunk-ACSVZPK7.cjs');
11
- require('../../chunk-JQXSZHF2.cjs');
12
- require('../../chunk-5GAONX5G.cjs');
3
+ var chunkYVWGEQJE_cjs = require('../../chunk-YVWGEQJE.cjs');
4
+ require('../../chunk-MUK4BU7K.cjs');
5
+ require('../../chunk-YAAM3M2S.cjs');
6
+ var chunkRMQLSPA2_cjs = require('../../chunk-RMQLSPA2.cjs');
7
+ require('../../chunk-U5SON7R2.cjs');
8
+ require('../../chunk-PWLJ77UV.cjs');
9
+ require('../../chunk-BSFJMMV3.cjs');
10
+ require('../../chunk-XBYVV3MP.cjs');
11
+ require('../../chunk-XCAGZAKP.cjs');
13
12
  require('../../chunk-ZY4GXIVN.cjs');
14
13
  require('../../chunk-NAUA4PW5.cjs');
15
- require('../../chunk-JXUTCSXX.cjs');
16
- require('../../chunk-U5W4LKZV.cjs');
17
- require('../../chunk-764JHTLT.cjs');
18
- require('../../chunk-C4F7VJ5D.cjs');
19
- require('../../chunk-TDXIBCGY.cjs');
14
+ require('../../chunk-4UGOKMI5.cjs');
15
+ require('../../chunk-VCRRKBLN.cjs');
16
+ require('../../chunk-NI72YOJB.cjs');
17
+ require('../../chunk-A7J2YDDI.cjs');
18
+ require('../../chunk-N66HCGCY.cjs');
20
19
 
21
20
 
22
21
 
23
22
  Object.defineProperty(exports, "createSqliteBackend", {
24
23
  enumerable: true,
25
- get: function () { return chunkP7GTYOLB_cjs.createSqliteBackend; }
24
+ get: function () { return chunkYVWGEQJE_cjs.createSqliteBackend; }
26
25
  });
27
26
  Object.defineProperty(exports, "createSqliteTables", {
28
27
  enumerable: true,
29
- get: function () { return chunkZ3WO6MND_cjs.createSqliteTables; }
28
+ get: function () { return chunkRMQLSPA2_cjs.createSqliteTables; }
30
29
  });
31
30
  Object.defineProperty(exports, "edges", {
32
31
  enumerable: true,
33
- get: function () { return chunkZ3WO6MND_cjs.edges2; }
32
+ get: function () { return chunkRMQLSPA2_cjs.edges2; }
34
33
  });
35
34
  Object.defineProperty(exports, "generateSqliteDDL", {
36
35
  enumerable: true,
37
- get: function () { return chunkZ3WO6MND_cjs.generateSqliteDDL; }
36
+ get: function () { return chunkRMQLSPA2_cjs.generateSqliteDDL; }
38
37
  });
39
38
  Object.defineProperty(exports, "generateSqliteMigrationSQL", {
40
39
  enumerable: true,
41
- get: function () { return chunkZ3WO6MND_cjs.generateSqliteMigrationSQL; }
40
+ get: function () { return chunkRMQLSPA2_cjs.generateSqliteMigrationSQL; }
42
41
  });
43
42
  Object.defineProperty(exports, "nodes", {
44
43
  enumerable: true,
45
- get: function () { return chunkZ3WO6MND_cjs.nodes2; }
44
+ get: function () { return chunkRMQLSPA2_cjs.nodes2; }
46
45
  });
47
46
  Object.defineProperty(exports, "recordedClock", {
48
47
  enumerable: true,
49
- get: function () { return chunkZ3WO6MND_cjs.recordedClock2; }
48
+ get: function () { return chunkRMQLSPA2_cjs.recordedClock2; }
50
49
  });
51
50
  Object.defineProperty(exports, "recordedEdges", {
52
51
  enumerable: true,
53
- get: function () { return chunkZ3WO6MND_cjs.recordedEdges2; }
52
+ get: function () { return chunkRMQLSPA2_cjs.recordedEdges2; }
54
53
  });
55
54
  Object.defineProperty(exports, "recordedNodes", {
56
55
  enumerable: true,
57
- get: function () { return chunkZ3WO6MND_cjs.recordedNodes2; }
56
+ get: function () { return chunkRMQLSPA2_cjs.recordedNodes2; }
58
57
  });
59
58
  Object.defineProperty(exports, "schemaVersions", {
60
59
  enumerable: true,
61
- get: function () { return chunkZ3WO6MND_cjs.schemaVersions2; }
60
+ get: function () { return chunkRMQLSPA2_cjs.schemaVersions2; }
62
61
  });
63
62
  Object.defineProperty(exports, "tables", {
64
63
  enumerable: true,
65
- get: function () { return chunkZ3WO6MND_cjs.tables2; }
64
+ get: function () { return chunkRMQLSPA2_cjs.tables2; }
66
65
  });
67
66
  Object.defineProperty(exports, "uniques", {
68
67
  enumerable: true,
69
- get: function () { return chunkZ3WO6MND_cjs.uniques2; }
68
+ get: function () { return chunkRMQLSPA2_cjs.uniques2; }
70
69
  });
71
70
  //# sourceMappingURL=index.cjs.map
72
71
  //# sourceMappingURL=index.cjs.map