@nicia-ai/typegraph 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +12 -0
  2. package/dist/backend/drizzle/indexes.cjs +10 -8
  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 +6 -4
  6. package/dist/backend/index.cjs +183 -50
  7. package/dist/backend/index.d.cts +90 -4
  8. package/dist/backend/index.d.ts +90 -4
  9. package/dist/backend/index.js +6 -9
  10. package/dist/backend/postgres/index.cjs +30 -28
  11. package/dist/backend/postgres/index.d.cts +7 -7
  12. package/dist/backend/postgres/index.d.ts +7 -7
  13. package/dist/backend/postgres/index.js +16 -14
  14. package/dist/backend/postgres/pglite-store.cjs +6 -62
  15. package/dist/backend/postgres/pglite-store.cjs.map +1 -1
  16. package/dist/backend/postgres/pglite-store.d.cts +8 -8
  17. package/dist/backend/postgres/pglite-store.d.ts +8 -8
  18. package/dist/backend/postgres/pglite-store.js +6 -62
  19. package/dist/backend/postgres/pglite-store.js.map +1 -1
  20. package/dist/backend/postgres/pglite.cjs +18 -16
  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 +17 -15
  24. package/dist/backend/sqlite/index.cjs +27 -25
  25. package/dist/backend/sqlite/index.d.cts +7 -7
  26. package/dist/backend/sqlite/index.d.ts +7 -7
  27. package/dist/backend/sqlite/index.js +14 -12
  28. package/dist/backend/sqlite/libsql.cjs +21 -19
  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 +16 -14
  33. package/dist/backend/sqlite/libsql.js.map +1 -1
  34. package/dist/backend/sqlite/local-store.cjs +8 -64
  35. package/dist/backend/sqlite/local-store.cjs.map +1 -1
  36. package/dist/backend/sqlite/local-store.d.cts +8 -8
  37. package/dist/backend/sqlite/local-store.d.ts +8 -8
  38. package/dist/backend/sqlite/local-store.js +7 -64
  39. package/dist/backend/sqlite/local-store.js.map +1 -1
  40. package/dist/backend/sqlite/local.cjs +22 -19
  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 +18 -15
  44. package/dist/{chunk-TUVD4DFR.cjs → chunk-2CVDZCXH.cjs} +122 -51
  45. package/dist/chunk-2CVDZCXH.cjs.map +1 -0
  46. package/dist/{chunk-I5C6OTKR.js → chunk-2DWTBNSH.js} +3 -3
  47. package/dist/{chunk-I5C6OTKR.js.map → chunk-2DWTBNSH.js.map} +1 -1
  48. package/dist/{chunk-C76WFIVZ.cjs → chunk-2KCTP3U2.cjs} +180 -127
  49. package/dist/chunk-2KCTP3U2.cjs.map +1 -0
  50. package/dist/{chunk-BYBDM423.cjs → chunk-322TBTOQ.cjs} +48 -48
  51. package/dist/{chunk-BYBDM423.cjs.map → chunk-322TBTOQ.cjs.map} +1 -1
  52. package/dist/chunk-36SX6QXP.cjs +186 -0
  53. package/dist/chunk-36SX6QXP.cjs.map +1 -0
  54. package/dist/{chunk-H3XP6BAV.js → chunk-36VYWVQU.js} +3 -3
  55. package/dist/{chunk-H3XP6BAV.js.map → chunk-36VYWVQU.js.map} +1 -1
  56. package/dist/{chunk-VTJVMP4I.js → chunk-4DKY6RIU.js} +102 -31
  57. package/dist/chunk-4DKY6RIU.js.map +1 -0
  58. package/dist/chunk-4QKOZYMV.js +9 -0
  59. package/dist/chunk-4QKOZYMV.js.map +1 -0
  60. package/dist/{chunk-U3Z7XKAG.js → chunk-57JM6NW3.js} +8 -18
  61. package/dist/chunk-57JM6NW3.js.map +1 -0
  62. package/dist/{chunk-XMY2SXOH.cjs → chunk-5WWEYV4H.cjs} +2208 -579
  63. package/dist/chunk-5WWEYV4H.cjs.map +1 -0
  64. package/dist/{chunk-WQBAQZHR.js → chunk-6NLYIMJO.js} +4 -4
  65. package/dist/{chunk-WQBAQZHR.js.map → chunk-6NLYIMJO.js.map} +1 -1
  66. package/dist/{chunk-G2TLHH6T.cjs → chunk-7B7I7YAW.cjs} +6 -6
  67. package/dist/{chunk-G2TLHH6T.cjs.map → chunk-7B7I7YAW.cjs.map} +1 -1
  68. package/dist/{chunk-EDLKIQRI.js → chunk-7G5IYROL.js} +6 -548
  69. package/dist/chunk-7G5IYROL.js.map +1 -0
  70. package/dist/{chunk-46UGOVRW.js → chunk-7QFRK6PU.js} +3 -7
  71. package/dist/chunk-7QFRK6PU.js.map +1 -0
  72. package/dist/chunk-A4C4NJ5U.cjs +12 -0
  73. package/dist/chunk-A4C4NJ5U.cjs.map +1 -0
  74. package/dist/{chunk-TYGGUWMS.cjs → chunk-B3MN7EJR.cjs} +177 -137
  75. package/dist/chunk-B3MN7EJR.cjs.map +1 -0
  76. package/dist/{chunk-K6VKTBST.cjs → chunk-BZ5MVITP.cjs} +4 -4
  77. package/dist/{chunk-K6VKTBST.cjs.map → chunk-BZ5MVITP.cjs.map} +1 -1
  78. package/dist/{chunk-R7MRFE5P.js → chunk-CAI6SMP6.js} +3 -3
  79. package/dist/{chunk-R7MRFE5P.js.map → chunk-CAI6SMP6.js.map} +1 -1
  80. package/dist/{chunk-ZAQUKCUC.js → chunk-CBOD7TXH.js} +5 -5
  81. package/dist/{chunk-ZAQUKCUC.js.map → chunk-CBOD7TXH.js.map} +1 -1
  82. package/dist/{chunk-LLVOQOWE.cjs → chunk-CRZ56SZU.cjs} +6 -5
  83. package/dist/chunk-CRZ56SZU.cjs.map +1 -0
  84. package/dist/{chunk-ON47CBE4.cjs → chunk-D3GWARN7.cjs} +47 -47
  85. package/dist/{chunk-ON47CBE4.cjs.map → chunk-D3GWARN7.cjs.map} +1 -1
  86. package/dist/{chunk-W5SOCUBL.js → chunk-D3OUDFU7.js} +5 -5
  87. package/dist/{chunk-W5SOCUBL.js.map → chunk-D3OUDFU7.js.map} +1 -1
  88. package/dist/chunk-EKG2UXNX.cjs +23 -0
  89. package/dist/chunk-EKG2UXNX.cjs.map +1 -0
  90. package/dist/{chunk-7PRMDZIA.cjs → chunk-FMMW3KX7.cjs} +21 -55
  91. package/dist/chunk-FMMW3KX7.cjs.map +1 -0
  92. package/dist/chunk-H2VWDQWC.cjs +571 -0
  93. package/dist/chunk-H2VWDQWC.cjs.map +1 -0
  94. package/dist/chunk-H4FY6OZK.js +13 -0
  95. package/dist/chunk-H4FY6OZK.js.map +1 -0
  96. package/dist/{chunk-OJHD3LXJ.cjs → chunk-H5IJSROF.cjs} +2 -8
  97. package/dist/chunk-H5IJSROF.cjs.map +1 -0
  98. package/dist/{chunk-U5EL6JUV.js → chunk-I5IOSA27.js} +101 -103
  99. package/dist/chunk-I5IOSA27.js.map +1 -0
  100. package/dist/{chunk-SHC7BCG5.cjs → chunk-I7YAY2VQ.cjs} +7 -7
  101. package/dist/{chunk-SHC7BCG5.cjs.map → chunk-I7YAY2VQ.cjs.map} +1 -1
  102. package/dist/chunk-IRCWIA3R.js +20 -0
  103. package/dist/chunk-IRCWIA3R.js.map +1 -0
  104. package/dist/chunk-IVQBLXBK.cjs +55 -0
  105. package/dist/chunk-IVQBLXBK.cjs.map +1 -0
  106. package/dist/{chunk-5PP4KRPV.js → chunk-IZD4HTCP.js} +5 -5
  107. package/dist/{chunk-5PP4KRPV.js.map → chunk-IZD4HTCP.js.map} +1 -1
  108. package/dist/{chunk-7CCMCMJO.cjs → chunk-JHRUZ73O.cjs} +75 -66
  109. package/dist/chunk-JHRUZ73O.cjs.map +1 -0
  110. package/dist/{chunk-RDP6ZRSM.cjs → chunk-JQKMEKKW.cjs} +261 -204
  111. package/dist/chunk-JQKMEKKW.cjs.map +1 -0
  112. package/dist/chunk-JVA3KDEA.cjs +691 -0
  113. package/dist/chunk-JVA3KDEA.cjs.map +1 -0
  114. package/dist/{chunk-JG5XIJDY.js → chunk-K67P5DLL.js} +62 -22
  115. package/dist/chunk-K67P5DLL.js.map +1 -0
  116. package/dist/{chunk-CS6JTQQ2.cjs → chunk-KACEYDYV.cjs} +94 -62
  117. package/dist/chunk-KACEYDYV.cjs.map +1 -0
  118. package/dist/{chunk-5OWHU7Z7.cjs → chunk-L6EVYIID.cjs} +248 -210
  119. package/dist/chunk-L6EVYIID.cjs.map +1 -0
  120. package/dist/{chunk-7OWE7WD6.js → chunk-LI4K2KEJ.js} +4 -4
  121. package/dist/{chunk-7OWE7WD6.js.map → chunk-LI4K2KEJ.js.map} +1 -1
  122. package/dist/chunk-LKZDQ2B4.js +1581 -0
  123. package/dist/chunk-LKZDQ2B4.js.map +1 -0
  124. package/dist/{chunk-45YZXI6X.cjs → chunk-LLFPQOBA.cjs} +27 -27
  125. package/dist/{chunk-45YZXI6X.cjs.map → chunk-LLFPQOBA.cjs.map} +1 -1
  126. package/dist/{chunk-ZRJTM7MT.js → chunk-LZMQ3SFK.js} +3 -3
  127. package/dist/{chunk-ZRJTM7MT.js.map → chunk-LZMQ3SFK.js.map} +1 -1
  128. package/dist/{chunk-DI6VC62F.js → chunk-M3VTS3F6.js} +3 -3
  129. package/dist/{chunk-DI6VC62F.js.map → chunk-M3VTS3F6.js.map} +1 -1
  130. package/dist/{chunk-MZ34E2GN.js → chunk-NBOS7BY3.js} +60 -21
  131. package/dist/chunk-NBOS7BY3.js.map +1 -0
  132. package/dist/{chunk-YA36ABIL.js → chunk-NGQDGL5X.js} +14 -48
  133. package/dist/chunk-NGQDGL5X.js.map +1 -0
  134. package/dist/{chunk-ZBFZGLZE.cjs → chunk-NLX5OWK7.cjs} +6 -2
  135. package/dist/chunk-NLX5OWK7.cjs.map +1 -0
  136. package/dist/chunk-NUQ2YFFH.cjs +1637 -0
  137. package/dist/chunk-NUQ2YFFH.cjs.map +1 -0
  138. package/dist/{chunk-TTCOPKUL.cjs → chunk-OGL4X4PH.cjs} +182 -184
  139. package/dist/chunk-OGL4X4PH.cjs.map +1 -0
  140. package/dist/{chunk-HY5BNOUN.cjs → chunk-OTNTGEXR.cjs} +4 -4
  141. package/dist/{chunk-HY5BNOUN.cjs.map → chunk-OTNTGEXR.cjs.map} +1 -1
  142. package/dist/chunk-OTWE63BW.js +53 -0
  143. package/dist/chunk-OTWE63BW.js.map +1 -0
  144. package/dist/chunk-PC5NGH5A.js +549 -0
  145. package/dist/chunk-PC5NGH5A.js.map +1 -0
  146. package/dist/{chunk-IPRP6TDL.cjs → chunk-PS3TUWJM.cjs} +7 -7
  147. package/dist/{chunk-IPRP6TDL.cjs.map → chunk-PS3TUWJM.cjs.map} +1 -1
  148. package/dist/{chunk-V76FGHY3.js → chunk-PVFFH7TL.js} +5 -5
  149. package/dist/{chunk-V76FGHY3.js.map → chunk-PVFFH7TL.js.map} +1 -1
  150. package/dist/chunk-QCD5JKU4.cjs +15 -0
  151. package/dist/chunk-QCD5JKU4.cjs.map +1 -0
  152. package/dist/{chunk-IRPYOHRC.js → chunk-QG5VEOKX.js} +6 -2
  153. package/dist/chunk-QG5VEOKX.js.map +1 -0
  154. package/dist/{chunk-MM3JHVKZ.cjs → chunk-QLLZM5I3.cjs} +4 -4
  155. package/dist/{chunk-MM3JHVKZ.cjs.map → chunk-QLLZM5I3.cjs.map} +1 -1
  156. package/dist/{chunk-MX7EKQPM.js → chunk-RCBG6YMT.js} +345 -97
  157. package/dist/chunk-RCBG6YMT.js.map +1 -0
  158. package/dist/{chunk-2CYI5HRH.js → chunk-RI7RJH4G.js} +49 -17
  159. package/dist/chunk-RI7RJH4G.js.map +1 -0
  160. package/dist/{chunk-5LKOVCPP.js → chunk-RVUL2HXY.js} +6 -5
  161. package/dist/chunk-RVUL2HXY.js.map +1 -0
  162. package/dist/{chunk-WK23PGTP.cjs → chunk-S5GU4LUN.cjs} +11 -11
  163. package/dist/{chunk-WK23PGTP.cjs.map → chunk-S5GU4LUN.cjs.map} +1 -1
  164. package/dist/{chunk-S33YQEL7.js → chunk-SDPWO2Z5.js} +6 -6
  165. package/dist/{chunk-S33YQEL7.js.map → chunk-SDPWO2Z5.js.map} +1 -1
  166. package/dist/{chunk-6S3PTHL4.js → chunk-SLGGT2XD.js} +3 -3
  167. package/dist/{chunk-6S3PTHL4.js.map → chunk-SLGGT2XD.js.map} +1 -1
  168. package/dist/{chunk-HSEZ7X6Y.cjs → chunk-TIJUA4I6.cjs} +45 -45
  169. package/dist/{chunk-HSEZ7X6Y.cjs.map → chunk-TIJUA4I6.cjs.map} +1 -1
  170. package/dist/{chunk-CSNOYIB4.cjs → chunk-TM54OBHX.cjs} +13 -13
  171. package/dist/{chunk-CSNOYIB4.cjs.map → chunk-TM54OBHX.cjs.map} +1 -1
  172. package/dist/{chunk-2GIV5X4P.js → chunk-TYEYRCXL.js} +86 -33
  173. package/dist/chunk-TYEYRCXL.js.map +1 -0
  174. package/dist/{chunk-MJPZNEJZ.js → chunk-UKOVGCRN.js} +2095 -496
  175. package/dist/chunk-UKOVGCRN.js.map +1 -0
  176. package/dist/chunk-UYKDYE5D.cjs +12 -0
  177. package/dist/{chunk-KWNWG4RC.cjs.map → chunk-UYKDYE5D.cjs.map} +1 -1
  178. package/dist/{chunk-FX5ZW6PN.js → chunk-VAAC7L57.js} +95 -40
  179. package/dist/chunk-VAAC7L57.js.map +1 -0
  180. package/dist/{chunk-ISKCIQF2.cjs → chunk-VKHXYVN7.cjs} +14 -25
  181. package/dist/chunk-VKHXYVN7.cjs.map +1 -0
  182. package/dist/chunk-VUQZNUHU.js +171 -0
  183. package/dist/chunk-VUQZNUHU.js.map +1 -0
  184. package/dist/{chunk-K2XYLVVB.cjs → chunk-WDM5WQK4.cjs} +175 -136
  185. package/dist/chunk-WDM5WQK4.cjs.map +1 -0
  186. package/dist/{chunk-GVYVGGPJ.js → chunk-WFSYYU4W.js} +66 -28
  187. package/dist/chunk-WFSYYU4W.js.map +1 -0
  188. package/dist/{chunk-WCLMKNQE.cjs → chunk-WRBV2FNH.cjs} +1356 -1108
  189. package/dist/chunk-WRBV2FNH.cjs.map +1 -0
  190. package/dist/chunk-XORONCV3.js +202 -0
  191. package/dist/chunk-XORONCV3.js.map +1 -0
  192. package/dist/{chunk-2Q45FAIE.js → chunk-YT2IVFAI.js} +26 -17
  193. package/dist/chunk-YT2IVFAI.js.map +1 -0
  194. package/dist/chunk-ZGVTNKTX.cjs +217 -0
  195. package/dist/chunk-ZGVTNKTX.cjs.map +1 -0
  196. package/dist/core/index.cjs +20 -20
  197. package/dist/core/index.d.cts +4 -4
  198. package/dist/core/index.d.ts +4 -4
  199. package/dist/core/index.js +4 -4
  200. package/dist/{ddl-B49O7dB_.d.ts → ddl-BvcbgzHo.d.ts} +3 -3
  201. package/dist/{ddl-DcZG660s.d.cts → ddl-Ufebz5q5.d.cts} +3 -3
  202. package/dist/graph-extension/index.d.cts +2 -4
  203. package/dist/graph-extension/index.d.ts +2 -4
  204. package/dist/graph-merge/index.cjs +140 -125
  205. package/dist/graph-merge/index.cjs.map +1 -1
  206. package/dist/graph-merge/index.d.cts +8 -9
  207. package/dist/graph-merge/index.d.ts +8 -9
  208. package/dist/graph-merge/index.js +42 -27
  209. package/dist/graph-merge/index.js.map +1 -1
  210. package/dist/index.cjs +144 -143
  211. package/dist/index.cjs.map +1 -1
  212. package/dist/index.d.cts +11 -12
  213. package/dist/index.d.ts +11 -12
  214. package/dist/index.js +30 -29
  215. package/dist/index.js.map +1 -1
  216. package/dist/indexes/index.cjs +14 -12
  217. package/dist/indexes/index.d.cts +4 -4
  218. package/dist/indexes/index.d.ts +4 -4
  219. package/dist/indexes/index.js +7 -5
  220. package/dist/{ingestion-import-target-CI8OWIkM.d.ts → ingestion-import-target-CAs1OX-l.d.cts} +1 -1
  221. package/dist/{ingestion-import-target-DCpfM1PX.d.cts → ingestion-import-target-DCQSPfNx.d.ts} +1 -1
  222. package/dist/interchange/index.cjs +41 -39
  223. package/dist/interchange/index.cjs.map +1 -1
  224. package/dist/interchange/index.d.cts +8 -8
  225. package/dist/interchange/index.d.ts +8 -8
  226. package/dist/interchange/index.js +16 -14
  227. package/dist/interchange/index.js.map +1 -1
  228. package/dist/local-store-impl-6DDTFM32.cjs +77 -0
  229. package/dist/local-store-impl-6DDTFM32.cjs.map +1 -0
  230. package/dist/local-store-impl-OXTOVU2J.js +75 -0
  231. package/dist/local-store-impl-OXTOVU2J.js.map +1 -0
  232. package/dist/{manager-Cfg1ENj1.d.ts → manager-B68OrPR2.d.ts} +1 -2
  233. package/dist/{manager-D348fa6W.d.cts → manager-D_t7oK69.d.cts} +1 -2
  234. package/dist/pglite-store-impl-6EMZGL7K.js +73 -0
  235. package/dist/pglite-store-impl-6EMZGL7K.js.map +1 -0
  236. package/dist/pglite-store-impl-GJG3Y7RP.cjs +75 -0
  237. package/dist/pglite-store-impl-GJG3Y7RP.cjs.map +1 -0
  238. package/dist/{postgres-UStOycLI.d.ts → postgres-BPLSVyHM.d.ts} +1 -1
  239. package/dist/{postgres-CH1kkM5J.d.cts → postgres-CqvtFC2y.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 +33 -20
  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 +24 -11
  247. package/dist/provenance/index.js.map +1 -1
  248. package/dist/{repair-validity-windows-aWX7VNvv.d.cts → repair-validity-windows-DEzCKAdy.d.cts} +7 -3
  249. package/dist/{repair-validity-windows-BtOEe2pS.d.ts → repair-validity-windows-GMdaS2AH.d.ts} +7 -3
  250. package/dist/resolve-D_H8MHtq.d.ts +1805 -0
  251. package/dist/resolve-WEW8gWws.d.cts +1805 -0
  252. package/dist/schema/index.cjs +42 -40
  253. package/dist/schema/index.d.cts +4 -6
  254. package/dist/schema/index.d.ts +4 -6
  255. package/dist/schema/index.js +15 -13
  256. package/dist/{searchable-z4BiFfHI.d.ts → searchable-C_UREI9K.d.ts} +1 -1
  257. package/dist/{searchable-C8-RrL3l.d.cts → searchable-ClgET_i7.d.cts} +1 -1
  258. package/dist/{sqlite-axLw5Lo5.d.ts → sqlite-D1mXO9Kp.d.cts} +2 -1
  259. package/dist/{sqlite-Cyx9j9o6.d.cts → sqlite-MZA3oZNB.d.ts} +2 -1
  260. package/dist/{store-CTfQ9taw.d.ts → store-CuFX7fCx.d.cts} +38 -41
  261. package/dist/{store-DR9J7JVB.d.cts → store-D-ZjXQpW.d.ts} +38 -41
  262. package/dist/{temporal-CBOrERz5.d.ts → temporal-CpyEiRY8.d.cts} +1 -1
  263. package/dist/{temporal-B4Ky4wzh.d.cts → temporal-y0Aep9Su.d.ts} +1 -1
  264. package/dist/{types-CWg4dTjj.d.ts → types-6yf0Vv-_.d.cts} +1672 -1
  265. package/dist/{types-CWg4dTjj.d.cts → types-6yf0Vv-_.d.ts} +1672 -1
  266. package/dist/{types-BScHXVM7.d.ts → types-DzJ4dlzk.d.cts} +1 -1
  267. package/dist/{types-BE921wRl.d.cts → types-_vVSB9k-.d.ts} +1 -1
  268. package/dist/{where-BWXUPV3C.d.ts → where-DuG2LCLe.d.ts} +1 -1
  269. package/dist/{where-CNtx1aLc.d.cts → where-Mhf_yyKX.d.cts} +1 -1
  270. package/package.json +5 -1
  271. package/dist/chunk-2CYI5HRH.js.map +0 -1
  272. package/dist/chunk-2GIV5X4P.js.map +0 -1
  273. package/dist/chunk-2Q45FAIE.js.map +0 -1
  274. package/dist/chunk-46UGOVRW.js.map +0 -1
  275. package/dist/chunk-5LKOVCPP.js.map +0 -1
  276. package/dist/chunk-5OWHU7Z7.cjs.map +0 -1
  277. package/dist/chunk-6LEOAIIB.js +0 -1160
  278. package/dist/chunk-6LEOAIIB.js.map +0 -1
  279. package/dist/chunk-7CCMCMJO.cjs.map +0 -1
  280. package/dist/chunk-7PRMDZIA.cjs.map +0 -1
  281. package/dist/chunk-C76WFIVZ.cjs.map +0 -1
  282. package/dist/chunk-CS6JTQQ2.cjs.map +0 -1
  283. package/dist/chunk-EDLKIQRI.js.map +0 -1
  284. package/dist/chunk-EH3JZJUM.cjs +0 -567
  285. package/dist/chunk-EH3JZJUM.cjs.map +0 -1
  286. package/dist/chunk-FX5ZW6PN.js.map +0 -1
  287. package/dist/chunk-GHZPZNFC.cjs +0 -132
  288. package/dist/chunk-GHZPZNFC.cjs.map +0 -1
  289. package/dist/chunk-GVYVGGPJ.js.map +0 -1
  290. package/dist/chunk-IHK5KA2Q.cjs +0 -262
  291. package/dist/chunk-IHK5KA2Q.cjs.map +0 -1
  292. package/dist/chunk-IRPYOHRC.js.map +0 -1
  293. package/dist/chunk-ISKCIQF2.cjs.map +0 -1
  294. package/dist/chunk-JG5XIJDY.js.map +0 -1
  295. package/dist/chunk-K2XYLVVB.cjs.map +0 -1
  296. package/dist/chunk-KWNWG4RC.cjs +0 -12
  297. package/dist/chunk-LLVOQOWE.cjs.map +0 -1
  298. package/dist/chunk-MJPZNEJZ.js.map +0 -1
  299. package/dist/chunk-MX7EKQPM.js.map +0 -1
  300. package/dist/chunk-MZ34E2GN.js.map +0 -1
  301. package/dist/chunk-OJHD3LXJ.cjs.map +0 -1
  302. package/dist/chunk-PALYTHGM.js +0 -114
  303. package/dist/chunk-PALYTHGM.js.map +0 -1
  304. package/dist/chunk-RDP6ZRSM.cjs.map +0 -1
  305. package/dist/chunk-S3SDEQMC.js +0 -532
  306. package/dist/chunk-S3SDEQMC.js.map +0 -1
  307. package/dist/chunk-TEC24ZDA.cjs +0 -1254
  308. package/dist/chunk-TEC24ZDA.cjs.map +0 -1
  309. package/dist/chunk-TP4NJTI3.cjs +0 -1192
  310. package/dist/chunk-TP4NJTI3.cjs.map +0 -1
  311. package/dist/chunk-TTCOPKUL.cjs.map +0 -1
  312. package/dist/chunk-TUVD4DFR.cjs.map +0 -1
  313. package/dist/chunk-TYGGUWMS.cjs.map +0 -1
  314. package/dist/chunk-U3Z7XKAG.js.map +0 -1
  315. package/dist/chunk-U5EL6JUV.js.map +0 -1
  316. package/dist/chunk-VTJVMP4I.js.map +0 -1
  317. package/dist/chunk-WCLMKNQE.cjs.map +0 -1
  318. package/dist/chunk-XMY2SXOH.cjs.map +0 -1
  319. package/dist/chunk-Y55DLLEG.js +0 -247
  320. package/dist/chunk-Y55DLLEG.js.map +0 -1
  321. package/dist/chunk-YA36ABIL.js.map +0 -1
  322. package/dist/chunk-ZBFZGLZE.cjs.map +0 -1
  323. package/dist/index-B0PrmE3K.d.cts +0 -1146
  324. package/dist/index-CwcXsL5R.d.ts +0 -1146
  325. package/dist/materialize-indexes-C9GG3O3C.d.ts +0 -266
  326. package/dist/materialize-indexes-CrSiW_lT.d.cts +0 -266
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkIPRP6TDL_cjs = require('./chunk-IPRP6TDL.cjs');
4
- var chunk5OWHU7Z7_cjs = require('./chunk-5OWHU7Z7.cjs');
5
- var chunkRDP6ZRSM_cjs = require('./chunk-RDP6ZRSM.cjs');
6
- var chunkZBFZGLZE_cjs = require('./chunk-ZBFZGLZE.cjs');
7
- var chunkIHK5KA2Q_cjs = require('./chunk-IHK5KA2Q.cjs');
8
- var chunkG2TLHH6T_cjs = require('./chunk-G2TLHH6T.cjs');
9
- var chunkLLVOQOWE_cjs = require('./chunk-LLVOQOWE.cjs');
3
+ var chunkPS3TUWJM_cjs = require('./chunk-PS3TUWJM.cjs');
4
+ var chunkL6EVYIID_cjs = require('./chunk-L6EVYIID.cjs');
5
+ var chunkJQKMEKKW_cjs = require('./chunk-JQKMEKKW.cjs');
6
+ var chunkNLX5OWK7_cjs = require('./chunk-NLX5OWK7.cjs');
7
+ var chunkNUQ2YFFH_cjs = require('./chunk-NUQ2YFFH.cjs');
8
+ var chunk7B7I7YAW_cjs = require('./chunk-7B7I7YAW.cjs');
9
+ var chunkCRZ56SZU_cjs = require('./chunk-CRZ56SZU.cjs');
10
10
  var chunkM5MSP3BI_cjs = require('./chunk-M5MSP3BI.cjs');
11
- var chunkHY5BNOUN_cjs = require('./chunk-HY5BNOUN.cjs');
11
+ var chunkOTNTGEXR_cjs = require('./chunk-OTNTGEXR.cjs');
12
12
  var chunkZY4GXIVN_cjs = require('./chunk-ZY4GXIVN.cjs');
13
- var chunkOJHD3LXJ_cjs = require('./chunk-OJHD3LXJ.cjs');
13
+ var chunkH5IJSROF_cjs = require('./chunk-H5IJSROF.cjs');
14
14
  var chunkHAHNRASW_cjs = require('./chunk-HAHNRASW.cjs');
15
15
  var chunkRJMHU2MG_cjs = require('./chunk-RJMHU2MG.cjs');
16
16
  var chunkXUO3KQFO_cjs = require('./chunk-XUO3KQFO.cjs');
@@ -22,7 +22,7 @@ var zod = require('zod');
22
22
  // src/ontology/core-meta-edges.ts
23
23
  function createMetaEdge(name, properties) {
24
24
  return Object.freeze({
25
- [chunkIPRP6TDL_cjs.META_EDGE_BRAND]: true,
25
+ [chunkPS3TUWJM_cjs.META_EDGE_BRAND]: true,
26
26
  name,
27
27
  properties: {
28
28
  transitive: properties.transitive ?? false,
@@ -346,7 +346,7 @@ var SUBSCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
346
346
  ]);
347
347
  var DEPENDENT_REQUIRED_KEYWORD = "dependentRequired";
348
348
  function canonicalKey(value) {
349
- return JSON.stringify(value, chunkZBFZGLZE_cjs.sortedReplacer);
349
+ return JSON.stringify(value, chunkNLX5OWK7_cjs.sortedReplacer);
350
350
  }
351
351
  function sortedByCanonicalForm(items) {
352
352
  return items.toSorted(
@@ -398,13 +398,13 @@ function normalizedSubschemaMap(value) {
398
398
  return normalized;
399
399
  }
400
400
  function propertySchemasEqual(before, after) {
401
- return chunkZBFZGLZE_cjs.canonicalEqual(
401
+ return chunkNLX5OWK7_cjs.canonicalEqual(
402
402
  orderNormalizedSchema(before),
403
403
  orderNormalizedSchema(after)
404
404
  );
405
405
  }
406
406
  function endpointKindsEqual(before, after) {
407
- return chunkZBFZGLZE_cjs.canonicalEqual(before?.toSorted(), after?.toSorted());
407
+ return chunkNLX5OWK7_cjs.canonicalEqual(before?.toSorted(), after?.toSorted());
408
408
  }
409
409
  function diffNodeDef(name, before, after) {
410
410
  const changes = [];
@@ -433,7 +433,7 @@ function diffNodeDef(name, before, after) {
433
433
  after
434
434
  });
435
435
  }
436
- if (!chunkZBFZGLZE_cjs.canonicalEqual(before.uniqueConstraints, after.uniqueConstraints)) {
436
+ if (!chunkNLX5OWK7_cjs.canonicalEqual(before.uniqueConstraints, after.uniqueConstraints)) {
437
437
  changes.push({
438
438
  type: "modified",
439
439
  kind: name,
@@ -531,7 +531,7 @@ function classifyPropertyChanges(kind, before, after) {
531
531
  for (const [property, beforeProperty] of Object.entries(beforeProps)) {
532
532
  const afterProperty = afterProps[property];
533
533
  if (afterProperty === void 0) continue;
534
- if (chunkZBFZGLZE_cjs.canonicalEqual(beforeProperty, afterProperty)) continue;
534
+ if (chunkNLX5OWK7_cjs.canonicalEqual(beforeProperty, afterProperty)) continue;
535
535
  if (isBreakingPropertyChange(beforeProperty, afterProperty)) {
536
536
  breakingProps.push(property);
537
537
  }
@@ -660,7 +660,7 @@ function diffEdgeDef(name, before, after) {
660
660
  function annotationsChanged(before, after) {
661
661
  if (before === void 0 && after === void 0) return false;
662
662
  if (before === void 0 || after === void 0) return true;
663
- return !chunkZBFZGLZE_cjs.canonicalEqual(before, after);
663
+ return !chunkNLX5OWK7_cjs.canonicalEqual(before, after);
664
664
  }
665
665
  function diffOntology(before, after) {
666
666
  const changes = [];
@@ -759,7 +759,7 @@ function diffIndexes(before, after) {
759
759
  for (const [name, beforeIndex] of beforeByName) {
760
760
  const afterIndex = afterByName.get(name);
761
761
  if (!afterIndex) continue;
762
- if (!chunkZBFZGLZE_cjs.canonicalEqual(beforeIndex, afterIndex)) {
762
+ if (!chunkNLX5OWK7_cjs.canonicalEqual(beforeIndex, afterIndex)) {
763
763
  changes.push({
764
764
  type: "modified",
765
765
  name,
@@ -789,7 +789,7 @@ function diffExtension(before, after) {
789
789
  details: "Graph extension document was removed"
790
790
  };
791
791
  }
792
- if (chunkZBFZGLZE_cjs.canonicalEqual(before, after)) return void 0;
792
+ if (chunkNLX5OWK7_cjs.canonicalEqual(before, after)) return void 0;
793
793
  return {
794
794
  type: "modified",
795
795
  severity: "safe",
@@ -1050,7 +1050,7 @@ function serializeEdgeIndexDeclaration(declaration) {
1050
1050
  }
1051
1051
  function serializeNodes(graph) {
1052
1052
  const result = chunkN66HCGCY_cjs.createDataKeyedBag();
1053
- for (const kindName of chunkG2TLHH6T_cjs.getNodeKinds(graph)) {
1053
+ for (const kindName of chunk7B7I7YAW_cjs.getNodeKinds(graph)) {
1054
1054
  const registration = graph.nodes[kindName];
1055
1055
  if (registration === void 0) continue;
1056
1056
  result[kindName] = serializeNodeDef(registration);
@@ -1079,7 +1079,7 @@ function serializeUniqueConstraints(constraints) {
1079
1079
  }));
1080
1080
  }
1081
1081
  function serializeWherePredicate(whereFunction) {
1082
- const predicate = chunkLLVOQOWE_cjs.captureWherePredicate(whereFunction);
1082
+ const predicate = chunkCRZ56SZU_cjs.captureWherePredicate(whereFunction);
1083
1083
  if (predicate === void 0) {
1084
1084
  throw new chunkX4GDXBOP_cjs.ConfigurationError(
1085
1085
  `A unique constraint's \`where\` callback did not return a predicate, so it cannot be persisted.`,
@@ -1108,7 +1108,7 @@ function deserializeWherePredicate(serialized) {
1108
1108
  }
1109
1109
  function serializeEdges(graph) {
1110
1110
  const result = chunkN66HCGCY_cjs.createDataKeyedBag();
1111
- for (const kindName of chunkG2TLHH6T_cjs.getEdgeKinds(graph)) {
1111
+ for (const kindName of chunk7B7I7YAW_cjs.getEdgeKinds(graph)) {
1112
1112
  const registration = graph.edges[kindName];
1113
1113
  if (registration === void 0) continue;
1114
1114
  result[kindName] = serializeEdgeDef(registration);
@@ -1165,8 +1165,8 @@ function serializeMetaEdge(metaEdge) {
1165
1165
  function serializeOntologyRelation(relation) {
1166
1166
  return {
1167
1167
  metaEdge: relation.metaEdge.name,
1168
- from: chunkIPRP6TDL_cjs.getTypeName(relation.from),
1169
- to: chunkIPRP6TDL_cjs.getTypeName(relation.to)
1168
+ from: chunkPS3TUWJM_cjs.getTypeName(relation.from),
1169
+ to: chunkPS3TUWJM_cjs.getTypeName(relation.to)
1170
1170
  };
1171
1171
  }
1172
1172
  function serializeClosures(relations) {
@@ -1253,7 +1253,7 @@ async function computeSchemaHash(schema) {
1253
1253
  ...schema.extension === void 0 ? {} : { extension: schema.extension },
1254
1254
  ...schema.deprecatedKinds === void 0 ? {} : { deprecatedKinds: schema.deprecatedKinds }
1255
1255
  };
1256
- const json = JSON.stringify(hashable, chunkZBFZGLZE_cjs.sortedReplacer);
1256
+ const json = JSON.stringify(hashable, chunkNLX5OWK7_cjs.sortedReplacer);
1257
1257
  return chunkZY4GXIVN_cjs.sha256Hex(json);
1258
1258
  }
1259
1259
  var COMPILE_NODE_CACHE = /* @__PURE__ */ new Map();
@@ -1300,7 +1300,7 @@ function compileNodeCached(kindName, document) {
1300
1300
  }
1301
1301
  function compileNode(kindName, document) {
1302
1302
  const schema = buildObjectSchema(document.properties);
1303
- const type = chunkIPRP6TDL_cjs.defineNode(
1303
+ const type = chunkPS3TUWJM_cjs.defineNode(
1304
1304
  kindName,
1305
1305
  chunkN66HCGCY_cjs.compactUndefined({
1306
1306
  schema,
@@ -1478,7 +1478,7 @@ function graphExtensionOntologyKey(entry) {
1478
1478
  return `${entry.metaEdge}|${entry.from}|${entry.to}`;
1479
1479
  }
1480
1480
  function compileTimeOntologyKey(relation) {
1481
- return `${relation.metaEdge.name}|${chunkIPRP6TDL_cjs.getTypeName(relation.from)}|${chunkIPRP6TDL_cjs.getTypeName(relation.to)}`;
1481
+ return `${relation.metaEdge.name}|${chunkPS3TUWJM_cjs.getTypeName(relation.from)}|${chunkPS3TUWJM_cjs.getTypeName(relation.to)}`;
1482
1482
  }
1483
1483
  function buildGraphExtensionOntologyKeySet(document) {
1484
1484
  return new Set(
@@ -1496,7 +1496,7 @@ function extensionKindNames(document) {
1496
1496
  function mergeGraphExtension(graph, document) {
1497
1497
  const existingDocument = graph.extension ?? Object.freeze({});
1498
1498
  const unionDocument = unionDocuments(existingDocument, document);
1499
- if (graph.extension !== void 0 && chunkZBFZGLZE_cjs.canonicalEqual(unionDocument, existingDocument)) {
1499
+ if (graph.extension !== void 0 && chunkNLX5OWK7_cjs.canonicalEqual(unionDocument, existingDocument)) {
1500
1500
  return graph;
1501
1501
  }
1502
1502
  const validatedUnion = chunkRJMHU2MG_cjs.unwrap(chunkRJMHU2MG_cjs.validateGraphExtension(unionDocument));
@@ -1549,7 +1549,7 @@ function mergeGraphExtension(graph, document) {
1549
1549
  edgeKind: edge.kindName,
1550
1550
  side: "to"
1551
1551
  });
1552
- const type = chunkIPRP6TDL_cjs.defineEdge(
1552
+ const type = chunkPS3TUWJM_cjs.defineEdge(
1553
1553
  edge.kindName,
1554
1554
  chunkN66HCGCY_cjs.compactUndefined({
1555
1555
  schema: edge.schema,
@@ -1601,7 +1601,7 @@ function deriveGraphExtensionVectorIndexes(compiledNodes) {
1601
1601
  ...compiled.unique.length === 0 ? {} : { unique: [...compiled.unique] }
1602
1602
  };
1603
1603
  }
1604
- return chunkG2TLHH6T_cjs.autoDeriveVectorIndexes(registrations).map(
1604
+ return chunk7B7I7YAW_cjs.autoDeriveVectorIndexes(registrations).map(
1605
1605
  (index) => Object.freeze({ ...index, origin: "runtime" })
1606
1606
  );
1607
1607
  }
@@ -1619,7 +1619,7 @@ function mergeIndexesWithGraphExtension(existing, runtimeIndexes, graphId) {
1619
1619
  const runtimeRelational = runtimeIndexes.filter(
1620
1620
  (index) => index.entity !== "vector"
1621
1621
  );
1622
- const vectorMerged = chunkG2TLHH6T_cjs.mergeVectorIndexes(compileTimeIndexes, runtimeVectors);
1622
+ const vectorMerged = chunk7B7I7YAW_cjs.mergeVectorIndexes(compileTimeIndexes, runtimeVectors);
1623
1623
  const merged = [...vectorMerged, ...runtimeRelational];
1624
1624
  assertUniqueIndexNames(merged, graphId);
1625
1625
  return merged;
@@ -1652,7 +1652,7 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
1652
1652
  suggestion: "Declare the kind under `nodes` in this graph extension, or remove the index from `indexes`."
1653
1653
  });
1654
1654
  }
1655
- const declaration2 = chunkHY5BNOUN_cjs.defineNodeIndex(
1655
+ const declaration2 = chunkOTNTGEXR_cjs.defineNodeIndex(
1656
1656
  node,
1657
1657
  toNodeIndexConfig(document)
1658
1658
  );
@@ -1666,7 +1666,7 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
1666
1666
  suggestion: "Declare the edge under `edges` in this graph extension, or remove the index from `indexes`."
1667
1667
  });
1668
1668
  }
1669
- const declaration = chunkHY5BNOUN_cjs.defineEdgeIndex(
1669
+ const declaration = chunkOTNTGEXR_cjs.defineEdgeIndex(
1670
1670
  edgeRegistration.type,
1671
1671
  toEdgeIndexConfig(document)
1672
1672
  );
@@ -1971,8 +1971,8 @@ function buildCompileTimeReferentIndex(graph, runtimeEdgeNames) {
1971
1971
  );
1972
1972
  for (const relation of graph.ontology) {
1973
1973
  if (runtimeOntologyKeys.has(compileTimeOntologyKey(relation))) continue;
1974
- const fromName = chunkIPRP6TDL_cjs.getTypeName(relation.from);
1975
- const toName = chunkIPRP6TDL_cjs.getTypeName(relation.to);
1974
+ const fromName = chunkPS3TUWJM_cjs.getTypeName(relation.from);
1975
+ const toName = chunkPS3TUWJM_cjs.getTypeName(relation.to);
1976
1976
  const referent = {
1977
1977
  type: "compile-time-ontology",
1978
1978
  name: `${relation.metaEdge.name}(${fromName}, ${toName})`
@@ -2012,7 +2012,7 @@ async function ensureIdentitySchemaStorage(backend, schema, options) {
2012
2012
  const separationMissing = missingTables.includes(
2013
2013
  IDENTITY_SEPARATION_RELATION
2014
2014
  );
2015
- const rebuildRequired = await chunk5OWHU7Z7_cjs.separationRebuildRequired(
2015
+ const rebuildRequired = await chunkL6EVYIID_cjs.separationRebuildRequired(
2016
2016
  backend,
2017
2017
  schema,
2018
2018
  options.graphId,
@@ -2083,7 +2083,7 @@ function markIdentityDdlRace(error) {
2083
2083
  return error;
2084
2084
  }
2085
2085
  function isIdentityDdlRace(error) {
2086
- for (const link of chunkZBFZGLZE_cjs.errorChain(error)) {
2086
+ for (const link of chunkNLX5OWK7_cjs.errorChain(error)) {
2087
2087
  if (typeof link === "object" && link !== null && IDENTITY_DDL_RACES.has(link)) {
2088
2088
  return true;
2089
2089
  }
@@ -2095,7 +2095,7 @@ async function executeIdentityDdl(execute, statements) {
2095
2095
  try {
2096
2096
  await execute(statement);
2097
2097
  } catch (error) {
2098
- if (chunkZBFZGLZE_cjs.isPostgresConcurrentDdlRaceError(error)) {
2098
+ if (chunkNLX5OWK7_cjs.isPostgresConcurrentDdlRaceError(error)) {
2099
2099
  throw markIdentityDdlRace(error);
2100
2100
  }
2101
2101
  throw error;
@@ -2111,12 +2111,21 @@ async function withIdentityDdlRaceRetry(attempt) {
2111
2111
  }
2112
2112
  }
2113
2113
  async function lockIdentityDdl(target) {
2114
- if (target.dialect !== "postgres") return;
2115
- await target.execute(
2116
- chunkOJHD3LXJ_cjs.asCompiledRowsSql(chunkOJHD3LXJ_cjs.sql`
2117
- SELECT pg_advisory_xact_lock(hashtext(${IDENTITY_DDL_LOCK_KEY}), 0)
2118
- `)
2119
- );
2114
+ const plan = chunkNUQ2YFFH_cjs.resolveWriteFencePlan(target);
2115
+ const fence = chunkNUQ2YFFH_cjs.requireWriteFence(plan, "identity DDL", "advisory-lock");
2116
+ switch (fence.kind) {
2117
+ case "lock": {
2118
+ await target.execute(
2119
+ chunkH5IJSROF_cjs.asCompiledRowsSql(chunkH5IJSROF_cjs.sql`
2120
+ SELECT pg_advisory_xact_lock(hashtext(${IDENTITY_DDL_LOCK_KEY}), 0)
2121
+ `)
2122
+ );
2123
+ return;
2124
+ }
2125
+ case "engine-serialized": {
2126
+ return;
2127
+ }
2128
+ }
2120
2129
  }
2121
2130
  var IDENTITY_DDL_LOCK_KEY = "typegraph:identity-ddl";
2122
2131
  function identityDerivedUpgradeUnsupportedError(graphId, missingPorts) {
@@ -2141,7 +2150,7 @@ async function identityKindCascadeNeeded(backend, schema, graphId, droppedNodeKi
2141
2150
  provisionMissing: false
2142
2151
  });
2143
2152
  if (missingTables.length > 0) return false;
2144
- return chunk5OWHU7Z7_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
2153
+ return chunkL6EVYIID_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
2145
2154
  }
2146
2155
  function assertIdentityStoragePresent(graphId, missingTables) {
2147
2156
  if (missingTables.length === 0) return;
@@ -2164,13 +2173,13 @@ function identitySchemaCommitPreflight(ctx, options) {
2164
2173
  ctx.graphId,
2165
2174
  options.provisionDerivedRelations ?? []
2166
2175
  );
2167
- await chunkRDP6ZRSM_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2168
- await chunk5OWHU7Z7_cjs.lockIdentityGraph(target, ctx.graphId);
2176
+ await chunkJQKMEKKW_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2177
+ await chunkL6EVYIID_cjs.lockIdentityGraph(target, ctx.graphId);
2169
2178
  if (options.enablement) {
2170
- await chunk5OWHU7Z7_cjs.lockIdentityEnablementNodes(target, ctx.schema);
2171
- await chunkRDP6ZRSM_cjs.withRecordedIdentityMutationTarget(
2179
+ await chunkL6EVYIID_cjs.lockIdentityEnablementNodes(target, ctx.schema);
2180
+ await chunkJQKMEKKW_cjs.withRecordedIdentityMutationTarget(
2172
2181
  target,
2173
- (rawTarget, touch) => chunk5OWHU7Z7_cjs.purgeAssertionsWithUnregisteredKinds(
2182
+ (rawTarget, touch) => chunkL6EVYIID_cjs.purgeAssertionsWithUnregisteredKinds(
2174
2183
  rawTarget,
2175
2184
  ctx.schema,
2176
2185
  ctx.graphId,
@@ -2181,9 +2190,9 @@ function identitySchemaCommitPreflight(ctx, options) {
2181
2190
  }
2182
2191
  const droppedNodeKinds = options.droppedNodeKinds ?? [];
2183
2192
  if (droppedNodeKinds.length > 0) {
2184
- await chunkRDP6ZRSM_cjs.withRecordedIdentityMutationTarget(
2193
+ await chunkJQKMEKKW_cjs.withRecordedIdentityMutationTarget(
2185
2194
  target,
2186
- (rawTarget, touch) => chunk5OWHU7Z7_cjs.deleteAssertionsTouchingKinds(
2195
+ (rawTarget, touch) => chunkL6EVYIID_cjs.deleteAssertionsTouchingKinds(
2187
2196
  rawTarget,
2188
2197
  ctx.schema,
2189
2198
  ctx.graphId,
@@ -2192,7 +2201,7 @@ function identitySchemaCommitPreflight(ctx, options) {
2192
2201
  )
2193
2202
  );
2194
2203
  }
2195
- await chunk5OWHU7Z7_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
2204
+ await chunkL6EVYIID_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
2196
2205
  };
2197
2206
  }
2198
2207
  async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
@@ -2206,11 +2215,11 @@ async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
2206
2215
  }
2207
2216
  function identityKindCascadePreflight(ctx, droppedNodeKinds) {
2208
2217
  return async (target) => {
2209
- await chunkRDP6ZRSM_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2210
- await chunk5OWHU7Z7_cjs.lockIdentityGraph(target, ctx.graphId);
2211
- await chunkRDP6ZRSM_cjs.withRecordedIdentityMutationTarget(
2218
+ await chunkJQKMEKKW_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2219
+ await chunkL6EVYIID_cjs.lockIdentityGraph(target, ctx.graphId);
2220
+ await chunkJQKMEKKW_cjs.withRecordedIdentityMutationTarget(
2212
2221
  target,
2213
- (rawTarget, touch) => chunk5OWHU7Z7_cjs.deleteAssertionsTouchingKinds(
2222
+ (rawTarget, touch) => chunkL6EVYIID_cjs.deleteAssertionsTouchingKinds(
2214
2223
  rawTarget,
2215
2224
  ctx.schema,
2216
2225
  ctx.graphId,
@@ -2409,7 +2418,7 @@ function buildEdgeEndpointKinds(edges) {
2409
2418
  }
2410
2419
  function extractNodeTypes(graph) {
2411
2420
  const result = /* @__PURE__ */ new Map();
2412
- for (const typeName of chunkG2TLHH6T_cjs.getNodeKinds(graph)) {
2421
+ for (const typeName of chunk7B7I7YAW_cjs.getNodeKinds(graph)) {
2413
2422
  const registration = graph.nodes[typeName];
2414
2423
  result.set(typeName, registration.type);
2415
2424
  }
@@ -2417,7 +2426,7 @@ function extractNodeTypes(graph) {
2417
2426
  }
2418
2427
  function extractEdgeTypes(graph) {
2419
2428
  const result = /* @__PURE__ */ new Map();
2420
- for (const typeName of chunkG2TLHH6T_cjs.getEdgeKinds(graph)) {
2429
+ for (const typeName of chunk7B7I7YAW_cjs.getEdgeKinds(graph)) {
2421
2430
  const registration = graph.edges[typeName];
2422
2431
  result.set(typeName, registration.type);
2423
2432
  }
@@ -2791,7 +2800,7 @@ async function loadActiveSchemaWithBootstrap(backend, graphId) {
2791
2800
  try {
2792
2801
  return await backend.getActiveSchema(graphId);
2793
2802
  } catch (error) {
2794
- if (backend.bootstrapTables && chunkZBFZGLZE_cjs.isMissingTableError(error)) {
2803
+ if (backend.bootstrapTables && chunkNLX5OWK7_cjs.isMissingTableError(error)) {
2795
2804
  await backend.bootstrapTables();
2796
2805
  return await backend.getActiveSchema(graphId);
2797
2806
  }
@@ -2969,7 +2978,7 @@ async function readActiveSchemaPure(backend, graphId) {
2969
2978
  try {
2970
2979
  activeRow = await backend.getActiveSchema(graphId);
2971
2980
  } catch (error) {
2972
- if (chunkZBFZGLZE_cjs.isMissingTableError(error)) {
2981
+ if (chunkNLX5OWK7_cjs.isMissingTableError(error)) {
2973
2982
  throw schemaNotInitializedError(graphId, error);
2974
2983
  }
2975
2984
  throw error;
@@ -3037,8 +3046,8 @@ async function migrateSchema(backend, graph, currentVersion, options) {
3037
3046
  });
3038
3047
  }
3039
3048
  const dropped = storedSchema === void 0 ? [] : [
3040
- ...droppedKinds(storedSchema.nodes, chunkG2TLHH6T_cjs.getNodeKinds(target), "node"),
3041
- ...droppedKinds(storedSchema.edges, chunkG2TLHH6T_cjs.getEdgeKinds(target), "edge")
3049
+ ...droppedKinds(storedSchema.nodes, chunk7B7I7YAW_cjs.getNodeKinds(target), "node"),
3050
+ ...droppedKinds(storedSchema.edges, chunk7B7I7YAW_cjs.getEdgeKinds(target), "edge")
3042
3051
  ];
3043
3052
  const guardedDrops = options?.discardDroppedKindRows === true ? [] : dropped;
3044
3053
  const droppedNodeKinds = dropped.filter((drop) => drop.entity === "node").map((drop) => drop.kind);
@@ -3081,7 +3090,7 @@ async function migrateSchema(backend, graph, currentVersion, options) {
3081
3090
  }
3082
3091
  async function prepareIdentityKindCascade(backend, target, options) {
3083
3092
  if (options.droppedNodeKinds.length === 0) return void 0;
3084
- const schema = options.schema === void 0 ? chunkIHK5KA2Q_cjs.createSqlSchema(backend.tableNames) : chunkIHK5KA2Q_cjs.requireSqlSchema(options.schema, "The schema option");
3093
+ const schema = options.schema === void 0 ? chunkNUQ2YFFH_cjs.createSqlSchema(backend.tableNames) : chunkNUQ2YFFH_cjs.requireSqlSchema(options.schema, "The schema option");
3085
3094
  if (options.probeBeforeCascade) {
3086
3095
  const needed = await identityKindCascadeNeeded(
3087
3096
  backend,
@@ -3097,7 +3106,7 @@ async function prepareIdentityKindCascade(backend, target, options) {
3097
3106
  );
3098
3107
  }
3099
3108
  async function prepareIdentitySchemaCommit(backend, target, options) {
3100
- const schema = options.schema === void 0 ? chunkIHK5KA2Q_cjs.createSqlSchema(backend.tableNames) : chunkIHK5KA2Q_cjs.requireSqlSchema(options.schema, "The schema option");
3109
+ const schema = options.schema === void 0 ? chunkNUQ2YFFH_cjs.createSqlSchema(backend.tableNames) : chunkNUQ2YFFH_cjs.requireSqlSchema(options.schema, "The schema option");
3101
3110
  const registry = buildKindRegistry(target);
3102
3111
  const provisioning = await ensureIdentitySchemaStorage(backend, schema, {
3103
3112
  graphId: target.id,
@@ -3298,5 +3307,5 @@ exports.serializeSchema = serializeSchema;
3298
3307
  exports.serializeSchemaProperties = serializeSchemaProperties;
3299
3308
  exports.stripGraphExtension = stripGraphExtension;
3300
3309
  exports.subClassOf = subClassOf;
3301
- //# sourceMappingURL=chunk-7CCMCMJO.cjs.map
3302
- //# sourceMappingURL=chunk-7CCMCMJO.cjs.map
3310
+ //# sourceMappingURL=chunk-JHRUZ73O.cjs.map
3311
+ //# sourceMappingURL=chunk-JHRUZ73O.cjs.map