@graphrefly/graphrefly 0.27.0 → 0.28.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 (428) hide show
  1. package/dist/backoff-HPZMEZNF.js +1 -0
  2. package/dist/cascading-B-5zmAUv.d.cts +180 -0
  3. package/dist/cascading-D9WG1-9L.d.ts +180 -0
  4. package/dist/chunk-2FOAM3OR.js +1 -0
  5. package/dist/chunk-2PMCKKRK.js +1 -0
  6. package/dist/chunk-3JXNEPCD.js +2 -0
  7. package/dist/chunk-3R5HFPX7.js +78 -0
  8. package/dist/chunk-4GKB4OUJ.js +1 -0
  9. package/dist/chunk-4VVTGLXJ.js +1 -0
  10. package/dist/chunk-5QDBSZBV.js +1 -0
  11. package/dist/chunk-6QZNQS5B.js +1 -0
  12. package/dist/chunk-6V3SEX2I.js +1 -0
  13. package/dist/chunk-76A3HVQE.js +9 -0
  14. package/dist/chunk-7H6LGFUG.js +64 -0
  15. package/dist/chunk-CK2E7BTU.js +1 -0
  16. package/dist/chunk-CKCSDI7T.js +6 -0
  17. package/dist/chunk-CRXTH3SH.js +1 -0
  18. package/dist/chunk-CWLN3X3N.js +1 -0
  19. package/dist/chunk-D7A7DBE4.js +1 -0
  20. package/dist/chunk-DBGGMN3D.js +1 -0
  21. package/dist/chunk-DQA3UIQ2.js +1 -0
  22. package/dist/chunk-ERLIRFPA.js +1 -0
  23. package/dist/chunk-ESMPEKEV.js +1 -0
  24. package/dist/chunk-ETWTCCJI.js +1 -0
  25. package/dist/chunk-FNYWM6JC.js +1 -0
  26. package/dist/chunk-GHJJR5P4.js +1 -0
  27. package/dist/chunk-GPW2V3RE.js +1 -0
  28. package/dist/chunk-I6VIH3VA.js +1 -0
  29. package/dist/chunk-K2GNMCQT.js +1 -0
  30. package/dist/chunk-LBTDSCCO.js +3 -0
  31. package/dist/chunk-LQ3Y5NJS.js +1 -0
  32. package/dist/chunk-MIQTDPY4.js +5 -0
  33. package/dist/chunk-MTTAAPCK.js +1 -0
  34. package/dist/chunk-OAWLCNJJ.js +1 -0
  35. package/dist/chunk-OBKQQA5I.js +1 -0
  36. package/dist/chunk-OYHGKYQM.js +1 -0
  37. package/dist/chunk-PIOGHC63.js +1 -0
  38. package/dist/chunk-QWAPKG3O.js +2 -0
  39. package/dist/chunk-QYADASLV.js +1 -0
  40. package/dist/chunk-RHESUC3V.js +43 -0
  41. package/dist/chunk-S35VARIR.js +1 -0
  42. package/dist/chunk-SC3U7ETD.js +1 -0
  43. package/dist/chunk-U3AICJKU.js +1 -0
  44. package/dist/chunk-UMBIDLJ4.js +1 -0
  45. package/dist/chunk-UPHHLMHE.js +1 -0
  46. package/dist/chunk-UPXUCFMX.js +1 -0
  47. package/dist/chunk-UWJE5FQA.js +18 -0
  48. package/dist/chunk-V6YQICXZ.js +1 -0
  49. package/dist/chunk-VIMF6LGM.js +1 -0
  50. package/dist/chunk-VJLMUKOI.js +1 -0
  51. package/dist/chunk-VPYBOXVT.js +1 -0
  52. package/dist/chunk-VTPVOGHH.js +1 -0
  53. package/dist/chunk-WQ2BN6X6.js +1 -0
  54. package/dist/chunk-XAUNPIMX.js +1 -0
  55. package/dist/chunk-Y2EMPB3I.js +1 -0
  56. package/dist/chunk-Z4HDAS2Q.js +1 -0
  57. package/dist/chunk-ZB5EHBIO.js +1 -0
  58. package/dist/chunk-ZV2DXV5A.js +23 -0
  59. package/dist/compat/index.cjs +14 -7656
  60. package/dist/compat/index.d.cts +15 -14
  61. package/dist/compat/index.d.ts +15 -14
  62. package/dist/compat/index.js +1 -50
  63. package/dist/compat/jotai/index.cjs +1 -2048
  64. package/dist/compat/jotai/index.d.cts +2 -2
  65. package/dist/compat/jotai/index.d.ts +2 -2
  66. package/dist/compat/jotai/index.js +1 -9
  67. package/dist/compat/nanostores/index.cjs +1 -2175
  68. package/dist/compat/nanostores/index.d.cts +2 -2
  69. package/dist/compat/nanostores/index.d.ts +2 -2
  70. package/dist/compat/nanostores/index.js +1 -23
  71. package/dist/compat/nestjs/index.cjs +14 -6782
  72. package/dist/compat/nestjs/index.d.cts +7 -6
  73. package/dist/compat/nestjs/index.d.ts +7 -6
  74. package/dist/compat/nestjs/index.js +1 -83
  75. package/dist/compat/react/index.cjs +1 -141
  76. package/dist/compat/react/index.d.cts +2 -2
  77. package/dist/compat/react/index.d.ts +2 -2
  78. package/dist/compat/react/index.js +1 -12
  79. package/dist/compat/solid/index.cjs +1 -128
  80. package/dist/compat/solid/index.d.cts +2 -2
  81. package/dist/compat/solid/index.d.ts +2 -2
  82. package/dist/compat/solid/index.js +1 -12
  83. package/dist/compat/svelte/index.cjs +1 -131
  84. package/dist/compat/svelte/index.d.cts +2 -2
  85. package/dist/compat/svelte/index.d.ts +2 -2
  86. package/dist/compat/svelte/index.js +1 -12
  87. package/dist/compat/vue/index.cjs +1 -146
  88. package/dist/compat/vue/index.d.cts +2 -2
  89. package/dist/compat/vue/index.d.ts +2 -2
  90. package/dist/compat/vue/index.js +1 -12
  91. package/dist/compat/zustand/index.cjs +6 -4931
  92. package/dist/compat/zustand/index.d.cts +5 -5
  93. package/dist/compat/zustand/index.d.ts +5 -5
  94. package/dist/compat/zustand/index.js +1 -12
  95. package/dist/composite-B-xqw4Kk.d.cts +69 -0
  96. package/dist/composite-BhbKHbOS.d.ts +69 -0
  97. package/dist/core/index.cjs +1 -2271
  98. package/dist/core/index.d.cts +4 -4
  99. package/dist/core/index.d.ts +4 -4
  100. package/dist/core/index.js +1 -110
  101. package/dist/extra/browser.cjs +1 -0
  102. package/dist/extra/browser.d.cts +3 -0
  103. package/dist/extra/browser.d.ts +3 -0
  104. package/dist/extra/browser.js +1 -0
  105. package/dist/extra/index.cjs +23 -9971
  106. package/dist/extra/index.d.cts +13 -6
  107. package/dist/extra/index.d.ts +13 -6
  108. package/dist/extra/index.js +1 -381
  109. package/dist/extra/node.cjs +3 -0
  110. package/dist/extra/node.d.cts +81 -0
  111. package/dist/extra/node.d.ts +81 -0
  112. package/dist/extra/node.js +2 -0
  113. package/dist/extra/operators.cjs +1 -0
  114. package/dist/extra/operators.d.cts +910 -0
  115. package/dist/extra/operators.d.ts +910 -0
  116. package/dist/extra/operators.js +1 -0
  117. package/dist/extra/reactive.cjs +1 -0
  118. package/dist/extra/reactive.d.cts +352 -0
  119. package/dist/extra/reactive.d.ts +352 -0
  120. package/dist/extra/reactive.js +1 -0
  121. package/dist/extra/sources.cjs +1 -2486
  122. package/dist/extra/sources.d.cts +6 -2
  123. package/dist/extra/sources.d.ts +6 -2
  124. package/dist/extra/sources.js +1 -57
  125. package/dist/extra/storage-browser.cjs +1 -0
  126. package/dist/extra/storage-browser.d.cts +71 -0
  127. package/dist/extra/storage-browser.d.ts +71 -0
  128. package/dist/extra/storage-browser.js +1 -0
  129. package/dist/extra/storage-core.cjs +1 -0
  130. package/dist/extra/storage-core.d.cts +98 -0
  131. package/dist/extra/storage-core.d.ts +98 -0
  132. package/dist/extra/storage-core.js +1 -0
  133. package/dist/extra/storage-node.cjs +2 -0
  134. package/dist/extra/storage-node.d.cts +60 -0
  135. package/dist/extra/storage-node.d.ts +60 -0
  136. package/dist/extra/storage-node.js +1 -0
  137. package/dist/fallback-BaTS7vVY.d.cts +258 -0
  138. package/dist/fallback-eOm3LNxP.d.ts +258 -0
  139. package/dist/graph/index.cjs +6 -5030
  140. package/dist/graph/index.d.cts +6 -5
  141. package/dist/graph/index.d.ts +6 -5
  142. package/dist/graph/index.js +1 -50
  143. package/dist/{graph-CCwGKLCm.d.ts → graph-BZGRXwOm.d.ts} +134 -31
  144. package/dist/{graph-DNCrvZSn.d.cts → graph-D48Qw9Cg.d.cts} +134 -31
  145. package/dist/index-8FSVk4Uf.d.ts +135 -0
  146. package/dist/index-9oDeHH2u.d.cts +291 -0
  147. package/dist/{messaging-XDoYablx.d.ts → index-B0c4cmIO.d.ts} +31 -93
  148. package/dist/{index-VdHQMPy1.d.ts → index-B1AmmSlb.d.ts} +1 -1
  149. package/dist/{index-VHqptjhu.d.cts → index-B2pwesl9.d.cts} +1 -1
  150. package/dist/index-BHvIquRZ.d.ts +1957 -0
  151. package/dist/{index-Dzk2hrlR.d.ts → index-BVHOrDwO.d.ts} +1 -1
  152. package/dist/{index-CxFrXH4m.d.ts → index-BWJV63ti.d.ts} +1 -1
  153. package/dist/{index-Xi3u0HCQ.d.cts → index-B_agccPe.d.cts} +1 -1
  154. package/dist/index-BgyGlizc.d.ts +163 -0
  155. package/dist/index-BpA5c4G9.d.ts +357 -0
  156. package/dist/index-BpIFjILY.d.cts +357 -0
  157. package/dist/{index-3lsddbbS.d.ts → index-Bqachn9_.d.ts} +1 -1
  158. package/dist/index-Btib9rsU.d.ts +607 -0
  159. package/dist/{index-wEn0eFe8.d.ts → index-BwM9BEkt.d.ts} +1 -1
  160. package/dist/index-BxJ86YZZ.d.cts +105 -0
  161. package/dist/{audit-DRlSzBu9.d.ts → index-C73n7lo-.d.cts} +27 -21
  162. package/dist/index-CEXXwWVH.d.cts +192 -0
  163. package/dist/index-CHEswufn.d.cts +163 -0
  164. package/dist/{index-C0svESO4.d.ts → index-CMn8S8Hw.d.ts} +1 -1
  165. package/dist/{index-ByQxazQJ.d.cts → index-CRO83MmV.d.cts} +1 -1
  166. package/dist/{index-BuEoe-Qu.d.ts → index-CloUk1kY.d.ts} +9 -9
  167. package/dist/index-CpgYhnrG.d.ts +291 -0
  168. package/dist/{index-DO_6JN9Z.d.cts → index-Cyojz0AE.d.cts} +1 -1
  169. package/dist/{demo-shell-BDkOptd6.d.ts → index-CzobVSMr.d.ts} +14 -14
  170. package/dist/index-Czq6ynh8.d.ts +143 -0
  171. package/dist/{index-BaSM3aYt.d.ts → index-D-YB-Vl3.d.ts} +3 -3
  172. package/dist/index-DAlweici.d.ts +231 -0
  173. package/dist/index-DEwTb_fm.d.cts +1957 -0
  174. package/dist/{index-DYme44FM.d.cts → index-DL-rYJrx.d.cts} +1 -1
  175. package/dist/{memory-li6FL5RM.d.ts → index-DP4ZTkdw.d.ts} +26 -26
  176. package/dist/{index-BwfLUNw4.d.ts → index-DUqMOlKZ.d.cts} +173 -2040
  177. package/dist/{index-B1tloyhO.d.cts → index-D_NwnRYS.d.cts} +1 -1
  178. package/dist/index-DaLJvH8Z.d.ts +105 -0
  179. package/dist/index-DcXZBF5a.d.cts +135 -0
  180. package/dist/index-DfyOkTvs.d.ts +321 -0
  181. package/dist/{index-B9B7_HEY.d.ts → index-DiOXyAwt.d.ts} +1 -1
  182. package/dist/index-DpHe5e0Q.d.ts +186 -0
  183. package/dist/index-DraikLjn.d.ts +86 -0
  184. package/dist/{index-D8wS_PeY.d.cts → index-DxsnAMWD.d.cts} +9 -9
  185. package/dist/{messaging-Gt4LPbyA.d.cts → index-DyxjtScX.d.cts} +31 -93
  186. package/dist/{audit-ClmqGOCx.d.cts → index-HDpJe9hX.d.ts} +27 -21
  187. package/dist/{index-DVGiGFGT.d.cts → index-O6TgGUBV.d.cts} +3 -3
  188. package/dist/{index-B6EhDnjH.d.cts → index-Oi8d8w4R.d.cts} +1 -1
  189. package/dist/{index-C8oil6M6.d.ts → index-ROpQmGjE.d.ts} +30 -6
  190. package/dist/index-RukJ4DLS.d.cts +607 -0
  191. package/dist/{index-BHlKbUwO.d.cts → index-ZftwfxJM.d.ts} +173 -2040
  192. package/dist/{index-BPVt8kqc.d.ts → index-cByzxQIC.d.cts} +10 -195
  193. package/dist/index-dtN7YA2x.d.cts +143 -0
  194. package/dist/{index-CI3DprxP.d.cts → index-fM6y00vT.d.cts} +30 -6
  195. package/dist/{index-DlLp-2Xn.d.cts → index-m-yHof5p.d.ts} +10 -195
  196. package/dist/index-pXrDMpRO.d.cts +231 -0
  197. package/dist/index-rHJSKsU8.d.cts +186 -0
  198. package/dist/index-rX8HBM5h.d.cts +321 -0
  199. package/dist/{index-CO8uBlUh.d.cts → index-rnwQly8X.d.cts} +147 -20
  200. package/dist/index-sm373fsH.d.ts +192 -0
  201. package/dist/{memory-C6Z2tGpC.d.cts → index-tbf2gKHd.d.cts} +26 -26
  202. package/dist/{demo-shell-Crid1WdR.d.cts → index-u15meRxL.d.cts} +14 -14
  203. package/dist/{index-B6D3QNSA.d.ts → index-umtoWT8K.d.ts} +147 -20
  204. package/dist/index-vscRDkjW.d.cts +86 -0
  205. package/dist/index.cjs +150 -24142
  206. package/dist/index.d.cts +69 -2099
  207. package/dist/index.d.ts +69 -2099
  208. package/dist/index.js +1 -3868
  209. package/dist/{meta-CbznRPYJ.d.ts → meta-Cgj6zeji.d.cts} +5 -5
  210. package/dist/{meta-BxCA7rcr.d.cts → meta-CwesDrMD.d.ts} +5 -5
  211. package/dist/{node-BmerH3kS.d.cts → node-Cc1TniY8.d.cts} +36 -9
  212. package/dist/{node-BmerH3kS.d.ts → node-Cc1TniY8.d.ts} +36 -9
  213. package/dist/{observable-BgGUwcqp.d.ts → observable-Ct-gJ9jI.d.ts} +1 -1
  214. package/dist/{observable-DJt_AxzQ.d.cts → observable-glXQoGj2.d.cts} +1 -1
  215. package/dist/patterns/ai/browser.cjs +25 -0
  216. package/dist/patterns/ai/browser.d.cts +127 -0
  217. package/dist/patterns/ai/browser.d.ts +127 -0
  218. package/dist/patterns/ai/browser.js +3 -0
  219. package/dist/patterns/ai/index.cjs +91 -0
  220. package/dist/patterns/ai/index.d.cts +17 -0
  221. package/dist/patterns/ai/index.d.ts +17 -0
  222. package/dist/patterns/ai/index.js +1 -0
  223. package/dist/patterns/ai/node.cjs +2 -0
  224. package/dist/patterns/ai/node.d.cts +58 -0
  225. package/dist/patterns/ai/node.d.ts +58 -0
  226. package/dist/patterns/ai/node.js +1 -0
  227. package/dist/patterns/audit/index.cjs +6 -0
  228. package/dist/patterns/audit/index.d.cts +6 -0
  229. package/dist/patterns/audit/index.d.ts +6 -0
  230. package/dist/patterns/audit/index.js +1 -0
  231. package/dist/patterns/cqrs/index.cjs +6 -0
  232. package/dist/patterns/cqrs/index.d.cts +5 -0
  233. package/dist/patterns/cqrs/index.d.ts +5 -0
  234. package/dist/patterns/cqrs/index.js +1 -0
  235. package/dist/patterns/demo-shell/index.cjs +7 -0
  236. package/dist/patterns/demo-shell/index.d.cts +6 -0
  237. package/dist/patterns/demo-shell/index.d.ts +6 -0
  238. package/dist/patterns/demo-shell/index.js +1 -0
  239. package/dist/patterns/domain-templates/index.cjs +6 -0
  240. package/dist/patterns/domain-templates/index.d.cts +5 -0
  241. package/dist/patterns/domain-templates/index.d.ts +5 -0
  242. package/dist/patterns/domain-templates/index.js +1 -0
  243. package/dist/patterns/graphspec/index.cjs +83 -0
  244. package/dist/patterns/graphspec/index.d.cts +7 -0
  245. package/dist/patterns/graphspec/index.d.ts +7 -0
  246. package/dist/patterns/graphspec/index.js +1 -0
  247. package/dist/patterns/guarded-execution/index.cjs +6 -0
  248. package/dist/patterns/guarded-execution/index.d.cts +7 -0
  249. package/dist/patterns/guarded-execution/index.d.ts +7 -0
  250. package/dist/patterns/guarded-execution/index.js +1 -0
  251. package/dist/patterns/harness/index.cjs +48 -0
  252. package/dist/patterns/harness/index.d.cts +8 -0
  253. package/dist/patterns/harness/index.d.ts +8 -0
  254. package/dist/patterns/harness/index.js +1 -0
  255. package/dist/patterns/job-queue/index.cjs +6 -0
  256. package/dist/patterns/job-queue/index.d.cts +5 -0
  257. package/dist/patterns/job-queue/index.d.ts +5 -0
  258. package/dist/patterns/job-queue/index.js +1 -0
  259. package/dist/patterns/lens/index.cjs +6 -0
  260. package/dist/patterns/lens/index.d.cts +7 -0
  261. package/dist/patterns/lens/index.d.ts +7 -0
  262. package/dist/patterns/lens/index.js +1 -0
  263. package/dist/patterns/memory/index.cjs +6 -0
  264. package/dist/patterns/memory/index.d.cts +5 -0
  265. package/dist/patterns/memory/index.d.ts +5 -0
  266. package/dist/patterns/memory/index.js +1 -0
  267. package/dist/patterns/messaging/index.cjs +6 -0
  268. package/dist/patterns/messaging/index.d.cts +5 -0
  269. package/dist/patterns/messaging/index.d.ts +5 -0
  270. package/dist/patterns/messaging/index.js +1 -0
  271. package/dist/patterns/orchestration/index.cjs +6 -0
  272. package/dist/patterns/orchestration/index.d.cts +6 -0
  273. package/dist/patterns/orchestration/index.d.ts +6 -0
  274. package/dist/patterns/orchestration/index.js +1 -0
  275. package/dist/patterns/reactive-layout/index.cjs +7 -6444
  276. package/dist/patterns/reactive-layout/index.d.cts +6 -6
  277. package/dist/patterns/reactive-layout/index.d.ts +6 -6
  278. package/dist/patterns/reactive-layout/index.js +1 -56
  279. package/dist/patterns/reduction/index.cjs +6 -0
  280. package/dist/patterns/reduction/index.d.cts +5 -0
  281. package/dist/patterns/reduction/index.d.ts +5 -0
  282. package/dist/patterns/reduction/index.js +1 -0
  283. package/dist/patterns/refine-loop/index.cjs +8 -0
  284. package/dist/patterns/refine-loop/index.d.cts +7 -0
  285. package/dist/patterns/refine-loop/index.d.ts +7 -0
  286. package/dist/patterns/refine-loop/index.js +1 -0
  287. package/dist/patterns/resilient-pipeline/index.cjs +1 -0
  288. package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
  289. package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
  290. package/dist/patterns/resilient-pipeline/index.js +1 -0
  291. package/dist/patterns/surface/index.cjs +14 -0
  292. package/dist/patterns/surface/index.d.cts +8 -0
  293. package/dist/patterns/surface/index.d.ts +8 -0
  294. package/dist/patterns/surface/index.js +1 -0
  295. package/dist/{reactive-layout-MQP--J3F.d.cts → reactive-layout-CpYb5qLP.d.cts} +2 -2
  296. package/dist/{reactive-layout-u5Ulnqag.d.ts → reactive-layout-D8u4wuUR.d.ts} +2 -2
  297. package/dist/reactive-log-DPzuUDj5.d.cts +190 -0
  298. package/dist/reactive-log-YuH9VYN8.d.ts +190 -0
  299. package/dist/{composite-aUCvjZVR.d.ts → reactive-map-CdbNoSgP.d.ts} +2 -67
  300. package/dist/{composite-C7PcQvcs.d.cts → reactive-map-DUeRmb9d.d.cts} +2 -67
  301. package/dist/resilience-Ba5-b4WD.d.cts +493 -0
  302. package/dist/resilience-CGRzhnD3.d.ts +493 -0
  303. package/dist/resilience-QAHKANT5.js +1 -0
  304. package/dist/{sugar-D02n5JjF.d.cts → sugar-BV0htudb.d.cts} +8 -4
  305. package/dist/{sugar-CCOxXK1e.d.ts → sugar-Dtyrq2_q.d.ts} +8 -4
  306. package/dist/topology-tree-CYHOwQZ_.d.ts +25 -0
  307. package/dist/topology-tree-DROUdq5B.d.cts +25 -0
  308. package/dist/types-O3GzJY2U.d.cts +401 -0
  309. package/dist/types-u64Ose53.d.ts +401 -0
  310. package/package.json +252 -22
  311. package/dist/ai-CaR_912Q.d.cts +0 -1033
  312. package/dist/ai-WlRltJV7.d.ts +0 -1033
  313. package/dist/chunk-3ZWCKRHX.js +0 -117
  314. package/dist/chunk-3ZWCKRHX.js.map +0 -1
  315. package/dist/chunk-7TAQJHQV.js +0 -103
  316. package/dist/chunk-7TAQJHQV.js.map +0 -1
  317. package/dist/chunk-APFNLIRG.js +0 -62
  318. package/dist/chunk-APFNLIRG.js.map +0 -1
  319. package/dist/chunk-AT5LKYNL.js +0 -395
  320. package/dist/chunk-AT5LKYNL.js.map +0 -1
  321. package/dist/chunk-BQ6RQQFF.js +0 -5087
  322. package/dist/chunk-BQ6RQQFF.js.map +0 -1
  323. package/dist/chunk-BVZYTZ5H.js +0 -599
  324. package/dist/chunk-BVZYTZ5H.js.map +0 -1
  325. package/dist/chunk-DST5DKZS.js +0 -1371
  326. package/dist/chunk-DST5DKZS.js.map +0 -1
  327. package/dist/chunk-GTE6PWRZ.js +0 -866
  328. package/dist/chunk-GTE6PWRZ.js.map +0 -1
  329. package/dist/chunk-HXZEYDUR.js +0 -94
  330. package/dist/chunk-HXZEYDUR.js.map +0 -1
  331. package/dist/chunk-J22W6HV3.js +0 -107
  332. package/dist/chunk-J22W6HV3.js.map +0 -1
  333. package/dist/chunk-J2VBW3DZ.js +0 -302
  334. package/dist/chunk-J2VBW3DZ.js.map +0 -1
  335. package/dist/chunk-JSCT3CR4.js +0 -38
  336. package/dist/chunk-JSCT3CR4.js.map +0 -1
  337. package/dist/chunk-JWBCY4NC.js +0 -330
  338. package/dist/chunk-JWBCY4NC.js.map +0 -1
  339. package/dist/chunk-K2AUJHVP.js +0 -2251
  340. package/dist/chunk-K2AUJHVP.js.map +0 -1
  341. package/dist/chunk-MJ2NKQQL.js +0 -119
  342. package/dist/chunk-MJ2NKQQL.js.map +0 -1
  343. package/dist/chunk-N6UR7YVY.js +0 -198
  344. package/dist/chunk-N6UR7YVY.js.map +0 -1
  345. package/dist/chunk-NC6S43JJ.js +0 -456
  346. package/dist/chunk-NC6S43JJ.js.map +0 -1
  347. package/dist/chunk-OFVJBJXR.js +0 -98
  348. package/dist/chunk-OFVJBJXR.js.map +0 -1
  349. package/dist/chunk-OHISZPOJ.js +0 -97
  350. package/dist/chunk-OHISZPOJ.js.map +0 -1
  351. package/dist/chunk-OU5CQKNW.js +0 -102
  352. package/dist/chunk-OU5CQKNW.js.map +0 -1
  353. package/dist/chunk-PF7GRZMW.js +0 -2712
  354. package/dist/chunk-PF7GRZMW.js.map +0 -1
  355. package/dist/chunk-PHOUUNK7.js +0 -2291
  356. package/dist/chunk-PHOUUNK7.js.map +0 -1
  357. package/dist/chunk-RNHBMHKA.js +0 -1665
  358. package/dist/chunk-RNHBMHKA.js.map +0 -1
  359. package/dist/chunk-SX52TAR4.js +0 -110
  360. package/dist/chunk-SX52TAR4.js.map +0 -1
  361. package/dist/chunk-VYPWMZ6H.js +0 -98
  362. package/dist/chunk-VYPWMZ6H.js.map +0 -1
  363. package/dist/chunk-WBZOVTYK.js +0 -171
  364. package/dist/chunk-WBZOVTYK.js.map +0 -1
  365. package/dist/chunk-WKNUIZOY.js +0 -354
  366. package/dist/chunk-WKNUIZOY.js.map +0 -1
  367. package/dist/chunk-X3VMZYBT.js +0 -713
  368. package/dist/chunk-X3VMZYBT.js.map +0 -1
  369. package/dist/chunk-X5R3GL6H.js +0 -525
  370. package/dist/chunk-X5R3GL6H.js.map +0 -1
  371. package/dist/chunk-XGPU467M.js +0 -136
  372. package/dist/chunk-XGPU467M.js.map +0 -1
  373. package/dist/compat/index.cjs.map +0 -1
  374. package/dist/compat/index.js.map +0 -1
  375. package/dist/compat/jotai/index.cjs.map +0 -1
  376. package/dist/compat/jotai/index.js.map +0 -1
  377. package/dist/compat/nanostores/index.cjs.map +0 -1
  378. package/dist/compat/nanostores/index.js.map +0 -1
  379. package/dist/compat/nestjs/index.cjs.map +0 -1
  380. package/dist/compat/nestjs/index.js.map +0 -1
  381. package/dist/compat/react/index.cjs.map +0 -1
  382. package/dist/compat/react/index.js.map +0 -1
  383. package/dist/compat/solid/index.cjs.map +0 -1
  384. package/dist/compat/solid/index.js.map +0 -1
  385. package/dist/compat/svelte/index.cjs.map +0 -1
  386. package/dist/compat/svelte/index.js.map +0 -1
  387. package/dist/compat/vue/index.cjs.map +0 -1
  388. package/dist/compat/vue/index.js.map +0 -1
  389. package/dist/compat/zustand/index.cjs.map +0 -1
  390. package/dist/compat/zustand/index.js.map +0 -1
  391. package/dist/core/index.cjs.map +0 -1
  392. package/dist/core/index.js.map +0 -1
  393. package/dist/extra/index.cjs.map +0 -1
  394. package/dist/extra/index.js.map +0 -1
  395. package/dist/extra/sources.cjs.map +0 -1
  396. package/dist/extra/sources.js.map +0 -1
  397. package/dist/graph/index.cjs.map +0 -1
  398. package/dist/graph/index.js.map +0 -1
  399. package/dist/index.cjs.map +0 -1
  400. package/dist/index.js.map +0 -1
  401. package/dist/patterns/ai.cjs +0 -7930
  402. package/dist/patterns/ai.cjs.map +0 -1
  403. package/dist/patterns/ai.d.cts +0 -10
  404. package/dist/patterns/ai.d.ts +0 -10
  405. package/dist/patterns/ai.js +0 -71
  406. package/dist/patterns/ai.js.map +0 -1
  407. package/dist/patterns/audit.cjs +0 -5805
  408. package/dist/patterns/audit.cjs.map +0 -1
  409. package/dist/patterns/audit.d.cts +0 -6
  410. package/dist/patterns/audit.d.ts +0 -6
  411. package/dist/patterns/audit.js +0 -29
  412. package/dist/patterns/audit.js.map +0 -1
  413. package/dist/patterns/demo-shell.cjs +0 -5604
  414. package/dist/patterns/demo-shell.cjs.map +0 -1
  415. package/dist/patterns/demo-shell.d.cts +0 -6
  416. package/dist/patterns/demo-shell.d.ts +0 -6
  417. package/dist/patterns/demo-shell.js +0 -15
  418. package/dist/patterns/demo-shell.js.map +0 -1
  419. package/dist/patterns/memory.cjs +0 -5283
  420. package/dist/patterns/memory.cjs.map +0 -1
  421. package/dist/patterns/memory.d.cts +0 -5
  422. package/dist/patterns/memory.d.ts +0 -5
  423. package/dist/patterns/memory.js +0 -20
  424. package/dist/patterns/memory.js.map +0 -1
  425. package/dist/patterns/reactive-layout/index.cjs.map +0 -1
  426. package/dist/patterns/reactive-layout/index.js.map +0 -1
  427. package/dist/storage-CMjUUuxn.d.ts +0 -190
  428. package/dist/storage-DdWlZo6U.d.cts +0 -190
@@ -0,0 +1,607 @@
1
+ import { a as Node } from './node-Cc1TniY8.cjs';
2
+ import { T as TopicGraph } from './index-DyxjtScX.cjs';
3
+ import { G as Graph, s as GraphProfileResult, r as GraphProfileOptions } from './graph-D48Qw9Cg.cjs';
4
+ import { G as GateController } from './index-dtN7YA2x.cjs';
5
+
6
+ /**
7
+ * Harness wiring types (roadmap §9.0).
8
+ *
9
+ * Shared types for the reactive collaboration loop: intake, triage, queue,
10
+ * gate, execute, verify, reflect. These types are intentionally domain-agnostic
11
+ * — the harness loop is not specific to eval workflows.
12
+ *
13
+ * @module
14
+ */
15
+ /** Sources that can produce intake items. */
16
+ type IntakeSource = "eval" | "test" | "human" | "code-change" | "hypothesis" | "parity";
17
+ /** Severity levels for intake items. */
18
+ type Severity = "critical" | "high" | "medium" | "low";
19
+ /** Root cause categories for triage classification. */
20
+ type RootCause = "composition" | "missing-fn" | "bad-docs" | "schema-gap" | "regression" | "unknown";
21
+ /** Intervention types that address root causes. */
22
+ type Intervention = "template" | "catalog-fn" | "docs" | "wrapper" | "schema-change" | "investigate";
23
+ /** Routing destinations after triage. */
24
+ type QueueRoute = "auto-fix" | "needs-decision" | "investigation" | "backlog";
25
+ /** Ordered queue route names for iteration. */
26
+ declare const QUEUE_NAMES: readonly QueueRoute[];
27
+ /**
28
+ * An item entering the harness loop via the INTAKE stage.
29
+ *
30
+ * All intake sources produce this uniform shape — the intake topic
31
+ * doesn't care where items came from.
32
+ */
33
+ interface IntakeItem {
34
+ source: IntakeSource;
35
+ summary: string;
36
+ evidence: string;
37
+ affectsAreas: string[];
38
+ affectsEvalTasks?: string[];
39
+ severity?: Severity;
40
+ relatedTo?: string[];
41
+ /** Item-carried reingestion count. Incremented on each full-loop reingestion. */
42
+ _reingestions?: number;
43
+ }
44
+ /** Output of the TRIAGE stage — enriched intake item with classification. */
45
+ interface TriagedItem extends IntakeItem {
46
+ rootCause: RootCause;
47
+ intervention: Intervention;
48
+ route: QueueRoute;
49
+ priority: number;
50
+ triageReasoning?: string;
51
+ /** Item-carried retry count. Incremented on each fast-retry pass. */
52
+ _retries?: number;
53
+ }
54
+ /** Effectiveness record for a rootCause→intervention pair. */
55
+ interface StrategyEntry {
56
+ rootCause: RootCause;
57
+ intervention: Intervention;
58
+ attempts: number;
59
+ successes: number;
60
+ successRate: number;
61
+ }
62
+ /** Key format: `${rootCause}→${intervention}`. */
63
+ type StrategyKey = `${RootCause}→${Intervention}`;
64
+ declare function strategyKey(rootCause: RootCause, intervention: Intervention): StrategyKey;
65
+ /** LLM output shape from the EXECUTE stage (partial — lacks `item`). */
66
+ type ExecuteOutput = {
67
+ outcome: "success" | "failure" | "partial";
68
+ detail: string;
69
+ };
70
+ /** Full execution result assembled downstream (LLM output + context). */
71
+ interface ExecutionResult {
72
+ item: TriagedItem;
73
+ outcome: "success" | "failure" | "partial";
74
+ detail: string;
75
+ }
76
+ /** Whether an error is self-correctable (fast-retry) or structural (full loop). */
77
+ type ErrorClass = "self-correctable" | "structural";
78
+ /** Classifier for fast-retry path. */
79
+ type ErrorClassifier = (result: ExecutionResult) => ErrorClass;
80
+ /** Default error classifier: parse/config errors are self-correctable. */
81
+ declare function defaultErrorClassifier(result: ExecutionResult): ErrorClass;
82
+ /** Result of the VERIFY stage. */
83
+ interface VerifyResult {
84
+ item: TriagedItem;
85
+ execution: ExecutionResult;
86
+ verified: boolean;
87
+ findings: string[];
88
+ errorClass?: ErrorClass;
89
+ }
90
+ /** Configurable signals for priority scoring. */
91
+ interface PrioritySignals {
92
+ /** Per-severity base weight (default: critical=100, high=70, medium=40, low=10). */
93
+ severityWeights?: Partial<Record<Severity, number>>;
94
+ /** Decay rate per second for attention decay (default ~1.15e-6 ≈ 7-day half-life). */
95
+ decayRate?: number;
96
+ /** Strategy model effectiveness boost threshold (default 0.7). */
97
+ effectivenessThreshold?: number;
98
+ /** Strategy model effectiveness boost amount (default 15). */
99
+ effectivenessBoost?: number;
100
+ }
101
+ /** Default severity weights. */
102
+ declare const DEFAULT_SEVERITY_WEIGHTS: Record<Severity, number>;
103
+ /** Default decay rate: ~7-day half-life. */
104
+ declare const DEFAULT_DECAY_RATE: number;
105
+ /** Per-queue configuration in the harness loop. */
106
+ interface QueueConfig {
107
+ /** Whether this queue is gated (requires human approval). */
108
+ gated: boolean;
109
+ /** Maximum pending items in the gate (default Infinity). */
110
+ maxPending?: number;
111
+ /** Start the gate in open (auto-approve) mode? */
112
+ startOpen?: boolean;
113
+ }
114
+ /** Default queue configurations. */
115
+ declare const DEFAULT_QUEUE_CONFIGS: Record<QueueRoute, QueueConfig>;
116
+ /** Options for {@link harnessLoop}. */
117
+ interface HarnessLoopOptions {
118
+ /** LLM adapter for promptNode-based stages (triage, execute, verify, reflect). */
119
+ adapter: unknown;
120
+ /** Custom triage prompt (receives IntakeItem + strategy model as context). */
121
+ triagePrompt?: string | ((...args: unknown[]) => string);
122
+ /** Custom execute prompt. */
123
+ executePrompt?: string | ((...args: unknown[]) => string);
124
+ /** Custom verify prompt. */
125
+ verifyPrompt?: string | ((...args: unknown[]) => string);
126
+ /** Per-queue configuration overrides. */
127
+ queues?: Partial<Record<QueueRoute, QueueConfig>>;
128
+ /** Priority scoring signals. */
129
+ priority?: PrioritySignals;
130
+ /** Error classifier for fast-retry path. */
131
+ errorClassifier?: ErrorClassifier;
132
+ /** Max fast-retries per item before routing to full intake (default 2). */
133
+ maxRetries?: number;
134
+ /** Global retry cap across all items — circuit breaker (default maxRetries × 10). */
135
+ maxTotalRetries?: number;
136
+ /** Max re-ingestions from verify→intake before giving up (default 1). */
137
+ maxReingestions?: number;
138
+ /** Global reingestion cap across all items — circuit breaker (default maxReingestions × 10). */
139
+ maxTotalReingestions?: number;
140
+ /** Retained limit for topic logs (default 1000). */
141
+ retainedLimit?: number;
142
+ }
143
+
144
+ /**
145
+ * Harness bridge factories (roadmap §9.0).
146
+ *
147
+ * Intake bridges, eval source wrapper, before/after comparison,
148
+ * affected-task filter, code-change bridge, and notification effect.
149
+ * All are compositions of existing primitives — no new abstractions.
150
+ *
151
+ * @module
152
+ */
153
+
154
+ /** Options for {@link createIntakeBridge}. */
155
+ interface IntakeBridgeOptions {
156
+ /** Name for the effect node (default "intake-bridge"). */
157
+ name?: string;
158
+ }
159
+ /**
160
+ * Generic source→intake bridge factory.
161
+ *
162
+ * Watches a source node for new values, passes each through a user-supplied
163
+ * `parser` that produces zero or more `IntakeItem`s, and publishes them to
164
+ * the given intake topic.
165
+ *
166
+ * This is the generalized pattern behind {@link evalIntakeBridge}. Use it for
167
+ * CI results, test failures, Slack messages, monitoring alerts, or any domain
168
+ * where structured results should flow into a harness loop.
169
+ *
170
+ * @param source - Reactive node emitting domain-specific data.
171
+ * @param intakeTopic - TopicGraph to publish IntakeItem entries to.
172
+ * @param parser - Converts source data into IntakeItem[]. Return empty array to skip.
173
+ * @param opts - Optional configuration.
174
+ * @returns The effect node (for lifecycle management).
175
+ */
176
+ declare function createIntakeBridge<T>(source: Node<T>, intakeTopic: TopicGraph<IntakeItem>, parser: (value: T) => IntakeItem[], opts?: IntakeBridgeOptions): Node<unknown>;
177
+ /**
178
+ * Minimal eval result shape accepted by the bridge.
179
+ *
180
+ * TS eval runner uses `EvalRun` from `evals/lib/types.ts` which is a superset
181
+ * of this shape. The bridge only reads what it needs.
182
+ */
183
+ interface EvalResult {
184
+ run_id: string;
185
+ model: string;
186
+ tasks: EvalTaskResult[];
187
+ }
188
+ interface EvalTaskResult {
189
+ task_id: string;
190
+ valid: boolean;
191
+ judge_scores?: EvalJudgeScore[];
192
+ }
193
+ interface EvalJudgeScore {
194
+ claim: string;
195
+ pass: boolean;
196
+ reasoning: string;
197
+ }
198
+ interface EvalIntakeBridgeOptions {
199
+ /** Name for the effect node (default "eval-intake-bridge"). */
200
+ name?: string;
201
+ /** Minimum severity for eval-sourced items (default "medium"). */
202
+ defaultSeverity?: Severity;
203
+ }
204
+ /**
205
+ * Create an effect node that watches an eval results source and publishes
206
+ * per-criterion findings to an intake topic.
207
+ *
208
+ * Each failing judge criterion produces a separate IntakeItem — not one
209
+ * item per task. This gives the triage stage granular findings to classify.
210
+ *
211
+ * @param evalSource - Node emitting EvalResult (or EvalResult[]).
212
+ * @param intakeTopic - TopicGraph to publish IntakeItem entries to.
213
+ * @param opts - Optional configuration.
214
+ * @returns The effect node (for lifecycle management).
215
+ */
216
+ declare function evalIntakeBridge(evalSource: Node<EvalResult | EvalResult[]>, intakeTopic: TopicGraph<IntakeItem>, opts?: EvalIntakeBridgeOptions): Node<unknown>;
217
+ /**
218
+ * Wrap any eval runner as a reactive producer node.
219
+ *
220
+ * When `trigger` emits, calls `runner()` and emits the result downstream.
221
+ * Uses `switchMap` + `fromAny` — the async boundary stays in the source
222
+ * layer (spec §5.10). A new trigger cancels any in-flight run.
223
+ *
224
+ * ```ts
225
+ * const trigger = state(0); // bump to trigger a new run
226
+ * const results = evalSource(trigger, () => runEvals(config));
227
+ * results.subscribe(msgs => { ... });
228
+ * trigger.emit(1); // fires the runner
229
+ * ```
230
+ *
231
+ * @param trigger - Any node; each new DATA emission fires the runner.
232
+ * @param runner - Returns an EvalResult (or promise of one).
233
+ */
234
+ declare function evalSource<T extends EvalResult>(trigger: Node<unknown>, runner: () => T | Promise<T>): Node<T>;
235
+ /** Per-task delta produced by {@link beforeAfterCompare}. */
236
+ interface EvalTaskDelta {
237
+ taskId: string;
238
+ before: boolean;
239
+ after: boolean;
240
+ /** Score-level diff (after − before), undefined if no scores present. */
241
+ scoreDiff?: number;
242
+ }
243
+ /** Output of {@link beforeAfterCompare}. */
244
+ interface EvalDelta {
245
+ /** Task IDs that newly fail in `after` (were passing in `before`). */
246
+ newFailures: string[];
247
+ /** Task IDs that now pass in `after` (were failing in `before`). */
248
+ resolved: string[];
249
+ /** Full per-task breakdown. */
250
+ taskDeltas: EvalTaskDelta[];
251
+ /** True when net resolutions > net failures. */
252
+ overallImproved: boolean;
253
+ }
254
+ /**
255
+ * Derived node that computes before/after eval deltas.
256
+ *
257
+ * Pure computation: no LLM, no async. Compares per-task validity and
258
+ * pass counts between two `EvalResult` snapshots.
259
+ *
260
+ * @param before - Node holding the baseline eval result.
261
+ * @param after - Node holding the new eval result.
262
+ */
263
+ declare function beforeAfterCompare(before: Node<EvalResult>, after: Node<EvalResult>): Node<EvalDelta>;
264
+ /**
265
+ * Derived node that selects which eval task IDs to re-run.
266
+ *
267
+ * Collects `affectsEvalTasks` from all triaged items, deduplicates, then
268
+ * optionally intersects with `fullTaskSet`. Returns a sorted array of IDs.
269
+ *
270
+ * Use this to avoid re-running the full eval suite after each fix: only the
271
+ * tasks that the triaged items claim to affect are returned.
272
+ *
273
+ * @param issues - Node holding the current list of triaged items.
274
+ * @param fullTaskSet - Optional node (or plain array) of all known task IDs.
275
+ * When provided, output is the intersection.
276
+ */
277
+ declare function affectedTaskFilter(issues: Node<readonly TriagedItem[]>, fullTaskSet?: Node<readonly string[]> | readonly string[]): Node<string[]>;
278
+ /** A single lint error emitted by a CI tool. */
279
+ interface LintError {
280
+ file: string;
281
+ line: number;
282
+ col: number;
283
+ rule: string;
284
+ message: string;
285
+ }
286
+ /** A single test failure emitted by a test runner. */
287
+ interface TestFailure {
288
+ testId: string;
289
+ file: string;
290
+ message: string;
291
+ }
292
+ /** Structured code-change / CI event. */
293
+ interface CodeChange {
294
+ /** Files touched by the change. */
295
+ files: string[];
296
+ lintErrors?: LintError[];
297
+ testFailures?: TestFailure[];
298
+ }
299
+ /** Options for {@link codeChangeBridge}. */
300
+ interface CodeChangeBridgeOptions {
301
+ /** Name for the effect node (default "code-change-bridge"). */
302
+ name?: string;
303
+ /** Default severity for generated IntakeItems (default "high"). */
304
+ defaultSeverity?: Severity;
305
+ }
306
+ /**
307
+ * Intake bridge for code-change / CI events.
308
+ *
309
+ * Watches a source node for `CodeChange` events and publishes one
310
+ * `IntakeItem` per lint error and per test failure to the intake topic.
311
+ * Pass a custom `parser` to override the default mapping.
312
+ *
313
+ * @param source - Node emitting CodeChange events.
314
+ * @param intakeTopic - TopicGraph to publish IntakeItem entries to.
315
+ * @param parser - Optional custom parser (overrides default).
316
+ * @param opts - Optional configuration.
317
+ */
318
+ declare function codeChangeBridge(source: Node<CodeChange>, intakeTopic: TopicGraph<IntakeItem>, parser?: (change: CodeChange) => IntakeItem[], opts?: CodeChangeBridgeOptions): Node<unknown>;
319
+ /** Transport function for {@link notifyEffect}. Sync or async. */
320
+ type NotifyTransport<T> = (item: T) => void | Promise<void>;
321
+ /** Options for {@link notifyEffect}. */
322
+ interface NotifyEffectOptions {
323
+ /** Name for the effect node (default "notify-effect"). */
324
+ name?: string;
325
+ }
326
+ /**
327
+ * Effect node that sends each new topic entry to an external channel.
328
+ *
329
+ * The `transport` function is called for every item published to `topic`.
330
+ * Async transports are bridged via `fromAny` (spec §5.10 compliant).
331
+ *
332
+ * Typical use: Slack webhook, GitHub PR comment, email notification, etc.
333
+ * The factory provides reactive wiring; the transport supplies domain logic.
334
+ *
335
+ * ```ts
336
+ * notifyEffect(alertQueue, async (item) => {
337
+ * await fetch(SLACK_WEBHOOK, { method: 'POST', body: JSON.stringify({ text: item.summary }) });
338
+ * });
339
+ * ```
340
+ *
341
+ * @param topic - TopicGraph whose latest entry triggers the notification.
342
+ * @param transport - Called with each new item. May return a Promise.
343
+ * @param opts - Optional configuration.
344
+ */
345
+ declare function notifyEffect<T>(topic: TopicGraph<T>, transport: NotifyTransport<T>, opts?: NotifyEffectOptions): Node<unknown>;
346
+
347
+ /**
348
+ * Strategy model and priority scoring (roadmap §9.0).
349
+ *
350
+ * Pure-computation derived nodes — no LLM, no async.
351
+ *
352
+ * @module
353
+ */
354
+
355
+ /** Snapshot shape for the strategy model node. */
356
+ type StrategySnapshot = ReadonlyMap<StrategyKey, StrategyEntry>;
357
+ /** Bundle returned by {@link strategyModel}. */
358
+ interface StrategyModelBundle {
359
+ /** Reactive node — current strategy map. */
360
+ readonly node: Node<StrategySnapshot>;
361
+ /** Record a completed issue (success or failure). */
362
+ record(rootCause: RootCause, intervention: Intervention, success: boolean): void;
363
+ /** Look up effectiveness for a specific pair. */
364
+ lookup(rootCause: RootCause, intervention: Intervention): StrategyEntry | undefined;
365
+ /** Tear down internal keepalive subscriptions. */
366
+ dispose(): void;
367
+ }
368
+ /**
369
+ * Create a strategy model that tracks `rootCause × intervention → successRate`
370
+ * over completed issues. Pure derived computation — no LLM.
371
+ *
372
+ * The model feeds back into TRIAGE for routing hints.
373
+ */
374
+ declare function strategyModel(): StrategyModelBundle;
375
+ /**
376
+ * Create a priority scoring derived node for a single triaged item.
377
+ *
378
+ * Combines severity weight, attention decay, strategy model effectiveness,
379
+ * and an optional external urgency signal.
380
+ *
381
+ * @param item - Node holding the triaged item.
382
+ * @param strategy - Strategy model node.
383
+ * @param lastInteractionNs - Node holding the monotonic timestamp (ns) of last human interaction.
384
+ * @param urgency - Optional external urgency signal node (0–1 scale).
385
+ * @param signals - Configurable scoring parameters.
386
+ */
387
+ declare function priorityScore(item: Node<TriagedItem>, strategy: Node<StrategySnapshot>, lastInteractionNs: Node<number>, urgency?: Node<number>, signals?: PrioritySignals): Node<number>;
388
+
389
+ /**
390
+ * harnessLoop() factory (roadmap §9.0).
391
+ *
392
+ * Wires the static 7-stage topology: INTAKE → TRIAGE → QUEUE → GATE →
393
+ * EXECUTE → VERIFY → REFLECT. Static topology, flowing data — the Kafka
394
+ * insight applied to human+LLM collaboration.
395
+ *
396
+ * @module
397
+ */
398
+
399
+ /** The graph returned by {@link harnessLoop}. */
400
+ declare class HarnessGraph extends Graph {
401
+ /** Intake topic — publish items here to enter the loop. */
402
+ readonly intake: TopicGraph<IntakeItem>;
403
+ /** Per-route queue topics. */
404
+ readonly queues: ReadonlyMap<QueueRoute, TopicGraph<TriagedItem>>;
405
+ /** Per-route gate controllers (only for gated queues). */
406
+ readonly gates: ReadonlyMap<QueueRoute, GateController<TriagedItem>>;
407
+ /** Strategy model bundle — record outcomes, lookup effectiveness. */
408
+ readonly strategy: StrategyModelBundle;
409
+ /** Verify results topic — subscribe to see verification outcomes. */
410
+ readonly verifyResults: TopicGraph<VerifyResult>;
411
+ /** Global retry count across all items (circuit breaker). Reactive — subscribable. */
412
+ readonly totalRetries: Node<number>;
413
+ /** Global reingestion count across all items (circuit breaker). Reactive — subscribable. */
414
+ readonly totalReingestions: Node<number>;
415
+ constructor(name: string, intake: TopicGraph<IntakeItem>, queues: Map<QueueRoute, TopicGraph<TriagedItem>>, gates: Map<QueueRoute, GateController<TriagedItem>>, strategy: StrategyModelBundle, verifyResults: TopicGraph<VerifyResult>, totalRetries: Node<number>, totalReingestions: Node<number>);
416
+ }
417
+ /**
418
+ * Wire the reactive collaboration loop as a static-topology graph.
419
+ *
420
+ * The loop has 7 stages:
421
+ * 1. **INTAKE** — items arrive from multiple sources via `intake.publish()`
422
+ * 2. **TRIAGE** — promptNode classifies, routes, and prioritizes
423
+ * 3. **QUEUE** — 4 priority-ordered TopicGraphs (auto-fix, needs-decision, investigation, backlog)
424
+ * 4. **GATE** — human approval on configurable queues
425
+ * 5. **EXECUTE** — promptNode or human implements the fix
426
+ * 6. **VERIFY** — promptNode reviews + optional fast-retry
427
+ * 7. **REFLECT** — strategy model records outcomes
428
+ *
429
+ * @param name - Graph name.
430
+ * @param opts - Configuration.
431
+ * @returns HarnessGraph with controller accessors.
432
+ */
433
+ declare function harnessLoop(name: string, opts: HarnessLoopOptions): HarnessGraph;
434
+
435
+ /**
436
+ * Harness-specific graph profiling (roadmap §9.0).
437
+ *
438
+ * Extends {@link graphProfile} with harness domain counters:
439
+ * queue depths, strategy entries, retry/reingestion tracker sizes.
440
+ *
441
+ * @module
442
+ */
443
+
444
+ /** Harness-specific profile extending the base graph profile. */
445
+ interface HarnessProfileResult extends GraphProfileResult {
446
+ /** Per-queue retained item counts. */
447
+ queueDepths: Record<QueueRoute, number>;
448
+ /** Number of rootCause→intervention entries in the strategy model. */
449
+ strategyEntries: number;
450
+ /** Global retry count across all items. */
451
+ totalRetries: number;
452
+ /** Global reingestion count across all items. */
453
+ totalReingestions: number;
454
+ }
455
+ /**
456
+ * Profile a harness graph with domain-specific counters.
457
+ *
458
+ * @param harness - The HarnessGraph to profile.
459
+ * @param opts - Optional base profile options.
460
+ * @returns Harness profile with queue depths, strategy stats, and tracker sizes.
461
+ */
462
+ declare function harnessProfile(harness: HarnessGraph, opts?: GraphProfileOptions): HarnessProfileResult;
463
+
464
+ /**
465
+ * Harness pipeline trace — thin sugar over `graph.observe({ format: "stage-log" })`.
466
+ *
467
+ * Since 2026-04-22 (D2), stage-labeled tracing is a first-class observe format
468
+ * on {@link Graph}. `harnessTrace` wires that format over the 7 pipeline stages
469
+ * (INTAKE → TRIAGE → QUEUE → GATE → EXECUTE → VERIFY → STRATEGY) with sensible
470
+ * defaults so harness consumers don't need to restate the stage map.
471
+ *
472
+ * For non-harness graphs, call `graph.observe({ format: "stage-log", stageLabels })`
473
+ * directly — the format is domain-agnostic.
474
+ *
475
+ * @module
476
+ */
477
+
478
+ /** Event type captured by structured trace. */
479
+ type TraceEventType = "data" | "error" | "complete";
480
+ /** A single structured trace event. */
481
+ interface TraceEvent {
482
+ /** Elapsed seconds since trace was created. */
483
+ elapsed: number;
484
+ /** Pipeline stage label (INTAKE, TRIAGE, QUEUE, GATE, EXECUTE, VERIFY, STRATEGY). */
485
+ stage: string;
486
+ /** Event type. */
487
+ type: TraceEventType;
488
+ /** Data payload (present for "data" and "error" events). Omitted at "summary" detail. */
489
+ data?: unknown;
490
+ /** Human-readable summary of the data. Present at "standard" and "full" detail. */
491
+ summary?: string;
492
+ }
493
+ /** Detail level for trace output. */
494
+ type TraceDetail =
495
+ /** Stage + elapsed only. No data preview. Lowest overhead. */
496
+ "summary"
497
+ /** Stage + elapsed + truncated data preview. Default. */
498
+ | "standard"
499
+ /** Stage + elapsed + full raw data. Use for debugging, not production. */
500
+ | "full";
501
+ /** Handle returned by {@link harnessTrace}. Call `dispose()` to stop tracing. */
502
+ interface HarnessTraceHandle {
503
+ /** Stop tracing and detach all observers. Safe to call multiple times. */
504
+ dispose(): void;
505
+ /**
506
+ * Structured trace events collected since creation. Plain array — no
507
+ * subscription needed (COMPOSITION-GUIDE §1: avoid lazy-activation
508
+ * friction for inspection tools). Populated reactively via observe().
509
+ */
510
+ readonly events: readonly TraceEvent[];
511
+ }
512
+ /** Options for {@link harnessTrace}. */
513
+ interface HarnessTraceOptions {
514
+ /** Sink for rendered trace lines. Default: `console.log`. Pass `null` for structured-only. */
515
+ logger?: ((line: string) => void) | null;
516
+ /** Detail level for both string and structured output. Default: `"summary"`. */
517
+ detail?: TraceDetail;
518
+ }
519
+ /**
520
+ * Attach a stage-log trace over the harness pipeline. Delegates to
521
+ * `harness.observe({ format: "stage-log", ... })` for each stage path —
522
+ * every event is captured in `handle.events` (structured) AND rendered via
523
+ * the `logger` (string output).
524
+ *
525
+ * **Detail levels:**
526
+ * - `"summary"` — stage + elapsed only. Minimal overhead.
527
+ * - `"standard"` (default) — stage + elapsed + truncated data preview.
528
+ * - `"full"` — stage + elapsed + full raw data object in events.
529
+ *
530
+ * Elapsed timestamps are relative to the `harnessTrace()` invocation time,
531
+ * not the first event.
532
+ */
533
+ declare function harnessTrace(harness: HarnessGraph, opts?: HarnessTraceOptions): HarnessTraceHandle;
534
+
535
+ /**
536
+ * Harness wiring (roadmap §9.0).
537
+ *
538
+ * Reactive collaboration loop: static-topology, flowing data.
539
+ * Composes orchestration (gate), AI (promptNode), reduction (scorer/stratify),
540
+ * and messaging (TopicGraph/bridge) into a 7-stage loop.
541
+ *
542
+ * @module
543
+ */
544
+
545
+ type index_CodeChange = CodeChange;
546
+ type index_CodeChangeBridgeOptions = CodeChangeBridgeOptions;
547
+ declare const index_DEFAULT_DECAY_RATE: typeof DEFAULT_DECAY_RATE;
548
+ declare const index_DEFAULT_QUEUE_CONFIGS: typeof DEFAULT_QUEUE_CONFIGS;
549
+ declare const index_DEFAULT_SEVERITY_WEIGHTS: typeof DEFAULT_SEVERITY_WEIGHTS;
550
+ type index_ErrorClass = ErrorClass;
551
+ type index_ErrorClassifier = ErrorClassifier;
552
+ type index_EvalDelta = EvalDelta;
553
+ type index_EvalIntakeBridgeOptions = EvalIntakeBridgeOptions;
554
+ type index_EvalJudgeScore = EvalJudgeScore;
555
+ type index_EvalResult = EvalResult;
556
+ type index_EvalTaskDelta = EvalTaskDelta;
557
+ type index_EvalTaskResult = EvalTaskResult;
558
+ type index_ExecuteOutput = ExecuteOutput;
559
+ type index_ExecutionResult = ExecutionResult;
560
+ type index_HarnessGraph = HarnessGraph;
561
+ declare const index_HarnessGraph: typeof HarnessGraph;
562
+ type index_HarnessLoopOptions = HarnessLoopOptions;
563
+ type index_HarnessProfileResult = HarnessProfileResult;
564
+ type index_HarnessTraceHandle = HarnessTraceHandle;
565
+ type index_HarnessTraceOptions = HarnessTraceOptions;
566
+ type index_IntakeBridgeOptions = IntakeBridgeOptions;
567
+ type index_IntakeItem = IntakeItem;
568
+ type index_IntakeSource = IntakeSource;
569
+ type index_Intervention = Intervention;
570
+ type index_LintError = LintError;
571
+ type index_NotifyEffectOptions = NotifyEffectOptions;
572
+ type index_NotifyTransport<T> = NotifyTransport<T>;
573
+ type index_PrioritySignals = PrioritySignals;
574
+ declare const index_QUEUE_NAMES: typeof QUEUE_NAMES;
575
+ type index_QueueConfig = QueueConfig;
576
+ type index_QueueRoute = QueueRoute;
577
+ type index_RootCause = RootCause;
578
+ type index_Severity = Severity;
579
+ type index_StrategyEntry = StrategyEntry;
580
+ type index_StrategyKey = StrategyKey;
581
+ type index_StrategyModelBundle = StrategyModelBundle;
582
+ type index_StrategySnapshot = StrategySnapshot;
583
+ type index_TestFailure = TestFailure;
584
+ type index_TraceDetail = TraceDetail;
585
+ type index_TraceEvent = TraceEvent;
586
+ type index_TraceEventType = TraceEventType;
587
+ type index_TriagedItem = TriagedItem;
588
+ type index_VerifyResult = VerifyResult;
589
+ declare const index_affectedTaskFilter: typeof affectedTaskFilter;
590
+ declare const index_beforeAfterCompare: typeof beforeAfterCompare;
591
+ declare const index_codeChangeBridge: typeof codeChangeBridge;
592
+ declare const index_createIntakeBridge: typeof createIntakeBridge;
593
+ declare const index_defaultErrorClassifier: typeof defaultErrorClassifier;
594
+ declare const index_evalIntakeBridge: typeof evalIntakeBridge;
595
+ declare const index_evalSource: typeof evalSource;
596
+ declare const index_harnessLoop: typeof harnessLoop;
597
+ declare const index_harnessProfile: typeof harnessProfile;
598
+ declare const index_harnessTrace: typeof harnessTrace;
599
+ declare const index_notifyEffect: typeof notifyEffect;
600
+ declare const index_priorityScore: typeof priorityScore;
601
+ declare const index_strategyKey: typeof strategyKey;
602
+ declare const index_strategyModel: typeof strategyModel;
603
+ declare namespace index {
604
+ export { type index_CodeChange as CodeChange, type index_CodeChangeBridgeOptions as CodeChangeBridgeOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index_ErrorClass as ErrorClass, type index_ErrorClassifier as ErrorClassifier, type index_EvalDelta as EvalDelta, type index_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index_EvalJudgeScore as EvalJudgeScore, type index_EvalResult as EvalResult, type index_EvalTaskDelta as EvalTaskDelta, type index_EvalTaskResult as EvalTaskResult, type index_ExecuteOutput as ExecuteOutput, type index_ExecutionResult as ExecutionResult, index_HarnessGraph as HarnessGraph, type index_HarnessLoopOptions as HarnessLoopOptions, type index_HarnessProfileResult as HarnessProfileResult, type index_HarnessTraceHandle as HarnessTraceHandle, type index_HarnessTraceOptions as HarnessTraceOptions, type index_IntakeBridgeOptions as IntakeBridgeOptions, type index_IntakeItem as IntakeItem, type index_IntakeSource as IntakeSource, type index_Intervention as Intervention, type index_LintError as LintError, type index_NotifyEffectOptions as NotifyEffectOptions, type index_NotifyTransport as NotifyTransport, type index_PrioritySignals as PrioritySignals, index_QUEUE_NAMES as QUEUE_NAMES, type index_QueueConfig as QueueConfig, type index_QueueRoute as QueueRoute, type index_RootCause as RootCause, type index_Severity as Severity, type index_StrategyEntry as StrategyEntry, type index_StrategyKey as StrategyKey, type index_StrategyModelBundle as StrategyModelBundle, type index_StrategySnapshot as StrategySnapshot, type index_TestFailure as TestFailure, type index_TraceDetail as TraceDetail, type index_TraceEvent as TraceEvent, type index_TraceEventType as TraceEventType, type index_TriagedItem as TriagedItem, type index_VerifyResult as VerifyResult, index_affectedTaskFilter as affectedTaskFilter, index_beforeAfterCompare as beforeAfterCompare, index_codeChangeBridge as codeChangeBridge, index_createIntakeBridge as createIntakeBridge, index_defaultErrorClassifier as defaultErrorClassifier, index_evalIntakeBridge as evalIntakeBridge, index_evalSource as evalSource, index_harnessLoop as harnessLoop, index_harnessProfile as harnessProfile, index_harnessTrace as harnessTrace, index_notifyEffect as notifyEffect, index_priorityScore as priorityScore, index_strategyKey as strategyKey, index_strategyModel as strategyModel };
605
+ }
606
+
607
+ export { harnessTrace as $, type StrategySnapshot as A, type TraceDetail as B, type CodeChange as C, DEFAULT_DECAY_RATE as D, type ErrorClass as E, type TraceEvent as F, type TraceEventType as G, HarnessGraph as H, type IntakeBridgeOptions as I, type TriagedItem as J, affectedTaskFilter as K, type LintError as L, beforeAfterCompare as M, type NotifyEffectOptions as N, codeChangeBridge as O, type PrioritySignals as P, QUEUE_NAMES as Q, type RootCause as R, type Severity as S, type TestFailure as T, createIntakeBridge as U, type VerifyResult as V, defaultErrorClassifier as W, evalIntakeBridge as X, evalSource as Y, harnessLoop as Z, harnessProfile as _, type CodeChangeBridgeOptions as a, notifyEffect as a0, priorityScore as a1, strategyKey as a2, strategyModel as a3, DEFAULT_QUEUE_CONFIGS as b, DEFAULT_SEVERITY_WEIGHTS as c, type ErrorClassifier as d, type EvalDelta as e, type EvalIntakeBridgeOptions as f, type EvalJudgeScore as g, type EvalResult as h, index as i, type EvalTaskDelta as j, type EvalTaskResult as k, type ExecuteOutput as l, type ExecutionResult as m, type HarnessLoopOptions as n, type HarnessProfileResult as o, type HarnessTraceHandle as p, type HarnessTraceOptions as q, type IntakeItem as r, type IntakeSource as s, type Intervention as t, type NotifyTransport as u, type QueueConfig as v, type QueueRoute as w, type StrategyEntry as x, type StrategyKey as y, type StrategyModelBundle as z };