@tencent-ai/agent-harness 0.2.0-beta.7 → 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 +29 -0
- package/cli/CHANGELOG.md +74 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +263 -217
- 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 +3 -1
- 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 +7 -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/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 +6 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +46 -7
- 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 +27 -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/model/model-errors.d.ts +23 -6
- 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 +7 -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/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 +6 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +46 -7
- 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 +27 -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/model/model-errors.d.ts +23 -6
- 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 +35 -22
- package/cli/dist-server/types/workspace/product/lib/common/types/index.d.ts +0 -1
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +0 -7
- 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 +41 -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
- package/cli/dist-server/types/workspace/product/lib/common/types/workspace-report.d.ts +0 -119
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type SandboxExecPolicy as ISandboxExecPolicy } from '../permission/sandbox-exec-policy-protocol';
|
|
3
|
+
import { type SensitiveCommandDetector as ISensitiveCommandDetector } from '../permission/sensitive-command-detector';
|
|
4
|
+
import { SandboxTurnConfig } from '../sandbox-cli/sandbox-turn-config';
|
|
5
|
+
import { type SettingsManager as ISettingsManager } from '../settings/settings-protocol';
|
|
6
|
+
import { BashSandboxManager as IBashSandboxManager, SandboxConfig, SandboxDependencyError } from './bash-sandbox-protocol';
|
|
7
|
+
export declare function expandWindowsNativeDirectoryGlobs(paths: readonly string[] | undefined, platform?: NodeJS.Platform): string[];
|
|
8
|
+
/**
|
|
9
|
+
* Bash 沙箱管理器实现
|
|
10
|
+
* 封装 @anthropic-ai/sandbox-runtime 并提供配置管理和自动初始化
|
|
11
|
+
*/
|
|
12
|
+
export declare class BashSandboxManagerImpl implements IBashSandboxManager {
|
|
13
|
+
protected readonly settingsManager: ISettingsManager;
|
|
14
|
+
protected readonly logger: Logger;
|
|
15
|
+
/**
|
|
16
|
+
* Optional so that environments that boot the sandbox manager without the
|
|
17
|
+
* policy module registered (e.g. legacy headless paths) keep working;
|
|
18
|
+
* when present we forward `settings.sandbox.execPolicy` updates on each
|
|
19
|
+
* config load so the policy's user rules stay in sync with settings.
|
|
20
|
+
*/
|
|
21
|
+
protected readonly execPolicy?: ISandboxExecPolicy;
|
|
22
|
+
protected readonly sensitiveCommandDetector?: ISensitiveCommandDetector;
|
|
23
|
+
protected readonly sandboxTurnConfig: SandboxTurnConfig;
|
|
24
|
+
private initialized;
|
|
25
|
+
private cachedConfig;
|
|
26
|
+
/** Last user-rules payload we pushed into the ExecPolicy; used to avoid
|
|
27
|
+
* redundant `setUserRules` calls when settings are unchanged. */
|
|
28
|
+
private lastExecPolicyUserRulesKey;
|
|
29
|
+
private lastOrderedCommandRulesKey;
|
|
30
|
+
/**
|
|
31
|
+
* 获取当前沙箱配置
|
|
32
|
+
*/
|
|
33
|
+
getConfig(): Promise<SandboxConfig | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* 使用沙箱包装命令
|
|
36
|
+
*
|
|
37
|
+
* 仅 Linux 上调用 `@anthropic-ai/sandbox-runtime` 的 `wrapWithSandbox`,
|
|
38
|
+
* 把命令包装成 `bwrap ... -- bash -c <cmd>` 形式后返回,供
|
|
39
|
+
* `LegacySandboxShellService` 交给 `LocalShellService` 执行。
|
|
40
|
+
*
|
|
41
|
+
* 其它平台(macOS/Windows)由 `sandbox-cli` 接管命令执行,不经过这条
|
|
42
|
+
* JS 侧包装路径;此处直接返回原命令,避免 `AnthropicSandboxManager`
|
|
43
|
+
* 在未初始化的前提下被调用。
|
|
44
|
+
*/
|
|
45
|
+
wrapCommand(command: string): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* 检查命令是否应该在沙箱中执行
|
|
48
|
+
*/
|
|
49
|
+
shouldSandbox(command: string): Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* 检查命令是否属于系统级工具(如 WSL)。
|
|
52
|
+
* 复用 {@link getCommandRoots} 解析器提取命令根。
|
|
53
|
+
*/
|
|
54
|
+
isSystemLevelTool(command: string): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 确保沙箱处于正确状态(检查配置变化并初始化/重新初始化)
|
|
57
|
+
*/
|
|
58
|
+
private ensureSandboxReady;
|
|
59
|
+
/**
|
|
60
|
+
* 应用配置变化(智能初始化/重新初始化)
|
|
61
|
+
*/
|
|
62
|
+
private applyConfigChange;
|
|
63
|
+
/**
|
|
64
|
+
* 检查 Linux 平台沙箱所需的依赖
|
|
65
|
+
* @returns 缺失的依赖列表
|
|
66
|
+
*/
|
|
67
|
+
private checkLinuxDependencies;
|
|
68
|
+
/**
|
|
69
|
+
* 检查 Linux 依赖并返回错误(如果有缺失)
|
|
70
|
+
* 供外部调用(如 /sandbox 命令)显示给用户
|
|
71
|
+
*/
|
|
72
|
+
checkDependencies(): Promise<SandboxDependencyError | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* 初始化沙箱
|
|
75
|
+
*
|
|
76
|
+
* 仅 Linux 需要走 `@anthropic-ai/sandbox-runtime`(bwrap + socat)这条
|
|
77
|
+
* 老路径——对应 `LegacySandboxShellService`。macOS/Windows 已改为由
|
|
78
|
+
* `SandboxShellService` 驱动 Rust `sandbox-cli` 二进制,`AnthropicSandboxManager`
|
|
79
|
+
* 在那两个平台上不承担任何运行时职责,即便调用也只是内存里重设一份永远
|
|
80
|
+
* 不会被读到的配置,因此直接跳过以避免额外开销和潜在的兼容性问题。
|
|
81
|
+
*/
|
|
82
|
+
private initialize;
|
|
83
|
+
/**
|
|
84
|
+
* 重置沙箱
|
|
85
|
+
*
|
|
86
|
+
* 与 `initialize` 对称:只有 Linux 上才真正持有 AnthropicSandboxManager
|
|
87
|
+
* 的状态,其它平台只要翻转 `this.initialized` 即可。
|
|
88
|
+
*/
|
|
89
|
+
private reset;
|
|
90
|
+
/**
|
|
91
|
+
* 从设置中加载沙箱配置
|
|
92
|
+
*/
|
|
93
|
+
private loadConfig;
|
|
94
|
+
/**
|
|
95
|
+
* 判断两个配置是否相等(通过 deepEqual 比较)
|
|
96
|
+
*/
|
|
97
|
+
private isConfigEqual;
|
|
98
|
+
/**
|
|
99
|
+
* 将 SandboxConfig 转换为 SandboxRuntimeConfig
|
|
100
|
+
*/
|
|
101
|
+
private toRuntimeConfig;
|
|
102
|
+
/**
|
|
103
|
+
* 扩展路径中的波浪号
|
|
104
|
+
*/
|
|
105
|
+
private expandPaths;
|
|
106
|
+
/**
|
|
107
|
+
* Push user-authored ExecPolicy rules into the policy component.
|
|
108
|
+
*
|
|
109
|
+
* `undefined` fingerprint means "no execPolicy set" — we also forward
|
|
110
|
+
* `undefined` so the policy clears any previously loaded user rules
|
|
111
|
+
* (important when a user removes the settings block entirely).
|
|
112
|
+
*/
|
|
113
|
+
private syncExecPolicyUserRules;
|
|
114
|
+
private syncOrderedCommandRules;
|
|
115
|
+
/** Prefix commands that wrap the real command — skip them to find the actual executable. */
|
|
116
|
+
private static readonly SHELL_PREFIX_COMMANDS;
|
|
117
|
+
/** Standalone builtins whose arguments are NOT commands — skip the whole sub-command. */
|
|
118
|
+
private static readonly SHELL_STANDALONE_BUILTINS;
|
|
119
|
+
/**
|
|
120
|
+
* Extract command roots from ALL sub-commands in a compound command
|
|
121
|
+
* (separated by &&, ||, ;, |). Each sub-command yields at most one
|
|
122
|
+
* root — the first non-assignment, non-shell-prefix string token.
|
|
123
|
+
*/
|
|
124
|
+
private getCommandRoots;
|
|
125
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ShellService } from '../shell/shell-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* DI symbol for the legacy sandbox shell service.
|
|
4
|
+
*
|
|
5
|
+
* Rationale
|
|
6
|
+
* ---------
|
|
7
|
+
* The primary sandbox implementation is `SandboxShellService`, which drives
|
|
8
|
+
* a persistent Rust `sandbox-cli` binary over IPC. That binary ships today
|
|
9
|
+
* for macOS and Windows only — there is no Linux build yet.
|
|
10
|
+
*
|
|
11
|
+
* To keep Linux users covered by SOME sandbox layer we retain the older
|
|
12
|
+
* `@anthropic-ai/sandbox-runtime` path (`sandbox-exec` wrapping on Darwin
|
|
13
|
+
* back in the day, `bwrap + socat` on Linux today) as a "legacy" backend.
|
|
14
|
+
* It lives behind this dedicated symbol so that:
|
|
15
|
+
*
|
|
16
|
+
* - the router (`DelegatingShellService`) can pick the right backend by
|
|
17
|
+
* platform without leaking implementation details into the tools;
|
|
18
|
+
* - the orchestrator (`SandboxOrchestrator`) can disable post-exec
|
|
19
|
+
* escalation on this backend, since `bwrap` does not emit the structured
|
|
20
|
+
* `fileBlockRecords[]` we rely on for the "sandbox first, bypass on
|
|
21
|
+
* approval" flow.
|
|
22
|
+
*
|
|
23
|
+
* Behaviour parity with `SandboxShellService` is intentionally LIMITED:
|
|
24
|
+
* - no InterceptNotification
|
|
25
|
+
* - no structured sandboxDenied signal
|
|
26
|
+
* - no session-level approval escalation on Linux (see the orchestrator)
|
|
27
|
+
*
|
|
28
|
+
* Everything else (local execution when sandbox is disabled / `off`,
|
|
29
|
+
* ExecPolicy, dangerouslyDisableSandbox → local bypass) still works the
|
|
30
|
+
* same way as on macOS/Windows.
|
|
31
|
+
*/
|
|
32
|
+
export declare const LegacySandboxShellService: unique symbol;
|
|
33
|
+
export type LegacySandboxShellService = ShellService;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type ShellExecuteParams, type ShellExecutionHandle, type ShellService } from '../shell/shell-protocol';
|
|
3
|
+
import { BashSandboxManager as IBashSandboxManager } from './bash-sandbox-protocol';
|
|
4
|
+
/**
|
|
5
|
+
* Shell service backed by `@anthropic-ai/sandbox-runtime` (bwrap/socat on
|
|
6
|
+
* Linux).
|
|
7
|
+
*
|
|
8
|
+
* Implementation strategy: transform the caller's command into its sandboxed
|
|
9
|
+
* equivalent via `BashSandboxManager.wrapCommand()`, then hand the wrapped
|
|
10
|
+
* command to `LocalShellService`. Execution semantics (PTY, env propagation,
|
|
11
|
+
* cwd, timeout) therefore mirror the regular local pipeline — the sandbox
|
|
12
|
+
* layer is just a `bwrap ...` / `sandbox-exec ...` prefix injected at the
|
|
13
|
+
* command string level.
|
|
14
|
+
*
|
|
15
|
+
* Known limitations (Linux):
|
|
16
|
+
*
|
|
17
|
+
* - No structured violation reporting. Failures surface as a non-zero exit
|
|
18
|
+
* code plus free-form stderr from bwrap / the launched process. The
|
|
19
|
+
* orchestrator therefore suppresses its `[4] escalation` branch for this
|
|
20
|
+
* backend; denied commands just fail and the model sees the stderr.
|
|
21
|
+
* - `wrapCommand()` returns the original command verbatim when the sandbox
|
|
22
|
+
* is globally disabled or its native deps (bwrap / socat) are missing. In
|
|
23
|
+
* that case we still dispatch through `LocalShellService` for a graceful
|
|
24
|
+
* degradation instead of spawning a broken sandbox.
|
|
25
|
+
*/
|
|
26
|
+
export declare class LegacySandboxShellServiceImpl implements ShellService {
|
|
27
|
+
protected readonly localShellService: ShellService;
|
|
28
|
+
protected readonly bashSandboxManager: IBashSandboxManager;
|
|
29
|
+
protected readonly logger: Logger;
|
|
30
|
+
execute(params: ShellExecuteParams): Promise<ShellExecutionHandle>;
|
|
31
|
+
disposeAll(): Promise<void>;
|
|
32
|
+
getActiveHandleCount(): number;
|
|
33
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { AgentInputItem } from '../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
export declare const BlobStore: unique symbol;
|
|
3
|
+
export declare const ImageBlobService: unique symbol;
|
|
4
|
+
/** Blob 引用(替代 base64 内嵌在历史中) */
|
|
5
|
+
export interface ImageBlobRef {
|
|
6
|
+
type: 'image_blob_ref';
|
|
7
|
+
/** sha256 hash */
|
|
8
|
+
blob_id: string;
|
|
9
|
+
/** MIME type, e.g. 'image/png' */
|
|
10
|
+
mime: string;
|
|
11
|
+
/** 原始二进制字节数 */
|
|
12
|
+
size: number;
|
|
13
|
+
/** 来源路径或 'generated' */
|
|
14
|
+
source?: string;
|
|
15
|
+
/** 完整 blob 文件路径, e.g. ~/.codebuddy/blobs/ab/ab3f7c...png */
|
|
16
|
+
blob_path: string;
|
|
17
|
+
/** 用户上传时的原始文件名, e.g. 'test1.jpeg' */
|
|
18
|
+
original_filename?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Durable content identity used to resolve a blob without trusting its path. */
|
|
21
|
+
export type ImageBlobIdentity = Pick<ImageBlobRef, 'type' | 'blob_id' | 'mime' | 'size'>;
|
|
22
|
+
export declare function isImageBlobIdentity(value: unknown): value is ImageBlobIdentity;
|
|
23
|
+
/** BlobStore 底层存储接口 */
|
|
24
|
+
export interface BlobStore {
|
|
25
|
+
/** 存储 base64 数据,返回 ImageBlobRef */
|
|
26
|
+
store(base64Data: string, mime: string, source?: string, originalFilename?: string): Promise<ImageBlobRef>;
|
|
27
|
+
/**
|
|
28
|
+
* 存储二进制数据,返回 ImageBlobRef。
|
|
29
|
+
* 调用方已持有 Buffer 时走这里,避免为了适配 base64 入参而多造一份
|
|
30
|
+
* base64 字符串 + 一份解码回来的 Buffer(大图下这两份副本各约原图的 1.33x / 1x)。
|
|
31
|
+
*/
|
|
32
|
+
storeBuffer(data: Buffer, mime: string, source?: string, originalFilename?: string): Promise<ImageBlobRef>;
|
|
33
|
+
/** 根据 blobId 读取 base64 数据 */
|
|
34
|
+
read(blobId: string, mime?: string, expectedSize?: number): Promise<string | undefined>;
|
|
35
|
+
/** 检查 blob 是否存在 */
|
|
36
|
+
exists(blobId: string, mime?: string): Promise<boolean>;
|
|
37
|
+
/** 获取 blob 文件路径 */
|
|
38
|
+
getBlobPath(blobId: string, mime?: string): string;
|
|
39
|
+
}
|
|
40
|
+
/** ImageBlobService 高层服务接口 */
|
|
41
|
+
export interface ImageBlobService {
|
|
42
|
+
/**
|
|
43
|
+
* 将 base64 data URI 存入 BlobStore,返回 ImageBlobRef
|
|
44
|
+
* @param dataUri 完整的 data:mime;base64,... 字符串
|
|
45
|
+
* @param source 来源路径
|
|
46
|
+
* @param originalFilename 用户上传时的原始文件名
|
|
47
|
+
*/
|
|
48
|
+
storeFromDataUri(dataUri: string, source?: string, originalFilename?: string): Promise<ImageBlobRef>;
|
|
49
|
+
/**
|
|
50
|
+
* 将图片文件存入 BlobStore,返回 ImageBlobRef
|
|
51
|
+
* @param filePath 图片文件路径
|
|
52
|
+
* @param contents 调用方已读到的文件内容;传入时复用它,避免二次读盘
|
|
53
|
+
*/
|
|
54
|
+
storeFromFile(filePath: string, contents?: Buffer): Promise<ImageBlobRef>;
|
|
55
|
+
/**
|
|
56
|
+
* 从 BlobRef 还原完整的 data URI
|
|
57
|
+
*/
|
|
58
|
+
rehydrate(ref: ImageBlobIdentity, options?: {
|
|
59
|
+
original?: boolean;
|
|
60
|
+
}): Promise<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* 生成文本占位符
|
|
63
|
+
*/
|
|
64
|
+
createPlaceholder(ref: ImageBlobRef): string;
|
|
65
|
+
/**
|
|
66
|
+
* 判断对象是否为 ImageBlobRef
|
|
67
|
+
*/
|
|
68
|
+
isImageBlobRef(obj: unknown): obj is ImageBlobRef;
|
|
69
|
+
/**
|
|
70
|
+
* 记录图片已发送给模型,返回发送状态:
|
|
71
|
+
* - 'new': 首次发送或同路径文件已更新,应返回完整图片
|
|
72
|
+
* - 'unchanged': 同路径同内容(文件未变化),应返回确认消息
|
|
73
|
+
* - 'duplicate': 不同路径但相同内容,去重
|
|
74
|
+
*
|
|
75
|
+
* @param blobId 图片内容的 SHA256 哈希
|
|
76
|
+
* @param source 图片来源路径(可选,传入时启用路径级别的变更检测)
|
|
77
|
+
*/
|
|
78
|
+
trackImageDelivered(blobId: string, source?: string): 'new' | 'unchanged' | 'duplicate';
|
|
79
|
+
/**
|
|
80
|
+
* 重置图片发送跟踪(新的 agent run 开始时调用)
|
|
81
|
+
*/
|
|
82
|
+
resetImageTracking(): void;
|
|
83
|
+
/**
|
|
84
|
+
* 为本轮(一次 agent run)再读入一张图片申请字节预算。
|
|
85
|
+
*
|
|
86
|
+
* 图片解码/重编码走的是纯 JS 编码器,单张的临时内存开销是原图体积的数十倍,
|
|
87
|
+
* 而模型可以在同一轮里并行发起任意多个 Read。没有总量约束时,单轮海量大图
|
|
88
|
+
* 会把 V8 堆撑爆(硬 OOM 绕过所有异常处理,崩溃后零取证)。这里给"单轮读入
|
|
89
|
+
* 的图片原始字节总量"设上限,超出后调用方应返回文本占位而不是继续读盘。
|
|
90
|
+
*
|
|
91
|
+
* @param bytes 待读入图片的原始字节数
|
|
92
|
+
* @returns true 表示预算够用(已扣减);false 表示本轮配额已用尽
|
|
93
|
+
*/
|
|
94
|
+
tryReserveImageBytes(bytes: number): boolean;
|
|
95
|
+
/** 本轮图片字节预算上限,供调用方组织提示文案。 */
|
|
96
|
+
readonly maxImageBytesPerRun: number;
|
|
97
|
+
/**
|
|
98
|
+
* 对历史消息数组做 rehydration / 占位符替换
|
|
99
|
+
* @param history 历史消息数组
|
|
100
|
+
* @param retainRounds 保留最近 N 轮图片的完整 base64(默认 2)
|
|
101
|
+
* @returns 处理后的历史数组(浅拷贝,不修改原始数据)
|
|
102
|
+
*/
|
|
103
|
+
processHistoryForApi(history: AgentInputItem[], retainRounds: number): Promise<AgentInputItem[]>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type BlobStore, type ImageBlobRef } from './blob-store-protocol';
|
|
3
|
+
export declare class BlobStoreImpl implements BlobStore {
|
|
4
|
+
protected readonly logger: Logger;
|
|
5
|
+
protected init(): void;
|
|
6
|
+
store(base64Data: string, mime: string, source?: string, originalFilename?: string): Promise<ImageBlobRef>;
|
|
7
|
+
storeBuffer(buffer: Buffer, mime: string, source?: string, originalFilename?: string): Promise<ImageBlobRef>;
|
|
8
|
+
/**
|
|
9
|
+
* blob 落盘失败是否可降级(跳过缓存而非崩 turn)。
|
|
10
|
+
* 仅对「环境不可写」类文件系统 errno 降级:只读/served FS(EROFS)、
|
|
11
|
+
* 分片目录缺失(ENOENT)、权限(EACCES/EPERM)、空间/配额(ENOSPC/EDQUOT)、
|
|
12
|
+
* 底层 IO/目录形态(EIO/ENOTDIR/EISDIR/EBUSY)。
|
|
13
|
+
* 明确**不**降级 Node 的 `ERR_*` 编程错误(如 ERR_INVALID_ARG_TYPE)——
|
|
14
|
+
* 这些带 `code` 但不是 FS errno,属于调用面 bug,应继续抛出以暴露而非被缓存降级咽掉。
|
|
15
|
+
*/
|
|
16
|
+
private static readonly DEGRADABLE_FS_ERRNOS;
|
|
17
|
+
private isDegradableWriteError;
|
|
18
|
+
read(blobId: string, mime?: string, expectedSize?: number): Promise<string | undefined>;
|
|
19
|
+
exists(blobId: string, mime?: string): Promise<boolean>;
|
|
20
|
+
protected pathExists(filePath: string): Promise<boolean>;
|
|
21
|
+
getBlobPath(blobId: string, mime?: string): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import type { AgentInputItem } from '../../vendor/cbc-shared/node/index.js';
|
|
3
|
+
import { type BlobStore, type ImageBlobIdentity, type ImageBlobRef, type ImageBlobService } from './blob-store-protocol';
|
|
4
|
+
/** 图片内容本身无法通过统一 preparation;与 Blob 磁盘 I/O 异常严格区分。 */
|
|
5
|
+
export declare class InvalidImageDataError extends Error {
|
|
6
|
+
constructor(reason: string);
|
|
7
|
+
}
|
|
8
|
+
export declare class ImageBlobServiceImpl implements ImageBlobService {
|
|
9
|
+
protected readonly blobStore: BlobStore;
|
|
10
|
+
protected readonly logger: Logger;
|
|
11
|
+
protected init(): void;
|
|
12
|
+
storeFromDataUri(dataUri: string, source?: string, originalFilename?: string): Promise<ImageBlobRef>;
|
|
13
|
+
storeFromFile(filePath: string, contents?: Buffer): Promise<ImageBlobRef>;
|
|
14
|
+
rehydrate(ref: ImageBlobIdentity, options?: {
|
|
15
|
+
original?: boolean;
|
|
16
|
+
}): Promise<string | undefined>;
|
|
17
|
+
createPlaceholder(ref: ImageBlobRef): string;
|
|
18
|
+
isImageBlobRef(obj: unknown): obj is ImageBlobRef;
|
|
19
|
+
/**
|
|
20
|
+
* 跟踪已发送图片:key = source 路径, value = 已发送的 blob_id。
|
|
21
|
+
* 用于检测同路径文件是否更新。
|
|
22
|
+
*/
|
|
23
|
+
private deliveredImages;
|
|
24
|
+
/**
|
|
25
|
+
* 所有已发送的 blob_id(含有/无 source 的)。
|
|
26
|
+
* 用于跨路径内容去重。
|
|
27
|
+
*/
|
|
28
|
+
private deliveredBlobIds;
|
|
29
|
+
trackImageDelivered(blobId: string, source?: string): 'new' | 'unchanged' | 'duplicate';
|
|
30
|
+
resetImageTracking(): void;
|
|
31
|
+
/**
|
|
32
|
+
* 单轮(一次 agent run)允许读入的图片原始字节总量默认上限。
|
|
33
|
+
*
|
|
34
|
+
* **为什么换了原生编解码器仍然需要它**(实测推翻过一次直觉):原生后端把编解码搬到
|
|
35
|
+
* Rust 原生内存,单次编码的 V8 堆增量确实降到 0,但真正决定「一轮能处理多少张」的是
|
|
36
|
+
* **与后端无关的累积量**——每张图读入的原始 Buffer、压缩结果 base64、data URL、
|
|
37
|
+
* tool result JSON,以及 SDK 对 turn input 的深拷贝。实测两个后端的 OOM 临界点完全
|
|
38
|
+
* 相同(48 张 × 10MB:heap=1024 都崩、heap=2048 都过),所以配额不能因为换后端而取消。
|
|
39
|
+
*
|
|
40
|
+
* 定标:完全不限量时 `--max-old-space-size=1024`(生产默认 ~4GB 的 1/4)下
|
|
41
|
+
* 24 张 × 10MB 刚好通过、48 张必崩。默认 128MB(约 12 张 10MB 图)距离 240MB
|
|
42
|
+
* 临界点留 2x 余量,实测 heap=512 / heap=1024 下都稳定通过。常见截图 0.5~3MB,
|
|
43
|
+
* 相当于一轮 40~250 张,正常用法完全无感。
|
|
44
|
+
*
|
|
45
|
+
* 配额按轮重置(见 resetImageTracking),超限只影响**当前这一轮**,模型下一轮
|
|
46
|
+
* 仍可继续读剩下的图,不是永久拒绝。
|
|
47
|
+
*/
|
|
48
|
+
private static readonly DEFAULT_MAX_IMAGE_MB_PER_RUN;
|
|
49
|
+
/**
|
|
50
|
+
* 覆盖单轮图片字节预算,单位 MB。
|
|
51
|
+
*
|
|
52
|
+
* - 未设 / 空 → 默认 128MB
|
|
53
|
+
* - `0` → 完全不限制(**自担风险**:单轮图片够多时仍会硬 OOM,与编解码后端无关)
|
|
54
|
+
* - 其它正整数 → 按该 MB 数限制
|
|
55
|
+
* - 非法值 → 回落默认并告警
|
|
56
|
+
*/
|
|
57
|
+
private static readonly MAX_IMAGE_MB_PER_TURN_ENV;
|
|
58
|
+
private reservedImageBytes;
|
|
59
|
+
/** 本轮生效的预算(字节);0 表示不限制。每轮重置时重新解析 env。 */
|
|
60
|
+
private maxImageBytesThisRun?;
|
|
61
|
+
private resolveMaxImageBytesPerRun;
|
|
62
|
+
tryReserveImageBytes(bytes: number): boolean;
|
|
63
|
+
/** 本轮图片字节预算上限(0 表示不限制),供调用方组织提示文案。 */
|
|
64
|
+
get maxImageBytesPerRun(): number;
|
|
65
|
+
/** 同一 source 路径的图片在最近 N 轮中最多保留的版本数 */
|
|
66
|
+
private static readonly MAX_VERSIONS_PER_SOURCE;
|
|
67
|
+
processHistoryForApi(history: AgentInputItem[], retainRounds: number): Promise<AgentInputItem[]>;
|
|
68
|
+
/**
|
|
69
|
+
* 构建需要 rehydrate 的 item 索引集合。
|
|
70
|
+
*
|
|
71
|
+
* 规则:
|
|
72
|
+
* 1. 相同 blob_id 只保留最后一次出现
|
|
73
|
+
* 2. 同一 source 路径的不同版本只保留最后 MAX_VERSIONS_PER_SOURCE 个
|
|
74
|
+
* 3. 不同 source / 无 source 的图片互不干扰
|
|
75
|
+
*/
|
|
76
|
+
private buildRehydrateSet;
|
|
77
|
+
/**
|
|
78
|
+
* 从 item 中提取所有 ImageBlobRef 的 { blob_id, source }
|
|
79
|
+
*/
|
|
80
|
+
private collectBlobRefs;
|
|
81
|
+
/**
|
|
82
|
+
* 从 JSON 字符串中提取 blob_id 和 source
|
|
83
|
+
*/
|
|
84
|
+
private extractBlobRefsFromString;
|
|
85
|
+
/**
|
|
86
|
+
* 检查 item 中是否包含 ImageBlobRef
|
|
87
|
+
*/
|
|
88
|
+
private itemHasBlobRef;
|
|
89
|
+
/**
|
|
90
|
+
* 还原 item 中的 ImageBlobRef 为完整 data URI
|
|
91
|
+
*/
|
|
92
|
+
private rehydrateItem;
|
|
93
|
+
/**
|
|
94
|
+
* 将 item 中的 ImageBlobRef 替换为文本占位符
|
|
95
|
+
*/
|
|
96
|
+
private dehydrateItem;
|
|
97
|
+
/**
|
|
98
|
+
* 还原 FunctionCallResult 中的 ImageBlobRef
|
|
99
|
+
*/
|
|
100
|
+
private rehydrateFunctionCallResult;
|
|
101
|
+
/**
|
|
102
|
+
* 将 FunctionCallResult 中的 ImageBlobRef 替换为占位符
|
|
103
|
+
*/
|
|
104
|
+
private dehydrateFunctionCallResult;
|
|
105
|
+
/**
|
|
106
|
+
* 异步处理 content 数组中的 ImageBlobRef(rehydrate)
|
|
107
|
+
*/
|
|
108
|
+
private processContentArray;
|
|
109
|
+
/**
|
|
110
|
+
* 同步处理 content 数组中的 ImageBlobRef(dehydrate -> 占位符)
|
|
111
|
+
*/
|
|
112
|
+
private processContentArraySync;
|
|
113
|
+
/**
|
|
114
|
+
* 从 image_url.url 中提取 ImageBlobRef。
|
|
115
|
+
* url 可能是:
|
|
116
|
+
* - ImageBlobRef 对象(直接返回)
|
|
117
|
+
* - JSON 字符串化的 ImageBlobRef(解析后返回)
|
|
118
|
+
* - 正常的 data URI 或 http URL(返回 undefined)
|
|
119
|
+
*/
|
|
120
|
+
private extractBlobRefFromUrl;
|
|
121
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
/**
|
|
3
|
+
* Symbol for dependency injection
|
|
4
|
+
*/
|
|
5
|
+
export declare const ToolResultBlobService: unique symbol;
|
|
6
|
+
/**
|
|
7
|
+
* Reference object for a previously externalized tool result (reserved for future use).
|
|
8
|
+
*/
|
|
9
|
+
export interface ToolResultRef {
|
|
10
|
+
type: 'tool_result_ref';
|
|
11
|
+
/** Original content size in bytes */
|
|
12
|
+
size: number;
|
|
13
|
+
/** Full path to the persisted output file */
|
|
14
|
+
filePath: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Service interface for externalizing large tool results to disk.
|
|
18
|
+
*
|
|
19
|
+
* Follows the Claude Code pattern: when a tool result exceeds a size threshold,
|
|
20
|
+
* the full output is saved to a file under `~/.codebuddy/tool-results/{sessionDir}/`,
|
|
21
|
+
* and the in-memory/persisted history stores only a `<persisted-output>` placeholder
|
|
22
|
+
* with a preview of the first 2KB.
|
|
23
|
+
*
|
|
24
|
+
* This prevents unbounded memory growth in long-running monorepo sessions where
|
|
25
|
+
* tools like Grep/Read/TaskOutput can return very large outputs.
|
|
26
|
+
*/
|
|
27
|
+
export interface ToolResultBlobService {
|
|
28
|
+
/**
|
|
29
|
+
* Check if a tool result output should be externalized based on size.
|
|
30
|
+
* @param output The tool result output string
|
|
31
|
+
* @returns true if the output exceeds the externalization threshold
|
|
32
|
+
*/
|
|
33
|
+
shouldExternalize(output: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Save a large tool result to disk and return the placeholder text
|
|
36
|
+
* that should be stored in the history instead.
|
|
37
|
+
*
|
|
38
|
+
* @param callId The tool_use_id (e.g., "call_00_abc123")
|
|
39
|
+
* @param output The full tool result output
|
|
40
|
+
* @param sessionStoreId The session's storeId (used for directory naming)
|
|
41
|
+
* @param parentSessionId Optional parent session ID (for subagents)
|
|
42
|
+
* @returns The placeholder text to store in history
|
|
43
|
+
*/
|
|
44
|
+
externalize(callId: string, output: string, sessionStoreId: string, parentSessionId?: string): Promise<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Read back a previously externalized tool result.
|
|
47
|
+
* @param filePath Path to the persisted output file
|
|
48
|
+
* @returns The original full content, or undefined if file is missing
|
|
49
|
+
*/
|
|
50
|
+
read(filePath: string): Promise<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Clean up all externalized tool results for a session.
|
|
53
|
+
* @param sessionStoreId The session's storeId
|
|
54
|
+
* @param parentSessionId Optional parent session ID (for subagents)
|
|
55
|
+
*/
|
|
56
|
+
cleanupSession(sessionStoreId: string, parentSessionId?: string): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Get the file path where a tool result's full output would be spilled to disk.
|
|
59
|
+
* Used by tools (e.g., BashTool) to create an OutputSpiller that streams
|
|
60
|
+
* full output to this path before truncation happens.
|
|
61
|
+
*/
|
|
62
|
+
getSpillFilePath(callId: string, sessionStoreId: string, parentSessionId?: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Create an externalization placeholder for a tool result whose full output
|
|
65
|
+
* has already been written to disk by an OutputSpiller.
|
|
66
|
+
* Unlike externalize(), this does NOT write the file — it only generates the placeholder.
|
|
67
|
+
*
|
|
68
|
+
* @param callId The tool_use_id
|
|
69
|
+
* @param totalBytes Total bytes written to the spill file
|
|
70
|
+
* @param spillFilePath Path to the existing spill file
|
|
71
|
+
* @param truncatedOutput The truncated output text (used for preview)
|
|
72
|
+
* @returns The placeholder text to store in history
|
|
73
|
+
*/
|
|
74
|
+
externalizeFromSpillFile(callId: string, totalBytes: number, spillFilePath: string, truncatedOutput: string): string;
|
|
75
|
+
}
|
|
76
|
+
export declare class ToolResultBlobServiceImpl implements ToolResultBlobService {
|
|
77
|
+
protected readonly logger: Logger;
|
|
78
|
+
init(): void;
|
|
79
|
+
shouldExternalize(output: string): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Save a large tool result to disk and return the placeholder text
|
|
82
|
+
* that should be stored in the history instead.
|
|
83
|
+
*
|
|
84
|
+
* @param callId The tool_use_id (e.g., "call_00_abc123")
|
|
85
|
+
* @param output The full tool result output
|
|
86
|
+
* @param sessionStoreId The session's storeId (used for directory naming)
|
|
87
|
+
* @param parentSessionId Optional parent session ID (for subagents)
|
|
88
|
+
* @returns The placeholder text to store in history
|
|
89
|
+
*/
|
|
90
|
+
externalize(callId: string, output: string, sessionStoreId: string, parentSessionId?: string): Promise<string>;
|
|
91
|
+
read(filePath: string): Promise<string | undefined>;
|
|
92
|
+
getSpillFilePath(callId: string, sessionStoreId: string, parentSessionId?: string): string;
|
|
93
|
+
externalizeFromSpillFile(callId: string, totalBytes: number, spillFilePath: string, truncatedOutput: string): string;
|
|
94
|
+
cleanupSession(sessionStoreId: string, parentSessionId?: string): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Get the directory for storing tool results for a specific session.
|
|
97
|
+
*
|
|
98
|
+
* For main sessions: ~/.codebuddy/projects/{projectId}/{sessionId}/tool-results/
|
|
99
|
+
* For subagents: ~/.codebuddy/projects/{projectId}/{parentSessionId}/subagents/{storeId}/tool-results/
|
|
100
|
+
*
|
|
101
|
+
* This mirrors the session history file layout:
|
|
102
|
+
* {sessionId}.jsonl ← main session history
|
|
103
|
+
* {sessionId}/tool-results/ ← main session tool results
|
|
104
|
+
* {parentSessionId}/subagents/
|
|
105
|
+
* ├── agent-xxx.jsonl ← subagent history
|
|
106
|
+
* └── agent-xxx/tool-results/ ← subagent tool results
|
|
107
|
+
*/
|
|
108
|
+
private getSessionToolResultDir;
|
|
109
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SessionManager } from '../../vendor/cbc-core/node/index.js';
|
|
2
|
+
import { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
3
|
+
import { ChannelEvent, ChannelEventService, ChannelManager } from './channel-protocol';
|
|
4
|
+
export declare class ChannelEventServiceImpl implements ChannelEventService {
|
|
5
|
+
protected readonly logger: Logger;
|
|
6
|
+
protected readonly channelManager: ChannelManager;
|
|
7
|
+
protected readonly sessionManager: SessionManager;
|
|
8
|
+
initialize(): void;
|
|
9
|
+
/**
|
|
10
|
+
* 将 channel 事件添加到当前 session 的事件队列
|
|
11
|
+
* 事件将在 ChannelEventAgentRunInterceptor 中被消费并注入到 agent input 中
|
|
12
|
+
*/
|
|
13
|
+
pushEventToSession(event: ChannelEvent): void;
|
|
14
|
+
/**
|
|
15
|
+
* 消费指定 session 的所有待处理 channel 事件
|
|
16
|
+
*/
|
|
17
|
+
consumeEventsForSession(sessionId: string): ChannelEvent[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { SettingsManager } from '../settings';
|
|
4
|
+
import { ChannelEvent, ChannelManager, ChannelPermissionRequest, ChannelServerInfo } from './channel-protocol';
|
|
5
|
+
export declare class ChannelManagerImpl implements ChannelManager {
|
|
6
|
+
protected readonly logger: Logger;
|
|
7
|
+
protected readonly settingsManager?: SettingsManager;
|
|
8
|
+
private _enabled;
|
|
9
|
+
get enabled(): boolean;
|
|
10
|
+
readonly channelServers: Map<string, ChannelServerInfo>;
|
|
11
|
+
readonly eventSubject: Subject<ChannelEvent>;
|
|
12
|
+
readonly channelServersSubject: Subject<Map<string, ChannelServerInfo>>;
|
|
13
|
+
private sessionEventQueues;
|
|
14
|
+
allowedChannels: Set<string> | undefined;
|
|
15
|
+
private developmentChannels;
|
|
16
|
+
/**
|
|
17
|
+
* 注册 channel 服务器
|
|
18
|
+
* 在 MCP 连接成功后调用,检测 experimental capabilities
|
|
19
|
+
*/
|
|
20
|
+
registerChannel(serverName: string, mcpSession: any, capabilities: any, instructions?: string): void;
|
|
21
|
+
unregisterChannel(serverName: string): void;
|
|
22
|
+
isChannel(serverName: string): boolean;
|
|
23
|
+
getPermissionRelayChannels(): ChannelServerInfo[];
|
|
24
|
+
/**
|
|
25
|
+
* 广播权限请求到所有支持 permission relay 的 channels
|
|
26
|
+
*/
|
|
27
|
+
broadcastPermissionRequest(request: ChannelPermissionRequest): void;
|
|
28
|
+
/**
|
|
29
|
+
* 为 session 添加 channel 事件到队列
|
|
30
|
+
*/
|
|
31
|
+
enqueueEventForSession(sessionId: string, event: ChannelEvent): void;
|
|
32
|
+
/**
|
|
33
|
+
* 消费并清空指定 session 的所有待处理事件
|
|
34
|
+
*/
|
|
35
|
+
consumeEventsForSession(sessionId: string): ChannelEvent[];
|
|
36
|
+
configureFromSessionOptions(options: {
|
|
37
|
+
channels?: string;
|
|
38
|
+
dangerouslyLoadDevelopmentChannels?: string;
|
|
39
|
+
}): void;
|
|
40
|
+
shouldBypassAllowlist(serverName: string): boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import { ChannelManager, ChannelPermissionAdapter, ChannelPermissionResponse } from './channel-protocol';
|
|
3
|
+
export declare class ChannelPermissionAdapterImpl implements ChannelPermissionAdapter {
|
|
4
|
+
protected readonly logger: Logger;
|
|
5
|
+
protected readonly channelManager: ChannelManager;
|
|
6
|
+
private pendingRequests;
|
|
7
|
+
private toolCallToRequestId;
|
|
8
|
+
/**
|
|
9
|
+
* 生成符合规范的 request_id
|
|
10
|
+
* 5 个小写字母,排除 'l'
|
|
11
|
+
*/
|
|
12
|
+
private generateRequestId;
|
|
13
|
+
/**
|
|
14
|
+
* 创建权限请求并广播到 channels
|
|
15
|
+
* 返回 Promise,与本地 UI 审批竞速
|
|
16
|
+
*/
|
|
17
|
+
createPermissionRequest(toolCallId: string, toolName: string, description: string, inputPreview: string): Promise<'allow' | 'allow_always' | 'deny' | 'deny_and_exit_plan'>;
|
|
18
|
+
/**
|
|
19
|
+
* 处理来自 channel 的权限响应
|
|
20
|
+
*/
|
|
21
|
+
handlePermissionResponse(response: ChannelPermissionResponse): void;
|
|
22
|
+
/**
|
|
23
|
+
* 当本地 UI 已经做出决定时,取消待处理的 channel 请求
|
|
24
|
+
*/
|
|
25
|
+
cancelRequest(toolCallId: string): void;
|
|
26
|
+
isPendingRequest(requestId: string): boolean;
|
|
27
|
+
}
|