@tencent-ai/agent-harness 0.2.0-beta.6 → 0.2.0-beta.8
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 +42 -0
- package/cli/CHANGELOG.md +123 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +338 -291
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +11 -2
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +69 -44
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +6 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +62 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outbound A2A (Agent2Agent) protocol surface — CloudAgent Phase 1.
|
|
3
|
+
*
|
|
4
|
+
* Scope (see issue #99451): agent-cli acts ONLY as an outbound A2A client /
|
|
5
|
+
* orchestrator. It discovers Agent Cards from a discovery URL supplied via
|
|
6
|
+
* the `CODEBUDDY_REMOTE_AGENTS_URL` env var (see `a2a-gate.ts`) and invokes
|
|
7
|
+
* them via the official `@a2a-js/sdk`. There is no agent-cli A2A server, no
|
|
8
|
+
* remote-agent callback, and no A2A streaming (`sendMessageStream`/
|
|
9
|
+
* `subscribeToTask`) in Phase 1 — `sendMessage` always returns immediately
|
|
10
|
+
* with whatever the initial response is, and `A2AGetTaskTool` owns a
|
|
11
|
+
* bounded poll loop for non-terminal tasks (see that tool's doc comment).
|
|
12
|
+
*
|
|
13
|
+
* Discovery uses one shared readiness gate (`A2aDiscoveryReadyService`):
|
|
14
|
+
* startup starts a non-blocking fetch, first dispatch can wait briefly for it,
|
|
15
|
+
* and every A2A tool execution checks whether the last successful result is
|
|
16
|
+
* still fresh. The first stale caller refreshes while concurrent callers join
|
|
17
|
+
* the same request. The discovery URL and TTL are read live from `process.env`
|
|
18
|
+
* per this repo's prewarm convention (see `CODEBUDDY.md` §1.1's "env 消费同理"
|
|
19
|
+
* section), after a standby process receives its per-session environment.
|
|
20
|
+
*
|
|
21
|
+
* State was originally process-global only (like `SdkInitializeStateService`),
|
|
22
|
+
* premised on CloudAgent's spawn topology — one agent-cli process per
|
|
23
|
+
* conversation via `@genie/agent-sdk-js` stream-json (WORKBUDDY-TROUBLESHOOTING.md
|
|
24
|
+
* Step 0.5), where one process-global discovery source is active at a time.
|
|
25
|
+
* The served (`/server`) multi-session topology broke that premise, so the
|
|
26
|
+
* directory now has a session dimension (the `AgentScopedMcpManager` side of
|
|
27
|
+
* the old contrast): `QueryOptions.remoteAgentsUrl` gives a session its own
|
|
28
|
+
* discovery source, resolved per source into registry partitions
|
|
29
|
+
* (`A2aAgentRegistry.resolveView`) with per-source single-flight/TTL
|
|
30
|
+
* (`A2aDiscoveryReadyService.waitForDiscovery(session)`). Sessions without a
|
|
31
|
+
* seat keep the process-global path byte-for-byte (bin/spawn unaffected);
|
|
32
|
+
* changing the live env URL still invalidates the process result.
|
|
33
|
+
*
|
|
34
|
+
* All Symbols/interfaces live here per the repo's `xxx-protocol.ts` convention
|
|
35
|
+
* (Symbol + interface; implementations live in sibling files).
|
|
36
|
+
*/
|
|
37
|
+
import type { Session } from '../../vendor/cbc-core/node/index.js';
|
|
38
|
+
import type { W3CTraceContextMeta } from '../../workspace/telemetry/lib/common/index.js';
|
|
39
|
+
export declare const A2aAgentRegistry: unique symbol;
|
|
40
|
+
export declare const A2aClientService: unique symbol;
|
|
41
|
+
export declare const A2aAgentDiscoveryService: unique symbol;
|
|
42
|
+
export declare const A2aDiscoveryReadyService: unique symbol;
|
|
43
|
+
export declare const A2aArtifactDownloadService: unique symbol;
|
|
44
|
+
/**
|
|
45
|
+
* Internal input shape for `A2aAgentRegistry.register()` — NOT part of the
|
|
46
|
+
* wire protocol (see module doc comment: the host only supplies a discovery
|
|
47
|
+
* URL now, not this shape directly). `A2aAgentDiscoveryService` maps each
|
|
48
|
+
* fetched raw `AgentCard` into one of these, deriving `agentId` via
|
|
49
|
+
* `deriveA2aAgentId` (a `${slug(name)}-${shortHash(canonicalUrl)}` key that is
|
|
50
|
+
* stable per endpoint — see issue #114840). No per-agent auth: the discovery URL (and every
|
|
51
|
+
* discovered agent's own calls, via the same proxy path) is routed through
|
|
52
|
+
* our own infrastructure, which handles auth uniformly (issue #99451 Part
|
|
53
|
+
* B) — see `A2aAgentDiscoveryService`'s doc comment.
|
|
54
|
+
*/
|
|
55
|
+
export interface A2AAgentDefinition {
|
|
56
|
+
agentId: string;
|
|
57
|
+
agentCard: Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* URI of the private codebuddy.ai extension that lets a caller pin a
|
|
61
|
+
* `SendMessage` at one specific declared skill (`@Agent.Skill` routing).
|
|
62
|
+
* Only agents whose card declares this URI in `capabilities.extensions`
|
|
63
|
+
* honor `skillId` in `A2aClientService.sendMessage`; other agents receive no
|
|
64
|
+
* skill targeting (routed through the agent's own intent dispatch instead).
|
|
65
|
+
* Lives here (not in `a2a-client-service.ts`) so pure discovery code
|
|
66
|
+
* (`A2AGetAgentCardTool`) can check support without importing `@a2a-js/sdk`.
|
|
67
|
+
*/
|
|
68
|
+
export declare const SKILL_ROUTING_EXTENSION_URI = "https://codebuddy.ai/a2a/extensions/skill-routing";
|
|
69
|
+
/** Whether `agentCard.capabilities.extensions` declares {@link SKILL_ROUTING_EXTENSION_URI}. */
|
|
70
|
+
export declare function cardSupportsSkillRouting(card: A2aAgentCard): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* A single Agent Card entry as indexed by the registry, keyed by the derived
|
|
73
|
+
* `agentId` (`deriveA2aAgentId` — `${slug(name)}-${hash(url)}`, NOT the card's
|
|
74
|
+
* own `name`; the id is the stable, unique routing key and may share a slug
|
|
75
|
+
* prefix with another agent's while staying distinct via the hash).
|
|
76
|
+
*/
|
|
77
|
+
export interface A2aRegisteredAgent {
|
|
78
|
+
agentId: string;
|
|
79
|
+
agentCard: A2aAgentCard;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Minimal shape of an A2A v1.0 AgentCard this registry actually reads.
|
|
83
|
+
* Intentionally narrower than the full `@a2a-js/sdk` `AgentCard` type — the
|
|
84
|
+
* registry only validates/indexes the fields it needs (name/description/
|
|
85
|
+
* skills/interfaces); the full card is handed to `ClientFactory.createFromAgentCard`
|
|
86
|
+
* verbatim when a call is made, so no information is lost.
|
|
87
|
+
*/
|
|
88
|
+
export interface A2aAgentCard {
|
|
89
|
+
name: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
skills?: A2aAgentSkill[];
|
|
92
|
+
supportedInterfaces?: A2aAgentInterface[];
|
|
93
|
+
capabilities?: {
|
|
94
|
+
streaming?: boolean;
|
|
95
|
+
extensions?: Array<{
|
|
96
|
+
uri?: string;
|
|
97
|
+
}>;
|
|
98
|
+
};
|
|
99
|
+
[key: string]: unknown;
|
|
100
|
+
}
|
|
101
|
+
export interface A2aAgentSkill {
|
|
102
|
+
id: string;
|
|
103
|
+
name?: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
tags?: string[];
|
|
106
|
+
examples?: string[];
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
}
|
|
109
|
+
export interface A2aAgentInterface {
|
|
110
|
+
url: string;
|
|
111
|
+
protocolBinding?: string;
|
|
112
|
+
protocolVersion?: string;
|
|
113
|
+
tenant?: string;
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
}
|
|
116
|
+
/** Validation outcome for a single incoming `A2AAgentDefinition`. */
|
|
117
|
+
export interface A2aRegistrationIssue {
|
|
118
|
+
agentId: string;
|
|
119
|
+
reason: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Read face of one agent directory — the process directory (the registry
|
|
123
|
+
* itself) or one session-source partition (`A2aAgentRegistry.resolveView`).
|
|
124
|
+
* Everything that only LOOKS AGENTS UP (tool guards, description rendering,
|
|
125
|
+
* fingerprinting, the client's id→agent resolution) consumes this shape, so
|
|
126
|
+
* it stays source-agnostic.
|
|
127
|
+
*/
|
|
128
|
+
export interface A2aDirectoryView {
|
|
129
|
+
/** All currently registered agents, or an empty array if none. */
|
|
130
|
+
list(): A2aRegisteredAgent[];
|
|
131
|
+
/** A single agent by `agentId`, or `undefined`. */
|
|
132
|
+
get(agentId: string): A2aRegisteredAgent | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Look up a skill by ID on a specific agent. Returns `undefined` when the
|
|
135
|
+
* agent doesn't exist OR the agent's card doesn't declare that skill —
|
|
136
|
+
* callers must distinguish "agent not found" from "skill not found" via
|
|
137
|
+
* a separate `get()` call when producing an error message.
|
|
138
|
+
*/
|
|
139
|
+
getSkill(agentId: string, skillId: string): A2aAgentSkill | undefined;
|
|
140
|
+
}
|
|
141
|
+
export interface A2aAgentRegistry extends A2aDirectoryView {
|
|
142
|
+
/**
|
|
143
|
+
* Atomically replace the full set of authorized agents **of the process
|
|
144
|
+
* (env) source**. Invalid entries (duplicate `agentId`, missing
|
|
145
|
+
* name/skills, malformed interface) are dropped and reported in `issues`;
|
|
146
|
+
* valid entries are still registered. A no-op call (`definitions`
|
|
147
|
+
* undefined/empty) clears the registry.
|
|
148
|
+
*/
|
|
149
|
+
register(definitions: A2AAgentDefinition[] | undefined): {
|
|
150
|
+
registered: string[];
|
|
151
|
+
issues: A2aRegistrationIssue[];
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Atomically replace one **session-source partition** (keyed by its
|
|
155
|
+
* discovery URL; sessions sharing a URL share the partition and its
|
|
156
|
+
* fetch). Validation is identical to `register()`. Deliberately does NOT
|
|
157
|
+
* fire `setOnAgentsChanged` — that listener drives the process-face
|
|
158
|
+
* repaint (invalidate + refresh every agent), which per-session data must
|
|
159
|
+
* never trigger; session partitions surface through the session-agent-view
|
|
160
|
+
* directory fingerprint instead (self-sufficient invalidation).
|
|
161
|
+
*/
|
|
162
|
+
registerForSource(sourceUrl: string, definitions: A2AAgentDefinition[] | undefined): {
|
|
163
|
+
registered: string[];
|
|
164
|
+
issues: A2aRegistrationIssue[];
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Resolve the directory a session actually sees: its session source's
|
|
168
|
+
* partition when `QueryOptions.remoteAgentsUrl` set one (an empty seat
|
|
169
|
+
* — `''` — resolves to an empty directory), else the process directory.
|
|
170
|
+
* A session source equal to the live process env URL shares the process
|
|
171
|
+
* directory (and its reactive repaint chain) instead of a duplicate
|
|
172
|
+
* partition. Pure lookup — never triggers a fetch.
|
|
173
|
+
*/
|
|
174
|
+
resolveView(session?: Session): A2aDirectoryView;
|
|
175
|
+
/** Clear all registered agents of the process source (test/process-teardown use). */
|
|
176
|
+
clear(): void;
|
|
177
|
+
/**
|
|
178
|
+
* Register a single listener invoked whenever the registered set changes
|
|
179
|
+
* via `register()` (including a clear to the empty set). Used by
|
|
180
|
+
* `ToolManager` to reactively rebuild the `A2AGetAgentCard` tool
|
|
181
|
+
* description's `<available_A2A_agents>` block after discovery or refresh
|
|
182
|
+
* completes (mirrors `DelegateToolManager.setOnToolsChanged`). At most one
|
|
183
|
+
* listener; a later call replaces the prior one. The listener may be sync or async;
|
|
184
|
+
* `register()` isolates both a synchronous throw and a post-`await`
|
|
185
|
+
* rejection so a bad consumer cannot corrupt the atomic registry swap.
|
|
186
|
+
*/
|
|
187
|
+
setOnAgentsChanged(listener: () => void | Promise<void>): void;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Outcome of a single {@link A2aAgentDiscoveryService.discover} call.
|
|
191
|
+
*
|
|
192
|
+
* `ok: true` — the discovery source was reached and parsed, so the registry
|
|
193
|
+
* authoritatively reflects it, EVEN IF that means zero agents. A well-formed
|
|
194
|
+
* empty result is a success, not a failure. When there is no source URL, the
|
|
195
|
+
* call is also successful but leaves the inaccessible registry unchanged.
|
|
196
|
+
*
|
|
197
|
+
* `ok: false` — the fetch/parse failed transiently, or its result became
|
|
198
|
+
* obsolete before publication because the source/reset generation changed.
|
|
199
|
+
* The current flight clears the registry and retries on a later invocation;
|
|
200
|
+
* an obsolete flight is discarded while its waiter continues immediately
|
|
201
|
+
* against the current generation. This stops the single-flight gate from
|
|
202
|
+
* permanently latching a transient startup failure (issue #99451 follow-up).
|
|
203
|
+
*/
|
|
204
|
+
export interface A2aDiscoveryOutcome {
|
|
205
|
+
ok: boolean;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Fetches the outbound agent list from a host-supplied discovery URL and
|
|
209
|
+
* feeds it into `A2aAgentRegistry`. This service owns the actual `fetch()` +
|
|
210
|
+
* parse + map + register pipeline; `A2aDiscoveryReadyService` owns startup,
|
|
211
|
+
* freshness, and single-flight scheduling.
|
|
212
|
+
*/
|
|
213
|
+
export interface A2aAgentDiscoveryService {
|
|
214
|
+
/**
|
|
215
|
+
* Fetch `CODEBUDDY_REMOTE_AGENTS_URL` (read live from `process.env` at
|
|
216
|
+
* call time — see module doc comment on why this must never be cached
|
|
217
|
+
* earlier), parse the response as a JSON array of A2A v1.0 `AgentCard`
|
|
218
|
+
* objects, map each into an `A2AAgentDefinition` (`agentId` derived via
|
|
219
|
+
* `deriveA2aAgentId` — a stable per-endpoint key, see issue #114840), and register the result via
|
|
220
|
+
* `A2aAgentRegistry.register()`. Always performs a fresh fetch when
|
|
221
|
+
* called — caching/dedup against repeated calls is `A2aDiscoveryReadyService`'s
|
|
222
|
+
* job, not this service's.
|
|
223
|
+
*
|
|
224
|
+
* Never throws: a failed fetch/parse logs, clears the registry when the
|
|
225
|
+
* attempt is still current, and resolves with `{ ok: false }` so the gate
|
|
226
|
+
* can retry later. Obsolete attempts do not publish. A completed fetch
|
|
227
|
+
* (including a legitimately empty agent list) and the
|
|
228
|
+
* no-source case both resolve with `{ ok: true }`. See
|
|
229
|
+
* {@link A2aDiscoveryOutcome}.
|
|
230
|
+
*
|
|
231
|
+
* No-op (`{ ok: true }`, resolves immediately) when the env var is
|
|
232
|
+
* unset/empty and the local test override is off.
|
|
233
|
+
*/
|
|
234
|
+
discover(options?: {
|
|
235
|
+
signal?: AbortSignal;
|
|
236
|
+
/** Return false when an obsolete in-flight result must not replace the registry. */
|
|
237
|
+
shouldApply?: () => boolean;
|
|
238
|
+
}): Promise<A2aDiscoveryOutcome>;
|
|
239
|
+
/**
|
|
240
|
+
* Fetch ONE session-source discovery URL and publish the result into that
|
|
241
|
+
* source's registry partition (`A2aAgentRegistry.registerForSource`).
|
|
242
|
+
* Same fetch/parse/map pipeline as `discover()`, two deliberate
|
|
243
|
+
* divergences: a failed fetch/parse leaves the existing partition
|
|
244
|
+
* untouched (a transient blip must not wipe a tenant's working directory
|
|
245
|
+
* mid-conversation; freshness is not latched so a later call retries),
|
|
246
|
+
* and no registry-change notification fires (see `registerForSource`).
|
|
247
|
+
*/
|
|
248
|
+
discoverSource(sourceUrl: string, options?: {
|
|
249
|
+
signal?: AbortSignal;
|
|
250
|
+
}): Promise<A2aDiscoveryOutcome>;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Shared readiness gate that caches a successful discovery for a bounded TTL.
|
|
254
|
+
* The first caller with no fresh result starts a fetch and concurrent callers
|
|
255
|
+
* await the same in-flight promise. The state machine is deliberately NOT
|
|
256
|
+
* duplicated per tool, so all four A2A tools share freshness, retry, URL-change,
|
|
257
|
+
* and concurrency behavior.
|
|
258
|
+
*/
|
|
259
|
+
export interface A2aDiscoveryReadyService {
|
|
260
|
+
/**
|
|
261
|
+
* Return immediately while the last successful discovery is fresh;
|
|
262
|
+
* otherwise start or join one refresh and await it. Safe to call from
|
|
263
|
+
* every A2A tool's guard. With `session`, resolves that session's
|
|
264
|
+
* discovery source first (see `resolveRemoteAgentsUrl`): a session source
|
|
265
|
+
* waits on its own per-URL single-flight/TTL slot; sessions without one
|
|
266
|
+
* (or whose source equals the live env URL) take the process path.
|
|
267
|
+
*/
|
|
268
|
+
waitForDiscovery(session?: Session): Promise<void>;
|
|
269
|
+
/**
|
|
270
|
+
* Gated + bounded first-run warm-up for the description path (issue
|
|
271
|
+
* #99451 Part B follow-up). Called once from the first model dispatch
|
|
272
|
+
* (`AgentManager.ensureAgentToolsFreshForRun`) so a fast discovery can
|
|
273
|
+
* land before the first request is built, making the `A2AGetAgentCard`
|
|
274
|
+
* description's `<available_A2A_agents>` block non-empty on turn 1
|
|
275
|
+
* (otherwise the model would have no signal these agents exist and would
|
|
276
|
+
* skip delegation on its first turn).
|
|
277
|
+
*
|
|
278
|
+
* Contract:
|
|
279
|
+
* - **Gated**: resolves `false` fast when outbound A2A is off
|
|
280
|
+
* (`CODEBUDDY_REMOTE_AGENTS_URL` unset short-circuits before any
|
|
281
|
+
* `AbTestService` round trip), so non-A2A products pay nothing.
|
|
282
|
+
* - **Bounded**: when enabled, triggers `waitForDiscovery()` (single-flight,
|
|
283
|
+
* shared with execute-time freshness checks — never a concurrent second
|
|
284
|
+
* fetch for the same URL/generation) and awaits it only up to `timeoutMs`
|
|
285
|
+
* (env `CODEBUDDY_A2A_DISCOVERY_PREWAIT_MS`,
|
|
286
|
+
* default 2000; `0` disables the wait). Times out / aborts silently —
|
|
287
|
+
* the reactive registry refresh remains the fallback for slow fetches.
|
|
288
|
+
* - Returns `true` when outbound A2A is enabled (the caller should then
|
|
289
|
+
* refresh the dispatching agent's tools so the first request carries the
|
|
290
|
+
* discovered list), `false` otherwise.
|
|
291
|
+
*/
|
|
292
|
+
prewarmForFirstRun(options?: {
|
|
293
|
+
timeoutMs?: number;
|
|
294
|
+
signal?: AbortSignal;
|
|
295
|
+
session?: Session;
|
|
296
|
+
}): Promise<boolean>;
|
|
297
|
+
/**
|
|
298
|
+
* Invalidate successful freshness so the next `waitForDiscovery()` starts
|
|
299
|
+
* a new generation. An active obsolete request is aborted and guarded from
|
|
300
|
+
* publishing over the new generation.
|
|
301
|
+
*/
|
|
302
|
+
reset(): void;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* A single file reference the caller attaches to an outbound `A2ASendMessage`
|
|
306
|
+
* call. Mapped 1:1 onto an A2A `url` file `Part` (`$case: 'url'`) on the
|
|
307
|
+
* message the remote agent receives. The counterpart of `A2aArtifactSummary`
|
|
308
|
+
* for the inbound direction, but kept a separate type on purpose: this is a
|
|
309
|
+
* message *input* (an A2A file `Part`, whose file-name field is `filename`),
|
|
310
|
+
* whereas `A2aArtifactSummary` describes a task *output* artifact (whose
|
|
311
|
+
* name field is `name`).
|
|
312
|
+
*/
|
|
313
|
+
export interface A2aOutboundAttachment {
|
|
314
|
+
/** A fetchable URL the remote agent can retrieve the file from. Required. */
|
|
315
|
+
url: string;
|
|
316
|
+
/** Optional display filename for the file part (A2A `Part.filename`, e.g. "report.pdf"). */
|
|
317
|
+
filename?: string;
|
|
318
|
+
/** Optional MIME type for the file part (A2A `Part.mediaType`, e.g. "application/pdf"). */
|
|
319
|
+
mediaType?: string;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Outbound A2A message result normalized for tool consumption. Distinct from
|
|
323
|
+
* the raw `@a2a-js/sdk` `Message | Task` union so `A2aClientService` callers
|
|
324
|
+
* (the tools) don't need to know SDK wire shapes.
|
|
325
|
+
*/
|
|
326
|
+
export interface A2aSendMessageResult {
|
|
327
|
+
/** Human-readable text to place in `ToolResult.content`. Always non-empty. */
|
|
328
|
+
text: string;
|
|
329
|
+
/** `'message'` when the agent returned a direct Message; `'task'` otherwise. */
|
|
330
|
+
kind: 'message' | 'task';
|
|
331
|
+
/** Present only when `kind === 'task'`. */
|
|
332
|
+
taskId?: string;
|
|
333
|
+
/** Present only when `kind === 'task'`. Reusable for follow-up turns targeting the same (agentId, skillId). */
|
|
334
|
+
contextId?: string;
|
|
335
|
+
/** Task-state derived status, aligned with A2aTaskStatus below. Absent for direct-message results. */
|
|
336
|
+
status?: A2aTaskStatus;
|
|
337
|
+
/** Populated when status === 'input-required' or 'auth-required'. */
|
|
338
|
+
clarification?: {
|
|
339
|
+
question: string;
|
|
340
|
+
};
|
|
341
|
+
/** File/data references extracted from artifacts, if any (URL-preferred; no inline blobs). */
|
|
342
|
+
artifacts?: A2aArtifactSummary[];
|
|
343
|
+
/** Raw SDK response, retained for `ToolResult.rawResponse` (diagnostics only, never shown raw to the model). */
|
|
344
|
+
raw: unknown;
|
|
345
|
+
}
|
|
346
|
+
export type A2aTaskStatus = 'submitted' | 'working' | 'completed' | 'failed' | 'canceled' | 'rejected' | 'input-required' | 'auth-required'
|
|
347
|
+
/**
|
|
348
|
+
* The wire's `TASK_STATE_UNSPECIFIED` (a legal, spec-defined "unknown or
|
|
349
|
+
* indeterminate state" per the A2A `TaskState` enum) or an enum value this
|
|
350
|
+
* SDK version doesn't recognize yet (`TaskState.UNRECOGNIZED`) — NOT an
|
|
351
|
+
* agent-cli-side error. Non-terminal: `A2AGetTaskTool` keeps polling
|
|
352
|
+
* through it exactly like `submitted`/`working`, on the theory that a
|
|
353
|
+
* spec-compliant remote agent reporting this will eventually resolve to a
|
|
354
|
+
* real state.
|
|
355
|
+
*/
|
|
356
|
+
| 'unknown';
|
|
357
|
+
export interface A2aArtifactSummary {
|
|
358
|
+
/** Original filename declared by the URL part, when supplied. */
|
|
359
|
+
filename?: string;
|
|
360
|
+
name?: string;
|
|
361
|
+
mediaType?: string;
|
|
362
|
+
/** URL/file reference when the part carries one; omitted for inline text/data parts (those are folded into `text`). */
|
|
363
|
+
url?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Local filesystem path a URL artifact was downloaded to (see
|
|
366
|
+
* `A2aArtifactDownloadService`), if the download completed in time.
|
|
367
|
+
* Additive only — `url`/`name`/`mediaType` are never modified by the
|
|
368
|
+
* download pipeline, so a frontend that doesn't know this field yet
|
|
369
|
+
* keeps rendering exactly as it does today (issue #99451 artifact
|
|
370
|
+
* download design doc §4's "前端字段仅新增不修改").
|
|
371
|
+
*/
|
|
372
|
+
localPath?: string;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Result of `A2aClientService.getTask` / `cancelTask` — a point-in-time
|
|
376
|
+
* snapshot of a remote task, normalized the same way as
|
|
377
|
+
* `A2aSendMessageResult`'s task branch (shared `text`/`status`/`clarification`/
|
|
378
|
+
* `artifacts` shape) so tool implementations can reuse one renderer for
|
|
379
|
+
* "the task result text" regardless of which A2A method produced it.
|
|
380
|
+
*/
|
|
381
|
+
export interface A2aTaskSnapshot {
|
|
382
|
+
text: string;
|
|
383
|
+
taskId: string;
|
|
384
|
+
contextId?: string;
|
|
385
|
+
status: A2aTaskStatus;
|
|
386
|
+
clarification?: {
|
|
387
|
+
question: string;
|
|
388
|
+
};
|
|
389
|
+
artifacts?: A2aArtifactSummary[];
|
|
390
|
+
/**
|
|
391
|
+
* Structured payload of an out-of-band **approval** interrupt, when the
|
|
392
|
+
* task's `status.message` carries one (issue #107183). Populated by
|
|
393
|
+
* `normalizeTask` purely by part SHAPE — a `data` part whose value has an
|
|
394
|
+
* array `token_id_list` — never by a vendor `metadata` field, matching
|
|
395
|
+
* `renderStatusMessageParts`'s existing convention.
|
|
396
|
+
*
|
|
397
|
+
* Pre-derived here rather than left for callers to dig out of `raw`
|
|
398
|
+
* (typed `unknown`): `A2AGetTaskTool` keys its elicitation branch off
|
|
399
|
+
* this, and hosts that render the approval card read the same field out
|
|
400
|
+
* of `rawResponse.a2a` instead of re-implementing the shape match.
|
|
401
|
+
*/
|
|
402
|
+
approval?: A2aApprovalInterrupt;
|
|
403
|
+
raw: unknown;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* An approval interrupt extracted from a task's `status.message.parts`
|
|
407
|
+
* (issue #107183). `tokenIds` are opaque handles the HOST (not agent-cli)
|
|
408
|
+
* submits to the approving system out of band — agent-cli only transports
|
|
409
|
+
* them, it never interprets or submits them itself. `parts` keeps the
|
|
410
|
+
* verbatim source parts so a host can render richer detail than the ids.
|
|
411
|
+
*/
|
|
412
|
+
export interface A2aApprovalInterrupt {
|
|
413
|
+
tokenIds: unknown[];
|
|
414
|
+
parts: unknown;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Thin wrapper around `@a2a-js/sdk`'s `ClientFactory` + `Client`. Reuses the
|
|
418
|
+
* negotiated transport while callers resolve to the same registry entry; a
|
|
419
|
+
* discovery refresh replaces that entry and therefore creates a new client.
|
|
420
|
+
* `sendMessage`/`getTask`/
|
|
421
|
+
* `cancelTask` are each a single RPC call — whatever status the remote agent
|
|
422
|
+
* returns (terminal or not) is returned as-is, unmodified; no polling loop
|
|
423
|
+
* and no `sendMessageStream`/`subscribeToTask` live here (issue #99451 Phase
|
|
424
|
+
* 2: the poll loop for a non-terminal task lives exclusively in
|
|
425
|
+
* `A2AGetTaskTool`, one layer up — see that tool's doc comment).
|
|
426
|
+
*/
|
|
427
|
+
export interface A2aClientService {
|
|
428
|
+
/**
|
|
429
|
+
* Send a message to `agent` (a directory-resolved entry — the caller
|
|
430
|
+
* resolves names/ids in ITS directory via `A2aAgentRegistry.resolveView`;
|
|
431
|
+
* this layer never looks agents up) — optionally targeting `skillId` — and
|
|
432
|
+
* return whatever the single `message/send` RPC call gets back —
|
|
433
|
+
* terminal, `working`, `input-required`, anything — unmodified.
|
|
434
|
+
* `contextId`/`taskId` are supplied by the caller to continue a prior
|
|
435
|
+
* turn; omit both to start a new task/context.
|
|
436
|
+
*/
|
|
437
|
+
sendMessage(agent: A2aRegisteredAgent, params: {
|
|
438
|
+
text: string;
|
|
439
|
+
skillId?: string;
|
|
440
|
+
contextId?: string;
|
|
441
|
+
taskId?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Optional file references to attach to the outbound message.
|
|
444
|
+
* Each becomes a standard A2A `url` file `Part` (`FileWithUri`
|
|
445
|
+
* semantics — `$case: 'url'`) appended after the text part, so the
|
|
446
|
+
* remote agent can fetch the file itself. Purely generic to A2A:
|
|
447
|
+
* the URL's origin (e.g. a host-side upload skill that returns a
|
|
448
|
+
* fetchable link) is out of scope here — this layer only knows how
|
|
449
|
+
* to put a URL on the wire as a file part.
|
|
450
|
+
*/
|
|
451
|
+
attachments?: A2aOutboundAttachment[];
|
|
452
|
+
traceContext?: Readonly<W3CTraceContextMeta>;
|
|
453
|
+
timeoutMs?: number;
|
|
454
|
+
signal?: AbortSignal;
|
|
455
|
+
}): Promise<A2aSendMessageResult>;
|
|
456
|
+
/**
|
|
457
|
+
* Retrieve the current state of a previously created task on `agent`.
|
|
458
|
+
* Used to reconcile an interrupted (`input-required`/`auth-required`) or
|
|
459
|
+
* asynchronously-progressing task without sending a new message — e.g.
|
|
460
|
+
* after a `sendMessage` call whose result the caller didn't immediately
|
|
461
|
+
* act on, or to check on a task the remote agent is still working on.
|
|
462
|
+
*/
|
|
463
|
+
getTask(agent: A2aRegisteredAgent, params: {
|
|
464
|
+
taskId: string;
|
|
465
|
+
timeoutMs?: number;
|
|
466
|
+
signal?: AbortSignal;
|
|
467
|
+
}): Promise<A2aTaskSnapshot>;
|
|
468
|
+
/**
|
|
469
|
+
* Request cancellation of a previously created task on `agent`.
|
|
470
|
+
* Cancellation is an attempt, not a guarantee — per the A2A spec, an
|
|
471
|
+
* already-terminal task is not cancelable (`TaskNotCancelableError`) and
|
|
472
|
+
* an unknown task id is `TaskNotFoundError`; both surface as thrown
|
|
473
|
+
* errors for the tool layer to translate into a specific error code
|
|
474
|
+
* rather than silently reporting success.
|
|
475
|
+
*/
|
|
476
|
+
cancelTask(agent: A2aRegisteredAgent, params: {
|
|
477
|
+
taskId: string;
|
|
478
|
+
timeoutMs?: number;
|
|
479
|
+
signal?: AbortSignal;
|
|
480
|
+
}): Promise<A2aTaskSnapshot>;
|
|
481
|
+
/** Drop all cached clients (test/process-teardown use). */
|
|
482
|
+
clear(): void;
|
|
483
|
+
}
|
|
484
|
+
/** Outcome of a single tracked download — see `A2aArtifactDownloadService.getResult`. */
|
|
485
|
+
export type A2aArtifactDownloadStatus = 'pending' | 'done' | 'failed';
|
|
486
|
+
/**
|
|
487
|
+
* Fire-and-forget downloader for URL-referenced A2A artifacts (issue
|
|
488
|
+
* #99451). It is a local convenience so the model can act on a downloaded
|
|
489
|
+
* file (for example via `Read`) instead of receiving only a bare URL.
|
|
490
|
+
*
|
|
491
|
+
* The component is process-scoped, but records and URL deduplication are
|
|
492
|
+
* scoped to one Session. Each download captures that Session's resolved
|
|
493
|
+
* sandbox/cwd and writes under a session-keyed output path. Failures,
|
|
494
|
+
* timeouts, and oversized responses surface only through
|
|
495
|
+
* `getResult()` as `status: 'failed'`.
|
|
496
|
+
*/
|
|
497
|
+
export interface A2aArtifactDownloadService {
|
|
498
|
+
/**
|
|
499
|
+
* Start downloading one artifact into `session`'s workspace, unless its
|
|
500
|
+
* URL is already tracked for that Session. Returns immediately and never
|
|
501
|
+
* throws. The independent download kill switch makes this a no-op.
|
|
502
|
+
*/
|
|
503
|
+
startDownload(session: Session, artifact: A2aArtifactSummary): void;
|
|
504
|
+
/** Current state of `url` for this Session. Does not trigger a download. */
|
|
505
|
+
getResult(session: Session, url: string): {
|
|
506
|
+
status: A2aArtifactDownloadStatus;
|
|
507
|
+
localPath?: string;
|
|
508
|
+
error?: string;
|
|
509
|
+
} | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* Wait up to `timeoutMs` for this Session's tracked `urls` to settle,
|
|
512
|
+
* then return without rejecting. Used only immediately before a terminal
|
|
513
|
+
* tool result, never on the live polling relay path.
|
|
514
|
+
*/
|
|
515
|
+
awaitPending(session: Session, urls: string[], timeoutMs: number): Promise<void>;
|
|
516
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Completion Waiter Implementation
|
|
3
|
+
*
|
|
4
|
+
* Provides a centralized way to manage completion promises for agent sessions.
|
|
5
|
+
* This replaces scattered deferred promise checks throughout the codebase.
|
|
6
|
+
*/
|
|
7
|
+
import type { Session } from '../../vendor/cbc-core/node/index.js';
|
|
8
|
+
import { AgentCompletionWaiter } from '../../vendor/cbc-core/node/index.js';
|
|
9
|
+
export declare class AgentCompletionWaiterImpl implements AgentCompletionWaiter {
|
|
10
|
+
/**
|
|
11
|
+
* WeakMap to store completion promises per session
|
|
12
|
+
* Using WeakMap ensures automatic cleanup when session is garbage collected
|
|
13
|
+
*/
|
|
14
|
+
private completionPromises;
|
|
15
|
+
/**
|
|
16
|
+
* Wait for all registered completion promises for a session
|
|
17
|
+
*/
|
|
18
|
+
waitForCompletion(session: Session): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Register a completion promise for a session
|
|
21
|
+
* Multiple promises can be registered and all will be awaited
|
|
22
|
+
*/
|
|
23
|
+
registerCompletion(session: Session, promise: Promise<void>): void;
|
|
24
|
+
/**
|
|
25
|
+
* Clear all completion promises for a session
|
|
26
|
+
*/
|
|
27
|
+
clearCompletion(session: Session): void;
|
|
28
|
+
}
|