@nicia-ai/typegraph 0.46.2 → 0.47.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 (294) hide show
  1. package/README.md +20 -1
  2. package/dist/backend/drizzle/indexes.cjs +9 -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 +5 -5
  6. package/dist/backend/index.cjs +50 -49
  7. package/dist/backend/index.d.cts +3 -3
  8. package/dist/backend/index.d.ts +3 -3
  9. package/dist/backend/index.js +11 -10
  10. package/dist/backend/postgres/index.cjs +27 -26
  11. package/dist/backend/postgres/index.d.cts +6 -6
  12. package/dist/backend/postgres/index.d.ts +6 -6
  13. package/dist/backend/postgres/index.js +14 -13
  14. package/dist/backend/postgres/pglite-store.cjs +34 -33
  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 +30 -29
  19. package/dist/backend/postgres/pglite-store.js.map +1 -1
  20. package/dist/backend/postgres/pglite.cjs +16 -15
  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 +15 -14
  24. package/dist/backend/sqlite/index.cjs +24 -23
  25. package/dist/backend/sqlite/index.d.cts +6 -6
  26. package/dist/backend/sqlite/index.d.ts +6 -6
  27. package/dist/backend/sqlite/index.js +12 -11
  28. package/dist/backend/sqlite/libsql.cjs +19 -18
  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 +14 -13
  33. package/dist/backend/sqlite/libsql.js.map +1 -1
  34. package/dist/backend/sqlite/local-store.cjs +35 -34
  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 +31 -30
  39. package/dist/backend/sqlite/local-store.js.map +1 -1
  40. package/dist/backend/sqlite/local.cjs +17 -16
  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 +15 -14
  44. package/dist/{chunk-TCT66A7N.cjs → chunk-26YKDNUD.cjs} +10 -10
  45. package/dist/{chunk-TCT66A7N.cjs.map → chunk-26YKDNUD.cjs.map} +1 -1
  46. package/dist/{chunk-QOJ2L2AD.js → chunk-3DMMGT6S.js} +3 -3
  47. package/dist/{chunk-QOJ2L2AD.js.map → chunk-3DMMGT6S.js.map} +1 -1
  48. package/dist/{chunk-ANKOXPCC.cjs → chunk-3HGRTCDU.cjs} +6 -4
  49. package/dist/chunk-3HGRTCDU.cjs.map +1 -0
  50. package/dist/{chunk-QU7QLJA4.cjs → chunk-3U5ABFDW.cjs} +26 -26
  51. package/dist/{chunk-QU7QLJA4.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
  52. package/dist/{chunk-5PDSCELM.cjs → chunk-425IZOQ5.cjs} +11 -164
  53. package/dist/chunk-425IZOQ5.cjs.map +1 -0
  54. package/dist/{chunk-S7WIRFNS.cjs → chunk-5FBRVORR.cjs} +12 -12
  55. package/dist/{chunk-S7WIRFNS.cjs.map → chunk-5FBRVORR.cjs.map} +1 -1
  56. package/dist/{chunk-GWXXHOLU.js → chunk-5FT3TLPK.js} +11 -11
  57. package/dist/{chunk-GWXXHOLU.js.map → chunk-5FT3TLPK.js.map} +1 -1
  58. package/dist/{chunk-S3G5VLSW.js → chunk-5UMTUOM5.js} +6 -6
  59. package/dist/{chunk-S3G5VLSW.js.map → chunk-5UMTUOM5.js.map} +1 -1
  60. package/dist/{chunk-RFDEYLIK.js → chunk-6FWSNSRE.js} +7 -7
  61. package/dist/{chunk-RFDEYLIK.js.map → chunk-6FWSNSRE.js.map} +1 -1
  62. package/dist/{chunk-F36KZDFX.cjs → chunk-6JVZSOHQ.cjs} +91 -91
  63. package/dist/{chunk-F36KZDFX.cjs.map → chunk-6JVZSOHQ.cjs.map} +1 -1
  64. package/dist/chunk-6KFLYYOC.cjs +161 -0
  65. package/dist/chunk-6KFLYYOC.cjs.map +1 -0
  66. package/dist/{chunk-D6GCNNMK.cjs → chunk-6NGW27EO.cjs} +10 -10
  67. package/dist/{chunk-D6GCNNMK.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
  68. package/dist/{chunk-WHS2Y43J.js → chunk-6SWPJEYN.js} +5 -5
  69. package/dist/{chunk-WHS2Y43J.js.map → chunk-6SWPJEYN.js.map} +1 -1
  70. package/dist/{chunk-7TKNK32B.js → chunk-7SQSZN2J.js} +5 -5
  71. package/dist/{chunk-7TKNK32B.js.map → chunk-7SQSZN2J.js.map} +1 -1
  72. package/dist/{chunk-BEB4OFZF.cjs → chunk-AMMWA76F.cjs} +51 -59
  73. package/dist/chunk-AMMWA76F.cjs.map +1 -0
  74. package/dist/{chunk-PYKF7UIL.cjs → chunk-AOSSQDVO.cjs} +13 -13
  75. package/dist/{chunk-PYKF7UIL.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
  76. package/dist/{chunk-EDHV4CBU.js → chunk-AVGUJWVX.js} +30 -10
  77. package/dist/chunk-AVGUJWVX.js.map +1 -0
  78. package/dist/{chunk-C2ZP5YS6.cjs → chunk-BCQ76AXA.cjs} +258 -153
  79. package/dist/chunk-BCQ76AXA.cjs.map +1 -0
  80. package/dist/{chunk-WA64ZSCA.cjs → chunk-BFUOME67.cjs} +11 -11
  81. package/dist/{chunk-WA64ZSCA.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
  82. package/dist/{chunk-C6KE2HSQ.cjs → chunk-BR7SHKGM.cjs} +1611 -1382
  83. package/dist/chunk-BR7SHKGM.cjs.map +1 -0
  84. package/dist/{chunk-FCIZNUW5.js → chunk-CHAOFCHV.js} +3 -3
  85. package/dist/{chunk-FCIZNUW5.js.map → chunk-CHAOFCHV.js.map} +1 -1
  86. package/dist/chunk-CICO5GXD.cjs +12 -0
  87. package/dist/{chunk-73MWKDFK.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
  88. package/dist/{chunk-SXWLLQ3D.js → chunk-D5R42W5D.js} +4 -4
  89. package/dist/{chunk-SXWLLQ3D.js.map → chunk-D5R42W5D.js.map} +1 -1
  90. package/dist/{chunk-YQ4JONWE.js → chunk-DJZTXBWY.js} +342 -113
  91. package/dist/chunk-DJZTXBWY.js.map +1 -0
  92. package/dist/{chunk-BZZI7B43.cjs → chunk-DO7SAMEK.cjs} +47 -47
  93. package/dist/{chunk-BZZI7B43.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
  94. package/dist/{chunk-2ZWM2RFH.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
  95. package/dist/{chunk-2ZWM2RFH.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
  96. package/dist/{chunk-E4OSGBCM.cjs → chunk-EMIB2RXD.cjs} +131 -131
  97. package/dist/{chunk-E4OSGBCM.cjs.map → chunk-EMIB2RXD.cjs.map} +1 -1
  98. package/dist/{chunk-GWUWRZXW.js → chunk-EP4RUYD6.js} +3 -3
  99. package/dist/{chunk-GWUWRZXW.js.map → chunk-EP4RUYD6.js.map} +1 -1
  100. package/dist/{chunk-LHYSY6SE.js → chunk-FNOMT74T.js} +10 -8
  101. package/dist/chunk-FNOMT74T.js.map +1 -0
  102. package/dist/{chunk-ZBVZ7HXD.cjs → chunk-FQPEMEWX.cjs} +12 -12
  103. package/dist/{chunk-ZBVZ7HXD.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
  104. package/dist/{chunk-LNIWCQR4.js → chunk-GLHXM7C4.js} +3 -3
  105. package/dist/{chunk-LNIWCQR4.js.map → chunk-GLHXM7C4.js.map} +1 -1
  106. package/dist/{chunk-6BD6ZBKT.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
  107. package/dist/{chunk-6BD6ZBKT.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
  108. package/dist/{chunk-XBHRKLZU.cjs → chunk-GYUJZARH.cjs} +4 -4
  109. package/dist/{chunk-XBHRKLZU.cjs.map → chunk-GYUJZARH.cjs.map} +1 -1
  110. package/dist/{chunk-A7NMUYEL.cjs → chunk-HDL2ARHX.cjs} +27 -27
  111. package/dist/{chunk-A7NMUYEL.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
  112. package/dist/{chunk-5ZJOB5YS.js → chunk-HEV35TGT.js} +4 -4
  113. package/dist/{chunk-5ZJOB5YS.js.map → chunk-HEV35TGT.js.map} +1 -1
  114. package/dist/{chunk-UTVQPZPN.cjs → chunk-I4G3SQPF.cjs} +20 -20
  115. package/dist/{chunk-UTVQPZPN.cjs.map → chunk-I4G3SQPF.cjs.map} +1 -1
  116. package/dist/{chunk-JCNTKRAK.js → chunk-JONXFAPO.js} +5 -5
  117. package/dist/{chunk-JCNTKRAK.js.map → chunk-JONXFAPO.js.map} +1 -1
  118. package/dist/{chunk-GVAMRRZR.cjs → chunk-JR6SX5RH.cjs} +4 -4
  119. package/dist/{chunk-GVAMRRZR.cjs.map → chunk-JR6SX5RH.cjs.map} +1 -1
  120. package/dist/{chunk-N3QTGPC7.cjs → chunk-KABFHAL7.cjs} +100 -99
  121. package/dist/chunk-KABFHAL7.cjs.map +1 -0
  122. package/dist/{chunk-KXSMF6PL.js → chunk-KH7XW7VV.js} +20 -12
  123. package/dist/chunk-KH7XW7VV.js.map +1 -0
  124. package/dist/{chunk-EDJDDY6H.js → chunk-KKBDXCLQ.js} +4 -4
  125. package/dist/{chunk-EDJDDY6H.js.map → chunk-KKBDXCLQ.js.map} +1 -1
  126. package/dist/{chunk-ZHOAZD7Q.cjs → chunk-L3LQNR34.cjs} +161 -161
  127. package/dist/{chunk-ZHOAZD7Q.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
  128. package/dist/{chunk-IHRDX7K6.js → chunk-LEWHMOUY.js} +46 -56
  129. package/dist/chunk-LEWHMOUY.js.map +1 -0
  130. package/dist/{chunk-AF3TWL5C.cjs → chunk-LRQKXRXO.cjs} +4 -4
  131. package/dist/{chunk-AF3TWL5C.cjs.map → chunk-LRQKXRXO.cjs.map} +1 -1
  132. package/dist/{chunk-WYFB7BN3.js → chunk-M35DF33T.js} +143 -38
  133. package/dist/chunk-M35DF33T.js.map +1 -0
  134. package/dist/{chunk-32UETY6S.cjs → chunk-MFZR4QKM.cjs} +30 -28
  135. package/dist/chunk-MFZR4QKM.cjs.map +1 -0
  136. package/dist/chunk-MKJ4KXL5.cjs +12 -0
  137. package/dist/{chunk-6LAXM4J2.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
  138. package/dist/{chunk-KCH7WQA5.cjs → chunk-MRDBBHIZ.cjs} +48 -2
  139. package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
  140. package/dist/{chunk-QPOQX2DI.cjs → chunk-MX4DHSQP.cjs} +1023 -360
  141. package/dist/chunk-MX4DHSQP.cjs.map +1 -0
  142. package/dist/{chunk-FXNHZFZV.js → chunk-MYKHJI2J.js} +3 -3
  143. package/dist/{chunk-FXNHZFZV.js.map → chunk-MYKHJI2J.js.map} +1 -1
  144. package/dist/{chunk-DSAWGCMP.js → chunk-NAZ2RA4L.js} +3 -3
  145. package/dist/{chunk-DSAWGCMP.js.map → chunk-NAZ2RA4L.js.map} +1 -1
  146. package/dist/{chunk-R7EWHKID.js → chunk-NG2RB5WL.js} +4 -145
  147. package/dist/chunk-NG2RB5WL.js.map +1 -0
  148. package/dist/{chunk-A2LJG5GM.js → chunk-NNQ6A3RM.js} +803 -143
  149. package/dist/chunk-NNQ6A3RM.js.map +1 -0
  150. package/dist/{chunk-72WUT4GG.js → chunk-NVY5CJFP.js} +4 -4
  151. package/dist/{chunk-72WUT4GG.js.map → chunk-NVY5CJFP.js.map} +1 -1
  152. package/dist/{chunk-ZIH42CRX.cjs → chunk-OI2GQ25X.cjs} +7 -7
  153. package/dist/{chunk-ZIH42CRX.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
  154. package/dist/{chunk-A4R3H7RU.cjs → chunk-OIFSOPSR.cjs} +259 -238
  155. package/dist/chunk-OIFSOPSR.cjs.map +1 -0
  156. package/dist/{chunk-AU3IJNNP.js → chunk-OMZ37BM2.js} +5 -5
  157. package/dist/{chunk-AU3IJNNP.js.map → chunk-OMZ37BM2.js.map} +1 -1
  158. package/dist/{chunk-C4DYN2SD.cjs → chunk-OORXGFL5.cjs} +48 -48
  159. package/dist/{chunk-C4DYN2SD.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
  160. package/dist/{chunk-BRN3RGD2.js → chunk-OVI7IXYX.js} +3 -3
  161. package/dist/{chunk-BRN3RGD2.js.map → chunk-OVI7IXYX.js.map} +1 -1
  162. package/dist/{chunk-WMKEGJG4.js → chunk-P6YLZTRE.js} +3 -3
  163. package/dist/{chunk-WMKEGJG4.js.map → chunk-P6YLZTRE.js.map} +1 -1
  164. package/dist/{chunk-AT3MLMJV.js → chunk-QS3NQZVC.js} +82 -16
  165. package/dist/chunk-QS3NQZVC.js.map +1 -0
  166. package/dist/{chunk-EJSYWAEV.js → chunk-QTD6HX4O.js} +5 -5
  167. package/dist/{chunk-EJSYWAEV.js.map → chunk-QTD6HX4O.js.map} +1 -1
  168. package/dist/{chunk-JL5UEBWT.cjs → chunk-ROR5ZR6A.cjs} +45 -45
  169. package/dist/{chunk-JL5UEBWT.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
  170. package/dist/{chunk-FSLTU57P.js → chunk-SDBBMD4N.js} +3 -3
  171. package/dist/{chunk-FSLTU57P.js.map → chunk-SDBBMD4N.js.map} +1 -1
  172. package/dist/{chunk-WEJHA7AD.js → chunk-SE6EGQSD.js} +78 -16
  173. package/dist/chunk-SE6EGQSD.js.map +1 -0
  174. package/dist/{chunk-36LIJXWC.js → chunk-SHFBB23Q.js} +4 -4
  175. package/dist/{chunk-36LIJXWC.js.map → chunk-SHFBB23Q.js.map} +1 -1
  176. package/dist/{chunk-FA6Z7B5L.js → chunk-SHSSRCFR.js} +5 -3
  177. package/dist/chunk-SHSSRCFR.js.map +1 -0
  178. package/dist/{chunk-KOAI3KIV.cjs → chunk-TZEGUG6D.cjs} +4 -4
  179. package/dist/{chunk-KOAI3KIV.cjs.map → chunk-TZEGUG6D.cjs.map} +1 -1
  180. package/dist/{chunk-HNYLMPQQ.cjs → chunk-U5EDAVOJ.cjs} +140 -74
  181. package/dist/chunk-U5EDAVOJ.cjs.map +1 -0
  182. package/dist/{chunk-RHDOAQCT.cjs → chunk-UPAJHMW3.cjs} +122 -114
  183. package/dist/chunk-UPAJHMW3.cjs.map +1 -0
  184. package/dist/{chunk-BQM5P2NO.cjs → chunk-WGX7JH7E.cjs} +235 -170
  185. package/dist/chunk-WGX7JH7E.cjs.map +1 -0
  186. package/dist/{chunk-DYPRZ53S.cjs → chunk-WODMN3Q2.cjs} +27 -27
  187. package/dist/{chunk-DYPRZ53S.cjs.map → chunk-WODMN3Q2.cjs.map} +1 -1
  188. package/dist/{chunk-OZJCH7ZS.js → chunk-XVWOYKIK.js} +3 -3
  189. package/dist/{chunk-OZJCH7ZS.js.map → chunk-XVWOYKIK.js.map} +1 -1
  190. package/dist/chunk-XY5OMOJD.js +147 -0
  191. package/dist/chunk-XY5OMOJD.js.map +1 -0
  192. package/dist/{chunk-KA4L2NZ3.js → chunk-XYBQI6LE.js} +14 -14
  193. package/dist/{chunk-KA4L2NZ3.js.map → chunk-XYBQI6LE.js.map} +1 -1
  194. package/dist/{chunk-EAMVXR5B.js → chunk-ZDKTPBGV.js} +4 -4
  195. package/dist/{chunk-EAMVXR5B.js.map → chunk-ZDKTPBGV.js.map} +1 -1
  196. package/dist/{chunk-Z43KWLZF.js → chunk-ZHNXLS3C.js} +9 -8
  197. package/dist/chunk-ZHNXLS3C.js.map +1 -0
  198. package/dist/{chunk-62ZXBMSD.js → chunk-ZLONH2UD.js} +46 -3
  199. package/dist/chunk-ZLONH2UD.js.map +1 -0
  200. package/dist/core/index.cjs +28 -27
  201. package/dist/core/index.d.cts +4 -4
  202. package/dist/core/index.d.ts +4 -4
  203. package/dist/core/index.js +8 -7
  204. package/dist/{ddl-opIn8DfX.d.ts → ddl-CprnMXJ-.d.ts} +3 -3
  205. package/dist/{ddl-mE07h_EM.d.cts → ddl-DJA7Lci5.d.cts} +3 -3
  206. package/dist/graph-extension/index.cjs +20 -20
  207. package/dist/graph-extension/index.d.cts +4 -4
  208. package/dist/graph-extension/index.d.ts +4 -4
  209. package/dist/graph-extension/index.js +4 -4
  210. package/dist/graph-merge/index.cjs +3204 -635
  211. package/dist/graph-merge/index.cjs.map +1 -1
  212. package/dist/graph-merge/index.d.cts +502 -60
  213. package/dist/graph-merge/index.d.ts +502 -60
  214. package/dist/graph-merge/index.js +2979 -427
  215. package/dist/graph-merge/index.js.map +1 -1
  216. package/dist/{index-Deyu8IXL.d.ts → index-CHTv4XMZ.d.cts} +47 -3
  217. package/dist/{index-DrRS51Ld.d.cts → index-CzoJ3MUw.d.ts} +47 -3
  218. package/dist/index.cjs +229 -216
  219. package/dist/index.cjs.map +1 -1
  220. package/dist/index.d.cts +11 -11
  221. package/dist/index.d.ts +11 -11
  222. package/dist/index.js +35 -34
  223. package/dist/index.js.map +1 -1
  224. package/dist/indexes/index.cjs +13 -13
  225. package/dist/indexes/index.d.cts +4 -4
  226. package/dist/indexes/index.d.ts +4 -4
  227. package/dist/indexes/index.js +6 -6
  228. package/dist/interchange/index.cjs +53 -52
  229. package/dist/interchange/index.cjs.map +1 -1
  230. package/dist/interchange/index.d.cts +17 -13
  231. package/dist/interchange/index.d.ts +17 -13
  232. package/dist/interchange/index.js +17 -16
  233. package/dist/interchange/index.js.map +1 -1
  234. package/dist/{manager-DX983gJ0.d.ts → manager-B6sOQzcQ.d.ts} +2 -2
  235. package/dist/{manager-ptr3JLRP.d.cts → manager-DlY1vlla.d.cts} +2 -2
  236. package/dist/{materialize-indexes-CpXoggWU.d.ts → materialize-indexes-DQL4xcpf.d.ts} +1 -1
  237. package/dist/{materialize-indexes-BXz77YqO.d.cts → materialize-indexes-sskhp-c_.d.cts} +1 -1
  238. package/dist/{postgres-DwgEXSPI.d.cts → postgres-B6YOUcaK.d.ts} +1 -1
  239. package/dist/{postgres-QdOMHTBz.d.ts → postgres-BXy_nyMs.d.cts} +1 -1
  240. package/dist/profiler/index.d.cts +9 -9
  241. package/dist/profiler/index.d.ts +9 -9
  242. package/dist/provenance/index.cjs +43 -42
  243. package/dist/provenance/index.cjs.map +1 -1
  244. package/dist/provenance/index.d.cts +7 -7
  245. package/dist/provenance/index.d.ts +7 -7
  246. package/dist/provenance/index.js +10 -9
  247. package/dist/provenance/index.js.map +1 -1
  248. package/dist/schema/index.cjs +45 -44
  249. package/dist/schema/index.d.cts +6 -6
  250. package/dist/schema/index.d.ts +6 -6
  251. package/dist/schema/index.js +18 -17
  252. package/dist/{searchable-BrUh0pdc.d.cts → searchable-0Cn_lY8U.d.cts} +1 -1
  253. package/dist/{searchable-BOUuA83f.d.ts → searchable-D9gMiwcS.d.ts} +1 -1
  254. package/dist/{sqlite-BfYcV61E.d.cts → sqlite-ClXuBYAj.d.ts} +1 -1
  255. package/dist/{sqlite-DK40XVR1.d.ts → sqlite-DioSxaPe.d.cts} +1 -1
  256. package/dist/{store-Bo1psfVZ.d.ts → store-5j-w5onJ.d.ts} +120 -71
  257. package/dist/{store-FTqBpuJD.d.cts → store-CFedKGU5.d.cts} +120 -71
  258. package/dist/{temporal-CXewwLTB.d.cts → temporal-Ce1pG0S1.d.cts} +1 -1
  259. package/dist/{temporal-DPtn0HOu.d.ts → temporal-CjO9FH1l.d.ts} +1 -1
  260. package/dist/{types-CeT7xM4M.d.ts → types-BrdOFu48.d.ts} +1 -1
  261. package/dist/{types-Du78EvpN.d.ts → types-DKkMJZjR.d.cts} +32 -6
  262. package/dist/{types-Du78EvpN.d.cts → types-DKkMJZjR.d.ts} +32 -6
  263. package/dist/{types-XR1nHERK.d.cts → types-oj_OGAaZ.d.cts} +1 -1
  264. package/dist/{where-CMbFiWwp.d.ts → where-C8w2627G.d.ts} +1 -1
  265. package/dist/{where-CJsp-YUf.d.cts → where-D1wKCJ4Q.d.cts} +1 -1
  266. package/package.json +1 -1
  267. package/dist/chunk-32UETY6S.cjs.map +0 -1
  268. package/dist/chunk-5PDSCELM.cjs.map +0 -1
  269. package/dist/chunk-62ZXBMSD.js.map +0 -1
  270. package/dist/chunk-6LAXM4J2.cjs +0 -12
  271. package/dist/chunk-73MWKDFK.cjs +0 -12
  272. package/dist/chunk-A2LJG5GM.js.map +0 -1
  273. package/dist/chunk-A4R3H7RU.cjs.map +0 -1
  274. package/dist/chunk-ANKOXPCC.cjs.map +0 -1
  275. package/dist/chunk-AT3MLMJV.js.map +0 -1
  276. package/dist/chunk-BEB4OFZF.cjs.map +0 -1
  277. package/dist/chunk-BQM5P2NO.cjs.map +0 -1
  278. package/dist/chunk-C2ZP5YS6.cjs.map +0 -1
  279. package/dist/chunk-C6KE2HSQ.cjs.map +0 -1
  280. package/dist/chunk-EDHV4CBU.js.map +0 -1
  281. package/dist/chunk-FA6Z7B5L.js.map +0 -1
  282. package/dist/chunk-HNYLMPQQ.cjs.map +0 -1
  283. package/dist/chunk-IHRDX7K6.js.map +0 -1
  284. package/dist/chunk-KCH7WQA5.cjs.map +0 -1
  285. package/dist/chunk-KXSMF6PL.js.map +0 -1
  286. package/dist/chunk-LHYSY6SE.js.map +0 -1
  287. package/dist/chunk-N3QTGPC7.cjs.map +0 -1
  288. package/dist/chunk-QPOQX2DI.cjs.map +0 -1
  289. package/dist/chunk-R7EWHKID.js.map +0 -1
  290. package/dist/chunk-RHDOAQCT.cjs.map +0 -1
  291. package/dist/chunk-WEJHA7AD.js.map +0 -1
  292. package/dist/chunk-WYFB7BN3.js.map +0 -1
  293. package/dist/chunk-YQ4JONWE.js.map +0 -1
  294. package/dist/chunk-Z43KWLZF.js.map +0 -1
@@ -1,19 +1,20 @@
1
- export { createPostgresBackend } from '../../chunk-WYFB7BN3.js';
2
- import '../../chunk-KXSMF6PL.js';
3
- import '../../chunk-JCNTKRAK.js';
4
- import '../../chunk-BRN3RGD2.js';
5
- import '../../chunk-IHRDX7K6.js';
6
- export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-WHS2Y43J.js';
7
- import '../../chunk-AU3IJNNP.js';
1
+ export { createPostgresBackend } from '../../chunk-M35DF33T.js';
2
+ import '../../chunk-KH7XW7VV.js';
3
+ import '../../chunk-JONXFAPO.js';
4
+ import '../../chunk-OVI7IXYX.js';
5
+ import '../../chunk-LEWHMOUY.js';
6
+ export { createPostgresTables, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-6SWPJEYN.js';
7
+ import '../../chunk-OMZ37BM2.js';
8
8
  import '../../chunk-JBQQ7THH.js';
9
- import '../../chunk-DSAWGCMP.js';
10
- import '../../chunk-FA6Z7B5L.js';
11
- import '../../chunk-FSLTU57P.js';
9
+ import '../../chunk-NAZ2RA4L.js';
10
+ import '../../chunk-SHSSRCFR.js';
11
+ import '../../chunk-NG2RB5WL.js';
12
+ import '../../chunk-SDBBMD4N.js';
12
13
  import '../../chunk-K34OPSJK.js';
13
14
  import '../../chunk-2EBMPJBO.js';
14
- import '../../chunk-EAMVXR5B.js';
15
- import '../../chunk-QOJ2L2AD.js';
16
- import '../../chunk-62ZXBMSD.js';
15
+ import '../../chunk-ZDKTPBGV.js';
16
+ import '../../chunk-3DMMGT6S.js';
17
+ import '../../chunk-ZLONH2UD.js';
17
18
  import '../../chunk-FWJKWH6U.js';
18
19
  import '../../chunk-DYATYRY4.js';
19
20
  //# sourceMappingURL=index.js.map
@@ -1,41 +1,42 @@
1
1
  'use strict';
2
2
 
3
- var chunkS7WIRFNS_cjs = require('../../chunk-S7WIRFNS.cjs');
4
- require('../../chunk-C2ZP5YS6.cjs');
5
- require('../../chunk-RHDOAQCT.cjs');
6
- var chunkC6KE2HSQ_cjs = require('../../chunk-C6KE2HSQ.cjs');
7
- require('../../chunk-JL5UEBWT.cjs');
8
- require('../../chunk-73MWKDFK.cjs');
9
- require('../../chunk-BEB4OFZF.cjs');
10
- var chunkA7NMUYEL_cjs = require('../../chunk-A7NMUYEL.cjs');
11
- require('../../chunk-DYPRZ53S.cjs');
12
- require('../../chunk-BQM5P2NO.cjs');
13
- require('../../chunk-32UETY6S.cjs');
14
- require('../../chunk-F36KZDFX.cjs');
15
- require('../../chunk-TCT66A7N.cjs');
16
- require('../../chunk-QPOQX2DI.cjs');
17
- require('../../chunk-A4R3H7RU.cjs');
3
+ var chunk5FBRVORR_cjs = require('../../chunk-5FBRVORR.cjs');
4
+ require('../../chunk-BCQ76AXA.cjs');
5
+ require('../../chunk-UPAJHMW3.cjs');
6
+ var chunkBR7SHKGM_cjs = require('../../chunk-BR7SHKGM.cjs');
7
+ require('../../chunk-ROR5ZR6A.cjs');
8
+ require('../../chunk-CICO5GXD.cjs');
9
+ require('../../chunk-AMMWA76F.cjs');
10
+ var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
11
+ require('../../chunk-WODMN3Q2.cjs');
12
+ require('../../chunk-WGX7JH7E.cjs');
13
+ require('../../chunk-MFZR4QKM.cjs');
14
+ require('../../chunk-6JVZSOHQ.cjs');
15
+ require('../../chunk-26YKDNUD.cjs');
16
+ require('../../chunk-MX4DHSQP.cjs');
17
+ require('../../chunk-OIFSOPSR.cjs');
18
18
  require('../../chunk-PWLJ77UV.cjs');
19
- require('../../chunk-GVAMRRZR.cjs');
20
- require('../../chunk-QU7QLJA4.cjs');
21
- var chunkANKOXPCC_cjs = require('../../chunk-ANKOXPCC.cjs');
22
- require('../../chunk-WA64ZSCA.cjs');
23
- require('../../chunk-ZBVZ7HXD.cjs');
24
- require('../../chunk-5PDSCELM.cjs');
25
- require('../../chunk-PYKF7UIL.cjs');
26
- require('../../chunk-ZIH42CRX.cjs');
27
- require('../../chunk-AF3TWL5C.cjs');
19
+ require('../../chunk-JR6SX5RH.cjs');
20
+ require('../../chunk-3U5ABFDW.cjs');
21
+ var chunk3HGRTCDU_cjs = require('../../chunk-3HGRTCDU.cjs');
22
+ require('../../chunk-BFUOME67.cjs');
23
+ require('../../chunk-FQPEMEWX.cjs');
24
+ require('../../chunk-6KFLYYOC.cjs');
25
+ require('../../chunk-425IZOQ5.cjs');
26
+ require('../../chunk-AOSSQDVO.cjs');
27
+ require('../../chunk-OI2GQ25X.cjs');
28
+ require('../../chunk-LRQKXRXO.cjs');
28
29
  require('../../chunk-ZY4GXIVN.cjs');
29
30
  require('../../chunk-NAUA4PW5.cjs');
30
- require('../../chunk-ZHOAZD7Q.cjs');
31
- require('../../chunk-2ZWM2RFH.cjs');
31
+ require('../../chunk-L3LQNR34.cjs');
32
+ require('../../chunk-EDN4Y4ZG.cjs');
32
33
  require('../../chunk-7EO3TCQB.cjs');
33
34
  require('../../chunk-RT5ZY4XA.cjs');
34
35
  require('../../chunk-HAHNRASW.cjs');
35
- require('../../chunk-6BD6ZBKT.cjs');
36
+ require('../../chunk-GYEG3ZLZ.cjs');
36
37
  require('../../chunk-XUO3KQFO.cjs');
37
- require('../../chunk-D6GCNNMK.cjs');
38
- require('../../chunk-KCH7WQA5.cjs');
38
+ require('../../chunk-6NGW27EO.cjs');
39
+ require('../../chunk-MRDBBHIZ.cjs');
39
40
  require('../../chunk-A7J2YDDI.cjs');
40
41
  require('../../chunk-N66HCGCY.cjs');
41
42
 
@@ -46,14 +47,14 @@ function withoutSchemaOverride(schemaManagement) {
46
47
  return rest;
47
48
  }
48
49
  async function createLocalPgliteStore(graph, options = {}) {
49
- const tables = options.store?.schema === void 0 ? void 0 : chunkA7NMUYEL_cjs.createPostgresTables(options.store.schema.tables);
50
- const { backend } = await chunkS7WIRFNS_cjs.createLocalPgliteBackend({
50
+ const tables = options.store?.schema === void 0 ? void 0 : chunkHDL2ARHX_cjs.createPostgresTables(options.store.schema.tables);
51
+ const { backend } = await chunk5FBRVORR_cjs.createLocalPgliteBackend({
51
52
  ...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
52
53
  ...options.vector === false ? { vector: false } : {},
53
54
  ...tables === void 0 ? {} : { tables }
54
55
  });
55
56
  try {
56
- const [store] = await chunkC6KE2HSQ_cjs.createStoreWithSchema(graph, backend, {
57
+ const [store] = await chunkBR7SHKGM_cjs.createStoreWithSchema(graph, backend, {
57
58
  ...options.store,
58
59
  // The type already excludes `schema` here; the runtime strip guards
59
60
  // untyped callers, so the provisioned schema (or the default tables)
@@ -62,7 +63,7 @@ async function createLocalPgliteStore(graph, options = {}) {
62
63
  });
63
64
  return store;
64
65
  } catch (error) {
65
- return chunkANKOXPCC_cjs.closeAfterFailure(backend, error);
66
+ return chunk3HGRTCDU_cjs.closeAfterFailure(backend, error);
66
67
  }
67
68
  }
68
69
 
@@ -1 +1 @@
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
+ {"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,12 +1,12 @@
1
- import { d as GraphDef } from '../../types-Du78EvpN.cjs';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-Du78EvpN.cjs';
3
- import { S as SchemaManagerOptions } from '../../manager-ptr3JLRP.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-FTqBpuJD.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-FTqBpuJD.cjs';
1
+ import { d as GraphDef } from '../../types-DKkMJZjR.cjs';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.cjs';
3
+ import { S as SchemaManagerOptions } from '../../manager-DlY1vlla.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-CFedKGU5.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-CFedKGU5.cjs';
6
6
  import 'zod';
7
- import '../../materialize-indexes-BXz77YqO.cjs';
8
- import '../../temporal-CXewwLTB.cjs';
9
- import '../../searchable-BrUh0pdc.cjs';
7
+ import '../../materialize-indexes-sskhp-c_.cjs';
8
+ import '../../temporal-Ce1pG0S1.cjs';
9
+ import '../../searchable-0Cn_lY8U.cjs';
10
10
 
11
11
  /**
12
12
  * Batteries-included local PostgreSQL Store backed by PGlite.
@@ -1,12 +1,12 @@
1
- import { d as GraphDef } from '../../types-Du78EvpN.js';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-Du78EvpN.js';
3
- import { S as SchemaManagerOptions } from '../../manager-DX983gJ0.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-Bo1psfVZ.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-Bo1psfVZ.js';
1
+ import { d as GraphDef } from '../../types-DKkMJZjR.js';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.js';
3
+ import { S as SchemaManagerOptions } from '../../manager-B6sOQzcQ.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-5j-w5onJ.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-5j-w5onJ.js';
6
6
  import 'zod';
7
- import '../../materialize-indexes-CpXoggWU.js';
8
- import '../../temporal-DPtn0HOu.js';
9
- import '../../searchable-BOUuA83f.js';
7
+ import '../../materialize-indexes-DQL4xcpf.js';
8
+ import '../../temporal-CjO9FH1l.js';
9
+ import '../../searchable-D9gMiwcS.js';
10
10
 
11
11
  /**
12
12
  * Batteries-included local PostgreSQL Store backed by PGlite.
@@ -1,39 +1,40 @@
1
- import { createLocalPgliteBackend } from '../../chunk-S3G5VLSW.js';
2
- import '../../chunk-WYFB7BN3.js';
3
- import '../../chunk-KXSMF6PL.js';
4
- import { createStoreWithSchema } from '../../chunk-YQ4JONWE.js';
5
- import '../../chunk-JCNTKRAK.js';
6
- import '../../chunk-BRN3RGD2.js';
7
- import '../../chunk-IHRDX7K6.js';
8
- import { createPostgresTables } from '../../chunk-WHS2Y43J.js';
9
- import '../../chunk-AU3IJNNP.js';
10
- import '../../chunk-WEJHA7AD.js';
11
- import '../../chunk-LHYSY6SE.js';
12
- import '../../chunk-KA4L2NZ3.js';
13
- import '../../chunk-36LIJXWC.js';
14
- import '../../chunk-A2LJG5GM.js';
15
- import '../../chunk-EDHV4CBU.js';
1
+ import { createLocalPgliteBackend } from '../../chunk-5UMTUOM5.js';
2
+ import '../../chunk-M35DF33T.js';
3
+ import '../../chunk-KH7XW7VV.js';
4
+ import { createStoreWithSchema } from '../../chunk-DJZTXBWY.js';
5
+ import '../../chunk-JONXFAPO.js';
6
+ import '../../chunk-OVI7IXYX.js';
7
+ import '../../chunk-LEWHMOUY.js';
8
+ import { createPostgresTables } from '../../chunk-6SWPJEYN.js';
9
+ import '../../chunk-OMZ37BM2.js';
10
+ import '../../chunk-SE6EGQSD.js';
11
+ import '../../chunk-FNOMT74T.js';
12
+ import '../../chunk-XYBQI6LE.js';
13
+ import '../../chunk-SHFBB23Q.js';
14
+ import '../../chunk-NNQ6A3RM.js';
15
+ import '../../chunk-AVGUJWVX.js';
16
16
  import '../../chunk-JBQQ7THH.js';
17
- import '../../chunk-DSAWGCMP.js';
18
- import '../../chunk-72WUT4GG.js';
19
- import { closeAfterFailure } from '../../chunk-FA6Z7B5L.js';
20
- import '../../chunk-5ZJOB5YS.js';
21
- import '../../chunk-LNIWCQR4.js';
22
- import '../../chunk-R7EWHKID.js';
23
- import '../../chunk-EDJDDY6H.js';
24
- import '../../chunk-FSLTU57P.js';
25
- import '../../chunk-WMKEGJG4.js';
17
+ import '../../chunk-NAZ2RA4L.js';
18
+ import '../../chunk-NVY5CJFP.js';
19
+ import { closeAfterFailure } from '../../chunk-SHSSRCFR.js';
20
+ import '../../chunk-HEV35TGT.js';
21
+ import '../../chunk-GLHXM7C4.js';
22
+ import '../../chunk-XY5OMOJD.js';
23
+ import '../../chunk-NG2RB5WL.js';
24
+ import '../../chunk-KKBDXCLQ.js';
25
+ import '../../chunk-SDBBMD4N.js';
26
+ import '../../chunk-P6YLZTRE.js';
26
27
  import '../../chunk-K34OPSJK.js';
27
28
  import '../../chunk-2EBMPJBO.js';
28
- import '../../chunk-EAMVXR5B.js';
29
- import '../../chunk-QOJ2L2AD.js';
29
+ import '../../chunk-ZDKTPBGV.js';
30
+ import '../../chunk-3DMMGT6S.js';
30
31
  import '../../chunk-AMKPPFUO.js';
31
32
  import '../../chunk-W6OG3HDG.js';
32
33
  import '../../chunk-PC2UBAUB.js';
33
- import '../../chunk-SXWLLQ3D.js';
34
+ import '../../chunk-D5R42W5D.js';
34
35
  import '../../chunk-JXXDZTMN.js';
35
- import '../../chunk-OZJCH7ZS.js';
36
- import '../../chunk-62ZXBMSD.js';
36
+ import '../../chunk-XVWOYKIK.js';
37
+ import '../../chunk-ZLONH2UD.js';
37
38
  import '../../chunk-FWJKWH6U.js';
38
39
  import '../../chunk-DYATYRY4.js';
39
40
 
@@ -1 +1 @@
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
+ {"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,22 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunkS7WIRFNS_cjs = require('../../chunk-S7WIRFNS.cjs');
4
- require('../../chunk-C2ZP5YS6.cjs');
5
- require('../../chunk-RHDOAQCT.cjs');
6
- require('../../chunk-JL5UEBWT.cjs');
7
- require('../../chunk-73MWKDFK.cjs');
8
- require('../../chunk-BEB4OFZF.cjs');
9
- require('../../chunk-A7NMUYEL.cjs');
10
- require('../../chunk-DYPRZ53S.cjs');
3
+ var chunk5FBRVORR_cjs = require('../../chunk-5FBRVORR.cjs');
4
+ require('../../chunk-BCQ76AXA.cjs');
5
+ require('../../chunk-UPAJHMW3.cjs');
6
+ require('../../chunk-ROR5ZR6A.cjs');
7
+ require('../../chunk-CICO5GXD.cjs');
8
+ require('../../chunk-AMMWA76F.cjs');
9
+ require('../../chunk-HDL2ARHX.cjs');
10
+ require('../../chunk-WODMN3Q2.cjs');
11
11
  require('../../chunk-PWLJ77UV.cjs');
12
- require('../../chunk-GVAMRRZR.cjs');
13
- require('../../chunk-ANKOXPCC.cjs');
14
- require('../../chunk-ZIH42CRX.cjs');
12
+ require('../../chunk-JR6SX5RH.cjs');
13
+ require('../../chunk-3HGRTCDU.cjs');
14
+ require('../../chunk-425IZOQ5.cjs');
15
+ require('../../chunk-OI2GQ25X.cjs');
15
16
  require('../../chunk-ZY4GXIVN.cjs');
16
17
  require('../../chunk-NAUA4PW5.cjs');
17
- require('../../chunk-ZHOAZD7Q.cjs');
18
- require('../../chunk-2ZWM2RFH.cjs');
19
- require('../../chunk-KCH7WQA5.cjs');
18
+ require('../../chunk-L3LQNR34.cjs');
19
+ require('../../chunk-EDN4Y4ZG.cjs');
20
+ require('../../chunk-MRDBBHIZ.cjs');
20
21
  require('../../chunk-A7J2YDDI.cjs');
21
22
  require('../../chunk-N66HCGCY.cjs');
22
23
 
@@ -24,7 +25,7 @@ require('../../chunk-N66HCGCY.cjs');
24
25
 
25
26
  Object.defineProperty(exports, "createLocalPgliteBackend", {
26
27
  enumerable: true,
27
- get: function () { return chunkS7WIRFNS_cjs.createLocalPgliteBackend; }
28
+ get: function () { return chunk5FBRVORR_cjs.createLocalPgliteBackend; }
28
29
  });
29
30
  //# sourceMappingURL=pglite.cjs.map
30
31
  //# sourceMappingURL=pglite.cjs.map
@@ -1,10 +1,10 @@
1
1
  import { Extension, PGlite } from '@electric-sql/pglite';
2
2
  import { PgliteDatabase } from 'drizzle-orm/pglite';
3
- import { A as AdapterBackend } from '../../types-Du78EvpN.cjs';
4
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-Du78EvpN.cjs';
3
+ import { A as AdapterBackend } from '../../types-DKkMJZjR.cjs';
4
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.cjs';
5
5
  import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
6
6
  export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.cjs';
7
- import { P as PostgresTables } from '../../postgres-DwgEXSPI.cjs';
7
+ import { P as PostgresTables } from '../../postgres-BXy_nyMs.cjs';
8
8
  import 'zod';
9
9
  import 'drizzle-orm/pg-core';
10
10
  import 'drizzle-orm/relations';
@@ -1,10 +1,10 @@
1
1
  import { Extension, PGlite } from '@electric-sql/pglite';
2
2
  import { PgliteDatabase } from 'drizzle-orm/pglite';
3
- import { A as AdapterBackend } from '../../types-Du78EvpN.js';
4
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-Du78EvpN.js';
3
+ import { A as AdapterBackend } from '../../types-DKkMJZjR.js';
4
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.js';
5
5
  import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
6
6
  export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.js';
7
- import { P as PostgresTables } from '../../postgres-QdOMHTBz.js';
7
+ import { P as PostgresTables } from '../../postgres-B6YOUcaK.js';
8
8
  import 'zod';
9
9
  import 'drizzle-orm/pg-core';
10
10
  import 'drizzle-orm/relations';
@@ -1,20 +1,21 @@
1
- export { createLocalPgliteBackend } from '../../chunk-S3G5VLSW.js';
2
- import '../../chunk-WYFB7BN3.js';
3
- import '../../chunk-KXSMF6PL.js';
4
- import '../../chunk-JCNTKRAK.js';
5
- import '../../chunk-BRN3RGD2.js';
6
- import '../../chunk-IHRDX7K6.js';
7
- import '../../chunk-WHS2Y43J.js';
8
- import '../../chunk-AU3IJNNP.js';
1
+ export { createLocalPgliteBackend } from '../../chunk-5UMTUOM5.js';
2
+ import '../../chunk-M35DF33T.js';
3
+ import '../../chunk-KH7XW7VV.js';
4
+ import '../../chunk-JONXFAPO.js';
5
+ import '../../chunk-OVI7IXYX.js';
6
+ import '../../chunk-LEWHMOUY.js';
7
+ import '../../chunk-6SWPJEYN.js';
8
+ import '../../chunk-OMZ37BM2.js';
9
9
  import '../../chunk-JBQQ7THH.js';
10
- import '../../chunk-DSAWGCMP.js';
11
- import '../../chunk-FA6Z7B5L.js';
12
- import '../../chunk-FSLTU57P.js';
10
+ import '../../chunk-NAZ2RA4L.js';
11
+ import '../../chunk-SHSSRCFR.js';
12
+ import '../../chunk-NG2RB5WL.js';
13
+ import '../../chunk-SDBBMD4N.js';
13
14
  import '../../chunk-K34OPSJK.js';
14
15
  import '../../chunk-2EBMPJBO.js';
15
- import '../../chunk-EAMVXR5B.js';
16
- import '../../chunk-QOJ2L2AD.js';
17
- import '../../chunk-62ZXBMSD.js';
16
+ import '../../chunk-ZDKTPBGV.js';
17
+ import '../../chunk-3DMMGT6S.js';
18
+ import '../../chunk-ZLONH2UD.js';
18
19
  import '../../chunk-FWJKWH6U.js';
19
20
  import '../../chunk-DYATYRY4.js';
20
21
  //# sourceMappingURL=pglite.js.map
@@ -1,19 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkE4OSGBCM_cjs = require('../../chunk-E4OSGBCM.cjs');
4
- require('../../chunk-RHDOAQCT.cjs');
5
- require('../../chunk-BEB4OFZF.cjs');
6
- var chunkA7NMUYEL_cjs = require('../../chunk-A7NMUYEL.cjs');
7
- require('../../chunk-DYPRZ53S.cjs');
3
+ var chunkEMIB2RXD_cjs = require('../../chunk-EMIB2RXD.cjs');
4
+ require('../../chunk-UPAJHMW3.cjs');
5
+ require('../../chunk-AMMWA76F.cjs');
6
+ var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
7
+ require('../../chunk-WODMN3Q2.cjs');
8
8
  require('../../chunk-PWLJ77UV.cjs');
9
- require('../../chunk-GVAMRRZR.cjs');
10
- require('../../chunk-ANKOXPCC.cjs');
11
- require('../../chunk-ZIH42CRX.cjs');
9
+ require('../../chunk-JR6SX5RH.cjs');
10
+ require('../../chunk-3HGRTCDU.cjs');
11
+ require('../../chunk-425IZOQ5.cjs');
12
+ require('../../chunk-OI2GQ25X.cjs');
12
13
  require('../../chunk-ZY4GXIVN.cjs');
13
14
  require('../../chunk-NAUA4PW5.cjs');
14
- require('../../chunk-ZHOAZD7Q.cjs');
15
- require('../../chunk-2ZWM2RFH.cjs');
16
- require('../../chunk-KCH7WQA5.cjs');
15
+ require('../../chunk-L3LQNR34.cjs');
16
+ require('../../chunk-EDN4Y4ZG.cjs');
17
+ require('../../chunk-MRDBBHIZ.cjs');
17
18
  require('../../chunk-A7J2YDDI.cjs');
18
19
  require('../../chunk-N66HCGCY.cjs');
19
20
 
@@ -21,51 +22,51 @@ require('../../chunk-N66HCGCY.cjs');
21
22
 
22
23
  Object.defineProperty(exports, "createSqliteBackend", {
23
24
  enumerable: true,
24
- get: function () { return chunkE4OSGBCM_cjs.createSqliteBackend; }
25
+ get: function () { return chunkEMIB2RXD_cjs.createSqliteBackend; }
25
26
  });
26
27
  Object.defineProperty(exports, "createSqliteTables", {
27
28
  enumerable: true,
28
- get: function () { return chunkA7NMUYEL_cjs.createSqliteTables; }
29
+ get: function () { return chunkHDL2ARHX_cjs.createSqliteTables; }
29
30
  });
30
31
  Object.defineProperty(exports, "edges", {
31
32
  enumerable: true,
32
- get: function () { return chunkA7NMUYEL_cjs.edges2; }
33
+ get: function () { return chunkHDL2ARHX_cjs.edges2; }
33
34
  });
34
35
  Object.defineProperty(exports, "generateSqliteDDL", {
35
36
  enumerable: true,
36
- get: function () { return chunkA7NMUYEL_cjs.generateSqliteDDL; }
37
+ get: function () { return chunkHDL2ARHX_cjs.generateSqliteDDL; }
37
38
  });
38
39
  Object.defineProperty(exports, "generateSqliteMigrationSQL", {
39
40
  enumerable: true,
40
- get: function () { return chunkA7NMUYEL_cjs.generateSqliteMigrationSQL; }
41
+ get: function () { return chunkHDL2ARHX_cjs.generateSqliteMigrationSQL; }
41
42
  });
42
43
  Object.defineProperty(exports, "nodes", {
43
44
  enumerable: true,
44
- get: function () { return chunkA7NMUYEL_cjs.nodes2; }
45
+ get: function () { return chunkHDL2ARHX_cjs.nodes2; }
45
46
  });
46
47
  Object.defineProperty(exports, "recordedClock", {
47
48
  enumerable: true,
48
- get: function () { return chunkA7NMUYEL_cjs.recordedClock2; }
49
+ get: function () { return chunkHDL2ARHX_cjs.recordedClock2; }
49
50
  });
50
51
  Object.defineProperty(exports, "recordedEdges", {
51
52
  enumerable: true,
52
- get: function () { return chunkA7NMUYEL_cjs.recordedEdges2; }
53
+ get: function () { return chunkHDL2ARHX_cjs.recordedEdges2; }
53
54
  });
54
55
  Object.defineProperty(exports, "recordedNodes", {
55
56
  enumerable: true,
56
- get: function () { return chunkA7NMUYEL_cjs.recordedNodes2; }
57
+ get: function () { return chunkHDL2ARHX_cjs.recordedNodes2; }
57
58
  });
58
59
  Object.defineProperty(exports, "schemaVersions", {
59
60
  enumerable: true,
60
- get: function () { return chunkA7NMUYEL_cjs.schemaVersions2; }
61
+ get: function () { return chunkHDL2ARHX_cjs.schemaVersions2; }
61
62
  });
62
63
  Object.defineProperty(exports, "tables", {
63
64
  enumerable: true,
64
- get: function () { return chunkA7NMUYEL_cjs.tables2; }
65
+ get: function () { return chunkHDL2ARHX_cjs.tables2; }
65
66
  });
66
67
  Object.defineProperty(exports, "uniques", {
67
68
  enumerable: true,
68
- get: function () { return chunkA7NMUYEL_cjs.uniques2; }
69
+ get: function () { return chunkHDL2ARHX_cjs.uniques2; }
69
70
  });
70
71
  //# sourceMappingURL=index.cjs.map
71
72
  //# sourceMappingURL=index.cjs.map
@@ -1,13 +1,13 @@
1
- import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-Du78EvpN.cjs';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-Du78EvpN.cjs';
1
+ import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-DKkMJZjR.cjs';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.cjs';
3
3
  import { S as SqliteExecutionProfileHints, A as AnySqliteDatabase } from '../../sqlite-execution-DwbE2a9y.cjs';
4
4
  export { a as SqliteTransactionMode } from '../../sqlite-execution-DwbE2a9y.cjs';
5
- import { S as SqliteTables } from '../../sqlite-BfYcV61E.cjs';
6
- export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-BfYcV61E.cjs';
7
- export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-mE07h_EM.cjs';
5
+ import { S as SqliteTables } from '../../sqlite-DioSxaPe.cjs';
6
+ export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-DioSxaPe.cjs';
7
+ export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-DJA7Lci5.cjs';
8
8
  import 'zod';
9
9
  import 'drizzle-orm/sqlite-core';
10
- import '../../postgres-DwgEXSPI.cjs';
10
+ import '../../postgres-BXy_nyMs.cjs';
11
11
  import 'drizzle-orm/pg-core';
12
12
 
13
13
  /**
@@ -1,13 +1,13 @@
1
- import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-Du78EvpN.js';
2
- export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-Du78EvpN.js';
1
+ import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-DKkMJZjR.js';
2
+ export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-DKkMJZjR.js';
3
3
  import { S as SqliteExecutionProfileHints, A as AnySqliteDatabase } from '../../sqlite-execution-DwbE2a9y.js';
4
4
  export { a as SqliteTransactionMode } from '../../sqlite-execution-DwbE2a9y.js';
5
- import { S as SqliteTables } from '../../sqlite-DK40XVR1.js';
6
- export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-DK40XVR1.js';
7
- export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-opIn8DfX.js';
5
+ import { S as SqliteTables } from '../../sqlite-ClXuBYAj.js';
6
+ export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-ClXuBYAj.js';
7
+ export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-CprnMXJ-.js';
8
8
  import 'zod';
9
9
  import 'drizzle-orm/sqlite-core';
10
- import '../../postgres-QdOMHTBz.js';
10
+ import '../../postgres-B6YOUcaK.js';
11
11
  import 'drizzle-orm/pg-core';
12
12
 
13
13
  /**
@@ -1,17 +1,18 @@
1
- export { createSqliteBackend } from '../../chunk-GWXXHOLU.js';
2
- import '../../chunk-KXSMF6PL.js';
3
- import '../../chunk-IHRDX7K6.js';
4
- export { createSqliteTables, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-WHS2Y43J.js';
5
- import '../../chunk-AU3IJNNP.js';
1
+ export { createSqliteBackend } from '../../chunk-5FT3TLPK.js';
2
+ import '../../chunk-KH7XW7VV.js';
3
+ import '../../chunk-LEWHMOUY.js';
4
+ export { createSqliteTables, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-6SWPJEYN.js';
5
+ import '../../chunk-OMZ37BM2.js';
6
6
  import '../../chunk-JBQQ7THH.js';
7
- import '../../chunk-DSAWGCMP.js';
8
- import '../../chunk-FA6Z7B5L.js';
9
- import '../../chunk-FSLTU57P.js';
7
+ import '../../chunk-NAZ2RA4L.js';
8
+ import '../../chunk-SHSSRCFR.js';
9
+ import '../../chunk-NG2RB5WL.js';
10
+ import '../../chunk-SDBBMD4N.js';
10
11
  import '../../chunk-K34OPSJK.js';
11
12
  import '../../chunk-2EBMPJBO.js';
12
- import '../../chunk-EAMVXR5B.js';
13
- import '../../chunk-QOJ2L2AD.js';
14
- import '../../chunk-62ZXBMSD.js';
13
+ import '../../chunk-ZDKTPBGV.js';
14
+ import '../../chunk-3DMMGT6S.js';
15
+ import '../../chunk-ZLONH2UD.js';
15
16
  import '../../chunk-FWJKWH6U.js';
16
17
  import '../../chunk-DYATYRY4.js';
17
18
  //# sourceMappingURL=index.js.map