@graphrefly/ts 0.0.0 → 0.0.2

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 (405) hide show
  1. package/README.md +135 -0
  2. package/dist/actions-types-CSC3NMDl.d.ts +657 -0
  3. package/dist/actions-types-wl9Mgkmr.d.cts +657 -0
  4. package/dist/adapters/index.cjs +5219 -2974
  5. package/dist/adapters/index.cjs.map +1 -1
  6. package/dist/adapters/index.d.cts +204 -192
  7. package/dist/adapters/index.d.ts +204 -192
  8. package/dist/adapters/index.js +3685 -1833
  9. package/dist/adapters/index.js.map +1 -1
  10. package/dist/adapters/nestjs/microservices.cjs +841 -0
  11. package/dist/adapters/nestjs/microservices.cjs.map +1 -0
  12. package/dist/adapters/nestjs/microservices.d.cts +45 -0
  13. package/dist/adapters/nestjs/microservices.d.ts +45 -0
  14. package/dist/adapters/nestjs/microservices.js +206 -0
  15. package/dist/adapters/nestjs/microservices.js.map +1 -0
  16. package/dist/adapters/nestjs/native.cjs +1391 -0
  17. package/dist/adapters/nestjs/native.cjs.map +1 -0
  18. package/dist/adapters/nestjs/native.d.cts +111 -0
  19. package/dist/adapters/nestjs/native.d.ts +111 -0
  20. package/dist/adapters/nestjs/native.js +577 -0
  21. package/dist/adapters/nestjs/native.js.map +1 -0
  22. package/dist/adapters/nestjs/websockets.cjs +924 -0
  23. package/dist/adapters/nestjs/websockets.cjs.map +1 -0
  24. package/dist/adapters/nestjs/websockets.d.cts +47 -0
  25. package/dist/adapters/nestjs/websockets.d.ts +47 -0
  26. package/dist/adapters/nestjs/websockets.js +286 -0
  27. package/dist/adapters/nestjs/websockets.js.map +1 -0
  28. package/dist/adapters/nestjs.cjs +1085 -0
  29. package/dist/adapters/nestjs.cjs.map +1 -0
  30. package/dist/adapters/nestjs.d.cts +385 -0
  31. package/dist/adapters/nestjs.d.ts +385 -0
  32. package/dist/adapters/nestjs.js +112 -0
  33. package/dist/adapters/nestjs.js.map +1 -0
  34. package/dist/adapters/observe-storage.d.cts +4 -4
  35. package/dist/adapters/observe-storage.d.ts +4 -4
  36. package/dist/adapters/observe-storage.js +5 -4
  37. package/dist/adapters/observe-storage.js.map +1 -1
  38. package/dist/adapters/react.cjs +166 -0
  39. package/dist/adapters/react.cjs.map +1 -0
  40. package/dist/adapters/react.d.cts +31 -0
  41. package/dist/adapters/react.d.ts +31 -0
  42. package/dist/adapters/react.js +51 -0
  43. package/dist/adapters/react.js.map +1 -0
  44. package/dist/adapters/solid.cjs +157 -0
  45. package/dist/adapters/solid.cjs.map +1 -0
  46. package/dist/adapters/solid.d.cts +26 -0
  47. package/dist/adapters/solid.d.ts +26 -0
  48. package/dist/adapters/solid.js +48 -0
  49. package/dist/adapters/solid.js.map +1 -0
  50. package/dist/adapters/svelte.cjs +148 -0
  51. package/dist/adapters/svelte.cjs.map +1 -0
  52. package/dist/adapters/svelte.d.cts +31 -0
  53. package/dist/adapters/svelte.d.ts +31 -0
  54. package/dist/adapters/svelte.js +46 -0
  55. package/dist/adapters/svelte.js.map +1 -0
  56. package/dist/adapters/vue.cjs +155 -0
  57. package/dist/adapters/vue.cjs.map +1 -0
  58. package/dist/adapters/vue.d.cts +26 -0
  59. package/dist/adapters/vue.d.ts +26 -0
  60. package/dist/adapters/vue.js +46 -0
  61. package/dist/adapters/vue.js.map +1 -0
  62. package/dist/agent-runtime-types-core-CaXfKNtY.d.cts +406 -0
  63. package/dist/agent-runtime-types-core-hU299uIC.d.ts +406 -0
  64. package/dist/agent-runtime-types-tool-BEpSINol.d.ts +695 -0
  65. package/dist/agent-runtime-types-tool-DninPEzk.d.cts +695 -0
  66. package/dist/agentic-memory-retention-BmGX368S.d.ts +14 -0
  67. package/dist/agentic-memory-retention-Ih1qhX9Z.d.cts +14 -0
  68. package/dist/agentic-memory-types-CVSUS6XR.d.ts +473 -0
  69. package/dist/agentic-memory-types-FnnYlVUs.d.cts +473 -0
  70. package/dist/capability-admission-BW2CziT6.d.ts +102 -0
  71. package/dist/capability-admission-lwSecxXs.d.cts +102 -0
  72. package/dist/chunk-2KUAG2GZ.js +9693 -0
  73. package/dist/chunk-2KUAG2GZ.js.map +1 -0
  74. package/dist/chunk-2NJP6GO4.js +1320 -0
  75. package/dist/chunk-2NJP6GO4.js.map +1 -0
  76. package/dist/{chunk-GDL26N2T.js → chunk-3KN7NJDR.js} +2 -2
  77. package/dist/{chunk-COHO25CZ.js → chunk-4NWSNI4K.js} +2232 -1672
  78. package/dist/chunk-4NWSNI4K.js.map +1 -0
  79. package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
  80. package/dist/chunk-6E76H4OU.js +132 -0
  81. package/dist/chunk-6E76H4OU.js.map +1 -0
  82. package/dist/chunk-7GOTIIQ7.js +819 -0
  83. package/dist/chunk-7GOTIIQ7.js.map +1 -0
  84. package/dist/{chunk-D6BG7U6A.js → chunk-7HZRJMN6.js} +3 -3
  85. package/dist/{chunk-SCRFRCGR.js → chunk-BSQGE5PS.js} +1 -1
  86. package/dist/{chunk-PKVBHGBM.js → chunk-CJIFGJQG.js} +7 -7
  87. package/dist/{chunk-G4M3NHRJ.js → chunk-CX6B6PO2.js} +93 -10
  88. package/dist/chunk-CX6B6PO2.js.map +1 -0
  89. package/dist/chunk-DGUM43GV.js +11 -0
  90. package/dist/chunk-DGUM43GV.js.map +1 -0
  91. package/dist/{chunk-JIMUDQN3.js → chunk-E4QCH32M.js} +449 -447
  92. package/dist/chunk-E4QCH32M.js.map +1 -0
  93. package/dist/{chunk-RIIOUTGM.js → chunk-ECURQ3HD.js} +19 -129
  94. package/dist/chunk-ECURQ3HD.js.map +1 -0
  95. package/dist/{chunk-2ILL7HQI.js → chunk-EOKT4QFF.js} +134 -128
  96. package/dist/chunk-EOKT4QFF.js.map +1 -0
  97. package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
  98. package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
  99. package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
  100. package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
  101. package/dist/chunk-K7FB3JTD.js.map +1 -0
  102. package/dist/chunk-L6LDXRWE.js +219 -0
  103. package/dist/chunk-L6LDXRWE.js.map +1 -0
  104. package/dist/chunk-M7J6Z4IJ.js +1930 -0
  105. package/dist/chunk-M7J6Z4IJ.js.map +1 -0
  106. package/dist/chunk-MQEQMS7B.js +1009 -0
  107. package/dist/chunk-MQEQMS7B.js.map +1 -0
  108. package/dist/chunk-MTELVIYR.js +1421 -0
  109. package/dist/chunk-MTELVIYR.js.map +1 -0
  110. package/dist/chunk-PVC7WDKI.js +885 -0
  111. package/dist/chunk-PVC7WDKI.js.map +1 -0
  112. package/dist/chunk-RAHNUYA5.js +368 -0
  113. package/dist/chunk-RAHNUYA5.js.map +1 -0
  114. package/dist/{chunk-DK554R7P.js → chunk-S6HXABGL.js} +2 -1
  115. package/dist/chunk-S6HXABGL.js.map +1 -0
  116. package/dist/{chunk-I3IHOHCJ.js → chunk-SHZDP2MQ.js} +1181 -1001
  117. package/dist/chunk-SHZDP2MQ.js.map +1 -0
  118. package/dist/{chunk-Y3ZLRGHC.js → chunk-SIDJO2T4.js} +16 -16
  119. package/dist/chunk-STXRMPW4.js +4131 -0
  120. package/dist/chunk-STXRMPW4.js.map +1 -0
  121. package/dist/{chunk-JR4IKCR2.js → chunk-TPND5MJS.js} +5 -5
  122. package/dist/chunk-TQPCAIQI.js +612 -0
  123. package/dist/chunk-TQPCAIQI.js.map +1 -0
  124. package/dist/chunk-UT3MHJCW.js +49 -0
  125. package/dist/chunk-UT3MHJCW.js.map +1 -0
  126. package/dist/{chunk-TEW47IVR.js → chunk-VPEFSDME.js} +2 -2
  127. package/dist/{chunk-SWTLEQL6.js → chunk-WQIA3GFB.js} +2 -2
  128. package/dist/chunk-WQIA3GFB.js.map +1 -0
  129. package/dist/{chunk-DJC4CHLQ.js → chunk-YDWBXXQZ.js} +5 -5
  130. package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
  131. package/dist/composition/index.cjs +1256 -1059
  132. package/dist/composition/index.cjs.map +1 -1
  133. package/dist/composition/index.d.cts +4 -4
  134. package/dist/composition/index.d.ts +4 -4
  135. package/dist/composition/index.js +7 -6
  136. package/dist/core/index.cjs +1218 -1021
  137. package/dist/core/index.cjs.map +1 -1
  138. package/dist/core/index.d.cts +2 -2
  139. package/dist/core/index.d.ts +2 -2
  140. package/dist/core/index.js +5 -4
  141. package/dist/cqrs/index.cjs.map +1 -1
  142. package/dist/cqrs/index.d.cts +4 -4
  143. package/dist/cqrs/index.d.ts +4 -4
  144. package/dist/cqrs/index.js +3 -2
  145. package/dist/cqrs/index.js.map +1 -1
  146. package/dist/cqrs/messaging.cjs +312 -0
  147. package/dist/cqrs/messaging.cjs.map +1 -0
  148. package/dist/cqrs/messaging.d.cts +57 -0
  149. package/dist/cqrs/messaging.d.ts +57 -0
  150. package/dist/cqrs/messaging.js +274 -0
  151. package/dist/cqrs/messaging.js.map +1 -0
  152. package/dist/cqrs/work-queue.cjs +329 -0
  153. package/dist/cqrs/work-queue.cjs.map +1 -0
  154. package/dist/cqrs/work-queue.d.cts +90 -0
  155. package/dist/cqrs/work-queue.d.ts +90 -0
  156. package/dist/cqrs/work-queue.js +292 -0
  157. package/dist/cqrs/work-queue.js.map +1 -0
  158. package/dist/data/index.cjs +19 -0
  159. package/dist/data/index.cjs.map +1 -0
  160. package/dist/data/index.d.cts +36 -0
  161. package/dist/data/index.d.ts +36 -0
  162. package/dist/data/index.js +1 -0
  163. package/dist/data/index.js.map +1 -0
  164. package/dist/data-structures/index.cjs +1252 -1052
  165. package/dist/data-structures/index.cjs.map +1 -1
  166. package/dist/data-structures/index.d.cts +9 -8
  167. package/dist/data-structures/index.d.ts +9 -8
  168. package/dist/data-structures/index.js +9 -7
  169. package/dist/{describe-BZb7AS2y.d.ts → describe-B_A5fbXH.d.ts} +1 -1
  170. package/dist/{describe-Ciu8SUnN.d.cts → describe-CQRrkv-Q.d.cts} +1 -1
  171. package/dist/executors/tool-provider-adapters.cjs +3091 -0
  172. package/dist/executors/tool-provider-adapters.cjs.map +1 -0
  173. package/dist/executors/tool-provider-adapters.d.cts +174 -0
  174. package/dist/executors/tool-provider-adapters.d.ts +174 -0
  175. package/dist/executors/tool-provider-adapters.js +1336 -0
  176. package/dist/executors/tool-provider-adapters.js.map +1 -0
  177. package/dist/executors/tool-provider-runtime.cjs +5178 -0
  178. package/dist/executors/tool-provider-runtime.cjs.map +1 -0
  179. package/dist/executors/tool-provider-runtime.d.cts +17 -0
  180. package/dist/executors/tool-provider-runtime.d.ts +17 -0
  181. package/dist/executors/tool-provider-runtime.js +15 -0
  182. package/dist/executors/tool-provider-runtime.js.map +1 -0
  183. package/dist/executors/tool-provider.cjs +6392 -0
  184. package/dist/executors/tool-provider.cjs.map +1 -0
  185. package/dist/executors/tool-provider.d.cts +60 -0
  186. package/dist/executors/tool-provider.d.ts +60 -0
  187. package/dist/executors/tool-provider.js +89 -0
  188. package/dist/executors/tool-provider.js.map +1 -0
  189. package/dist/executors/work-queue.cjs +342 -0
  190. package/dist/executors/work-queue.cjs.map +1 -0
  191. package/dist/executors/work-queue.d.cts +90 -0
  192. package/dist/executors/work-queue.d.ts +90 -0
  193. package/dist/executors/work-queue.js +306 -0
  194. package/dist/executors/work-queue.js.map +1 -0
  195. package/dist/graph/index.cjs +1536 -1324
  196. package/dist/graph/index.cjs.map +1 -1
  197. package/dist/graph/index.d.cts +10 -9
  198. package/dist/graph/index.d.ts +10 -9
  199. package/dist/graph/index.js +22 -20
  200. package/dist/{graph-s23RbbFO.d.cts → graph-CWK3HLPB.d.cts} +134 -132
  201. package/dist/{graph-DfdF9zy4.d.ts → graph-ho5sotHP.d.ts} +134 -132
  202. package/dist/{index-SnzZu3x7.d.ts → index-CQWcE0Dw.d.ts} +18 -4
  203. package/dist/{index-CAEmLCYF.d.cts → index-DHA1i67c.d.cts} +18 -4
  204. package/dist/index.cjs +3331 -3020
  205. package/dist/index.cjs.map +1 -1
  206. package/dist/index.d.cts +14 -10
  207. package/dist/index.d.ts +14 -10
  208. package/dist/index.js +114 -108
  209. package/dist/inspection/boundary.cjs +98 -0
  210. package/dist/inspection/boundary.cjs.map +1 -0
  211. package/dist/inspection/boundary.d.cts +61 -0
  212. package/dist/inspection/boundary.d.ts +61 -0
  213. package/dist/inspection/boundary.js +75 -0
  214. package/dist/inspection/boundary.js.map +1 -0
  215. package/dist/measurements-C0mAvWU1.d.cts +164 -0
  216. package/dist/measurements-OMpCeBwh.d.ts +164 -0
  217. package/dist/{messages-BZqrGGm1.d.ts → messages-CAzUPPJM.d.cts} +10 -5
  218. package/dist/{messages-BZqrGGm1.d.cts → messages-CAzUPPJM.d.ts} +10 -5
  219. package/dist/messaging/index.cjs +756 -619
  220. package/dist/messaging/index.cjs.map +1 -1
  221. package/dist/messaging/index.d.cts +17 -226
  222. package/dist/messaging/index.d.ts +17 -226
  223. package/dist/messaging/index.js +19 -749
  224. package/dist/messaging/index.js.map +1 -1
  225. package/dist/operators/index.cjs +1256 -1059
  226. package/dist/operators/index.cjs.map +1 -1
  227. package/dist/operators/index.d.cts +6 -6
  228. package/dist/operators/index.d.ts +6 -6
  229. package/dist/operators/index.js +9 -8
  230. package/dist/orchestration/index.cjs +8664 -2617
  231. package/dist/orchestration/index.cjs.map +1 -1
  232. package/dist/orchestration/index.d.cts +171 -221
  233. package/dist/orchestration/index.d.ts +171 -221
  234. package/dist/orchestration/index.js +74 -982
  235. package/dist/orchestration/index.js.map +1 -1
  236. package/dist/orchestration/messaging.cjs +314 -0
  237. package/dist/orchestration/messaging.cjs.map +1 -0
  238. package/dist/orchestration/messaging.d.cts +56 -0
  239. package/dist/orchestration/messaging.d.ts +56 -0
  240. package/dist/orchestration/messaging.js +276 -0
  241. package/dist/orchestration/messaging.js.map +1 -0
  242. package/dist/orchestration/work-queue.cjs +1500 -0
  243. package/dist/orchestration/work-queue.cjs.map +1 -0
  244. package/dist/orchestration/work-queue.d.cts +196 -0
  245. package/dist/orchestration/work-queue.d.ts +196 -0
  246. package/dist/orchestration/work-queue.js +1289 -0
  247. package/dist/orchestration/work-queue.js.map +1 -0
  248. package/dist/patterns/event-flow.cjs +433 -0
  249. package/dist/patterns/event-flow.cjs.map +1 -0
  250. package/dist/patterns/event-flow.d.cts +115 -0
  251. package/dist/patterns/event-flow.d.ts +115 -0
  252. package/dist/patterns/event-flow.js +14 -0
  253. package/dist/patterns/event-flow.js.map +1 -0
  254. package/dist/patterns/index.cjs +748 -355
  255. package/dist/patterns/index.cjs.map +1 -1
  256. package/dist/patterns/index.d.cts +9 -5
  257. package/dist/patterns/index.d.ts +9 -5
  258. package/dist/patterns/index.js +13 -4
  259. package/dist/process-types-C9uMYz3i.d.ts +200 -0
  260. package/dist/process-types-h3uRlzDc.d.cts +200 -0
  261. package/dist/{reactive-collection-BxBqtIOE.d.cts → reactive-collection-B9R0Bl1P.d.cts} +11 -41
  262. package/dist/{reactive-collection-Cb1II1Fi.d.ts → reactive-collection-BXFrH0U2.d.ts} +11 -41
  263. package/dist/{reactive-collection-storage-D-KmjE0J.d.cts → reactive-collection-storage-BLGv8Xp8.d.cts} +5 -5
  264. package/dist/{reactive-collection-storage-BNiEc-Gd.d.ts → reactive-collection-storage-a4zD3665.d.ts} +5 -5
  265. package/dist/{reactive-map-BcB4KsQR.d.ts → reactive-map-C_8sOfdS.d.cts} +7 -6
  266. package/dist/{reactive-map-D-g3dv8I.d.cts → reactive-map-jle5dnok.d.ts} +7 -6
  267. package/dist/render/index.d.cts +3 -3
  268. package/dist/render/index.d.ts +3 -3
  269. package/dist/render/index.js +1 -0
  270. package/dist/scheduled-readiness-5rwQlyjV.d.ts +91 -0
  271. package/dist/scheduled-readiness-DpRY8jI0.d.cts +91 -0
  272. package/dist/semantic-memory-graph-C2ZUwIlq.d.ts +30 -0
  273. package/dist/semantic-memory-graph-DlZBD_Eu.d.cts +30 -0
  274. package/dist/{semantic-memory-graph-BYoIlP35.d.cts → semantic-memory-graph-types-BvzdqmkY.d.cts} +2 -28
  275. package/dist/{semantic-memory-graph-CxyXLms3.d.ts → semantic-memory-graph-types-Ci-OtahO.d.ts} +2 -28
  276. package/dist/solutions/index.cjs +6788 -2128
  277. package/dist/solutions/index.cjs.map +1 -1
  278. package/dist/solutions/index.d.cts +15 -519
  279. package/dist/solutions/index.d.ts +15 -519
  280. package/dist/solutions/index.js +91 -7
  281. package/dist/solutions/reactive-layout/browser/index.cjs +457 -0
  282. package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -0
  283. package/dist/solutions/reactive-layout/browser/index.d.cts +44 -0
  284. package/dist/solutions/reactive-layout/browser/index.d.ts +44 -0
  285. package/dist/solutions/reactive-layout/browser/index.js +69 -0
  286. package/dist/solutions/reactive-layout/browser/index.js.map +1 -0
  287. package/dist/solutions/reactive-layout/index.cjs +4494 -0
  288. package/dist/solutions/reactive-layout/index.cjs.map +1 -0
  289. package/dist/solutions/reactive-layout/index.d.cts +37 -0
  290. package/dist/solutions/reactive-layout/index.d.ts +37 -0
  291. package/dist/solutions/reactive-layout/index.js +146 -0
  292. package/dist/solutions/reactive-layout/index.js.map +1 -0
  293. package/dist/solutions/reactive-layout/node-canvas/index.cjs +555 -0
  294. package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -0
  295. package/dist/solutions/reactive-layout/node-canvas/index.d.cts +54 -0
  296. package/dist/solutions/reactive-layout/node-canvas/index.d.ts +54 -0
  297. package/dist/solutions/reactive-layout/node-canvas/index.js +131 -0
  298. package/dist/solutions/reactive-layout/node-canvas/index.js.map +1 -0
  299. package/dist/solutions/reactive-layout/react-native/index.cjs +504 -0
  300. package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -0
  301. package/dist/solutions/reactive-layout/react-native/index.d.cts +51 -0
  302. package/dist/solutions/reactive-layout/react-native/index.d.ts +51 -0
  303. package/dist/solutions/reactive-layout/react-native/index.js +77 -0
  304. package/dist/solutions/reactive-layout/react-native/index.js.map +1 -0
  305. package/dist/solutions/reactive-layout/skia/index.cjs +557 -0
  306. package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -0
  307. package/dist/solutions/reactive-layout/skia/index.d.cts +64 -0
  308. package/dist/solutions/reactive-layout/skia/index.d.ts +64 -0
  309. package/dist/solutions/reactive-layout/skia/index.js +70 -0
  310. package/dist/solutions/reactive-layout/skia/index.js.map +1 -0
  311. package/dist/solutions/work-item/actions.cjs +2345 -0
  312. package/dist/solutions/work-item/actions.cjs.map +1 -0
  313. package/dist/solutions/work-item/actions.d.cts +40 -0
  314. package/dist/solutions/work-item/actions.d.ts +40 -0
  315. package/dist/solutions/work-item/actions.js +2078 -0
  316. package/dist/solutions/work-item/actions.js.map +1 -0
  317. package/dist/solutions/work-item/scheduling.cjs +9797 -0
  318. package/dist/solutions/work-item/scheduling.cjs.map +1 -0
  319. package/dist/solutions/work-item/scheduling.d.cts +1868 -0
  320. package/dist/solutions/work-item/scheduling.d.ts +1868 -0
  321. package/dist/solutions/work-item/scheduling.js +146 -0
  322. package/dist/solutions/work-item/scheduling.js.map +1 -0
  323. package/dist/solutions/work-item/work-queue.cjs +306 -0
  324. package/dist/solutions/work-item/work-queue.cjs.map +1 -0
  325. package/dist/solutions/work-item/work-queue.d.cts +71 -0
  326. package/dist/solutions/work-item/work-queue.d.ts +71 -0
  327. package/dist/solutions/work-item/work-queue.js +270 -0
  328. package/dist/solutions/work-item/work-queue.js.map +1 -0
  329. package/dist/sources/browser.cjs +1399 -1052
  330. package/dist/sources/browser.cjs.map +1 -1
  331. package/dist/sources/browser.d.cts +33 -6
  332. package/dist/sources/browser.d.ts +33 -6
  333. package/dist/sources/browser.js +73 -6
  334. package/dist/sources/browser.js.map +1 -1
  335. package/dist/sources/index.cjs +1345 -1065
  336. package/dist/sources/index.cjs.map +1 -1
  337. package/dist/sources/index.d.cts +5 -5
  338. package/dist/sources/index.d.ts +5 -5
  339. package/dist/sources/index.js +7 -6
  340. package/dist/sources/node.cjs.map +1 -1
  341. package/dist/sources/node.d.cts +4 -4
  342. package/dist/sources/node.d.ts +4 -4
  343. package/dist/sources/node.js +2 -1
  344. package/dist/sources/node.js.map +1 -1
  345. package/dist/storage/browser.cjs +16 -0
  346. package/dist/storage/browser.cjs.map +1 -1
  347. package/dist/storage/browser.js +4 -3
  348. package/dist/storage/browser.js.map +1 -1
  349. package/dist/storage/index.cjs +16 -0
  350. package/dist/storage/index.cjs.map +1 -1
  351. package/dist/storage/index.d.cts +6 -5
  352. package/dist/storage/index.d.ts +6 -5
  353. package/dist/storage/index.js +10 -9
  354. package/dist/storage/node.cjs +16 -0
  355. package/dist/storage/node.cjs.map +1 -1
  356. package/dist/storage/node.js +4 -3
  357. package/dist/storage/node.js.map +1 -1
  358. package/dist/store-BmtEs9mG.d.ts +123 -0
  359. package/dist/store-PAAsYvML.d.cts +123 -0
  360. package/dist/testing/index.cjs +1 -0
  361. package/dist/testing/index.cjs.map +1 -1
  362. package/dist/testing/index.d.cts +1 -1
  363. package/dist/testing/index.d.ts +1 -1
  364. package/dist/testing/index.js +3 -2
  365. package/dist/types-BRNKoFHj.d.ts +357 -0
  366. package/dist/{types-h12mNYbq.d.ts → types-BS6CyR-x.d.cts} +49 -130
  367. package/dist/types-BWK2ay3e.d.cts +457 -0
  368. package/dist/types-BXKSAoE1.d.cts +357 -0
  369. package/dist/types-BaPpZItj.d.ts +457 -0
  370. package/dist/types-BhveCMg5.d.cts +274 -0
  371. package/dist/{types-bNMSWKqF.d.cts → types-C9NOgNJw.d.ts} +49 -130
  372. package/dist/types-CTsQ8Ww4.d.ts +274 -0
  373. package/dist/types-DL_05n2M.d.ts +34 -0
  374. package/dist/types-XDoqxYO9.d.cts +34 -0
  375. package/dist/work-item-runtime-types-BqtWnSCS.d.ts +138 -0
  376. package/dist/work-item-runtime-types-CHO03AKh.d.cts +138 -0
  377. package/dist/work-queue/index.cjs +1136 -0
  378. package/dist/work-queue/index.cjs.map +1 -0
  379. package/dist/work-queue/index.d.cts +21 -0
  380. package/dist/work-queue/index.d.ts +21 -0
  381. package/dist/work-queue/index.js +1082 -0
  382. package/dist/work-queue/index.js.map +1 -0
  383. package/package.json +603 -249
  384. package/dist/chunk-2ILL7HQI.js.map +0 -1
  385. package/dist/chunk-4VLAQHZI.js.map +0 -1
  386. package/dist/chunk-COHO25CZ.js.map +0 -1
  387. package/dist/chunk-DK554R7P.js.map +0 -1
  388. package/dist/chunk-G4M3NHRJ.js.map +0 -1
  389. package/dist/chunk-I3IHOHCJ.js.map +0 -1
  390. package/dist/chunk-JIMUDQN3.js.map +0 -1
  391. package/dist/chunk-RIIOUTGM.js.map +0 -1
  392. package/dist/chunk-SWTLEQL6.js.map +0 -1
  393. /package/dist/{chunk-GDL26N2T.js.map → chunk-3KN7NJDR.js.map} +0 -0
  394. /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
  395. /package/dist/{chunk-D6BG7U6A.js.map → chunk-7HZRJMN6.js.map} +0 -0
  396. /package/dist/{chunk-SCRFRCGR.js.map → chunk-BSQGE5PS.js.map} +0 -0
  397. /package/dist/{chunk-PKVBHGBM.js.map → chunk-CJIFGJQG.js.map} +0 -0
  398. /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
  399. /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
  400. /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
  401. /package/dist/{chunk-Y3ZLRGHC.js.map → chunk-SIDJO2T4.js.map} +0 -0
  402. /package/dist/{chunk-JR4IKCR2.js.map → chunk-TPND5MJS.js.map} +0 -0
  403. /package/dist/{chunk-TEW47IVR.js.map → chunk-VPEFSDME.js.map} +0 -0
  404. /package/dist/{chunk-DJC4CHLQ.js.map → chunk-YDWBXXQZ.js.map} +0 -0
  405. /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
@@ -1,18 +1,181 @@
1
- import { d as Graph } from '../graph-DfdF9zy4.js';
2
1
  import { b as RetryStatus, B as BackoffPolicy, R as RetryPolicy } from '../resilience-Dig3Q7n0.js';
3
2
  export { c as backoffDelayMs, n as nextRetryDelayMs, d as noBackoff, r as retryPolicy, s as shouldRetry } from '../resilience-Dig3Q7n0.js';
4
- import { N as Node } from '../types-h12mNYbq.js';
3
+ import { N as Node } from '../types-C9NOgNJw.js';
4
+ import { d as Graph } from '../graph-ho5sotHP.js';
5
+ import { S as SourceRef, o as EffectRun, p as AgentDecision, A as AgentRequestStatusChanged, b as AgentRequestFact, n as EffectRunResult, q as EffectRunCompletionBundle, E as ExecutorOutcome, r as StructuredAgentDecisionInterpreterBundle, s as ExecutorOutcomeBase, j as AgentNeed, h as AgentOutputEnvelope, t as AgentRequestProposal, u as AgentRequestAdmitted, v as AgentRequestLedgerBundle, w as AgentDecisionContinue, d as AgentRequestIssued, e as ExecutorProfile, c as ExecutorRoute, C as ContextContribution, P as PromptBundle, x as AgentRequestSatisfactionBundle } from '../agent-runtime-types-core-hU299uIC.js';
6
+ export { y as AgentDecisionBase, z as AgentDecisionBlocked, B as AgentDecisionFinal, D as AgentDecisionKind, F as AgentRequestDeferred, g as AgentRequestInput, G as AgentRequestKind, H as AgentRequestMerged, I as AgentRequestRejected, J as AgentRequestStatus, K as AgentRequestViews, a as AgentRuntimeAuditRecord, L as EffectRunCompletionStatus, l as EffectRunGoal, m as EffectRunLimits, M as EffectRunOptions, N as EffectRunResultBase, k as EffectRunResultStatus, O as ExecutorArtifactMaterial, f as ExecutorOutcomeStatus, i as ExecutorUsage, Q as SizeCapacityEvidence, R as StructuredAgentDecisionEnvelope, T as effectRun } from '../agent-runtime-types-core-hU299uIC.js';
7
+ import { c as ToolProviderAdapterInput, y as ToolProviderAdapterRunReason, a as ToolProviderAdapterRunRequested, z as ToolProviderAdapterRunBundle, m as ToolProviderAdapterRunResult, d as ToolProviderPublicTextPolicy, x as ExecutorOutcomeViewPolicy, E as ExecutorOutcomeViewBundle, T as ToolProviderCatalog, A as ToolProviderPolicyResolution, w as ToolProviderAdapterInputBundle, L as LocalBuiltinToolProviderCatalogOptions, v as ToolProviderPolicyResolutionBundle, B as ToolProviderRunAdmissionDecision, C as ToolProviderRunAdmissionBundle, D as ToolProviderRunRetryPolicy, F as ToolProviderRunRetryBundle } from '../agent-runtime-types-tool-BEpSINol.js';
8
+ export { G as ExecutorOutcomeView, H as ExecutorOutcomeViewAudience, I as ToolCallInput, J as ToolProviderAdapterInputStatus, b as ToolProviderAdapterRunStatus, K as ToolProviderApprovalPolicy, M as ToolProviderArtifactPolicy, N as ToolProviderCatalogEntry, O as ToolProviderExecutionPolicy, P as ToolProviderFilesystemPolicy, Q as ToolProviderKind, R as ToolProviderNetworkPolicy, S as ToolProviderPathRule, U as ToolProviderPolicyResolutionStatus, V as ToolProviderRedactionPolicy, W as ToolProviderRunAdmission, X as ToolProviderRunAdmissionOutcome, Y as ToolProviderRunAdmissionProposal, Z as ToolProviderRunAdmissionState, _ as ToolProviderRunAdmissionStatus, $ as ToolProviderRunAdmissionViews, a0 as ToolProviderRunRetryProposal, a1 as ToolProviderRunRetryScheduled, a2 as ToolProviderRunRetryStatus, a3 as ToolProviderRunRetryStatusState, a4 as ToolProviderRunRetryViews, a5 as ToolProviderSizeCapacityPolicy, a6 as ToolProviderSizeLimit, a7 as ToolProviderSizeUnit, a8 as ToolProviderTimeoutPolicy } from '../agent-runtime-types-tool-BEpSINol.js';
9
+ import { DataIssue } from '../data/index.js';
10
+ import { a as ScheduledReadinessReady } from '../scheduled-readiness-5rwQlyjV.js';
11
+ export { c as ScheduledReadinessBundle, d as ScheduledReadinessClock, b as ScheduledReadinessOverdue, e as ScheduledReadinessPending, S as ScheduledReadinessRequested, f as ScheduledReadinessStatus, g as ScheduledReadinessStatusState, h as ScheduledReadinessViews, s as scheduledReadinessProjector } from '../scheduled-readiness-5rwQlyjV.js';
12
+ import { d as ProcessBundleOptions, e as ProcessBundle, f as ProcessEffectRunnerOptions, g as ProcessEffectRunnerBundle } from '../process-types-C9uMYz3i.js';
13
+ export { h as ProcessAuditRecord, P as ProcessCommand, i as ProcessCursor, j as ProcessEffectCommandPayload, k as ProcessEffectCommandType, l as ProcessEffectOutcome, c as ProcessEffectRequest, m as ProcessEffectRequestDraft, n as ProcessEffectRunnerError, o as ProcessEffectRunnerStatus, p as ProcessError, q as ProcessErrorCode, b as ProcessEvent, r as ProcessEventDraft, s as ProcessReducer, t as ProcessReduction, a as ProcessStatus } from '../process-types-C9uMYz3i.js';
14
+ import '../messages-CAzUPPJM.js';
5
15
  import '../core/index.js';
6
- import '../messages-BZqrGGm1.js';
7
16
  import '../codec-BB7p8fJc.js';
8
- import '../describe-BZb7AS2y.js';
17
+ import '../describe-B_A5fbXH.js';
18
+ import '../types-DL_05n2M.js';
19
+
20
+ declare function requestToolProviderAdapterRun(input: ToolProviderAdapterInput, opts?: {
21
+ readonly runId?: string;
22
+ readonly attempt?: number;
23
+ readonly reason?: ToolProviderAdapterRunReason;
24
+ readonly retryOfOutcomeId?: string;
25
+ readonly policyRefs?: readonly SourceRef[];
26
+ readonly sourceRefs?: readonly SourceRef[];
27
+ readonly metadata?: Record<string, unknown>;
28
+ readonly requestedAtMs?: number;
29
+ }): ToolProviderAdapterRunRequested;
30
+ declare function toolProviderAdapterRunProjector(graph: Graph, opts: {
31
+ readonly name?: string;
32
+ readonly inputs: Node<ToolProviderAdapterInput>;
33
+ readonly runRequests?: readonly Node<ToolProviderAdapterRunRequested>[];
34
+ readonly autoRunReadyInputs?: boolean;
35
+ readonly now?: () => number;
36
+ }): ToolProviderAdapterRunBundle;
37
+
38
+ declare function effectRunCompletionProjector(graph: Graph, opts: {
39
+ readonly name?: string;
40
+ readonly effectRuns: Node<EffectRun>;
41
+ readonly decisions?: readonly Node<AgentDecision>[];
42
+ readonly requestStatuses?: readonly Node<AgentRequestStatusChanged>[];
43
+ readonly requestFacts?: readonly Node<AgentRequestFact>[];
44
+ readonly resultCandidates?: readonly Node<EffectRunResult>[];
45
+ readonly now?: () => number;
46
+ }): EffectRunCompletionBundle;
47
+
48
+ declare function structuredAgentDecisionInterpreter(graph: Graph, outcomes: Node<ExecutorOutcome>, opts?: {
49
+ readonly name?: string;
50
+ readonly schemaRef?: string;
51
+ readonly requestFacts?: readonly Node<AgentRequestFact>[];
52
+ }): StructuredAgentDecisionInterpreterBundle;
53
+
54
+ declare function buildToolProviderExecutorOutcome<T = unknown>(input: ToolProviderAdapterInput, result: ToolProviderAdapterRunResult<T>, opts?: {
55
+ readonly attempt?: number;
56
+ readonly outcomeId?: string;
57
+ readonly occurredAtMs?: number;
58
+ readonly runId?: string;
59
+ readonly publicText?: ToolProviderPublicTextPolicy;
60
+ }): ExecutorOutcome<T>;
61
+
62
+ declare function fakeExecutorResult<T>(opts: Omit<ExecutorOutcomeBase, "kind"> & {
63
+ readonly result: AgentOutputEnvelope<T>;
64
+ }): ExecutorOutcome<T>;
65
+ declare function fakeExecutorFailure(opts: Omit<ExecutorOutcomeBase, "kind"> & {
66
+ readonly error: DataIssue;
67
+ readonly retryable?: boolean;
68
+ }): ExecutorOutcome;
69
+ declare function fakeExecutorBlocked(opts: Omit<ExecutorOutcomeBase, "kind"> & {
70
+ readonly needs: readonly AgentNeed[];
71
+ }): ExecutorOutcome;
72
+ declare function fakeExecutorTimeout(opts: Omit<ExecutorOutcomeBase, "kind"> & {
73
+ readonly timeoutMs?: number;
74
+ readonly retryable?: boolean;
75
+ }): ExecutorOutcome;
76
+ declare function fakeExecutorCanceled(opts: Omit<ExecutorOutcomeBase, "kind"> & {
77
+ readonly reason?: string;
78
+ }): ExecutorOutcome;
79
+
80
+ declare function executorOutcomeViewProjector(graph: Graph, opts: {
81
+ readonly name?: string;
82
+ readonly outcomes: Node<ExecutorOutcome>;
83
+ readonly policy?: ExecutorOutcomeViewPolicy;
84
+ }): ExecutorOutcomeViewBundle;
85
+
86
+ declare function agentRequestProposalFromDecision(decision: AgentDecisionContinue, proposal: Omit<AgentRequestProposal, "kind" | "effectRunId" | "agentRunId" | "sourceDecisionId">): AgentRequestProposal;
87
+ declare function admitAgentRequestProposal(proposal: AgentRequestProposal, opts: {
88
+ readonly requestId: string;
89
+ readonly operationId: string;
90
+ readonly admittedAtMs?: number;
91
+ readonly reason?: string;
92
+ readonly sourceRefs?: readonly SourceRef[];
93
+ readonly metadata?: Record<string, unknown>;
94
+ }): AgentRequestAdmitted;
95
+ declare function issueAgentRequest(proposal: AgentRequestProposal, admission: AgentRequestAdmitted, opts?: {
96
+ readonly issuedAtMs?: number;
97
+ readonly sourceRefs?: readonly SourceRef[];
98
+ }): AgentRequestIssued;
99
+ declare function agentRequestLedgerViews(graph: Graph, facts: Node<AgentRequestFact>, opts?: {
100
+ readonly name?: string;
101
+ }): AgentRequestLedgerBundle;
102
+
103
+ declare function requestSatisfactionProjector(graph: Graph, opts: {
104
+ readonly name?: string;
105
+ readonly requestFacts: Node<AgentRequestFact>;
106
+ readonly executorProfiles?: readonly Node<ExecutorProfile>[];
107
+ readonly executorRoutes?: readonly Node<ExecutorRoute>[];
108
+ readonly executorOutcomes?: readonly Node<ExecutorOutcome>[];
109
+ readonly contextContributions?: readonly Node<ContextContribution>[];
110
+ readonly promptBundles?: readonly Node<PromptBundle>[];
111
+ }): AgentRequestSatisfactionBundle;
112
+
113
+ declare function buildToolProviderAdapterInputs(opts: {
114
+ readonly requests: readonly AgentRequestIssued[];
115
+ readonly routes?: readonly ExecutorRoute[];
116
+ readonly catalogs?: readonly ToolProviderCatalog[];
117
+ readonly resolutions: readonly ToolProviderPolicyResolution[];
118
+ }): readonly ToolProviderAdapterInput[];
119
+ declare function toolProviderAdapterInputProjector(graph: Graph, opts: {
120
+ readonly name?: string;
121
+ readonly requestFacts: Node<AgentRequestFact>;
122
+ readonly executorRoutes?: readonly Node<ExecutorRoute>[];
123
+ readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
124
+ readonly policyResolutions: readonly Node<ToolProviderPolicyResolution>[];
125
+ }): ToolProviderAdapterInputBundle;
126
+
127
+ declare function localBuiltinToolProviderCatalog(opts?: LocalBuiltinToolProviderCatalogOptions): ToolProviderCatalog;
128
+ declare function validateToolProviderExecutionPolicy(policy: unknown): readonly DataIssue[];
129
+ declare function resolveToolProviderExecutionPolicies(opts: {
130
+ readonly request: AgentRequestIssued;
131
+ readonly routes?: readonly ExecutorRoute[];
132
+ readonly catalogs?: readonly ToolProviderCatalog[];
133
+ }): readonly ToolProviderPolicyResolution[];
134
+ declare function toolProviderPolicyResolutionProjector(graph: Graph, opts: {
135
+ readonly name?: string;
136
+ readonly requestFacts: Node<AgentRequestFact>;
137
+ readonly executorRoutes?: readonly Node<ExecutorRoute>[];
138
+ readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
139
+ }): ToolProviderPolicyResolutionBundle;
140
+
141
+ declare function toolProviderRunAdmissionProjector(graph: Graph, opts: {
142
+ readonly name?: string;
143
+ readonly inputs: Node<ToolProviderAdapterInput>;
144
+ readonly runRequests: readonly Node<ToolProviderAdapterRunRequested>[];
145
+ readonly decisions?: readonly Node<ToolProviderRunAdmissionDecision>[];
146
+ readonly now?: () => number;
147
+ }): ToolProviderRunAdmissionBundle;
148
+
149
+ declare function toolProviderRunRetryProjector(graph: Graph, opts: {
150
+ readonly name?: string;
151
+ readonly inputs: Node<ToolProviderAdapterInput>;
152
+ readonly outcomes: Node<ExecutorOutcome>;
153
+ readonly policies?: readonly Node<ToolProviderRunRetryPolicy>[];
154
+ readonly nowMs?: Node<number>;
155
+ readonly readiness?: readonly Node<ScheduledReadinessReady>[];
156
+ }): ToolProviderRunRetryBundle;
9
157
 
10
158
  /**
11
- * Reusable application-infrastructure orchestration namespace.
159
+ * Graph-visible ProcessBundle orchestration helpers (D136/D156).
160
+ */
161
+
162
+ /**
163
+ * Build a D136 ProcessBundle from graph-visible command facts and a reducer.
12
164
  *
13
- * Retained root orchestration helpers land here only after B63 re-derives them
14
- * onto clean-slate graph surfaces.
165
+ * The bundle retains its runtime/projection nodes until `release()` is called.
166
+ * Reducer and validation failures are emitted as DATA error/status/audit facts;
167
+ * they do not mint protocol ERROR messages or own restore/hydration behavior.
15
168
  */
169
+ declare function processBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown>(graph: Graph, opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>): ProcessBundle<TCommand, TState, TEvent, TEffect>;
170
+ /**
171
+ * Build a D156 graph-visible effect runner adapter over a ProcessBundle.
172
+ *
173
+ * The runner consumes visible effect-request and outcome facts, then publishes
174
+ * ordinary ProcessCommand DATA facts back through process.command via a declared
175
+ * graph edge. Async handlers, timers, and process state ownership stay outside
176
+ * this helper.
177
+ */
178
+ declare function processEffectRunner<TEffect = unknown, TResult = unknown>(graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>): ProcessEffectRunnerBundle<TEffect, TResult>;
16
179
 
17
180
  type ResilienceEvent = {
18
181
  readonly kind: "attempt";
@@ -75,202 +238,6 @@ interface TimeoutBundle<T> {
75
238
  readonly status: Node<"running" | "completed" | "errored">;
76
239
  readonly errors: Node<unknown>;
77
240
  }
78
- /** D136 graph-visible process command fact. */
79
- interface ProcessCommand<T = unknown> {
80
- readonly id: string;
81
- readonly type: string;
82
- readonly payload: T;
83
- readonly processId?: string;
84
- readonly correlationId?: string;
85
- readonly causationId?: string;
86
- readonly metadata?: Record<string, unknown>;
87
- }
88
- /** Event draft returned by a ProcessBundle reducer before runtime ordering. */
89
- interface ProcessEventDraft<T = unknown> {
90
- readonly id?: string;
91
- readonly type: string;
92
- readonly payload: T;
93
- readonly processId?: string;
94
- readonly correlationId?: string;
95
- readonly causationId?: string;
96
- readonly metadata?: Record<string, unknown>;
97
- }
98
- /** Ordered process event fact. These are DATA facts, not protocol messages. */
99
- interface ProcessEvent<T = unknown> {
100
- readonly id: string;
101
- readonly type: string;
102
- readonly seq: number;
103
- readonly cursor: number;
104
- readonly commandId: string;
105
- readonly commandType: string;
106
- readonly payload: T;
107
- readonly timestampMs: number;
108
- readonly processId?: string;
109
- readonly correlationId?: string;
110
- readonly causationId?: string;
111
- readonly metadata?: Record<string, unknown>;
112
- }
113
- /** Effect-request draft emitted by a ProcessBundle reducer for visible effect runners. */
114
- interface ProcessEffectRequestDraft<T = unknown> {
115
- readonly id?: string;
116
- readonly type: string;
117
- readonly payload: T;
118
- readonly processId?: string;
119
- readonly correlationId?: string;
120
- readonly causationId?: string;
121
- readonly metadata?: Record<string, unknown>;
122
- }
123
- /** Ordered effect-request fact. Effect runners consume this node in later slices. */
124
- interface ProcessEffectRequest<T = unknown> {
125
- readonly id: string;
126
- readonly type: string;
127
- readonly seq: number;
128
- readonly cursor: number;
129
- readonly commandId: string;
130
- readonly commandType: string;
131
- readonly payload: T;
132
- readonly timestampMs: number;
133
- readonly processId?: string;
134
- readonly correlationId?: string;
135
- readonly causationId?: string;
136
- readonly metadata?: Record<string, unknown>;
137
- }
138
- type ProcessEffectCommandType = "effect.result" | "effect.failure" | "effect.cancel" | "effect.timeout";
139
- interface ProcessEffectOutcomeBase {
140
- readonly effectId: string;
141
- readonly effectType: string;
142
- readonly processId?: string;
143
- readonly correlationId?: string;
144
- readonly causationId?: string;
145
- readonly commandId?: string;
146
- readonly metadata?: Record<string, unknown>;
147
- }
148
- type ProcessEffectOutcome<TResult = unknown> = (ProcessEffectOutcomeBase & {
149
- readonly kind: "result";
150
- readonly value: TResult;
151
- }) | (ProcessEffectOutcomeBase & {
152
- readonly kind: "failure";
153
- readonly error: unknown;
154
- }) | (ProcessEffectOutcomeBase & {
155
- readonly kind: "cancel";
156
- readonly reason?: string;
157
- }) | (ProcessEffectOutcomeBase & {
158
- readonly kind: "timeout";
159
- readonly error: unknown;
160
- });
161
- type ProcessEffectCommandPayload<TResult = unknown> = (Omit<ProcessEffectOutcomeBase, "commandId"> & {
162
- readonly kind: "result";
163
- readonly value: TResult;
164
- }) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
165
- readonly kind: "failure";
166
- readonly error: unknown;
167
- }) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
168
- readonly kind: "cancel";
169
- readonly reason?: string;
170
- }) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
171
- readonly kind: "timeout";
172
- readonly error: unknown;
173
- });
174
- type ProcessErrorCode = "malformed-command" | "reducer-threw" | "clock-threw" | "malformed-state" | "malformed-event" | "malformed-effect";
175
- /** Graph-visible ProcessBundle error fact. These are DATA facts, not protocol ERROR. */
176
- interface ProcessError {
177
- readonly code: ProcessErrorCode;
178
- readonly message: string;
179
- readonly command?: unknown;
180
- readonly commandId?: string;
181
- readonly commandType?: string;
182
- readonly cursor: ProcessCursor;
183
- }
184
- /** Accepted/rejected command outcome projected from the ProcessBundle runtime. */
185
- interface ProcessStatus {
186
- readonly state: "accepted" | "rejected";
187
- readonly commandId?: string;
188
- readonly commandType?: string;
189
- readonly eventCount: number;
190
- readonly effectCount: number;
191
- readonly errorCode?: ProcessErrorCode;
192
- readonly cursor: ProcessCursor;
193
- }
194
- interface ProcessEffectRunnerStatus {
195
- readonly state: "requested" | "commanded" | "rejected";
196
- readonly effectId?: string;
197
- readonly effectType?: string;
198
- readonly commandId?: string;
199
- readonly commandType?: ProcessEffectCommandType;
200
- readonly requested: number;
201
- readonly commanded: number;
202
- readonly rejected: number;
203
- }
204
- interface ProcessEffectRunnerError {
205
- readonly code: "malformed-outcome";
206
- readonly message: string;
207
- readonly outcome?: unknown;
208
- readonly effectId?: string;
209
- readonly effectType?: string;
210
- }
211
- /** Ordered audit fact for one attempted command reduction. */
212
- interface ProcessAuditRecord {
213
- readonly seq: number;
214
- readonly commandId?: string;
215
- readonly commandType?: string;
216
- readonly outcome: "success" | "failure";
217
- readonly eventIds: readonly string[];
218
- readonly eventTypes: readonly string[];
219
- readonly effectIds: readonly string[];
220
- readonly effectTypes: readonly string[];
221
- readonly errorCode?: ProcessErrorCode;
222
- readonly errorMessage?: string;
223
- readonly cursor: ProcessCursor;
224
- }
225
- /** Monotonic graph-visible ProcessBundle cursor counters. */
226
- interface ProcessCursor {
227
- readonly eventSeq: number;
228
- readonly effectSeq: number;
229
- readonly commandCount: number;
230
- readonly errorCount: number;
231
- readonly auditSeq: number;
232
- }
233
- /** Reducer result: next process state plus optional event/effect-request drafts. */
234
- interface ProcessReduction<TState = unknown, TEvent = unknown, TEffect = unknown> {
235
- readonly state: TState;
236
- readonly events?: readonly ProcessEventDraft<TEvent>[];
237
- readonly effects?: readonly ProcessEffectRequestDraft<TEffect>[];
238
- }
239
- /** Sync ProcessBundle reducer. Async effects belong in graph-visible adapters, not here. */
240
- type ProcessReducer<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> = (command: ProcessCommand<TCommand>, state: TState) => ProcessReduction<TState, TEvent, TEffect>;
241
- /** Options for a D136 facts-plus-reducer ProcessBundle. */
242
- interface ProcessBundleOptions<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> {
243
- readonly name?: string;
244
- readonly initialState: TState;
245
- readonly reduce: ProcessReducer<TCommand, TState, TEvent, TEffect>;
246
- readonly now?: () => number;
247
- }
248
- /** D136 facts-plus-reducer process bundle. It is not a workflow engine or hidden runtime owner. */
249
- interface ProcessBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> {
250
- readonly command: Node<ProcessCommand<TCommand>>;
251
- readonly events: Node<ProcessEvent<TEvent>>;
252
- readonly state: Node<TState>;
253
- readonly audit: Node<ProcessAuditRecord>;
254
- readonly effectRequests: Node<ProcessEffectRequest<TEffect>>;
255
- readonly status: Node<ProcessStatus>;
256
- readonly errors: Node<ProcessError>;
257
- readonly cursor: Node<ProcessCursor>;
258
- dispatch(command: ProcessCommand<TCommand>): ProcessCommand<TCommand>;
259
- /** Release only graph-owned retain roots; process facts/topology/cache/state remain ordinary graph data. */
260
- release(): void;
261
- }
262
- interface ProcessEffectRunnerOptions<TResult = unknown> {
263
- readonly name?: string;
264
- readonly outcomes: readonly Node<ProcessEffectOutcome<TResult>>[];
265
- }
266
- interface ProcessEffectRunnerBundle<TEffect = unknown, TResult = unknown> {
267
- readonly requests: Node<ProcessEffectRequest<TEffect>>;
268
- readonly outcomes: Node<ProcessEffectOutcome<TResult>>;
269
- readonly commands: Node<ProcessCommand<ProcessEffectCommandPayload<TResult>>>;
270
- readonly status: Node<ProcessEffectRunnerStatus>;
271
- readonly errors: Node<ProcessEffectRunnerError>;
272
- release(): void;
273
- }
274
241
  declare function retryStatusBundle(graph: Graph, events: Node<ResilienceEvent>, opts?: {
275
242
  name?: string;
276
243
  policy?: RetryPolicy;
@@ -280,23 +247,6 @@ declare function rateLimitBundle<T>(graph: Graph, source: Node<T>, opts: RateLim
280
247
  declare function timeoutBundle<T>(graph: Graph, source: Node<T>, ms: number, opts?: {
281
248
  name?: string;
282
249
  }): TimeoutBundle<T>;
283
- /**
284
- * Build a D136 ProcessBundle from graph-visible command facts and a reducer.
285
- *
286
- * The bundle retains its runtime/projection nodes until `release()` is called.
287
- * Reducer and validation failures are emitted as DATA error/status/audit facts;
288
- * they do not mint protocol ERROR messages or own restore/hydration behavior.
289
- */
290
- declare function processBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown>(graph: Graph, opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>): ProcessBundle<TCommand, TState, TEvent, TEffect>;
291
- /**
292
- * Build a D156 graph-visible effect runner adapter over a ProcessBundle.
293
- *
294
- * The runner consumes visible effect-request and outcome facts, then publishes
295
- * ordinary ProcessCommand DATA facts back through process.command via a declared
296
- * graph edge. Async handlers, timers, and process state ownership stay outside
297
- * this helper.
298
- */
299
- declare function processEffectRunner<TEffect = unknown, TResult = unknown>(graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>): ProcessEffectRunnerBundle<TEffect, TResult>;
300
250
  declare function constantBackoff(delayMs: number): BackoffPolicy;
301
251
 
302
- export { BackoffPolicy, type BreakerBundle, type BreakerOptions, type BreakerStatus, type ProcessAuditRecord, type ProcessBundle, type ProcessBundleOptions, type ProcessCommand, type ProcessCursor, type ProcessEffectCommandPayload, type ProcessEffectCommandType, type ProcessEffectOutcome, type ProcessEffectRequest, type ProcessEffectRequestDraft, type ProcessEffectRunnerBundle, type ProcessEffectRunnerError, type ProcessEffectRunnerOptions, type ProcessEffectRunnerStatus, type ProcessError, type ProcessErrorCode, type ProcessEvent, type ProcessEventDraft, type ProcessReducer, type ProcessReduction, type ProcessStatus, type RateLimitBundle, type RateLimitOptions, type RateLimitStatus, type ResilienceEvent, RetryPolicy, RetryStatus, type RetryStatusBundle, type TimeoutBundle, breakerBundle, constantBackoff, processBundle, processEffectRunner, rateLimitBundle, retryStatusBundle, timeoutBundle };
252
+ export { AgentDecision, AgentDecisionContinue, AgentNeed, AgentOutputEnvelope, AgentRequestAdmitted, AgentRequestFact, AgentRequestIssued, AgentRequestLedgerBundle, AgentRequestProposal, AgentRequestSatisfactionBundle, AgentRequestStatusChanged, BackoffPolicy, type BreakerBundle, type BreakerOptions, type BreakerStatus, ContextContribution, EffectRun, EffectRunCompletionBundle, EffectRunResult, ExecutorOutcome, ExecutorOutcomeBase, ExecutorOutcomeViewBundle, ExecutorOutcomeViewPolicy, ExecutorProfile, ExecutorRoute, LocalBuiltinToolProviderCatalogOptions, ProcessBundle, ProcessBundleOptions, ProcessEffectRunnerBundle, ProcessEffectRunnerOptions, PromptBundle, type RateLimitBundle, type RateLimitOptions, type RateLimitStatus, type ResilienceEvent, RetryPolicy, RetryStatus, type RetryStatusBundle, ScheduledReadinessReady, SourceRef, StructuredAgentDecisionInterpreterBundle, type TimeoutBundle, ToolProviderAdapterInput, ToolProviderAdapterInputBundle, ToolProviderAdapterRunBundle, ToolProviderAdapterRunReason, ToolProviderAdapterRunRequested, ToolProviderCatalog, ToolProviderPolicyResolution, ToolProviderPolicyResolutionBundle, ToolProviderPublicTextPolicy, ToolProviderRunAdmissionBundle, ToolProviderRunAdmissionDecision, ToolProviderRunRetryBundle, ToolProviderRunRetryPolicy, admitAgentRequestProposal, agentRequestLedgerViews, agentRequestProposalFromDecision, breakerBundle, buildToolProviderAdapterInputs, buildToolProviderExecutorOutcome, constantBackoff, effectRunCompletionProjector, executorOutcomeViewProjector, fakeExecutorBlocked, fakeExecutorCanceled, fakeExecutorFailure, fakeExecutorResult, fakeExecutorTimeout, issueAgentRequest, localBuiltinToolProviderCatalog, processBundle, processEffectRunner, rateLimitBundle, requestSatisfactionProjector, requestToolProviderAdapterRun, resolveToolProviderExecutionPolicies, retryStatusBundle, structuredAgentDecisionInterpreter, timeoutBundle, toolProviderAdapterInputProjector, toolProviderAdapterRunProjector, toolProviderPolicyResolutionProjector, toolProviderRunAdmissionProjector, toolProviderRunRetryProjector, validateToolProviderExecutionPolicy };