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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SandboxView } from "../../../sandbox-hub/types/sandbox.js";
|
|
2
|
-
import type { ArtifactRef, ArtifactView } from "../../../artifact-hub/types/artifact.js";
|
|
2
|
+
import type { Artifact, ArtifactRef, ArtifactView } from "../../../artifact-hub/types/artifact.js";
|
|
3
|
+
import type { ToolResultLink } from "../../../../kernel/types.js";
|
|
3
4
|
import type { ToolContext, ToolOutput } from "../../types.js";
|
|
4
5
|
import type { ArtifactToolOptions, ResolvedArtifactToolOptions } from "./types.js";
|
|
5
6
|
export declare function resolveOptions(options?: ArtifactToolOptions): ResolvedArtifactToolOptions;
|
|
@@ -48,5 +49,7 @@ export declare function sourceFrom(args: Record<string, unknown>): {
|
|
|
48
49
|
* next call is unambiguous (and so a track it actually wanted is not silent).
|
|
49
50
|
*/
|
|
50
51
|
export declare function ignoredFromPathNote(ignoredFromPath: string | undefined): string;
|
|
52
|
+
/** A-132: the link save/update put on their ToolOutput, so the chat can open the artifact. */
|
|
53
|
+
export declare function artifactLink(artifact: Artifact): ToolResultLink;
|
|
51
54
|
export declare function formatBytes(bytes: number): string;
|
|
52
55
|
//# sourceMappingURL=artifact-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/artifact-helpers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":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AM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,CAOjE;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAAC,CAQjF;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,CAcvH;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAM/E;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAE/D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIjD"}
|
|
@@ -133,6 +133,10 @@ export function ignoredFromPathNote(ignoredFromPath) {
|
|
|
133
133
|
return (`\nNote: you passed both "content" and "from_path" — the inline content was saved and "${ignoredFromPath}" was ignored. ` +
|
|
134
134
|
`Pass only one. To track that file instead, call update_artifact with just "from_path".`);
|
|
135
135
|
}
|
|
136
|
+
/** A-132: the link save/update put on their ToolOutput, so the chat can open the artifact. */
|
|
137
|
+
export function artifactLink(artifact) {
|
|
138
|
+
return { uri: `artifact://${artifact.id}`, name: artifact.name, type: artifact.type, version: artifact.version };
|
|
139
|
+
}
|
|
136
140
|
export function formatBytes(bytes) {
|
|
137
141
|
if (bytes < 1024)
|
|
138
142
|
return `${bytes} B`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-helpers.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/artifact-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"artifact-helpers.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/artifact-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAO1E,0EAA0E;AAC1E,mFAAmF;AAEnF,MAAM,UAAU,cAAc,CAAC,OAAO,GAAwB,EAAE;IAC9D,MAAM,QAAQ,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,EAAE,CAC/D,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IAClG,OAAO;QACL,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;QACrD,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;KACrD,CAAC;AACJ,CAAC;AAED,MAAM,KAAK,GAA+C;IACxD,aAAa,EAAE,2EAA2E;IAC1F,SAAS,EAAE,iDAAiD;IAC5D,QAAQ,EAAE,qEAAqE;IAC/E,cAAc,EAAE,gEAAgE;IAChF,YAAY,EAAE,mEAAmE;CAClF,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,QAAgB,EAChB,OAAoB,EACpB,EAAoD;IAEpD,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;Q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AO,EAAE,MAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAClF,CAAC;IACD,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC5B,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,eAAmC;IACrE,IAAI,CAAC,eAAe;QAAE,OAAO,EAAE,CAAC;IAChC,OAAO,CACL,yFAAyF,eAAe,iBAAiB;QACzH,wFAAwF,CACzF,CAAC;AACJ,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,YAAY,CAAC,QAAkB;IAC7C,OAAO,EAAE,GAAG,EAAE,cAAc,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;AACnH,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAC;IACtC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AAClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"save-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,WAAW;IAClD,QAAQ,CAAC,IAAI,wBAAwB;IACrC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IAEpC,YAAY,QAAQ,GAAE,mBAAwB,EAuC7C;IAEK,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA4DtF;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SDKEventType } from "../../../event-handler/events.js";
|
|
2
|
-
import {
|
|
2
|
+
import { citeLinkNote } from "../../tool-links.js";
|
|
3
|
+
import { argError, artifactLink, formatBytes, ignoredFromPathNote, sandboxFor, sourceFrom, stringArg, stringListArg, withArtifacts } from "./artifact-helpers.js";
|
|
3
4
|
/**
|
|
4
5
|
* save_artifact — start tracking a lasting output at version 1: either text written to
|
|
5
6
|
* the agent's workspace first (inline `content`), or an existing workspace file
|
|
@@ -87,7 +88,9 @@ export class SaveArtifactTool {
|
|
|
87
88
|
return {
|
|
88
89
|
content: `Saved artifact "${saved.artifact.name}" (${saved.artifact.type}) as v1 — tracks ${saved.artifact.sandboxPath} ` +
|
|
89
90
|
`(${formatBytes(saved.artifact.bytes)}), id ${saved.artifact.id}. Refer to it by name from now on; use update_artifact to change it.` +
|
|
91
|
+
citeLinkNote(artifactLink(saved.artifact)) +
|
|
90
92
|
ignoredFromPathNote(source.ignoredFromPath),
|
|
93
|
+
link: artifactLink(saved.artifact),
|
|
91
94
|
metadata: {
|
|
92
95
|
artifactId: saved.artifact.id,
|
|
93
96
|
name: saved.artifact.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"save-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGlK;;;;;GAKG;AACH,MAAM,OAAO,gBAAgB;IAClB,IAAI,GAAG,oBAAoB,CAAC;IAC5B,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,CAAiB;IAEpC,YAAY,QAAQ,GAAwB,EAAE;QAC5C,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,eAAe;YACrB,WAAW,EACT,2GAA2G;gBAC3G,6GAA6G;gBAC7G,4GAA4G;gBAC5G,wGAAwG;gBACxG,0CAA0C;YAC5C,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,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C,MAAM;oBAC7B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,WAAW;oBACvC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC/E;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"update-artifact-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAe3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;;;;;GAMG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACpD,QAAQ,CAAC,IAAI,0BAA0B;IACvC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IAEpC,YAAY,QAAQ,GAAE,mBAAwB,EAiC7C;IAEK,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CA4DtF;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SDKEventType } from "../../../event-handler/events.js";
|
|
2
|
-
import {
|
|
2
|
+
import { citeLinkNote } from "../../tool-links.js";
|
|
3
|
+
import { argError, artifactLink, formatBytes, ignoredFromPathNote, numberArg, refArg, sandboxFor, sourceFrom, stringArg, stringListArg, withArtifacts, } from "./artifact-helpers.js";
|
|
3
4
|
/**
|
|
4
5
|
* update_artifact — append a version to an existing artifact: rewrite the tracked file
|
|
5
6
|
* with new content, track a different file with `from_path`, or, with neither, re-track
|
|
@@ -82,7 +83,9 @@ export class UpdateArtifactTool {
|
|
|
82
83
|
return {
|
|
83
84
|
content: `Updated "${updated.artifact.name}" to v${updated.artifact.version} — tracks ${updated.artifact.sandboxPath} ` +
|
|
84
85
|
`(${formatBytes(updated.artifact.bytes)}).` +
|
|
86
|
+
citeLinkNote(artifactLink(updated.artifact)) +
|
|
85
87
|
ignoredFromPathNote(source.ignoredFromPath),
|
|
88
|
+
link: artifactLink(updated.artifact),
|
|
86
89
|
metadata: {
|
|
87
90
|
artifactId: updated.artifact.id,
|
|
88
91
|
name: updated.artifact.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EACL,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,MAAM,EACN,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,aAAa,GACd,MAAM,uBAAuB,CAAC;AAG/B;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IACpB,IAAI,GAAG,sBAAsB,CAAC;IAC9B,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,CAAiB;IAEpC,YAAY,QAAQ,GAAwB,EAAE;QAC5C,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EACT,sGAAsG;gBACtG,0GAA0G;gBAC1G,2GAA2G;gBAC3G,uEAAuE;YACzE,UAAU,EAAE;gBACV,IAAI,EAAE,QA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C,OAAO;oBACjC,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,GAAG,CAAC;oBAC7C,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK;oBAC7B,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM;oBAC/B,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW;oBACzC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC/E;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"update-artifact-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,MAAM,EACN,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,aAAa,GACd,MAAM,uBAAuB,CAAC;AAG/B;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IACpB,IAAI,GAAG,sBAAsB,CAAC;IAC9B,OAAO,GAAG,OAAO,CAAC;IAClB,UAAU,CAAiB;IAEpC,YAAY,QAAQ,GAAwB,EAAE;QAC5C,IAAI,CAAC,UAAU,GAAG;YAChB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EACT,sGAAsG;gBACtG,0GAA0G;gBAC1G,2GAA2G;gBAC3G,uEAAuE;YACzE,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4CAA4C,EAAE;oBACnF,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AC,QAAQ,CAAC,OAAO;oBACjC,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,GAAG,CAAC;oBAC7C,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK;oBAC7B,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM;oBAC/B,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW;oBACzC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC/E;aACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ToolHandler } from "../../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Tool names of the job tools (A-126), for agent allowlists. They replace the
|
|
4
|
+
* scheduled-job tools (schedule_job, list_scheduled_jobs — A-69) and the trigger
|
|
5
|
+
* tools (manage_trigger, list_triggers — A-70).
|
|
6
|
+
*/
|
|
7
|
+
export declare const JOB_TOOL_NAMES: readonly ["manage_job", "list_jobs"];
|
|
8
|
+
/** Both job tools — register them with `core.useTool()`. */
|
|
9
|
+
export declare function createJobTools(): ToolHandler[];
|
|
10
|
+
//# sourceMappingURL=create-job-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-job-tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/create-job-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAI,YAAY,EAAE,WAAW,CAAU,CAAC;AAEnE,4DAA4D;AAC5D,wBAAgB,cAAc,IAAI,WAAW,EAAE,CAE9C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ListJobsTool } from "./list-jobs-tool.js";
|
|
2
|
+
import { ManageJobTool } from "./manage-job-tool.js";
|
|
3
|
+
/**
|
|
4
|
+
* Tool names of the job tools (A-126), for agent allowlists. They replace the
|
|
5
|
+
* scheduled-job tools (schedule_job, list_scheduled_jobs — A-69) and the trigger
|
|
6
|
+
* tools (manage_trigger, list_triggers — A-70).
|
|
7
|
+
*/
|
|
8
|
+
export const JOB_TOOL_NAMES = ["manage_job", "list_jobs"];
|
|
9
|
+
/** Both job tools — register them with `core.useTool()`. */
|
|
10
|
+
export function createJobTools() {
|
|
11
|
+
return [new ManageJobTool(), new ListJobsTool()];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=create-job-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-job-tools.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/create-job-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,WAAW,CAAU,CAAC;AAEnE,4DAA4D;AAC5D,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC,IAAI,aAAa,EAAE,EAAE,IAAI,YAAY,EAAE,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type AgentJobs, type Job, type JobCondition, type JobDelivery, type JobDeliveryOptions, type JobSchedule } from "../../../multi-agent-orchestration/agent/job-manager/types.js";
|
|
2
|
+
import type { ToolContext, ToolOutput } from "../../types.js";
|
|
3
|
+
/** Runs per hour an agent-made event or webhook job gets when the agent names none. */
|
|
4
|
+
export declare const AGENT_JOB_DEFAULT_RUNS_PER_HOUR = 4;
|
|
5
|
+
/** The most runs per hour the agent may set; the user can raise it on the Jobs page. */
|
|
6
|
+
export declare const AGENT_JOB_MAX_RUNS_PER_HOUR = 10;
|
|
7
|
+
/** Daily token budget an agent-made event or webhook job gets when the agent names none. */
|
|
8
|
+
export declare const AGENT_JOB_DEFAULT_TOKENS_PER_DAY = 200000;
|
|
9
|
+
/** The largest daily token budget the agent may set. */
|
|
10
|
+
export declare const AGENT_JOB_MAX_TOKENS_PER_DAY = 1000000;
|
|
11
|
+
/** Run `body` with the agent's jobs, mapping failures to a tool error. */
|
|
12
|
+
export declare function withJobs(toolName: string, context: ToolContext, body: (jobs: AgentJobs) => Promise<ToolOutput>): Promise<ToolOutput>;
|
|
13
|
+
/** Find a job by id or by name. */
|
|
14
|
+
export declare function findJob(jobs: AgentJobs, ref: string): Promise<Job | null>;
|
|
15
|
+
/** The job without its webhook secret — what tool results and their metadata may carry. */
|
|
16
|
+
export declare function withoutSecret(job: Job): Omit<Job, "secret">;
|
|
17
|
+
/**
|
|
18
|
+
* The schedule from the model's flat arguments: exactly one of `cron` (+ `timezone`),
|
|
19
|
+
* `every_minutes` or `at`. Returns undefined when none is given, or an error message.
|
|
20
|
+
*/
|
|
21
|
+
export declare function scheduleArg(args: Record<string, unknown>): JobSchedule | undefined | {
|
|
22
|
+
error: string;
|
|
23
|
+
};
|
|
24
|
+
/** How a job runs, in words. */
|
|
25
|
+
export declare function describeWhen(job: Job): string;
|
|
26
|
+
/** One block per job for the model. Never includes the secret. */
|
|
27
|
+
export declare function describeJob(job: Job, lastRun?: {
|
|
28
|
+
status: string;
|
|
29
|
+
finishedAt?: string;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
silent?: boolean;
|
|
32
|
+
}): string;
|
|
33
|
+
/** The delivery for a job asked for in this turn: the chat this turn came from, when there is one. */
|
|
34
|
+
/**
|
|
35
|
+
* Update (A-127): resolveDeliveries — the chats a job asked for in this turn posts to.
|
|
36
|
+
* deliver is "here" (this chat app conversation; outside one, every home chat), "home"
|
|
37
|
+
* (home chats) or "none"; channels names the home chats (a channel's name, platform or id)
|
|
38
|
+
* and alone means "home". Nothing given is the default: here, else every home chat. given
|
|
39
|
+
* says whether the arguments chose anything (an update leaves the deliveries otherwise).
|
|
40
|
+
* when defaults to "always".
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveDeliveries(context: ToolContext, deliver: string | undefined, channels: string[] | undefined, when: JobDelivery["when"] | undefined): {
|
|
43
|
+
deliveries: JobDelivery[];
|
|
44
|
+
given: boolean;
|
|
45
|
+
} | string;
|
|
46
|
+
/** What a result says about where a job's results go. */
|
|
47
|
+
/** Update (A-127): to every chat of the job; options name the home chats. */
|
|
48
|
+
export declare function deliveryText(deliveries: JobDelivery[] | undefined, options: JobDeliveryOptions | undefined): string;
|
|
49
|
+
export declare function str(args: Record<string, unknown>, key: string): string | undefined;
|
|
50
|
+
/** A list of strings from a string array or a comma-separated string; undefined when empty. */
|
|
51
|
+
export declare function strList(args: Record<string, unknown>, key: string): string[] | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The `where` conditions; an "in" condition takes its list from `values`. The job
|
|
54
|
+
* manager validates the rest. Undefined when none is given.
|
|
55
|
+
*/
|
|
56
|
+
export declare function conditions(args: Record<string, unknown>): JobCondition[] | undefined;
|
|
57
|
+
/** A positive whole number, or undefined (0 means "not given"). */
|
|
58
|
+
export declare function int(args: Record<string, unknown>, key: string): number | undefined;
|
|
59
|
+
export declare function fail(content: string): ToolOutput;
|
|
60
|
+
//# sourceMappingURL=job-tool-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-tool-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/job-tool-helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EAEvB,KAAK,WAAW,EACjB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;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AM,GAAG,SAAS,EAC3B,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,EAC9B,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,GACpC;IAAE,UAAU,EAAE,WAAW,EAAE,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAiBxD;AAoBD,yDAAyD;AACzD,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,MAAM,CAiBnH;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGlF;AAED,+FAA+F;AAC/F,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAWxF;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,YAAY,EAAE,GAAG,SAAS,CAQpF;AAED,mEAAmE;AACnE,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGlF;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAEhD"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { SDKError } from "../../../../kernel/errors/sdk-error.js";
|
|
2
|
+
import { describeSchedule } from "../../../multi-agent-orchestration/agent/job-manager/schedule.js";
|
|
3
|
+
import { defaultJobDeliveries, homeJobDeliveries, isScheduleWhen, } from "../../../multi-agent-orchestration/agent/job-manager/types.js";
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
// Scheduled-job tools (A-69) — let an agent schedule its own future work from
|
|
6
|
+
// chat ("remind me every Friday…"). They work ONLY through
|
|
7
|
+
// ToolContext.scheduledJobs (the agent-scoped AgentScheduledJobs), so a job is
|
|
8
|
+
// always owned by the agent that made it.
|
|
9
|
+
//
|
|
10
|
+
// Trigger tools (A-70) — let an agent set up "when X happens, do Y" from chat
|
|
11
|
+
// ("make me a report whenever a new model is uploaded"). They work ONLY through
|
|
12
|
+
// ToolContext.triggers (the agent-scoped AgentTriggers), so a trigger is always
|
|
13
|
+
// owned by the agent that made it. The webhook secret never reaches the model:
|
|
14
|
+
// the user copies it from the Triggers page.
|
|
15
|
+
//
|
|
16
|
+
// Update (A-126): job tools — manage_job / list_jobs replace both pairs. They work
|
|
17
|
+
// ONLY through ToolContext.jobs (the agent-scoped AgentJobs). Models with strict tool
|
|
18
|
+
// schemas fill every parameter, so an empty string, 0 or an empty list means "not given".
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
/** Runs per hour an agent-made event or webhook job gets when the agent names none. */
|
|
21
|
+
export const AGENT_JOB_DEFAULT_RUNS_PER_HOUR = 4;
|
|
22
|
+
/** The most runs per hour the agent may set; the user can raise it on the Jobs page. */
|
|
23
|
+
export const AGENT_JOB_MAX_RUNS_PER_HOUR = 10;
|
|
24
|
+
/** Daily token budget an agent-made event or webhook job gets when the agent names none. */
|
|
25
|
+
export const AGENT_JOB_DEFAULT_TOKENS_PER_DAY = 200_000;
|
|
26
|
+
/** The largest daily token budget the agent may set. */
|
|
27
|
+
export const AGENT_JOB_MAX_TOKENS_PER_DAY = 1_000_000;
|
|
28
|
+
/** Run `body` with the agent's jobs, mapping failures to a tool error. */
|
|
29
|
+
export async function withJobs(toolName, context, body) {
|
|
30
|
+
const jobs = context.jobs;
|
|
31
|
+
if (!jobs)
|
|
32
|
+
return fail(`${toolName}: jobs are not available here`);
|
|
33
|
+
try {
|
|
34
|
+
return await body(jobs);
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
38
|
+
return { content: `${toolName} failed: ${message}`, isError: true, retryable: err instanceof SDKError ? err.retryable : true };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/** Find a job by id or by name. */
|
|
42
|
+
export async function findJob(jobs, ref) {
|
|
43
|
+
const byId = await jobs.get(ref);
|
|
44
|
+
if (byId)
|
|
45
|
+
return byId;
|
|
46
|
+
return (await jobs.list()).find((j) => j.name === ref) ?? null;
|
|
47
|
+
}
|
|
48
|
+
/** The job without its webhook secret — what tool results and their metadata may carry. */
|
|
49
|
+
export function withoutSecret(job) {
|
|
50
|
+
const { secret: _secret, ...rest } = job;
|
|
51
|
+
return rest;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The schedule from the model's flat arguments: exactly one of `cron` (+ `timezone`),
|
|
55
|
+
* `every_minutes` or `at`. Returns undefined when none is given, or an error message.
|
|
56
|
+
*/
|
|
57
|
+
export function scheduleArg(args) {
|
|
58
|
+
const cron = str(args, "cron");
|
|
59
|
+
const everyMinutes = typeof args["every_minutes"] === "number" && args["every_minutes"] > 0 ? args["every_minutes"] : undefined;
|
|
60
|
+
const at = str(args, "at");
|
|
61
|
+
const given = [cron, everyMinutes, at].filter((v) => v !== undefined).length;
|
|
62
|
+
if (given === 0)
|
|
63
|
+
return undefined;
|
|
64
|
+
if (given > 1)
|
|
65
|
+
return { error: 'give only one of "cron", "every_minutes" or "at"' };
|
|
66
|
+
if (cron) {
|
|
67
|
+
const tz = str(args, "timezone");
|
|
68
|
+
return { kind: "cron", expr: cron, ...(tz ? { tz } : {}) };
|
|
69
|
+
}
|
|
70
|
+
if (everyMinutes !== undefined)
|
|
71
|
+
return { kind: "every", ms: Math.round(everyMinutes * 60_000) };
|
|
72
|
+
return { kind: "at", at: at };
|
|
73
|
+
}
|
|
74
|
+
/** How a job runs, in words. */
|
|
75
|
+
export function describeWhen(job) {
|
|
76
|
+
if (isScheduleWhen(job.when))
|
|
77
|
+
return describeSchedule(job.when);
|
|
78
|
+
if (job.when.kind === "event")
|
|
79
|
+
return "on your own events";
|
|
80
|
+
return `on webhook POST /webhooks/jobs/${job.id} (${job.when.signature} signature)`;
|
|
81
|
+
}
|
|
82
|
+
/** One block per job for the model. Never includes the secret. */
|
|
83
|
+
export function describeJob(job, lastRun) {
|
|
84
|
+
const schedule = isScheduleWhen(job.when);
|
|
85
|
+
const state = !job.enabled ? (schedule ? "paused" : "disabled") : schedule ? `next run ${job.nextRunAt ?? "—"}` : "enabled";
|
|
86
|
+
const by = job.createdBy === "agent" ? ", made by you" : ", made by the user";
|
|
87
|
+
// Update (A-127): to one chat or several.
|
|
88
|
+
const deliveries = job.deliveries ?? [];
|
|
89
|
+
const delivery = deliveries.length === 1
|
|
90
|
+
? `, results posted to a chat (${deliveries[0].when})`
|
|
91
|
+
: deliveries.length > 1
|
|
92
|
+
? `, results posted to ${deliveries.length} chats (${deliveries[0].when})`
|
|
93
|
+
: ", results stay in each run's conversation";
|
|
94
|
+
const filter = [
|
|
95
|
+
job.filter.types?.length ? `types ${job.filter.types.join(", ")}` : "",
|
|
96
|
+
job.filter.subjects?.length ? `subjects ${job.filter.subjects.join(", ")}` : "",
|
|
97
|
+
job.filter.where?.length ? `${job.filter.where.length} condition(s)` : "",
|
|
98
|
+
].filter(Boolean).join("; ");
|
|
99
|
+
const limits = [
|
|
100
|
+
job.limits.maxRunsPerHour !== undefined ? `${job.limits.maxRunsPerHour} runs/hour` : "",
|
|
101
|
+
job.limits.maxTokensPerDay !== undefined ? `${job.limits.maxTokensPerDay} tokens/day` : "",
|
|
102
|
+
].filter(Boolean).join(", ");
|
|
103
|
+
const last = lastRun
|
|
104
|
+
? `\n last run: ${lastRun.status}${lastRun.silent ? " (silent)" : ""} ${lastRun.finishedAt ?? lastRun.createdAt}`.trimEnd()
|
|
105
|
+
: job.lastRunAt
|
|
106
|
+
? `\n last run: ${job.lastStatus ?? "?"} ${job.lastRunAt}`
|
|
107
|
+
: "";
|
|
108
|
+
return (`- "${job.name}" [${job.id}] ${describeWhen(job)}, ${state}${by}${delivery}` +
|
|
109
|
+
(job.sessionMode === "reuse" ? ", one conversation for all runs" : "") +
|
|
110
|
+
(filter ? `\n filter: ${filter}` : "") +
|
|
111
|
+
(limits ? `\n limits: ${limits}` : "") +
|
|
112
|
+
// A-103: a tool job runs its stored call; its prompt is only the follow-up's message.
|
|
113
|
+
(job.action?.kind === "tool"
|
|
114
|
+
? `\n runs: ${job.action.tool} ${truncate(JSON.stringify(job.action.args), 200)}` +
|
|
115
|
+
(job.action.followUp ? `, then a turn ${job.action.followUp === "always" ? "every time" : "when the tool fails"}` : ", no model turn")
|
|
116
|
+
: "") +
|
|
117
|
+
(job.prompt ? `\n prompt: ${truncate(job.prompt, 200)}` : "") +
|
|
118
|
+
(!job.enabled && job.lastError?.startsWith("Paused after") ? `\n ${job.lastError.split(":")[0]}` : "") +
|
|
119
|
+
last);
|
|
120
|
+
}
|
|
121
|
+
/** The delivery for a job asked for in this turn: the chat this turn came from, when there is one. */
|
|
122
|
+
/**
|
|
123
|
+
* Update (A-127): resolveDeliveries — the chats a job asked for in this turn posts to.
|
|
124
|
+
* deliver is "here" (this chat app conversation; outside one, every home chat), "home"
|
|
125
|
+
* (home chats) or "none"; channels names the home chats (a channel's name, platform or id)
|
|
126
|
+
* and alone means "home". Nothing given is the default: here, else every home chat. given
|
|
127
|
+
* says whether the arguments chose anything (an update leaves the deliveries otherwise).
|
|
128
|
+
* when defaults to "always".
|
|
129
|
+
*/
|
|
130
|
+
export function resolveDeliveries(context, deliver, channels, when) {
|
|
131
|
+
const options = context.jobDeliveryOptions ?? { homes: [] };
|
|
132
|
+
if (deliver === "none")
|
|
133
|
+
return { deliveries: [], given: true };
|
|
134
|
+
let out;
|
|
135
|
+
if (channels?.length) {
|
|
136
|
+
const homes = matchHomes(options.homes, channels);
|
|
137
|
+
if (typeof homes === "string")
|
|
138
|
+
return homes;
|
|
139
|
+
out = deliver === "here" && options.here ? [options.here] : [];
|
|
140
|
+
for (const d of homeJobDeliveries(homes)) {
|
|
141
|
+
if (!out.some((o) => o.channelId === d.channelId && o.target === d.target))
|
|
142
|
+
out.push(d);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
else if (deliver === "home") {
|
|
146
|
+
out = homeJobDeliveries(options.homes);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
out = defaultJobDeliveries(options);
|
|
150
|
+
}
|
|
151
|
+
return { deliveries: out.map((d) => ({ ...d, when: when ?? "always" })), given: deliver !== undefined || !!channels?.length };
|
|
152
|
+
}
|
|
153
|
+
/** The home chats named: by channel name, platform or id, ignoring case. */
|
|
154
|
+
function matchHomes(homes, names) {
|
|
155
|
+
const picked = [];
|
|
156
|
+
for (const name of names) {
|
|
157
|
+
const lower = name.toLowerCase();
|
|
158
|
+
const found = homes.filter((h) => h.name.toLowerCase() === lower || h.platform.toLowerCase() === lower || h.channelId === name);
|
|
159
|
+
if (!found.length)
|
|
160
|
+
return `no channel "${name}" has a home chat — ${homesText(homes)}`;
|
|
161
|
+
for (const h of found)
|
|
162
|
+
if (!picked.includes(h))
|
|
163
|
+
picked.push(h);
|
|
164
|
+
}
|
|
165
|
+
return picked;
|
|
166
|
+
}
|
|
167
|
+
/** The channels that have a home chat, for the model. */
|
|
168
|
+
function homesText(homes) {
|
|
169
|
+
if (!homes.length)
|
|
170
|
+
return "no channel has a home chat yet (the user sends /sethome in the chat that should get the results)";
|
|
171
|
+
return `channels with a home chat: ${homes.map((h) => `"${h.name}" (${h.platform})`).join(", ")}`;
|
|
172
|
+
}
|
|
173
|
+
/** What a result says about where a job's results go. */
|
|
174
|
+
/** Update (A-127): to every chat of the job; options name the home chats. */
|
|
175
|
+
export function deliveryText(deliveries, options) {
|
|
176
|
+
if (!deliveries?.length)
|
|
177
|
+
return "Each run's result stays in its own conversation (the user finds it on the Jobs page).";
|
|
178
|
+
const here = options?.here;
|
|
179
|
+
const where = deliveries
|
|
180
|
+
.map((d) => {
|
|
181
|
+
if (here && d.channelId === here.channelId && d.target === here.target && (d.threadId ?? "") === (here.threadId ?? ""))
|
|
182
|
+
return "this chat";
|
|
183
|
+
if (d.target === "home") {
|
|
184
|
+
const home = options?.homes.find((h) => h.channelId === d.channelId);
|
|
185
|
+
return `the home chat of ${home ? `${home.name} (${home.platform})` : "a channel"}`;
|
|
186
|
+
}
|
|
187
|
+
return "a chat";
|
|
188
|
+
})
|
|
189
|
+
.join(", ");
|
|
190
|
+
const when = deliveries[0].when;
|
|
191
|
+
if (when === "on-failure")
|
|
192
|
+
return `Failed runs will be posted in ${where}.`;
|
|
193
|
+
if (when === "on-output")
|
|
194
|
+
return `Each run's reply will be posted in ${where} (a [[SILENT]] reply posts nothing).`;
|
|
195
|
+
return `Each run's result will be posted in ${where} (a [[SILENT]] reply posts nothing).`;
|
|
196
|
+
}
|
|
197
|
+
export function str(args, key) {
|
|
198
|
+
const value = args[key];
|
|
199
|
+
return typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
200
|
+
}
|
|
201
|
+
/** A list of strings from a string array or a comma-separated string; undefined when empty. */
|
|
202
|
+
export function strList(args, key) {
|
|
203
|
+
const value = args[key];
|
|
204
|
+
if (typeof value === "string") {
|
|
205
|
+
const items = value.split(",").map((v) => v.trim()).filter(Boolean);
|
|
206
|
+
return items.length ? items : undefined;
|
|
207
|
+
}
|
|
208
|
+
if (Array.isArray(value)) {
|
|
209
|
+
const items = value.filter((v) => typeof v === "string").map((v) => v.trim()).filter(Boolean);
|
|
210
|
+
return items.length ? items : undefined;
|
|
211
|
+
}
|
|
212
|
+
return undefined;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* The `where` conditions; an "in" condition takes its list from `values`. The job
|
|
216
|
+
* manager validates the rest. Undefined when none is given.
|
|
217
|
+
*/
|
|
218
|
+
export function conditions(args) {
|
|
219
|
+
const value = args["where"];
|
|
220
|
+
if (!Array.isArray(value) || value.length === 0)
|
|
221
|
+
return undefined;
|
|
222
|
+
return value.map((item) => {
|
|
223
|
+
if (typeof item !== "object" || item === null)
|
|
224
|
+
return item;
|
|
225
|
+
const { values, ...rest } = item;
|
|
226
|
+
return (rest["op"] === "in" && Array.isArray(values) ? { ...rest, value: values } : rest);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/** A positive whole number, or undefined (0 means "not given"). */
|
|
230
|
+
export function int(args, key) {
|
|
231
|
+
const value = args[key];
|
|
232
|
+
return typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.round(value) : undefined;
|
|
233
|
+
}
|
|
234
|
+
export function fail(content) {
|
|
235
|
+
return { content, isError: true, retryable: false };
|
|
236
|
+
}
|
|
237
|
+
function truncate(text, max) {
|
|
238
|
+
return text.length > max ? `${text.slice(0, max)}…` : text;
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=job-tool-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-tool-helpers.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/job-tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kEAAkE,CAAC;AACpG,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,GAQf,MAAM,+DAA+D,CAAC;AAGvE,8EAA8E;AAC9E,8EAA8E;AAC9E,2DAA2D;AAC3D,+EAA+E;AAC/E,0CAA0C;AAC1C,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,gFAAgF;AAChF,+EAA+E;AAC/E,6CAA6C;AAC7C,EAAE;AACF,mFAAmF;AACnF,sFAAsF;AACtF,0FAA0F;AAC1F,8EAA8E;AAE9E,uFAAuF;AACvF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC;AACjD,wFAAwF;AACxF,MAAM,CAAC,MAAM,2BAA2B,GAAG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C7D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToolContext, ToolDefinition, ToolHandler, ToolOutput } from "../../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* list_triggers — the agent's triggers with their source, filter, delivery and last run.
|
|
4
|
+
* Read-only, so it never needs approval (unlike manage_trigger). Never shows a webhook secret.
|
|
5
|
+
* Update (A-126): list_jobs — every job (schedule, event, webhook); replaces list_triggers and
|
|
6
|
+
* list_scheduled_jobs.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ListJobsTool implements ToolHandler {
|
|
9
|
+
readonly name = "tool:list-jobs";
|
|
10
|
+
readonly version = "1.0.0";
|
|
11
|
+
readonly definition: ToolDefinition;
|
|
12
|
+
execute(_args: Record<string, unknown>, context: ToolContext): Promise<ToolOutput>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=list-jobs-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-jobs-tool.d.ts","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/list-jobs-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG3F;;;;;GAKG;AACH,qBAAa,YAAa,YAAW,WAAW;IAC9C,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,OAAO,WAAW;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAOjC;IAEI,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAgBvF;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { describeJob, withJobs, withoutSecret } from "./job-tool-helpers.js";
|
|
2
|
+
/**
|
|
3
|
+
* list_triggers — the agent's triggers with their source, filter, delivery and last run.
|
|
4
|
+
* Read-only, so it never needs approval (unlike manage_trigger). Never shows a webhook secret.
|
|
5
|
+
* Update (A-126): list_jobs — every job (schedule, event, webhook); replaces list_triggers and
|
|
6
|
+
* list_scheduled_jobs.
|
|
7
|
+
*/
|
|
8
|
+
export class ListJobsTool {
|
|
9
|
+
name = "tool:list-jobs";
|
|
10
|
+
version = "1.0.0";
|
|
11
|
+
definition = {
|
|
12
|
+
name: "list_jobs",
|
|
13
|
+
description: "List your jobs — name, id, when it runs (schedule, event or webhook), next run, filter, whether results are posted to a chat, " +
|
|
14
|
+
"limits, prompt and the last run. Check this before creating a job, so you update an existing one instead of making a duplicate.",
|
|
15
|
+
parameters: { type: "object", properties: {}, required: [] },
|
|
16
|
+
risk: "read-only",
|
|
17
|
+
};
|
|
18
|
+
async execute(_args, context) {
|
|
19
|
+
return withJobs("list_jobs", context, async (jobs) => {
|
|
20
|
+
const all = await jobs.list();
|
|
21
|
+
if (all.length === 0) {
|
|
22
|
+
return { content: "You have no jobs. Use manage_job to create one.", metadata: { count: 0 } };
|
|
23
|
+
}
|
|
24
|
+
const lines = [];
|
|
25
|
+
for (const job of all) {
|
|
26
|
+
const [last] = await jobs.listRuns(job.id, 1);
|
|
27
|
+
lines.push(describeJob(job, last));
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
content: `${all.length} job${all.length === 1 ? "" : "s"}:\n${lines.join("\n")}`,
|
|
31
|
+
metadata: { count: all.length, jobs: all.map(withoutSecret) },
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=list-jobs-tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-jobs-tool.js","sourceRoot":"","sources":["../../../../../src/components/tool-hub/built-in-tools/jobs/list-jobs-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7E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