aec-agent 1.0.1 → 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 (557) 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/dreaming.d.ts.map +1 -1
  230. package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js +17 -3
  231. package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js.map +1 -1
  232. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts +7 -0
  233. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts.map +1 -1
  234. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js +189 -30
  235. package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map +1 -1
  236. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts +17 -0
  237. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts.map +1 -1
  238. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js +51 -0
  239. package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js.map +1 -1
  240. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts +5 -0
  241. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts.map +1 -1
  242. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js +16 -0
  243. package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js.map +1 -1
  244. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.d.ts +41 -0
  245. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.d.ts.map +1 -0
  246. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.js +98 -0
  247. package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.js.map +1 -0
  248. package/dist/components/multi-agent-orchestration/agent/secret-manager/types.d.ts +37 -0
  249. package/dist/components/multi-agent-orchestration/agent/secret-manager/types.d.ts.map +1 -0
  250. package/dist/components/multi-agent-orchestration/agent/secret-manager/types.js.map +1 -0
  251. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts.map +1 -1
  252. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js +1 -0
  253. package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js.map +1 -1
  254. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.d.ts +21 -0
  255. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.d.ts.map +1 -0
  256. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.js +113 -0
  257. package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.js.map +1 -0
  258. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.d.ts +52 -0
  259. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.d.ts.map +1 -0
  260. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.js +63 -0
  261. package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.js.map +1 -0
  262. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.d.ts +18 -0
  263. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.d.ts.map +1 -0
  264. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.js +56 -0
  265. package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.js.map +1 -0
  266. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.d.ts +128 -0
  267. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.d.ts.map +1 -0
  268. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js +661 -0
  269. package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js.map +1 -0
  270. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.d.ts +307 -0
  271. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.d.ts.map +1 -0
  272. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.js +60 -0
  273. package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.js.map +1 -0
  274. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts +14 -3
  275. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts.map +1 -1
  276. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js +18 -5
  277. package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js.map +1 -1
  278. package/dist/components/multi-agent-orchestration/agent/types.d.ts +84 -1
  279. package/dist/components/multi-agent-orchestration/agent/types.d.ts.map +1 -1
  280. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts +11 -4
  281. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts.map +1 -1
  282. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js +72 -4
  283. package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js.map +1 -1
  284. package/dist/components/persistence-hub/default-stores/memory-channel-store.d.ts +11 -0
  285. package/dist/components/persistence-hub/default-stores/memory-channel-store.d.ts.map +1 -0
  286. package/dist/components/persistence-hub/default-stores/memory-channel-store.js +33 -0
  287. package/dist/components/persistence-hub/default-stores/memory-channel-store.js.map +1 -0
  288. package/dist/components/persistence-hub/default-stores/memory-group-store.d.ts +21 -0
  289. package/dist/components/persistence-hub/default-stores/memory-group-store.d.ts.map +1 -0
  290. package/dist/components/persistence-hub/default-stores/memory-group-store.js +62 -0
  291. package/dist/components/persistence-hub/default-stores/memory-group-store.js.map +1 -0
  292. package/dist/components/persistence-hub/default-stores/memory-job-store.d.ts +31 -0
  293. package/dist/components/persistence-hub/default-stores/memory-job-store.d.ts.map +1 -0
  294. package/dist/components/persistence-hub/default-stores/memory-job-store.js +234 -0
  295. package/dist/components/persistence-hub/default-stores/memory-job-store.js.map +1 -0
  296. package/dist/components/persistence-hub/default-stores/memory-secret-store.d.ts +12 -0
  297. package/dist/components/persistence-hub/default-stores/memory-secret-store.d.ts.map +1 -0
  298. package/dist/components/persistence-hub/default-stores/memory-secret-store.js +38 -0
  299. package/dist/components/persistence-hub/default-stores/memory-secret-store.js.map +1 -0
  300. package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts.map +1 -1
  301. package/dist/components/persistence-hub/default-stores/memory-session-store.js +7 -0
  302. package/dist/components/persistence-hub/default-stores/memory-session-store.js.map +1 -1
  303. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.d.ts +10 -0
  304. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.d.ts.map +1 -0
  305. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.js +30 -0
  306. package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.js.map +1 -0
  307. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.d.ts +9 -0
  308. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.d.ts.map +1 -0
  309. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.js +17 -0
  310. package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.js.map +1 -0
  311. package/dist/components/persistence-hub/persistence-hub.d.ts +41 -0
  312. package/dist/components/persistence-hub/persistence-hub.d.ts.map +1 -1
  313. package/dist/components/persistence-hub/persistence-hub.js +41 -0
  314. package/dist/components/persistence-hub/persistence-hub.js.map +1 -1
  315. package/dist/components/persistence-hub/types/channel-store.d.ts +12 -0
  316. package/dist/components/persistence-hub/types/channel-store.d.ts.map +1 -0
  317. package/dist/components/persistence-hub/types/channel-store.js +2 -0
  318. package/dist/components/persistence-hub/types/channel-store.js.map +1 -0
  319. package/dist/components/persistence-hub/types/group-store.d.ts +27 -0
  320. package/dist/components/persistence-hub/types/group-store.d.ts.map +1 -0
  321. package/dist/components/persistence-hub/types/group-store.js +2 -0
  322. package/dist/components/persistence-hub/types/group-store.js.map +1 -0
  323. package/dist/components/persistence-hub/types/job-store.d.ts +112 -0
  324. package/dist/components/persistence-hub/types/job-store.d.ts.map +1 -0
  325. package/dist/components/persistence-hub/types/job-store.js +2 -0
  326. package/dist/components/persistence-hub/types/job-store.js.map +1 -0
  327. package/dist/components/persistence-hub/types/secret-store.d.ts +18 -0
  328. package/dist/components/persistence-hub/types/secret-store.d.ts.map +1 -0
  329. package/dist/components/persistence-hub/types/secret-store.js +2 -0
  330. package/dist/components/persistence-hub/types/secret-store.js.map +1 -0
  331. package/dist/components/persistence-hub/types/session-store.d.ts +5 -0
  332. package/dist/components/persistence-hub/types/session-store.d.ts.map +1 -1
  333. package/dist/components/persistence-hub/types/subagent-run-store.d.ts +11 -0
  334. package/dist/components/persistence-hub/types/subagent-run-store.d.ts.map +1 -0
  335. package/dist/components/persistence-hub/types/subagent-run-store.js +2 -0
  336. package/dist/components/persistence-hub/types/subagent-run-store.js.map +1 -0
  337. package/dist/components/persistence-hub/types/subagent-type-store.d.ts +9 -0
  338. package/dist/components/persistence-hub/types/subagent-type-store.d.ts.map +1 -0
  339. package/dist/components/persistence-hub/types/subagent-type-store.js +2 -0
  340. package/dist/components/persistence-hub/types/subagent-type-store.js.map +1 -0
  341. package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts +4 -1
  342. package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts.map +1 -1
  343. package/dist/components/sandbox-hub/docker/docker-sandbox.js +398 -1
  344. package/dist/components/sandbox-hub/docker/docker-sandbox.js.map +1 -1
  345. package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts.map +1 -1
  346. package/dist/components/sandbox-hub/docker/sandbox-helper.js +386 -5
  347. package/dist/components/sandbox-hub/docker/sandbox-helper.js.map +1 -1
  348. package/dist/components/sandbox-hub/host/host-sandbox.d.ts +16 -0
  349. package/dist/components/sandbox-hub/host/host-sandbox.d.ts.map +1 -1
  350. package/dist/components/sandbox-hub/host/host-sandbox.js +283 -2
  351. package/dist/components/sandbox-hub/host/host-sandbox.js.map +1 -1
  352. package/dist/components/sandbox-hub/sandbox-hub.d.ts +9 -0
  353. package/dist/components/sandbox-hub/sandbox-hub.d.ts.map +1 -1
  354. package/dist/components/sandbox-hub/sandbox-hub.js +18 -0
  355. package/dist/components/sandbox-hub/sandbox-hub.js.map +1 -1
  356. package/dist/components/sandbox-hub/traced-sandbox.d.ts.map +1 -1
  357. package/dist/components/sandbox-hub/traced-sandbox.js +32 -0
  358. package/dist/components/sandbox-hub/traced-sandbox.js.map +1 -1
  359. package/dist/components/sandbox-hub/types/sandbox.d.ts +106 -1
  360. package/dist/components/sandbox-hub/types/sandbox.d.ts.map +1 -1
  361. package/dist/components/sandbox-hub/types/sandbox.js +0 -13
  362. package/dist/components/sandbox-hub/types/sandbox.js.map +1 -1
  363. package/dist/components/secret-hub/envelope.d.ts +48 -0
  364. package/dist/components/secret-hub/envelope.d.ts.map +1 -0
  365. package/dist/components/secret-hub/envelope.js +157 -0
  366. package/dist/components/secret-hub/envelope.js.map +1 -0
  367. package/dist/components/secret-hub/rules.d.ts +33 -0
  368. package/dist/components/secret-hub/rules.d.ts.map +1 -0
  369. package/dist/components/secret-hub/rules.js +142 -0
  370. package/dist/components/secret-hub/rules.js.map +1 -0
  371. package/dist/components/secret-hub/secret-hub-provider.d.ts +61 -0
  372. package/dist/components/secret-hub/secret-hub-provider.d.ts.map +1 -0
  373. package/dist/components/secret-hub/secret-hub-provider.js +73 -0
  374. package/dist/components/secret-hub/secret-hub-provider.js.map +1 -0
  375. package/dist/components/secret-hub/secret-hub.d.ts +102 -0
  376. package/dist/components/secret-hub/secret-hub.d.ts.map +1 -0
  377. package/dist/components/secret-hub/secret-hub.js +267 -0
  378. package/dist/components/secret-hub/secret-hub.js.map +1 -0
  379. package/dist/components/secret-hub/types.d.ts +77 -0
  380. package/dist/components/secret-hub/types.d.ts.map +1 -0
  381. package/dist/components/secret-hub/types.js +23 -0
  382. package/dist/components/secret-hub/types.js.map +1 -0
  383. package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts +1 -1
  384. package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts.map +1 -1
  385. package/dist/components/skill-hub/built-in-skills/essential-skills.js +7 -2
  386. package/dist/components/skill-hub/built-in-skills/essential-skills.js.map +1 -1
  387. package/dist/components/skill-hub/built-in-skills/watch-and-notify.d.ts +3 -0
  388. package/dist/components/skill-hub/built-in-skills/watch-and-notify.d.ts.map +1 -0
  389. package/dist/components/skill-hub/built-in-skills/watch-and-notify.js +94 -0
  390. package/dist/components/skill-hub/built-in-skills/watch-and-notify.js.map +1 -0
  391. package/dist/components/skill-hub/skill-hub.d.ts +9 -1
  392. package/dist/components/skill-hub/skill-hub.d.ts.map +1 -1
  393. package/dist/components/skill-hub/skill-hub.js +11 -1
  394. package/dist/components/skill-hub/skill-hub.js.map +1 -1
  395. package/dist/components/subagent-hub/built-in-types.d.ts +3 -0
  396. package/dist/components/subagent-hub/built-in-types.d.ts.map +1 -0
  397. package/dist/components/subagent-hub/built-in-types.js +24 -0
  398. package/dist/components/subagent-hub/built-in-types.js.map +1 -0
  399. package/dist/components/subagent-hub/subagent-hub.d.ts +41 -0
  400. package/dist/components/subagent-hub/subagent-hub.d.ts.map +1 -0
  401. package/dist/components/subagent-hub/subagent-hub.js +158 -0
  402. package/dist/components/subagent-hub/subagent-hub.js.map +1 -0
  403. package/dist/components/subagent-hub/types.d.ts +40 -0
  404. package/dist/components/subagent-hub/types.d.ts.map +1 -0
  405. package/dist/components/subagent-hub/types.js +8 -0
  406. package/dist/components/subagent-hub/types.js.map +1 -0
  407. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts +4 -1
  408. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts.map +1 -1
  409. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js +4 -0
  410. package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js.map +1 -1
  411. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts.map +1 -1
  412. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js +4 -1
  413. package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js.map +1 -1
  414. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts.map +1 -1
  415. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js +4 -1
  416. package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js.map +1 -1
  417. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.d.ts +10 -0
  418. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.d.ts.map +1 -0
  419. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.js +13 -0
  420. package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.js.map +1 -0
  421. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.d.ts +60 -0
  422. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.d.ts.map +1 -0
  423. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.js +240 -0
  424. package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.js.map +1 -0
  425. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.d.ts +14 -0
  426. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.d.ts.map +1 -0
  427. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.js +36 -0
  428. package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.js.map +1 -0
  429. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.d.ts +32 -0
  430. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.d.ts.map +1 -0
  431. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.js +458 -0
  432. package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.js.map +1 -0
  433. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.d.ts +9 -0
  434. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.d.ts.map +1 -0
  435. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.js +20 -0
  436. package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.js.map +1 -0
  437. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.d.ts +12 -0
  438. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.d.ts.map +1 -0
  439. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.js +57 -0
  440. package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.js.map +1 -0
  441. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.d.ts +15 -0
  442. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.d.ts.map +1 -0
  443. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.js +80 -0
  444. package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.js.map +1 -0
  445. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.d.ts +53 -0
  446. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.d.ts.map +1 -0
  447. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.js +100 -0
  448. package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.js.map +1 -0
  449. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.d.ts +14 -0
  450. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.d.ts.map +1 -0
  451. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.js +63 -0
  452. package/dist/components/tool-hub/built-in-tools/preview/preview-tool.js.map +1 -0
  453. package/dist/components/tool-hub/built-in-tools/preview/service-tools.d.ts +33 -0
  454. package/dist/components/tool-hub/built-in-tools/preview/service-tools.d.ts.map +1 -0
  455. package/dist/components/tool-hub/built-in-tools/preview/service-tools.js +180 -0
  456. package/dist/components/tool-hub/built-in-tools/preview/service-tools.js.map +1 -0
  457. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.d.ts +6 -0
  458. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.d.ts.map +1 -0
  459. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.js +9 -0
  460. package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.js.map +1 -0
  461. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.d.ts +12 -0
  462. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.d.ts.map +1 -0
  463. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.js +30 -0
  464. package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.js.map +1 -0
  465. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.d.ts +22 -0
  466. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.d.ts.map +1 -0
  467. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.js +113 -0
  468. package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.js.map +1 -0
  469. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.d.ts +9 -0
  470. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.d.ts.map +1 -0
  471. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.js +29 -0
  472. package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.js.map +1 -0
  473. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.d.ts +27 -0
  474. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.d.ts.map +1 -0
  475. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.js +112 -0
  476. package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.js.map +1 -0
  477. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.d.ts +43 -0
  478. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.d.ts.map +1 -0
  479. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.js +234 -0
  480. package/dist/components/tool-hub/built-in-tools/web/http-request-tool.js.map +1 -0
  481. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts.map +1 -1
  482. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js +2 -0
  483. package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js.map +1 -1
  484. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts.map +1 -1
  485. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js +2 -0
  486. package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js.map +1 -1
  487. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts.map +1 -1
  488. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js +9 -1
  489. package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js.map +1 -1
  490. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts.map +1 -1
  491. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js +9 -2
  492. package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js.map +1 -1
  493. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts +17 -0
  494. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts.map +1 -1
  495. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js +29 -0
  496. package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js.map +1 -1
  497. package/dist/components/tool-hub/tool-links.d.ts +9 -0
  498. package/dist/components/tool-hub/tool-links.d.ts.map +1 -0
  499. package/dist/components/tool-hub/tool-links.js +11 -0
  500. package/dist/components/tool-hub/tool-links.js.map +1 -0
  501. package/dist/components/tool-hub/types.d.ts +101 -1
  502. package/dist/components/tool-hub/types.d.ts.map +1 -1
  503. package/dist/index.d.ts +109 -8
  504. package/dist/index.d.ts.map +1 -1
  505. package/dist/index.js +68 -0
  506. package/dist/index.js.map +1 -1
  507. package/dist/kernel/errors/channel-error.d.ts +24 -0
  508. package/dist/kernel/errors/channel-error.d.ts.map +1 -0
  509. package/dist/kernel/errors/channel-error.js +15 -0
  510. package/dist/kernel/errors/channel-error.js.map +1 -0
  511. package/dist/kernel/errors/command-error.d.ts +12 -0
  512. package/dist/kernel/errors/command-error.d.ts.map +1 -0
  513. package/dist/kernel/errors/command-error.js +11 -0
  514. package/dist/kernel/errors/command-error.js.map +1 -0
  515. package/dist/kernel/errors/group-error.d.ts +15 -0
  516. package/dist/kernel/errors/group-error.d.ts.map +1 -0
  517. package/dist/kernel/errors/group-error.js +10 -0
  518. package/dist/kernel/errors/group-error.js.map +1 -0
  519. package/dist/kernel/errors/job-error.d.ts +23 -0
  520. package/dist/kernel/errors/job-error.d.ts.map +1 -0
  521. package/dist/kernel/errors/job-error.js +15 -0
  522. package/dist/kernel/errors/job-error.js.map +1 -0
  523. package/dist/kernel/errors/secret-error.d.ts +19 -0
  524. package/dist/kernel/errors/secret-error.d.ts.map +1 -0
  525. package/dist/kernel/errors/secret-error.js +10 -0
  526. package/dist/kernel/errors/secret-error.js.map +1 -0
  527. package/dist/kernel/errors/session-error.d.ts +5 -1
  528. package/dist/kernel/errors/session-error.d.ts.map +1 -1
  529. package/dist/kernel/errors/session-error.js.map +1 -1
  530. package/dist/kernel/errors/subagent-error.d.ts +19 -0
  531. package/dist/kernel/errors/subagent-error.d.ts.map +1 -0
  532. package/dist/kernel/errors/subagent-error.js +10 -0
  533. package/dist/kernel/errors/subagent-error.js.map +1 -0
  534. package/dist/kernel/interfaces/kernel.d.ts +15 -0
  535. package/dist/kernel/interfaces/kernel.d.ts.map +1 -1
  536. package/dist/kernel/types.d.ts +80 -1
  537. package/dist/kernel/types.d.ts.map +1 -1
  538. package/dist/testing/fake-channel.d.ts +60 -0
  539. package/dist/testing/fake-channel.d.ts.map +1 -0
  540. package/dist/testing/fake-channel.js +135 -0
  541. package/dist/testing/fake-channel.js.map +1 -0
  542. package/dist/testing/in-memory-sandbox.d.ts +4 -1
  543. package/dist/testing/in-memory-sandbox.d.ts.map +1 -1
  544. package/dist/testing/in-memory-sandbox.js +63 -3
  545. package/dist/testing/in-memory-sandbox.js.map +1 -1
  546. package/dist/testing/mock-session-store.d.ts.map +1 -1
  547. package/dist/testing/mock-session-store.js +7 -0
  548. package/dist/testing/mock-session-store.js.map +1 -1
  549. package/package.json +2 -1
  550. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts +0 -38
  551. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts.map +0 -1
  552. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js +0 -155
  553. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js.map +0 -1
  554. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts +0 -27
  555. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts.map +0 -1
  556. package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js.map +0 -1
  557. /package/dist/components/multi-agent-orchestration/agent/{scheduled-job-manager → secret-manager}/types.js +0 -0
@@ -1,4 +1,4 @@
1
- import type { AgentProfile } from "./components/multi-agent-orchestration/agent/types.js";
1
+ import type { AgentDeps, AgentProfile } from "./components/multi-agent-orchestration/agent/types.js";
2
2
  import type { Kernel } from "./kernel/interfaces/kernel.js";
3
3
  import type { LLMModelProvider } from "./components/llm-provider-hub/types.js";
4
4
  import type { SandboxProvider } from "./components/sandbox-hub/types/provider.js";
@@ -14,13 +14,26 @@ import { TraceService } from "./components/trace-service/trace-service.js";
14
14
  import { SandboxHub } from "./components/sandbox-hub/sandbox-hub.js";
15
15
  import { ArtifactHub } from "./components/artifact-hub/artifact-hub.js";
16
16
  import type { Agent } from "./components/multi-agent-orchestration/agent/agent.js";
17
+ import type { ChannelPlatform, ChannelWebhookRequest, ChannelWebhookResponse } from "./components/channel-platform-hub/types.js";
18
+ import type { ChannelTurnRunner } from "./components/multi-agent-orchestration/agent/channel-manager/types.js";
19
+ import { ChannelPlatformHub } from "./components/channel-platform-hub/channel-platform-hub.js";
20
+ import type { JobRunner, JobWebhookRequest, JobWebhookResponse } from "./components/multi-agent-orchestration/agent/job-manager/types.js";
21
+ import type { SubagentRunner, SubagentScopes } from "./components/multi-agent-orchestration/agent/subagent-manager/types.js";
22
+ import { GroupHub } from "./components/group-hub/group-hub.js";
23
+ import type { GroupMemberRunner } from "./components/group-hub/types.js";
24
+ import { SubagentHub } from "./components/subagent-hub/subagent-hub.js";
25
+ import type { SubagentTypeDefinition } from "./components/subagent-hub/types.js";
26
+ import { SecretHub } from "./components/secret-hub/secret-hub.js";
27
+ import type { SecretHubProvider } from "./components/secret-hub/secret-hub-provider.js";
28
+ import type { HostCommand } from "./components/multi-agent-orchestration/agent/command-manager/command-manager.js";
29
+ import type { CommandSpec, RegisterCommandOptions } from "./components/multi-agent-orchestration/agent/command-manager/types.js";
17
30
  /**
18
31
  * Centralized AI Agent service, you can add more tool, more skill, more llm provider, choose specific session store (postgres, redis, ...)
19
32
  * for example with project A use Bedrock for LLM Provider and postgres for session store, project B use BytePlus or Claude for LLM Provider and Redis for session store
20
33
  * so this structure can adapt that scenario.
21
34
  * AgentCore can be created by project and agents inside it are a collection of agents created by user in that project.
22
35
  */
23
- export declare class AgentCore implements Kernel {
36
+ export declare class AgentCore implements Kernel, AgentDeps {
24
37
  /**
25
38
  * Pub-sub event to decouple between services (like MediatR in .Net)
26
39
  */
@@ -59,6 +72,62 @@ export declare class AgentCore implements Kernel {
59
72
  * Centralized persistence — agents, providers, and sessions in one hub
60
73
  */
61
74
  persistence: PersistenceHub;
75
+ /**
76
+ * Global hub for channels — the chat platforms (Telegram, your own app...) agents'
77
+ * channels connect through (A-100), and which bot each channel holds.
78
+ * Register a platform with useChannelPlatform; each agent's channels are managed by its ChannelManager.
79
+ */
80
+ readonly channelPlatformHub: ChannelPlatformHub;
81
+ /**
82
+ * Global library of subagent types (A-105) — built-in types, app types (useSubagentType) and
83
+ * custom ones users create (PersistenceHub.subagentTypes). Agents enable types by name.
84
+ */
85
+ readonly subagentHub: SubagentHub;
86
+ /**
87
+ * Global hub for secrets (A-101) — API keys and tokens agents use without the model seeing
88
+ * them. Seals values with envelope encryption under the SecretHub provider (useSecretHubProvider) into
89
+ * PersistenceHub.secrets; hosts also seal their own credential columns with it.
90
+ */
91
+ readonly secretHub: SecretHub;
92
+ /**
93
+ * Group chats (A-106) — several agents in one conversation: the groups, their sessions and
94
+ * threads, and the group turns (a lead routes the work, everyone answers, or only the
95
+ * members the user addresses). Stored in PersistenceHub.groups / groupMessages.
96
+ */
97
+ readonly groups: GroupHub;
98
+ /** A-106: spawn scopes of group leads while they lead a turn (AgentDeps) — the GroupHub's. */
99
+ readonly subagentScopes: SubagentScopes;
100
+ /**
101
+ * Runs member turns of group chats (A-106) — set with useGroupRunner so a member turn takes
102
+ * the host's per-session lock, stop registry, traces and usage like its chat routes.
103
+ * Unset = the member's own chatStream().
104
+ */
105
+ groupRunner?: GroupMemberRunner;
106
+ /**
107
+ * Runs channel turns for every agent (A-100) — set with useChannelTurnRunner so a chat-app
108
+ * message takes the host's per-session lock, stop registry and usage like its chat routes.
109
+ */
110
+ channelTurnRunner?: ChannelTurnRunner;
111
+ /**
112
+ * Runs prompt-job turns for every agent (A-69) — set with useScheduledJobRunner so
113
+ * scheduled runs share the host's run lock. Unset = each agent's default runner.
114
+ * A-97: the agent itself now orders turns per session, so the runner is about the
115
+ * host's bookkeeping (its per-session lock, stop registry, traces, usage).
116
+ * Runs trigger turns for every agent (A-70) — set with useTriggerRunner so a run takes
117
+ * the host's per-session lock, stop registry, traces and usage like its chat routes.
118
+ * Update (A-126): one runner for every job run (schedule, event, webhook) — useJobRunner.
119
+ */
120
+ jobRunner?: JobRunner;
121
+ /**
122
+ * Runs subagent turns for every agent (A-105) — set with useSubagentRunner so a child turn
123
+ * takes the host's per-session lock, stop registry, traces and usage like its chat routes.
124
+ * Unset = the child agent's own chat().
125
+ */
126
+ subagentRunner?: SubagentRunner;
127
+ /** A-136: the host's slash commands (useCommand), offered by every agent. */
128
+ readonly hostCommands: HostCommand[];
129
+ /** Set once startJobs() ran: agents spawned afterwards start their jobs too. */
130
+ private unsubscribeJobStart?;
62
131
  constructor();
63
132
  usePersistence(hub: PersistenceHub): void;
64
133
  useLLMProvider(adapter: LLMModelProvider): void;
@@ -66,13 +135,64 @@ export declare class AgentCore implements Kernel {
66
135
  /** Register an app skill (SKILL.md + files). Read-only at runtime; agents enable it via profile.skills. */
67
136
  useSkill(skill: SkillPackage): void;
68
137
  useSandboxProvider(provider: SandboxProvider): void;
138
+ /**
139
+ * Run prompt-job turns through the host (A-69), e.g. behind the same per-agent lock as its chat routes.
140
+ * A-97: hosts now lock per session; a scheduled run waits only for turns of its own session.
141
+ * Update (A-126): every job run (schedule, event, webhook) — was useScheduledJobRunner + useTriggerRunner.
142
+ */
143
+ useJobRunner(runner: JobRunner): void;
144
+ /** Register an app subagent type (A-105). Read-only at runtime; agents enable it via profile.subagents.types. */
145
+ useSubagentType(definition: SubagentTypeDefinition): void;
146
+ /**
147
+ * Set who holds the master keys secrets are sealed with (A-101): LocalSecretHubProvider (a key
148
+ * from the host's environment), or the host's KMS adapter (AWS KMS, Vault…).
149
+ */
150
+ useSecretHubProvider(provider: SecretHubProvider): void;
151
+ /** Run subagent turns through the host (A-105), e.g. behind the same per-session lock as its chat routes. */
152
+ useSubagentRunner(runner: SubagentRunner): void;
153
+ /** Run group chat member turns through the host (A-106), e.g. behind the same per-session lock as its chat routes. */
154
+ useGroupRunner(runner: GroupMemberRunner): void;
155
+ /** Add a chat platform agents' channels can use (A-100), e.g. telegramPlatform(). Replaces one of the same name. */
156
+ useChannelPlatform(platform: ChannelPlatform): void;
157
+ /** Run channel turns through the host (A-100), e.g. behind the same per-session lock as its chat routes. */
158
+ useChannelTurnRunner(runner: ChannelTurnRunner): void;
159
+ /**
160
+ * A-136: add a slash command every agent offers (web app and chat apps alike). Throws
161
+ * CommandError "conflict" when its name or an alias is taken by a built-in or another host
162
+ * command — { replace: true } replaces a built-in marked replaceable (/usage). "invalid"
163
+ * for a bad name or a spec without exactly one of run / prompt.
164
+ */
165
+ useCommand(spec: CommandSpec, options?: RegisterCommandOptions): void;
166
+ /**
167
+ * Route a webhook delivery to the trigger it is for (A-70), e.g. from the host's
168
+ * POST /webhooks/triggers/:id. The trigger checks the signature on the raw body and
169
+ * the promise resolves only after the event is stored, so the host answers 2xx only
170
+ * for a delivery it will not lose (a store failure rejects: answer 5xx).
171
+ * 404 when no running agent owns the trigger.
172
+ * Update (A-126): to the webhook job it is for (POST /webhooks/jobs/:id).
173
+ */
174
+ handleJobWebhook(jobId: string, request: JobWebhookRequest): Promise<JobWebhookResponse>;
175
+ /**
176
+ * Route an inbound webhook request to the channel it is for (A-100 phase 3), e.g. from
177
+ * the host's POST /webhooks/channels/:id. Used by platforms that push messages to the
178
+ * host (Microsoft Teams). 404 when no running agent owns the channel.
179
+ */
180
+ handleChannelWebhook(channelId: string, request: ChannelWebhookRequest): Promise<ChannelWebhookResponse>;
181
+ /** Connect every agent's stored, enabled channels (A-100). Call once the host is ready to run turns. */
182
+ startChannels(): Promise<void>;
183
+ /**
184
+ * Load every agent's stored prompt jobs and arm their timers (A-69). Call once the host is ready to run turns.
185
+ * Start every agent's trigger worker (A-70): queued runs, retries and runs a previous
186
+ * process left. Call once the host is ready to run turns (tools, providers, runner set).
187
+ * Update (A-126): one call for both — every agent's jobs (was startScheduledJobs + startTriggers).
188
+ */
189
+ startJobs(): Promise<void>;
69
190
  getLLMModelProvider(name?: string): LLMModelProvider;
70
191
  getLLMModelProviders(): LLMModelProvider[];
71
192
  getTool(name: string): ToolHandler | undefined;
72
193
  getTools(): ToolHandler[];
73
194
  getSkill(name: string): Promise<Skill | undefined>;
74
195
  getSkills(): Promise<Skill[]>;
75
- private disableSkillForAllAgents;
76
196
  spawnAgent(profile: AgentProfile): Agent;
77
197
  removeAgent(profileId: string): Promise<void>;
78
198
  initialize(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-core.d.ts","sourceRoot":"","sources":["../src/agent-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE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AC,CAK7G;IAED,wGAAwG;IAClG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAMnC;IAED;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAgB/B;IAID,mBAAmB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAInD;IAED,oBAAoB,IAAI,gBAAgB,EAAE,CAEzC;IAED,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE7C;IAED,QAAQ,IAAI,WAAW,EAAE,CAExB;IAED,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAEjD;IAED,SAAS,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAE5B;IAID,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,KAAK,CAKvC;IAEK,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BlD;IAIK,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAQhC;IAEK,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAU7B;CACF"}
@@ -1,5 +1,6 @@
1
1
  import { ESSENTIAL_SKILLS } from "./components/skill-hub/built-in-skills/essential-skills.js";
2
2
  import { EventDispatcher } from "./components/event-handler/event-dispatcher.js";
3
+ import { SDKEventType } from "./components/event-handler/events.js";
3
4
  import { LLMProviderHub } from "./components/llm-provider-hub/llm-provider-hub.js";
4
5
  import { MultiAgentOrchestration } from "./components/multi-agent-orchestration/multi-agent-orchestration.js";
5
6
  import { SkillHub } from "./components/skill-hub/skill-hub.js";
@@ -8,6 +9,13 @@ import { PersistenceHub } from "./components/persistence-hub/persistence-hub.js"
8
9
  import { TraceService } from "./components/trace-service/trace-service.js";
9
10
  import { SandboxHub } from "./components/sandbox-hub/sandbox-hub.js";
10
11
  import { ArtifactHub } from "./components/artifact-hub/artifact-hub.js";
12
+ import { ChannelPlatformHub } from "./components/channel-platform-hub/channel-platform-hub.js";
13
+ import { GroupHub } from "./components/group-hub/group-hub.js";
14
+ import { SubagentHub } from "./components/subagent-hub/subagent-hub.js";
15
+ import { BUILT_IN_SUBAGENT_TYPES } from "./components/subagent-hub/built-in-types.js";
16
+ import { SecretHub } from "./components/secret-hub/secret-hub.js";
17
+ import { checkClash, validateSpec } from "./components/multi-agent-orchestration/agent/command-manager/command-manager.js";
18
+ import { BUILT_IN_COMMAND_SPECS } from "./components/multi-agent-orchestration/agent/command-manager/built-in-commands.js";
11
19
  /**
12
20
  * Centralized AI Agent service, you can add more tool, more skill, more llm provider, choose specific session store (postgres, redis, ...)
13
21
  * for example with project A use Bedrock for LLM Provider and postgres for session store, project B use BytePlus or Claude for LLM Provider and Redis for session store
@@ -53,30 +61,105 @@ export class AgentCore {
53
61
  * Centralized persistence — agents, providers, and sessions in one hub
54
62
  */
55
63
  persistence;
64
+ /**
65
+ * Global hub for channels — the chat platforms (Telegram, your own app...) agents'
66
+ * channels connect through (A-100), and which bot each channel holds.
67
+ * Register a platform with useChannelPlatform; each agent's channels are managed by its ChannelManager.
68
+ */
69
+ channelPlatformHub;
70
+ /**
71
+ * Global library of subagent types (A-105) — built-in types, app types (useSubagentType) and
72
+ * custom ones users create (PersistenceHub.subagentTypes). Agents enable types by name.
73
+ */
74
+ subagentHub;
75
+ /**
76
+ * Global hub for secrets (A-101) — API keys and tokens agents use without the model seeing
77
+ * them. Seals values with envelope encryption under the SecretHub provider (useSecretHubProvider) into
78
+ * PersistenceHub.secrets; hosts also seal their own credential columns with it.
79
+ */
80
+ secretHub;
81
+ /**
82
+ * Group chats (A-106) — several agents in one conversation: the groups, their sessions and
83
+ * threads, and the group turns (a lead routes the work, everyone answers, or only the
84
+ * members the user addresses). Stored in PersistenceHub.groups / groupMessages.
85
+ */
86
+ groups;
87
+ /** A-106: spawn scopes of group leads while they lead a turn (AgentDeps) — the GroupHub's. */
88
+ subagentScopes;
89
+ /**
90
+ * Runs member turns of group chats (A-106) — set with useGroupRunner so a member turn takes
91
+ * the host's per-session lock, stop registry, traces and usage like its chat routes.
92
+ * Unset = the member's own chatStream().
93
+ */
94
+ groupRunner;
95
+ /**
96
+ * Runs channel turns for every agent (A-100) — set with useChannelTurnRunner so a chat-app
97
+ * message takes the host's per-session lock, stop registry and usage like its chat routes.
98
+ */
99
+ channelTurnRunner;
100
+ /**
101
+ * Runs prompt-job turns for every agent (A-69) — set with useScheduledJobRunner so
102
+ * scheduled runs share the host's run lock. Unset = each agent's default runner.
103
+ * A-97: the agent itself now orders turns per session, so the runner is about the
104
+ * host's bookkeeping (its per-session lock, stop registry, traces, usage).
105
+ * Runs trigger turns for every agent (A-70) — set with useTriggerRunner so a run takes
106
+ * the host's per-session lock, stop registry, traces and usage like its chat routes.
107
+ * Update (A-126): one runner for every job run (schedule, event, webhook) — useJobRunner.
108
+ */
109
+ jobRunner;
110
+ /**
111
+ * Runs subagent turns for every agent (A-105) — set with useSubagentRunner so a child turn
112
+ * takes the host's per-session lock, stop registry, traces and usage like its chat routes.
113
+ * Unset = the child agent's own chat().
114
+ */
115
+ subagentRunner;
116
+ /** A-136: the host's slash commands (useCommand), offered by every agent. */
117
+ hostCommands = [];
118
+ /** Set once startJobs() ran: agents spawned afterwards start their jobs too. */
119
+ unsubscribeJobStart;
56
120
  constructor() {
57
121
  this.eventBus = new EventDispatcher();
58
122
  this.llmProviderHub = new LLMProviderHub();
59
123
  this.toolHub = new ToolHub();
60
- this.skillHub = new SkillHub(() => this.persistence.skills);
124
+ this.skillHub = new SkillHub(() => this.persistence.skills, { eventBus: this.eventBus });
61
125
  this.agents = new MultiAgentOrchestration(this);
62
126
  this.traceService = new TraceService();
63
- this.sandboxHub = new SandboxHub();
127
+ this.sandboxHub = new SandboxHub({ eventBus: this.eventBus });
64
128
  this.persistence = new PersistenceHub();
129
+ this.channelPlatformHub = new ChannelPlatformHub();
130
+ // A-105: built-in subagent types (general-purpose, researcher); custom ones are read from the store on use.
131
+ this.subagentHub = new SubagentHub(() => this.persistence.subagentTypes, { eventBus: this.eventBus });
132
+ for (const type of BUILT_IN_SUBAGENT_TYPES)
133
+ this.subagentHub.register(type, "built-in");
134
+ // A-101: no SecretHub provider until the host sets one — values are then stored unencrypted (warned once).
135
+ this.secretHub = new SecretHub(() => this.persistence.secrets, { eventBus: this.eventBus });
65
136
  // Resolved on every call, so usePersistence() after startup reaches views already handed out.
66
- this.artifactHub = new ArtifactHub(() => this.persistence.artifacts);
137
+ this.artifactHub = new ArtifactHub(() => this.persistence.artifacts, { eventBus: this.eventBus });
138
+ // A-106: group chats over the agents above; stores resolved on every call (usePersistence).
139
+ this.groups = new GroupHub({
140
+ eventBus: this.eventBus,
141
+ getStore: () => this.persistence.groups,
142
+ getMessages: () => this.persistence.groupMessages,
143
+ getSessions: () => this.persistence.sessions,
144
+ getMemberMessages: () => [this.persistence.messages, this.persistence.compactedMessages],
145
+ getAgents: () => this.agents,
146
+ getRunner: () => this.groupRunner,
147
+ });
148
+ this.subagentScopes = this.groups.scopes;
67
149
  // Essential skills (skill-creator, plan, web-research) ship with the SDK; an agent
68
150
  // uses one when it is in its profile.skills and it has the tools the skill requires.
151
+ // Update (A-70): plus watch-and-react (needs schedule_job and manage_trigger).
152
+ // Update (A-126): watch-and-notify instead (needs manage_job).
69
153
  for (const skill of ESSENTIAL_SKILLS)
70
154
  this.skillHub.register(skill, "built-in");
71
- // A deleted skill is disabled for every agent that had it — whoever deleted it (an agent
72
- // through skill_manage, or the host) — so no profile keeps pointing at a missing skill.
73
- this.skillHub.onDeleted((name) => this.disableSkillForAllAgents(name));
74
155
  }
75
156
  // ── Registration ──
76
157
  usePersistence(hub) {
77
158
  this.persistence = hub;
78
159
  // Custom skills live in the new hub's skill store.
79
160
  this.skillHub.reload();
161
+ // A-105: and custom subagent types.
162
+ this.subagentHub.reload();
80
163
  }
81
164
  useLLMProvider(adapter) {
82
165
  this.llmProviderHub.register(adapter);
@@ -91,6 +174,113 @@ export class AgentCore {
91
174
  useSandboxProvider(provider) {
92
175
  this.sandboxHub.register(provider);
93
176
  }
177
+ /**
178
+ * Run prompt-job turns through the host (A-69), e.g. behind the same per-agent lock as its chat routes.
179
+ * A-97: hosts now lock per session; a scheduled run waits only for turns of its own session.
180
+ * Update (A-126): every job run (schedule, event, webhook) — was useScheduledJobRunner + useTriggerRunner.
181
+ */
182
+ useJobRunner(runner) {
183
+ this.jobRunner = runner;
184
+ }
185
+ /** Register an app subagent type (A-105). Read-only at runtime; agents enable it via profile.subagents.types. */
186
+ useSubagentType(definition) {
187
+ this.subagentHub.register(definition, "app");
188
+ }
189
+ /**
190
+ * Set who holds the master keys secrets are sealed with (A-101): LocalSecretHubProvider (a key
191
+ * from the host's environment), or the host's KMS adapter (AWS KMS, Vault…).
192
+ */
193
+ useSecretHubProvider(provider) {
194
+ this.secretHub.useSecretHubProvider(provider);
195
+ }
196
+ /** Run subagent turns through the host (A-105), e.g. behind the same per-session lock as its chat routes. */
197
+ useSubagentRunner(runner) {
198
+ this.subagentRunner = runner;
199
+ }
200
+ /** Run group chat member turns through the host (A-106), e.g. behind the same per-session lock as its chat routes. */
201
+ useGroupRunner(runner) {
202
+ this.groupRunner = runner;
203
+ }
204
+ /** Add a chat platform agents' channels can use (A-100), e.g. telegramPlatform(). Replaces one of the same name. */
205
+ useChannelPlatform(platform) {
206
+ this.channelPlatformHub.register(platform);
207
+ }
208
+ /** Run channel turns through the host (A-100), e.g. behind the same per-session lock as its chat routes. */
209
+ useChannelTurnRunner(runner) {
210
+ this.channelTurnRunner = runner;
211
+ }
212
+ /**
213
+ * A-136: add a slash command every agent offers (web app and chat apps alike). Throws
214
+ * CommandError "conflict" when its name or an alias is taken by a built-in or another host
215
+ * command — { replace: true } replaces a built-in marked replaceable (/usage). "invalid"
216
+ * for a bad name or a spec without exactly one of run / prompt.
217
+ */
218
+ useCommand(spec, options) {
219
+ validateSpec(spec);
220
+ checkClash(spec, options, [
221
+ ...BUILT_IN_COMMAND_SPECS.map((s) => ({ spec: { ...s, prompt: "" }, source: "built-in" })),
222
+ ...this.hostCommands.map((h) => ({ spec: h.spec, source: "host" })),
223
+ ], "host");
224
+ this.hostCommands.push({ spec, ...(options ? { options } : {}) });
225
+ }
226
+ /**
227
+ * Route a webhook delivery to the trigger it is for (A-70), e.g. from the host's
228
+ * POST /webhooks/triggers/:id. The trigger checks the signature on the raw body and
229
+ * the promise resolves only after the event is stored, so the host answers 2xx only
230
+ * for a delivery it will not lose (a store failure rejects: answer 5xx).
231
+ * 404 when no running agent owns the trigger.
232
+ * Update (A-126): to the webhook job it is for (POST /webhooks/jobs/:id).
233
+ */
234
+ async handleJobWebhook(jobId, request) {
235
+ const job = await this.persistence.jobs.get(jobId);
236
+ const agent = job ? this.agents.get(job.agentId) : undefined;
237
+ if (!agent)
238
+ return { status: 404, body: { error: "Job not found" } };
239
+ return agent.jobs.handleWebhook(jobId, request);
240
+ }
241
+ /**
242
+ * Route an inbound webhook request to the channel it is for (A-100 phase 3), e.g. from
243
+ * the host's POST /webhooks/channels/:id. Used by platforms that push messages to the
244
+ * host (Microsoft Teams). 404 when no running agent owns the channel.
245
+ */
246
+ async handleChannelWebhook(channelId, request) {
247
+ const channel = await this.persistence.channels.get(channelId);
248
+ const agent = channel ? this.agents.get(channel.agentId) : undefined;
249
+ if (!agent)
250
+ return { status: 404, body: { error: "Channel not found" } };
251
+ return agent.channels.handleWebhook(channelId, request);
252
+ }
253
+ /** Connect every agent's stored, enabled channels (A-100). Call once the host is ready to run turns. */
254
+ async startChannels() {
255
+ for (const agent of this.agents.list()) {
256
+ await agent.startChannels().catch((err) => {
257
+ console.error(`[channels] agent=${agent.profile.id} could not start its channels:`, err);
258
+ });
259
+ }
260
+ }
261
+ /**
262
+ * Load every agent's stored prompt jobs and arm their timers (A-69). Call once the host is ready to run turns.
263
+ * Start every agent's trigger worker (A-70): queued runs, retries and runs a previous
264
+ * process left. Call once the host is ready to run turns (tools, providers, runner set).
265
+ * Update (A-126): one call for both — every agent's jobs (was startScheduledJobs + startTriggers).
266
+ */
267
+ async startJobs() {
268
+ // An agent spawned later starts its trigger worker when it is spawned (agent:spawned,
269
+ // emitted by spawnAgent) — the loop below only reaches the agents that exist now.
270
+ if (!this.unsubscribeJobStart) {
271
+ this.unsubscribeJobStart = this.eventBus.on(SDKEventType.AgentSpawned, (event) => {
272
+ const agent = this.agents.get(event.payload.agentId);
273
+ agent?.startJobs().catch((err) => {
274
+ console.error(`[jobs] agent=${event.payload.agentId} could not start its jobs:`, err);
275
+ });
276
+ });
277
+ }
278
+ for (const agent of this.agents.list()) {
279
+ await agent.startJobs().catch((err) => {
280
+ console.error(`[jobs] agent=${agent.profile.id} could not start its jobs:`, err);
281
+ });
282
+ }
283
+ }
94
284
  // ── Getters ──
95
285
  getLLMModelProvider(name) {
96
286
  return name
@@ -113,19 +303,10 @@ export class AgentCore {
113
303
  return this.skillHub.list();
114
304
  }
115
305
  // ── Agent management ──
116
- disableSkillForAllAgents(name) {
117
- for (const agent of this.agents.list()) {
118
- if (!agent.profile.skills.includes(name))
119
- continue;
120
- agent.updateSkills(agent.profile.skills.filter((s) => s !== name));
121
- void this.persistence.agents.save(agent.profile).catch((err) => {
122
- console.warn(`[skills] could not save agent ${agent.profile.id} after deleting skill "${name}":`, err);
123
- });
124
- }
125
- }
126
306
  spawnAgent(profile) {
127
307
  const agent = this.agents.spawn(profile);
128
308
  void this.persistence.agents.save(profile);
309
+ this.eventBus.emit({ type: SDKEventType.AgentSpawned, sessionId: "", payload: { agentId: profile.id } });
129
310
  return agent;
130
311
  }
131
312
  async removeAgent(profileId) {
@@ -136,15 +317,27 @@ export class AgentCore {
136
317
  console.warn(`[agent] agent=${profileId} did not stop cleanly; its own sandbox files may be left behind:`, err);
137
318
  });
138
319
  await this.persistence.agents.delete(profileId);
139
- // ...and its folder in the shared sandbox by the hub.
140
- await this.sandboxHub.releaseAgentData(profileId).catch((err) => {
141
- console.warn(`[sandbox] agent=${profileId} could not delete sandbox files:`, err);
320
+ // Its prompt jobs and their run history go with it (A-69); dispose above stopped its timers.
321
+ // Its triggers, their inbox and run history go with it (A-70); dispose above stopped its runs.
322
+ // Update (A-126): its jobs of every kind, with their inbox and run history.
323
+ await this.persistence.jobs.deleteByAgent(profileId).catch((err) => {
324
+ console.warn(`[agent] agent=${profileId} could not delete its jobs:`, err);
325
+ });
326
+ // Its channels go with it (A-100); dispose above disconnected them. Their chats' sessions stay.
327
+ await this.persistence.channels.deleteByAgent(profileId).catch((err) => {
328
+ console.warn(`[agent] agent=${profileId} could not delete its channels:`, err);
329
+ });
330
+ // The child runs it started go with it (A-105); the children's own sessions stay with the child agents.
331
+ // Other agents that could delegate to it drop it from their allowlists (MultiAgentOrchestration, on agent:removed).
332
+ await this.persistence.subagentRuns.deleteByAgent(profileId).catch((err) => {
333
+ console.warn(`[agent] agent=${profileId} could not delete its subagent runs:`, err);
142
334
  });
143
- // Same for its artifacts — they belong to the agent, so they go with it. Best effort:
144
- // a store that is down must not leave the agent half-deleted.
145
- await this.artifactHub.releaseAgentData(profileId).catch((err) => {
146
- console.warn(`[artifacts] agent=${profileId} could not delete artifacts:`, err);
335
+ // Its own secrets go with it (A-101); global secrets stay.
336
+ await this.secretHub.deleteByOwner(profileId).catch((err) => {
337
+ console.warn(`[agent] agent=${profileId} could not delete its secrets:`, err);
147
338
  });
339
+ // The shared-sandbox folder and the artifacts are released by the AgentRemoved subscribers of SandboxHub and ArtifactHub.
340
+ await this.eventBus.publish({ type: SDKEventType.AgentRemoved, sessionId: "", payload: { agentId: profileId } });
148
341
  }
149
342
  // ── Lifecycle ──
150
343
  async initialize() {
@@ -157,6 +350,9 @@ export class AgentCore {
157
350
  }
158
351
  }
159
352
  async dispose() {
353
+ this.unsubscribeJobStart?.();
354
+ // A-106: stops running group turns (their members' turns end with the agents below).
355
+ this.groups.dispose();
160
356
  for (const agent of this.agents.list()) {
161
357
  await agent.dispose();
162
358
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agent-core.js","sourceRoot":"","sources":["../src/agent-core.ts"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
2
2
  import type { ArtifactStore } from "../persistence-hub/types/artifact-store.js";
3
3
  import type { ArtifactView } from "./types/artifact.js";
4
+ import type { EventBus } from "../event-handler/types.js";
4
5
  /**
5
6
  * Global hub for artifacts (A-62) — like ToolHub / SandboxHub, AgentCore owns one.
6
7
  *
@@ -15,7 +16,16 @@ export declare class ArtifactHub implements Plugin {
15
16
  private getStore;
16
17
  readonly name = "artifact-hub";
17
18
  readonly version = "1.0.0";
18
- constructor(getStore: () => ArtifactStore | undefined);
19
+ private unsubscribes;
20
+ /**
21
+ * @param options.eventBus when given, the hub deletes a removed agent's artifacts itself
22
+ * (agent:removed → releaseAgentData), so AgentCore does not have to know about it.
23
+ */
24
+ constructor(getStore: () => ArtifactStore | undefined, options?: {
25
+ eventBus?: EventBus;
26
+ });
27
+ /** Stops listening on the event bus. */
28
+ dispose(): Promise<void>;
19
29
  /** The view one agent works through. `sessionId` is stamped on versions written through it. */
20
30
  forAgent(agentId: string, sessionId?: string): ArtifactView;
21
31
  /** Retention: an agent's artifacts live until the agent is deleted. */
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-hub.d.ts","sourceRoot":"","sources":["../../../src/components/artifact-hub/artifact-hub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;;;;GASG;AACH,qBAAa,WAAY,YAAW,MAAM;IAI5B,OAAO,CAAC,QAAQ;IAH5B,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,WAAW;IAE3B,YAAoB,QAAQ,EAAE,MAAM,aAAa,GAAG,SAAS,EAAI;IAEjE,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAK1D;IAED,uEAAuE;IACjE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD;IAED,OAAO,CAAC,KAAK;CAOd"}
1
+ {"version":3,"file":"artifact-hub.d.ts","sourceRoot":"","sources":["../../../src/components/artifact-hub/artifact-hub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAe,MAAM,2BAA2B,CAAC;AAEvE;;;;;;;;;GASG;AACH,qBAAa,WAAY,YAAW,MAAM;IAU5B,OAAO,CAAC,QAAQ;IAT5B,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,WAAW;IAE3B,OAAO,CAAC,YAAY,CAAqB;IAEzC;;;OAGG;IACH,YAAoB,QAAQ,EAAE,MAAM,aAAa,GAAG,SAAS,EAAE,OAAO,GAAE;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAO,EAYnG;IAED,wCAAwC;IAClC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAE7B;IAED,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAK1D;IAED,uEAAuE;IACjE,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAErD;IAED,OAAO,CAAC,KAAK;CAOd"}
@@ -1,5 +1,6 @@
1
1
  import { ArtifactError } from "../../kernel/errors/artifact-error.js";
2
2
  import { AgentArtifactView } from "./agent-artifact-view.js";
3
+ import { SDKEventType } from "../event-handler/events.js";
3
4
  /**
4
5
  * Global hub for artifacts (A-62) — like ToolHub / SandboxHub, AgentCore owns one.
5
6
  *
@@ -14,8 +15,27 @@ export class ArtifactHub {
14
15
  getStore;
15
16
  name = "artifact-hub";
16
17
  version = "1.0.0";
17
- constructor(getStore) {
18
+ unsubscribes = [];
19
+ /**
20
+ * @param options.eventBus when given, the hub deletes a removed agent's artifacts itself
21
+ * (agent:removed → releaseAgentData), so AgentCore does not have to know about it.
22
+ */
23
+ constructor(getStore, options = {}) {
18
24
  this.getStore = getStore;
25
+ if (options.eventBus) {
26
+ // Same for its artifacts — they belong to the agent, so they go with it. Best effort:
27
+ // a store that is down must not leave the agent half-deleted.
28
+ this.unsubscribes.push(options.eventBus.on(SDKEventType.AgentRemoved, async (e) => {
29
+ await this.releaseAgentData(e.payload.agentId).catch((err) => {
30
+ console.warn(`[artifacts] agent=${e.payload.agentId} could not delete artifacts:`, err);
31
+ });
32
+ }));
33
+ }
34
+ }
35
+ /** Stops listening on the event bus. */
36
+ async dispose() {
37
+ for (const unsubscribe of this.unsubscribes.splice(0))
38
+ unsubscribe();
19
39
  }
20
40
  /** The view one agent works through. `sessionId` is stamped on versions written through it. */
21
41
  forAgent(agentId, sessionId) {
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-hub.js","sourceRoot":"","sources":["../../../src/components/artifact-hub/artifact-hub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;;;;;;GASG;AACH,MAAM,OAAO,WAAW;IAIF,QAAQ;IAHnB,IAAI,GAAG,cAAc,CAAC;IACtB,OAAO,GAAG,OAAO,CAAC;IAE3B,YAAoB,QAAyC;wBAAzC,QAAQ;IAAoC,CAAC;IAEjE,+FAA+F;IAC/F,QAAQ,CAAC,OAAe,EAAE,SAAkB;QAC1C,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YACnD,MAAM,IAAI,aAAa,CAAC,4CAA4C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