@graphrefly/graphrefly 0.37.0 → 0.39.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 (329) hide show
  1. package/dist/budget-gate-CmmVtasH.d.ts +115 -0
  2. package/dist/budget-gate-DiP_nK0n.d.cts +115 -0
  3. package/dist/{cascading-BsJ4GbnS.d.ts → cascading-BzuxW0_w.d.cts} +2 -2
  4. package/dist/{cascading-B25wxpRa.d.cts → cascading-g2_rhhaM.d.ts} +2 -2
  5. package/dist/chunk-35JTVPOX.js +1 -0
  6. package/dist/chunk-3G5U5QNE.js +5 -0
  7. package/dist/chunk-4I45FVQS.js +1 -0
  8. package/dist/chunk-5LK7XMEV.js +1 -0
  9. package/dist/chunk-5XRI6RM3.js +1 -0
  10. package/dist/chunk-73PBQNST.js +1 -0
  11. package/dist/chunk-7JRF5YEK.js +3 -0
  12. package/dist/{chunk-YVYSO5CW.js → chunk-7NZMZJMW.js} +1 -1
  13. package/dist/chunk-7QFRK3N3.js +84 -0
  14. package/dist/{chunk-K6ZFJ473.js → chunk-7SD73DS6.js} +1 -1
  15. package/dist/{chunk-LOQRPP4Y.js → chunk-A6ZSKGUG.js} +1 -1
  16. package/dist/{chunk-KUVDFOJH.js → chunk-AU7YTQX7.js} +1 -1
  17. package/dist/chunk-C72GO4IZ.js +1 -0
  18. package/dist/{chunk-Q7EUZ6NN.js → chunk-CGDMTXSY.js} +1 -1
  19. package/dist/chunk-D27JNOLZ.js +1 -0
  20. package/dist/chunk-D47YVDR5.js +1 -0
  21. package/dist/chunk-EWF7KCDJ.js +61 -0
  22. package/dist/{chunk-PCD2MU7X.js → chunk-GEAO3TL3.js} +1 -1
  23. package/dist/chunk-GX5LSSRE.js +1 -0
  24. package/dist/{chunk-2C4NESZE.js → chunk-HAWKGIXM.js} +1 -1
  25. package/dist/chunk-HX3EGQ5Z.js +1 -0
  26. package/dist/{chunk-MQZWA3DF.js → chunk-IA7DUNGB.js} +1 -1
  27. package/dist/{chunk-MYFR67PY.js → chunk-INH6FS2G.js} +2 -2
  28. package/dist/chunk-INHC33EH.js +1 -0
  29. package/dist/chunk-IUB4NYI2.js +1 -0
  30. package/dist/{chunk-TFK4P4CX.js → chunk-JNMC2WJ6.js} +1 -1
  31. package/dist/{chunk-TLS7M7H4.js → chunk-KD4NHLMU.js} +1 -1
  32. package/dist/chunk-L6NSJVJZ.js +1 -0
  33. package/dist/chunk-L7WY6TZS.js +1 -0
  34. package/dist/chunk-LQNOXGET.js +1 -0
  35. package/dist/chunk-MC4UYY2X.js +1 -0
  36. package/dist/{chunk-U3COB5WU.js → chunk-N7UIBZCW.js} +1 -1
  37. package/dist/chunk-NQI2C36M.js +1 -0
  38. package/dist/chunk-R75BMDLA.js +1 -0
  39. package/dist/chunk-RF3QZP6D.js +1 -0
  40. package/dist/{chunk-MC5LZG3U.js → chunk-S2U57TFC.js} +1 -1
  41. package/dist/{chunk-QP5TH523.js → chunk-SC7BQDNP.js} +1 -1
  42. package/dist/{chunk-5CPPC75H.js → chunk-TFPZLQ5H.js} +1 -1
  43. package/dist/chunk-VJJLIEAL.js +1 -0
  44. package/dist/chunk-WHIZM6JV.js +1 -0
  45. package/dist/chunk-XEUANKBO.js +43 -0
  46. package/dist/chunk-XQ55HO5N.js +1 -0
  47. package/dist/chunk-ZJ7SM3G2.js +1 -0
  48. package/dist/{chunk-T4U24DXX.js → chunk-ZOX3LBRV.js} +1 -1
  49. package/dist/compat/index.cjs +9 -13
  50. package/dist/compat/index.d.cts +16 -16
  51. package/dist/compat/index.d.ts +16 -16
  52. package/dist/compat/index.js +1 -1
  53. package/dist/compat/jotai/index.d.cts +2 -2
  54. package/dist/compat/jotai/index.d.ts +2 -2
  55. package/dist/compat/nanostores/index.d.cts +2 -2
  56. package/dist/compat/nanostores/index.d.ts +2 -2
  57. package/dist/compat/nestjs/index.cjs +8 -12
  58. package/dist/compat/nestjs/index.d.cts +8 -8
  59. package/dist/compat/nestjs/index.d.ts +8 -8
  60. package/dist/compat/nestjs/index.js +1 -1
  61. package/dist/compat/react/index.d.cts +2 -2
  62. package/dist/compat/react/index.d.ts +2 -2
  63. package/dist/compat/solid/index.d.cts +2 -2
  64. package/dist/compat/solid/index.d.ts +2 -2
  65. package/dist/compat/svelte/index.d.cts +2 -2
  66. package/dist/compat/svelte/index.d.ts +2 -2
  67. package/dist/compat/vue/index.d.cts +2 -2
  68. package/dist/compat/vue/index.d.ts +2 -2
  69. package/dist/compat/zustand/index.cjs +3 -7
  70. package/dist/compat/zustand/index.d.cts +4 -4
  71. package/dist/compat/zustand/index.d.ts +4 -4
  72. package/dist/compat/zustand/index.js +1 -1
  73. package/dist/{composite-_XckYx2e.d.cts → composite-CKd0e2vz.d.cts} +10 -3
  74. package/dist/{composite-CT_mApQD.d.ts → composite-DGatA-JK.d.ts} +10 -3
  75. package/dist/core/index.cjs +1 -1
  76. package/dist/core/index.d.cts +4 -4
  77. package/dist/core/index.d.ts +4 -4
  78. package/dist/core/index.js +1 -1
  79. package/dist/extra/browser.d.cts +1 -1
  80. package/dist/extra/browser.d.ts +1 -1
  81. package/dist/extra/index.cjs +17 -21
  82. package/dist/extra/index.d.cts +11 -9
  83. package/dist/extra/index.d.ts +11 -9
  84. package/dist/extra/index.js +1 -1
  85. package/dist/extra/node.cjs +2 -2
  86. package/dist/extra/node.d.cts +108 -2
  87. package/dist/extra/node.d.ts +108 -2
  88. package/dist/extra/node.js +2 -2
  89. package/dist/extra/operators.cjs +1 -1
  90. package/dist/extra/operators.d.cts +1 -1
  91. package/dist/extra/operators.d.ts +1 -1
  92. package/dist/extra/operators.js +1 -1
  93. package/dist/extra/reactive.cjs +1 -1
  94. package/dist/extra/reactive.d.cts +3 -3
  95. package/dist/extra/reactive.d.ts +3 -3
  96. package/dist/extra/reactive.js +1 -1
  97. package/dist/extra/render/index.cjs +5 -0
  98. package/dist/extra/render/index.d.cts +183 -0
  99. package/dist/extra/render/index.d.ts +183 -0
  100. package/dist/extra/render/index.js +1 -0
  101. package/dist/extra/sources.cjs +1 -1
  102. package/dist/extra/sources.d.cts +1 -1
  103. package/dist/extra/sources.d.ts +1 -1
  104. package/dist/extra/sources.js +1 -1
  105. package/dist/extra/storage-browser.d.cts +1 -1
  106. package/dist/extra/storage-browser.d.ts +1 -1
  107. package/dist/extra/storage-tiers-browser.d.cts +76 -5
  108. package/dist/extra/storage-tiers-browser.d.ts +76 -5
  109. package/dist/extra/storage-tiers-node.d.cts +137 -13
  110. package/dist/extra/storage-tiers-node.d.ts +137 -13
  111. package/dist/extra/storage-tiers.d.cts +151 -23
  112. package/dist/extra/storage-tiers.d.ts +151 -23
  113. package/dist/{fallback-axI2cXwt.d.cts → fallback-8JYU8tlT.d.cts} +1 -1
  114. package/dist/{fallback-DuEXfA4F.d.ts → fallback-CMZl39L5.d.ts} +1 -1
  115. package/dist/graph/index.cjs +7 -7
  116. package/dist/graph/index.d.cts +5 -5
  117. package/dist/graph/index.d.ts +5 -5
  118. package/dist/graph/index.js +1 -1
  119. package/dist/{graph-YQXDndFy.d.ts → graph-30XSgtVX.d.ts} +287 -104
  120. package/dist/{graph-CaNXUc3c.d.cts → graph-BUwMAxJI.d.cts} +287 -104
  121. package/dist/{index-CIcu6fIR.d.ts → index-2n8Eai6M.d.ts} +1 -1
  122. package/dist/{index-BmLkcDlj.d.ts → index-89FczVZ_.d.ts} +47 -71
  123. package/dist/{index-Ci358GSC.d.cts → index-8R1vzNOx.d.cts} +9 -9
  124. package/dist/{index-CDvC1m5p.d.ts → index-B2RUoIUz.d.ts} +1 -1
  125. package/dist/{index-DuhOdNyg.d.ts → index-B41Asm7D.d.ts} +10 -8
  126. package/dist/{index-CKcnuQ2c.d.ts → index-B9fmw5n2.d.ts} +4 -6
  127. package/dist/{index-0qOD-421.d.ts → index-BAlaVimV.d.ts} +9 -9
  128. package/dist/{index-Ae6L8liv.d.ts → index-BC9VybQs.d.ts} +41 -48
  129. package/dist/{index-CUTHDZ7Q.d.ts → index-BEHmxORq.d.ts} +11 -11
  130. package/dist/{index-C_qi0WlF.d.cts → index-BJ26eEjs.d.cts} +26 -19
  131. package/dist/{index-BiomL7AW.d.ts → index-BJSZxSFX.d.ts} +1 -1
  132. package/dist/{index-DCAuN9u5.d.cts → index-BKMdnYnk.d.ts} +75 -39
  133. package/dist/{index-DfAo9WKr.d.ts → index-BM9szD8n.d.cts} +14 -6
  134. package/dist/{index-CajEOoAN.d.ts → index-BUPVld1w.d.ts} +2 -2
  135. package/dist/{index-C-pFD_FV.d.ts → index-BXd6OMEy.d.ts} +3 -3
  136. package/dist/index-BhUaMYm_.d.ts +113 -0
  137. package/dist/{index-DAKm44My.d.cts → index-BndG0cpK.d.cts} +3 -3
  138. package/dist/{index-Bpzw8hx3.d.ts → index-Br3WnqEn.d.ts} +84 -9
  139. package/dist/{index-D6tRNEKz.d.cts → index-BskfDoZ_.d.ts} +14 -6
  140. package/dist/{index-9mbs_PIG.d.ts → index-C19qqa38.d.ts} +4 -4
  141. package/dist/{index-fHKHdAso.d.ts → index-C7VV_qOs.d.ts} +4 -4
  142. package/dist/{index-CLPQyYY5.d.cts → index-CIRG8Hxp.d.cts} +11 -11
  143. package/dist/{index-B3D_z0Z6.d.cts → index-CL7oilfm.d.cts} +1 -1
  144. package/dist/{index-BOfHwQc1.d.ts → index-CPhBvRJU.d.ts} +1 -1
  145. package/dist/{index-B9qJmmv3.d.cts → index-CWHtYmSh.d.cts} +1 -1
  146. package/dist/{index-D_d1erkR.d.ts → index-Cey6VTnX.d.ts} +8 -5
  147. package/dist/{resilience-BWP2c7Af.d.cts → index-CmqiJZKM.d.ts} +141 -23
  148. package/dist/{index-JYtN9uqM.d.ts → index-CoM4rzyB.d.ts} +1 -1
  149. package/dist/{index-DTYIRT_v.d.cts → index-CpLpJb6A.d.cts} +8 -5
  150. package/dist/{index-BjWZARLy.d.ts → index-Ctb7_2sG.d.ts} +1 -1
  151. package/dist/index-CusEP3Sv.d.ts +210 -0
  152. package/dist/{resilience-Bys63Cpd.d.ts → index-CwP_KAMS.d.cts} +141 -23
  153. package/dist/{index-BFuVcqL8.d.cts → index-D3ayz3hy.d.cts} +1 -1
  154. package/dist/{index-CrpjECS6.d.cts → index-DCbE8fFM.d.cts} +3 -3
  155. package/dist/{index-D_DThl_J.d.cts → index-DIHcMLr6.d.cts} +1 -1
  156. package/dist/index-DINuaZlJ.d.cts +210 -0
  157. package/dist/{index-9xhIaM-w.d.cts → index-DOBLxOti.d.cts} +1 -1
  158. package/dist/index-DQUVq1_d.d.ts +374 -0
  159. package/dist/{index-B1IcU--K.d.cts → index-DTtBpuQy.d.cts} +4 -6
  160. package/dist/{index-D_QQ_dTD.d.cts → index-DYTBbF8T.d.cts} +1 -1
  161. package/dist/{index-DqtXA3yX.d.cts → index-DlgHqQxW.d.cts} +84 -9
  162. package/dist/{index-D1E1tqHT.d.ts → index-DlrWu9Hs.d.cts} +75 -39
  163. package/dist/{index-DcWbx58m.d.cts → index-DoYc8BWK.d.cts} +41 -48
  164. package/dist/{index-D0ZxFXYl.d.ts → index-DszPlZzK.d.ts} +3 -3
  165. package/dist/{index-BECJ8M0T.d.cts → index-DyM4tFAe.d.cts} +10 -8
  166. package/dist/{index-D11pGlaI.d.cts → index-FVoPvhAu.d.cts} +4 -4
  167. package/dist/{index-BwtIbzSV.d.cts → index-H_I66pav.d.cts} +2 -2
  168. package/dist/{index-e1m3ZHgc.d.cts → index-IwFqHxCs.d.cts} +2 -2
  169. package/dist/index-K-vl_c6A.d.cts +113 -0
  170. package/dist/{index-C4N-dg5U.d.cts → index-KlZ_ZUip.d.cts} +2 -2
  171. package/dist/index-L8XI8Zql.d.cts +374 -0
  172. package/dist/{index-D8IyqHvT.d.cts → index-MxYuWOrf.d.cts} +6 -4
  173. package/dist/{index-CpZKtdMw.d.cts → index-PgwvGWa1.d.cts} +1 -1
  174. package/dist/{index-B46GWgk3.d.ts → index-PlJ3MraE.d.ts} +1 -1
  175. package/dist/{index-DPqR3wdW.d.ts → index-PqbnoScQ.d.ts} +3 -3
  176. package/dist/{index-CU3z8Cel.d.cts → index-PsVHpPwP.d.cts} +3 -3
  177. package/dist/{index-C0tga1_x.d.ts → index-WyFKER-c.d.ts} +2 -2
  178. package/dist/{index-B5UR87KG.d.ts → index-eaQuGJnv.d.ts} +6 -4
  179. package/dist/{index-CzIWlnPp.d.ts → index-iTX5IqSP.d.ts} +140 -9
  180. package/dist/{index-CRycrNfn.d.ts → index-jKLph6cu.d.ts} +2 -2
  181. package/dist/{index-BhLA9feT.d.ts → index-jr6PuSBt.d.ts} +26 -19
  182. package/dist/{index-4IwO4mH2.d.cts → index-mNwgxC21.d.cts} +140 -9
  183. package/dist/{index-CkN8CZlT.d.cts → index-pVDQcbar.d.cts} +47 -71
  184. package/dist/{index-D6pwWiOc.d.cts → index-xZYcDqFH.d.cts} +4 -4
  185. package/dist/{index-8OxXae3g.d.ts → index-yLt-aPMp.d.ts} +1 -1
  186. package/dist/{index-CqSJ25A9.d.cts → index-z8WFPVI8.d.cts} +1 -1
  187. package/dist/index.cjs +64 -60
  188. package/dist/index.d.cts +48 -47
  189. package/dist/index.d.ts +48 -47
  190. package/dist/index.js +1 -1
  191. package/dist/meta-Ct9nqQS5.d.cts +102 -0
  192. package/dist/meta-D8OyedKp.d.ts +102 -0
  193. package/dist/{node-fSc-hCv8.d.cts → node-BYInONRr.d.cts} +3 -3
  194. package/dist/{node-fSc-hCv8.d.ts → node-BYInONRr.d.ts} +3 -3
  195. package/dist/{observable-Cqty11jG.d.cts → observable-DMIlYJV1.d.cts} +1 -1
  196. package/dist/{observable-EAV_rNfM.d.ts → observable-DO8DDEzv.d.ts} +1 -1
  197. package/dist/patterns/ai/browser.cjs +5 -5
  198. package/dist/patterns/ai/browser.d.cts +4 -4
  199. package/dist/patterns/ai/browser.d.ts +4 -4
  200. package/dist/patterns/ai/browser.js +1 -1
  201. package/dist/patterns/ai/index.cjs +17 -21
  202. package/dist/patterns/ai/index.d.cts +17 -17
  203. package/dist/patterns/ai/index.d.ts +17 -17
  204. package/dist/patterns/ai/index.js +1 -1
  205. package/dist/patterns/ai/node.cjs +1 -1
  206. package/dist/patterns/ai/node.d.cts +4 -4
  207. package/dist/patterns/ai/node.d.ts +4 -4
  208. package/dist/patterns/ai/node.js +1 -1
  209. package/dist/patterns/audit/index.cjs +3 -7
  210. package/dist/patterns/audit/index.d.cts +6 -6
  211. package/dist/patterns/audit/index.d.ts +6 -6
  212. package/dist/patterns/audit/index.js +1 -1
  213. package/dist/patterns/cqrs/index.cjs +3 -7
  214. package/dist/patterns/cqrs/index.d.cts +6 -6
  215. package/dist/patterns/cqrs/index.d.ts +6 -6
  216. package/dist/patterns/cqrs/index.js +1 -1
  217. package/dist/patterns/demo-shell/index.cjs +5 -8
  218. package/dist/patterns/demo-shell/index.d.cts +5 -5
  219. package/dist/patterns/demo-shell/index.d.ts +5 -5
  220. package/dist/patterns/demo-shell/index.js +1 -1
  221. package/dist/patterns/domain-templates/index.cjs +3 -7
  222. package/dist/patterns/domain-templates/index.d.cts +4 -4
  223. package/dist/patterns/domain-templates/index.d.ts +4 -4
  224. package/dist/patterns/domain-templates/index.js +1 -1
  225. package/dist/patterns/graphspec/index.cjs +38 -38
  226. package/dist/patterns/graphspec/index.d.cts +5 -5
  227. package/dist/patterns/graphspec/index.d.ts +5 -5
  228. package/dist/patterns/graphspec/index.js +1 -1
  229. package/dist/patterns/guarded-execution/index.cjs +3 -7
  230. package/dist/patterns/guarded-execution/index.d.cts +7 -7
  231. package/dist/patterns/guarded-execution/index.d.ts +7 -7
  232. package/dist/patterns/guarded-execution/index.js +1 -1
  233. package/dist/patterns/harness/index.cjs +8 -12
  234. package/dist/patterns/harness/index.d.cts +12 -12
  235. package/dist/patterns/harness/index.d.ts +12 -12
  236. package/dist/patterns/harness/index.js +1 -1
  237. package/dist/patterns/job-queue/index.cjs +3 -7
  238. package/dist/patterns/job-queue/index.d.cts +6 -6
  239. package/dist/patterns/job-queue/index.d.ts +6 -6
  240. package/dist/patterns/job-queue/index.js +1 -1
  241. package/dist/patterns/lens/index.cjs +3 -7
  242. package/dist/patterns/lens/index.d.cts +6 -6
  243. package/dist/patterns/lens/index.d.ts +6 -6
  244. package/dist/patterns/lens/index.js +1 -1
  245. package/dist/patterns/memory/index.cjs +3 -7
  246. package/dist/patterns/memory/index.d.cts +7 -5
  247. package/dist/patterns/memory/index.d.ts +7 -5
  248. package/dist/patterns/memory/index.js +1 -1
  249. package/dist/patterns/messaging/index.cjs +3 -7
  250. package/dist/patterns/messaging/index.d.cts +5 -5
  251. package/dist/patterns/messaging/index.d.ts +5 -5
  252. package/dist/patterns/messaging/index.js +1 -1
  253. package/dist/patterns/orchestration/index.cjs +3 -7
  254. package/dist/patterns/orchestration/index.d.cts +8 -8
  255. package/dist/patterns/orchestration/index.d.ts +8 -8
  256. package/dist/patterns/orchestration/index.js +1 -1
  257. package/dist/patterns/process/index.cjs +1 -1
  258. package/dist/patterns/process/index.d.cts +7 -7
  259. package/dist/patterns/process/index.d.ts +7 -7
  260. package/dist/patterns/process/index.js +1 -1
  261. package/dist/patterns/reactive-layout/index.cjs +4 -8
  262. package/dist/patterns/reactive-layout/index.d.cts +5 -5
  263. package/dist/patterns/reactive-layout/index.d.ts +5 -5
  264. package/dist/patterns/reactive-layout/index.js +1 -1
  265. package/dist/patterns/reduction/index.cjs +3 -7
  266. package/dist/patterns/reduction/index.d.cts +4 -4
  267. package/dist/patterns/reduction/index.d.ts +4 -4
  268. package/dist/patterns/reduction/index.js +1 -1
  269. package/dist/patterns/refine-loop/index.cjs +5 -9
  270. package/dist/patterns/refine-loop/index.d.cts +6 -6
  271. package/dist/patterns/refine-loop/index.d.ts +6 -6
  272. package/dist/patterns/refine-loop/index.js +1 -1
  273. package/dist/patterns/resilient-pipeline/index.cjs +1 -1
  274. package/dist/patterns/resilient-pipeline/index.d.cts +4 -8
  275. package/dist/patterns/resilient-pipeline/index.d.ts +4 -8
  276. package/dist/patterns/resilient-pipeline/index.js +1 -1
  277. package/dist/patterns/surface/index.cjs +13 -17
  278. package/dist/patterns/surface/index.d.cts +6 -6
  279. package/dist/patterns/surface/index.d.ts +6 -6
  280. package/dist/patterns/surface/index.js +1 -1
  281. package/dist/{pipeline-graph-BrrYGjuZ.d.cts → pipeline-graph-BQPr2Lqs.d.cts} +34 -17
  282. package/dist/{pipeline-graph-DX2Twdj-.d.ts → pipeline-graph-D8vKcO_p.d.ts} +34 -17
  283. package/dist/{reactive-layout-DrGjuwyC.d.cts → reactive-layout-8CSc0tiA.d.cts} +2 -2
  284. package/dist/{reactive-layout-BDdngW56.d.ts → reactive-layout-DkTXxtSy.d.ts} +2 -2
  285. package/dist/{reactive-log-jirQsxMY.d.ts → reactive-log-BlAsPLl2.d.ts} +30 -3
  286. package/dist/{reactive-log-ScpWyqny.d.cts → reactive-log-_zeEnB9H.d.cts} +30 -3
  287. package/dist/{reactive-map-DmgeADH8.d.cts → reactive-map-B2qfD3hb.d.cts} +1 -1
  288. package/dist/{reactive-map-CHyeCf4D.d.ts → reactive-map-jFIsE6Kt.d.ts} +1 -1
  289. package/dist/resilience-HTF2LBRS.js +1 -0
  290. package/dist/{sugar-D13E2M_z.d.ts → sugar-BhfjgetH.d.ts} +1 -1
  291. package/dist/{sugar-DgaGJcI6.d.cts → sugar-DzePN5-g.d.cts} +1 -1
  292. package/dist/{topology-tree-BkhmMg2a.d.cts → topology-tree-B5Ngw3j0.d.cts} +1 -1
  293. package/dist/{topology-tree-BI665P0L.d.ts → topology-tree-BtvbgMXJ.d.ts} +1 -1
  294. package/dist/{types-BMSGPlpO.d.cts → types-1Dhoi7HM.d.cts} +1 -1
  295. package/dist/{types-CidcBDuk.d.ts → types-39jk0kaV.d.ts} +1 -1
  296. package/package.json +11 -1
  297. package/dist/chunk-4EATTNAE.js +0 -1
  298. package/dist/chunk-533RQFF6.js +0 -1
  299. package/dist/chunk-6SVKZ7VI.js +0 -1
  300. package/dist/chunk-A5HZZYRK.js +0 -1
  301. package/dist/chunk-B4L5X2QO.js +0 -7
  302. package/dist/chunk-C5CBVOCB.js +0 -1
  303. package/dist/chunk-CZIQ6JCE.js +0 -1
  304. package/dist/chunk-FJ6IEMOS.js +0 -1
  305. package/dist/chunk-FMI4CWFL.js +0 -1
  306. package/dist/chunk-G6Q3DUMJ.js +0 -1
  307. package/dist/chunk-GDDPCDLG.js +0 -1
  308. package/dist/chunk-GFOT6UBB.js +0 -1
  309. package/dist/chunk-JJTF75VS.js +0 -1
  310. package/dist/chunk-K2WYIVHM.js +0 -1
  311. package/dist/chunk-KTWBUJO5.js +0 -61
  312. package/dist/chunk-M27MVZCP.js +0 -1
  313. package/dist/chunk-NKKUUKPD.js +0 -43
  314. package/dist/chunk-O32GJOUJ.js +0 -1
  315. package/dist/chunk-QKBCTKH7.js +0 -1
  316. package/dist/chunk-QWVQIL3T.js +0 -1
  317. package/dist/chunk-UODQF4EY.js +0 -1
  318. package/dist/chunk-WGST56ZH.js +0 -80
  319. package/dist/chunk-WSLN4JFO.js +0 -1
  320. package/dist/chunk-XIJKEXWR.js +0 -1
  321. package/dist/imperative-audit-ahAE65a9.d.cts +0 -28
  322. package/dist/imperative-audit-ahAE65a9.d.ts +0 -28
  323. package/dist/index-BCq12BqB.d.ts +0 -139
  324. package/dist/index-BokynmA4.d.cts +0 -186
  325. package/dist/index-DXz9uwcs.d.ts +0 -186
  326. package/dist/index-DbWwMWiB.d.cts +0 -139
  327. package/dist/meta-BGO6C7K9.d.cts +0 -41
  328. package/dist/meta-CC6EPdpK.d.ts +0 -41
  329. package/dist/resilience-OBU472D2.js +0 -1
@@ -1,8 +1,8 @@
1
- import { R as ReactiveLogBundle } from './reactive-log-ScpWyqny.cjs';
1
+ import { B as BaseAuditRecord } from './index-DINuaZlJ.cjs';
2
+ import { a as ReactiveLogBundle } from './reactive-log-_zeEnB9H.cjs';
2
3
  import { NodeInput } from './extra/sources.cjs';
3
4
  import { AppendLogStorageTier } from './extra/storage-tiers.cjs';
4
- import { B as BaseAuditRecord } from './imperative-audit-ahAE65a9.cjs';
5
- import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-BECJ8M0T.cjs';
5
+ import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-DyM4tFAe.cjs';
6
6
 
7
7
  /**
8
8
  * Process Manager pattern (Phase 7 — roadmap §4.6, Audit 3 — locked 2026-04-24).
@@ -35,14 +35,21 @@ import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-BECJ8
35
35
  /**
36
36
  * Discriminated union returned by each step handler.
37
37
  *
38
- * - `"continue"` — update state, optionally emit side-effect events and
39
- * schedule a future synthetic event.
38
+ * - `"success"` — step ran cleanly; update state, optionally emit
39
+ * side-effect events and schedule a future synthetic event. The process
40
+ * instance stays `"running"`.
40
41
  * - `"terminate"` — workflow complete; instance moves to `"terminated"`.
41
- * - `"fail"` triggers compensation; instance moves to `"compensated"` /
42
- * `"failed"`.
42
+ * Process-specific extension to the canonical outcome enum.
43
+ * - `"failure"` — triggers compensation; instance moves to `"compensated"` /
44
+ * `"errored"`.
45
+ *
46
+ * Field name is `outcome` (matching `cqrs.DispatchRecord.outcome` and the
47
+ * canonical Tier 1.6.2 / 2.3 enum). `"success"` and `"failure"` are the
48
+ * canonical values; `"terminate"` is the process-specific extension for
49
+ * "early-return success".
43
50
  */
44
51
  type ProcessStepResult<TState> = {
45
- kind: "continue";
52
+ outcome: "success";
46
53
  state: TState;
47
54
  emit?: readonly {
48
55
  type: string;
@@ -50,7 +57,7 @@ type ProcessStepResult<TState> = {
50
57
  }[];
51
58
  schedule?: ProcessSchedule;
52
59
  } | {
53
- kind: "terminate";
60
+ outcome: "terminate";
54
61
  state: TState;
55
62
  emit?: readonly {
56
63
  type: string;
@@ -58,7 +65,7 @@ type ProcessStepResult<TState> = {
58
65
  }[];
59
66
  reason?: string;
60
67
  } | {
61
- kind: "fail";
68
+ outcome: "failure";
62
69
  error: unknown;
63
70
  };
64
71
  /**
@@ -79,19 +86,19 @@ type ProcessSchedule = {
79
86
  */
80
87
  type ProcessStep<TState, EM extends CqrsEventMap, K extends keyof EM & string> = (state: TState, event: CqrsEvent<EM[K]>) => NodeInput<ProcessStepResult<TState>>;
81
88
  /**
82
- * Compensation handler. Runs when a step returns `kind: "fail"`, throws, or
89
+ * Compensation handler. Runs when a step returns `outcome: "failure"`, throws, or
83
90
  * when `cancel(correlationId)` is called on a running instance.
84
91
  *
85
92
  * Should undo any side effects performed by prior steps (refund, cancel
86
93
  * reservation, etc.). Errors thrown inside compensate are swallowed and
87
- * recorded in the audit log with `status: "failed"` to prevent cascading
94
+ * recorded in the audit log with `status: "errored"` to prevent cascading
88
95
  * failure loops.
89
96
  */
90
97
  type ProcessCompensate<TState> = (state: TState, error: unknown) => NodeInput<void>;
91
98
  /**
92
99
  * Audit record for a single process instance state transition.
93
100
  *
94
- * Every status change (start → running → terminated / failed / compensated)
101
+ * Every status change (start → running → terminated / errored / compensated)
95
102
  * appends one record. `correlationId` is the stable process key.
96
103
  *
97
104
  * Extends {@link BaseAuditRecord} so records carry `t_ns` / `seq` /
@@ -103,7 +110,7 @@ interface ProcessInstance<TState> extends BaseAuditRecord {
103
110
  /** Most-recent instance state at this transition. */
104
111
  readonly state: TState;
105
112
  /** Current lifecycle status after this transition. */
106
- readonly status: "running" | "terminated" | "failed" | "compensated";
113
+ readonly status: "running" | "terminated" | "errored" | "compensated";
107
114
  /** Wall-clock nanoseconds when `start()` was called. */
108
115
  readonly startedAt: number;
109
116
  /** Wall-clock nanoseconds of this transition. */
@@ -137,13 +144,13 @@ interface ProcessManagerOpts<TState, EM extends CqrsEventMap> {
137
144
  [K in keyof EM & string]?: ProcessStep<TState, EM, K>;
138
145
  };
139
146
  /**
140
- * Optional compensation handler. Runs on step `kind: "fail"` / step throw
147
+ * Optional compensation handler. Runs on step `outcome: "failure"` / step throw
141
148
  * and on explicit `cancel()`. If omitted, instances fail silently with
142
- * status `"failed"` instead of `"compensated"`.
149
+ * status `"errored"` instead of `"compensated"`.
143
150
  */
144
151
  readonly compensate?: ProcessCompensate<TState>;
145
152
  /**
146
- * Optional predicate called after each `"continue"` step. When it returns
153
+ * Optional predicate called after each `"success"` step. When it returns
147
154
  * `true`, the instance is moved to `"terminated"` immediately without
148
155
  * waiting for a `"terminate"` step result.
149
156
  */
@@ -245,10 +252,10 @@ interface ProcessManagerResult<TState> {
245
252
  * watching: ["orderPlaced", "paymentReceived"],
246
253
  * steps: {
247
254
  * orderPlaced(state, event) {
248
- * return { kind: "continue", state: { ...state, orderId: event.payload.orderId } };
255
+ * return { outcome: "success", state: { ...state, orderId: event.payload.orderId } };
249
256
  * },
250
257
  * paymentReceived(state, event) {
251
- * return { kind: "terminate", state: { ...state, total: event.payload.amount } };
258
+ * return { outcome: "terminate", state: { ...state, total: event.payload.amount } };
252
259
  * },
253
260
  * },
254
261
  * compensate(state, _error) {
@@ -1,5 +1,5 @@
1
1
  import { Ref, WatchSource } from 'vue';
2
- import { a as Node } from './node-fSc-hCv8.js';
2
+ import { N as Node } from './node-BYInONRr.js';
3
3
 
4
4
  /**
5
5
  * Subscribe to a read-only `Node<T>` as a Vue `Ref<T>`. Auto-unsubscribes on scope disposal.
@@ -1,35 +1,37 @@
1
- import { a as Node } from './node-fSc-hCv8.cjs';
2
- import { G as Graph } from './graph-CaNXUc3c.cjs';
3
- import { L as LLMAdapter } from './types-BMSGPlpO.cjs';
1
+ import { D as DescribeNodeOutput } from './meta-D8OyedKp.js';
2
+ import { N as Node } from './node-BYInONRr.js';
3
+ import { G as Graph, b as GraphDescribeOutput } from './graph-30XSgtVX.js';
4
+ import { L as LLMAdapter } from './types-39jk0kaV.js';
4
5
 
5
6
  /**
6
7
  * LLM graph composition (roadmap §8.3).
7
8
  *
8
9
  * Declarative GraphSpec schema + compiler/decompiler for graph topology.
9
- * The LLM designs graphs as JSON; compileSpec instantiates them; decompileGraph
10
- * extracts them back. Templates support reusable subgraph patterns. Feedback
11
- * edges express bounded cycles via §8.1 feedback().
10
+ * The LLM designs graphs as JSON; `compileSpec` instantiates them;
11
+ * `decompileSpec` extracts them back. Templates support reusable subgraph
12
+ * patterns. Feedback edges express bounded cycles via §8.1 feedback().
13
+ *
14
+ * **Tier 1.5.3 Phase 3 (2026-04-27):** `GraphSpec` is a structural alias of
15
+ * {@link GraphDescribeOutput} with two LLM-author-friendly extras
16
+ * (`templates?` / `feedback?`). Per-node factory references are encoded in
17
+ * `meta.factory` + `meta.factoryArgs` (no more `fn` / `source` / `config` /
18
+ * `initial` fields). State node initial values live in
19
+ * `meta.factoryArgs.initial` (state self-tags with
20
+ * `factoryTag("state", { initial })`).
12
21
  *
13
22
  * @module
14
23
  */
15
24
 
16
- /** A single node declaration in a GraphSpec. */
17
- type GraphSpecNode = {
18
- /** Node kind: state, producer, derived, effect, operator. */
19
- type: "state" | "producer" | "derived" | "effect" | "operator";
20
- /** Dependency node names (for derived/effect/operator). */
21
- deps?: string[];
22
- /** Named function from the catalog (for derived/effect/operator/producer). */
23
- fn?: string;
24
- /** Named source from the catalog (for producer). */
25
- source?: string;
26
- /** Freeform config passed to the catalog fn/source factory. */
27
- config?: Record<string, unknown>;
28
- /** Initial value (for state nodes). */
29
- initial?: unknown;
30
- /** Human/LLM-readable metadata. */
31
- meta?: Record<string, unknown>;
32
- };
25
+ /**
26
+ * A single node declaration in a GraphSpec — structural alias of
27
+ * {@link DescribeNodeOutput}.
28
+ *
29
+ * Per-node factory provenance lives in `meta.factory` + `meta.factoryArgs`
30
+ * (use {@link factoryTag} to stamp them at construction time). State node
31
+ * initial values come through `meta.factoryArgs.initial` for tagged states,
32
+ * with fallback to `value` (since spec projection retains state values).
33
+ */
34
+ type GraphSpecNode = DescribeNodeOutput;
33
35
  /** Template instantiation node — expanded at compile time. */
34
36
  type GraphSpecTemplateRef = {
35
37
  type: "template";
@@ -56,15 +58,23 @@ type GraphSpecFeedbackEdge = {
56
58
  /** Max iterations before stopping (default: 10). */
57
59
  maxIterations?: number;
58
60
  };
59
- /** Declarative graph topology for LLM composition (§8.3). */
60
- type GraphSpec = {
61
- /** Graph name. */
62
- name: string;
63
- /** Node declarations (keyed by node name). */
61
+ /**
62
+ * Declarative graph topology for LLM composition (§8.3).
63
+ *
64
+ * Tier 1.5.3 Phase 3 (2026-04-27): structural alias of
65
+ * {@link GraphDescribeOutput} extended with optional `templates` /
66
+ * `feedback` fields for LLM-author convenience. Top-level `factory` /
67
+ * `factoryArgs` (Phase 2.5 carry) ride along on every describe output.
68
+ *
69
+ * Round-trip property: `decompileSpec(g) === g.describe({ detail: "spec" })`
70
+ * (modulo the small feedback-edge extraction sugar).
71
+ */
72
+ type GraphSpec = Omit<GraphDescribeOutput, "nodes" | "expand"> & {
73
+ /** Node declarations (keyed by node name). Either a structural describe entry or a template ref. */
64
74
  nodes: Record<string, GraphSpecNode | GraphSpecTemplateRef>;
65
- /** Reusable subgraph templates. */
75
+ /** Reusable subgraph templates (LLM-author extra; not present in `describe()` output). */
66
76
  templates?: Record<string, GraphSpecTemplate>;
67
- /** Feedback edges (bounded cycles). */
77
+ /** Feedback edges (bounded cycles, LLM-author extra). */
68
78
  feedback?: GraphSpecFeedbackEdge[];
69
79
  };
70
80
  /**
@@ -125,16 +135,32 @@ type CatalogSourceEntry = {
125
135
  /** Category tags. */
126
136
  tags?: string[];
127
137
  };
138
+ /**
139
+ * Top-level Graph factory — used when a spec was produced from a graph that
140
+ * called `Graph.prototype.tagFactory(name, args)`. The catalog supplies a
141
+ * function that takes the recorded `factoryArgs` (JSON-serializable subset)
142
+ * and returns a fully-wired Graph. Runtime context (LLMAdapter instances,
143
+ * callbacks, embedders) is captured by the closure — the args themselves are
144
+ * a documentation fragment, not a complete construction recipe.
145
+ *
146
+ * Tier 1.5.3 Phase 2.5 (DG1=B, 2026-04-27).
147
+ */
148
+ type GraphFactory = (factoryArgs: unknown) => Graph;
128
149
  /**
129
150
  * Fn/source lookup table passed to compileSpec and llmCompose.
130
151
  *
131
152
  * Accepts both bare factories (backward-compatible) and rich {@link CatalogFnEntry}
132
153
  * / {@link CatalogSourceEntry} objects. When rich entries are provided, the library
133
154
  * auto-generates LLM prompts and validates LLM output against the catalog.
155
+ *
156
+ * `graphFactories` (Tier 1.5.3 Phase 2.5) handles top-level Graph-returning
157
+ * factories — when `spec.factory` matches a key, `compileSpec` delegates the
158
+ * entire reconstruction to that factory.
134
159
  */
135
160
  type GraphSpecCatalog = {
136
161
  fns?: Record<string, FnFactory | CatalogFnEntry>;
137
162
  sources?: Record<string, SourceFactory | CatalogSourceEntry>;
163
+ graphFactories?: Record<string, GraphFactory>;
138
164
  };
139
165
  /** Type guard: is this a rich catalog fn entry (vs bare factory)? */
140
166
  declare function isRichFnEntry(entry: FnFactory | CatalogFnEntry): entry is CatalogFnEntry;
@@ -212,19 +238,28 @@ type CompileSpecOptions = {
212
238
  */
213
239
  declare function compileSpec(spec: GraphSpec, opts?: CompileSpecOptions): Graph;
214
240
  /**
215
- * Extract a GraphSpec from a running graph.
241
+ * Extract a {@link GraphSpec} from a running graph.
242
+ *
243
+ * Tier 1.5.3 Phase 3 (2026-04-27): thin projection over
244
+ * `graph.describe({ detail: "spec" })`. The describe-output already carries
245
+ * structural fields (`type`, `deps`, optional `value`) plus per-node
246
+ * `meta.factory` / `meta.factoryArgs` for tagged factories and top-level
247
+ * `factory` / `factoryArgs` for graph-level tags. The only sugar this helper
248
+ * adds is a feedback-edge recovery scan over `meta.feedbackFrom` /
249
+ * `meta.feedbackTo` companion fields stamped by the §8.1 `feedback()`
250
+ * primitive.
216
251
  *
217
- * Uses `describe({ detail: "standard" })` as a starting point, then enriches:
218
- * - Feedback edges recovered from counter node meta (`feedbackFrom`/`feedbackTo`)
219
- * - Template refs recovered from output node meta (`_templateName`/`_templateBind`)
220
- * - Structural fingerprinting as fallback for 2+ identical mounted subgraphs
252
+ * **Removed in Phase 3:** template fingerprinting / `_templateName` /
253
+ * `_templateBind` recovery. Mounted subgraphs surface as nested `subname::*`
254
+ * paths in `desc.nodes`; if you need the template-instantiation form, build
255
+ * the spec by hand or read the meta companions directly.
221
256
  *
222
257
  * @param graph - Running graph to decompile.
223
258
  * @returns A GraphSpec representation.
224
259
  *
225
260
  * @category patterns
226
261
  */
227
- declare function decompileGraph(graph: Graph): GraphSpec;
262
+ declare function decompileSpec(graph: Graph): GraphSpec;
228
263
  /** A single change in a spec diff. */
229
264
  type SpecDiffEntry = {
230
265
  type: "added" | "removed" | "changed";
@@ -311,6 +346,7 @@ type index_CatalogSourceEntry = CatalogSourceEntry;
311
346
  type index_CompileSpecOptions = CompileSpecOptions;
312
347
  type index_ConfigFieldSchema = ConfigFieldSchema;
313
348
  type index_FnFactory = FnFactory;
349
+ type index_GraphFactory = GraphFactory;
314
350
  type index_GraphSpec = GraphSpec;
315
351
  type index_GraphSpecCatalog = GraphSpecCatalog;
316
352
  type index_GraphSpecFeedbackEdge = GraphSpecFeedbackEdge;
@@ -324,7 +360,7 @@ type index_SourceFactory = SourceFactory;
324
360
  type index_SpecDiffEntry = SpecDiffEntry;
325
361
  type index_SpecDiffResult = SpecDiffResult;
326
362
  declare const index_compileSpec: typeof compileSpec;
327
- declare const index_decompileGraph: typeof decompileGraph;
363
+ declare const index_decompileSpec: typeof decompileSpec;
328
364
  declare const index_extractFnFactory: typeof extractFnFactory;
329
365
  declare const index_extractSourceFactory: typeof extractSourceFactory;
330
366
  declare const index_generateCatalogPrompt: typeof generateCatalogPrompt;
@@ -336,7 +372,7 @@ declare const index_specDiff: typeof specDiff;
336
372
  declare const index_validateSpec: typeof validateSpec;
337
373
  declare const index_validateSpecAgainstCatalog: typeof validateSpecAgainstCatalog;
338
374
  declare namespace index {
339
- export { type index_CatalogFnEntry as CatalogFnEntry, type index_CatalogSourceEntry as CatalogSourceEntry, type index_CompileSpecOptions as CompileSpecOptions, type index_ConfigFieldSchema as ConfigFieldSchema, type index_FnFactory as FnFactory, type index_GraphSpec as GraphSpec, type index_GraphSpecCatalog as GraphSpecCatalog, type index_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type index_GraphSpecNode as GraphSpecNode, type index_GraphSpecTemplate as GraphSpecTemplate, type index_GraphSpecTemplateRef as GraphSpecTemplateRef, type index_GraphSpecValidation as GraphSpecValidation, type index_LLMComposeOptions as LLMComposeOptions, type index_LLMRefineOptions as LLMRefineOptions, type index_SourceFactory as SourceFactory, type index_SpecDiffEntry as SpecDiffEntry, type index_SpecDiffResult as SpecDiffResult, index_compileSpec as compileSpec, index_decompileGraph as decompileGraph, index_extractFnFactory as extractFnFactory, index_extractSourceFactory as extractSourceFactory, index_generateCatalogPrompt as generateCatalogPrompt, index_isRichFnEntry as isRichFnEntry, index_isRichSourceEntry as isRichSourceEntry, index_llmCompose as llmCompose, index_llmRefine as llmRefine, index_specDiff as specDiff, index_validateSpec as validateSpec, index_validateSpecAgainstCatalog as validateSpecAgainstCatalog };
375
+ export { type index_CatalogFnEntry as CatalogFnEntry, type index_CatalogSourceEntry as CatalogSourceEntry, type index_CompileSpecOptions as CompileSpecOptions, type index_ConfigFieldSchema as ConfigFieldSchema, type index_FnFactory as FnFactory, type index_GraphFactory as GraphFactory, type index_GraphSpec as GraphSpec, type index_GraphSpecCatalog as GraphSpecCatalog, type index_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type index_GraphSpecNode as GraphSpecNode, type index_GraphSpecTemplate as GraphSpecTemplate, type index_GraphSpecTemplateRef as GraphSpecTemplateRef, type index_GraphSpecValidation as GraphSpecValidation, type index_LLMComposeOptions as LLMComposeOptions, type index_LLMRefineOptions as LLMRefineOptions, type index_SourceFactory as SourceFactory, type index_SpecDiffEntry as SpecDiffEntry, type index_SpecDiffResult as SpecDiffResult, index_compileSpec as compileSpec, index_decompileSpec as decompileSpec, index_extractFnFactory as extractFnFactory, index_extractSourceFactory as extractSourceFactory, index_generateCatalogPrompt as generateCatalogPrompt, index_isRichFnEntry as isRichFnEntry, index_isRichSourceEntry as isRichSourceEntry, index_llmCompose as llmCompose, index_llmRefine as llmRefine, index_specDiff as specDiff, index_validateSpec as validateSpec, index_validateSpecAgainstCatalog as validateSpecAgainstCatalog };
340
376
  }
341
377
 
342
- export { type CatalogFnEntry as C, type FnFactory as F, type GraphSpec as G, type LLMComposeOptions as L, type SourceFactory as S, type CatalogSourceEntry as a, type ConfigFieldSchema as b, type GraphSpecCatalog as c, type GraphSpecFeedbackEdge as d, type GraphSpecNode as e, type GraphSpecTemplate as f, type GraphSpecTemplateRef as g, type GraphSpecValidation as h, index as i, type CompileSpecOptions as j, type LLMRefineOptions as k, type SpecDiffEntry as l, type SpecDiffResult as m, compileSpec as n, decompileGraph as o, extractFnFactory as p, extractSourceFactory as q, generateCatalogPrompt as r, isRichFnEntry as s, isRichSourceEntry as t, llmCompose as u, llmRefine as v, specDiff as w, validateSpec as x, validateSpecAgainstCatalog as y };
378
+ export { type CatalogFnEntry as C, type FnFactory as F, type GraphSpec as G, type LLMComposeOptions as L, type SourceFactory as S, type CatalogSourceEntry as a, type ConfigFieldSchema as b, type GraphSpecCatalog as c, type GraphSpecFeedbackEdge as d, type GraphSpecNode as e, type GraphSpecTemplate as f, type GraphSpecTemplateRef as g, type GraphSpecValidation as h, index as i, type CompileSpecOptions as j, type GraphFactory as k, type LLMRefineOptions as l, type SpecDiffEntry as m, type SpecDiffResult as n, compileSpec as o, decompileSpec as p, extractFnFactory as q, extractSourceFactory as r, generateCatalogPrompt as s, isRichFnEntry as t, isRichSourceEntry as u, llmCompose as v, llmRefine as w, specDiff as x, validateSpec as y, validateSpecAgainstCatalog as z };
@@ -1,6 +1,6 @@
1
- import { a as Node } from './node-fSc-hCv8.js';
2
- import { S as StatusValue, C as CircuitState, R as RateLimiterOptions, a as CircuitBreakerOptions, b as RetryOptions, F as FallbackInput, N as NS_PER_MS, c as NS_PER_SEC } from './resilience-Bys63Cpd.js';
3
- import { B as BudgetConstraint } from './index-DXz9uwcs.js';
1
+ import { N as Node } from './node-BYInONRr.cjs';
2
+ import { S as StatusValue, C as CircuitState, R as RateLimiterOptions, a as CircuitBreakerOptions, b as RetryOptions, F as FallbackInput, N as NS_PER_MS, c as NS_PER_SEC } from './index-CwP_KAMS.cjs';
3
+ import { B as BudgetConstraint } from './budget-gate-DiP_nK0n.cjs';
4
4
 
5
5
  /**
6
6
  * Resilience composition with correct nesting order (roadmap §9.0b).
@@ -30,8 +30,16 @@ import { B as BudgetConstraint } from './index-DXz9uwcs.js';
30
30
 
31
31
  /** Options for {@link resilientPipeline}. Every field is optional — omit to skip that layer. */
32
32
  interface ResilientPipelineOptions<T> {
33
- /** Admission control — at most `maxEvents` DATA per `windowNs`. See {@link rateLimiter}. */
34
- rateLimit?: RateLimiterOptions;
33
+ /**
34
+ * Admission control — at most `maxEvents` DATA per `windowNs`. See {@link rateLimiter}.
35
+ *
36
+ * `maxBuffer` is optional at the pipeline layer (defaults to `Infinity`, preserving
37
+ * the historical unbounded behavior). Pass an explicit positive integer to opt in to
38
+ * a bounded queue. Tier 5.2 will surface backpressure-policy options to callers.
39
+ */
40
+ rateLimit?: Omit<RateLimiterOptions, "maxBuffer"> & {
41
+ maxBuffer?: number;
42
+ };
35
43
  /** Cost/constraint gate. See {@link budgetGate}. */
36
44
  budget?: ReadonlyArray<BudgetConstraint>;
37
45
  /** Circuit breaker — fail-fast when the downstream resource is unhealthy. See {@link circuitBreaker}. */
@@ -62,7 +70,7 @@ interface ResilientPipelineOptions<T> {
62
70
  interface ResilientPipelineBundle<T> {
63
71
  /** The final resilient node. Subscribe to this for DATA emissions. */
64
72
  node: Node<T>;
65
- /** Live status: `"pending" | "active" | "completed" | "errored"`. */
73
+ /** Live status: `"pending" | "running" | "completed" | "errored"`. */
66
74
  status: Node<StatusValue>;
67
75
  /** Last error payload, or `null` when not errored. */
68
76
  error: Node<unknown | null>;
@@ -1,5 +1,5 @@
1
- import { G as Graph } from './graph-YQXDndFy.js';
2
- import { M as MeasurementAdapter } from './reactive-layout-BDdngW56.js';
1
+ import { G as Graph } from './graph-30XSgtVX.js';
2
+ import { M as MeasurementAdapter } from './reactive-layout-DkTXxtSy.js';
3
3
 
4
4
  /**
5
5
  * Three-pane demo shell (roadmap §7.2).
@@ -1,6 +1,6 @@
1
- import { M as MeasurementAdapter, P as PreparedSegment, L as LineBreaksResult, C as CharPosition, a as LayoutCursor, I as Interval, b as LayoutLine, c as LayoutNextLineContext, d as LayoutNextLineResult, R as ReactiveLayoutBundle, e as ReactiveLayoutOptions, S as SegmentBreakKind, f as SegmentMeasureStats, g as analyzeAndMeasure, h as carveTextLineSlots, i as computeCharPositions, j as computeLineBreaks, l as layoutNextLine, r as reactiveLayout } from './reactive-layout-BDdngW56.js';
2
- import { a as Node } from './node-fSc-hCv8.js';
3
- import { G as Graph } from './graph-YQXDndFy.js';
1
+ import { M as MeasurementAdapter, P as PreparedSegment, L as LineBreaksResult, C as CharPosition, a as LayoutCursor, I as Interval, b as LayoutLine, c as LayoutNextLineContext, d as LayoutNextLineResult, R as ReactiveLayoutBundle, e as ReactiveLayoutOptions, S as SegmentBreakKind, f as SegmentMeasureStats, g as analyzeAndMeasure, h as carveTextLineSlots, i as computeCharPositions, j as computeLineBreaks, l as layoutNextLine, r as reactiveLayout } from './reactive-layout-DkTXxtSy.js';
2
+ import { N as Node } from './node-BYInONRr.js';
3
+ import { G as Graph } from './graph-30XSgtVX.js';
4
4
 
5
5
  /**
6
6
  * MeasurementAdapter implementations (roadmap §7.1 — pluggable backends).
@@ -0,0 +1,113 @@
1
+ import { N as Node, a as NodeOptions } from './node-BYInONRr.js';
2
+ import { a as GraphOptions, G as Graph } from './graph-30XSgtVX.js';
3
+
4
+ /**
5
+ * Reduction primitives (roadmap §8.1).
6
+ *
7
+ * Composable building blocks for taking heterogeneous massive inputs and producing
8
+ * prioritized, auditable, human-actionable output. Each primitive is either a Graph
9
+ * factory or a Node factory, built on top of core + extra primitives.
10
+ *
11
+ * @module
12
+ */
13
+
14
+ type StepRef = string | Node<unknown>;
15
+ /** A named stage for {@link funnel}. */
16
+ type FunnelStage = {
17
+ /** Stage name (mounted as subgraph). */
18
+ name: string;
19
+ /** Builder: receives a sub-graph, should add an `"input"` and `"output"` node. */
20
+ build: (sub: Graph) => void;
21
+ };
22
+ /** Options for {@link funnel}. */
23
+ type FunnelOptions = GraphOptions & {
24
+ meta?: Record<string, unknown>;
25
+ };
26
+ /**
27
+ * Multi-source merge with sequential reduction stages.
28
+ *
29
+ * Sources are merged into a single stream. Each stage is a named subgraph
30
+ * (mounted via `graph.mount()`). Stages connect linearly:
31
+ * `merged → stage[0].input → stage[0].output → stage[1].input → ...`
32
+ *
33
+ * @param name - Graph name.
34
+ * @param sources - Input nodes to merge.
35
+ * @param stages - Sequential reduction stages.
36
+ * @param opts - Optional graph/meta options.
37
+ * @returns Graph with `"merged"` and mounted stage subgraphs.
38
+ *
39
+ * @category patterns
40
+ */
41
+ declare function funnel<T>(name: string, sources: ReadonlyArray<Node<T>>, stages: ReadonlyArray<FunnelStage>, opts?: FunnelOptions): Graph;
42
+ /** Options for {@link feedback}. */
43
+ type FeedbackOptions = {
44
+ /** Maximum feedback iterations before stopping (default: 10). */
45
+ maxIterations?: number;
46
+ /** Optional budget gate node path for cost-bounded iteration. */
47
+ budgetNode?: StepRef;
48
+ meta?: Record<string, unknown>;
49
+ };
50
+ /**
51
+ * Introduce a bounded reactive cycle into an existing graph.
52
+ *
53
+ * When `condition` emits a non-null DATA value, the feedback effect routes it
54
+ * back to the `reentry` state node — creating a cycle. Bounded by
55
+ * `maxIterations` (default 10). The counter node (`__feedback_<condition>`)
56
+ * is the source of truth — reset it to 0 to allow more iterations.
57
+ *
58
+ * To remove the feedback cycle, call `graph.remove("__feedback_<condition>")`.
59
+ *
60
+ * @param graph - Existing graph to augment with a feedback cycle.
61
+ * @param condition - Path to a node whose DATA triggers feedback.
62
+ * @param reentry - Path to a state node that receives the feedback value.
63
+ * @param opts - Iteration bounds and metadata.
64
+ * @returns The same graph (mutated with feedback nodes added).
65
+ *
66
+ * @category patterns
67
+ */
68
+ declare function feedback(graph: Graph, condition: string, reentry: string, opts?: FeedbackOptions): Graph;
69
+ /** A scored item with full breakdown. */
70
+ type ScoredItem<T = unknown> = {
71
+ /** Original value. */
72
+ value: T;
73
+ /** Final weighted score. */
74
+ score: number;
75
+ /** Per-signal breakdown: signal index → weighted contribution. */
76
+ breakdown: number[];
77
+ };
78
+ /** Options for {@link scorer}. */
79
+ type ScorerOptions = Omit<NodeOptions<unknown>, "describeKind" | "name" | "meta"> & {
80
+ meta?: Record<string, unknown>;
81
+ /** Custom scoring function per signal. Default: identity (signal value IS the score). */
82
+ scoreFns?: ReadonlyArray<(value: unknown) => number>;
83
+ };
84
+ /**
85
+ * Reactive multi-signal scoring with live weights.
86
+ *
87
+ * Each source emits items to score. Weights are reactive state nodes that
88
+ * LLM or human can adjust live. Output is sorted scored items with full
89
+ * breakdown.
90
+ *
91
+ * @param sources - Signal nodes (each emits a numeric score dimension).
92
+ * @param weights - Reactive weight nodes (one per source).
93
+ * @param opts - Optional node/meta options.
94
+ * @returns Node emitting scored output.
95
+ *
96
+ * @category patterns
97
+ */
98
+ declare function scorer(sources: ReadonlyArray<Node<number>>, weights: ReadonlyArray<Node<number>>, opts?: ScorerOptions): Node<ScoredItem<number[]>>;
99
+
100
+ type index_FeedbackOptions = FeedbackOptions;
101
+ type index_FunnelOptions = FunnelOptions;
102
+ type index_FunnelStage = FunnelStage;
103
+ type index_ScoredItem<T = unknown> = ScoredItem<T>;
104
+ type index_ScorerOptions = ScorerOptions;
105
+ type index_StepRef = StepRef;
106
+ declare const index_feedback: typeof feedback;
107
+ declare const index_funnel: typeof funnel;
108
+ declare const index_scorer: typeof scorer;
109
+ declare namespace index {
110
+ export { type index_FeedbackOptions as FeedbackOptions, type index_FunnelOptions as FunnelOptions, type index_FunnelStage as FunnelStage, type index_ScoredItem as ScoredItem, type index_ScorerOptions as ScorerOptions, type index_StepRef as StepRef, index_feedback as feedback, index_funnel as funnel, index_scorer as scorer };
111
+ }
112
+
113
+ export { type FeedbackOptions as F, type ScoredItem as S, type FunnelOptions as a, type FunnelStage as b, type ScorerOptions as c, type StepRef as d, funnel as e, feedback as f, index as i, scorer as s };
@@ -1,6 +1,6 @@
1
- import { a as Node } from './node-fSc-hCv8.cjs';
2
- import { G as Graph, a as GraphOptions } from './graph-CaNXUc3c.cjs';
3
- import { R as ReactiveLogBundle } from './reactive-log-ScpWyqny.cjs';
1
+ import { N as Node } from './node-BYInONRr.cjs';
2
+ import { G as Graph, a as GraphOptions } from './graph-BUwMAxJI.cjs';
3
+ import { a as ReactiveLogBundle } from './reactive-log-_zeEnB9H.cjs';
4
4
  import { AppendLogStorageTier } from './extra/storage-tiers.cjs';
5
5
 
6
6
  type TopicOptions = {