@graphrefly/graphrefly 0.43.0 → 0.45.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 (422) hide show
  1. package/README.md +21 -17
  2. package/dist/compat/index.cjs +20 -10
  3. package/dist/compat/index.cjs.map +1 -0
  4. package/dist/compat/index.d.cts +1 -22
  5. package/dist/compat/index.d.ts +1 -22
  6. package/dist/compat/index.js +3 -1
  7. package/dist/compat/index.js.map +1 -0
  8. package/dist/compat/jotai/index.cjs +21 -1
  9. package/dist/compat/jotai/index.cjs.map +1 -0
  10. package/dist/compat/jotai/index.d.cts +1 -2
  11. package/dist/compat/jotai/index.d.ts +1 -2
  12. package/dist/compat/jotai/index.js +3 -1
  13. package/dist/compat/jotai/index.js.map +1 -0
  14. package/dist/compat/nanostores/index.cjs +21 -1
  15. package/dist/compat/nanostores/index.cjs.map +1 -0
  16. package/dist/compat/nanostores/index.d.cts +1 -2
  17. package/dist/compat/nanostores/index.d.ts +1 -2
  18. package/dist/compat/nanostores/index.js +3 -1
  19. package/dist/compat/nanostores/index.js.map +1 -0
  20. package/dist/compat/nestjs/index.cjs +20 -10
  21. package/dist/compat/nestjs/index.cjs.map +1 -0
  22. package/dist/compat/nestjs/index.d.cts +1 -13
  23. package/dist/compat/nestjs/index.d.ts +1 -13
  24. package/dist/compat/nestjs/index.js +3 -1
  25. package/dist/compat/nestjs/index.js.map +1 -0
  26. package/dist/compat/react/index.cjs +21 -1
  27. package/dist/compat/react/index.cjs.map +1 -0
  28. package/dist/compat/react/index.d.cts +1 -2
  29. package/dist/compat/react/index.d.ts +1 -2
  30. package/dist/compat/react/index.js +3 -1
  31. package/dist/compat/react/index.js.map +1 -0
  32. package/dist/compat/solid/index.cjs +21 -1
  33. package/dist/compat/solid/index.cjs.map +1 -0
  34. package/dist/compat/solid/index.d.cts +1 -2
  35. package/dist/compat/solid/index.d.ts +1 -2
  36. package/dist/compat/solid/index.js +3 -1
  37. package/dist/compat/solid/index.js.map +1 -0
  38. package/dist/compat/svelte/index.cjs +21 -1
  39. package/dist/compat/svelte/index.cjs.map +1 -0
  40. package/dist/compat/svelte/index.d.cts +1 -2
  41. package/dist/compat/svelte/index.d.ts +1 -2
  42. package/dist/compat/svelte/index.js +3 -1
  43. package/dist/compat/svelte/index.js.map +1 -0
  44. package/dist/compat/vue/index.cjs +21 -1
  45. package/dist/compat/vue/index.cjs.map +1 -0
  46. package/dist/compat/vue/index.d.cts +1 -3
  47. package/dist/compat/vue/index.d.ts +1 -3
  48. package/dist/compat/vue/index.js +3 -1
  49. package/dist/compat/vue/index.js.map +1 -0
  50. package/dist/compat/zustand/index.cjs +21 -3
  51. package/dist/compat/zustand/index.cjs.map +1 -0
  52. package/dist/compat/zustand/index.d.cts +1 -6
  53. package/dist/compat/zustand/index.d.ts +1 -6
  54. package/dist/compat/zustand/index.js +3 -1
  55. package/dist/compat/zustand/index.js.map +1 -0
  56. package/dist/core/index.cjs +21 -1
  57. package/dist/core/index.cjs.map +1 -0
  58. package/dist/core/index.d.cts +1 -4
  59. package/dist/core/index.d.ts +1 -4
  60. package/dist/core/index.js +3 -1
  61. package/dist/core/index.js.map +1 -0
  62. package/dist/extra/browser.cjs +21 -1
  63. package/dist/extra/browser.cjs.map +1 -0
  64. package/dist/extra/browser.d.cts +1 -4
  65. package/dist/extra/browser.d.ts +1 -4
  66. package/dist/extra/browser.js +3 -1
  67. package/dist/extra/browser.js.map +1 -0
  68. package/dist/extra/index.cjs +20 -19
  69. package/dist/extra/index.cjs.map +1 -0
  70. package/dist/extra/index.d.cts +1 -17
  71. package/dist/extra/index.d.ts +1 -17
  72. package/dist/extra/index.js +3 -1
  73. package/dist/extra/index.js.map +1 -0
  74. package/dist/extra/node.cjs +21 -2
  75. package/dist/extra/node.cjs.map +1 -0
  76. package/dist/extra/node.d.cts +1 -187
  77. package/dist/extra/node.d.ts +1 -187
  78. package/dist/extra/node.js +3 -2
  79. package/dist/extra/node.js.map +1 -0
  80. package/dist/extra/operators.cjs +21 -1
  81. package/dist/extra/operators.cjs.map +1 -0
  82. package/dist/extra/operators.d.cts +1 -950
  83. package/dist/extra/operators.d.ts +1 -950
  84. package/dist/extra/operators.js +3 -1
  85. package/dist/extra/operators.js.map +1 -0
  86. package/dist/extra/reactive.cjs +21 -1
  87. package/dist/extra/reactive.cjs.map +1 -0
  88. package/dist/extra/reactive.d.cts +1 -353
  89. package/dist/extra/reactive.d.ts +1 -353
  90. package/dist/extra/reactive.js +3 -1
  91. package/dist/extra/reactive.js.map +1 -0
  92. package/dist/extra/render/index.cjs +21 -5
  93. package/dist/extra/render/index.cjs.map +1 -0
  94. package/dist/extra/render/index.d.cts +1 -183
  95. package/dist/extra/render/index.d.ts +1 -183
  96. package/dist/extra/render/index.js +3 -1
  97. package/dist/extra/render/index.js.map +1 -0
  98. package/dist/extra/sources.cjs +21 -3
  99. package/dist/extra/sources.cjs.map +1 -0
  100. package/dist/extra/sources.d.cts +1 -584
  101. package/dist/extra/sources.d.ts +1 -584
  102. package/dist/extra/sources.js +3 -1
  103. package/dist/extra/sources.js.map +1 -0
  104. package/dist/extra/storage-browser.cjs +21 -1
  105. package/dist/extra/storage-browser.cjs.map +1 -0
  106. package/dist/extra/storage-browser.d.cts +1 -37
  107. package/dist/extra/storage-browser.d.ts +1 -37
  108. package/dist/extra/storage-browser.js +3 -1
  109. package/dist/extra/storage-browser.js.map +1 -0
  110. package/dist/extra/storage-core.cjs +21 -1
  111. package/dist/extra/storage-core.cjs.map +1 -0
  112. package/dist/extra/storage-core.d.cts +1 -28
  113. package/dist/extra/storage-core.d.ts +1 -28
  114. package/dist/extra/storage-core.js +3 -1
  115. package/dist/extra/storage-core.js.map +1 -0
  116. package/dist/extra/storage-node.cjs +20 -0
  117. package/dist/extra/storage-node.cjs.map +1 -0
  118. package/dist/extra/storage-node.d.cts +1 -2
  119. package/dist/extra/storage-node.d.ts +1 -2
  120. package/dist/extra/storage-node.js +3 -0
  121. package/dist/extra/storage-node.js.map +1 -0
  122. package/dist/extra/storage-tiers-browser.cjs +21 -1
  123. package/dist/extra/storage-tiers-browser.cjs.map +1 -0
  124. package/dist/extra/storage-tiers-browser.d.cts +1 -120
  125. package/dist/extra/storage-tiers-browser.d.ts +1 -120
  126. package/dist/extra/storage-tiers-browser.js +3 -1
  127. package/dist/extra/storage-tiers-browser.js.map +1 -0
  128. package/dist/extra/storage-tiers-node.cjs +21 -1
  129. package/dist/extra/storage-tiers-node.cjs.map +1 -0
  130. package/dist/extra/storage-tiers-node.d.cts +1 -210
  131. package/dist/extra/storage-tiers-node.d.ts +1 -210
  132. package/dist/extra/storage-tiers-node.js +3 -1
  133. package/dist/extra/storage-tiers-node.js.map +1 -0
  134. package/dist/extra/storage-tiers.cjs +21 -1
  135. package/dist/extra/storage-tiers.cjs.map +1 -0
  136. package/dist/extra/storage-tiers.d.cts +1 -412
  137. package/dist/extra/storage-tiers.d.ts +1 -412
  138. package/dist/extra/storage-tiers.js +3 -1
  139. package/dist/extra/storage-tiers.js.map +1 -0
  140. package/dist/extra/storage-wal.cjs +21 -0
  141. package/dist/extra/storage-wal.cjs.map +1 -0
  142. package/dist/extra/storage-wal.d.cts +1 -0
  143. package/dist/extra/storage-wal.d.ts +1 -0
  144. package/dist/extra/storage-wal.js +3 -0
  145. package/dist/extra/storage-wal.js.map +1 -0
  146. package/dist/graph/index.cjs +21 -7
  147. package/dist/graph/index.cjs.map +1 -0
  148. package/dist/graph/index.d.cts +1 -7
  149. package/dist/graph/index.d.ts +1 -7
  150. package/dist/graph/index.js +3 -1
  151. package/dist/graph/index.js.map +1 -0
  152. package/dist/index.cjs +20 -227
  153. package/dist/index.cjs.map +1 -0
  154. package/dist/index.d.cts +45 -96
  155. package/dist/index.d.ts +45 -96
  156. package/dist/index.js +3 -1
  157. package/dist/index.js.map +1 -0
  158. package/dist/patterns/ai/browser.cjs +20 -7
  159. package/dist/patterns/ai/browser.cjs.map +1 -0
  160. package/dist/patterns/ai/browser.d.cts +1 -127
  161. package/dist/patterns/ai/browser.d.ts +1 -127
  162. package/dist/patterns/ai/browser.js +3 -3
  163. package/dist/patterns/ai/browser.js.map +1 -0
  164. package/dist/patterns/ai/index.cjs +20 -73
  165. package/dist/patterns/ai/index.cjs.map +1 -0
  166. package/dist/patterns/ai/index.d.cts +1 -21
  167. package/dist/patterns/ai/index.d.ts +1 -21
  168. package/dist/patterns/ai/index.js +3 -1
  169. package/dist/patterns/ai/index.js.map +1 -0
  170. package/dist/patterns/ai/node.cjs +21 -1
  171. package/dist/patterns/ai/node.cjs.map +1 -0
  172. package/dist/patterns/ai/node.d.cts +1 -59
  173. package/dist/patterns/ai/node.d.ts +1 -59
  174. package/dist/patterns/ai/node.js +3 -1
  175. package/dist/patterns/ai/node.js.map +1 -0
  176. package/dist/patterns/cqrs/index.cjs +21 -3
  177. package/dist/patterns/cqrs/index.cjs.map +1 -0
  178. package/dist/patterns/cqrs/index.d.cts +1 -8
  179. package/dist/patterns/cqrs/index.d.ts +1 -8
  180. package/dist/patterns/cqrs/index.js +3 -1
  181. package/dist/patterns/cqrs/index.js.map +1 -0
  182. package/dist/patterns/demo-shell/index.cjs +21 -5
  183. package/dist/patterns/demo-shell/index.cjs.map +1 -0
  184. package/dist/patterns/demo-shell/index.d.cts +1 -7
  185. package/dist/patterns/demo-shell/index.d.ts +1 -7
  186. package/dist/patterns/demo-shell/index.js +3 -1
  187. package/dist/patterns/demo-shell/index.js.map +1 -0
  188. package/dist/patterns/domain-templates/index.cjs +21 -3
  189. package/dist/patterns/domain-templates/index.cjs.map +1 -0
  190. package/dist/patterns/domain-templates/index.d.cts +1 -6
  191. package/dist/patterns/domain-templates/index.d.ts +1 -6
  192. package/dist/patterns/domain-templates/index.js +3 -1
  193. package/dist/patterns/domain-templates/index.js.map +1 -0
  194. package/dist/patterns/graphspec/index.cjs +21 -86
  195. package/dist/patterns/graphspec/index.cjs.map +1 -0
  196. package/dist/patterns/graphspec/index.d.cts +1 -8
  197. package/dist/patterns/graphspec/index.d.ts +1 -8
  198. package/dist/patterns/graphspec/index.js +3 -1
  199. package/dist/patterns/graphspec/index.js.map +1 -0
  200. package/dist/patterns/harness/index.cjs +21 -48
  201. package/dist/patterns/harness/index.cjs.map +1 -0
  202. package/dist/patterns/harness/index.d.cts +1 -14
  203. package/dist/patterns/harness/index.d.ts +1 -14
  204. package/dist/patterns/harness/index.js +3 -1
  205. package/dist/patterns/harness/index.js.map +1 -0
  206. package/dist/patterns/inspect/index.cjs +21 -3
  207. package/dist/patterns/inspect/index.cjs.map +1 -0
  208. package/dist/patterns/inspect/index.d.cts +1 -9
  209. package/dist/patterns/inspect/index.d.ts +1 -9
  210. package/dist/patterns/inspect/index.js +3 -1
  211. package/dist/patterns/inspect/index.js.map +1 -0
  212. package/dist/patterns/job-queue/index.cjs +21 -3
  213. package/dist/patterns/job-queue/index.cjs.map +1 -0
  214. package/dist/patterns/job-queue/index.d.cts +1 -9
  215. package/dist/patterns/job-queue/index.d.ts +1 -9
  216. package/dist/patterns/job-queue/index.js +3 -1
  217. package/dist/patterns/job-queue/index.js.map +1 -0
  218. package/dist/patterns/memory/index.cjs +21 -3
  219. package/dist/patterns/memory/index.cjs.map +1 -0
  220. package/dist/patterns/memory/index.d.cts +1 -8
  221. package/dist/patterns/memory/index.d.ts +1 -8
  222. package/dist/patterns/memory/index.js +3 -1
  223. package/dist/patterns/memory/index.js.map +1 -0
  224. package/dist/patterns/messaging/index.cjs +21 -3
  225. package/dist/patterns/messaging/index.cjs.map +1 -0
  226. package/dist/patterns/messaging/index.d.cts +1 -7
  227. package/dist/patterns/messaging/index.d.ts +1 -7
  228. package/dist/patterns/messaging/index.js +3 -1
  229. package/dist/patterns/messaging/index.js.map +1 -0
  230. package/dist/patterns/orchestration/index.cjs +21 -3
  231. package/dist/patterns/orchestration/index.cjs.map +1 -0
  232. package/dist/patterns/orchestration/index.d.cts +1 -9
  233. package/dist/patterns/orchestration/index.d.ts +1 -9
  234. package/dist/patterns/orchestration/index.js +3 -1
  235. package/dist/patterns/orchestration/index.js.map +1 -0
  236. package/dist/patterns/process/index.cjs +21 -1
  237. package/dist/patterns/process/index.cjs.map +1 -0
  238. package/dist/patterns/process/index.d.cts +1 -10
  239. package/dist/patterns/process/index.d.ts +1 -10
  240. package/dist/patterns/process/index.js +3 -1
  241. package/dist/patterns/process/index.js.map +1 -0
  242. package/dist/patterns/reactive-layout/index.cjs +21 -4
  243. package/dist/patterns/reactive-layout/index.cjs.map +1 -0
  244. package/dist/patterns/reactive-layout/index.d.cts +1 -7
  245. package/dist/patterns/reactive-layout/index.d.ts +1 -7
  246. package/dist/patterns/reactive-layout/index.js +3 -1
  247. package/dist/patterns/reactive-layout/index.js.map +1 -0
  248. package/dist/patterns/reduction/index.cjs +21 -3
  249. package/dist/patterns/reduction/index.cjs.map +1 -0
  250. package/dist/patterns/reduction/index.d.cts +1 -6
  251. package/dist/patterns/reduction/index.d.ts +1 -6
  252. package/dist/patterns/reduction/index.js +3 -1
  253. package/dist/patterns/reduction/index.js.map +1 -0
  254. package/dist/patterns/surface/index.cjs +21 -13
  255. package/dist/patterns/surface/index.cjs.map +1 -0
  256. package/dist/patterns/surface/index.d.cts +1 -9
  257. package/dist/patterns/surface/index.d.ts +1 -9
  258. package/dist/patterns/surface/index.js +3 -1
  259. package/dist/patterns/surface/index.js.map +1 -0
  260. package/dist/patterns/topology-view/index.cjs +21 -0
  261. package/dist/patterns/topology-view/index.cjs.map +1 -0
  262. package/dist/patterns/topology-view/index.d.cts +1 -0
  263. package/dist/patterns/topology-view/index.d.ts +1 -0
  264. package/dist/patterns/topology-view/index.js +3 -0
  265. package/dist/patterns/topology-view/index.js.map +1 -0
  266. package/dist/testing/index.cjs +21 -0
  267. package/dist/testing/index.cjs.map +1 -0
  268. package/dist/testing/index.d.cts +1 -0
  269. package/dist/testing/index.d.ts +1 -0
  270. package/dist/testing/index.js +3 -0
  271. package/dist/testing/index.js.map +1 -0
  272. package/package.json +608 -584
  273. package/dist/backoff-HPZMEZNF.js +0 -1
  274. package/dist/cascading-CH-_VwG9.d.cts +0 -199
  275. package/dist/cascading-OgKQZjsa.d.ts +0 -199
  276. package/dist/chunk-35JTVPOX.js +0 -1
  277. package/dist/chunk-3G5U5QNE.js +0 -5
  278. package/dist/chunk-3XDYJRYU.js +0 -1
  279. package/dist/chunk-4I45FVQS.js +0 -1
  280. package/dist/chunk-4VVTGLXJ.js +0 -1
  281. package/dist/chunk-4YAN45KM.js +0 -1
  282. package/dist/chunk-5QDBSZBV.js +0 -1
  283. package/dist/chunk-626TESAC.js +0 -3
  284. package/dist/chunk-6HOSXQKF.js +0 -1
  285. package/dist/chunk-6QZNQS5B.js +0 -1
  286. package/dist/chunk-C72GO4IZ.js +0 -1
  287. package/dist/chunk-CE72X3WO.js +0 -1
  288. package/dist/chunk-CK2E7BTU.js +0 -1
  289. package/dist/chunk-CLD3F4R5.js +0 -1
  290. package/dist/chunk-CUNIRONA.js +0 -1
  291. package/dist/chunk-D27JNOLZ.js +0 -1
  292. package/dist/chunk-D5RFJOZ2.js +0 -1
  293. package/dist/chunk-EBW4V6JN.js +0 -1
  294. package/dist/chunk-ESMPEKEV.js +0 -1
  295. package/dist/chunk-F3IGTWCQ.js +0 -1
  296. package/dist/chunk-F672GV32.js +0 -1
  297. package/dist/chunk-FDQGFWLF.js +0 -1
  298. package/dist/chunk-FG4TKHMC.js +0 -1
  299. package/dist/chunk-GPW2V3RE.js +0 -1
  300. package/dist/chunk-I7IGYPSL.js +0 -1
  301. package/dist/chunk-INQD2KRQ.js +0 -1
  302. package/dist/chunk-JNWRYDJN.js +0 -1
  303. package/dist/chunk-JQFH2DV6.js +0 -1
  304. package/dist/chunk-K2Q24F5T.js +0 -1
  305. package/dist/chunk-KGKJCHEK.js +0 -1
  306. package/dist/chunk-KRH66M4O.js +0 -1
  307. package/dist/chunk-KVV66NN2.js +0 -1
  308. package/dist/chunk-L6NSJVJZ.js +0 -1
  309. package/dist/chunk-LYCLF26R.js +0 -1
  310. package/dist/chunk-NNKJUORL.js +0 -1
  311. package/dist/chunk-NON4NLIC.js +0 -45
  312. package/dist/chunk-O2BLLH7M.js +0 -18
  313. package/dist/chunk-OCKEEPRJ.js +0 -2
  314. package/dist/chunk-OFZG3TB3.js +0 -9
  315. package/dist/chunk-OYJKFY7V.js +0 -1
  316. package/dist/chunk-P6C4WHZO.js +0 -5
  317. package/dist/chunk-PT7W5FCD.js +0 -5
  318. package/dist/chunk-Q4U3A3L5.js +0 -1
  319. package/dist/chunk-QE4IGY7I.js +0 -61
  320. package/dist/chunk-QYADASLV.js +0 -1
  321. package/dist/chunk-QYVXF7GW.js +0 -1
  322. package/dist/chunk-S3EEIPO7.js +0 -1
  323. package/dist/chunk-SUWT3ZON.js +0 -1
  324. package/dist/chunk-TPKQW72B.js +0 -1
  325. package/dist/chunk-TSOYJ743.js +0 -1
  326. package/dist/chunk-TZQPPQEQ.js +0 -1
  327. package/dist/chunk-V5A7M7RJ.js +0 -1
  328. package/dist/chunk-VIMF6LGM.js +0 -1
  329. package/dist/chunk-VJLMUKOI.js +0 -1
  330. package/dist/chunk-VN6RDSK2.js +0 -1
  331. package/dist/chunk-VNC3TMVY.js +0 -1
  332. package/dist/chunk-VOPGGIL7.js +0 -1
  333. package/dist/chunk-VQ4A6T2A.js +0 -1
  334. package/dist/chunk-XG62INFA.js +0 -1
  335. package/dist/chunk-Y4NI3X7O.js +0 -84
  336. package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
  337. package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
  338. package/dist/decay-2ZukgQ4o.d.cts +0 -112
  339. package/dist/decay-CdEBmDIs.d.ts +0 -112
  340. package/dist/fallback-CqYVLL6X.d.ts +0 -250
  341. package/dist/fallback-Ctlj2tMY.d.cts +0 -250
  342. package/dist/graph-7VguS7a4.d.ts +0 -1668
  343. package/dist/graph-C4SHb3Ly.d.cts +0 -1668
  344. package/dist/index-0rKFCVFp.d.cts +0 -557
  345. package/dist/index-B-i4_g3k.d.ts +0 -651
  346. package/dist/index-B5iz82A3.d.cts +0 -2655
  347. package/dist/index-BAOD98JD.d.cts +0 -754
  348. package/dist/index-BG0BN3PB.d.ts +0 -44
  349. package/dist/index-BJX94aud.d.cts +0 -34
  350. package/dist/index-BP8a88zx.d.ts +0 -385
  351. package/dist/index-BTQtTb_H.d.cts +0 -301
  352. package/dist/index-BVpm6noz.d.cts +0 -36
  353. package/dist/index-Bc41FuHp.d.cts +0 -291
  354. package/dist/index-BdGtBX-X.d.cts +0 -515
  355. package/dist/index-Bf7eqeSF.d.ts +0 -113
  356. package/dist/index-BiX1Nkgx.d.cts +0 -1844
  357. package/dist/index-BoLv_OfD.d.cts +0 -651
  358. package/dist/index-BojK2fwH.d.cts +0 -299
  359. package/dist/index-BsT7F2et.d.ts +0 -291
  360. package/dist/index-BwLvVVsy.d.cts +0 -189
  361. package/dist/index-C59mYFKp.d.ts +0 -121
  362. package/dist/index-C7O6r5fV.d.ts +0 -37
  363. package/dist/index-C9kSENB4.d.cts +0 -127
  364. package/dist/index-C9pjcz3l.d.cts +0 -209
  365. package/dist/index-CAC_rNzm.d.ts +0 -189
  366. package/dist/index-CCq87F7t.d.ts +0 -127
  367. package/dist/index-CDXc9zKM.d.cts +0 -26
  368. package/dist/index-CJK1JkYy.d.ts +0 -36
  369. package/dist/index-CLon-IWF.d.cts +0 -374
  370. package/dist/index-COD1kVoS.d.cts +0 -468
  371. package/dist/index-CPT7C_f1.d.ts +0 -374
  372. package/dist/index-CQG3D1cp.d.ts +0 -468
  373. package/dist/index-CZQXo5tH.d.ts +0 -209
  374. package/dist/index-CZjOhcBy.d.cts +0 -113
  375. package/dist/index-ChOyVLKm.d.cts +0 -86
  376. package/dist/index-CvrqGfNS.d.ts +0 -34
  377. package/dist/index-D-AEQVLo.d.ts +0 -2655
  378. package/dist/index-D4Y1cMG0.d.ts +0 -26
  379. package/dist/index-DBHK8O6H.d.ts +0 -301
  380. package/dist/index-DBevwHj_.d.ts +0 -515
  381. package/dist/index-DIOoAZUX.d.ts +0 -45
  382. package/dist/index-DSZ3ZCHF.d.ts +0 -3402
  383. package/dist/index-Dgs8zcj7.d.ts +0 -102
  384. package/dist/index-Dh_HJ82K.d.ts +0 -299
  385. package/dist/index-Dhc7a7Xo.d.cts +0 -102
  386. package/dist/index-Dmqp7KjD.d.ts +0 -86
  387. package/dist/index-Dn-wI9g4.d.ts +0 -231
  388. package/dist/index-Du7u1lSf.d.cts +0 -385
  389. package/dist/index-DwigL4lY.d.ts +0 -1844
  390. package/dist/index-DyR7eU5S.d.cts +0 -779
  391. package/dist/index-JZUPJIJy.d.ts +0 -779
  392. package/dist/index-K0_0eR8g.d.ts +0 -557
  393. package/dist/index-O16yXPK4.d.cts +0 -3402
  394. package/dist/index-O7fucFrU.d.cts +0 -121
  395. package/dist/index-RV_yDjOX.d.cts +0 -198
  396. package/dist/index-cm1GNcWE.d.ts +0 -754
  397. package/dist/index-f5IivDUX.d.cts +0 -37
  398. package/dist/index-hHcaFlJX.d.cts +0 -45
  399. package/dist/index-tJoTcnHh.d.cts +0 -231
  400. package/dist/index-wAzD9yVj.d.ts +0 -198
  401. package/dist/index-z96luz5O.d.cts +0 -44
  402. package/dist/meta-BgVAsg9j.d.ts +0 -102
  403. package/dist/meta-vE8bxW1E.d.cts +0 -102
  404. package/dist/node-ClS5yC-B.d.cts +0 -1347
  405. package/dist/node-ClS5yC-B.d.ts +0 -1347
  406. package/dist/observable-BsBzUrcI.d.ts +0 -36
  407. package/dist/observable-DLGPPtb8.d.cts +0 -36
  408. package/dist/pipeline-graph-DPqKDk59.d.cts +0 -137
  409. package/dist/pipeline-graph-loP57TBA.d.ts +0 -137
  410. package/dist/reactive-layout-Dsvob4zD.d.cts +0 -183
  411. package/dist/reactive-layout-v7KPvxoc.d.ts +0 -183
  412. package/dist/reactive-log-B00laMSQ.d.cts +0 -223
  413. package/dist/reactive-log-BezYsbA_.d.ts +0 -223
  414. package/dist/reactive-map-48mnZ-nu.d.cts +0 -296
  415. package/dist/reactive-map-BVVPdvmi.d.ts +0 -296
  416. package/dist/resilience-YIWPK4YC.js +0 -1
  417. package/dist/sugar-DLwvMr3F.d.ts +0 -223
  418. package/dist/sugar-DyVGtczU.d.cts +0 -223
  419. package/dist/topology-tree-BNGvuG82.d.ts +0 -25
  420. package/dist/topology-tree-BSdfSwMi.d.cts +0 -25
  421. package/dist/types-B1jDWVsM.d.cts +0 -442
  422. package/dist/types-DkzUUs0H.d.ts +0 -442
@@ -1,442 +0,0 @@
1
- import { N as Node } from './node-ClS5yC-B.js';
2
- import { NodeInput } from './extra/sources.js';
3
-
4
- /**
5
- * A rate per 1M tokens. Supports threshold-based tiering (Anthropic
6
- * long-context >200K, Gemini >200K) via optional `thresholdTokens` +
7
- * `pricePerMillionAbove`.
8
- *
9
- * `total input tokens` (sum of every input class) is the axis the threshold
10
- * applies to — matches how Anthropic and Gemini measure it.
11
- */
12
- interface TieredRate {
13
- pricePerMillion: number;
14
- thresholdTokens?: number;
15
- pricePerMillionAbove?: number;
16
- }
17
- /** Shorthand: a plain `number` stands for `{pricePerMillion: n}`. */
18
- type Rate = TieredRate | number;
19
- /** USD-per-1M rates per token class. All fields optional. */
20
- interface ModelPricing {
21
- input?: {
22
- regular?: Rate;
23
- cacheRead?: Rate;
24
- cacheWrite5m?: Rate;
25
- cacheWrite1h?: Rate;
26
- cacheWriteOther?: Rate;
27
- audio?: Rate;
28
- image?: Rate;
29
- video?: Rate;
30
- toolUse?: Rate;
31
- extensions?: Record<string, Rate>;
32
- };
33
- output?: {
34
- regular?: Rate;
35
- reasoning?: Rate;
36
- audio?: Rate;
37
- predictionAccepted?: Rate;
38
- predictionRejected?: Rate;
39
- extensions?: Record<string, Rate>;
40
- };
41
- /**
42
- * Per-unit costs for non-token axes. Values are USD per unit; units
43
- * match `TokenUsage.auxiliary` keys (e.g. `webSearchRequests`, `cacheStorageHours`).
44
- */
45
- auxiliary?: Record<string, number>;
46
- /**
47
- * Service-tier multipliers. Applied to the summed per-class price.
48
- * E.g. `{ batch: 0.5, flex: 0.5, priority: 1.25 }`. Default (no tier or
49
- * tier not present in the map): multiplier = 1.
50
- */
51
- tierMultipliers?: Record<string, number>;
52
- /** Currency code (ISO 4217). Defaults to "USD" when constructed via helpers. */
53
- currency: string;
54
- }
55
- /** Result of computing a price from usage + pricing. */
56
- interface PriceBreakdown {
57
- /** Total charge in `currency`. */
58
- total: number;
59
- currency: string;
60
- /**
61
- * Optional per-class subtotals. Keys are dot-separated paths like
62
- * `"input.regular"`, `"output.reasoning"`, `"auxiliary.webSearchRequests"`.
63
- */
64
- breakdown?: Record<string, number>;
65
- }
66
- /** Zero-charge breakdown — returned when no pricing is available for a model. */
67
- declare function zeroPrice(currency?: string): PriceBreakdown;
68
- /**
69
- * Compute price from a usage object + model pricing.
70
- *
71
- * - Tier-threshold math uses `sumInputTokens(usage)` as the axis.
72
- * - Service tier (`opts.tier`) multiplies the final total via `tierMultipliers`.
73
- * - Each token class is priced independently using the matching `Rate` lookup.
74
- * - `breakdown` is populated when `opts.withBreakdown = true` (default false
75
- * to keep hot-path allocations low).
76
- */
77
- declare function computePrice(usage: TokenUsage, pricing: ModelPricing, opts?: {
78
- tier?: string;
79
- withBreakdown?: boolean;
80
- }): PriceBreakdown;
81
- /** Pure function: given usage + call context, produce a price. */
82
- type PricingFn = (usage: TokenUsage, ctx: {
83
- model: string;
84
- provider: string;
85
- tier?: string;
86
- withBreakdown?: boolean;
87
- }) => PriceBreakdown;
88
- /**
89
- * A keyed store of `ModelPricing`. Users populate it at app startup.
90
- * The library ships the factory and zero data.
91
- *
92
- * Keys are `(provider, model)` pairs. Lookup attempts exact match first,
93
- * then longest-prefix match on model (e.g. `"claude-sonnet-4-6"` matches a
94
- * stored `"claude-sonnet-4-6"` entry when looking up
95
- * `"claude-sonnet-4-6-20260401"`).
96
- *
97
- * **Prefix-match footgun:** a registered `"gemini-1"` will also match a
98
- * lookup for `"gemini-1.5-pro"` (since `"gemini-1.5-pro".startsWith("gemini-1")`
99
- * is true). Longest-match tie-breaking mitigates most cases, but when
100
- * registering a short family-prefix alongside versioned descendants, make sure
101
- * the versioned entry is present — otherwise the family prefix wins. Best
102
- * practice: register exact versioned model ids; use short family aliases
103
- * sparingly and only when all version variants share one pricing schedule.
104
- */
105
- interface PricingRegistry {
106
- lookup(provider: string, model: string): ModelPricing | undefined;
107
- register(provider: string, model: string, pricing: ModelPricing): void;
108
- /** Remove a model's entry; returns `true` if it existed. */
109
- remove(provider: string, model: string): boolean;
110
- /** Enumerate all entries (for debugging / dump). */
111
- entries(): IterableIterator<[string, string, ModelPricing]>;
112
- }
113
- /** Create a fresh `PricingRegistry`. Optionally seed with entries. */
114
- declare function createPricingRegistry(initial?: ReadonlyArray<readonly [provider: string, model: string, pricing: ModelPricing]>): PricingRegistry;
115
- /**
116
- * Build a `PricingFn` from a `PricingRegistry`. If no entry matches, returns
117
- * `{ total: 0, currency: "USD" }` (never throws). Callers who need "unknown
118
- * model" failures can compose their own `PricingFn`.
119
- */
120
- declare function registryPricing(registry: PricingRegistry, defaultCurrency?: string): PricingFn;
121
- /** Compose multiple `PricingFn`s — first non-zero wins. Useful for registry layering. */
122
- declare function composePricing(...fns: readonly PricingFn[]): PricingFn;
123
- /**
124
- * Convenience: compute a {@link PriceBreakdown} directly from a
125
- * {@link import("./capabilities.js").ModelCapabilities} object + usage.
126
- *
127
- * When callers look up capabilities themselves (via
128
- * `capabilitiesRegistry.lookup(...)` or `adapter.capabilities?.(model)`),
129
- * this helper skips the pricing-registry round-trip and computes the price
130
- * from `capabilities.pricing` directly.
131
- *
132
- * Returns `zeroPrice()` when `capabilities.pricing` is undefined — never throws.
133
- *
134
- * @param capabilities - Model capabilities object (`capabilities.pricing` may be absent).
135
- * @param usage - Per-call usage to price.
136
- * @param opts - Pass-through to {@link computePrice}.
137
- *
138
- * @example
139
- * ```ts
140
- * const cap = registry.lookup("anthropic", "claude-sonnet-4-6");
141
- * const price = pricingFor(cap, resp.usage, { tier: "batch", withBreakdown: true });
142
- * ```
143
- *
144
- * @category ai
145
- */
146
- declare function pricingFor(capabilities: ModelCapabilities | undefined, usage: TokenUsage, opts?: {
147
- tier?: string;
148
- withBreakdown?: boolean;
149
- }): PriceBreakdown;
150
-
151
- /**
152
- * Pluggable model capabilities (roadmap §9.3d).
153
- *
154
- * The library defines the **shape** of what's knowable about a model
155
- * (context window, rate limits, features, pricing reference) and provides
156
- * a registry factory. Capability **data** is user-supplied — no baked-in
157
- * tables, no drift-prone catalog.
158
- */
159
-
160
- /**
161
- * Rate and size limits for a single model at the user's service tier.
162
- *
163
- * Where providers expose distinct standard / batch / flex limits, register
164
- * each as a separate model id with its own `ModelLimits`.
165
- */
166
- interface ModelLimits {
167
- /** Total tokens the model can process per request (input + output). */
168
- contextWindow?: number;
169
- /** Max input tokens if distinct from contextWindow. */
170
- maxInputTokens?: number;
171
- /** Max generated output tokens (excludes reasoning unless provider folds them). */
172
- maxOutputTokens?: number;
173
- /** Max reasoning/thinking tokens budget. */
174
- maxReasoningTokens?: number;
175
- /** Minimum prompt size for prompt caching to activate. */
176
- minCacheTokens?: number;
177
- /** Requests-per-minute rate limit. */
178
- rpm?: number;
179
- /** Requests-per-day rate limit. */
180
- rpd?: number;
181
- /** Tokens-per-minute rate limit (input + output, per provider convention). */
182
- tpm?: number;
183
- /** Tokens-per-day rate limit. */
184
- tpd?: number;
185
- /** Max concurrent in-flight requests. */
186
- concurrentRequests?: number;
187
- /** Provider-specific limits not covered above. */
188
- extensions?: Record<string, number>;
189
- }
190
- interface ModelFeatures {
191
- toolUse?: boolean;
192
- vision?: boolean;
193
- audioInput?: boolean;
194
- audioOutput?: boolean;
195
- reasoning?: boolean;
196
- streaming?: boolean;
197
- promptCache?: boolean;
198
- batchApi?: boolean;
199
- /** Provider-specific feature flags. */
200
- extensions?: Record<string, boolean>;
201
- }
202
- /** Static facts about a model. Pricing is optional; keep a separate registry if preferred. */
203
- interface ModelCapabilities {
204
- id: string;
205
- provider: string;
206
- pricing?: ModelPricing;
207
- limits?: ModelLimits;
208
- features?: ModelFeatures;
209
- /** Free-form metadata (release date, deprecation flag, provider notes). */
210
- metadata?: Record<string, unknown>;
211
- }
212
- interface CapabilitiesRegistry {
213
- lookup(provider: string, model: string): ModelCapabilities | undefined;
214
- register(cap: ModelCapabilities): void;
215
- remove(provider: string, model: string): boolean;
216
- entries(): IterableIterator<ModelCapabilities>;
217
- /**
218
- * Reactive view of `(provider, model)` → `ModelCapabilities`. Re-emits
219
- * whenever any `register()` / `remove()` touches the underlying store, so
220
- * UIs and gated middleware (capability-aware retry, feature flags) can
221
- * subscribe instead of polling. Prefix fallback mirrors the imperative
222
- * `lookup()`: exact match first, then longest-prefix within provider.
223
- */
224
- lookupNode(provider: string, model: string): Node<ModelCapabilities | undefined>;
225
- /** Reactive view of every registered entry. */
226
- readonly entriesNode: Node<readonly ModelCapabilities[]>;
227
- /** Reactive slice of entries for a single provider. */
228
- byProvider(provider: string): Node<readonly ModelCapabilities[]>;
229
- }
230
- /** Create a fresh `CapabilitiesRegistry`. Optionally seed with entries. */
231
- declare function createCapabilitiesRegistry(initial?: readonly ModelCapabilities[]): CapabilitiesRegistry;
232
-
233
- /**
234
- * Input token classes.
235
- *
236
- * Every provider's native usage object maps into this shape without loss.
237
- * All fields except `regular` are optional — providers that don't expose
238
- * the class simply leave it undefined.
239
- */
240
- interface InputTokens {
241
- /** Uncached regular input tokens (cache miss or never-cached). */
242
- regular: number;
243
- /** Read from prompt cache (all TTLs — providers don't split reads by TTL today). */
244
- cacheRead?: number;
245
- /** Written to cache with 5-min TTL (Anthropic `ephemeral_5m_input_tokens`). */
246
- cacheWrite5m?: number;
247
- /** Written to cache with 1-hour TTL (Anthropic `ephemeral_1h_input_tokens`). */
248
- cacheWrite1h?: number;
249
- /** Written to cache with other/unspecified TTL (Gemini explicit caches). */
250
- cacheWriteOther?: number;
251
- /** Audio input tokens (OpenAI realtime, Gemini audio). */
252
- audio?: number;
253
- /** Image input tokens (Gemini per-modality). */
254
- image?: number;
255
- /** Video input tokens (Gemini per-modality). */
256
- video?: number;
257
- /** Tool-use result tokens fed back to the model (Gemini `toolUsePromptTokenCount`). */
258
- toolUse?: number;
259
- /** Provider-specific classes not covered above. Open-ended by design. */
260
- extensions?: Record<string, number>;
261
- }
262
- /** Output token classes. */
263
- interface OutputTokens {
264
- /** Regular generated output (non-reasoning, non-audio). */
265
- regular: number;
266
- /** Reasoning / thinking tokens (OpenAI o-series, Gemini thoughts, Grok reasoning). */
267
- reasoning?: number;
268
- /** Audio output tokens. */
269
- audio?: number;
270
- /** Predicted-output tokens accepted (OpenAI predictions API). */
271
- predictionAccepted?: number;
272
- /** Predicted-output tokens rejected (still billed at output rate). */
273
- predictionRejected?: number;
274
- extensions?: Record<string, number>;
275
- }
276
- /** Per-call token usage in canonical shape. No pricing, no interpretation. */
277
- interface TokenUsage {
278
- input: InputTokens;
279
- output: OutputTokens;
280
- /**
281
- * Per-call non-token costs (web-search requests, tool invocations, cache
282
- * storage-hours, etc.). Units are domain-specific — pricing functions
283
- * interpret them via `ModelPricing.auxiliary`.
284
- */
285
- auxiliary?: Record<string, number>;
286
- /**
287
- * Raw provider usage object, unmodified. Escape hatch for anything the
288
- * canonical shape doesn't model.
289
- */
290
- raw?: unknown;
291
- }
292
- /** A single chat message in a conversation. */
293
- type ChatMessage = {
294
- readonly role: "system" | "user" | "assistant" | "tool";
295
- readonly content: string;
296
- readonly name?: string;
297
- readonly toolCallId?: string;
298
- readonly toolCalls?: readonly ToolCall[];
299
- readonly metadata?: Record<string, unknown>;
300
- };
301
- /** A tool invocation request from an LLM. */
302
- type ToolCall = {
303
- readonly id: string;
304
- readonly name: string;
305
- readonly arguments: Record<string, unknown>;
306
- };
307
- /** A tool definition for LLM consumption. */
308
- type ToolDefinition = {
309
- readonly name: string;
310
- readonly description: string;
311
- readonly parameters: Record<string, unknown>;
312
- /**
313
- * Handler invoked when the LLM requests this tool.
314
- *
315
- * The optional `opts.signal` fires when the reactive surface that owns
316
- * this invocation is torn down (e.g. the agent's `switchMap` over
317
- * `toolCalls` superseded with a fresh batch, the agent was aborted, or
318
- * the parent graph destroyed). Signal-aware handlers should thread it
319
- * into `fetch(url, {signal})`, child-process kill, DB cancel, etc., so
320
- * in-flight side effects actually stop. Handlers that ignore the
321
- * signal still work — but their work continues to completion regardless
322
- * of supersede.
323
- */
324
- readonly handler: (args: Record<string, unknown>, opts?: {
325
- signal?: AbortSignal;
326
- }) => NodeInput<unknown>;
327
- /**
328
- * V0 version of the backing node at tool-definition-creation time.
329
- * Snapshot — re-create the tool definition to refresh.
330
- */
331
- readonly version?: {
332
- id: string;
333
- version: number;
334
- };
335
- };
336
- /** The response from an LLM invocation. */
337
- interface LLMResponse {
338
- readonly content: string;
339
- readonly toolCalls?: readonly ToolCall[];
340
- /**
341
- * Token usage. Optional — provider adapters should always populate it, but
342
- * test mocks and adapter middlewares that synthesize responses can omit it.
343
- * Downstream consumers that compute cost should default to {@link emptyUsage}.
344
- */
345
- readonly usage?: TokenUsage;
346
- readonly finishReason?: string;
347
- readonly latencyMs?: number;
348
- readonly model?: string;
349
- readonly provider?: string;
350
- /** Service tier the call was served with (standard / batch / flex / priority). */
351
- readonly tier?: string;
352
- readonly metadata?: Record<string, unknown>;
353
- }
354
- /**
355
- * Adapter-facing incremental stream event.
356
- *
357
- * Provider adapters emit these; higher-level surfaces (`streamingPromptNode`,
358
- * `agentLoop`) assemble them into consumer-facing `StreamChunk` with their own
359
- * `source`/`accumulated`/`index` context.
360
- *
361
- * **Shape rationale — why object tagged-union vs. the framework `[TYPE, data]`
362
- * tuple?** `StreamDelta` is an *application-layer event payload* that flows
363
- * inside a single framework `DATA` message, one abstraction level above the
364
- * reactive protocol. The framework's `[Type, Data?]` tuple (DIRTY / DATA /
365
- * RESOLVED / COMPLETE / ERROR) is the protocol message form delivered through
366
- * `subscribe`. Using the protocol form here would force us to invent new
367
- * framework-level symbols (`TOKEN`, `USAGE`, etc.) that leak into user code,
368
- * and TypeScript discriminated-union exhaustiveness works much better with
369
- * objects than tuples. Object-tagged unions match the idiomatic JS/TS
370
- * convention for discriminated events (Redux actions, DOM events).
371
- */
372
- type StreamDelta = {
373
- readonly type: "token";
374
- readonly delta: string;
375
- } | {
376
- readonly type: "tool-call-delta";
377
- readonly delta: {
378
- readonly id?: string;
379
- readonly name?: string;
380
- readonly argumentsDelta?: string;
381
- };
382
- } | {
383
- readonly type: "thinking";
384
- readonly delta: string;
385
- } | {
386
- readonly type: "usage";
387
- readonly usage: TokenUsage;
388
- } | {
389
- readonly type: "finish";
390
- readonly reason: string;
391
- };
392
- /** Options passed to `invoke()` / `stream()`. */
393
- interface LLMInvokeOptions {
394
- model?: string;
395
- temperature?: number;
396
- maxTokens?: number;
397
- /** Budget for reasoning/thinking tokens, if the model supports it. */
398
- maxReasoningTokens?: number;
399
- tools?: readonly ToolDefinition[];
400
- systemPrompt?: string;
401
- /** Hint the adapter to cache the prompt. TTL values depend on provider. */
402
- cacheHint?: {
403
- ttl?: "5m" | "1h" | string;
404
- minTokens?: number;
405
- };
406
- /** Service tier: "standard" | "batch" | "flex" | "priority" | provider-custom. */
407
- tier?: string;
408
- signal?: AbortSignal;
409
- /**
410
- * Provider-specific passthrough — merged into the native request body.
411
- * Escape hatch for features not yet in the canonical options.
412
- */
413
- providerExtras?: Record<string, unknown>;
414
- /**
415
- * Open-ended per-call context threaded to cache / fallback key functions.
416
- * Callers who want to shard caches by tenant, session, feature flag, or
417
- * any other dimension populate this and supply a custom `keyFn` that
418
- * incorporates it. Not sent to providers — stripped from canonical key
419
- * hashing when no custom `keyFn` is supplied. Type is `unknown` to avoid
420
- * prescribing a shape; callers pick their own.
421
- */
422
- keyContext?: unknown;
423
- }
424
- /**
425
- * Provider-agnostic LLM adapter (spec §5.10 compliant).
426
- *
427
- * - `invoke()` returns a `NodeInput<LLMResponse>` — the caller bridges to
428
- * reactive via `fromAny(...)`. Adapter implementations may return a
429
- * Promise (simplest), a Node (reactive), or a plain value (testing).
430
- * - `stream()` returns `AsyncIterable<StreamDelta>` — the terminal delta of
431
- * type `"usage"` carries the final `TokenUsage` for the streamed call.
432
- */
433
- interface LLMAdapter {
434
- readonly provider: string;
435
- readonly model?: string;
436
- invoke(messages: readonly ChatMessage[], opts?: LLMInvokeOptions): NodeInput<LLMResponse>;
437
- stream(messages: readonly ChatMessage[], opts?: LLMInvokeOptions): AsyncIterable<StreamDelta>;
438
- /** Optional capability lookup; typically delegates to a `CapabilitiesRegistry`. */
439
- capabilities?(model?: string): ModelCapabilities | undefined;
440
- }
441
-
442
- export { type ChatMessage as C, type LLMAdapter as L, type ModelCapabilities as M, type PricingFn as P, type Rate as R, type StreamDelta as S, type TokenUsage as T, type LLMInvokeOptions as a, type LLMResponse as b, type ToolCall as c, type ToolDefinition as d, type CapabilitiesRegistry as e, type ModelFeatures as f, type ModelLimits as g, type ModelPricing as h, type PriceBreakdown as i, type PricingRegistry as j, type TieredRate as k, composePricing as l, computePrice as m, createCapabilitiesRegistry as n, createPricingRegistry as o, pricingFor as p, registryPricing as r, zeroPrice as z };