@graphrefly/graphrefly 0.40.0 → 0.42.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 (296) hide show
  1. package/dist/{cascading-Cxs1eztH.d.cts → cascading-CH-_VwG9.d.cts} +2 -2
  2. package/dist/{cascading-BNfxffgc.d.ts → cascading-OgKQZjsa.d.ts} +2 -2
  3. package/dist/{chunk-CKFQS2CJ.js → chunk-2K5RXLAH.js} +1 -1
  4. package/dist/chunk-3ERTUW2J.js +45 -0
  5. package/dist/chunk-3K7HA4Y6.js +1 -0
  6. package/dist/chunk-3ZZX7M25.js +1 -0
  7. package/dist/chunk-4QH6VJF4.js +1 -0
  8. package/dist/{chunk-I2DEVPMU.js → chunk-5QRRKBUT.js} +1 -1
  9. package/dist/chunk-5ST42ESJ.js +1 -0
  10. package/dist/{chunk-FHRBBHJN.js → chunk-6YFZMUMR.js} +1 -1
  11. package/dist/{chunk-MNZIKXK4.js → chunk-7ARY3Y3T.js} +1 -1
  12. package/dist/chunk-7B7ELAT2.js +1 -0
  13. package/dist/{chunk-Z4F3DOWS.js → chunk-7VKFXLZQ.js} +1 -1
  14. package/dist/chunk-ACMJ2ZPS.js +3 -0
  15. package/dist/{chunk-32N3JALT.js → chunk-AGNM6RS6.js} +1 -1
  16. package/dist/chunk-AS3TV2TV.js +1 -0
  17. package/dist/{chunk-B7LCDQEV.js → chunk-CISGGAIF.js} +1 -1
  18. package/dist/{chunk-N43XM7BM.js → chunk-DEJTNNQC.js} +1 -1
  19. package/dist/{chunk-2QXRYP7Q.js → chunk-FDZAZNRO.js} +1 -1
  20. package/dist/{chunk-QSK3RRII.js → chunk-FUZ6S2DY.js} +1 -1
  21. package/dist/{chunk-LYM4PBMV.js → chunk-G5VBJ5K6.js} +1 -1
  22. package/dist/{chunk-6I726LZU.js → chunk-HZKW2AAB.js} +1 -1
  23. package/dist/{chunk-LCGAVGGV.js → chunk-IZM3UEH3.js} +3 -3
  24. package/dist/{chunk-2DMKW2AD.js → chunk-KCACBSJH.js} +1 -1
  25. package/dist/{chunk-SSCGRYJ2.js → chunk-KT5DTRBP.js} +1 -1
  26. package/dist/{chunk-WL6LFPJB.js → chunk-KY2LMAXU.js} +1 -1
  27. package/dist/{chunk-YXDRGKXP.js → chunk-LDQ3IUIP.js} +1 -1
  28. package/dist/chunk-LPRWATHB.js +61 -0
  29. package/dist/{chunk-6VWBPSSY.js → chunk-NWXQIOIB.js} +3 -3
  30. package/dist/{chunk-XW4YDF6G.js → chunk-Q7QQQA3I.js} +1 -1
  31. package/dist/chunk-VE5SIZEM.js +1 -0
  32. package/dist/chunk-VRALOYRD.js +1 -0
  33. package/dist/{chunk-XJLYLLIJ.js → chunk-WHMUB5QB.js} +1 -1
  34. package/dist/chunk-XLQPNNIC.js +1 -0
  35. package/dist/{chunk-JKBOIJ22.js → chunk-YGL7FPVQ.js} +1 -1
  36. package/dist/compat/index.cjs +5 -5
  37. package/dist/compat/index.d.cts +16 -16
  38. package/dist/compat/index.d.ts +16 -16
  39. package/dist/compat/index.js +1 -1
  40. package/dist/compat/jotai/index.d.cts +2 -2
  41. package/dist/compat/jotai/index.d.ts +2 -2
  42. package/dist/compat/nanostores/index.d.cts +2 -2
  43. package/dist/compat/nanostores/index.d.ts +2 -2
  44. package/dist/compat/nestjs/index.cjs +5 -5
  45. package/dist/compat/nestjs/index.d.cts +8 -8
  46. package/dist/compat/nestjs/index.d.ts +8 -8
  47. package/dist/compat/nestjs/index.js +1 -1
  48. package/dist/compat/react/index.d.cts +2 -2
  49. package/dist/compat/react/index.d.ts +2 -2
  50. package/dist/compat/solid/index.d.cts +2 -2
  51. package/dist/compat/solid/index.d.ts +2 -2
  52. package/dist/compat/svelte/index.d.cts +2 -2
  53. package/dist/compat/svelte/index.d.ts +2 -2
  54. package/dist/compat/vue/index.d.cts +2 -2
  55. package/dist/compat/vue/index.d.ts +2 -2
  56. package/dist/compat/zustand/index.cjs +3 -3
  57. package/dist/compat/zustand/index.d.cts +4 -4
  58. package/dist/compat/zustand/index.d.ts +4 -4
  59. package/dist/compat/zustand/index.js +1 -1
  60. package/dist/core/index.d.cts +4 -4
  61. package/dist/core/index.d.ts +4 -4
  62. package/dist/{decay-C25AyNAj.d.cts → decay-2ZukgQ4o.d.cts} +2 -2
  63. package/dist/{decay-BnrlbxSv.d.ts → decay-CdEBmDIs.d.ts} +2 -2
  64. package/dist/extra/browser.d.cts +1 -1
  65. package/dist/extra/browser.d.ts +1 -1
  66. package/dist/extra/index.cjs +14 -14
  67. package/dist/extra/index.d.cts +10 -11
  68. package/dist/extra/index.d.ts +10 -11
  69. package/dist/extra/index.js +1 -1
  70. package/dist/extra/node.cjs +2 -2
  71. package/dist/extra/node.d.cts +1 -1
  72. package/dist/extra/node.d.ts +1 -1
  73. package/dist/extra/node.js +1 -1
  74. package/dist/extra/operators.cjs +1 -1
  75. package/dist/extra/operators.d.cts +1 -1
  76. package/dist/extra/operators.d.ts +1 -1
  77. package/dist/extra/operators.js +1 -1
  78. package/dist/extra/reactive.d.cts +3 -3
  79. package/dist/extra/reactive.d.ts +3 -3
  80. package/dist/extra/reactive.js +1 -1
  81. package/dist/extra/render/index.d.cts +3 -3
  82. package/dist/extra/render/index.d.ts +3 -3
  83. package/dist/extra/sources.cjs +3 -1
  84. package/dist/extra/sources.d.cts +1 -1
  85. package/dist/extra/sources.d.ts +1 -1
  86. package/dist/extra/sources.js +1 -1
  87. package/dist/extra/storage-browser.d.cts +1 -1
  88. package/dist/extra/storage-browser.d.ts +1 -1
  89. package/dist/{fallback-CMZl39L5.d.ts → fallback-CqYVLL6X.d.ts} +1 -1
  90. package/dist/{fallback-8JYU8tlT.d.cts → fallback-Ctlj2tMY.d.cts} +1 -1
  91. package/dist/graph/index.cjs +7 -7
  92. package/dist/graph/index.d.cts +5 -5
  93. package/dist/graph/index.d.ts +5 -5
  94. package/dist/graph/index.js +1 -1
  95. package/dist/{graph-BkIkog4h.d.ts → graph-7VguS7a4.d.ts} +3 -3
  96. package/dist/{graph-E6likq7w.d.cts → graph-C4SHb3Ly.d.cts} +3 -3
  97. package/dist/{index-DktLSZOc.d.cts → index-2B7u2pVn.d.cts} +4 -4
  98. package/dist/{index-BTHOTC0Q.d.cts → index-3NmAfcH0.d.cts} +25 -7
  99. package/dist/{index-D1IEZUsj.d.ts → index-4Uz-e_fL.d.ts} +573 -213
  100. package/dist/{index-BAQrjuZF.d.ts → index-B-i4_g3k.d.ts} +2 -2
  101. package/dist/{index-DpiGqtrs.d.cts → index-B11anra4.d.cts} +441 -381
  102. package/dist/{index-WSlcjhQF.d.ts → index-B3OTH1dV.d.ts} +124 -13
  103. package/dist/{index-2n8Eai6M.d.ts → index-BG0BN3PB.d.ts} +1 -1
  104. package/dist/{index-z8WFPVI8.d.cts → index-BJX94aud.d.cts} +1 -1
  105. package/dist/{index-DhLyOHYZ.d.ts → index-BP8a88zx.d.ts} +11 -4
  106. package/dist/{index-Cnr1WrlX.d.cts → index-BTQtTb_H.d.cts} +14 -3
  107. package/dist/{index-BaA-xpSw.d.ts → index-BUYXac2c.d.ts} +3 -3
  108. package/dist/{index-DOBLxOti.d.cts → index-BVpm6noz.d.cts} +1 -1
  109. package/dist/{index-DhnsQfa3.d.ts → index-Bbkgpt5t.d.ts} +441 -381
  110. package/dist/{index-Cczxgd2D.d.ts → index-Bc41FuHp.d.cts} +3 -3
  111. package/dist/{index-BiHUBEKq.d.cts → index-BdGtBX-X.d.cts} +3 -3
  112. package/dist/index-BeT2r7sk.d.ts +760 -0
  113. package/dist/{index-da2V5vPy.d.ts → index-Bf7eqeSF.d.ts} +2 -2
  114. package/dist/{index-bXXLSvor.d.ts → index-Bn4zHYLj.d.ts} +4 -4
  115. package/dist/{index-DGTo1yka.d.cts → index-BoLv_OfD.d.cts} +2 -2
  116. package/dist/{index-B72TQQHd.d.cts → index-BsT7F2et.d.ts} +3 -3
  117. package/dist/{index-Bd91Nmf4.d.cts → index-BtAsBp8K.d.cts} +4 -4
  118. package/dist/{index-DgJc8Zgc.d.cts → index-C0-Jv1kP.d.cts} +81 -5
  119. package/dist/{index-C6ZUaos7.d.ts → index-C7O6r5fV.d.ts} +1 -1
  120. package/dist/{index-CL7oilfm.d.cts → index-C9kSENB4.d.cts} +1 -1
  121. package/dist/{index-yLt-aPMp.d.ts → index-CCq87F7t.d.ts} +1 -1
  122. package/dist/{index-DQQCOIt8.d.cts → index-CEMx8n40.d.cts} +10 -5
  123. package/dist/{index-BilOa6AE.d.cts → index-CJIuLu2f.d.cts} +124 -13
  124. package/dist/{index-B2RUoIUz.d.ts → index-CJK1JkYy.d.ts} +1 -1
  125. package/dist/{index-IUCY0OFN.d.ts → index-CJQm0g38.d.ts} +25 -7
  126. package/dist/index-CPNSy-U0.d.cts +760 -0
  127. package/dist/{index-A3U3CSve.d.cts → index-CZjOhcBy.d.cts} +2 -2
  128. package/dist/{index-CAP3UGsq.d.ts → index-CZmcDtFn.d.ts} +1 -1
  129. package/dist/{index-DYTBbF8T.d.cts → index-ChOyVLKm.d.cts} +1 -1
  130. package/dist/{index-eaQuGJnv.d.ts → index-CpyNFqkB.d.ts} +3 -3
  131. package/dist/{index-BJSZxSFX.d.ts → index-CvrqGfNS.d.ts} +1 -1
  132. package/dist/{index-DJ_MPOJ5.d.cts → index-D-Xs74HZ.d.cts} +573 -213
  133. package/dist/{index-C5cQ7Gfx.d.ts → index-D6egPFAL.d.ts} +4 -4
  134. package/dist/{index-CD2dBMet.d.ts → index-D8l8hNXn.d.ts} +10 -5
  135. package/dist/{index-40ZT4MHj.d.ts → index-DBHK8O6H.d.ts} +14 -3
  136. package/dist/{index-DVDapw2k.d.cts → index-DBIqYS43.d.cts} +35 -21
  137. package/dist/{index-3k4Gg6-n.d.ts → index-DBevwHj_.d.ts} +3 -3
  138. package/dist/{index-Ctb7_2sG.d.ts → index-DIOoAZUX.d.ts} +1 -1
  139. package/dist/{index-BQ1fR4li.d.ts → index-DO9XxMzS.d.ts} +35 -21
  140. package/dist/{index-CQtWm7jS.d.ts → index-DQo8xBgd.d.ts} +9 -9
  141. package/dist/{index-DH4fm2Ck.d.ts → index-Dgs8zcj7.d.ts} +2 -2
  142. package/dist/{index-CtFNGe-m.d.cts → index-Dhc7a7Xo.d.cts} +2 -2
  143. package/dist/{index-MxYuWOrf.d.cts → index-DmAgG5CI.d.cts} +3 -3
  144. package/dist/{index-CoM4rzyB.d.ts → index-Dmqp7KjD.d.ts} +1 -1
  145. package/dist/{index-B6iTqKtJ.d.ts → index-Dn-wI9g4.d.ts} +2 -2
  146. package/dist/{index-C-dkXOpB.d.cts → index-Du7u1lSf.d.cts} +11 -4
  147. package/dist/{index-DVAlsmEU.d.cts → index-HoU88d5U.d.cts} +3 -3
  148. package/dist/{index-CRm0YIzC.d.cts → index-LIpQQE9f.d.cts} +9 -9
  149. package/dist/{index-CgnCFhr2.d.cts → index-f5IivDUX.d.cts} +1 -1
  150. package/dist/{index-PgwvGWa1.d.cts → index-hHcaFlJX.d.cts} +1 -1
  151. package/dist/{index-I1cCY3ZI.d.ts → index-pT8sCpOJ.d.ts} +81 -5
  152. package/dist/{index-D4uimgee.d.cts → index-sl4NyzQx.d.cts} +1 -1
  153. package/dist/{index-tV3AA9hI.d.cts → index-tJoTcnHh.d.cts} +2 -2
  154. package/dist/{index-D3ayz3hy.d.cts → index-z96luz5O.d.cts} +1 -1
  155. package/dist/index.cjs +48 -48
  156. package/dist/index.d.cts +45 -50
  157. package/dist/index.d.ts +45 -50
  158. package/dist/index.js +1 -1
  159. package/dist/{meta-D8OyedKp.d.ts → meta-BgVAsg9j.d.ts} +1 -1
  160. package/dist/{meta-Ct9nqQS5.d.cts → meta-vE8bxW1E.d.cts} +1 -1
  161. package/dist/{node-BYInONRr.d.cts → node-ClS5yC-B.d.cts} +1 -1
  162. package/dist/{node-BYInONRr.d.ts → node-ClS5yC-B.d.ts} +1 -1
  163. package/dist/{observable-DO8DDEzv.d.ts → observable-BsBzUrcI.d.ts} +1 -1
  164. package/dist/{observable-DMIlYJV1.d.cts → observable-DLGPPtb8.d.cts} +1 -1
  165. package/dist/patterns/ai/browser.d.cts +4 -4
  166. package/dist/patterns/ai/browser.d.ts +4 -4
  167. package/dist/patterns/ai/browser.js +1 -1
  168. package/dist/patterns/ai/index.cjs +17 -17
  169. package/dist/patterns/ai/index.d.cts +17 -17
  170. package/dist/patterns/ai/index.d.ts +17 -17
  171. package/dist/patterns/ai/index.js +1 -1
  172. package/dist/patterns/ai/node.d.cts +4 -4
  173. package/dist/patterns/ai/node.d.ts +4 -4
  174. package/dist/patterns/ai/node.js +1 -1
  175. package/dist/patterns/cqrs/index.cjs +3 -3
  176. package/dist/patterns/cqrs/index.d.cts +6 -6
  177. package/dist/patterns/cqrs/index.d.ts +6 -6
  178. package/dist/patterns/cqrs/index.js +1 -1
  179. package/dist/patterns/demo-shell/index.cjs +5 -5
  180. package/dist/patterns/demo-shell/index.d.cts +5 -5
  181. package/dist/patterns/demo-shell/index.d.ts +5 -5
  182. package/dist/patterns/demo-shell/index.js +1 -1
  183. package/dist/patterns/domain-templates/index.cjs +3 -3
  184. package/dist/patterns/domain-templates/index.d.cts +4 -4
  185. package/dist/patterns/domain-templates/index.d.ts +4 -4
  186. package/dist/patterns/domain-templates/index.js +1 -1
  187. package/dist/patterns/graphspec/index.cjs +12 -12
  188. package/dist/patterns/graphspec/index.d.cts +5 -5
  189. package/dist/patterns/graphspec/index.d.ts +5 -5
  190. package/dist/patterns/graphspec/index.js +1 -1
  191. package/dist/patterns/harness/index.cjs +10 -8
  192. package/dist/patterns/harness/index.d.cts +11 -12
  193. package/dist/patterns/harness/index.d.ts +11 -12
  194. package/dist/patterns/harness/index.js +1 -1
  195. package/dist/patterns/inspect/index.cjs +3 -0
  196. package/dist/patterns/inspect/index.d.cts +9 -0
  197. package/dist/patterns/inspect/index.d.ts +9 -0
  198. package/dist/patterns/inspect/index.js +1 -0
  199. package/dist/patterns/job-queue/index.cjs +3 -3
  200. package/dist/patterns/job-queue/index.d.cts +6 -6
  201. package/dist/patterns/job-queue/index.d.ts +6 -6
  202. package/dist/patterns/job-queue/index.js +1 -1
  203. package/dist/patterns/memory/index.cjs +3 -3
  204. package/dist/patterns/memory/index.d.cts +6 -6
  205. package/dist/patterns/memory/index.d.ts +6 -6
  206. package/dist/patterns/memory/index.js +1 -1
  207. package/dist/patterns/messaging/index.cjs +3 -3
  208. package/dist/patterns/messaging/index.d.cts +5 -5
  209. package/dist/patterns/messaging/index.d.ts +5 -5
  210. package/dist/patterns/messaging/index.js +1 -1
  211. package/dist/patterns/orchestration/index.cjs +3 -3
  212. package/dist/patterns/orchestration/index.d.cts +7 -7
  213. package/dist/patterns/orchestration/index.d.ts +7 -7
  214. package/dist/patterns/orchestration/index.js +1 -1
  215. package/dist/patterns/process/index.cjs +1 -1
  216. package/dist/patterns/process/index.d.cts +7 -7
  217. package/dist/patterns/process/index.d.ts +7 -7
  218. package/dist/patterns/process/index.js +1 -1
  219. package/dist/patterns/reactive-layout/index.cjs +4 -4
  220. package/dist/patterns/reactive-layout/index.d.cts +5 -5
  221. package/dist/patterns/reactive-layout/index.d.ts +5 -5
  222. package/dist/patterns/reactive-layout/index.js +1 -1
  223. package/dist/patterns/reduction/index.cjs +3 -3
  224. package/dist/patterns/reduction/index.d.cts +4 -4
  225. package/dist/patterns/reduction/index.d.ts +4 -4
  226. package/dist/patterns/reduction/index.js +1 -1
  227. package/dist/patterns/surface/index.cjs +8 -8
  228. package/dist/patterns/surface/index.d.cts +6 -6
  229. package/dist/patterns/surface/index.d.ts +6 -6
  230. package/dist/patterns/surface/index.js +1 -1
  231. package/dist/{pipeline-graph-MWrQZXCq.d.cts → pipeline-graph-WBlobVhU.d.cts} +5 -5
  232. package/dist/{pipeline-graph-CB4La-UW.d.ts → pipeline-graph-v8fMvqNk.d.ts} +5 -5
  233. package/dist/{reactive-layout-BtZfUKuL.d.cts → reactive-layout-Dsvob4zD.d.cts} +2 -2
  234. package/dist/{reactive-layout-KJj4E2dT.d.ts → reactive-layout-v7KPvxoc.d.ts} +2 -2
  235. package/dist/{reactive-log-_zeEnB9H.d.cts → reactive-log-B00laMSQ.d.cts} +1 -1
  236. package/dist/{reactive-log-BlAsPLl2.d.ts → reactive-log-BezYsbA_.d.ts} +1 -1
  237. package/dist/{reactive-map-6P_k3AQM.d.cts → reactive-map-48mnZ-nu.d.cts} +1 -1
  238. package/dist/{reactive-map-CjXByDV-.d.ts → reactive-map-BVVPdvmi.d.ts} +1 -1
  239. package/dist/resilience-445VFFXQ.js +1 -0
  240. package/dist/{sugar-BhfjgetH.d.ts → sugar-CH-2ZY90.d.ts} +1 -1
  241. package/dist/{sugar-DzePN5-g.d.cts → sugar-DStZfUEK.d.cts} +1 -1
  242. package/dist/{topology-tree-mF7Emqzm.d.ts → topology-tree-BNGvuG82.d.ts} +1 -1
  243. package/dist/{topology-tree-3LBKFsUo.d.cts → topology-tree-BSdfSwMi.d.cts} +1 -1
  244. package/dist/{types-1Dhoi7HM.d.cts → types-B1jDWVsM.d.cts} +1 -1
  245. package/dist/{types-39jk0kaV.d.ts → types-DkzUUs0H.d.ts} +1 -1
  246. package/package.json +11 -51
  247. package/dist/budget-gate-CmmVtasH.d.ts +0 -115
  248. package/dist/budget-gate-DiP_nK0n.d.cts +0 -115
  249. package/dist/chunk-2BX4NB34.js +0 -3
  250. package/dist/chunk-6XVD5TZV.js +0 -1
  251. package/dist/chunk-756D5TFD.js +0 -1
  252. package/dist/chunk-7Q4ZD3YW.js +0 -1
  253. package/dist/chunk-ECQRP2UT.js +0 -1
  254. package/dist/chunk-INQFTVZA.js +0 -61
  255. package/dist/chunk-J63M5U46.js +0 -1
  256. package/dist/chunk-K2Z7UENB.js +0 -1
  257. package/dist/chunk-OSZ22J7O.js +0 -1
  258. package/dist/chunk-PPUYQ66A.js +0 -1
  259. package/dist/chunk-RZJDIV2G.js +0 -1
  260. package/dist/chunk-SGS4OJGS.js +0 -1
  261. package/dist/chunk-SVFKHUCW.js +0 -1
  262. package/dist/chunk-UWA6D7UF.js +0 -3
  263. package/dist/chunk-VMF23LGB.js +0 -1
  264. package/dist/chunk-WUT362QV.js +0 -1
  265. package/dist/chunk-YKD7WUYJ.js +0 -43
  266. package/dist/index-8s-Qm-gz.d.ts +0 -218
  267. package/dist/index-BgjS2b8N.d.ts +0 -366
  268. package/dist/index-BmSQLAZo.d.cts +0 -244
  269. package/dist/index-CGhMJNHb.d.cts +0 -128
  270. package/dist/index-CUIkE1l9.d.cts +0 -230
  271. package/dist/index-Ck35nA-T.d.ts +0 -244
  272. package/dist/index-CuPUehFa.d.cts +0 -218
  273. package/dist/index-D1Gc7wV5.d.ts +0 -230
  274. package/dist/index-N2MAxt7_.d.ts +0 -128
  275. package/dist/index-t6L2qpHh.d.cts +0 -366
  276. package/dist/patterns/audit/index.cjs +0 -3
  277. package/dist/patterns/audit/index.d.cts +0 -8
  278. package/dist/patterns/audit/index.d.ts +0 -8
  279. package/dist/patterns/audit/index.js +0 -1
  280. package/dist/patterns/guarded-execution/index.cjs +0 -3
  281. package/dist/patterns/guarded-execution/index.d.cts +0 -9
  282. package/dist/patterns/guarded-execution/index.d.ts +0 -9
  283. package/dist/patterns/guarded-execution/index.js +0 -1
  284. package/dist/patterns/lens/index.cjs +0 -3
  285. package/dist/patterns/lens/index.d.cts +0 -7
  286. package/dist/patterns/lens/index.d.ts +0 -7
  287. package/dist/patterns/lens/index.js +0 -1
  288. package/dist/patterns/refine-loop/index.cjs +0 -5
  289. package/dist/patterns/refine-loop/index.d.cts +0 -9
  290. package/dist/patterns/refine-loop/index.d.ts +0 -9
  291. package/dist/patterns/refine-loop/index.js +0 -1
  292. package/dist/patterns/resilient-pipeline/index.cjs +0 -3
  293. package/dist/patterns/resilient-pipeline/index.d.cts +0 -8
  294. package/dist/patterns/resilient-pipeline/index.d.ts +0 -8
  295. package/dist/patterns/resilient-pipeline/index.js +0 -1
  296. package/dist/resilience-S33JV6XC.js +0 -1
@@ -1,230 +0,0 @@
1
- import { f as factoryTag, p as placeholderArgs } from './meta-D8OyedKp.js';
2
- import { N as Node } from './node-BYInONRr.js';
3
- import { S as StatusValue, C as CircuitState, R as RateLimiterState, a as RateLimiterOptions, b as CircuitBreakerOptions, c as RetryOptions, F as FallbackInput, N as NS_PER_MS, d as NS_PER_SEC } from './index-BAQrjuZF.js';
4
- import { G as Graph, a as GraphOptions } from './graph-BkIkog4h.js';
5
- import { B as BudgetConstraint } from './budget-gate-CmmVtasH.js';
6
-
7
- /**
8
- * Resilience composition with correct nesting order (roadmap §9.0b — Tier 5.2 Wave-B rebuild).
9
- *
10
- * {@link resilientPipeline} composes the resilience primitives from
11
- * `extra/resilience/` in the canonical nesting order:
12
- *
13
- * ```text
14
- * rateLimit → budget → breaker → timeout → retry → fallback → status
15
- * ```
16
- *
17
- * Returns a {@link ResilientPipelineGraph} (Graph subclass) with mounted
18
- * intermediate nodes and per-layer status companions, replacing the prior
19
- * bundle return. Each intermediate is mounted under a stable name so
20
- * `pipeline.describe()` shows the resilience chain in topology snapshots,
21
- * mermaid renders, and `lens.health` aggregations.
22
- *
23
- * **Per-attempt timeout vs. retry ordering.** `timeout` is applied BEFORE
24
- * `retry` so each retry attempt resubscribes to a fresh deadline (per-attempt
25
- * semantics). If `timeout` wrapped `retry`, a single deadline would apply to
26
- * the entire retry chain — not what callers expect.
27
- *
28
- * **`breakerOnOpen` + `retry` interaction.** With `breakerOnOpen: "error"` AND
29
- * `retry`, retry sees `CircuitOpenError` and resubscribes; the next attempt
30
- * very likely also breaker-open → another error → retry burns its budget
31
- * against an open circuit. Either set retry's `backoff` long enough for the
32
- * breaker reset window OR keep the default `breakerOnOpen: "skip"` (emits
33
- * RESOLVED when open; downstream drops the beat without retry firing).
34
- *
35
- * **Reactive options (switchMap rebuild).** Every primitive option accepts a
36
- * `T | Node<T>` (precedent-aligned with `FallbackInput<T>`). When the caller
37
- * supplies a static value, the layer is built once at construction. When the
38
- * caller supplies a `Node<T>`, the pipeline subscribes via `switchMap` and
39
- * **rebuilds the layer on every option emission** — the chain stalls until
40
- * the option Node emits its first DATA. Each rebuild creates a fresh
41
- * primitive instance, so internal state is lost (rate-limiter pending buffer,
42
- * breaker failure count, retry attempt count, in-flight timeout). Per-layer
43
- * **companion Nodes** (`droppedCount`, `rateLimitState`, `breakerState`) are
44
- * therefore exposed ONLY for the static-options path. Primitive-side widening
45
- * (filed in `docs/optimizations.md` under "Tier 5.2 follow-up — primitive-side
46
- * reactive-options widening") will preserve internal state once it lands and
47
- * the pipeline will trivially forward Node-form options to the primitive.
48
- *
49
- * @module
50
- */
51
-
52
- /**
53
- * `T | Node<T>` for primitive options — precedent-aligned with
54
- * {@link FallbackInput} and `policyGate.policies`. When the caller supplies a
55
- * static value, the layer is built once at construction. When the caller
56
- * supplies a `Node<T>`, the pipeline subscribes via {@link switchMap}: the
57
- * layer is rebuilt on every option emission. **State-loss caveat:** each
58
- * rebuild creates a fresh primitive instance — `rateLimiter` loses its pending
59
- * buffer, `circuitBreaker` resets failure count, `retry` resets attempt
60
- * count, `timeout` cancels in-flight deadline. This is the documented
61
- * switchMap-pattern semantics; primitive-side widening (filed in
62
- * `docs/optimizations.md`) will preserve internal state once it lands and the
63
- * pipeline can forward Node-form options directly.
64
- *
65
- * Per-layer **companion Nodes** (`droppedCount`, `rateLimitState`,
66
- * `breakerState`) are exposed only for the static-options path — Node-form
67
- * leaves them as `undefined` because each rebuild creates new companion
68
- * instances and a switchMap-mirrored companion would track only the latest
69
- * bundle. Callers needing both reactive options AND companions wait for
70
- * primitive-side widening.
71
- */
72
- type NodeOrValue<T> = T | Node<T>;
73
- /**
74
- * Options for {@link resilientPipeline}. Every layer is optional — omit a
75
- * field and that layer is skipped.
76
- *
77
- * Reactive (`Node<T>`) forms are accepted everywhere a primitive value would
78
- * fit; the pipeline subscribes via `switchMap` and rebuilds the layer on each
79
- * emission. See module JSDoc for the rebuild semantics + state-loss caveat.
80
- */
81
- interface ResilientPipelineOptions<T> {
82
- /**
83
- * Admission control — at most `maxEvents` `DATA` per `windowNs`. See
84
- * {@link rateLimiter}.
85
- *
86
- * `maxBuffer` is optional at the pipeline layer (defaults to `Infinity`,
87
- * preserving the historical unbounded behavior). Pass an explicit positive
88
- * integer to opt in to a bounded queue.
89
- */
90
- rateLimit?: NodeOrValue<Omit<RateLimiterOptions, "maxBuffer"> & {
91
- maxBuffer?: number;
92
- }>;
93
- /** Cost/constraint gate. See {@link budgetGate}. */
94
- budget?: NodeOrValue<ReadonlyArray<BudgetConstraint>>;
95
- /** Circuit breaker — fail-fast when the downstream resource is unhealthy. See {@link circuitBreaker}. */
96
- breaker?: NodeOrValue<CircuitBreakerOptions>;
97
- /**
98
- * Behavior when the breaker is open:
99
- * - `"skip"` (default) — emit `RESOLVED` (lets downstream drop the beat).
100
- * - `"error"` — emit a `CircuitOpenError` so `retry` / `fallback` can react.
101
- * See module JSDoc for the retry-budget burn caveat.
102
- *
103
- * Static (configuration-only — no reactive form).
104
- */
105
- breakerOnOpen?: "skip" | "error";
106
- /** Retry policy on terminal `ERROR`. See {@link retry}. */
107
- retry?: NodeOrValue<RetryOptions>;
108
- /**
109
- * Per-attempt deadline in milliseconds. Converted to ns internally. Omit
110
- * to skip the timeout wrap.
111
- *
112
- * Specified in ms (not ns) because callers consistently think in
113
- * millisecond deadlines; the underlying {@link timeout} primitive takes ns
114
- * internally.
115
- */
116
- timeoutMs?: NodeOrValue<number>;
117
- /** Final fallback value emitted on terminal `ERROR` after retry exhausts. See {@link fallback}. */
118
- fallback?: FallbackInput<T>;
119
- /**
120
- * Initial status reported by the status node. Default `"pending"`. Static.
121
- */
122
- initialStatus?: StatusValue;
123
- /** Wrapper graph name. Default `"resilient_pipeline"`. */
124
- name?: string;
125
- /** Wrapper graph options. */
126
- graph?: GraphOptions;
127
- }
128
- /**
129
- * Graph subclass returned by {@link resilientPipeline}. Mounts each
130
- * configured intermediate under a stable name and exposes per-layer status
131
- * companions.
132
- *
133
- * @category patterns
134
- */
135
- declare class ResilientPipelineGraph<T> extends Graph {
136
- /**
137
- * Final resilient node — subscribe to this for `DATA` emissions.
138
- *
139
- * Named `output` (not `node`) because `Graph.node(name)` already names the
140
- * path-resolution method on the base class; a `readonly node` field would
141
- * shadow it.
142
- */
143
- readonly output: Node<T>;
144
- /** Live status: `"pending" | "running" | "completed" | "errored"`. */
145
- readonly status: Node<StatusValue>;
146
- /**
147
- * Last error payload, or `null` when not errored.
148
- *
149
- * Named `lastError` (not `error`) because `Graph.error(name, err)` already
150
- * names a method on the base class.
151
- */
152
- readonly lastError: Node<unknown | null>;
153
- /** Breaker state when `opts.breaker` is provided; `undefined` otherwise. */
154
- readonly breakerState: Node<CircuitState> | undefined;
155
- /**
156
- * Drop-counter when `opts.rateLimit` is provided; `undefined` otherwise.
157
- *
158
- * **Lifetime note:** `droppedCount` retains its final value through
159
- * terminal (`COMPLETE` / `ERROR` / `TEARDOWN`); the underlying counter
160
- * resets to `0` only at the next subscription cycle.
161
- */
162
- readonly droppedCount: Node<number> | undefined;
163
- /**
164
- * Combined rate-limit state when `opts.rateLimit` is provided; `undefined`
165
- * otherwise. Same lifecycle as {@link droppedCount} but exposes
166
- * `pendingCount` and `paused` alongside the drop counter for richer
167
- * backpressure observability (Tier 5.2 D7).
168
- */
169
- readonly rateLimitState: Node<RateLimiterState> | undefined;
170
- constructor(source: Node<T>, opts?: ResilientPipelineOptions<T>);
171
- }
172
- /**
173
- * Compose a resilient pipeline around `source` in the canonical nesting
174
- * order — `rateLimit → budget → breaker → timeout → retry → fallback → status`.
175
- * Omit any option to skip that layer.
176
- *
177
- * Returns a {@link ResilientPipelineGraph} (Graph subclass) —
178
- * `pipeline.output` is the externally visible final node; `pipeline.status`
179
- * / `pipeline.lastError` / `pipeline.breakerState` / `pipeline.droppedCount`
180
- * are the per-layer companions. Call `pipeline.describe()` to see the
181
- * mounted intermediates; compose with {@link graphLens}'s `health` for
182
- * aggregate status.
183
- *
184
- * **Naming note:** `output` and `lastError` (not `node` / `error`) avoid
185
- * clashes with `Graph.node(name)` and `Graph.error(name, err)` on the base
186
- * class.
187
- *
188
- * @param source - Upstream node to wrap.
189
- * @param opts - See {@link ResilientPipelineOptions}. All fields optional.
190
- *
191
- * @example
192
- * ```ts
193
- * const safeFetch = resilientPipeline(fetchNode, {
194
- * rateLimit: { maxEvents: 10, windowNs: NS_PER_SEC },
195
- * breaker: { failureThreshold: 5 },
196
- * retry: { count: 3, backoff: "exponential" },
197
- * timeoutMs: 10_000,
198
- * fallback: null,
199
- * });
200
- * safeFetch.output.subscribe(msgs => console.log(msgs));
201
- * safeFetch.status.subscribe(msgs => console.log(msgs));
202
- * safeFetch.describe({ format: "ascii" }); // visualize the chain
203
- * ```
204
- *
205
- * @category patterns
206
- */
207
- declare function resilientPipeline<T>(source: Node<T>, opts?: ResilientPipelineOptions<T>): ResilientPipelineGraph<T>;
208
-
209
- declare const index_BudgetConstraint: typeof BudgetConstraint;
210
- declare const index_CircuitBreakerOptions: typeof CircuitBreakerOptions;
211
- declare const index_CircuitState: typeof CircuitState;
212
- declare const index_FallbackInput: typeof FallbackInput;
213
- declare const index_NS_PER_MS: typeof NS_PER_MS;
214
- declare const index_NS_PER_SEC: typeof NS_PER_SEC;
215
- type index_NodeOrValue<T> = NodeOrValue<T>;
216
- declare const index_RateLimiterOptions: typeof RateLimiterOptions;
217
- declare const index_RateLimiterState: typeof RateLimiterState;
218
- type index_ResilientPipelineGraph<T> = ResilientPipelineGraph<T>;
219
- declare const index_ResilientPipelineGraph: typeof ResilientPipelineGraph;
220
- type index_ResilientPipelineOptions<T> = ResilientPipelineOptions<T>;
221
- declare const index_RetryOptions: typeof RetryOptions;
222
- declare const index_StatusValue: typeof StatusValue;
223
- declare const index_factoryTag: typeof factoryTag;
224
- declare const index_placeholderArgs: typeof placeholderArgs;
225
- declare const index_resilientPipeline: typeof resilientPipeline;
226
- declare namespace index {
227
- export { index_BudgetConstraint as BudgetConstraint, index_CircuitBreakerOptions as CircuitBreakerOptions, index_CircuitState as CircuitState, index_FallbackInput as FallbackInput, index_NS_PER_MS as NS_PER_MS, index_NS_PER_SEC as NS_PER_SEC, type index_NodeOrValue as NodeOrValue, index_RateLimiterOptions as RateLimiterOptions, index_RateLimiterState as RateLimiterState, index_ResilientPipelineGraph as ResilientPipelineGraph, type index_ResilientPipelineOptions as ResilientPipelineOptions, index_RetryOptions as RetryOptions, index_StatusValue as StatusValue, index_factoryTag as factoryTag, index_placeholderArgs as placeholderArgs, index_resilientPipeline as resilientPipeline };
228
- }
229
-
230
- export { type NodeOrValue as N, ResilientPipelineGraph as R, type ResilientPipelineOptions as a, index as i, resilientPipeline as r };
@@ -1,128 +0,0 @@
1
- import { N as Node } from './node-BYInONRr.js';
2
- import { b as GraphDescribeOutput, G as Graph } from './graph-BkIkog4h.js';
3
- import { w as watchTopologyTree } from './topology-tree-mF7Emqzm.js';
4
-
5
- /**
6
- * Reactive graph observability preset (Tier 5.3 reshape — Session A.4 lock).
7
- *
8
- * `graphLens(target)` is a thin compositor (~30 LOC of glue) over two
9
- * already-shipped reactive primitives:
10
- *
11
- * - `target.describe({ reactive: true })` — live topology snapshot.
12
- * - `target.observe({ reactive: true, tiers: ["data"] })` — coalesced data
13
- * changesets per outermost batch flush.
14
- *
15
- * It returns three Nodes plus a dispose function:
16
- *
17
- * - `topology: Node<GraphDescribeOutput>` — the live describe snapshot,
18
- * re-emitting on every settle of the target tree (structural change,
19
- * error/complete/teardown transition).
20
- * - `health: Node<HealthReport>` — `{ok, problems[]}` aggregated from the
21
- * live describe; `ok=false` when any node enters `"errored"` status,
22
- * with `upstreamCause` walked backward through deps.
23
- * - `flow: Node<ReadonlyMap<string, FlowEntry>>` — per-path DATA counters
24
- * accumulating as `target.observe({reactive: true, tiers: ["data"]})`
25
- * delivers changesets. The map is reconciled against `topology` on each
26
- * topology change so removed nodes drop their entries.
27
- *
28
- * Pre-Tier-5.3 shipped a `LensGraph` class with `stats` / `health` / `flow`
29
- * (as a `ReactiveMapBundle`) / `why(from, to)` / `flowEntryNode(...)`. The
30
- * surface collapsed because every concern was already a one-liner over
31
- * `describe({reactive:true})` + `observe({reactive:true, tiers})` once those
32
- * landed in Tier 1.5.1 / 1.5.2 — the class added no protocol-level concept,
33
- * just glue. Callers who need topology stats compose a derived over
34
- * `topology` directly; callers who need a causal chain call
35
- * `target.explain(from, to, { reactive: true })`.
36
- *
37
- * The transitive topology-subscription helper {@link watchTopologyTree} is
38
- * re-exported here for downstream factories that need full-tree dynamic
39
- * coverage without taking a dep on `graph/`.
40
- *
41
- * @module
42
- */
43
-
44
- /** A single health problem entry. */
45
- interface HealthProblem {
46
- path: string;
47
- /** V1 only reports `"errored"`. Future versions may add `"completed"`, `"disconnected"`. */
48
- status: "errored";
49
- /** First errored upstream ancestor along the dep chain, when one exists and is distinct from `path`. */
50
- upstreamCause?: string;
51
- }
52
- /** Aggregate health snapshot. `ok=true` iff `problems.length === 0`. */
53
- interface HealthReport {
54
- ok: boolean;
55
- problems: readonly HealthProblem[];
56
- }
57
- /** Per-path flow entry stored in the {@link GraphLensView.flow} map. */
58
- interface FlowEntry {
59
- path: string;
60
- /** Cumulative DATA emissions observed since the lens activated. */
61
- count: number;
62
- /** Monotonic ns at the most recent DATA emission for this path, or `null` if none yet. */
63
- lastUpdate_ns: number | null;
64
- }
65
- /** Output of {@link graphLens}. */
66
- interface GraphLensView {
67
- /** Live describe snapshot. Re-emits on structural change AND status transitions. */
68
- topology: Node<GraphDescribeOutput>;
69
- /** Live `{ok, problems[]}`. Aggregated from `topology`; equality-deduped. */
70
- health: Node<HealthReport>;
71
- /** Per-path DATA counter map. Re-emits per outermost batch flush. */
72
- flow: Node<ReadonlyMap<string, FlowEntry>>;
73
- /**
74
- * Tear down the underlying `describe({reactive:true})` subscription.
75
- * The `flow` node activates lazily; subscribing-then-unsubscribing reclaims
76
- * its observe stream automatically. Call `dispose()` once when finished.
77
- */
78
- dispose(): void;
79
- }
80
- /** Build a `HealthReport` from a fresh `GraphDescribeOutput`. */
81
- declare function computeHealthReport(described: GraphDescribeOutput): HealthReport;
82
- /** Structural equality for {@link HealthReport} — used as the `health` derived's `equals`. */
83
- declare function healthReportEqual(a: HealthReport, b: HealthReport): boolean;
84
- /**
85
- * Reactive observability preset over a target {@link Graph}.
86
- *
87
- * @param target - The graph to observe.
88
- *
89
- * @example
90
- * ```ts
91
- * const g = new Graph("app");
92
- * g.add(state(0, { name: "counter" }), { name: "counter" });
93
- *
94
- * const lens = graphLens(g);
95
- * lens.topology.subscribe((msgs) => console.log("topology:", msgs));
96
- * lens.health.subscribe((msgs) => console.log("health:", msgs));
97
- * lens.flow.subscribe((msgs) => {
98
- * for (const [type, payload] of msgs) {
99
- * if (type === DATA) console.log("flow map size:", (payload as ReadonlyMap<string, FlowEntry>).size);
100
- * }
101
- * });
102
- *
103
- * // Causal chains: use the underlying primitive directly — `graphLens` no
104
- * // longer wraps it, since `graph.explain({ reactive: true })` already
105
- * // provides everything the old `lens.why()` did.
106
- * const why = g.explain("counter", "consumer", { reactive: true });
107
- *
108
- * // Tear down when done.
109
- * lens.dispose();
110
- * ```
111
- *
112
- * @category observability
113
- */
114
- declare function graphLens(target: Graph): GraphLensView;
115
-
116
- type index_FlowEntry = FlowEntry;
117
- type index_GraphLensView = GraphLensView;
118
- type index_HealthProblem = HealthProblem;
119
- type index_HealthReport = HealthReport;
120
- declare const index_computeHealthReport: typeof computeHealthReport;
121
- declare const index_graphLens: typeof graphLens;
122
- declare const index_healthReportEqual: typeof healthReportEqual;
123
- declare const index_watchTopologyTree: typeof watchTopologyTree;
124
- declare namespace index {
125
- export { type index_FlowEntry as FlowEntry, type index_GraphLensView as GraphLensView, type index_HealthProblem as HealthProblem, type index_HealthReport as HealthReport, index_computeHealthReport as computeHealthReport, index_graphLens as graphLens, index_healthReportEqual as healthReportEqual, index_watchTopologyTree as watchTopologyTree };
126
- }
127
-
128
- export { type FlowEntry as F, type GraphLensView as G, type HealthProblem as H, type HealthReport as a, computeHealthReport as c, graphLens as g, healthReportEqual as h, index as i };