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