@nicia-ai/typegraph 0.46.2 → 0.48.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 (310) 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 +58 -49
  7. package/dist/backend/index.d.cts +37 -55
  8. package/dist/backend/index.d.ts +37 -55
  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 +21 -7
  12. package/dist/backend/postgres/index.d.ts +21 -7
  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 +20 -7
  26. package/dist/backend/sqlite/index.d.ts +20 -7
  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-E4OSGBCM.cjs → chunk-2HIYYMWY.cjs} +139 -136
  47. package/dist/chunk-2HIYYMWY.cjs.map +1 -0
  48. package/dist/chunk-2QGYQBS2.cjs +161 -0
  49. package/dist/chunk-2QGYQBS2.cjs.map +1 -0
  50. package/dist/{chunk-GWXXHOLU.js → chunk-2SYZXD54.js} +21 -18
  51. package/dist/chunk-2SYZXD54.js.map +1 -0
  52. package/dist/{chunk-KA4L2NZ3.js → chunk-2TYSSBU5.js} +14 -14
  53. package/dist/{chunk-KA4L2NZ3.js.map → chunk-2TYSSBU5.js.map} +1 -1
  54. package/dist/{chunk-QOJ2L2AD.js → chunk-3DMMGT6S.js} +3 -3
  55. package/dist/{chunk-QOJ2L2AD.js.map → chunk-3DMMGT6S.js.map} +1 -1
  56. package/dist/{chunk-F36KZDFX.cjs → chunk-3FPR224C.cjs} +91 -91
  57. package/dist/{chunk-F36KZDFX.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
  58. package/dist/{chunk-32UETY6S.cjs → chunk-3KOY4FH3.cjs} +207 -28
  59. package/dist/chunk-3KOY4FH3.cjs.map +1 -0
  60. package/dist/{chunk-QU7QLJA4.cjs → chunk-3U5ABFDW.cjs} +26 -26
  61. package/dist/{chunk-QU7QLJA4.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
  62. package/dist/{chunk-RFDEYLIK.js → chunk-4WMMBDS5.js} +7 -7
  63. package/dist/chunk-4WMMBDS5.js.map +1 -0
  64. package/dist/{chunk-R7EWHKID.js → chunk-5K2BKEBD.js} +19 -145
  65. package/dist/chunk-5K2BKEBD.js.map +1 -0
  66. package/dist/chunk-5PRKMB24.cjs +124 -0
  67. package/dist/chunk-5PRKMB24.cjs.map +1 -0
  68. package/dist/chunk-6LN7FIVU.js +107 -0
  69. package/dist/chunk-6LN7FIVU.js.map +1 -0
  70. package/dist/{chunk-D6GCNNMK.cjs → chunk-6NGW27EO.cjs} +10 -10
  71. package/dist/{chunk-D6GCNNMK.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
  72. package/dist/{chunk-WHS2Y43J.js → chunk-6SWPJEYN.js} +5 -5
  73. package/dist/{chunk-WHS2Y43J.js.map → chunk-6SWPJEYN.js.map} +1 -1
  74. package/dist/{chunk-7TKNK32B.js → chunk-7SQSZN2J.js} +5 -5
  75. package/dist/{chunk-7TKNK32B.js.map → chunk-7SQSZN2J.js.map} +1 -1
  76. package/dist/{chunk-UTVQPZPN.cjs → chunk-7XUYFFR4.cjs} +20 -20
  77. package/dist/chunk-7XUYFFR4.cjs.map +1 -0
  78. package/dist/{chunk-KXSMF6PL.js → chunk-ACGSAMD3.js} +39 -34
  79. package/dist/chunk-ACGSAMD3.js.map +1 -0
  80. package/dist/{chunk-PYKF7UIL.cjs → chunk-AOSSQDVO.cjs} +13 -13
  81. package/dist/{chunk-PYKF7UIL.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
  82. package/dist/{chunk-AT3MLMJV.js → chunk-AX6JGVTZ.js} +91 -20
  83. package/dist/chunk-AX6JGVTZ.js.map +1 -0
  84. package/dist/{chunk-WA64ZSCA.cjs → chunk-BFUOME67.cjs} +11 -11
  85. package/dist/{chunk-WA64ZSCA.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
  86. package/dist/{chunk-YQ4JONWE.js → chunk-BRRP76WO.js} +401 -131
  87. package/dist/chunk-BRRP76WO.js.map +1 -0
  88. package/dist/{chunk-FCIZNUW5.js → chunk-CHAOFCHV.js} +3 -3
  89. package/dist/{chunk-FCIZNUW5.js.map → chunk-CHAOFCHV.js.map} +1 -1
  90. package/dist/chunk-CICO5GXD.cjs +12 -0
  91. package/dist/{chunk-73MWKDFK.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
  92. package/dist/{chunk-S3G5VLSW.js → chunk-CT3ZKTOF.js} +7 -6
  93. package/dist/chunk-CT3ZKTOF.js.map +1 -0
  94. package/dist/{chunk-SXWLLQ3D.js → chunk-D5R42W5D.js} +4 -4
  95. package/dist/{chunk-SXWLLQ3D.js.map → chunk-D5R42W5D.js.map} +1 -1
  96. package/dist/{chunk-BZZI7B43.cjs → chunk-DO7SAMEK.cjs} +47 -47
  97. package/dist/{chunk-BZZI7B43.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
  98. package/dist/chunk-DZAICA5J.js +147 -0
  99. package/dist/chunk-DZAICA5J.js.map +1 -0
  100. package/dist/{chunk-2ZWM2RFH.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
  101. package/dist/{chunk-2ZWM2RFH.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
  102. package/dist/{chunk-A4R3H7RU.cjs → chunk-EZEEWCFJ.cjs} +264 -361
  103. package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
  104. package/dist/{chunk-BEB4OFZF.cjs → chunk-FA2AFWLP.cjs} +51 -59
  105. package/dist/chunk-FA2AFWLP.cjs.map +1 -0
  106. package/dist/{chunk-ZBVZ7HXD.cjs → chunk-FQPEMEWX.cjs} +12 -12
  107. package/dist/{chunk-ZBVZ7HXD.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
  108. package/dist/{chunk-LNIWCQR4.js → chunk-GLHXM7C4.js} +3 -3
  109. package/dist/{chunk-LNIWCQR4.js.map → chunk-GLHXM7C4.js.map} +1 -1
  110. package/dist/{chunk-6BD6ZBKT.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
  111. package/dist/{chunk-6BD6ZBKT.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
  112. package/dist/{chunk-A7NMUYEL.cjs → chunk-HDL2ARHX.cjs} +27 -27
  113. package/dist/{chunk-A7NMUYEL.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
  114. package/dist/{chunk-5ZJOB5YS.js → chunk-HEV35TGT.js} +4 -4
  115. package/dist/{chunk-5ZJOB5YS.js.map → chunk-HEV35TGT.js.map} +1 -1
  116. package/dist/{chunk-LHYSY6SE.js → chunk-I4GAZH5Z.js} +186 -9
  117. package/dist/chunk-I4GAZH5Z.js.map +1 -0
  118. package/dist/{chunk-BQM5P2NO.cjs → chunk-JB6T4GLL.cjs} +260 -223
  119. package/dist/chunk-JB6T4GLL.cjs.map +1 -0
  120. package/dist/{chunk-QPOQX2DI.cjs → chunk-JFRT7S3B.cjs} +1026 -369
  121. package/dist/chunk-JFRT7S3B.cjs.map +1 -0
  122. package/dist/{chunk-JCNTKRAK.js → chunk-JONXFAPO.js} +5 -5
  123. package/dist/{chunk-JCNTKRAK.js.map → chunk-JONXFAPO.js.map} +1 -1
  124. package/dist/{chunk-WEJHA7AD.js → chunk-KF6K7TGH.js} +109 -75
  125. package/dist/chunk-KF6K7TGH.js.map +1 -0
  126. package/dist/{chunk-EDJDDY6H.js → chunk-KKBDXCLQ.js} +4 -4
  127. package/dist/{chunk-EDJDDY6H.js.map → chunk-KKBDXCLQ.js.map} +1 -1
  128. package/dist/{chunk-ZHOAZD7Q.cjs → chunk-L3LQNR34.cjs} +161 -161
  129. package/dist/{chunk-ZHOAZD7Q.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
  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-MKJ4KXL5.cjs +12 -0
  133. package/dist/{chunk-6LAXM4J2.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
  134. package/dist/{chunk-KCH7WQA5.cjs → chunk-MRDBBHIZ.cjs} +48 -2
  135. package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
  136. package/dist/{chunk-FXNHZFZV.js → chunk-MYKHJI2J.js} +3 -3
  137. package/dist/{chunk-FXNHZFZV.js.map → chunk-MYKHJI2J.js.map} +1 -1
  138. package/dist/{chunk-Z43KWLZF.js → chunk-NACVVDWB.js} +213 -12
  139. package/dist/chunk-NACVVDWB.js.map +1 -0
  140. package/dist/{chunk-72WUT4GG.js → chunk-NVY5CJFP.js} +4 -4
  141. package/dist/{chunk-72WUT4GG.js.map → chunk-NVY5CJFP.js.map} +1 -1
  142. package/dist/{chunk-WYFB7BN3.js → chunk-OD4SSY2U.js} +166 -48
  143. package/dist/chunk-OD4SSY2U.js.map +1 -0
  144. package/dist/{chunk-ZIH42CRX.cjs → chunk-OI2GQ25X.cjs} +7 -7
  145. package/dist/{chunk-ZIH42CRX.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
  146. package/dist/{chunk-AU3IJNNP.js → chunk-OMZ37BM2.js} +5 -5
  147. package/dist/{chunk-AU3IJNNP.js.map → chunk-OMZ37BM2.js.map} +1 -1
  148. package/dist/{chunk-C4DYN2SD.cjs → chunk-OORXGFL5.cjs} +48 -48
  149. package/dist/{chunk-C4DYN2SD.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
  150. package/dist/{chunk-HNYLMPQQ.cjs → chunk-OTUPEF2W.cjs} +149 -78
  151. package/dist/chunk-OTUPEF2W.cjs.map +1 -0
  152. package/dist/{chunk-BRN3RGD2.js → chunk-OVI7IXYX.js} +3 -3
  153. package/dist/{chunk-BRN3RGD2.js.map → chunk-OVI7IXYX.js.map} +1 -1
  154. package/dist/{chunk-WMKEGJG4.js → chunk-P6YLZTRE.js} +3 -3
  155. package/dist/{chunk-WMKEGJG4.js.map → chunk-P6YLZTRE.js.map} +1 -1
  156. package/dist/{chunk-C2ZP5YS6.cjs → chunk-PFBRJBUL.cjs} +278 -160
  157. package/dist/chunk-PFBRJBUL.cjs.map +1 -0
  158. package/dist/{chunk-EJSYWAEV.js → chunk-QTD6HX4O.js} +5 -5
  159. package/dist/{chunk-EJSYWAEV.js.map → chunk-QTD6HX4O.js.map} +1 -1
  160. package/dist/{chunk-JL5UEBWT.cjs → chunk-ROR5ZR6A.cjs} +45 -45
  161. package/dist/{chunk-JL5UEBWT.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
  162. package/dist/{chunk-EDHV4CBU.js → chunk-S5TERQVW.js} +37 -134
  163. package/dist/chunk-S5TERQVW.js.map +1 -0
  164. package/dist/{chunk-FSLTU57P.js → chunk-SDBBMD4N.js} +3 -3
  165. package/dist/{chunk-FSLTU57P.js.map → chunk-SDBBMD4N.js.map} +1 -1
  166. package/dist/{chunk-36LIJXWC.js → chunk-SHFBB23Q.js} +4 -4
  167. package/dist/{chunk-36LIJXWC.js.map → chunk-SHFBB23Q.js.map} +1 -1
  168. package/dist/chunk-SIT26LAZ.cjs +614 -0
  169. package/dist/chunk-SIT26LAZ.cjs.map +1 -0
  170. package/dist/{chunk-C6KE2HSQ.cjs → chunk-SR725PWF.cjs} +1662 -1392
  171. package/dist/chunk-SR725PWF.cjs.map +1 -0
  172. package/dist/{chunk-S7WIRFNS.cjs → chunk-TKZXMWQF.cjs} +13 -12
  173. package/dist/chunk-TKZXMWQF.cjs.map +1 -0
  174. package/dist/{chunk-5PDSCELM.cjs → chunk-TQHGE7UC.cjs} +29 -164
  175. package/dist/chunk-TQHGE7UC.cjs.map +1 -0
  176. package/dist/{chunk-XBHRKLZU.cjs → chunk-TUNPBZY3.cjs} +4 -4
  177. package/dist/{chunk-XBHRKLZU.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
  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-UGHG7PGX.js +592 -0
  181. package/dist/chunk-UGHG7PGX.js.map +1 -0
  182. package/dist/{chunk-N3QTGPC7.cjs → chunk-UMGZDVOA.cjs} +303 -101
  183. package/dist/chunk-UMGZDVOA.cjs.map +1 -0
  184. package/dist/{chunk-RHDOAQCT.cjs → chunk-WCCATHMB.cjs} +140 -135
  185. package/dist/chunk-WCCATHMB.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-IHRDX7K6.js → chunk-YIURNGXI.js} +46 -56
  191. package/dist/chunk-YIURNGXI.js.map +1 -0
  192. package/dist/{chunk-GWUWRZXW.js → chunk-YVF2EM7B.js} +3 -3
  193. package/dist/{chunk-GWUWRZXW.js.map → chunk-YVF2EM7B.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-A2LJG5GM.js → chunk-ZFMCDJGB.js} +803 -148
  197. package/dist/chunk-ZFMCDJGB.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-BL1NZLMY.d.cts +78 -0
  205. package/dist/ddl-D_oW-EVO.d.ts +78 -0
  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 +3418 -706
  211. package/dist/graph-merge/index.cjs.map +1 -1
  212. package/dist/graph-merge/index.d.cts +550 -58
  213. package/dist/graph-merge/index.d.ts +550 -58
  214. package/dist/graph-merge/index.js +3191 -497
  215. package/dist/graph-merge/index.js.map +1 -1
  216. package/dist/{index-Deyu8IXL.d.ts → index-COs_z6nV.d.cts} +47 -3
  217. package/dist/{index-DrRS51Ld.d.cts → index-D7d1u2gr.d.ts} +47 -3
  218. package/dist/index.cjs +233 -216
  219. package/dist/index.cjs.map +1 -1
  220. package/dist/index.d.cts +12 -12
  221. package/dist/index.d.ts +12 -12
  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-ptr3JLRP.d.cts → manager-CYaff3n3.d.cts} +2 -2
  235. package/dist/{manager-DX983gJ0.d.ts → manager-D9eRT_ns.d.ts} +2 -2
  236. package/dist/{materialize-indexes-CpXoggWU.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
  237. package/dist/{materialize-indexes-BXz77YqO.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
  238. package/dist/{postgres-DwgEXSPI.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
  239. package/dist/{postgres-QdOMHTBz.d.ts → postgres-DMj39MEu.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 +46 -46
  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 +13 -13
  247. package/dist/provenance/index.js.map +1 -1
  248. package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
  249. package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
  250. package/dist/schema/index.cjs +45 -44
  251. package/dist/schema/index.d.cts +6 -6
  252. package/dist/schema/index.d.ts +6 -6
  253. package/dist/schema/index.js +18 -17
  254. package/dist/{searchable-BOUuA83f.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
  255. package/dist/{searchable-BrUh0pdc.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
  256. package/dist/{sqlite-BfYcV61E.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
  257. package/dist/{sqlite-DK40XVR1.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
  258. package/dist/{store-FTqBpuJD.d.cts → store-JUVvtmR4.d.cts} +228 -92
  259. package/dist/{store-Bo1psfVZ.d.ts → store-UzrGvZOo.d.ts} +228 -92
  260. package/dist/{temporal-DPtn0HOu.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
  261. package/dist/{temporal-CXewwLTB.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
  262. package/dist/{types-Du78EvpN.d.ts → types-BqFZTQmV.d.cts} +60 -9
  263. package/dist/{types-Du78EvpN.d.cts → types-BqFZTQmV.d.ts} +60 -9
  264. package/dist/{types-CeT7xM4M.d.ts → types-Bx74kaTt.d.ts} +1 -1
  265. package/dist/{types-XR1nHERK.d.cts → types-CXAhpW-c.d.cts} +1 -1
  266. package/dist/{where-CJsp-YUf.d.cts → where-DI_Fqz-X.d.cts} +1 -1
  267. package/dist/{where-CMbFiWwp.d.ts → where-O-k2wgYm.d.ts} +1 -1
  268. package/package.json +1 -1
  269. package/dist/chunk-32UETY6S.cjs.map +0 -1
  270. package/dist/chunk-5PDSCELM.cjs.map +0 -1
  271. package/dist/chunk-62ZXBMSD.js.map +0 -1
  272. package/dist/chunk-6LAXM4J2.cjs +0 -12
  273. package/dist/chunk-73MWKDFK.cjs +0 -12
  274. package/dist/chunk-A2LJG5GM.js.map +0 -1
  275. package/dist/chunk-A4R3H7RU.cjs.map +0 -1
  276. package/dist/chunk-ANKOXPCC.cjs +0 -267
  277. package/dist/chunk-ANKOXPCC.cjs.map +0 -1
  278. package/dist/chunk-AT3MLMJV.js.map +0 -1
  279. package/dist/chunk-BEB4OFZF.cjs.map +0 -1
  280. package/dist/chunk-BQM5P2NO.cjs.map +0 -1
  281. package/dist/chunk-C2ZP5YS6.cjs.map +0 -1
  282. package/dist/chunk-C6KE2HSQ.cjs.map +0 -1
  283. package/dist/chunk-DSAWGCMP.js +0 -254
  284. package/dist/chunk-DSAWGCMP.js.map +0 -1
  285. package/dist/chunk-E4OSGBCM.cjs.map +0 -1
  286. package/dist/chunk-EDHV4CBU.js.map +0 -1
  287. package/dist/chunk-FA6Z7B5L.js +0 -244
  288. package/dist/chunk-FA6Z7B5L.js.map +0 -1
  289. package/dist/chunk-GVAMRRZR.cjs +0 -268
  290. package/dist/chunk-GVAMRRZR.cjs.map +0 -1
  291. package/dist/chunk-GWXXHOLU.js.map +0 -1
  292. package/dist/chunk-HNYLMPQQ.cjs.map +0 -1
  293. package/dist/chunk-IHRDX7K6.js.map +0 -1
  294. package/dist/chunk-KCH7WQA5.cjs.map +0 -1
  295. package/dist/chunk-KXSMF6PL.js.map +0 -1
  296. package/dist/chunk-LHYSY6SE.js.map +0 -1
  297. package/dist/chunk-N3QTGPC7.cjs.map +0 -1
  298. package/dist/chunk-QPOQX2DI.cjs.map +0 -1
  299. package/dist/chunk-R7EWHKID.js.map +0 -1
  300. package/dist/chunk-RFDEYLIK.js.map +0 -1
  301. package/dist/chunk-RHDOAQCT.cjs.map +0 -1
  302. package/dist/chunk-S3G5VLSW.js.map +0 -1
  303. package/dist/chunk-S7WIRFNS.cjs.map +0 -1
  304. package/dist/chunk-UTVQPZPN.cjs.map +0 -1
  305. package/dist/chunk-WEJHA7AD.js.map +0 -1
  306. package/dist/chunk-WYFB7BN3.js.map +0 -1
  307. package/dist/chunk-YQ4JONWE.js.map +0 -1
  308. package/dist/chunk-Z43KWLZF.js.map +0 -1
  309. package/dist/ddl-mE07h_EM.d.cts +0 -38
  310. package/dist/ddl-opIn8DfX.d.ts +0 -38
@@ -1,15 +1,16 @@
1
- export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor } from '../chunk-Z43KWLZF.js';
2
- import '../chunk-WHS2Y43J.js';
3
- import '../chunk-AU3IJNNP.js';
4
- import '../chunk-72WUT4GG.js';
5
- export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-FA6Z7B5L.js';
6
- import '../chunk-R7EWHKID.js';
7
- import '../chunk-FSLTU57P.js';
1
+ export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor, repairInvertedValidityWindows } from '../chunk-NACVVDWB.js';
2
+ import '../chunk-6SWPJEYN.js';
3
+ import '../chunk-OMZ37BM2.js';
4
+ import '../chunk-NVY5CJFP.js';
5
+ export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-6LN7FIVU.js';
6
+ import '../chunk-DZAICA5J.js';
7
+ export { resolveStampedValidityLowerBound } from '../chunk-5K2BKEBD.js';
8
+ import '../chunk-SDBBMD4N.js';
8
9
  import '../chunk-2EBMPJBO.js';
9
- export { ALL_FULLTEXT_MODES, BASE_CONTRIBUTION_OWNER, FULLTEXT_CONTRIBUTION_NAME, VECTOR_CONTRIBUTION_PREFIX, assertFiniteEmbedding, assertVectorMinScore, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, fts5Strategy, quoteIdentifier, shortHash, tsvectorStrategy, vectorMinScoreCondition, vectorPhysicalName, vectorScoreExpression } from '../chunk-EAMVXR5B.js';
10
- export { Placeholder, isSqlFragment, isSqlPlaceholder, renderPostgres, renderSql, renderSqlInline, renderSqlite, sql } from '../chunk-QOJ2L2AD.js';
10
+ export { ALL_FULLTEXT_MODES, BASE_CONTRIBUTION_OWNER, FULLTEXT_CONTRIBUTION_NAME, VECTOR_CONTRIBUTION_PREFIX, assertFiniteEmbedding, assertVectorMinScore, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, fts5Strategy, quoteIdentifier, shortHash, tsvectorStrategy, vectorMinScoreCondition, vectorPhysicalName, vectorScoreExpression } from '../chunk-ZDKTPBGV.js';
11
+ export { Placeholder, isSqlFragment, isSqlPlaceholder, renderPostgres, renderSql, renderSqlInline, renderSqlite, sql } from '../chunk-3DMMGT6S.js';
11
12
  export { ALL_META_EDGE_NAMES } from '../chunk-JXXDZTMN.js';
12
- import '../chunk-62ZXBMSD.js';
13
+ import '../chunk-ZLONH2UD.js';
13
14
  import '../chunk-FWJKWH6U.js';
14
15
  import '../chunk-DYATYRY4.js';
15
16
  //# sourceMappingURL=index.js.map
@@ -1,21 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkC2ZP5YS6_cjs = require('../../chunk-C2ZP5YS6.cjs');
4
- require('../../chunk-RHDOAQCT.cjs');
5
- require('../../chunk-JL5UEBWT.cjs');
6
- require('../../chunk-73MWKDFK.cjs');
7
- require('../../chunk-BEB4OFZF.cjs');
8
- var chunkA7NMUYEL_cjs = require('../../chunk-A7NMUYEL.cjs');
9
- require('../../chunk-DYPRZ53S.cjs');
3
+ var chunkPFBRJBUL_cjs = require('../../chunk-PFBRJBUL.cjs');
4
+ require('../../chunk-WCCATHMB.cjs');
5
+ require('../../chunk-ROR5ZR6A.cjs');
6
+ require('../../chunk-CICO5GXD.cjs');
7
+ require('../../chunk-FA2AFWLP.cjs');
8
+ var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
9
+ require('../../chunk-WODMN3Q2.cjs');
10
10
  require('../../chunk-PWLJ77UV.cjs');
11
- require('../../chunk-GVAMRRZR.cjs');
12
- require('../../chunk-ANKOXPCC.cjs');
13
- require('../../chunk-ZIH42CRX.cjs');
11
+ require('../../chunk-SIT26LAZ.cjs');
12
+ require('../../chunk-5PRKMB24.cjs');
13
+ require('../../chunk-TQHGE7UC.cjs');
14
+ require('../../chunk-OI2GQ25X.cjs');
14
15
  require('../../chunk-ZY4GXIVN.cjs');
15
16
  require('../../chunk-NAUA4PW5.cjs');
16
- require('../../chunk-ZHOAZD7Q.cjs');
17
- require('../../chunk-2ZWM2RFH.cjs');
18
- require('../../chunk-KCH7WQA5.cjs');
17
+ require('../../chunk-L3LQNR34.cjs');
18
+ require('../../chunk-EDN4Y4ZG.cjs');
19
+ require('../../chunk-MRDBBHIZ.cjs');
19
20
  require('../../chunk-A7J2YDDI.cjs');
20
21
  require('../../chunk-N66HCGCY.cjs');
21
22
 
@@ -23,55 +24,55 @@ require('../../chunk-N66HCGCY.cjs');
23
24
 
24
25
  Object.defineProperty(exports, "createPostgresBackend", {
25
26
  enumerable: true,
26
- get: function () { return chunkC2ZP5YS6_cjs.createPostgresBackend; }
27
+ get: function () { return chunkPFBRJBUL_cjs.createPostgresBackend; }
27
28
  });
28
29
  Object.defineProperty(exports, "createPostgresTables", {
29
30
  enumerable: true,
30
- get: function () { return chunkA7NMUYEL_cjs.createPostgresTables; }
31
+ get: function () { return chunkHDL2ARHX_cjs.createPostgresTables; }
31
32
  });
32
33
  Object.defineProperty(exports, "edges", {
33
34
  enumerable: true,
34
- get: function () { return chunkA7NMUYEL_cjs.edges; }
35
+ get: function () { return chunkHDL2ARHX_cjs.edges; }
35
36
  });
36
37
  Object.defineProperty(exports, "fulltext", {
37
38
  enumerable: true,
38
- get: function () { return chunkA7NMUYEL_cjs.fulltext; }
39
+ get: function () { return chunkHDL2ARHX_cjs.fulltext; }
39
40
  });
40
41
  Object.defineProperty(exports, "generatePostgresDDL", {
41
42
  enumerable: true,
42
- get: function () { return chunkA7NMUYEL_cjs.generatePostgresDDL; }
43
+ get: function () { return chunkHDL2ARHX_cjs.generatePostgresDDL; }
43
44
  });
44
45
  Object.defineProperty(exports, "generatePostgresMigrationSQL", {
45
46
  enumerable: true,
46
- get: function () { return chunkA7NMUYEL_cjs.generatePostgresMigrationSQL; }
47
+ get: function () { return chunkHDL2ARHX_cjs.generatePostgresMigrationSQL; }
47
48
  });
48
49
  Object.defineProperty(exports, "nodes", {
49
50
  enumerable: true,
50
- get: function () { return chunkA7NMUYEL_cjs.nodes; }
51
+ get: function () { return chunkHDL2ARHX_cjs.nodes; }
51
52
  });
52
53
  Object.defineProperty(exports, "recordedClock", {
53
54
  enumerable: true,
54
- get: function () { return chunkA7NMUYEL_cjs.recordedClock; }
55
+ get: function () { return chunkHDL2ARHX_cjs.recordedClock; }
55
56
  });
56
57
  Object.defineProperty(exports, "recordedEdges", {
57
58
  enumerable: true,
58
- get: function () { return chunkA7NMUYEL_cjs.recordedEdges; }
59
+ get: function () { return chunkHDL2ARHX_cjs.recordedEdges; }
59
60
  });
60
61
  Object.defineProperty(exports, "recordedNodes", {
61
62
  enumerable: true,
62
- get: function () { return chunkA7NMUYEL_cjs.recordedNodes; }
63
+ get: function () { return chunkHDL2ARHX_cjs.recordedNodes; }
63
64
  });
64
65
  Object.defineProperty(exports, "schemaVersions", {
65
66
  enumerable: true,
66
- get: function () { return chunkA7NMUYEL_cjs.schemaVersions; }
67
+ get: function () { return chunkHDL2ARHX_cjs.schemaVersions; }
67
68
  });
68
69
  Object.defineProperty(exports, "tables", {
69
70
  enumerable: true,
70
- get: function () { return chunkA7NMUYEL_cjs.tables; }
71
+ get: function () { return chunkHDL2ARHX_cjs.tables; }
71
72
  });
72
73
  Object.defineProperty(exports, "uniques", {
73
74
  enumerable: true,
74
- get: function () { return chunkA7NMUYEL_cjs.uniques; }
75
+ get: function () { return chunkHDL2ARHX_cjs.uniques; }
75
76
  });
76
77
  //# sourceMappingURL=index.cjs.map
77
78
  //# sourceMappingURL=index.cjs.map
@@ -1,13 +1,14 @@
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 { aK as FulltextStrategy, cL as VectorStrategy, d as BackendCapabilities, b as AdapterBackend } from '../../types-BqFZTQmV.cjs';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
3
3
  import { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
4
- import { P as PostgresTables } from '../../postgres-DwgEXSPI.cjs';
5
- export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DwgEXSPI.cjs';
6
- export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-mE07h_EM.cjs';
4
+ import { S as SerializedResourceDeclaration } from '../../ddl-BL1NZLMY.cjs';
5
+ export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-BL1NZLMY.cjs';
6
+ import { P as PostgresTables } from '../../postgres-DMj39MEu.cjs';
7
+ export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DMj39MEu.cjs';
7
8
  import 'zod';
8
9
  import 'drizzle-orm/pg-core';
9
10
  import 'drizzle-orm/relations';
10
- import '../../sqlite-BfYcV61E.cjs';
11
+ import '../../sqlite-YppHrNFb.cjs';
11
12
  import 'drizzle-orm/sqlite-core';
12
13
 
13
14
  /**
@@ -115,6 +116,19 @@ type PostgresBackendOptions = Readonly<{
115
116
  * `prepareStatements` is `false`.
116
117
  */
117
118
  preparedStatementCacheMax?: number;
119
+ /**
120
+ * Declare the connection this backend serializes every statement onto, when
121
+ * TypeGraph's driver predicates cannot see it (Bun `SQL` at `{ max: 1 }`,
122
+ * `pg-proxy`, a postgres-js client capped through a non-numeric string the
123
+ * driver does not coerce) — or declare that it serializes on nothing, when
124
+ * detection is wrong for your topology.
125
+ *
126
+ * Defaults to `{ mode: "detect" }`. See
127
+ * {@link SerializedResourceDeclaration} for what each mode means and for the
128
+ * one refusal it cannot lift (`same-sqlite-backend`, which is SQLite-only and
129
+ * therefore never reached from here).
130
+ */
131
+ serializedResource?: SerializedResourceDeclaration;
118
132
  }>;
119
133
  /**
120
134
  * Creates a TypeGraph backend for PostgreSQL databases.
@@ -127,4 +141,4 @@ type PostgresBackendOptions = Readonly<{
127
141
  */
128
142
  declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): AdapterBackend<AnyPgTransaction>;
129
143
 
130
- export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, createPostgresBackend };
144
+ export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, SerializedResourceDeclaration, createPostgresBackend };
@@ -1,13 +1,14 @@
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 { aK as FulltextStrategy, cL as VectorStrategy, d as BackendCapabilities, b as AdapterBackend } from '../../types-BqFZTQmV.js';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
3
3
  import { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
4
- import { P as PostgresTables } from '../../postgres-QdOMHTBz.js';
5
- export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-QdOMHTBz.js';
6
- export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-opIn8DfX.js';
4
+ import { S as SerializedResourceDeclaration } from '../../ddl-D_oW-EVO.js';
5
+ export { g as generatePostgresDDL, a as generatePostgresMigrationSQL } from '../../ddl-D_oW-EVO.js';
6
+ import { P as PostgresTables } from '../../postgres-CcL4bAHS.js';
7
+ export { C as CreatePostgresTablesOptions, a as PostgresTableNames, c as createPostgresTables, e as edges, f as fulltext, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-CcL4bAHS.js';
7
8
  import 'zod';
8
9
  import 'drizzle-orm/pg-core';
9
10
  import 'drizzle-orm/relations';
10
- import '../../sqlite-DK40XVR1.js';
11
+ import '../../sqlite-D7Oz0SQh.js';
11
12
  import 'drizzle-orm/sqlite-core';
12
13
 
13
14
  /**
@@ -115,6 +116,19 @@ type PostgresBackendOptions = Readonly<{
115
116
  * `prepareStatements` is `false`.
116
117
  */
117
118
  preparedStatementCacheMax?: number;
119
+ /**
120
+ * Declare the connection this backend serializes every statement onto, when
121
+ * TypeGraph's driver predicates cannot see it (Bun `SQL` at `{ max: 1 }`,
122
+ * `pg-proxy`, a postgres-js client capped through a non-numeric string the
123
+ * driver does not coerce) — or declare that it serializes on nothing, when
124
+ * detection is wrong for your topology.
125
+ *
126
+ * Defaults to `{ mode: "detect" }`. See
127
+ * {@link SerializedResourceDeclaration} for what each mode means and for the
128
+ * one refusal it cannot lift (`same-sqlite-backend`, which is SQLite-only and
129
+ * therefore never reached from here).
130
+ */
131
+ serializedResource?: SerializedResourceDeclaration;
118
132
  }>;
119
133
  /**
120
134
  * Creates a TypeGraph backend for PostgreSQL databases.
@@ -127,4 +141,4 @@ type PostgresBackendOptions = Readonly<{
127
141
  */
128
142
  declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): AdapterBackend<AnyPgTransaction>;
129
143
 
130
- export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, createPostgresBackend };
144
+ export { AnyPgDatabase, AnyPgTransaction, type PostgresBackendOptions, PostgresTables, SerializedResourceDeclaration, createPostgresBackend };
@@ -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-OD4SSY2U.js';
2
+ import '../../chunk-ACGSAMD3.js';
3
+ import '../../chunk-JONXFAPO.js';
4
+ import '../../chunk-OVI7IXYX.js';
5
+ import '../../chunk-YIURNGXI.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-UGHG7PGX.js';
10
+ import '../../chunk-6LN7FIVU.js';
11
+ import '../../chunk-5K2BKEBD.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 chunkTKZXMWQF_cjs = require('../../chunk-TKZXMWQF.cjs');
4
+ require('../../chunk-PFBRJBUL.cjs');
5
+ require('../../chunk-WCCATHMB.cjs');
6
+ var chunkSR725PWF_cjs = require('../../chunk-SR725PWF.cjs');
7
+ require('../../chunk-ROR5ZR6A.cjs');
8
+ require('../../chunk-CICO5GXD.cjs');
9
+ require('../../chunk-FA2AFWLP.cjs');
10
+ var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
11
+ require('../../chunk-WODMN3Q2.cjs');
12
+ require('../../chunk-JB6T4GLL.cjs');
13
+ require('../../chunk-3KOY4FH3.cjs');
14
+ require('../../chunk-3FPR224C.cjs');
15
+ require('../../chunk-26YKDNUD.cjs');
16
+ require('../../chunk-JFRT7S3B.cjs');
17
+ require('../../chunk-EZEEWCFJ.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-SIT26LAZ.cjs');
20
+ require('../../chunk-3U5ABFDW.cjs');
21
+ var chunk5PRKMB24_cjs = require('../../chunk-5PRKMB24.cjs');
22
+ require('../../chunk-BFUOME67.cjs');
23
+ require('../../chunk-FQPEMEWX.cjs');
24
+ require('../../chunk-2QGYQBS2.cjs');
25
+ require('../../chunk-TQHGE7UC.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 chunkTKZXMWQF_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 chunkSR725PWF_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 chunk5PRKMB24_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 { d8 as GraphDef } from '../../types-BqFZTQmV.cjs';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
3
+ import { S as SchemaManagerOptions } from '../../manager-CYaff3n3.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-JUVvtmR4.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-JUVvtmR4.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-DTtAnvfY.cjs';
8
+ import '../../temporal-5GqpYCk2.cjs';
9
+ import '../../searchable-DHJMh_nj.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 { d8 as GraphDef } from '../../types-BqFZTQmV.js';
2
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
3
+ import { S as SchemaManagerOptions } from '../../manager-D9eRT_ns.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-UzrGvZOo.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-UzrGvZOo.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-DJ3ykH59.js';
8
+ import '../../temporal-CbnLzTmM.js';
9
+ import '../../searchable-bpE1bBfc.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-CT3ZKTOF.js';
2
+ import '../../chunk-OD4SSY2U.js';
3
+ import '../../chunk-ACGSAMD3.js';
4
+ import { createStoreWithSchema } from '../../chunk-BRRP76WO.js';
5
+ import '../../chunk-JONXFAPO.js';
6
+ import '../../chunk-OVI7IXYX.js';
7
+ import '../../chunk-YIURNGXI.js';
8
+ import { createPostgresTables } from '../../chunk-6SWPJEYN.js';
9
+ import '../../chunk-OMZ37BM2.js';
10
+ import '../../chunk-KF6K7TGH.js';
11
+ import '../../chunk-I4GAZH5Z.js';
12
+ import '../../chunk-2TYSSBU5.js';
13
+ import '../../chunk-SHFBB23Q.js';
14
+ import '../../chunk-ZFMCDJGB.js';
15
+ import '../../chunk-S5TERQVW.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-UGHG7PGX.js';
18
+ import '../../chunk-NVY5CJFP.js';
19
+ import { closeAfterFailure } from '../../chunk-6LN7FIVU.js';
20
+ import '../../chunk-HEV35TGT.js';
21
+ import '../../chunk-GLHXM7C4.js';
22
+ import '../../chunk-DZAICA5J.js';
23
+ import '../../chunk-5K2BKEBD.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 chunkTKZXMWQF_cjs = require('../../chunk-TKZXMWQF.cjs');
4
+ require('../../chunk-PFBRJBUL.cjs');
5
+ require('../../chunk-WCCATHMB.cjs');
6
+ require('../../chunk-ROR5ZR6A.cjs');
7
+ require('../../chunk-CICO5GXD.cjs');
8
+ require('../../chunk-FA2AFWLP.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-SIT26LAZ.cjs');
13
+ require('../../chunk-5PRKMB24.cjs');
14
+ require('../../chunk-TQHGE7UC.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 chunkTKZXMWQF_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 { b as AdapterBackend } from '../../types-BqFZTQmV.cjs';
4
+ export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.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-DMj39MEu.cjs';
8
8
  import 'zod';
9
9
  import 'drizzle-orm/pg-core';
10
10
  import 'drizzle-orm/relations';