aec-agent 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
// A-136: the built-in slash commands. Each one works through the agent's managers (passed
|
|
2
|
+
// in as BuiltInCommandDeps) — the commands hold no state of their own.
|
|
3
|
+
import { SessionError } from "../../../../kernel/errors/session-error.js";
|
|
4
|
+
import { isSubagentSession } from "../subagent-manager/types.js";
|
|
5
|
+
/** Most sessions /resume lists. */
|
|
6
|
+
const MAX_LISTED_SESSIONS = 10;
|
|
7
|
+
/** Most models /model lists. */
|
|
8
|
+
const MAX_LISTED_MODELS = 30;
|
|
9
|
+
/** Most characters of `git diff` /diff shows, and /review sends to the model. */
|
|
10
|
+
const MAX_DIFF_CHARS = 20_000;
|
|
11
|
+
const MAX_REVIEW_DIFF_CHARS = 60_000;
|
|
12
|
+
const MAX_TITLE_LENGTH = 120;
|
|
13
|
+
const GIT_TIMEOUT_MS = 30_000;
|
|
14
|
+
const GIT_MAX_OUTPUT_BYTES = 2_000_000;
|
|
15
|
+
/** The built-in commands' names and aliases (a host command can't take them). */
|
|
16
|
+
export const BUILT_IN_COMMAND_SPECS = [
|
|
17
|
+
{ name: "help", description: "List the commands, or explain one", arguments: [{ name: "command" }], safety: "read-only" },
|
|
18
|
+
{
|
|
19
|
+
name: "clear",
|
|
20
|
+
aliases: ["new", "reset"],
|
|
21
|
+
description: "Start a new conversation (this one is kept: /resume brings it back)",
|
|
22
|
+
arguments: [],
|
|
23
|
+
safety: "session",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "compact",
|
|
27
|
+
description: "Summarize the conversation so far to free context",
|
|
28
|
+
arguments: [{ name: "focus", description: "What the summary should keep in detail", rest: true }],
|
|
29
|
+
safety: "session",
|
|
30
|
+
whileBusy: "refuse",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "resume",
|
|
34
|
+
description: "List recent conversations, or go back to one",
|
|
35
|
+
arguments: [{ name: "conversation", description: "Its number in the list, its id or its title", rest: true }],
|
|
36
|
+
safety: "session",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "rename",
|
|
40
|
+
description: "Rename this conversation",
|
|
41
|
+
arguments: [{ name: "name", required: true, rest: true }],
|
|
42
|
+
safety: "session",
|
|
43
|
+
},
|
|
44
|
+
{ name: "status", description: "Show the model, context, permissions and workspace", arguments: [], safety: "read-only" },
|
|
45
|
+
{ name: "context", description: "Show what fills the context window", arguments: [], safety: "read-only" },
|
|
46
|
+
{ name: "usage", description: "Show token usage", arguments: [], safety: "read-only", replaceable: true },
|
|
47
|
+
{
|
|
48
|
+
name: "model",
|
|
49
|
+
description: "Show the models, or switch this conversation's model",
|
|
50
|
+
arguments: [{ name: "model", description: "A model name, or \"default\" for the agent's" }],
|
|
51
|
+
safety: "session",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "permissions",
|
|
55
|
+
description: "Show or change how tool calls are approved (ask, yolo, plan)",
|
|
56
|
+
arguments: [{ name: "mode", choices: ["ask", "yolo", "plan"] }],
|
|
57
|
+
safety: "privileged",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "yolo",
|
|
61
|
+
description: "Run tools without asking (on/off)",
|
|
62
|
+
arguments: [{ name: "switch", choices: ["on", "off"] }],
|
|
63
|
+
safety: "privileged",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "plan",
|
|
67
|
+
description: "Plan read-only: tools that change things don't run (off to stop)",
|
|
68
|
+
arguments: [{ name: "prompt", description: "What to plan (sent right away), or \"off\"", rest: true }],
|
|
69
|
+
safety: "session",
|
|
70
|
+
},
|
|
71
|
+
{ name: "init", description: "Create or improve the project's AGENTS.md instructions", arguments: [], safety: "session" },
|
|
72
|
+
{ name: "diff", description: "Show the workspace's uncommitted changes (git)", arguments: [], safety: "read-only" },
|
|
73
|
+
{
|
|
74
|
+
name: "review",
|
|
75
|
+
description: "Review the uncommitted changes (read-only)",
|
|
76
|
+
arguments: [{ name: "focus", rest: true }],
|
|
77
|
+
safety: "read-only",
|
|
78
|
+
},
|
|
79
|
+
{ name: "copy", description: "Copy the last reply", arguments: [], safety: "read-only", requires: ["clipboard"] },
|
|
80
|
+
{ name: "exit", aliases: ["quit"], description: "Close the app", arguments: [], safety: "read-only", requires: ["exit"] },
|
|
81
|
+
];
|
|
82
|
+
/** The built-in commands, working through `deps`. */
|
|
83
|
+
export function builtInCommands(deps) {
|
|
84
|
+
const handlers = {
|
|
85
|
+
help: (ctx) => help(deps, ctx),
|
|
86
|
+
clear: (ctx) => clear(deps, ctx),
|
|
87
|
+
compact: (ctx) => compact(deps, ctx),
|
|
88
|
+
resume: (ctx) => resume(deps, ctx),
|
|
89
|
+
rename: (ctx) => rename(deps, ctx),
|
|
90
|
+
status: (ctx) => status(deps, ctx),
|
|
91
|
+
context: (ctx) => context(deps, ctx),
|
|
92
|
+
usage: (ctx) => usage(deps, ctx),
|
|
93
|
+
model: (ctx) => model(deps, ctx),
|
|
94
|
+
permissions: (ctx) => permissions(deps, ctx, ctx.argv["mode"]),
|
|
95
|
+
yolo: (ctx) => permissions(deps, ctx, ctx.argv["switch"] === undefined ? undefined : ctx.argv["switch"] === "on" ? "yolo" : "ask"),
|
|
96
|
+
plan: (ctx) => plan(deps, ctx),
|
|
97
|
+
init: (ctx) => init(deps, ctx),
|
|
98
|
+
diff: (ctx) => diff(deps, ctx),
|
|
99
|
+
review: (ctx) => review(deps, ctx),
|
|
100
|
+
copy: (ctx) => copy(deps, ctx),
|
|
101
|
+
exit: () => ({ text: "Bye.", action: { type: "exit" } }),
|
|
102
|
+
};
|
|
103
|
+
return BUILT_IN_COMMAND_SPECS.map((spec) => ({ ...spec, run: handlers[spec.name] }));
|
|
104
|
+
}
|
|
105
|
+
// --- Discovery -----------------------------------------------------------------------
|
|
106
|
+
function help(deps, ctx) {
|
|
107
|
+
const commands = deps.listCommands(ctx);
|
|
108
|
+
const wanted = ctx.argv["command"]?.replace(/^\//, "").toLowerCase();
|
|
109
|
+
if (wanted) {
|
|
110
|
+
const c = commands.find((x) => x.name === wanted || x.aliases.includes(wanted));
|
|
111
|
+
if (!c)
|
|
112
|
+
return { text: `There is no command /${wanted}. Send /help to see the commands.`, error: "not_found" };
|
|
113
|
+
const lines = [`${c.usage} — ${c.description}`];
|
|
114
|
+
if (c.aliases.length)
|
|
115
|
+
lines.push(`Also: ${c.aliases.map((a) => `/${a}`).join(", ")}`);
|
|
116
|
+
for (const a of c.arguments) {
|
|
117
|
+
const detail = [a.description, a.choices?.length ? `one of ${a.choices.join(", ")}` : undefined].filter(Boolean).join("; ");
|
|
118
|
+
lines.push(`• ${a.name}${a.required ? "" : " (optional)"}${detail ? `: ${detail}` : ""}`);
|
|
119
|
+
}
|
|
120
|
+
lines.push(SAFETY_TEXT[c.safety]);
|
|
121
|
+
if (!c.available)
|
|
122
|
+
lines.push(`Not available here: ${c.unavailableReason}.`);
|
|
123
|
+
return { text: lines.join("\n") };
|
|
124
|
+
}
|
|
125
|
+
const available = commands.filter((c) => c.available);
|
|
126
|
+
const unavailable = commands.filter((c) => !c.available);
|
|
127
|
+
const lines = ["Commands:", ...available.map(helpLine)];
|
|
128
|
+
if (unavailable.length) {
|
|
129
|
+
lines.push("", "Not available here:", ...unavailable.map((c) => `${c.usage} — ${c.unavailableReason}`));
|
|
130
|
+
}
|
|
131
|
+
lines.push("", "Send /help <command> for details.");
|
|
132
|
+
return { text: lines.join("\n") };
|
|
133
|
+
}
|
|
134
|
+
const SAFETY_TEXT = {
|
|
135
|
+
"read-only": "Read-only: it changes nothing.",
|
|
136
|
+
session: "Changes this conversation.",
|
|
137
|
+
privileged: "Can let the agent do more without asking, so it asks you to confirm first.",
|
|
138
|
+
};
|
|
139
|
+
/** "/clear (/new, /reset) — Start a new conversation". */
|
|
140
|
+
export function helpLine(c) {
|
|
141
|
+
return `${c.usage}${c.aliases.length ? ` (${c.aliases.map((a) => `/${a}`).join(", ")})` : ""} — ${c.description}`;
|
|
142
|
+
}
|
|
143
|
+
// --- Session and context -----------------------------------------------------------
|
|
144
|
+
async function clear(deps, ctx) {
|
|
145
|
+
const session = await deps.startSessionFrom(ctx.sessionId);
|
|
146
|
+
if (!session)
|
|
147
|
+
return notFound();
|
|
148
|
+
return {
|
|
149
|
+
text: "Started a new conversation. The previous one is kept: /resume lists it.",
|
|
150
|
+
action: { type: "open-session", sessionId: session.id },
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
async function compact(deps, ctx) {
|
|
154
|
+
const result = await deps.compact(ctx.sessionId, ctx.argv["focus"]);
|
|
155
|
+
if (!result)
|
|
156
|
+
return notFound();
|
|
157
|
+
if (!result.compacted) {
|
|
158
|
+
return { text: "Nothing to compact yet: the conversation is short enough to keep as it is." };
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
text: `Compacted the conversation: ${result.messagesBefore} messages → ${result.messagesAfter} ` +
|
|
162
|
+
`(context about ${tokens(result.beforeTokens)} → ${tokens(result.afterTokens)} tokens). ` +
|
|
163
|
+
"The full history is kept; the agent now works from the summary and the latest messages.",
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/** The sessions /resume offers: the client's scope, newest first, no job or subagent runs, not this one. */
|
|
167
|
+
async function resumable(deps, ctx) {
|
|
168
|
+
const sessions = await deps.listSessions(ctx.sessionScope ? { metadata: ctx.sessionScope } : undefined);
|
|
169
|
+
return sessions
|
|
170
|
+
.filter((s) => s.id !== ctx.sessionId && s.jobId === undefined && !isSubagentSession(s))
|
|
171
|
+
.sort((a, b) => b.updatedAt - a.updatedAt);
|
|
172
|
+
}
|
|
173
|
+
async function resume(deps, ctx) {
|
|
174
|
+
const sessions = await resumable(deps, ctx);
|
|
175
|
+
const wanted = ctx.argv["conversation"]?.trim();
|
|
176
|
+
const listed = sessions.slice(0, MAX_LISTED_SESSIONS);
|
|
177
|
+
if (!wanted) {
|
|
178
|
+
if (listed.length === 0)
|
|
179
|
+
return { text: "There are no other conversations to resume." };
|
|
180
|
+
return {
|
|
181
|
+
text: [
|
|
182
|
+
"Recent conversations:",
|
|
183
|
+
...listed.map((s, i) => `${i + 1}. ${titleOf(s)} · ${day(s.updatedAt)} · ${s.id.slice(0, 8)}`),
|
|
184
|
+
"",
|
|
185
|
+
"Resume one with /resume <number>, /resume <id> or /resume <title>.",
|
|
186
|
+
].join("\n"),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
const pick = pickSession(listed, sessions, wanted);
|
|
190
|
+
if (typeof pick === "string")
|
|
191
|
+
return { text: pick, error: "not_found" };
|
|
192
|
+
return { text: `Resumed “${titleOf(pick)}”.`, action: { type: "open-session", sessionId: pick.id } };
|
|
193
|
+
}
|
|
194
|
+
function pickSession(listed, all, wanted) {
|
|
195
|
+
if (/^\d+$/.test(wanted)) {
|
|
196
|
+
const s = listed[Number(wanted) - 1];
|
|
197
|
+
return s ?? `There is no conversation ${wanted} in the list. Send /resume to see it.`;
|
|
198
|
+
}
|
|
199
|
+
const lower = wanted.toLowerCase();
|
|
200
|
+
const byId = all.filter((s) => s.id === wanted || (wanted.length >= 4 && s.id.startsWith(wanted)));
|
|
201
|
+
if (byId.length === 1)
|
|
202
|
+
return byId[0];
|
|
203
|
+
const exact = all.filter((s) => titleOf(s).toLowerCase() === lower);
|
|
204
|
+
if (exact.length >= 1)
|
|
205
|
+
return exact[0];
|
|
206
|
+
const partial = all.filter((s) => titleOf(s).toLowerCase().includes(lower));
|
|
207
|
+
if (partial.length === 1)
|
|
208
|
+
return partial[0];
|
|
209
|
+
if (partial.length > 1 || byId.length > 1) {
|
|
210
|
+
return `More than one conversation matches "${wanted}". Send /resume and pick one by its number.`;
|
|
211
|
+
}
|
|
212
|
+
return `No conversation matches "${wanted}". Send /resume to see the list.`;
|
|
213
|
+
}
|
|
214
|
+
async function rename(deps, ctx) {
|
|
215
|
+
const title = ctx.argv["name"].replace(/\s+/g, " ").trim().slice(0, MAX_TITLE_LENGTH);
|
|
216
|
+
const session = await deps.updateSession(ctx.sessionId, ["title"], (s) => {
|
|
217
|
+
s.metadata = { ...s.metadata, title };
|
|
218
|
+
});
|
|
219
|
+
if (!session)
|
|
220
|
+
return notFound();
|
|
221
|
+
return { text: `Renamed this conversation to “${title}”.` };
|
|
222
|
+
}
|
|
223
|
+
// --- Diagnostics ---------------------------------------------------------------------
|
|
224
|
+
async function status(deps, ctx) {
|
|
225
|
+
const session = await deps.getSession(ctx.sessionId);
|
|
226
|
+
if (!session)
|
|
227
|
+
return notFound();
|
|
228
|
+
const [mode, usage] = await Promise.all([deps.getApprovalMode(ctx.sessionId), deps.contextUsage(ctx.sessionId)]);
|
|
229
|
+
const agentModel = deps.getDefaultModel();
|
|
230
|
+
const lines = [
|
|
231
|
+
`Agent: ${deps.getAgentName()}`,
|
|
232
|
+
`Conversation: ${titleOf(session)} (${session.id})`,
|
|
233
|
+
`Started: ${new Date(session.createdAt).toISOString().slice(0, 16).replace("T", " ")} UTC`,
|
|
234
|
+
session.llmModel
|
|
235
|
+
? `Model: ${session.llmModel}`
|
|
236
|
+
: `Model: ${agentModel ?? "the provider's default"} (the agent's default)`,
|
|
237
|
+
];
|
|
238
|
+
if (usage)
|
|
239
|
+
lines.push(`Context: ${contextLine(usage)}`);
|
|
240
|
+
lines.push(`Permissions: ${MODE_TEXT[mode]}`);
|
|
241
|
+
lines.push(`Workspace: ${deps.describeWorkspace()}`);
|
|
242
|
+
if (deps.isBusy(ctx.sessionId))
|
|
243
|
+
lines.push("A reply is running in this conversation.");
|
|
244
|
+
return { text: lines.join("\n") };
|
|
245
|
+
}
|
|
246
|
+
async function context(deps, ctx) {
|
|
247
|
+
const usage = await deps.contextUsage(ctx.sessionId);
|
|
248
|
+
if (!usage)
|
|
249
|
+
return notFound();
|
|
250
|
+
const lines = [
|
|
251
|
+
`Context: ${contextLine(usage)}`,
|
|
252
|
+
`Compaction starts at ${tokens(usage.compactAtTokens)} tokens; /compact summarizes now.`,
|
|
253
|
+
"",
|
|
254
|
+
...usage.categories.filter((c) => c.tokens > 0).map((c) => `• ${CATEGORY_LABELS[c.key]}: ${tokens(c.tokens)}`),
|
|
255
|
+
];
|
|
256
|
+
return { text: lines.join("\n") };
|
|
257
|
+
}
|
|
258
|
+
const CATEGORY_LABELS = {
|
|
259
|
+
system_prompt: "System prompt",
|
|
260
|
+
memory_files: "Memory files",
|
|
261
|
+
skills: "Skills",
|
|
262
|
+
agents: "Subagents",
|
|
263
|
+
secrets: "Secrets",
|
|
264
|
+
tools: "Tools",
|
|
265
|
+
memories: "Recalled memories",
|
|
266
|
+
messages: "Messages",
|
|
267
|
+
summary: "Summary",
|
|
268
|
+
other: "Other",
|
|
269
|
+
};
|
|
270
|
+
async function usage(deps, ctx) {
|
|
271
|
+
const session = await deps.getSession(ctx.sessionId);
|
|
272
|
+
if (!session)
|
|
273
|
+
return notFound();
|
|
274
|
+
const lines = [];
|
|
275
|
+
const last = session.currentTokenUsage;
|
|
276
|
+
if (last) {
|
|
277
|
+
const cache = [
|
|
278
|
+
last.cacheReadTokens ? `${tokens(last.cacheReadTokens)} read from cache` : "",
|
|
279
|
+
last.cacheWriteTokens ? `${tokens(last.cacheWriteTokens)} written to cache` : "",
|
|
280
|
+
].filter(Boolean);
|
|
281
|
+
lines.push(`Last response: ${tokens(last.inputTokens)} input, ${tokens(last.outputTokens)} output tokens${cache.length ? ` (${cache.join(", ")})` : ""}.`);
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
lines.push("No model response in this conversation yet.");
|
|
285
|
+
}
|
|
286
|
+
const ctxUsage = await deps.contextUsage(ctx.sessionId);
|
|
287
|
+
if (ctxUsage)
|
|
288
|
+
lines.push(`Context: ${contextLine(ctxUsage)}`);
|
|
289
|
+
lines.push("Totals and cost aren't tracked by this host.");
|
|
290
|
+
return { text: lines.join("\n") };
|
|
291
|
+
}
|
|
292
|
+
// --- Runtime controls ----------------------------------------------------------------
|
|
293
|
+
async function model(deps, ctx) {
|
|
294
|
+
const session = await deps.getSession(ctx.sessionId);
|
|
295
|
+
if (!session)
|
|
296
|
+
return notFound();
|
|
297
|
+
const agentModel = deps.getDefaultModel();
|
|
298
|
+
let models;
|
|
299
|
+
try {
|
|
300
|
+
models = await deps.listModels();
|
|
301
|
+
}
|
|
302
|
+
catch {
|
|
303
|
+
models = undefined;
|
|
304
|
+
}
|
|
305
|
+
const wanted = ctx.argv["model"]?.trim();
|
|
306
|
+
if (!wanted) {
|
|
307
|
+
const lines = [
|
|
308
|
+
session.llmModel
|
|
309
|
+
? `Model: ${session.llmModel}`
|
|
310
|
+
: `Model: ${agentModel ?? "the provider's default"} (the agent's default)`,
|
|
311
|
+
];
|
|
312
|
+
if (models?.length) {
|
|
313
|
+
lines.push("", "Available:", ...models.slice(0, MAX_LISTED_MODELS).map((m) => `• ${m}`));
|
|
314
|
+
if (models.length > MAX_LISTED_MODELS)
|
|
315
|
+
lines.push(`… and ${models.length - MAX_LISTED_MODELS} more`);
|
|
316
|
+
}
|
|
317
|
+
lines.push("", "Switch with /model <name>; /model default goes back to the agent's model.");
|
|
318
|
+
return { text: lines.join("\n") };
|
|
319
|
+
}
|
|
320
|
+
let next;
|
|
321
|
+
if (wanted.toLowerCase() !== "default") {
|
|
322
|
+
const match = models?.find((m) => m.toLowerCase() === wanted.toLowerCase());
|
|
323
|
+
if (models?.length && !match) {
|
|
324
|
+
return { text: `There is no model "${wanted}". Send /model to see the list.`, error: "invalid_arguments" };
|
|
325
|
+
}
|
|
326
|
+
next = match ?? wanted;
|
|
327
|
+
}
|
|
328
|
+
const saved = await deps.updateSession(ctx.sessionId, ["llmModel"], (s) => {
|
|
329
|
+
if (next)
|
|
330
|
+
s.llmModel = next;
|
|
331
|
+
else
|
|
332
|
+
delete s.llmModel;
|
|
333
|
+
});
|
|
334
|
+
if (!saved)
|
|
335
|
+
return notFound();
|
|
336
|
+
const busy = deps.isBusy(ctx.sessionId) ? " The reply that is running keeps its model; the next one uses this." : "";
|
|
337
|
+
return {
|
|
338
|
+
text: next
|
|
339
|
+
? `This conversation now uses ${next}.${busy}`
|
|
340
|
+
: `This conversation now uses the agent's model${agentModel ? ` (${agentModel})` : ""}.${busy}`,
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
const MODE_TEXT = {
|
|
344
|
+
ask: "ask — tools that need approval ask first",
|
|
345
|
+
yolo: "YOLO — tools run without asking",
|
|
346
|
+
plan: "plan — read-only: tools that change things don't run",
|
|
347
|
+
};
|
|
348
|
+
/** /permissions [ask|yolo|plan] and /yolo [on|off] — show or set the session's approval mode. */
|
|
349
|
+
async function permissions(deps, ctx, wanted) {
|
|
350
|
+
const current = await deps.getApprovalMode(ctx.sessionId);
|
|
351
|
+
const yolo = ctx.name === "yolo";
|
|
352
|
+
if (!wanted && yolo) {
|
|
353
|
+
// A-135's /yolo answers, kept.
|
|
354
|
+
return {
|
|
355
|
+
text: current === "yolo"
|
|
356
|
+
? "YOLO mode is on: tools run without asking. Send /yolo off to ask again."
|
|
357
|
+
: "YOLO mode is off: tools that need approval ask here first. Send /yolo on to run them without asking.",
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
if (!wanted) {
|
|
361
|
+
return {
|
|
362
|
+
text: [
|
|
363
|
+
`Permissions: ${MODE_TEXT[current]}.`,
|
|
364
|
+
"",
|
|
365
|
+
"• /permissions ask — tools that need approval ask first (the default)",
|
|
366
|
+
"• /permissions yolo — tools run without asking, until you switch back",
|
|
367
|
+
"• /permissions plan — read-only planning: tools that change things don't run",
|
|
368
|
+
].join("\n"),
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
if (wanted === "yolo" && current !== "yolo" && !ctx.confirmed) {
|
|
372
|
+
return {
|
|
373
|
+
text: "Run tools without asking in this conversation? The agent can then write files and run commands " +
|
|
374
|
+
"— on your computer too, when its workspace is a host folder — until you switch back.",
|
|
375
|
+
action: { type: "confirm", command: yolo ? "/yolo on" : "/permissions yolo" },
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
try {
|
|
379
|
+
const saved = await deps.setApprovalMode(ctx.sessionId, wanted);
|
|
380
|
+
if (!saved)
|
|
381
|
+
return notFound();
|
|
382
|
+
}
|
|
383
|
+
catch (err) {
|
|
384
|
+
if (err instanceof SessionError && err.code === "not_allowed")
|
|
385
|
+
return { text: err.message, error: "not_allowed" };
|
|
386
|
+
throw err;
|
|
387
|
+
}
|
|
388
|
+
if (yolo) {
|
|
389
|
+
return {
|
|
390
|
+
text: wanted === "yolo"
|
|
391
|
+
? "YOLO mode is on: tools in this conversation run without asking, until /yolo off."
|
|
392
|
+
: "YOLO mode is off: tools that need approval ask here first.",
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
return { text: `Permissions: ${MODE_TEXT[wanted]}.` };
|
|
396
|
+
}
|
|
397
|
+
async function plan(deps, ctx) {
|
|
398
|
+
const prompt = ctx.argv["prompt"]?.trim();
|
|
399
|
+
if (prompt?.toLowerCase() === "off") {
|
|
400
|
+
if (!(await deps.setApprovalMode(ctx.sessionId, "ask")))
|
|
401
|
+
return notFound();
|
|
402
|
+
return { text: `Plan mode is off. Permissions: ${MODE_TEXT.ask}.` };
|
|
403
|
+
}
|
|
404
|
+
if (!(await deps.setApprovalMode(ctx.sessionId, "plan")))
|
|
405
|
+
return notFound();
|
|
406
|
+
const text = "Plan mode is on: the agent can look around but tools that change things don't run. Send /plan off to carry the plan out.";
|
|
407
|
+
return prompt ? { text, action: { type: "send-prompt", prompt } } : { text };
|
|
408
|
+
}
|
|
409
|
+
// --- Developer workflow --------------------------------------------------------------
|
|
410
|
+
async function init(deps, _ctx) {
|
|
411
|
+
let dir;
|
|
412
|
+
try {
|
|
413
|
+
dir = (await deps.getSandbox()).workingDir;
|
|
414
|
+
}
|
|
415
|
+
catch (err) {
|
|
416
|
+
return noWorkspace(err);
|
|
417
|
+
}
|
|
418
|
+
return {
|
|
419
|
+
text: "Asking the agent to write AGENTS.md…",
|
|
420
|
+
action: {
|
|
421
|
+
type: "send-prompt",
|
|
422
|
+
prompt: `Create an AGENTS.md file in the workspace root (${dir}) with instructions for working in this project. ` +
|
|
423
|
+
"If one exists, read it first and improve it instead of replacing what is there.\n\n" +
|
|
424
|
+
"Look around first (README, build and package files, the folder layout, tests, CI). Then write, concisely:\n" +
|
|
425
|
+
"- what the project is and how it is organized;\n" +
|
|
426
|
+
"- the commands to build, test, lint and run it (a single test too);\n" +
|
|
427
|
+
"- conventions the code follows that are not obvious from one file;\n" +
|
|
428
|
+
"- anything to avoid.\n" +
|
|
429
|
+
"Only write what you found in the files; do not guess. Keep it short enough to read in a minute.",
|
|
430
|
+
},
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
async function diff(deps, _ctx) {
|
|
434
|
+
const changes = await gitChanges(deps);
|
|
435
|
+
if (typeof changes === "string")
|
|
436
|
+
return { text: changes, error: "unavailable" };
|
|
437
|
+
if (!changes.status)
|
|
438
|
+
return { text: "No uncommitted changes in the workspace." };
|
|
439
|
+
const lines = ["Uncommitted changes:", "```", changes.status, "```"];
|
|
440
|
+
if (changes.diff)
|
|
441
|
+
lines.push("```diff", clip(changes.diff, MAX_DIFF_CHARS), "```");
|
|
442
|
+
return { text: lines.join("\n") };
|
|
443
|
+
}
|
|
444
|
+
async function review(deps, ctx) {
|
|
445
|
+
const changes = await gitChanges(deps);
|
|
446
|
+
if (typeof changes === "string")
|
|
447
|
+
return { text: changes, error: "unavailable" };
|
|
448
|
+
if (!changes.status)
|
|
449
|
+
return { text: "Nothing to review: the workspace has no uncommitted changes." };
|
|
450
|
+
const focus = ctx.argv["focus"];
|
|
451
|
+
return {
|
|
452
|
+
text: "Asking the agent for a read-only review…",
|
|
453
|
+
action: {
|
|
454
|
+
type: "send-prompt",
|
|
455
|
+
readOnly: true,
|
|
456
|
+
prompt: "Review the uncommitted changes in the workspace below. This is a read-only review: do not change any file. " +
|
|
457
|
+
"Read the files around the changes when you need more context.\n\n" +
|
|
458
|
+
"Look for bugs, security problems, missing error handling, missing tests and code that does not match " +
|
|
459
|
+
"the project's conventions. List each finding with its file and line, the problem and a suggested fix, " +
|
|
460
|
+
"most severe first. Say so plainly when you find nothing worth changing." +
|
|
461
|
+
(focus ? `\n\nFocus on: ${focus}` : "") +
|
|
462
|
+
`\n\ngit status:\n\`\`\`\n${changes.status}\n\`\`\`\n\n` +
|
|
463
|
+
`git diff:\n\`\`\`diff\n${clip(changes.diff, MAX_REVIEW_DIFF_CHARS)}\n\`\`\``,
|
|
464
|
+
},
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* `git status --short` and the diff (staged and unstaged) of the workspace, run directly in
|
|
469
|
+
* the sandbox — fixed, read-only commands, so no approval is asked. A string says why not.
|
|
470
|
+
*/
|
|
471
|
+
async function gitChanges(deps) {
|
|
472
|
+
let sandbox;
|
|
473
|
+
try {
|
|
474
|
+
sandbox = await deps.getSandbox();
|
|
475
|
+
}
|
|
476
|
+
catch (err) {
|
|
477
|
+
return noWorkspace(err).text;
|
|
478
|
+
}
|
|
479
|
+
if (!sandbox.capabilities.has("exec"))
|
|
480
|
+
return "The agent's workspace can't run git.";
|
|
481
|
+
const git = (args) => sandbox.exec({
|
|
482
|
+
command: ["git", "--no-pager", ...args],
|
|
483
|
+
timeoutMs: GIT_TIMEOUT_MS,
|
|
484
|
+
maxOutputBytes: GIT_MAX_OUTPUT_BYTES,
|
|
485
|
+
});
|
|
486
|
+
let status;
|
|
487
|
+
try {
|
|
488
|
+
status = await git(["status", "--short"]);
|
|
489
|
+
}
|
|
490
|
+
catch (err) {
|
|
491
|
+
return `git could not run in the workspace: ${err instanceof Error ? err.message : String(err)}`;
|
|
492
|
+
}
|
|
493
|
+
if (status.exitCode === 127)
|
|
494
|
+
return "git isn't available in the agent's workspace.";
|
|
495
|
+
if (status.exitCode !== 0) {
|
|
496
|
+
const err = status.stderr.trim();
|
|
497
|
+
return /not a git repository/i.test(err)
|
|
498
|
+
? `The workspace (${sandbox.workingDir}) is not a git repository.`
|
|
499
|
+
: `git status failed${err ? `: ${err}` : ""}.`;
|
|
500
|
+
}
|
|
501
|
+
const [unstaged, staged] = await Promise.all([git(["diff", "--no-color"]), git(["diff", "--no-color", "--cached"])]);
|
|
502
|
+
return { status: status.stdout.trimEnd(), diff: [staged.stdout, unstaged.stdout].filter((d) => d.trim()).join("\n").trimEnd() };
|
|
503
|
+
}
|
|
504
|
+
// --- Client --------------------------------------------------------------------------
|
|
505
|
+
async function copy(deps, ctx) {
|
|
506
|
+
const messages = await deps.getMessages(ctx.sessionId);
|
|
507
|
+
const last = [...messages].reverse().find((m) => m.role === "assistant" && m.content.trim() && !m.summary);
|
|
508
|
+
if (!last)
|
|
509
|
+
return { text: "Nothing to copy yet: there is no reply in this conversation.", error: "not_found" };
|
|
510
|
+
return { text: "Copied the last reply.", action: { type: "copy", text: last.content } };
|
|
511
|
+
}
|
|
512
|
+
// --- Helpers -------------------------------------------------------------------------
|
|
513
|
+
function notFound() {
|
|
514
|
+
return { text: "This conversation no longer exists.", error: "not_found" };
|
|
515
|
+
}
|
|
516
|
+
function noWorkspace(err) {
|
|
517
|
+
return {
|
|
518
|
+
text: `The agent has no workspace to work in${err instanceof Error && err.message ? ` (${err.message})` : ""}.`,
|
|
519
|
+
error: "unavailable",
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
function titleOf(session) {
|
|
523
|
+
const title = session.metadata["title"];
|
|
524
|
+
return typeof title === "string" && title.trim() ? title.trim() : "Untitled conversation";
|
|
525
|
+
}
|
|
526
|
+
function day(ms) {
|
|
527
|
+
return new Date(ms).toISOString().slice(0, 16).replace("T", " ");
|
|
528
|
+
}
|
|
529
|
+
function contextLine(usage) {
|
|
530
|
+
const pct = usage.contextWindowTokens > 0 ? Math.round((usage.usedTokens / usage.contextWindowTokens) * 100) : 0;
|
|
531
|
+
return `${tokens(usage.usedTokens)} of ${tokens(usage.contextWindowTokens)} tokens (${pct}%${usage.usedSource === "estimated" ? ", estimated" : ""})`;
|
|
532
|
+
}
|
|
533
|
+
/** 12345 → "12.3k". */
|
|
534
|
+
function tokens(n) {
|
|
535
|
+
if (n >= 1_000_000)
|
|
536
|
+
return `${(n / 1_000_000).toFixed(1).replace(/\.0$/, "")}M`;
|
|
537
|
+
if (n >= 1_000)
|
|
538
|
+
return `${(n / 1_000).toFixed(1).replace(/\.0$/, "")}k`;
|
|
539
|
+
return String(Math.round(n));
|
|
540
|
+
}
|
|
541
|
+
function clip(text, max) {
|
|
542
|
+
return text.length <= max ? text : `${text.slice(0, max)}\n… (${text.length - max} more characters left out)`;
|
|
543
|
+
}
|
|
544
|
+
//# sourceMappingURL=built-in-commands.js.map
|
package/dist/components/multi-agent-orchestration/agent/command-manager/built-in-commands.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-commands.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/command-manager/built-in-commands.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,uEAAuE;AAGvE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AA8BjE,mCAAmC;AACnC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,gCAAgC;AAChC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,iFAAiF;AACjF,MAAM,cAAc,GAAG,MAAM,CAAC;AAC9B,MAAM,qBAAqB,GAAG,MAAM,CAAC;AACrC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,cAAc,GAAG,MAAM,CAAC;AAC9B,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC,iFAAiF;AACjF,MAAM,CAAC,MAAM,sBAAsB,GAA+C;IAChF,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mCAAmC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE;IACzH;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,KAAK,EA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