@graphrefly/ts 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/README.md +197 -117
  2. package/dist/actions-types-CH-XCU9O.d.cts +657 -0
  3. package/dist/actions-types-w2iPQTkv.d.ts +657 -0
  4. package/dist/adapters/index.cjs +5157 -2951
  5. package/dist/adapters/index.cjs.map +1 -1
  6. package/dist/adapters/index.d.cts +207 -70
  7. package/dist/adapters/index.d.ts +207 -70
  8. package/dist/adapters/index.js +3738 -1688
  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 +3 -3
  35. package/dist/adapters/observe-storage.d.ts +3 -3
  36. package/dist/adapters/observe-storage.js +4 -4
  37. package/dist/adapters/react.cjs.map +1 -1
  38. package/dist/adapters/react.d.cts +2 -2
  39. package/dist/adapters/react.d.ts +2 -2
  40. package/dist/adapters/react.js +1 -1
  41. package/dist/adapters/solid.cjs.map +1 -1
  42. package/dist/adapters/solid.d.cts +2 -2
  43. package/dist/adapters/solid.d.ts +2 -2
  44. package/dist/adapters/solid.js +1 -1
  45. package/dist/adapters/svelte.cjs.map +1 -1
  46. package/dist/adapters/svelte.d.cts +2 -2
  47. package/dist/adapters/svelte.d.ts +2 -2
  48. package/dist/adapters/svelte.js +1 -1
  49. package/dist/adapters/vue.cjs.map +1 -1
  50. package/dist/adapters/vue.d.cts +2 -2
  51. package/dist/adapters/vue.d.ts +2 -2
  52. package/dist/adapters/vue.js +1 -1
  53. package/dist/{agent-runtime-BesGDZcB.d.ts → agent-runtime-types-core-CKwrBDyi.d.ts} +171 -320
  54. package/dist/{agent-runtime-DZTJ3C-p.d.cts → agent-runtime-types-core-bfl4m0vM.d.cts} +171 -320
  55. package/dist/agent-runtime-types-tool-BLPV3azj.d.cts +695 -0
  56. package/dist/agent-runtime-types-tool-hwqvVqNt.d.ts +695 -0
  57. package/dist/agentic-memory-retention-CLwI76JK.d.ts +14 -0
  58. package/dist/agentic-memory-retention-Cz8GR6ie.d.cts +14 -0
  59. package/dist/{agentic-memory-DfuVZ-lY.d.cts → agentic-memory-types-JDr7MPhh.d.cts} +13 -57
  60. package/dist/{agentic-memory-BmRCvh0d.d.ts → agentic-memory-types-khYJgzKL.d.ts} +13 -57
  61. package/dist/{capability-admission-B0BzqAm5.d.cts → capability-admission-B8RNFyaZ.d.cts} +3 -3
  62. package/dist/{capability-admission-g0mn9hpq.d.ts → capability-admission-Dkw1Xz3r.d.ts} +3 -3
  63. package/dist/chunk-2KUAG2GZ.js +9693 -0
  64. package/dist/chunk-2KUAG2GZ.js.map +1 -0
  65. package/dist/{chunk-CZNV3VXM.js → chunk-3J7UPZL5.js} +11 -11
  66. package/dist/{chunk-HKK2JD7Z.js → chunk-3LYI6ADX.js} +12 -125
  67. package/dist/chunk-3LYI6ADX.js.map +1 -0
  68. package/dist/{chunk-YXMZ2N6J.js → chunk-4M37FH2I.js} +1071 -1025
  69. package/dist/chunk-4M37FH2I.js.map +1 -0
  70. package/dist/{chunk-YDSIVHRR.js → chunk-4NWSNI4K.js} +1598 -1584
  71. package/dist/chunk-4NWSNI4K.js.map +1 -0
  72. package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
  73. package/dist/{chunk-SS2A464I.js → chunk-54WPEODM.js} +3 -3
  74. package/dist/chunk-54WPEODM.js.map +1 -0
  75. package/dist/chunk-6E76H4OU.js +132 -0
  76. package/dist/chunk-6E76H4OU.js.map +1 -0
  77. package/dist/chunk-7GOTIIQ7.js +819 -0
  78. package/dist/chunk-7GOTIIQ7.js.map +1 -0
  79. package/dist/{chunk-V7CIJE4B.js → chunk-DKFWDTVY.js} +92 -9
  80. package/dist/chunk-DKFWDTVY.js.map +1 -0
  81. package/dist/{chunk-FBUU43PM.js → chunk-E4QCH32M.js} +448 -446
  82. package/dist/chunk-E4QCH32M.js.map +1 -0
  83. package/dist/{chunk-XKXWK2KP.js → chunk-GXU6WFEJ.js} +1157 -1021
  84. package/dist/chunk-GXU6WFEJ.js.map +1 -0
  85. package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
  86. package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
  87. package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
  88. package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
  89. package/dist/chunk-K7FB3JTD.js.map +1 -0
  90. package/dist/{chunk-43BKLFZU.js → chunk-KFURM6FM.js} +10 -10
  91. package/dist/{chunk-H75VXTGT.js → chunk-L6LDXRWE.js} +3 -3
  92. package/dist/{chunk-H75VXTGT.js.map → chunk-L6LDXRWE.js.map} +1 -1
  93. package/dist/chunk-MCOFHMUU.js +4131 -0
  94. package/dist/chunk-MCOFHMUU.js.map +1 -0
  95. package/dist/chunk-MQEQMS7B.js +1009 -0
  96. package/dist/chunk-MQEQMS7B.js.map +1 -0
  97. package/dist/chunk-MTELVIYR.js +1421 -0
  98. package/dist/chunk-MTELVIYR.js.map +1 -0
  99. package/dist/{chunk-3JR3EDB2.js → chunk-NNDIFUKX.js} +121 -115
  100. package/dist/chunk-NNDIFUKX.js.map +1 -0
  101. package/dist/{chunk-2747WN4Y.js → chunk-PUSRRALM.js} +3 -3
  102. package/dist/{chunk-QFY4AFY4.js → chunk-PVC7WDKI.js} +58 -52
  103. package/dist/chunk-PVC7WDKI.js.map +1 -0
  104. package/dist/{chunk-VTHLCFN4.js → chunk-RAHNUYA5.js} +2 -2
  105. package/dist/chunk-TQPCAIQI.js +612 -0
  106. package/dist/chunk-TQPCAIQI.js.map +1 -0
  107. package/dist/{chunk-IXZBUWSP.js → chunk-UEMN5URK.js} +2 -2
  108. package/dist/chunk-WOS7RJYZ.js +1320 -0
  109. package/dist/chunk-WOS7RJYZ.js.map +1 -0
  110. package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
  111. package/dist/composition/index.cjs +1228 -1076
  112. package/dist/composition/index.cjs.map +1 -1
  113. package/dist/composition/index.d.cts +3 -3
  114. package/dist/composition/index.d.ts +3 -3
  115. package/dist/composition/index.js +4 -4
  116. package/dist/core/index.cjs +1198 -1046
  117. package/dist/core/index.cjs.map +1 -1
  118. package/dist/core/index.d.cts +23 -2
  119. package/dist/core/index.d.ts +23 -2
  120. package/dist/core/index.js +2 -2
  121. package/dist/cqrs/index.d.cts +3 -3
  122. package/dist/cqrs/index.d.ts +3 -3
  123. package/dist/cqrs/messaging.d.cts +4 -4
  124. package/dist/cqrs/messaging.d.ts +4 -4
  125. package/dist/cqrs/work-queue.d.cts +5 -5
  126. package/dist/cqrs/work-queue.d.ts +5 -5
  127. package/dist/data-structures/index.cjs +1226 -1074
  128. package/dist/data-structures/index.cjs.map +1 -1
  129. package/dist/data-structures/index.d.cts +8 -7
  130. package/dist/data-structures/index.d.ts +8 -7
  131. package/dist/data-structures/index.js +6 -5
  132. package/dist/{describe-DYMw_l1C.d.cts → describe-BumQ-3_0.d.cts} +1 -1
  133. package/dist/{describe-BpyJuWkw.d.ts → describe-cYr_Z5zm.d.ts} +1 -1
  134. package/dist/executors/tool-provider-adapters.cjs +3091 -0
  135. package/dist/executors/tool-provider-adapters.cjs.map +1 -0
  136. package/dist/executors/tool-provider-adapters.d.cts +174 -0
  137. package/dist/executors/tool-provider-adapters.d.ts +174 -0
  138. package/dist/executors/tool-provider-adapters.js +1336 -0
  139. package/dist/executors/tool-provider-adapters.js.map +1 -0
  140. package/dist/executors/tool-provider-runtime.cjs +5178 -0
  141. package/dist/executors/tool-provider-runtime.cjs.map +1 -0
  142. package/dist/executors/tool-provider-runtime.d.cts +17 -0
  143. package/dist/executors/tool-provider-runtime.d.ts +17 -0
  144. package/dist/executors/tool-provider-runtime.js +15 -0
  145. package/dist/executors/tool-provider-runtime.js.map +1 -0
  146. package/dist/executors/tool-provider.cjs +6392 -0
  147. package/dist/executors/tool-provider.cjs.map +1 -0
  148. package/dist/executors/tool-provider.d.cts +60 -0
  149. package/dist/executors/tool-provider.d.ts +60 -0
  150. package/dist/executors/tool-provider.js +89 -0
  151. package/dist/executors/tool-provider.js.map +1 -0
  152. package/dist/executors/work-queue.d.cts +6 -6
  153. package/dist/executors/work-queue.d.ts +6 -6
  154. package/dist/graph/index.cjs +1499 -1341
  155. package/dist/graph/index.cjs.map +1 -1
  156. package/dist/graph/index.d.cts +9 -8
  157. package/dist/graph/index.d.ts +9 -8
  158. package/dist/graph/index.js +23 -22
  159. package/dist/{graph-DCEWh4T2.d.cts → graph-C1C-wb0L.d.cts} +266 -137
  160. package/dist/{graph-D-1-SQeC.d.ts → graph-CS0b4V9B.d.ts} +266 -137
  161. package/dist/{index-72VZC0-E.d.cts → index-DLrNopda.d.cts} +151 -10
  162. package/dist/{index-Bmxeu0nK.d.ts → index-DzJni3_6.d.ts} +151 -10
  163. package/dist/index.cjs +3397 -3140
  164. package/dist/index.cjs.map +1 -1
  165. package/dist/index.d.cts +12 -9
  166. package/dist/index.d.ts +12 -9
  167. package/dist/index.js +110 -109
  168. package/dist/inspection/boundary.d.cts +4 -4
  169. package/dist/inspection/boundary.d.ts +4 -4
  170. package/dist/measurements-BWAnochv.d.ts +294 -0
  171. package/dist/measurements-B_gJfD8h.d.cts +294 -0
  172. package/dist/messaging/index.cjs +57 -51
  173. package/dist/messaging/index.cjs.map +1 -1
  174. package/dist/messaging/index.d.cts +11 -276
  175. package/dist/messaging/index.d.ts +11 -276
  176. package/dist/messaging/index.js +1 -1
  177. package/dist/operators/index.cjs +1228 -1076
  178. package/dist/operators/index.cjs.map +1 -1
  179. package/dist/operators/index.d.cts +5 -5
  180. package/dist/operators/index.d.ts +5 -5
  181. package/dist/operators/index.js +5 -5
  182. package/dist/orchestration/index.cjs +8844 -6071
  183. package/dist/orchestration/index.cjs.map +1 -1
  184. package/dist/orchestration/index.d.cts +171 -224
  185. package/dist/orchestration/index.d.ts +171 -224
  186. package/dist/orchestration/index.js +42 -991
  187. package/dist/orchestration/index.js.map +1 -1
  188. package/dist/orchestration/messaging.d.cts +5 -8
  189. package/dist/orchestration/messaging.d.ts +5 -8
  190. package/dist/orchestration/work-queue.cjs +1243 -5
  191. package/dist/orchestration/work-queue.cjs.map +1 -1
  192. package/dist/orchestration/work-queue.d.cts +121 -10
  193. package/dist/orchestration/work-queue.d.ts +121 -10
  194. package/dist/orchestration/work-queue.js +1067 -4
  195. package/dist/orchestration/work-queue.js.map +1 -1
  196. package/dist/patterns/event-flow.cjs +6 -20
  197. package/dist/patterns/event-flow.cjs.map +1 -1
  198. package/dist/patterns/event-flow.d.cts +4 -4
  199. package/dist/patterns/event-flow.d.ts +4 -4
  200. package/dist/patterns/event-flow.js +2 -2
  201. package/dist/patterns/index.cjs +453 -465
  202. package/dist/patterns/index.cjs.map +1 -1
  203. package/dist/patterns/index.d.cts +6 -5
  204. package/dist/patterns/index.d.ts +6 -5
  205. package/dist/patterns/index.js +3 -3
  206. package/dist/process-types-BB7oRhX3.d.cts +200 -0
  207. package/dist/process-types-QNhyoYJ8.d.ts +200 -0
  208. package/dist/{reactive-collection-DNV0-gFi.d.cts → reactive-collection-BYlWvtnp.d.cts} +4 -34
  209. package/dist/{reactive-collection-BAmfrGjd.d.ts → reactive-collection-efOEdGFN.d.ts} +4 -34
  210. package/dist/{reactive-collection-storage-BNEldDyi.d.cts → reactive-collection-storage-BjoLsoiC.d.cts} +5 -5
  211. package/dist/{reactive-collection-storage-YZsAQsWK.d.ts → reactive-collection-storage-DwW6UuK_.d.ts} +5 -5
  212. package/dist/{reactive-map-DRD1LJ2H.d.cts → reactive-map-BHacbIqz.d.cts} +7 -2
  213. package/dist/{reactive-map-EsDiCmJk.d.ts → reactive-map-DN4Jyqnf.d.ts} +7 -2
  214. package/dist/render/index.d.cts +2 -2
  215. package/dist/render/index.d.ts +2 -2
  216. package/dist/scheduled-readiness-BmqXxnzX.d.ts +91 -0
  217. package/dist/scheduled-readiness-CYSw7KDE.d.cts +91 -0
  218. package/dist/semantic-memory-graph-B_LwbM-E.d.cts +30 -0
  219. package/dist/semantic-memory-graph-rsFNNhwn.d.ts +30 -0
  220. package/dist/{semantic-memory-graph-DKuNzuWw.d.cts → semantic-memory-graph-types-Y73bbwVI.d.cts} +2 -28
  221. package/dist/{semantic-memory-graph-uwbwJdhe.d.ts → semantic-memory-graph-types-safmPkuX.d.ts} +2 -28
  222. package/dist/solutions/index.cjs +6353 -6169
  223. package/dist/solutions/index.cjs.map +1 -1
  224. package/dist/solutions/index.d.cts +12 -10
  225. package/dist/solutions/index.d.ts +12 -10
  226. package/dist/solutions/index.js +5 -5
  227. package/dist/solutions/reactive-layout/browser/index.cjs +116 -108
  228. package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
  229. package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
  230. package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
  231. package/dist/solutions/reactive-layout/browser/index.js +3 -3
  232. package/dist/solutions/reactive-layout/index.cjs +3578 -3350
  233. package/dist/solutions/reactive-layout/index.cjs.map +1 -1
  234. package/dist/solutions/reactive-layout/index.d.cts +32 -576
  235. package/dist/solutions/reactive-layout/index.d.ts +32 -576
  236. package/dist/solutions/reactive-layout/index.js +65 -5
  237. package/dist/solutions/reactive-layout/node-canvas/index.cjs +127 -117
  238. package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
  239. package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
  240. package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
  241. package/dist/solutions/reactive-layout/node-canvas/index.js +3 -3
  242. package/dist/solutions/reactive-layout/react-native/index.cjs +127 -117
  243. package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
  244. package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
  245. package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
  246. package/dist/solutions/reactive-layout/react-native/index.js +3 -3
  247. package/dist/solutions/reactive-layout/skia/index.cjs +127 -117
  248. package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
  249. package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
  250. package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
  251. package/dist/solutions/reactive-layout/skia/index.js +3 -3
  252. package/dist/solutions/work-item/actions.cjs +1609 -1428
  253. package/dist/solutions/work-item/actions.cjs.map +1 -1
  254. package/dist/solutions/work-item/actions.d.cts +23 -184
  255. package/dist/solutions/work-item/actions.d.ts +23 -184
  256. package/dist/solutions/work-item/actions.js +1558 -934
  257. package/dist/solutions/work-item/actions.js.map +1 -1
  258. package/dist/solutions/work-item/scheduling.cjs +9181 -1838
  259. package/dist/solutions/work-item/scheduling.cjs.map +1 -1
  260. package/dist/solutions/work-item/scheduling.d.cts +1763 -328
  261. package/dist/solutions/work-item/scheduling.d.ts +1763 -328
  262. package/dist/solutions/work-item/scheduling.js +117 -3
  263. package/dist/solutions/work-item/work-queue.d.cts +7 -7
  264. package/dist/solutions/work-item/work-queue.d.ts +7 -7
  265. package/dist/sources/browser.cjs +1318 -1083
  266. package/dist/sources/browser.cjs.map +1 -1
  267. package/dist/sources/browser.d.cts +22 -6
  268. package/dist/sources/browser.d.ts +22 -6
  269. package/dist/sources/browser.js +4 -4
  270. package/dist/sources/browser.js.map +1 -1
  271. package/dist/sources/index.cjs +1318 -1083
  272. package/dist/sources/index.cjs.map +1 -1
  273. package/dist/sources/index.d.cts +4 -4
  274. package/dist/sources/index.d.ts +4 -4
  275. package/dist/sources/index.js +4 -4
  276. package/dist/sources/node.d.cts +3 -3
  277. package/dist/sources/node.d.ts +3 -3
  278. package/dist/storage/browser.cjs +16 -0
  279. package/dist/storage/browser.cjs.map +1 -1
  280. package/dist/storage/browser.js +3 -3
  281. package/dist/storage/index.cjs +16 -0
  282. package/dist/storage/index.cjs.map +1 -1
  283. package/dist/storage/index.d.cts +5 -4
  284. package/dist/storage/index.d.ts +5 -4
  285. package/dist/storage/index.js +6 -6
  286. package/dist/storage/node.cjs +16 -0
  287. package/dist/storage/node.cjs.map +1 -1
  288. package/dist/storage/node.js +3 -3
  289. package/dist/{store-C-joM4gh.d.ts → store-6_CHF6Ge.d.ts} +1 -1
  290. package/dist/{store-CNJwmT-h.d.cts → store-BljX8RkQ.d.cts} +1 -1
  291. package/dist/types-BAw2QVVE.d.cts +274 -0
  292. package/dist/types-BUbbbh4f.d.cts +34 -0
  293. package/dist/types-CMnzoL54.d.cts +457 -0
  294. package/dist/{types-CcPIn7sy.d.cts → types-CTN3XoMl.d.cts} +57 -108
  295. package/dist/types-CV_ohy5T.d.cts +357 -0
  296. package/dist/{types-BsJvElYZ.d.ts → types-DChxk1vK.d.ts} +57 -108
  297. package/dist/types-DRu7SnLV.d.ts +274 -0
  298. package/dist/types-DeID_FRl.d.ts +34 -0
  299. package/dist/types-IhKH0hGW.d.ts +357 -0
  300. package/dist/types-ePlD2uyT.d.ts +457 -0
  301. package/dist/{work-item-runtime-qaVgsL0T.d.cts → work-item-runtime-types-BTxLskN5.d.cts} +3 -93
  302. package/dist/{work-item-runtime-C3M79vE9.d.ts → work-item-runtime-types-DAsZbb2y.d.ts} +3 -93
  303. package/dist/work-queue/index.cjs +957 -953
  304. package/dist/work-queue/index.cjs.map +1 -1
  305. package/dist/work-queue/index.d.cts +9 -357
  306. package/dist/work-queue/index.d.ts +9 -357
  307. package/dist/work-queue/index.js +957 -953
  308. package/dist/work-queue/index.js.map +1 -1
  309. package/package.json +611 -513
  310. package/dist/chunk-3JR3EDB2.js.map +0 -1
  311. package/dist/chunk-4VLAQHZI.js.map +0 -1
  312. package/dist/chunk-6XAIOL3X.js +0 -2407
  313. package/dist/chunk-6XAIOL3X.js.map +0 -1
  314. package/dist/chunk-FBUU43PM.js.map +0 -1
  315. package/dist/chunk-HKK2JD7Z.js.map +0 -1
  316. package/dist/chunk-PC3BTTBE.js +0 -3217
  317. package/dist/chunk-PC3BTTBE.js.map +0 -1
  318. package/dist/chunk-QFY4AFY4.js.map +0 -1
  319. package/dist/chunk-SS2A464I.js.map +0 -1
  320. package/dist/chunk-V7CIJE4B.js.map +0 -1
  321. package/dist/chunk-XKXWK2KP.js.map +0 -1
  322. package/dist/chunk-YDSIVHRR.js.map +0 -1
  323. package/dist/chunk-YXMZ2N6J.js.map +0 -1
  324. /package/dist/{chunk-CZNV3VXM.js.map → chunk-3J7UPZL5.js.map} +0 -0
  325. /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
  326. /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
  327. /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
  328. /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
  329. /package/dist/{chunk-43BKLFZU.js.map → chunk-KFURM6FM.js.map} +0 -0
  330. /package/dist/{chunk-2747WN4Y.js.map → chunk-PUSRRALM.js.map} +0 -0
  331. /package/dist/{chunk-VTHLCFN4.js.map → chunk-RAHNUYA5.js.map} +0 -0
  332. /package/dist/{chunk-IXZBUWSP.js.map → chunk-UEMN5URK.js.map} +0 -0
  333. /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
@@ -1,21 +1,181 @@
1
- import { d as Graph } from '../graph-D-1-SQeC.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-BsJvElYZ.js';
5
- export { a as AgentDecision, b as AgentDecisionBase, c as AgentDecisionBlocked, d as AgentDecisionContinue, e as AgentDecisionFinal, f as AgentDecisionKind, g as AgentNeed, h as AgentOutputEnvelope, i as AgentRequestAdmitted, j as AgentRequestDeferred, k as AgentRequestFact, l as AgentRequestInput, A as AgentRequestIssued, m as AgentRequestKind, n as AgentRequestLedgerBundle, o as AgentRequestMerged, p as AgentRequestProposal, q as AgentRequestRejected, r as AgentRequestSatisfactionBundle, s as AgentRequestStatus, t as AgentRequestStatusChanged, u as AgentRequestViews, v as AgentRuntimeAuditRecord, C as ContextContribution, w as EffectRun, x as EffectRunCompletionBundle, y as EffectRunCompletionStatus, z as EffectRunGoal, B as EffectRunLimits, D as EffectRunOptions, F as EffectRunResult, G as EffectRunResultBase, H as EffectRunResultStatus, E as ExecutorOutcome, I as ExecutorOutcomeBase, J as ExecutorOutcomeStatus, K as ExecutorOutcomeView, L as ExecutorOutcomeViewAudience, M as ExecutorOutcomeViewBundle, N as ExecutorOutcomeViewPolicy, O as ExecutorProfile, P as ExecutorRoute, Q as ExecutorUsage, R as LocalBuiltinToolProviderCatalogOptions, T as PromptBundle, S as SourceRef, U as StructuredAgentDecisionEnvelope, V as StructuredAgentDecisionInterpreterBundle, W as ToolCallInput, X as ToolProviderCatalog, Y as ToolProviderCatalogEntry, Z as ToolProviderKind, _ as admitAgentRequestProposal, $ as agentRequestLedgerViews, a0 as agentRequestProposalFromDecision, a1 as effectRun, a2 as effectRunCompletionProjector, a3 as executorOutcomeViewProjector, a4 as fakeExecutorBlocked, a5 as fakeExecutorCanceled, a6 as fakeExecutorFailure, a7 as fakeExecutorResult, a8 as fakeExecutorTimeout, a9 as issueAgentRequest, aa as localBuiltinToolProviderCatalog, ab as requestSatisfactionProjector, ac as structuredAgentDecisionInterpreter } from '../agent-runtime-BesGDZcB.js';
6
- export { W as WorkItemDomainActionAdmission, a as WorkItemDomainActionAdmissionBundle, b as WorkItemDomainActionAdmissionDecision, c as WorkItemDomainActionAdmissionOutcome, d as WorkItemDomainActionAdmissionPolicy, e as WorkItemDomainActionAdmissionState, f as WorkItemDomainActionAdmissionViews, g as WorkItemDomainActionProposal, h as WorkItemDomainActionProposalBundle, i as WorkItemDomainActionProposalPayloadFrom, j as WorkItemDomainActionProposalSpec, k as WorkItemDomainActionProposalViews, l as WorkItemEffectMappingPolicy, m as WorkItemEffectRequestViews, n as WorkItemEffectRequested, o as WorkItemEffectRunBundle, p as WorkItemEvidenceMapperBundle, q as WorkItemEvidenceRecorded, r as WorkItemEvidenceViews, s as WorkItemSeed, t as WorkItemStatusRecord, w as workItemDomainActionAdmissionProjector, u as workItemDomainActionProposalProjector, v as workItemEffectResultMapper, x as workItemEffectRunProjector } from '../work-item-runtime-C3M79vE9.js';
7
- import '../core/index.js';
3
+ import { N as Node } from '../types-DChxk1vK.js';
4
+ import { d as Graph } from '../graph-CS0b4V9B.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-CKwrBDyi.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-CKwrBDyi.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-hwqvVqNt.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-hwqvVqNt.js';
9
+ import { DataIssue } from '../data/index.js';
10
+ import { a as ScheduledReadinessReady } from '../scheduled-readiness-BmqXxnzX.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-BmqXxnzX.js';
12
+ import { d as ProcessBundleOptions, e as ProcessBundle, f as ProcessEffectRunnerOptions, g as ProcessEffectRunnerBundle } from '../process-types-QNhyoYJ8.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-QNhyoYJ8.js';
8
14
  import '../messages-CAzUPPJM.js';
15
+ import '../core/index.js';
9
16
  import '../codec-BB7p8fJc.js';
10
- import '../describe-BpyJuWkw.js';
11
- import '../data/index.js';
17
+ import '../describe-cYr_Z5zm.js';
18
+ import '../types-DeID_FRl.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;
12
157
 
13
158
  /**
14
- * 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.
15
164
  *
16
- * Retained root orchestration helpers land here only after B63 re-derives them
17
- * 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.
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.
18
177
  */
178
+ declare function processEffectRunner<TEffect = unknown, TResult = unknown>(graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>): ProcessEffectRunnerBundle<TEffect, TResult>;
19
179
 
20
180
  type ResilienceEvent = {
21
181
  readonly kind: "attempt";
@@ -78,202 +238,6 @@ interface TimeoutBundle<T> {
78
238
  readonly status: Node<"running" | "completed" | "errored">;
79
239
  readonly errors: Node<unknown>;
80
240
  }
81
- /** D136 graph-visible process command fact. */
82
- interface ProcessCommand<T = unknown> {
83
- readonly id: string;
84
- readonly type: string;
85
- readonly payload: T;
86
- readonly processId?: string;
87
- readonly correlationId?: string;
88
- readonly causationId?: string;
89
- readonly metadata?: Record<string, unknown>;
90
- }
91
- /** Event draft returned by a ProcessBundle reducer before runtime ordering. */
92
- interface ProcessEventDraft<T = unknown> {
93
- readonly id?: string;
94
- readonly type: string;
95
- readonly payload: T;
96
- readonly processId?: string;
97
- readonly correlationId?: string;
98
- readonly causationId?: string;
99
- readonly metadata?: Record<string, unknown>;
100
- }
101
- /** Ordered process event fact. These are DATA facts, not protocol messages. */
102
- interface ProcessEvent<T = unknown> {
103
- readonly id: string;
104
- readonly type: string;
105
- readonly seq: number;
106
- readonly cursor: number;
107
- readonly commandId: string;
108
- readonly commandType: string;
109
- readonly payload: T;
110
- readonly timestampMs: number;
111
- readonly processId?: string;
112
- readonly correlationId?: string;
113
- readonly causationId?: string;
114
- readonly metadata?: Record<string, unknown>;
115
- }
116
- /** Effect-request draft emitted by a ProcessBundle reducer for visible effect runners. */
117
- interface ProcessEffectRequestDraft<T = unknown> {
118
- readonly id?: string;
119
- readonly type: string;
120
- readonly payload: T;
121
- readonly processId?: string;
122
- readonly correlationId?: string;
123
- readonly causationId?: string;
124
- readonly metadata?: Record<string, unknown>;
125
- }
126
- /** Ordered effect-request fact. Effect runners consume this node in later slices. */
127
- interface ProcessEffectRequest<T = unknown> {
128
- readonly id: string;
129
- readonly type: string;
130
- readonly seq: number;
131
- readonly cursor: number;
132
- readonly commandId: string;
133
- readonly commandType: string;
134
- readonly payload: T;
135
- readonly timestampMs: number;
136
- readonly processId?: string;
137
- readonly correlationId?: string;
138
- readonly causationId?: string;
139
- readonly metadata?: Record<string, unknown>;
140
- }
141
- type ProcessEffectCommandType = "effect.result" | "effect.failure" | "effect.cancel" | "effect.timeout";
142
- interface ProcessEffectOutcomeBase {
143
- readonly effectId: string;
144
- readonly effectType: string;
145
- readonly processId?: string;
146
- readonly correlationId?: string;
147
- readonly causationId?: string;
148
- readonly commandId?: string;
149
- readonly metadata?: Record<string, unknown>;
150
- }
151
- type ProcessEffectOutcome<TResult = unknown> = (ProcessEffectOutcomeBase & {
152
- readonly kind: "result";
153
- readonly value: TResult;
154
- }) | (ProcessEffectOutcomeBase & {
155
- readonly kind: "failure";
156
- readonly error: unknown;
157
- }) | (ProcessEffectOutcomeBase & {
158
- readonly kind: "cancel";
159
- readonly reason?: string;
160
- }) | (ProcessEffectOutcomeBase & {
161
- readonly kind: "timeout";
162
- readonly error: unknown;
163
- });
164
- type ProcessEffectCommandPayload<TResult = unknown> = (Omit<ProcessEffectOutcomeBase, "commandId"> & {
165
- readonly kind: "result";
166
- readonly value: TResult;
167
- }) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
168
- readonly kind: "failure";
169
- readonly error: unknown;
170
- }) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
171
- readonly kind: "cancel";
172
- readonly reason?: string;
173
- }) | (Omit<ProcessEffectOutcomeBase, "commandId"> & {
174
- readonly kind: "timeout";
175
- readonly error: unknown;
176
- });
177
- type ProcessErrorCode = "malformed-command" | "reducer-threw" | "clock-threw" | "malformed-state" | "malformed-event" | "malformed-effect";
178
- /** Graph-visible ProcessBundle error fact. These are DATA facts, not protocol ERROR. */
179
- interface ProcessError {
180
- readonly code: ProcessErrorCode;
181
- readonly message: string;
182
- readonly command?: unknown;
183
- readonly commandId?: string;
184
- readonly commandType?: string;
185
- readonly cursor: ProcessCursor;
186
- }
187
- /** Accepted/rejected command outcome projected from the ProcessBundle runtime. */
188
- interface ProcessStatus {
189
- readonly state: "accepted" | "rejected";
190
- readonly commandId?: string;
191
- readonly commandType?: string;
192
- readonly eventCount: number;
193
- readonly effectCount: number;
194
- readonly errorCode?: ProcessErrorCode;
195
- readonly cursor: ProcessCursor;
196
- }
197
- interface ProcessEffectRunnerStatus {
198
- readonly state: "requested" | "commanded" | "rejected";
199
- readonly effectId?: string;
200
- readonly effectType?: string;
201
- readonly commandId?: string;
202
- readonly commandType?: ProcessEffectCommandType;
203
- readonly requested: number;
204
- readonly commanded: number;
205
- readonly rejected: number;
206
- }
207
- interface ProcessEffectRunnerError {
208
- readonly code: "malformed-outcome";
209
- readonly message: string;
210
- readonly outcome?: unknown;
211
- readonly effectId?: string;
212
- readonly effectType?: string;
213
- }
214
- /** Ordered audit fact for one attempted command reduction. */
215
- interface ProcessAuditRecord {
216
- readonly seq: number;
217
- readonly commandId?: string;
218
- readonly commandType?: string;
219
- readonly outcome: "success" | "failure";
220
- readonly eventIds: readonly string[];
221
- readonly eventTypes: readonly string[];
222
- readonly effectIds: readonly string[];
223
- readonly effectTypes: readonly string[];
224
- readonly errorCode?: ProcessErrorCode;
225
- readonly errorMessage?: string;
226
- readonly cursor: ProcessCursor;
227
- }
228
- /** Monotonic graph-visible ProcessBundle cursor counters. */
229
- interface ProcessCursor {
230
- readonly eventSeq: number;
231
- readonly effectSeq: number;
232
- readonly commandCount: number;
233
- readonly errorCount: number;
234
- readonly auditSeq: number;
235
- }
236
- /** Reducer result: next process state plus optional event/effect-request drafts. */
237
- interface ProcessReduction<TState = unknown, TEvent = unknown, TEffect = unknown> {
238
- readonly state: TState;
239
- readonly events?: readonly ProcessEventDraft<TEvent>[];
240
- readonly effects?: readonly ProcessEffectRequestDraft<TEffect>[];
241
- }
242
- /** Sync ProcessBundle reducer. Async effects belong in graph-visible adapters, not here. */
243
- type ProcessReducer<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> = (command: ProcessCommand<TCommand>, state: TState) => ProcessReduction<TState, TEvent, TEffect>;
244
- /** Options for a D136 facts-plus-reducer ProcessBundle. */
245
- interface ProcessBundleOptions<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> {
246
- readonly name?: string;
247
- readonly initialState: TState;
248
- readonly reduce: ProcessReducer<TCommand, TState, TEvent, TEffect>;
249
- readonly now?: () => number;
250
- }
251
- /** D136 facts-plus-reducer process bundle. It is not a workflow engine or hidden runtime owner. */
252
- interface ProcessBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown> {
253
- readonly command: Node<ProcessCommand<TCommand>>;
254
- readonly events: Node<ProcessEvent<TEvent>>;
255
- readonly state: Node<TState>;
256
- readonly audit: Node<ProcessAuditRecord>;
257
- readonly effectRequests: Node<ProcessEffectRequest<TEffect>>;
258
- readonly status: Node<ProcessStatus>;
259
- readonly errors: Node<ProcessError>;
260
- readonly cursor: Node<ProcessCursor>;
261
- dispatch(command: ProcessCommand<TCommand>): ProcessCommand<TCommand>;
262
- /** Release only graph-owned retain roots; process facts/topology/cache/state remain ordinary graph data. */
263
- release(): void;
264
- }
265
- interface ProcessEffectRunnerOptions<TResult = unknown> {
266
- readonly name?: string;
267
- readonly outcomes: readonly Node<ProcessEffectOutcome<TResult>>[];
268
- }
269
- interface ProcessEffectRunnerBundle<TEffect = unknown, TResult = unknown> {
270
- readonly requests: Node<ProcessEffectRequest<TEffect>>;
271
- readonly outcomes: Node<ProcessEffectOutcome<TResult>>;
272
- readonly commands: Node<ProcessCommand<ProcessEffectCommandPayload<TResult>>>;
273
- readonly status: Node<ProcessEffectRunnerStatus>;
274
- readonly errors: Node<ProcessEffectRunnerError>;
275
- release(): void;
276
- }
277
241
  declare function retryStatusBundle(graph: Graph, events: Node<ResilienceEvent>, opts?: {
278
242
  name?: string;
279
243
  policy?: RetryPolicy;
@@ -283,23 +247,6 @@ declare function rateLimitBundle<T>(graph: Graph, source: Node<T>, opts: RateLim
283
247
  declare function timeoutBundle<T>(graph: Graph, source: Node<T>, ms: number, opts?: {
284
248
  name?: string;
285
249
  }): TimeoutBundle<T>;
286
- /**
287
- * Build a D136 ProcessBundle from graph-visible command facts and a reducer.
288
- *
289
- * The bundle retains its runtime/projection nodes until `release()` is called.
290
- * Reducer and validation failures are emitted as DATA error/status/audit facts;
291
- * they do not mint protocol ERROR messages or own restore/hydration behavior.
292
- */
293
- declare function processBundle<TCommand = unknown, TState = unknown, TEvent = unknown, TEffect = unknown>(graph: Graph, opts: ProcessBundleOptions<TCommand, TState, TEvent, TEffect>): ProcessBundle<TCommand, TState, TEvent, TEffect>;
294
- /**
295
- * Build a D156 graph-visible effect runner adapter over a ProcessBundle.
296
- *
297
- * The runner consumes visible effect-request and outcome facts, then publishes
298
- * ordinary ProcessCommand DATA facts back through process.command via a declared
299
- * graph edge. Async handlers, timers, and process state ownership stay outside
300
- * this helper.
301
- */
302
- declare function processEffectRunner<TEffect = unknown, TResult = unknown>(graph: Graph, process: ProcessBundle<unknown, unknown, unknown, TEffect>, opts: ProcessEffectRunnerOptions<TResult>): ProcessEffectRunnerBundle<TEffect, TResult>;
303
250
  declare function constantBackoff(delayMs: number): BackoffPolicy;
304
251
 
305
- 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 };