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.
- package/dist/agent-core.d.ts +123 -3
- package/dist/agent-core.d.ts.map +1 -1
- package/dist/agent-core.js +219 -23
- package/dist/agent-core.js.map +1 -1
- package/dist/components/artifact-hub/artifact-hub.d.ts +11 -1
- package/dist/components/artifact-hub/artifact-hub.d.ts.map +1 -1
- package/dist/components/artifact-hub/artifact-hub.js +21 -1
- package/dist/components/artifact-hub/artifact-hub.js.map +1 -1
- package/dist/components/channel-platform-hub/adapter-kit.d.ts +51 -0
- package/dist/components/channel-platform-hub/adapter-kit.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/adapter-kit.js +153 -0
- package/dist/components/channel-platform-hub/adapter-kit.js.map +1 -0
- package/dist/components/channel-platform-hub/channel-platform-hub.d.ts +34 -0
- package/dist/components/channel-platform-hub/channel-platform-hub.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/channel-platform-hub.js +52 -0
- package/dist/components/channel-platform-hub/channel-platform-hub.js.map +1 -0
- package/dist/components/channel-platform-hub/discord/discord-adapter.d.ts +57 -0
- package/dist/components/channel-platform-hub/discord/discord-adapter.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/discord/discord-adapter.js +412 -0
- package/dist/components/channel-platform-hub/discord/discord-adapter.js.map +1 -0
- package/dist/components/channel-platform-hub/slack/slack-adapter.d.ts +56 -0
- package/dist/components/channel-platform-hub/slack/slack-adapter.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/slack/slack-adapter.js +349 -0
- package/dist/components/channel-platform-hub/slack/slack-adapter.js.map +1 -0
- package/dist/components/channel-platform-hub/slack/slack-mrkdwn.d.ts +3 -0
- package/dist/components/channel-platform-hub/slack/slack-mrkdwn.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/slack/slack-mrkdwn.js +70 -0
- package/dist/components/channel-platform-hub/slack/slack-mrkdwn.js.map +1 -0
- package/dist/components/channel-platform-hub/teams/teams-adapter.d.ts +51 -0
- package/dist/components/channel-platform-hub/teams/teams-adapter.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/teams/teams-adapter.js +333 -0
- package/dist/components/channel-platform-hub/teams/teams-adapter.js.map +1 -0
- package/dist/components/channel-platform-hub/telegram/telegram-adapter.d.ts +46 -0
- package/dist/components/channel-platform-hub/telegram/telegram-adapter.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/telegram/telegram-adapter.js +304 -0
- package/dist/components/channel-platform-hub/telegram/telegram-adapter.js.map +1 -0
- package/dist/components/channel-platform-hub/telegram/telegram-markdown.d.ts +3 -0
- package/dist/components/channel-platform-hub/telegram/telegram-markdown.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/telegram/telegram-markdown.js +87 -0
- package/dist/components/channel-platform-hub/telegram/telegram-markdown.js.map +1 -0
- package/dist/components/channel-platform-hub/types.d.ts +290 -0
- package/dist/components/channel-platform-hub/types.d.ts.map +1 -0
- package/dist/components/channel-platform-hub/types.js +23 -0
- package/dist/components/channel-platform-hub/types.js.map +1 -0
- package/dist/components/event-handler/event-dispatcher.d.ts +28 -3
- package/dist/components/event-handler/event-dispatcher.d.ts.map +1 -1
- package/dist/components/event-handler/event-dispatcher.js +77 -13
- package/dist/components/event-handler/event-dispatcher.js.map +1 -1
- package/dist/components/event-handler/events.d.ts +316 -15
- package/dist/components/event-handler/events.d.ts.map +1 -1
- package/dist/components/event-handler/events.js +94 -2
- package/dist/components/event-handler/events.js.map +1 -1
- package/dist/components/event-handler/types.d.ts +26 -0
- package/dist/components/event-handler/types.d.ts.map +1 -1
- package/dist/components/group-hub/group-hub.d.ts +117 -0
- package/dist/components/group-hub/group-hub.d.ts.map +1 -0
- package/dist/components/group-hub/group-hub.js +334 -0
- package/dist/components/group-hub/group-hub.js.map +1 -0
- package/dist/components/group-hub/group-turns.d.ts +109 -0
- package/dist/components/group-hub/group-turns.d.ts.map +1 -0
- package/dist/components/group-hub/group-turns.js +834 -0
- package/dist/components/group-hub/group-turns.js.map +1 -0
- package/dist/components/group-hub/member-prompt.d.ts +28 -0
- package/dist/components/group-hub/member-prompt.d.ts.map +1 -0
- package/dist/components/group-hub/member-prompt.js +111 -0
- package/dist/components/group-hub/member-prompt.js.map +1 -0
- package/dist/components/group-hub/recipients.d.ts +10 -0
- package/dist/components/group-hub/recipients.d.ts.map +1 -0
- package/dist/components/group-hub/recipients.js +83 -0
- package/dist/components/group-hub/recipients.js.map +1 -0
- package/dist/components/group-hub/thread.d.ts +57 -0
- package/dist/components/group-hub/thread.d.ts.map +1 -0
- package/dist/components/group-hub/thread.js +126 -0
- package/dist/components/group-hub/thread.js.map +1 -0
- package/dist/components/group-hub/types.d.ts +277 -0
- package/dist/components/group-hub/types.d.ts.map +1 -0
- package/dist/components/group-hub/types.js +51 -0
- package/dist/components/group-hub/types.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts.map +1 -1
- package/dist/components/llm-provider-hub/providers/anthropic-provider.js +22 -2
- package/dist/components/llm-provider-hub/providers/anthropic-provider.js.map +1 -1
- package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts.map +1 -1
- package/dist/components/llm-provider-hub/providers/bedrock-provider.js +15 -3
- package/dist/components/llm-provider-hub/providers/bedrock-provider.js.map +1 -1
- package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts.map +1 -1
- package/dist/components/llm-provider-hub/providers/model-info-mappers.js +27 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.js.map +1 -1
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts.map +1 -1
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js +10 -3
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js.map +1 -1
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts +1 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts.map +1 -1
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js +35 -3
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js.map +1 -1
- package/dist/components/llm-provider-hub/types.d.ts +20 -0
- package/dist/components/llm-provider-hub/types.d.ts.map +1 -1
- package/dist/components/llm-provider-hub/types.js +5 -0
- package/dist/components/llm-provider-hub/types.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts +87 -8
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js +465 -62
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts +14 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js +25 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts +14 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js +14 -22
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts +41 -3
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js +152 -44
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts +15 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js +35 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts +10 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js +39 -6
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts +2 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.d.ts +47 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.js +61 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/context-usage.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts +131 -8
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js +17 -1
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent.d.ts +101 -15
- package/dist/components/multi-agent-orchestration/agent/agent.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/agent.js +415 -44
- package/dist/components/multi-agent-orchestration/agent/agent.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts +245 -1
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js +1583 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.d.ts +76 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.js +236 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-prompts.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/text.d.ts +15 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/text.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/text.js +80 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/text.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.d.ts +13 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.js +41 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-stream.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.d.ts +69 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.js +210 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/turn-view.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/types.d.ts +76 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/types.js +7 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.d.ts +37 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.js +544 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.d.ts +75 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.js +299 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/command-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/parse.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/parse.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/parse.js +19 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/parse.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/types.d.ts +197 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/types.js +3 -0
- package/dist/components/multi-agent-orchestration/agent/command-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts +37 -1
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js +54 -2
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts +118 -14
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js +239 -50
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.d.ts +34 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.js +74 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.d.ts +49 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.js +171 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/turn-gate.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/clock.d.ts +43 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/clock.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/clock.js +116 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/clock.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.js +93 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/internal-events.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.d.ts +208 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.js +1207 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/job-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/rules.d.ts +129 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/rules.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/rules.js +598 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/rules.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.d.ts +15 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.js +113 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/schedule.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/timers.d.ts +8 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/timers.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/timers.js +33 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/timers.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/types.d.ts +495 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/types.js +50 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.d.ts +37 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.js +157 -0
- package/dist/components/multi-agent-orchestration/agent/job-manager/webhook.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js +17 -3
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts +7 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js +189 -30
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js +51 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts +5 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js +16 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.d.ts +41 -0
- package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.js +98 -0
- package/dist/components/multi-agent-orchestration/agent/secret-manager/secret-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/secret-manager/types.d.ts +37 -0
- package/dist/components/multi-agent-orchestration/agent/secret-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/secret-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.d.ts +21 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.js +113 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/brief.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.d.ts +52 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.js +63 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/child-loop.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.d.ts +18 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.js +56 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/semaphore.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.d.ts +128 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js +661 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.d.ts +307 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.js +60 -0
- package/dist/components/multi-agent-orchestration/agent/subagent-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts +14 -3
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js +18 -5
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js.map +1 -1
- package/dist/components/multi-agent-orchestration/agent/types.d.ts +84 -1
- package/dist/components/multi-agent-orchestration/agent/types.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts +11 -4
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts.map +1 -1
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js +72 -4
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js.map +1 -1
- package/dist/components/persistence-hub/default-stores/memory-channel-store.d.ts +11 -0
- package/dist/components/persistence-hub/default-stores/memory-channel-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-channel-store.js +33 -0
- package/dist/components/persistence-hub/default-stores/memory-channel-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-group-store.d.ts +21 -0
- package/dist/components/persistence-hub/default-stores/memory-group-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-group-store.js +62 -0
- package/dist/components/persistence-hub/default-stores/memory-group-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-job-store.d.ts +31 -0
- package/dist/components/persistence-hub/default-stores/memory-job-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-job-store.js +234 -0
- package/dist/components/persistence-hub/default-stores/memory-job-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-secret-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-secret-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-secret-store.js +38 -0
- package/dist/components/persistence-hub/default-stores/memory-secret-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts.map +1 -1
- package/dist/components/persistence-hub/default-stores/memory-session-store.js +7 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.js.map +1 -1
- package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.d.ts +10 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.js +30 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-run-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.d.ts +9 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.js +17 -0
- package/dist/components/persistence-hub/default-stores/memory-subagent-type-store.js.map +1 -0
- package/dist/components/persistence-hub/persistence-hub.d.ts +41 -0
- package/dist/components/persistence-hub/persistence-hub.d.ts.map +1 -1
- package/dist/components/persistence-hub/persistence-hub.js +41 -0
- package/dist/components/persistence-hub/persistence-hub.js.map +1 -1
- package/dist/components/persistence-hub/types/channel-store.d.ts +12 -0
- package/dist/components/persistence-hub/types/channel-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/channel-store.js +2 -0
- package/dist/components/persistence-hub/types/channel-store.js.map +1 -0
- package/dist/components/persistence-hub/types/group-store.d.ts +27 -0
- package/dist/components/persistence-hub/types/group-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/group-store.js +2 -0
- package/dist/components/persistence-hub/types/group-store.js.map +1 -0
- package/dist/components/persistence-hub/types/job-store.d.ts +112 -0
- package/dist/components/persistence-hub/types/job-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/job-store.js +2 -0
- package/dist/components/persistence-hub/types/job-store.js.map +1 -0
- package/dist/components/persistence-hub/types/secret-store.d.ts +18 -0
- package/dist/components/persistence-hub/types/secret-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/secret-store.js +2 -0
- package/dist/components/persistence-hub/types/secret-store.js.map +1 -0
- package/dist/components/persistence-hub/types/session-store.d.ts +5 -0
- package/dist/components/persistence-hub/types/session-store.d.ts.map +1 -1
- package/dist/components/persistence-hub/types/subagent-run-store.d.ts +11 -0
- package/dist/components/persistence-hub/types/subagent-run-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/subagent-run-store.js +2 -0
- package/dist/components/persistence-hub/types/subagent-run-store.js.map +1 -0
- package/dist/components/persistence-hub/types/subagent-type-store.d.ts +9 -0
- package/dist/components/persistence-hub/types/subagent-type-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/subagent-type-store.js +2 -0
- package/dist/components/persistence-hub/types/subagent-type-store.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts +4 -1
- package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts.map +1 -1
- package/dist/components/sandbox-hub/docker/docker-sandbox.js +398 -1
- package/dist/components/sandbox-hub/docker/docker-sandbox.js.map +1 -1
- package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts.map +1 -1
- package/dist/components/sandbox-hub/docker/sandbox-helper.js +386 -5
- package/dist/components/sandbox-hub/docker/sandbox-helper.js.map +1 -1
- package/dist/components/sandbox-hub/host/host-sandbox.d.ts +16 -0
- package/dist/components/sandbox-hub/host/host-sandbox.d.ts.map +1 -1
- package/dist/components/sandbox-hub/host/host-sandbox.js +283 -2
- package/dist/components/sandbox-hub/host/host-sandbox.js.map +1 -1
- package/dist/components/sandbox-hub/sandbox-hub.d.ts +9 -0
- package/dist/components/sandbox-hub/sandbox-hub.d.ts.map +1 -1
- package/dist/components/sandbox-hub/sandbox-hub.js +18 -0
- package/dist/components/sandbox-hub/sandbox-hub.js.map +1 -1
- package/dist/components/sandbox-hub/traced-sandbox.d.ts.map +1 -1
- package/dist/components/sandbox-hub/traced-sandbox.js +32 -0
- package/dist/components/sandbox-hub/traced-sandbox.js.map +1 -1
- package/dist/components/sandbox-hub/types/sandbox.d.ts +106 -1
- package/dist/components/sandbox-hub/types/sandbox.d.ts.map +1 -1
- package/dist/components/sandbox-hub/types/sandbox.js +0 -13
- package/dist/components/sandbox-hub/types/sandbox.js.map +1 -1
- package/dist/components/secret-hub/envelope.d.ts +48 -0
- package/dist/components/secret-hub/envelope.d.ts.map +1 -0
- package/dist/components/secret-hub/envelope.js +157 -0
- package/dist/components/secret-hub/envelope.js.map +1 -0
- package/dist/components/secret-hub/rules.d.ts +33 -0
- package/dist/components/secret-hub/rules.d.ts.map +1 -0
- package/dist/components/secret-hub/rules.js +142 -0
- package/dist/components/secret-hub/rules.js.map +1 -0
- package/dist/components/secret-hub/secret-hub-provider.d.ts +61 -0
- package/dist/components/secret-hub/secret-hub-provider.d.ts.map +1 -0
- package/dist/components/secret-hub/secret-hub-provider.js +73 -0
- package/dist/components/secret-hub/secret-hub-provider.js.map +1 -0
- package/dist/components/secret-hub/secret-hub.d.ts +102 -0
- package/dist/components/secret-hub/secret-hub.d.ts.map +1 -0
- package/dist/components/secret-hub/secret-hub.js +267 -0
- package/dist/components/secret-hub/secret-hub.js.map +1 -0
- package/dist/components/secret-hub/types.d.ts +77 -0
- package/dist/components/secret-hub/types.d.ts.map +1 -0
- package/dist/components/secret-hub/types.js +23 -0
- package/dist/components/secret-hub/types.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts +1 -1
- package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts.map +1 -1
- package/dist/components/skill-hub/built-in-skills/essential-skills.js +7 -2
- package/dist/components/skill-hub/built-in-skills/essential-skills.js.map +1 -1
- package/dist/components/skill-hub/built-in-skills/watch-and-notify.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/watch-and-notify.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/watch-and-notify.js +94 -0
- package/dist/components/skill-hub/built-in-skills/watch-and-notify.js.map +1 -0
- package/dist/components/skill-hub/skill-hub.d.ts +9 -1
- package/dist/components/skill-hub/skill-hub.d.ts.map +1 -1
- package/dist/components/skill-hub/skill-hub.js +11 -1
- package/dist/components/skill-hub/skill-hub.js.map +1 -1
- package/dist/components/subagent-hub/built-in-types.d.ts +3 -0
- package/dist/components/subagent-hub/built-in-types.d.ts.map +1 -0
- package/dist/components/subagent-hub/built-in-types.js +24 -0
- package/dist/components/subagent-hub/built-in-types.js.map +1 -0
- package/dist/components/subagent-hub/subagent-hub.d.ts +41 -0
- package/dist/components/subagent-hub/subagent-hub.d.ts.map +1 -0
- package/dist/components/subagent-hub/subagent-hub.js +158 -0
- package/dist/components/subagent-hub/subagent-hub.js.map +1 -0
- package/dist/components/subagent-hub/types.d.ts +40 -0
- package/dist/components/subagent-hub/types.d.ts.map +1 -0
- package/dist/components/subagent-hub/types.js +8 -0
- package/dist/components/subagent-hub/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts +4 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js +4 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js +4 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js +4 -1
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.d.ts +10 -0
- package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.js +13 -0
- package/dist/components/tool-hub/built-in-tools/jobs/create-job-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.d.ts +60 -0
- package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.js +240 -0
- package/dist/components/tool-hub/built-in-tools/jobs/job-tool-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.d.ts +14 -0
- package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.js +36 -0
- package/dist/components/tool-hub/built-in-tools/jobs/list-jobs-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.d.ts +32 -0
- package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.js +458 -0
- package/dist/components/tool-hub/built-in-tools/jobs/manage-job-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.d.ts +9 -0
- package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.js +20 -0
- package/dist/components/tool-hub/built-in-tools/preview/create-preview-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.d.ts +12 -0
- package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.js +57 -0
- package/dist/components/tool-hub/built-in-tools/preview/list-apps-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.d.ts +15 -0
- package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.js +80 -0
- package/dist/components/tool-hub/built-in-tools/preview/open-in-app-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.d.ts +53 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.js +100 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-tool.d.ts +14 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-tool.js +63 -0
- package/dist/components/tool-hub/built-in-tools/preview/preview-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/service-tools.d.ts +33 -0
- package/dist/components/tool-hub/built-in-tools/preview/service-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/preview/service-tools.js +180 -0
- package/dist/components/tool-hub/built-in-tools/preview/service-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.d.ts +6 -0
- package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.js +9 -0
- package/dist/components/tool-hub/built-in-tools/secrets/create-secret-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.d.ts +12 -0
- package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.js +30 -0
- package/dist/components/tool-hub/built-in-tools/secrets/list-secrets-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.d.ts +22 -0
- package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.js +113 -0
- package/dist/components/tool-hub/built-in-tools/secrets/manage-secret-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.d.ts +9 -0
- package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.js +29 -0
- package/dist/components/tool-hub/built-in-tools/secrets/secret-tool-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.d.ts +27 -0
- package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.js +112 -0
- package/dist/components/tool-hub/built-in-tools/subagents/spawn-subagent-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/http-request-tool.d.ts +43 -0
- package/dist/components/tool-hub/built-in-tools/web/http-request-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/http-request-tool.js +234 -0
- package/dist/components/tool-hub/built-in-tools/web/http-request-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js +2 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js +2 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js +9 -1
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js +9 -2
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js.map +1 -1
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts +17 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts.map +1 -1
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js +29 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js.map +1 -1
- package/dist/components/tool-hub/tool-links.d.ts +9 -0
- package/dist/components/tool-hub/tool-links.d.ts.map +1 -0
- package/dist/components/tool-hub/tool-links.js +11 -0
- package/dist/components/tool-hub/tool-links.js.map +1 -0
- package/dist/components/tool-hub/types.d.ts +101 -1
- package/dist/components/tool-hub/types.d.ts.map +1 -1
- package/dist/index.d.ts +109 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -1
- package/dist/kernel/errors/channel-error.d.ts +24 -0
- package/dist/kernel/errors/channel-error.d.ts.map +1 -0
- package/dist/kernel/errors/channel-error.js +15 -0
- package/dist/kernel/errors/channel-error.js.map +1 -0
- package/dist/kernel/errors/command-error.d.ts +12 -0
- package/dist/kernel/errors/command-error.d.ts.map +1 -0
- package/dist/kernel/errors/command-error.js +11 -0
- package/dist/kernel/errors/command-error.js.map +1 -0
- package/dist/kernel/errors/group-error.d.ts +15 -0
- package/dist/kernel/errors/group-error.d.ts.map +1 -0
- package/dist/kernel/errors/group-error.js +10 -0
- package/dist/kernel/errors/group-error.js.map +1 -0
- package/dist/kernel/errors/job-error.d.ts +23 -0
- package/dist/kernel/errors/job-error.d.ts.map +1 -0
- package/dist/kernel/errors/job-error.js +15 -0
- package/dist/kernel/errors/job-error.js.map +1 -0
- package/dist/kernel/errors/secret-error.d.ts +19 -0
- package/dist/kernel/errors/secret-error.d.ts.map +1 -0
- package/dist/kernel/errors/secret-error.js +10 -0
- package/dist/kernel/errors/secret-error.js.map +1 -0
- package/dist/kernel/errors/session-error.d.ts +5 -1
- package/dist/kernel/errors/session-error.d.ts.map +1 -1
- package/dist/kernel/errors/session-error.js.map +1 -1
- package/dist/kernel/errors/subagent-error.d.ts +19 -0
- package/dist/kernel/errors/subagent-error.d.ts.map +1 -0
- package/dist/kernel/errors/subagent-error.js +10 -0
- package/dist/kernel/errors/subagent-error.js.map +1 -0
- package/dist/kernel/interfaces/kernel.d.ts +15 -0
- package/dist/kernel/interfaces/kernel.d.ts.map +1 -1
- package/dist/kernel/types.d.ts +80 -1
- package/dist/kernel/types.d.ts.map +1 -1
- package/dist/testing/fake-channel.d.ts +60 -0
- package/dist/testing/fake-channel.d.ts.map +1 -0
- package/dist/testing/fake-channel.js +135 -0
- package/dist/testing/fake-channel.js.map +1 -0
- package/dist/testing/in-memory-sandbox.d.ts +4 -1
- package/dist/testing/in-memory-sandbox.d.ts.map +1 -1
- package/dist/testing/in-memory-sandbox.js +63 -3
- package/dist/testing/in-memory-sandbox.js.map +1 -1
- package/dist/testing/mock-session-store.d.ts.map +1 -1
- package/dist/testing/mock-session-store.js +7 -0
- package/dist/testing/mock-session-store.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts +0 -38
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts.map +0 -1
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js +0 -155
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js.map +0 -1
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts +0 -27
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts.map +0 -1
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js.map +0 -1
- /package/dist/components/multi-agent-orchestration/agent/{scheduled-job-manager → secret-manager}/types.js +0 -0
package/dist/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subagent-manager.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/subagent-manager/subagent-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAQhE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAsB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACzH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GAoBtB,MAAM,YAAY,CAAC;AAiEpB,MAAM,UAAU,GAAe,EAAE,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;AAEnE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,eAAe;IA6BN,IAAI;IA5BhB,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAC;IACxC,MAAM,GAAG,IAAI,GAAG,EAAqB,CAAC;IACtC,cAAc,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC9C,YAAY,GAAkB,EAAE,CAAC;IACjC,QAAQ,GAAG,KAAK,CAAC;IAEzB,mEAAmE;IAC3D,QAAQ,GAAG,IAAI,GAAG,EAAgC,CAAC;I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,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,OAAqB;IAC1C,OAAO,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;AACrG,CAAC;AAED,SAAS,SAAS,CAAC,IAAY,EAAE,GAAG,GAAG,GAAG;IACxC,MAAM,IAAI,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAC/E,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC;AAED,SAAS,YAAY,CAAC,GAAY;IAChC,OAAO,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import type { Session, TokenUsage } from "../../../../kernel/types.js";
|
|
2
|
+
import type { InteractionHandler } from "../../../tool-hub/types.js";
|
|
3
|
+
import type { RunOptions, RunResult } from "../agent-loop/types.js";
|
|
4
|
+
import type { ModelOptions } from "../../../llm-provider-hub/types.js";
|
|
5
|
+
import type { AgentProfile } from "../types.js";
|
|
6
|
+
/**
|
|
7
|
+
* What a child may do. "read-only" (the default) offers it only its read-only tools.
|
|
8
|
+
* "write" offers all its tools, and needs the child to have its own sandbox, where only
|
|
9
|
+
* one writer runs at a time — the parent applies or checks the result.
|
|
10
|
+
*/
|
|
11
|
+
export type SubagentAccess = "read-only" | "write";
|
|
12
|
+
/** An agent this agent may delegate to. */
|
|
13
|
+
export interface SubagentTargetConfig {
|
|
14
|
+
agentId: string;
|
|
15
|
+
/** Default "read-only". */
|
|
16
|
+
access?: SubagentAccess;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* AgentProfile.subagents — who the agent may delegate to, and the budget all children of
|
|
20
|
+
* one parent turn share. Omitted limits use the SDK defaults below; values above the hard
|
|
21
|
+
* caps are clamped.
|
|
22
|
+
*/
|
|
23
|
+
export interface SubagentConfig {
|
|
24
|
+
/** The existing agents this one may delegate to. Empty = none. */
|
|
25
|
+
allow: SubagentTargetConfig[];
|
|
26
|
+
/** Subagent types from the library (SubagentHub) this agent may use. Omitted = none. */
|
|
27
|
+
types?: string[];
|
|
28
|
+
/** Children of one parent turn running at once (default 3, at most 8). */
|
|
29
|
+
maxConcurrent?: number;
|
|
30
|
+
/** Children one parent turn may start (default 6, at most 20). */
|
|
31
|
+
maxRunsPerTurn?: number;
|
|
32
|
+
/** Tokens (input + output) all children of one parent turn may use together (default 200 000). */
|
|
33
|
+
maxTokensPerTurn?: number;
|
|
34
|
+
/** Tool calls all children of one parent turn may make together (default 50). */
|
|
35
|
+
maxToolCallsPerTurn?: number;
|
|
36
|
+
/** Wall-clock time from a parent turn's first child until all its children must be done, ms (default 10 min). */
|
|
37
|
+
maxElapsedMsPerTurn?: number;
|
|
38
|
+
/** One child's deadline, ms (default 5 min, at most 30 min). */
|
|
39
|
+
childTimeoutMs?: number;
|
|
40
|
+
}
|
|
41
|
+
export declare const SUBAGENT_DEFAULTS: {
|
|
42
|
+
readonly maxConcurrent: 3;
|
|
43
|
+
readonly maxRunsPerTurn: 6;
|
|
44
|
+
readonly maxTokensPerTurn: 200000;
|
|
45
|
+
readonly maxToolCallsPerTurn: 50;
|
|
46
|
+
readonly maxElapsedMsPerTurn: number;
|
|
47
|
+
readonly childTimeoutMs: number;
|
|
48
|
+
};
|
|
49
|
+
export declare const SUBAGENT_HARD_CAPS: {
|
|
50
|
+
readonly maxConcurrent: 8;
|
|
51
|
+
readonly maxRunsPerTurn: 20;
|
|
52
|
+
readonly maxTokensPerTurn: 2000000;
|
|
53
|
+
readonly maxToolCallsPerTurn: 500;
|
|
54
|
+
readonly maxElapsedMsPerTurn: number;
|
|
55
|
+
readonly childTimeoutMs: number;
|
|
56
|
+
};
|
|
57
|
+
/** Limits of the brief a parent sends. */
|
|
58
|
+
export declare const SUBAGENT_BRIEF_LIMITS: {
|
|
59
|
+
/** Characters of the task text. */
|
|
60
|
+
readonly task: 8000;
|
|
61
|
+
/** Characters of the context, as JSON. */
|
|
62
|
+
readonly context: 16000;
|
|
63
|
+
/** Characters of the requested output shape. */
|
|
64
|
+
readonly outputShape: 2000;
|
|
65
|
+
/** Characters of a child's report handed back to the parent. */
|
|
66
|
+
readonly output: 20000;
|
|
67
|
+
};
|
|
68
|
+
export type ResolvedSubagentConfig = Required<Omit<SubagentConfig, "allow" | "types">> & {
|
|
69
|
+
allow: Required<SubagentTargetConfig>[];
|
|
70
|
+
types: string[];
|
|
71
|
+
};
|
|
72
|
+
/** The profile's subagent config with defaults and hard caps applied. Invalid fields fall back to the default. */
|
|
73
|
+
export declare function resolveSubagentConfig(config: SubagentConfig | undefined): ResolvedSubagentConfig;
|
|
74
|
+
/** The bounded brief a parent sends — the only thing the child learns about the parent's work. */
|
|
75
|
+
export interface SubagentRequest {
|
|
76
|
+
/** The target: an enabled subagent type's name, or an allowed agent's id (or name). Types win on a name clash. */
|
|
77
|
+
agentId: string;
|
|
78
|
+
/** What the child should do, self-contained. */
|
|
79
|
+
task: string;
|
|
80
|
+
/** Facts the child needs (file paths, ids, constraints), plain JSON data. */
|
|
81
|
+
context?: Record<string, unknown>;
|
|
82
|
+
/** The shape the report should have ("a bullet list of risks with page numbers"). */
|
|
83
|
+
outputShape?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* How a child run ended.
|
|
87
|
+
* - completed: it finished its turn.
|
|
88
|
+
* - partial: it stopped at its own turn limit (maxIterations) or output token limit; the
|
|
89
|
+
* report is what it had.
|
|
90
|
+
* - failed: it errored, or the provider stopped it (refusal, filter).
|
|
91
|
+
* - cancelled: the parent turn was stopped, or someone stopped the child.
|
|
92
|
+
* - timed_out: it hit its deadline; the report is what it had.
|
|
93
|
+
* - budget_exhausted: the parent turn's shared child budget ran out (before it started,
|
|
94
|
+
* or while it ran); the report is what it had.
|
|
95
|
+
*/
|
|
96
|
+
export type SubagentStatus = "completed" | "partial" | "failed" | "cancelled" | "timed_out" | "budget_exhausted";
|
|
97
|
+
/** What a run delegated to: a subagent type (short-lived loop in the parent) or an existing agent. */
|
|
98
|
+
export type SubagentKind = "type" | "agent";
|
|
99
|
+
/** A child run record — persisted in PersistenceHub.subagentRuns, so it outlives a restart. */
|
|
100
|
+
export interface SubagentRun {
|
|
101
|
+
id: string;
|
|
102
|
+
kind: SubagentKind;
|
|
103
|
+
parentAgentId: string;
|
|
104
|
+
parentSessionId: string;
|
|
105
|
+
/** The parent turn that started it (children of one turn share a budget). */
|
|
106
|
+
parentRunId: string;
|
|
107
|
+
/** The parent's spawn_subagent call, when known — a client matches the run to that call. */
|
|
108
|
+
parentToolCallId?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The agent that owns the child's session: the target agent, or — for a subagent type —
|
|
111
|
+
* the parent itself (the session is a side branch of the parent).
|
|
112
|
+
*/
|
|
113
|
+
childAgentId: string;
|
|
114
|
+
/** The target agent's name, or the subagent type's name. */
|
|
115
|
+
childAgentName: string;
|
|
116
|
+
/** The child's own session (absent when the run never started). */
|
|
117
|
+
childSessionId?: string;
|
|
118
|
+
access: SubagentAccess;
|
|
119
|
+
/** The task text (cut to SUBAGENT_BRIEF_LIMITS.task). */
|
|
120
|
+
task: string;
|
|
121
|
+
status: "running" | SubagentStatus;
|
|
122
|
+
/** The child's report — sanitized, treat as untrusted data. */
|
|
123
|
+
output?: string;
|
|
124
|
+
/** Tokens the child used. */
|
|
125
|
+
usage: TokenUsage;
|
|
126
|
+
/** Tool calls the child made. */
|
|
127
|
+
toolCalls: number;
|
|
128
|
+
/** A safe one-line reason for a run that did not complete. */
|
|
129
|
+
error?: string;
|
|
130
|
+
startedAt: string;
|
|
131
|
+
finishedAt?: string;
|
|
132
|
+
durationMs?: number;
|
|
133
|
+
}
|
|
134
|
+
/** A finished child run, as spawn() returns it. */
|
|
135
|
+
export type SubagentResult = SubagentRun & {
|
|
136
|
+
status: SubagentStatus;
|
|
137
|
+
};
|
|
138
|
+
/** What the spawn_subagent tool knows about the parent turn calling it. */
|
|
139
|
+
export interface SubagentSpawnContext {
|
|
140
|
+
/** The parent's session. */
|
|
141
|
+
sessionId: string;
|
|
142
|
+
/** The parent turn (ToolContext.runId); absent = the session stands in for it. */
|
|
143
|
+
runId?: string;
|
|
144
|
+
/** The parent's spawn_subagent call. */
|
|
145
|
+
toolCallId?: string;
|
|
146
|
+
/** The parent turn's signal — aborting it cancels the child. */
|
|
147
|
+
signal?: AbortSignal;
|
|
148
|
+
/**
|
|
149
|
+
* The parent turn's channel to the user. The child's approval requests go through it
|
|
150
|
+
* (shown in the parent's chat); absent = the child's approval-gated tools are denied.
|
|
151
|
+
*/
|
|
152
|
+
interaction?: InteractionHandler;
|
|
153
|
+
}
|
|
154
|
+
/** A target the parent may delegate to, for the model's index and error messages. */
|
|
155
|
+
export interface SubagentTargetInfo {
|
|
156
|
+
kind: SubagentKind;
|
|
157
|
+
/** The agent's id, or the type's name. */
|
|
158
|
+
agentId: string;
|
|
159
|
+
name: string;
|
|
160
|
+
access: SubagentAccess;
|
|
161
|
+
/** The type's description, or the first line of the agent's system prompt. */
|
|
162
|
+
description: string;
|
|
163
|
+
}
|
|
164
|
+
/** This agent's subagents — ToolContext.subagents, and Agent.subagents for hosts. */
|
|
165
|
+
export interface AgentSubagents {
|
|
166
|
+
/**
|
|
167
|
+
* Run a child for the parent turn in `context` and wait for its report. Refusals decided
|
|
168
|
+
* before the child runs (not allowed, unknown agent, nesting, bad brief, no writable
|
|
169
|
+
* sandbox) throw SubagentError; everything after resolves with a status.
|
|
170
|
+
*/
|
|
171
|
+
spawn(request: SubagentRequest, context: SubagentSpawnContext): Promise<SubagentResult>;
|
|
172
|
+
/**
|
|
173
|
+
* What this agent may delegate to: enabled subagent types, then allowed running agents.
|
|
174
|
+
* A-106: from `sessionId`, its spawn scope's targets when it has one (a group lead's members).
|
|
175
|
+
*/
|
|
176
|
+
targets(sessionId?: string): Promise<SubagentTargetInfo[]>;
|
|
177
|
+
/** The child runs started from one of this agent's sessions, oldest first. */
|
|
178
|
+
list(parentSessionId: string): Promise<SubagentRun[]>;
|
|
179
|
+
/** One child run started by this agent, or null. */
|
|
180
|
+
get(runId: string): Promise<SubagentRun | null>;
|
|
181
|
+
/** Stop a running child of this agent. False when it is not running here. */
|
|
182
|
+
stop(runId: string): boolean;
|
|
183
|
+
/** Child runs of this agent running now. */
|
|
184
|
+
readonly running: number;
|
|
185
|
+
}
|
|
186
|
+
/** What a child knows about the turn that delegated to it. */
|
|
187
|
+
export interface SubagentParentRef {
|
|
188
|
+
runId: string;
|
|
189
|
+
agentId: string;
|
|
190
|
+
sessionId: string;
|
|
191
|
+
/** The child run's id. */
|
|
192
|
+
subagentRunId: string;
|
|
193
|
+
}
|
|
194
|
+
/** The child-side half of a child run: set up before its turn, released after. */
|
|
195
|
+
export interface SubagentChildBinding {
|
|
196
|
+
parent: SubagentParentRef;
|
|
197
|
+
access: SubagentAccess;
|
|
198
|
+
/** Where the child's approval requests go (the parent's channel to the user). */
|
|
199
|
+
interaction?: InteractionHandler;
|
|
200
|
+
}
|
|
201
|
+
/** The part of a child agent the parent's SubagentManager uses. Agent satisfies it. */
|
|
202
|
+
export interface SubagentTarget {
|
|
203
|
+
readonly profile: AgentProfile;
|
|
204
|
+
/** The child agent's own subagent side (session bindings, writer lock). */
|
|
205
|
+
readonly subagentSide: SubagentChildSide;
|
|
206
|
+
chat(message: string, options?: ModelOptions, runOptions?: RunOptions): Promise<RunResult>;
|
|
207
|
+
}
|
|
208
|
+
/** The agents a parent can reach. AgentCore.agents (MultiAgentOrchestration) satisfies it. */
|
|
209
|
+
export interface SubagentHost {
|
|
210
|
+
get(agentId: string): SubagentTarget | undefined;
|
|
211
|
+
list(): SubagentTarget[];
|
|
212
|
+
}
|
|
213
|
+
/** Child-side bookkeeping of an agent that runs as somebody's subagent. */
|
|
214
|
+
export interface SubagentChildSide {
|
|
215
|
+
/** Mark `sessionId` as a child session for one run. */
|
|
216
|
+
bind(sessionId: string, binding: SubagentChildBinding): void;
|
|
217
|
+
/** The run ended. */
|
|
218
|
+
unbind(sessionId: string): void;
|
|
219
|
+
/** Take this agent's single writer slot; false when a write-capable child already runs. */
|
|
220
|
+
tryAcquireWriter(runId: string): boolean;
|
|
221
|
+
releaseWriter(runId: string): void;
|
|
222
|
+
}
|
|
223
|
+
/** One child turn, handed to the runner. */
|
|
224
|
+
export interface SubagentTurnContext {
|
|
225
|
+
kind: SubagentKind;
|
|
226
|
+
/** The agent that owns the child's session (the target agent, or the parent for a type). */
|
|
227
|
+
agentId: string;
|
|
228
|
+
/** The target agent's name, or the subagent type's name. */
|
|
229
|
+
childAgentName: string;
|
|
230
|
+
/** The child's session, created for this run (or the one the spawn scope named, A-106). */
|
|
231
|
+
sessionId: string;
|
|
232
|
+
/** The brief, as the child's user message. */
|
|
233
|
+
prompt: string;
|
|
234
|
+
/** The task text the parent sent (A-106: a group shows it as the hand-off). */
|
|
235
|
+
task: string;
|
|
236
|
+
/** Aborted on parent stop, deadline, budget or stop(runId). */
|
|
237
|
+
signal: AbortSignal;
|
|
238
|
+
/** The parent turn — put on the child's run span so traces correlate. */
|
|
239
|
+
parent: SubagentParentRef;
|
|
240
|
+
/** Attributes for the child's "agent-run" span (RunOptions.traceAttributes). */
|
|
241
|
+
traceAttributes: Record<string, unknown>;
|
|
242
|
+
/**
|
|
243
|
+
* Runs the child turn (the target agent's chat(), or the type's short-lived loop). A host
|
|
244
|
+
* runner wraps its bookkeeping around it and passes the signal it controls (it should
|
|
245
|
+
* follow `signal` above too).
|
|
246
|
+
*/
|
|
247
|
+
execute(signal: AbortSignal): Promise<SubagentTurnResult>;
|
|
248
|
+
}
|
|
249
|
+
export interface SubagentTurnResult {
|
|
250
|
+
output: string;
|
|
251
|
+
usage: TokenUsage;
|
|
252
|
+
aborted?: boolean;
|
|
253
|
+
stopReason?: RunResult["stopReason"];
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Runs one child turn. The host sets one (AgentCore.useSubagentRunner) so a child turn takes
|
|
257
|
+
* its bookkeeping — per-session lock, stop registry, traces, usage — like its chat routes.
|
|
258
|
+
* Absent = context.execute(context.signal).
|
|
259
|
+
*/
|
|
260
|
+
export type SubagentRunner = (context: SubagentTurnContext) => Promise<SubagentTurnResult>;
|
|
261
|
+
/**
|
|
262
|
+
* How spawns from one session work instead of the profile's subagent config. A group
|
|
263
|
+
* chat's lead, while it leads a group turn, delegates to the group's members: they see
|
|
264
|
+
* the group thread (not a fresh brief), work in their own member sessions, stream into the
|
|
265
|
+
* thread, and the hand-offs need no extra approval (the user set the group up for it).
|
|
266
|
+
*/
|
|
267
|
+
export interface SubagentSpawnScope {
|
|
268
|
+
/** Who may be delegated to from the session — replaces profile.subagents.allow; subagent types are off. */
|
|
269
|
+
allow: SubagentTargetConfig[];
|
|
270
|
+
/** Limits replacing the profile's (hard caps still apply). */
|
|
271
|
+
limits?: Partial<Omit<ResolvedSubagentConfig, "allow" | "types">>;
|
|
272
|
+
/** spawn_subagent runs in the session without asking the user (the children's own approval-gated calls still ask). */
|
|
273
|
+
preApproved?: boolean;
|
|
274
|
+
/** The session is granted spawn_subagent even when the agent's allowlist lacks it. */
|
|
275
|
+
grantSpawnTool?: boolean;
|
|
276
|
+
/** First sentence of the <available_subagents> index, replacing the default "Each starts fresh…". */
|
|
277
|
+
indexIntro?: string;
|
|
278
|
+
/** The session a child of `agentId` runs in, instead of a fresh child session. */
|
|
279
|
+
childSession?(agentId: string): Promise<string>;
|
|
280
|
+
/** The child's user message, instead of the fresh brief (`runId`: the child run's id). */
|
|
281
|
+
brief?(request: SubagentRequest, target: {
|
|
282
|
+
agentId: string;
|
|
283
|
+
name: string;
|
|
284
|
+
runId: string;
|
|
285
|
+
}): Promise<string>;
|
|
286
|
+
/** Runs the child turn instead of the host's subagent runner. */
|
|
287
|
+
runner?: SubagentRunner;
|
|
288
|
+
}
|
|
289
|
+
/** The spawn scopes of the host's sessions (AgentCore: the GroupHub's, for group leads). */
|
|
290
|
+
export interface SubagentScopes {
|
|
291
|
+
get(sessionId: string): SubagentSpawnScope | undefined;
|
|
292
|
+
}
|
|
293
|
+
/** Metadata stamped on a child's session. */
|
|
294
|
+
export interface SubagentSessionMetadata {
|
|
295
|
+
agentId: string;
|
|
296
|
+
source: "subagent";
|
|
297
|
+
/** A subagent type (the session is a side branch of the parent agent) or an existing agent. */
|
|
298
|
+
kind: SubagentKind;
|
|
299
|
+
parentRunId: string;
|
|
300
|
+
parentSessionId: string;
|
|
301
|
+
parentAgentId: string;
|
|
302
|
+
subagentRunId: string;
|
|
303
|
+
title: string;
|
|
304
|
+
}
|
|
305
|
+
/** True when a session was created for a child run. */
|
|
306
|
+
export declare function isSubagentSession(session: Pick<Session, "metadata"> | null | undefined): boolean;
|
|
307
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/subagent-manager/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,wBAAwB,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|
1
|
+
export const SUBAGENT_DEFAULTS = {
|
|
2
|
+
maxConcurrent: 3,
|
|
3
|
+
maxRunsPerTurn: 6,
|
|
4
|
+
maxTokensPerTurn: 200_000,
|
|
5
|
+
maxToolCallsPerTurn: 50,
|
|
6
|
+
maxElapsedMsPerTurn: 10 * 60_000,
|
|
7
|
+
childTimeoutMs: 5 * 60_000,
|
|
8
|
+
};
|
|
9
|
+
export const SUBAGENT_HARD_CAPS = {
|
|
10
|
+
maxConcurrent: 8,
|
|
11
|
+
maxRunsPerTurn: 20,
|
|
12
|
+
maxTokensPerTurn: 2_000_000,
|
|
13
|
+
maxToolCallsPerTurn: 500,
|
|
14
|
+
maxElapsedMsPerTurn: 60 * 60_000,
|
|
15
|
+
childTimeoutMs: 30 * 60_000,
|
|
16
|
+
};
|
|
17
|
+
/** Limits of the brief a parent sends. */
|
|
18
|
+
export const SUBAGENT_BRIEF_LIMITS = {
|
|
19
|
+
/** Characters of the task text. */
|
|
20
|
+
task: 8_000,
|
|
21
|
+
/** Characters of the context, as JSON. */
|
|
22
|
+
context: 16_000,
|
|
23
|
+
/** Characters of the requested output shape. */
|
|
24
|
+
outputShape: 2_000,
|
|
25
|
+
/** Characters of a child's report handed back to the parent. */
|
|
26
|
+
output: 20_000,
|
|
27
|
+
};
|
|
28
|
+
/** The profile's subagent config with defaults and hard caps applied. Invalid fields fall back to the default. */
|
|
29
|
+
export function resolveSubagentConfig(config) {
|
|
30
|
+
const field = (key) => {
|
|
31
|
+
const value = config?.[key];
|
|
32
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 1)
|
|
33
|
+
return SUBAGENT_DEFAULTS[key];
|
|
34
|
+
return Math.min(Math.floor(value), SUBAGENT_HARD_CAPS[key]);
|
|
35
|
+
};
|
|
36
|
+
const seen = new Set();
|
|
37
|
+
const allow = [];
|
|
38
|
+
for (const target of config?.allow ?? []) {
|
|
39
|
+
if (!target || typeof target.agentId !== "string" || !target.agentId || seen.has(target.agentId))
|
|
40
|
+
continue;
|
|
41
|
+
seen.add(target.agentId);
|
|
42
|
+
allow.push({ agentId: target.agentId, access: target.access === "write" ? "write" : "read-only" });
|
|
43
|
+
}
|
|
44
|
+
const types = [...new Set((config?.types ?? []).filter((t) => typeof t === "string" && t.trim() !== "").map((t) => t.trim()))];
|
|
45
|
+
return {
|
|
46
|
+
allow,
|
|
47
|
+
types,
|
|
48
|
+
maxConcurrent: field("maxConcurrent"),
|
|
49
|
+
maxRunsPerTurn: field("maxRunsPerTurn"),
|
|
50
|
+
maxTokensPerTurn: field("maxTokensPerTurn"),
|
|
51
|
+
maxToolCallsPerTurn: field("maxToolCallsPerTurn"),
|
|
52
|
+
maxElapsedMsPerTurn: field("maxElapsedMsPerTurn"),
|
|
53
|
+
childTimeoutMs: field("childTimeoutMs"),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/** True when a session was created for a child run. */
|
|
57
|
+
export function isSubagentSession(session) {
|
|
58
|
+
return session?.metadata?.["source"] === "subagent";
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/subagent-manager/types.ts"],"names":[],"mappings":"AA0DA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,aAAa,EAAE,CAAC;IAChB,cAAc,EAAE,CAAC;IACjB,gBAAgB,EAAE,OAAO;IACzB,mBAAmB,EAAE,EAAE;IACvB,mBAAmB,EAAE,EAAE,GAAG,MAAM;IAChC,cAAc,EAAE,CAAC,GAAG,MAAM;CAClB,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,aAAa,EAAE,CAAC;IAChB,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,SAAS;IAC3B,mBAAmB,EAAE,GAAG;IACxB,mBAAmB,EAAE,EAAE,GAAG,MAAM;IAChC,cAAc,EAAE,EAAE,GAAG,MAAM;C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AAE,CAAC,CAAC;IACrG,CAAC;IACD,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5I,OAAO;QACL,KAAK;QACL,KAAK;QACL,aAAa,EAAE,KAAK,CAAC,eAAe,CAAC;QACrC,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACvC,gBAAgB,EAAE,KAAK,CAAC,kBAAkB,CAAC;QAC3C,mBAAmB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACjD,mBAAmB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACjD,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC;KACxC,CAAC;AACJ,CAAC;AAkQD,uDAAuD;AACvD,MAAM,UAAU,iBAAiB,CAAC,OAAqD;IACrF,OAAO,OAAO,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,KAAK,UAAU,CAAC;AACtD,CAAC"}
|
|
@@ -11,9 +11,20 @@ import type { AgentProfile } from "../types.js";
|
|
|
11
11
|
export declare class ToolManager {
|
|
12
12
|
private hub;
|
|
13
13
|
private allowedToolNames;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
private sessionGrants;
|
|
15
|
+
/**
|
|
16
|
+
* @param options.sessionGrants A-106: tools a session may use beyond the allowlist, read on
|
|
17
|
+
* every call (a group lead's session is granted spawn_subagent to hand work to members).
|
|
18
|
+
*/
|
|
19
|
+
constructor(toolHub: ToolHub, profile: AgentProfile, options?: {
|
|
20
|
+
sessionGrants?: (sessionId: string) => readonly string[];
|
|
21
|
+
});
|
|
22
|
+
/** A tool of the agent; with `sessionId`, the session's granted tools count too (A-106). */
|
|
23
|
+
get(name: string, sessionId?: string): ToolHandler | undefined;
|
|
24
|
+
/** The agent's tools; with `sessionId`, plus the session's granted tools (A-106). */
|
|
25
|
+
list(sessionId?: string): ToolHandler[];
|
|
26
|
+
/** A-106: the tools a session is granted beyond the allowlist (none without a session). */
|
|
27
|
+
grantedTools(sessionId?: string): readonly string[];
|
|
17
28
|
/** Replace the tool allowlist (e.g. after a PATCH update). */
|
|
18
29
|
setAllowedTools(names: string[]): void;
|
|
19
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-manager.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/tool-manager/tool-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,gBAAgB,CAAW;
|
|
1
|
+
{"version":3,"file":"tool-manager.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/tool-manager/tool-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,gBAAgB,CAAW;IACnC,OAAO,CAAC,aAAa,CAAyD;IAE9E;;;OAGG;IACH,YAAY,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAE;QAAE,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,CAAA;KAAO,EAI9H;IAED,4FAA4F;IAC5F,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAG7D;IAED,qFAAqF;IACrF,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,EAAE,CAGtC;IAED,2FAA2F;IAC3F,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAElD;IAED,8DAA8D;IAC9D,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAErC;CACF"}
|
|
@@ -8,17 +8,30 @@
|
|
|
8
8
|
export class ToolManager {
|
|
9
9
|
hub;
|
|
10
10
|
allowedToolNames;
|
|
11
|
-
|
|
11
|
+
sessionGrants;
|
|
12
|
+
/**
|
|
13
|
+
* @param options.sessionGrants A-106: tools a session may use beyond the allowlist, read on
|
|
14
|
+
* every call (a group lead's session is granted spawn_subagent to hand work to members).
|
|
15
|
+
*/
|
|
16
|
+
constructor(toolHub, profile, options = {}) {
|
|
12
17
|
this.hub = toolHub;
|
|
13
18
|
this.allowedToolNames = profile.tools;
|
|
19
|
+
this.sessionGrants = options.sessionGrants;
|
|
14
20
|
}
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
/** A tool of the agent; with `sessionId`, the session's granted tools count too (A-106). */
|
|
22
|
+
get(name, sessionId) {
|
|
23
|
+
if (!this.allowedToolNames.includes(name) && !this.grantedTools(sessionId).includes(name))
|
|
17
24
|
return undefined;
|
|
18
25
|
return this.hub.get(name);
|
|
19
26
|
}
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
/** The agent's tools; with `sessionId`, plus the session's granted tools (A-106). */
|
|
28
|
+
list(sessionId) {
|
|
29
|
+
const granted = this.grantedTools(sessionId).filter((n) => !this.allowedToolNames.includes(n));
|
|
30
|
+
return this.hub.getByNames(granted.length ? [...this.allowedToolNames, ...granted] : this.allowedToolNames);
|
|
31
|
+
}
|
|
32
|
+
/** A-106: the tools a session is granted beyond the allowlist (none without a session). */
|
|
33
|
+
grantedTools(sessionId) {
|
|
34
|
+
return sessionId && this.sessionGrants ? this.sessionGrants(sessionId) : [];
|
|
22
35
|
}
|
|
23
36
|
/** Replace the tool allowlist (e.g. after a PATCH update). */
|
|
24
37
|
setAllowedTools(names) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-manager.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/tool-manager/tool-manager.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,OAAO,WAAW;IACd,GAAG,CAAU;IACb,gBAAgB,CAAW;
|
|
1
|
+
{"version":3,"file":"tool-manager.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/tool-manager/tool-manager.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,OAAO,WAAW;IACd,GAAG,CAAU;IACb,gBAAgB,CAAW;IAC3B,aAAa,CAAyD;IAE9E;;;OAGG;IACH,YAAY,OAAgB,EAAE,OAAqB,EAAE,OAAO,GAAiE,EAAE;QAC7H,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC;QACnB,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,KAAK,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAC7C,CAAC;IAED,4FAA4F;IAC5F,GAAG,CAAC,IAAY,EAAE,SAAkB;QAClC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,SAAS,CAAC;QAC5G,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,qFAAqF;IACrF,IAAI,CAAC,SAAkB;QACrB,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/F,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,gBAAgB,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC9G,CAAC;IAED,2FAA2F;IAC3F,YAAY,CAAC,SAAkB;QAC7B,OAAO,SAAS,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9E,CAAC;IAED,8DAA8D;IAC9D,eAAe,CAAC,KAAe;QAC7B,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import type { CompactorConfig } from "./agent-loop/components/compactor.types.js";
|
|
2
2
|
import type { MemoryConfig } from "./memory-system/types/config.js";
|
|
3
3
|
import type { SandboxSelection } from "../../sandbox-hub/types/policy.js";
|
|
4
|
+
import type { LLMProviderHub } from "../../llm-provider-hub/llm-provider-hub.js";
|
|
5
|
+
import type { ToolHub } from "../../tool-hub/tool-hub.js";
|
|
6
|
+
import type { SkillHub } from "../../skill-hub/skill-hub.js";
|
|
7
|
+
import type { SandboxHub } from "../../sandbox-hub/sandbox-hub.js";
|
|
8
|
+
import type { ArtifactHub } from "../../artifact-hub/artifact-hub.js";
|
|
9
|
+
import type { TraceService } from "../../trace-service/trace-service.js";
|
|
10
|
+
import type { EventBus } from "../../event-handler/types.js";
|
|
11
|
+
import type { PersistenceHub } from "../../persistence-hub/persistence-hub.js";
|
|
12
|
+
import type { ChannelTurnRunner } from "./channel-manager/types.js";
|
|
13
|
+
import type { ChannelPlatformHub } from "../../channel-platform-hub/channel-platform-hub.js";
|
|
14
|
+
import type { JobRunner } from "./job-manager/types.js";
|
|
15
|
+
import type { SubagentConfig, SubagentHost, SubagentRunner, SubagentScopes } from "./subagent-manager/types.js";
|
|
16
|
+
import type { SubagentHub } from "../../subagent-hub/subagent-hub.js";
|
|
17
|
+
import type { SecretConfig } from "./secret-manager/types.js";
|
|
18
|
+
import type { SecretHub } from "../../secret-hub/secret-hub.js";
|
|
19
|
+
import type { HostCommand } from "./command-manager/command-manager.js";
|
|
4
20
|
export interface AgentProfile {
|
|
5
21
|
id: string;
|
|
6
22
|
name: string;
|
|
@@ -29,7 +45,8 @@ export interface AgentProfile {
|
|
|
29
45
|
};
|
|
30
46
|
/**
|
|
31
47
|
* Per-agent agent-loop limits. Omitted fields fall back to the SDK defaults
|
|
32
|
-
* defined in agent-loop/types.ts (MAX_ITERATIONS, MAX_TOOL_RETRIES, RETRY_BACKOFF_MS
|
|
48
|
+
* defined in agent-loop/types.ts (MAX_ITERATIONS, MAX_TOOL_RETRIES, RETRY_BACKOFF_MS,
|
|
49
|
+
* MAX_CONCURRENT_TURNS).
|
|
33
50
|
*/
|
|
34
51
|
loopConfig?: {
|
|
35
52
|
/** Max model/tool round-trips per turn (integer >= 1). */
|
|
@@ -38,7 +55,73 @@ export interface AgentProfile {
|
|
|
38
55
|
maxToolRetries?: number;
|
|
39
56
|
/** Base delay of the exponential backoff, delay = base x 2^attempt (integer >= 0). */
|
|
40
57
|
retryBackoffMs?: number;
|
|
58
|
+
/**
|
|
59
|
+
* A-97: most turns this agent runs at once across its sessions (integer >= 0;
|
|
60
|
+
* 0 or omitted = no cap). Turns of one session always run one at a time.
|
|
61
|
+
*/
|
|
62
|
+
maxConcurrentTurns?: number;
|
|
41
63
|
};
|
|
42
64
|
memory: MemoryConfig;
|
|
65
|
+
/**
|
|
66
|
+
* A-105: the agents this one may hand bounded tasks to through spawn_subagent, and the
|
|
67
|
+
* budget all children of one of its turns share. Absent = no subagents.
|
|
68
|
+
*/
|
|
69
|
+
subagents?: SubagentConfig;
|
|
70
|
+
/**
|
|
71
|
+
* A-101: the global secrets this agent may use (it can always use its own). Absent = only
|
|
72
|
+
* its own.
|
|
73
|
+
*/
|
|
74
|
+
secrets?: SecretConfig;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* What an Agent needs from its host — the hubs and services it calls directly (request/response).
|
|
78
|
+
* AgentCore satisfies it structurally; pass any object with these members to build agents without AgentCore.
|
|
79
|
+
*/
|
|
80
|
+
export interface AgentDeps {
|
|
81
|
+
readonly llmProviderHub: LLMProviderHub;
|
|
82
|
+
readonly toolHub: ToolHub;
|
|
83
|
+
readonly skillHub: SkillHub;
|
|
84
|
+
readonly sandboxHub: SandboxHub;
|
|
85
|
+
readonly artifactHub: ArtifactHub;
|
|
86
|
+
readonly traceService: TraceService;
|
|
87
|
+
readonly eventBus: EventBus;
|
|
88
|
+
readonly persistence: PersistenceHub;
|
|
89
|
+
/**
|
|
90
|
+
* Chat platforms channels can use (A-100), read on every connect. Absent = none:
|
|
91
|
+
* the agent's channels cannot connect.
|
|
92
|
+
*/
|
|
93
|
+
readonly channelPlatformHub?: ChannelPlatformHub;
|
|
94
|
+
/**
|
|
95
|
+
* Runs channel turns (A-100), read on every turn. Absent = the agent's own chat(),
|
|
96
|
+
* which takes none of the host's bookkeeping (its lock, stop registry, usage).
|
|
97
|
+
*/
|
|
98
|
+
readonly channelTurnRunner?: ChannelTurnRunner;
|
|
99
|
+
/**
|
|
100
|
+
* Runs trigger turns (A-70), read on every run. Absent = the agent's own chat(),
|
|
101
|
+
* which takes none of the host's bookkeeping (its lock, stop registry, usage).
|
|
102
|
+
* Update (A-126): runs job turns of every kind (prompt-job turns (A-69) included).
|
|
103
|
+
*/
|
|
104
|
+
readonly jobRunner?: JobRunner;
|
|
105
|
+
/**
|
|
106
|
+
* A-105: the agents a subagent can be — AgentCore.agents satisfies it. Absent = the agent
|
|
107
|
+
* cannot delegate.
|
|
108
|
+
*/
|
|
109
|
+
readonly agents?: SubagentHost;
|
|
110
|
+
/**
|
|
111
|
+
* A-105: runs child turns, read on every child run. Absent = the child agent's own chat(),
|
|
112
|
+
* which takes none of the host's bookkeeping (its lock, stop registry, usage).
|
|
113
|
+
*/
|
|
114
|
+
readonly subagentRunner?: SubagentRunner;
|
|
115
|
+
/** A-105: the library of subagent types (AgentCore.subagentHub). Absent = no subagent types. */
|
|
116
|
+
readonly subagentHub?: SubagentHub;
|
|
117
|
+
/**
|
|
118
|
+
* A-106: spawn scopes of sessions, read on every spawn — a group lead's session delegates to
|
|
119
|
+
* the group's members while it leads a group turn (AgentCore: the GroupHub's). Absent = none.
|
|
120
|
+
*/
|
|
121
|
+
readonly subagentScopes?: SubagentScopes;
|
|
122
|
+
/** A-101: secrets — sealed keys agents use without seeing them (AgentCore.secretHub). Absent = no secrets. */
|
|
123
|
+
readonly secretHub?: SecretHub;
|
|
124
|
+
/** A-136: the host's slash commands (AgentCore.useCommand), read on every call. Absent = none. */
|
|
125
|
+
readonly hostCommands?: readonly HostCommand[];
|
|
43
126
|
}
|
|
44
127
|
//# sourceMappingURL=types.d.ts.map
|