@graphrefly/graphrefly 0.34.0 → 0.35.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 (333) hide show
  1. package/dist/{cascading-DKIb6Pk8.d.cts → cascading-B25wxpRa.d.cts} +3 -3
  2. package/dist/{cascading-Bg0a4VSf.d.ts → cascading-BsJ4GbnS.d.ts} +3 -3
  3. package/dist/{chunk-TZLEMGAK.js → chunk-2Y3DKIZL.js} +2 -2
  4. package/dist/chunk-3OT7K33Q.js +1 -0
  5. package/dist/chunk-53XJ2S6D.js +1 -0
  6. package/dist/chunk-5CPPC75H.js +1 -0
  7. package/dist/chunk-5KPIYVCC.js +7 -0
  8. package/dist/{chunk-GAOX6OPT.js → chunk-5XZRCS2M.js} +1 -1
  9. package/dist/{chunk-C5DINHNP.js → chunk-6G5YD37E.js} +1 -1
  10. package/dist/{chunk-WBWBY6LI.js → chunk-6SVKZ7VI.js} +1 -1
  11. package/dist/chunk-A5HZZYRK.js +1 -0
  12. package/dist/chunk-BGEY3PXH.js +1 -0
  13. package/dist/chunk-CD4CB6S7.js +1 -0
  14. package/dist/chunk-CE72X3WO.js +1 -0
  15. package/dist/chunk-CUQFO6MT.js +1 -0
  16. package/dist/chunk-D5RFJOZ2.js +1 -0
  17. package/dist/{chunk-A3GDELMY.js → chunk-E5YSBQSF.js} +7 -7
  18. package/dist/{chunk-SFIM774L.js → chunk-EUE7ELFQ.js} +1 -1
  19. package/dist/chunk-F3IGTWCQ.js +1 -0
  20. package/dist/chunk-F672GV32.js +1 -0
  21. package/dist/{chunk-GCUYSIM4.js → chunk-GWOKTENT.js} +1 -1
  22. package/dist/{chunk-4NYSEUKV.js → chunk-J6TGRQUP.js} +1 -1
  23. package/dist/{chunk-4F564IPP.js → chunk-JJTF75VS.js} +1 -1
  24. package/dist/{chunk-BY4WKPKM.js → chunk-JUJEPZOI.js} +1 -1
  25. package/dist/{chunk-65WWQ5CB.js → chunk-M5UC63ZI.js} +5 -5
  26. package/dist/chunk-MQZWA3DF.js +1 -0
  27. package/dist/chunk-MYFR67PY.js +18 -0
  28. package/dist/{chunk-KN2UMFT6.js → chunk-PCD2MU7X.js} +1 -1
  29. package/dist/{chunk-YDWTVO4E.js → chunk-PIIUJIF7.js} +1 -1
  30. package/dist/chunk-PVUTRA5K.js +5 -0
  31. package/dist/chunk-Q7EUZ6NN.js +1 -0
  32. package/dist/chunk-RLMYS3XZ.js +1 -0
  33. package/dist/chunk-RRFOCAH6.js +1 -0
  34. package/dist/{chunk-Q46YJCQH.js → chunk-T6RPUERH.js} +1 -1
  35. package/dist/{chunk-IPNJDNE7.js → chunk-T7GWBGOO.js} +1 -1
  36. package/dist/{chunk-U2T2XWDA.js → chunk-U347KVM4.js} +1 -1
  37. package/dist/chunk-UAMWD4GG.js +1 -0
  38. package/dist/chunk-VN6RDSK2.js +1 -0
  39. package/dist/{chunk-CJMFZXIZ.js → chunk-W2ZU226Q.js} +1 -1
  40. package/dist/{chunk-UF746BQ4.js → chunk-XINLP35X.js} +1 -1
  41. package/dist/{chunk-TONEKQM3.js → chunk-XMDNNSMK.js} +1 -1
  42. package/dist/{chunk-INXDSJRC.js → chunk-YOUAVGHJ.js} +1 -1
  43. package/dist/chunk-YV2A2VWG.js +1 -0
  44. package/dist/{chunk-PBN426RU.js → chunk-ZGVA2SR5.js} +1 -1
  45. package/dist/compat/index.cjs +10 -10
  46. package/dist/compat/index.d.cts +17 -14
  47. package/dist/compat/index.d.ts +17 -14
  48. package/dist/compat/index.js +1 -1
  49. package/dist/compat/jotai/index.d.cts +2 -2
  50. package/dist/compat/jotai/index.d.ts +2 -2
  51. package/dist/compat/nanostores/index.d.cts +2 -2
  52. package/dist/compat/nanostores/index.d.ts +2 -2
  53. package/dist/compat/nestjs/index.cjs +12 -12
  54. package/dist/compat/nestjs/index.d.cts +9 -6
  55. package/dist/compat/nestjs/index.d.ts +9 -6
  56. package/dist/compat/nestjs/index.js +1 -1
  57. package/dist/compat/react/index.d.cts +2 -2
  58. package/dist/compat/react/index.d.ts +2 -2
  59. package/dist/compat/solid/index.d.cts +2 -2
  60. package/dist/compat/solid/index.d.ts +2 -2
  61. package/dist/compat/svelte/index.d.cts +2 -2
  62. package/dist/compat/svelte/index.d.ts +2 -2
  63. package/dist/compat/vue/index.d.cts +2 -2
  64. package/dist/compat/vue/index.d.ts +2 -2
  65. package/dist/compat/zustand/index.cjs +7 -7
  66. package/dist/compat/zustand/index.d.cts +5 -4
  67. package/dist/compat/zustand/index.d.ts +5 -4
  68. package/dist/compat/zustand/index.js +1 -1
  69. package/dist/{composite-BPDU_XV1.d.ts → composite-CT_mApQD.d.ts} +2 -2
  70. package/dist/{composite-CmvdhTJe.d.cts → composite-_XckYx2e.d.cts} +2 -2
  71. package/dist/{content-addressed-storage-DqIWCmZG.d.cts → content-addressed-storage-4-ST1tYk.d.cts} +5 -5
  72. package/dist/{content-addressed-storage-BUiREIuj.d.ts → content-addressed-storage-DuYMjV7o.d.ts} +5 -5
  73. package/dist/core/index.d.cts +4 -4
  74. package/dist/core/index.d.ts +4 -4
  75. package/dist/extra/browser.cjs +1 -1
  76. package/dist/extra/browser.d.cts +4 -3
  77. package/dist/extra/browser.d.ts +4 -3
  78. package/dist/extra/browser.js +1 -1
  79. package/dist/extra/index.cjs +19 -19
  80. package/dist/extra/index.d.cts +13 -12
  81. package/dist/extra/index.d.ts +13 -12
  82. package/dist/extra/index.js +1 -1
  83. package/dist/extra/node.cjs +2 -3
  84. package/dist/extra/node.d.cts +3 -3
  85. package/dist/extra/node.d.ts +3 -3
  86. package/dist/extra/node.js +2 -2
  87. package/dist/extra/operators.cjs +1 -1
  88. package/dist/extra/operators.d.cts +1 -1
  89. package/dist/extra/operators.d.ts +1 -1
  90. package/dist/extra/operators.js +1 -1
  91. package/dist/extra/reactive.cjs +1 -1
  92. package/dist/extra/reactive.d.cts +4 -3
  93. package/dist/extra/reactive.d.ts +4 -3
  94. package/dist/extra/reactive.js +1 -1
  95. package/dist/extra/sources.cjs +1 -1
  96. package/dist/extra/sources.d.cts +57 -2
  97. package/dist/extra/sources.d.ts +57 -2
  98. package/dist/extra/sources.js +1 -1
  99. package/dist/extra/storage-browser.cjs +1 -1
  100. package/dist/extra/storage-browser.d.cts +8 -42
  101. package/dist/extra/storage-browser.d.ts +8 -42
  102. package/dist/extra/storage-browser.js +1 -1
  103. package/dist/extra/storage-core.cjs +1 -1
  104. package/dist/extra/storage-core.d.cts +13 -83
  105. package/dist/extra/storage-core.d.ts +13 -83
  106. package/dist/extra/storage-core.js +1 -1
  107. package/dist/extra/storage-node.cjs +1 -2
  108. package/dist/extra/storage-node.d.cts +1 -59
  109. package/dist/extra/storage-node.d.ts +1 -59
  110. package/dist/extra/storage-node.js +0 -1
  111. package/dist/extra/storage-tiers-browser.cjs +1 -0
  112. package/dist/extra/storage-tiers-browser.d.cts +49 -0
  113. package/dist/extra/storage-tiers-browser.d.ts +49 -0
  114. package/dist/extra/storage-tiers-browser.js +1 -0
  115. package/dist/extra/storage-tiers-node.cjs +1 -0
  116. package/dist/extra/storage-tiers-node.d.cts +86 -0
  117. package/dist/extra/storage-tiers-node.d.ts +86 -0
  118. package/dist/extra/storage-tiers-node.js +1 -0
  119. package/dist/extra/storage-tiers.cjs +1 -0
  120. package/dist/extra/storage-tiers.d.cts +284 -0
  121. package/dist/extra/storage-tiers.d.ts +284 -0
  122. package/dist/extra/storage-tiers.js +1 -0
  123. package/dist/{fallback-mYSd8vQo.d.ts → fallback-DuEXfA4F.d.ts} +14 -14
  124. package/dist/{fallback-9YznPvPP.d.cts → fallback-axI2cXwt.d.cts} +14 -14
  125. package/dist/graph/index.cjs +3 -3
  126. package/dist/graph/index.d.cts +6 -5
  127. package/dist/graph/index.d.ts +6 -5
  128. package/dist/graph/index.js +1 -1
  129. package/dist/{graph-BROUZPG9.d.ts → graph-Cv-8x0ZI.d.ts} +28 -16
  130. package/dist/{graph-DaoydJ_u.d.cts → graph-kTltt95s.d.cts} +28 -16
  131. package/dist/imperative-audit-ahAE65a9.d.cts +28 -0
  132. package/dist/imperative-audit-ahAE65a9.d.ts +28 -0
  133. package/dist/{index-CI5fULSz.d.ts → index-8OxXae3g.d.ts} +1 -1
  134. package/dist/{index-CQ1gt4rn.d.cts → index-9xhIaM-w.d.cts} +1 -1
  135. package/dist/{index-DhWrMTI6.d.cts → index-B3D_z0Z6.d.cts} +1 -1
  136. package/dist/{index-Ccv_61jG.d.cts → index-B3Dfl5sS.d.cts} +110 -27
  137. package/dist/{index-Dia4yc2y.d.ts → index-B4s70vYf.d.ts} +4 -4
  138. package/dist/{index-Db21wuaD.d.ts → index-B5UR87KG.d.ts} +3 -3
  139. package/dist/{index-DuvQAU02.d.ts → index-BBdwz2BW.d.ts} +2 -2
  140. package/dist/{index-B5eS17Bz.d.ts → index-BEvsFlfH.d.ts} +47 -32
  141. package/dist/{index-BUtCR0k6.d.ts → index-BF-ssbJB.d.ts} +7 -7
  142. package/dist/{index-ClKm7CFB.d.cts → index-BFuVcqL8.d.cts} +1 -1
  143. package/dist/{index-BkfL5MXh.d.cts → index-BWH17rK_.d.cts} +3 -3
  144. package/dist/{index-CD7qmvSf.d.ts → index-BZ1V5GzX.d.ts} +3 -3
  145. package/dist/{index-BDEhWLF4.d.cts → index-BhkPzu-Z.d.cts} +4 -4
  146. package/dist/{index-CNxdDb2e.d.ts → index-Bilohojo.d.ts} +3 -3
  147. package/dist/{index-zA1uVtk0.d.ts → index-BiomL7AW.d.ts} +1 -1
  148. package/dist/{index-BWiX5foT.d.ts → index-BjWZARLy.d.ts} +1 -1
  149. package/dist/{index-IxinNgAH.d.cts → index-BkbawFkI.d.cts} +16 -15
  150. package/dist/{index-RJX4snyi.d.cts → index-BlRVj-7Q.d.cts} +21 -21
  151. package/dist/index-BpFwRAf9.d.cts +26 -0
  152. package/dist/{index-Ds3Rz9m9.d.cts → index-BsZlbHM5.d.cts} +3 -3
  153. package/dist/{index-BFHpNSsV.d.ts → index-BtY2QVDf.d.cts} +8 -7
  154. package/dist/{index-BsxqmV6u.d.ts → index-BuMzxRO2.d.ts} +2 -2
  155. package/dist/{index-C5uMGVJw.d.ts → index-BwYGLgmI.d.ts} +4 -4
  156. package/dist/{index-3L3RC3VJ.d.ts → index-C40wA8zt.d.ts} +7 -7
  157. package/dist/{index-Bi4ZP6Hc.d.ts → index-C9xF16gc.d.ts} +110 -27
  158. package/dist/index-CAIhFfws.d.ts +171 -0
  159. package/dist/{index-BRisOxlx.d.ts → index-CDvC1m5p.d.ts} +1 -1
  160. package/dist/index-CGKs5ixV.d.cts +287 -0
  161. package/dist/{index-ygRFoyrN.d.ts → index-CI_yjtua.d.ts} +2 -2
  162. package/dist/{index-DxEcY7Om.d.ts → index-CIcu6fIR.d.ts} +1 -1
  163. package/dist/{index-CQtnGFrZ.d.cts → index-CfOSES72.d.cts} +7 -7
  164. package/dist/{index-Bd2AjMQY.d.ts → index-Cot94_82.d.ts} +21 -21
  165. package/dist/{index-B1hFhK1K.d.cts → index-CpZKtdMw.d.cts} +1 -1
  166. package/dist/{index-BO6t0HjV.d.cts → index-CqSJ25A9.d.cts} +1 -1
  167. package/dist/{index-Jgl7ev9I.d.cts → index-CzC0G0C3.d.cts} +9 -9
  168. package/dist/{index-p0bkNfby.d.cts → index-D6JRP-1_.d.cts} +3 -3
  169. package/dist/{index-D23g00HE.d.cts → index-D7r_vd0b.d.cts} +4 -4
  170. package/dist/{index-Cp91Sxbo.d.cts → index-D8IyqHvT.d.cts} +3 -3
  171. package/dist/{index-iKsmdnq6.d.cts → index-D9qoEOj_.d.cts} +2 -2
  172. package/dist/index-DBmBtqAN.d.ts +461 -0
  173. package/dist/{index-nP13Qe6T.d.ts → index-DFe2Pk2u.d.ts} +1 -1
  174. package/dist/{index-Cn3taOmp.d.cts → index-DKp1CIbG.d.cts} +2 -2
  175. package/dist/{index-CoR-tOZA.d.cts → index-DSD6xnbT.d.ts} +8 -7
  176. package/dist/{index-DheNs40A.d.ts → index-DXSLMoma.d.ts} +2 -2
  177. package/dist/{index-ZIQaKIdY.d.cts → index-DXZsXxtU.d.cts} +47 -32
  178. package/dist/{index-BVTjuKeP.d.cts → index-D_QQ_dTD.d.cts} +1 -1
  179. package/dist/{index-ChZvMC4M.d.cts → index-DeyzuqAi.d.cts} +7 -7
  180. package/dist/{index-Chi9IiHJ.d.ts → index-DlccEIi3.d.ts} +3 -3
  181. package/dist/{index-DR3XqZlV.d.cts → index-DmtWMP0X.d.cts} +1 -1
  182. package/dist/{index-CbCNoogR.d.ts → index-Dp69u0ym.d.ts} +16 -15
  183. package/dist/{index-b4a6Sg0R.d.ts → index-DwNNufVa.d.ts} +4 -4
  184. package/dist/{index-D80nGRb9.d.ts → index-DzYTXMBz.d.ts} +3 -3
  185. package/dist/index-DzgS5uYi.d.ts +26 -0
  186. package/dist/{index-B-KCkW4M.d.cts → index-GaW6Welt.d.cts} +4 -4
  187. package/dist/{index-DupIl9wI.d.ts → index-JYtN9uqM.d.ts} +1 -1
  188. package/dist/{index-Ced0dphF.d.ts → index-KNAMYngu.d.ts} +9 -9
  189. package/dist/{index-BpjQanLs.d.cts → index-PluovH45.d.cts} +2 -2
  190. package/dist/index-Qq-G9B6g.d.cts +171 -0
  191. package/dist/{index-yJY9thRY.d.cts → index-XxSeddWP.d.cts} +2 -2
  192. package/dist/{index-C8_bnDBZ.d.cts → index-ZhKyR8co.d.cts} +3 -3
  193. package/dist/index-hXKhbfh-.d.ts +287 -0
  194. package/dist/index-zK_mN1D-.d.cts +461 -0
  195. package/dist/index.cjs +59 -59
  196. package/dist/index.d.cts +53 -49
  197. package/dist/index.d.ts +53 -49
  198. package/dist/index.js +1 -1
  199. package/dist/{meta-BdjSt8ky.d.cts → meta-BGO6C7K9.d.cts} +1 -1
  200. package/dist/{meta-CtDjj7cU.d.ts → meta-CC6EPdpK.d.ts} +1 -1
  201. package/dist/{node-8qx0kgYt.d.cts → node-fSc-hCv8.d.cts} +1 -1
  202. package/dist/{node-8qx0kgYt.d.ts → node-fSc-hCv8.d.ts} +1 -1
  203. package/dist/{observable-B6Ba-TTI.d.cts → observable-Cqty11jG.d.cts} +1 -1
  204. package/dist/{observable-DOniYM2B.d.ts → observable-EAV_rNfM.d.ts} +1 -1
  205. package/dist/patterns/ai/browser.cjs +5 -5
  206. package/dist/patterns/ai/browser.d.cts +4 -4
  207. package/dist/patterns/ai/browser.d.ts +4 -4
  208. package/dist/patterns/ai/browser.js +1 -1
  209. package/dist/patterns/ai/index.cjs +19 -19
  210. package/dist/patterns/ai/index.d.cts +19 -17
  211. package/dist/patterns/ai/index.d.ts +19 -17
  212. package/dist/patterns/ai/index.js +1 -1
  213. package/dist/patterns/ai/node.cjs +1 -2
  214. package/dist/patterns/ai/node.d.cts +9 -9
  215. package/dist/patterns/ai/node.d.ts +9 -9
  216. package/dist/patterns/ai/node.js +1 -1
  217. package/dist/patterns/audit/index.cjs +6 -6
  218. package/dist/patterns/audit/index.d.cts +7 -5
  219. package/dist/patterns/audit/index.d.ts +7 -5
  220. package/dist/patterns/audit/index.js +1 -1
  221. package/dist/patterns/cqrs/index.cjs +7 -7
  222. package/dist/patterns/cqrs/index.d.cts +7 -4
  223. package/dist/patterns/cqrs/index.d.ts +7 -4
  224. package/dist/patterns/cqrs/index.js +1 -1
  225. package/dist/patterns/demo-shell/index.cjs +8 -8
  226. package/dist/patterns/demo-shell/index.d.cts +6 -5
  227. package/dist/patterns/demo-shell/index.d.ts +6 -5
  228. package/dist/patterns/demo-shell/index.js +1 -1
  229. package/dist/patterns/domain-templates/index.cjs +5 -5
  230. package/dist/patterns/domain-templates/index.d.cts +5 -4
  231. package/dist/patterns/domain-templates/index.d.ts +5 -4
  232. package/dist/patterns/domain-templates/index.js +1 -1
  233. package/dist/patterns/graphspec/index.cjs +20 -20
  234. package/dist/patterns/graphspec/index.d.cts +6 -5
  235. package/dist/patterns/graphspec/index.d.ts +6 -5
  236. package/dist/patterns/graphspec/index.js +1 -1
  237. package/dist/patterns/guarded-execution/index.cjs +7 -7
  238. package/dist/patterns/guarded-execution/index.d.cts +8 -6
  239. package/dist/patterns/guarded-execution/index.d.ts +8 -6
  240. package/dist/patterns/guarded-execution/index.js +1 -1
  241. package/dist/patterns/harness/index.cjs +12 -12
  242. package/dist/patterns/harness/index.d.cts +13 -10
  243. package/dist/patterns/harness/index.d.ts +13 -10
  244. package/dist/patterns/harness/index.js +1 -1
  245. package/dist/patterns/job-queue/index.cjs +7 -7
  246. package/dist/patterns/job-queue/index.d.cts +8 -4
  247. package/dist/patterns/job-queue/index.d.ts +8 -4
  248. package/dist/patterns/job-queue/index.js +1 -1
  249. package/dist/patterns/lens/index.cjs +4 -4
  250. package/dist/patterns/lens/index.d.cts +7 -6
  251. package/dist/patterns/lens/index.d.ts +7 -6
  252. package/dist/patterns/lens/index.js +1 -1
  253. package/dist/patterns/memory/index.cjs +1 -1
  254. package/dist/patterns/memory/index.d.cts +5 -4
  255. package/dist/patterns/memory/index.d.ts +5 -4
  256. package/dist/patterns/memory/index.js +1 -1
  257. package/dist/patterns/messaging/index.cjs +7 -7
  258. package/dist/patterns/messaging/index.d.cts +6 -4
  259. package/dist/patterns/messaging/index.d.ts +6 -4
  260. package/dist/patterns/messaging/index.js +1 -1
  261. package/dist/patterns/orchestration/index.cjs +7 -7
  262. package/dist/patterns/orchestration/index.d.cts +8 -5
  263. package/dist/patterns/orchestration/index.d.ts +8 -5
  264. package/dist/patterns/orchestration/index.js +1 -1
  265. package/dist/patterns/process/index.cjs +1 -0
  266. package/dist/patterns/process/index.d.cts +10 -0
  267. package/dist/patterns/process/index.d.ts +10 -0
  268. package/dist/patterns/process/index.js +1 -0
  269. package/dist/patterns/reactive-layout/index.cjs +5 -5
  270. package/dist/patterns/reactive-layout/index.d.cts +6 -5
  271. package/dist/patterns/reactive-layout/index.d.ts +6 -5
  272. package/dist/patterns/reactive-layout/index.js +1 -1
  273. package/dist/patterns/reduction/index.cjs +1 -1
  274. package/dist/patterns/reduction/index.d.cts +5 -4
  275. package/dist/patterns/reduction/index.d.ts +5 -4
  276. package/dist/patterns/reduction/index.js +1 -1
  277. package/dist/patterns/refine-loop/index.cjs +8 -8
  278. package/dist/patterns/refine-loop/index.d.cts +7 -5
  279. package/dist/patterns/refine-loop/index.d.ts +7 -5
  280. package/dist/patterns/refine-loop/index.js +1 -1
  281. package/dist/patterns/resilient-pipeline/index.cjs +1 -1
  282. package/dist/patterns/resilient-pipeline/index.d.cts +7 -6
  283. package/dist/patterns/resilient-pipeline/index.d.ts +7 -6
  284. package/dist/patterns/resilient-pipeline/index.js +1 -1
  285. package/dist/patterns/surface/index.cjs +11 -11
  286. package/dist/patterns/surface/index.d.cts +7 -6
  287. package/dist/patterns/surface/index.d.ts +7 -6
  288. package/dist/patterns/surface/index.js +1 -1
  289. package/dist/pipeline-graph-B85HUrWg.d.cts +120 -0
  290. package/dist/pipeline-graph-HOTU4UG0.d.ts +120 -0
  291. package/dist/{reactive-layout-DBJ3Vz-m.d.ts → reactive-layout-Btv0-efV.d.ts} +2 -2
  292. package/dist/{reactive-layout-Dk9AOQb_.d.cts → reactive-layout-D9zqqaqK.d.cts} +2 -2
  293. package/dist/reactive-log-ByBb8g6A.d.ts +188 -0
  294. package/dist/reactive-log-CgbNqksB.d.cts +188 -0
  295. package/dist/{reactive-map-LjwjcFaW.d.ts → reactive-map-CHyeCf4D.d.ts} +1 -1
  296. package/dist/{reactive-map-Cm89Hk0c.d.cts → reactive-map-DmgeADH8.d.cts} +1 -1
  297. package/dist/{resilience-RjDIHZNZ.d.ts → resilience-BWP2c7Af.d.cts} +27 -45
  298. package/dist/{resilience-N_VtLf7W.d.cts → resilience-Bys63Cpd.d.ts} +27 -45
  299. package/dist/resilience-OBU472D2.js +1 -0
  300. package/dist/{sugar-CQkn_rxB.d.ts → sugar-D13E2M_z.d.ts} +1 -1
  301. package/dist/{sugar-DVEYhR7a.d.cts → sugar-DgaGJcI6.d.cts} +1 -1
  302. package/dist/{topology-tree-BB6oJxMz.d.cts → topology-tree-C50l9ARE.d.cts} +1 -1
  303. package/dist/{topology-tree-CAFOG5S5.d.ts → topology-tree-CJsT24DP.d.ts} +1 -1
  304. package/dist/{types-Cp_4coR_.d.cts → types-BMSGPlpO.d.cts} +1 -1
  305. package/dist/{types-B2LfBvNc.d.ts → types-CidcBDuk.d.ts} +1 -1
  306. package/package.json +41 -1
  307. package/dist/chunk-2JO6LXFT.js +0 -7
  308. package/dist/chunk-2LZ6DL45.js +0 -1
  309. package/dist/chunk-3JXNEPCD.js +0 -2
  310. package/dist/chunk-3Y4BXFFR.js +0 -1
  311. package/dist/chunk-55T3K37W.js +0 -1
  312. package/dist/chunk-6HQ6HVTF.js +0 -1
  313. package/dist/chunk-7Q2WPFQ7.js +0 -1
  314. package/dist/chunk-FKRPIRE6.js +0 -1
  315. package/dist/chunk-HTBOCKVD.js +0 -1
  316. package/dist/chunk-I6VIH3VA.js +0 -1
  317. package/dist/chunk-IB64M7VP.js +0 -1
  318. package/dist/chunk-IJFSR4NU.js +0 -1
  319. package/dist/chunk-LOF5HSD3.js +0 -18
  320. package/dist/chunk-T2TB37TW.js +0 -1
  321. package/dist/chunk-T7EQPKOP.js +0 -1
  322. package/dist/chunk-Y63GWRHO.js +0 -5
  323. package/dist/chunk-YUBV7EEE.js +0 -1
  324. package/dist/index-C2Dey3L-.d.cts +0 -152
  325. package/dist/index-ClJUZAOr.d.cts +0 -101
  326. package/dist/index-Cq7Uqgu4.d.ts +0 -192
  327. package/dist/index-Dtpr2FIB.d.ts +0 -101
  328. package/dist/index-HvJ90_tX.d.ts +0 -152
  329. package/dist/index-wcfc7W-f.d.cts +0 -192
  330. package/dist/reactive-log-CWC7jO4J.d.cts +0 -190
  331. package/dist/reactive-log-CqaBg8nf.d.ts +0 -190
  332. package/dist/resilience-7UZHSSGC.js +0 -1
  333. /package/dist/{chunk-L3KUKDZC.js → chunk-O32GJOUJ.js} +0 -0
@@ -1,192 +0,0 @@
1
- import { a as Node } from './node-8qx0kgYt.js';
2
- import { a as GraphOptions, G as Graph } from './graph-BROUZPG9.js';
3
-
4
- /**
5
- * CQRS patterns (roadmap §4.5).
6
- *
7
- * Composition layer over reactiveLog (3.2), pipeline/sagas (4.1), event bus (4.2),
8
- * projections (4.3). Guards (1.5) enforce command/query boundary.
9
- *
10
- * - `cqrs(name, opts?)` → `CqrsGraph` — top-level factory
11
- * - `CqrsGraph.command(name, handler)` — write-only node; guard rejects `observe`
12
- * - `CqrsGraph.event(name)` — backed by `reactiveLog`; append-only
13
- * - `CqrsGraph.projection(name, events, reducer, initial)` — read-only derived; guard rejects `write`
14
- * - `CqrsGraph.saga(name, events, handler)` — event-driven side effects
15
- */
16
-
17
- /**
18
- * Immutable envelope for events emitted by command handlers.
19
- *
20
- * `seq` is a per-graph monotonic counter that provides stable ordering when
21
- * multiple events share the same `timestampNs` (same wall-clock tick).
22
- */
23
- type CqrsEvent<T = unknown> = {
24
- type: string;
25
- payload: T;
26
- /** Wall-clock nanoseconds (via `wallClockNs()`). */
27
- timestampNs: number;
28
- /** Monotonic sequence within this CqrsGraph instance. */
29
- seq: number;
30
- /** V0 identity of the event log node at append time (§6.0b). */
31
- v0?: {
32
- id: string;
33
- version: number;
34
- };
35
- };
36
- /**
37
- * Opaque replay cursor returned by `loadEvents`. Pass it back to
38
- * `loadEvents` to resume from the last position.
39
- */
40
- type EventStoreCursor = {
41
- readonly __brand?: "EventStoreCursor";
42
- [key: string]: unknown;
43
- };
44
- /**
45
- * Result of `loadEvents` — events plus an opaque cursor for resumption.
46
- */
47
- type LoadEventsResult = {
48
- events: CqrsEvent[];
49
- cursor: EventStoreCursor | undefined;
50
- };
51
- /**
52
- * Pluggable persistence for CQRS events.
53
- *
54
- * **`persist`:** Must be synchronous. Called from the dispatch path inside
55
- * `batch()`. Adapters that need async I/O should buffer internally and
56
- * expose a `flush()` method for explicit drain.
57
- */
58
- interface EventStoreAdapter {
59
- persist(event: CqrsEvent): void;
60
- /**
61
- * Load persisted events. When `cursor` is provided, returns only events
62
- * after that position. The returned `cursor` should be passed to the next
63
- * `loadEvents` call for incremental replay.
64
- */
65
- loadEvents(eventType: string, cursor?: EventStoreCursor): LoadEventsResult | Promise<LoadEventsResult>;
66
- /** Optional explicit flush for adapters with async I/O. */
67
- flush?(): Promise<void>;
68
- }
69
- declare class MemoryEventStore implements EventStoreAdapter {
70
- private readonly _store;
71
- persist(event: CqrsEvent): void;
72
- loadEvents(eventType: string, cursor?: EventStoreCursor): LoadEventsResult;
73
- clear(): void;
74
- }
75
- type CommandActions = {
76
- /** Append an event to a named event log (bypasses event guard). */
77
- emit: (eventName: string, payload: unknown) => void;
78
- };
79
- /**
80
- * Command handler receives the dispatch payload and actions to emit events.
81
- *
82
- * **Purity:** Handlers should not mutate the payload. Event emission via
83
- * `actions.emit()` is the only sanctioned side effect.
84
- */
85
- type CommandHandler<T = unknown> = (payload: T, actions: CommandActions) => void;
86
- /**
87
- * Projection reducer folds events into a read model.
88
- *
89
- * **Purity contract:** Reducers MUST be pure — return a new state value
90
- * without mutating `state` or any event. The `state` parameter is the
91
- * original `initial` value on every invocation (full event-sourcing replay),
92
- * so mutation would corrupt future recomputations.
93
- */
94
- type ProjectionReducer<TState = unknown, TEvent = unknown> = (state: TState, events: readonly CqrsEvent<TEvent>[]) => TState;
95
- type SagaHandler<T = unknown> = (event: CqrsEvent<T>) => void;
96
- type CqrsOptions = {
97
- graph?: GraphOptions;
98
- };
99
- declare class CqrsGraph extends Graph {
100
- private readonly _eventLogs;
101
- private readonly _commandHandlers;
102
- private readonly _projections;
103
- private readonly _sagas;
104
- private readonly _keepaliveDisposers;
105
- private _eventStore;
106
- private _seq;
107
- constructor(name: string, opts?: CqrsOptions);
108
- destroy(): void;
109
- /**
110
- * Register a named event stream backed by `reactiveLog`.
111
- * Guard denies external `write` — only commands append internally.
112
- */
113
- event(name: string): Node<readonly CqrsEvent[]>;
114
- /** Internal: append to an event log, auto-registering if needed. */
115
- private _appendEvent;
116
- /**
117
- * Register a command with its handler. Guard denies `observe` (write-only).
118
- * Use `dispatch(name, payload)` to execute.
119
- *
120
- * The command node carries dynamic `meta.error` — a reactive companion
121
- * that holds the last handler error (or `null` on success).
122
- */
123
- command<T = unknown>(name: string, handler: CommandHandler<T>): Node<T>;
124
- /**
125
- * Execute a registered command. Wraps the entire dispatch in `batch()` so
126
- * the command node DATA and all emitted events settle atomically.
127
- *
128
- * If the handler throws, `meta.error` on the command node is set to the
129
- * error and the exception is re-thrown.
130
- */
131
- dispatch<T = unknown>(commandName: string, payload: T): void;
132
- /**
133
- * Register a read-only projection derived from event streams.
134
- * Guard denies `write` — value is computed from events only.
135
- *
136
- * **Purity contract:** The `reducer` must be a pure function — it receives
137
- * the original `initial` on every invocation (full event-sourcing replay).
138
- * Never mutate `initial`; always return a new value.
139
- */
140
- projection<TState>(name: string, eventNames: readonly string[], reducer: ProjectionReducer<TState>, initial: TState): Node<TState>;
141
- /**
142
- * Register an event-driven side effect. Runs handler for each **new** event
143
- * from the specified streams (tracks last-processed entry count per stream).
144
- *
145
- * The saga node carries dynamic `meta.error` — a reactive companion that
146
- * holds the last handler error (or `null` on success). Handler errors do
147
- * not propagate out of the saga run (the event cursor still advances so
148
- * the same entry is not delivered twice).
149
- */
150
- saga<T = unknown>(name: string, eventNames: readonly string[], handler: SagaHandler<T>): Node<unknown>;
151
- useEventStore(adapter: EventStoreAdapter): void;
152
- /**
153
- * Replay persisted events through a reducer to rebuild a read model.
154
- * Requires an event store adapter wired via `useEventStore()`.
155
- */
156
- rebuildProjection<TState>(eventNames: readonly string[], reducer: ProjectionReducer<TState>, initial: TState): Promise<TState>;
157
- }
158
- /**
159
- * Create a CQRS graph container.
160
- *
161
- * @example
162
- * ```ts
163
- * const app = cqrs("orders");
164
- * app.event("orderPlaced");
165
- * app.command("placeOrder", (payload, { emit }) => {
166
- * emit("orderPlaced", { orderId: payload.id, amount: payload.amount });
167
- * });
168
- * app.projection("orderCount", ["orderPlaced"], (_s, events) => events.length, 0);
169
- * app.dispatch("placeOrder", { id: "1", amount: 100 });
170
- * ```
171
- */
172
- declare function cqrs(name: string, opts?: CqrsOptions): CqrsGraph;
173
-
174
- type index_CommandActions = CommandActions;
175
- type index_CommandHandler<T = unknown> = CommandHandler<T>;
176
- type index_CqrsEvent<T = unknown> = CqrsEvent<T>;
177
- type index_CqrsGraph = CqrsGraph;
178
- declare const index_CqrsGraph: typeof CqrsGraph;
179
- type index_CqrsOptions = CqrsOptions;
180
- type index_EventStoreAdapter = EventStoreAdapter;
181
- type index_EventStoreCursor = EventStoreCursor;
182
- type index_LoadEventsResult = LoadEventsResult;
183
- type index_MemoryEventStore = MemoryEventStore;
184
- declare const index_MemoryEventStore: typeof MemoryEventStore;
185
- type index_ProjectionReducer<TState = unknown, TEvent = unknown> = ProjectionReducer<TState, TEvent>;
186
- type index_SagaHandler<T = unknown> = SagaHandler<T>;
187
- declare const index_cqrs: typeof cqrs;
188
- declare namespace index {
189
- export { type index_CommandActions as CommandActions, type index_CommandHandler as CommandHandler, type index_CqrsEvent as CqrsEvent, index_CqrsGraph as CqrsGraph, type index_CqrsOptions as CqrsOptions, type index_EventStoreAdapter as EventStoreAdapter, type index_EventStoreCursor as EventStoreCursor, type index_LoadEventsResult as LoadEventsResult, index_MemoryEventStore as MemoryEventStore, type index_ProjectionReducer as ProjectionReducer, type index_SagaHandler as SagaHandler, index_cqrs as cqrs };
190
- }
191
-
192
- export { type CqrsOptions as C, type EventStoreAdapter as E, type LoadEventsResult as L, MemoryEventStore as M, type ProjectionReducer as P, type SagaHandler as S, CqrsGraph as a, type CommandActions as b, type CommandHandler as c, type CqrsEvent as d, type EventStoreCursor as e, cqrs as f, index as i };
@@ -1,101 +0,0 @@
1
- import { a as Node } from './node-8qx0kgYt.js';
2
- import { G as Graph, a as GraphOptions } from './graph-BROUZPG9.js';
3
-
4
- /**
5
- * Job queue patterns (roadmap §4.2).
6
- *
7
- * Queue / flow primitives modeled as graph factories:
8
- * - `jobQueue()` — claim/ack/nack workflow with reactive depth.
9
- * - `jobFlow()` — multi-stage queue chain.
10
- *
11
- * Topic / subscription / hub primitives live in `patterns/messaging`.
12
- */
13
-
14
- type JobState = "queued" | "inflight";
15
- type JobEnvelope<T> = {
16
- id: string;
17
- payload: T;
18
- attempts: number;
19
- metadata: Readonly<Record<string, unknown>>;
20
- state: JobState;
21
- };
22
- type JobQueueOptions = {
23
- graph?: GraphOptions;
24
- };
25
- declare class JobQueueGraph<T> extends Graph {
26
- private readonly _pending;
27
- private readonly _jobs;
28
- private _seq;
29
- readonly pending: Node<readonly string[]>;
30
- readonly jobs: Node<ReadonlyMap<string, JobEnvelope<T>>>;
31
- readonly depth: Node<number>;
32
- constructor(name: string, opts?: JobQueueOptions);
33
- enqueue(payload: T, opts?: {
34
- id?: string;
35
- metadata?: Record<string, unknown>;
36
- }): string;
37
- claim(limit?: number): readonly JobEnvelope<T>[];
38
- ack(id: string): boolean;
39
- nack(id: string, opts?: {
40
- requeue?: boolean;
41
- }): boolean;
42
- /**
43
- * Remove a job by id regardless of its current state. Returns `true` if
44
- * the job existed and was removed, `false` if no job has this id.
45
- *
46
- * `ack` only works on inflight; `nack` only works on inflight.
47
- * `removeById` is the state-agnostic escape hatch — useful for
48
- * audit/observability layers that enqueue but never claim, and need to
49
- * finalize a job when an external decision (e.g. harness verify
50
- * outcome) resolves it. Distinct name from the inherited
51
- * {@link Graph.remove}, which removes a mounted child subgraph by path.
52
- *
53
- * When the job is in `queued` state, its id is also pulled from the
54
- * `pending` list — depth + pending snapshot stay consistent.
55
- */
56
- removeById(id: string): boolean;
57
- }
58
- type JobFlowOptions = {
59
- graph?: GraphOptions;
60
- stages?: readonly string[];
61
- maxPerPump?: number;
62
- };
63
- declare class JobFlowGraph<T> extends Graph {
64
- private readonly _stageNames;
65
- private readonly _queues;
66
- private readonly _completed;
67
- readonly completed: Node<readonly JobEnvelope<T>[]>;
68
- readonly completedCount: Node<number>;
69
- constructor(name: string, opts?: JobFlowOptions);
70
- stages(): readonly string[];
71
- queue(stage: string): JobQueueGraph<T>;
72
- enqueue(payload: T, opts?: {
73
- id?: string;
74
- metadata?: Record<string, unknown>;
75
- }): string;
76
- retainedCompleted(): readonly JobEnvelope<T>[];
77
- }
78
- /**
79
- * Creates a Pulsar-inspired job queue graph with claim/ack/nack workflow.
80
- */
81
- declare function jobQueue<T>(name: string, opts?: JobQueueOptions): JobQueueGraph<T>;
82
- /**
83
- * Creates an autonomous multi-stage queue chain graph.
84
- */
85
- declare function jobFlow<T>(name: string, opts?: JobFlowOptions): JobFlowGraph<T>;
86
-
87
- type index_JobEnvelope<T> = JobEnvelope<T>;
88
- type index_JobFlowGraph<T> = JobFlowGraph<T>;
89
- declare const index_JobFlowGraph: typeof JobFlowGraph;
90
- type index_JobFlowOptions = JobFlowOptions;
91
- type index_JobQueueGraph<T> = JobQueueGraph<T>;
92
- declare const index_JobQueueGraph: typeof JobQueueGraph;
93
- type index_JobQueueOptions = JobQueueOptions;
94
- type index_JobState = JobState;
95
- declare const index_jobFlow: typeof jobFlow;
96
- declare const index_jobQueue: typeof jobQueue;
97
- declare namespace index {
98
- export { type index_JobEnvelope as JobEnvelope, index_JobFlowGraph as JobFlowGraph, type index_JobFlowOptions as JobFlowOptions, index_JobQueueGraph as JobQueueGraph, type index_JobQueueOptions as JobQueueOptions, type index_JobState as JobState, index_jobFlow as jobFlow, index_jobQueue as jobQueue };
99
- }
100
-
101
- export { JobQueueGraph as J, type JobEnvelope as a, JobFlowGraph as b, type JobFlowOptions as c, type JobQueueOptions as d, type JobState as e, jobQueue as f, index as i, jobFlow as j };
@@ -1,152 +0,0 @@
1
- import { a as Node, N as NodeOptions, c as NodeActions } from './node-8qx0kgYt.js';
2
- import { D as DerivedFn } from './sugar-CQkn_rxB.js';
3
- import { G as Graph, a as GraphOptions } from './graph-BROUZPG9.js';
4
-
5
- /**
6
- * Orchestration patterns (roadmap §4.1).
7
- *
8
- * Domain-layer helpers that build workflow shapes on top of core + extra primitives.
9
- * Exported under the `patterns.orchestration` namespace to avoid collisions with
10
- * Phase 2 operator names (for example `gate`, `forEach`).
11
- */
12
-
13
- type StepRef = string | Node<unknown>;
14
- type OrchestrationMeta = {
15
- orchestration?: true;
16
- orchestration_type?: string;
17
- };
18
- type OrchestrationStepOptions = Omit<NodeOptions<unknown>, "describeKind" | "name" | "meta"> & {
19
- deps?: ReadonlyArray<StepRef>;
20
- meta?: Record<string, unknown> & OrchestrationMeta;
21
- };
22
- type BranchResult<T> = {
23
- branch: "then" | "else";
24
- value: T;
25
- };
26
- type SensorControls<T> = {
27
- node: Node<T>;
28
- push(value: T): void;
29
- error(err: unknown): void;
30
- complete(): void;
31
- };
32
- type LoopOptions = Omit<OrchestrationStepOptions, "deps"> & {
33
- iterations?: number | StepRef;
34
- };
35
- type SubPipelineBuilder = (sub: Graph) => void;
36
- /**
37
- * Creates an orchestration graph container.
38
- */
39
- declare function pipeline(name: string, opts?: GraphOptions): Graph;
40
- /**
41
- * Registers a workflow task node.
42
- */
43
- declare function task<T>(graph: Graph, name: string, run: DerivedFn<T>, opts?: OrchestrationStepOptions): Node<T>;
44
- /**
45
- * Emits tagged branch outcomes (`then` / `else`) for each source value.
46
- */
47
- declare function branch<T>(graph: Graph, name: string, source: StepRef, predicate: (value: T) => boolean, opts?: Omit<OrchestrationStepOptions, "deps">): Node<BranchResult<T>>;
48
- type ApprovalOptions = Omit<OrchestrationStepOptions, "deps"> & {
49
- isApproved?: (value: unknown) => boolean;
50
- };
51
- /**
52
- * Human/LLM approval gate over a source value.
53
- */
54
- declare function approval<T>(graph: Graph, name: string, source: StepRef, approver: StepRef, opts?: ApprovalOptions): Node<T>;
55
- interface GateOptions {
56
- /** Maximum queue size. Oldest values are FIFO-dropped when exceeded. Default: Infinity. */
57
- maxPending?: number;
58
- /** Start in open mode (auto-approve). Default: false. */
59
- startOpen?: boolean;
60
- meta?: Record<string, unknown>;
61
- }
62
- /** Control surface returned by {@link gate}. */
63
- interface GateController<T> {
64
- /** The output node registered in the graph (subscribe to receive approved values). */
65
- node: Node<T>;
66
- /** Reactive queue of values waiting for approval. */
67
- pending: Node<T[]>;
68
- /** Derived count of pending items. */
69
- count: Node<number>;
70
- /** Whether the gate is currently open (auto-approving). */
71
- isOpen: Node<boolean>;
72
- /**
73
- * Reactive observable of the most recently rejected item, or `null` until
74
- * {@link GateController.reject reject} has been called. Subscribe to wire
75
- * an audit log, retry-policy hook, or dead-letter sink without having to
76
- * intercept `reject()` imperatively. `reject` still drops the value from
77
- * the queue; the observation is emitted before the discard so downstream
78
- * subscribers see the payload.
79
- */
80
- lastRejected: Node<T | null>;
81
- /** Approve and forward the next `count` pending values (default: 1). */
82
- approve(count?: number): void;
83
- /** Reject (discard) the next `count` pending values (default: 1). */
84
- reject(count?: number): void;
85
- /**
86
- * Transform and forward `count` pending values (default: 1).
87
- * `fn` receives `(value, index, pending)` — Array.map-style.
88
- */
89
- modify(fn: (value: T, index: number, pending: readonly T[]) => T, count?: number): void;
90
- /** Flush all pending values and auto-approve future values. */
91
- open(): void;
92
- /** Re-enable manual gating (stop auto-approving). */
93
- close(): void;
94
- }
95
- /**
96
- * Human-in-the-loop gate: queues incoming values from `source` and lets an external
97
- * controller {@link GateController.approve approve}, {@link GateController.reject reject},
98
- * or {@link GateController.modify modify} them before forwarding downstream.
99
- *
100
- * Observable surfaces (`pending`, `count`, `isOpen`) are reactive nodes registered in
101
- * the graph. The gate output node is also registered.
102
- */
103
- declare function gate<T>(graph: Graph, name: string, source: StepRef, opts?: GateOptions): GateController<T>;
104
- /**
105
- * Registers a join step that emits a tuple of latest dependency values.
106
- */
107
- declare function join<T extends readonly unknown[]>(graph: Graph, name: string, deps: {
108
- [K in keyof T]: StepRef;
109
- }, opts?: Omit<OrchestrationStepOptions, "deps">): Node<T>;
110
- /**
111
- * Registers a loop step that applies `iterate` to each source value N times.
112
- */
113
- declare function loop<T>(graph: Graph, name: string, source: StepRef, iterate: (value: T, iteration: number, actions: NodeActions) => T, opts?: LoopOptions): Node<T>;
114
- /**
115
- * Mounts and returns a child workflow graph.
116
- */
117
- declare function subPipeline(graph: Graph, name: string, childOrBuild?: Graph | SubPipelineBuilder, opts?: GraphOptions): Graph;
118
- /**
119
- * Registers a producer-style sensor source and returns imperative controls.
120
- */
121
- declare function sensor<T>(graph: Graph, name: string, initial?: T, opts?: Omit<NodeOptions<unknown>, "name" | "describeKind" | "meta"> & {
122
- meta?: Record<string, unknown>;
123
- }): SensorControls<T>;
124
- /**
125
- * Registers an error-recovery step for a source.
126
- */
127
- declare function onFailure<T>(graph: Graph, name: string, source: StepRef, recover: (err: unknown, actions: NodeActions) => T, opts?: Omit<OrchestrationStepOptions, "deps">): Node<T>;
128
-
129
- type index_ApprovalOptions = ApprovalOptions;
130
- type index_BranchResult<T> = BranchResult<T>;
131
- type index_GateController<T> = GateController<T>;
132
- type index_GateOptions = GateOptions;
133
- type index_LoopOptions = LoopOptions;
134
- type index_OrchestrationStepOptions = OrchestrationStepOptions;
135
- type index_SensorControls<T> = SensorControls<T>;
136
- type index_StepRef = StepRef;
137
- type index_SubPipelineBuilder = SubPipelineBuilder;
138
- declare const index_approval: typeof approval;
139
- declare const index_branch: typeof branch;
140
- declare const index_gate: typeof gate;
141
- declare const index_join: typeof join;
142
- declare const index_loop: typeof loop;
143
- declare const index_onFailure: typeof onFailure;
144
- declare const index_pipeline: typeof pipeline;
145
- declare const index_sensor: typeof sensor;
146
- declare const index_subPipeline: typeof subPipeline;
147
- declare const index_task: typeof task;
148
- declare namespace index {
149
- export { type index_ApprovalOptions as ApprovalOptions, type index_BranchResult as BranchResult, type index_GateController as GateController, type index_GateOptions as GateOptions, type index_LoopOptions as LoopOptions, type index_OrchestrationStepOptions as OrchestrationStepOptions, type index_SensorControls as SensorControls, type index_StepRef as StepRef, type index_SubPipelineBuilder as SubPipelineBuilder, index_approval as approval, index_branch as branch, index_gate as gate, index_join as join, index_loop as loop, index_onFailure as onFailure, index_pipeline as pipeline, index_sensor as sensor, index_subPipeline as subPipeline, index_task as task };
150
- }
151
-
152
- export { type ApprovalOptions as A, type BranchResult as B, type GateController as G, type LoopOptions as L, type OrchestrationStepOptions as O, type SensorControls as S, type GateOptions as a, type StepRef as b, type SubPipelineBuilder as c, approval as d, branch as e, subPipeline as f, gate as g, index as i, join as j, loop as l, onFailure as o, pipeline as p, sensor as s, task as t };
@@ -1,192 +0,0 @@
1
- import { a as Node } from './node-8qx0kgYt.cjs';
2
- import { a as GraphOptions, G as Graph } from './graph-DaoydJ_u.cjs';
3
-
4
- /**
5
- * CQRS patterns (roadmap §4.5).
6
- *
7
- * Composition layer over reactiveLog (3.2), pipeline/sagas (4.1), event bus (4.2),
8
- * projections (4.3). Guards (1.5) enforce command/query boundary.
9
- *
10
- * - `cqrs(name, opts?)` → `CqrsGraph` — top-level factory
11
- * - `CqrsGraph.command(name, handler)` — write-only node; guard rejects `observe`
12
- * - `CqrsGraph.event(name)` — backed by `reactiveLog`; append-only
13
- * - `CqrsGraph.projection(name, events, reducer, initial)` — read-only derived; guard rejects `write`
14
- * - `CqrsGraph.saga(name, events, handler)` — event-driven side effects
15
- */
16
-
17
- /**
18
- * Immutable envelope for events emitted by command handlers.
19
- *
20
- * `seq` is a per-graph monotonic counter that provides stable ordering when
21
- * multiple events share the same `timestampNs` (same wall-clock tick).
22
- */
23
- type CqrsEvent<T = unknown> = {
24
- type: string;
25
- payload: T;
26
- /** Wall-clock nanoseconds (via `wallClockNs()`). */
27
- timestampNs: number;
28
- /** Monotonic sequence within this CqrsGraph instance. */
29
- seq: number;
30
- /** V0 identity of the event log node at append time (§6.0b). */
31
- v0?: {
32
- id: string;
33
- version: number;
34
- };
35
- };
36
- /**
37
- * Opaque replay cursor returned by `loadEvents`. Pass it back to
38
- * `loadEvents` to resume from the last position.
39
- */
40
- type EventStoreCursor = {
41
- readonly __brand?: "EventStoreCursor";
42
- [key: string]: unknown;
43
- };
44
- /**
45
- * Result of `loadEvents` — events plus an opaque cursor for resumption.
46
- */
47
- type LoadEventsResult = {
48
- events: CqrsEvent[];
49
- cursor: EventStoreCursor | undefined;
50
- };
51
- /**
52
- * Pluggable persistence for CQRS events.
53
- *
54
- * **`persist`:** Must be synchronous. Called from the dispatch path inside
55
- * `batch()`. Adapters that need async I/O should buffer internally and
56
- * expose a `flush()` method for explicit drain.
57
- */
58
- interface EventStoreAdapter {
59
- persist(event: CqrsEvent): void;
60
- /**
61
- * Load persisted events. When `cursor` is provided, returns only events
62
- * after that position. The returned `cursor` should be passed to the next
63
- * `loadEvents` call for incremental replay.
64
- */
65
- loadEvents(eventType: string, cursor?: EventStoreCursor): LoadEventsResult | Promise<LoadEventsResult>;
66
- /** Optional explicit flush for adapters with async I/O. */
67
- flush?(): Promise<void>;
68
- }
69
- declare class MemoryEventStore implements EventStoreAdapter {
70
- private readonly _store;
71
- persist(event: CqrsEvent): void;
72
- loadEvents(eventType: string, cursor?: EventStoreCursor): LoadEventsResult;
73
- clear(): void;
74
- }
75
- type CommandActions = {
76
- /** Append an event to a named event log (bypasses event guard). */
77
- emit: (eventName: string, payload: unknown) => void;
78
- };
79
- /**
80
- * Command handler receives the dispatch payload and actions to emit events.
81
- *
82
- * **Purity:** Handlers should not mutate the payload. Event emission via
83
- * `actions.emit()` is the only sanctioned side effect.
84
- */
85
- type CommandHandler<T = unknown> = (payload: T, actions: CommandActions) => void;
86
- /**
87
- * Projection reducer folds events into a read model.
88
- *
89
- * **Purity contract:** Reducers MUST be pure — return a new state value
90
- * without mutating `state` or any event. The `state` parameter is the
91
- * original `initial` value on every invocation (full event-sourcing replay),
92
- * so mutation would corrupt future recomputations.
93
- */
94
- type ProjectionReducer<TState = unknown, TEvent = unknown> = (state: TState, events: readonly CqrsEvent<TEvent>[]) => TState;
95
- type SagaHandler<T = unknown> = (event: CqrsEvent<T>) => void;
96
- type CqrsOptions = {
97
- graph?: GraphOptions;
98
- };
99
- declare class CqrsGraph extends Graph {
100
- private readonly _eventLogs;
101
- private readonly _commandHandlers;
102
- private readonly _projections;
103
- private readonly _sagas;
104
- private readonly _keepaliveDisposers;
105
- private _eventStore;
106
- private _seq;
107
- constructor(name: string, opts?: CqrsOptions);
108
- destroy(): void;
109
- /**
110
- * Register a named event stream backed by `reactiveLog`.
111
- * Guard denies external `write` — only commands append internally.
112
- */
113
- event(name: string): Node<readonly CqrsEvent[]>;
114
- /** Internal: append to an event log, auto-registering if needed. */
115
- private _appendEvent;
116
- /**
117
- * Register a command with its handler. Guard denies `observe` (write-only).
118
- * Use `dispatch(name, payload)` to execute.
119
- *
120
- * The command node carries dynamic `meta.error` — a reactive companion
121
- * that holds the last handler error (or `null` on success).
122
- */
123
- command<T = unknown>(name: string, handler: CommandHandler<T>): Node<T>;
124
- /**
125
- * Execute a registered command. Wraps the entire dispatch in `batch()` so
126
- * the command node DATA and all emitted events settle atomically.
127
- *
128
- * If the handler throws, `meta.error` on the command node is set to the
129
- * error and the exception is re-thrown.
130
- */
131
- dispatch<T = unknown>(commandName: string, payload: T): void;
132
- /**
133
- * Register a read-only projection derived from event streams.
134
- * Guard denies `write` — value is computed from events only.
135
- *
136
- * **Purity contract:** The `reducer` must be a pure function — it receives
137
- * the original `initial` on every invocation (full event-sourcing replay).
138
- * Never mutate `initial`; always return a new value.
139
- */
140
- projection<TState>(name: string, eventNames: readonly string[], reducer: ProjectionReducer<TState>, initial: TState): Node<TState>;
141
- /**
142
- * Register an event-driven side effect. Runs handler for each **new** event
143
- * from the specified streams (tracks last-processed entry count per stream).
144
- *
145
- * The saga node carries dynamic `meta.error` — a reactive companion that
146
- * holds the last handler error (or `null` on success). Handler errors do
147
- * not propagate out of the saga run (the event cursor still advances so
148
- * the same entry is not delivered twice).
149
- */
150
- saga<T = unknown>(name: string, eventNames: readonly string[], handler: SagaHandler<T>): Node<unknown>;
151
- useEventStore(adapter: EventStoreAdapter): void;
152
- /**
153
- * Replay persisted events through a reducer to rebuild a read model.
154
- * Requires an event store adapter wired via `useEventStore()`.
155
- */
156
- rebuildProjection<TState>(eventNames: readonly string[], reducer: ProjectionReducer<TState>, initial: TState): Promise<TState>;
157
- }
158
- /**
159
- * Create a CQRS graph container.
160
- *
161
- * @example
162
- * ```ts
163
- * const app = cqrs("orders");
164
- * app.event("orderPlaced");
165
- * app.command("placeOrder", (payload, { emit }) => {
166
- * emit("orderPlaced", { orderId: payload.id, amount: payload.amount });
167
- * });
168
- * app.projection("orderCount", ["orderPlaced"], (_s, events) => events.length, 0);
169
- * app.dispatch("placeOrder", { id: "1", amount: 100 });
170
- * ```
171
- */
172
- declare function cqrs(name: string, opts?: CqrsOptions): CqrsGraph;
173
-
174
- type index_CommandActions = CommandActions;
175
- type index_CommandHandler<T = unknown> = CommandHandler<T>;
176
- type index_CqrsEvent<T = unknown> = CqrsEvent<T>;
177
- type index_CqrsGraph = CqrsGraph;
178
- declare const index_CqrsGraph: typeof CqrsGraph;
179
- type index_CqrsOptions = CqrsOptions;
180
- type index_EventStoreAdapter = EventStoreAdapter;
181
- type index_EventStoreCursor = EventStoreCursor;
182
- type index_LoadEventsResult = LoadEventsResult;
183
- type index_MemoryEventStore = MemoryEventStore;
184
- declare const index_MemoryEventStore: typeof MemoryEventStore;
185
- type index_ProjectionReducer<TState = unknown, TEvent = unknown> = ProjectionReducer<TState, TEvent>;
186
- type index_SagaHandler<T = unknown> = SagaHandler<T>;
187
- declare const index_cqrs: typeof cqrs;
188
- declare namespace index {
189
- export { type index_CommandActions as CommandActions, type index_CommandHandler as CommandHandler, type index_CqrsEvent as CqrsEvent, index_CqrsGraph as CqrsGraph, type index_CqrsOptions as CqrsOptions, type index_EventStoreAdapter as EventStoreAdapter, type index_EventStoreCursor as EventStoreCursor, type index_LoadEventsResult as LoadEventsResult, index_MemoryEventStore as MemoryEventStore, type index_ProjectionReducer as ProjectionReducer, type index_SagaHandler as SagaHandler, index_cqrs as cqrs };
190
- }
191
-
192
- export { type CqrsOptions as C, type EventStoreAdapter as E, type LoadEventsResult as L, MemoryEventStore as M, type ProjectionReducer as P, type SagaHandler as S, CqrsGraph as a, type CommandActions as b, type CommandHandler as c, type CqrsEvent as d, type EventStoreCursor as e, cqrs as f, index as i };