@pellux/goodvibes-tui 0.18.4 → 0.18.9
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/CHANGELOG.md +190 -0
- package/README.md +2 -2
- package/bin/goodvibes +1 -1
- package/bin/goodvibes-daemon +66 -0
- package/docs/foundation-artifacts/operator-contract.json +1 -1
- package/package.json +14 -7
- package/scripts/postinstall.js +220 -0
- package/src/acp/connection.ts +5 -5
- package/src/acp/index.ts +1 -1
- package/src/acp/manager.ts +1 -133
- package/src/adapters/bluebubbles/index.ts +1 -1
- package/src/adapters/discord/index.ts +2 -2
- package/src/adapters/github/index.ts +1 -1
- package/src/adapters/google-chat/index.ts +1 -1
- package/src/adapters/imessage/index.ts +1 -1
- package/src/adapters/index.ts +15 -15
- package/src/adapters/matrix/index.ts +1 -1
- package/src/adapters/mattermost/index.ts +1 -1
- package/src/adapters/msteams/index.ts +2 -2
- package/src/adapters/ntfy/index.ts +1 -1
- package/src/adapters/signal/index.ts +1 -1
- package/src/adapters/slack/index.ts +2 -2
- package/src/adapters/telegram/index.ts +1 -1
- package/src/adapters/types.ts +4 -4
- package/src/adapters/webhook/index.ts +1 -1
- package/src/adapters/whatsapp/index.ts +1 -1
- package/src/agents/message-bus-core.ts +2 -2
- package/src/agents/message-bus.ts +2 -2
- package/src/agents/orchestrator-prompts.ts +4 -4
- package/src/agents/orchestrator-runner.ts +11 -11
- package/src/agents/orchestrator.ts +15 -14
- package/src/agents/session.ts +1 -1
- package/src/agents/worktree.ts +1 -1
- package/src/agents/wrfc-config.ts +2 -2
- package/src/agents/wrfc-controller.ts +12 -12
- package/src/agents/wrfc-gate-runtime.ts +5 -5
- package/src/agents/wrfc-reporting.ts +1 -1
- package/src/agents/wrfc-runtime-events.ts +3 -3
- package/src/agents/wrfc-types.ts +1 -1
- package/src/automation/delivery-manager.ts +4 -4
- package/src/automation/index.ts +4 -4
- package/src/automation/manager-runtime-delivery.ts +1 -1
- package/src/automation/manager-runtime-events.ts +3 -3
- package/src/automation/manager-runtime-execution.ts +5 -5
- package/src/automation/manager-runtime-helpers.ts +2 -2
- package/src/automation/manager-runtime-job-mutations.ts +3 -3
- package/src/automation/manager-runtime-reconcile.ts +4 -4
- package/src/automation/manager-runtime-scheduling.ts +2 -2
- package/src/automation/manager-runtime.ts +18 -18
- package/src/automation/manager.ts +2 -2
- package/src/automation/service.ts +2 -2
- package/src/channels/builtin/account-actions.ts +5 -5
- package/src/channels/builtin/accounts.ts +2 -2
- package/src/channels/builtin/contracts.ts +3 -3
- package/src/channels/builtin/plugins.ts +5 -5
- package/src/channels/builtin/rendering.ts +4 -4
- package/src/channels/builtin/setup-schema.ts +1 -1
- package/src/channels/builtin/shared.ts +7 -7
- package/src/channels/builtin/surfaces.ts +2 -2
- package/src/channels/builtin/targets.ts +3 -3
- package/src/channels/builtin-runtime.ts +11 -11
- package/src/channels/delivery/shared.ts +2 -2
- package/src/channels/delivery/strategies-bridge.ts +3 -3
- package/src/channels/delivery/strategies-core.ts +5 -5
- package/src/channels/delivery/strategies-enterprise.ts +3 -3
- package/src/channels/delivery/types.ts +2 -2
- package/src/channels/delivery-router.ts +9 -9
- package/src/channels/index.ts +12 -12
- package/src/channels/plugin-registry.ts +1 -1
- package/src/channels/provider-runtime.ts +3 -3
- package/src/channels/reply-pipeline.ts +3 -3
- package/src/channels/route-manager.ts +2 -2
- package/src/channels/surface-registry.ts +2 -2
- package/src/config/helper-model.ts +1 -233
- package/src/config/index.ts +3 -3
- package/src/config/manager.ts +8 -404
- package/src/config/secrets.ts +21 -542
- package/src/config/service-registry.ts +1 -329
- package/src/config/tool-llm.ts +3 -3
- package/src/control-plane/approval-broker.ts +1 -1
- package/src/control-plane/gateway.ts +1 -713
- package/src/control-plane/index.ts +7 -7
- package/src/control-plane/media-contract-schemas.ts +1 -208
- package/src/control-plane/method-catalog-admin.ts +1 -136
- package/src/control-plane/method-catalog-channels.ts +1 -591
- package/src/control-plane/method-catalog-control-automation.ts +1 -475
- package/src/control-plane/method-catalog-control-core.ts +1 -594
- package/src/control-plane/method-catalog-control.ts +1 -8
- package/src/control-plane/method-catalog-events.ts +1 -74
- package/src/control-plane/method-catalog-knowledge.ts +1 -531
- package/src/control-plane/method-catalog-media.ts +1 -279
- package/src/control-plane/method-catalog-runtime.ts +1 -304
- package/src/control-plane/method-catalog-shared.ts +1 -223
- package/src/control-plane/method-catalog.ts +1 -242
- package/src/control-plane/operator-contract-schemas-admin.ts +1 -639
- package/src/control-plane/operator-contract-schemas-channels.ts +1 -375
- package/src/control-plane/operator-contract-schemas-control.ts +1 -226
- package/src/control-plane/operator-contract-schemas-domains.ts +1 -4
- package/src/control-plane/operator-contract-schemas-knowledge.ts +1 -582
- package/src/control-plane/operator-contract-schemas-media.ts +1 -297
- package/src/control-plane/operator-contract-schemas-permissions.ts +1 -100
- package/src/control-plane/operator-contract-schemas-remote.ts +1 -38
- package/src/control-plane/operator-contract-schemas-runtime.ts +1 -563
- package/src/control-plane/operator-contract-schemas-shared.ts +1 -85
- package/src/control-plane/operator-contract-schemas-telemetry.ts +1 -349
- package/src/control-plane/operator-contract-schemas.ts +1 -6
- package/src/control-plane/operator-contract.ts +5 -3
- package/src/control-plane/session-broker.ts +1 -1
- package/src/core/compaction-sections.ts +5 -5
- package/src/core/compaction-types.ts +3 -3
- package/src/core/composer-state.ts +1 -1
- package/src/core/context-compaction.ts +7 -7
- package/src/core/conversation-compaction.ts +4 -4
- package/src/core/conversation-diff.ts +1 -1
- package/src/core/conversation-rendering.ts +5 -5
- package/src/core/conversation-utils.ts +2 -2
- package/src/core/conversation.ts +10 -10
- package/src/core/event-replay.ts +1 -1
- package/src/core/orchestrator-context-runtime.ts +8 -8
- package/src/core/orchestrator-follow-up-runtime.ts +2 -2
- package/src/core/orchestrator-runtime.ts +4 -4
- package/src/core/orchestrator-tool-runtime.ts +7 -7
- package/src/core/orchestrator-turn-helpers.ts +7 -7
- package/src/core/orchestrator-turn-loop.ts +10 -10
- package/src/core/orchestrator.ts +17 -17
- package/src/core/plan-command-handler.ts +2 -2
- package/src/core/system-message-router.ts +2 -2
- package/src/core/transcript-events/classify.ts +1 -1
- package/src/core/transcript-events/index.ts +3 -3
- package/src/daemon/cli.ts +6 -6
- package/src/daemon/control-plane.ts +7 -7
- package/src/daemon/facade-composition.ts +16 -15
- package/src/daemon/facade.ts +17 -17
- package/src/daemon/helpers.ts +2 -2
- package/src/daemon/http/router-route-contexts.ts +11 -11
- package/src/daemon/http/router.ts +25 -25
- package/src/daemon/http-listener.ts +3 -3
- package/src/daemon/index.ts +1 -3
- package/src/daemon/service-manager.ts +1 -1
- package/src/daemon/surface-actions.ts +8 -8
- package/src/daemon/surface-delivery.ts +7 -7
- package/src/daemon/surface-policy.ts +1 -1
- package/src/daemon/transport-events.ts +4 -4
- package/src/daemon/types.ts +24 -24
- package/src/export/markdown.ts +1 -1
- package/src/export/session-export.ts +1 -633
- package/src/git/index.ts +1 -1
- package/src/git/service.ts +1 -1
- package/src/hooks/chain-engine.ts +1 -1
- package/src/hooks/dispatcher.ts +4 -4
- package/src/hooks/hook-api.ts +1 -1
- package/src/hooks/index.ts +8 -8
- package/src/hooks/runners/agent.ts +1 -1
- package/src/hooks/runners/prompt.ts +1 -1
- package/src/hooks/workbench.ts +2 -2
- package/src/input/command-registry.ts +24 -17
- package/src/input/commands/config.ts +1 -1
- package/src/input/commands/control-room-runtime.ts +2 -2
- package/src/input/commands/conversation-runtime.ts +1 -1
- package/src/input/commands/discovery-runtime.ts +7 -1
- package/src/input/commands/eval.ts +2 -2
- package/src/input/commands/git-runtime.ts +1 -1
- package/src/input/commands/guidance-runtime.ts +3 -3
- package/src/input/commands/health-runtime.ts +7 -7
- package/src/input/commands/incident-runtime.ts +1 -1
- package/src/input/commands/integration-runtime.ts +3 -3
- package/src/input/commands/local-provider-runtime.ts +1 -1
- package/src/input/commands/local-runtime.ts +1 -1
- package/src/input/commands/local-setup-review.ts +2 -2
- package/src/input/commands/local-setup.ts +2 -2
- package/src/input/commands/managed-runtime.ts +2 -2
- package/src/input/commands/marketplace-runtime.ts +1 -1
- package/src/input/commands/platform-access-runtime.ts +1 -1
- package/src/input/commands/platform-sandbox-qemu.ts +3 -3
- package/src/input/commands/platform-sandbox-runtime.ts +5 -5
- package/src/input/commands/platform-sandbox-session.ts +1 -1
- package/src/input/commands/policy-dispatch.ts +2 -2
- package/src/input/commands/product-runtime.ts +2 -2
- package/src/input/commands/profile-sync-runtime.ts +1 -1
- package/src/input/commands/provider-accounts-runtime.ts +1 -1
- package/src/input/commands/provider.ts +3 -3
- package/src/input/commands/quit-shared.ts +1 -1
- package/src/input/commands/recall-bundle.ts +1 -1
- package/src/input/commands/recall-capture.ts +2 -2
- package/src/input/commands/recall-query.ts +2 -2
- package/src/input/commands/recall-shared.ts +1 -1
- package/src/input/commands/remote-runtime-setup.ts +1 -1
- package/src/input/commands/remote-runtime.ts +1 -1
- package/src/input/commands/runtime-services.ts +13 -11
- package/src/input/commands/schedule-runtime.ts +2 -2
- package/src/input/commands/session-content.ts +1 -1
- package/src/input/commands/session-workflow.ts +4 -4
- package/src/input/commands/settings-sync-runtime.ts +1 -1
- package/src/input/commands/share-runtime.ts +9 -4
- package/src/input/commands/shell-core.ts +1 -1
- package/src/input/commands/skills-runtime.ts +1 -1
- package/src/input/commands/subscription-runtime.ts +1 -1
- package/src/input/commands/tasks-runtime.ts +1 -1
- package/src/input/commands/teamwork-runtime.ts +1 -1
- package/src/input/commands/worktree-runtime.ts +1 -1
- package/src/input/handler-command-route.ts +1 -1
- package/src/input/handler-content-actions.ts +3 -3
- package/src/input/handler-feed-routes.ts +2 -2
- package/src/input/handler-feed.ts +1 -1
- package/src/input/handler-shortcuts.ts +1 -1
- package/src/input/handler.ts +1 -1
- package/src/input/keybindings.ts +5 -0
- package/src/input/model-picker.ts +2 -2
- package/src/input/profile-picker-modal.ts +1 -1
- package/src/input/session-picker-modal.ts +1 -1
- package/src/input/settings-modal.ts +4 -4
- package/src/integrations/index.ts +1 -1
- package/src/integrations/notifier.ts +1 -1
- package/src/integrations/webhooks.ts +1 -177
- package/src/knowledge/consolidation.ts +2 -2
- package/src/knowledge/graphql.ts +1 -1
- package/src/knowledge/index.ts +5 -5
- package/src/knowledge/ingest-compile.ts +3 -3
- package/src/knowledge/ingest-context.ts +1 -1
- package/src/knowledge/ingest-inputs.ts +4 -4
- package/src/knowledge/ingest.ts +1 -20
- package/src/knowledge/internal.ts +1 -1
- package/src/knowledge/knowledge-api.ts +7 -7
- package/src/knowledge/lint.ts +3 -3
- package/src/knowledge/memory-sync.ts +2 -2
- package/src/knowledge/packet.ts +3 -3
- package/src/knowledge/scheduling.ts +2 -2
- package/src/knowledge/service.ts +10 -10
- package/src/main.ts +11 -10
- package/src/mcp/index.ts +4 -4
- package/src/mcp/mcp-api.ts +1 -1
- package/src/mcp/registry.ts +1 -508
- package/src/media/builtin-image-understanding.ts +2 -2
- package/src/media/builtin-providers.ts +2 -2
- package/src/media/index.ts +1 -1
- package/src/multimodal/index.ts +1 -1
- package/src/multimodal/service.ts +2 -2
- package/src/panels/agent-inspector-panel.ts +2 -2
- package/src/panels/agent-logs-panel.ts +3 -3
- package/src/panels/approval-panel.ts +2 -2
- package/src/panels/builtin/operations.ts +3 -1
- package/src/panels/builtin/shared.ts +14 -14
- package/src/panels/context-visualizer-panel.ts +2 -2
- package/src/panels/cost-tracker-panel.ts +2 -2
- package/src/panels/debug-panel.ts +3 -3
- package/src/panels/git-panel.ts +1 -1
- package/src/panels/hooks-panel.ts +4 -4
- package/src/panels/knowledge-panel.ts +1 -1
- package/src/panels/marketplace-panel.ts +1 -1
- package/src/panels/mcp-panel.ts +1 -1
- package/src/panels/memory-panel.ts +2 -2
- package/src/panels/ops-control-panel.ts +2 -2
- package/src/panels/ops-strategy-panel.ts +2 -2
- package/src/panels/plugins-panel.ts +1 -1
- package/src/panels/policy-panel.ts +1 -1
- package/src/panels/provider-health-panel.ts +3 -3
- package/src/panels/provider-stats-panel.ts +2 -2
- package/src/panels/sandbox-panel.ts +3 -3
- package/src/panels/schedule-panel.ts +1 -1
- package/src/panels/settings-sync-panel.ts +1 -1
- package/src/panels/skills-panel.ts +28 -1
- package/src/panels/system-messages-panel.ts +1 -1
- package/src/panels/tasks-panel.ts +1 -1
- package/src/panels/thinking-panel.ts +2 -2
- package/src/panels/token-budget-panel.ts +1 -1
- package/src/panels/tool-inspector-panel.ts +2 -2
- package/src/panels/worktree-panel.ts +1 -1
- package/src/panels/wrfc-panel.ts +4 -4
- package/src/permissions/briefs/build.ts +1 -1
- package/src/permissions/manager.ts +1 -356
- package/src/permissions/prompt.ts +1 -1
- package/src/plugins/api.ts +9 -9
- package/src/plugins/loader.ts +8 -8
- package/src/plugins/manager.ts +5 -5
- package/src/providers/amazon-bedrock-mantle.ts +1 -1
- package/src/providers/amazon-bedrock.ts +1 -1
- package/src/providers/anthropic-compat.ts +4 -4
- package/src/providers/anthropic-sdk-provider.ts +5 -5
- package/src/providers/anthropic-vertex.ts +1 -1
- package/src/providers/anthropic.ts +4 -4
- package/src/providers/auto-register.ts +6 -6
- package/src/providers/builtin-catalog.ts +2 -2
- package/src/providers/builtin-registry.ts +15 -15
- package/src/providers/cache-planner.ts +2 -2
- package/src/providers/capabilities.ts +1 -601
- package/src/providers/custom-loader.ts +6 -6
- package/src/providers/discovered-compat.ts +7 -18
- package/src/providers/discovered-factory.ts +7 -7
- package/src/providers/discovered-traits.ts +1 -1
- package/src/providers/gemini.ts +4 -4
- package/src/providers/github-copilot.ts +4 -4
- package/src/providers/index.ts +1 -47
- package/src/providers/interface.ts +1 -1
- package/src/providers/llama-cpp.ts +4 -4
- package/src/providers/lm-studio-helpers.ts +1 -1
- package/src/providers/lm-studio.ts +4 -4
- package/src/providers/model-catalog-cache.ts +1 -1
- package/src/providers/model-catalog-notifications.ts +1 -1
- package/src/providers/model-catalog-synthetic.ts +2 -2
- package/src/providers/model-catalog.ts +7 -7
- package/src/providers/model-limits.ts +1 -280
- package/src/providers/ollama.ts +4 -4
- package/src/providers/openai-codex.ts +2 -2
- package/src/providers/openai-compat.ts +4 -4
- package/src/providers/openai.ts +3 -3
- package/src/providers/optimizer.ts +1 -381
- package/src/providers/provider-api.ts +1 -553
- package/src/providers/registry-helpers.ts +1 -1
- package/src/providers/registry-models.ts +2 -2
- package/src/providers/registry-types.ts +5 -5
- package/src/providers/registry.ts +1 -729
- package/src/providers/runtime-metadata.ts +1 -1
- package/src/providers/runtime-snapshot.ts +3 -3
- package/src/providers/synthetic.ts +3 -3
- package/src/providers/tier-prompts.ts +1 -1
- package/src/providers/tool-formats.ts +1 -1
- package/src/renderer/agent-detail-modal.ts +2 -2
- package/src/renderer/block-actions.ts +1 -1
- package/src/renderer/context-inspector.ts +1 -1
- package/src/renderer/conversation-layout.ts +1 -1
- package/src/renderer/conversation-overlays.ts +1 -1
- package/src/renderer/git-status.ts +1 -1
- package/src/renderer/live-tail-modal.ts +1 -1
- package/src/renderer/process-modal.ts +2 -2
- package/src/runtime/bootstrap-background.ts +18 -8
- package/src/runtime/bootstrap-command-context.ts +24 -24
- package/src/runtime/bootstrap-command-parts.ts +24 -24
- package/src/runtime/bootstrap-core.ts +12 -10
- package/src/runtime/bootstrap-helpers.ts +2 -2
- package/src/runtime/bootstrap-hook-bridge.ts +9 -9
- package/src/runtime/bootstrap-runtime-events.ts +4 -4
- package/src/runtime/bootstrap-services.ts +4 -4
- package/src/runtime/bootstrap-shell.ts +11 -11
- package/src/runtime/bootstrap.ts +28 -10
- package/src/runtime/compaction/index.ts +1 -90
- package/src/runtime/compaction/lifecycle.ts +1 -167
- package/src/runtime/compaction/manager.ts +11 -11
- package/src/runtime/compaction/quality-score.ts +1 -279
- package/src/runtime/compaction/resume-repair.ts +1 -183
- package/src/runtime/compaction/strategies/autocompact.ts +1 -65
- package/src/runtime/compaction/strategies/boundary-commit.ts +1 -106
- package/src/runtime/compaction/strategies/collapse.ts +1 -90
- package/src/runtime/compaction/strategies/index.ts +1 -23
- package/src/runtime/compaction/strategies/microcompact.ts +1 -74
- package/src/runtime/compaction/strategies/reactive.ts +1 -89
- package/src/runtime/compaction/types.ts +1 -221
- package/src/runtime/context.ts +10 -10
- package/src/runtime/diagnostics/actions.ts +1 -1
- package/src/runtime/diagnostics/index.ts +5 -5
- package/src/runtime/diagnostics/panels/agents.ts +2 -2
- package/src/runtime/diagnostics/panels/events.ts +2 -2
- package/src/runtime/diagnostics/panels/health.ts +2 -2
- package/src/runtime/diagnostics/panels/ops.ts +2 -2
- package/src/runtime/diagnostics/panels/policy.ts +2 -2
- package/src/runtime/diagnostics/panels/tasks.ts +2 -2
- package/src/runtime/diagnostics/panels/tool-calls.ts +2 -2
- package/src/runtime/diagnostics/provider.ts +1 -1
- package/src/runtime/ecosystem/recommendations.ts +1 -1
- package/src/runtime/emitters/agents.ts +2 -2
- package/src/runtime/emitters/automation.ts +2 -2
- package/src/runtime/emitters/communication.ts +2 -2
- package/src/runtime/emitters/compaction.ts +2 -2
- package/src/runtime/emitters/control-plane.ts +2 -2
- package/src/runtime/emitters/deliveries.ts +2 -2
- package/src/runtime/emitters/forensics.ts +2 -2
- package/src/runtime/emitters/index.ts +27 -27
- package/src/runtime/emitters/knowledge.ts +2 -2
- package/src/runtime/emitters/mcp.ts +2 -2
- package/src/runtime/emitters/ops.ts +2 -2
- package/src/runtime/emitters/orchestration.ts +2 -2
- package/src/runtime/emitters/permissions.ts +2 -2
- package/src/runtime/emitters/planner.ts +2 -2
- package/src/runtime/emitters/plugins.ts +2 -2
- package/src/runtime/emitters/providers.ts +2 -2
- package/src/runtime/emitters/routes.ts +2 -2
- package/src/runtime/emitters/security.ts +2 -2
- package/src/runtime/emitters/session.ts +2 -2
- package/src/runtime/emitters/surfaces.ts +2 -2
- package/src/runtime/emitters/tasks.ts +2 -2
- package/src/runtime/emitters/tools.ts +2 -2
- package/src/runtime/emitters/transport.ts +2 -2
- package/src/runtime/emitters/turn.ts +3 -3
- package/src/runtime/emitters/ui.ts +2 -2
- package/src/runtime/emitters/watchers.ts +2 -2
- package/src/runtime/emitters/workflows.ts +3 -3
- package/src/runtime/eval/index.ts +3 -3
- package/src/runtime/eval/runner.ts +1 -1
- package/src/runtime/eval/suites.ts +1 -1
- package/src/runtime/events/domain-map.ts +2 -2
- package/src/runtime/events/index.ts +1 -194
- package/src/runtime/events/turn.ts +1 -60
- package/src/runtime/events/workflows.ts +1 -17
- package/src/runtime/forensics/collector.ts +4 -4
- package/src/runtime/forensics/index.ts +1 -1
- package/src/runtime/foundation-clients.ts +14 -14
- package/src/runtime/foundation-services.ts +8 -8
- package/src/runtime/guidance.ts +3 -3
- package/src/runtime/health/effect-handlers.ts +3 -3
- package/src/runtime/health/index.ts +4 -4
- package/src/runtime/health/wiring.ts +2 -2
- package/src/runtime/index.ts +29 -29
- package/src/runtime/integration/helpers.ts +12 -12
- package/src/runtime/lifecycle.ts +4 -4
- package/src/runtime/mcp/index.ts +3 -3
- package/src/runtime/mcp/manager.ts +1 -1
- package/src/runtime/network/inbound.ts +2 -2
- package/src/runtime/network/index.ts +5 -5
- package/src/runtime/network/outbound.ts +2 -2
- package/src/runtime/network/shared.ts +1 -1
- package/src/runtime/operator-client.ts +9 -9
- package/src/runtime/ops/control-plane.ts +2 -2
- package/src/runtime/ops/index.ts +3 -3
- package/src/runtime/ops/playbooks/index.ts +2 -2
- package/src/runtime/ops/playbooks/session-unrecoverable.ts +2 -2
- package/src/runtime/ops/playbooks/stuck-turn.ts +1 -1
- package/src/runtime/ops/runtime-context.ts +1 -1
- package/src/runtime/orchestration/spawn-policy.ts +1 -1
- package/src/runtime/peer-client.ts +3 -3
- package/src/runtime/perf/index.ts +1 -1
- package/src/runtime/perf/slo-collector.ts +1 -1
- package/src/runtime/permissions/index.ts +5 -5
- package/src/runtime/permissions/policy-runtime.ts +1 -175
- package/src/runtime/permissions/rule-suggestions.ts +1 -1
- package/src/runtime/plugins/hot-reload.ts +4 -4
- package/src/runtime/plugins/index.ts +13 -13
- package/src/runtime/plugins/lifecycle.ts +1 -1
- package/src/runtime/plugins/manager.ts +10 -10
- package/src/runtime/plugins/manifest.ts +2 -2
- package/src/runtime/plugins/quarantine.ts +2 -2
- package/src/runtime/plugins/trust.ts +2 -2
- package/src/runtime/plugins/types.ts +1 -1
- package/src/runtime/provider-accounts/registry.ts +2 -2
- package/src/runtime/remote/distributed-runtime-contract-schemas.ts +3 -3
- package/src/runtime/remote/index.ts +3 -3
- package/src/runtime/remote/runner-registry.ts +2 -2
- package/src/runtime/remote/supervisor.ts +1 -1
- package/src/runtime/runtime-hook-api.ts +1 -1
- package/src/runtime/runtime-knowledge-api.ts +1 -1
- package/src/runtime/runtime-mcp-api.ts +1 -1
- package/src/runtime/runtime-ops-api.ts +2 -2
- package/src/runtime/runtime-provider-api.ts +1 -1
- package/src/runtime/services.ts +42 -35
- package/src/runtime/session-maintenance.ts +1 -1
- package/src/runtime/session-persistence.ts +2 -2
- package/src/runtime/session-return-context.ts +3 -3
- package/src/runtime/settings/control-plane-store.ts +1 -1
- package/src/runtime/settings/control-plane.ts +2 -2
- package/src/runtime/shell-command-extensions.ts +7 -7
- package/src/runtime/shell-command-ops.ts +6 -6
- package/src/runtime/shell-command-platform.ts +1 -1
- package/src/runtime/shell-command-services.ts +18 -18
- package/src/runtime/shell-command-workspace.ts +2 -2
- package/src/runtime/store/domains/conversation.ts +1 -1
- package/src/runtime/store/domains/index.ts +4 -4
- package/src/runtime/store/domains/permissions.ts +1 -1
- package/src/runtime/store/helpers/reducers/conversation.ts +3 -3
- package/src/runtime/store/helpers/reducers/lifecycle.ts +3 -3
- package/src/runtime/store/helpers/reducers/shared.ts +2 -2
- package/src/runtime/store/helpers/reducers/sync.ts +1 -1
- package/src/runtime/store/helpers/reducers.ts +4 -4
- package/src/runtime/store/index.ts +4 -4
- package/src/runtime/store/selectors/index.ts +2 -2
- package/src/runtime/store/state.ts +4 -4
- package/src/runtime/tasks/adapters/acp-adapter.ts +1 -1
- package/src/runtime/tasks/adapters/index.ts +6 -6
- package/src/runtime/tasks/index.ts +3 -3
- package/src/runtime/tasks/manager.ts +3 -3
- package/src/runtime/telemetry/api-helpers.ts +2 -2
- package/src/runtime/telemetry/api.ts +2 -2
- package/src/runtime/telemetry/index.ts +5 -5
- package/src/runtime/telemetry/instrumentation/domain-bridge-agent-session.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge-plugin-mcp.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge-shared.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge-transport-task.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge.ts +5 -5
- package/src/runtime/telemetry/instrumentation/index.ts +3 -3
- package/src/runtime/tools/context.ts +3 -3
- package/src/runtime/tools/index.ts +4 -4
- package/src/runtime/tools/phased-executor.ts +3 -3
- package/src/runtime/tools/phases/budget.ts +1 -1
- package/src/runtime/tools/phases/execute.ts +1 -1
- package/src/runtime/tools/phases/index.ts +7 -7
- package/src/runtime/tools/phases/map-output.ts +1 -1
- package/src/runtime/tools/phases/permission.ts +2 -2
- package/src/runtime/tools/phases/posthook.ts +1 -1
- package/src/runtime/tools/phases/prehook.ts +1 -1
- package/src/runtime/tools/phases/validate.ts +1 -1
- package/src/runtime/transports/direct.ts +4 -4
- package/src/runtime/transports/http-helpers.ts +3 -3
- package/src/runtime/transports/http-types.ts +6 -6
- package/src/runtime/transports/http.ts +8 -8
- package/src/runtime/transports/realtime.ts +4 -4
- package/src/runtime/transports/remote-events.ts +1 -1
- package/src/runtime/transports/shared.ts +2 -2
- package/src/runtime/transports/ui-runtime-events.ts +2 -2
- package/src/runtime/ui/index.ts +7 -7
- package/src/runtime/ui/model-picker/data-provider.ts +4 -4
- package/src/runtime/ui/model-picker/health-enrichment.ts +3 -3
- package/src/runtime/ui/model-picker/index.ts +8 -8
- package/src/runtime/ui/provider-health/data-provider.ts +2 -2
- package/src/runtime/ui/provider-health/fallback-visualizer.ts +1 -1
- package/src/runtime/ui/provider-health/index.ts +5 -5
- package/src/runtime/ui-events.ts +1 -1
- package/src/runtime/ui-read-models-core.ts +2 -2
- package/src/runtime/ui-read-models-observability-maintenance.ts +4 -4
- package/src/runtime/ui-read-models-observability-options.ts +1 -1
- package/src/runtime/ui-read-models-observability-remote.ts +2 -2
- package/src/runtime/ui-read-models-observability-security.ts +3 -3
- package/src/runtime/ui-read-models-observability-system.ts +6 -6
- package/src/runtime/ui-read-models-observability.ts +10 -10
- package/src/runtime/ui-read-models-operations.ts +2 -2
- package/src/runtime/ui-read-models.ts +7 -7
- package/src/runtime/ui-service-queries.ts +2 -2
- package/src/runtime/ui-services.ts +7 -7
- package/src/runtime/worktree/registry.ts +1 -1
- package/src/scripts/process-messages.ts +1 -1
- package/src/sessions/manager.ts +9 -383
- package/src/shell/blocking-input.ts +3 -3
- package/src/shell/ui-openers.ts +3 -3
- package/src/state/file-watcher.ts +1 -1
- package/src/state/index.ts +10 -10
- package/src/state/knowledge-injection.ts +2 -2
- package/src/state/memory-embedding-http.ts +2 -2
- package/src/state/memory-embeddings.ts +1 -1
- package/src/state/memory-ingest.ts +3 -3
- package/src/state/memory-registry.ts +3 -3
- package/src/state/memory-store-helpers.ts +1 -1
- package/src/state/memory-store.ts +4 -4
- package/src/state/memory-vector-store.ts +3 -3
- package/src/tools/agent/index.ts +7 -7
- package/src/tools/agent/manager.ts +8 -8
- package/src/tools/analyze/git-modes.ts +2 -2
- package/src/tools/analyze/index.ts +2 -2
- package/src/tools/channel/agent-tools.ts +1 -1
- package/src/tools/channel/index.ts +2 -2
- package/src/tools/control/index.ts +1 -1
- package/src/tools/edit/core.ts +3 -3
- package/src/tools/edit/index.ts +2 -2
- package/src/tools/edit/phased.ts +2 -2
- package/src/tools/fetch/index.ts +2 -2
- package/src/tools/fetch/phased.ts +1 -1
- package/src/tools/index.ts +28 -28
- package/src/tools/mcp/index.ts +1 -1
- package/src/tools/remote-trigger/index.ts +1 -1
- package/src/tools/shared/auto-heal.ts +2 -2
- package/src/tools/state/index.ts +1 -1
- package/src/tools/web-search/index.ts +1 -1
- package/src/tools/write/index.ts +3 -3
- package/src/tools/write/phased.ts +1 -1
- package/src/version.ts +1 -1
- package/src/watchers/index.ts +2 -2
- package/src/watchers/registry.ts +2 -2
- package/src/web-search/index.ts +10 -10
- package/src/web-search/provider-registry.ts +8 -8
- package/src/web-search/providers/brave.ts +1 -1
- package/src/web-search/providers/duckduckgo.ts +1 -1
- package/src/web-search/providers/exa.ts +1 -1
- package/src/web-search/providers/firecrawl.ts +1 -1
- package/src/web-search/providers/perplexity.ts +1 -1
- package/src/web-search/providers/searxng.ts +1 -1
- package/src/web-search/providers/shared.ts +1 -1
- package/src/web-search/providers/tavily.ts +1 -1
- package/src/web-search/service.ts +2 -2
- package/docs/README.md +0 -32
- package/scripts/postinstall.mjs +0 -203
- package/src/runtime/ecosystem/catalog.ts +0 -606
- package/src/runtime/sandbox/backend.ts +0 -291
- package/src/runtime/sandbox/manager.ts +0 -364
- package/src/runtime/sandbox/provisioning.ts +0 -422
- package/src/runtime/sandbox/session-registry.ts +0 -289
- package/src/tools/repl/index.ts +0 -318
|
@@ -1,594 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
BOOLEAN_SCHEMA,
|
|
4
|
-
EMPTY_OBJECT_SCHEMA,
|
|
5
|
-
NUMBER_SCHEMA,
|
|
6
|
-
STRING_SCHEMA,
|
|
7
|
-
arraySchema,
|
|
8
|
-
actionResultOutputSchema,
|
|
9
|
-
bodyEnvelopeSchema,
|
|
10
|
-
entityOutputSchema,
|
|
11
|
-
listOutputSchema,
|
|
12
|
-
methodDescriptor,
|
|
13
|
-
objectSchema,
|
|
14
|
-
runtimeEventId,
|
|
15
|
-
METHOD_DESCRIPTOR_SCHEMA,
|
|
16
|
-
EVENT_DESCRIPTOR_SCHEMA,
|
|
17
|
-
} from './method-catalog-shared.ts';
|
|
18
|
-
import {
|
|
19
|
-
APPROVAL_ACTION_INPUT_SCHEMA,
|
|
20
|
-
APPROVAL_ACTION_OUTPUT_SCHEMA,
|
|
21
|
-
APPROVAL_SNAPSHOT_SCHEMA,
|
|
22
|
-
CONTROL_AUTH_CURRENT_RESPONSE_SCHEMA,
|
|
23
|
-
CONTROL_AUTH_LOGIN_REQUEST_SCHEMA,
|
|
24
|
-
CONTROL_AUTH_LOGIN_RESPONSE_SCHEMA,
|
|
25
|
-
CONTROL_PLANE_CLIENT_DESCRIPTOR_SCHEMA,
|
|
26
|
-
CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA,
|
|
27
|
-
CONTROL_PLANE_SNAPSHOT_SCHEMA,
|
|
28
|
-
OTLP_LOG_DOCUMENT_SCHEMA,
|
|
29
|
-
OTLP_METRIC_DOCUMENT_SCHEMA,
|
|
30
|
-
OTLP_TRACE_DOCUMENT_SCHEMA,
|
|
31
|
-
REVIEW_SNAPSHOT_SCHEMA,
|
|
32
|
-
SESSION_BROKER_SNAPSHOT_SCHEMA,
|
|
33
|
-
SESSION_SNAPSHOT_SCHEMA,
|
|
34
|
-
SHARED_SESSION_CREATE_OUTPUT_SCHEMA,
|
|
35
|
-
SHARED_SESSION_INPUT_RECORD_SCHEMA,
|
|
36
|
-
SHARED_SESSION_MESSAGE_CREATE_OUTPUT_SCHEMA,
|
|
37
|
-
SHARED_SESSION_RECORD_SCHEMA,
|
|
38
|
-
SHARED_SESSION_ROUTING_INTENT_SCHEMA,
|
|
39
|
-
SHARED_SESSION_WITH_INPUTS_SCHEMA,
|
|
40
|
-
SHARED_SESSION_WITH_MESSAGES_SCHEMA,
|
|
41
|
-
TASK_ACTION_OUTPUT_SCHEMA,
|
|
42
|
-
TASK_CREATE_INPUT_SCHEMA,
|
|
43
|
-
TASK_CREATE_OUTPUT_SCHEMA,
|
|
44
|
-
TASK_OUTPUT_SCHEMA,
|
|
45
|
-
TASK_SNAPSHOT_SCHEMA,
|
|
46
|
-
TASK_STATUS_OUTPUT_SCHEMA,
|
|
47
|
-
TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
48
|
-
TELEMETRY_METRICS_SNAPSHOT_SCHEMA,
|
|
49
|
-
TELEMETRY_RECORD_LIST_RESPONSE_SCHEMA,
|
|
50
|
-
TELEMETRY_SNAPSHOT_SCHEMA,
|
|
51
|
-
TELEMETRY_SPAN_LIST_RESPONSE_SCHEMA,
|
|
52
|
-
TELEMETRY_STREAM_READY_SCHEMA,
|
|
53
|
-
} from './operator-contract-schemas.ts';
|
|
54
|
-
import { OPERATOR_CONTRACT_SCHEMA } from './operator-contract.ts';
|
|
55
|
-
|
|
56
|
-
const CONTROL_AUTH_CURRENT_ALIAS_PATHS = ['/api/control-plane/whoami'];
|
|
57
|
-
const TELEMETRY_ALIAS_PATHS = ['/api/telemetry'];
|
|
58
|
-
const TELEMETRY_EVENTS_ALIAS_PATHS = ['/api/telemetry/events'];
|
|
59
|
-
const TELEMETRY_ERRORS_ALIAS_PATHS = ['/api/telemetry/errors'];
|
|
60
|
-
const TELEMETRY_TRACES_ALIAS_PATHS = ['/api/telemetry/traces'];
|
|
61
|
-
const TELEMETRY_METRICS_ALIAS_PATHS = ['/api/telemetry/metrics'];
|
|
62
|
-
const TELEMETRY_STREAM_ALIAS_PATHS = ['/api/telemetry/stream'];
|
|
63
|
-
const TELEMETRY_OTLP_TRACES_ALIAS_PATHS = ['/api/telemetry/otlp/v1/traces'];
|
|
64
|
-
const TELEMETRY_OTLP_LOGS_ALIAS_PATHS = ['/api/telemetry/otlp/v1/logs'];
|
|
65
|
-
const TELEMETRY_OTLP_METRICS_ALIAS_PATHS = ['/api/telemetry/otlp/v1/metrics'];
|
|
66
|
-
|
|
67
|
-
export const builtinGatewayControlCoreMethodDescriptors: readonly GatewayMethodDescriptor[] = [
|
|
68
|
-
methodDescriptor({
|
|
69
|
-
id: 'control.auth.login',
|
|
70
|
-
title: 'Login',
|
|
71
|
-
description: 'Authenticate a local control-plane user and create a session token.',
|
|
72
|
-
category: 'control-plane',
|
|
73
|
-
access: 'public',
|
|
74
|
-
transport: ['http'],
|
|
75
|
-
scopes: [],
|
|
76
|
-
http: { method: 'POST', path: '/login' },
|
|
77
|
-
inputSchema: CONTROL_AUTH_LOGIN_REQUEST_SCHEMA,
|
|
78
|
-
outputSchema: CONTROL_AUTH_LOGIN_RESPONSE_SCHEMA,
|
|
79
|
-
invokable: false,
|
|
80
|
-
}),
|
|
81
|
-
methodDescriptor({
|
|
82
|
-
id: 'control.auth.current',
|
|
83
|
-
title: 'Current Auth Context',
|
|
84
|
-
description: 'Return the current control-plane principal, granted scopes, and authentication mode.',
|
|
85
|
-
category: 'control-plane',
|
|
86
|
-
access: 'public',
|
|
87
|
-
scopes: [],
|
|
88
|
-
http: { method: 'GET', path: '/api/control-plane/auth' },
|
|
89
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
90
|
-
outputSchema: CONTROL_AUTH_CURRENT_RESPONSE_SCHEMA,
|
|
91
|
-
metadata: { aliasPaths: CONTROL_AUTH_CURRENT_ALIAS_PATHS },
|
|
92
|
-
}),
|
|
93
|
-
methodDescriptor({
|
|
94
|
-
id: 'control.status',
|
|
95
|
-
title: 'Daemon Status',
|
|
96
|
-
description: 'Return daemon status and version.',
|
|
97
|
-
category: 'control-plane',
|
|
98
|
-
scopes: ['read:control-plane'],
|
|
99
|
-
http: { method: 'GET', path: '/status' },
|
|
100
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
101
|
-
outputSchema: objectSchema({
|
|
102
|
-
status: STRING_SCHEMA,
|
|
103
|
-
version: STRING_SCHEMA,
|
|
104
|
-
}, ['status', 'version']),
|
|
105
|
-
}),
|
|
106
|
-
methodDescriptor({
|
|
107
|
-
id: 'control.snapshot',
|
|
108
|
-
title: 'Control-Plane Snapshot',
|
|
109
|
-
description: 'Return the current control-plane gateway snapshot.',
|
|
110
|
-
category: 'control-plane',
|
|
111
|
-
scopes: ['read:control-plane'],
|
|
112
|
-
http: { method: 'GET', path: '/api/control-plane' },
|
|
113
|
-
events: [runtimeEventId('control-plane')],
|
|
114
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
115
|
-
outputSchema: CONTROL_PLANE_SNAPSHOT_SCHEMA,
|
|
116
|
-
}),
|
|
117
|
-
methodDescriptor({
|
|
118
|
-
id: 'control.contract',
|
|
119
|
-
title: 'Operator Contract',
|
|
120
|
-
description: 'Return the operator-facing control-plane contract manifest, including auth, transport, method, and event metadata.',
|
|
121
|
-
category: 'control-plane',
|
|
122
|
-
scopes: ['read:control-plane'],
|
|
123
|
-
http: { method: 'GET', path: '/api/control-plane/contract' },
|
|
124
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
125
|
-
outputSchema: entityOutputSchema('contract', OPERATOR_CONTRACT_SCHEMA),
|
|
126
|
-
}),
|
|
127
|
-
methodDescriptor({
|
|
128
|
-
id: 'control.web',
|
|
129
|
-
title: 'Control-Plane Web Shell',
|
|
130
|
-
description: 'Return the built-in control-plane HTML shell for external clients.',
|
|
131
|
-
category: 'control-plane',
|
|
132
|
-
scopes: ['read:control-plane'],
|
|
133
|
-
transport: ['http'],
|
|
134
|
-
http: { method: 'GET', path: '/api/control-plane/web' },
|
|
135
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
136
|
-
outputSchema: objectSchema({ html: STRING_SCHEMA }, ['html']),
|
|
137
|
-
invokable: false,
|
|
138
|
-
metadata: { responseKind: 'html' },
|
|
139
|
-
}),
|
|
140
|
-
methodDescriptor({
|
|
141
|
-
id: 'control.messages.list',
|
|
142
|
-
title: 'List Control-Plane Messages',
|
|
143
|
-
description: 'Return recent surface messages published through the control plane.',
|
|
144
|
-
category: 'control-plane',
|
|
145
|
-
scopes: ['read:control-plane'],
|
|
146
|
-
http: { method: 'GET', path: '/api/control-plane/messages' },
|
|
147
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
148
|
-
outputSchema: listOutputSchema('messages', CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA),
|
|
149
|
-
}),
|
|
150
|
-
methodDescriptor({
|
|
151
|
-
id: 'control.clients.list',
|
|
152
|
-
title: 'List Control-Plane Clients',
|
|
153
|
-
description: 'Return authenticated and recently connected control-plane clients.',
|
|
154
|
-
category: 'control-plane',
|
|
155
|
-
scopes: ['read:control-plane'],
|
|
156
|
-
http: { method: 'GET', path: '/api/control-plane/clients' },
|
|
157
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
158
|
-
outputSchema: listOutputSchema('clients', CONTROL_PLANE_CLIENT_DESCRIPTOR_SCHEMA),
|
|
159
|
-
}),
|
|
160
|
-
methodDescriptor({
|
|
161
|
-
id: 'telemetry.snapshot',
|
|
162
|
-
title: 'Telemetry Snapshot',
|
|
163
|
-
description: 'Return the current telemetry snapshot with aggregates, runtime state, and recent records.',
|
|
164
|
-
category: 'telemetry',
|
|
165
|
-
scopes: ['read:telemetry'],
|
|
166
|
-
http: { method: 'GET', path: '/api/v1/telemetry' },
|
|
167
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
168
|
-
outputSchema: TELEMETRY_SNAPSHOT_SCHEMA,
|
|
169
|
-
metadata: { aliasPaths: TELEMETRY_ALIAS_PATHS },
|
|
170
|
-
}),
|
|
171
|
-
methodDescriptor({
|
|
172
|
-
id: 'telemetry.events.list',
|
|
173
|
-
title: 'List Telemetry Events',
|
|
174
|
-
description: 'Return a paginated telemetry event feed with cursor-based resume semantics.',
|
|
175
|
-
category: 'telemetry',
|
|
176
|
-
scopes: ['read:telemetry'],
|
|
177
|
-
http: { method: 'GET', path: '/api/v1/telemetry/events' },
|
|
178
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
179
|
-
outputSchema: TELEMETRY_RECORD_LIST_RESPONSE_SCHEMA,
|
|
180
|
-
metadata: { aliasPaths: TELEMETRY_EVENTS_ALIAS_PATHS },
|
|
181
|
-
}),
|
|
182
|
-
methodDescriptor({
|
|
183
|
-
id: 'telemetry.errors.list',
|
|
184
|
-
title: 'List Telemetry Errors',
|
|
185
|
-
description: 'Return telemetry records that include normalized error metadata.',
|
|
186
|
-
category: 'telemetry',
|
|
187
|
-
scopes: ['read:telemetry'],
|
|
188
|
-
http: { method: 'GET', path: '/api/v1/telemetry/errors' },
|
|
189
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
190
|
-
outputSchema: TELEMETRY_RECORD_LIST_RESPONSE_SCHEMA,
|
|
191
|
-
metadata: { aliasPaths: TELEMETRY_ERRORS_ALIAS_PATHS },
|
|
192
|
-
}),
|
|
193
|
-
methodDescriptor({
|
|
194
|
-
id: 'telemetry.traces.list',
|
|
195
|
-
title: 'List Telemetry Traces',
|
|
196
|
-
description: 'Return synthesized readable spans derived from runtime telemetry.',
|
|
197
|
-
category: 'telemetry',
|
|
198
|
-
scopes: ['read:telemetry'],
|
|
199
|
-
http: { method: 'GET', path: '/api/v1/telemetry/traces' },
|
|
200
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
201
|
-
outputSchema: TELEMETRY_SPAN_LIST_RESPONSE_SCHEMA,
|
|
202
|
-
metadata: { aliasPaths: TELEMETRY_TRACES_ALIAS_PATHS },
|
|
203
|
-
}),
|
|
204
|
-
methodDescriptor({
|
|
205
|
-
id: 'telemetry.metrics.get',
|
|
206
|
-
title: 'Telemetry Metrics',
|
|
207
|
-
description: 'Return telemetry aggregates and runtime metrics without recent record payloads.',
|
|
208
|
-
category: 'telemetry',
|
|
209
|
-
scopes: ['read:telemetry'],
|
|
210
|
-
http: { method: 'GET', path: '/api/v1/telemetry/metrics' },
|
|
211
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
212
|
-
outputSchema: TELEMETRY_METRICS_SNAPSHOT_SCHEMA,
|
|
213
|
-
metadata: { aliasPaths: TELEMETRY_METRICS_ALIAS_PATHS },
|
|
214
|
-
}),
|
|
215
|
-
methodDescriptor({
|
|
216
|
-
id: 'telemetry.stream',
|
|
217
|
-
title: 'Telemetry Event Stream',
|
|
218
|
-
description: 'Open the telemetry SSE stream and emit a ready event with resume metadata.',
|
|
219
|
-
category: 'telemetry',
|
|
220
|
-
scopes: ['read:telemetry'],
|
|
221
|
-
transport: ['http'],
|
|
222
|
-
http: { method: 'GET', path: '/api/v1/telemetry/stream' },
|
|
223
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
224
|
-
outputSchema: TELEMETRY_STREAM_READY_SCHEMA,
|
|
225
|
-
invokable: false,
|
|
226
|
-
metadata: {
|
|
227
|
-
aliasPaths: TELEMETRY_STREAM_ALIAS_PATHS,
|
|
228
|
-
responseKind: 'sse',
|
|
229
|
-
stream: true,
|
|
230
|
-
wireEvent: 'telemetry',
|
|
231
|
-
},
|
|
232
|
-
}),
|
|
233
|
-
methodDescriptor({
|
|
234
|
-
id: 'telemetry.otlp.traces',
|
|
235
|
-
title: 'OTLP Trace Export',
|
|
236
|
-
description: 'Return telemetry traces encoded as OTLP-compatible JSON.',
|
|
237
|
-
category: 'telemetry',
|
|
238
|
-
scopes: ['read:telemetry'],
|
|
239
|
-
http: { method: 'GET', path: '/api/v1/telemetry/otlp/v1/traces' },
|
|
240
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
241
|
-
outputSchema: OTLP_TRACE_DOCUMENT_SCHEMA,
|
|
242
|
-
metadata: { aliasPaths: TELEMETRY_OTLP_TRACES_ALIAS_PATHS },
|
|
243
|
-
}),
|
|
244
|
-
methodDescriptor({
|
|
245
|
-
id: 'telemetry.otlp.logs',
|
|
246
|
-
title: 'OTLP Log Export',
|
|
247
|
-
description: 'Return telemetry events encoded as OTLP-compatible log documents.',
|
|
248
|
-
category: 'telemetry',
|
|
249
|
-
scopes: ['read:telemetry'],
|
|
250
|
-
http: { method: 'GET', path: '/api/v1/telemetry/otlp/v1/logs' },
|
|
251
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
252
|
-
outputSchema: OTLP_LOG_DOCUMENT_SCHEMA,
|
|
253
|
-
metadata: { aliasPaths: TELEMETRY_OTLP_LOGS_ALIAS_PATHS },
|
|
254
|
-
}),
|
|
255
|
-
methodDescriptor({
|
|
256
|
-
id: 'telemetry.otlp.metrics',
|
|
257
|
-
title: 'OTLP Metric Export',
|
|
258
|
-
description: 'Return telemetry metrics encoded as OTLP-compatible metric documents.',
|
|
259
|
-
category: 'telemetry',
|
|
260
|
-
scopes: ['read:telemetry'],
|
|
261
|
-
http: { method: 'GET', path: '/api/v1/telemetry/otlp/v1/metrics' },
|
|
262
|
-
inputSchema: TELEMETRY_FILTER_INPUT_SCHEMA,
|
|
263
|
-
outputSchema: OTLP_METRIC_DOCUMENT_SCHEMA,
|
|
264
|
-
metadata: { aliasPaths: TELEMETRY_OTLP_METRICS_ALIAS_PATHS },
|
|
265
|
-
}),
|
|
266
|
-
methodDescriptor({
|
|
267
|
-
id: 'control.methods.list',
|
|
268
|
-
title: 'List Gateway Methods',
|
|
269
|
-
description: 'Return the gateway method catalog.',
|
|
270
|
-
category: 'control-plane',
|
|
271
|
-
scopes: ['read:control-plane'],
|
|
272
|
-
http: { method: 'GET', path: '/api/control-plane/methods' },
|
|
273
|
-
inputSchema: objectSchema({
|
|
274
|
-
category: STRING_SCHEMA,
|
|
275
|
-
source: STRING_SCHEMA,
|
|
276
|
-
}),
|
|
277
|
-
outputSchema: listOutputSchema('methods', METHOD_DESCRIPTOR_SCHEMA),
|
|
278
|
-
}),
|
|
279
|
-
methodDescriptor({
|
|
280
|
-
id: 'control.methods.get',
|
|
281
|
-
title: 'Get Gateway Method',
|
|
282
|
-
description: 'Return a single gateway method descriptor.',
|
|
283
|
-
category: 'control-plane',
|
|
284
|
-
scopes: ['read:control-plane'],
|
|
285
|
-
http: { method: 'GET', path: '/api/control-plane/methods/{methodId}' },
|
|
286
|
-
inputSchema: objectSchema({
|
|
287
|
-
methodId: STRING_SCHEMA,
|
|
288
|
-
}, ['methodId']),
|
|
289
|
-
outputSchema: entityOutputSchema('method', METHOD_DESCRIPTOR_SCHEMA),
|
|
290
|
-
}),
|
|
291
|
-
methodDescriptor({
|
|
292
|
-
id: 'control.events.catalog',
|
|
293
|
-
title: 'List Gateway Events',
|
|
294
|
-
description: 'Return the event catalog for SSE and WebSocket control-plane subscriptions.',
|
|
295
|
-
category: 'control-plane',
|
|
296
|
-
scopes: ['read:control-plane', 'read:events'],
|
|
297
|
-
http: { method: 'GET', path: '/api/control-plane/events/catalog' },
|
|
298
|
-
inputSchema: objectSchema({
|
|
299
|
-
category: STRING_SCHEMA,
|
|
300
|
-
domain: STRING_SCHEMA,
|
|
301
|
-
}),
|
|
302
|
-
outputSchema: listOutputSchema('events', EVENT_DESCRIPTOR_SCHEMA),
|
|
303
|
-
}),
|
|
304
|
-
methodDescriptor({
|
|
305
|
-
id: 'control.events.stream',
|
|
306
|
-
title: 'Open Control-Plane Event Stream',
|
|
307
|
-
description: 'Open the SSE control-plane event stream.',
|
|
308
|
-
category: 'control-plane',
|
|
309
|
-
scopes: ['read:events'],
|
|
310
|
-
transport: ['http'],
|
|
311
|
-
http: { method: 'GET', path: '/api/control-plane/events' },
|
|
312
|
-
inputSchema: objectSchema({
|
|
313
|
-
domains: STRING_SCHEMA,
|
|
314
|
-
}),
|
|
315
|
-
outputSchema: objectSchema({
|
|
316
|
-
contentType: STRING_SCHEMA,
|
|
317
|
-
mode: STRING_SCHEMA,
|
|
318
|
-
}, ['contentType', 'mode']),
|
|
319
|
-
invokable: false,
|
|
320
|
-
metadata: { responseKind: 'sse', stream: true },
|
|
321
|
-
}),
|
|
322
|
-
methodDescriptor({
|
|
323
|
-
id: 'review.snapshot',
|
|
324
|
-
title: 'Review Snapshot',
|
|
325
|
-
description: 'Return the integration review snapshot used by external helpers.',
|
|
326
|
-
category: 'review',
|
|
327
|
-
scopes: ['read:automation'],
|
|
328
|
-
http: { method: 'GET', path: '/api/review' },
|
|
329
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
330
|
-
outputSchema: REVIEW_SNAPSHOT_SCHEMA,
|
|
331
|
-
}),
|
|
332
|
-
methodDescriptor({
|
|
333
|
-
id: 'sessions.integration.snapshot',
|
|
334
|
-
title: 'Legacy Session Snapshot',
|
|
335
|
-
description: 'Return the legacy integration session snapshot.',
|
|
336
|
-
category: 'sessions',
|
|
337
|
-
scopes: ['read:sessions'],
|
|
338
|
-
http: { method: 'GET', path: '/api/session' },
|
|
339
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
340
|
-
outputSchema: SESSION_SNAPSHOT_SCHEMA,
|
|
341
|
-
}),
|
|
342
|
-
methodDescriptor({
|
|
343
|
-
id: 'sessions.list',
|
|
344
|
-
title: 'List Shared Sessions',
|
|
345
|
-
description: 'Return shared-session integration state.',
|
|
346
|
-
category: 'sessions',
|
|
347
|
-
scopes: ['read:sessions'],
|
|
348
|
-
http: { method: 'GET', path: '/api/sessions' },
|
|
349
|
-
events: [runtimeEventId('session')],
|
|
350
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
351
|
-
outputSchema: SESSION_BROKER_SNAPSHOT_SCHEMA,
|
|
352
|
-
}),
|
|
353
|
-
methodDescriptor({
|
|
354
|
-
id: 'sessions.create',
|
|
355
|
-
title: 'Create Shared Session',
|
|
356
|
-
description: 'Create a shared session for a surface, route, or web client.',
|
|
357
|
-
category: 'sessions',
|
|
358
|
-
scopes: ['write:sessions'],
|
|
359
|
-
http: { method: 'POST', path: '/api/sessions' },
|
|
360
|
-
inputSchema: bodyEnvelopeSchema({
|
|
361
|
-
title: STRING_SCHEMA,
|
|
362
|
-
surfaceKind: STRING_SCHEMA,
|
|
363
|
-
surfaceId: STRING_SCHEMA,
|
|
364
|
-
}),
|
|
365
|
-
outputSchema: SHARED_SESSION_CREATE_OUTPUT_SCHEMA,
|
|
366
|
-
}),
|
|
367
|
-
methodDescriptor({
|
|
368
|
-
id: 'sessions.get',
|
|
369
|
-
title: 'Get Shared Session',
|
|
370
|
-
description: 'Return metadata for a shared session.',
|
|
371
|
-
category: 'sessions',
|
|
372
|
-
scopes: ['read:sessions'],
|
|
373
|
-
http: { method: 'GET', path: '/api/sessions/{sessionId}' },
|
|
374
|
-
inputSchema: objectSchema({ sessionId: STRING_SCHEMA }, ['sessionId']),
|
|
375
|
-
outputSchema: SHARED_SESSION_WITH_MESSAGES_SCHEMA,
|
|
376
|
-
}),
|
|
377
|
-
methodDescriptor({
|
|
378
|
-
id: 'sessions.close',
|
|
379
|
-
title: 'Close Shared Session',
|
|
380
|
-
description: 'Mark a shared session as closed.',
|
|
381
|
-
category: 'sessions',
|
|
382
|
-
scopes: ['write:sessions'],
|
|
383
|
-
http: { method: 'POST', path: '/api/sessions/{sessionId}/close' },
|
|
384
|
-
inputSchema: objectSchema({ sessionId: STRING_SCHEMA }, ['sessionId']),
|
|
385
|
-
outputSchema: actionResultOutputSchema('session', SHARED_SESSION_RECORD_SCHEMA),
|
|
386
|
-
}),
|
|
387
|
-
methodDescriptor({
|
|
388
|
-
id: 'sessions.reopen',
|
|
389
|
-
title: 'Reopen Shared Session',
|
|
390
|
-
description: 'Reopen a previously closed shared session.',
|
|
391
|
-
category: 'sessions',
|
|
392
|
-
scopes: ['write:sessions'],
|
|
393
|
-
http: { method: 'POST', path: '/api/sessions/{sessionId}/reopen' },
|
|
394
|
-
inputSchema: objectSchema({ sessionId: STRING_SCHEMA }, ['sessionId']),
|
|
395
|
-
outputSchema: actionResultOutputSchema('session', SHARED_SESSION_RECORD_SCHEMA),
|
|
396
|
-
}),
|
|
397
|
-
methodDescriptor({
|
|
398
|
-
id: 'sessions.messages.list',
|
|
399
|
-
title: 'List Shared Session Messages',
|
|
400
|
-
description: 'Return message history for a shared session.',
|
|
401
|
-
category: 'sessions',
|
|
402
|
-
scopes: ['read:sessions'],
|
|
403
|
-
http: { method: 'GET', path: '/api/sessions/{sessionId}/messages' },
|
|
404
|
-
inputSchema: objectSchema({
|
|
405
|
-
sessionId: STRING_SCHEMA,
|
|
406
|
-
limit: NUMBER_SCHEMA,
|
|
407
|
-
before: STRING_SCHEMA,
|
|
408
|
-
}, ['sessionId']),
|
|
409
|
-
outputSchema: SHARED_SESSION_WITH_MESSAGES_SCHEMA,
|
|
410
|
-
}),
|
|
411
|
-
methodDescriptor({
|
|
412
|
-
id: 'sessions.messages.create',
|
|
413
|
-
title: 'Post Shared Session Message',
|
|
414
|
-
description: 'Append a user message to a shared session and queue assistant work.',
|
|
415
|
-
category: 'sessions',
|
|
416
|
-
scopes: ['write:sessions'],
|
|
417
|
-
http: { method: 'POST', path: '/api/sessions/{sessionId}/messages' },
|
|
418
|
-
inputSchema: bodyEnvelopeSchema({
|
|
419
|
-
body: STRING_SCHEMA,
|
|
420
|
-
surfaceKind: STRING_SCHEMA,
|
|
421
|
-
surfaceId: STRING_SCHEMA,
|
|
422
|
-
routing: SHARED_SESSION_ROUTING_INTENT_SCHEMA,
|
|
423
|
-
}, ['body']),
|
|
424
|
-
outputSchema: SHARED_SESSION_MESSAGE_CREATE_OUTPUT_SCHEMA,
|
|
425
|
-
}),
|
|
426
|
-
methodDescriptor({
|
|
427
|
-
id: 'sessions.inputs.list',
|
|
428
|
-
title: 'List Shared Session Inputs',
|
|
429
|
-
description: 'Return explicit session inputs, including queued follow-ups and delivered steering requests.',
|
|
430
|
-
category: 'sessions',
|
|
431
|
-
scopes: ['read:sessions'],
|
|
432
|
-
http: { method: 'GET', path: '/api/sessions/{sessionId}/inputs' },
|
|
433
|
-
inputSchema: objectSchema({
|
|
434
|
-
sessionId: STRING_SCHEMA,
|
|
435
|
-
limit: NUMBER_SCHEMA,
|
|
436
|
-
}, ['sessionId']),
|
|
437
|
-
outputSchema: SHARED_SESSION_WITH_INPUTS_SCHEMA,
|
|
438
|
-
}),
|
|
439
|
-
methodDescriptor({
|
|
440
|
-
id: 'sessions.steer',
|
|
441
|
-
title: 'Steer Shared Session',
|
|
442
|
-
description: 'Deliver a live steering message to the active agent for a shared session, optionally falling back to spawn when explicitly allowed.',
|
|
443
|
-
category: 'sessions',
|
|
444
|
-
scopes: ['write:sessions'],
|
|
445
|
-
http: { method: 'POST', path: '/api/sessions/{sessionId}/steer' },
|
|
446
|
-
inputSchema: bodyEnvelopeSchema({
|
|
447
|
-
body: STRING_SCHEMA,
|
|
448
|
-
surfaceKind: STRING_SCHEMA,
|
|
449
|
-
surfaceId: STRING_SCHEMA,
|
|
450
|
-
routing: SHARED_SESSION_ROUTING_INTENT_SCHEMA,
|
|
451
|
-
allowSpawnFallback: BOOLEAN_SCHEMA,
|
|
452
|
-
}, ['body']),
|
|
453
|
-
outputSchema: SHARED_SESSION_MESSAGE_CREATE_OUTPUT_SCHEMA,
|
|
454
|
-
}),
|
|
455
|
-
methodDescriptor({
|
|
456
|
-
id: 'sessions.followUp',
|
|
457
|
-
title: 'Queue Shared Session Follow-Up',
|
|
458
|
-
description: 'Queue a deferred follow-up for a shared session so it runs after the current agent completes, or spawn immediately when the session is idle.',
|
|
459
|
-
category: 'sessions',
|
|
460
|
-
scopes: ['write:sessions'],
|
|
461
|
-
http: { method: 'POST', path: '/api/sessions/{sessionId}/follow-up' },
|
|
462
|
-
inputSchema: bodyEnvelopeSchema({
|
|
463
|
-
body: STRING_SCHEMA,
|
|
464
|
-
surfaceKind: STRING_SCHEMA,
|
|
465
|
-
surfaceId: STRING_SCHEMA,
|
|
466
|
-
routing: SHARED_SESSION_ROUTING_INTENT_SCHEMA,
|
|
467
|
-
}, ['body']),
|
|
468
|
-
outputSchema: SHARED_SESSION_MESSAGE_CREATE_OUTPUT_SCHEMA,
|
|
469
|
-
}),
|
|
470
|
-
methodDescriptor({
|
|
471
|
-
id: 'sessions.inputs.cancel',
|
|
472
|
-
title: 'Cancel Shared Session Input',
|
|
473
|
-
description: 'Cancel a queued shared-session input before it is delivered or spawned.',
|
|
474
|
-
category: 'sessions',
|
|
475
|
-
scopes: ['write:sessions'],
|
|
476
|
-
http: { method: 'POST', path: '/api/sessions/{sessionId}/inputs/{inputId}/cancel' },
|
|
477
|
-
inputSchema: objectSchema({
|
|
478
|
-
sessionId: STRING_SCHEMA,
|
|
479
|
-
inputId: STRING_SCHEMA,
|
|
480
|
-
}, ['sessionId', 'inputId']),
|
|
481
|
-
outputSchema: entityOutputSchema('input', SHARED_SESSION_INPUT_RECORD_SCHEMA),
|
|
482
|
-
}),
|
|
483
|
-
methodDescriptor({
|
|
484
|
-
id: 'tasks.list',
|
|
485
|
-
title: 'List Runtime Tasks',
|
|
486
|
-
description: 'Return the integration snapshot for runtime tasks.',
|
|
487
|
-
category: 'tasks',
|
|
488
|
-
scopes: ['read:tasks'],
|
|
489
|
-
http: { method: 'GET', path: '/api/tasks' },
|
|
490
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
491
|
-
outputSchema: TASK_SNAPSHOT_SCHEMA,
|
|
492
|
-
}),
|
|
493
|
-
methodDescriptor({
|
|
494
|
-
id: 'tasks.create',
|
|
495
|
-
title: 'Create Task',
|
|
496
|
-
description: 'Submit a task to the daemon or a shared session.',
|
|
497
|
-
category: 'tasks',
|
|
498
|
-
scopes: ['write:tasks'],
|
|
499
|
-
http: { method: 'POST', path: '/task' },
|
|
500
|
-
events: [runtimeEventId('tasks')],
|
|
501
|
-
inputSchema: TASK_CREATE_INPUT_SCHEMA,
|
|
502
|
-
outputSchema: TASK_CREATE_OUTPUT_SCHEMA,
|
|
503
|
-
}),
|
|
504
|
-
methodDescriptor({
|
|
505
|
-
id: 'tasks.get',
|
|
506
|
-
title: 'Get Runtime Task',
|
|
507
|
-
description: 'Return a single runtime task record.',
|
|
508
|
-
category: 'tasks',
|
|
509
|
-
scopes: ['read:tasks'],
|
|
510
|
-
http: { method: 'GET', path: '/api/tasks/{taskId}' },
|
|
511
|
-
inputSchema: objectSchema({ taskId: STRING_SCHEMA }, ['taskId']),
|
|
512
|
-
outputSchema: TASK_OUTPUT_SCHEMA,
|
|
513
|
-
}),
|
|
514
|
-
methodDescriptor({
|
|
515
|
-
id: 'tasks.cancel',
|
|
516
|
-
title: 'Cancel Runtime Task',
|
|
517
|
-
description: 'Cancel an in-flight runtime task.',
|
|
518
|
-
category: 'tasks',
|
|
519
|
-
scopes: ['write:tasks'],
|
|
520
|
-
http: { method: 'POST', path: '/api/tasks/{taskId}/cancel' },
|
|
521
|
-
inputSchema: objectSchema({ taskId: STRING_SCHEMA }, ['taskId']),
|
|
522
|
-
outputSchema: TASK_ACTION_OUTPUT_SCHEMA,
|
|
523
|
-
}),
|
|
524
|
-
methodDescriptor({
|
|
525
|
-
id: 'tasks.retry',
|
|
526
|
-
title: 'Retry Runtime Task',
|
|
527
|
-
description: 'Retry a runtime task through the task action endpoint.',
|
|
528
|
-
category: 'tasks',
|
|
529
|
-
scopes: ['write:tasks'],
|
|
530
|
-
http: { method: 'POST', path: '/api/tasks/{taskId}/retry' },
|
|
531
|
-
inputSchema: objectSchema({ taskId: STRING_SCHEMA }, ['taskId']),
|
|
532
|
-
outputSchema: TASK_ACTION_OUTPUT_SCHEMA,
|
|
533
|
-
}),
|
|
534
|
-
methodDescriptor({
|
|
535
|
-
id: 'tasks.status',
|
|
536
|
-
title: 'Get Task Status',
|
|
537
|
-
description: 'Return lightweight runtime task status by agent id.',
|
|
538
|
-
category: 'tasks',
|
|
539
|
-
scopes: ['read:tasks'],
|
|
540
|
-
http: { method: 'GET', path: '/task/{agentId}' },
|
|
541
|
-
inputSchema: objectSchema({ agentId: STRING_SCHEMA }, ['agentId']),
|
|
542
|
-
outputSchema: TASK_STATUS_OUTPUT_SCHEMA,
|
|
543
|
-
}),
|
|
544
|
-
methodDescriptor({
|
|
545
|
-
id: 'approvals.list',
|
|
546
|
-
title: 'List Approvals',
|
|
547
|
-
description: 'Return pending and historical approval records.',
|
|
548
|
-
category: 'approvals',
|
|
549
|
-
scopes: ['read:approvals'],
|
|
550
|
-
http: { method: 'GET', path: '/api/approvals' },
|
|
551
|
-
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
552
|
-
outputSchema: APPROVAL_SNAPSHOT_SCHEMA,
|
|
553
|
-
}),
|
|
554
|
-
methodDescriptor({
|
|
555
|
-
id: 'approvals.claim',
|
|
556
|
-
title: 'Claim Approval',
|
|
557
|
-
description: 'Claim a pending approval for operator handling.',
|
|
558
|
-
category: 'approvals',
|
|
559
|
-
scopes: ['write:approvals'],
|
|
560
|
-
http: { method: 'POST', path: '/api/approvals/{approvalId}/claim' },
|
|
561
|
-
inputSchema: objectSchema({ approvalId: STRING_SCHEMA }, ['approvalId']),
|
|
562
|
-
outputSchema: APPROVAL_ACTION_OUTPUT_SCHEMA,
|
|
563
|
-
}),
|
|
564
|
-
methodDescriptor({
|
|
565
|
-
id: 'approvals.approve',
|
|
566
|
-
title: 'Approve Approval',
|
|
567
|
-
description: 'Approve a pending approval.',
|
|
568
|
-
category: 'approvals',
|
|
569
|
-
scopes: ['write:approvals'],
|
|
570
|
-
http: { method: 'POST', path: '/api/approvals/{approvalId}/approve' },
|
|
571
|
-
inputSchema: APPROVAL_ACTION_INPUT_SCHEMA,
|
|
572
|
-
outputSchema: APPROVAL_ACTION_OUTPUT_SCHEMA,
|
|
573
|
-
}),
|
|
574
|
-
methodDescriptor({
|
|
575
|
-
id: 'approvals.deny',
|
|
576
|
-
title: 'Deny Approval',
|
|
577
|
-
description: 'Deny a pending approval.',
|
|
578
|
-
category: 'approvals',
|
|
579
|
-
scopes: ['write:approvals'],
|
|
580
|
-
http: { method: 'POST', path: '/api/approvals/{approvalId}/deny' },
|
|
581
|
-
inputSchema: APPROVAL_ACTION_INPUT_SCHEMA,
|
|
582
|
-
outputSchema: APPROVAL_ACTION_OUTPUT_SCHEMA,
|
|
583
|
-
}),
|
|
584
|
-
methodDescriptor({
|
|
585
|
-
id: 'approvals.cancel',
|
|
586
|
-
title: 'Cancel Approval',
|
|
587
|
-
description: 'Cancel a pending approval.',
|
|
588
|
-
category: 'approvals',
|
|
589
|
-
scopes: ['write:approvals'],
|
|
590
|
-
http: { method: 'POST', path: '/api/approvals/{approvalId}/cancel' },
|
|
591
|
-
inputSchema: APPROVAL_ACTION_INPUT_SCHEMA,
|
|
592
|
-
outputSchema: APPROVAL_ACTION_OUTPUT_SCHEMA,
|
|
593
|
-
}),
|
|
594
|
-
];
|
|
1
|
+
export * from '@pellux/goodvibes-sdk/platform/control-plane/method-catalog-control-core';
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { builtinGatewayControlAutomationMethodDescriptors } from './method-catalog-control-automation.ts';
|
|
3
|
-
import { builtinGatewayControlCoreMethodDescriptors } from './method-catalog-control-core.ts';
|
|
4
|
-
|
|
5
|
-
export const builtinGatewayControlMethodDescriptors: readonly GatewayMethodDescriptor[] = [
|
|
6
|
-
...builtinGatewayControlCoreMethodDescriptors,
|
|
7
|
-
...builtinGatewayControlAutomationMethodDescriptors,
|
|
8
|
-
];
|
|
1
|
+
export * from '@pellux/goodvibes-sdk/platform/control-plane/method-catalog-control';
|
|
@@ -1,74 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { STRING_SCHEMA,NUMBER_SCHEMA,arraySchema,objectSchema,eventDescriptor,runtimeDomainEvent } from './method-catalog-shared.ts';
|
|
3
|
-
import { CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA } from './operator-contract-schemas.ts';
|
|
4
|
-
import { RUNTIME_EVENT_DOMAINS, type RuntimeEventDomain } from '../runtime/events/domain-map.ts';
|
|
5
|
-
|
|
6
|
-
const RUNTIME_DOMAIN_DESCRIPTIONS = {
|
|
7
|
-
session: 'Shared-session lifecycle, participant, and message events.',
|
|
8
|
-
turn: 'Turn submission and completion events.',
|
|
9
|
-
providers: 'Provider health, selection, and routing events.',
|
|
10
|
-
tools: 'Tool start, result, and failure events.',
|
|
11
|
-
tasks: 'Runtime task lifecycle and status events.',
|
|
12
|
-
agents: 'Agent lifecycle, planning, and completion events.',
|
|
13
|
-
workflows: 'Workflow orchestration events.',
|
|
14
|
-
orchestration: 'Higher-level orchestration and planner coordination events.',
|
|
15
|
-
communication: 'Agent communication and policy events.',
|
|
16
|
-
planner: 'Planner updates and plan mutation events.',
|
|
17
|
-
permissions: 'Approval and permission prompt events.',
|
|
18
|
-
plugins: 'Plugin registration and lifecycle events.',
|
|
19
|
-
mcp: 'MCP server, tool, and connection events.',
|
|
20
|
-
transport: 'Transport connect, disconnect, and lifecycle events.',
|
|
21
|
-
compaction: 'Context compaction and summary events.',
|
|
22
|
-
ui: 'UI-focused state and operational events.',
|
|
23
|
-
ops: 'Operational diagnostics and control events.',
|
|
24
|
-
forensics: 'Forensics and incident trail events.',
|
|
25
|
-
security: 'Security posture and policy events.',
|
|
26
|
-
automation: 'Automation job, schedule, and run events.',
|
|
27
|
-
routes: 'Route binding and surface-link events.',
|
|
28
|
-
'control-plane': 'Control-plane client, auth, and subscription events.',
|
|
29
|
-
deliveries: 'Delivery queue and outcome events.',
|
|
30
|
-
watchers: 'Watcher state and heartbeat events.',
|
|
31
|
-
surfaces: 'Surface registration and health events.',
|
|
32
|
-
knowledge: 'Knowledge ingest, extraction, projection, packet, and job events.',
|
|
33
|
-
} satisfies Record<RuntimeEventDomain, string>;
|
|
34
|
-
|
|
35
|
-
export const builtinGatewayEventDescriptors: readonly GatewayEventDescriptor[] = [
|
|
36
|
-
...RUNTIME_EVENT_DOMAINS.map((domain) => runtimeDomainEvent(domain, RUNTIME_DOMAIN_DESCRIPTIONS[domain])),
|
|
37
|
-
eventDescriptor({
|
|
38
|
-
id: 'control.ready',
|
|
39
|
-
title: 'Ready Handshake',
|
|
40
|
-
description: 'Initial SSE/WebSocket handshake event emitted after a control-plane subscription is opened.',
|
|
41
|
-
category: 'transport',
|
|
42
|
-
transport: ['sse', 'ws'],
|
|
43
|
-
scopes: ['read:events'],
|
|
44
|
-
wireEvents: ['ready'],
|
|
45
|
-
outputSchema: objectSchema({
|
|
46
|
-
clientId: STRING_SCHEMA,
|
|
47
|
-
domains: arraySchema(STRING_SCHEMA),
|
|
48
|
-
transport: STRING_SCHEMA,
|
|
49
|
-
}, ['clientId', 'domains', 'transport']),
|
|
50
|
-
}),
|
|
51
|
-
eventDescriptor({
|
|
52
|
-
id: 'control.heartbeat',
|
|
53
|
-
title: 'Heartbeat',
|
|
54
|
-
description: 'Keepalive event emitted by the SSE control-plane transport.',
|
|
55
|
-
category: 'transport',
|
|
56
|
-
transport: ['sse', 'ws'],
|
|
57
|
-
scopes: ['read:events'],
|
|
58
|
-
wireEvents: ['heartbeat'],
|
|
59
|
-
outputSchema: objectSchema({
|
|
60
|
-
clientId: STRING_SCHEMA,
|
|
61
|
-
ts: NUMBER_SCHEMA,
|
|
62
|
-
}, ['clientId', 'ts'], { additionalProperties: false }),
|
|
63
|
-
}),
|
|
64
|
-
eventDescriptor({
|
|
65
|
-
id: 'control.surface_message',
|
|
66
|
-
title: 'Surface Message',
|
|
67
|
-
description: 'Out-of-band control-plane surface messages for operators and connected clients.',
|
|
68
|
-
category: 'transport',
|
|
69
|
-
transport: ['sse', 'ws'],
|
|
70
|
-
scopes: ['read:events'],
|
|
71
|
-
wireEvents: ['surface-message'],
|
|
72
|
-
outputSchema: CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA,
|
|
73
|
-
}),
|
|
74
|
-
];
|
|
1
|
+
export * from '@pellux/goodvibes-sdk/platform/control-plane/method-catalog-events';
|