@tencent-ai/agent-harness 0.2.0-beta.6 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/cli/CHANGELOG.md +123 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +338 -291
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +11 -2
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +69 -44
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +6 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +62 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** 官方默认用户级配置目录短名(无外置配置时回落)。 */
|
|
2
|
+
export declare const DEFAULT_USER_DIR_NAME = ".codebuddy";
|
|
3
|
+
/** 官方默认项目级配置目录短名(无外置配置时回落)。 */
|
|
4
|
+
export declare const DEFAULT_PROJECT_DIR_NAME = ".codebuddy";
|
|
5
|
+
/** 官方默认指令文件 baseName(大写,`CODEBUDDY.md` 家族)。 */
|
|
6
|
+
export declare const DEFAULT_INSTRUCTION_BASE_NAME: string;
|
|
7
|
+
export interface ProductIdentity {
|
|
8
|
+
/** 短产品名,例如 XxxCode;缺省 CodeBuddy。 */
|
|
9
|
+
productName: string;
|
|
10
|
+
/** CLI 完整显示名,例如 XxxCode CLI;缺省 `${productName} Code`。 */
|
|
11
|
+
cliName: string;
|
|
12
|
+
/** 命令入口名(二进制名),例如 xxxcode;缺省 codebuddy。 */
|
|
13
|
+
binaryName: string;
|
|
14
|
+
/**
|
|
15
|
+
* 命令行 alias 列表;官方版为 `['cbc']`(CodeBuddy Code 缩写),
|
|
16
|
+
* 定制版默认空数组以避免品牌泄漏。schema 未来可扩展 `branding.aliases`
|
|
17
|
+
* 允许客户显式声明;当前仅在无外置配置时提供官方 alias。
|
|
18
|
+
*/
|
|
19
|
+
aliases: string[];
|
|
20
|
+
/** 用户级目录名,例如 .xxxcode;缺省 .codebuddy。 */
|
|
21
|
+
userDirName: string;
|
|
22
|
+
/** 项目级目录名,例如 .xxxcode;缺省 .codebuddy。 */
|
|
23
|
+
projectDirName: string;
|
|
24
|
+
/**
|
|
25
|
+
* 指令文件 baseName(大写),例如 XXXCODE;缺省 CODEBUDDY。
|
|
26
|
+
* fallback 语义与 memory-protocol.resolveMemoryFileNames() 完全一致,
|
|
27
|
+
* 由 {@link resolveInstructionBaseName} 单一入口派生,杜绝分裂身份。
|
|
28
|
+
*/
|
|
29
|
+
instructionBaseName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 单一入口解析指令文件 baseName。
|
|
33
|
+
*
|
|
34
|
+
* 语义:`dataLayout.instructionFiles.baseName` 显式配置 > 官方默认 `CODEBUDDY`。
|
|
35
|
+
* **不**从 `branding.productName` 派生 —— productName schema 允许非 ASCII
|
|
36
|
+
* / 空格 / 中文,`toUpperCase()` 后无法通过 `INSTRUCTION_BASE_NAME_RE`
|
|
37
|
+
* 校验,作为文件名 baseName 直接非法。若客户想要 `XXXCODE.md` 家族,
|
|
38
|
+
* 必须显式配置 `dataLayout.instructionFiles.baseName`。
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveInstructionBaseName(): string;
|
|
41
|
+
/** 解析运行时产品身份;无外置配置时返回官方默认。 */
|
|
42
|
+
export declare function resolveProductIdentity(): ProductIdentity;
|
|
43
|
+
/**
|
|
44
|
+
* 派生登录态文件所用的 authentication.id。
|
|
45
|
+
*
|
|
46
|
+
* 定制版(customization.json)与官方版是不同认证体系(不同网关 / 不同品牌),
|
|
47
|
+
* 登录态必须隔离。否则与官方版共用同一份登录态,后登录覆盖先登录,token 与
|
|
48
|
+
* 网关错配(SaaS token 打私有化网关 / 反之)导致 401。
|
|
49
|
+
*
|
|
50
|
+
* 隔离依据:binaryName 优先、endpoint 兜底,两者都落在 `-custom-` 命名空间内。
|
|
51
|
+
* - binaryName:客户自声明的产品标识,可读、稳定、文件安全(schema 已校验
|
|
52
|
+
* `^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$`);
|
|
53
|
+
* - endpoint host:未配 binaryName 时兜底,hostname 中 `.` 替换为 `_`;
|
|
54
|
+
* - 两者皆无(官方版 / 空配置)原样返回,与官方版共用登录态。
|
|
55
|
+
* 确定性:同一配置每次派生一致,登录态不漂移。
|
|
56
|
+
*/
|
|
57
|
+
export declare function resolveCustomAuthId(baseAuthId: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ProductEnvService, ProductEnviroment } from '../../workspace/authentication/lib/common/index.js';
|
|
2
|
+
export declare const ConfigWatchService: unique symbol;
|
|
3
|
+
export declare const McpWatchService: unique symbol;
|
|
4
|
+
export interface ConfigWatchService {
|
|
5
|
+
}
|
|
6
|
+
export interface McpWatchService {
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { ProductConfiguration, ProductProvider, ProductProviderContext } from '../../workspace/product/lib/common/index.js';
|
|
3
|
+
import { SdkInitializeStateService } from '../control-signal/control-signal-protocol';
|
|
4
|
+
/**
|
|
5
|
+
* 把 SDK initialize control_request 传入的 system prompt / agents 配置注入到产品配置中。
|
|
6
|
+
* 行为与 CliOptionsProductProvider 处理 --system-prompt / --agents 一致。
|
|
7
|
+
*
|
|
8
|
+
* 与 CliOptionsProductProvider 同优先级(OPTIONS)且 volatile —— 每次调用独立,不缓存。
|
|
9
|
+
*/
|
|
10
|
+
export declare class SdkInitializeProductProvider implements ProductProvider {
|
|
11
|
+
scope: 'runtime';
|
|
12
|
+
priority: number;
|
|
13
|
+
volatile: boolean;
|
|
14
|
+
protected readonly logger: Logger;
|
|
15
|
+
protected readonly sdkInitializeState: SdkInitializeStateService;
|
|
16
|
+
provide(ctx: ProductProviderContext): Promise<ProductConfiguration>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { ProductConfiguration, ProductProvider, ProductProviderContext } from '../../workspace/product/lib/common/index.js';
|
|
3
|
+
import { CliSettingSourcesProvider, SettingsManager } from '../settings';
|
|
4
|
+
export declare class SettingsEndpointProductProvider implements ProductProvider {
|
|
5
|
+
priority: number;
|
|
6
|
+
protected lastConfig: ProductConfiguration;
|
|
7
|
+
/** TTL cache to avoid redundant file reads during rapid sync cycles */
|
|
8
|
+
private cachedConfig;
|
|
9
|
+
private cachedAt;
|
|
10
|
+
private cachedEnv;
|
|
11
|
+
private static readonly CACHE_TTL_MS;
|
|
12
|
+
protected readonly settingsManager: SettingsManager;
|
|
13
|
+
protected readonly cliSettingSourcesProvider: CliSettingSourcesProvider;
|
|
14
|
+
protected readonly logger: Logger;
|
|
15
|
+
init(): void;
|
|
16
|
+
provide(ctx: ProductProviderContext): Promise<ProductConfiguration>;
|
|
17
|
+
private generateConfig;
|
|
18
|
+
/** 当前生效的 setting scopes,仅用于日志;取不到不影响主流程。 */
|
|
19
|
+
private resolveSettingScopes;
|
|
20
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { ProductConfiguration, ProductProvider, ProductProviderContext, Skill } from '../../workspace/product/lib/common/index.js';
|
|
3
|
+
import { FileSystem } from '../../workspace/runtime/lib/common/index.js';
|
|
4
|
+
export interface SkillScanError {
|
|
5
|
+
path: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SkillListDetailedResult {
|
|
9
|
+
skills: Skill[];
|
|
10
|
+
errors: SkillScanError[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Skill product provider that reads SKILL.md files from .claude/skills directories
|
|
14
|
+
* and converts them to product skill format.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SkillProductProvider implements ProductProvider {
|
|
17
|
+
scope: "runtime";
|
|
18
|
+
priority: number;
|
|
19
|
+
/** Filesystem and builtin seed skills must be rebuilt by runtime-only refreshes. */
|
|
20
|
+
volatile: boolean;
|
|
21
|
+
protected readonly fs?: FileSystem;
|
|
22
|
+
protected readonly logger: Logger;
|
|
23
|
+
private skillsCache?;
|
|
24
|
+
private skillErrorsCache?;
|
|
25
|
+
private skillsLoading?;
|
|
26
|
+
private cacheGeneration;
|
|
27
|
+
clearCache(): void;
|
|
28
|
+
listSkills(cwd: string, forceReload?: boolean): Promise<Skill[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Reads one explicit workspace without changing the process cwd. The
|
|
31
|
+
* explicit cwd affects only the project root; USER and connector roots
|
|
32
|
+
* remain the canonical process-level locations.
|
|
33
|
+
*/
|
|
34
|
+
listSkillsDetailed(cwd: string, forceReload?: boolean): Promise<SkillListDetailedResult>;
|
|
35
|
+
provide(ctx?: ProductProviderContext): Promise<ProductConfiguration>;
|
|
36
|
+
/**
|
|
37
|
+
* 对指定根目录做一次树扫描(会话档技能用):server 层在会话 rootScope 内
|
|
38
|
+
* 调用,ambient dataFs 因此解析到会话 fs——进程档缓存不参与也不受污染。
|
|
39
|
+
*/
|
|
40
|
+
scanTree(baseDir: string, source?: string): Promise<Skill[]>;
|
|
41
|
+
/** Scan the current filesystem scope without reading or replacing the process cache. */
|
|
42
|
+
scanWorkspace(cwd: string): Promise<Skill[]>;
|
|
43
|
+
private loadSkillsCached;
|
|
44
|
+
private loadSkillsDetailedCached;
|
|
45
|
+
private loadSkillsDetailed;
|
|
46
|
+
private loadSkills;
|
|
47
|
+
private loadBundledSkills;
|
|
48
|
+
private pathExists;
|
|
49
|
+
private cloneSkills;
|
|
50
|
+
private cloneDetailedResult;
|
|
51
|
+
/**
|
|
52
|
+
* Maximum recursion depth for scanning nested skill directories.
|
|
53
|
+
*/
|
|
54
|
+
private static readonly MAX_SCAN_DEPTH;
|
|
55
|
+
private scanSkillsDirectory;
|
|
56
|
+
private getSkillLoadConcurrency;
|
|
57
|
+
private isDirectoryEntry;
|
|
58
|
+
private isFileEntry;
|
|
59
|
+
private resolveBundledResourceName;
|
|
60
|
+
private parseSkillFile;
|
|
61
|
+
private addScanError;
|
|
62
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const ReferenceService: unique symbol;
|
|
2
|
+
export interface ReferenceService {
|
|
3
|
+
process(content: string, currentFilePath?: string): Promise<string>;
|
|
4
|
+
/**
|
|
5
|
+
* 配置 path-only 模式。
|
|
6
|
+
*
|
|
7
|
+
* 启用后 {@link ReferenceService.process} 不会读取 `@path` 文件内容
|
|
8
|
+
* 注入上下文,保留原文路径,由模型按需通过 Read 工具读取。
|
|
9
|
+
*
|
|
10
|
+
* 该开关由最外层 transport(如 ACP initialize 握手)在拿到 client
|
|
11
|
+
* capability 后主动调用本方法写入;ReferenceService 自身不感知
|
|
12
|
+
* transport 类型,非 ACP 路径(TUI 等)不调用即默认关闭,自然
|
|
13
|
+
* 降级到旧的 `@path` 自动展开行为。
|
|
14
|
+
*/
|
|
15
|
+
setFileReferencesPathOnly(enabled: boolean): void;
|
|
16
|
+
/**
|
|
17
|
+
* 当前是否处于 path-only 模式。
|
|
18
|
+
*/
|
|
19
|
+
isFileReferencesPathOnly(): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { ReferenceService } from './reference-protocol';
|
|
3
|
+
/**
|
|
4
|
+
* Service for processing file references in content
|
|
5
|
+
* Handles @[path] imports and replaces them with file contents
|
|
6
|
+
*/
|
|
7
|
+
export declare class ReferenceServiceImpl implements ReferenceService {
|
|
8
|
+
protected readonly logger: Logger;
|
|
9
|
+
private fileReferencesPathOnly;
|
|
10
|
+
setFileReferencesPathOnly(enabled: boolean): void;
|
|
11
|
+
isFileReferencesPathOnly(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Processes file references in content and replaces them with file contents
|
|
14
|
+
* @param content The content containing file references
|
|
15
|
+
* @param currentFilePath Optional current file path for resolving relative references
|
|
16
|
+
* @returns Content with file references replaced
|
|
17
|
+
*/
|
|
18
|
+
process(content: string, currentFilePath?: string): Promise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Gets directory file list as formatted content
|
|
21
|
+
*/
|
|
22
|
+
private getDirectoryListing;
|
|
23
|
+
/**
|
|
24
|
+
* 对齐 Claude 的 file-read token cap:内联内容超过 MAX_IMPORT_FILE_TOKENS 时截断为前一段,
|
|
25
|
+
* 并追加一句提示,引导模型用 Read offset/limit 分页或 Grep 检索文件其余部分。未超上限时原样返回。
|
|
26
|
+
*
|
|
27
|
+
* 截断算法与提示语对齐 Claude Code 的 Read 工具实现,分两种模式:
|
|
28
|
+
* - 按行截断(正常多行文件):估算可容纳的行数并逐步收缩,保留前 N 行。
|
|
29
|
+
* - 按字符截断(超长单行文件):无法按行分页时(如 minified JS / 压缩 JSON),退化为按字符截断。
|
|
30
|
+
*
|
|
31
|
+
* 说明:CodeBuddy 无精确 tokenizer,token 数为 estimateTokensRough 粗估,故提示中标注 `~`;
|
|
32
|
+
* 且因内容是内联进 prompt(非 Read 工具返回),提示中补充文件绝对路径以便模型定位并分页读取。
|
|
33
|
+
* 这里必须用 resolvedPath(绝对路径)而非原始 importPath:嵌套引用时 importPath 是相对父文件
|
|
34
|
+
* 目录的路径,而模型执行 Read/Grep 的 cwd 是命令启动目录,用相对路径会定位到错误文件。
|
|
35
|
+
*/
|
|
36
|
+
private truncateByTokenCap;
|
|
37
|
+
/**
|
|
38
|
+
* Recursively processes file imports with circular reference detection
|
|
39
|
+
* Uses ImportUtils for import extraction and path resolution
|
|
40
|
+
*/
|
|
41
|
+
private processImports;
|
|
42
|
+
}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remote Control Module Protocol
|
|
3
|
+
*
|
|
4
|
+
* 定义远程控制模块的所有类型、接口和 DI Symbols
|
|
5
|
+
* 参考 genie-ide/src/vs/platform/wecom/common/wecom.ts
|
|
6
|
+
*/
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
export declare const RemoteControlService: unique symbol;
|
|
9
|
+
export declare const RemoteControlApiClient: unique symbol;
|
|
10
|
+
export declare const RemoteControlCentrifugoClient: unique symbol;
|
|
11
|
+
export declare const RemoteControlMessageHandler: unique symbol;
|
|
12
|
+
export declare const LongConnectionClientRegistry: unique symbol;
|
|
13
|
+
export declare const ENV_KEY_REMOTE_CONTROL_API_KEY = "CODEBUDDY_REMOTE_CONTROL_API_KEY";
|
|
14
|
+
export declare const ENV_KEY_REMOTE_CONTROL_BASE_URL = "CODEBUDDY_REMOTE_CONTROL_BASE_URL";
|
|
15
|
+
/** Set to '1' or 'true' to auto-connect ALL channel types (wecom + wechat) on startup */
|
|
16
|
+
export declare const ENV_KEY_CHANNEL_AUTO_CONNECT = "CODEBUDDY_CHANNEL_AUTO_CONNECT";
|
|
17
|
+
/** Set to '1' or 'true' to auto-connect WeCom instances on startup */
|
|
18
|
+
export declare const ENV_KEY_WECOM_AUTO_CONNECT = "CODEBUDDY_WECOM_AUTO_CONNECT";
|
|
19
|
+
/** Set to '1' or 'true' to auto-connect WeChat instances on startup */
|
|
20
|
+
export declare const ENV_KEY_WECHAT_AUTO_CONNECT = "CODEBUDDY_WECHAT_AUTO_CONNECT";
|
|
21
|
+
export interface RemoteControlConfig {
|
|
22
|
+
/** 是否启用远程控制 */
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/** AgentOS 服务基础 URL */
|
|
25
|
+
baseUrl: string;
|
|
26
|
+
/** API Key(可选,不提供则使用 Bearer token) */
|
|
27
|
+
apiKey?: string;
|
|
28
|
+
/** LocalAgent 类型标识:cli, ide, workbuddy */
|
|
29
|
+
localAgentType: string;
|
|
30
|
+
/** 主机唯一标识 */
|
|
31
|
+
hostId: string;
|
|
32
|
+
/** 是否使用摘要模式 */
|
|
33
|
+
useSummary: boolean;
|
|
34
|
+
/** 是否复用 UI 当前 session(默认 true) */
|
|
35
|
+
reuseUISession?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type RemoteControlConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
38
|
+
export interface RemoteControlConnectionState {
|
|
39
|
+
status: RemoteControlConnectionStatus;
|
|
40
|
+
serverUrl?: string;
|
|
41
|
+
connectedAt?: number;
|
|
42
|
+
error?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface RegisterWorkspaceRequest {
|
|
45
|
+
/** 用户 ID(可选,使用 Bearer token 时由服务端解析) */
|
|
46
|
+
userId?: string;
|
|
47
|
+
/** LocalAgent 类型:cli, ide, workbuddy */
|
|
48
|
+
localAgentType: string;
|
|
49
|
+
/** 主机 ID */
|
|
50
|
+
hostId: string;
|
|
51
|
+
/** 工作区 ID */
|
|
52
|
+
workspaceId: string;
|
|
53
|
+
/** 工作区名称(可选,用于增加可读性) */
|
|
54
|
+
workspaceName?: string;
|
|
55
|
+
/** IM 账号标识,如企微客服号 accountId(可选,用于多客服号场景下过滤 workspace 列表) */
|
|
56
|
+
accountId?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface RegisterWorkspaceResponse {
|
|
59
|
+
/** Centrifugo WebSocket URL */
|
|
60
|
+
url: string;
|
|
61
|
+
/** 连接令牌 */
|
|
62
|
+
connectionToken: string;
|
|
63
|
+
/** 订阅令牌 */
|
|
64
|
+
subscriptionToken: string;
|
|
65
|
+
/** 订阅频道 */
|
|
66
|
+
channel: string;
|
|
67
|
+
}
|
|
68
|
+
export interface WorkspaceSubscription {
|
|
69
|
+
workspaceId: string;
|
|
70
|
+
workspaceName: string;
|
|
71
|
+
channel: string;
|
|
72
|
+
subscriptionToken: string;
|
|
73
|
+
}
|
|
74
|
+
export interface RemoteControlTaskMessage {
|
|
75
|
+
/** 请求唯一标识 */
|
|
76
|
+
requestId: string;
|
|
77
|
+
/** 任务提示词 */
|
|
78
|
+
prompt: string | Array<{
|
|
79
|
+
type: string;
|
|
80
|
+
text?: string;
|
|
81
|
+
}>;
|
|
82
|
+
/** 附加元数据 */
|
|
83
|
+
metadata?: Record<string, unknown>;
|
|
84
|
+
}
|
|
85
|
+
export interface RemoteControlResponse {
|
|
86
|
+
/** 响应类型 */
|
|
87
|
+
type: 'COPILOT_RESPONSE';
|
|
88
|
+
/** 消息 ID(对应 requestId) */
|
|
89
|
+
msgId: string;
|
|
90
|
+
/** 会话 ID */
|
|
91
|
+
chatId: string;
|
|
92
|
+
/** 是否成功 */
|
|
93
|
+
success: boolean;
|
|
94
|
+
/** 响应消息 */
|
|
95
|
+
message: string;
|
|
96
|
+
/** 元数据 */
|
|
97
|
+
metadata?: {
|
|
98
|
+
sessionId?: string;
|
|
99
|
+
state?: 'completed' | 'error';
|
|
100
|
+
error?: string;
|
|
101
|
+
fullOutputLength?: number;
|
|
102
|
+
/** 标记 session 是否被复用 */
|
|
103
|
+
uiSessionReused?: boolean;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export interface IRemoteControlService {
|
|
107
|
+
/** 状态变更事件 */
|
|
108
|
+
readonly onStatusChange: Subject<RemoteControlConnectionStatus>;
|
|
109
|
+
/** 消息接收事件 */
|
|
110
|
+
readonly onMessage: Subject<{
|
|
111
|
+
channel: string;
|
|
112
|
+
data: RemoteControlTaskMessage;
|
|
113
|
+
}>;
|
|
114
|
+
/** 启动服务(启动所有 shouldAutoConnect 的客户端) */
|
|
115
|
+
start(): Promise<void>;
|
|
116
|
+
/** 停止服务(停止所有客户端) */
|
|
117
|
+
stop(): Promise<void>;
|
|
118
|
+
/** 获取当前状态 */
|
|
119
|
+
getStatus(): RemoteControlConnectionStatus;
|
|
120
|
+
/** 按类型启动单个长连接客户端 */
|
|
121
|
+
startClient(clientType: string): Promise<void>;
|
|
122
|
+
/** 按类型停止单个长连接客户端 */
|
|
123
|
+
stopClient(clientType: string): Promise<void>;
|
|
124
|
+
/** 发送响应 */
|
|
125
|
+
sendResponse(response: RemoteControlResponse): Promise<void>;
|
|
126
|
+
/** 释放资源 */
|
|
127
|
+
dispose(): void;
|
|
128
|
+
}
|
|
129
|
+
export interface IRemoteControlApiClient {
|
|
130
|
+
/** 设置配置 */
|
|
131
|
+
setConfig(config: RemoteControlConfig): void;
|
|
132
|
+
/** 注册工作区 */
|
|
133
|
+
registerWorkspace(request: RegisterWorkspaceRequest): Promise<RegisterWorkspaceResponse>;
|
|
134
|
+
/** 发送响应 */
|
|
135
|
+
sendResponse(response: RemoteControlResponse): Promise<void>;
|
|
136
|
+
}
|
|
137
|
+
export interface IRemoteControlCentrifugoClient {
|
|
138
|
+
/** 当前状态 */
|
|
139
|
+
readonly status: RemoteControlConnectionStatus;
|
|
140
|
+
/** 消息事件 */
|
|
141
|
+
readonly onMessage: Subject<{
|
|
142
|
+
channel: string;
|
|
143
|
+
data: RemoteControlTaskMessage;
|
|
144
|
+
}>;
|
|
145
|
+
/** 状态变更事件 */
|
|
146
|
+
readonly onStatusChange: Subject<RemoteControlConnectionState>;
|
|
147
|
+
/** 连接到服务器 */
|
|
148
|
+
connect(url: string, connectionToken: string, getToken?: () => Promise<string>): Promise<void>;
|
|
149
|
+
/** 订阅频道 */
|
|
150
|
+
subscribeChannel(subscription: WorkspaceSubscription, getSubToken?: () => Promise<string>): Promise<void>;
|
|
151
|
+
/** 取消订阅频道 */
|
|
152
|
+
unsubscribeChannel(channel: string): void;
|
|
153
|
+
/** 断开连接 */
|
|
154
|
+
disconnect(): void;
|
|
155
|
+
/** 销毁 */
|
|
156
|
+
dispose(): void;
|
|
157
|
+
}
|
|
158
|
+
export interface IRemoteControlMessageHandler {
|
|
159
|
+
/** 处理消息(Centrifugo 原有流程,保留兼容) */
|
|
160
|
+
handleMessage(message: RemoteControlTaskMessage, workspaceId: string, config: RemoteControlConfig, hostId: string): Promise<RemoteControlResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* 快速检测并执行本地命令(不涉及 session 复用,用于 Service 层快速判断)。
|
|
163
|
+
* 如果是本地命令,直接执行并返回结果;
|
|
164
|
+
* 如果不是本地命令,返回 undefined(继续走 agent 管道)。
|
|
165
|
+
*/
|
|
166
|
+
tryExecuteLocalCommandQuickly(promptText: string): Promise<string | undefined>;
|
|
167
|
+
/**
|
|
168
|
+
* 公共执行方法:接收消息文本 → 获取/创建 session → 执行 agent → 等待回复。
|
|
169
|
+
* 供所有长连接客户端统一调用。
|
|
170
|
+
*/
|
|
171
|
+
executeAndWaitForReply(promptText: string, conversationId: string, requestId: string): Promise<string>;
|
|
172
|
+
/** 取消任务 */
|
|
173
|
+
cancelTask(requestId: string): boolean;
|
|
174
|
+
}
|
|
175
|
+
/** QR code authentication status (for clients that use QR scan-to-login) */
|
|
176
|
+
export interface QRAuthStatus {
|
|
177
|
+
type: 'fetching' | 'qr_ready' | 'scanned' | 'expired' | 'confirmed' | 'error';
|
|
178
|
+
message: string;
|
|
179
|
+
/** UTF-8 rendered QR code text for terminal display */
|
|
180
|
+
qrText?: string;
|
|
181
|
+
/** Original QR code URL (fallback for manual open) */
|
|
182
|
+
qrUrl?: string;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Long connection client interface.
|
|
186
|
+
* Different message channels (Centrifugo, wecom, etc.) implement this interface.
|
|
187
|
+
*/
|
|
188
|
+
export interface ILongConnectionClient {
|
|
189
|
+
/** Client type identifier (e.g. 'centrifugo', 'wecom') */
|
|
190
|
+
readonly clientType: string;
|
|
191
|
+
/** Instance identifier for multi-instance support (e.g. 'default', 'mybot') */
|
|
192
|
+
readonly instanceId: string;
|
|
193
|
+
/** Display name for UI (e.g. 'wecom:bot1'). Defaults to clientType:instanceId */
|
|
194
|
+
readonly displayName?: string;
|
|
195
|
+
/** Current connection status */
|
|
196
|
+
readonly status: RemoteControlConnectionStatus;
|
|
197
|
+
/** Message event (emitted when a user message is received, in unified LongConnectionMessage format) */
|
|
198
|
+
readonly onMessage: Subject<LongConnectionMessage>;
|
|
199
|
+
/** Status change event */
|
|
200
|
+
readonly onStatusChange: Subject<RemoteControlConnectionState>;
|
|
201
|
+
/** Whether this client should auto-connect when Service.start() is called */
|
|
202
|
+
readonly shouldAutoConnect: boolean;
|
|
203
|
+
/** Whether this client should be hidden from the /remote-control UI panel */
|
|
204
|
+
readonly hidden?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* WeCom: whether assistant text is streamed into the IM bubble.
|
|
207
|
+
* Omitted / true → stream; false → WeComReply-only (2.140.0).
|
|
208
|
+
*/
|
|
209
|
+
readonly streaming?: boolean;
|
|
210
|
+
/** Persist the WeCom streaming preference for this instance. Returns false if persist failed. */
|
|
211
|
+
setStreaming?(enabled: boolean): boolean | void;
|
|
212
|
+
/**
|
|
213
|
+
* WeCom: whether Ask / permission / suggestion use template cards.
|
|
214
|
+
* Omitted / true → cards; false → text replies (2.140.0).
|
|
215
|
+
*/
|
|
216
|
+
readonly cards?: boolean;
|
|
217
|
+
/** Persist the WeCom card-interaction preference. Returns false if persist failed. */
|
|
218
|
+
setCards?(enabled: boolean): boolean | void;
|
|
219
|
+
/**
|
|
220
|
+
* When true, messages are handled via the channel system (WechatChannelBridge etc.)
|
|
221
|
+
* and RemoteControlService skips its executeAndWaitForReply pipeline for this client.
|
|
222
|
+
*/
|
|
223
|
+
readonly usesChannelBridge?: boolean;
|
|
224
|
+
/** QR auth state change event (for clients that use QR scan-to-login) */
|
|
225
|
+
readonly onQRAuthStateChange?: Subject<QRAuthStatus>;
|
|
226
|
+
/** Start connection */
|
|
227
|
+
connect(config: RemoteControlConfig): Promise<void>;
|
|
228
|
+
/** Disconnect */
|
|
229
|
+
disconnect(): void;
|
|
230
|
+
/** Dispose resources */
|
|
231
|
+
dispose(): void;
|
|
232
|
+
/**
|
|
233
|
+
* Send reply to message source.
|
|
234
|
+
* Each long connection type has a different reply mechanism:
|
|
235
|
+
* - Centrifugo: delegates to RemoteControlApiClient HTTP callback
|
|
236
|
+
* - wecom: sends aibot_respond_msg via WebSocket
|
|
237
|
+
*/
|
|
238
|
+
sendReply(context: LongConnectionReplyContext, content: string): Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* Send streaming response chunk (optional).
|
|
241
|
+
* Long connections that support streaming (e.g. wecom stream message type) can implement this.
|
|
242
|
+
*/
|
|
243
|
+
sendStreamChunk?(context: LongConnectionReplyContext, chunk: string, streamId: string, finished: boolean): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Send proactive/async reply (optional).
|
|
246
|
+
* Unlike sendReply (which uses the callback req_id and is subject to stream timeout),
|
|
247
|
+
* this uses a proactive push mechanism (e.g. wecom aibot_send_msg) that is not
|
|
248
|
+
* bound by stream timeout. Suitable for long-running Agent tasks.
|
|
249
|
+
*/
|
|
250
|
+
sendAsyncReply?(context: LongConnectionReplyContext, content: string): Promise<void>;
|
|
251
|
+
}
|
|
252
|
+
/** Unified message format (from all long connections → Service) */
|
|
253
|
+
export interface LongConnectionMessage {
|
|
254
|
+
/** Unique message ID */
|
|
255
|
+
requestId: string;
|
|
256
|
+
/** User message text */
|
|
257
|
+
prompt: string;
|
|
258
|
+
/** Reply context metadata (passed back to client when replying) */
|
|
259
|
+
replyContext: LongConnectionReplyContext;
|
|
260
|
+
/** Whether this is an event (not a user message) */
|
|
261
|
+
isEvent?: boolean;
|
|
262
|
+
/** Event type (if isEvent is true) */
|
|
263
|
+
eventType?: string;
|
|
264
|
+
}
|
|
265
|
+
/** Reply context (travels with message, returned to client for reply routing) */
|
|
266
|
+
export interface LongConnectionReplyContext {
|
|
267
|
+
/** Client type */
|
|
268
|
+
clientType: string;
|
|
269
|
+
/** User/session identifier (for building chatId) */
|
|
270
|
+
userId: string;
|
|
271
|
+
/** Conversation ID */
|
|
272
|
+
conversationId: string;
|
|
273
|
+
/** Platform-specific data (e.g. wecom's req_id, chatid, chattype) */
|
|
274
|
+
platformData?: Record<string, unknown>;
|
|
275
|
+
}
|
|
276
|
+
/** Long connection client registry interface */
|
|
277
|
+
export interface ILongConnectionClientRegistry {
|
|
278
|
+
/** Register a client (key = clientType:instanceId) */
|
|
279
|
+
register(client: ILongConnectionClient): void;
|
|
280
|
+
/** Unregister a client */
|
|
281
|
+
unregister(clientType: string, instanceId: string): void;
|
|
282
|
+
/** Get all registered clients */
|
|
283
|
+
getAll(): ILongConnectionClient[];
|
|
284
|
+
/** Get all clients of a given type */
|
|
285
|
+
getByType(clientType: string): ILongConnectionClient[];
|
|
286
|
+
/** Get a specific client by type and instanceId */
|
|
287
|
+
get(clientType: string, instanceId?: string): ILongConnectionClient | undefined;
|
|
288
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Context, Middleware } from '@celljs/web/lib/node';
|
|
2
|
+
import { ConsoleManager } from '../console';
|
|
3
|
+
import { NavigationManager } from '../navigation';
|
|
4
|
+
import { WorkspaceFolderManager } from '../runtime';
|
|
5
|
+
import { SessionManager } from '../../vendor/cbc-core/node/index.js';
|
|
6
|
+
export declare class AddDirMiddleWare implements Middleware {
|
|
7
|
+
protected readonly sessionManager: SessionManager;
|
|
8
|
+
protected readonly workspaceFolderManager: WorkspaceFolderManager;
|
|
9
|
+
protected readonly navigationManager: NavigationManager;
|
|
10
|
+
protected readonly consoleManager: ConsoleManager;
|
|
11
|
+
handle(ctx: Context, next: () => Promise<void>): Promise<void>;
|
|
12
|
+
readonly priority: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-advertised CLI capabilities.
|
|
3
|
+
*
|
|
4
|
+
* Hosts spawn agent-cli with CODEBUDDY_CLI_CAPABILITIES (comma-separated,
|
|
5
|
+
* dot-hierarchical bits). CLI reads the bits live; unknown future bits are
|
|
6
|
+
* ignored. This is a separate channel from CODEBUDDY_HOST_CAPABILITIES, which
|
|
7
|
+
* advertises host UI capabilities to builtin-plugin MCP children.
|
|
8
|
+
*
|
|
9
|
+
* WorkBuddy Desktop keeps its existing host gates. Other hosts opt in by
|
|
10
|
+
* declaring the bits they want — CLI does not branch on product names.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CLI_CAPABILITIES_ENV = "CODEBUDDY_CLI_CAPABILITIES";
|
|
13
|
+
export declare const CLI_CAPABILITY: {
|
|
14
|
+
/**
|
|
15
|
+
* FileSafety package: fileBackup + safe-delete, plus the macOS brokered
|
|
16
|
+
* runtime coverage those two features need for sandbox shell writes/deletes.
|
|
17
|
+
*/
|
|
18
|
+
readonly FILE_SAFETY: "file.safety";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Live-read a capability bit from CODEBUDDY_CLI_CAPABILITIES.
|
|
22
|
+
*/
|
|
23
|
+
export declare function hasCliCapability(capability: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* FileSafety is on for WorkBuddy Desktop (unchanged host gate) or any host
|
|
26
|
+
* that declared the file.safety bit.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isFileSafetyEnabled(): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { ExternalUriOpener } from '../../workspace/runtime/lib/common/index.js';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
export declare class CliExternalUriOpener implements ExternalUriOpener {
|
|
5
|
+
urlSubject: Subject<string>;
|
|
6
|
+
protected readonly logger: Logger;
|
|
7
|
+
open(uri: string): Promise<boolean>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FileSystem, LocalStorage, LocalStorageChangeEvent } from '../../workspace/runtime/lib/common/index.js';
|
|
2
|
+
export declare class MemoryLocalStorage implements LocalStorage {
|
|
3
|
+
protected readonly fileSystem: FileSystem;
|
|
4
|
+
private emitter;
|
|
5
|
+
changeEvent: import("@celljs/core").Event<LocalStorageChangeEvent>;
|
|
6
|
+
/**
|
|
7
|
+
* server 面缺省 no-op(CODEBUDDY_DISABLE_LOCAL_STORAGE=1):消费者全是
|
|
8
|
+
* 交互产品面(问卷冷却、输入历史等),pod 上无消费者;写盘还会把多租户
|
|
9
|
+
* 状态混进进程全局文件。no-op 而非内存 Map——假共享不如无共享。
|
|
10
|
+
*/
|
|
11
|
+
private get disabled();
|
|
12
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
13
|
+
getSync<T>(key: string, defaultValue?: T): T | undefined;
|
|
14
|
+
get<T>(key: string, defaultValue?: T): Promise<T | undefined>;
|
|
15
|
+
remove(key: string): Promise<void>;
|
|
16
|
+
private resolveEntryPath;
|
|
17
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Env var the host uses to advertise its capabilities to builtin-plugin MCP
|
|
3
|
+
* stdio children (injected by McpServerManager alongside
|
|
4
|
+
* CODEBUDDY_SERVICE_PROXY_URL / CODEBUDDY_PLUGIN_ROOT). Comma-separated,
|
|
5
|
+
* dot-hierarchical capability bits — see HOST_CAPABILITY.
|
|
6
|
+
*/
|
|
7
|
+
export declare const HOST_CAPABILITIES_ENV = "CODEBUDDY_HOST_CAPABILITIES";
|
|
8
|
+
/**
|
|
9
|
+
* Capability bits, dot-hierarchical (aligned with ACP/MCP
|
|
10
|
+
* `capabilities.elicitation.form`). Plugins read the var, split on `,`, and
|
|
11
|
+
* `includes()` the bit they care about; unknown future bits are ignored.
|
|
12
|
+
*/
|
|
13
|
+
export declare const HOST_CAPABILITY: {
|
|
14
|
+
/** Host can present an elicitation form — the channel weixinpay confirmation cards use. */
|
|
15
|
+
readonly ELICITATION_FORM: "elicitation.form";
|
|
16
|
+
/** Host intercepts `WeixinPay-Required:` and renders it as a confirmation card (vs. the plugin's own LLM flow). */
|
|
17
|
+
readonly WEIXINPAY_INTERCEPTION: "weixinpay.interception";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Process-level snapshot of host capabilities advertised to builtin-plugin MCP
|
|
21
|
+
* children via `CODEBUDDY_HOST_CAPABILITIES`.
|
|
22
|
+
*
|
|
23
|
+
* Populated from the NEGOTIATED client capabilities — not the process mode — at
|
|
24
|
+
* initialize, before the (lazily-spawned) plugin MCP reads its env. Each bit is
|
|
25
|
+
* declared independently by the client (no deriving one from another):
|
|
26
|
+
* - ACP: `clientCapabilities.elicitation.form` (standard) → markElicitationForm;
|
|
27
|
+
* `clientCapabilities._meta['codebuddy.ai'].weixinpay.interception` (custom,
|
|
28
|
+
* nested 父.子 to mirror the dotted env bit / `elicitation.form`) →
|
|
29
|
+
* markWeixinpayInterception. The desktop declares both only for non-Claw
|
|
30
|
+
* sessions (`supportsElicitation = !isClawWorkspaceCwd`).
|
|
31
|
+
* - stream-json SDK: `capabilities.elicitation.form` at `InitializeHandler`
|
|
32
|
+
* (the SDK has no separate weixinpay bit yet, so it unlocks both).
|
|
33
|
+
* Initialize lands before first tool use, hence before the process-cached
|
|
34
|
+
* weixinpay MCP spawns.
|
|
35
|
+
*
|
|
36
|
+
* IMPORTANT — not a per-payment verdict, and does NOT reflect the remotely-toggled
|
|
37
|
+
* `WeixinPayInterception` kill-switch (that stays host-side in `PaymentInterceptor`).
|
|
38
|
+
* When no elicitation capability is negotiated (TUI / `--print` / Claw / any client
|
|
39
|
+
* that didn't declare `elicitation.form`), nothing is advertised → the weixinpay
|
|
40
|
+
* plugin reads no `weixinpay.interception` and self-disables (its own fail-safe:
|
|
41
|
+
* surface a "请到电脑端使用" redirect, never hard-fail).
|
|
42
|
+
*/
|
|
43
|
+
export declare class HostCapabilityProvider {
|
|
44
|
+
private readonly capabilities;
|
|
45
|
+
/** Advertise `elicitation.form` (peer declared it can render an elicitation form). Idempotent. */
|
|
46
|
+
markElicitationForm(): void;
|
|
47
|
+
/** Advertise `weixinpay.interception` (peer declared it supports the weixinpay confirm card). Idempotent. */
|
|
48
|
+
markWeixinpayInterception(): void;
|
|
49
|
+
/** Whether a capability bit has been advertised (exported for tests / internal checks). */
|
|
50
|
+
has(capability: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Comma-separated capability bits for `CODEBUDDY_HOST_CAPABILITIES`, or
|
|
53
|
+
* `undefined` when none have been advertised — callers then OMIT the env
|
|
54
|
+
* var entirely so the plugin reads "not present" and fail-opens.
|
|
55
|
+
*/
|
|
56
|
+
toEnvValue(): string | undefined;
|
|
57
|
+
}
|