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,41 @@
1
+ /**
2
+ * Run a ChannelTurnRunner's turn from a chat stream (agent.chatStream): every
3
+ * chunk goes to `onChunk` (ChannelTurnContext.onChunk) so the chat can show the
4
+ * reply while it is written, and the result is read from the stream.
5
+ *
6
+ * The output is the text written after the last tool call — the agent's final
7
+ * reply, as RunResult.message.content is for chat(). An "error" chunk (for
8
+ * example "Reached maximum reasoning steps.") is thrown.
9
+ */
10
+ export async function channelTurnFromStream(stream, onChunk) {
11
+ let output = "";
12
+ let afterToolCall = false;
13
+ let result = {};
14
+ for await (const chunk of stream) {
15
+ onChunk(chunk);
16
+ switch (chunk.type) {
17
+ case "text":
18
+ if (afterToolCall) {
19
+ output = "";
20
+ afterToolCall = false;
21
+ }
22
+ output += chunk.content ?? "";
23
+ break;
24
+ case "tool_call":
25
+ case "tool_result":
26
+ afterToolCall = true;
27
+ break;
28
+ case "error":
29
+ throw new Error(chunk.error ?? "The agent run failed");
30
+ case "done":
31
+ result = {
32
+ ...(chunk.usage ? { usage: { inputTokens: chunk.usage.inputTokens, outputTokens: chunk.usage.outputTokens } } : {}),
33
+ ...(chunk.aborted ? { aborted: true } : {}),
34
+ ...(chunk.stopReason ? { stopReason: chunk.stopReason } : {}),
35
+ };
36
+ break;
37
+ }
38
+ }
39
+ return { output: afterToolCall ? "" : output, ...result };
40
+ }
41
+ //# sourceMappingURL=turn-stream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turn-stream.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/channel-manager/turn-stream.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,MAAkC,EAClC,OAAqC;IAErC,IAAI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AE,GAAG,MAAM,EAAE,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,69 @@
1
+ import type { StreamChunk } from "../../../../kernel/types.js";
2
+ import type { ChannelAdapter, ChannelMessageRef, ChannelSettings, ChannelTarget } from "../../../channel-platform-hub/types.js";
3
+ /** A streamed preview is edited at most this often (platforms rate-limit edits). */
4
+ export declare const PREVIEW_INTERVAL_MS = 1000;
5
+ /** The preview is first sent once this much text is written, so a short reply arrives in one piece. */
6
+ export declare const MIN_PREVIEW_CHARS = 40;
7
+ export interface TurnViewOptions {
8
+ adapter: ChannelAdapter;
9
+ target: ChannelTarget;
10
+ settings: ChannelSettings;
11
+ /** Reports a failed send or edit; the view carries on. */
12
+ onError: (err: unknown) => void;
13
+ }
14
+ /**
15
+ * How one channel turn shows in the chat (A-100 phase 2), fed the turn's
16
+ * stream chunks:
17
+ *
18
+ * - Preview streaming (settings.streaming, adapter.edit): the reply is sent
19
+ * once it has some text and then edited in place as more arrives. Text the
20
+ * agent writes before calling tools stays in the chat as its own message.
21
+ * - Tool progress (settings.toolProgress, adapter.edit): one message lists the
22
+ * tools the agent runs and is edited as they finish.
23
+ * - finish(): the final reply, rendered as Markdown when the adapter can, split
24
+ * to the platform's length. The preview message becomes its first part.
25
+ *
26
+ * Adapter calls run one at a time, in order. A failed send or edit is reported
27
+ * and skipped; it never fails the turn.
28
+ */
29
+ export declare class TurnView {
30
+ private readonly o;
31
+ private readonly streaming;
32
+ private readonly toolProgress;
33
+ private ops;
34
+ /** Text of the model response being written now. */
35
+ private buffer;
36
+ private preview?;
37
+ /** The preview text last sent, so an unchanged preview is not edited again. */
38
+ private previewShown;
39
+ private previewTimer?;
40
+ private lastPreviewAt;
41
+ private tools;
42
+ private toolMessage?;
43
+ private closed;
44
+ constructor(o: TurnViewOptions);
45
+ /** Feed one chunk of the turn (ChannelTurnContext.onChunk). */
46
+ chunk(chunk: StreamChunk): void;
47
+ /**
48
+ * Send the final reply. The preview (if any) is edited into the first part; the
49
+ * rest are sent as new messages. Returns the reply's messages.
50
+ */
51
+ finish(output: string): Promise<ChannelMessageRef[]>;
52
+ /**
53
+ * The turn ended without a reply (stopped or failed): stop updating, and drop
54
+ * the cursor from a preview so it reads as what was written so far.
55
+ */
56
+ abandon(): Promise<void>;
57
+ private close;
58
+ private schedulePreview;
59
+ private updatePreview;
60
+ /** The text written before a tool call: finish its preview, or send it. */
61
+ private settleIntermediate;
62
+ private queueToolMessage;
63
+ private enqueue;
64
+ private split;
65
+ private outbound;
66
+ /** Keep the last part of a text that is too long for one message. */
67
+ private fit;
68
+ }
69
+ //# sourceMappingURL=turn-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turn-view.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/channel-manager/turn-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAmB,MAAM,wCAAwC,CAAC;AAEjJ,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,OAAQ,CAAC;AACzC,uGAAuG;AACvG,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAMpC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,eAAe,CAAC;IAC1B,0DAA0D;IAC1D,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;CACjC;AAQD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,QAAQ;IAeP,OAAO,CAAC,QAAQ,CAAC,CAAC;IAd9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAU;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAU;IACvC,OAAO,CAAC,GAAG,CAAoC;IAC/C,oDAAoD;IACpD,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,+EAA+E;IAC/E,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,YAAY,CAAC,CAAgC;IACrD,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,WAAW,CAAC,CAAoB;IACxC,OAAO,CAAC,MAAM,CAAS;IAEvB,YAA6B,CAAC,EAAE,eAAe,EAI9C;IAED,+DAA+D;IAC/D,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CA6B9B;IAED;;;OAGG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAqBzD;IAED;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAS7B;IAID,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,eAAe;YAWT,aAAa;IAe3B,2EAA2E;IAC3E,OAAO,CAAC,kBAAkB;IAkB1B,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,KAAK;IAKb,OAAO,CAAC,QAAQ;IAIhB,qEAAqE;IACrE,OAAO,CAAC,GAAG;CAIZ"}
@@ -0,0 +1,210 @@
1
+ import { splitMarkdown, splitMessage } from "./text.js";
2
+ /** A streamed preview is edited at most this often (platforms rate-limit edits). */
3
+ export const PREVIEW_INTERVAL_MS = 1_000;
4
+ /** The preview is first sent once this much text is written, so a short reply arrives in one piece. */
5
+ export const MIN_PREVIEW_CHARS = 40;
6
+ /** Shown at the end of a preview while the reply is still being written. */
7
+ const PREVIEW_CURSOR = " ▍";
8
+ /** Longest tool line in the tool-progress message. */
9
+ const MAX_TOOL_LINE = 60;
10
+ /**
11
+ * How one channel turn shows in the chat (A-100 phase 2), fed the turn's
12
+ * stream chunks:
13
+ *
14
+ * - Preview streaming (settings.streaming, adapter.edit): the reply is sent
15
+ * once it has some text and then edited in place as more arrives. Text the
16
+ * agent writes before calling tools stays in the chat as its own message.
17
+ * - Tool progress (settings.toolProgress, adapter.edit): one message lists the
18
+ * tools the agent runs and is edited as they finish.
19
+ * - finish(): the final reply, rendered as Markdown when the adapter can, split
20
+ * to the platform's length. The preview message becomes its first part.
21
+ *
22
+ * Adapter calls run one at a time, in order. A failed send or edit is reported
23
+ * and skipped; it never fails the turn.
24
+ */
25
+ export class TurnView {
26
+ o;
27
+ streaming;
28
+ toolProgress;
29
+ ops = Promise.resolve();
30
+ /** Text of the model response being written now. */
31
+ buffer = "";
32
+ preview;
33
+ /** The preview text last sent, so an unchanged preview is not edited again. */
34
+ previewShown = "";
35
+ previewTimer;
36
+ lastPreviewAt = 0;
37
+ tools = [];
38
+ toolMessage;
39
+ closed = false;
40
+ constructor(o) {
41
+ this.o = o;
42
+ const canEdit = typeof o.adapter.edit === "function";
43
+ this.streaming = o.settings.streaming && canEdit;
44
+ this.toolProgress = o.settings.toolProgress && canEdit;
45
+ }
46
+ /** Feed one chunk of the turn (ChannelTurnContext.onChunk). */
47
+ chunk(chunk) {
48
+ if (this.closed)
49
+ return;
50
+ switch (chunk.type) {
51
+ case "text":
52
+ if (!chunk.content)
53
+ return;
54
+ this.buffer += chunk.content;
55
+ if (this.streaming)
56
+ this.schedulePreview();
57
+ return;
58
+ case "tool_call":
59
+ // Text written before the tools run is a message of its own (streaming only:
60
+ // without it the chat gets the final reply only, as before).
61
+ if (this.streaming && this.buffer.trim())
62
+ this.settleIntermediate();
63
+ this.buffer = "";
64
+ if (chunk.toolCall && this.toolProgress) {
65
+ this.tools.push({ id: chunk.toolCall.id, name: chunk.toolCall.name, state: "running" });
66
+ this.queueToolMessage();
67
+ }
68
+ return;
69
+ case "tool_result": {
70
+ const line = this.tools.find((t) => t.id === chunk.toolResult?.toolCallId);
71
+ if (line) {
72
+ line.state = chunk.toolResult?.isError ? "failed" : "done";
73
+ this.queueToolMessage();
74
+ }
75
+ return;
76
+ }
77
+ default:
78
+ return;
79
+ }
80
+ }
81
+ /**
82
+ * Send the final reply. The preview (if any) is edited into the first part; the
83
+ * rest are sent as new messages. Returns the reply's messages.
84
+ */
85
+ async finish(output) {
86
+ this.close();
87
+ await this.ops;
88
+ const parts = this.split(output);
89
+ const refs = [];
90
+ let first = 0;
91
+ if (this.preview && parts.length) {
92
+ const preview = this.preview;
93
+ this.preview = undefined;
94
+ try {
95
+ await this.o.adapter.edit(preview, this.outbound(parts[0]));
96
+ refs.push(preview);
97
+ first = 1;
98
+ }
99
+ catch (err) {
100
+ this.o.onError(err);
101
+ }
102
+ }
103
+ for (const part of parts.slice(first)) {
104
+ refs.push(await this.o.adapter.send(this.o.target, this.outbound(part)));
105
+ }
106
+ return refs;
107
+ }
108
+ /**
109
+ * The turn ended without a reply (stopped or failed): stop updating, and drop
110
+ * the cursor from a preview so it reads as what was written so far.
111
+ */
112
+ async abandon() {
113
+ this.close();
114
+ const text = this.buffer.trim();
115
+ this.enqueue(async () => {
116
+ const preview = this.preview;
117
+ this.preview = undefined;
118
+ if (preview && text)
119
+ await this.o.adapter.edit(preview, { text: this.fit(text) });
120
+ });
121
+ await this.ops;
122
+ }
123
+ // ---------------------------------------------------------------------------
124
+ close() {
125
+ this.closed = true;
126
+ if (this.previewTimer)
127
+ clearTimeout(this.previewTimer);
128
+ this.previewTimer = undefined;
129
+ }
130
+ schedulePreview() {
131
+ if (this.previewTimer)
132
+ return;
133
+ if (!this.preview && this.buffer.trim().length < MIN_PREVIEW_CHARS)
134
+ return;
135
+ const wait = Math.max(0, this.lastPreviewAt + PREVIEW_INTERVAL_MS - Date.now());
136
+ this.previewTimer = setTimeout(() => {
137
+ this.previewTimer = undefined;
138
+ if (!this.closed)
139
+ this.enqueue(() => this.updatePreview());
140
+ }, wait);
141
+ this.previewTimer.unref?.();
142
+ }
143
+ async updatePreview() {
144
+ const text = this.buffer.trim();
145
+ // Too long for one message: the final reply is split; the preview stays as it is.
146
+ if (!text || text.length + PREVIEW_CURSOR.length > this.o.adapter.capabilities.maxMessageLength)
147
+ return;
148
+ const shown = text + PREVIEW_CURSOR;
149
+ if (shown === this.previewShown)
150
+ return;
151
+ this.lastPreviewAt = Date.now();
152
+ if (this.preview) {
153
+ await this.o.adapter.edit(this.preview, { text: shown });
154
+ }
155
+ else {
156
+ this.preview = await this.o.adapter.send(this.o.target, { text: shown });
157
+ }
158
+ this.previewShown = shown;
159
+ }
160
+ /** The text written before a tool call: finish its preview, or send it. */
161
+ settleIntermediate() {
162
+ if (this.previewTimer)
163
+ clearTimeout(this.previewTimer);
164
+ this.previewTimer = undefined;
165
+ const parts = this.split(this.buffer);
166
+ // Read the preview inside the queue: a preview send still in flight has finished by then.
167
+ this.enqueue(async () => {
168
+ const preview = this.preview;
169
+ this.preview = undefined;
170
+ this.previewShown = "";
171
+ let rest = parts;
172
+ if (preview && parts.length) {
173
+ await this.o.adapter.edit(preview, this.outbound(parts[0]));
174
+ rest = parts.slice(1);
175
+ }
176
+ for (const part of rest)
177
+ await this.o.adapter.send(this.o.target, this.outbound(part));
178
+ });
179
+ }
180
+ queueToolMessage() {
181
+ this.enqueue(async () => {
182
+ const text = this.fit(this.tools
183
+ .map((t) => `${t.state === "running" ? "⏳" : t.state === "done" ? "✅" : "⚠️"} ${truncate(t.name, MAX_TOOL_LINE)}`)
184
+ .join("\n"));
185
+ if (this.toolMessage)
186
+ await this.o.adapter.edit(this.toolMessage, { text });
187
+ else
188
+ this.toolMessage = await this.o.adapter.send(this.o.target, { text });
189
+ });
190
+ }
191
+ enqueue(op) {
192
+ this.ops = this.ops.then(op).catch((err) => this.o.onError(err));
193
+ }
194
+ split(text) {
195
+ const max = this.o.adapter.capabilities.maxMessageLength;
196
+ return this.o.adapter.capabilities.markdown ? splitMarkdown(text, max) : splitMessage(text, max);
197
+ }
198
+ outbound(text) {
199
+ return this.o.adapter.capabilities.markdown ? { text, format: "markdown" } : { text };
200
+ }
201
+ /** Keep the last part of a text that is too long for one message. */
202
+ fit(text) {
203
+ const max = this.o.adapter.capabilities.maxMessageLength;
204
+ return text.length <= max ? text : `…${text.slice(text.length - max + 1)}`;
205
+ }
206
+ }
207
+ function truncate(text, max) {
208
+ return text.length <= max ? text : `${text.slice(0, max - 1)}…`;
209
+ }
210
+ //# sourceMappingURL=turn-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turn-view.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/channel-manager/turn-view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGxD,oFAAoF;AACpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AACzC,uGAAuG;AACvG,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AACpC,4EAA4E;AAC5E,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,sDAAsD;AACtD,MAAM,aAAa,GAAG,EAAE,CAAC;AAgBzB;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,QAAQ;IAeU,CAAC;IAdb,SAAS,CAAU;IACnB,YAAY,CAAU;IAC/B,GAAG,GAAkB,OAAO,CAAC,OAAO,EAAE,CAAC;IAC/C,oDAAoD;IAC5C,MAAM,GAAG,EAAE,CAAC;IACZ,OAAO,CAAqB;IACpC,+EAA+E;IACvE,YAAY,GAAG,EAAE,CAAC;IAClB,YAAY,CAAiC;IAC7C,aAAa,GAAG,CAAC,CAAC;IAClB,KAAK,GAAe,EAAE,CAAC;IACvB,WAAW,CAAqB;IAChC,MAAM,GAAG,KAAK,CAAC;IAEvB,YAA6B,CAAkB;iBAAlB,CAAC;QAC5B,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU,CAAC;QACrD,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,QAAQ,CAAC,YAAY,IAAI,OAAO,CAAC;IACzD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EAAE,GAAW;IACzC,OAAO,IAAI,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC;AAClE,CAAC"}
@@ -0,0 +1,76 @@
1
+ import type { StreamChunk } from "../../../../kernel/types.js";
2
+ import type { Channel, ChannelMessageRef, ChannelPairing, ChannelState, ChannelTarget, ChannelWebhookRequest, ChannelWebhookResponse, CreateChannelInput, InboundMessage, UpdateChannelInput } from "../../../channel-platform-hub/types.js";
3
+ /** Handed to the runner for one inbound message. */
4
+ export interface ChannelTurnContext {
5
+ agentId: string;
6
+ channel: Channel;
7
+ /** The chat's session — already created and owned by the agent. */
8
+ sessionId: string;
9
+ message: InboundMessage;
10
+ /** The user message for the agent: the inbound text; in groups prefixed with the sender's name. */
11
+ text: string;
12
+ /** Aborted by /stop, when the channel stops, or when the agent is disposed. */
13
+ signal: AbortSignal;
14
+ /** A-136: run the turn read-only (plan mode) — a /review sent from the chat. Pass it on as RunOptions.readOnly. */
15
+ readOnly?: boolean;
16
+ /**
17
+ * Hand each chunk of the turn to the channel (text, tool calls, tool results) so
18
+ * it can show the reply while it is written and the tools as they run. A runner
19
+ * that streams (agent.chatStream) calls it; one that does not leaves the chat
20
+ * with the final reply only.
21
+ */
22
+ onChunk(chunk: StreamChunk): void;
23
+ }
24
+ export interface ChannelTurnResult {
25
+ /** The agent's reply. */
26
+ output?: string;
27
+ usage?: {
28
+ inputTokens: number;
29
+ outputTokens: number;
30
+ };
31
+ /** True when the turn was stopped before it finished. */
32
+ aborted?: boolean;
33
+ stopReason?: string;
34
+ }
35
+ /**
36
+ * Runs one agent turn for an inbound chat message. Supplied by the host
37
+ * (AgentCore.useChannelTurnRunner) so the turn goes through the same session
38
+ * lock and bookkeeping as its chat routes; absent = the agent's own chat().
39
+ * Throwing tells the chat that something went wrong.
40
+ */
41
+ export type ChannelTurnRunner = (context: ChannelTurnContext) => Promise<ChannelTurnResult>;
42
+ /**
43
+ * An agent's channels — the API host routes use. Every call is scoped to the
44
+ * owning agent; a channel id from another agent is "not found".
45
+ */
46
+ export interface AgentChannels {
47
+ /** Oldest created first. Channels carry credentials — mask them in host APIs. */
48
+ list(): Promise<Channel[]>;
49
+ get(id: string): Promise<Channel | null>;
50
+ /**
51
+ * Save a channel and, when enabled, connect it. Throws ChannelError
52
+ * "connect_failed" (and saves nothing) when the platform rejects the credentials.
53
+ */
54
+ create(input: CreateChannelInput): Promise<Channel>;
55
+ /** Changed credentials, a re-enable or a disable reconnect or stop it; a failed reconnect shows in state(). */
56
+ update(id: string, patch: UpdateChannelInput): Promise<Channel>;
57
+ /** Disconnect and delete. Its chats' sessions stay. */
58
+ delete(id: string): Promise<void>;
59
+ /** Live connection state; "stopped" for a disabled or unknown channel. */
60
+ state(id: string): ChannelState;
61
+ /** Senders waiting for approval, oldest first. Expired codes are dropped. */
62
+ listPairings(id: string): Promise<ChannelPairing[]>;
63
+ /** Add the sender to access.allowFrom and tell them in their chat. */
64
+ approvePairing(id: string, code: string): Promise<Channel>;
65
+ /** Drop the request; the sender may ask again later. */
66
+ rejectPairing(id: string, code: string): Promise<void>;
67
+ /** Send text to a chat outside a turn (split when long). The channel must be running. */
68
+ send(id: string, target: ChannelTarget, text: string): Promise<ChannelMessageRef[]>;
69
+ /**
70
+ * Hand an inbound webhook request to the channel's adapter (phase 3). 404 when the
71
+ * channel is not this agent's, 503 when it is not connected, 405 when its platform
72
+ * takes no webhooks.
73
+ */
74
+ handleWebhook(id: string, request: ChannelWebhookRequest): Promise<ChannelWebhookResponse>;
75
+ }
76
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/channel-manager/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC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G;IAC/G,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAChE,uDAAuD;IACvD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,CAAC;IAChC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACpD,sEAAsE;IACtE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,wDAAwD;IACxD,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,yFAAyF;IACzF,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACpF;;;;OAIG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC5F"}
@@ -0,0 +1,7 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Channels (A-100) — the agent's side: how a channel turn runs and the API host
3
+ // routes use. The channel contracts (Channel, ChannelAdapter, ChannelPlatform...)
4
+ // live with the ChannelPlatformHub in components/channel-platform-hub/types.ts.
5
+ // ---------------------------------------------------------------------------
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/channel-manager/types.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,gFAAgF;AAChF,kFAAkF;AAClF,gFAAgF;AAChF,8EAA8E"}
@@ -0,0 +1,37 @@
1
+ import type { ApprovalMode, Message, Session, SessionFilter } from "../../../../kernel/types.js";
2
+ import type { ContextUsage, CompactNowResult } from "../agent-loop/types.js";
3
+ import type { SandboxView } from "../../../sandbox-hub/types/sandbox.js";
4
+ import type { BuiltInCommand } from "./command-manager.js";
5
+ import type { CommandContext, CommandInfo } from "./types.js";
6
+ /** What the built-in commands use — the agent's managers, as functions. */
7
+ export interface BuiltInCommandDeps {
8
+ getAgentName: () => string;
9
+ /** The agent's own model, used by sessions that set none. */
10
+ getDefaultModel: () => string | undefined;
11
+ /** The models /model offers; undefined when the provider has no catalog (any name is accepted then). */
12
+ listModels: () => Promise<string[] | undefined>;
13
+ getSession: (sessionId: string) => Promise<Session | null>;
14
+ listSessions: (filter?: SessionFilter) => Promise<Session[]>;
15
+ getMessages: (sessionId: string) => Promise<Message[]>;
16
+ /** The conversation manager's (A-136): changes the running turn's copy too. */
17
+ updateSession: (sessionId: string, fields: string[], change: (session: Session) => void) => Promise<Session | null>;
18
+ startSessionFrom: (sessionId: string) => Promise<Session | null>;
19
+ isBusy: (sessionId: string) => boolean;
20
+ getApprovalMode: (sessionId: string) => Promise<ApprovalMode>;
21
+ setApprovalMode: (sessionId: string, mode: ApprovalMode) => Promise<Session | null>;
22
+ contextUsage: (sessionId: string) => Promise<ContextUsage | null>;
23
+ /** Compact the session's working set now, holding its turn slot. Null when there is no such session. */
24
+ compact: (sessionId: string, focus?: string) => Promise<CompactNowResult | null>;
25
+ /** "shared sandbox", "own sandbox" or "none" — without starting a sandbox. */
26
+ describeWorkspace: () => string;
27
+ getSandbox: () => Promise<SandboxView>;
28
+ /** Every command, for /help (the CommandManager's list, in the asking client). */
29
+ listCommands: (ctx: CommandContext) => CommandInfo[];
30
+ }
31
+ /** The built-in commands' names and aliases (a host command can't take them). */
32
+ export declare const BUILT_IN_COMMAND_SPECS: ReadonlyArray<Omit<BuiltInCommand, "run">>;
33
+ /** The built-in commands, working through `deps`. */
34
+ export declare function builtInCommands(deps: BuiltInCommandDeps): BuiltInCommand[];
35
+ /** "/clear (/new, /reset) — Start a new conversation". */
36
+ export declare function helpLine(c: CommandInfo): string;
37
+ //# sourceMappingURL=built-in-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"built-in-commands.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/command-manager/built-in-commands.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjG,OAAO,KAAK,EAAsB,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAA8B,MAAM,YAAY,CAAC;AAE1F,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,eAAe,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC1C,wGAAwG;IACxG,UAAU,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IAChD,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC3D,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAC7D,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACvD,+EAA+E;IAC/E,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,M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