@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,958 +0,0 @@
1
- import { a as NodeOptions, N as Node, r as Message } from '../node-kK3CvTrR.js';
2
- import { NodeInput } from './sources.js';
3
-
4
- /**
5
- * Tier 1 sync operators (roadmap §2.1) and Tier 2 async/dynamic operators (roadmap §2.2) —
6
- * each returns a {@link Node} built with {@link node} (or {@link producer} for cold sources).
7
- *
8
- * v5 foundation redesign: all operators use `actions.emit()` for value emission,
9
- * `ctx.store` for persistent state, `ctx.terminalDeps` for terminal handling,
10
- * and `data[i]` batch shape for DATA vs RESOLVED discrimination. `onMessage`
11
- * and `onResubscribe` are removed.
12
- */
13
-
14
- type ExtraOpts = Omit<NodeOptions<unknown>, "describeKind">;
15
- /**
16
- * Maps each settled value from `source` through `project`.
17
- *
18
- * @param source - Upstream node.
19
- * @param project - Transform for each value.
20
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
21
- * @returns `Node<R>` - Derived node emitting mapped values.
22
- *
23
- * @example
24
- * ```ts
25
- * import { map, state } from "@graphrefly/graphrefly-ts";
26
- *
27
- * const n = map(state(2), (x) => x * 3);
28
- * ```
29
- *
30
- * @category extra
31
- */
32
- declare function map<T, R>(source: Node<T>, project: (value: T) => R, opts?: ExtraOpts): Node<R>;
33
- /**
34
- * Forwards values that satisfy `predicate`; otherwise emits `RESOLVED` with no `DATA` (two-phase semantics).
35
- *
36
- * **Wave-exclusivity contract** (COMPOSITION-GUIDE §41 / spec §1.3.3): the
37
- * `RESOLVED` is emitted only when the entire wave produces zero passing
38
- * values — never per-dropped-item, never trailing a wave that already
39
- * emitted `DATA`. Mixed-batch inputs like `[v_pass, v_fail, v_pass2]`
40
- * forward `[DATA, v_pass]` and `[DATA, v_pass2]` with no `RESOLVED` for
41
- * the dropped middle entry. Consumers needing per-input drain accounting
42
- * count upstream of `filter`, not on its output.
43
- *
44
- * @param source - Upstream node.
45
- * @param predicate - Inclusion test.
46
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
47
- * @returns `Node<T>` - Filtered node.
48
- *
49
- * @example
50
- * ```ts
51
- * import { filter, state } from "@graphrefly/graphrefly-ts";
52
- *
53
- * const n = filter(state(1), (x) => x > 0);
54
- * ```
55
- *
56
- * @category extra
57
- */
58
- declare function filter<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts): Node<T>;
59
- /**
60
- * Folds each upstream value into an accumulator; emits the new accumulator every time.
61
- *
62
- * Unlike RxJS, `seed` is always required — there is no seedless mode where the first
63
- * value silently becomes the accumulator.
64
- *
65
- * @param source - Upstream node.
66
- * @param reducer - `(acc, value) => nextAcc`.
67
- * @param seed - Initial accumulator (required).
68
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
69
- * @returns `Node<R>` - Scan node.
70
- *
71
- * @example
72
- * ```ts
73
- * import { scan, state } from "@graphrefly/graphrefly-ts";
74
- *
75
- * const n = scan(state(1), (a, x) => a + x, 0);
76
- * ```
77
- *
78
- * @category extra
79
- */
80
- declare function scan<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, seed: R, opts?: ExtraOpts): Node<R>;
81
- /**
82
- * Reduces to one value emitted when `source` completes; if no `DATA` arrived, emits `seed`.
83
- *
84
- * Unlike RxJS, `seed` is always required. If the source completes without emitting
85
- * DATA, the seed value is emitted (RxJS would throw without a seed).
86
- *
87
- * @param source - Upstream node.
88
- * @param reducer - `(acc, value) => nextAcc`.
89
- * @param seed - Empty-completion default and initial accumulator (required).
90
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
91
- * @returns `Node<R>` - Node that emits once on completion.
92
- *
93
- * @example
94
- * ```ts
95
- * import { reduce, state } from "@graphrefly/graphrefly-ts";
96
- *
97
- * const n = reduce(state(1), (a, x) => a + x, 0);
98
- * ```
99
- *
100
- * @category extra
101
- */
102
- declare function reduce<T, R>(source: Node<T>, reducer: (acc: R, value: T) => R, seed: R, opts?: ExtraOpts): Node<R>;
103
- /**
104
- * Emits at most `count` **`DATA`** values, then **`COMPLETE`**. `RESOLVED` does not advance the counter.
105
- *
106
- * @param source - Upstream node.
107
- * @param count - Maximum `DATA` emissions (≤0 completes immediately).
108
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
109
- * @returns `Node<T>` - Limited stream.
110
- *
111
- * @example
112
- * ```ts
113
- * import { take, state } from "@graphrefly/graphrefly-ts";
114
- *
115
- * const n = take(state(0), 3);
116
- * ```
117
- *
118
- * @category extra
119
- */
120
- declare function take<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T>;
121
- /**
122
- * Skips the first `count` **`DATA`** emissions. `RESOLVED` does not advance the counter.
123
- *
124
- * @param source - Upstream node.
125
- * @param count - Number of `DATA` values to drop.
126
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
127
- * @returns `Node<T>` - Skipped stream.
128
- *
129
- * @example
130
- * ```ts
131
- * import { skip, state } from "@graphrefly/graphrefly-ts";
132
- *
133
- * const n = skip(state(0), 2);
134
- * ```
135
- *
136
- * @category extra
137
- */
138
- declare function skip<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T>;
139
- /**
140
- * Emits while `predicate` holds; on first false, sends **`COMPLETE`**.
141
- *
142
- * @param source - Upstream node.
143
- * @param predicate - Continuation test.
144
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
145
- * @returns `Node<T>` - Truncated stream.
146
- *
147
- * @example
148
- * ```ts
149
- * import { takeWhile, state } from "@graphrefly/graphrefly-ts";
150
- *
151
- * const n = takeWhile(state(1), (x) => x < 10);
152
- * ```
153
- *
154
- * @category extra
155
- */
156
- declare function takeWhile<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts): Node<T>;
157
- /**
158
- * Forwards `source` until `notifier` matches `predicate` (default: notifier **`DATA`**), then **`COMPLETE`**.
159
- *
160
- * @param source - Main upstream.
161
- * @param notifier - Triggers completion when `predicate(msg)` is true.
162
- * @param opts - Optional {@link NodeOptions}, plus `predicate` for custom notifier matching.
163
- * @returns `Node<T>` - Truncated stream.
164
- *
165
- * @example
166
- * ```ts
167
- * import { producer, takeUntil, state } from "@graphrefly/graphrefly-ts";
168
- *
169
- * const src = state(1);
170
- * const stop = producer((_d, a) => a.emit(undefined));
171
- * const n = takeUntil(src, stop);
172
- * ```
173
- *
174
- * @category extra
175
- */
176
- declare function takeUntil<T>(source: Node<T>, notifier: Node, opts?: ExtraOpts & {
177
- predicate?: (msg: Message) => boolean;
178
- }): Node<T>;
179
- /**
180
- * Emits the first **`DATA`** then **`COMPLETE`** (same as `take(source, 1)`).
181
- *
182
- * @param source - Upstream node.
183
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
184
- * @returns `Node<T>` - Single-value stream.
185
- *
186
- * @example
187
- * ```ts
188
- * import { first, state } from "@graphrefly/graphrefly-ts";
189
- *
190
- * const n = first(state(42));
191
- * ```
192
- *
193
- * @category extra
194
- */
195
- declare function first<T>(source: Node<T>, opts?: ExtraOpts): Node<T>;
196
- /**
197
- * Buffers values and emits the last **`DATA`** on **`COMPLETE`**; optional `defaultValue` if none arrived.
198
- *
199
- * @param source - Upstream node.
200
- * @param options - Optional {@link NodeOptions} and `defaultValue` when empty.
201
- * @returns `Node<T>` - Last-or-default node.
202
- *
203
- * @example
204
- * ```ts
205
- * import { last, state } from "@graphrefly/graphrefly-ts";
206
- *
207
- * const n = last(state(1), { defaultValue: 0 });
208
- * ```
209
- *
210
- * @category extra
211
- */
212
- declare function last<T>(source: Node<T>, options?: ExtraOpts & {
213
- defaultValue?: T;
214
- }): Node<T>;
215
- /**
216
- * Emits the first value matching `predicate`, then **`COMPLETE`**.
217
- *
218
- * @param source - Upstream node.
219
- * @param predicate - Match test.
220
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
221
- * @returns `Node<T>` - First-match stream.
222
- *
223
- * @example
224
- * ```ts
225
- * import { find, state } from "@graphrefly/graphrefly-ts";
226
- *
227
- * const n = find(state(1), (x) => x > 0);
228
- * ```
229
- *
230
- * @category extra
231
- */
232
- declare function find<T>(source: Node<T>, predicate: (value: T) => boolean, opts?: ExtraOpts): Node<T>;
233
- /**
234
- * Emits the `index`th **`DATA`** (zero-based), then **`COMPLETE`**.
235
- *
236
- * @param source - Upstream node.
237
- * @param index - Zero-based emission index.
238
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
239
- * @returns `Node<T>` - Single indexed value.
240
- *
241
- * @example
242
- * ```ts
243
- * import { elementAt, state } from "@graphrefly/graphrefly-ts";
244
- *
245
- * const n = elementAt(state(0), 2);
246
- * ```
247
- *
248
- * @category extra
249
- */
250
- declare function elementAt<T>(source: Node<T>, index: number, opts?: ExtraOpts): Node<T>;
251
- /**
252
- * Observer shape for {@link tap} — side effects for data, error, and/or complete.
253
- */
254
- type TapObserver<T> = {
255
- data?: (value: T) => void;
256
- error?: (err: unknown) => void;
257
- complete?: () => void;
258
- };
259
- /**
260
- * Invokes side effects; values pass through unchanged.
261
- *
262
- * Accepts either a function (called on each DATA) or an observer object
263
- * `{ data?, error?, complete? }` for lifecycle-aware side effects.
264
- *
265
- * @param source - Upstream node.
266
- * @param fnOrObserver - Side effect function or observer object.
267
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
268
- * @returns `Node<T>` - Passthrough node.
269
- *
270
- * @example
271
- * ```ts
272
- * import { tap, state } from "@graphrefly/graphrefly-ts";
273
- *
274
- * // Function form (DATA only)
275
- * tap(state(1), (x) => console.log(x));
276
- *
277
- * // Observer form (DATA + ERROR + COMPLETE)
278
- * tap(state(1), { data: console.log, error: console.error, complete: () => console.log("done") });
279
- * ```
280
- *
281
- * @category extra
282
- */
283
- declare function tap<T>(source: Node<T>, fnOrObserver: ((value: T) => void) | TapObserver<T>, opts?: ExtraOpts): Node<T>;
284
- /**
285
- * Invokes `fn` exactly once on the first qualifying DATA emission, then passes
286
- * all values (including subsequent DATA) through unchanged.
287
- *
288
- * Motivation: call-boundary instrumentation (record stats, debit budget, log
289
- * first-token latency) where the wrapper is re-subscribed by downstream
290
- * composition (push-on-subscribe §2.2 would otherwise re-deliver the cached
291
- * value and re-fire the side effect). The closure guard is scoped to the node
292
- * instance, so the side effect fires exactly once per node lifetime.
293
- *
294
- * By default `null` / `undefined` values pass through WITHOUT counting as
295
- * "first" — matches the SENTINEL convention (COMPOSITION-GUIDE §8) used by
296
- * `promptNode`, `fromAny(Promise)`, and friends where a cached `null` means
297
- * "not yet settled." Pass `where` to override with a custom predicate.
298
- *
299
- * @param source - Upstream node.
300
- * @param fn - Side effect invoked once on the first qualifying value.
301
- * @param opts - Optional {@link NodeOptions} plus `where` predicate. Default
302
- * `where: (v) => v != null`.
303
- * @returns `Node<T>` - Passthrough node.
304
- *
305
- * @example
306
- * ```ts
307
- * import { onFirstData, fromAny } from "@graphrefly/graphrefly-ts";
308
- *
309
- * const tap = onFirstData(fromAny(adapter.invoke(msgs)), (resp) => recordStats(resp));
310
- * ```
311
- *
312
- * @category extra
313
- */
314
- declare function onFirstData<T>(source: Node<T>, fn: (value: T) => void, opts?: ExtraOpts & {
315
- where?: (value: T) => boolean;
316
- }): Node<T>;
317
- /**
318
- * Alias for {@link onFirstData}. Parallels `tap` naming for discoverability —
319
- * `tapFirst` is the one-shot companion of `tap`.
320
- *
321
- * @category extra
322
- */
323
- declare const tapFirst: typeof onFirstData;
324
- /**
325
- * Suppresses adjacent duplicates using `equals` (default `Object.is`).
326
- *
327
- * @param source - Upstream node.
328
- * @param equals - Optional equality for consecutive values.
329
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
330
- * @returns `Node<T>` - Deduped stream.
331
- *
332
- * @example
333
- * ```ts
334
- * import { distinctUntilChanged, state } from "@graphrefly/graphrefly-ts";
335
- *
336
- * const n = distinctUntilChanged(state(1));
337
- * ```
338
- *
339
- * @category extra
340
- */
341
- declare function distinctUntilChanged<T>(source: Node<T>, equals?: (a: T, b: T) => boolean, opts?: ExtraOpts): Node<T>;
342
- /**
343
- * Emits `[previous, current]` pairs starting after the second value (first pair uses `RESOLVED` only).
344
- *
345
- * @param source - Upstream node.
346
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
347
- * @returns `Node<readonly [T, T]>` - Pair stream.
348
- *
349
- * @example
350
- * ```ts
351
- * import { pairwise, state } from "@graphrefly/graphrefly-ts";
352
- *
353
- * const n = pairwise(state(0));
354
- * ```
355
- *
356
- * @category extra
357
- */
358
- declare function pairwise<T>(source: Node<T>, opts?: ExtraOpts): Node<readonly [T, T]>;
359
- /**
360
- * Combines the latest value from each dependency whenever any dep settles (combineLatest).
361
- *
362
- * @param sources - Nodes to combine (variadic).
363
- * @returns `Node<T>` - Tuple of latest values.
364
- *
365
- * @example
366
- * ```ts
367
- * import { combine, state } from "@graphrefly/graphrefly-ts";
368
- *
369
- * const n = combine(state(1), state("a"));
370
- * ```
371
- *
372
- * @remarks
373
- * Unlike RxJS `combineLatest`, this is named `combine`. Use the {@link combineLatest} alias
374
- * if you prefer the RxJS name. Seed is always required for `scan`/`reduce` (no seedless mode).
375
- *
376
- * @category extra
377
- */
378
- declare function combine<const T extends readonly unknown[]>(...sources: {
379
- [K in keyof T]: Node<T[K]>;
380
- }): Node<T>;
381
- /**
382
- * When `primary` settles, emits `[primary, latestSecondary]`. `secondary` alone updates cache only.
383
- *
384
- * @param primary - Main stream.
385
- * @param secondary - Latest value is paired on each primary emission.
386
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
387
- * @returns `Node<readonly [A, B]>` - Paired stream.
388
- *
389
- * @example
390
- * ```ts
391
- * import { state, withLatestFrom } from "@graphrefly/graphrefly-ts";
392
- *
393
- * const n = withLatestFrom(state(1), state("x"));
394
- * ```
395
- *
396
- * @category extra
397
- */
398
- declare function withLatestFrom<A, B>(primary: Node<A>, secondary: Node<B>, opts?: ExtraOpts): Node<readonly [A, B]>;
399
- /**
400
- * Merges **`DATA`** from any source with correct two-phase dirty tracking. **`COMPLETE`** after **all** sources complete (spec §1.3.5).
401
- *
402
- * @param sources - Nodes to merge (variadic; empty completes immediately).
403
- * @returns `Node<T>` - Merged stream.
404
- *
405
- * @remarks
406
- * **Ordering:** DIRTY/RESOLVED rules follow multi-source semantics in `~/src/graphrefly/GRAPHREFLY-SPEC.md`.
407
- *
408
- * @example
409
- * ```ts
410
- * import { merge, state } from "@graphrefly/graphrefly-ts";
411
- *
412
- * const n = merge(state(1), state(2));
413
- * ```
414
- *
415
- * @category extra
416
- */
417
- declare function merge<T>(...sources: readonly Node<T>[]): Node<T>;
418
- /**
419
- * Zips one **`DATA`** from each source per cycle into a tuple. Only **`DATA`** enqueues (spec §1.3.3).
420
- *
421
- * @param sources - Nodes to zip (variadic).
422
- * @returns `Node<T>` - Zipped tuples.
423
- *
424
- * @example
425
- * ```ts
426
- * import { state, zip } from "@graphrefly/graphrefly-ts";
427
- *
428
- * const n = zip(state(1), state(2));
429
- * ```
430
- *
431
- * @category extra
432
- */
433
- declare function zip<const T extends readonly unknown[]>(...sources: {
434
- [K in keyof T]: Node<T[K]>;
435
- }): Node<T>;
436
- /**
437
- * Plays all of `firstSrc`, then all of `secondSrc`. **`DATA`** from `secondSrc` during phase one is buffered until handoff.
438
- *
439
- * @param firstSrc - First segment.
440
- * @param secondSrc - Second segment.
441
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
442
- * @returns `Node<T>` - Concatenated stream.
443
- *
444
- * @example
445
- * ```ts
446
- * import { concat, state } from "@graphrefly/graphrefly-ts";
447
- *
448
- * const n = concat(state(1), state(2));
449
- * ```
450
- *
451
- * @category extra
452
- */
453
- declare function concat<T>(firstSrc: Node<T>, secondSrc: Node<T>, opts?: ExtraOpts): Node<T>;
454
- /**
455
- * First source to emit **`DATA`** wins; later traffic follows only the winner (Rx-style `race`).
456
- *
457
- * @param sources - Contestants (variadic; empty completes immediately; one node is identity).
458
- * @returns `Node<T>` - Winning stream.
459
- *
460
- * @example
461
- * ```ts
462
- * import { race, state } from "@graphrefly/graphrefly-ts";
463
- *
464
- * const n = race(state(1), state(2));
465
- * ```
466
- *
467
- * @category extra
468
- */
469
- declare function race<T>(...sources: readonly Node<T>[]): Node<T>;
470
- /**
471
- * Maps each settled value to an inner node; unsubscribes the previous inner (Rx-style `switchMap`).
472
- *
473
- * @param source - Upstream node.
474
- * @param project - Maps each outer value to an inner source shape (`Node`, scalar, `PromiseLike`, `Iterable`, or `AsyncIterable`) coerced via {@link fromAny}.
475
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
476
- * @returns `Node<R>` - Emissions from the active inner subscription.
477
- * @example
478
- * ```ts
479
- * import { switchMap, state } from "@graphrefly/graphrefly-ts";
480
- *
481
- * const src = state(0);
482
- * switchMap(src, (n) => state((n as number) * 2));
483
- * ```
484
- *
485
- * @category extra
486
- */
487
- declare function switchMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts): Node<R>;
488
- /**
489
- * Like {@link switchMap}, but ignores outer `DATA` while an inner subscription is active (`exhaustMap`).
490
- *
491
- * @param source - Upstream node.
492
- * @param project - Maps each outer value to an inner source shape (`Node`, scalar, `PromiseLike`, `Iterable`, or `AsyncIterable`) coerced via {@link fromAny}.
493
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
494
- * @returns `Node<R>` - Emissions from the active inner while it runs.
495
- * @example
496
- * ```ts
497
- * import { exhaustMap, state } from "@graphrefly/graphrefly-ts";
498
- *
499
- * exhaustMap(state(0), () => state(1));
500
- * ```
501
- *
502
- * @category extra
503
- */
504
- declare function exhaustMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts): Node<R>;
505
- /**
506
- * Enqueues each outer value and subscribes to inners one at a time (`concatMap`).
507
- *
508
- * @param source - Upstream node.
509
- * @param project - Maps each outer value to an inner source shape (`Node`, scalar, `PromiseLike`, `Iterable`, or `AsyncIterable`) coerced via {@link fromAny}.
510
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
511
- * @returns `Node<R>` - Sequential concatenation of inner streams.
512
- * @example
513
- * ```ts
514
- * import { concatMap, state } from "@graphrefly/graphrefly-ts";
515
- *
516
- * concatMap(state(0), (n) => state((n as number) + 1));
517
- * ```
518
- *
519
- * @category extra
520
- */
521
- declare function concatMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: ExtraOpts & {
522
- maxBuffer?: number;
523
- }): Node<R>;
524
- /** Options for {@link mergeMap}. */
525
- type MergeMapOptions = ExtraOpts & {
526
- /** Maximum number of concurrent inner subscriptions. Default: `Infinity` (unbounded). */
527
- concurrent?: number;
528
- };
529
- /**
530
- * Subscribes to inner nodes in parallel (up to `concurrent`) and merges outputs (`mergeMap` / `flatMap`).
531
- *
532
- * @param source - Upstream node.
533
- * @param project - Maps each outer value to an inner source shape (`Node`, scalar, `PromiseLike`, `Iterable`, or `AsyncIterable`) coerced via {@link fromAny}.
534
- * @param opts - Optional options including `concurrent` limit.
535
- * @returns `Node<R>` - Merged output of all active inners; completes when the outer and every inner complete.
536
- *
537
- * @remarks
538
- * **ERROR handling:** An `ERROR` from the outer source cancels all active inner
539
- * subscriptions and propagates the error downstream. An `ERROR` from an inner
540
- * subscription propagates downstream immediately but does **not** cancel sibling
541
- * inner subscriptions — other active inners continue until they complete or the
542
- * outer errors/completes. This is intentional: for parallel work, isolating
543
- * failures per-inner is more useful than Rx-style "first error cancels all."
544
- *
545
- * @example
546
- * ```ts
547
- * import { mergeMap, state } from "@graphrefly/graphrefly-ts";
548
- *
549
- * // Unbounded (default)
550
- * mergeMap(state(0), (n) => state((n as number) + 1));
551
- *
552
- * // Limited concurrency
553
- * mergeMap(state(0), (n) => state((n as number) + 1), { concurrent: 3 });
554
- * ```
555
- *
556
- * @category extra
557
- */
558
- declare function mergeMap<T, R>(source: Node<T>, project: (value: T) => NodeInput<R>, opts?: MergeMapOptions): Node<R>;
559
- /**
560
- * RxJS-named alias for {@link mergeMap} — projects each `DATA` to an inner node and merges outputs.
561
- *
562
- * @param source - Upstream node.
563
- * @param project - Returns an inner `Node<R>` per value.
564
- * @param opts - Optional concurrency cap and node options (excluding `describeKind`).
565
- * @returns Merged projection; behavior matches `mergeMap`.
566
- *
567
- * @example
568
- * ```ts
569
- * import { flatMap, state } from "@graphrefly/graphrefly-ts";
570
- *
571
- * flatMap(state(0), (n) => state(n));
572
- * ```
573
- *
574
- * @category extra
575
- */
576
- declare const flatMap: typeof mergeMap;
577
- /**
578
- * Delays phase-2 emissions by `ms` (timers). `DIRTY` still forwards immediately.
579
- *
580
- * @param source - Upstream node.
581
- * @param ms - Delay in milliseconds.
582
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
583
- * @returns `Node<T>` - Same values, shifted in time.
584
- * @example
585
- * ```ts
586
- * import { delay, state } from "@graphrefly/graphrefly-ts";
587
- *
588
- * delay(state(1), 100);
589
- * ```
590
- *
591
- * @category extra
592
- */
593
- declare function delay<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
594
- /**
595
- * Emits the latest value only after `ms` quiet time since the last trigger (`debounce`).
596
- *
597
- * @param source - Upstream node.
598
- * @param ms - Quiet window in milliseconds.
599
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
600
- * @returns `Node<T>` - Debounced stream.
601
- * @example
602
- * ```ts
603
- * import { debounce, state } from "@graphrefly/graphrefly-ts";
604
- *
605
- * debounce(state(0), 50);
606
- * ```
607
- *
608
- * @category extra
609
- */
610
- declare function debounce<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
611
- type ThrottleOptions = {
612
- leading?: boolean;
613
- trailing?: boolean;
614
- };
615
- /**
616
- * Rate-limits emissions to at most once per `ms` window (`throttleTime`).
617
- *
618
- * @param source - Upstream node.
619
- * @param ms - Minimum spacing in milliseconds.
620
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`) plus `leading` / `trailing`.
621
- * @returns `Node<T>` - Throttled stream.
622
- * @example
623
- * ```ts
624
- * import { throttle, state } from "@graphrefly/graphrefly-ts";
625
- *
626
- * throttle(state(0), 1_000, { trailing: false });
627
- * ```
628
- *
629
- * @category extra
630
- */
631
- declare function throttle<T>(source: Node<T>, ms: number, opts?: ExtraOpts & ThrottleOptions): Node<T>;
632
- /**
633
- * Emits the most recent source value whenever `notifier` emits `DATA` (`sample`).
634
- *
635
- * Source `COMPLETE` stops sampling (clears held value); notifier `COMPLETE` terminates the
636
- * operator. `ERROR` from either dep terminates immediately. At most one terminal message is
637
- * emitted downstream (latch). Supports `resubscribable` — `ctx.store` resets automatically.
638
- *
639
- * @param source - Node whose latest value is sampled.
640
- * @param notifier - When this node emits `DATA`, a sample is taken.
641
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
642
- * @returns `Node<T>` - Sampled snapshots of `source`.
643
- * @example
644
- * ```ts
645
- * import { sample, state } from "@graphrefly/graphrefly-ts";
646
- *
647
- * sample(state(1), state(0));
648
- * ```
649
- *
650
- * @category extra
651
- */
652
- declare function sample<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts): Node<T>;
653
- /**
654
- * After each source `DATA`, waits `ms` then emits the latest value if another `DATA` has not arrived (`auditTime` / trailing window).
655
- *
656
- * @param source - Upstream node.
657
- * @param ms - Window in milliseconds after each `DATA`.
658
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
659
- * @returns `Node<T>` - Trailing-edge sampled stream.
660
- * @example
661
- * ```ts
662
- * import { audit, state } from "@graphrefly/graphrefly-ts";
663
- *
664
- * audit(state(0), 100);
665
- * ```
666
- *
667
- * @category extra
668
- */
669
- declare function audit<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T>;
670
- /**
671
- * Errors if no `DATA` arrives within `ms` after subscribe or after the previous `DATA`.
672
- *
673
- * @param source - Upstream node.
674
- * @param ms - Idle budget in milliseconds.
675
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`) and `with` for a custom error payload.
676
- * @returns `Node<T>` - Pass-through with idle watchdog.
677
- * @example
678
- * ```ts
679
- * import { timeout, state } from "@graphrefly/graphrefly-ts";
680
- *
681
- * timeout(state(0), 5_000);
682
- * ```
683
- *
684
- * @category extra
685
- */
686
- declare function timeout<T>(source: Node<T>, ms: number, opts?: ExtraOpts & {
687
- with?: unknown;
688
- }): Node<T>;
689
- /**
690
- * Buffers source `DATA` values; flushes an array when `notifier` settles (`buffer`).
691
- *
692
- * @param source - Upstream node.
693
- * @param notifier - Flush trigger on each settlement.
694
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
695
- * @returns `Node<T[]>` - Emits buffered arrays (may be empty-handled via `RESOLVED` when nothing buffered).
696
- * @example
697
- * ```ts
698
- * import { buffer, state } from "@graphrefly/graphrefly-ts";
699
- *
700
- * buffer(state(0), state(0));
701
- * ```
702
- *
703
- * @category extra
704
- */
705
- declare function buffer<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts): Node<T[]>;
706
- /**
707
- * Batches consecutive `DATA` values into arrays of length `count` (`bufferCount` / `windowCount`).
708
- *
709
- * @param source - Upstream node.
710
- * @param count - Buffer size before emit; must be > 0.
711
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
712
- * @returns `Node<T[]>` - Emits fixed-size arrays; remainder flushes on `COMPLETE`.
713
- * @example
714
- * ```ts
715
- * import { bufferCount, state } from "@graphrefly/graphrefly-ts";
716
- *
717
- * bufferCount(state(0), 3);
718
- * ```
719
- *
720
- * @category extra
721
- */
722
- declare function bufferCount<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T[]>;
723
- /**
724
- * Splits source `DATA` into sub-nodes of `count` values each. Each sub-node completes after `count` items or when source completes.
725
- *
726
- * @param source - Upstream node.
727
- * @param count - Items per window.
728
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
729
- * @returns `Node<Node<T>>` - Each emission is a sub-node carrying that window's values.
730
- *
731
- * @example
732
- * ```ts
733
- * import { windowCount, state } from "@graphrefly/graphrefly-ts";
734
- *
735
- * windowCount(state(0), 3);
736
- * ```
737
- *
738
- * @category extra
739
- */
740
- declare function windowCount<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<Node<T>>;
741
- /**
742
- * Flushes buffered `DATA` values every `ms` (`bufferTime` / `windowTime`).
743
- *
744
- * @param source - Upstream node.
745
- * @param ms - Flush interval in milliseconds.
746
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
747
- * @returns `Node<T[]>` - Time-windowed batches.
748
- * @example
749
- * ```ts
750
- * import { bufferTime, state } from "@graphrefly/graphrefly-ts";
751
- *
752
- * bufferTime(state(0), 250);
753
- * ```
754
- *
755
- * @category extra
756
- */
757
- declare function bufferTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<T[]>;
758
- /**
759
- * Splits source `DATA` into time-windowed sub-nodes; each window lasts `ms`.
760
- *
761
- * @param source - Upstream node.
762
- * @param ms - Window duration in milliseconds.
763
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
764
- * @returns `Node<Node<T>>` - Each emission is a sub-node carrying that window's values.
765
- *
766
- * @example
767
- * ```ts
768
- * import { windowTime, state } from "@graphrefly/graphrefly-ts";
769
- *
770
- * windowTime(state(0), 500);
771
- * ```
772
- *
773
- * @category extra
774
- */
775
- declare function windowTime<T>(source: Node<T>, ms: number, opts?: ExtraOpts): Node<Node<T>>;
776
- /**
777
- * Splits source `DATA` into sub-nodes, opening a new window each time `notifier` emits `DATA`.
778
- *
779
- * @param source - Upstream node.
780
- * @param notifier - Each `DATA` from `notifier` closes the current window and opens a new one.
781
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
782
- * @returns `Node<Node<T>>` - Each emission is a sub-node carrying that window's values.
783
- *
784
- * @example
785
- * ```ts
786
- * import { state, window } from "@graphrefly/graphrefly-ts";
787
- *
788
- * window(state(0), state(0));
789
- * ```
790
- *
791
- * @category extra
792
- */
793
- declare function window<T>(source: Node<T>, notifier: Node<unknown>, opts?: ExtraOpts): Node<Node<T>>;
794
- /**
795
- * Increments on each tick (`interval`); uses `setInterval` via {@link producer}.
796
- *
797
- * @param periodMs - Time between ticks.
798
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
799
- * @returns `Node<number>` - Emits `0`, `1`, `2`, … while subscribed.
800
- * @example
801
- * ```ts
802
- * import { interval } from "@graphrefly/graphrefly-ts";
803
- *
804
- * interval(1_000);
805
- * ```
806
- *
807
- * @category extra
808
- */
809
- declare function interval(periodMs: number, opts?: ExtraOpts): Node<number>;
810
- /**
811
- * Subscribes to `source` repeatedly (`count` times, sequentially). Best with a fresh or `resubscribable` source.
812
- *
813
- * @param source - Upstream node to replay.
814
- * @param count - Number of subscription rounds.
815
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
816
- * @returns `Node<T>` - Forwards each round then completes after the last inner `COMPLETE`.
817
- * @example
818
- * ```ts
819
- * import { repeat, state } from "@graphrefly/graphrefly-ts";
820
- *
821
- * repeat(state(1, { resubscribable: true }), 2);
822
- * ```
823
- *
824
- * @category extra
825
- */
826
- declare function repeat<T>(source: Node<T>, count: number, opts?: ExtraOpts): Node<T>;
827
- /**
828
- * Identity passthrough — `pausable()` has been promoted to default node behavior in v5 (§4).
829
- *
830
- * @deprecated Default node behavior now handles PAUSE/RESUME. This operator is a no-op
831
- * identity passthrough kept only for migration compatibility.
832
- *
833
- * @param source - Upstream node.
834
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
835
- * @returns `Node<T>` - Pass-through (identity).
836
- * @example
837
- * ```ts
838
- * import { pausable, state } from "@graphrefly/graphrefly-ts";
839
- *
840
- * // No longer needed — default nodes handle PAUSE/RESUME.
841
- * const s = state(0);
842
- * pausable(s); // identity passthrough
843
- * ```
844
- *
845
- * @category extra
846
- */
847
- declare function pausable<T>(source: Node<T>, opts?: ExtraOpts): Node<T>;
848
- /**
849
- * Replaces an upstream `ERROR` with a recovered value (`catchError`-style).
850
- *
851
- * @param source - Upstream node.
852
- * @param recover - Maps the error payload to a replacement value; if it throws, `ERROR` is forwarded.
853
- * @param opts - Optional {@link NodeOptions} (excluding `describeKind`).
854
- * @returns `Node<T>` - Recovered stream.
855
- * @example
856
- * ```ts
857
- * import { rescue, state } from "@graphrefly/graphrefly-ts";
858
- *
859
- * rescue(state(0), () => 0);
860
- * ```
861
- *
862
- * @category extra
863
- */
864
- declare function rescue<T>(source: Node<T>, recover: (err: unknown) => T, opts?: ExtraOpts): Node<T>;
865
- /**
866
- * Forwards upstream `DATA` only while `control.get()` is truthy; when closed, emits `RESOLVED`
867
- * instead of repeating the last value (value-level valve). For protocol pause/resume, use default
868
- * node PAUSE/RESUME behavior.
869
- *
870
- * @param source - Upstream value node.
871
- * @param control - Boolean node; when falsy, output stays "closed" for that tick.
872
- * @param opts - Optional node options (excluding `describeKind`).
873
- * @returns `Node<T>` gated by `control`.
874
- *
875
- * @example
876
- * ```ts
877
- * import { valve, state } from "@graphrefly/graphrefly-ts";
878
- *
879
- * const data = state(1);
880
- * const open = state(true);
881
- * valve(data, open);
882
- * ```
883
- *
884
- * @category extra
885
- */
886
- declare function valve<T>(source: Node<T>, control: Node<boolean>, opts?: ExtraOpts): Node<T>;
887
- /**
888
- * RxJS-named alias for {@link combine} — emits when any dep updates with latest tuple of values.
889
- *
890
- * @param sources - Upstream nodes as separate arguments (same calling shape as `combine`).
891
- * @returns Combined node; signature matches `combine`.
892
- *
893
- * @example
894
- * ```ts
895
- * import { combineLatest, state } from "@graphrefly/graphrefly-ts";
896
- *
897
- * const n = combineLatest(state(1), state("a"));
898
- * ```
899
- *
900
- * @category extra
901
- */
902
- declare const combineLatest: typeof combine;
903
- /**
904
- * RxJS-named alias for {@link debounce} — drops rapid `DATA` until `ms` of quiet.
905
- *
906
- * @param source - Upstream node.
907
- * @param ms - Quiet period in milliseconds.
908
- * @param opts - Optional node options (excluding `describeKind`).
909
- * @returns Debounced node; behavior matches `debounce`.
910
- *
911
- * @example
912
- * ```ts
913
- * import { debounceTime, state } from "@graphrefly/graphrefly-ts";
914
- *
915
- * debounceTime(state(0), 100);
916
- * ```
917
- *
918
- * @category extra
919
- */
920
- declare const debounceTime: typeof debounce;
921
- /**
922
- * RxJS-named alias for {@link throttle} — emits on leading/trailing edges within `ms`.
923
- *
924
- * @param source - Upstream node.
925
- * @param ms - Minimum spacing in milliseconds.
926
- * @param opts - Optional throttle shape (`leading` / `trailing`) and node options.
927
- * @returns Throttled node; behavior matches `throttle`.
928
- *
929
- * @example
930
- * ```ts
931
- * import { throttleTime, state } from "@graphrefly/graphrefly-ts";
932
- *
933
- * throttleTime(state(0), 100);
934
- * ```
935
- *
936
- * @category extra
937
- */
938
- declare const throttleTime: typeof throttle;
939
- /**
940
- * RxJS-named alias for {@link rescue} — replaces upstream `ERROR` with a recovered value.
941
- *
942
- * @param source - Upstream node.
943
- * @param recover - Maps error payload to replacement value.
944
- * @param opts - Optional node options (excluding `describeKind`).
945
- * @returns Recovered stream; behavior matches `rescue`.
946
- *
947
- * @example
948
- * ```ts
949
- * import { catchError, state } from "@graphrefly/graphrefly-ts";
950
- *
951
- * catchError(state(0), () => 0);
952
- * ```
953
- *
954
- * @category extra
955
- */
956
- declare const catchError: typeof rescue;
957
-
958
- export { type MergeMapOptions, type TapObserver, type ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, timeout, valve, window, windowCount, windowTime, withLatestFrom, zip };