@graphrefly/graphrefly 0.44.0 → 0.46.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 (720) hide show
  1. package/README.md +22 -19
  2. package/dist/_internal-B23BagFd.d.cts +33 -0
  3. package/dist/_internal-B23BagFd.d.ts +33 -0
  4. package/dist/adaptive-rate-limiter-Dch_xYIi.d.cts +111 -0
  5. package/dist/adaptive-rate-limiter-Dch_xYIi.d.ts +111 -0
  6. package/dist/agents-C0Ji9ldU.d.cts +629 -0
  7. package/dist/agents-C9zexT7I.d.ts +629 -0
  8. package/dist/audit-BAXb3VOg.d.ts +246 -0
  9. package/dist/audit-C_bPfkqS.d.cts +246 -0
  10. package/dist/backoff-7KIK3WQW.js +24 -0
  11. package/dist/backoff-7KIK3WQW.js.map +1 -0
  12. package/dist/backoff-Bnb9OoPh.d.cts +6 -0
  13. package/dist/backoff-Bnb9OoPh.d.ts +6 -0
  14. package/dist/base/composition/index.cjs +811 -0
  15. package/dist/base/composition/index.cjs.map +1 -0
  16. package/dist/base/composition/index.d.cts +469 -0
  17. package/dist/base/composition/index.d.ts +469 -0
  18. package/dist/base/composition/index.js +40 -0
  19. package/dist/base/composition/index.js.map +1 -0
  20. package/dist/base/index.cjs +6336 -0
  21. package/dist/base/index.cjs.map +1 -0
  22. package/dist/base/index.d.cts +22 -0
  23. package/dist/base/index.d.ts +22 -0
  24. package/dist/base/index.js +259 -0
  25. package/dist/base/index.js.map +1 -0
  26. package/dist/base/io/index.cjs +3270 -0
  27. package/dist/base/io/index.cjs.map +1 -0
  28. package/dist/base/io/index.d.cts +2245 -0
  29. package/dist/base/io/index.d.ts +2245 -0
  30. package/dist/base/io/index.js +117 -0
  31. package/dist/base/io/index.js.map +1 -0
  32. package/dist/base/meta/index.cjs +43 -0
  33. package/dist/base/meta/index.cjs.map +1 -0
  34. package/dist/base/meta/index.d.cts +45 -0
  35. package/dist/base/meta/index.d.ts +45 -0
  36. package/dist/base/meta/index.js +13 -0
  37. package/dist/base/meta/index.js.map +1 -0
  38. package/dist/base/mutation/index.cjs +200 -0
  39. package/dist/base/mutation/index.cjs.map +1 -0
  40. package/dist/base/mutation/index.d.cts +177 -0
  41. package/dist/base/mutation/index.d.ts +177 -0
  42. package/dist/base/mutation/index.js +22 -0
  43. package/dist/base/mutation/index.js.map +1 -0
  44. package/dist/base/render/index.cjs +1120 -0
  45. package/dist/base/render/index.cjs.map +1 -0
  46. package/dist/{extra/render/index.d.ts → base/render/index.d.cts} +75 -31
  47. package/dist/{extra/render/index.d.cts → base/render/index.d.ts} +75 -31
  48. package/dist/base/render/index.js +24 -0
  49. package/dist/base/render/index.js.map +1 -0
  50. package/dist/base/sources/browser/index.cjs +172 -0
  51. package/dist/base/sources/browser/index.cjs.map +1 -0
  52. package/dist/base/sources/browser/index.d.cts +84 -0
  53. package/dist/base/sources/browser/index.d.ts +84 -0
  54. package/dist/base/sources/browser/index.js +151 -0
  55. package/dist/base/sources/browser/index.js.map +1 -0
  56. package/dist/base/sources/event/index.cjs +98 -0
  57. package/dist/base/sources/event/index.cjs.map +1 -0
  58. package/dist/base/sources/event/index.d.cts +91 -0
  59. package/dist/base/sources/event/index.d.ts +91 -0
  60. package/dist/base/sources/event/index.js +13 -0
  61. package/dist/base/sources/event/index.js.map +1 -0
  62. package/dist/base/sources/index.cjs +755 -0
  63. package/dist/base/sources/index.cjs.map +1 -0
  64. package/dist/{extra/sources.d.ts → base/sources/index.d.cts} +74 -301
  65. package/dist/{extra/sources.d.cts → base/sources/index.d.ts} +74 -301
  66. package/dist/base/sources/index.js +42 -0
  67. package/dist/base/sources/index.js.map +1 -0
  68. package/dist/base/sources/node/index.cjs +320 -0
  69. package/dist/base/sources/node/index.cjs.map +1 -0
  70. package/dist/{extra/node.d.ts → base/sources/node/index.d.cts} +35 -37
  71. package/dist/{extra/node.d.cts → base/sources/node/index.d.ts} +35 -37
  72. package/dist/base/sources/node/index.js +306 -0
  73. package/dist/base/sources/node/index.js.map +1 -0
  74. package/dist/base/utils/index.cjs +37 -0
  75. package/dist/base/utils/index.cjs.map +1 -0
  76. package/dist/base/utils/index.d.cts +37 -0
  77. package/dist/base/utils/index.d.ts +37 -0
  78. package/dist/base/utils/index.js +11 -0
  79. package/dist/base/utils/index.js.map +1 -0
  80. package/dist/base/worker/index.cjs +548 -0
  81. package/dist/base/worker/index.cjs.map +1 -0
  82. package/dist/base/worker/index.d.cts +207 -0
  83. package/dist/base/worker/index.d.ts +207 -0
  84. package/dist/base/worker/index.js +20 -0
  85. package/dist/base/worker/index.js.map +1 -0
  86. package/dist/breaker-C9skL3d8.d.ts +175 -0
  87. package/dist/breaker-ugSdq54q.d.cts +175 -0
  88. package/dist/{cascading-BglDkMdX.d.cts → cascading-CSSbKGrJ.d.ts} +3 -3
  89. package/dist/{cascading-MFgxu7Yo.d.ts → cascading-baGkiihI.d.cts} +3 -3
  90. package/dist/chunk-255UCBG4.js +58 -0
  91. package/dist/chunk-255UCBG4.js.map +1 -0
  92. package/dist/chunk-2LO3EL4W.js +1 -0
  93. package/dist/chunk-2LO3EL4W.js.map +1 -0
  94. package/dist/chunk-2OB3CEJS.js +1065 -0
  95. package/dist/chunk-2OB3CEJS.js.map +1 -0
  96. package/dist/chunk-36NMM65U.js +144 -0
  97. package/dist/chunk-36NMM65U.js.map +1 -0
  98. package/dist/chunk-3CEXCBN6.js +1 -0
  99. package/dist/chunk-3CEXCBN6.js.map +1 -0
  100. package/dist/chunk-3MUSLI6E.js +105 -0
  101. package/dist/chunk-3MUSLI6E.js.map +1 -0
  102. package/dist/chunk-3PSLNJDU.js +884 -0
  103. package/dist/chunk-3PSLNJDU.js.map +1 -0
  104. package/dist/chunk-3QZY5BI7.js +92 -0
  105. package/dist/chunk-3QZY5BI7.js.map +1 -0
  106. package/dist/chunk-42FQ27MQ.js +594 -0
  107. package/dist/chunk-42FQ27MQ.js.map +1 -0
  108. package/dist/chunk-4GYMCUDZ.js +1085 -0
  109. package/dist/chunk-4GYMCUDZ.js.map +1 -0
  110. package/dist/chunk-4S53H2KR.js +382 -0
  111. package/dist/chunk-4S53H2KR.js.map +1 -0
  112. package/dist/chunk-4XCHZRUJ.js +128 -0
  113. package/dist/chunk-4XCHZRUJ.js.map +1 -0
  114. package/dist/chunk-5THCXDWY.js +725 -0
  115. package/dist/chunk-5THCXDWY.js.map +1 -0
  116. package/dist/chunk-6XZYT4SW.js +256 -0
  117. package/dist/chunk-6XZYT4SW.js.map +1 -0
  118. package/dist/chunk-7EGRP2VX.js +76 -0
  119. package/dist/chunk-7EGRP2VX.js.map +1 -0
  120. package/dist/chunk-A7KV5UK4.js +150 -0
  121. package/dist/chunk-A7KV5UK4.js.map +1 -0
  122. package/dist/chunk-APY2SS5X.js +156 -0
  123. package/dist/chunk-APY2SS5X.js.map +1 -0
  124. package/dist/chunk-AZDQPQ3V.js +66 -0
  125. package/dist/chunk-AZDQPQ3V.js.map +1 -0
  126. package/dist/chunk-BU3SEFA5.js +90 -0
  127. package/dist/chunk-BU3SEFA5.js.map +1 -0
  128. package/dist/chunk-BXGZFGZ4.js +189 -0
  129. package/dist/chunk-BXGZFGZ4.js.map +1 -0
  130. package/dist/chunk-CGHORL6G.js +579 -0
  131. package/dist/chunk-CGHORL6G.js.map +1 -0
  132. package/dist/chunk-CXANAIZU.js +530 -0
  133. package/dist/chunk-CXANAIZU.js.map +1 -0
  134. package/dist/chunk-CZQHCKKG.js +1 -0
  135. package/dist/chunk-CZQHCKKG.js.map +1 -0
  136. package/dist/chunk-DKNHAICT.js +133 -0
  137. package/dist/chunk-DKNHAICT.js.map +1 -0
  138. package/dist/chunk-DM4OMPWK.js +584 -0
  139. package/dist/chunk-DM4OMPWK.js.map +1 -0
  140. package/dist/chunk-DMSNO6ZB.js +452 -0
  141. package/dist/chunk-DMSNO6ZB.js.map +1 -0
  142. package/dist/chunk-E5OZPDIW.js +229 -0
  143. package/dist/chunk-E5OZPDIW.js.map +1 -0
  144. package/dist/chunk-EVYY4X5A.js +509 -0
  145. package/dist/chunk-EVYY4X5A.js.map +1 -0
  146. package/dist/chunk-FDFD67UO.js +1 -0
  147. package/dist/chunk-FDFD67UO.js.map +1 -0
  148. package/dist/chunk-FMPF42Q4.js +13 -0
  149. package/dist/chunk-FMPF42Q4.js.map +1 -0
  150. package/dist/chunk-FR6RGA3B.js +1277 -0
  151. package/dist/chunk-FR6RGA3B.js.map +1 -0
  152. package/dist/chunk-FW23JYNQ.js +454 -0
  153. package/dist/chunk-FW23JYNQ.js.map +1 -0
  154. package/dist/chunk-GBCENOLN.js +1575 -0
  155. package/dist/chunk-GBCENOLN.js.map +1 -0
  156. package/dist/chunk-HL7HUJIX.js +1 -0
  157. package/dist/chunk-HL7HUJIX.js.map +1 -0
  158. package/dist/chunk-HULCUY35.js +2508 -0
  159. package/dist/chunk-HULCUY35.js.map +1 -0
  160. package/dist/chunk-IHTWQEDR.js +169 -0
  161. package/dist/chunk-IHTWQEDR.js.map +1 -0
  162. package/dist/chunk-IJRR6YAI.js +128 -0
  163. package/dist/chunk-IJRR6YAI.js.map +1 -0
  164. package/dist/chunk-JGFRAFDL.js +221 -0
  165. package/dist/chunk-JGFRAFDL.js.map +1 -0
  166. package/dist/chunk-KIIXR252.js +211 -0
  167. package/dist/chunk-KIIXR252.js.map +1 -0
  168. package/dist/chunk-KN3H5CNT.js +11 -0
  169. package/dist/chunk-KN3H5CNT.js.map +1 -0
  170. package/dist/chunk-KPG3DGLA.js +1 -0
  171. package/dist/chunk-KPG3DGLA.js.map +1 -0
  172. package/dist/chunk-KRNQ6RGQ.js +1 -0
  173. package/dist/chunk-KRNQ6RGQ.js.map +1 -0
  174. package/dist/chunk-LBAJK24K.js +1071 -0
  175. package/dist/chunk-LBAJK24K.js.map +1 -0
  176. package/dist/chunk-MLTPJMH6.js +417 -0
  177. package/dist/chunk-MLTPJMH6.js.map +1 -0
  178. package/dist/chunk-N3SZ7BMH.js +95 -0
  179. package/dist/chunk-N3SZ7BMH.js.map +1 -0
  180. package/dist/chunk-NDUD3IMO.js +540 -0
  181. package/dist/chunk-NDUD3IMO.js.map +1 -0
  182. package/dist/chunk-NY2PYHNC.js +873 -0
  183. package/dist/chunk-NY2PYHNC.js.map +1 -0
  184. package/dist/chunk-O3MT7DYI.js +225 -0
  185. package/dist/chunk-O3MT7DYI.js.map +1 -0
  186. package/dist/chunk-OCUDSN63.js +2386 -0
  187. package/dist/chunk-OCUDSN63.js.map +1 -0
  188. package/dist/chunk-OIWU3NYV.js +199 -0
  189. package/dist/chunk-OIWU3NYV.js.map +1 -0
  190. package/dist/chunk-OO5BM6CJ.js +1153 -0
  191. package/dist/chunk-OO5BM6CJ.js.map +1 -0
  192. package/dist/chunk-OQUIJT7A.js +1 -0
  193. package/dist/chunk-OQUIJT7A.js.map +1 -0
  194. package/dist/chunk-P5LBT622.js +105 -0
  195. package/dist/chunk-P5LBT622.js.map +1 -0
  196. package/dist/chunk-PKGQG5QQ.js +519 -0
  197. package/dist/chunk-PKGQG5QQ.js.map +1 -0
  198. package/dist/chunk-PKPO3JTZ.js +561 -0
  199. package/dist/chunk-PKPO3JTZ.js.map +1 -0
  200. package/dist/chunk-PL5UDIQ5.js +118 -0
  201. package/dist/chunk-PL5UDIQ5.js.map +1 -0
  202. package/dist/chunk-PZWISPIQ.js +432 -0
  203. package/dist/chunk-PZWISPIQ.js.map +1 -0
  204. package/dist/chunk-Q3EYOCZB.js +510 -0
  205. package/dist/chunk-Q3EYOCZB.js.map +1 -0
  206. package/dist/chunk-QMBYUVRL.js +15 -0
  207. package/dist/chunk-QMBYUVRL.js.map +1 -0
  208. package/dist/chunk-RAGGHLCV.js +200 -0
  209. package/dist/chunk-RAGGHLCV.js.map +1 -0
  210. package/dist/chunk-RGL53X5G.js +574 -0
  211. package/dist/chunk-RGL53X5G.js.map +1 -0
  212. package/dist/chunk-RJOG4IJU.js +1039 -0
  213. package/dist/chunk-RJOG4IJU.js.map +1 -0
  214. package/dist/chunk-SOOKUYVM.js +403 -0
  215. package/dist/chunk-SOOKUYVM.js.map +1 -0
  216. package/dist/chunk-T5BN5KG7.js +1 -0
  217. package/dist/chunk-T5BN5KG7.js.map +1 -0
  218. package/dist/chunk-TP7244Y6.js +207 -0
  219. package/dist/chunk-TP7244Y6.js.map +1 -0
  220. package/dist/chunk-TSBFTJKM.js +57 -0
  221. package/dist/chunk-TSBFTJKM.js.map +1 -0
  222. package/dist/chunk-URQ2CBBF.js +143 -0
  223. package/dist/chunk-URQ2CBBF.js.map +1 -0
  224. package/dist/chunk-W2BOPXTI.js +1 -0
  225. package/dist/chunk-W2BOPXTI.js.map +1 -0
  226. package/dist/chunk-WKSWLSCX.js +207 -0
  227. package/dist/chunk-WKSWLSCX.js.map +1 -0
  228. package/dist/chunk-Y52CS6YA.js +88 -0
  229. package/dist/chunk-Y52CS6YA.js.map +1 -0
  230. package/dist/chunk-YCBUWK77.js +92 -0
  231. package/dist/chunk-YCBUWK77.js.map +1 -0
  232. package/dist/chunk-YJ4U2D2C.js +314 -0
  233. package/dist/chunk-YJ4U2D2C.js.map +1 -0
  234. package/dist/chunk-Z4YXAUDN.js +239 -0
  235. package/dist/chunk-Z4YXAUDN.js.map +1 -0
  236. package/dist/chunk-Z6EGP5D7.js +92 -0
  237. package/dist/chunk-Z6EGP5D7.js.map +1 -0
  238. package/dist/compat/index.cjs +3100 -9
  239. package/dist/compat/index.cjs.map +1 -0
  240. package/dist/compat/index.d.cts +112 -18
  241. package/dist/compat/index.d.ts +112 -18
  242. package/dist/compat/index.js +176 -1
  243. package/dist/compat/index.js.map +1 -0
  244. package/dist/compat/jotai/index.cjs +149 -1
  245. package/dist/compat/jotai/index.cjs.map +1 -0
  246. package/dist/compat/jotai/index.d.cts +2 -2
  247. package/dist/compat/jotai/index.d.ts +2 -2
  248. package/dist/compat/jotai/index.js +8 -1
  249. package/dist/compat/jotai/index.js.map +1 -0
  250. package/dist/compat/nanostores/index.cjs +205 -1
  251. package/dist/compat/nanostores/index.cjs.map +1 -0
  252. package/dist/compat/nanostores/index.d.cts +2 -2
  253. package/dist/compat/nanostores/index.d.ts +2 -2
  254. package/dist/compat/nanostores/index.js +22 -1
  255. package/dist/compat/nanostores/index.js.map +1 -0
  256. package/dist/compat/nestjs/index.cjs +2241 -9
  257. package/dist/compat/nestjs/index.cjs.map +1 -0
  258. package/dist/compat/nestjs/index.d.cts +7 -10
  259. package/dist/compat/nestjs/index.d.ts +7 -10
  260. package/dist/compat/nestjs/index.js +78 -1
  261. package/dist/compat/nestjs/index.js.map +1 -0
  262. package/dist/compat/react/index.cjs +114 -1
  263. package/dist/compat/react/index.cjs.map +1 -0
  264. package/dist/compat/react/index.d.cts +2 -2
  265. package/dist/compat/react/index.d.ts +2 -2
  266. package/dist/compat/react/index.js +12 -1
  267. package/dist/compat/react/index.js.map +1 -0
  268. package/dist/compat/solid/index.cjs +101 -1
  269. package/dist/compat/solid/index.cjs.map +1 -0
  270. package/dist/compat/solid/index.d.cts +2 -2
  271. package/dist/compat/solid/index.d.ts +2 -2
  272. package/dist/compat/solid/index.js +12 -1
  273. package/dist/compat/solid/index.js.map +1 -0
  274. package/dist/compat/svelte/index.cjs +104 -1
  275. package/dist/compat/svelte/index.cjs.map +1 -0
  276. package/dist/compat/svelte/index.d.cts +2 -2
  277. package/dist/compat/svelte/index.d.ts +2 -2
  278. package/dist/compat/svelte/index.js +12 -1
  279. package/dist/compat/svelte/index.js.map +1 -0
  280. package/dist/compat/vue/index.cjs +119 -1
  281. package/dist/compat/vue/index.cjs.map +1 -0
  282. package/dist/compat/vue/index.d.cts +2 -2
  283. package/dist/compat/vue/index.d.ts +2 -2
  284. package/dist/compat/vue/index.js +12 -1
  285. package/dist/compat/vue/index.js.map +1 -0
  286. package/dist/compat/zustand/index.cjs +69 -3
  287. package/dist/compat/zustand/index.cjs.map +1 -0
  288. package/dist/compat/zustand/index.d.cts +2 -6
  289. package/dist/compat/zustand/index.d.ts +2 -6
  290. package/dist/compat/zustand/index.js +8 -1
  291. package/dist/compat/zustand/index.js.map +1 -0
  292. package/dist/distill-De6Rnn15.d.cts +48 -0
  293. package/dist/distill-De6Rnn15.d.ts +48 -0
  294. package/dist/external-register-CWyroXb_.d.cts +138 -0
  295. package/dist/external-register-CWyroXb_.d.ts +138 -0
  296. package/dist/{fallback-74oxi34l.d.cts → fallback-Bx46zqky.d.cts} +3 -10
  297. package/dist/{fallback-DUyyBTBK.d.ts → fallback-pIWW8A2d.d.ts} +3 -10
  298. package/dist/guarded-execution-BcdtxeBk.d.ts +207 -0
  299. package/dist/guarded-execution-C-3hnP6A.d.cts +207 -0
  300. package/dist/{index-CBGUK09R.d.ts → index-5SU_O78r.d.cts} +5 -5
  301. package/dist/{index-BmZXHqkE.d.ts → index-B6pxYJzO.d.cts} +1 -1
  302. package/dist/{index-hcDJ8PSI.d.cts → index-B6pxYJzO.d.ts} +1 -1
  303. package/dist/{index-C5stwKcw.d.cts → index-BFsng6v1.d.cts} +1 -1
  304. package/dist/{index-CdAlHFEt.d.ts → index-BFsng6v1.d.ts} +1 -1
  305. package/dist/{index-_6ODbuOu.d.cts → index-Bg-LwEt-.d.cts} +1 -1
  306. package/dist/{index-CviRnE4K.d.ts → index-Bg-LwEt-.d.ts} +1 -1
  307. package/dist/{index-CBBLl_rc.d.ts → index-Brp888t0.d.cts} +1 -1
  308. package/dist/{index-BQSKmbuG.d.cts → index-Brp888t0.d.ts} +1 -1
  309. package/dist/{index-sqkqlb1p.d.ts → index-CDfk6jHN.d.cts} +1 -1
  310. package/dist/{index-ZVQhLa2i.d.cts → index-CDfk6jHN.d.ts} +1 -1
  311. package/dist/{index-Climxqsu.d.cts → index-CEXCtYYJ.d.ts} +5 -5
  312. package/dist/index-DLAxYaN5.d.cts +169 -0
  313. package/dist/index-DLAxYaN5.d.ts +169 -0
  314. package/dist/{index-CK29LV56.d.cts → index-DeWbQzMe.d.cts} +1 -1
  315. package/dist/{index-CPQlGA29.d.ts → index-DeWbQzMe.d.ts} +1 -1
  316. package/dist/{index-BrPrLl4e.d.cts → index-dX9IzPqj.d.cts} +1 -1
  317. package/dist/{index-Dgl1HpPn.d.ts → index-dX9IzPqj.d.ts} +1 -1
  318. package/dist/index.cjs +25934 -191
  319. package/dist/index.cjs.map +1 -0
  320. package/dist/index.d.cts +58 -94
  321. package/dist/index.d.ts +58 -94
  322. package/dist/index.js +852 -1
  323. package/dist/index.js.map +1 -0
  324. package/dist/layout-types-B5aiHYgk.d.cts +72 -0
  325. package/dist/layout-types-B5aiHYgk.d.ts +72 -0
  326. package/dist/memory-composers-BryDrRBX.d.cts +529 -0
  327. package/dist/memory-composers-CVQqPYEV.d.ts +529 -0
  328. package/dist/{observable-DWjNfLvC.d.ts → observable-BXQoW1P-.d.cts} +1 -1
  329. package/dist/{observable-e3eiPPFy.d.cts → observable-BXQoW1P-.d.ts} +1 -1
  330. package/dist/{pipeline-graph-Sgj0gCwn.d.ts → pipeline-graph-Ce47CB6Y.d.cts} +13 -10
  331. package/dist/{pipeline-graph-CIKhynsF.d.cts → pipeline-graph-DXCwY9vG.d.ts} +13 -10
  332. package/dist/presets/ai/index.cjs +4377 -0
  333. package/dist/presets/ai/index.cjs.map +1 -0
  334. package/dist/presets/ai/index.d.cts +98 -0
  335. package/dist/presets/ai/index.d.ts +98 -0
  336. package/dist/presets/ai/index.js +54 -0
  337. package/dist/presets/ai/index.js.map +1 -0
  338. package/dist/presets/harness/index.cjs +5929 -0
  339. package/dist/presets/harness/index.cjs.map +1 -0
  340. package/dist/presets/harness/index.d.cts +566 -0
  341. package/dist/presets/harness/index.d.ts +566 -0
  342. package/dist/presets/harness/index.js +71 -0
  343. package/dist/presets/harness/index.js.map +1 -0
  344. package/dist/presets/index.cjs +9782 -0
  345. package/dist/presets/index.cjs.map +1 -0
  346. package/dist/presets/index.d.cts +28 -0
  347. package/dist/presets/index.d.ts +28 -0
  348. package/dist/presets/index.js +129 -0
  349. package/dist/presets/index.js.map +1 -0
  350. package/dist/presets/inspect/index.cjs +1087 -0
  351. package/dist/presets/inspect/index.cjs.map +1 -0
  352. package/dist/presets/inspect/index.d.cts +172 -0
  353. package/dist/presets/inspect/index.d.ts +172 -0
  354. package/dist/presets/inspect/index.js +21 -0
  355. package/dist/presets/inspect/index.js.map +1 -0
  356. package/dist/presets/resilience/index.cjs +1593 -0
  357. package/dist/presets/resilience/index.cjs.map +1 -0
  358. package/dist/presets/resilience/index.d.cts +205 -0
  359. package/dist/presets/resilience/index.d.ts +205 -0
  360. package/dist/presets/resilience/index.js +18 -0
  361. package/dist/presets/resilience/index.js.map +1 -0
  362. package/dist/rate-limiter-CEALq4N1.d.ts +559 -0
  363. package/dist/rate-limiter-DpVbSYdH.d.cts +559 -0
  364. package/dist/{reactive-layout-DOTs9P3X.d.ts → reactive-layout-fswlBUvX.d.cts} +19 -7
  365. package/dist/{reactive-layout-DgctbqZo.d.cts → reactive-layout-fswlBUvX.d.ts} +19 -7
  366. package/dist/retry-BDbRZ_gx.d.ts +125 -0
  367. package/dist/retry-DWuhjvsA.d.cts +125 -0
  368. package/dist/solutions/index.cjs +8200 -0
  369. package/dist/solutions/index.cjs.map +1 -0
  370. package/dist/solutions/index.d.cts +23 -0
  371. package/dist/solutions/index.d.ts +23 -0
  372. package/dist/solutions/index.js +55 -0
  373. package/dist/solutions/index.js.map +1 -0
  374. package/dist/spawnable-5mDY501F.d.cts +746 -0
  375. package/dist/spawnable-D3lR0oQu.d.ts +746 -0
  376. package/dist/status-U-rUI79b.d.cts +84 -0
  377. package/dist/status-U-rUI79b.d.ts +84 -0
  378. package/dist/timeout-U5O4ESK3.js +12 -0
  379. package/dist/timeout-U5O4ESK3.js.map +1 -0
  380. package/dist/{types-CWFysE9E.d.ts → types-BB5Lw-pB.d.cts} +3 -3
  381. package/dist/{types-C0_yquda.d.cts → types-BB5Lw-pB.d.ts} +3 -3
  382. package/dist/types-CJWIMJiZ.d.ts +548 -0
  383. package/dist/types-vCq7ShIm.d.cts +548 -0
  384. package/dist/utils/ai/browser.cjs +2169 -0
  385. package/dist/utils/ai/browser.cjs.map +1 -0
  386. package/dist/{patterns → utils}/ai/browser.d.cts +7 -5
  387. package/dist/{patterns → utils}/ai/browser.d.ts +7 -5
  388. package/dist/utils/ai/browser.js +255 -0
  389. package/dist/utils/ai/browser.js.map +1 -0
  390. package/dist/utils/ai/index.cjs +8468 -0
  391. package/dist/utils/ai/index.cjs.map +1 -0
  392. package/dist/{index-CR8QpwX8.d.ts → utils/ai/index.d.cts} +73 -976
  393. package/dist/{index-UPSiS-X7.d.cts → utils/ai/index.d.ts} +73 -976
  394. package/dist/utils/ai/index.js +173 -0
  395. package/dist/utils/ai/index.js.map +1 -0
  396. package/dist/utils/ai/node.cjs +648 -0
  397. package/dist/utils/ai/node.cjs.map +1 -0
  398. package/dist/{patterns → utils}/ai/node.d.cts +5 -7
  399. package/dist/{patterns → utils}/ai/node.d.ts +5 -7
  400. package/dist/utils/ai/node.js +84 -0
  401. package/dist/utils/ai/node.js.map +1 -0
  402. package/dist/utils/cqrs/index.cjs +1036 -0
  403. package/dist/utils/cqrs/index.cjs.map +1 -0
  404. package/dist/{index-CeFiHtAg.d.ts → utils/cqrs/index.d.cts} +7 -37
  405. package/dist/{index-B-_tFaqV.d.cts → utils/cqrs/index.d.ts} +7 -37
  406. package/dist/utils/cqrs/index.js +18 -0
  407. package/dist/utils/cqrs/index.js.map +1 -0
  408. package/dist/utils/demo-shell/index.cjs +865 -0
  409. package/dist/utils/demo-shell/index.cjs.map +1 -0
  410. package/dist/{index-B8YnZpIR.d.ts → utils/demo-shell/index.d.cts} +4 -16
  411. package/dist/{index-Cwv0KWcU.d.cts → utils/demo-shell/index.d.ts} +4 -16
  412. package/dist/utils/demo-shell/index.js +13 -0
  413. package/dist/utils/demo-shell/index.js.map +1 -0
  414. package/dist/utils/domain-templates/index.cjs +732 -0
  415. package/dist/utils/domain-templates/index.cjs.map +1 -0
  416. package/dist/{index-CzLVrjxn.d.ts → utils/domain-templates/index.d.cts} +3 -20
  417. package/dist/{index-BaQaY_IQ.d.cts → utils/domain-templates/index.d.ts} +3 -20
  418. package/dist/utils/domain-templates/index.js +17 -0
  419. package/dist/utils/domain-templates/index.js.map +1 -0
  420. package/dist/utils/graphspec/index.cjs +1174 -0
  421. package/dist/utils/graphspec/index.cjs.map +1 -0
  422. package/dist/{index-CMh5Rz1y.d.ts → utils/graphspec/index.d.cts} +106 -42
  423. package/dist/{index-CS0LTlB8.d.cts → utils/graphspec/index.d.ts} +106 -42
  424. package/dist/utils/graphspec/index.js +35 -0
  425. package/dist/utils/graphspec/index.js.map +1 -0
  426. package/dist/utils/harness/index.cjs +656 -0
  427. package/dist/utils/harness/index.cjs.map +1 -0
  428. package/dist/utils/harness/index.d.cts +542 -0
  429. package/dist/utils/harness/index.d.ts +542 -0
  430. package/dist/utils/harness/index.js +56 -0
  431. package/dist/utils/harness/index.js.map +1 -0
  432. package/dist/utils/index.cjs +17609 -0
  433. package/dist/utils/index.cjs.map +1 -0
  434. package/dist/utils/index.d.cts +96 -0
  435. package/dist/utils/index.d.ts +96 -0
  436. package/dist/utils/index.js +514 -0
  437. package/dist/utils/index.js.map +1 -0
  438. package/dist/utils/inspect/index.cjs +807 -0
  439. package/dist/utils/inspect/index.cjs.map +1 -0
  440. package/dist/utils/inspect/index.d.cts +123 -0
  441. package/dist/utils/inspect/index.d.ts +123 -0
  442. package/dist/utils/inspect/index.js +30 -0
  443. package/dist/utils/inspect/index.js.map +1 -0
  444. package/dist/utils/job-queue/index.cjs +717 -0
  445. package/dist/utils/job-queue/index.cjs.map +1 -0
  446. package/dist/{index-DisjX8a-.d.ts → utils/job-queue/index.d.cts} +5 -26
  447. package/dist/{index-DV_1YuVk.d.cts → utils/job-queue/index.d.ts} +5 -26
  448. package/dist/utils/job-queue/index.js +18 -0
  449. package/dist/utils/job-queue/index.js.map +1 -0
  450. package/dist/utils/memory/index.cjs +1451 -0
  451. package/dist/utils/memory/index.cjs.map +1 -0
  452. package/dist/{index-CZ3r5Rxp.d.ts → utils/memory/index.d.cts} +242 -34
  453. package/dist/{index-B17QddL1.d.cts → utils/memory/index.d.ts} +242 -34
  454. package/dist/utils/memory/index.js +19 -0
  455. package/dist/utils/memory/index.js.map +1 -0
  456. package/dist/utils/messaging/index.cjs +666 -0
  457. package/dist/utils/messaging/index.cjs.map +1 -0
  458. package/dist/utils/messaging/index.d.cts +562 -0
  459. package/dist/utils/messaging/index.d.ts +562 -0
  460. package/dist/utils/messaging/index.js +50 -0
  461. package/dist/utils/messaging/index.js.map +1 -0
  462. package/dist/utils/orchestration/index.cjs +876 -0
  463. package/dist/utils/orchestration/index.cjs.map +1 -0
  464. package/dist/utils/orchestration/index.d.cts +233 -0
  465. package/dist/utils/orchestration/index.d.ts +233 -0
  466. package/dist/utils/orchestration/index.js +19 -0
  467. package/dist/utils/orchestration/index.js.map +1 -0
  468. package/dist/utils/process/index.cjs +743 -0
  469. package/dist/utils/process/index.cjs.map +1 -0
  470. package/dist/{index-p09KSrTN.d.ts → utils/process/index.d.cts} +97 -44
  471. package/dist/{index-CasX6Pfq.d.cts → utils/process/index.d.ts} +97 -44
  472. package/dist/utils/process/index.js +14 -0
  473. package/dist/utils/process/index.js.map +1 -0
  474. package/dist/utils/reactive-layout/index.cjs +1607 -0
  475. package/dist/utils/reactive-layout/index.cjs.map +1 -0
  476. package/dist/{index-B5S8ULbU.d.ts → utils/reactive-layout/index.d.cts} +58 -81
  477. package/dist/{index-Dc4AYqrJ.d.cts → utils/reactive-layout/index.d.ts} +58 -81
  478. package/dist/utils/reactive-layout/index.js +52 -0
  479. package/dist/utils/reactive-layout/index.js.map +1 -0
  480. package/dist/utils/reduction/index.cjs +203 -0
  481. package/dist/utils/reduction/index.cjs.map +1 -0
  482. package/dist/{index-Byu-OpX_.d.ts → utils/reduction/index.d.cts} +6 -17
  483. package/dist/{index-tRCxuAXF.d.cts → utils/reduction/index.d.ts} +6 -17
  484. package/dist/utils/reduction/index.js +14 -0
  485. package/dist/utils/reduction/index.js.map +1 -0
  486. package/dist/utils/resilience/index.cjs +1617 -0
  487. package/dist/utils/resilience/index.cjs.map +1 -0
  488. package/dist/utils/resilience/index.d.cts +9 -0
  489. package/dist/utils/resilience/index.d.ts +9 -0
  490. package/dist/utils/resilience/index.js +44 -0
  491. package/dist/utils/resilience/index.js.map +1 -0
  492. package/dist/utils/surface/index.cjs +1070 -0
  493. package/dist/utils/surface/index.cjs.map +1 -0
  494. package/dist/{index-CYq8vAyV.d.ts → utils/surface/index.d.cts} +7 -58
  495. package/dist/{index-CSOmP7xT.d.cts → utils/surface/index.d.ts} +7 -58
  496. package/dist/utils/surface/index.js +30 -0
  497. package/dist/utils/surface/index.js.map +1 -0
  498. package/dist/utils/topology-view/index.cjs +620 -0
  499. package/dist/utils/topology-view/index.cjs.map +1 -0
  500. package/dist/utils/topology-view/index.d.cts +68 -0
  501. package/dist/utils/topology-view/index.d.ts +68 -0
  502. package/dist/utils/topology-view/index.js +11 -0
  503. package/dist/utils/topology-view/index.js.map +1 -0
  504. package/package.json +664 -584
  505. package/dist/backoff-HPZMEZNF.js +0 -1
  506. package/dist/chunk-2T7U5EU6.js +0 -1
  507. package/dist/chunk-3G5U5QNE.js +0 -5
  508. package/dist/chunk-4VVTGLXJ.js +0 -1
  509. package/dist/chunk-5M4CCMMD.js +0 -45
  510. package/dist/chunk-5QDBSZBV.js +0 -1
  511. package/dist/chunk-5XJ6B66J.js +0 -1
  512. package/dist/chunk-6QZNQS5B.js +0 -1
  513. package/dist/chunk-6X7AFUJV.js +0 -9
  514. package/dist/chunk-7K6PWTDQ.js +0 -1
  515. package/dist/chunk-7LIAPXJB.js +0 -1
  516. package/dist/chunk-7WPU3UHQ.js +0 -1
  517. package/dist/chunk-A5WCQ5NO.js +0 -1
  518. package/dist/chunk-APPIWSGD.js +0 -84
  519. package/dist/chunk-BEZWM2SY.js +0 -1
  520. package/dist/chunk-C72GO4IZ.js +0 -1
  521. package/dist/chunk-CB676TKJ.js +0 -1
  522. package/dist/chunk-CE6TI2TL.js +0 -1
  523. package/dist/chunk-CE72X3WO.js +0 -1
  524. package/dist/chunk-CK2E7BTU.js +0 -1
  525. package/dist/chunk-CLVB32RD.js +0 -1
  526. package/dist/chunk-CRVT7D2P.js +0 -1
  527. package/dist/chunk-D5RFJOZ2.js +0 -1
  528. package/dist/chunk-D7GPHKFH.js +0 -1
  529. package/dist/chunk-DHRX7JX4.js +0 -2
  530. package/dist/chunk-ESMPEKEV.js +0 -1
  531. package/dist/chunk-F672GV32.js +0 -1
  532. package/dist/chunk-FZMYDOWV.js +0 -1
  533. package/dist/chunk-GHBWHMRZ.js +0 -1
  534. package/dist/chunk-GLERH466.js +0 -1
  535. package/dist/chunk-GPW2V3RE.js +0 -1
  536. package/dist/chunk-HIDYF36O.js +0 -1
  537. package/dist/chunk-HITNVN6B.js +0 -3
  538. package/dist/chunk-HY4DJBA7.js +0 -5
  539. package/dist/chunk-KZIEYVXN.js +0 -1
  540. package/dist/chunk-L6NSJVJZ.js +0 -1
  541. package/dist/chunk-N4MQX6JU.js +0 -18
  542. package/dist/chunk-N7FHEL4D.js +0 -1
  543. package/dist/chunk-NTEURFZH.js +0 -1
  544. package/dist/chunk-OIVP6KFV.js +0 -1
  545. package/dist/chunk-OPHBU3LG.js +0 -1
  546. package/dist/chunk-OYQOZP2F.js +0 -5
  547. package/dist/chunk-PTZK576G.js +0 -1
  548. package/dist/chunk-QYADASLV.js +0 -1
  549. package/dist/chunk-ST7UXLWR.js +0 -1
  550. package/dist/chunk-SVY7VUYU.js +0 -1
  551. package/dist/chunk-TK3NWWD4.js +0 -1
  552. package/dist/chunk-TSOYJ743.js +0 -1
  553. package/dist/chunk-UNGSTR4X.js +0 -61
  554. package/dist/chunk-VIMF6LGM.js +0 -1
  555. package/dist/chunk-VJLMUKOI.js +0 -1
  556. package/dist/chunk-VN6RDSK2.js +0 -1
  557. package/dist/chunk-VV4N5P64.js +0 -1
  558. package/dist/chunk-W3I423PS.js +0 -1
  559. package/dist/chunk-WJR24TAG.js +0 -1
  560. package/dist/chunk-XTGKMHSW.js +0 -1
  561. package/dist/chunk-YBB7ZGTY.js +0 -1
  562. package/dist/chunk-Z4NPUARF.js +0 -1
  563. package/dist/chunk-ZGNQRPDT.js +0 -1
  564. package/dist/chunk-ZKPSFFKU.js +0 -1
  565. package/dist/chunk-ZLV5SQSX.js +0 -1
  566. package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
  567. package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
  568. package/dist/core/index.cjs +0 -1
  569. package/dist/core/index.d.cts +0 -3
  570. package/dist/core/index.d.ts +0 -3
  571. package/dist/core/index.js +0 -1
  572. package/dist/decay-BvOWTZ00.d.ts +0 -112
  573. package/dist/decay-CFlLvXUT.d.cts +0 -112
  574. package/dist/extra/browser.cjs +0 -1
  575. package/dist/extra/browser.d.cts +0 -4
  576. package/dist/extra/browser.d.ts +0 -4
  577. package/dist/extra/browser.js +0 -1
  578. package/dist/extra/index.cjs +0 -20
  579. package/dist/extra/index.d.cts +0 -17
  580. package/dist/extra/index.d.ts +0 -17
  581. package/dist/extra/index.js +0 -1
  582. package/dist/extra/node.cjs +0 -2
  583. package/dist/extra/node.js +0 -2
  584. package/dist/extra/operators.cjs +0 -1
  585. package/dist/extra/operators.d.cts +0 -958
  586. package/dist/extra/operators.d.ts +0 -958
  587. package/dist/extra/operators.js +0 -1
  588. package/dist/extra/reactive.cjs +0 -1
  589. package/dist/extra/reactive.d.cts +0 -353
  590. package/dist/extra/reactive.d.ts +0 -353
  591. package/dist/extra/reactive.js +0 -1
  592. package/dist/extra/render/index.cjs +0 -5
  593. package/dist/extra/render/index.js +0 -1
  594. package/dist/extra/sources.cjs +0 -3
  595. package/dist/extra/sources.js +0 -1
  596. package/dist/extra/storage-browser.cjs +0 -1
  597. package/dist/extra/storage-browser.d.cts +0 -37
  598. package/dist/extra/storage-browser.d.ts +0 -37
  599. package/dist/extra/storage-browser.js +0 -1
  600. package/dist/extra/storage-core.cjs +0 -1
  601. package/dist/extra/storage-core.d.cts +0 -28
  602. package/dist/extra/storage-core.d.ts +0 -28
  603. package/dist/extra/storage-core.js +0 -1
  604. package/dist/extra/storage-node.cjs +0 -1
  605. package/dist/extra/storage-node.d.cts +0 -2
  606. package/dist/extra/storage-node.d.ts +0 -2
  607. package/dist/extra/storage-node.js +0 -0
  608. package/dist/extra/storage-tiers-browser.cjs +0 -1
  609. package/dist/extra/storage-tiers-browser.d.cts +0 -120
  610. package/dist/extra/storage-tiers-browser.d.ts +0 -120
  611. package/dist/extra/storage-tiers-browser.js +0 -1
  612. package/dist/extra/storage-tiers-node.cjs +0 -1
  613. package/dist/extra/storage-tiers-node.d.cts +0 -210
  614. package/dist/extra/storage-tiers-node.d.ts +0 -210
  615. package/dist/extra/storage-tiers-node.js +0 -1
  616. package/dist/extra/storage-tiers.cjs +0 -1
  617. package/dist/extra/storage-tiers.d.cts +0 -412
  618. package/dist/extra/storage-tiers.d.ts +0 -412
  619. package/dist/extra/storage-tiers.js +0 -1
  620. package/dist/graph/index.cjs +0 -7
  621. package/dist/graph/index.d.cts +0 -7
  622. package/dist/graph/index.d.ts +0 -7
  623. package/dist/graph/index.js +0 -1
  624. package/dist/graph-CWvEUQAq.d.cts +0 -1861
  625. package/dist/graph-D9LFnda9.d.ts +0 -1861
  626. package/dist/index-5k1T6jl0.d.cts +0 -121
  627. package/dist/index-9770hRuQ.d.cts +0 -779
  628. package/dist/index-B1F8Enjf.d.ts +0 -704
  629. package/dist/index-BHskSB8v.d.ts +0 -3413
  630. package/dist/index-BIYAkbAi.d.cts +0 -26
  631. package/dist/index-BoJ5JHxI.d.ts +0 -557
  632. package/dist/index-BocU7pqs.d.ts +0 -779
  633. package/dist/index-BxNs2HB9.d.cts +0 -1858
  634. package/dist/index-C1T3d7V-.d.cts +0 -704
  635. package/dist/index-C5ri2Axc.d.cts +0 -301
  636. package/dist/index-C9l6OEBL.d.ts +0 -26
  637. package/dist/index-CC-AvFTy.d.cts +0 -557
  638. package/dist/index-CJF1URuX.d.ts +0 -121
  639. package/dist/index-CdTelp1M.d.ts +0 -202
  640. package/dist/index-Cj3WohTd.d.cts +0 -202
  641. package/dist/index-Co7uli2l.d.cts +0 -3413
  642. package/dist/index-D0aciIex.d.cts +0 -209
  643. package/dist/index-DHen9Klo.d.ts +0 -1858
  644. package/dist/index-Yq60JP3s.d.ts +0 -209
  645. package/dist/index-nozs3fFC.d.ts +0 -301
  646. package/dist/node-kK3CvTrR.d.cts +0 -1347
  647. package/dist/node-kK3CvTrR.d.ts +0 -1347
  648. package/dist/patterns/ai/browser.cjs +0 -8
  649. package/dist/patterns/ai/browser.js +0 -3
  650. package/dist/patterns/ai/index.cjs +0 -74
  651. package/dist/patterns/ai/index.d.cts +0 -20
  652. package/dist/patterns/ai/index.d.ts +0 -20
  653. package/dist/patterns/ai/index.js +0 -1
  654. package/dist/patterns/ai/node.cjs +0 -1
  655. package/dist/patterns/ai/node.js +0 -1
  656. package/dist/patterns/cqrs/index.cjs +0 -3
  657. package/dist/patterns/cqrs/index.d.cts +0 -8
  658. package/dist/patterns/cqrs/index.d.ts +0 -8
  659. package/dist/patterns/cqrs/index.js +0 -1
  660. package/dist/patterns/demo-shell/index.cjs +0 -5
  661. package/dist/patterns/demo-shell/index.d.cts +0 -7
  662. package/dist/patterns/demo-shell/index.d.ts +0 -7
  663. package/dist/patterns/demo-shell/index.js +0 -1
  664. package/dist/patterns/domain-templates/index.cjs +0 -3
  665. package/dist/patterns/domain-templates/index.d.cts +0 -6
  666. package/dist/patterns/domain-templates/index.d.ts +0 -6
  667. package/dist/patterns/domain-templates/index.js +0 -1
  668. package/dist/patterns/graphspec/index.cjs +0 -86
  669. package/dist/patterns/graphspec/index.d.cts +0 -8
  670. package/dist/patterns/graphspec/index.d.ts +0 -8
  671. package/dist/patterns/graphspec/index.js +0 -1
  672. package/dist/patterns/harness/index.cjs +0 -48
  673. package/dist/patterns/harness/index.d.cts +0 -13
  674. package/dist/patterns/harness/index.d.ts +0 -13
  675. package/dist/patterns/harness/index.js +0 -1
  676. package/dist/patterns/inspect/index.cjs +0 -3
  677. package/dist/patterns/inspect/index.d.cts +0 -9
  678. package/dist/patterns/inspect/index.d.ts +0 -9
  679. package/dist/patterns/inspect/index.js +0 -1
  680. package/dist/patterns/job-queue/index.cjs +0 -3
  681. package/dist/patterns/job-queue/index.d.cts +0 -9
  682. package/dist/patterns/job-queue/index.d.ts +0 -9
  683. package/dist/patterns/job-queue/index.js +0 -1
  684. package/dist/patterns/memory/index.cjs +0 -3
  685. package/dist/patterns/memory/index.d.cts +0 -8
  686. package/dist/patterns/memory/index.d.ts +0 -8
  687. package/dist/patterns/memory/index.js +0 -1
  688. package/dist/patterns/messaging/index.cjs +0 -3
  689. package/dist/patterns/messaging/index.d.cts +0 -7
  690. package/dist/patterns/messaging/index.d.ts +0 -7
  691. package/dist/patterns/messaging/index.js +0 -1
  692. package/dist/patterns/orchestration/index.cjs +0 -3
  693. package/dist/patterns/orchestration/index.d.cts +0 -8
  694. package/dist/patterns/orchestration/index.d.ts +0 -8
  695. package/dist/patterns/orchestration/index.js +0 -1
  696. package/dist/patterns/process/index.cjs +0 -3
  697. package/dist/patterns/process/index.d.cts +0 -10
  698. package/dist/patterns/process/index.d.ts +0 -10
  699. package/dist/patterns/process/index.js +0 -1
  700. package/dist/patterns/reactive-layout/index.cjs +0 -4
  701. package/dist/patterns/reactive-layout/index.d.cts +0 -7
  702. package/dist/patterns/reactive-layout/index.d.ts +0 -7
  703. package/dist/patterns/reactive-layout/index.js +0 -1
  704. package/dist/patterns/reduction/index.cjs +0 -3
  705. package/dist/patterns/reduction/index.d.cts +0 -6
  706. package/dist/patterns/reduction/index.d.ts +0 -6
  707. package/dist/patterns/reduction/index.js +0 -1
  708. package/dist/patterns/surface/index.cjs +0 -13
  709. package/dist/patterns/surface/index.d.cts +0 -9
  710. package/dist/patterns/surface/index.d.ts +0 -9
  711. package/dist/patterns/surface/index.js +0 -1
  712. package/dist/reactive-log-BKALbfal.d.ts +0 -223
  713. package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
  714. package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
  715. package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
  716. package/dist/resilience-6LYQJAC5.js +0 -1
  717. package/dist/sugar-DQjFmVqb.d.cts +0 -399
  718. package/dist/sugar-fhLIE7TT.d.ts +0 -399
  719. package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
  720. package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
@@ -1,18 +1,25 @@
1
- import { T as TokenUsage, L as LLMAdapter, P as PricingFn, C as ChatMessage, a as LLMInvokeOptions, d as ToolDefinition, b as LLMResponse, S as StreamDelta, c as ToolCall, e as CapabilitiesRegistry, M as ModelCapabilities, f as ModelFeatures, g as ModelLimits, h as ModelPricing, i as PriceBreakdown, j as PricingRegistry, R as Rate, k as TieredRate, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from './types-C0_yquda.cjs';
2
- import { a as CascadeExhaustionReport, A as AdapterProvider, b as AdapterTier, d as AllTiersExhaustedError, C as CascadingLlmAdapterOptions, e as CreateAdapterOptions, O as OpenAICompatAdapterOptions, f as OpenAICompatPreset, g as OpenAISdkLike, h as cascadingLlmAdapter, c as createAdapter, o as openAICompatAdapter, t as tier } from './cascading-BglDkMdX.cjs';
3
- import { N as Node, A as Actor } from './node-kK3CvTrR.cjs';
4
- import { a as ReactiveLogBundle } from './reactive-log-DIGdYqQ6.cjs';
5
- import { b as CircuitBreakerOptions, C as CircuitBreaker, c as CircuitOpenError } from './index-C1T3d7V-.cjs';
6
- import { NodeInput } from './extra/sources.cjs';
7
- import { W as WithReplayCacheOptions, F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as canonicalJson, g as fallbackAdapter, w as withReplayCache } from './fallback-74oxi34l.cjs';
8
- import { E as Extraction, a as DistillOptions, D as DistillBundle, f as DEFAULT_DECAY_RATE } from './decay-CFlLvXUT.cjs';
9
- import { G as Graph, a as GraphOptions, i as GraphCheckpointRecord, h as GraphAttachStorageOptions } from './graph-CWvEUQAq.cjs';
10
- import { T as TopicGraph } from './index-C5ri2Axc.cjs';
11
- import { G as GateController, c as GateOptions } from './pipeline-graph-CIKhynsF.cjs';
12
- import { V as VectorSearchResult, C as CollectionGraph, a as VectorIndexGraph, K as KnowledgeGraph } from './index-B17QddL1.cjs';
13
- import { StorageHandle } from './extra/storage-core.cjs';
14
- import { SnapshotStorageTier } from './extra/storage-tiers.cjs';
15
- import { c as GraphSpecCatalog } from './index-CS0LTlB8.cjs';
1
+ import { i as TokenUsage, L as LLMAdapter, g as PricingFn, a as ChatMessage, b as LLMInvokeOptions, k as ToolDefinition, c as LLMResponse, S as StreamDelta } from '../../types-BB5Lw-pB.js';
2
+ export { C as CapabilitiesRegistry, M as ModelCapabilities, d as ModelFeatures, e as ModelLimits, f as ModelPricing, P as PriceBreakdown, h as PricingRegistry, R as Rate, T as TieredRate, j as ToolCall, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from '../../types-BB5Lw-pB.js';
3
+ import { C as CascadeExhaustionReport } from '../../cascading-CSSbKGrJ.js';
4
+ export { A as AdapterProvider, a as AdapterTier, b as AllTiersExhaustedError, c as CascadingLlmAdapterOptions, d as CreateAdapterOptions, O as OpenAICompatAdapterOptions, e as OpenAICompatPreset, f as OpenAISdkLike, g as cascadingLlmAdapter, h as createAdapter, o as openAICompatAdapter, t as tier } from '../../cascading-CSSbKGrJ.js';
5
+ import { Node, Actor } from '@graphrefly/pure-ts/core';
6
+ import { ReactiveLogBundle, NodeInput } from '@graphrefly/pure-ts/extra';
7
+ import { a as CircuitBreakerOptions, C as CircuitBreaker } from '../../breaker-C9skL3d8.js';
8
+ export { b as CircuitOpenError } from '../../breaker-C9skL3d8.js';
9
+ import { R as RateLimitSignal, A as AdaptiveRateLimiterBundle } from '../../adaptive-rate-limiter-Dch_xYIi.js';
10
+ import { W as WithReplayCacheOptions } from '../../fallback-pIWW8A2d.js';
11
+ export { F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as fallbackAdapter, w as withReplayCache } from '../../fallback-pIWW8A2d.js';
12
+ import { E as Extraction } from '../../distill-De6Rnn15.js';
13
+ import { Graph } from '@graphrefly/pure-ts/graph';
14
+ import { TopicGraph } from '../messaging/index.js';
15
+ import { G as GateController, c as GateOptions } from '../../pipeline-graph-DXCwY9vG.js';
16
+ export { C as ChatStreamGraph, a as ChatStreamOptions, M as MemoryRetrievalGraph, b as MemoryRetrievalOptions, c as MemoryTier, d as MemoryTiersBundle, e as MemoryTiersOptions, f as MemoryWithKGGraph, g as MemoryWithKGOptions, h as MemoryWithTiersGraph, i as MemoryWithTiersOptions, j as MemoryWithVectorsGraph, k as MemoryWithVectorsOptions, R as RetrievalEntry, l as RetrievalPipelineOptions, m as RetrievalQuery, n as RetrievalTrace, T as ToolExecutionOptions, o as ToolRegistryGraph, p as ToolRegistryOptions, q as ToolResult, r as chatStream, s as memoryRetrieval, t as memoryWithKG, u as memoryWithTiers, v as memoryWithVectors, w as toolExecution, x as toolRegistry } from '../../memory-composers-CVQqPYEV.js';
17
+ import { GraphSpecCatalog } from '../graphspec/index.js';
18
+ export { DEFAULT_DECAY_RATE } from '../../base/utils/index.js';
19
+ import '../../_internal-B23BagFd.js';
20
+ import '../../backoff-Bnb9OoPh.js';
21
+ import '../../base/mutation/index.js';
22
+ import '../memory/index.js';
16
23
 
17
24
  /**
18
25
  * Observable adapter wrapper — the "inverted statistics" surface.
@@ -104,7 +111,7 @@ interface WithBreakerOptions extends CircuitBreakerOptions {
104
111
  */
105
112
  breaker?: CircuitBreaker;
106
113
  }
107
- declare function withBreaker(inner: LLMAdapter, opts?: WithBreakerOptions): {
114
+ declare function withLLMBreaker(inner: LLMAdapter, opts?: WithBreakerOptions): {
108
115
  adapter: LLMAdapter;
109
116
  breaker: CircuitBreaker;
110
117
  };
@@ -149,11 +156,28 @@ interface BudgetTotals {
149
156
  outputTokens: number;
150
157
  usd: number;
151
158
  }
152
- interface BudgetGateBundle {
159
+ interface LLMBudgetGateBundle {
153
160
  totals: Node<BudgetTotals>;
154
161
  isOpen: Node<boolean>;
155
162
  log: ReactiveLogBundle<CallStatsEvent>;
156
163
  reset(): void;
164
+ /**
165
+ * QA D2 (Phase 13.6.B QA pass): release every long-lived
166
+ * subscription this gate holds — `keepalive(isOpen)`, the optional
167
+ * `onExhausted` subscription, and the Lock 3.C abort fan-out
168
+ * subscription on `isOpen`. Aborts any in-flight controllers as a
169
+ * defensive last gasp so callers waiting on a soon-to-be-disposed
170
+ * adapter don't hang.
171
+ *
172
+ * Idempotent: subsequent calls are no-ops. After `dispose()` the
173
+ * adapter wrapper continues to wrap `inner.invoke` / `inner.stream`
174
+ * but the budget machinery is best-effort: `record()` no longer
175
+ * emits `totals` updates, abort fan-out no longer fires. Treat the
176
+ * bundle as terminated once disposed; long-running apps should
177
+ * `dispose()` per gate instance to avoid the sub-leak documented
178
+ * in `docs/optimizations.md`.
179
+ */
180
+ dispose(): void;
157
181
  }
158
182
  interface WithBudgetGateOptions {
159
183
  caps: BudgetCaps;
@@ -181,7 +205,7 @@ interface WithBudgetGateOptions {
181
205
  */
182
206
  declare function withBudgetGate(inner: LLMAdapter, opts: WithBudgetGateOptions): {
183
207
  adapter: LLMAdapter;
184
- budget: BudgetGateBundle;
208
+ budget: LLMBudgetGateBundle;
185
209
  };
186
210
 
187
211
  /**
@@ -218,90 +242,6 @@ interface WithDryRunBundle {
218
242
  }
219
243
  declare function withDryRun(inner: LLMAdapter, opts: WithDryRunOptions): WithDryRunBundle;
220
244
 
221
- /**
222
- * Adaptive rate limiter — reactive, live-tunable, 429-aware.
223
- *
224
- * Wraps two `tokenBucket` instances (requests, tokens) with:
225
- * - Reactive `rpm` / `tpm` knobs that can be re-tuned at runtime via `NodeInput<number>`.
226
- * - An adaptation signal input (`Node<RateLimitSignal>`) that feeds back
227
- * provider 429 / retry-after / x-ratelimit-* headers to tighten limits.
228
- * - A `clampCooldownMs` TTL on signal-induced caps so a transient 429 doesn't
229
- * permanently throttle — caps decay back to user-configured values after
230
- * the cooldown elapses.
231
- * - TPM-miss recovery: consumed RPM tokens are returned to the request
232
- * bucket when the TPM admit fails, via `TokenBucket.putBack`.
233
- * - Imperative `acquire()` for bridging to Promise-based call paths
234
- * (used by the `withRateLimiter` adapter middleware).
235
- *
236
- * **Timer policy:** sleeps use `ResettableTimer` (documented spec §5.10
237
- * escape hatch in `src/extra/timer.ts`) rather than `fromTimer` to avoid
238
- * allocating a new Node per acquire cycle.
239
- *
240
- * Design lives in `docs/optimizations.md` § "Reactive adaptive rate limiter".
241
- */
242
-
243
- /**
244
- * Rate-limit signal emitted by an adaptation source (e.g., an HTTP 429 parser).
245
- *
246
- * Any subset of fields may be present. The adaptive rate limiter uses:
247
- * - `retryAfterMs` — blocks acquire() for this duration.
248
- * - `rpmCap` / `tpmCap` — tightens effective rpm/tpm to this value (decays
249
- * back to the user-configured cap after `clampCooldownMs`).
250
- * - `usageHint` — updates the last-known rpm/tpm usage ratio for logging.
251
- */
252
- interface RateLimitSignal {
253
- /** Throttle duration — pause acquire() for this long. */
254
- retryAfterMs?: number;
255
- /** Hard cap for requests-per-minute; effective rpm = min(current, rpmCap) while clamp is active. */
256
- rpmCap?: number;
257
- /** Hard cap for tokens-per-minute; effective tpm = min(current, tpmCap) while clamp is active. */
258
- tpmCap?: number;
259
- /** Observed usage-percentage hint (0..1) — for observability, not gating. */
260
- usageHint?: {
261
- rpm?: number;
262
- tpm?: number;
263
- };
264
- /** Free-form provider-specific payload. */
265
- metadata?: Record<string, unknown>;
266
- }
267
- interface AdaptiveRateLimiterBundle {
268
- /** Effective requests-per-minute (post-signal-clamp). Reactive. */
269
- readonly effectiveRpm: Node<number>;
270
- /** Effective tokens-per-minute (post-signal-clamp). Reactive. */
271
- readonly effectiveTpm: Node<number>;
272
- /** Last adaptation signal observed. */
273
- readonly lastSignal: Node<RateLimitSignal>;
274
- /** Pending `acquire()` callers waiting for capacity. */
275
- readonly pending: Node<number>;
276
- /** Current request-token-bucket fill (approximate). */
277
- readonly rpmAvailable: Node<number>;
278
- /** Current token-bucket fill (approximate). */
279
- readonly tpmAvailable: Node<number>;
280
- /**
281
- * Imperative bridge: wait until `requestCost` request-tokens and
282
- * `tokenCost` tokens are available, then consume them. Honors the
283
- * most recent `retryAfterMs` from adaptation signals. Rejects with
284
- * an `AbortError`-named error if `signal` aborts while waiting.
285
- * `requestCost` defaults to 1; `tokenCost` defaults to 0 (rpm-only gating).
286
- */
287
- acquire(opts?: {
288
- requestCost?: number;
289
- tokenCost?: number;
290
- signal?: AbortSignal;
291
- }): Promise<void>;
292
- /**
293
- * Feed back observed token usage (post-call) so the TPM bucket reflects
294
- * real consumption rather than the pre-call estimate. A positive `delta`
295
- * debits additional TPM (undershot estimate); a negative `delta` credits
296
- * back overshoot (`putBack`).
297
- */
298
- recordUsage(delta: number): void;
299
- /** Manually feed an adaptation signal — useful for tests. */
300
- recordSignal(sig: RateLimitSignal): void;
301
- /** Dispose internal subscriptions and pending timers. */
302
- dispose(): void;
303
- }
304
-
305
245
  /**
306
246
  * HTTP 429 / rate-limit parser.
307
247
  *
@@ -429,7 +369,7 @@ declare function withRetry(inner: LLMAdapter, opts?: WithRetryOptions): LLMAdapt
429
369
 
430
370
  /**
431
371
  * `resilientAdapter` — compose `withRateLimiter` + `withBudgetGate` +
432
- * `withBreaker` + `withTimeout` + `withRetry` + fallback over an {@link LLMAdapter}.
372
+ * `withLLMBreaker` + `withLLMTimeout` + `withRetry` + fallback over an {@link LLMAdapter}.
433
373
  *
434
374
  * Call-path peer of {@link resilientPipeline} (which operates on a reactive
435
375
  * `Node<T>` chain). Use `resilientPipeline` when composing graph sources; use
@@ -518,7 +458,7 @@ interface ResilientAdapterBundle {
518
458
  /** Rate-limiter internals (for dashboards). Present only when `opts.rateLimit` was set. */
519
459
  rateLimiter?: AdaptiveRateLimiterBundle;
520
460
  /** Budget gate internals (for dashboards). Present only when `opts.budget` was set. */
521
- budget?: BudgetGateBundle;
461
+ budget?: LLMBudgetGateBundle;
522
462
  /** Circuit breaker (for dashboards). Present only when `opts.breaker` was set. */
523
463
  breaker?: CircuitBreaker;
524
464
  }
@@ -544,7 +484,7 @@ interface ResilientAdapterBundle {
544
484
  declare function resilientAdapter(inner: LLMAdapter, opts?: ResilientAdapterOptions): ResilientAdapterBundle;
545
485
 
546
486
  /**
547
- * `withTimeout` — cancel `invoke()` / `stream()` after `ms` elapse.
487
+ * `withLLMTimeout` — cancel `invoke()` / `stream()` after `ms` elapse.
548
488
  *
549
489
  * Wires a child AbortSignal so provider adapters can honor the cancellation
550
490
  * (all shipped adapters forward `signal` through to their fetch / SDK call).
@@ -558,7 +498,7 @@ declare class LLMTimeoutError extends Error {
558
498
  name: string;
559
499
  constructor(ms: number);
560
500
  }
561
- declare function withTimeout(inner: LLMAdapter, ms: number): LLMAdapter;
501
+ declare function withLLMTimeout(inner: LLMAdapter, ms: number): LLMAdapter;
562
502
 
563
503
  /**
564
504
  * AnthropicAdapter — default fetch-backed, optional SDK-backed.
@@ -883,7 +823,7 @@ type PromptCallOptions = {
883
823
  maxTokens?: number;
884
824
  /**
885
825
  * Optional name forwarded to the underlying `promptNode` (used as the
886
- * `<name>::messages` / `<name>::call` / `<name>::output` path prefix).
826
+ * `<name>::messages` / `<name>::response` / `<name>::output` path prefix).
887
827
  * Defaults differ per call site so multiple `promptCall`s wired into the
888
828
  * same graph don't collide on `prompt_node::output`.
889
829
  */
@@ -891,14 +831,14 @@ type PromptCallOptions = {
891
831
  };
892
832
  /**
893
833
  * Build a one-shot LLM JSON-call factory: each invocation wraps `input` in a
894
- * fresh `state(input)`, delegates to `promptNode({format: "json"})`, and
834
+ * fresh `node([], { initial: input })`, delegates to `promptNode({format: "json"})`, and
895
835
  * returns a `NodeInput<TOut>` that the caller plugs into `distill` /
896
836
  * `agentLoop` / any reactive composition that accepts `NodeInput`.
897
837
  *
898
838
  * **Per-call lifecycle.** The returned `NodeInput<TOut>` is a producer that
899
839
  * emits exactly one `DATA` per upstream input (per Tier 1.2 Session C lock —
900
840
  * `promptNode` guarantees one DATA per wave). When the consumer's switchMap
901
- * supersedes it, the per-call `state(input)` and the inner `prompt_node::call`
841
+ * supersedes it, the per-call `node([], { initial: input })` and the inner `prompt_node::response`
902
842
  * tear down together.
903
843
  *
904
844
  * @param systemPrompt - System message sent on every call.
@@ -942,17 +882,20 @@ declare function llmConsolidator<TMem>(systemPrompt: string, opts: LLMConsolidat
942
882
  /**
943
883
  * `promptNode` — universal LLM transform as a reactive derived node.
944
884
  *
945
- * The shape: `deps → messagesNode (derived) → switchMap → call (producer) → output`.
885
+ * The shape: `deps → messagesNode (derived) → switchMap → response (producer) → output`.
946
886
  * Each upstream wave is one LLM call; superseding waves cancel the in-flight
947
887
  * call via the abort signal threaded through `nodeSignal(opts.abort)`.
948
888
  *
949
889
  * The producer-shape on the inner is load-bearing: it emits exactly one DATA
950
890
  * + COMPLETE per wave, so the outer switchMap sees one DATA per wave (matches
951
- * the `HarnessExecutor` contract). A `derived([call], parse)` would have its
891
+ * the `HarnessExecutor` contract). A `node([response], (batchData, actions, ctx) => {
892
+ * const data = ...; actions.emit(parse(data[0]));
893
+ * }, { describeKind: "derived" })` would have its
952
894
  * own first-run / push-on-subscribe semantics that can leak a transient null
953
895
  * before the real response arrives — observed and reverted in an earlier
954
896
  * attempt; see SESSION-ai-harness-module-review.md line 3654 for context.
955
- * Locked as path (b) producer-based by Session C (2026-04-27).
897
+ * Locked as path (b) producer-based by Session C (2026-04-27); inner-node
898
+ * naming aligned to `prompt_node::response` per the C+D widening (2026-04-30).
956
899
  *
957
900
  * **Retry / replay-cache.** Stack middleware on the adapter:
958
901
  *
@@ -973,7 +916,7 @@ declare function llmConsolidator<TMem>(systemPrompt: string, opts: LLMConsolidat
973
916
  * survives across new outer DATAs — `promptNode`'s cached value persists
974
917
  * until the next wave fully resolves. Consumers that need to distinguish
975
918
  * "fresh value for THIS session" from "stale cache from a prior session"
976
- * (e.g. `agentLoop` resetting on new `run()`) must add a `state()` mirror
919
+ * (e.g. `agentLoop` resetting on new `run()`) must add a `node([])` mirror
977
920
  * at their session boundary and depend on the mirror, not the `promptNode`
978
921
  * output directly. `promptNode` itself stays primitive — it does not
979
922
  * embed a state-mirror.
@@ -1011,7 +954,7 @@ type PromptNodeOptions = {
1011
954
  *
1012
955
  * **Activation note:** since `tools` is a real declared dep, `messagesNode`
1013
956
  * waits for the tools Node to DATA at least once before firing
1014
- * (push-on-subscribe SENTINEL gate). Pass a `state<ToolDefinition[]>([])`
957
+ * (push-on-subscribe SENTINEL gate). Pass a `node<ToolDefinition[]>([], { initial: [] })`
1015
958
  * if you want immediate activation with no tools, or the latest published
1016
959
  * `toolSelector.tools` Node.
1017
960
  */
@@ -1039,9 +982,9 @@ type PromptNodeOptions = {
1039
982
  *
1040
983
  * **Topology** (visible in `describe()`):
1041
984
  * ```
1042
- * <deps...>, [tools?] → <name>::messages (derived, meta.ai = prompt_node)
985
+ * <deps...>, [tools?] → <name>::messages (derived, meta.ai = prompt_node::messages)
1043
986
  * <name>::messages → <name>::output (switchMap product, meta.ai = prompt_node::output)
1044
- * per-wave inner: <name>::call (producer, meta.ai = prompt_node::call)
987
+ * per-wave inner: <name>::response (producer, meta.ai = prompt_node::response)
1045
988
  * ```
1046
989
  * When `opts.tools` is supplied, the tools `Node` is appended to
1047
990
  * `messagesNode`'s declared deps so it appears as a real edge in `describe()`
@@ -1433,23 +1376,6 @@ type RedactorOptions = {
1433
1376
  */
1434
1377
  declare function redactor(accumulatedText: Node<string>, patterns: RegExp[], replaceFn?: (match: string, pattern: RegExp) => string, opts?: RedactorOptions): Node<string>;
1435
1378
 
1436
- type ChatStreamOptions = {
1437
- graph?: GraphOptions;
1438
- maxMessages?: number;
1439
- };
1440
- declare class ChatStreamGraph extends Graph {
1441
- private readonly _log;
1442
- readonly messages: Node<readonly ChatMessage[]>;
1443
- readonly latest: Node<ChatMessage | null>;
1444
- readonly messageCount: Node<number>;
1445
- constructor(name: string, opts?: ChatStreamOptions);
1446
- append(role: ChatMessage["role"], content: string, extra?: Partial<ChatMessage>): void;
1447
- appendToolResult(callId: string, content: string): void;
1448
- clear(): void;
1449
- allMessages(): readonly ChatMessage[];
1450
- }
1451
- declare function chatStream(name: string, opts?: ChatStreamOptions): ChatStreamGraph;
1452
-
1453
1379
  /**
1454
1380
  * Options for {@link handoff}.
1455
1381
  */
@@ -1521,142 +1447,6 @@ type HandoffOptions = {
1521
1447
  */
1522
1448
  declare function handoff<T>(from: NodeInput<T | null>, toFactory: (input: Node<T>) => Node<T | null>, opts?: HandoffOptions): Node<T | null>;
1523
1449
 
1524
- type ToolRegistryOptions = {
1525
- graph?: GraphOptions;
1526
- };
1527
- /**
1528
- * `ToolRegistryGraph` — name-keyed registry of {@link ToolDefinition}s.
1529
- *
1530
- * **Reactive-only execution.** The only execution path is
1531
- * {@link executeReactive}, which returns a `Node<unknown>` for the handler
1532
- * result. Composing factories (`toolExecution`, `agentLoop`) consume it
1533
- * directly inside `retrySource` / `switchMap` chains. There is intentionally
1534
- * no imperative `execute()` Promise method — the registry was originally a
1535
- * dual-boundary class (imperative + reactive) and the imperative path was
1536
- * the only thing in the codebase bridging through `Promise.resolve().then()`
1537
- * to feed `fromAny`. Removing it left every consumer on a single
1538
- * reactive-all-the-way path with real abort propagation.
1539
- *
1540
- * For non-reactive callers (debug scripts, one-shot tests), bridge with
1541
- * `awaitSettled(toolRegistry.executeReactive(name, args))`.
1542
- *
1543
- * **Wave A Unit 6 refactor:** internal storage migrated from `state<Map>`
1544
- * (O(N) Map-copy per mutation) to `ReactiveMapBundle<string, ToolDefinition>`
1545
- * (O(1) mutations + version counter).
1546
- */
1547
- declare class ToolRegistryGraph extends Graph {
1548
- readonly definitions: Node<ReadonlyMap<string, ToolDefinition>>;
1549
- readonly schemas: Node<readonly ToolDefinition[]>;
1550
- private readonly _bundle;
1551
- constructor(name: string, opts?: ToolRegistryOptions);
1552
- register(tool: ToolDefinition): void;
1553
- unregister(name: string): void;
1554
- /**
1555
- * Reactive execution — returns a `Node<unknown>` that emits the handler
1556
- * result. The returned node is a `producer` that:
1557
- *
1558
- * 1. Mints a per-call `AbortController` whose `signal` is threaded into
1559
- * the handler call AND into `fromAny` (so a `fromPromise` /
1560
- * `fromAsyncIter` inner abandons cleanly when the consumer
1561
- * unsubscribes).
1562
- * 2. Runs `tool.handler(args, {signal})` inside a try/catch — a
1563
- * synchronous throw surfaces as `[[ERROR, err]]` downstream instead
1564
- * of escaping the producer.
1565
- * 3. Forwards every message from the inner `fromAny` chain to the
1566
- * producer's outputs.
1567
- * 4. On teardown (subscriber count drops to zero, e.g. `switchMap`
1568
- * supersede) calls `ac.abort()` and unsubscribes the inner.
1569
- * Signal-aware handlers (e.g. `fetch(url, {signal})`) actually stop.
1570
- *
1571
- * Each call mints a fresh node tied to a fresh `handler(args, ...)`
1572
- * invocation — call `executeReactive` again for repeated invocations.
1573
- *
1574
- * @throws `Error` synchronously when `name` is not registered (no node is
1575
- * constructed — the caller gets a pre-wiring failure rather than a
1576
- * silent ERROR wave on an empty graph).
1577
- */
1578
- executeReactive(name: string, args: Record<string, unknown>): Node<unknown>;
1579
- getDefinition(name: string): ToolDefinition | undefined;
1580
- }
1581
- declare function toolRegistry(name: string, opts?: ToolRegistryOptions): ToolRegistryGraph;
1582
-
1583
- /**
1584
- * `toolExecution` — reactive per-tool-call executor with retry + rescue.
1585
- *
1586
- * Lifted from the inlined `executeToolReactively` helper inside `agent-loop.ts`
1587
- * so it can be consumed standalone by any caller with a reactive `toolCalls`
1588
- * batch — not just `agentLoop`. The shape is: one input `Node<readonly
1589
- * ToolCall[]>` + a `ToolRegistryGraph` → one output `Node<readonly
1590
- * ToolResult[]>`. Each call maps to a per-call `retrySource(executeReactive)`
1591
- * → optional `rescue` chain that emits the handler result on success, or a
1592
- * JSON-wrapped `{ error }` payload on terminal failure so the LLM can see the
1593
- * error as tool output and decide whether to try again via another tool call.
1594
- *
1595
- * **Cancellation.** `executeReactive` mints a per-call `AbortController` and
1596
- * threads its signal into the handler call. When `switchMap` supersedes the
1597
- * inner (a fresh `toolCalls` batch arrives) or the outer graph tears down,
1598
- * the per-call node unsubscribes and `ac.abort()` fires. Signal-aware
1599
- * handlers (`fetch(url, {signal})`, child-process kill, DB cancel) actually
1600
- * stop in-flight work; handlers that ignore the signal still complete to
1601
- * their original termination, but their result is discarded.
1602
- *
1603
- * @module
1604
- */
1605
-
1606
- /** A single tool execution outcome: `{id, content}` where content is a JSON string. */
1607
- interface ToolResult {
1608
- readonly id: string;
1609
- readonly content: string;
1610
- }
1611
- type ToolExecutionOptions = {
1612
- /**
1613
- * Reactive tool-call batch. Each non-empty emission triggers a fresh
1614
- * per-call execution fan-out; superseding emissions cancel the prior fan.
1615
- */
1616
- toolCalls: Node<readonly ToolCall[]>;
1617
- /** Registry that resolves tool name → handler. */
1618
- tools: ToolRegistryGraph;
1619
- /**
1620
- * Retry count per individual tool call. `retrySource({count: N})` retries
1621
- * up to N times on error (N retries = N+1 total attempts). Default: 1.
1622
- */
1623
- retryCount?: number;
1624
- /**
1625
- * How to surface a terminal error after retries are exhausted.
1626
- * - `"rescue"` (default): emit `{id, content: JSON.stringify({error})}`
1627
- * so the LLM sees the failure as structured tool output and can decide
1628
- * how to react. Sibling calls in the same batch continue to their own
1629
- * completion; one call's failure does not affect the others.
1630
- * - `"propagate"`: let the ERROR propagate downstream. **Blast radius:**
1631
- * the per-batch `derived` join auto-errors when any per-call node
1632
- * terminates with ERROR, so one call's failure discards every sibling's
1633
- * DATA (even ones that already settled with a valid ToolResult). Use
1634
- * `"propagate"` only when a single tool failure should be fatal for the
1635
- * whole batch; prefer `"rescue"` when you want the LLM to see partial
1636
- * results plus per-call error markers.
1637
- */
1638
- onError?: "rescue" | "propagate";
1639
- };
1640
- /**
1641
- * Reactive executor for a batch of LLM tool calls.
1642
- *
1643
- * Each DATA emission on `toolCalls` dispatches a fresh per-call fan-out: for
1644
- * every call in the batch, construct a `retrySource(fromAny(tools.execute(
1645
- * name, args)))` node, optionally `rescue` it into a JSON error shape, and
1646
- * join the results via a `derived` whose first-run gate waits for every call
1647
- * to settle before emitting the batch. Empty batches (`calls.length === 0`)
1648
- * are a caller-side invariant violation (the upstream gate should emit
1649
- * RESOLVED for empty batches, not DATA) and trigger a loud error — callers
1650
- * that want to accept empty batches should upstream-filter them first.
1651
- *
1652
- * Reference-equality + content-equality dedup is applied to the output batch
1653
- * so duplicate re-emissions from a completing retrySource don't propagate.
1654
- *
1655
- * @param opts - `{ toolCalls, tools, retryCount?, onError? }`.
1656
- * @returns `Node<readonly ToolResult[]>` — one ToolResult per input ToolCall.
1657
- */
1658
- declare function toolExecution(opts: ToolExecutionOptions): Node<readonly ToolResult[]>;
1659
-
1660
1450
  /**
1661
1451
  * Options for {@link toolSelector}.
1662
1452
  */
@@ -1683,11 +1473,20 @@ interface ToolSelectorOptions {
1683
1473
  *
1684
1474
  * @example
1685
1475
  * ```ts
1686
- * const hasBudget = derived([costMeter], (c) => c.total < BUDGET);
1476
+ * const hasBudget = node([costMeter], (batchData, actions, ctx) => {
1477
+ * const data = batchData.map((batch, i) => batch != null && batch.length > 0 ? batch.at(-1) : ctx.prevData[i]);
1478
+ * actions.emit((data[0] as CostMeter).total < BUDGET);
1479
+ * }, { describeKind: "derived" });
1687
1480
  * const canDestroy = state(false, { name: "destructive-allowed" });
1688
1481
  * const tools = toolSelector(registry.schemas, [
1689
- * derived([hasBudget], (b) => (t) => !t.meta?.expensive || b === true),
1690
- * derived([canDestroy], (c) => (t) => !t.meta?.destructive || c === true),
1482
+ * node([hasBudget], (batchData, actions, ctx) => {
1483
+ * const data = batchData.map((batch, i) => batch != null && batch.length > 0 ? batch.at(-1) : ctx.prevData[i]);
1484
+ * actions.emit((t) => !t.meta?.expensive || data[0] === true);
1485
+ * }, { describeKind: "derived" }),
1486
+ * node([canDestroy], (batchData, actions, ctx) => {
1487
+ * const data = batchData.map((batch, i) => batch != null && batch.length > 0 ? batch.at(-1) : ctx.prevData[i]);
1488
+ * actions.emit((t) => !t.meta?.destructive || data[0] === true);
1489
+ * }, { describeKind: "derived" }),
1691
1490
  * ]);
1692
1491
  * const agent = promptNode(graph, "agent", { ..., tools });
1693
1492
  * ```
@@ -1748,508 +1547,6 @@ type AdmissionScore3DOptions = {
1748
1547
  */
1749
1548
  declare function admissionFilter3D(opts: AdmissionScore3DOptions): (raw: unknown) => boolean;
1750
1549
 
1751
- type RetrievalQuery = {
1752
- readonly text?: string;
1753
- readonly vector?: readonly number[];
1754
- readonly entityIds?: readonly string[];
1755
- /**
1756
- * Optional hierarchical context breadcrumb — e.g.
1757
- * `["projects", "auth", "tokens"]`. When both the query and a candidate
1758
- * entry supply a `context`, the retrieval pipeline applies a score boost
1759
- * proportional to `contextWeight` for entries whose context overlaps
1760
- * (shared prefix). Entries or queries without `context` are scored
1761
- * flatly (backward-compatible).
1762
- */
1763
- readonly context?: readonly string[];
1764
- };
1765
- type RetrievalPipelineOptions<TMem> = {
1766
- /** Max candidates from vector search (default 20). */
1767
- topK?: number;
1768
- /** KG expansion depth in hops (default 1). */
1769
- graphDepth?: number;
1770
- /** Token budget for final packing (default 2000). */
1771
- budget?: number;
1772
- /** Cost function for budget packing. */
1773
- cost: (mem: TMem) => number;
1774
- /** Score function for ranking. */
1775
- score: (mem: TMem, context: unknown) => number;
1776
- /**
1777
- * Optional accessor: extracts the hierarchical context breadcrumb from a
1778
- * memory entry. Used with {@link RetrievalQuery.context} and
1779
- * `contextWeight` to boost entries whose context overlaps the query.
1780
- * Entries that don't expose context stay at flat behavior.
1781
- */
1782
- contextOf?: (mem: TMem) => readonly string[] | undefined;
1783
- /**
1784
- * Boost multiplier applied to a candidate's score when its `context`
1785
- * shares a prefix with the query's `context`. Score is multiplied by
1786
- * `(1 + contextWeight * sharedDepth / queryDepth)`. Default: 0 (no
1787
- * context boost).
1788
- */
1789
- contextWeight?: number;
1790
- };
1791
- /** A single entry in the retrieval result, with causal trace metadata. */
1792
- type RetrievalEntry<TMem> = {
1793
- readonly key: string;
1794
- readonly value: TMem;
1795
- readonly score: number;
1796
- readonly sources: ReadonlyArray<"vector" | "graph" | "store">;
1797
- /**
1798
- * Hierarchical context breadcrumb for this entry, when
1799
- * `RetrievalPipelineOptions.contextOf` is supplied and returns a value.
1800
- */
1801
- readonly context?: readonly string[];
1802
- };
1803
- /** Causal trace for a retrieval run. */
1804
- type RetrievalTrace<TMem> = {
1805
- readonly vectorCandidates: ReadonlyArray<VectorSearchResult<TMem>>;
1806
- readonly graphExpanded: ReadonlyArray<string>;
1807
- readonly ranked: ReadonlyArray<RetrievalEntry<TMem>>;
1808
- readonly packed: ReadonlyArray<RetrievalEntry<TMem>>;
1809
- };
1810
-
1811
- type MemoryTier = "permanent" | "active" | "archived";
1812
- type MemoryTiersOptions<TMem> = {
1813
- /** Exponential decay rate per second for active tier.
1814
- * Default: 7-day half-life ≈ ln(2)/(7×86400) ≈ 0.00000114. */
1815
- decayRate?: number;
1816
- /** Max entries in the active tier before archiving lowest-scored (default 1000). */
1817
- maxActive?: number;
1818
- /** Score threshold below which active entries get archived (default 0.1). */
1819
- archiveThreshold?: number;
1820
- /** Predicate: true → entry belongs in permanent tier (default: never). */
1821
- permanentFilter?: (key: string, mem: TMem) => boolean;
1822
- /** Storage tier for the archive. Omit to disable archiving. */
1823
- archiveTier?: SnapshotStorageTier<GraphCheckpointRecord>;
1824
- /** Options forwarded to `graph.attachSnapshotStorage` for the archive tier. */
1825
- archiveStorageOptions?: GraphAttachStorageOptions;
1826
- };
1827
-
1828
- type MemoryTiersBundle<TMem> = {
1829
- /**
1830
- * Permanent tier: never evicted. Backed by a `collection({ranked:false})`
1831
- * Graph (Tier 2.3 — was previously a `LightCollectionBundle`; the no-Graph
1832
- * bundle shape was folded into the unified `CollectionGraph`).
1833
- */
1834
- readonly permanent: CollectionGraph<TMem>;
1835
- /** Active entries node (reactive, holds ReadonlyMap). */
1836
- readonly activeEntries: Node<unknown>;
1837
- /** Archive storage handle (null if no tier configured). */
1838
- readonly archiveHandle: StorageHandle | null;
1839
- /** Classify a key into its current tier. */
1840
- tierOf: (key: string) => MemoryTier;
1841
- /** Move a key to the permanent tier. */
1842
- markPermanent: (key: string, value: TMem) => void;
1843
- };
1844
-
1845
- type MemoryWithVectorsOptions<TMem> = {
1846
- /** Embedding dimension. Must match the `embedFn` output length. */
1847
- dimension: number;
1848
- /** Extract an embedding vector for a memory entry. */
1849
- embedFn: (mem: TMem) => readonly number[] | undefined;
1850
- };
1851
- /**
1852
- * Attach a vector index to a `DistillBundle`. Indexes every entry in the
1853
- * store as it changes. Returns the `VectorIndexGraph` so retrieval can read
1854
- * its `entries` and call `search()`.
1855
- *
1856
- * The indexer's keepalive is registered with `graph.addDisposer` so it tears
1857
- * down on `graph.destroy()`. The returned `dispose()` is also available for
1858
- * early release without destroying the parent graph.
1859
- */
1860
- declare function memoryWithVectors<TMem>(graph: Graph, store: DistillBundle<TMem>, opts: MemoryWithVectorsOptions<TMem>): {
1861
- vectors: VectorIndexGraph<TMem>;
1862
- dispose: () => void;
1863
- };
1864
- type MemoryWithKGOptions<TMem> = {
1865
- /**
1866
- * Mount path for the KG subgraph on the parent graph. Defaults to `name`.
1867
- * Pass a different value when the parent graph reserves a stable mount
1868
- * path (e.g. `agentMemory` mounts at `"kg"` regardless of outer name).
1869
- */
1870
- mountPath?: string;
1871
- /**
1872
- * Extract entities + relations for a memory entry. Omit to mount an empty
1873
- * KG without an indexer effect — caller upserts entities / relations
1874
- * directly on the returned `kg` handle.
1875
- */
1876
- entityFn?: (key: string, mem: TMem) => {
1877
- entities?: Array<{
1878
- id: string;
1879
- value: unknown;
1880
- }>;
1881
- relations?: Array<{
1882
- from: string;
1883
- to: string;
1884
- relation: string;
1885
- weight?: number;
1886
- }>;
1887
- } | undefined;
1888
- };
1889
- /**
1890
- * Attach a knowledge graph alongside a `DistillBundle`. Inner graph is named
1891
- * `${name}-kg`; mount path defaults to `name` but can be overridden via
1892
- * `opts.mountPath` so a parent factory (e.g. `agentMemory`) can keep a stable
1893
- * mount path independent of the inner graph's identity.
1894
- *
1895
- * If `opts.entityFn` is omitted, no indexer effect is wired — the empty KG is
1896
- * mounted for manual `upsertEntity` / `link` use.
1897
- *
1898
- * Indexer keepalive (when present) is registered with `graph.addDisposer`;
1899
- * explicit `dispose()` is also available.
1900
- */
1901
- declare function memoryWithKG<TMem>(graph: Graph, store: DistillBundle<TMem>, name: string, opts: MemoryWithKGOptions<TMem>): {
1902
- kg: KnowledgeGraph<unknown, string>;
1903
- dispose: () => void;
1904
- };
1905
- /**
1906
- * Full options for {@link memoryWithTiers} (Tier 4.1 B + 4.3 B refactor,
1907
- * 2026-04-29). Combines tier-policy options with the distill-side options
1908
- * needed to construct the underlying store — `memoryWithTiers` is now the
1909
- * **construction site** for the distill bundle so it can wire
1910
- * `reactiveMap.retention` into the store at construction (eliminating the
1911
- * §7 feedback cycle the previous `tierClassifier` effect carried).
1912
- *
1913
- * The retention config built internally maps tier policy to the substrate:
1914
- * - `archiveThreshold` → `retention.archiveThreshold`
1915
- * - `maxActive` → `retention.maxSize`
1916
- * - per-entry `decay(score(mem, ctx), age, decayRate)` → `retention.score`
1917
- * (capturing `latestCtx` + `entryCreatedAtNs` via closure-mirror; permanent
1918
- * entries score `Infinity` to bypass eviction).
1919
- */
1920
- type MemoryWithTiersOptions<TMem> = MemoryTiersOptions<TMem> & Omit<DistillOptions<TMem>, "mapOptions" | "score" | "context"> & {
1921
- /** Score function — same signature as `agentMemory.score`. */
1922
- score: (mem: TMem, context: unknown) => number;
1923
- /** Optional reactive context node (passed to `score`). */
1924
- context?: NodeInput<unknown>;
1925
- };
1926
- /**
1927
- * Attach 3-tier storage (active / archived / permanent) to a fresh distill
1928
- * store, wiring `reactiveMap.retention` at construction so archival happens
1929
- * synchronously inside the substrate's mutation pipeline (no §7 feedback
1930
- * cycle). Promotes `permanentKeys` and `entryCreatedAtNs` to reactive maps
1931
- * mounted on the graph (Tier 4.3 B — Unit 7 Q3) so `describe()`/`explain()`
1932
- * can walk to "why was X archived?".
1933
- *
1934
- * **API shape** (Tier 4.1 B, 2026-04-29 — breaking change vs. pre-refactor):
1935
- * `memoryWithTiers` constructs the distill bundle internally rather than
1936
- * accepting a pre-built one. Callers pass `(graph, source, extractFn,
1937
- * opts)`. The bundle is exposed as `result.store` for downstream composers
1938
- * (vectors / KG / retrieval).
1939
- *
1940
- * - `permanentFilter`-matching entries score `Infinity` in retention →
1941
- * never archived. Independent permanent-promotion effect upserts them
1942
- * into the `permanent` collection.
1943
- * - Below-threshold entries → retention archives synchronously.
1944
- * - Over-`maxActive` entries → retention's `maxSize` evicts lowest-scored.
1945
- */
1946
- declare function memoryWithTiers<TRaw, TMem>(graph: Graph, source: NodeInput<TRaw>, extractFn: (raw: Node<TRaw>, existing: Node<ReadonlyMap<string, TMem>>) => NodeInput<Extraction<TMem>>, opts: MemoryWithTiersOptions<TMem>): {
1947
- store: DistillBundle<TMem>;
1948
- tiers: MemoryTiersBundle<TMem>;
1949
- dispose: () => void;
1950
- };
1951
- type MemoryRetrievalOptions<TMem> = {
1952
- /** Score function (same shape as `agentMemory.score`). */
1953
- score: (mem: TMem, context: unknown) => number;
1954
- /** Cost function for budget packing. */
1955
- cost: (mem: TMem) => number;
1956
- /** Token / cost budget. Default 2000. */
1957
- budget?: number;
1958
- /** Top-K vector candidates. Default 20. */
1959
- topK?: number;
1960
- /** KG expansion depth in hops. Default 1. */
1961
- graphDepth?: number;
1962
- /** Hierarchical-context boost weight. Default 0. */
1963
- contextWeight?: number;
1964
- /** Hierarchical-context accessor for entries. */
1965
- contextOf?: (mem: TMem) => readonly string[] | undefined;
1966
- /** Optional reactive context node (passed to `score`). */
1967
- context?: NodeInput<unknown>;
1968
- };
1969
- type MemoryRetrievalBundle<TMem> = {
1970
- /** State node mirroring the latest packed retrieval result. */
1971
- readonly retrieval: Node<ReadonlyArray<RetrievalEntry<TMem>>>;
1972
- /** State node mirroring the latest retrieval trace. */
1973
- readonly retrievalTrace: Node<RetrievalTrace<TMem> | null>;
1974
- /** Imperative consumer API — synchronous; reads cache at call time. */
1975
- readonly retrieve: (query: RetrievalQuery) => ReadonlyArray<RetrievalEntry<TMem>>;
1976
- /** Reactive sibling — chain into the graph. Mirrors observability state. */
1977
- readonly retrieveReactive: (queryInput: NodeInput<RetrievalQuery | null>) => Node<ReadonlyArray<RetrievalEntry<TMem>>>;
1978
- };
1979
- /**
1980
- * Build the retrieval pipeline (vector + KG + budget packing) over a
1981
- * `DistillBundle` and optional `vectors` / `kg` bundles.
1982
- *
1983
- * Both consumer surfaces (`retrieve`, `retrieveReactive`) write to the same
1984
- * `retrieval` + `retrievalTrace` state nodes — observers subscribed to those
1985
- * see ALL queries regardless of which API issued them.
1986
- */
1987
- declare function memoryRetrieval<TMem>(graph: Graph, store: DistillBundle<TMem>, vectors: VectorIndexGraph<TMem> | null, kg: KnowledgeGraph<unknown, string> | null, opts: MemoryRetrievalOptions<TMem>): MemoryRetrievalBundle<TMem>;
1988
-
1989
- /**
1990
- * Reactive agent loop — autonomous multi-turn LLM agent with tool execution.
1991
- */
1992
- type AgentLoopStatus = "idle" | "thinking" | "acting" | "done" | "error";
1993
-
1994
- type AgentLoopOptions = {
1995
- graph?: GraphOptions;
1996
- adapter: LLMAdapter;
1997
- tools?: readonly ToolDefinition[];
1998
- systemPrompt?: string;
1999
- maxTurns?: number;
2000
- stopWhen?: (response: LLMResponse) => boolean;
2001
- onToolCall?: (call: ToolCall) => void;
2002
- maxMessages?: number;
2003
- model?: string;
2004
- temperature?: number;
2005
- maxTokens?: number;
2006
- /**
2007
- * Reactive tool-call splice (COMPOSITION-GUIDE §31 "interception is security").
2008
- * When set, the raw `toolCalls` node is piped through this transform before
2009
- * reaching the executor. The transform is a pure reactive composition —
2010
- * `(calls: Node<readonly ToolCall[]>) => Node<readonly ToolCall[]>` — so the
2011
- * gate is visible in `describe()` / `explain()` as a real edge (no hidden
2012
- * imperative wraps; §24).
2013
- *
2014
- * Typical uses:
2015
- * - **Filter / block** — `derived([calls, policy], ([raw, p]) => raw.filter(p))`
2016
- * - **Throttle / debounce** — `throttle(calls, windowMs)`
2017
- * - **Human-in-the-loop approval** — pipe through a `gate` controller so
2018
- * calls wait for human approval before reaching the executor.
2019
- *
2020
- * The public `agent.toolCalls` node surfaces the POST-intercept stream, so
2021
- * audit / telemetry consumers see what the executor actually runs. The raw
2022
- * pre-intercept stream is not exposed — tests that need it should run
2023
- * without `interceptToolCalls` set (the identity case).
2024
- */
2025
- interceptToolCalls?: (calls: Node<readonly ToolCall[]>) => Node<readonly ToolCall[]>;
2026
- };
2027
- /**
2028
- * Reactive agent loop.
2029
- *
2030
- * The loop is a reactive state machine wired entirely from graph primitives:
2031
- * `chat.messages` + `tools.schemas` + gating state feed a `promptInput`
2032
- * derived; `switchMap` turns non-null inputs into an LLM invocation via
2033
- * `fromAny(adapter.invoke(...))`. The LLM response drives chat writes and
2034
- * status transitions via effects. Tool calls flow through a reactive
2035
- * executor (`retrySource` + `rescue`) that retries once on error and
2036
- * surfaces terminal errors as JSON-shaped `ToolResult` payloads for the
2037
- * LLM to react to.
2038
- *
2039
- * **No imperative control flow inside the reactive layer** (spec §5.8-5.12):
2040
- * no `while` loops, no manual `await adapter.invoke`, no polling.
2041
- * `agent.run()` is a thin `awaitSettled` bridge so callers can still `await`
2042
- * the loop if they want a Promise.
2043
- *
2044
- * Public surface:
2045
- * - `chat` / `tools` — subgraphs (imperative `append` at boundary, reactive `executeReactive` for tool invocation)
2046
- * - `status` / `turn` / `aborted` — state nodes with explicit initials
2047
- * - `lastResponse` / `toolCalls` / `toolResults` — reactive outputs (SENTINEL until first emission; callers use `awaitSettled` / `subscribe`)
2048
- * - `run(userMessage?, signal?)` — optional user append + Promise bridge
2049
- * - `abort()` — imperative abort shim; flips `aborted` state
2050
- *
2051
- * **Lifecycle: single-mount.** `AgentLoopGraph` instances expect to be
2052
- * constructed once and used until `destroy()`. The internal closure mirrors
2053
- * (`latestTurn` / `latestAborted` / `latestStatus` / `latestMessages` /
2054
- * `latestSchemas`) are wired by subscribe-and-capture at construction time;
2055
- * their corresponding `addDisposer`-registered subscriptions are torn down
2056
- * on subgraph unmount or `destroy()`. After teardown the mirrors freeze at
2057
- * their last value, so re-using a destroyed instance — calling `run()`
2058
- * again, or remounting under a new parent — would silently feed stale
2059
- * mirror data into `promptInput`. If you need to "reset" an agent, build a
2060
- * fresh `AgentLoopGraph` instance instead of recycling.
2061
- */
2062
- declare class AgentLoopGraph extends Graph {
2063
- readonly chat: ChatStreamGraph;
2064
- readonly tools: ToolRegistryGraph;
2065
- /** Current agent status. `initial: "idle"` — always has a real value. */
2066
- readonly status: Node<AgentLoopStatus>;
2067
- /** Turn count (completed LLM invocations this run). `initial: 0`. */
2068
- readonly turn: Node<number>;
2069
- /** Aborted flag; flipped by `abort()` or external `AbortSignal`. `initial: false`. */
2070
- readonly aborted: Node<boolean>;
2071
- /**
2072
- * Most recent LLM response. State-backed mirror driven by the response
2073
- * effect. `initial: null` — subscribers can read the cache synchronously;
2074
- * `awaitSettled(lastResponse)` or `firstWhere(lastResponse, v => v != null)`
2075
- * bridges to the first non-null value as a Promise.
2076
- */
2077
- readonly lastResponse: Node<LLMResponse | null>;
2078
- /** Tool-call batch emitted by the most recent LLM response. SENTINEL. */
2079
- readonly toolCalls: Node<readonly ToolCall[]>;
2080
- /** Tool-result batch (one entry per call) after reactive execution. SENTINEL. */
2081
- readonly toolResults: Node<readonly ToolResult[]>;
2082
- private readonly _terminalResult;
2083
- private readonly _disposeRunWiring;
2084
- /** Guards against overlapping `run()` calls. */
2085
- private _running;
2086
- /**
2087
- * Abort controller for the currently-running `adapter.invoke`. Minted per
2088
- * switchMap project; aborted when the reactive `aborted` node flips true
2089
- * OR when the caller's external `AbortSignal` fires. Threaded into
2090
- * `adapter.invoke({ signal })` AND `fromAny(promise, { signal })`, so the
2091
- * reactive layer sees ERROR when the wire call is cancelled.
2092
- */
2093
- private _currentAbortController;
2094
- constructor(name: string, opts: AgentLoopOptions);
2095
- /**
2096
- * Bridge to `Promise<LLMResponse>` over the reactive pipeline.
2097
- *
2098
- * - If `userMessage` is provided, appends it as a user message and
2099
- * transitions status to `"thinking"` to kick the loop.
2100
- * - If `signal` is provided, binds it to the reactive `aborted` node
2101
- * AND threads into `adapter.invoke({ signal })` so the wire call can
2102
- * cancel mid-flight. The reactive `aborted` state + effect 3 guarantee
2103
- * that even an adapter that ignores `signal` will stop emitting into
2104
- * the agent graph.
2105
- * - Resolves when `status === "done"` with the final LLM response.
2106
- * Rejects with `AbortError` when the abort signal fires pre-response.
2107
- * Rejects with the stage error when `status === "error"`.
2108
- *
2109
- * **Concurrency:** `run()` refuses to overlap with a pending call on the
2110
- * same agent. Attempting to call `run()` while a previous `run()` is
2111
- * still in-flight throws a `RangeError` immediately. Stale-resolution
2112
- * safety is provided by `awaitSettled({skipCurrent: true})`, which
2113
- * ignores the cached initial DATA from any previous run and resolves
2114
- * only on a fresh post-subscribe emission of `_terminalResult`.
2115
- */
2116
- run(userMessage?: string, signal?: AbortSignal): Promise<LLMResponse | null>;
2117
- /**
2118
- * Flip the reactive `aborted` state. Equivalent to setting an external
2119
- * `AbortSignal` — the pipeline observes and transitions to `"done"`.
2120
- */
2121
- abort(): void;
2122
- destroy(): void;
2123
- }
2124
- declare function agentLoop(name: string, opts: AgentLoopOptions): AgentLoopGraph;
2125
-
2126
- type AgentMemoryOptions<TMem = unknown> = {
2127
- graph?: GraphOptions;
2128
- /** LLM adapter for extraction and consolidation. */
2129
- adapter?: LLMAdapter;
2130
- /** System prompt for the extractor LLM. */
2131
- extractPrompt?: string;
2132
- /** Custom extractFn (overrides adapter + extractPrompt). */
2133
- extractFn?: (raw: unknown, existing: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
2134
- /** System prompt for the consolidation LLM. */
2135
- consolidatePrompt?: string;
2136
- /** Custom consolidateFn (overrides adapter + consolidatePrompt). */
2137
- consolidateFn?: (entries: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
2138
- /** Reactive trigger for consolidation (caller supplies e.g. `fromTimer`). */
2139
- consolidateTrigger?: NodeInput<unknown>;
2140
- /** Score function for budget packing (required). */
2141
- score: (mem: TMem, context: unknown) => number;
2142
- /** Cost function for budget packing (required). */
2143
- cost: (mem: TMem) => number;
2144
- /** Token budget for compact view (default 2000). */
2145
- budget?: number;
2146
- /** Context node for scoring. */
2147
- context?: NodeInput<unknown>;
2148
- /** Admission filter (default: admit all). */
2149
- admissionFilter?: (candidate: unknown) => boolean;
2150
- /** Vector index dimensions (> 0 enables vector index for retrieval). */
2151
- vectorDimensions?: number;
2152
- /**
2153
- * B12: optional accessor for an entry's hierarchical context breadcrumb
2154
- * (e.g. `["projects", "auth", "tokens"]`). When supplied alongside
2155
- * `contextWeight > 0`, retrieval applies a score boost for entries whose
2156
- * context shares a prefix with the query's `context`. Entries without
2157
- * a breadcrumb are scored flatly.
2158
- */
2159
- contextOf?: (mem: TMem) => readonly string[] | undefined;
2160
- /**
2161
- * B12: hierarchical context boost multiplier. Score is scaled by
2162
- * `(1 + contextWeight * sharedDepth / queryDepth)` when both the query
2163
- * and entry supply a `context`. Default: 0.
2164
- */
2165
- contextWeight?: number;
2166
- /** Extract embedding vector from a memory entry (enables vector index). */
2167
- embedFn?: (mem: TMem) => readonly number[] | undefined;
2168
- /** Enable knowledge graph for entity/relation tracking. */
2169
- enableKnowledgeGraph?: boolean;
2170
- /** Extract entities and relations from a memory entry. */
2171
- entityFn?: (key: string, mem: TMem) => {
2172
- entities?: Array<{
2173
- id: string;
2174
- value: unknown;
2175
- }>;
2176
- relations?: Array<{
2177
- from: string;
2178
- to: string;
2179
- relation: string;
2180
- weight?: number;
2181
- }>;
2182
- } | undefined;
2183
- /** 3-tier storage configuration. Omit to use single-tier (existing behavior). */
2184
- tiers?: MemoryTiersOptions<TMem>;
2185
- /** Retrieval pipeline configuration. Requires vector index or knowledge graph. */
2186
- retrieval?: {
2187
- /** Max candidates from vector search (default 20). */
2188
- topK?: number;
2189
- /** KG expansion depth in hops (default 1). */
2190
- graphDepth?: number;
2191
- };
2192
- /** Periodic reflection/consolidation configuration. */
2193
- reflection?: {
2194
- /** Interval in ms between consolidation runs (default 300_000 = 5 min). */
2195
- interval?: number;
2196
- /** Enable/disable periodic reflection (default true when consolidateFn is available). */
2197
- enabled?: boolean;
2198
- };
2199
- };
2200
- type AgentMemoryGraph<TMem = unknown> = Graph & {
2201
- readonly distillBundle: DistillBundle<TMem>;
2202
- readonly compact: Node<Array<{
2203
- key: string;
2204
- value: TMem;
2205
- score: number;
2206
- }>>;
2207
- readonly size: Node<number>;
2208
- /** Vector index bundle (null if not enabled). */
2209
- readonly vectors: VectorIndexGraph<TMem> | null;
2210
- /** Knowledge graph (null if not enabled). */
2211
- readonly kg: KnowledgeGraph<unknown, string> | null;
2212
- /** Memory tiers bundle (null if not configured). */
2213
- readonly memoryTiers: MemoryTiersBundle<TMem> | null;
2214
- /** Retrieval result node (null if no retrieval pipeline configured). */
2215
- readonly retrieval: Node<ReadonlyArray<RetrievalEntry<TMem>>> | null;
2216
- /** Latest retrieval trace for observability (null if no retrieval pipeline). */
2217
- readonly retrievalTrace: Node<RetrievalTrace<TMem> | null> | null;
2218
- /**
2219
- * Execute a retrieval query (null if no retrieval pipeline).
2220
- *
2221
- * **Synchronous consumer API** — returns the result immediately and batch-writes
2222
- * `retrieval` and `retrievalTrace` state nodes for observers. Reads the store
2223
- * snapshot and context value **at call time** (external-boundary read).
2224
- *
2225
- * **Do not call from inside a reactive fn body** (derived fn, subscribe callback,
2226
- * effect body). The cache reads would become transitive protocol violations and
2227
- * may observe wave-progressive rather than wave-final state.
2228
- *
2229
- * **Caller-batch caveat:** if invoked inside a caller's `batch(() => ...)` alongside
2230
- * upstream store mutations, the store snapshot reflects what has been committed to
2231
- * `store.entries.cache` at call time. State-backed stores update cache synchronously
2232
- * so batched inserts are visible; derived-backed store transforms may defer. If you
2233
- * need fresh state after batched mutations, call `retrieve` after the batch returns.
2234
- */
2235
- readonly retrieve: ((query: RetrievalQuery) => ReadonlyArray<RetrievalEntry<TMem>>) | null;
2236
- /**
2237
- * Reactive sibling of {@link retrieve}. Given a reactive
2238
- * `RetrievalQuery | null` source, returns a `Node` emitting the packed
2239
- * retrieval results. Composable with graph topology — subscribe it,
2240
- * chain it into `promptNode`, or switchMap over a user-input node.
2241
- * Null when no retrieval pipeline is configured.
2242
- */
2243
- readonly retrieveReactive: ((queryInput: NodeInput<RetrievalQuery | null>) => Node<ReadonlyArray<RetrievalEntry<TMem>>>) | null;
2244
- };
2245
- /**
2246
- * Pre-wired agentic memory graph. Sugar over `distill` plus the
2247
- * `memoryWithVectors` / `memoryWithKG` / `memoryWithTiers` / `memoryRetrieval`
2248
- * composers. Power users who want a subset of capabilities can call those
2249
- * composers directly; this factory bundles them into one ergonomic call.
2250
- */
2251
- declare function agentMemory<TMem = unknown>(name: string, source: NodeInput<unknown>, opts: AgentMemoryOptions<TMem>): AgentMemoryGraph<TMem>;
2252
-
2253
1550
  type GaugesAsContextOptions = {
2254
1551
  /** Group gauges by `meta.tags` (default true). */
2255
1552
  groupByTags?: boolean;
@@ -2316,7 +1613,7 @@ declare function graphFromSpec(naturalLanguage: string, adapter: LLMAdapter, opt
2316
1613
  * Reactive variant of {@link graphFromSpec}: re-invokes the LLM and
2317
1614
  * recompiles the graph whenever `input` emits a new natural-language
2318
1615
  * description. Useful inside the harness or refine loop when the spec text
2319
- * itself is a reactive value (e.g. fed by a `state(...)` knob, a memory
1616
+ * itself is a reactive value (e.g. fed by a `node([], { initial: ... })` knob, a memory
2320
1617
  * snapshot, or an upstream `promptNode` output).
2321
1618
  *
2322
1619
  * **Supersede:** when the input changes mid-flight, switchMap tears the
@@ -2477,204 +1774,4 @@ type GraphDefValidation = {
2477
1774
  */
2478
1775
  declare function validateGraphDef(def: unknown): GraphDefValidation;
2479
1776
 
2480
- /**
2481
- * AI surface patterns (roadmap §4.4).
2482
- *
2483
- * Domain-layer factories for LLM-backed agents, chat, tool registries, and
2484
- * agentic memory. Composed from core + extra + Phase 3–4.3 primitives.
2485
- *
2486
- * This file is the public barrel — it re-exports symbols from the sibling
2487
- * folders (`prompts/`, `extractors/`, `safety/`, `agents/`, `memory/`,
2488
- * `graph-integration/`, and the existing `adapters/` tree). No implementation
2489
- * code lives here; see each sibling folder for the actual primitives.
2490
- *
2491
- * @module
2492
- */
2493
-
2494
- declare const index_AdapterProvider: typeof AdapterProvider;
2495
- type index_AdapterStats = AdapterStats;
2496
- declare const index_AdapterTier: typeof AdapterTier;
2497
- type index_AdmissionScore3DOptions = AdmissionScore3DOptions;
2498
- type index_AdmissionScoredOptions<Dims extends string, TRaw = unknown> = AdmissionScoredOptions<Dims, TRaw>;
2499
- type index_AdmissionScores = AdmissionScores;
2500
- type index_AdmissionThresholds<Dims extends string> = AdmissionThresholds<Dims>;
2501
- type index_AgentLoopGraph = AgentLoopGraph;
2502
- declare const index_AgentLoopGraph: typeof AgentLoopGraph;
2503
- type index_AgentLoopOptions = AgentLoopOptions;
2504
- type index_AgentLoopStatus = AgentLoopStatus;
2505
- type index_AgentMemoryGraph<TMem = unknown> = AgentMemoryGraph<TMem>;
2506
- type index_AgentMemoryOptions<TMem = unknown> = AgentMemoryOptions<TMem>;
2507
- declare const index_AllTiersExhaustedError: typeof AllTiersExhaustedError;
2508
- type index_AnthropicAdapterOptions = AnthropicAdapterOptions;
2509
- type index_AnthropicSdkLike = AnthropicSdkLike;
2510
- type index_BudgetCaps = BudgetCaps;
2511
- type index_BudgetExhaustedError = BudgetExhaustedError;
2512
- declare const index_BudgetExhaustedError: typeof BudgetExhaustedError;
2513
- type index_BudgetGateBundle = BudgetGateBundle;
2514
- type index_BudgetTotals = BudgetTotals;
2515
- type index_CallStatsEvent = CallStatsEvent;
2516
- declare const index_CapabilitiesRegistry: typeof CapabilitiesRegistry;
2517
- declare const index_CascadeExhaustionReport: typeof CascadeExhaustionReport;
2518
- declare const index_CascadingLlmAdapterOptions: typeof CascadingLlmAdapterOptions;
2519
- declare const index_ChatMessage: typeof ChatMessage;
2520
- type index_ChatStreamGraph = ChatStreamGraph;
2521
- declare const index_ChatStreamGraph: typeof ChatStreamGraph;
2522
- type index_ChatStreamOptions = ChatStreamOptions;
2523
- declare const index_CircuitOpenError: typeof CircuitOpenError;
2524
- type index_ContentDecision = ContentDecision;
2525
- type index_ContentGateOptions = ContentGateOptions;
2526
- type index_CostMeterOptions = CostMeterOptions;
2527
- type index_CostMeterReading = CostMeterReading;
2528
- declare const index_CreateAdapterOptions: typeof CreateAdapterOptions;
2529
- declare const index_DEFAULT_DECAY_RATE: typeof DEFAULT_DECAY_RATE;
2530
- type index_DryRunAdapterOptions = DryRunAdapterOptions;
2531
- type index_ExtractedToolCall = ExtractedToolCall;
2532
- declare const index_FallbackAdapterOptions: typeof FallbackAdapterOptions;
2533
- declare const index_FallbackFixture: typeof FallbackFixture;
2534
- declare const index_FallbackMissError: typeof FallbackMissError;
2535
- declare const index_FallbackMissPolicy: typeof FallbackMissPolicy;
2536
- type index_FrozenContextOptions = FrozenContextOptions;
2537
- type index_GatedStreamHandle<T> = GatedStreamHandle<T>;
2538
- type index_GatedStreamOptions = GatedStreamOptions;
2539
- type index_GaugesAsContextOptions = GaugesAsContextOptions;
2540
- type index_GoogleAdapterOptions = GoogleAdapterOptions;
2541
- type index_GoogleSdkLike = GoogleSdkLike;
2542
- type index_GoogleSdkRequestConfig = GoogleSdkRequestConfig;
2543
- type index_GoogleSdkRequestParams = GoogleSdkRequestParams;
2544
- type index_GraphDefValidation = GraphDefValidation;
2545
- type index_GraphFromSpecOptions = GraphFromSpecOptions;
2546
- type index_HandoffOptions = HandoffOptions;
2547
- type index_HttpErrorLike = HttpErrorLike;
2548
- type index_KeywordFlag = KeywordFlag;
2549
- type index_KeywordFlagExtractorOptions = KeywordFlagExtractorOptions;
2550
- type index_KnobsAsToolsResult = KnobsAsToolsResult;
2551
- declare const index_LLMAdapter: typeof LLMAdapter;
2552
- type index_LLMConsolidatorOptions = LLMConsolidatorOptions;
2553
- type index_LLMExtractorOptions = LLMExtractorOptions;
2554
- declare const index_LLMInvokeOptions: typeof LLMInvokeOptions;
2555
- declare const index_LLMResponse: typeof LLMResponse;
2556
- type index_LLMTimeoutError = LLMTimeoutError;
2557
- declare const index_LLMTimeoutError: typeof LLMTimeoutError;
2558
- type index_McpToolSchema = McpToolSchema;
2559
- type index_MemoryRetrievalBundle<TMem> = MemoryRetrievalBundle<TMem>;
2560
- type index_MemoryRetrievalOptions<TMem> = MemoryRetrievalOptions<TMem>;
2561
- type index_MemoryTier = MemoryTier;
2562
- type index_MemoryTiersBundle<TMem> = MemoryTiersBundle<TMem>;
2563
- type index_MemoryTiersOptions<TMem> = MemoryTiersOptions<TMem>;
2564
- type index_MemoryWithKGOptions<TMem> = MemoryWithKGOptions<TMem>;
2565
- type index_MemoryWithTiersOptions<TMem> = MemoryWithTiersOptions<TMem>;
2566
- type index_MemoryWithVectorsOptions<TMem> = MemoryWithVectorsOptions<TMem>;
2567
- declare const index_ModelCapabilities: typeof ModelCapabilities;
2568
- declare const index_ModelFeatures: typeof ModelFeatures;
2569
- declare const index_ModelLimits: typeof ModelLimits;
2570
- declare const index_ModelPricing: typeof ModelPricing;
2571
- declare const index_OpenAICompatAdapterOptions: typeof OpenAICompatAdapterOptions;
2572
- declare const index_OpenAICompatPreset: typeof OpenAICompatPreset;
2573
- declare const index_OpenAISdkLike: typeof OpenAISdkLike;
2574
- type index_OpenAIToolSchema = OpenAIToolSchema;
2575
- declare const index_PriceBreakdown: typeof PriceBreakdown;
2576
- declare const index_PricingFn: typeof PricingFn;
2577
- declare const index_PricingRegistry: typeof PricingRegistry;
2578
- type index_PromptCallOptions = PromptCallOptions;
2579
- type index_PromptNodeOptions = PromptNodeOptions;
2580
- declare const index_Rate: typeof Rate;
2581
- type index_RedactorOptions = RedactorOptions;
2582
- declare const index_ReplayCacheKeyContext: typeof ReplayCacheKeyContext;
2583
- declare const index_ReplayCacheMissError: typeof ReplayCacheMissError;
2584
- declare const index_ReplayCacheMode: typeof ReplayCacheMode;
2585
- type index_ResilientAdapterBundle = ResilientAdapterBundle;
2586
- type index_ResilientAdapterOptions = ResilientAdapterOptions;
2587
- type index_RetrievalEntry<TMem> = RetrievalEntry<TMem>;
2588
- type index_RetrievalPipelineOptions<TMem> = RetrievalPipelineOptions<TMem>;
2589
- type index_RetrievalQuery = RetrievalQuery;
2590
- type index_RetrievalTrace<TMem> = RetrievalTrace<TMem>;
2591
- type index_StampedDelta = StampedDelta;
2592
- type index_StrategyOperation = StrategyOperation;
2593
- type index_StrategyPlan = StrategyPlan;
2594
- declare const index_StreamDelta: typeof StreamDelta;
2595
- type index_StreamingPromptNodeHandle<T> = StreamingPromptNodeHandle<T>;
2596
- type index_StreamingPromptNodeOptions = StreamingPromptNodeOptions;
2597
- type index_SuggestStrategyOptions = SuggestStrategyOptions;
2598
- type index_SystemPromptHandle = SystemPromptHandle;
2599
- declare const index_TieredRate: typeof TieredRate;
2600
- declare const index_TokenUsage: typeof TokenUsage;
2601
- declare const index_ToolCall: typeof ToolCall;
2602
- declare const index_ToolDefinition: typeof ToolDefinition;
2603
- type index_ToolExecutionOptions = ToolExecutionOptions;
2604
- type index_ToolRegistryGraph = ToolRegistryGraph;
2605
- declare const index_ToolRegistryGraph: typeof ToolRegistryGraph;
2606
- type index_ToolRegistryOptions = ToolRegistryOptions;
2607
- type index_ToolResult = ToolResult;
2608
- type index_ToolSelectorOptions = ToolSelectorOptions;
2609
- type index_WithBreakerOptions = WithBreakerOptions;
2610
- type index_WithBudgetGateOptions = WithBudgetGateOptions;
2611
- type index_WithDryRunBundle = WithDryRunBundle;
2612
- type index_WithDryRunOptions = WithDryRunOptions;
2613
- type index_WithRateLimiterOptions = WithRateLimiterOptions;
2614
- declare const index_WithReplayCacheOptions: typeof WithReplayCacheOptions;
2615
- type index_WithRetryOptions = WithRetryOptions;
2616
- declare const index_admissionFilter3D: typeof admissionFilter3D;
2617
- declare const index_admissionScored: typeof admissionScored;
2618
- declare const index_agentLoop: typeof agentLoop;
2619
- declare const index_agentMemory: typeof agentMemory;
2620
- declare const index_anthropicAdapter: typeof anthropicAdapter;
2621
- declare const index_canonicalJson: typeof canonicalJson;
2622
- declare const index_cascadingLlmAdapter: typeof cascadingLlmAdapter;
2623
- declare const index_chatStream: typeof chatStream;
2624
- declare const index_composePricing: typeof composePricing;
2625
- declare const index_computePrice: typeof computePrice;
2626
- declare const index_contentGate: typeof contentGate;
2627
- declare const index_costMeterExtractor: typeof costMeterExtractor;
2628
- declare const index_createAdapter: typeof createAdapter;
2629
- declare const index_createCapabilitiesRegistry: typeof createCapabilitiesRegistry;
2630
- declare const index_createPricingRegistry: typeof createPricingRegistry;
2631
- declare const index_dryRunAdapter: typeof dryRunAdapter;
2632
- declare const index_fallbackAdapter: typeof fallbackAdapter;
2633
- declare const index_frozenContext: typeof frozenContext;
2634
- declare const index_gatedStream: typeof gatedStream;
2635
- declare const index_gaugesAsContext: typeof gaugesAsContext;
2636
- declare const index_googleAdapter: typeof googleAdapter;
2637
- declare const index_graphFromSpec: typeof graphFromSpec;
2638
- declare const index_graphFromSpecReactive: typeof graphFromSpecReactive;
2639
- declare const index_handoff: typeof handoff;
2640
- declare const index_keywordFlagExtractor: typeof keywordFlagExtractor;
2641
- declare const index_knobsAsTools: typeof knobsAsTools;
2642
- declare const index_llmConsolidator: typeof llmConsolidator;
2643
- declare const index_llmExtractor: typeof llmExtractor;
2644
- declare const index_memoryRetrieval: typeof memoryRetrieval;
2645
- declare const index_memoryWithKG: typeof memoryWithKG;
2646
- declare const index_memoryWithTiers: typeof memoryWithTiers;
2647
- declare const index_memoryWithVectors: typeof memoryWithVectors;
2648
- declare const index_observableAdapter: typeof observableAdapter;
2649
- declare const index_openAICompatAdapter: typeof openAICompatAdapter;
2650
- declare const index_parseRateLimitFromError: typeof parseRateLimitFromError;
2651
- declare const index_pricingFor: typeof pricingFor;
2652
- declare const index_promptCall: typeof promptCall;
2653
- declare const index_promptNode: typeof promptNode;
2654
- declare const index_redactor: typeof redactor;
2655
- declare const index_registryPricing: typeof registryPricing;
2656
- declare const index_resilientAdapter: typeof resilientAdapter;
2657
- declare const index_streamExtractor: typeof streamExtractor;
2658
- declare const index_streamingPromptNode: typeof streamingPromptNode;
2659
- declare const index_suggestStrategy: typeof suggestStrategy;
2660
- declare const index_suggestStrategyReactive: typeof suggestStrategyReactive;
2661
- declare const index_systemPromptBuilder: typeof systemPromptBuilder;
2662
- declare const index_tier: typeof tier;
2663
- declare const index_toolCallExtractor: typeof toolCallExtractor;
2664
- declare const index_toolExecution: typeof toolExecution;
2665
- declare const index_toolRegistry: typeof toolRegistry;
2666
- declare const index_toolSelector: typeof toolSelector;
2667
- declare const index_validateGraphDef: typeof validateGraphDef;
2668
- declare const index_withBreaker: typeof withBreaker;
2669
- declare const index_withBudgetGate: typeof withBudgetGate;
2670
- declare const index_withDryRun: typeof withDryRun;
2671
- declare const index_withRateLimiter: typeof withRateLimiter;
2672
- declare const index_withReplayCache: typeof withReplayCache;
2673
- declare const index_withRetry: typeof withRetry;
2674
- declare const index_withTimeout: typeof withTimeout;
2675
- declare const index_zeroPrice: typeof zeroPrice;
2676
- declare namespace index {
2677
- export { index_AdapterProvider as AdapterProvider, type index_AdapterStats as AdapterStats, index_AdapterTier as AdapterTier, type index_AdmissionScore3DOptions as AdmissionScore3DOptions, type index_AdmissionScoredOptions as AdmissionScoredOptions, type index_AdmissionScores as AdmissionScores, type index_AdmissionThresholds as AdmissionThresholds, index_AgentLoopGraph as AgentLoopGraph, type index_AgentLoopOptions as AgentLoopOptions, type index_AgentLoopStatus as AgentLoopStatus, type index_AgentMemoryGraph as AgentMemoryGraph, type index_AgentMemoryOptions as AgentMemoryOptions, index_AllTiersExhaustedError as AllTiersExhaustedError, type index_AnthropicAdapterOptions as AnthropicAdapterOptions, type index_AnthropicSdkLike as AnthropicSdkLike, type index_BudgetCaps as BudgetCaps, index_BudgetExhaustedError as BudgetExhaustedError, type index_BudgetGateBundle as BudgetGateBundle, type index_BudgetTotals as BudgetTotals, type index_CallStatsEvent as CallStatsEvent, index_CapabilitiesRegistry as CapabilitiesRegistry, index_CascadeExhaustionReport as CascadeExhaustionReport, index_CascadingLlmAdapterOptions as CascadingLlmAdapterOptions, index_ChatMessage as ChatMessage, index_ChatStreamGraph as ChatStreamGraph, type index_ChatStreamOptions as ChatStreamOptions, index_CircuitOpenError as CircuitOpenError, type index_ContentDecision as ContentDecision, type index_ContentGateOptions as ContentGateOptions, type index_CostMeterOptions as CostMeterOptions, type index_CostMeterReading as CostMeterReading, index_CreateAdapterOptions as CreateAdapterOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, type index_DryRunAdapterOptions as DryRunAdapterOptions, type index_ExtractedToolCall as ExtractedToolCall, index_FallbackAdapterOptions as FallbackAdapterOptions, index_FallbackFixture as FallbackFixture, index_FallbackMissError as FallbackMissError, index_FallbackMissPolicy as FallbackMissPolicy, type index_FrozenContextOptions as FrozenContextOptions, type index_GatedStreamHandle as GatedStreamHandle, type index_GatedStreamOptions as GatedStreamOptions, type index_GaugesAsContextOptions as GaugesAsContextOptions, type index_GoogleAdapterOptions as GoogleAdapterOptions, type index_GoogleSdkLike as GoogleSdkLike, type index_GoogleSdkRequestConfig as GoogleSdkRequestConfig, type index_GoogleSdkRequestParams as GoogleSdkRequestParams, type index_GraphDefValidation as GraphDefValidation, type index_GraphFromSpecOptions as GraphFromSpecOptions, type index_HandoffOptions as HandoffOptions, type index_HttpErrorLike as HttpErrorLike, type index_KeywordFlag as KeywordFlag, type index_KeywordFlagExtractorOptions as KeywordFlagExtractorOptions, type index_KnobsAsToolsResult as KnobsAsToolsResult, index_LLMAdapter as LLMAdapter, type index_LLMConsolidatorOptions as LLMConsolidatorOptions, type index_LLMExtractorOptions as LLMExtractorOptions, index_LLMInvokeOptions as LLMInvokeOptions, index_LLMResponse as LLMResponse, index_LLMTimeoutError as LLMTimeoutError, type index_McpToolSchema as McpToolSchema, type index_MemoryRetrievalBundle as MemoryRetrievalBundle, type index_MemoryRetrievalOptions as MemoryRetrievalOptions, type index_MemoryTier as MemoryTier, type index_MemoryTiersBundle as MemoryTiersBundle, type index_MemoryTiersOptions as MemoryTiersOptions, type index_MemoryWithKGOptions as MemoryWithKGOptions, type index_MemoryWithTiersOptions as MemoryWithTiersOptions, type index_MemoryWithVectorsOptions as MemoryWithVectorsOptions, index_ModelCapabilities as ModelCapabilities, index_ModelFeatures as ModelFeatures, index_ModelLimits as ModelLimits, index_ModelPricing as ModelPricing, index_OpenAICompatAdapterOptions as OpenAICompatAdapterOptions, index_OpenAICompatPreset as OpenAICompatPreset, index_OpenAISdkLike as OpenAISdkLike, type index_OpenAIToolSchema as OpenAIToolSchema, index_PriceBreakdown as PriceBreakdown, index_PricingFn as PricingFn, index_PricingRegistry as PricingRegistry, type index_PromptCallOptions as PromptCallOptions, type index_PromptNodeOptions as PromptNodeOptions, index_Rate as Rate, type index_RedactorOptions as RedactorOptions, index_ReplayCacheKeyContext as ReplayCacheKeyContext, index_ReplayCacheMissError as ReplayCacheMissError, index_ReplayCacheMode as ReplayCacheMode, type index_ResilientAdapterBundle as ResilientAdapterBundle, type index_ResilientAdapterOptions as ResilientAdapterOptions, type index_RetrievalEntry as RetrievalEntry, type index_RetrievalPipelineOptions as RetrievalPipelineOptions, type index_RetrievalQuery as RetrievalQuery, type index_RetrievalTrace as RetrievalTrace, type index_StampedDelta as StampedDelta, type index_StrategyOperation as StrategyOperation, type index_StrategyPlan as StrategyPlan, index_StreamDelta as StreamDelta, type index_StreamingPromptNodeHandle as StreamingPromptNodeHandle, type index_StreamingPromptNodeOptions as StreamingPromptNodeOptions, type index_SuggestStrategyOptions as SuggestStrategyOptions, type index_SystemPromptHandle as SystemPromptHandle, index_TieredRate as TieredRate, index_TokenUsage as TokenUsage, index_ToolCall as ToolCall, index_ToolDefinition as ToolDefinition, type index_ToolExecutionOptions as ToolExecutionOptions, index_ToolRegistryGraph as ToolRegistryGraph, type index_ToolRegistryOptions as ToolRegistryOptions, type index_ToolResult as ToolResult, type index_ToolSelectorOptions as ToolSelectorOptions, type index_WithBreakerOptions as WithBreakerOptions, type index_WithBudgetGateOptions as WithBudgetGateOptions, type index_WithDryRunBundle as WithDryRunBundle, type index_WithDryRunOptions as WithDryRunOptions, type index_WithRateLimiterOptions as WithRateLimiterOptions, index_WithReplayCacheOptions as WithReplayCacheOptions, type index_WithRetryOptions as WithRetryOptions, index_admissionFilter3D as admissionFilter3D, index_admissionScored as admissionScored, index_agentLoop as agentLoop, index_agentMemory as agentMemory, index_anthropicAdapter as anthropicAdapter, index_canonicalJson as canonicalJson, index_cascadingLlmAdapter as cascadingLlmAdapter, index_chatStream as chatStream, index_composePricing as composePricing, index_computePrice as computePrice, index_contentGate as contentGate, index_costMeterExtractor as costMeterExtractor, index_createAdapter as createAdapter, index_createCapabilitiesRegistry as createCapabilitiesRegistry, index_createPricingRegistry as createPricingRegistry, index_dryRunAdapter as dryRunAdapter, index_fallbackAdapter as fallbackAdapter, index_frozenContext as frozenContext, index_gatedStream as gatedStream, index_gaugesAsContext as gaugesAsContext, index_googleAdapter as googleAdapter, index_graphFromSpec as graphFromSpec, index_graphFromSpecReactive as graphFromSpecReactive, index_handoff as handoff, index_keywordFlagExtractor as keywordFlagExtractor, index_knobsAsTools as knobsAsTools, index_llmConsolidator as llmConsolidator, index_llmExtractor as llmExtractor, index_memoryRetrieval as memoryRetrieval, index_memoryWithKG as memoryWithKG, index_memoryWithTiers as memoryWithTiers, index_memoryWithVectors as memoryWithVectors, index_observableAdapter as observableAdapter, index_openAICompatAdapter as openAICompatAdapter, index_parseRateLimitFromError as parseRateLimitFromError, index_pricingFor as pricingFor, index_promptCall as promptCall, index_promptNode as promptNode, index_redactor as redactor, index_registryPricing as registryPricing, index_resilientAdapter as resilientAdapter, index_streamExtractor as streamExtractor, index_streamingPromptNode as streamingPromptNode, index_suggestStrategy as suggestStrategy, index_suggestStrategyReactive as suggestStrategyReactive, index_systemPromptBuilder as systemPromptBuilder, index_tier as tier, index_toolCallExtractor as toolCallExtractor, index_toolExecution as toolExecution, index_toolRegistry as toolRegistry, index_toolSelector as toolSelector, index_validateGraphDef as validateGraphDef, index_withBreaker as withBreaker, index_withBudgetGate as withBudgetGate, index_withDryRun as withDryRun, index_withRateLimiter as withRateLimiter, index_withReplayCache as withReplayCache, index_withRetry as withRetry, index_withTimeout as withTimeout, index_zeroPrice as zeroPrice };
2678
- }
2679
-
2680
- export { type OpenAIToolSchema as $, type AdapterStats as A, type BudgetCaps as B, type CallStatsEvent as C, type DryRunAdapterOptions as D, type ExtractedToolCall as E, type FrozenContextOptions as F, type GatedStreamHandle as G, type GoogleSdkRequestParams as H, type GraphDefValidation as I, type GraphFromSpecOptions as J, type HandoffOptions as K, type HttpErrorLike as L, type KeywordFlag as M, type KeywordFlagExtractorOptions as N, type KnobsAsToolsResult as O, type LLMConsolidatorOptions as P, type LLMExtractorOptions as Q, LLMTimeoutError as R, type McpToolSchema as S, type MemoryRetrievalBundle as T, type MemoryRetrievalOptions as U, type MemoryTier as V, type MemoryTiersBundle as W, type MemoryTiersOptions as X, type MemoryWithKGOptions as Y, type MemoryWithTiersOptions as Z, type MemoryWithVectorsOptions as _, type AdmissionScore3DOptions as a, toolExecution as a$, type PromptCallOptions as a0, type PromptNodeOptions as a1, type RedactorOptions as a2, type ResilientAdapterBundle as a3, type ResilientAdapterOptions as a4, type RetrievalEntry as a5, type RetrievalPipelineOptions as a6, type RetrievalQuery as a7, type RetrievalTrace as a8, type StampedDelta as a9, frozenContext as aA, gatedStream as aB, gaugesAsContext as aC, googleAdapter as aD, graphFromSpec as aE, graphFromSpecReactive as aF, handoff as aG, keywordFlagExtractor as aH, knobsAsTools as aI, llmConsolidator as aJ, llmExtractor as aK, memoryRetrieval as aL, memoryWithKG as aM, memoryWithTiers as aN, memoryWithVectors as aO, observableAdapter as aP, parseRateLimitFromError as aQ, promptCall as aR, promptNode as aS, redactor as aT, resilientAdapter as aU, streamExtractor as aV, streamingPromptNode as aW, suggestStrategy as aX, suggestStrategyReactive as aY, systemPromptBuilder as aZ, toolCallExtractor as a_, type StrategyOperation as aa, type StrategyPlan as ab, type StreamingPromptNodeHandle as ac, type StreamingPromptNodeOptions as ad, type SuggestStrategyOptions as ae, type SystemPromptHandle as af, type ToolExecutionOptions as ag, ToolRegistryGraph as ah, type ToolRegistryOptions as ai, type ToolResult as aj, type ToolSelectorOptions as ak, type WithBreakerOptions as al, type WithBudgetGateOptions as am, type WithDryRunBundle as an, type WithDryRunOptions as ao, type WithRateLimiterOptions as ap, type WithRetryOptions as aq, admissionFilter3D as ar, admissionScored as as, agentLoop as at, agentMemory as au, anthropicAdapter as av, chatStream as aw, contentGate as ax, costMeterExtractor as ay, dryRunAdapter as az, type AdmissionScoredOptions as b, toolRegistry as b0, toolSelector as b1, validateGraphDef as b2, withBreaker as b3, withBudgetGate as b4, withDryRun as b5, withRateLimiter as b6, withRetry as b7, withTimeout as b8, type AdmissionScores as c, type AdmissionThresholds as d, AgentLoopGraph as e, type AgentLoopOptions as f, type AgentLoopStatus as g, type AgentMemoryGraph as h, index as i, type AgentMemoryOptions as j, type AnthropicAdapterOptions as k, type AnthropicSdkLike as l, BudgetExhaustedError as m, type BudgetGateBundle as n, type BudgetTotals as o, ChatStreamGraph as p, type ChatStreamOptions as q, type ContentDecision as r, type ContentGateOptions as s, type CostMeterOptions as t, type CostMeterReading as u, type GatedStreamOptions as v, type GaugesAsContextOptions as w, type GoogleAdapterOptions as x, type GoogleSdkLike as y, type GoogleSdkRequestConfig as z };
1777
+ export { type AdapterStats, type AdmissionScore3DOptions, type AdmissionScoredOptions, type AdmissionScores, type AdmissionThresholds, type AnthropicAdapterOptions, type AnthropicSdkLike, type BudgetCaps, BudgetExhaustedError, type BudgetTotals, type CallStatsEvent, CascadeExhaustionReport, ChatMessage, type ContentDecision, type ContentGateOptions, type CostMeterOptions, type CostMeterReading, type DryRunAdapterOptions, type ExtractedToolCall, type FrozenContextOptions, type GatedStreamHandle, type GatedStreamOptions, type GaugesAsContextOptions, type GoogleAdapterOptions, type GoogleSdkLike, type GoogleSdkRequestConfig, type GoogleSdkRequestParams, type GraphDefValidation, type GraphFromSpecOptions, type HandoffOptions, type HttpErrorLike, type KeywordFlag, type KeywordFlagExtractorOptions, type KnobsAsToolsResult, LLMAdapter, type LLMBudgetGateBundle, type LLMConsolidatorOptions, type LLMExtractorOptions, LLMInvokeOptions, LLMResponse, LLMTimeoutError, type McpToolSchema, type OpenAIToolSchema, PricingFn, type PromptCallOptions, type PromptNodeOptions, type RedactorOptions, type ResilientAdapterBundle, type ResilientAdapterOptions, type StampedDelta, type StrategyOperation, type StrategyPlan, StreamDelta, type StreamingPromptNodeHandle, type StreamingPromptNodeOptions, type SuggestStrategyOptions, type SystemPromptHandle, TokenUsage, ToolDefinition, type ToolSelectorOptions, type WithBreakerOptions, type WithBudgetGateOptions, type WithDryRunBundle, type WithDryRunOptions, type WithRateLimiterOptions, WithReplayCacheOptions, type WithRetryOptions, admissionFilter3D, admissionScored, anthropicAdapter, contentGate, costMeterExtractor, dryRunAdapter, frozenContext, gatedStream, gaugesAsContext, googleAdapter, graphFromSpec, graphFromSpecReactive, handoff, keywordFlagExtractor, knobsAsTools, llmConsolidator, llmExtractor, observableAdapter, parseRateLimitFromError, promptCall, promptNode, redactor, resilientAdapter, streamExtractor, streamingPromptNode, suggestStrategy, suggestStrategyReactive, systemPromptBuilder, toolCallExtractor, toolSelector, validateGraphDef, withBudgetGate, withDryRun, withLLMBreaker, withLLMTimeout, withRateLimiter, withRetry };