@graphrefly/graphrefly 0.45.0 → 0.47.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 (714) hide show
  1. package/README.md +1 -2
  2. package/dist/_internal-B23BagFd.d.cts +33 -0
  3. package/dist/_internal-B23BagFd.d.ts +33 -0
  4. package/dist/adaptive-rate-limiter-Dch_xYIi.d.cts +111 -0
  5. package/dist/adaptive-rate-limiter-Dch_xYIi.d.ts +111 -0
  6. package/dist/agents-C0Ji9ldU.d.cts +629 -0
  7. package/dist/agents-C9zexT7I.d.ts +629 -0
  8. package/dist/audit-BAXb3VOg.d.ts +246 -0
  9. package/dist/audit-C_bPfkqS.d.cts +246 -0
  10. package/dist/backoff-7KIK3WQW.js +24 -0
  11. package/dist/backoff-7KIK3WQW.js.map +1 -0
  12. package/dist/backoff-Bnb9OoPh.d.cts +6 -0
  13. package/dist/backoff-Bnb9OoPh.d.ts +6 -0
  14. package/dist/base/composition/index.cjs +865 -0
  15. package/dist/base/composition/index.cjs.map +1 -0
  16. package/dist/base/composition/index.d.cts +468 -0
  17. package/dist/base/composition/index.d.ts +468 -0
  18. package/dist/base/composition/index.js +40 -0
  19. package/dist/base/composition/index.js.map +1 -0
  20. package/dist/base/index.cjs +6390 -0
  21. package/dist/base/index.cjs.map +1 -0
  22. package/dist/base/index.d.cts +21 -0
  23. package/dist/base/index.d.ts +21 -0
  24. package/dist/base/index.js +259 -0
  25. package/dist/base/index.js.map +1 -0
  26. package/dist/base/io/index.cjs +3270 -0
  27. package/dist/base/io/index.cjs.map +1 -0
  28. package/dist/base/io/index.d.cts +2245 -0
  29. package/dist/base/io/index.d.ts +2245 -0
  30. package/dist/base/io/index.js +117 -0
  31. package/dist/base/io/index.js.map +1 -0
  32. package/dist/base/meta/index.cjs +43 -0
  33. package/dist/base/meta/index.cjs.map +1 -0
  34. package/dist/base/meta/index.d.cts +45 -0
  35. package/dist/base/meta/index.d.ts +45 -0
  36. package/dist/base/meta/index.js +13 -0
  37. package/dist/base/meta/index.js.map +1 -0
  38. package/dist/base/mutation/index.cjs +200 -0
  39. package/dist/base/mutation/index.cjs.map +1 -0
  40. package/dist/base/mutation/index.d.cts +177 -0
  41. package/dist/base/mutation/index.d.ts +177 -0
  42. package/dist/base/mutation/index.js +22 -0
  43. package/dist/base/mutation/index.js.map +1 -0
  44. package/dist/base/render/index.cjs +1120 -0
  45. package/dist/base/render/index.cjs.map +1 -0
  46. package/dist/base/render/index.d.cts +227 -0
  47. package/dist/base/render/index.d.ts +227 -0
  48. package/dist/base/render/index.js +24 -0
  49. package/dist/base/render/index.js.map +1 -0
  50. package/dist/base/sources/browser/index.cjs +172 -0
  51. package/dist/base/sources/browser/index.cjs.map +1 -0
  52. package/dist/base/sources/browser/index.d.cts +84 -0
  53. package/dist/base/sources/browser/index.d.ts +84 -0
  54. package/dist/base/sources/browser/index.js +151 -0
  55. package/dist/base/sources/browser/index.js.map +1 -0
  56. package/dist/base/sources/event/index.cjs +98 -0
  57. package/dist/base/sources/event/index.cjs.map +1 -0
  58. package/dist/base/sources/event/index.d.cts +91 -0
  59. package/dist/base/sources/event/index.d.ts +91 -0
  60. package/dist/base/sources/event/index.js +13 -0
  61. package/dist/base/sources/event/index.js.map +1 -0
  62. package/dist/base/sources/index.cjs +755 -0
  63. package/dist/base/sources/index.cjs.map +1 -0
  64. package/dist/base/sources/index.d.cts +357 -0
  65. package/dist/base/sources/index.d.ts +357 -0
  66. package/dist/base/sources/index.js +42 -0
  67. package/dist/base/sources/index.js.map +1 -0
  68. package/dist/base/sources/node/index.cjs +320 -0
  69. package/dist/base/sources/node/index.cjs.map +1 -0
  70. package/dist/base/sources/node/index.d.cts +185 -0
  71. package/dist/base/sources/node/index.d.ts +185 -0
  72. package/dist/base/sources/node/index.js +306 -0
  73. package/dist/base/sources/node/index.js.map +1 -0
  74. package/dist/base/utils/index.cjs +37 -0
  75. package/dist/base/utils/index.cjs.map +1 -0
  76. package/dist/base/utils/index.d.cts +37 -0
  77. package/dist/base/utils/index.d.ts +37 -0
  78. package/dist/base/utils/index.js +11 -0
  79. package/dist/base/utils/index.js.map +1 -0
  80. package/dist/base/worker/index.cjs +548 -0
  81. package/dist/base/worker/index.cjs.map +1 -0
  82. package/dist/base/worker/index.d.cts +207 -0
  83. package/dist/base/worker/index.d.ts +207 -0
  84. package/dist/base/worker/index.js +20 -0
  85. package/dist/base/worker/index.js.map +1 -0
  86. package/dist/breaker-C9skL3d8.d.ts +175 -0
  87. package/dist/breaker-ugSdq54q.d.cts +175 -0
  88. package/dist/cascading-CSSbKGrJ.d.ts +199 -0
  89. package/dist/cascading-baGkiihI.d.cts +199 -0
  90. package/dist/chunk-22SG74BD.js +207 -0
  91. package/dist/chunk-22SG74BD.js.map +1 -0
  92. package/dist/chunk-255UCBG4.js +58 -0
  93. package/dist/chunk-255UCBG4.js.map +1 -0
  94. package/dist/chunk-2LO3EL4W.js +1 -0
  95. package/dist/chunk-2LO3EL4W.js.map +1 -0
  96. package/dist/chunk-2OB3CEJS.js +1065 -0
  97. package/dist/chunk-2OB3CEJS.js.map +1 -0
  98. package/dist/chunk-36NMM65U.js +144 -0
  99. package/dist/chunk-36NMM65U.js.map +1 -0
  100. package/dist/chunk-3CEXCBN6.js +1 -0
  101. package/dist/chunk-3CEXCBN6.js.map +1 -0
  102. package/dist/chunk-3MUSLI6E.js +105 -0
  103. package/dist/chunk-3MUSLI6E.js.map +1 -0
  104. package/dist/chunk-3PSLNJDU.js +884 -0
  105. package/dist/chunk-3PSLNJDU.js.map +1 -0
  106. package/dist/chunk-42FQ27MQ.js +594 -0
  107. package/dist/chunk-42FQ27MQ.js.map +1 -0
  108. package/dist/chunk-4GYMCUDZ.js +1085 -0
  109. package/dist/chunk-4GYMCUDZ.js.map +1 -0
  110. package/dist/chunk-4S53H2KR.js +382 -0
  111. package/dist/chunk-4S53H2KR.js.map +1 -0
  112. package/dist/chunk-4XCHZRUJ.js +128 -0
  113. package/dist/chunk-4XCHZRUJ.js.map +1 -0
  114. package/dist/chunk-5IMMNARC.js +1153 -0
  115. package/dist/chunk-5IMMNARC.js.map +1 -0
  116. package/dist/chunk-6XZYT4SW.js +256 -0
  117. package/dist/chunk-6XZYT4SW.js.map +1 -0
  118. package/dist/chunk-7EGRP2VX.js +76 -0
  119. package/dist/chunk-7EGRP2VX.js.map +1 -0
  120. package/dist/chunk-A7KV5UK4.js +150 -0
  121. package/dist/chunk-A7KV5UK4.js.map +1 -0
  122. package/dist/chunk-APY2SS5X.js +156 -0
  123. package/dist/chunk-APY2SS5X.js.map +1 -0
  124. package/dist/chunk-AZDQPQ3V.js +66 -0
  125. package/dist/chunk-AZDQPQ3V.js.map +1 -0
  126. package/dist/chunk-BU3SEFA5.js +90 -0
  127. package/dist/chunk-BU3SEFA5.js.map +1 -0
  128. package/dist/chunk-BXGZFGZ4.js +189 -0
  129. package/dist/chunk-BXGZFGZ4.js.map +1 -0
  130. package/dist/chunk-CGHORL6G.js +579 -0
  131. package/dist/chunk-CGHORL6G.js.map +1 -0
  132. package/dist/chunk-CXANAIZU.js +530 -0
  133. package/dist/chunk-CXANAIZU.js.map +1 -0
  134. package/dist/chunk-CZQHCKKG.js +1 -0
  135. package/dist/chunk-CZQHCKKG.js.map +1 -0
  136. package/dist/chunk-DKNHAICT.js +133 -0
  137. package/dist/chunk-DKNHAICT.js.map +1 -0
  138. package/dist/chunk-DM4OMPWK.js +584 -0
  139. package/dist/chunk-DM4OMPWK.js.map +1 -0
  140. package/dist/chunk-DMSNO6ZB.js +452 -0
  141. package/dist/chunk-DMSNO6ZB.js.map +1 -0
  142. package/dist/chunk-E5OZPDIW.js +229 -0
  143. package/dist/chunk-E5OZPDIW.js.map +1 -0
  144. package/dist/chunk-EHRRQ4IC.js +211 -0
  145. package/dist/chunk-EHRRQ4IC.js.map +1 -0
  146. package/dist/chunk-EVYY4X5A.js +509 -0
  147. package/dist/chunk-EVYY4X5A.js.map +1 -0
  148. package/dist/chunk-FDFD67UO.js +1 -0
  149. package/dist/chunk-FDFD67UO.js.map +1 -0
  150. package/dist/chunk-FMPF42Q4.js +13 -0
  151. package/dist/chunk-FMPF42Q4.js.map +1 -0
  152. package/dist/chunk-FW23JYNQ.js +454 -0
  153. package/dist/chunk-FW23JYNQ.js.map +1 -0
  154. package/dist/chunk-GWRNLJNW.js +2508 -0
  155. package/dist/chunk-GWRNLJNW.js.map +1 -0
  156. package/dist/chunk-HL7HUJIX.js +1 -0
  157. package/dist/chunk-HL7HUJIX.js.map +1 -0
  158. package/dist/chunk-IHTWQEDR.js +169 -0
  159. package/dist/chunk-IHTWQEDR.js.map +1 -0
  160. package/dist/chunk-IJRR6YAI.js +128 -0
  161. package/dist/chunk-IJRR6YAI.js.map +1 -0
  162. package/dist/chunk-JGFRAFDL.js +221 -0
  163. package/dist/chunk-JGFRAFDL.js.map +1 -0
  164. package/dist/chunk-JKTC747G.js +725 -0
  165. package/dist/chunk-JKTC747G.js.map +1 -0
  166. package/dist/chunk-KN3H5CNT.js +11 -0
  167. package/dist/chunk-KN3H5CNT.js.map +1 -0
  168. package/dist/chunk-KPG3DGLA.js +1 -0
  169. package/dist/chunk-KPG3DGLA.js.map +1 -0
  170. package/dist/chunk-KRNQ6RGQ.js +1 -0
  171. package/dist/chunk-KRNQ6RGQ.js.map +1 -0
  172. package/dist/chunk-MLTPJMH6.js +417 -0
  173. package/dist/chunk-MLTPJMH6.js.map +1 -0
  174. package/dist/chunk-N3SZ7BMH.js +95 -0
  175. package/dist/chunk-N3SZ7BMH.js.map +1 -0
  176. package/dist/chunk-NDUD3IMO.js +540 -0
  177. package/dist/chunk-NDUD3IMO.js.map +1 -0
  178. package/dist/chunk-NY2PYHNC.js +873 -0
  179. package/dist/chunk-NY2PYHNC.js.map +1 -0
  180. package/dist/chunk-O3MT7DYI.js +225 -0
  181. package/dist/chunk-O3MT7DYI.js.map +1 -0
  182. package/dist/chunk-OCUDSN63.js +2386 -0
  183. package/dist/chunk-OCUDSN63.js.map +1 -0
  184. package/dist/chunk-OIWU3NYV.js +199 -0
  185. package/dist/chunk-OIWU3NYV.js.map +1 -0
  186. package/dist/chunk-OQUIJT7A.js +1 -0
  187. package/dist/chunk-OQUIJT7A.js.map +1 -0
  188. package/dist/chunk-P5LBT622.js +105 -0
  189. package/dist/chunk-P5LBT622.js.map +1 -0
  190. package/dist/chunk-PKGQG5QQ.js +519 -0
  191. package/dist/chunk-PKGQG5QQ.js.map +1 -0
  192. package/dist/chunk-PKPO3JTZ.js +561 -0
  193. package/dist/chunk-PKPO3JTZ.js.map +1 -0
  194. package/dist/chunk-PL5UDIQ5.js +118 -0
  195. package/dist/chunk-PL5UDIQ5.js.map +1 -0
  196. package/dist/chunk-PZWISPIQ.js +432 -0
  197. package/dist/chunk-PZWISPIQ.js.map +1 -0
  198. package/dist/chunk-Q3EYOCZB.js +510 -0
  199. package/dist/chunk-Q3EYOCZB.js.map +1 -0
  200. package/dist/chunk-QMBYUVRL.js +15 -0
  201. package/dist/chunk-QMBYUVRL.js.map +1 -0
  202. package/dist/chunk-RAGGHLCV.js +200 -0
  203. package/dist/chunk-RAGGHLCV.js.map +1 -0
  204. package/dist/chunk-RJOG4IJU.js +1039 -0
  205. package/dist/chunk-RJOG4IJU.js.map +1 -0
  206. package/dist/chunk-SOOKUYVM.js +403 -0
  207. package/dist/chunk-SOOKUYVM.js.map +1 -0
  208. package/dist/chunk-T5BN5KG7.js +1 -0
  209. package/dist/chunk-T5BN5KG7.js.map +1 -0
  210. package/dist/chunk-TNX5ZGDJ.js +574 -0
  211. package/dist/chunk-TNX5ZGDJ.js.map +1 -0
  212. package/dist/chunk-TP7244Y6.js +207 -0
  213. package/dist/chunk-TP7244Y6.js.map +1 -0
  214. package/dist/chunk-TSBFTJKM.js +57 -0
  215. package/dist/chunk-TSBFTJKM.js.map +1 -0
  216. package/dist/chunk-URQ2CBBF.js +143 -0
  217. package/dist/chunk-URQ2CBBF.js.map +1 -0
  218. package/dist/chunk-VLAGJZSL.js +1079 -0
  219. package/dist/chunk-VLAGJZSL.js.map +1 -0
  220. package/dist/chunk-W2BOPXTI.js +1 -0
  221. package/dist/chunk-W2BOPXTI.js.map +1 -0
  222. package/dist/chunk-Y52CS6YA.js +88 -0
  223. package/dist/chunk-Y52CS6YA.js.map +1 -0
  224. package/dist/chunk-YCBUWK77.js +92 -0
  225. package/dist/chunk-YCBUWK77.js.map +1 -0
  226. package/dist/chunk-YJ4U2D2C.js +314 -0
  227. package/dist/chunk-YJ4U2D2C.js.map +1 -0
  228. package/dist/chunk-Z4YXAUDN.js +239 -0
  229. package/dist/chunk-Z4YXAUDN.js.map +1 -0
  230. package/dist/chunk-Z65DVDEQ.js +146 -0
  231. package/dist/chunk-Z65DVDEQ.js.map +1 -0
  232. package/dist/chunk-Z6EGP5D7.js +92 -0
  233. package/dist/chunk-Z6EGP5D7.js.map +1 -0
  234. package/dist/chunk-ZT4WMQW4.js +1575 -0
  235. package/dist/chunk-ZT4WMQW4.js.map +1 -0
  236. package/dist/chunk-ZVXXDWIB.js +1282 -0
  237. package/dist/chunk-ZVXXDWIB.js.map +1 -0
  238. package/dist/compat/index.cjs +3150 -6
  239. package/dist/compat/index.cjs.map +1 -1
  240. package/dist/compat/index.d.cts +116 -1
  241. package/dist/compat/index.d.ts +116 -1
  242. package/dist/compat/index.js +175 -2
  243. package/dist/compat/index.js.map +1 -1
  244. package/dist/compat/jotai/index.cjs +130 -2
  245. package/dist/compat/jotai/index.cjs.map +1 -1
  246. package/dist/compat/jotai/index.d.cts +2 -1
  247. package/dist/compat/jotai/index.d.ts +2 -1
  248. package/dist/compat/jotai/index.js +7 -2
  249. package/dist/compat/jotai/index.js.map +1 -1
  250. package/dist/compat/nanostores/index.cjs +186 -2
  251. package/dist/compat/nanostores/index.cjs.map +1 -1
  252. package/dist/compat/nanostores/index.d.cts +2 -1
  253. package/dist/compat/nanostores/index.d.ts +2 -1
  254. package/dist/compat/nanostores/index.js +21 -2
  255. package/dist/compat/nanostores/index.js.map +1 -1
  256. package/dist/compat/nestjs/index.cjs +2291 -6
  257. package/dist/compat/nestjs/index.cjs.map +1 -1
  258. package/dist/compat/nestjs/index.d.cts +10 -1
  259. package/dist/compat/nestjs/index.d.ts +10 -1
  260. package/dist/compat/nestjs/index.js +76 -2
  261. package/dist/compat/nestjs/index.js.map +1 -1
  262. package/dist/compat/react/index.cjs +95 -2
  263. package/dist/compat/react/index.cjs.map +1 -1
  264. package/dist/compat/react/index.d.cts +2 -1
  265. package/dist/compat/react/index.d.ts +2 -1
  266. package/dist/compat/react/index.js +11 -2
  267. package/dist/compat/react/index.js.map +1 -1
  268. package/dist/compat/solid/index.cjs +82 -2
  269. package/dist/compat/solid/index.cjs.map +1 -1
  270. package/dist/compat/solid/index.d.cts +2 -1
  271. package/dist/compat/solid/index.d.ts +2 -1
  272. package/dist/compat/solid/index.js +11 -2
  273. package/dist/compat/solid/index.js.map +1 -1
  274. package/dist/compat/svelte/index.cjs +85 -2
  275. package/dist/compat/svelte/index.cjs.map +1 -1
  276. package/dist/compat/svelte/index.d.cts +2 -1
  277. package/dist/compat/svelte/index.d.ts +2 -1
  278. package/dist/compat/svelte/index.js +11 -2
  279. package/dist/compat/svelte/index.js.map +1 -1
  280. package/dist/compat/vue/index.cjs +100 -2
  281. package/dist/compat/vue/index.cjs.map +1 -1
  282. package/dist/compat/vue/index.d.cts +3 -1
  283. package/dist/compat/vue/index.d.ts +3 -1
  284. package/dist/compat/vue/index.js +11 -2
  285. package/dist/compat/vue/index.js.map +1 -1
  286. package/dist/compat/zustand/index.cjs +50 -2
  287. package/dist/compat/zustand/index.cjs.map +1 -1
  288. package/dist/compat/zustand/index.d.cts +2 -1
  289. package/dist/compat/zustand/index.d.ts +2 -1
  290. package/dist/compat/zustand/index.js +7 -2
  291. package/dist/compat/zustand/index.js.map +1 -1
  292. package/dist/distill-De6Rnn15.d.cts +48 -0
  293. package/dist/distill-De6Rnn15.d.ts +48 -0
  294. package/dist/external-register-CWyroXb_.d.cts +138 -0
  295. package/dist/external-register-CWyroXb_.d.ts +138 -0
  296. package/dist/fallback-Bx46zqky.d.cts +243 -0
  297. package/dist/fallback-pIWW8A2d.d.ts +243 -0
  298. package/dist/guarded-execution-BcdtxeBk.d.ts +207 -0
  299. package/dist/guarded-execution-C-3hnP6A.d.cts +207 -0
  300. package/dist/index-B6pxYJzO.d.cts +36 -0
  301. package/dist/index-B6pxYJzO.d.ts +36 -0
  302. package/dist/index-BFsng6v1.d.cts +44 -0
  303. package/dist/index-BFsng6v1.d.ts +44 -0
  304. package/dist/index-B_p8tnvf.d.cts +770 -0
  305. package/dist/index-Bg-LwEt-.d.cts +45 -0
  306. package/dist/index-Bg-LwEt-.d.ts +45 -0
  307. package/dist/index-Brp888t0.d.cts +127 -0
  308. package/dist/index-Brp888t0.d.ts +127 -0
  309. package/dist/index-CDfk6jHN.d.cts +37 -0
  310. package/dist/index-CDfk6jHN.d.ts +37 -0
  311. package/dist/index-DLAxYaN5.d.cts +169 -0
  312. package/dist/index-DLAxYaN5.d.ts +169 -0
  313. package/dist/index-DeWbQzMe.d.cts +34 -0
  314. package/dist/index-DeWbQzMe.d.ts +34 -0
  315. package/dist/index-_HDSmPyp.d.ts +770 -0
  316. package/dist/index-dX9IzPqj.d.cts +86 -0
  317. package/dist/index-dX9IzPqj.d.ts +86 -0
  318. package/dist/index.cjs +26009 -0
  319. package/dist/index.cjs.map +1 -1
  320. package/dist/index.d.cts +55 -42
  321. package/dist/index.d.ts +55 -42
  322. package/dist/index.js +849 -0
  323. package/dist/index.js.map +1 -1
  324. package/dist/layout-types-B5aiHYgk.d.cts +72 -0
  325. package/dist/layout-types-B5aiHYgk.d.ts +72 -0
  326. package/dist/memory-composers-BryDrRBX.d.cts +529 -0
  327. package/dist/memory-composers-CVQqPYEV.d.ts +529 -0
  328. package/dist/observable-B25XqCbZ.d.cts +59 -0
  329. package/dist/observable-B25XqCbZ.d.ts +59 -0
  330. package/dist/pipeline-graph-Ce47CB6Y.d.cts +145 -0
  331. package/dist/pipeline-graph-DXCwY9vG.d.ts +145 -0
  332. package/dist/presets/ai/index.cjs +4377 -0
  333. package/dist/presets/ai/index.cjs.map +1 -0
  334. package/dist/presets/ai/index.d.cts +98 -0
  335. package/dist/presets/ai/index.d.ts +98 -0
  336. package/dist/presets/ai/index.js +54 -0
  337. package/dist/presets/ai/index.js.map +1 -0
  338. package/dist/presets/harness/index.cjs +5929 -0
  339. package/dist/presets/harness/index.cjs.map +1 -0
  340. package/dist/presets/harness/index.d.cts +566 -0
  341. package/dist/presets/harness/index.d.ts +566 -0
  342. package/dist/presets/harness/index.js +71 -0
  343. package/dist/presets/harness/index.js.map +1 -0
  344. package/dist/presets/index.cjs +9782 -0
  345. package/dist/presets/index.cjs.map +1 -0
  346. package/dist/presets/index.d.cts +28 -0
  347. package/dist/presets/index.d.ts +28 -0
  348. package/dist/presets/index.js +129 -0
  349. package/dist/presets/index.js.map +1 -0
  350. package/dist/presets/inspect/index.cjs +1087 -0
  351. package/dist/presets/inspect/index.cjs.map +1 -0
  352. package/dist/presets/inspect/index.d.cts +172 -0
  353. package/dist/presets/inspect/index.d.ts +172 -0
  354. package/dist/presets/inspect/index.js +21 -0
  355. package/dist/presets/inspect/index.js.map +1 -0
  356. package/dist/presets/resilience/index.cjs +1593 -0
  357. package/dist/presets/resilience/index.cjs.map +1 -0
  358. package/dist/presets/resilience/index.d.cts +205 -0
  359. package/dist/presets/resilience/index.d.ts +205 -0
  360. package/dist/presets/resilience/index.js +18 -0
  361. package/dist/presets/resilience/index.js.map +1 -0
  362. package/dist/rate-limiter-CEALq4N1.d.ts +559 -0
  363. package/dist/rate-limiter-DpVbSYdH.d.cts +559 -0
  364. package/dist/reactive-layout-fswlBUvX.d.cts +195 -0
  365. package/dist/reactive-layout-fswlBUvX.d.ts +195 -0
  366. package/dist/retry-BDbRZ_gx.d.ts +125 -0
  367. package/dist/retry-DWuhjvsA.d.cts +125 -0
  368. package/dist/solutions/index.cjs +8200 -0
  369. package/dist/solutions/index.cjs.map +1 -0
  370. package/dist/solutions/index.d.cts +23 -0
  371. package/dist/solutions/index.d.ts +23 -0
  372. package/dist/solutions/index.js +55 -0
  373. package/dist/solutions/index.js.map +1 -0
  374. package/dist/spawnable-5mDY501F.d.cts +746 -0
  375. package/dist/spawnable-D3lR0oQu.d.ts +746 -0
  376. package/dist/status-U-rUI79b.d.cts +84 -0
  377. package/dist/status-U-rUI79b.d.ts +84 -0
  378. package/dist/timeout-U5O4ESK3.js +12 -0
  379. package/dist/timeout-U5O4ESK3.js.map +1 -0
  380. package/dist/types-BB5Lw-pB.d.cts +442 -0
  381. package/dist/types-BB5Lw-pB.d.ts +442 -0
  382. package/dist/types-CJWIMJiZ.d.ts +548 -0
  383. package/dist/types-vCq7ShIm.d.cts +548 -0
  384. package/dist/utils/ai/browser.cjs +2169 -0
  385. package/dist/utils/ai/browser.cjs.map +1 -0
  386. package/dist/utils/ai/browser.d.cts +129 -0
  387. package/dist/utils/ai/browser.d.ts +129 -0
  388. package/dist/utils/ai/browser.js +255 -0
  389. package/dist/utils/ai/browser.js.map +1 -0
  390. package/dist/utils/ai/index.cjs +8468 -0
  391. package/dist/utils/ai/index.cjs.map +1 -0
  392. package/dist/utils/ai/index.d.cts +1777 -0
  393. package/dist/utils/ai/index.d.ts +1777 -0
  394. package/dist/utils/ai/index.js +173 -0
  395. package/dist/utils/ai/index.js.map +1 -0
  396. package/dist/utils/ai/node.cjs +648 -0
  397. package/dist/utils/ai/node.cjs.map +1 -0
  398. package/dist/utils/ai/node.d.cts +57 -0
  399. package/dist/utils/ai/node.d.ts +57 -0
  400. package/dist/utils/ai/node.js +84 -0
  401. package/dist/utils/ai/node.js.map +1 -0
  402. package/dist/utils/cqrs/index.cjs +1036 -0
  403. package/dist/utils/cqrs/index.cjs.map +1 -0
  404. package/dist/utils/cqrs/index.d.cts +438 -0
  405. package/dist/utils/cqrs/index.d.ts +438 -0
  406. package/dist/utils/cqrs/index.js +18 -0
  407. package/dist/utils/cqrs/index.js.map +1 -0
  408. package/dist/utils/demo-shell/index.cjs +865 -0
  409. package/dist/utils/demo-shell/index.cjs.map +1 -0
  410. package/dist/utils/demo-shell/index.d.cts +90 -0
  411. package/dist/utils/demo-shell/index.d.ts +90 -0
  412. package/dist/utils/demo-shell/index.js +13 -0
  413. package/dist/utils/demo-shell/index.js.map +1 -0
  414. package/dist/utils/domain-templates/index.cjs +732 -0
  415. package/dist/utils/domain-templates/index.cjs.map +1 -0
  416. package/dist/utils/domain-templates/index.d.cts +214 -0
  417. package/dist/utils/domain-templates/index.d.ts +214 -0
  418. package/dist/utils/domain-templates/index.js +17 -0
  419. package/dist/utils/domain-templates/index.js.map +1 -0
  420. package/dist/utils/graphspec/index.cjs +1174 -0
  421. package/dist/utils/graphspec/index.cjs.map +1 -0
  422. package/dist/utils/graphspec/index.d.cts +449 -0
  423. package/dist/utils/graphspec/index.d.ts +449 -0
  424. package/dist/utils/graphspec/index.js +35 -0
  425. package/dist/utils/graphspec/index.js.map +1 -0
  426. package/dist/utils/harness/index.cjs +656 -0
  427. package/dist/utils/harness/index.cjs.map +1 -0
  428. package/dist/utils/harness/index.d.cts +542 -0
  429. package/dist/utils/harness/index.d.ts +542 -0
  430. package/dist/utils/harness/index.js +56 -0
  431. package/dist/utils/harness/index.js.map +1 -0
  432. package/dist/utils/index.cjs +17614 -0
  433. package/dist/utils/index.cjs.map +1 -0
  434. package/dist/utils/index.d.cts +96 -0
  435. package/dist/utils/index.d.ts +96 -0
  436. package/dist/utils/index.js +514 -0
  437. package/dist/utils/index.js.map +1 -0
  438. package/dist/utils/inspect/index.cjs +807 -0
  439. package/dist/utils/inspect/index.cjs.map +1 -0
  440. package/dist/utils/inspect/index.d.cts +123 -0
  441. package/dist/utils/inspect/index.d.ts +123 -0
  442. package/dist/utils/inspect/index.js +30 -0
  443. package/dist/utils/inspect/index.js.map +1 -0
  444. package/dist/utils/job-queue/index.cjs +717 -0
  445. package/dist/utils/job-queue/index.cjs.map +1 -0
  446. package/dist/utils/job-queue/index.d.cts +200 -0
  447. package/dist/utils/job-queue/index.d.ts +200 -0
  448. package/dist/utils/job-queue/index.js +18 -0
  449. package/dist/utils/job-queue/index.js.map +1 -0
  450. package/dist/utils/memory/index.cjs +1456 -0
  451. package/dist/utils/memory/index.cjs.map +1 -0
  452. package/dist/utils/memory/index.d.cts +660 -0
  453. package/dist/utils/memory/index.d.ts +660 -0
  454. package/dist/utils/memory/index.js +19 -0
  455. package/dist/utils/memory/index.js.map +1 -0
  456. package/dist/utils/messaging/index.cjs +666 -0
  457. package/dist/utils/messaging/index.cjs.map +1 -0
  458. package/dist/utils/messaging/index.d.cts +562 -0
  459. package/dist/utils/messaging/index.d.ts +562 -0
  460. package/dist/utils/messaging/index.js +50 -0
  461. package/dist/utils/messaging/index.js.map +1 -0
  462. package/dist/utils/orchestration/index.cjs +876 -0
  463. package/dist/utils/orchestration/index.cjs.map +1 -0
  464. package/dist/utils/orchestration/index.d.cts +233 -0
  465. package/dist/utils/orchestration/index.d.ts +233 -0
  466. package/dist/utils/orchestration/index.js +19 -0
  467. package/dist/utils/orchestration/index.js.map +1 -0
  468. package/dist/utils/process/index.cjs +743 -0
  469. package/dist/utils/process/index.cjs.map +1 -0
  470. package/dist/utils/process/index.d.cts +411 -0
  471. package/dist/utils/process/index.d.ts +411 -0
  472. package/dist/utils/process/index.js +14 -0
  473. package/dist/utils/process/index.js.map +1 -0
  474. package/dist/utils/reactive-layout/index.cjs +1607 -0
  475. package/dist/utils/reactive-layout/index.cjs.map +1 -0
  476. package/dist/utils/reactive-layout/index.d.cts +492 -0
  477. package/dist/utils/reactive-layout/index.d.ts +492 -0
  478. package/dist/utils/reactive-layout/index.js +52 -0
  479. package/dist/utils/reactive-layout/index.js.map +1 -0
  480. package/dist/utils/reduction/index.cjs +203 -0
  481. package/dist/utils/reduction/index.cjs.map +1 -0
  482. package/dist/utils/reduction/index.d.cts +102 -0
  483. package/dist/utils/reduction/index.d.ts +102 -0
  484. package/dist/utils/reduction/index.js +14 -0
  485. package/dist/utils/reduction/index.js.map +1 -0
  486. package/dist/utils/resilience/index.cjs +1617 -0
  487. package/dist/utils/resilience/index.cjs.map +1 -0
  488. package/dist/utils/resilience/index.d.cts +9 -0
  489. package/dist/utils/resilience/index.d.ts +9 -0
  490. package/dist/utils/resilience/index.js +44 -0
  491. package/dist/utils/resilience/index.js.map +1 -0
  492. package/dist/utils/surface/index.cjs +1070 -0
  493. package/dist/utils/surface/index.cjs.map +1 -0
  494. package/dist/utils/surface/index.d.cts +240 -0
  495. package/dist/utils/surface/index.d.ts +240 -0
  496. package/dist/utils/surface/index.js +30 -0
  497. package/dist/utils/surface/index.js.map +1 -0
  498. package/dist/utils/topology-view/index.cjs +620 -0
  499. package/dist/utils/topology-view/index.cjs.map +1 -0
  500. package/dist/utils/topology-view/index.d.cts +68 -0
  501. package/dist/utils/topology-view/index.d.ts +68 -0
  502. package/dist/utils/topology-view/index.js +11 -0
  503. package/dist/utils/topology-view/index.js.map +1 -0
  504. package/package.json +293 -241
  505. package/dist/core/index.cjs +0 -21
  506. package/dist/core/index.cjs.map +0 -1
  507. package/dist/core/index.d.cts +0 -1
  508. package/dist/core/index.d.ts +0 -1
  509. package/dist/core/index.js +0 -3
  510. package/dist/core/index.js.map +0 -1
  511. package/dist/extra/browser.cjs +0 -21
  512. package/dist/extra/browser.cjs.map +0 -1
  513. package/dist/extra/browser.d.cts +0 -1
  514. package/dist/extra/browser.d.ts +0 -1
  515. package/dist/extra/browser.js +0 -3
  516. package/dist/extra/browser.js.map +0 -1
  517. package/dist/extra/index.cjs +0 -21
  518. package/dist/extra/index.cjs.map +0 -1
  519. package/dist/extra/index.d.cts +0 -1
  520. package/dist/extra/index.d.ts +0 -1
  521. package/dist/extra/index.js +0 -3
  522. package/dist/extra/index.js.map +0 -1
  523. package/dist/extra/node.cjs +0 -21
  524. package/dist/extra/node.cjs.map +0 -1
  525. package/dist/extra/node.d.cts +0 -1
  526. package/dist/extra/node.d.ts +0 -1
  527. package/dist/extra/node.js +0 -3
  528. package/dist/extra/node.js.map +0 -1
  529. package/dist/extra/operators.cjs +0 -21
  530. package/dist/extra/operators.cjs.map +0 -1
  531. package/dist/extra/operators.d.cts +0 -1
  532. package/dist/extra/operators.d.ts +0 -1
  533. package/dist/extra/operators.js +0 -3
  534. package/dist/extra/operators.js.map +0 -1
  535. package/dist/extra/reactive.cjs +0 -21
  536. package/dist/extra/reactive.cjs.map +0 -1
  537. package/dist/extra/reactive.d.cts +0 -1
  538. package/dist/extra/reactive.d.ts +0 -1
  539. package/dist/extra/reactive.js +0 -3
  540. package/dist/extra/reactive.js.map +0 -1
  541. package/dist/extra/render/index.cjs +0 -21
  542. package/dist/extra/render/index.cjs.map +0 -1
  543. package/dist/extra/render/index.d.cts +0 -1
  544. package/dist/extra/render/index.d.ts +0 -1
  545. package/dist/extra/render/index.js +0 -3
  546. package/dist/extra/render/index.js.map +0 -1
  547. package/dist/extra/sources.cjs +0 -21
  548. package/dist/extra/sources.cjs.map +0 -1
  549. package/dist/extra/sources.d.cts +0 -1
  550. package/dist/extra/sources.d.ts +0 -1
  551. package/dist/extra/sources.js +0 -3
  552. package/dist/extra/sources.js.map +0 -1
  553. package/dist/extra/storage-browser.cjs +0 -21
  554. package/dist/extra/storage-browser.cjs.map +0 -1
  555. package/dist/extra/storage-browser.d.cts +0 -1
  556. package/dist/extra/storage-browser.d.ts +0 -1
  557. package/dist/extra/storage-browser.js +0 -3
  558. package/dist/extra/storage-browser.js.map +0 -1
  559. package/dist/extra/storage-core.cjs +0 -21
  560. package/dist/extra/storage-core.cjs.map +0 -1
  561. package/dist/extra/storage-core.d.cts +0 -1
  562. package/dist/extra/storage-core.d.ts +0 -1
  563. package/dist/extra/storage-core.js +0 -3
  564. package/dist/extra/storage-core.js.map +0 -1
  565. package/dist/extra/storage-node.cjs +0 -21
  566. package/dist/extra/storage-node.cjs.map +0 -1
  567. package/dist/extra/storage-node.d.cts +0 -1
  568. package/dist/extra/storage-node.d.ts +0 -1
  569. package/dist/extra/storage-node.js +0 -3
  570. package/dist/extra/storage-node.js.map +0 -1
  571. package/dist/extra/storage-tiers-browser.cjs +0 -21
  572. package/dist/extra/storage-tiers-browser.cjs.map +0 -1
  573. package/dist/extra/storage-tiers-browser.d.cts +0 -1
  574. package/dist/extra/storage-tiers-browser.d.ts +0 -1
  575. package/dist/extra/storage-tiers-browser.js +0 -3
  576. package/dist/extra/storage-tiers-browser.js.map +0 -1
  577. package/dist/extra/storage-tiers-node.cjs +0 -21
  578. package/dist/extra/storage-tiers-node.cjs.map +0 -1
  579. package/dist/extra/storage-tiers-node.d.cts +0 -1
  580. package/dist/extra/storage-tiers-node.d.ts +0 -1
  581. package/dist/extra/storage-tiers-node.js +0 -3
  582. package/dist/extra/storage-tiers-node.js.map +0 -1
  583. package/dist/extra/storage-tiers.cjs +0 -21
  584. package/dist/extra/storage-tiers.cjs.map +0 -1
  585. package/dist/extra/storage-tiers.d.cts +0 -1
  586. package/dist/extra/storage-tiers.d.ts +0 -1
  587. package/dist/extra/storage-tiers.js +0 -3
  588. package/dist/extra/storage-tiers.js.map +0 -1
  589. package/dist/extra/storage-wal.cjs +0 -21
  590. package/dist/extra/storage-wal.cjs.map +0 -1
  591. package/dist/extra/storage-wal.d.cts +0 -1
  592. package/dist/extra/storage-wal.d.ts +0 -1
  593. package/dist/extra/storage-wal.js +0 -3
  594. package/dist/extra/storage-wal.js.map +0 -1
  595. package/dist/graph/index.cjs +0 -21
  596. package/dist/graph/index.cjs.map +0 -1
  597. package/dist/graph/index.d.cts +0 -1
  598. package/dist/graph/index.d.ts +0 -1
  599. package/dist/graph/index.js +0 -3
  600. package/dist/graph/index.js.map +0 -1
  601. package/dist/patterns/ai/browser.cjs +0 -21
  602. package/dist/patterns/ai/browser.cjs.map +0 -1
  603. package/dist/patterns/ai/browser.d.cts +0 -1
  604. package/dist/patterns/ai/browser.d.ts +0 -1
  605. package/dist/patterns/ai/browser.js +0 -3
  606. package/dist/patterns/ai/browser.js.map +0 -1
  607. package/dist/patterns/ai/index.cjs +0 -21
  608. package/dist/patterns/ai/index.cjs.map +0 -1
  609. package/dist/patterns/ai/index.d.cts +0 -1
  610. package/dist/patterns/ai/index.d.ts +0 -1
  611. package/dist/patterns/ai/index.js +0 -3
  612. package/dist/patterns/ai/index.js.map +0 -1
  613. package/dist/patterns/ai/node.cjs +0 -21
  614. package/dist/patterns/ai/node.cjs.map +0 -1
  615. package/dist/patterns/ai/node.d.cts +0 -1
  616. package/dist/patterns/ai/node.d.ts +0 -1
  617. package/dist/patterns/ai/node.js +0 -3
  618. package/dist/patterns/ai/node.js.map +0 -1
  619. package/dist/patterns/cqrs/index.cjs +0 -21
  620. package/dist/patterns/cqrs/index.cjs.map +0 -1
  621. package/dist/patterns/cqrs/index.d.cts +0 -1
  622. package/dist/patterns/cqrs/index.d.ts +0 -1
  623. package/dist/patterns/cqrs/index.js +0 -3
  624. package/dist/patterns/cqrs/index.js.map +0 -1
  625. package/dist/patterns/demo-shell/index.cjs +0 -21
  626. package/dist/patterns/demo-shell/index.cjs.map +0 -1
  627. package/dist/patterns/demo-shell/index.d.cts +0 -1
  628. package/dist/patterns/demo-shell/index.d.ts +0 -1
  629. package/dist/patterns/demo-shell/index.js +0 -3
  630. package/dist/patterns/demo-shell/index.js.map +0 -1
  631. package/dist/patterns/domain-templates/index.cjs +0 -21
  632. package/dist/patterns/domain-templates/index.cjs.map +0 -1
  633. package/dist/patterns/domain-templates/index.d.cts +0 -1
  634. package/dist/patterns/domain-templates/index.d.ts +0 -1
  635. package/dist/patterns/domain-templates/index.js +0 -3
  636. package/dist/patterns/domain-templates/index.js.map +0 -1
  637. package/dist/patterns/graphspec/index.cjs +0 -21
  638. package/dist/patterns/graphspec/index.cjs.map +0 -1
  639. package/dist/patterns/graphspec/index.d.cts +0 -1
  640. package/dist/patterns/graphspec/index.d.ts +0 -1
  641. package/dist/patterns/graphspec/index.js +0 -3
  642. package/dist/patterns/graphspec/index.js.map +0 -1
  643. package/dist/patterns/harness/index.cjs +0 -21
  644. package/dist/patterns/harness/index.cjs.map +0 -1
  645. package/dist/patterns/harness/index.d.cts +0 -1
  646. package/dist/patterns/harness/index.d.ts +0 -1
  647. package/dist/patterns/harness/index.js +0 -3
  648. package/dist/patterns/harness/index.js.map +0 -1
  649. package/dist/patterns/inspect/index.cjs +0 -21
  650. package/dist/patterns/inspect/index.cjs.map +0 -1
  651. package/dist/patterns/inspect/index.d.cts +0 -1
  652. package/dist/patterns/inspect/index.d.ts +0 -1
  653. package/dist/patterns/inspect/index.js +0 -3
  654. package/dist/patterns/inspect/index.js.map +0 -1
  655. package/dist/patterns/job-queue/index.cjs +0 -21
  656. package/dist/patterns/job-queue/index.cjs.map +0 -1
  657. package/dist/patterns/job-queue/index.d.cts +0 -1
  658. package/dist/patterns/job-queue/index.d.ts +0 -1
  659. package/dist/patterns/job-queue/index.js +0 -3
  660. package/dist/patterns/job-queue/index.js.map +0 -1
  661. package/dist/patterns/memory/index.cjs +0 -21
  662. package/dist/patterns/memory/index.cjs.map +0 -1
  663. package/dist/patterns/memory/index.d.cts +0 -1
  664. package/dist/patterns/memory/index.d.ts +0 -1
  665. package/dist/patterns/memory/index.js +0 -3
  666. package/dist/patterns/memory/index.js.map +0 -1
  667. package/dist/patterns/messaging/index.cjs +0 -21
  668. package/dist/patterns/messaging/index.cjs.map +0 -1
  669. package/dist/patterns/messaging/index.d.cts +0 -1
  670. package/dist/patterns/messaging/index.d.ts +0 -1
  671. package/dist/patterns/messaging/index.js +0 -3
  672. package/dist/patterns/messaging/index.js.map +0 -1
  673. package/dist/patterns/orchestration/index.cjs +0 -21
  674. package/dist/patterns/orchestration/index.cjs.map +0 -1
  675. package/dist/patterns/orchestration/index.d.cts +0 -1
  676. package/dist/patterns/orchestration/index.d.ts +0 -1
  677. package/dist/patterns/orchestration/index.js +0 -3
  678. package/dist/patterns/orchestration/index.js.map +0 -1
  679. package/dist/patterns/process/index.cjs +0 -21
  680. package/dist/patterns/process/index.cjs.map +0 -1
  681. package/dist/patterns/process/index.d.cts +0 -1
  682. package/dist/patterns/process/index.d.ts +0 -1
  683. package/dist/patterns/process/index.js +0 -3
  684. package/dist/patterns/process/index.js.map +0 -1
  685. package/dist/patterns/reactive-layout/index.cjs +0 -21
  686. package/dist/patterns/reactive-layout/index.cjs.map +0 -1
  687. package/dist/patterns/reactive-layout/index.d.cts +0 -1
  688. package/dist/patterns/reactive-layout/index.d.ts +0 -1
  689. package/dist/patterns/reactive-layout/index.js +0 -3
  690. package/dist/patterns/reactive-layout/index.js.map +0 -1
  691. package/dist/patterns/reduction/index.cjs +0 -21
  692. package/dist/patterns/reduction/index.cjs.map +0 -1
  693. package/dist/patterns/reduction/index.d.cts +0 -1
  694. package/dist/patterns/reduction/index.d.ts +0 -1
  695. package/dist/patterns/reduction/index.js +0 -3
  696. package/dist/patterns/reduction/index.js.map +0 -1
  697. package/dist/patterns/surface/index.cjs +0 -21
  698. package/dist/patterns/surface/index.cjs.map +0 -1
  699. package/dist/patterns/surface/index.d.cts +0 -1
  700. package/dist/patterns/surface/index.d.ts +0 -1
  701. package/dist/patterns/surface/index.js +0 -3
  702. package/dist/patterns/surface/index.js.map +0 -1
  703. package/dist/patterns/topology-view/index.cjs +0 -21
  704. package/dist/patterns/topology-view/index.cjs.map +0 -1
  705. package/dist/patterns/topology-view/index.d.cts +0 -1
  706. package/dist/patterns/topology-view/index.d.ts +0 -1
  707. package/dist/patterns/topology-view/index.js +0 -3
  708. package/dist/patterns/topology-view/index.js.map +0 -1
  709. package/dist/testing/index.cjs +0 -21
  710. package/dist/testing/index.cjs.map +0 -1
  711. package/dist/testing/index.d.cts +0 -1
  712. package/dist/testing/index.d.ts +0 -1
  713. package/dist/testing/index.js +0 -3
  714. package/dist/testing/index.js.map +0 -1
@@ -0,0 +1,566 @@
1
+ import { Node, NodeGuard } from '@graphrefly/pure-ts/core';
2
+ import { ReactiveLogBundle, OwnershipChange, NodeInput } from '@graphrefly/pure-ts/extra';
3
+ import { Graph, GraphProfileResult, GraphProfileOptions } from '@graphrefly/pure-ts/graph';
4
+ import { R as RenderedEntry, b as ContextEntry, c as ContextView, e as TaggedContextPoolBundle } from '../../index-DLAxYaN5.cjs';
5
+ import { b as ExecuteOutput, p as TriagedItem, V as VerifyOutput, g as HarnessVerifier, H as HarnessExecutor, k as QueueRoute } from '../../types-vCq7ShIm.cjs';
6
+ import { f as Evaluator, D as DatasetItem, d as EvalResult, i as RefineStrategy, g as RefineLoopOptions, H as HarnessGraph, h as RefineStatus } from '../../spawnable-5mDY501F.cjs';
7
+ export { A as AnalyzeEvent, B as BlindVariationContext, a as BlindVariationOptions, C as ConvergenceOptions, b as DecideEvent, E as ErrorCritiqueContext, c as ErrorCritiqueOptions, e as EvaluateEvent, F as Feedback, G as GenerateEvent, I as Iteration, R as RefineLoopGraph, S as SpawnPayload, j as SpawnRejection, k as SpawnableBundle, l as SpawnableGraph, m as SpawnableOpts, n as blindVariation, o as defaultLlmExecutor, p as defaultLlmVerifier, q as errorCritique, r as harnessLoop, s as refineLoop, t as spawnable } from '../../spawnable-5mDY501F.cjs';
8
+ import { TopicGraph } from '../../utils/messaging/index.cjs';
9
+ import '../../types-BB5Lw-pB.cjs';
10
+ import '../../utils/job-queue/index.cjs';
11
+ import '../../base/mutation/index.cjs';
12
+ import '../../pipeline-graph-Ce47CB6Y.cjs';
13
+ import '../../agents-C0Ji9ldU.cjs';
14
+ import '../../memory-composers-BryDrRBX.cjs';
15
+ import '../../distill-De6Rnn15.cjs';
16
+ import '../../utils/memory/index.cjs';
17
+ import '../../_internal-B23BagFd.cjs';
18
+
19
+ /**
20
+ * DS-14.6.A U-B — `actorPool()` (Phase 14.5).
21
+ *
22
+ * The dynamic-track complement to `spawnable()` (SESSION-DS-14.6-A L7/L8 +
23
+ * 9Q walk). An actor is **identity + cursor + tool closure, NOT a subgraph**
24
+ * (D-B1): no per-actor mount, so `describe()` shows only the pool / todo /
25
+ * context-hub collections and the actor count drifts inside a single
26
+ * reactive `active` map node. `depthCap` is enforced via the depth carried
27
+ * on the attach request (D-B2); `release()` cascades teardown to the
28
+ * actor's context view + todo cursor subscriptions (§3i — free).
29
+ *
30
+ * Contrast `spawnable()`: agent IS a subgraph, topology reflects the agent
31
+ * set, `describe()`-visible — use it when agent identities are pre-known.
32
+ * Use `actorPool()` for runtime recursive fan-out where agent count drifts.
33
+ *
34
+ * @module
35
+ */
36
+
37
+ type ActorId = string;
38
+ interface Todo {
39
+ readonly id: string;
40
+ readonly assignee?: ActorId;
41
+ readonly payload: unknown;
42
+ }
43
+ type ActorStatus = "idle" | "running" | "blocked" | "done";
44
+ interface ActorState {
45
+ readonly id: ActorId;
46
+ readonly depth: number;
47
+ readonly status: ActorStatus;
48
+ }
49
+ interface ActorSpec<T> {
50
+ readonly id?: ActorId;
51
+ /** Recursion depth — gated against `depthCap` (D-B2). Default 0 (root). */
52
+ readonly depth?: number;
53
+ /** Per-actor compression view over the shared context pool. */
54
+ readonly view: Omit<ContextView<T>, "pressure"> & {
55
+ readonly pressure: Node<number>;
56
+ };
57
+ }
58
+ interface ActorHandle<T> {
59
+ readonly id: ActorId;
60
+ /** This actor's compressed context slice. */
61
+ readonly context: Node<readonly RenderedEntry<T>[]>;
62
+ /** Todos currently assigned to this actor (or unassigned). */
63
+ readonly todoCursor: Node<readonly Todo[]>;
64
+ /** Write an entry into the shared pool, stamped with this actor's id tag. */
65
+ publish(entry: Omit<ContextEntry<T>, "id" | "t_ns"> & {
66
+ id?: string;
67
+ }): string;
68
+ enqueueTodo(t: Todo): void;
69
+ readonly status: Node<ActorStatus>;
70
+ setStatus(s: ActorStatus): void;
71
+ /** Idempotent. Tears the actor's subscriptions + removes it from `active`. */
72
+ release(): void;
73
+ }
74
+ interface ActorPoolOptions<T> {
75
+ readonly name?: string;
76
+ /** Max recursion depth; `attachActor` with `depth > depthCap` throws. */
77
+ readonly depthCap?: number;
78
+ /** Forwarded to the backing context pool. */
79
+ readonly contextTopic?: string;
80
+ readonly llmCompress?: TaggedContextPoolBundle<T>["_opts"]["llmCompress"];
81
+ }
82
+ interface ActorPoolBundle<T> {
83
+ attachActor(spec: ActorSpec<T>): ActorHandle<T>;
84
+ readonly contextPool: TaggedContextPoolBundle<T>;
85
+ readonly todos: ReactiveLogBundle<Todo>;
86
+ /** Single reactive map of live actors — `describe()`-coherent (D-B1). */
87
+ readonly active: Node<ReadonlyMap<ActorId, ActorState>>;
88
+ readonly graph: Graph;
89
+ dispose(): void;
90
+ }
91
+ declare function actorPool<T = unknown>(parent: Graph, opts?: ActorPoolOptions<T>): ActorPoolBundle<T>;
92
+
93
+ /**
94
+ * evalVerifier — re-run the affected eval tasks against the execute-stage
95
+ * artifact instead of asking an LLM to opine on the fix.
96
+ *
97
+ * Pairs naturally with {@link refineExecutor}: refineExecutor emits an
98
+ * `ExecuteOutput<T>.artifact` holding the converged candidate; evalVerifier
99
+ * pulls it out via `extractArtifact` and feeds a single-candidate batch
100
+ * into the same `Evaluator<T>` shape that `refineLoop` used. Consistent
101
+ * scoring between EXECUTE and VERIFY — no "LLM said it looks fine" gap.
102
+ *
103
+ * **C2 lifecycle (Tier 6.5).** The work fn is invoked once per claimed
104
+ * verify-stage job. A fresh single-candidate eval subgraph is mounted
105
+ * inside the work fn and tears down when the JobFlow pump ack/unsubs.
106
+ *
107
+ * @module
108
+ */
109
+
110
+ /** Summary of the re-eval wave passed to a custom `toOutput` mapper. */
111
+ interface EvalVerifierSummary {
112
+ readonly scores: readonly EvalResult[];
113
+ readonly meanScore: number;
114
+ readonly passCount: number;
115
+ readonly total: number;
116
+ readonly threshold: number;
117
+ /**
118
+ * True when the EXECUTE stage did not produce an artifact (i.e.
119
+ * `extractArtifact` returned `null` / `undefined`). Downstream mappers
120
+ * can distinguish this from "evaluator ran but everything scored zero".
121
+ */
122
+ readonly missingArtifact?: boolean;
123
+ }
124
+ /** Configuration for {@link evalVerifier}. */
125
+ interface EvalVerifierConfig<T> {
126
+ /**
127
+ * Pull the artifact that should be re-evaluated out of the execute-stage
128
+ * output. Default: `(exec) => exec.artifact as T` — works out-of-the-box
129
+ * with `refineExecutor` (which populates `artifact` by default).
130
+ */
131
+ extractArtifact?: (exec: ExecuteOutput<T>, item: TriagedItem) => T | null | undefined;
132
+ /**
133
+ * Reactive evaluator — same contract as `refineLoop`'s `Evaluator<T>`.
134
+ */
135
+ evaluator: Evaluator<T>;
136
+ /**
137
+ * Resolve which dataset rows to score this verification against.
138
+ */
139
+ datasetFor: (item: TriagedItem) => readonly DatasetItem[];
140
+ /** Mean score required to pass verification. Default `0.5`. */
141
+ threshold?: number;
142
+ /** Optional output mapper — override the default findings / errorClass shape. */
143
+ toOutput?: (summary: EvalVerifierSummary) => VerifyOutput;
144
+ /** Node name prefix for introspection. */
145
+ name?: string;
146
+ /**
147
+ * Optional parent graph on which per-claim eval subgraphs mount at
148
+ * `eval/${claimId}` (DS-13.5.D.4, locked 2026-05-01). When provided,
149
+ * each claim creates a fresh `Graph(\`eval_${claimId}\`)` subgraph
150
+ * carrying `candidates` / `dataset` / `output` and mounts it at
151
+ * `eval/${claimId}` on this parent — `describe()` walks the parent
152
+ * see the per-claim topology while the claim is in flight, and the
153
+ * subgraph is removed via `parent.remove("eval/${claimId}")` on the
154
+ * output node's `deactivate` cleanup (fires when JobFlow's pump
155
+ * unsubscribes after ack/nack).
156
+ *
157
+ * **claimId source.** `JobEnvelope.id` (assigned at enqueue time);
158
+ * unique within a JobFlow lifetime — uniqueness within a single pump
159
+ * cycle is the JobFlow's contract.
160
+ *
161
+ * When omitted, internal nodes float (pre-DS-13.5.D.4 behavior).
162
+ */
163
+ graph?: Graph;
164
+ }
165
+ /**
166
+ * Build a {@link HarnessVerifier} that re-runs the eval suite against the
167
+ * artifact produced by EXECUTE.
168
+ *
169
+ * Reads `job.payload.execution` (filled by the upstream execute work fn)
170
+ * and runs the evaluator against `extractArtifact(execution, item)`.
171
+ * Returns the same payload with `verify` filled in.
172
+ *
173
+ * @example Pair with refineExecutor for end-to-end eval consistency.
174
+ * ```ts
175
+ * const evaluator: Evaluator<CatalogEntry> = (cands, ds) => runEval(cands, ds);
176
+ * const harness = harnessLoop("repair", {
177
+ * adapter,
178
+ * executor: refineExecutor({ ..., evaluator, ...strategyConfig }),
179
+ * verifier: evalVerifier({ evaluator, datasetFor, threshold: 0.8 }),
180
+ * });
181
+ * ```
182
+ */
183
+ declare function evalVerifier<T>(config: EvalVerifierConfig<T>): HarnessVerifier<T>;
184
+ /**
185
+ * Config for {@link harnessEvalPair} — the typed bundle that produces a
186
+ * matched `refineExecutor<T>` + `evalVerifier<T>` pair sharing one
187
+ * {@link Evaluator} and one `datasetFor` resolver.
188
+ */
189
+ interface HarnessEvalPairConfig<T> {
190
+ /** Map a triaged item to the seed candidate. */
191
+ seedFrom: (item: TriagedItem) => T;
192
+ /** The reactive evaluator used by BOTH executor and verifier. */
193
+ evaluator: Evaluator<T>;
194
+ /** The refinement strategy (e.g. `errorCritique(teacher)`). */
195
+ strategy: RefineStrategy<T>;
196
+ /** Resolve dataset rows per triaged item. */
197
+ datasetFor: (item: TriagedItem) => readonly DatasetItem[];
198
+ /** Pass-threshold for the verifier. Default `0.5`. */
199
+ threshold?: number;
200
+ /** Convergence / budget options forwarded to each inner `refineLoop`. */
201
+ refine?: Omit<RefineLoopOptions, "dataset" | "name">;
202
+ /**
203
+ * Shared node-name prefix — the executor becomes `${name}-exec` and the
204
+ * verifier `${name}-verify` for distinct but related describe() paths.
205
+ * Default `"harness-pair"`.
206
+ */
207
+ name?: string;
208
+ }
209
+ /**
210
+ * Typed factory that returns a matched `{ executor, verifier }` pair.
211
+ *
212
+ * Prevents the "executor wrote `A`, verifier expected `B`" class of runtime
213
+ * cast errors — `T` is threaded through both sides, so mixing up the
214
+ * configuration is a compile error instead of a silent `as T` in
215
+ * `extractArtifact`. Shares the evaluator so EXECUTE and VERIFY score with
216
+ * identical semantics (the whole point of `evalVerifier`).
217
+ */
218
+ declare function harnessEvalPair<T>(config: HarnessEvalPairConfig<T>): {
219
+ executor: HarnessExecutor<T>;
220
+ verifier: HarnessVerifier<T>;
221
+ };
222
+
223
+ /**
224
+ * `ownershipController()` — multi-agent subgraph ownership preset
225
+ * (DS-14.5.A delta #8; L5/L6 + Q1–Q10).
226
+ *
227
+ * **Placement (documented choice).** Lives in `presets/harness/` alongside
228
+ * the other multi-agent coordination presets (`spawnable()`, `actorPool()`).
229
+ * Per the 4-layer rubric this is a ≥3-utils composition (messaging `topic` +
230
+ * `derived` arbitration + Guard ABAC) wiring multi-agent coordination — the
231
+ * same charter as `harness/`'s existing `spawnable`/`actorPool`. A separate
232
+ * `presets/multi-agent/` directory was rejected to avoid fragmenting the
233
+ * multi-agent presets across two folders for a single factory (L6: "recipe +
234
+ * preset, NO new primitive").
235
+ *
236
+ * **What it is.** A `Graph` that owns a shared ownership `topic` (Q3 — one
237
+ * topic carries claim / release / override; subscribers narrow by `kind`),
238
+ * a reactive `current` derivation that folds the ownership log applying the
239
+ * L0–L3 staircase, and a `guard` (`policyAllowing` — the Q7 reactive-options
240
+ * Guard widening) the caller mounts on the owned subgraph. It **consumes the
241
+ * existing DS-14 {@link OwnershipChange}** envelope — it does NOT redefine it.
242
+ *
243
+ * **Staircase (Q10 — `level` is a priority axis, NOT a mechanism enum):**
244
+ * - **L1 TTL** — a `claim` carries a level; the controller's `ttl` (ms)
245
+ * bounds the live window. L1 honors TTL strictly (Q4): a crash inside the
246
+ * window does NOT early-release; recommend `ttl ≤ 60s`.
247
+ * - **L2 heartbeat** — `heartbeat?: NodeInput<unknown>` (Q2). Any reactive
248
+ * trigger Node; each emission resets the countdown ("max tolerance since
249
+ * last sign of life", unified across L1/L2). No library timer is shipped
250
+ * and no `claim.heartbeat()` method exists (`feedback_no_imperative` +
251
+ * `feedback_no_imperative_wrap_as_primitive`).
252
+ * - **L3 supervisor** — a `kind:"override"` change wins by `level` priority
253
+ * regardless of expiry/heartbeat (priority axis independent of the expiry
254
+ * axis). Supervisor publishes to the SAME topic (Q3).
255
+ *
256
+ * **No polling / no timer (spec §5.8/§5.9/§5.10).** Expiry is evaluated
257
+ * reactively: `current` recomputes whenever the ownership topic OR the
258
+ * heartbeat OR the optional `clock` trigger emits, folding the whole log
259
+ * from scratch (idempotent — no carried mutable cursor). Auto-release on
260
+ * wall-clock TTL requires the caller to wire a reactive `clock` tick
261
+ * (`fromTimer({ ms })` or an activity-derived Node) — the library does not
262
+ * own a timer (L6 / Q2). Without `clock`, expiry still resolves at the next
263
+ * topic/heartbeat emission and on any read that recomputes the derivation.
264
+ *
265
+ * @module
266
+ */
267
+
268
+ /** Ownership level — priority axis (Q10). Higher rank = higher priority. */
269
+ declare const LEVEL_RANK: {
270
+ readonly L0: 0;
271
+ readonly L1: 1;
272
+ readonly L2: 2;
273
+ readonly L3: 3;
274
+ };
275
+ type OwnershipLevel = keyof typeof LEVEL_RANK;
276
+ /** Options for {@link ownershipController}. */
277
+ type OwnershipControllerOptions = {
278
+ /**
279
+ * TTL (milliseconds) bounding the live window of a claim. Honored
280
+ * strictly (Q4) — a crash inside the window does not early-release.
281
+ * Recommend ≤ 60_000 for L1 holds; wire `heartbeat` (L2) for longer.
282
+ */
283
+ readonly ttl: number;
284
+ /**
285
+ * L2 heartbeat (Q2). Any reactive trigger Node — each emission resets the
286
+ * TTL countdown. Simple: `fromTimer({ ms: ttl / 3 })`. Activity-based:
287
+ * `derived([toolCalls.events], …)`. Omitted → pure L1 TTL semantics.
288
+ */
289
+ readonly heartbeat?: NodeInput<unknown>;
290
+ /**
291
+ * L3 supervisor id. A `kind:"override"` change whose `actor` equals this
292
+ * id wins by `level` priority regardless of expiry/heartbeat. Override
293
+ * delivery is the shared topic with the `kind:"override"` discriminant
294
+ * (Q3) — not a separate priority topic.
295
+ */
296
+ readonly supervisor?: string;
297
+ /**
298
+ * Optional reactive clock trigger used ONLY to re-evaluate TTL expiry
299
+ * (e.g. `fromTimer({ ms: 1_000 })`). The library ships no timer (L6/Q2);
300
+ * wire this for wall-clock-driven auto-release without an intervening
301
+ * claim/heartbeat. Without it, expiry resolves lazily on the next
302
+ * topic/heartbeat emission.
303
+ */
304
+ readonly clock?: NodeInput<unknown>;
305
+ /** Bounded retention for the ownership topic (default 256). */
306
+ readonly retainedLimit?: number;
307
+ };
308
+ /**
309
+ * Resolved ownership state emitted by {@link OwnershipControllerGraph.current}.
310
+ * `owner` is `null` when unclaimed or the live claim has expired.
311
+ */
312
+ type OwnershipState = {
313
+ readonly owner: string | null;
314
+ readonly level: OwnershipLevel | null;
315
+ /** Allow-set fed to the Guard. `[]` (deny-all) when `owner === null`. */
316
+ readonly allowed: readonly string[];
317
+ /**
318
+ * Internal (F3/F4) — last sign-of-life (wall-clock ns) for the *current*
319
+ * claim: `max(claim.sinceNs, last in-window heartbeat)`. Carried in the
320
+ * derivation's OWN emitted state (read back via `ctx.prevData`) so the
321
+ * fold is pure — same (folded log, beat-this-wave, now, prevState) →
322
+ * same output. NEVER an instance field. `null` when unclaimed. Scoped to
323
+ * the active claim: a value older than the active claim's `sinceNs` (a
324
+ * prior owner's beat) is discarded so it cannot extend a new owner.
325
+ */
326
+ readonly signOfLifeNs: number | null;
327
+ };
328
+ /**
329
+ * Multi-agent subgraph ownership controller. See module docs.
330
+ *
331
+ * Public surface:
332
+ * - `topic` — the shared ownership `TopicGraph<OwnershipChange>` (Q3).
333
+ * Agents publish claim/release/override here (use the `claim`/`release`/
334
+ * `override` helpers — thin reactive wrappers over `topic.publish`, i.e.
335
+ * message flow, NOT imperative triggers).
336
+ * - `current` — `Node<OwnershipState>`: the reactively-resolved owner after
337
+ * applying L1 TTL + L2 heartbeat + L3 supervisor arbitration.
338
+ * - `allowed` — `Node<readonly string[]>`: the Guard allow-set (derived from
339
+ * `current`); re-points on claim/release/override with no rewire.
340
+ * - `guard` — `NodeGuard` from `policyAllowing(this.allowed)`. Mount on the
341
+ * owned subgraph's nodes (`node({ guard })`) for the Q7 hard-block.
342
+ */
343
+ declare class OwnershipControllerGraph extends Graph {
344
+ readonly topic: TopicGraph<OwnershipChange>;
345
+ readonly current: Node<OwnershipState>;
346
+ readonly allowed: Node<readonly string[]>;
347
+ readonly guard: NodeGuard;
348
+ private readonly _ttlNs;
349
+ private readonly _supervisor;
350
+ /**
351
+ * Whether a heartbeat `NodeInput` was supplied at construction (F14 —
352
+ * `claim()`'s `level` default is `"L2"` when wired, else `"L1"`). NOT a
353
+ * mutable accumulator — set once in the constructor, read-only after.
354
+ */
355
+ private readonly _hasHeartbeat;
356
+ constructor(name: string, opts: OwnershipControllerOptions);
357
+ /**
358
+ * Publish a `claim`. Thin reactive wrapper over `topic.publish` (message
359
+ * flow per §29 — NOT an imperative trigger). `level` defaults to `"L2"`
360
+ * when this controller has a heartbeat wired, else `"L1"`.
361
+ */
362
+ claim(actor: string, level?: OwnershipLevel): void;
363
+ /** Publish a `release`. Clears ownership iff `actor` is the current owner. */
364
+ release(actor: string): void;
365
+ /**
366
+ * Publish a supervisor `override` (L3). Wins by `level` priority
367
+ * regardless of expiry (Q10). `actor` should be this controller's
368
+ * `supervisor` id for the override to take precedence.
369
+ */
370
+ override(actor: string, previousActor: string, reason: string): void;
371
+ }
372
+ /**
373
+ * Create a multi-agent subgraph ownership controller (DS-14.5.A #8).
374
+ *
375
+ * @example
376
+ * ```ts
377
+ * const oc = ownershipController("payments", { ttl: 30_000, supervisor: "lead" });
378
+ * // Mount the Guard on the owned subgraph:
379
+ * const n = node([], { initial: 0, guard: oc.guard });
380
+ * oc.claim("agent-a"); // agent-a now owns; non-owner writes throw
381
+ * oc.override("lead", "agent-a", "rebalance"); // supervisor takes over
382
+ * ```
383
+ */
384
+ declare function ownershipController(name: string, opts: OwnershipControllerOptions): OwnershipControllerGraph;
385
+
386
+ /**
387
+ * Harness-specific graph profiling (roadmap §9.0).
388
+ *
389
+ * Extends {@link graphProfile} with harness domain counters:
390
+ * queue depths, strategy entries, retry/reingestion tracker sizes.
391
+ *
392
+ * @module
393
+ */
394
+
395
+ /** Harness-specific profile extending the base graph profile. */
396
+ interface HarnessProfileResult extends GraphProfileResult {
397
+ /** Per-queue retained item counts. */
398
+ queueDepths: Record<QueueRoute, number>;
399
+ /** Number of rootCause→intervention entries in the strategy model. */
400
+ strategyEntries: number;
401
+ /** Global retry count across all items. */
402
+ totalRetries: number;
403
+ /** Global reingestion count across all items. */
404
+ totalReingestions: number;
405
+ }
406
+ /**
407
+ * Profile a harness graph with domain-specific counters.
408
+ *
409
+ * **Snapshot caveat (Unit 22 B).** Reads `.cache` values from the
410
+ * strategy / retry / reingestion nodes + each queue topic's `.retained()`
411
+ * view. These are point-in-time reads and are not transactional — if you
412
+ * invoke this during an in-flight reactive wave the values may reflect
413
+ * a partially-settled frame. For end-of-wave accuracy, call from outside
414
+ * any batch boundary.
415
+ *
416
+ * @param harness - The HarnessGraph to profile.
417
+ * @param opts - Optional base profile options.
418
+ * @returns Harness profile with queue depths, strategy stats, and tracker sizes.
419
+ */
420
+ declare function harnessProfile(harness: HarnessGraph, opts?: GraphProfileOptions): HarnessProfileResult;
421
+
422
+ /**
423
+ * refineExecutor — bridge a `refineLoop` into the harness EXECUTE work fn.
424
+ *
425
+ * Each claimed job mounts a fresh `refineLoop`; when the loop reaches a
426
+ * terminal status (`converged` / `budget` / `errored`), the work fn emits a
427
+ * single {@link HarnessJobPayload} with `execution` filled in. The JobFlow
428
+ * pump subscribes once, takes the first DATA, then unsubscribes — so the
429
+ * inner loop tears down cleanly when the harness acks the job.
430
+ *
431
+ * **C2 lifecycle (Tier 6.5).** The work fn is invoked once per claim, so
432
+ * no internal `switchMap` is needed (the prior pre-C2 shape used switchMap
433
+ * to handle a stream of items). The pump owns the per-claim lifecycle:
434
+ * activation when the work fn returns, teardown when the result Node is
435
+ * unsubscribed.
436
+ *
437
+ * **Cross-item learning:** a fresh refineLoop per item means
438
+ * `errorCritique`-style failure sampling does NOT accumulate across items
439
+ * sharing a `rootCause`. A persistent-loop + re-seed surface is filed in
440
+ * `docs/optimizations.md` as a long-term follow-up.
441
+ *
442
+ * @module
443
+ */
444
+
445
+ /** Terminal-run snapshot passed to a custom `toOutput` mapper. */
446
+ interface RefineExecutorResult<T> {
447
+ /** Best candidate the inner loop converged on. `null` if no candidates were scored. */
448
+ readonly best: T | null;
449
+ /** Aggregate score at termination. `-Infinity` if the batch was empty. */
450
+ readonly score: number;
451
+ /** Reason the loop terminated. */
452
+ readonly status: RefineStatus;
453
+ }
454
+ /** Configuration for {@link refineExecutor}. */
455
+ interface RefineExecutorConfig<T> {
456
+ /** Map a triaged item to the seed candidate (e.g. a catalog entry, prompt, patch). */
457
+ seedFrom: (item: TriagedItem) => T;
458
+ /** Reactive evaluator — same shape as passed to `refineLoop`. */
459
+ evaluator: Evaluator<T>;
460
+ /** Strategy (e.g. `errorCritique(teacher)`). Applied to every item's inner loop. */
461
+ strategy: RefineStrategy<T>;
462
+ /** Map a triaged item to the dataset rows the evaluator should score against. */
463
+ datasetFor: (item: TriagedItem) => readonly DatasetItem[];
464
+ /**
465
+ * Optional mapper from the inner loop's terminal snapshot to an
466
+ * `ExecuteOutput<T>`. Default: converged→success, budget→partial,
467
+ * errored→failure.
468
+ */
469
+ toOutput?: (result: RefineExecutorResult<T>) => ExecuteOutput<T>;
470
+ /** Convergence / budget options forwarded to each inner `refineLoop`. */
471
+ refine?: Omit<RefineLoopOptions, "dataset" | "name">;
472
+ /** Node name prefix for introspection. Default `"refine-executor"`. */
473
+ name?: string;
474
+ }
475
+ /**
476
+ * Build a {@link HarnessExecutor} backed by a `refineLoop` per claimed
477
+ * job.
478
+ *
479
+ * @example Eval-driven repair loop in the harness EXECUTE slot.
480
+ * ```ts
481
+ * const harness = harnessLoop("repair", {
482
+ * adapter,
483
+ * executor: refineExecutor({
484
+ * seedFrom: (item) => initialCatalogEntry(item),
485
+ * datasetFor: (item) => pickAffectedTasks(item, allTasks),
486
+ * evaluator: (cands, tasks) => runEvalBatch(cands, tasks),
487
+ * strategy: errorCritique({ teacher, width: 3 }),
488
+ * refine: { maxIterations: 5, minScore: 0.9 },
489
+ * }),
490
+ * });
491
+ * ```
492
+ */
493
+ declare function refineExecutor<T>(config: RefineExecutorConfig<T>): HarnessExecutor<T>;
494
+
495
+ /**
496
+ * Harness pipeline trace — thin sugar over `graph.observe({ format: "stage-log" })`.
497
+ *
498
+ * Since 2026-04-22 (D2), stage-labeled tracing is a first-class observe format
499
+ * on {@link Graph}. `harnessTrace` wires that format over the 7 pipeline stages
500
+ * (INTAKE → TRIAGE → QUEUE → GATE → EXECUTE → VERIFY → STRATEGY) with sensible
501
+ * defaults so harness consumers don't need to restate the stage map.
502
+ *
503
+ * For non-harness graphs, call `graph.observe({ format: "stage-log", stageLabels })`
504
+ * directly — the format is domain-agnostic.
505
+ *
506
+ * @module
507
+ */
508
+
509
+ /** Event type captured by structured trace. */
510
+ type TraceEventType = "data" | "error" | "complete";
511
+ /** A single structured trace event. */
512
+ interface TraceEvent {
513
+ /** Elapsed seconds since trace was created. */
514
+ elapsed: number;
515
+ /** Pipeline stage label (INTAKE, TRIAGE, QUEUE, GATE, EXECUTE, VERIFY, STRATEGY). */
516
+ stage: string;
517
+ /** Event type. */
518
+ type: TraceEventType;
519
+ /** Data payload (present for "data" and "error" events). Omitted at "summary" detail. */
520
+ data?: unknown;
521
+ /** Human-readable summary of the data. Present at "standard" and "full" detail. */
522
+ summary?: string;
523
+ }
524
+ /** Detail level for trace output. */
525
+ type TraceDetail =
526
+ /** Stage + elapsed only. No data preview. Lowest overhead. */
527
+ "summary"
528
+ /** Stage + elapsed + truncated data preview. Default. */
529
+ | "standard"
530
+ /** Stage + elapsed + full raw data. Use for debugging, not production. */
531
+ | "full";
532
+ /** Handle returned by {@link harnessTrace}. Call `dispose()` to stop tracing. */
533
+ interface HarnessTraceHandle {
534
+ /** Stop tracing and detach all observers. Safe to call multiple times. */
535
+ dispose(): void;
536
+ /**
537
+ * Structured trace events collected since creation. Plain array — no
538
+ * subscription needed (COMPOSITION-GUIDE §1: avoid lazy-activation
539
+ * friction for inspection tools). Populated reactively via observe().
540
+ */
541
+ readonly events: readonly TraceEvent[];
542
+ }
543
+ /** Options for {@link harnessTrace}. */
544
+ interface HarnessTraceOptions {
545
+ /** Sink for rendered trace lines. Default: `console.log`. Pass `null` for structured-only. */
546
+ logger?: ((line: string) => void) | null;
547
+ /** Detail level for both string and structured output. Default: `"summary"`. */
548
+ detail?: TraceDetail;
549
+ }
550
+ /**
551
+ * Attach a stage-log trace over the harness pipeline. Delegates to
552
+ * `harness.observe({ format: "stage-log", ... })` for each stage path —
553
+ * every event is captured in `handle.events` (structured) AND rendered via
554
+ * the `logger` (string output).
555
+ *
556
+ * **Detail levels:**
557
+ * - `"summary"` — stage + elapsed only. Minimal overhead.
558
+ * - `"standard"` (default) — stage + elapsed + truncated data preview.
559
+ * - `"full"` — stage + elapsed + full raw data object in events.
560
+ *
561
+ * Elapsed timestamps are relative to the `harnessTrace()` invocation time,
562
+ * not the first event.
563
+ */
564
+ declare function harnessTrace(harness: HarnessGraph, opts?: HarnessTraceOptions): HarnessTraceHandle;
565
+
566
+ export { type ActorHandle, type ActorId, type ActorPoolBundle, type ActorPoolOptions, type ActorSpec, type ActorState, type ActorStatus, DatasetItem, EvalResult, type EvalVerifierConfig, type EvalVerifierSummary, Evaluator, type HarnessEvalPairConfig, HarnessGraph, type HarnessProfileResult, type HarnessTraceHandle, type HarnessTraceOptions, OwnershipControllerGraph, type OwnershipControllerOptions, type OwnershipState, type RefineExecutorConfig, type RefineExecutorResult, RefineLoopOptions, RefineStatus, RefineStrategy, type Todo, type TraceDetail, type TraceEvent, type TraceEventType, actorPool, evalVerifier, harnessEvalPair, harnessProfile, harnessTrace, ownershipController, refineExecutor };