@nicia-ai/typegraph 0.35.0 → 0.37.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 (234) hide show
  1. package/dist/backend/postgres/index.cjs +24 -24
  2. package/dist/backend/postgres/index.d.cts +6 -6
  3. package/dist/backend/postgres/index.d.ts +6 -6
  4. package/dist/backend/postgres/index.js +11 -11
  5. package/dist/backend/postgres/pglite.cjs +16 -16
  6. package/dist/backend/postgres/pglite.d.cts +3 -3
  7. package/dist/backend/postgres/pglite.d.ts +3 -3
  8. package/dist/backend/postgres/pglite.js +11 -11
  9. package/dist/backend/sqlite/index.cjs +22 -21
  10. package/dist/backend/sqlite/index.d.cts +11 -9
  11. package/dist/backend/sqlite/index.d.ts +11 -9
  12. package/dist/backend/sqlite/index.js +10 -9
  13. package/dist/backend/sqlite/libsql.cjs +15 -14
  14. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  15. package/dist/backend/sqlite/libsql.d.cts +3 -3
  16. package/dist/backend/sqlite/libsql.d.ts +3 -3
  17. package/dist/backend/sqlite/libsql.js +11 -10
  18. package/dist/backend/sqlite/libsql.js.map +1 -1
  19. package/dist/backend/sqlite/local.cjs +30 -23
  20. package/dist/backend/sqlite/local.cjs.map +1 -1
  21. package/dist/backend/sqlite/local.d.cts +3 -3
  22. package/dist/backend/sqlite/local.d.ts +3 -3
  23. package/dist/backend/sqlite/local.js +18 -11
  24. package/dist/backend/sqlite/local.js.map +1 -1
  25. package/dist/{chunk-TCOCYN2P.cjs → chunk-27SSDCEP.cjs} +14 -14
  26. package/dist/{chunk-TCOCYN2P.cjs.map → chunk-27SSDCEP.cjs.map} +1 -1
  27. package/dist/{chunk-5AQIKK56.cjs → chunk-2N6EOBTH.cjs} +16 -16
  28. package/dist/{chunk-5AQIKK56.cjs.map → chunk-2N6EOBTH.cjs.map} +1 -1
  29. package/dist/{chunk-FN35DLCN.cjs → chunk-3C2RYI6L.cjs} +13 -107
  30. package/dist/chunk-3C2RYI6L.cjs.map +1 -0
  31. package/dist/{chunk-4JEZZJ6S.cjs → chunk-3DS7Z4T4.cjs} +39 -39
  32. package/dist/{chunk-4JEZZJ6S.cjs.map → chunk-3DS7Z4T4.cjs.map} +1 -1
  33. package/dist/{chunk-BLZDPRXT.cjs → chunk-3GH67G4Z.cjs} +5 -5
  34. package/dist/{chunk-BLZDPRXT.cjs.map → chunk-3GH67G4Z.cjs.map} +1 -1
  35. package/dist/{chunk-K3PPLHY7.js → chunk-3RWZPJKV.js} +24 -9
  36. package/dist/chunk-3RWZPJKV.js.map +1 -0
  37. package/dist/{chunk-QWEUYILR.js → chunk-3SLPDKHQ.js} +4 -4
  38. package/dist/chunk-3SLPDKHQ.js.map +1 -0
  39. package/dist/{chunk-5A6FNS6N.cjs → chunk-3XXGYU62.cjs} +11 -11
  40. package/dist/{chunk-5A6FNS6N.cjs.map → chunk-3XXGYU62.cjs.map} +1 -1
  41. package/dist/{chunk-JBTOYDMN.js → chunk-44TA22QT.js} +58 -11
  42. package/dist/chunk-44TA22QT.js.map +1 -0
  43. package/dist/{chunk-UES55P7G.js → chunk-552KNYQJ.js} +2652 -409
  44. package/dist/chunk-552KNYQJ.js.map +1 -0
  45. package/dist/{chunk-VPYHY3LJ.cjs → chunk-5KEQ74YU.cjs} +14 -14
  46. package/dist/chunk-5KEQ74YU.cjs.map +1 -0
  47. package/dist/{chunk-Q5TEXCTB.js → chunk-5KPNWT6X.js} +3 -3
  48. package/dist/{chunk-Q5TEXCTB.js.map → chunk-5KPNWT6X.js.map} +1 -1
  49. package/dist/{chunk-MP2JQKSG.js → chunk-5PNMDJ7J.js} +108 -5
  50. package/dist/chunk-5PNMDJ7J.js.map +1 -0
  51. package/dist/{chunk-AW4A3P5A.cjs → chunk-5VQM6VWP.cjs} +2 -2
  52. package/dist/{chunk-AW4A3P5A.cjs.map → chunk-5VQM6VWP.cjs.map} +1 -1
  53. package/dist/{chunk-A3W7QG7K.js → chunk-5WWVZMVX.js} +2 -2
  54. package/dist/{chunk-A3W7QG7K.js.map → chunk-5WWVZMVX.js.map} +1 -1
  55. package/dist/{chunk-FACJJWGF.cjs → chunk-6EEO3OVU.cjs} +7 -7
  56. package/dist/{chunk-FACJJWGF.cjs.map → chunk-6EEO3OVU.cjs.map} +1 -1
  57. package/dist/{chunk-LGEALRC6.cjs → chunk-BVRDGYXQ.cjs} +113 -4
  58. package/dist/chunk-BVRDGYXQ.cjs.map +1 -0
  59. package/dist/{chunk-GSQ6NPH6.cjs → chunk-DEFQM7JU.cjs} +7 -7
  60. package/dist/{chunk-GSQ6NPH6.cjs.map → chunk-DEFQM7JU.cjs.map} +1 -1
  61. package/dist/{chunk-EM3CWPND.cjs → chunk-DIQ3AV5W.cjs} +574 -268
  62. package/dist/chunk-DIQ3AV5W.cjs.map +1 -0
  63. package/dist/{chunk-FPIZFYHE.js → chunk-EXU3RASM.js} +74 -15
  64. package/dist/chunk-EXU3RASM.js.map +1 -0
  65. package/dist/{chunk-H7YNSMA7.cjs → chunk-HAHNRASW.cjs} +20 -2
  66. package/dist/chunk-HAHNRASW.cjs.map +1 -0
  67. package/dist/{chunk-FL472AMI.cjs → chunk-IP3CGGPA.cjs} +8 -8
  68. package/dist/{chunk-FL472AMI.cjs.map → chunk-IP3CGGPA.cjs.map} +1 -1
  69. package/dist/{chunk-4TOD4LBZ.cjs → chunk-IPSVVTWT.cjs} +94 -35
  70. package/dist/chunk-IPSVVTWT.cjs.map +1 -0
  71. package/dist/{chunk-RGP33ZJ5.js → chunk-IXGYRP2P.js} +184 -92
  72. package/dist/chunk-IXGYRP2P.js.map +1 -0
  73. package/dist/{chunk-3TWF3SH4.js → chunk-J4IUSYFF.js} +251 -121
  74. package/dist/chunk-J4IUSYFF.js.map +1 -0
  75. package/dist/{chunk-O7UN7OXA.cjs → chunk-JBNOGRKW.cjs} +318 -188
  76. package/dist/chunk-JBNOGRKW.cjs.map +1 -0
  77. package/dist/{chunk-WDBCBWC4.js → chunk-K3Q3LJY3.js} +520 -221
  78. package/dist/chunk-K3Q3LJY3.js.map +1 -0
  79. package/dist/{chunk-OR5ZA5WP.js → chunk-K5UBVGJN.js} +4 -4
  80. package/dist/{chunk-OR5ZA5WP.js.map → chunk-K5UBVGJN.js.map} +1 -1
  81. package/dist/{chunk-UZV3AZKF.js → chunk-KQJ54OG5.js} +3 -3
  82. package/dist/{chunk-UZV3AZKF.js.map → chunk-KQJ54OG5.js.map} +1 -1
  83. package/dist/{chunk-QOTI55H7.js → chunk-L7HQ2OSI.js} +4 -4
  84. package/dist/{chunk-QOTI55H7.js.map → chunk-L7HQ2OSI.js.map} +1 -1
  85. package/dist/{chunk-55MZDDZV.js → chunk-M6VES7V6.js} +4 -4
  86. package/dist/{chunk-55MZDDZV.js.map → chunk-M6VES7V6.js.map} +1 -1
  87. package/dist/{chunk-J7WFGBJR.cjs → chunk-NBP2WTJW.cjs} +3249 -1006
  88. package/dist/chunk-NBP2WTJW.cjs.map +1 -0
  89. package/dist/{chunk-CK5BVQOW.cjs → chunk-NUIG3BCV.cjs} +100 -85
  90. package/dist/chunk-NUIG3BCV.cjs.map +1 -0
  91. package/dist/{chunk-EMF62TZG.cjs → chunk-NXQFATMF.cjs} +269 -177
  92. package/dist/chunk-NXQFATMF.cjs.map +1 -0
  93. package/dist/{chunk-KBGQIPRQ.js → chunk-PC2UBAUB.js} +20 -3
  94. package/dist/chunk-PC2UBAUB.js.map +1 -0
  95. package/dist/chunk-QARBLBXT.cjs +219 -0
  96. package/dist/chunk-QARBLBXT.cjs.map +1 -0
  97. package/dist/{chunk-6FR2MMS6.js → chunk-QERAIDRJ.js} +45 -4
  98. package/dist/chunk-QERAIDRJ.js.map +1 -0
  99. package/dist/chunk-QSXTWU4U.cjs +12 -0
  100. package/dist/{chunk-GUR2FNB5.cjs.map → chunk-QSXTWU4U.cjs.map} +1 -1
  101. package/dist/{chunk-QNKSQTKQ.js → chunk-RCVLFTCT.js} +49 -19
  102. package/dist/chunk-RCVLFTCT.js.map +1 -0
  103. package/dist/{chunk-VSPCZAXF.js → chunk-RRSNR3TP.js} +3 -3
  104. package/dist/{chunk-VSPCZAXF.js.map → chunk-RRSNR3TP.js.map} +1 -1
  105. package/dist/{chunk-WJT7OU7E.cjs → chunk-TGOMW4MB.cjs} +129 -98
  106. package/dist/chunk-TGOMW4MB.cjs.map +1 -0
  107. package/dist/{chunk-KMI7LYAF.js → chunk-TKT2XHED.js} +8 -8
  108. package/dist/{chunk-KMI7LYAF.js.map → chunk-TKT2XHED.js.map} +1 -1
  109. package/dist/{chunk-RGPG7EOJ.js → chunk-TPF25IG6.js} +3 -3
  110. package/dist/{chunk-RGPG7EOJ.js.map → chunk-TPF25IG6.js.map} +1 -1
  111. package/dist/{chunk-5SEGFTZX.js → chunk-UGZUAYAR.js} +3 -3
  112. package/dist/{chunk-5SEGFTZX.js.map → chunk-UGZUAYAR.js.map} +1 -1
  113. package/dist/{chunk-VHMPG6UL.js → chunk-UXLSNRYL.js} +11 -105
  114. package/dist/chunk-UXLSNRYL.js.map +1 -0
  115. package/dist/{chunk-FRV5Q5IO.js → chunk-UYQMBBWJ.js} +3 -3
  116. package/dist/{chunk-FRV5Q5IO.js.map → chunk-UYQMBBWJ.js.map} +1 -1
  117. package/dist/{chunk-UUT7UN2N.cjs → chunk-VGDDG3XJ.cjs} +7 -7
  118. package/dist/{chunk-UUT7UN2N.cjs.map → chunk-VGDDG3XJ.cjs.map} +1 -1
  119. package/dist/{chunk-CZQ3FO2Q.js → chunk-VKGKDOKR.js} +56 -21
  120. package/dist/chunk-VKGKDOKR.js.map +1 -0
  121. package/dist/{chunk-CTTSDJLY.cjs → chunk-VL2V6PEN.cjs} +11 -11
  122. package/dist/{chunk-CTTSDJLY.cjs.map → chunk-VL2V6PEN.cjs.map} +1 -1
  123. package/dist/{chunk-XOX22WHL.cjs → chunk-WOJMKB3N.cjs} +125 -90
  124. package/dist/chunk-WOJMKB3N.cjs.map +1 -0
  125. package/dist/{chunk-UMDVATGY.cjs → chunk-WWFHO375.cjs} +6 -6
  126. package/dist/{chunk-UMDVATGY.cjs.map → chunk-WWFHO375.cjs.map} +1 -1
  127. package/dist/{chunk-I7ZUZKFD.js → chunk-XGPUQ56G.js} +3 -3
  128. package/dist/{chunk-I7ZUZKFD.js.map → chunk-XGPUQ56G.js.map} +1 -1
  129. package/dist/{chunk-D7ZEOS56.cjs → chunk-XGU7DZDA.cjs} +74 -14
  130. package/dist/chunk-XGU7DZDA.cjs.map +1 -0
  131. package/dist/{chunk-S55OV6PW.cjs → chunk-XPCZADMT.cjs} +54 -11
  132. package/dist/chunk-XPCZADMT.cjs.map +1 -0
  133. package/dist/{chunk-T2WUSPDA.js → chunk-XWV4JT34.js} +3 -3
  134. package/dist/{chunk-T2WUSPDA.js.map → chunk-XWV4JT34.js.map} +1 -1
  135. package/dist/chunk-YTSN73ND.js +212 -0
  136. package/dist/chunk-YTSN73ND.js.map +1 -0
  137. package/dist/{ddl-CZz7a0E8.d.cts → ddl-BD-ZfKeX.d.cts} +3 -3
  138. package/dist/{ddl-C2rZ-Aen.d.ts → ddl-CS0KUVwB.d.ts} +3 -3
  139. package/dist/{extension-types-ixRpJVUp.d.cts → extension-types-BM2ACfYO.d.cts} +6 -1
  140. package/dist/{extension-types-ixRpJVUp.d.ts → extension-types-BM2ACfYO.d.ts} +6 -1
  141. package/dist/{fulltext-strategy-CDkSSYhq.d.cts → fulltext-strategy-C27vXaeB.d.cts} +127 -8
  142. package/dist/{fulltext-strategy-B57yvC5Q.d.ts → fulltext-strategy-DebsMrqg.d.ts} +127 -8
  143. package/dist/graph-extension/index.cjs +19 -19
  144. package/dist/graph-extension/index.d.cts +4 -4
  145. package/dist/graph-extension/index.d.ts +4 -4
  146. package/dist/graph-extension/index.js +4 -4
  147. package/dist/graph-merge/index.cjs +88 -88
  148. package/dist/graph-merge/index.cjs.map +1 -1
  149. package/dist/graph-merge/index.d.cts +6 -6
  150. package/dist/graph-merge/index.d.ts +6 -6
  151. package/dist/graph-merge/index.js +19 -19
  152. package/dist/graph-merge/index.js.map +1 -1
  153. package/dist/{index-Bks_3HHK.d.cts → index-BPM59vsg.d.cts} +119 -7
  154. package/dist/{index-6CSUAq-x.d.ts → index-BeacbPoe.d.ts} +119 -7
  155. package/dist/index.cjs +230 -185
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts +11 -11
  158. package/dist/index.d.ts +11 -11
  159. package/dist/index.js +53 -40
  160. package/dist/index.js.map +1 -1
  161. package/dist/indexes/index.cjs +30 -21
  162. package/dist/indexes/index.d.cts +5 -5
  163. package/dist/indexes/index.d.ts +5 -5
  164. package/dist/indexes/index.js +8 -7
  165. package/dist/interchange/index.cjs +208 -30
  166. package/dist/interchange/index.cjs.map +1 -1
  167. package/dist/interchange/index.d.cts +25 -8
  168. package/dist/interchange/index.d.ts +25 -8
  169. package/dist/interchange/index.js +191 -11
  170. package/dist/interchange/index.js.map +1 -1
  171. package/dist/{manager-DwQi8eV0.d.cts → manager-D00_NXvT.d.ts} +11 -2
  172. package/dist/{manager-ejUCB52T.d.ts → manager-nU1vTJLy.d.cts} +11 -2
  173. package/dist/{materialize-indexes-B4e9360H.d.cts → materialize-indexes-CuR3gAZb.d.cts} +8 -2
  174. package/dist/{materialize-indexes-te9TPMMJ.d.ts → materialize-indexes-zK2J_flP.d.ts} +8 -2
  175. package/dist/{postgres-DQ5R6rzV.d.ts → postgres-IaBA4RgE.d.ts} +1 -1
  176. package/dist/{postgres-CfEqsRMp.d.cts → postgres-YrYmPlaU.d.cts} +1 -1
  177. package/dist/profiler/index.cjs +3 -3
  178. package/dist/profiler/index.d.cts +7 -7
  179. package/dist/profiler/index.d.ts +7 -7
  180. package/dist/profiler/index.js +2 -2
  181. package/dist/provenance/index.cjs +32 -33
  182. package/dist/provenance/index.cjs.map +1 -1
  183. package/dist/provenance/index.d.cts +5 -5
  184. package/dist/provenance/index.d.ts +5 -5
  185. package/dist/provenance/index.js +5 -6
  186. package/dist/provenance/index.js.map +1 -1
  187. package/dist/schema/index.cjs +35 -35
  188. package/dist/schema/index.d.cts +7 -7
  189. package/dist/schema/index.d.ts +7 -7
  190. package/dist/schema/index.js +11 -11
  191. package/dist/{sqlite-DvQndLky.d.ts → sqlite-BUOHPx7p.d.ts} +1 -1
  192. package/dist/{sqlite-D7zBinNR.d.cts → sqlite-Pp8O19WE.d.cts} +1 -1
  193. package/dist/{store-view-CKbHFRnn.d.ts → store-view-ANL6mTph.d.ts} +457 -57
  194. package/dist/{store-view-BSpqvAxK.d.cts → store-view-X96Rd00T.d.cts} +457 -57
  195. package/dist/{types-Bv9DcS_E.d.cts → types-r-Zyq2Hz.d.cts} +2 -2
  196. package/dist/{types-CoxuV7EJ.d.ts → types-wsvuBgPK.d.ts} +2 -2
  197. package/dist/where-CJOpJj3a.d.ts +36 -0
  198. package/dist/where-K3uBP33l.d.cts +36 -0
  199. package/package.json +1 -1
  200. package/dist/chunk-3TWF3SH4.js.map +0 -1
  201. package/dist/chunk-4TOD4LBZ.cjs.map +0 -1
  202. package/dist/chunk-6FR2MMS6.js.map +0 -1
  203. package/dist/chunk-CK5BVQOW.cjs.map +0 -1
  204. package/dist/chunk-CZQ3FO2Q.js.map +0 -1
  205. package/dist/chunk-D7ZEOS56.cjs.map +0 -1
  206. package/dist/chunk-EM3CWPND.cjs.map +0 -1
  207. package/dist/chunk-EMF62TZG.cjs.map +0 -1
  208. package/dist/chunk-EOLERH7Y.cjs +0 -40
  209. package/dist/chunk-EOLERH7Y.cjs.map +0 -1
  210. package/dist/chunk-FN35DLCN.cjs.map +0 -1
  211. package/dist/chunk-FPIZFYHE.js.map +0 -1
  212. package/dist/chunk-GUR2FNB5.cjs +0 -12
  213. package/dist/chunk-H7YNSMA7.cjs.map +0 -1
  214. package/dist/chunk-J7WFGBJR.cjs.map +0 -1
  215. package/dist/chunk-JBTOYDMN.js.map +0 -1
  216. package/dist/chunk-K3PPLHY7.js.map +0 -1
  217. package/dist/chunk-KBGQIPRQ.js.map +0 -1
  218. package/dist/chunk-LGEALRC6.cjs.map +0 -1
  219. package/dist/chunk-MP2JQKSG.js.map +0 -1
  220. package/dist/chunk-O7UN7OXA.cjs.map +0 -1
  221. package/dist/chunk-QNKSQTKQ.js.map +0 -1
  222. package/dist/chunk-QWEUYILR.js.map +0 -1
  223. package/dist/chunk-RGP33ZJ5.js.map +0 -1
  224. package/dist/chunk-S55OV6PW.cjs.map +0 -1
  225. package/dist/chunk-UES55P7G.js.map +0 -1
  226. package/dist/chunk-UT3S4SEN.js +0 -31
  227. package/dist/chunk-UT3S4SEN.js.map +0 -1
  228. package/dist/chunk-VHMPG6UL.js.map +0 -1
  229. package/dist/chunk-VPYHY3LJ.cjs.map +0 -1
  230. package/dist/chunk-WDBCBWC4.js.map +0 -1
  231. package/dist/chunk-WJT7OU7E.cjs.map +0 -1
  232. package/dist/chunk-XOX22WHL.cjs.map +0 -1
  233. package/dist/where-7RKFOsXt.d.ts +0 -11
  234. package/dist/where-DdMIXOtH.d.cts +0 -11
@@ -1,5 +1,5 @@
1
- import { K as KindEntity } from './extension-types-ixRpJVUp.cjs';
2
- import { M as MaterializeIndexesResult } from './materialize-indexes-B4e9360H.cjs';
1
+ import { K as KindEntity } from './extension-types-BM2ACfYO.cjs';
2
+ import { M as MaterializeIndexesResult } from './materialize-indexes-CuR3gAZb.cjs';
3
3
 
4
4
  /**
5
5
  * TypeGraph Error Hierarchy
@@ -501,6 +501,118 @@ declare class ConfigurationError extends TypeGraphError {
501
501
  suggestion?: string;
502
502
  });
503
503
  }
504
+ /**
505
+ * Thrown when an iterative graph algorithm exhausts its caller-visible round
506
+ * budget before reaching its convergence predicate.
507
+ */
508
+ declare class GraphAlgorithmConvergenceError extends TypeGraphError {
509
+ constructor(algorithm: string, maxIterations: number);
510
+ }
511
+ /** Stable reasons a weighted traversal can reject an edge's weight value. */
512
+ type InvalidEdgeWeightReason = "missing" | "negative" | "non_numeric" | "out_of_range";
513
+ /** Details for InvalidEdgeWeightError. */
514
+ type InvalidEdgeWeightErrorDetails = Readonly<{
515
+ /** Id of the first offending edge, in binary-collation order. */
516
+ edgeId: string;
517
+ /** Kind of the offending edge. */
518
+ edgeKind: string;
519
+ /** The audited weight property. */
520
+ property: string;
521
+ /** Why the weight was rejected. */
522
+ reason: InvalidEdgeWeightReason;
523
+ /** The offending value, when one was present and renderable. */
524
+ value?: string;
525
+ }>;
526
+ /**
527
+ * Thrown when a weighted graph algorithm finds an edge whose weight property
528
+ * violates the weighted-traversal contract (missing without a default,
529
+ * non-numeric, or negative). Raised before any traversal rounds run, so a
530
+ * weighted call either observes a fully valid weight domain or fails fast.
531
+ */
532
+ declare class InvalidEdgeWeightError extends TypeGraphError {
533
+ readonly details: InvalidEdgeWeightErrorDetails;
534
+ constructor(details: InvalidEdgeWeightErrorDetails);
535
+ }
536
+ /** Thrown when an operation requires a backend capability it does not expose. */
537
+ declare class UnsupportedBackendCapabilityError extends TypeGraphError {
538
+ constructor(operation: string, capability: string, details?: Readonly<Record<string, unknown>>, suggestion?: string);
539
+ }
540
+ /** Stable reasons an intentionally trusted initial import can be rejected. */
541
+ type TrustedImportErrorReason = "backend_unsupported" | "database_not_empty" | "fulltext_unsupported" | "history_unsupported" | "invalid_stream" | "revision_tracking_unsupported" | "uniqueness_unsupported" | "vector_unsupported";
542
+ /** Thrown when the trusted initial-import contract is unavailable or violated. */
543
+ declare class TrustedImportError extends TypeGraphError {
544
+ constructor(message: string, reason: TrustedImportErrorReason, details?: Readonly<Record<string, unknown>>, options?: Readonly<{
545
+ cause?: unknown;
546
+ suggestion?: string;
547
+ }>);
548
+ }
549
+ /**
550
+ * The stable `details.code` values raised by the recorded-capture guards on a
551
+ * history- or revision-tracked store. These are the sanctioned branch points
552
+ * for a portable caller that must pick a transaction strategy without
553
+ * substring-matching {@link ConfigurationError} messages.
554
+ *
555
+ * - `RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION`: `store.withTransaction`
556
+ * was called on a history-enabled store, which has no flush point before the
557
+ * caller commits — use `store.withRecordedTransaction` instead.
558
+ * - `RECORDED_CAPTURE_RAW_SQL_DISABLED`: a raw SQL escape (`tx.sql`,
559
+ * `backend.executeStatement`/`executeDdl`) was reached on a history-enabled
560
+ * store, where it would bypass recorded-time capture.
561
+ * - `REVISION_TRACKING_RAW_SQL_DISABLED`: the same raw SQL escape on a
562
+ * revision-tracked store, where it would bypass the revision anchor.
563
+ *
564
+ * @see isRecordedCaptureGuardError
565
+ */
566
+ declare const RECORDED_CAPTURE_GUARD_CODES: readonly ["RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION", "RECORDED_CAPTURE_RAW_SQL_DISABLED", "REVISION_TRACKING_RAW_SQL_DISABLED"];
567
+ /** A stable, branchable code raised by a recorded-capture guard. */
568
+ type RecordedCaptureGuardCode = (typeof RECORDED_CAPTURE_GUARD_CODES)[number];
569
+ /**
570
+ * A {@link ConfigurationError} narrowed to carry a {@link RecordedCaptureGuardCode}
571
+ * in `details.code` — the shape {@link isRecordedCaptureGuardError} guarantees.
572
+ * `C` narrows `details.code` to a single code when the guard was called with a
573
+ * specific one; it defaults to the full union.
574
+ */
575
+ type RecordedCaptureGuardError<C extends RecordedCaptureGuardCode = RecordedCaptureGuardCode> = ConfigurationError & Readonly<{
576
+ details: Readonly<{
577
+ code: C;
578
+ }>;
579
+ }>;
580
+ /**
581
+ * Type guard for the recorded-capture guard errors, so a portable caller can
582
+ * branch on the invariant a store enforced instead of substring-matching the
583
+ * message. Pass `code` to narrow to a single guard; omit it to match any.
584
+ *
585
+ * Distinguishes "history capture forbids raw SQL here" from "this backend has
586
+ * no transactions" (the latter carries no guard code — see
587
+ * `TransactionContext.sqlAvailability` for the capability discriminant).
588
+ *
589
+ * Passing `code` also narrows `details.code` to that literal on the guarded
590
+ * branch, so a caller can read the payload without re-checking.
591
+ *
592
+ * @example
593
+ * ```typescript
594
+ * // `withTransaction` is a compile error on a history-enabled store, so widen
595
+ * // to the base Store surface to reach the runtime guard this branches on.
596
+ * const store: Store<typeof graph> = historyStore;
597
+ * try {
598
+ * store.withTransaction(externalTx);
599
+ * } catch (error) {
600
+ * if (
601
+ * isRecordedCaptureGuardError(
602
+ * error,
603
+ * "RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION",
604
+ * )
605
+ * ) {
606
+ * // error.details.code is now the literal, not the union.
607
+ * await historyStore.withRecordedTransaction(externalTx, run);
608
+ * } else {
609
+ * throw error;
610
+ * }
611
+ * }
612
+ * ```
613
+ */
614
+ declare function isRecordedCaptureGuardError<C extends RecordedCaptureGuardCode>(error: unknown, code: C): error is RecordedCaptureGuardError<C>;
615
+ declare function isRecordedCaptureGuardError(error: unknown): error is RecordedCaptureGuardError;
504
616
  /**
505
617
  * Why a store's strategy-owned storage is not usable on the current
506
618
  * connection. Drives the {@link StoreNotInitializedError} message and
@@ -525,14 +637,14 @@ type StoreNotInitializedErrorDetails = Readonly<{
525
637
  reason: StoreNotInitializedReason;
526
638
  }> & Readonly<Record<string, unknown>>;
527
639
  /**
528
- * Thrown when a fulltext-dependent operation runs against a connection
529
- * whose strategy-owned storage has not been durably materialized.
640
+ * Thrown when a fulltext- or vector-dependent operation runs against a
641
+ * connection whose strategy-owned storage has not been durably materialized.
530
642
  *
531
643
  * `createStore()` is a synchronous, zero-I/O attach: it never creates
532
644
  * tables, repairs DDL, or writes materialization markers. The durable
533
645
  * marker is written exclusively by the async boot path
534
- * (`createStoreWithSchema`). When a fulltext read/write — or an
535
- * adopted/business transaction — observes no valid marker, it refuses
646
+ * (`createStoreWithSchema`). When a fulltext or embedding read/write — or
647
+ * an adopted/business transaction — observes no valid marker, it refuses
536
648
  * loudly here instead of lazily emitting DDL on the hot path.
537
649
  */
538
650
  declare class StoreNotInitializedError extends TypeGraphError {
@@ -698,4 +810,4 @@ declare function isConstraintError(error: unknown): boolean;
698
810
  */
699
811
  declare function getErrorSuggestion(error: unknown): string | undefined;
700
812
 
701
- export { isConstraintError as $, SchemaMismatchError as A, BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, type SchemaMismatchErrorDetails as F, StaleVersionError as G, type StaleVersionErrorDetails as H, StoreNotInitializedError as I, type StoreNotInitializedErrorDetails as J, KindNotFoundError as K, type StoreNotInitializedReason as L, MigrationError as M, NodeConstraintNotFoundError as N, TransactionClosedError as O, type TypeGraphErrorOptions as P, type UniquenessErrorDetails as Q, RestrictedDeleteError as R, SchemaContentConflictError as S, TypeGraphError as T, UniquenessError as U, type ValidationIssue as V, UnsupportedPredicateError as W, type ValidationErrorDetails as X, VersionConflictError as Y, type VersionConflictErrorDetails as Z, getErrorSuggestion as _, ValidationError as a, isSystemError as a0, isTypeGraphError as a1, isUserRecoverable as a2, type CardinalityErrorDetails as b, CompilerInvariantError as c, ConfigurationError as d, type DatabaseOperationErrorDetails as e, DisjointError as f, type DisjointErrorDetails as g, type EagerMaterializationErrorDetails as h, EdgeNotFoundError as i, type EdgeNotFoundErrorDetails as j, EmbeddingDimensionChangedError as k, type EmbeddingDimensionChangedErrorDetails as l, EndpointError as m, type EndpointErrorDetails as n, EndpointNotFoundError as o, type EndpointNotFoundErrorDetails as p, type ErrorCategory as q, type KindNotFoundErrorDetails as r, type MigrationErrorDetails as s, type NodeConstraintNotFoundErrorDetails as t, NodeIndexNotFoundError as u, type NodeIndexNotFoundErrorDetails as v, NodeNotFoundError as w, type NodeNotFoundErrorDetails as x, type RestrictedDeleteErrorDetails as y, type SchemaContentConflictErrorDetails as z };
813
+ export { type TrustedImportErrorReason as $, type RecordedCaptureGuardCode as A, BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, type RecordedCaptureGuardError as F, GraphAlgorithmConvergenceError as G, RestrictedDeleteError as H, InvalidEdgeWeightError as I, type RestrictedDeleteErrorDetails as J, KindNotFoundError as K, type SchemaContentConflictErrorDetails as L, MigrationError as M, NodeConstraintNotFoundError as N, SchemaMismatchError as O, type SchemaMismatchErrorDetails as P, StaleVersionError as Q, RECORDED_CAPTURE_GUARD_CODES as R, SchemaContentConflictError as S, TypeGraphError as T, type StaleVersionErrorDetails as U, type ValidationIssue as V, StoreNotInitializedError as W, type StoreNotInitializedErrorDetails as X, type StoreNotInitializedReason as Y, TransactionClosedError as Z, TrustedImportError as _, ValidationError as a, type TypeGraphErrorOptions as a0, UniquenessError as a1, type UniquenessErrorDetails as a2, UnsupportedBackendCapabilityError as a3, UnsupportedPredicateError as a4, type ValidationErrorDetails as a5, VersionConflictError as a6, type VersionConflictErrorDetails as a7, getErrorSuggestion as a8, isConstraintError as a9, isRecordedCaptureGuardError as aa, isSystemError as ab, isTypeGraphError as ac, isUserRecoverable as ad, type CardinalityErrorDetails as b, CompilerInvariantError as c, ConfigurationError as d, type DatabaseOperationErrorDetails as e, DisjointError as f, type DisjointErrorDetails as g, type EagerMaterializationErrorDetails as h, EdgeNotFoundError as i, type EdgeNotFoundErrorDetails as j, EmbeddingDimensionChangedError as k, type EmbeddingDimensionChangedErrorDetails as l, EndpointError as m, type EndpointErrorDetails as n, EndpointNotFoundError as o, type EndpointNotFoundErrorDetails as p, type ErrorCategory as q, type InvalidEdgeWeightErrorDetails as r, type InvalidEdgeWeightReason as s, type KindNotFoundErrorDetails as t, type MigrationErrorDetails as u, type NodeConstraintNotFoundErrorDetails as v, NodeIndexNotFoundError as w, type NodeIndexNotFoundErrorDetails as x, NodeNotFoundError as y, type NodeNotFoundErrorDetails as z };
@@ -1,5 +1,5 @@
1
- import { K as KindEntity } from './extension-types-ixRpJVUp.js';
2
- import { M as MaterializeIndexesResult } from './materialize-indexes-te9TPMMJ.js';
1
+ import { K as KindEntity } from './extension-types-BM2ACfYO.js';
2
+ import { M as MaterializeIndexesResult } from './materialize-indexes-zK2J_flP.js';
3
3
 
4
4
  /**
5
5
  * TypeGraph Error Hierarchy
@@ -501,6 +501,118 @@ declare class ConfigurationError extends TypeGraphError {
501
501
  suggestion?: string;
502
502
  });
503
503
  }
504
+ /**
505
+ * Thrown when an iterative graph algorithm exhausts its caller-visible round
506
+ * budget before reaching its convergence predicate.
507
+ */
508
+ declare class GraphAlgorithmConvergenceError extends TypeGraphError {
509
+ constructor(algorithm: string, maxIterations: number);
510
+ }
511
+ /** Stable reasons a weighted traversal can reject an edge's weight value. */
512
+ type InvalidEdgeWeightReason = "missing" | "negative" | "non_numeric" | "out_of_range";
513
+ /** Details for InvalidEdgeWeightError. */
514
+ type InvalidEdgeWeightErrorDetails = Readonly<{
515
+ /** Id of the first offending edge, in binary-collation order. */
516
+ edgeId: string;
517
+ /** Kind of the offending edge. */
518
+ edgeKind: string;
519
+ /** The audited weight property. */
520
+ property: string;
521
+ /** Why the weight was rejected. */
522
+ reason: InvalidEdgeWeightReason;
523
+ /** The offending value, when one was present and renderable. */
524
+ value?: string;
525
+ }>;
526
+ /**
527
+ * Thrown when a weighted graph algorithm finds an edge whose weight property
528
+ * violates the weighted-traversal contract (missing without a default,
529
+ * non-numeric, or negative). Raised before any traversal rounds run, so a
530
+ * weighted call either observes a fully valid weight domain or fails fast.
531
+ */
532
+ declare class InvalidEdgeWeightError extends TypeGraphError {
533
+ readonly details: InvalidEdgeWeightErrorDetails;
534
+ constructor(details: InvalidEdgeWeightErrorDetails);
535
+ }
536
+ /** Thrown when an operation requires a backend capability it does not expose. */
537
+ declare class UnsupportedBackendCapabilityError extends TypeGraphError {
538
+ constructor(operation: string, capability: string, details?: Readonly<Record<string, unknown>>, suggestion?: string);
539
+ }
540
+ /** Stable reasons an intentionally trusted initial import can be rejected. */
541
+ type TrustedImportErrorReason = "backend_unsupported" | "database_not_empty" | "fulltext_unsupported" | "history_unsupported" | "invalid_stream" | "revision_tracking_unsupported" | "uniqueness_unsupported" | "vector_unsupported";
542
+ /** Thrown when the trusted initial-import contract is unavailable or violated. */
543
+ declare class TrustedImportError extends TypeGraphError {
544
+ constructor(message: string, reason: TrustedImportErrorReason, details?: Readonly<Record<string, unknown>>, options?: Readonly<{
545
+ cause?: unknown;
546
+ suggestion?: string;
547
+ }>);
548
+ }
549
+ /**
550
+ * The stable `details.code` values raised by the recorded-capture guards on a
551
+ * history- or revision-tracked store. These are the sanctioned branch points
552
+ * for a portable caller that must pick a transaction strategy without
553
+ * substring-matching {@link ConfigurationError} messages.
554
+ *
555
+ * - `RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION`: `store.withTransaction`
556
+ * was called on a history-enabled store, which has no flush point before the
557
+ * caller commits — use `store.withRecordedTransaction` instead.
558
+ * - `RECORDED_CAPTURE_RAW_SQL_DISABLED`: a raw SQL escape (`tx.sql`,
559
+ * `backend.executeStatement`/`executeDdl`) was reached on a history-enabled
560
+ * store, where it would bypass recorded-time capture.
561
+ * - `REVISION_TRACKING_RAW_SQL_DISABLED`: the same raw SQL escape on a
562
+ * revision-tracked store, where it would bypass the revision anchor.
563
+ *
564
+ * @see isRecordedCaptureGuardError
565
+ */
566
+ declare const RECORDED_CAPTURE_GUARD_CODES: readonly ["RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION", "RECORDED_CAPTURE_RAW_SQL_DISABLED", "REVISION_TRACKING_RAW_SQL_DISABLED"];
567
+ /** A stable, branchable code raised by a recorded-capture guard. */
568
+ type RecordedCaptureGuardCode = (typeof RECORDED_CAPTURE_GUARD_CODES)[number];
569
+ /**
570
+ * A {@link ConfigurationError} narrowed to carry a {@link RecordedCaptureGuardCode}
571
+ * in `details.code` — the shape {@link isRecordedCaptureGuardError} guarantees.
572
+ * `C` narrows `details.code` to a single code when the guard was called with a
573
+ * specific one; it defaults to the full union.
574
+ */
575
+ type RecordedCaptureGuardError<C extends RecordedCaptureGuardCode = RecordedCaptureGuardCode> = ConfigurationError & Readonly<{
576
+ details: Readonly<{
577
+ code: C;
578
+ }>;
579
+ }>;
580
+ /**
581
+ * Type guard for the recorded-capture guard errors, so a portable caller can
582
+ * branch on the invariant a store enforced instead of substring-matching the
583
+ * message. Pass `code` to narrow to a single guard; omit it to match any.
584
+ *
585
+ * Distinguishes "history capture forbids raw SQL here" from "this backend has
586
+ * no transactions" (the latter carries no guard code — see
587
+ * `TransactionContext.sqlAvailability` for the capability discriminant).
588
+ *
589
+ * Passing `code` also narrows `details.code` to that literal on the guarded
590
+ * branch, so a caller can read the payload without re-checking.
591
+ *
592
+ * @example
593
+ * ```typescript
594
+ * // `withTransaction` is a compile error on a history-enabled store, so widen
595
+ * // to the base Store surface to reach the runtime guard this branches on.
596
+ * const store: Store<typeof graph> = historyStore;
597
+ * try {
598
+ * store.withTransaction(externalTx);
599
+ * } catch (error) {
600
+ * if (
601
+ * isRecordedCaptureGuardError(
602
+ * error,
603
+ * "RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION",
604
+ * )
605
+ * ) {
606
+ * // error.details.code is now the literal, not the union.
607
+ * await historyStore.withRecordedTransaction(externalTx, run);
608
+ * } else {
609
+ * throw error;
610
+ * }
611
+ * }
612
+ * ```
613
+ */
614
+ declare function isRecordedCaptureGuardError<C extends RecordedCaptureGuardCode>(error: unknown, code: C): error is RecordedCaptureGuardError<C>;
615
+ declare function isRecordedCaptureGuardError(error: unknown): error is RecordedCaptureGuardError;
504
616
  /**
505
617
  * Why a store's strategy-owned storage is not usable on the current
506
618
  * connection. Drives the {@link StoreNotInitializedError} message and
@@ -525,14 +637,14 @@ type StoreNotInitializedErrorDetails = Readonly<{
525
637
  reason: StoreNotInitializedReason;
526
638
  }> & Readonly<Record<string, unknown>>;
527
639
  /**
528
- * Thrown when a fulltext-dependent operation runs against a connection
529
- * whose strategy-owned storage has not been durably materialized.
640
+ * Thrown when a fulltext- or vector-dependent operation runs against a
641
+ * connection whose strategy-owned storage has not been durably materialized.
530
642
  *
531
643
  * `createStore()` is a synchronous, zero-I/O attach: it never creates
532
644
  * tables, repairs DDL, or writes materialization markers. The durable
533
645
  * marker is written exclusively by the async boot path
534
- * (`createStoreWithSchema`). When a fulltext read/write — or an
535
- * adopted/business transaction — observes no valid marker, it refuses
646
+ * (`createStoreWithSchema`). When a fulltext or embedding read/write — or
647
+ * an adopted/business transaction — observes no valid marker, it refuses
536
648
  * loudly here instead of lazily emitting DDL on the hot path.
537
649
  */
538
650
  declare class StoreNotInitializedError extends TypeGraphError {
@@ -698,4 +810,4 @@ declare function isConstraintError(error: unknown): boolean;
698
810
  */
699
811
  declare function getErrorSuggestion(error: unknown): string | undefined;
700
812
 
701
- export { isConstraintError as $, SchemaMismatchError as A, BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, type SchemaMismatchErrorDetails as F, StaleVersionError as G, type StaleVersionErrorDetails as H, StoreNotInitializedError as I, type StoreNotInitializedErrorDetails as J, KindNotFoundError as K, type StoreNotInitializedReason as L, MigrationError as M, NodeConstraintNotFoundError as N, TransactionClosedError as O, type TypeGraphErrorOptions as P, type UniquenessErrorDetails as Q, RestrictedDeleteError as R, SchemaContentConflictError as S, TypeGraphError as T, UniquenessError as U, type ValidationIssue as V, UnsupportedPredicateError as W, type ValidationErrorDetails as X, VersionConflictError as Y, type VersionConflictErrorDetails as Z, getErrorSuggestion as _, ValidationError as a, isSystemError as a0, isTypeGraphError as a1, isUserRecoverable as a2, type CardinalityErrorDetails as b, CompilerInvariantError as c, ConfigurationError as d, type DatabaseOperationErrorDetails as e, DisjointError as f, type DisjointErrorDetails as g, type EagerMaterializationErrorDetails as h, EdgeNotFoundError as i, type EdgeNotFoundErrorDetails as j, EmbeddingDimensionChangedError as k, type EmbeddingDimensionChangedErrorDetails as l, EndpointError as m, type EndpointErrorDetails as n, EndpointNotFoundError as o, type EndpointNotFoundErrorDetails as p, type ErrorCategory as q, type KindNotFoundErrorDetails as r, type MigrationErrorDetails as s, type NodeConstraintNotFoundErrorDetails as t, NodeIndexNotFoundError as u, type NodeIndexNotFoundErrorDetails as v, NodeNotFoundError as w, type NodeNotFoundErrorDetails as x, type RestrictedDeleteErrorDetails as y, type SchemaContentConflictErrorDetails as z };
813
+ export { type TrustedImportErrorReason as $, type RecordedCaptureGuardCode as A, BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, type RecordedCaptureGuardError as F, GraphAlgorithmConvergenceError as G, RestrictedDeleteError as H, InvalidEdgeWeightError as I, type RestrictedDeleteErrorDetails as J, KindNotFoundError as K, type SchemaContentConflictErrorDetails as L, MigrationError as M, NodeConstraintNotFoundError as N, SchemaMismatchError as O, type SchemaMismatchErrorDetails as P, StaleVersionError as Q, RECORDED_CAPTURE_GUARD_CODES as R, SchemaContentConflictError as S, TypeGraphError as T, type StaleVersionErrorDetails as U, type ValidationIssue as V, StoreNotInitializedError as W, type StoreNotInitializedErrorDetails as X, type StoreNotInitializedReason as Y, TransactionClosedError as Z, TrustedImportError as _, ValidationError as a, type TypeGraphErrorOptions as a0, UniquenessError as a1, type UniquenessErrorDetails as a2, UnsupportedBackendCapabilityError as a3, UnsupportedPredicateError as a4, type ValidationErrorDetails as a5, VersionConflictError as a6, type VersionConflictErrorDetails as a7, getErrorSuggestion as a8, isConstraintError as a9, isRecordedCaptureGuardError as aa, isSystemError as ab, isTypeGraphError as ac, isUserRecoverable as ad, type CardinalityErrorDetails as b, CompilerInvariantError as c, ConfigurationError as d, type DatabaseOperationErrorDetails as e, DisjointError as f, type DisjointErrorDetails as g, type EagerMaterializationErrorDetails as h, EdgeNotFoundError as i, type EdgeNotFoundErrorDetails as j, EmbeddingDimensionChangedError as k, type EmbeddingDimensionChangedErrorDetails as l, EndpointError as m, type EndpointErrorDetails as n, EndpointNotFoundError as o, type EndpointNotFoundErrorDetails as p, type ErrorCategory as q, type InvalidEdgeWeightErrorDetails as r, type InvalidEdgeWeightReason as s, type KindNotFoundErrorDetails as t, type MigrationErrorDetails as u, type NodeConstraintNotFoundErrorDetails as v, NodeIndexNotFoundError as w, type NodeIndexNotFoundErrorDetails as x, NodeNotFoundError as y, type NodeNotFoundErrorDetails as z };