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
@@ -0,0 +1,32 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ /**
3
+ * schedule_job — lets an agent schedule its own future work: "every Monday 08:00
4
+ * summarise open RFIs", "remind me in 2 hours". Each run is a full agent turn with
5
+ * the job's prompt, in a new session the user can open later.
6
+ *
7
+ * manage_trigger — lets an agent set up work that starts when something happens:
8
+ * "when a scheduled job fails, find out why", "report whenever a new model is uploaded"
9
+ * (a webhook from that system). Each run is a full agent turn with the trigger's prompt
10
+ * plus the event data, in a new session the user can open later.
11
+ *
12
+ * Update (A-126): manage_job — both in one tool: a job runs on a schedule, on the agent's
13
+ * own events, or on a webhook.
14
+ *
15
+ * Update (A-103): a schedule job may run one tool call instead of a turn (tool, tool_args,
16
+ * follow_up) — the exact call is in this tool's arguments, so the user approves exactly
17
+ * what will run unattended.
18
+ *
19
+ * Risk "consequential": a job makes the agent act (and spend) later without the user
20
+ * watching, so every call waits for the user's approval. Job runs deny every approval,
21
+ * so an unattended run (and the event data it reads) can never create or change jobs —
22
+ * no runaway self-scheduling. What the agent may set on an event or webhook job is
23
+ * capped: no chains (maxDepth 0), at most AGENT_JOB_MAX_RUNS_PER_HOUR runs an hour and a
24
+ * daily token budget; the user can change any of it on the Jobs page.
25
+ */
26
+ export declare class ManageJobTool implements ToolHandler {
27
+ readonly name = "tool:manage-job";
28
+ readonly version = "1.0.0";
29
+ readonly definition: ToolDefinition;
30
+ execute(args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
31
+ }
32
+ //# sourceMappingURL=manage-job-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manage-job-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/manage-job-tool.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA4B3F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,QAAQ,CAAC,IAAI,qBAAqB;IAClC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAuHjC;IAEI,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA2ItF;CACF"}
@@ -0,0 +1,458 @@
1
+ import { INTERNAL_JOB_EVENT_TYPES } from "../../../multi-agent-orchestration/agent/job-manager/rules.js";
2
+ import { isScheduleWhen, } from "../../../multi-agent-orchestration/agent/job-manager/types.js";
3
+ import { AGENT_JOB_DEFAULT_RUNS_PER_HOUR, AGENT_JOB_DEFAULT_TOKENS_PER_DAY, AGENT_JOB_MAX_RUNS_PER_HOUR, AGENT_JOB_MAX_TOKENS_PER_DAY, conditions, deliveryText, describeJob, describeWhen, fail, findJob, int, resolveDeliveries, scheduleArg, str, strList, withJobs, withoutSecret, } from "./job-tool-helpers.js";
4
+ const ACTIONS = ["create", "update", "enable", "disable", "delete", "run_now"];
5
+ const WHEN = ["schedule", "event", "webhook"];
6
+ const DELIVERY_WHEN = ["always", "on-output", "on-failure"];
7
+ const SESSION_MODES = ["new", "reuse"];
8
+ const FOLLOW_UPS = ["never", "on-failure", "always"];
9
+ /**
10
+ * schedule_job — lets an agent schedule its own future work: "every Monday 08:00
11
+ * summarise open RFIs", "remind me in 2 hours". Each run is a full agent turn with
12
+ * the job's prompt, in a new session the user can open later.
13
+ *
14
+ * manage_trigger — lets an agent set up work that starts when something happens:
15
+ * "when a scheduled job fails, find out why", "report whenever a new model is uploaded"
16
+ * (a webhook from that system). Each run is a full agent turn with the trigger's prompt
17
+ * plus the event data, in a new session the user can open later.
18
+ *
19
+ * Update (A-126): manage_job — both in one tool: a job runs on a schedule, on the agent's
20
+ * own events, or on a webhook.
21
+ *
22
+ * Update (A-103): a schedule job may run one tool call instead of a turn (tool, tool_args,
23
+ * follow_up) — the exact call is in this tool's arguments, so the user approves exactly
24
+ * what will run unattended.
25
+ *
26
+ * Risk "consequential": a job makes the agent act (and spend) later without the user
27
+ * watching, so every call waits for the user's approval. Job runs deny every approval,
28
+ * so an unattended run (and the event data it reads) can never create or change jobs —
29
+ * no runaway self-scheduling. What the agent may set on an event or webhook job is
30
+ * capped: no chains (maxDepth 0), at most AGENT_JOB_MAX_RUNS_PER_HOUR runs an hour and a
31
+ * daily token budget; the user can change any of it on the Jobs page.
32
+ */
33
+ export class ManageJobTool {
34
+ name = "tool:manage-job";
35
+ version = "1.0.0";
36
+ definition = {
37
+ name: "manage_job",
38
+ description: "Set up work for yourself that runs later without the user in the chat — each run is a full turn with your tools, " +
39
+ "in a conversation the user can open later. A job runs on a schedule (cron / every_minutes / at), " +
40
+ `on your own events (when: "event" — ${INTERNAL_JOB_EVENT_TYPES.join(", ")}; give event_types), ` +
41
+ 'or when another system POSTs a signed webhook (when: "webhook", e.g. "model uploaded"). ' +
42
+ "Actions: create (name, prompt, and a schedule or when) · update (job, then fields to change) · enable / disable / delete / run_now (job). " +
43
+ "The prompt must stand on its own: a run does NOT see this conversation, so include every detail it needs. " +
44
+ "For \"tell me when X happens\" use ONE schedule job that checks for X and replies with what it found, or exactly [[SILENT]] " +
45
+ "when there is nothing new (nothing is posted), or [[FAILED]] <reason> when it could not check; use session_mode \"reuse\" " +
46
+ "so it remembers what it already reported. Never chain a schedule job into an event job just to filter its reply. " +
47
+ "Use an event job for \"when one of my jobs fails, look into it\", a webhook job when an outside system can notify. " +
48
+ "To run the SAME command or script on a schedule (e.g. \"run report.py every 3 hours\"), make a tool job: give tool " +
49
+ '(e.g. "terminal") and tool_args (its exact arguments) — it runs without you, uses no tokens, and its output is the ' +
50
+ 'result (no output = nothing posted). Add follow_up "on-failure" or "always" with a prompt to get a turn after the tool. ' +
51
+ "Prompts may use {{now}}, {{job.lastRunAt}}, {{job.lastSuccessAt}} and {{job.lastResult}} (the previous result). " +
52
+ "When asked from a chat app, results are posted back to that chat. Approval-gated tools are denied during runs. " +
53
+ "Each call asks the user for approval. Use list_jobs to see existing jobs.",
54
+ parameters: {
55
+ type: "object",
56
+ properties: {
57
+ action: { type: "string", enum: [...ACTIONS], description: "What to do" },
58
+ job: { type: "string", description: "update/enable/disable/delete/run_now: the job's name or id" },
59
+ name: { type: "string", description: "create: a short unique name; update: a new name" },
60
+ description: { type: "string", description: "create/update: what the job is for, for the user" },
61
+ prompt: {
62
+ type: "string",
63
+ description: "create/update: the full, self-contained instruction you will receive on each run. Event and webhook jobs may use " +
64
+ "{{event.type}}, {{event.subject}}, {{events.count}}, {{job.name}}; the event data itself is attached separately",
65
+ },
66
+ when: {
67
+ type: "string",
68
+ enum: [...WHEN],
69
+ description: 'create/update: "schedule" (give cron, every_minutes or at), "event" or "webhook"',
70
+ },
71
+ cron: {
72
+ type: "string",
73
+ description: 'schedule: 5-field cron "minute hour day-of-month month day-of-week", e.g. "0 8 * * 1" = Mondays 08:00, "*/30 9-17 * * 1-5" = every 30 min in office hours',
74
+ },
75
+ timezone: { type: "string", description: 'With cron: IANA timezone, e.g. "Asia/Ho_Chi_Minh". Ask the user if unsure.' },
76
+ every_minutes: { type: "number", description: "schedule: run every N minutes (at least 1)" },
77
+ at: { type: "string", description: 'schedule: run once at this ISO 8601 time with offset, e.g. "2026-10-07T09:00:00+07:00"' },
78
+ tool: {
79
+ type: "string",
80
+ description: 'create/update, schedule jobs only: run this tool instead of a turn (e.g. "terminal"); it must be one of your tools ' +
81
+ 'that can be scheduled. "none" turns a tool job back into a prompt job',
82
+ },
83
+ tool_args: {
84
+ type: "string",
85
+ description: 'With tool: its exact arguments as a JSON object, e.g. {"command": "python report.py"}. They are never changed at run time',
86
+ },
87
+ follow_up: {
88
+ type: "string",
89
+ enum: [...FOLLOW_UPS],
90
+ description: 'With tool: also run a turn with the prompt after the tool — "never" (default), "on-failure" or "always"',
91
+ },
92
+ session_mode: {
93
+ type: "string",
94
+ enum: [...SESSION_MODES],
95
+ description: 'create/update: "new" = a new conversation per run (default), "reuse" = every run appends to one conversation',
96
+ },
97
+ event_types: {
98
+ type: "array",
99
+ items: { type: "string" },
100
+ description: 'event/webhook: event types to accept; "prefix.*" matches a prefix. Required for when "event"',
101
+ },
102
+ subjects: { type: "array", items: { type: "string" }, description: "event/webhook: only events about these subjects (e.g. one job's id)" },
103
+ where: {
104
+ type: "array",
105
+ description: 'event/webhook: conditions that must all hold, e.g. [{ "path": "data.project", "op": "eq", "value": "tower-a" }]',
106
+ items: {
107
+ type: "object",
108
+ properties: {
109
+ path: { type: "string", description: '"type", "subject", "source" or "data.<dot.path>"' },
110
+ op: { type: "string", enum: ["eq", "neq", "in", "exists", "contains"] },
111
+ value: { type: "string", description: "eq / neq / contains: the value (numbers compare as text)" },
112
+ values: { type: "array", items: { type: "string" }, description: "in: the accepted values" },
113
+ },
114
+ required: ["path", "op"],
115
+ },
116
+ },
117
+ signature: {
118
+ type: "string",
119
+ enum: ["standard", "github"],
120
+ description: 'webhook: how deliveries are signed — "standard" (Standard Webhooks, default) or "github"',
121
+ },
122
+ subject_path: { type: "string", description: 'webhook: where the subject is in the body, e.g. "data.modelId"' },
123
+ revision_path: { type: "string", description: 'webhook: a growing revision number in the body, e.g. "data.revision"' },
124
+ max_runs_per_hour: {
125
+ type: "number",
126
+ description: `event/webhook: at most ${AGENT_JOB_MAX_RUNS_PER_HOUR} (default ${AGENT_JOB_DEFAULT_RUNS_PER_HOUR}). Not used by schedule jobs`,
127
+ },
128
+ max_tokens_per_day: {
129
+ type: "number",
130
+ description: `event/webhook: daily token budget, at most ${AGENT_JOB_MAX_TOKENS_PER_DAY} (default ${AGENT_JOB_DEFAULT_TOKENS_PER_DAY}). Not used by schedule jobs`,
131
+ },
132
+ deliver: {
133
+ type: "string",
134
+ enum: ["here", "home", "none"],
135
+ description: '"here" = post each result to the chat app conversation you are in (the default there; in any other conversation ' +
136
+ 'it means "home"), "home" = post to the home chats of the agent\'s chat app channels (all of them, or those in ' +
137
+ 'deliver_channels; the default outside a chat app), "none" = keep results in each run\'s conversation',
138
+ },
139
+ deliver_channels: {
140
+ type: "array",
141
+ items: { type: "string" },
142
+ description: 'Only these channels\' home chats get the results (a channel\'s name or platform, e.g. "telegram"). ' +
143
+ "Leave it out for all of them. Ask the user when they did not say which",
144
+ },
145
+ deliver_when: { type: "string", enum: [...DELIVERY_WHEN], description: "With a delivery: post always (default), only with output, or only on failure" },
146
+ },
147
+ required: ["action"],
148
+ },
149
+ risk: "consequential",
150
+ };
151
+ async execute(args, context) {
152
+ const action = str(args, "action");
153
+ if (!action || !ACTIONS.includes(action))
154
+ return fail(`manage_job: "action" must be one of ${ACTIONS.join(", ")}`);
155
+ return withJobs("manage_job", context, async (jobs) => {
156
+ const deliverWhen = str(args, "deliver_when");
157
+ if (deliverWhen !== undefined && !DELIVERY_WHEN.includes(deliverWhen)) {
158
+ return fail(`manage_job ${action}: "deliver_when" must be one of ${DELIVERY_WHEN.join(", ")}`);
159
+ }
160
+ const deliver = str(args, "deliver");
161
+ if (deliver !== undefined && deliver !== "here" && deliver !== "home" && deliver !== "none") {
162
+ return fail(`manage_job ${action}: "deliver" must be "here", "home" or "none"`);
163
+ }
164
+ // A-127: the chats the arguments ask for (every home chat when they name none).
165
+ const resolved = resolveDeliveries(context, deliver, strList(args, "deliver_channels"), deliverWhen);
166
+ if (typeof resolved === "string")
167
+ return fail(`manage_job ${action}: ${resolved}`);
168
+ const { deliveries, given: deliveryGiven } = resolved;
169
+ const sessionMode = str(args, "session_mode");
170
+ if (sessionMode !== undefined && !SESSION_MODES.includes(sessionMode)) {
171
+ return fail(`manage_job ${action}: "session_mode" must be "new" or "reuse"`);
172
+ }
173
+ const limits = limitsArg(args);
174
+ if (typeof limits === "string")
175
+ return fail(`manage_job ${action}: ${limits}`);
176
+ const toolAction = toolActionArg(args);
177
+ if (typeof toolAction === "string")
178
+ return fail(`manage_job ${action}: ${toolAction}`);
179
+ // "here" outside a chat app has nowhere to post: the job keeps its results in its runs' conversations.
180
+ // Update (A-127): nor has "home" when no channel has a home chat.
181
+ const deliveryIgnored = (deliver === "here" || deliver === "home") && deliveries.length === 0;
182
+ if (action === "create") {
183
+ const name = str(args, "name");
184
+ const prompt = str(args, "prompt");
185
+ if (!name)
186
+ return fail('manage_job create: "name" is required');
187
+ if (toolAction?.kind === "tool" && !toolAction.tool)
188
+ return fail('manage_job create: "tool_args" and "follow_up" go with "tool"');
189
+ const tool = toolAction?.kind === "tool" ? toolAction : undefined;
190
+ // A tool job needs a prompt only for its follow-up turn.
191
+ if (!prompt && (!tool || tool.followUp)) {
192
+ return fail(tool ? 'manage_job create: a follow-up needs a "prompt" — the message of the turn after the tool' : 'manage_job create: "prompt" is required');
193
+ }
194
+ const when = whenArg(args, undefined);
195
+ if (typeof when === "string")
196
+ return fail(`manage_job create: ${when}`);
197
+ if (!when)
198
+ return fail('manage_job create: give a schedule (one of "cron", "every_minutes" or "at"), or when "event" or "webhook"');
199
+ const schedule = isScheduleWhen(when);
200
+ const description = str(args, "description");
201
+ const created = await jobs.create({
202
+ name,
203
+ prompt: prompt ?? "",
204
+ ...(tool ? { action: plainAction(tool) } : {}),
205
+ ...(description ? { description } : {}),
206
+ when,
207
+ ...(schedule ? {} : { filter: filterArg(args, undefined) }),
208
+ ...(sessionMode ? { sessionMode } : {}),
209
+ // A schedule job is bounded by its clock; an event or webhook job gets the agent caps.
210
+ ...(schedule
211
+ ? {}
212
+ : {
213
+ limits: {
214
+ maxRunsPerHour: limits.maxRunsPerHour ?? AGENT_JOB_DEFAULT_RUNS_PER_HOUR,
215
+ maxTokensPerDay: limits.maxTokensPerDay ?? AGENT_JOB_DEFAULT_TOKENS_PER_DAY,
216
+ maxConcurrentRuns: 1,
217
+ // No chains: an event caused by a run of this job never wakes a job.
218
+ maxDepth: 0,
219
+ },
220
+ }),
221
+ createdBy: "agent",
222
+ createdInSessionId: context.sessionId,
223
+ // A-100 phase 3: scheduled from a chat → each run's result is posted back there.
224
+ // Update (A-127): or, outside a chat app, to every home chat (or those named).
225
+ ...(deliveries.length ? { deliveries } : {}),
226
+ });
227
+ return { content: createdText(created, deliveryIgnored, context.jobDeliveryOptions), metadata: { action, job: withoutSecret(created) } };
228
+ }
229
+ const ref = str(args, "job");
230
+ if (!ref)
231
+ return fail(`manage_job ${action}: "job" (the job's name or id) is required`);
232
+ const existing = await findJob(jobs, ref);
233
+ if (!existing)
234
+ return fail(`manage_job ${action}: you have no job "${ref}" — use list_jobs`);
235
+ if (action === "delete") {
236
+ await jobs.delete(existing.id);
237
+ return { content: `Deleted job "${existing.name}" with its event and run history.`, metadata: { action, jobId: existing.id } };
238
+ }
239
+ if (action === "run_now") {
240
+ const run = await jobs.runNow(existing.id);
241
+ return {
242
+ content: `Started a run of "${existing.name}" [run ${run.id}]. Its result shows up in the run's conversation${existing.deliveries?.length ? " and in its delivery chats" : ""}.`,
243
+ metadata: { action, jobId: existing.id, runId: run.id },
244
+ };
245
+ }
246
+ let patch;
247
+ if (action === "enable")
248
+ patch = { enabled: true };
249
+ else if (action === "disable")
250
+ patch = { enabled: false };
251
+ else {
252
+ patch = {};
253
+ const name = str(args, "name");
254
+ const prompt = str(args, "prompt");
255
+ const description = str(args, "description");
256
+ if (name && name !== existing.name)
257
+ patch.name = name;
258
+ if (prompt && prompt !== existing.prompt)
259
+ patch.prompt = prompt;
260
+ if (description && description !== existing.description)
261
+ patch.description = description;
262
+ if (sessionMode && sessionMode !== existing.sessionMode)
263
+ patch.sessionMode = sessionMode;
264
+ const nextAction = mergeToolAction(toolAction, existing.action);
265
+ if (typeof nextAction === "string")
266
+ return fail(`manage_job update: ${nextAction}`);
267
+ if (nextAction !== undefined)
268
+ patch.action = nextAction;
269
+ const when = whenArg(args, existing.when);
270
+ if (typeof when === "string")
271
+ return fail(`manage_job update: ${when}`);
272
+ if (when)
273
+ patch.when = when;
274
+ const nextWhen = when ?? existing.when;
275
+ if (!isScheduleWhen(nextWhen)) {
276
+ const filter = filterArg(args, when && isScheduleWhen(existing.when) ? undefined : existing.filter);
277
+ if (!sameFilter(filter, existing.filter) || (when && isScheduleWhen(existing.when)))
278
+ patch.filter = filter;
279
+ if (limits.maxRunsPerHour !== undefined && limits.maxRunsPerHour !== existing.limits.maxRunsPerHour) {
280
+ patch.limits = { ...patch.limits, maxRunsPerHour: limits.maxRunsPerHour };
281
+ }
282
+ if (limits.maxTokensPerDay !== undefined && limits.maxTokensPerDay !== existing.limits.maxTokensPerDay) {
283
+ patch.limits = { ...patch.limits, maxTokensPerDay: limits.maxTokensPerDay };
284
+ }
285
+ }
286
+ // Update (A-127): the deliveries are replaced as a whole.
287
+ const current = existing.deliveries ?? [];
288
+ if (deliver === "none") {
289
+ if (current.length)
290
+ patch.deliveries = null;
291
+ }
292
+ else if (deliveryGiven && deliveries.length) {
293
+ const when = deliverWhen ?? current[0]?.when ?? "always";
294
+ patch.deliveries = deliveries.map((d) => ({ ...d, when }));
295
+ }
296
+ else if (deliverWhen !== undefined && current.length && current.some((d) => d.when !== deliverWhen)) {
297
+ patch.deliveries = current.map((d) => ({ ...d, when: deliverWhen }));
298
+ }
299
+ if (Object.keys(patch).length === 0) {
300
+ return fail("manage_job update: nothing to change — give a new name, prompt, schedule, when, tool, filter, session_mode, limits or a delivery");
301
+ }
302
+ }
303
+ const updated = await jobs.update(existing.id, patch);
304
+ return {
305
+ content: `Updated:\n${describeJob(updated)}${deliveryIgnored && action === "update" ? `\n${deliveryText(updated.deliveries, context.jobDeliveryOptions)}` : ""}`,
306
+ metadata: { action, job: withoutSecret(updated) },
307
+ };
308
+ });
309
+ }
310
+ }
311
+ /**
312
+ * A-103: the tool part of the arguments — a tool action, { kind: "prompt" } for tool "none",
313
+ * a tool action with tool "" when only tool_args / follow_up were given, undefined when none
314
+ * of them was, or an error message.
315
+ */
316
+ function toolActionArg(args) {
317
+ const tool = str(args, "tool");
318
+ const followUp = str(args, "follow_up");
319
+ if (followUp !== undefined && !FOLLOW_UPS.includes(followUp)) {
320
+ return `"follow_up" must be one of ${FOLLOW_UPS.join(", ")}`;
321
+ }
322
+ const raw = args["tool_args"];
323
+ let toolArgs;
324
+ if (typeof raw === "string" && raw.trim()) {
325
+ try {
326
+ toolArgs = JSON.parse(raw);
327
+ }
328
+ catch {
329
+ return '"tool_args" must be a JSON object, e.g. {"command": "python report.py"}';
330
+ }
331
+ }
332
+ else if (raw !== undefined && raw !== null && raw !== "") {
333
+ toolArgs = raw;
334
+ }
335
+ if (toolArgs !== undefined && (typeof toolArgs !== "object" || toolArgs === null || Array.isArray(toolArgs))) {
336
+ return '"tool_args" must be a JSON object, e.g. {"command": "python report.py"}';
337
+ }
338
+ if (tool === "none")
339
+ return { kind: "prompt" };
340
+ // Strict-schema models fill every field: without a tool, "never" and {} say nothing.
341
+ const argsGiven = toolArgs !== undefined && (Boolean(tool) || Object.keys(toolArgs).length > 0);
342
+ const followUpGiven = followUp !== undefined && (Boolean(tool) || followUp !== "never");
343
+ if (!tool && !argsGiven && !followUpGiven)
344
+ return undefined;
345
+ return {
346
+ kind: "tool",
347
+ tool: tool ?? "",
348
+ args: toolArgs ?? {},
349
+ ...(followUp && followUp !== "never" ? { followUp } : {}),
350
+ given: { args: argsGiven, followUp: followUpGiven },
351
+ };
352
+ }
353
+ /** The JobAction of a parsed tool argument (without the bookkeeping). */
354
+ function plainAction(arg) {
355
+ return { kind: "tool", tool: arg.tool, args: arg.args, ...(arg.followUp ? { followUp: arg.followUp } : {}) };
356
+ }
357
+ /** A-103: an update's new action — the given parts over the job's current tool action; undefined = unchanged. */
358
+ function mergeToolAction(arg, current) {
359
+ if (arg === undefined)
360
+ return undefined;
361
+ if (arg.kind === "prompt")
362
+ return current?.kind === "tool" ? { kind: "prompt" } : undefined;
363
+ const base = current?.kind === "tool" ? current : undefined;
364
+ const tool = arg.tool || base?.tool;
365
+ if (!tool)
366
+ return '"tool_args" and "follow_up" go with "tool" — this job runs a prompt';
367
+ // A different tool starts from its own arguments; the same tool keeps what wasn't given.
368
+ const sameTool = base !== undefined && base.tool === tool;
369
+ const args = arg.given.args || !sameTool ? arg.args : base.args;
370
+ const followUp = arg.given.followUp || !sameTool ? arg.followUp : base.followUp;
371
+ const next = { kind: "tool", tool, args, ...(followUp ? { followUp } : {}) };
372
+ return base && JSON.stringify(base) === JSON.stringify(next) ? undefined : next;
373
+ }
374
+ /** The capped limits the agent asked for, or an error message. */
375
+ function limitsArg(args) {
376
+ const runs = int(args, "max_runs_per_hour");
377
+ const tokens = int(args, "max_tokens_per_day");
378
+ if (runs !== undefined && runs > AGENT_JOB_MAX_RUNS_PER_HOUR) {
379
+ return `"max_runs_per_hour" must be 1–${AGENT_JOB_MAX_RUNS_PER_HOUR}; the user can raise it on the Jobs page`;
380
+ }
381
+ if (tokens !== undefined && (tokens < 1_000 || tokens > AGENT_JOB_MAX_TOKENS_PER_DAY)) {
382
+ return `"max_tokens_per_day" must be 1000–${AGENT_JOB_MAX_TOKENS_PER_DAY}; the user can raise it on the Jobs page`;
383
+ }
384
+ return { ...(runs !== undefined ? { maxRunsPerHour: runs } : {}), ...(tokens !== undefined ? { maxTokensPerDay: tokens } : {}) };
385
+ }
386
+ /**
387
+ * The `when` from the flat arguments: a schedule (cron / every_minutes / at), "event" or
388
+ * "webhook". For an update, undefined when nothing about it changes; an error message
389
+ * when it does not add up.
390
+ */
391
+ function whenArg(args, current) {
392
+ const schedule = scheduleArg(args);
393
+ if (schedule && "error" in schedule)
394
+ return schedule.error;
395
+ const kind = str(args, "when");
396
+ if (kind !== undefined && !WHEN.includes(kind))
397
+ return `"when" must be one of ${WHEN.join(", ")}`;
398
+ if (schedule) {
399
+ if (kind && kind !== "schedule")
400
+ return `"cron", "every_minutes" and "at" are for when "schedule", not "${kind}"`;
401
+ return schedule;
402
+ }
403
+ const currentKind = current === undefined ? undefined : isScheduleWhen(current) ? "schedule" : current.kind;
404
+ const wanted = kind ?? currentKind;
405
+ if (wanted === "schedule" || wanted === undefined) {
406
+ if (current === undefined || currentKind !== "schedule")
407
+ return 'a schedule job needs one of "cron", "every_minutes" or "at"';
408
+ return undefined;
409
+ }
410
+ if (wanted === "event")
411
+ return currentKind === "event" ? undefined : { kind: "event" };
412
+ // A webhook: build it on top of the current one, and only report a change.
413
+ const base = current?.kind === "webhook" ? current : undefined;
414
+ const signature = (str(args, "signature") ?? base?.signature ?? "standard");
415
+ const subjectPath = str(args, "subject_path") ?? base?.subjectPath;
416
+ const revisionPath = str(args, "revision_path") ?? base?.revisionPath;
417
+ const next = {
418
+ kind: "webhook",
419
+ signature,
420
+ ...(subjectPath ? { subjectPath } : {}),
421
+ ...(revisionPath ? { revisionPath } : {}),
422
+ };
423
+ if (base && base.signature === next.signature && base.subjectPath === next.subjectPath && base.revisionPath === next.revisionPath)
424
+ return undefined;
425
+ return next;
426
+ }
427
+ /** The filter from the flat arguments; a part not given (or empty) keeps its current value. */
428
+ function filterArg(args, current) {
429
+ const types = strList(args, "event_types") ?? current?.types;
430
+ const subjects = strList(args, "subjects") ?? current?.subjects;
431
+ const where = conditions(args) ?? current?.where;
432
+ return {
433
+ ...(types?.length ? { types } : {}),
434
+ ...(subjects?.length ? { subjects } : {}),
435
+ ...(where?.length ? { where } : {}),
436
+ };
437
+ }
438
+ function sameFilter(a, b) {
439
+ return JSON.stringify(a) === JSON.stringify(b);
440
+ }
441
+ function createdText(job, deliveryIgnored, options) {
442
+ const lines = isScheduleWhen(job.when)
443
+ ? [`Scheduled "${job.name}" [${job.id}] — ${describeWhen(job)}, ${job.nextRunAt ? `first run ${job.nextRunAt}` : "disabled"}.`]
444
+ : [`Created job "${job.name}" (${job.enabled ? "enabled" : "disabled"}).`, describeJob(job)];
445
+ if (job.when.kind === "webhook") {
446
+ lines.push(`To connect it, the sending system must POST events to /webhooks/jobs/${job.id} on this server, signed with the ` +
447
+ `job's secret (${job.when.signature} signature). You don't have the secret: ask the user to copy the full address ` +
448
+ "and the secret from the agent's Jobs page into the sending system.");
449
+ }
450
+ if (deliveryIgnored) {
451
+ lines.push("Nothing can be posted: this conversation is not in a chat app and no channel has a home chat " +
452
+ "(the user sends /sethome in the chat that should get the results).");
453
+ }
454
+ lines.push(deliveryText(job.deliveries, options));
455
+ lines.push("The user can see, edit, disable or delete it on the agent's Jobs page.");
456
+ return lines.join("\n");
457
+ }
458
+ //# sourceMappingURL=manage-job-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manage-job-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/manage-job-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AACzG,OAAO,EACL,cAAc,GAYf,MAAM,+DAA+D,CAAC;AAEvE,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,GAAG,EACH,iBAAiB,EACjB,WAAW,EACX,GAAG,EACH,OAAO,EACP,QAAQ,EACR,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAExF,MAAM,IAAI,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,CAAU,CAAC;AACvD,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,YAAY,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
4
+ * Update (A-124 phase 2): and the service tools (dev servers).
5
+ */
6
+ export declare const PREVIEW_TOOL_NAMES: readonly ["preview", "list_apps", "open_in_app", "start_service", "stop_service", "list_services", "service_logs"];
7
+ /** All preview tools — register them with `core.useTool()`. */
8
+ export declare function createPreviewTools(): ToolHandler[];
9
+ //# sourceMappingURL=create-preview-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-preview-tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/preview/create-preview-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,YAC7B,SAAS,EAAE,WAAW,EAAE,aAAa,EACrC,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,CACxD,CAAC;AAEX,+DAA+D;AAC/D,wBAAgB,kBAAkB,IAAI,WAAW,EAAE,CAKlD"}
@@ -0,0 +1,20 @@
1
+ import { ListAppsTool } from "./list-apps-tool.js";
2
+ import { OpenInAppTool } from "./open-in-app-tool.js";
3
+ import { PreviewTool } from "./preview-tool.js";
4
+ import { ListServicesTool, ServiceLogsTool, StartServiceTool, StopServiceTool } from "./service-tools.js";
5
+ /**
6
+ * Tool names of the preview tools (A-124), for agent allowlists.
7
+ * Update (A-124 phase 2): and the service tools (dev servers).
8
+ */
9
+ export const PREVIEW_TOOL_NAMES = [
10
+ "preview", "list_apps", "open_in_app",
11
+ "start_service", "stop_service", "list_services", "service_logs",
12
+ ];
13
+ /** All preview tools — register them with `core.useTool()`. */
14
+ export function createPreviewTools() {
15
+ return [
16
+ new PreviewTool(), new ListAppsTool(), new OpenInAppTool(),
17
+ new StartServiceTool(), new StopServiceTool(), new ListServicesTool(), new ServiceLogsTool(),
18
+ ];
19
+ }
20
+ //# sourceMappingURL=create-preview-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-preview-tools.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/preview/create-preview-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1G;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,SAAS,EAAE,WAAW,EAAE,aAAa;IACrC,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc;CACxD,CAAC;AAEX,+DAA+D;AAC/D,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,IAAI,WAAW,EAAE,EAAE,IAAI,YAAY,EAAE,EAAE,IAAI,aAAa,EAAE;QAC1D,IAAI,gBAAgB,EAAE,EAAE,IAAI,eAAe,EAAE,EAAE,IAAI,gBAAgB,EAAE,EAAE,IAAI,eAAe,EAAE;KAC7F,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
2
+ /**
3
+ * list_apps (A-124) — the apps installed in the agent's workspace: every apps/<app>/
4
+ * folder with an app.json, with what it opens. The model checks it before open_in_app.
5
+ */
6
+ export declare class ListAppsTool implements ToolHandler {
7
+ readonly name = "tool:list-apps";
8
+ readonly version = "1.0.0";
9
+ readonly definition: ToolDefinition;
10
+ execute(_args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
11
+ }
12
+ //# sourceMappingURL=list-apps-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-apps-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/preview/list-apps-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAI3F;;;GAGG;AACH,qBAAa,YAAa,YAAW,WAAW;IAC9C,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CASjC;IAEI,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAqCvF;CACF"}