aec-agent 1.0.3 → 1.0.4

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 (554) hide show
  1. package/dist/agent-core.d.ts +123 -3
  2. package/dist/agent-core.d.ts.map +1 -1
  3. package/dist/agent-core.js +219 -23
  4. package/dist/agent-core.js.map +1 -1
  5. package/dist/components/artifact-hub/artifact-hub.d.ts +11 -1
  6. package/dist/components/artifact-hub/artifact-hub.d.ts.map +1 -1
  7. package/dist/components/artifact-hub/artifact-hub.js +21 -1
  8. package/dist/components/artifact-hub/artifact-hub.js.map +1 -1
  9. package/dist/components/channel-platform-hub/adapter-kit.d.ts +51 -0
  10. package/dist/components/channel-platform-hub/adapter-kit.d.ts.map +1 -0
  11. package/dist/components/channel-platform-hub/adapter-kit.js +153 -0
  12. package/dist/components/channel-platform-hub/adapter-kit.js.map +1 -0
  13. package/dist/components/channel-platform-hub/channel-platform-hub.d.ts +34 -0
  14. package/dist/components/channel-platform-hub/channel-platform-hub.d.ts.map +1 -0
  15. package/dist/components/channel-platform-hub/channel-platform-hub.js +52 -0
  16. package/dist/components/channel-platform-hub/channel-platform-hub.js.map +1 -0
  17. package/dist/components/channel-platform-hub/discord/discord-adapter.d.ts +57 -0
  18. package/dist/components/channel-platform-hub/discord/discord-adapter.d.ts.map +1 -0
  19. package/dist/components/channel-platform-hub/discord/discord-adapter.js +412 -0
  20. package/dist/components/channel-platform-hub/discord/discord-adapter.js.map +1 -0
  21. package/dist/components/channel-platform-hub/slack/slack-adapter.d.ts +56 -0
  22. package/dist/components/channel-platform-hub/slack/slack-adapter.d.ts.map +1 -0
  23. package/dist/components/channel-platform-hub/slack/slack-adapter.js +349 -0
  24. package/dist/components/channel-platform-hub/slack/slack-adapter.js.map +1 -0
  25. package/dist/components/channel-platform-hub/slack/slack-mrkdwn.d.ts +3 -0
  26. package/dist/components/channel-platform-hub/slack/slack-mrkdwn.d.ts.map +1 -0
  27. package/dist/components/channel-platform-hub/slack/slack-mrkdwn.js +70 -0
  28. package/dist/components/channel-platform-hub/slack/slack-mrkdwn.js.map +1 -0
  29. package/dist/components/channel-platform-hub/teams/teams-adapter.d.ts +51 -0
  30. package/dist/components/channel-platform-hub/teams/teams-adapter.d.ts.map +1 -0
  31. package/dist/components/channel-platform-hub/teams/teams-adapter.js +333 -0
  32. package/dist/components/channel-platform-hub/teams/teams-adapter.js.map +1 -0
  33. package/dist/components/channel-platform-hub/telegram/telegram-adapter.d.ts +46 -0
  34. package/dist/components/channel-platform-hub/telegram/telegram-adapter.d.ts.map +1 -0
  35. package/dist/components/channel-platform-hub/telegram/telegram-adapter.js +304 -0
  36. package/dist/components/channel-platform-hub/telegram/telegram-adapter.js.map +1 -0
  37. package/dist/components/channel-platform-hub/telegram/telegram-markdown.d.ts +3 -0
  38. package/dist/components/channel-platform-hub/telegram/telegram-markdown.d.ts.map +1 -0
  39. package/dist/components/channel-platform-hub/telegram/telegram-markdown.js +87 -0
  40. package/dist/components/channel-platform-hub/telegram/telegram-markdown.js.map +1 -0
  41. package/dist/components/channel-platform-hub/types.d.ts +290 -0
  42. package/dist/components/channel-platform-hub/types.d.ts.map +1 -0
  43. package/dist/components/channel-platform-hub/types.js +23 -0
  44. package/dist/components/channel-platform-hub/types.js.map +1 -0
  45. package/dist/components/event-handler/event-dispatcher.d.ts +28 -3
  46. package/dist/components/event-handler/event-dispatcher.d.ts.map +1 -1
  47. package/dist/components/event-handler/event-dispatcher.js +77 -13
  48. package/dist/components/event-handler/event-dispatcher.js.map +1 -1
  49. package/dist/components/event-handler/events.d.ts +316 -15
  50. package/dist/components/event-handler/events.d.ts.map +1 -1
  51. package/dist/components/event-handler/events.js +94 -2
  52. package/dist/components/event-handler/events.js.map +1 -1
  53. package/dist/components/event-handler/types.d.ts +26 -0
  54. package/dist/components/event-handler/types.d.ts.map +1 -1
  55. package/dist/components/group-hub/group-hub.d.ts +117 -0
  56. package/dist/components/group-hub/group-hub.d.ts.map +1 -0
  57. package/dist/components/group-hub/group-hub.js +334 -0
  58. package/dist/components/group-hub/group-hub.js.map +1 -0
  59. package/dist/components/group-hub/group-turns.d.ts +109 -0
  60. package/dist/components/group-hub/group-turns.d.ts.map +1 -0
  61. package/dist/components/group-hub/group-turns.js +834 -0
  62. package/dist/components/group-hub/group-turns.js.map +1 -0
  63. package/dist/components/group-hub/member-prompt.d.ts +28 -0
  64. package/dist/components/group-hub/member-prompt.d.ts.map +1 -0
  65. package/dist/components/group-hub/member-prompt.js +111 -0
  66. package/dist/components/group-hub/member-prompt.js.map +1 -0
  67. package/dist/components/group-hub/recipients.d.ts +10 -0
  68. package/dist/components/group-hub/recipients.d.ts.map +1 -0
  69. package/dist/components/group-hub/recipients.js +83 -0
  70. package/dist/components/group-hub/recipients.js.map +1 -0
  71. package/dist/components/group-hub/thread.d.ts +57 -0
  72. package/dist/components/group-hub/thread.d.ts.map +1 -0
  73. package/dist/components/group-hub/thread.js +126 -0
  74. package/dist/components/group-hub/thread.js.map +1 -0
  75. package/dist/components/group-hub/types.d.ts +277 -0
  76. package/dist/components/group-hub/types.d.ts.map +1 -0
  77. package/dist/components/group-hub/types.js +51 -0
  78. package/dist/components/group-hub/types.js.map +1 -0
  79. package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts.map +1 -1
  80. package/dist/components/llm-provider-hub/providers/anthropic-provider.js +22 -2
  81. package/dist/components/llm-provider-hub/providers/anthropic-provider.js.map +1 -1
  82. package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts.map +1 -1
  83. package/dist/components/llm-provider-hub/providers/bedrock-provider.js +15 -3
  84. package/dist/components/llm-provider-hub/providers/bedrock-provider.js.map +1 -1
  85. package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts.map +1 -1
  86. package/dist/components/llm-provider-hub/providers/model-info-mappers.js +27 -0
  87. package/dist/components/llm-provider-hub/providers/model-info-mappers.js.map +1 -1
  88. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts.map +1 -1
  89. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js +10 -3
  90. package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js.map +1 -1
  91. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts +1 -0
  92. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts.map +1 -1
  93. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js +35 -3
  94. package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js.map +1 -1
  95. package/dist/components/llm-provider-hub/types.d.ts +20 -0
  96. package/dist/components/llm-provider-hub/types.d.ts.map +1 -1
  97. package/dist/components/llm-provider-hub/types.js +5 -0
  98. package/dist/components/llm-provider-hub/types.js.map +1 -1
  99. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts +87 -8
  100. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts.map +1 -1
  101. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js +465 -62
  102. package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js.map +1 -1
  103. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts +14 -1
  104. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts.map +1 -1
  105. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js +25 -1
  106. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js.map +1 -1
  107. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts +14 -1
  108. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts.map +1 -1
  109. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js +14 -22
  110. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js.map +1 -1
  111. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts +41 -3
  112. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts.map +1 -1
  113. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js +152 -44
  114. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js.map +1 -1
  115. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts +15 -0
  116. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts.map +1 -1
  117. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js +35 -1
  118. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js.map +1 -1
  119. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts +10 -1
  120. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts.map +1 -1
  121. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js +39 -6
  122. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js.map +1 -1
  123. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts +2 -1
  124. package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts.map +1 -1
  125. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.d.ts +47 -0
  126. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.d.ts.map +1 -0
  127. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.js +61 -0
  128. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.js.map +1 -0
  129. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts +1 -1
  130. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts.map +1 -1
  131. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js +1 -1
  132. package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js.map +1 -1
  133. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts +131 -8
  134. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts.map +1 -1
  135. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js +17 -1
  136. package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js.map +1 -1
  137. package/dist/components/multi-agent-orchestration/agent/agent.d.ts +101 -15
  138. package/dist/components/multi-agent-orchestration/agent/agent.d.ts.map +1 -1
  139. package/dist/components/multi-agent-orchestration/agent/agent.js +415 -44
  140. package/dist/components/multi-agent-orchestration/agent/agent.js.map +1 -1
  141. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts +245 -1
  142. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts.map +1 -1
  143. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js +1583 -0
  144. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js.map +1 -1
  145. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.d.ts +76 -0
  146. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.d.ts.map +1 -0
  147. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.js +236 -0
  148. package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.js.map +1 -0
  149. package/dist/components/multi-agent-orchestration/agent/channel-manager/text.d.ts +15 -0
  150. package/dist/components/multi-agent-orchestration/agent/channel-manager/text.d.ts.map +1 -0
  151. package/dist/components/multi-agent-orchestration/agent/channel-manager/text.js +80 -0
  152. package/dist/components/multi-agent-orchestration/agent/channel-manager/text.js.map +1 -0
  153. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.d.ts +13 -0
  154. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.d.ts.map +1 -0
  155. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.js +41 -0
  156. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.js.map +1 -0
  157. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.d.ts +69 -0
  158. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.d.ts.map +1 -0
  159. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.js +210 -0
  160. package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.js.map +1 -0
  161. package/dist/components/multi-agent-orchestration/agent/channel-manager/types.d.ts +76 -0
  162. package/dist/components/multi-agent-orchestration/agent/channel-manager/types.d.ts.map +1 -0
  163. package/dist/components/multi-agent-orchestration/agent/channel-manager/types.js +7 -0
  164. package/dist/components/multi-agent-orchestration/agent/channel-manager/types.js.map +1 -0
  165. package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.d.ts +37 -0
  166. package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.d.ts.map +1 -0
  167. package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.js +544 -0
  168. package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.js.map +1 -0
  169. package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.d.ts +75 -0
  170. package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.d.ts.map +1 -0
  171. package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.js +299 -0
  172. package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.js.map +1 -0
  173. package/dist/components/multi-agent-orchestration/agent/command-manager/parse.d.ts +17 -0
  174. package/dist/components/multi-agent-orchestration/agent/command-manager/parse.d.ts.map +1 -0
  175. package/dist/components/multi-agent-orchestration/agent/command-manager/parse.js +19 -0
  176. package/dist/components/multi-agent-orchestration/agent/command-manager/parse.js.map +1 -0
  177. package/dist/components/multi-agent-orchestration/agent/command-manager/types.d.ts +197 -0
  178. package/dist/components/multi-agent-orchestration/agent/command-manager/types.d.ts.map +1 -0
  179. package/dist/components/multi-agent-orchestration/agent/command-manager/types.js +3 -0
  180. package/dist/components/multi-agent-orchestration/agent/command-manager/types.js.map +1 -0
  181. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts +37 -1
  182. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts.map +1 -1
  183. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js +54 -2
  184. package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js.map +1 -1
  185. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts +118 -14
  186. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts.map +1 -1
  187. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js +239 -50
  188. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js.map +1 -1
  189. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.d.ts +34 -0
  190. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.d.ts.map +1 -0
  191. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.js +74 -0
  192. package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.js.map +1 -0
  193. package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.d.ts +49 -0
  194. package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.d.ts.map +1 -0
  195. package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.js +171 -0
  196. package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.js.map +1 -0
  197. package/dist/components/multi-agent-orchestration/agent/job-manager/clock.d.ts +43 -0
  198. package/dist/components/multi-agent-orchestration/agent/job-manager/clock.d.ts.map +1 -0
  199. package/dist/components/multi-agent-orchestration/agent/job-manager/clock.js +116 -0
  200. package/dist/components/multi-agent-orchestration/agent/job-manager/clock.js.map +1 -0
  201. package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.d.ts +17 -0
  202. package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.d.ts.map +1 -0
  203. package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.js +93 -0
  204. package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.js.map +1 -0
  205. package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.d.ts +208 -0
  206. package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.d.ts.map +1 -0
  207. package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.js +1207 -0
  208. package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.js.map +1 -0
  209. package/dist/components/multi-agent-orchestration/agent/job-manager/rules.d.ts +129 -0
  210. package/dist/components/multi-agent-orchestration/agent/job-manager/rules.d.ts.map +1 -0
  211. package/dist/components/multi-agent-orchestration/agent/job-manager/rules.js +598 -0
  212. package/dist/components/multi-agent-orchestration/agent/job-manager/rules.js.map +1 -0
  213. package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.d.ts +15 -0
  214. package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.d.ts.map +1 -0
  215. package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.js +113 -0
  216. package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.js.map +1 -0
  217. package/dist/components/multi-agent-orchestration/agent/job-manager/timers.d.ts +8 -0
  218. package/dist/components/multi-agent-orchestration/agent/job-manager/timers.d.ts.map +1 -0
  219. package/dist/components/multi-agent-orchestration/agent/job-manager/timers.js +33 -0
  220. package/dist/components/multi-agent-orchestration/agent/job-manager/timers.js.map +1 -0
  221. package/dist/components/multi-agent-orchestration/agent/job-manager/types.d.ts +495 -0
  222. package/dist/components/multi-agent-orchestration/agent/job-manager/types.d.ts.map +1 -0
  223. package/dist/components/multi-agent-orchestration/agent/job-manager/types.js +50 -0
  224. package/dist/components/multi-agent-orchestration/agent/job-manager/types.js.map +1 -0
  225. package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.d.ts +37 -0
  226. package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.d.ts.map +1 -0
  227. package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.js +157 -0
  228. package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.js.map +1 -0
  229. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts +7 -0
  230. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts.map +1 -1
  231. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js +189 -30
  232. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map +1 -1
  233. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts +17 -0
  234. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts.map +1 -1
  235. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js +51 -0
  236. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js.map +1 -1
  237. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts +5 -0
  238. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts.map +1 -1
  239. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js +16 -0
  240. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js.map +1 -1
  241. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.d.ts +41 -0
  242. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.d.ts.map +1 -0
  243. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.js +98 -0
  244. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.js.map +1 -0
  245. package/dist/components/multi-agent-orchestration/agent/secret-manager/types.d.ts +37 -0
  246. package/dist/components/multi-agent-orchestration/agent/secret-manager/types.d.ts.map +1 -0
  247. package/dist/components/multi-agent-orchestration/agent/secret-manager/types.js.map +1 -0
  248. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts.map +1 -1
  249. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js +1 -0
  250. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js.map +1 -1
  251. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.d.ts +21 -0
  252. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.d.ts.map +1 -0
  253. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.js +113 -0
  254. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.js.map +1 -0
  255. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.d.ts +52 -0
  256. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.d.ts.map +1 -0
  257. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.js +63 -0
  258. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.js.map +1 -0
  259. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.d.ts +18 -0
  260. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.d.ts.map +1 -0
  261. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.js +56 -0
  262. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.js.map +1 -0
  263. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.d.ts +128 -0
  264. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.d.ts.map +1 -0
  265. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js +661 -0
  266. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js.map +1 -0
  267. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.d.ts +307 -0
  268. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.d.ts.map +1 -0
  269. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.js +60 -0
  270. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.js.map +1 -0
  271. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts +14 -3
  272. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts.map +1 -1
  273. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js +18 -5
  274. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js.map +1 -1
  275. package/dist/components/multi-agent-orchestration/agent/types.d.ts +84 -1
  276. package/dist/components/multi-agent-orchestration/agent/types.d.ts.map +1 -1
  277. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts +11 -4
  278. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts.map +1 -1
  279. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js +72 -4
  280. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js.map +1 -1
  281. package/dist/components/persistence-hub/default-stores/memory-channel-store.d.ts +11 -0
  282. package/dist/components/persistence-hub/default-stores/memory-channel-store.d.ts.map +1 -0
  283. package/dist/components/persistence-hub/default-stores/memory-channel-store.js +33 -0
  284. package/dist/components/persistence-hub/default-stores/memory-channel-store.js.map +1 -0
  285. package/dist/components/persistence-hub/default-stores/memory-group-store.d.ts +21 -0
  286. package/dist/components/persistence-hub/default-stores/memory-group-store.d.ts.map +1 -0
  287. package/dist/components/persistence-hub/default-stores/memory-group-store.js +62 -0
  288. package/dist/components/persistence-hub/default-stores/memory-group-store.js.map +1 -0
  289. package/dist/components/persistence-hub/default-stores/memory-job-store.d.ts +31 -0
  290. package/dist/components/persistence-hub/default-stores/memory-job-store.d.ts.map +1 -0
  291. package/dist/components/persistence-hub/default-stores/memory-job-store.js +234 -0
  292. package/dist/components/persistence-hub/default-stores/memory-job-store.js.map +1 -0
  293. package/dist/components/persistence-hub/default-stores/memory-secret-store.d.ts +12 -0
  294. package/dist/components/persistence-hub/default-stores/memory-secret-store.d.ts.map +1 -0
  295. package/dist/components/persistence-hub/default-stores/memory-secret-store.js +38 -0
  296. package/dist/components/persistence-hub/default-stores/memory-secret-store.js.map +1 -0
  297. package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts.map +1 -1
  298. package/dist/components/persistence-hub/default-stores/memory-session-store.js +7 -0
  299. package/dist/components/persistence-hub/default-stores/memory-session-store.js.map +1 -1
  300. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.d.ts +10 -0
  301. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.d.ts.map +1 -0
  302. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.js +30 -0
  303. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.js.map +1 -0
  304. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.d.ts +9 -0
  305. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.d.ts.map +1 -0
  306. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.js +17 -0
  307. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.js.map +1 -0
  308. package/dist/components/persistence-hub/persistence-hub.d.ts +41 -0
  309. package/dist/components/persistence-hub/persistence-hub.d.ts.map +1 -1
  310. package/dist/components/persistence-hub/persistence-hub.js +41 -0
  311. package/dist/components/persistence-hub/persistence-hub.js.map +1 -1
  312. package/dist/components/persistence-hub/types/channel-store.d.ts +12 -0
  313. package/dist/components/persistence-hub/types/channel-store.d.ts.map +1 -0
  314. package/dist/components/persistence-hub/types/channel-store.js +2 -0
  315. package/dist/components/persistence-hub/types/channel-store.js.map +1 -0
  316. package/dist/components/persistence-hub/types/group-store.d.ts +27 -0
  317. package/dist/components/persistence-hub/types/group-store.d.ts.map +1 -0
  318. package/dist/components/persistence-hub/types/group-store.js +2 -0
  319. package/dist/components/persistence-hub/types/group-store.js.map +1 -0
  320. package/dist/components/persistence-hub/types/job-store.d.ts +112 -0
  321. package/dist/components/persistence-hub/types/job-store.d.ts.map +1 -0
  322. package/dist/components/persistence-hub/types/job-store.js +2 -0
  323. package/dist/components/persistence-hub/types/job-store.js.map +1 -0
  324. package/dist/components/persistence-hub/types/secret-store.d.ts +18 -0
  325. package/dist/components/persistence-hub/types/secret-store.d.ts.map +1 -0
  326. package/dist/components/persistence-hub/types/secret-store.js +2 -0
  327. package/dist/components/persistence-hub/types/secret-store.js.map +1 -0
  328. package/dist/components/persistence-hub/types/session-store.d.ts +5 -0
  329. package/dist/components/persistence-hub/types/session-store.d.ts.map +1 -1
  330. package/dist/components/persistence-hub/types/subagent-run-store.d.ts +11 -0
  331. package/dist/components/persistence-hub/types/subagent-run-store.d.ts.map +1 -0
  332. package/dist/components/persistence-hub/types/subagent-run-store.js +2 -0
  333. package/dist/components/persistence-hub/types/subagent-run-store.js.map +1 -0
  334. package/dist/components/persistence-hub/types/subagent-type-store.d.ts +9 -0
  335. package/dist/components/persistence-hub/types/subagent-type-store.d.ts.map +1 -0
  336. package/dist/components/persistence-hub/types/subagent-type-store.js +2 -0
  337. package/dist/components/persistence-hub/types/subagent-type-store.js.map +1 -0
  338. package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts +4 -1
  339. package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts.map +1 -1
  340. package/dist/components/sandbox-hub/docker/docker-sandbox.js +398 -1
  341. package/dist/components/sandbox-hub/docker/docker-sandbox.js.map +1 -1
  342. package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts.map +1 -1
  343. package/dist/components/sandbox-hub/docker/sandbox-helper.js +386 -5
  344. package/dist/components/sandbox-hub/docker/sandbox-helper.js.map +1 -1
  345. package/dist/components/sandbox-hub/host/host-sandbox.d.ts +16 -0
  346. package/dist/components/sandbox-hub/host/host-sandbox.d.ts.map +1 -1
  347. package/dist/components/sandbox-hub/host/host-sandbox.js +283 -2
  348. package/dist/components/sandbox-hub/host/host-sandbox.js.map +1 -1
  349. package/dist/components/sandbox-hub/sandbox-hub.d.ts +9 -0
  350. package/dist/components/sandbox-hub/sandbox-hub.d.ts.map +1 -1
  351. package/dist/components/sandbox-hub/sandbox-hub.js +18 -0
  352. package/dist/components/sandbox-hub/sandbox-hub.js.map +1 -1
  353. package/dist/components/sandbox-hub/traced-sandbox.d.ts.map +1 -1
  354. package/dist/components/sandbox-hub/traced-sandbox.js +32 -0
  355. package/dist/components/sandbox-hub/traced-sandbox.js.map +1 -1
  356. package/dist/components/sandbox-hub/types/sandbox.d.ts +106 -1
  357. package/dist/components/sandbox-hub/types/sandbox.d.ts.map +1 -1
  358. package/dist/components/sandbox-hub/types/sandbox.js +0 -13
  359. package/dist/components/sandbox-hub/types/sandbox.js.map +1 -1
  360. package/dist/components/secret-hub/envelope.d.ts +48 -0
  361. package/dist/components/secret-hub/envelope.d.ts.map +1 -0
  362. package/dist/components/secret-hub/envelope.js +157 -0
  363. package/dist/components/secret-hub/envelope.js.map +1 -0
  364. package/dist/components/secret-hub/rules.d.ts +33 -0
  365. package/dist/components/secret-hub/rules.d.ts.map +1 -0
  366. package/dist/components/secret-hub/rules.js +142 -0
  367. package/dist/components/secret-hub/rules.js.map +1 -0
  368. package/dist/components/secret-hub/secret-hub-provider.d.ts +61 -0
  369. package/dist/components/secret-hub/secret-hub-provider.d.ts.map +1 -0
  370. package/dist/components/secret-hub/secret-hub-provider.js +73 -0
  371. package/dist/components/secret-hub/secret-hub-provider.js.map +1 -0
  372. package/dist/components/secret-hub/secret-hub.d.ts +102 -0
  373. package/dist/components/secret-hub/secret-hub.d.ts.map +1 -0
  374. package/dist/components/secret-hub/secret-hub.js +267 -0
  375. package/dist/components/secret-hub/secret-hub.js.map +1 -0
  376. package/dist/components/secret-hub/types.d.ts +77 -0
  377. package/dist/components/secret-hub/types.d.ts.map +1 -0
  378. package/dist/components/secret-hub/types.js +23 -0
  379. package/dist/components/secret-hub/types.js.map +1 -0
  380. package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts +1 -1
  381. package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts.map +1 -1
  382. package/dist/components/skill-hub/built-in-skills/essential-skills.js +7 -2
  383. package/dist/components/skill-hub/built-in-skills/essential-skills.js.map +1 -1
  384. package/dist/components/skill-hub/built-in-skills/watch-and-notify.d.ts +3 -0
  385. package/dist/components/skill-hub/built-in-skills/watch-and-notify.d.ts.map +1 -0
  386. package/dist/components/skill-hub/built-in-skills/watch-and-notify.js +94 -0
  387. package/dist/components/skill-hub/built-in-skills/watch-and-notify.js.map +1 -0
  388. package/dist/components/skill-hub/skill-hub.d.ts +9 -1
  389. package/dist/components/skill-hub/skill-hub.d.ts.map +1 -1
  390. package/dist/components/skill-hub/skill-hub.js +11 -1
  391. package/dist/components/skill-hub/skill-hub.js.map +1 -1
  392. package/dist/components/subagent-hub/built-in-types.d.ts +3 -0
  393. package/dist/components/subagent-hub/built-in-types.d.ts.map +1 -0
  394. package/dist/components/subagent-hub/built-in-types.js +24 -0
  395. package/dist/components/subagent-hub/built-in-types.js.map +1 -0
  396. package/dist/components/subagent-hub/subagent-hub.d.ts +41 -0
  397. package/dist/components/subagent-hub/subagent-hub.d.ts.map +1 -0
  398. package/dist/components/subagent-hub/subagent-hub.js +158 -0
  399. package/dist/components/subagent-hub/subagent-hub.js.map +1 -0
  400. package/dist/components/subagent-hub/types.d.ts +40 -0
  401. package/dist/components/subagent-hub/types.d.ts.map +1 -0
  402. package/dist/components/subagent-hub/types.js +8 -0
  403. package/dist/components/subagent-hub/types.js.map +1 -0
  404. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts +4 -1
  405. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts.map +1 -1
  406. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js +4 -0
  407. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js.map +1 -1
  408. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts.map +1 -1
  409. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js +4 -1
  410. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js.map +1 -1
  411. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts.map +1 -1
  412. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js +4 -1
  413. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js.map +1 -1
  414. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.d.ts +10 -0
  415. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.d.ts.map +1 -0
  416. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.js +13 -0
  417. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.js.map +1 -0
  418. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.d.ts +60 -0
  419. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.d.ts.map +1 -0
  420. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.js +240 -0
  421. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.js.map +1 -0
  422. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.d.ts +14 -0
  423. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.d.ts.map +1 -0
  424. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.js +36 -0
  425. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.js.map +1 -0
  426. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.d.ts +32 -0
  427. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.d.ts.map +1 -0
  428. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.js +458 -0
  429. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.js.map +1 -0
  430. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.d.ts +9 -0
  431. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.d.ts.map +1 -0
  432. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.js +20 -0
  433. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.js.map +1 -0
  434. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.d.ts +12 -0
  435. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.d.ts.map +1 -0
  436. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.js +57 -0
  437. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.js.map +1 -0
  438. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.d.ts +15 -0
  439. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.d.ts.map +1 -0
  440. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.js +80 -0
  441. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.js.map +1 -0
  442. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.d.ts +53 -0
  443. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.d.ts.map +1 -0
  444. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.js +100 -0
  445. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.js.map +1 -0
  446. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.d.ts +14 -0
  447. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.d.ts.map +1 -0
  448. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.js +63 -0
  449. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.js.map +1 -0
  450. package/dist/components/tool-hub/built-in-tools/preview/service-tools.d.ts +33 -0
  451. package/dist/components/tool-hub/built-in-tools/preview/service-tools.d.ts.map +1 -0
  452. package/dist/components/tool-hub/built-in-tools/preview/service-tools.js +180 -0
  453. package/dist/components/tool-hub/built-in-tools/preview/service-tools.js.map +1 -0
  454. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.d.ts +6 -0
  455. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.d.ts.map +1 -0
  456. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.js +9 -0
  457. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.js.map +1 -0
  458. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.d.ts +12 -0
  459. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.d.ts.map +1 -0
  460. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.js +30 -0
  461. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.js.map +1 -0
  462. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.d.ts +22 -0
  463. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.d.ts.map +1 -0
  464. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.js +113 -0
  465. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.js.map +1 -0
  466. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.d.ts +9 -0
  467. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.d.ts.map +1 -0
  468. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.js +29 -0
  469. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.js.map +1 -0
  470. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.d.ts +27 -0
  471. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.d.ts.map +1 -0
  472. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.js +112 -0
  473. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.js.map +1 -0
  474. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.d.ts +43 -0
  475. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.d.ts.map +1 -0
  476. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.js +234 -0
  477. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.js.map +1 -0
  478. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts.map +1 -1
  479. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js +2 -0
  480. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js.map +1 -1
  481. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts.map +1 -1
  482. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js +2 -0
  483. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js.map +1 -1
  484. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts.map +1 -1
  485. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js +9 -1
  486. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js.map +1 -1
  487. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts.map +1 -1
  488. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js +9 -2
  489. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js.map +1 -1
  490. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts +17 -0
  491. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts.map +1 -1
  492. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js +29 -0
  493. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js.map +1 -1
  494. package/dist/components/tool-hub/tool-links.d.ts +9 -0
  495. package/dist/components/tool-hub/tool-links.d.ts.map +1 -0
  496. package/dist/components/tool-hub/tool-links.js +11 -0
  497. package/dist/components/tool-hub/tool-links.js.map +1 -0
  498. package/dist/components/tool-hub/types.d.ts +101 -1
  499. package/dist/components/tool-hub/types.d.ts.map +1 -1
  500. package/dist/index.d.ts +109 -8
  501. package/dist/index.d.ts.map +1 -1
  502. package/dist/index.js +68 -0
  503. package/dist/index.js.map +1 -1
  504. package/dist/kernel/errors/channel-error.d.ts +24 -0
  505. package/dist/kernel/errors/channel-error.d.ts.map +1 -0
  506. package/dist/kernel/errors/channel-error.js +15 -0
  507. package/dist/kernel/errors/channel-error.js.map +1 -0
  508. package/dist/kernel/errors/command-error.d.ts +12 -0
  509. package/dist/kernel/errors/command-error.d.ts.map +1 -0
  510. package/dist/kernel/errors/command-error.js +11 -0
  511. package/dist/kernel/errors/command-error.js.map +1 -0
  512. package/dist/kernel/errors/group-error.d.ts +15 -0
  513. package/dist/kernel/errors/group-error.d.ts.map +1 -0
  514. package/dist/kernel/errors/group-error.js +10 -0
  515. package/dist/kernel/errors/group-error.js.map +1 -0
  516. package/dist/kernel/errors/job-error.d.ts +23 -0
  517. package/dist/kernel/errors/job-error.d.ts.map +1 -0
  518. package/dist/kernel/errors/job-error.js +15 -0
  519. package/dist/kernel/errors/job-error.js.map +1 -0
  520. package/dist/kernel/errors/secret-error.d.ts +19 -0
  521. package/dist/kernel/errors/secret-error.d.ts.map +1 -0
  522. package/dist/kernel/errors/secret-error.js +10 -0
  523. package/dist/kernel/errors/secret-error.js.map +1 -0
  524. package/dist/kernel/errors/session-error.d.ts +5 -1
  525. package/dist/kernel/errors/session-error.d.ts.map +1 -1
  526. package/dist/kernel/errors/session-error.js.map +1 -1
  527. package/dist/kernel/errors/subagent-error.d.ts +19 -0
  528. package/dist/kernel/errors/subagent-error.d.ts.map +1 -0
  529. package/dist/kernel/errors/subagent-error.js +10 -0
  530. package/dist/kernel/errors/subagent-error.js.map +1 -0
  531. package/dist/kernel/interfaces/kernel.d.ts +15 -0
  532. package/dist/kernel/interfaces/kernel.d.ts.map +1 -1
  533. package/dist/kernel/types.d.ts +80 -1
  534. package/dist/kernel/types.d.ts.map +1 -1
  535. package/dist/testing/fake-channel.d.ts +60 -0
  536. package/dist/testing/fake-channel.d.ts.map +1 -0
  537. package/dist/testing/fake-channel.js +135 -0
  538. package/dist/testing/fake-channel.js.map +1 -0
  539. package/dist/testing/in-memory-sandbox.d.ts +4 -1
  540. package/dist/testing/in-memory-sandbox.d.ts.map +1 -1
  541. package/dist/testing/in-memory-sandbox.js +63 -3
  542. package/dist/testing/in-memory-sandbox.js.map +1 -1
  543. package/dist/testing/mock-session-store.d.ts.map +1 -1
  544. package/dist/testing/mock-session-store.js +7 -0
  545. package/dist/testing/mock-session-store.js.map +1 -1
  546. package/package.json +2 -1
  547. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts +0 -38
  548. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts.map +0 -1
  549. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js +0 -155
  550. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js.map +0 -1
  551. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts +0 -27
  552. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts.map +0 -1
  553. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js.map +0 -1
  554. /package/dist/components/multi-agent-orchestration/agent/{scheduled-job-manager → secret-manager}/types.js +0 -0
@@ -0,0 +1,290 @@
1
+ /**
2
+ * Who may talk to the agent in direct messages.
3
+ * "pairing" — an unknown sender gets a one-time code; the owner approves it (default).
4
+ * "allowlist" — only senders in allowFrom; others are told their id.
5
+ * "open" — anyone who finds the bot.
6
+ * "disabled" — direct messages are ignored.
7
+ */
8
+ export type ChannelDmPolicy = "pairing" | "allowlist" | "open" | "disabled";
9
+ /**
10
+ * Which group chats the bot answers in (phase 2).
11
+ * "disabled" — groups are ignored (default).
12
+ * "allowlist" — only the group chats in `groups`.
13
+ * "open" — any group the bot is added to.
14
+ */
15
+ export type ChannelGroupPolicy = "disabled" | "allowlist" | "open";
16
+ export interface ChannelAccess {
17
+ dmPolicy: ChannelDmPolicy;
18
+ /**
19
+ * Sender ids (as the platform reports them) allowed to talk to the agent. Approving a pairing adds one.
20
+ * In group chats they are the only members who may approve tools.
21
+ */
22
+ allowFrom: string[];
23
+ /** Default "disabled". */
24
+ groupPolicy: ChannelGroupPolicy;
25
+ /** Group chat ids allowed when groupPolicy is "allowlist" (/whoami in the group shows it). */
26
+ groups: string[];
27
+ /** In groups, answer only messages that @-mention the bot or reply to it (default true). */
28
+ requireMention: boolean;
29
+ }
30
+ /** How replies are shown in the chat (phase 2). */
31
+ export interface ChannelSettings {
32
+ /**
33
+ * Show the reply while it is written by editing one message in place (default true).
34
+ * Needs an adapter with edit(); otherwise the reply is sent when it is done.
35
+ */
36
+ streaming: boolean;
37
+ /** Keep one message listing the tools the agent runs, edited as they finish (default true). */
38
+ toolProgress: boolean;
39
+ }
40
+ /** The bot account a channel is connected as, read from the platform when it connects. */
41
+ export interface ChannelAccountInfo {
42
+ id: string;
43
+ /** Handle without "@", e.g. "my_aec_bot". */
44
+ username?: string;
45
+ displayName?: string;
46
+ }
47
+ /**
48
+ * The chat a channel sends scheduled-job results to when a job's delivery target
49
+ * is "home" (phase 3). Set by /sethome in a chat, or by the owner through the host.
50
+ */
51
+ export interface ChannelHome {
52
+ chatId: string;
53
+ /** Forum topic / thread inside the chat, when there is one. */
54
+ threadId?: string;
55
+ /** The chat's title, or the sender's name in a direct message — shown to users. */
56
+ title?: string;
57
+ /** Sender id of who ran /sethome; absent when set through the host. */
58
+ setBy?: string;
59
+ /** ISO time it was set. */
60
+ setAt: string;
61
+ }
62
+ export interface Channel {
63
+ id: string;
64
+ /** Owning agent. Every read path is filtered by it. */
65
+ agentId: string;
66
+ /** Registered ChannelPlatform name, e.g. "telegram". */
67
+ platform: string;
68
+ /** Label shown to users. */
69
+ name: string;
70
+ /**
71
+ * Platform secrets, e.g. { botToken } for Telegram. Hosts must never return
72
+ * them from their APIs and should encrypt them at rest.
73
+ */
74
+ credentials: Record<string, string>;
75
+ access: ChannelAccess;
76
+ settings: ChannelSettings;
77
+ enabled: boolean;
78
+ /** Set on the first successful connect. */
79
+ account?: ChannelAccountInfo;
80
+ /** Where scheduled-job results go when a job delivers to "home" (phase 3). */
81
+ home?: ChannelHome;
82
+ /** ISO timestamps. */
83
+ createdAt: string;
84
+ updatedAt: string;
85
+ }
86
+ /** Fields a caller may set when connecting a channel. */
87
+ export interface CreateChannelInput {
88
+ platform: string;
89
+ /** Default: the bot's display name, else the platform name. */
90
+ name?: string;
91
+ credentials: Record<string, string>;
92
+ /** Default { dmPolicy: "pairing", allowFrom: [], groupPolicy: "disabled", groups: [], requireMention: true }. */
93
+ access?: Partial<ChannelAccess>;
94
+ /** Default { streaming: true, toolProgress: true }. */
95
+ settings?: Partial<ChannelSettings>;
96
+ /** Default true. */
97
+ enabled?: boolean;
98
+ }
99
+ /** Fields a caller may change. `credentials` are merged into the stored ones; a change reconnects. */
100
+ export interface UpdateChannelInput {
101
+ name?: string;
102
+ credentials?: Record<string, string>;
103
+ access?: Partial<ChannelAccess>;
104
+ settings?: Partial<ChannelSettings>;
105
+ enabled?: boolean;
106
+ /** Set the home chat (phase 3); null clears it. */
107
+ home?: {
108
+ chatId: string;
109
+ threadId?: string;
110
+ title?: string;
111
+ } | null;
112
+ }
113
+ /** Live connection state — kept in memory, not stored. */
114
+ export interface ChannelState {
115
+ status: "stopped" | "connecting" | "running" | "retrying" | "failed";
116
+ /** Why it is retrying or failed. */
117
+ error?: string;
118
+ /** ISO time the status last changed. */
119
+ since: string;
120
+ }
121
+ /** A sender waiting for the owner to approve them (dmPolicy "pairing"). Kept in memory; codes expire. */
122
+ export interface ChannelPairing {
123
+ code: string;
124
+ channelId: string;
125
+ senderId: string;
126
+ senderName?: string;
127
+ /** The chat to tell the sender in once approved. */
128
+ chatId: string;
129
+ /** ISO timestamps. */
130
+ requestedAt: string;
131
+ expiresAt: string;
132
+ }
133
+ export type ChannelChatType = "dm" | "group" | "channel";
134
+ export interface ChannelChat {
135
+ id: string;
136
+ type: ChannelChatType;
137
+ /** Forum topic / thread inside the chat, when the platform has them. */
138
+ threadId?: string;
139
+ title?: string;
140
+ }
141
+ export interface ChannelSender {
142
+ id: string;
143
+ name?: string;
144
+ username?: string;
145
+ isBot?: boolean;
146
+ }
147
+ /** One message from the platform, normalised by the adapter. */
148
+ export interface InboundMessage {
149
+ /** Platform message id — unique within the chat; used to drop duplicates. */
150
+ messageId: string;
151
+ chat: ChannelChat;
152
+ sender: ChannelSender;
153
+ /** Message text (or a media caption). Empty when the message carried no text. */
154
+ text: string;
155
+ /** The message @-mentions the bot. */
156
+ mentionsBot?: boolean;
157
+ /** The message replies to one of the bot's messages. */
158
+ replyToBot?: boolean;
159
+ }
160
+ /** Where to send: a chat, optionally a thread in it and a message to reply to. */
161
+ export interface ChannelTarget {
162
+ chatId: string;
163
+ threadId?: string;
164
+ replyToMessageId?: string;
165
+ }
166
+ /** A button under a message (approve / deny, clarify choices). */
167
+ export interface ChannelButton {
168
+ label: string;
169
+ /** Handed back in ChannelButtonPress.data. At most 64 bytes (Telegram's limit). */
170
+ data: string;
171
+ }
172
+ export interface OutboundMessage {
173
+ /** Already within capabilities.maxMessageLength. */
174
+ text: string;
175
+ /**
176
+ * "markdown": the agent's Markdown, which the adapter renders in its platform's
177
+ * format (and sends as plain text when that fails). Default "plain".
178
+ */
179
+ format?: "plain" | "markdown";
180
+ /** Rows of buttons. Only sent when capabilities.buttons is true. */
181
+ buttons?: ChannelButton[][];
182
+ }
183
+ /** Someone pressed one of the bot's buttons. */
184
+ export interface ChannelButtonPress {
185
+ chat: ChannelChat;
186
+ sender: ChannelSender;
187
+ /** The message the button is on. */
188
+ messageId: string;
189
+ /** ChannelButton.data. */
190
+ data: string;
191
+ }
192
+ export interface ChannelMessageRef {
193
+ chatId: string;
194
+ messageId: string;
195
+ }
196
+ export interface ChannelCapabilities {
197
+ /** Longest text one message may carry; longer replies are split. */
198
+ maxMessageLength: number;
199
+ /** send() renders OutboundMessage.format "markdown". Otherwise Markdown is sent as it is. */
200
+ markdown?: boolean;
201
+ /** send() and edit() show OutboundMessage.buttons, and presses reach ChannelSink.button. */
202
+ buttons?: boolean;
203
+ }
204
+ /** How an adapter reports to its ChannelManager. */
205
+ export interface ChannelSink {
206
+ message(message: InboundMessage): void;
207
+ /** A button press (capabilities.buttons). The adapter acknowledges it on the platform itself. */
208
+ button(press: ChannelButtonPress): void;
209
+ /**
210
+ * "running" once (re)connected, "retrying" while a transient error is being
211
+ * retried, "failed" when the adapter gave up (it is stopped then).
212
+ */
213
+ status(status: "running" | "retrying" | "failed", error?: string): void;
214
+ }
215
+ /**
216
+ * One live connection to a platform account. Built by a ChannelPlatform for a
217
+ * stored Channel. Implement it to connect your own app's chat.
218
+ */
219
+ export interface ChannelAdapter {
220
+ readonly capabilities: ChannelCapabilities;
221
+ /**
222
+ * Connect and start delivering messages to `sink`. Resolves once connected
223
+ * with the bot account; rejects when the credentials are wrong or the
224
+ * platform cannot be reached — nothing keeps running then.
225
+ */
226
+ start(sink: ChannelSink): Promise<ChannelAccountInfo>;
227
+ /** Disconnect. No messages reach the sink after it resolves. Safe to call twice. */
228
+ stop(): Promise<void>;
229
+ send(target: ChannelTarget, message: OutboundMessage): Promise<ChannelMessageRef>;
230
+ /**
231
+ * Replace the text (and buttons; none given = removed) of a message the bot sent.
232
+ * Optional — streamed previews, the tool-progress message and settled approval
233
+ * prompts need it. Editing to the same text must not throw.
234
+ */
235
+ edit?(ref: ChannelMessageRef, message: OutboundMessage): Promise<void>;
236
+ /** Show "typing…" in the chat for a few seconds. Optional. */
237
+ sendTyping?(target: ChannelTarget): Promise<void>;
238
+ /**
239
+ * Publish the chat commands the bot answers, so the platform can suggest them
240
+ * (Telegram's "/" menu). Optional. The ChannelManager calls it once connected;
241
+ * a failure is logged and the channel keeps running.
242
+ */
243
+ setCommands?(commands: ChannelBotCommand[]): Promise<void>;
244
+ /**
245
+ * Phase 3: an inbound HTTP request for this channel, for platforms that push
246
+ * messages to the host (Microsoft Teams' Bot Framework) instead of being polled
247
+ * or connected to. The host routes POST /webhooks/channels/:id here
248
+ * (AgentCore.handleChannelWebhook). The adapter checks the request is genuine
249
+ * (signature / token) and hands messages to the sink it got in start().
250
+ */
251
+ handleWebhook?(request: ChannelWebhookRequest): Promise<ChannelWebhookResponse>;
252
+ }
253
+ /** A chat command the bot answers, e.g. { name: "new", description: "Start a new conversation" }. */
254
+ export interface ChannelBotCommand {
255
+ /** Without the "/": lower case letters, digits and "_". */
256
+ name: string;
257
+ description: string;
258
+ }
259
+ /** An inbound HTTP request for a channel's webhook (phase 3). */
260
+ export interface ChannelWebhookRequest {
261
+ method: string;
262
+ /** Header names in lower case. */
263
+ headers: Record<string, string>;
264
+ /** The raw body. */
265
+ body: string;
266
+ }
267
+ export interface ChannelWebhookResponse {
268
+ status: number;
269
+ /** JSON-encoded by the host when it is not a string. */
270
+ body?: unknown;
271
+ }
272
+ /** Builds adapters for one platform. Register it with AgentCore.useChannelPlatform. */
273
+ export interface ChannelPlatform {
274
+ /** Stored on Channel.platform, e.g. "telegram". */
275
+ readonly name: string;
276
+ /** e.g. "Telegram". Default: name. */
277
+ readonly displayName?: string;
278
+ /** Credential keys a channel must have, e.g. ["botToken"] — checked on create. */
279
+ readonly credentialKeys: string[];
280
+ /** Credential keys a channel may have, e.g. ["tenantId"] (phase 3). Shown as optional fields. */
281
+ readonly optionalCredentialKeys?: string[];
282
+ /**
283
+ * How the platform reaches the host (phase 3). "webhook" platforms need the host's
284
+ * POST /webhooks/channels/:id to be reachable from the internet. Default "connect"
285
+ * (the adapter polls or holds a connection; no public URL needed).
286
+ */
287
+ readonly ingress?: "connect" | "webhook";
288
+ create(channel: Channel): ChannelAdapter;
289
+ }
290
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/channel-platform-hub/types.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;AAEnE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,0BAA0B;IAC1B,WAAW,EAAE,kBAAkB,CAAC;IAChC,8FAA8F;IAC9F,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,4FAA4F;IAC5F,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,mDAAmD;AACnD,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,+FAA+F;IAC/F,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,0FAA0F;AAC1F,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IA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AA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC9B,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,kFAAkF;IAClF,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAClC,iGAAiG;IACjG,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAAC;CAC1C"}
@@ -0,0 +1,23 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Channels (A-100) — chat apps (Telegram, Slack, Discord, your own app...) the
3
+ // agent talks through, like the OpenClaw / Hermes Agent gateways.
4
+ //
5
+ // A Channel is data: one connected bot account, owned by one agent, kept in
6
+ // PersistenceHub.channels so it survives a restart. A ChannelPlatform builds a
7
+ // live ChannelAdapter for it; the adapter normalises the platform's messages
8
+ // into InboundMessage and sends text back. Everything between the two —
9
+ // who may talk to the agent, which session a chat maps to, chat commands,
10
+ // splitting long replies — belongs to the agent's ChannelManager, so a new
11
+ // platform only has to implement the small ChannelAdapter contract below.
12
+ //
13
+ // The ChannelManager decides WHAT to run; the host decides HOW through a
14
+ // ChannelTurnRunner (same split as prompt jobs), so a channel turn takes the
15
+ // host's per-session lock, stop registry, traces and usage like a web chat.
16
+ //
17
+ // These are the contracts shared by the ChannelPlatformHub, the platform adapters,
18
+ // PersistenceHub.channels and each agent's ChannelManager. The turn runner and
19
+ // the agent API (AgentChannels) are the ChannelManager's, in
20
+ // multi-agent-orchestration/agent/channel-manager/types.ts.
21
+ // ---------------------------------------------------------------------------
22
+ export {};
23
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/channel-platform-hub/types.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,+EAA+E;AAC/E,kEAAkE;AAClE,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;AAC/E,6EAA6E;AAC7E,wEAAwE;AACxE,0EAA0E;AAC1E,2EAA2E;AAC3E,0EAA0E;AAC1E,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,4EAA4E;AAC5E,EAAE;AACF,mFAAmF;AACnF,+EAA+E;AAC/E,6DAA6D;AAC7D,4DAA4D;AAC5D,8EAA8E"}
@@ -1,5 +1,6 @@
1
1
  import type { Event } from "../../kernel/types.js";
2
- import type { EventBus, EventHandler, Unsubscribe } from "./types.js";
2
+ import type { SDKEventPayloadMap } from "./events.js";
3
+ import type { EventBus, EventHandler, SDKEventInput, Unsubscribe } from "./types.js";
3
4
  /**
4
5
  * Pub-sub event to decouple between services (like MediatR in .Net)
5
6
  */
@@ -7,11 +8,35 @@ export declare class EventDispatcher implements EventBus {
7
8
  readonly name = "event-dispatcher";
8
9
  readonly version = "1.0.0";
9
10
  private handlers;
11
+ private anyHandlers;
10
12
  private log;
11
- constructor(backing?: Event[]);
13
+ private readonly capacity;
14
+ /**
15
+ * @param backing optional array to store events in; it is used as-is (not copied), so it can be shared.
16
+ * @param options.capacity most events kept; the oldest are trimmed in place. 0 keeps none, Infinity is unbounded.
17
+ */
18
+ constructor(backing?: Event[], options?: {
19
+ capacity?: number;
20
+ });
12
21
  initialize(): Promise<void>;
13
- emit<T>(partial: Omit<Event<T>, "id" | "timestamp">): Event<T>;
22
+ emit<K extends keyof SDKEventPayloadMap>(event: SDKEventInput<K>): Event<SDKEventPayloadMap[K]>;
23
+ emit<T>(event: Omit<Event<T>, "id" | "timestamp">): Event<T>;
24
+ publish<K extends keyof SDKEventPayloadMap>(event: SDKEventInput<K>): Promise<Event<SDKEventPayloadMap[K]>>;
25
+ publish<T>(event: Omit<Event<T>, "id" | "timestamp">): Promise<Event<T>>;
26
+ on<K extends keyof SDKEventPayloadMap>(type: K, handler: EventHandler<SDKEventPayloadMap[K]>): Unsubscribe;
14
27
  on<T>(type: string, handler: EventHandler<T>): Unsubscribe;
28
+ onAny(handler: EventHandler): Unsubscribe;
29
+ /** Drops every subscriber. The log is kept: a shared backing array must stay replayable. */
30
+ dispose(): Promise<void>;
15
31
  replay(sessionId: string, fromTimestamp?: number): AsyncIterable<Event>;
32
+ private store;
33
+ /**
34
+ * Calls every subscriber on a snapshot (type handlers first, then onAny handlers).
35
+ * A subscriber removed during delivery before its turn is skipped. Each call is
36
+ * isolated; the returned promises never reject.
37
+ */
38
+ private deliver;
39
+ /** Logs the event type and the error only; never the event or its payload. */
40
+ private report;
16
41
  }
17
42
  //# sourceMappingURL=event-dispatcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-dispatcher.d.ts","sourceRoot":"","sources":["../../../src/components/event-handler/event-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,OAAO,WAAW;IAE3B,OAAO,CAAC,QAAQ,CAAwC;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{ capacity }. */
2
+ const DEFAULT_EVENT_LOG_CAPACITY = 10_000;
1
3
  /**
2
4
  * Pub-sub event to decouple between services (like MediatR in .Net)
3
5
  */
@@ -5,24 +7,30 @@ export class EventDispatcher {
5
7
  name = "event-dispatcher";
6
8
  version = "1.0.0";
7
9
  handlers = new Map();
10
+ anyHandlers = new Set();
8
11
  log;
9
- constructor(backing) {
12
+ capacity;
13
+ /**
14
+ * @param backing optional array to store events in; it is used as-is (not copied), so it can be shared.
15
+ * @param options.capacity most events kept; the oldest are trimmed in place. 0 keeps none, Infinity is unbounded.
16
+ */
17
+ constructor(backing, options = {}) {
18
+ const capacity = options.capacity ?? DEFAULT_EVENT_LOG_CAPACITY;
19
+ if (capacity !== Infinity && !(Number.isInteger(capacity) && capacity >= 0)) {
20
+ throw new RangeError(`EventDispatcher capacity must be a non-negative integer or Infinity, got ${String(capacity)}`);
21
+ }
22
+ this.capacity = capacity;
10
23
  this.log = backing ?? [];
11
24
  }
12
25
  async initialize() { }
13
26
  emit(partial) {
14
- const event = {
15
- ...partial,
16
- id: crypto.randomUUID(),
17
- timestamp: Date.now(),
18
- };
19
- this.log.push(event);
20
- const set = this.handlers.get(event.type);
21
- if (set) {
22
- for (const handler of set) {
23
- handler(event);
24
- }
25
- }
27
+ const event = this.store(partial);
28
+ this.deliver(event);
29
+ return event;
30
+ }
31
+ async publish(partial) {
32
+ const event = this.store(partial);
33
+ await Promise.allSettled(this.deliver(event));
26
34
  return event;
27
35
  }
28
36
  on(type, handler) {
@@ -34,6 +42,15 @@ export class EventDispatcher {
34
42
  set.add(handler);
35
43
  return () => set.delete(handler);
36
44
  }
45
+ onAny(handler) {
46
+ this.anyHandlers.add(handler);
47
+ return () => this.anyHandlers.delete(handler);
48
+ }
49
+ /** Drops every subscriber. The log is kept: a shared backing array must stay replayable. */
50
+ async dispose() {
51
+ this.handlers.clear();
52
+ this.anyHandlers.clear();
53
+ }
37
54
  async *replay(sessionId, fromTimestamp) {
38
55
  for (const event of this.log) {
39
56
  if (event.sessionId !== sessionId)
@@ -43,5 +60,52 @@ export class EventDispatcher {
43
60
  yield event;
44
61
  }
45
62
  }
63
+ store(partial) {
64
+ const event = {
65
+ ...partial,
66
+ id: crypto.randomUUID(),
67
+ timestamp: Date.now(),
68
+ };
69
+ this.log.push(event);
70
+ // Trim in place (never reassign this.log) so a shared backing array stays shared.
71
+ const excess = this.log.length - this.capacity;
72
+ if (excess > 0)
73
+ this.log.splice(0, excess);
74
+ return event;
75
+ }
76
+ /**
77
+ * Calls every subscriber on a snapshot (type handlers first, then onAny handlers).
78
+ * A subscriber removed during delivery before its turn is skipped. Each call is
79
+ * isolated; the returned promises never reject.
80
+ */
81
+ deliver(event) {
82
+ const typed = this.handlers.get(event.type);
83
+ const snapshot = [];
84
+ if (typed)
85
+ for (const h of [...typed])
86
+ snapshot.push([h, typed]);
87
+ for (const h of [...this.anyHandlers])
88
+ snapshot.push([h, this.anyHandlers]);
89
+ const pending = [];
90
+ for (const [handler, live] of snapshot) {
91
+ if (!live.has(handler))
92
+ continue;
93
+ try {
94
+ const result = handler(event);
95
+ if (result && typeof result.then === "function") {
96
+ pending.push(Promise.resolve(result).then(() => undefined, (err) => this.report(event.type, err)));
97
+ }
98
+ }
99
+ catch (err) {
100
+ this.report(event.type, err);
101
+ }
102
+ }
103
+ return pending;
104
+ }
105
+ /** Logs the event type and the error only; never the event or its payload. */
106
+ report(type, err) {
107
+ const what = err instanceof Error ? `${err.name}: ${err.message}` : typeof err;
108
+ console.warn(`[events] subscriber failed for "${type}":`, what);
109
+ }
46
110
  }
47
111
  //# sourceMappingURL=event-dispatcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-dispatcher.js","sourceRoot":"","sources":["../../../src/components/event-handler/event-dispatcher.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,OAAO,eAAe;IACjB,IAAI,GAAG,kBAAkB,CAAC;IAC1B,OAAO,GAAG,OAAO,CAAC;IAEnB,QAAQ,GAAG,IAAI,GA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