@nicia-ai/typegraph 0.46.0 → 0.46.2

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 (267) hide show
  1. package/dist/backend/drizzle/indexes.cjs +9 -9
  2. package/dist/backend/drizzle/indexes.d.cts +1 -1
  3. package/dist/backend/drizzle/indexes.d.ts +1 -1
  4. package/dist/backend/drizzle/indexes.js +5 -5
  5. package/dist/backend/index.cjs +49 -49
  6. package/dist/backend/index.d.cts +3 -3
  7. package/dist/backend/index.d.ts +3 -3
  8. package/dist/backend/index.js +10 -10
  9. package/dist/backend/postgres/index.cjs +26 -26
  10. package/dist/backend/postgres/index.d.cts +6 -6
  11. package/dist/backend/postgres/index.d.ts +6 -6
  12. package/dist/backend/postgres/index.js +13 -13
  13. package/dist/backend/postgres/pglite-store.cjs +33 -33
  14. package/dist/backend/postgres/pglite-store.d.cts +8 -8
  15. package/dist/backend/postgres/pglite-store.d.ts +8 -8
  16. package/dist/backend/postgres/pglite-store.js +29 -29
  17. package/dist/backend/postgres/pglite.cjs +15 -15
  18. package/dist/backend/postgres/pglite.d.cts +3 -3
  19. package/dist/backend/postgres/pglite.d.ts +3 -3
  20. package/dist/backend/postgres/pglite.js +14 -14
  21. package/dist/backend/sqlite/index.cjs +23 -23
  22. package/dist/backend/sqlite/index.d.cts +6 -6
  23. package/dist/backend/sqlite/index.d.ts +6 -6
  24. package/dist/backend/sqlite/index.js +11 -11
  25. package/dist/backend/sqlite/libsql.cjs +18 -18
  26. package/dist/backend/sqlite/libsql.d.cts +3 -3
  27. package/dist/backend/sqlite/libsql.d.ts +3 -3
  28. package/dist/backend/sqlite/libsql.js +13 -13
  29. package/dist/backend/sqlite/local-store.cjs +34 -34
  30. package/dist/backend/sqlite/local-store.d.cts +8 -8
  31. package/dist/backend/sqlite/local-store.d.ts +8 -8
  32. package/dist/backend/sqlite/local-store.js +30 -30
  33. package/dist/backend/sqlite/local.cjs +16 -16
  34. package/dist/backend/sqlite/local.d.cts +3 -3
  35. package/dist/backend/sqlite/local.d.ts +3 -3
  36. package/dist/backend/sqlite/local.js +14 -14
  37. package/dist/{chunk-VCRRKBLN.cjs → chunk-2ZWM2RFH.cjs} +9 -9
  38. package/dist/{chunk-VCRRKBLN.cjs.map → chunk-2ZWM2RFH.cjs.map} +1 -1
  39. package/dist/{chunk-TTAITEPJ.cjs → chunk-32UETY6S.cjs} +26 -26
  40. package/dist/chunk-32UETY6S.cjs.map +1 -0
  41. package/dist/{chunk-JXA2ZP2Q.js → chunk-36LIJXWC.js} +4 -4
  42. package/dist/{chunk-JXA2ZP2Q.js.map → chunk-36LIJXWC.js.map} +1 -1
  43. package/dist/{chunk-Q7Q4WSLJ.cjs → chunk-5PDSCELM.cjs} +18 -14
  44. package/dist/chunk-5PDSCELM.cjs.map +1 -0
  45. package/dist/{chunk-775A4ZMN.js → chunk-5ZJOB5YS.js} +4 -4
  46. package/dist/{chunk-775A4ZMN.js.map → chunk-5ZJOB5YS.js.map} +1 -1
  47. package/dist/{chunk-J3WZ3FA2.js → chunk-62ZXBMSD.js} +24 -3
  48. package/dist/chunk-62ZXBMSD.js.map +1 -0
  49. package/dist/{chunk-7BQXPCGN.cjs → chunk-6BD6ZBKT.cjs} +10 -10
  50. package/dist/{chunk-7BQXPCGN.cjs.map → chunk-6BD6ZBKT.cjs.map} +1 -1
  51. package/dist/chunk-6LAXM4J2.cjs +12 -0
  52. package/dist/{chunk-VQH4VAWD.cjs.map → chunk-6LAXM4J2.cjs.map} +1 -1
  53. package/dist/{chunk-MSY7FSX4.js → chunk-72WUT4GG.js} +4 -4
  54. package/dist/{chunk-MSY7FSX4.js.map → chunk-72WUT4GG.js.map} +1 -1
  55. package/dist/chunk-73MWKDFK.cjs +12 -0
  56. package/dist/{chunk-A4OC4DVN.cjs.map → chunk-73MWKDFK.cjs.map} +1 -1
  57. package/dist/{chunk-BKCUOV7A.js → chunk-7TKNK32B.js} +5 -5
  58. package/dist/{chunk-BKCUOV7A.js.map → chunk-7TKNK32B.js.map} +1 -1
  59. package/dist/{chunk-JIVMTW7W.js → chunk-A2LJG5GM.js} +9 -9
  60. package/dist/{chunk-JIVMTW7W.js.map → chunk-A2LJG5GM.js.map} +1 -1
  61. package/dist/{chunk-XMQSEJCF.cjs → chunk-A4R3H7RU.cjs} +237 -237
  62. package/dist/{chunk-XMQSEJCF.cjs.map → chunk-A4R3H7RU.cjs.map} +1 -1
  63. package/dist/{chunk-RMQLSPA2.cjs → chunk-A7NMUYEL.cjs} +27 -27
  64. package/dist/{chunk-RMQLSPA2.cjs.map → chunk-A7NMUYEL.cjs.map} +1 -1
  65. package/dist/{chunk-U63GDNRC.cjs → chunk-AF3TWL5C.cjs} +4 -4
  66. package/dist/{chunk-U63GDNRC.cjs.map → chunk-AF3TWL5C.cjs.map} +1 -1
  67. package/dist/{chunk-XBYVV3MP.cjs → chunk-ANKOXPCC.cjs} +4 -4
  68. package/dist/chunk-ANKOXPCC.cjs.map +1 -0
  69. package/dist/{chunk-OH5E5KIO.js → chunk-AT3MLMJV.js} +10 -10
  70. package/dist/{chunk-OH5E5KIO.js.map → chunk-AT3MLMJV.js.map} +1 -1
  71. package/dist/{chunk-UV3SN74I.js → chunk-AU3IJNNP.js} +5 -5
  72. package/dist/{chunk-UV3SN74I.js.map → chunk-AU3IJNNP.js.map} +1 -1
  73. package/dist/{chunk-YAAM3M2S.cjs → chunk-BEB4OFZF.cjs} +10 -10
  74. package/dist/{chunk-YAAM3M2S.cjs.map → chunk-BEB4OFZF.cjs.map} +1 -1
  75. package/dist/{chunk-7GT72YHH.cjs → chunk-BQM5P2NO.cjs} +169 -167
  76. package/dist/chunk-BQM5P2NO.cjs.map +1 -0
  77. package/dist/{chunk-YWGVVALJ.js → chunk-BRN3RGD2.js} +3 -3
  78. package/dist/{chunk-YWGVVALJ.js.map → chunk-BRN3RGD2.js.map} +1 -1
  79. package/dist/{chunk-UDISNXDL.cjs → chunk-BZZI7B43.cjs} +47 -47
  80. package/dist/{chunk-UDISNXDL.cjs.map → chunk-BZZI7B43.cjs.map} +1 -1
  81. package/dist/{chunk-TQR4KBY2.cjs → chunk-C2ZP5YS6.cjs} +135 -133
  82. package/dist/chunk-C2ZP5YS6.cjs.map +1 -0
  83. package/dist/{chunk-PNN7RHVR.cjs → chunk-C4DYN2SD.cjs} +48 -48
  84. package/dist/{chunk-PNN7RHVR.cjs.map → chunk-C4DYN2SD.cjs.map} +1 -1
  85. package/dist/{chunk-XDF2UPEQ.cjs → chunk-C6KE2HSQ.cjs} +1364 -1311
  86. package/dist/chunk-C6KE2HSQ.cjs.map +1 -0
  87. package/dist/{chunk-LBJKZXDE.cjs → chunk-D6GCNNMK.cjs} +10 -10
  88. package/dist/{chunk-LBJKZXDE.cjs.map → chunk-D6GCNNMK.cjs.map} +1 -1
  89. package/dist/{chunk-JZUR7ZWE.js → chunk-DSAWGCMP.js} +3 -3
  90. package/dist/{chunk-JZUR7ZWE.js.map → chunk-DSAWGCMP.js.map} +1 -1
  91. package/dist/{chunk-U5SON7R2.cjs → chunk-DYPRZ53S.cjs} +27 -27
  92. package/dist/{chunk-U5SON7R2.cjs.map → chunk-DYPRZ53S.cjs.map} +1 -1
  93. package/dist/{chunk-YVWGEQJE.cjs → chunk-E4OSGBCM.cjs} +139 -133
  94. package/dist/chunk-E4OSGBCM.cjs.map +1 -0
  95. package/dist/{chunk-YDFDBE6D.js → chunk-EAMVXR5B.js} +4 -4
  96. package/dist/{chunk-YDFDBE6D.js.map → chunk-EAMVXR5B.js.map} +1 -1
  97. package/dist/{chunk-NQ6BRJBE.js → chunk-EDHV4CBU.js} +8 -8
  98. package/dist/{chunk-NQ6BRJBE.js.map → chunk-EDHV4CBU.js.map} +1 -1
  99. package/dist/{chunk-DCQVHAYQ.js → chunk-EDJDDY6H.js} +4 -4
  100. package/dist/{chunk-DCQVHAYQ.js.map → chunk-EDJDDY6H.js.map} +1 -1
  101. package/dist/{chunk-5262ZMTR.js → chunk-EJSYWAEV.js} +5 -5
  102. package/dist/{chunk-5262ZMTR.js.map → chunk-EJSYWAEV.js.map} +1 -1
  103. package/dist/{chunk-N3257XE6.cjs → chunk-F36KZDFX.cjs} +91 -91
  104. package/dist/{chunk-N3257XE6.cjs.map → chunk-F36KZDFX.cjs.map} +1 -1
  105. package/dist/{chunk-AKLS3BYZ.js → chunk-FA6Z7B5L.js} +3 -3
  106. package/dist/chunk-FA6Z7B5L.js.map +1 -0
  107. package/dist/{chunk-ASTI57H3.js → chunk-FCIZNUW5.js} +3 -3
  108. package/dist/{chunk-ASTI57H3.js.map → chunk-FCIZNUW5.js.map} +1 -1
  109. package/dist/{chunk-CBTIUB76.js → chunk-FSLTU57P.js} +3 -3
  110. package/dist/{chunk-CBTIUB76.js.map → chunk-FSLTU57P.js.map} +1 -1
  111. package/dist/{chunk-2LG2XB2M.js → chunk-FXNHZFZV.js} +3 -3
  112. package/dist/{chunk-2LG2XB2M.js.map → chunk-FXNHZFZV.js.map} +1 -1
  113. package/dist/{chunk-BSFJMMV3.cjs → chunk-GVAMRRZR.cjs} +4 -4
  114. package/dist/{chunk-BSFJMMV3.cjs.map → chunk-GVAMRRZR.cjs.map} +1 -1
  115. package/dist/{chunk-CNV4TXJG.js → chunk-GWUWRZXW.js} +3 -3
  116. package/dist/{chunk-CNV4TXJG.js.map → chunk-GWUWRZXW.js.map} +1 -1
  117. package/dist/{chunk-C23WSN5E.js → chunk-GWXXHOLU.js} +20 -14
  118. package/dist/chunk-GWXXHOLU.js.map +1 -0
  119. package/dist/{chunk-ONU3HIED.cjs → chunk-HNYLMPQQ.cjs} +68 -68
  120. package/dist/{chunk-ONU3HIED.cjs.map → chunk-HNYLMPQQ.cjs.map} +1 -1
  121. package/dist/{chunk-NMWDXFPH.js → chunk-IHRDX7K6.js} +4 -4
  122. package/dist/{chunk-NMWDXFPH.js.map → chunk-IHRDX7K6.js.map} +1 -1
  123. package/dist/{chunk-VGTJPTIC.js → chunk-JCNTKRAK.js} +5 -5
  124. package/dist/{chunk-VGTJPTIC.js.map → chunk-JCNTKRAK.js.map} +1 -1
  125. package/dist/{chunk-MXJDTH5B.cjs → chunk-JL5UEBWT.cjs} +45 -45
  126. package/dist/{chunk-MXJDTH5B.cjs.map → chunk-JL5UEBWT.cjs.map} +1 -1
  127. package/dist/{chunk-QLRESYPU.js → chunk-KA4L2NZ3.js} +14 -14
  128. package/dist/{chunk-QLRESYPU.js.map → chunk-KA4L2NZ3.js.map} +1 -1
  129. package/dist/{chunk-NI72YOJB.cjs → chunk-KCH7WQA5.cjs} +24 -2
  130. package/dist/chunk-KCH7WQA5.cjs.map +1 -0
  131. package/dist/{chunk-2NA5DYLO.cjs → chunk-KOAI3KIV.cjs} +4 -4
  132. package/dist/{chunk-2NA5DYLO.cjs.map → chunk-KOAI3KIV.cjs.map} +1 -1
  133. package/dist/{chunk-7VQXLT5O.js → chunk-KXSMF6PL.js} +101 -25
  134. package/dist/chunk-KXSMF6PL.js.map +1 -0
  135. package/dist/{chunk-WEVQJ5LH.js → chunk-LHYSY6SE.js} +6 -6
  136. package/dist/chunk-LHYSY6SE.js.map +1 -0
  137. package/dist/{chunk-WDGA7IYB.js → chunk-LNIWCQR4.js} +3 -3
  138. package/dist/{chunk-WDGA7IYB.js.map → chunk-LNIWCQR4.js.map} +1 -1
  139. package/dist/{chunk-XNSI2FJO.cjs → chunk-N3QTGPC7.cjs} +99 -99
  140. package/dist/{chunk-XNSI2FJO.cjs.map → chunk-N3QTGPC7.cjs.map} +1 -1
  141. package/dist/{chunk-K5ELX2GT.js → chunk-OZJCH7ZS.js} +3 -3
  142. package/dist/{chunk-K5ELX2GT.js.map → chunk-OZJCH7ZS.js.map} +1 -1
  143. package/dist/{chunk-62ZP23AW.cjs → chunk-PYKF7UIL.cjs} +13 -13
  144. package/dist/{chunk-62ZP23AW.cjs.map → chunk-PYKF7UIL.cjs.map} +1 -1
  145. package/dist/{chunk-PQBQG7IM.js → chunk-QOJ2L2AD.js} +3 -3
  146. package/dist/{chunk-PQBQG7IM.js.map → chunk-QOJ2L2AD.js.map} +1 -1
  147. package/dist/{chunk-XNLIZYRZ.cjs → chunk-QPOQX2DI.cjs} +235 -235
  148. package/dist/{chunk-XNLIZYRZ.cjs.map → chunk-QPOQX2DI.cjs.map} +1 -1
  149. package/dist/{chunk-NFCVHQ5P.cjs → chunk-QU7QLJA4.cjs} +26 -26
  150. package/dist/{chunk-NFCVHQ5P.cjs.map → chunk-QU7QLJA4.cjs.map} +1 -1
  151. package/dist/{chunk-DLNROMQ7.js → chunk-R7EWHKID.js} +7 -4
  152. package/dist/chunk-R7EWHKID.js.map +1 -0
  153. package/dist/{chunk-HFHTMECK.js → chunk-RFDEYLIK.js} +7 -7
  154. package/dist/{chunk-HFHTMECK.js.map → chunk-RFDEYLIK.js.map} +1 -1
  155. package/dist/{chunk-MUK4BU7K.cjs → chunk-RHDOAQCT.cjs} +200 -124
  156. package/dist/chunk-RHDOAQCT.cjs.map +1 -0
  157. package/dist/{chunk-YBFHZUXX.js → chunk-S3G5VLSW.js} +6 -6
  158. package/dist/{chunk-YBFHZUXX.js.map → chunk-S3G5VLSW.js.map} +1 -1
  159. package/dist/{chunk-M4BDU5RX.cjs → chunk-S7WIRFNS.cjs} +12 -12
  160. package/dist/{chunk-M4BDU5RX.cjs.map → chunk-S7WIRFNS.cjs.map} +1 -1
  161. package/dist/{chunk-T4XNKYXB.js → chunk-SXWLLQ3D.js} +4 -4
  162. package/dist/{chunk-T4XNKYXB.js.map → chunk-SXWLLQ3D.js.map} +1 -1
  163. package/dist/{chunk-NK5Q7UNE.cjs → chunk-TCT66A7N.cjs} +10 -10
  164. package/dist/{chunk-NK5Q7UNE.cjs.map → chunk-TCT66A7N.cjs.map} +1 -1
  165. package/dist/{chunk-3DHZCOT7.cjs → chunk-UTVQPZPN.cjs} +20 -20
  166. package/dist/{chunk-3DHZCOT7.cjs.map → chunk-UTVQPZPN.cjs.map} +1 -1
  167. package/dist/{chunk-CXBHOOIQ.cjs → chunk-WA64ZSCA.cjs} +11 -11
  168. package/dist/{chunk-CXBHOOIQ.cjs.map → chunk-WA64ZSCA.cjs.map} +1 -1
  169. package/dist/{chunk-QWX5YA3K.js → chunk-WEJHA7AD.js} +18 -16
  170. package/dist/chunk-WEJHA7AD.js.map +1 -0
  171. package/dist/{chunk-5UVRGXD3.js → chunk-WHS2Y43J.js} +5 -5
  172. package/dist/{chunk-5UVRGXD3.js.map → chunk-WHS2Y43J.js.map} +1 -1
  173. package/dist/{chunk-I5MOXA4H.js → chunk-WMKEGJG4.js} +3 -3
  174. package/dist/{chunk-I5MOXA4H.js.map → chunk-WMKEGJG4.js.map} +1 -1
  175. package/dist/{chunk-5763DULU.js → chunk-WYFB7BN3.js} +16 -14
  176. package/dist/chunk-WYFB7BN3.js.map +1 -0
  177. package/dist/{chunk-XQSCL77R.cjs → chunk-XBHRKLZU.cjs} +4 -4
  178. package/dist/{chunk-XQSCL77R.cjs.map → chunk-XBHRKLZU.cjs.map} +1 -1
  179. package/dist/{chunk-7Z5OR7KO.js → chunk-YQ4JONWE.js} +102 -49
  180. package/dist/chunk-YQ4JONWE.js.map +1 -0
  181. package/dist/{chunk-RJS7DECT.js → chunk-Z43KWLZF.js} +8 -8
  182. package/dist/{chunk-RJS7DECT.js.map → chunk-Z43KWLZF.js.map} +1 -1
  183. package/dist/{chunk-E4WNQBEF.cjs → chunk-ZBVZ7HXD.cjs} +12 -12
  184. package/dist/{chunk-E4WNQBEF.cjs.map → chunk-ZBVZ7HXD.cjs.map} +1 -1
  185. package/dist/{chunk-4UGOKMI5.cjs → chunk-ZHOAZD7Q.cjs} +161 -161
  186. package/dist/{chunk-4UGOKMI5.cjs.map → chunk-ZHOAZD7Q.cjs.map} +1 -1
  187. package/dist/{chunk-XCAGZAKP.cjs → chunk-ZIH42CRX.cjs} +7 -7
  188. package/dist/{chunk-XCAGZAKP.cjs.map → chunk-ZIH42CRX.cjs.map} +1 -1
  189. package/dist/core/index.cjs +27 -27
  190. package/dist/core/index.d.cts +4 -4
  191. package/dist/core/index.d.ts +4 -4
  192. package/dist/core/index.js +7 -7
  193. package/dist/{ddl-BJcOp4WZ.d.cts → ddl-mE07h_EM.d.cts} +3 -3
  194. package/dist/{ddl-BXfGHbPN.d.ts → ddl-opIn8DfX.d.ts} +3 -3
  195. package/dist/graph-extension/index.cjs +20 -20
  196. package/dist/graph-extension/index.d.cts +4 -4
  197. package/dist/graph-extension/index.d.ts +4 -4
  198. package/dist/graph-extension/index.js +4 -4
  199. package/dist/graph-merge/index.cjs +248 -248
  200. package/dist/graph-merge/index.d.cts +8 -8
  201. package/dist/graph-merge/index.d.ts +8 -8
  202. package/dist/graph-merge/index.js +24 -24
  203. package/dist/{index-DxaYCv8Y.d.cts → index-Deyu8IXL.d.ts} +20 -3
  204. package/dist/{index-BSHvKfok.d.ts → index-DrRS51Ld.d.cts} +20 -3
  205. package/dist/index.cjs +219 -215
  206. package/dist/index.d.cts +11 -11
  207. package/dist/index.d.ts +11 -11
  208. package/dist/index.js +34 -34
  209. package/dist/indexes/index.cjs +13 -13
  210. package/dist/indexes/index.d.cts +4 -4
  211. package/dist/indexes/index.d.ts +4 -4
  212. package/dist/indexes/index.js +6 -6
  213. package/dist/interchange/index.cjs +52 -52
  214. package/dist/interchange/index.d.cts +7 -7
  215. package/dist/interchange/index.d.ts +7 -7
  216. package/dist/interchange/index.js +16 -16
  217. package/dist/{manager-CfZAimti.d.ts → manager-DX983gJ0.d.ts} +2 -2
  218. package/dist/{manager-HGk6E_HW.d.cts → manager-ptr3JLRP.d.cts} +2 -2
  219. package/dist/{materialize-indexes-6A7dWGtb.d.cts → materialize-indexes-BXz77YqO.d.cts} +1 -1
  220. package/dist/{materialize-indexes-BMJP6Tms.d.ts → materialize-indexes-CpXoggWU.d.ts} +1 -1
  221. package/dist/{postgres-DFYWENdR.d.cts → postgres-DwgEXSPI.d.cts} +1 -1
  222. package/dist/{postgres-e7a9TdvR.d.ts → postgres-QdOMHTBz.d.ts} +1 -1
  223. package/dist/profiler/index.d.cts +9 -9
  224. package/dist/profiler/index.d.ts +9 -9
  225. package/dist/provenance/index.cjs +42 -42
  226. package/dist/provenance/index.d.cts +7 -7
  227. package/dist/provenance/index.d.ts +7 -7
  228. package/dist/provenance/index.js +9 -9
  229. package/dist/schema/index.cjs +44 -44
  230. package/dist/schema/index.d.cts +6 -6
  231. package/dist/schema/index.d.ts +6 -6
  232. package/dist/schema/index.js +17 -17
  233. package/dist/{searchable-9OQoPuRs.d.ts → searchable-BOUuA83f.d.ts} +1 -1
  234. package/dist/{searchable-CIje5XYD.d.cts → searchable-BrUh0pdc.d.cts} +1 -1
  235. package/dist/{sqlite-DerU5tc7.d.ts → sqlite-BfYcV61E.d.cts} +1 -1
  236. package/dist/{sqlite-DitnISa9.d.cts → sqlite-DK40XVR1.d.ts} +1 -1
  237. package/dist/{store-DawaWWjJ.d.ts → store-Bo1psfVZ.d.ts} +27 -8
  238. package/dist/{store-RwTJx8LX.d.cts → store-FTqBpuJD.d.cts} +27 -8
  239. package/dist/{temporal-Bn-Fi8FJ.d.cts → temporal-CXewwLTB.d.cts} +1 -1
  240. package/dist/{temporal-BtM4UALv.d.ts → temporal-DPtn0HOu.d.ts} +1 -1
  241. package/dist/{types-KFfk-8Ah.d.ts → types-CeT7xM4M.d.ts} +1 -1
  242. package/dist/{types-HkveCCx0.d.cts → types-Du78EvpN.d.cts} +7 -6
  243. package/dist/{types-HkveCCx0.d.ts → types-Du78EvpN.d.ts} +7 -6
  244. package/dist/{types-CoIx8HX5.d.cts → types-XR1nHERK.d.cts} +1 -1
  245. package/dist/{where--fk7_0kv.d.cts → where-CJsp-YUf.d.cts} +1 -1
  246. package/dist/{where-ws5hf-Ov.d.ts → where-CMbFiWwp.d.ts} +1 -1
  247. package/package.json +3 -3
  248. package/dist/chunk-5763DULU.js.map +0 -1
  249. package/dist/chunk-7GT72YHH.cjs.map +0 -1
  250. package/dist/chunk-7VQXLT5O.js.map +0 -1
  251. package/dist/chunk-7Z5OR7KO.js.map +0 -1
  252. package/dist/chunk-A4OC4DVN.cjs +0 -12
  253. package/dist/chunk-AKLS3BYZ.js.map +0 -1
  254. package/dist/chunk-C23WSN5E.js.map +0 -1
  255. package/dist/chunk-DLNROMQ7.js.map +0 -1
  256. package/dist/chunk-J3WZ3FA2.js.map +0 -1
  257. package/dist/chunk-MUK4BU7K.cjs.map +0 -1
  258. package/dist/chunk-NI72YOJB.cjs.map +0 -1
  259. package/dist/chunk-Q7Q4WSLJ.cjs.map +0 -1
  260. package/dist/chunk-QWX5YA3K.js.map +0 -1
  261. package/dist/chunk-TQR4KBY2.cjs.map +0 -1
  262. package/dist/chunk-TTAITEPJ.cjs.map +0 -1
  263. package/dist/chunk-VQH4VAWD.cjs +0 -12
  264. package/dist/chunk-WEVQJ5LH.js.map +0 -1
  265. package/dist/chunk-XBYVV3MP.cjs.map +0 -1
  266. package/dist/chunk-XDF2UPEQ.cjs.map +0 -1
  267. package/dist/chunk-YVWGEQJE.cjs.map +0 -1
@@ -1,28 +1,28 @@
1
1
  'use strict';
2
2
 
3
- var chunkNK5Q7UNE_cjs = require('./chunk-NK5Q7UNE.cjs');
4
- var chunkXNLIZYRZ_cjs = require('./chunk-XNLIZYRZ.cjs');
5
- var chunkXMQSEJCF_cjs = require('./chunk-XMQSEJCF.cjs');
3
+ var chunkTCT66A7N_cjs = require('./chunk-TCT66A7N.cjs');
4
+ var chunkQPOQX2DI_cjs = require('./chunk-QPOQX2DI.cjs');
5
+ var chunkA4R3H7RU_cjs = require('./chunk-A4R3H7RU.cjs');
6
6
  var chunkPWLJ77UV_cjs = require('./chunk-PWLJ77UV.cjs');
7
- var chunkBSFJMMV3_cjs = require('./chunk-BSFJMMV3.cjs');
8
- var chunkNFCVHQ5P_cjs = require('./chunk-NFCVHQ5P.cjs');
9
- var chunkCXBHOOIQ_cjs = require('./chunk-CXBHOOIQ.cjs');
10
- var chunkE4WNQBEF_cjs = require('./chunk-E4WNQBEF.cjs');
11
- var chunkQ7Q4WSLJ_cjs = require('./chunk-Q7Q4WSLJ.cjs');
12
- var chunkU63GDNRC_cjs = require('./chunk-U63GDNRC.cjs');
7
+ var chunkGVAMRRZR_cjs = require('./chunk-GVAMRRZR.cjs');
8
+ var chunkQU7QLJA4_cjs = require('./chunk-QU7QLJA4.cjs');
9
+ var chunkWA64ZSCA_cjs = require('./chunk-WA64ZSCA.cjs');
10
+ var chunkZBVZ7HXD_cjs = require('./chunk-ZBVZ7HXD.cjs');
11
+ var chunk5PDSCELM_cjs = require('./chunk-5PDSCELM.cjs');
12
+ var chunkAF3TWL5C_cjs = require('./chunk-AF3TWL5C.cjs');
13
13
  var chunkZY4GXIVN_cjs = require('./chunk-ZY4GXIVN.cjs');
14
- var chunkVCRRKBLN_cjs = require('./chunk-VCRRKBLN.cjs');
14
+ var chunk2ZWM2RFH_cjs = require('./chunk-2ZWM2RFH.cjs');
15
15
  var chunkHAHNRASW_cjs = require('./chunk-HAHNRASW.cjs');
16
- var chunk7BQXPCGN_cjs = require('./chunk-7BQXPCGN.cjs');
16
+ var chunk6BD6ZBKT_cjs = require('./chunk-6BD6ZBKT.cjs');
17
17
  var chunkXUO3KQFO_cjs = require('./chunk-XUO3KQFO.cjs');
18
- var chunkNI72YOJB_cjs = require('./chunk-NI72YOJB.cjs');
18
+ var chunkKCH7WQA5_cjs = require('./chunk-KCH7WQA5.cjs');
19
19
  var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
20
20
  var zod = require('zod');
21
21
 
22
22
  // src/ontology/core-meta-edges.ts
23
23
  function createMetaEdge(name, properties) {
24
24
  return Object.freeze({
25
- [chunkNK5Q7UNE_cjs.META_EDGE_BRAND]: true,
25
+ [chunkTCT66A7N_cjs.META_EDGE_BRAND]: true,
26
26
  name,
27
27
  properties: {
28
28
  transitive: properties.transitive ?? false,
@@ -350,7 +350,7 @@ function canonicalKey(value) {
350
350
  }
351
351
  function sortedByCanonicalForm(items) {
352
352
  return items.toSorted(
353
- (left, right) => chunkXMQSEJCF_cjs.compareStrings(canonicalKey(left), canonicalKey(right))
353
+ (left, right) => chunkA4R3H7RU_cjs.compareStrings(canonicalKey(left), canonicalKey(right))
354
354
  );
355
355
  }
356
356
  function orderNormalizedSchema(value) {
@@ -932,7 +932,7 @@ function serializeSchema(graph, version) {
932
932
  return {
933
933
  graphId: graph.id,
934
934
  version,
935
- generatedAt: chunkQ7Q4WSLJ_cjs.nowIso(),
935
+ generatedAt: chunk5PDSCELM_cjs.nowIso(),
936
936
  nodes,
937
937
  edges,
938
938
  ontology,
@@ -964,7 +964,7 @@ function serializeDeprecatedKinds(set) {
964
964
  function canonicalExtension(document) {
965
965
  if (document === void 0) return void 0;
966
966
  if (document.version === void 0) return document;
967
- if (document.version !== chunk7BQXPCGN_cjs.LEGACY_GRAPH_EXTENSION_VERSION) return document;
967
+ if (document.version !== chunk6BD6ZBKT_cjs.LEGACY_GRAPH_EXTENSION_VERSION) return document;
968
968
  const { version: _omit, ...rest } = document;
969
969
  return rest;
970
970
  }
@@ -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 chunkCXBHOOIQ_cjs.getNodeKinds(graph)) {
1053
+ for (const kindName of chunkWA64ZSCA_cjs.getNodeKinds(graph)) {
1054
1054
  const registration = graph.nodes[kindName];
1055
1055
  if (registration === void 0) continue;
1056
1056
  result[kindName] = serializeNodeDef(registration);
@@ -1079,9 +1079,9 @@ function serializeUniqueConstraints(constraints) {
1079
1079
  }));
1080
1080
  }
1081
1081
  function serializeWherePredicate(whereFunction) {
1082
- const predicate = chunkE4WNQBEF_cjs.captureWherePredicate(whereFunction);
1082
+ const predicate = chunkZBVZ7HXD_cjs.captureWherePredicate(whereFunction);
1083
1083
  if (predicate === void 0) {
1084
- throw new chunkNI72YOJB_cjs.ConfigurationError(
1084
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
1085
1085
  `A unique constraint's \`where\` callback did not return a predicate, so it cannot be persisted.`,
1086
1086
  {},
1087
1087
  {
@@ -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 chunkCXBHOOIQ_cjs.getEdgeKinds(graph)) {
1111
+ for (const kindName of chunkWA64ZSCA_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: chunkNK5Q7UNE_cjs.getTypeName(relation.from),
1169
- to: chunkNK5Q7UNE_cjs.getTypeName(relation.to)
1168
+ from: chunkTCT66A7N_cjs.getTypeName(relation.from),
1169
+ to: chunkTCT66A7N_cjs.getTypeName(relation.to)
1170
1170
  };
1171
1171
  }
1172
1172
  function serializeClosures(relations) {
@@ -1186,7 +1186,7 @@ function serializeClosures(relations) {
1186
1186
  edgeImplyingClosure: {}
1187
1187
  };
1188
1188
  }
1189
- const computed = chunk7BQXPCGN_cjs.computeClosuresFromOntology(relations);
1189
+ const computed = chunk6BD6ZBKT_cjs.computeClosuresFromOntology(relations);
1190
1190
  return {
1191
1191
  subClassAncestors: mapToRecord(computed.subClassAncestors),
1192
1192
  subClassDescendants: mapToRecord(computed.subClassDescendants),
@@ -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 = chunkNK5Q7UNE_cjs.defineNode(
1303
+ const type = chunkTCT66A7N_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}|${chunkNK5Q7UNE_cjs.getTypeName(relation.from)}|${chunkNK5Q7UNE_cjs.getTypeName(relation.to)}`;
1481
+ return `${relation.metaEdge.name}|${chunkTCT66A7N_cjs.getTypeName(relation.from)}|${chunkTCT66A7N_cjs.getTypeName(relation.to)}`;
1482
1482
  }
1483
1483
  function buildGraphExtensionOntologyKeySet(document) {
1484
1484
  return new Set(
@@ -1499,7 +1499,7 @@ function mergeGraphExtension(graph, document) {
1499
1499
  if (graph.extension !== void 0 && chunkPWLJ77UV_cjs.canonicalEqual(unionDocument, existingDocument)) {
1500
1500
  return graph;
1501
1501
  }
1502
- const validatedUnion = chunk7BQXPCGN_cjs.unwrap(chunk7BQXPCGN_cjs.validateGraphExtension(unionDocument));
1502
+ const validatedUnion = chunk6BD6ZBKT_cjs.unwrap(chunk6BD6ZBKT_cjs.validateGraphExtension(unionDocument));
1503
1503
  const compiled = compileGraphExtension(validatedUnion);
1504
1504
  const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = extensionKindNames(existingDocument);
1505
1505
  const nodeKinds = /* @__PURE__ */ new Map();
@@ -1549,7 +1549,7 @@ function mergeGraphExtension(graph, document) {
1549
1549
  edgeKind: edge.kindName,
1550
1550
  side: "to"
1551
1551
  });
1552
- const type = chunkNK5Q7UNE_cjs.defineEdge(
1552
+ const type = chunkTCT66A7N_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 chunkCXBHOOIQ_cjs.autoDeriveVectorIndexes(registrations).map(
1604
+ return chunkWA64ZSCA_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 = chunkCXBHOOIQ_cjs.mergeVectorIndexes(compileTimeIndexes, runtimeVectors);
1622
+ const vectorMerged = chunkWA64ZSCA_cjs.mergeVectorIndexes(compileTimeIndexes, runtimeVectors);
1623
1623
  const merged = [...vectorMerged, ...runtimeRelational];
1624
1624
  assertUniqueIndexNames(merged, graphId);
1625
1625
  return merged;
@@ -1631,7 +1631,7 @@ function assertUniqueIndexNames(indexes, graphId) {
1631
1631
  seen.add(index.name);
1632
1632
  continue;
1633
1633
  }
1634
- throw new chunkNI72YOJB_cjs.ConfigurationError(
1634
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
1635
1635
  `Duplicate index name "${index.name}" after merging graph extension into graph "${graphId}". Index names must be unique within a graph.`,
1636
1636
  { graphId, indexName: index.name, code: "DUPLICATE_INDEX_NAME" },
1637
1637
  {
@@ -1647,12 +1647,12 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
1647
1647
  if (document.entity === "node") {
1648
1648
  const node = nodeKinds.get(document.kind);
1649
1649
  if (node === void 0) {
1650
- throw new chunkNI72YOJB_cjs.KindNotFoundError(document.kind, "node", {
1650
+ throw new chunkKCH7WQA5_cjs.KindNotFoundError(document.kind, "node", {
1651
1651
  graphId,
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 = chunkU63GDNRC_cjs.defineNodeIndex(
1655
+ const declaration2 = chunkAF3TWL5C_cjs.defineNodeIndex(
1656
1656
  node,
1657
1657
  toNodeIndexConfig(document)
1658
1658
  );
@@ -1661,12 +1661,12 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
1661
1661
  }
1662
1662
  const edgeRegistration = mergedEdges[document.kind];
1663
1663
  if (edgeRegistration === void 0) {
1664
- throw new chunkNI72YOJB_cjs.KindNotFoundError(document.kind, "edge", {
1664
+ throw new chunkKCH7WQA5_cjs.KindNotFoundError(document.kind, "edge", {
1665
1665
  graphId,
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 = chunkU63GDNRC_cjs.defineEdgeIndex(
1669
+ const declaration = chunkAF3TWL5C_cjs.defineEdgeIndex(
1670
1670
  edgeRegistration.type,
1671
1671
  toEdgeIndexConfig(document)
1672
1672
  );
@@ -1678,7 +1678,7 @@ function buildWhereCallback(where) {
1678
1678
  return (props) => {
1679
1679
  const builder = props[where.field];
1680
1680
  if (builder === void 0) {
1681
- throw new chunkNI72YOJB_cjs.ConfigurationError(
1681
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
1682
1682
  `Graph-extension index \`where\` references unknown field "${where.field}".`,
1683
1683
  { field: where.field, code: "EXTENSION_INDEX_WHERE_UNKNOWN_FIELD" }
1684
1684
  );
@@ -1753,14 +1753,14 @@ function isEmptyExtension(extension) {
1753
1753
  }
1754
1754
  function assertNoCollision(kindName, entity, collides, graphId) {
1755
1755
  if (!collides) return;
1756
- throw new chunk7BQXPCGN_cjs.KindCollisionError(kindName, entity, graphId);
1756
+ throw new chunk6BD6ZBKT_cjs.KindCollisionError(kindName, entity, graphId);
1757
1757
  }
1758
1758
  function resolveEndpoints(entries, nodeKinds, context) {
1759
1759
  return entries.map((entry) => {
1760
1760
  if (typeof entry !== "string") return entry;
1761
1761
  const resolved = nodeKinds.get(entry);
1762
1762
  if (resolved === void 0) {
1763
- throw new chunk7BQXPCGN_cjs.GraphExtensionUnresolvedEndpointError(
1763
+ throw new chunk6BD6ZBKT_cjs.GraphExtensionUnresolvedEndpointError(
1764
1764
  context.edgeKind,
1765
1765
  context.side,
1766
1766
  entry,
@@ -1795,8 +1795,8 @@ function resolveOntologyEndpoints(relation, nodeKinds, edgeKinds, graphId) {
1795
1795
  function resolveOntologyEdgeEndpoint(metaEdge, endpoint, edgeKinds, graphId) {
1796
1796
  if (typeof endpoint !== "string") return endpoint;
1797
1797
  if (Object.hasOwn(edgeKinds, endpoint)) return endpoint;
1798
- if (chunk7BQXPCGN_cjs.isExternalIri(endpoint)) return endpoint;
1799
- throw new chunk7BQXPCGN_cjs.GraphExtensionUnresolvedOntologyEndpointError(
1798
+ if (chunk6BD6ZBKT_cjs.isExternalIri(endpoint)) return endpoint;
1799
+ throw new chunk6BD6ZBKT_cjs.GraphExtensionUnresolvedOntologyEndpointError(
1800
1800
  metaEdge,
1801
1801
  endpoint,
1802
1802
  graphId
@@ -1819,10 +1819,10 @@ function planRemovals(graph, names) {
1819
1819
  );
1820
1820
  for (const name of namesSet) {
1821
1821
  if (compileTimeNodeNames.has(name)) {
1822
- throw new chunk7BQXPCGN_cjs.RemoveCompileTimeKindError(name, "node", graph.id);
1822
+ throw new chunk6BD6ZBKT_cjs.RemoveCompileTimeKindError(name, "node", graph.id);
1823
1823
  }
1824
1824
  if (compileTimeEdgeNames.has(name)) {
1825
- throw new chunk7BQXPCGN_cjs.RemoveCompileTimeKindError(name, "edge", graph.id);
1825
+ throw new chunk6BD6ZBKT_cjs.RemoveCompileTimeKindError(name, "edge", graph.id);
1826
1826
  }
1827
1827
  }
1828
1828
  const removedNodeKinds = [...namesSet].filter(
@@ -1838,7 +1838,7 @@ function planRemovals(graph, names) {
1838
1838
  for (const kindName of removedNodeKinds) {
1839
1839
  const referents = referentsByKind.get(kindName);
1840
1840
  if (referents !== void 0 && referents.length > 0) {
1841
- throw new chunk7BQXPCGN_cjs.KindHasReferentsError(kindName, referents, graph.id);
1841
+ throw new chunk6BD6ZBKT_cjs.KindHasReferentsError(kindName, referents, graph.id);
1842
1842
  }
1843
1843
  }
1844
1844
  if (document === void 0) {
@@ -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 = chunkNK5Q7UNE_cjs.getTypeName(relation.from);
1975
- const toName = chunkNK5Q7UNE_cjs.getTypeName(relation.to);
1974
+ const fromName = chunkTCT66A7N_cjs.getTypeName(relation.from);
1975
+ const toName = chunkTCT66A7N_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 chunkXNLIZYRZ_cjs.separationRebuildRequired(
2015
+ const rebuildRequired = await chunkQPOQX2DI_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 chunkBSFJMMV3_cjs.errorChain(error)) {
2086
+ for (const link of chunkGVAMRRZR_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 (chunkBSFJMMV3_cjs.isPostgresConcurrentDdlRaceError(error)) {
2098
+ if (chunkGVAMRRZR_cjs.isPostgresConcurrentDdlRaceError(error)) {
2099
2099
  throw markIdentityDdlRace(error);
2100
2100
  }
2101
2101
  throw error;
@@ -2113,14 +2113,14 @@ async function withIdentityDdlRaceRetry(attempt) {
2113
2113
  async function lockIdentityDdl(target) {
2114
2114
  if (target.dialect !== "postgres") return;
2115
2115
  await target.execute(
2116
- chunkVCRRKBLN_cjs.asCompiledRowsSql(chunkVCRRKBLN_cjs.sql`
2116
+ chunk2ZWM2RFH_cjs.asCompiledRowsSql(chunk2ZWM2RFH_cjs.sql`
2117
2117
  SELECT pg_advisory_xact_lock(hashtext(${IDENTITY_DDL_LOCK_KEY}), 0)
2118
2118
  `)
2119
2119
  );
2120
2120
  }
2121
2121
  var IDENTITY_DDL_LOCK_KEY = "typegraph:identity-ddl";
2122
2122
  function identityDerivedUpgradeUnsupportedError(graphId, missingPorts) {
2123
- return new chunkNI72YOJB_cjs.ConfigurationError(
2123
+ return new chunkKCH7WQA5_cjs.ConfigurationError(
2124
2124
  "This backend cannot publish an Operational Identity derived-relation upgrade atomically.",
2125
2125
  {
2126
2126
  code: "IDENTITY_UPGRADE_REQUIRES_ATOMIC_DDL",
@@ -2141,11 +2141,11 @@ async function identityKindCascadeNeeded(backend, schema, graphId, droppedNodeKi
2141
2141
  provisionMissing: false
2142
2142
  });
2143
2143
  if (missingTables.length > 0) return false;
2144
- return chunkXNLIZYRZ_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
2144
+ return chunkQPOQX2DI_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
2145
2145
  }
2146
2146
  function assertIdentityStoragePresent(graphId, missingTables) {
2147
2147
  if (missingTables.length === 0) return;
2148
- throw new chunkNI72YOJB_cjs.ConfigurationError(
2148
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
2149
2149
  "Operational Identity storage was missing from an already enabled graph.",
2150
2150
  {
2151
2151
  code: "IDENTITY_STORAGE_MISSING",
@@ -2164,13 +2164,13 @@ function identitySchemaCommitPreflight(ctx, options) {
2164
2164
  ctx.graphId,
2165
2165
  options.provisionDerivedRelations ?? []
2166
2166
  );
2167
- await chunkXMQSEJCF_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2168
- await chunkXNLIZYRZ_cjs.lockIdentityGraph(target, ctx.graphId);
2167
+ await chunkA4R3H7RU_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2168
+ await chunkQPOQX2DI_cjs.lockIdentityGraph(target, ctx.graphId);
2169
2169
  if (options.enablement) {
2170
- await chunkXNLIZYRZ_cjs.lockIdentityEnablementNodes(target, ctx.schema);
2171
- await chunkXMQSEJCF_cjs.withRecordedIdentityMutationTarget(
2170
+ await chunkQPOQX2DI_cjs.lockIdentityEnablementNodes(target, ctx.schema);
2171
+ await chunkA4R3H7RU_cjs.withRecordedIdentityMutationTarget(
2172
2172
  target,
2173
- (rawTarget, touch) => chunkXNLIZYRZ_cjs.purgeAssertionsWithUnregisteredKinds(
2173
+ (rawTarget, touch) => chunkQPOQX2DI_cjs.purgeAssertionsWithUnregisteredKinds(
2174
2174
  rawTarget,
2175
2175
  ctx.schema,
2176
2176
  ctx.graphId,
@@ -2181,9 +2181,9 @@ function identitySchemaCommitPreflight(ctx, options) {
2181
2181
  }
2182
2182
  const droppedNodeKinds = options.droppedNodeKinds ?? [];
2183
2183
  if (droppedNodeKinds.length > 0) {
2184
- await chunkXMQSEJCF_cjs.withRecordedIdentityMutationTarget(
2184
+ await chunkA4R3H7RU_cjs.withRecordedIdentityMutationTarget(
2185
2185
  target,
2186
- (rawTarget, touch) => chunkXNLIZYRZ_cjs.deleteAssertionsTouchingKinds(
2186
+ (rawTarget, touch) => chunkQPOQX2DI_cjs.deleteAssertionsTouchingKinds(
2187
2187
  rawTarget,
2188
2188
  ctx.schema,
2189
2189
  ctx.graphId,
@@ -2192,7 +2192,7 @@ function identitySchemaCommitPreflight(ctx, options) {
2192
2192
  )
2193
2193
  );
2194
2194
  }
2195
- await chunkXNLIZYRZ_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
2195
+ await chunkQPOQX2DI_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
2196
2196
  };
2197
2197
  }
2198
2198
  async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
@@ -2206,11 +2206,11 @@ async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
2206
2206
  }
2207
2207
  function identityKindCascadePreflight(ctx, droppedNodeKinds) {
2208
2208
  return async (target) => {
2209
- await chunkXMQSEJCF_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2210
- await chunkXNLIZYRZ_cjs.lockIdentityGraph(target, ctx.graphId);
2211
- await chunkXMQSEJCF_cjs.withRecordedIdentityMutationTarget(
2209
+ await chunkA4R3H7RU_cjs.lockRecordedGraphWrite(target, ctx.graphId);
2210
+ await chunkQPOQX2DI_cjs.lockIdentityGraph(target, ctx.graphId);
2211
+ await chunkA4R3H7RU_cjs.withRecordedIdentityMutationTarget(
2212
2212
  target,
2213
- (rawTarget, touch) => chunkXNLIZYRZ_cjs.deleteAssertionsTouchingKinds(
2213
+ (rawTarget, touch) => chunkQPOQX2DI_cjs.deleteAssertionsTouchingKinds(
2214
2214
  rawTarget,
2215
2215
  ctx.schema,
2216
2216
  ctx.graphId,
@@ -2254,7 +2254,7 @@ function assertEndpointCompatible(side, implyingEdgeKind, implyingKinds, implied
2254
2254
  (kind) => !registry.isAssignableToAny(kind, impliedKinds)
2255
2255
  );
2256
2256
  if (incompatibleKinds.length === 0) return;
2257
- throw new chunkNI72YOJB_cjs.ConfigurationError(
2257
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
2258
2258
  `implies("${implyingEdgeKind}", "${impliedEdgeKind}") is endpoint-incompatible: ${side} kind(s) [${incompatibleKinds.join(", ")}] declared on "${implyingEdgeKind}" cannot be assigned to any of "${impliedEdgeKind}"'s ${side} kind(s) [${impliedKinds.join(", ")}].`,
2259
2259
  {
2260
2260
  metaEdge: chunkXUO3KQFO_cjs.META_EDGE_IMPLIES,
@@ -2321,7 +2321,7 @@ function assertInverseSideCompatible(sourceEdge, sourceSide, sourceKinds, invers
2321
2321
  (kind) => !registry.isAssignableToAny(kind, inverseKinds)
2322
2322
  );
2323
2323
  if (incompatibleKinds.length === 0) return;
2324
- throw new chunkNI72YOJB_cjs.ConfigurationError(
2324
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
2325
2325
  `inverseOf("${sourceEdge}", "${inverseEdge}") is endpoint-incompatible: ${sourceSide} kind(s) [${incompatibleKinds.join(", ")}] declared on "${sourceEdge}" cannot be assigned to any of "${inverseEdge}"'s ${inverseSide} kind(s) [${inverseKinds.join(", ")}].`,
2326
2326
  {
2327
2327
  metaEdge: chunkXUO3KQFO_cjs.META_EDGE_INVERSE_OF,
@@ -2341,19 +2341,19 @@ function assertInverseSideCompatible(sourceEdge, sourceSide, sourceKinds, invers
2341
2341
  // src/registry/build-validated.ts
2342
2342
  function buildValidatedKindRegistry(input) {
2343
2343
  if (input.ontology.length === 0) {
2344
- const registry2 = new chunk7BQXPCGN_cjs.KindRegistry(
2344
+ const registry2 = new chunk6BD6ZBKT_cjs.KindRegistry(
2345
2345
  input.nodeKinds,
2346
2346
  input.edgeKinds,
2347
- chunk7BQXPCGN_cjs.createEmptyClosures(),
2347
+ chunk6BD6ZBKT_cjs.createEmptyClosures(),
2348
2348
  input.identity
2349
2349
  );
2350
2350
  validateImpliesEndpointCompatibility(input.edgeEndpoints, registry2);
2351
2351
  return registry2;
2352
2352
  }
2353
- const issues = chunk7BQXPCGN_cjs.validateOntologyRelations(input.ontology);
2353
+ const issues = chunk6BD6ZBKT_cjs.validateOntologyRelations(input.ontology);
2354
2354
  if (issues.length > 0) {
2355
2355
  const firstIssue = chunkN66HCGCY_cjs.requireDefined(issues[0]);
2356
- throw new chunkNI72YOJB_cjs.ConfigurationError(
2356
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
2357
2357
  `Ontology is incoherent: ${firstIssue.message}`,
2358
2358
  {
2359
2359
  code: firstIssue.code,
@@ -2364,8 +2364,8 @@ function buildValidatedKindRegistry(input) {
2364
2364
  }
2365
2365
  );
2366
2366
  }
2367
- const closures = chunk7BQXPCGN_cjs.computeClosuresFromNamedOntology(input.ontology);
2368
- const registry = new chunk7BQXPCGN_cjs.KindRegistry(
2367
+ const closures = chunk6BD6ZBKT_cjs.computeClosuresFromNamedOntology(input.ontology);
2368
+ const registry = new chunk6BD6ZBKT_cjs.KindRegistry(
2369
2369
  input.nodeKinds,
2370
2370
  input.edgeKinds,
2371
2371
  closures,
@@ -2409,7 +2409,7 @@ function buildEdgeEndpointKinds(edges) {
2409
2409
  }
2410
2410
  function extractNodeTypes(graph) {
2411
2411
  const result = /* @__PURE__ */ new Map();
2412
- for (const typeName of chunkCXBHOOIQ_cjs.getNodeKinds(graph)) {
2412
+ for (const typeName of chunkWA64ZSCA_cjs.getNodeKinds(graph)) {
2413
2413
  const registration = graph.nodes[typeName];
2414
2414
  result.set(typeName, registration.type);
2415
2415
  }
@@ -2417,7 +2417,7 @@ function extractNodeTypes(graph) {
2417
2417
  }
2418
2418
  function extractEdgeTypes(graph) {
2419
2419
  const result = /* @__PURE__ */ new Map();
2420
- for (const typeName of chunkCXBHOOIQ_cjs.getEdgeKinds(graph)) {
2420
+ for (const typeName of chunkWA64ZSCA_cjs.getEdgeKinds(graph)) {
2421
2421
  const registration = graph.edges[typeName];
2422
2422
  result.set(typeName, registration.type);
2423
2423
  }
@@ -2766,7 +2766,7 @@ function parseSerializedSchema(json) {
2766
2766
  try {
2767
2767
  parsed = JSON.parse(json);
2768
2768
  } catch {
2769
- throw new chunkNI72YOJB_cjs.DatabaseOperationError(
2769
+ throw new chunkKCH7WQA5_cjs.DatabaseOperationError(
2770
2770
  "Stored schema document is not valid JSON",
2771
2771
  { operation: "select", entity: "schema" }
2772
2772
  );
@@ -2774,7 +2774,7 @@ function parseSerializedSchema(json) {
2774
2774
  const result = serializedSchemaZod.safeParse(parsed);
2775
2775
  if (!result.success) {
2776
2776
  const issues = result.error.issues.map((issue) => `${issue.path.join(".")}: ${issue.message}`).join("; ");
2777
- throw new chunkNI72YOJB_cjs.DatabaseOperationError(
2777
+ throw new chunkKCH7WQA5_cjs.DatabaseOperationError(
2778
2778
  `Stored schema document is malformed: ${issues}`,
2779
2779
  { operation: "select", entity: "schema" }
2780
2780
  );
@@ -2791,7 +2791,7 @@ async function loadActiveSchemaWithBootstrap(backend, graphId) {
2791
2791
  try {
2792
2792
  return await backend.getActiveSchema(graphId);
2793
2793
  } catch (error) {
2794
- if (backend.bootstrapTables && chunkBSFJMMV3_cjs.isMissingTableError(error)) {
2794
+ if (backend.bootstrapTables && chunkGVAMRRZR_cjs.isMissingTableError(error)) {
2795
2795
  await backend.bootstrapTables();
2796
2796
  return await backend.getActiveSchema(graphId);
2797
2797
  }
@@ -2896,7 +2896,7 @@ async function ensureSchema(backend, graph, options) {
2896
2896
  const removesKind = [...diff.nodes, ...diff.edges].some(
2897
2897
  (change) => change.type === "removed"
2898
2898
  );
2899
- throw new chunkNI72YOJB_cjs.MigrationError(
2899
+ throw new chunkKCH7WQA5_cjs.MigrationError(
2900
2900
  `Schema migration required: ${diff.summary}. ${actions.length} migration action(s) needed. Use getSchemaChanges() to review, then migrateSchema() to apply.` + (removesKind ? ` This diff removes a kind: migrateSchema() refuses to drop one that still holds rows, so export or delete those rows first and retry.` : ""),
2901
2901
  {
2902
2902
  graphId: graph.id,
@@ -2949,7 +2949,7 @@ async function assertVectorContributionsInitialized(backend, graph) {
2949
2949
  function schemaBehindError(graphId, fromVersion, diff) {
2950
2950
  const actions = getMigrationActions(diff);
2951
2951
  const qualifier = isBackwardsCompatible(diff) ? "safe auto-migration" : "breaking change";
2952
- return new chunkNI72YOJB_cjs.MigrationError(
2952
+ return new chunkKCH7WQA5_cjs.MigrationError(
2953
2953
  `Schema verification failed for graph "${graphId}": ${diff.summary} (${qualifier}). ${actions.length} migration action(s) needed. The least-privilege runtime cannot migrate \u2014 run createStoreWithSchema(graph, adminBackend) under a privileged role (after any generated migration SQL, if you manage DDL externally) before attaching with createStore() / createVerifiedStore().`,
2954
2954
  {
2955
2955
  graphId,
@@ -2969,7 +2969,7 @@ async function readActiveSchemaPure(backend, graphId) {
2969
2969
  try {
2970
2970
  activeRow = await backend.getActiveSchema(graphId);
2971
2971
  } catch (error) {
2972
- if (chunkBSFJMMV3_cjs.isMissingTableError(error)) {
2972
+ if (chunkGVAMRRZR_cjs.isMissingTableError(error)) {
2973
2973
  throw schemaNotInitializedError(graphId, error);
2974
2974
  }
2975
2975
  throw error;
@@ -2980,7 +2980,7 @@ async function readActiveSchemaPure(backend, graphId) {
2980
2980
  return activeRow;
2981
2981
  }
2982
2982
  function schemaNotInitializedError(graphId, cause) {
2983
- return new chunkNI72YOJB_cjs.ConfigurationError(
2983
+ return new chunkKCH7WQA5_cjs.ConfigurationError(
2984
2984
  `Cannot verify graph "${graphId}": no schema has been initialized. Run createStoreWithSchema(graph, adminBackend) once under a privileged role (which commits the schema_versions row and materializes contribution markers) before attaching with createStore() / createVerifiedStore(). Generated migration SQL creates the tables but does not initialize the schema row.`,
2985
2985
  { graphId },
2986
2986
  {
@@ -2992,7 +2992,7 @@ function schemaNotInitializedError(graphId, cause) {
2992
2992
  function requireCommitWithPreflight(backend, graph) {
2993
2993
  const commitWithPreflight = backend.commitSchemaVersionWithPreflight;
2994
2994
  if (commitWithPreflight === void 0) {
2995
- throw new chunkNI72YOJB_cjs.ConfigurationError(
2995
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
2996
2996
  "This backend cannot atomically commit identity data with a schema transition.",
2997
2997
  {
2998
2998
  code: "IDENTITY_REQUIRES_ATOMIC_BACKEND",
@@ -3030,15 +3030,15 @@ async function migrateSchema(backend, graph, currentVersion, options) {
3030
3030
  activeRow
3031
3031
  } = await loadAndMergeGraphExtensionDocument(backend, graph);
3032
3032
  if (activeRow !== void 0 && activeRow.version !== currentVersion) {
3033
- throw new chunkNI72YOJB_cjs.StaleVersionError({
3033
+ throw new chunkKCH7WQA5_cjs.StaleVersionError({
3034
3034
  graphId: graph.id,
3035
3035
  expected: currentVersion,
3036
3036
  actual: activeRow.version
3037
3037
  });
3038
3038
  }
3039
3039
  const dropped = storedSchema === void 0 ? [] : [
3040
- ...droppedKinds(storedSchema.nodes, chunkCXBHOOIQ_cjs.getNodeKinds(target), "node"),
3041
- ...droppedKinds(storedSchema.edges, chunkCXBHOOIQ_cjs.getEdgeKinds(target), "edge")
3040
+ ...droppedKinds(storedSchema.nodes, chunkWA64ZSCA_cjs.getNodeKinds(target), "node"),
3041
+ ...droppedKinds(storedSchema.edges, chunkWA64ZSCA_cjs.getEdgeKinds(target), "edge")
3042
3042
  ];
3043
3043
  const guardedDrops = options?.discardDroppedKindRows === true ? [] : dropped;
3044
3044
  const droppedNodeKinds = dropped.filter((drop) => drop.entity === "node").map((drop) => drop.kind);
@@ -3081,7 +3081,7 @@ async function migrateSchema(backend, graph, currentVersion, options) {
3081
3081
  }
3082
3082
  async function prepareIdentityKindCascade(backend, target, options) {
3083
3083
  if (options.droppedNodeKinds.length === 0) return void 0;
3084
- const schema = options.schema === void 0 ? chunkNFCVHQ5P_cjs.createSqlSchema(backend.tableNames) : chunkNFCVHQ5P_cjs.requireSqlSchema(options.schema, "The schema option");
3084
+ const schema = options.schema === void 0 ? chunkQU7QLJA4_cjs.createSqlSchema(backend.tableNames) : chunkQU7QLJA4_cjs.requireSqlSchema(options.schema, "The schema option");
3085
3085
  if (options.probeBeforeCascade) {
3086
3086
  const needed = await identityKindCascadeNeeded(
3087
3087
  backend,
@@ -3097,7 +3097,7 @@ async function prepareIdentityKindCascade(backend, target, options) {
3097
3097
  );
3098
3098
  }
3099
3099
  async function prepareIdentitySchemaCommit(backend, target, options) {
3100
- const schema = options.schema === void 0 ? chunkNFCVHQ5P_cjs.createSqlSchema(backend.tableNames) : chunkNFCVHQ5P_cjs.requireSqlSchema(options.schema, "The schema option");
3100
+ const schema = options.schema === void 0 ? chunkQU7QLJA4_cjs.createSqlSchema(backend.tableNames) : chunkQU7QLJA4_cjs.requireSqlSchema(options.schema, "The schema option");
3101
3101
  const registry = buildKindRegistry(target);
3102
3102
  const provisioning = await ensureIdentitySchemaStorage(backend, schema, {
3103
3103
  graphId: target.id,
@@ -3142,7 +3142,7 @@ async function commitDroppedKindsOnlyWhenEmpty(backend, graph, currentVersion, d
3142
3142
  }
3143
3143
  function throwPopulatedKindRemovalError(graphId, currentVersion, populated) {
3144
3144
  const named = populated.map((entry) => `${entry.entity} "${entry.kind}" (${String(entry.count)})`).join(", ");
3145
- throw new chunkNI72YOJB_cjs.MigrationError(
3145
+ throw new chunkKCH7WQA5_cjs.MigrationError(
3146
3146
  `Refusing to commit a schema for graph "${graphId}" that drops kinds still holding rows: ${named}. Committing would make those rows unreachable, and the next materializeRemovals() would delete them. Export or delete those rows, then retry. Pass { discardDroppedKindRows: true } if losing them is the intent.`,
3147
3147
  {
3148
3148
  graphId,
@@ -3168,7 +3168,7 @@ async function commitNewSchemaVersionIfKindsEmpty(backend, graph, currentVersion
3168
3168
  const params = await buildNewSchemaVersionCommit(graph, currentVersion);
3169
3169
  const commitIfKindsEmpty = backend.commitSchemaVersionIfKindsEmpty;
3170
3170
  if (commitIfKindsEmpty === void 0) {
3171
- throw new chunkNI72YOJB_cjs.ConfigurationError(
3171
+ throw new chunkKCH7WQA5_cjs.ConfigurationError(
3172
3172
  "This backend cannot atomically fence entity writes while checking schema kind emptiness.",
3173
3173
  {
3174
3174
  code: "SCHEMA_KIND_EMPTINESS_FENCE_UNSUPPORTED",
@@ -3202,7 +3202,7 @@ async function commitNewSchemaVersionWithPreflight(backend, graph, currentVersio
3202
3202
  async function rollbackSchema(backend, graphId, targetVersion) {
3203
3203
  const activeRow = await backend.getActiveSchema(graphId);
3204
3204
  if (activeRow === void 0) {
3205
- throw new chunkNI72YOJB_cjs.MigrationError(
3205
+ throw new chunkKCH7WQA5_cjs.MigrationError(
3206
3206
  `Cannot rollback graph "${graphId}": no active schema version exists.`,
3207
3207
  {
3208
3208
  graphId,
@@ -3298,5 +3298,5 @@ exports.serializeSchema = serializeSchema;
3298
3298
  exports.serializeSchemaProperties = serializeSchemaProperties;
3299
3299
  exports.stripGraphExtension = stripGraphExtension;
3300
3300
  exports.subClassOf = subClassOf;
3301
- //# sourceMappingURL=chunk-N3257XE6.cjs.map
3302
- //# sourceMappingURL=chunk-N3257XE6.cjs.map
3301
+ //# sourceMappingURL=chunk-F36KZDFX.cjs.map
3302
+ //# sourceMappingURL=chunk-F36KZDFX.cjs.map