@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,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trace Collector Protocol
|
|
3
|
+
*
|
|
4
|
+
* DI Symbol, interface and data types for the in-memory trace collector.
|
|
5
|
+
* The collector receives data from two sources:
|
|
6
|
+
* 1. SDK TracingProcessor — automatic agent/generation/function/handoff spans
|
|
7
|
+
* 2. Hook system — business context enrichment (sessionId, prompt, agent name)
|
|
8
|
+
*/
|
|
9
|
+
export declare const TraceCollectorService: unique symbol;
|
|
10
|
+
export type CollectedSpanType = 'agent' | 'generation' | 'function' | 'handoff' | 'guardrail' | 'response' | 'tool' | 'custom';
|
|
11
|
+
export interface CollectedSpan {
|
|
12
|
+
traceId: string;
|
|
13
|
+
spanId: string;
|
|
14
|
+
parentId: string | null;
|
|
15
|
+
name: string;
|
|
16
|
+
type: CollectedSpanType;
|
|
17
|
+
startedAt: string;
|
|
18
|
+
endedAt: string | null;
|
|
19
|
+
duration: number | null;
|
|
20
|
+
status: 'ok' | 'error' | 'cancelled' | 'running';
|
|
21
|
+
error: string | null;
|
|
22
|
+
model?: string;
|
|
23
|
+
inputTokens?: number;
|
|
24
|
+
outputTokens?: number;
|
|
25
|
+
toolName?: string;
|
|
26
|
+
toolInput?: string;
|
|
27
|
+
toolOutput?: string;
|
|
28
|
+
agentName?: string;
|
|
29
|
+
fromAgent?: string;
|
|
30
|
+
toAgent?: string;
|
|
31
|
+
attributes?: Record<string, any>;
|
|
32
|
+
}
|
|
33
|
+
export interface CollectedTrace {
|
|
34
|
+
traceId: string;
|
|
35
|
+
name: string;
|
|
36
|
+
sessionId?: string;
|
|
37
|
+
agentName?: string;
|
|
38
|
+
prompt?: string;
|
|
39
|
+
workerPid?: number;
|
|
40
|
+
workerHostname?: string;
|
|
41
|
+
startedAt: string;
|
|
42
|
+
endedAt: string | null;
|
|
43
|
+
duration: number | null;
|
|
44
|
+
status: 'ok' | 'error' | 'cancelled' | 'running';
|
|
45
|
+
spanCount: number;
|
|
46
|
+
totalTokens: number;
|
|
47
|
+
modelInfo?: TraceModelInfo;
|
|
48
|
+
metadata?: Record<string, any>;
|
|
49
|
+
}
|
|
50
|
+
export type TraceCategory = 'main' | 'auxiliary';
|
|
51
|
+
export interface TraceListItem {
|
|
52
|
+
traceId: string;
|
|
53
|
+
name: string;
|
|
54
|
+
category: TraceCategory;
|
|
55
|
+
sessionId?: string;
|
|
56
|
+
agentName?: string;
|
|
57
|
+
prompt?: string;
|
|
58
|
+
startedAt: string;
|
|
59
|
+
endedAt: string | null;
|
|
60
|
+
duration: number | null;
|
|
61
|
+
status: 'ok' | 'error' | 'cancelled' | 'running';
|
|
62
|
+
spanCount: number;
|
|
63
|
+
totalTokens: number;
|
|
64
|
+
modelInfo?: TraceModelInfo;
|
|
65
|
+
/** Number of error spans inside this trace (cancelled spans not counted) */
|
|
66
|
+
errorCount?: number;
|
|
67
|
+
/** Truncated message of the first error span, for preview in list view */
|
|
68
|
+
firstErrorMessage?: string;
|
|
69
|
+
/** Span id of the first error, for jump-to-error in detail view */
|
|
70
|
+
firstErrorSpanId?: string;
|
|
71
|
+
/** Tool/agent name where the first error occurred, used as label */
|
|
72
|
+
firstErrorWhere?: string;
|
|
73
|
+
}
|
|
74
|
+
export interface TraceBottleneck {
|
|
75
|
+
spanId: string;
|
|
76
|
+
name: string;
|
|
77
|
+
duration: number;
|
|
78
|
+
percentage: number;
|
|
79
|
+
}
|
|
80
|
+
/** Aggregated error info for a trace, grouped by tool/agent name */
|
|
81
|
+
export interface TraceErrorGroup {
|
|
82
|
+
/** toolName / agentName / span.name */
|
|
83
|
+
where: string;
|
|
84
|
+
/** Span type, used to choose icon */
|
|
85
|
+
type: CollectedSpanType;
|
|
86
|
+
/** Number of error spans matching this group */
|
|
87
|
+
count: number;
|
|
88
|
+
/** Truncated error message of the first error in this group */
|
|
89
|
+
sampleMessage: string;
|
|
90
|
+
/** First error span id (for jump-to-span) */
|
|
91
|
+
spanId: string;
|
|
92
|
+
}
|
|
93
|
+
export interface TraceErrorSummary {
|
|
94
|
+
totalErrors: number;
|
|
95
|
+
/** Aggregated error groups, sorted by count desc */
|
|
96
|
+
groups: TraceErrorGroup[];
|
|
97
|
+
/** First (in time order) error span id; same as groups[0].spanId if present */
|
|
98
|
+
firstErrorSpanId?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface TraceDetail {
|
|
101
|
+
trace: TraceListItem;
|
|
102
|
+
spans: CollectedSpan[];
|
|
103
|
+
bottleneck: TraceBottleneck | null;
|
|
104
|
+
/** Error aggregation, omitted when totalErrors === 0 */
|
|
105
|
+
errorSummary?: TraceErrorSummary;
|
|
106
|
+
}
|
|
107
|
+
export interface TraceListResponse {
|
|
108
|
+
traces: TraceListItem[];
|
|
109
|
+
total: number;
|
|
110
|
+
}
|
|
111
|
+
export interface TraceModelInfo {
|
|
112
|
+
models: string[];
|
|
113
|
+
totalInputTokens: number;
|
|
114
|
+
totalOutputTokens: number;
|
|
115
|
+
/** Cached tokens from last LLM call (for cache hit rate calculation) */
|
|
116
|
+
totalCachedTokens: number;
|
|
117
|
+
/** Input tokens from last LLM call (denominator for cache hit rate) */
|
|
118
|
+
lastCallInputTokens: number;
|
|
119
|
+
callCount: number;
|
|
120
|
+
}
|
|
121
|
+
export interface TraceListFilters {
|
|
122
|
+
sessionId?: string;
|
|
123
|
+
workerPid?: number;
|
|
124
|
+
/** Filter by trace status. 'error' is the most common use for troubleshooting. */
|
|
125
|
+
status?: 'ok' | 'error' | 'cancelled' | 'running';
|
|
126
|
+
}
|
|
127
|
+
export interface TraceCollectorService {
|
|
128
|
+
onTraceStart(traceId: string, name: string, metadata?: Record<string, any>): Promise<void>;
|
|
129
|
+
onTraceEnd(traceId: string): Promise<void>;
|
|
130
|
+
onSpanStart(span: Partial<CollectedSpan> & {
|
|
131
|
+
traceId: string;
|
|
132
|
+
spanId: string;
|
|
133
|
+
}): Promise<void>;
|
|
134
|
+
onSpanEnd(spanId: string, updates?: {
|
|
135
|
+
error?: string;
|
|
136
|
+
toolInput?: string;
|
|
137
|
+
toolOutput?: string;
|
|
138
|
+
inputTokens?: number;
|
|
139
|
+
outputTokens?: number;
|
|
140
|
+
model?: string;
|
|
141
|
+
}): Promise<void>;
|
|
142
|
+
enrichTrace(sessionId: string, data: {
|
|
143
|
+
agentName?: string;
|
|
144
|
+
prompt?: string;
|
|
145
|
+
modelInfo?: TraceModelInfo;
|
|
146
|
+
}): Promise<void>;
|
|
147
|
+
enrichSpan(spanId: string, attributes: Record<string, any>): Promise<void>;
|
|
148
|
+
/** Persist the final footer after the STOP hook has completed enrichment. */
|
|
149
|
+
finalizeSession(sessionId: string): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Record a synthetic cancelled function span on the active trace for `sessionId`.
|
|
152
|
+
* Used by paths that reject a tool call before SDK execution begins (permission
|
|
153
|
+
* rejection, AskUserQuestion / ExitPlanMode cancel), which would otherwise leave
|
|
154
|
+
* no span in the trace.
|
|
155
|
+
*
|
|
156
|
+
* Returns the synthetic span id, or undefined when no trace is active.
|
|
157
|
+
*/
|
|
158
|
+
recordCancelledToolSpan(sessionId: string, opts: {
|
|
159
|
+
toolName: string;
|
|
160
|
+
callId?: string;
|
|
161
|
+
toolInput?: unknown;
|
|
162
|
+
errorMessage?: string;
|
|
163
|
+
reason?: 'user_rejected' | 'permission_denied' | 'plan_rejected' | 'ask_cancelled';
|
|
164
|
+
}): string | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Force-end and persist the running trace bound to `sessionId` (if any) to
|
|
167
|
+
* disk synchronously. Used by abort paths (user reject, ESC cancel, SIGINT)
|
|
168
|
+
* where the SDK would otherwise abandon the trace in memory: `onTraceEnd`
|
|
169
|
+
* is never called → `persistTrace` never runs → the trace (including any
|
|
170
|
+
* cancelled spans recorded just before) is lost when the process exits.
|
|
171
|
+
*
|
|
172
|
+
* If `cancelledTool` is provided, a synthetic cancelled function span is
|
|
173
|
+
* injected before the persist. When NO running trace is bound to the
|
|
174
|
+
* session AND `cancelledTool` is provided, the most recent disk trace is
|
|
175
|
+
* located and patched in place — handles the dominant real-world case
|
|
176
|
+
* where the SDK has already ended the trace (finish_reason=tool_calls)
|
|
177
|
+
* before the user clicks reject.
|
|
178
|
+
*
|
|
179
|
+
* Resolves once the trace file is written. Returns the number of traces
|
|
180
|
+
* actually flushed (0 if nothing applicable was found).
|
|
181
|
+
*/
|
|
182
|
+
flushSession(sessionId: string, opts?: {
|
|
183
|
+
/**
|
|
184
|
+
* Cancellation source. Forwarded to the synthetic cancelled span as
|
|
185
|
+
* `attributes.cancel_reason`, so the trace UI can group / filter
|
|
186
|
+
* by source. The four `*_rejected|denied|cancelled` values are the
|
|
187
|
+
* concrete tool-call rejection sources; `aborted` / `shutdown` are
|
|
188
|
+
* generic abort paths used when no specific tool reject is known.
|
|
189
|
+
*/
|
|
190
|
+
reason?: 'user_rejected' | 'permission_denied' | 'plan_rejected' | 'ask_cancelled' | 'aborted' | 'shutdown';
|
|
191
|
+
cancelledTool?: {
|
|
192
|
+
toolName: string;
|
|
193
|
+
callId?: string;
|
|
194
|
+
toolInput?: unknown;
|
|
195
|
+
errorMessage?: string;
|
|
196
|
+
};
|
|
197
|
+
}): Promise<number>;
|
|
198
|
+
listTraces(offset?: number, limit?: number, filters?: TraceListFilters): Promise<TraceListResponse>;
|
|
199
|
+
getTraceDetail(traceId: string): Promise<TraceDetail | null>;
|
|
200
|
+
/** Wait for lifecycle/footer writes already accepted by the collector. */
|
|
201
|
+
flushPendingWrites(): Promise<void>;
|
|
202
|
+
clear(): Promise<void>;
|
|
203
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FileSystem } from '../../workspace/runtime/lib/common/index.js';
|
|
2
|
+
export type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'dnf' | 'homebrew' | 'unknown';
|
|
3
|
+
export type InstallMethod = {
|
|
4
|
+
type: 'package-manager';
|
|
5
|
+
packageManager: PackageManager;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'native';
|
|
8
|
+
} | {
|
|
9
|
+
type: 'unknown';
|
|
10
|
+
};
|
|
11
|
+
export interface Installation {
|
|
12
|
+
version: string;
|
|
13
|
+
tag: 'latest' | 'beta' | 'next';
|
|
14
|
+
method: InstallMethod;
|
|
15
|
+
path: string;
|
|
16
|
+
invoked: string;
|
|
17
|
+
}
|
|
18
|
+
export declare abstract class InstallationUtils {
|
|
19
|
+
static getCurrentInstallation(binary: string, mfs?: FileSystem, findCmd?: (cmd: string) => Promise<string | undefined>): Promise<Installation>;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a path is in the native installation directory
|
|
22
|
+
* - Windows: %LOCALAPPDATA%
|
|
23
|
+
* - Linux/macOS: ~/.local/
|
|
24
|
+
*/
|
|
25
|
+
private static isNativeInstallPath;
|
|
26
|
+
private static detectPackageManager;
|
|
27
|
+
/**
|
|
28
|
+
* Infer the package manager from an install path when command-line
|
|
29
|
+
* detection fails (issue #61217). A path living under a
|
|
30
|
+
* `node_modules` layout is a package-manager install; we distinguish the
|
|
31
|
+
* manager by well-known global store markers, defaulting to npm (which
|
|
32
|
+
* covers the common `/usr/local/lib/node_modules` and nvm layouts).
|
|
33
|
+
*/
|
|
34
|
+
private static detectPackageManagerFromPath;
|
|
35
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { TerminalType } from './terminal-detector-utils';
|
|
2
|
+
/**
|
|
3
|
+
* OSC 通知协议接口
|
|
4
|
+
*/
|
|
5
|
+
export interface OscNotificationProtocol {
|
|
6
|
+
name: string;
|
|
7
|
+
supportedTerminals: TerminalType[];
|
|
8
|
+
priority: number;
|
|
9
|
+
generate(message: string, title?: string): string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* OSC 进度协议接口
|
|
13
|
+
*/
|
|
14
|
+
export interface OscProgressProtocol {
|
|
15
|
+
name: string;
|
|
16
|
+
supportedTerminals: TerminalType[];
|
|
17
|
+
priority: number;
|
|
18
|
+
generate(state: ProgressState, percentage: number): string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 进度状态枚举
|
|
22
|
+
* 用于 OSC 9;4 进度协议
|
|
23
|
+
*/
|
|
24
|
+
export declare enum ProgressState {
|
|
25
|
+
CLEAR = 0,// 清除进度
|
|
26
|
+
NORMAL = 1,// 正常进度
|
|
27
|
+
ERROR = 2,// 错误状态
|
|
28
|
+
INDETERMINATE = 3,// 不确定进度
|
|
29
|
+
PAUSED = 4
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* OSC 协议工具类
|
|
33
|
+
* 提供各种 OSC (Operating System Command) 序列的生成和管理
|
|
34
|
+
*/
|
|
35
|
+
export declare abstract class OscProtocolUtils {
|
|
36
|
+
private static readonly ESC;
|
|
37
|
+
private static readonly BEL;
|
|
38
|
+
private static readonly ST;
|
|
39
|
+
private static readonly DCS;
|
|
40
|
+
/**
|
|
41
|
+
* 生成 OSC 777 通知序列 (推荐,广泛支持)
|
|
42
|
+
* 格式: ESC ] 777 ; notify ; title ; message BEL
|
|
43
|
+
*
|
|
44
|
+
* 支持终端: Ghostty, iTerm2, Windows Terminal, VSCode, Cursor, Windsurf,
|
|
45
|
+
* Foot, Contour, urxvt, Blink Shell, libvte-based
|
|
46
|
+
*
|
|
47
|
+
* @param title 通知标题
|
|
48
|
+
* @param message 通知消息
|
|
49
|
+
* @returns OSC 777 序列
|
|
50
|
+
*/
|
|
51
|
+
static generateOSC777(title: string, message: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* 生成 OSC 9 通知序列 (兼容性好)
|
|
54
|
+
* 格式: ESC ] 9 ; message BEL
|
|
55
|
+
*
|
|
56
|
+
* 支持终端: iTerm2, Kitty, Ghostty, Foot, libvte-based
|
|
57
|
+
*
|
|
58
|
+
* 注意: 与 ConEmu 的 OSC 9;4 进度报告有冲突
|
|
59
|
+
*
|
|
60
|
+
* @param message 通知消息
|
|
61
|
+
* @returns OSC 9 序列
|
|
62
|
+
*/
|
|
63
|
+
static generateOSC9(message: string): string;
|
|
64
|
+
/**
|
|
65
|
+
* 生成 OSC 99 通知序列 (Kitty 专有)
|
|
66
|
+
* 格式: ESC ] 99 ; [metadata] ; payload ST
|
|
67
|
+
*
|
|
68
|
+
* 支持终端: Kitty (v0.36.0+)
|
|
69
|
+
*
|
|
70
|
+
* 特性:
|
|
71
|
+
* - 支持通知更新 (通过相同的通知 ID)
|
|
72
|
+
* - 支持通知关闭事件回调
|
|
73
|
+
* - 适合进度报告
|
|
74
|
+
*
|
|
75
|
+
* @param message 通知消息
|
|
76
|
+
* @param id 可选的通知 ID,用于更新同一通知
|
|
77
|
+
* @returns OSC 99 序列
|
|
78
|
+
*/
|
|
79
|
+
static generateOSC99(message: string, id?: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* 生成 BEL 字符 (通用 fallback)
|
|
82
|
+
* 最基础的终端响铃,所有终端都支持
|
|
83
|
+
*
|
|
84
|
+
* @returns BEL 字符
|
|
85
|
+
*/
|
|
86
|
+
static generateBEL(): string;
|
|
87
|
+
/**
|
|
88
|
+
* 生成 OSC 9;4 进度序列
|
|
89
|
+
* 格式: ESC ] 9 ; 4 ; state ; percentage BEL
|
|
90
|
+
*
|
|
91
|
+
* 支持终端: Windows Terminal (v1.6+), iTerm2 (v3.6.6+), Ghostty
|
|
92
|
+
*
|
|
93
|
+
* @param state 进度状态
|
|
94
|
+
* @param percentage 进度百分比 (0-100)
|
|
95
|
+
* @returns OSC 9;4 序列
|
|
96
|
+
*/
|
|
97
|
+
static generateProgressOSC9_4(state: ProgressState, percentage?: number): string;
|
|
98
|
+
/**
|
|
99
|
+
* 生成 OSC 99 进度更新序列 (Kitty)
|
|
100
|
+
* 使用相同 ID 更新通知来实现进度显示
|
|
101
|
+
*
|
|
102
|
+
* @param message 进度消息
|
|
103
|
+
* @param id 通知 ID
|
|
104
|
+
* @returns OSC 99 序列
|
|
105
|
+
*/
|
|
106
|
+
static generateProgressOSC99Kitty(message: string, id: string): string;
|
|
107
|
+
/**
|
|
108
|
+
* 通知协议优先级列表
|
|
109
|
+
* 按优先级从高到低排序
|
|
110
|
+
*/
|
|
111
|
+
private static readonly NOTIFICATION_PROTOCOLS;
|
|
112
|
+
/**
|
|
113
|
+
* 根据终端类型选择最佳通知协议
|
|
114
|
+
*
|
|
115
|
+
* 选择策略:
|
|
116
|
+
* 1. 找到支持当前终端的协议
|
|
117
|
+
* 2. 按优先级排序
|
|
118
|
+
* 3. 返回最高优先级的协议
|
|
119
|
+
* 4. 如果没有匹配,返回 BEL fallback
|
|
120
|
+
*
|
|
121
|
+
* @param terminalType 终端类型
|
|
122
|
+
* @returns 最佳匹配的协议
|
|
123
|
+
*/
|
|
124
|
+
static selectNotificationProtocol(terminalType: TerminalType): OscNotificationProtocol;
|
|
125
|
+
/**
|
|
126
|
+
* 检测是否需要 tmux 包装
|
|
127
|
+
*
|
|
128
|
+
* @returns 是否在 tmux 中运行
|
|
129
|
+
*/
|
|
130
|
+
static needsTmuxWrapping(): boolean;
|
|
131
|
+
/**
|
|
132
|
+
* 为 tmux 环境包装 OSC 序列
|
|
133
|
+
*
|
|
134
|
+
* tmux 会拦截 OSC 序列,需要使用 DCS tmux 透传协议
|
|
135
|
+
* 格式: DCS tmux ; <escaped-sequence> ST
|
|
136
|
+
*
|
|
137
|
+
* 注意: ESC 字符需要双写以进行转义
|
|
138
|
+
*
|
|
139
|
+
* @param oscSequence 原始 OSC 序列
|
|
140
|
+
* @returns tmux 包装后的序列
|
|
141
|
+
*/
|
|
142
|
+
static wrapForTmux(oscSequence: string): string;
|
|
143
|
+
static writeToTerminal(sequence: string): void;
|
|
144
|
+
/**
|
|
145
|
+
* 进度协议优先级列表
|
|
146
|
+
* 按优先级从高到低排序
|
|
147
|
+
*/
|
|
148
|
+
private static readonly PROGRESS_PROTOCOLS;
|
|
149
|
+
/**
|
|
150
|
+
* 根据终端类型选择最佳进度协议
|
|
151
|
+
*
|
|
152
|
+
* @param terminalType 终端类型
|
|
153
|
+
* @returns 最佳匹配的进度协议,如果不支持则返回 null
|
|
154
|
+
*/
|
|
155
|
+
static selectProgressProtocol(terminalType: TerminalType): OscProgressProtocol | null;
|
|
156
|
+
/**
|
|
157
|
+
* 生成进度 OSC 序列(自动选择协议)
|
|
158
|
+
*
|
|
159
|
+
* @param terminalType 终端类型
|
|
160
|
+
* @param state 进度状态
|
|
161
|
+
* @param percentage 进度百分比 (0-100)
|
|
162
|
+
* @returns OSC 序列,如果终端不支持则返回 null
|
|
163
|
+
*/
|
|
164
|
+
static generateProgress(terminalType: TerminalType, state: ProgressState, percentage?: number): string | null;
|
|
165
|
+
static supportsProgressProtocol(terminalType: TerminalType): boolean;
|
|
166
|
+
/**
|
|
167
|
+
* 生成 OSC 52 剪贴板序列
|
|
168
|
+
* 格式: ESC ] 52 ; c ; <base64-data> BEL
|
|
169
|
+
*
|
|
170
|
+
* OSC 52 是一种终端转义序列,允许程序设置或获取系统剪贴板内容。
|
|
171
|
+
* 它特别适用于 SSH 远程会话,因为数据通过终端转义序列传递到本地终端,
|
|
172
|
+
* 从而绕过了远程系统无法直接访问本地剪贴板的限制。
|
|
173
|
+
*
|
|
174
|
+
* 支持终端: iTerm2, Ghostty, Kitty, Alacritty, WezTerm, Windows Terminal,
|
|
175
|
+
* VSCode 集成终端, Cursor, Windsurf, GNOME Terminal, Konsole, XTerm 等
|
|
176
|
+
*
|
|
177
|
+
* @param text 要复制到剪贴板的文本
|
|
178
|
+
* @returns OSC 52 序列
|
|
179
|
+
*/
|
|
180
|
+
static generateOSC52(text: string): string;
|
|
181
|
+
/**
|
|
182
|
+
* 生成带 tmux 包装的 OSC 52 序列
|
|
183
|
+
* 在 tmux 环境中,需要使用 DCS 透传协议
|
|
184
|
+
*
|
|
185
|
+
* @param text 要复制到剪贴板的文本
|
|
186
|
+
* @returns 适当包装的 OSC 52 序列
|
|
187
|
+
*/
|
|
188
|
+
static generateOSC52WithTmuxSupport(text: string): string;
|
|
189
|
+
/**
|
|
190
|
+
* 检查当前终端是否支持 OSC 52 协议
|
|
191
|
+
*
|
|
192
|
+
* @returns 是否支持 OSC 52
|
|
193
|
+
*/
|
|
194
|
+
static supportsOSC52(): boolean;
|
|
195
|
+
/**
|
|
196
|
+
* 检测是否在 SSH 会话中
|
|
197
|
+
*
|
|
198
|
+
* @returns 是否在 SSH 会话中
|
|
199
|
+
*/
|
|
200
|
+
static isSSHSession(): boolean;
|
|
201
|
+
/**
|
|
202
|
+
* 通过 OSC 52 协议复制文本到剪贴板
|
|
203
|
+
* 适用于 SSH 远程环境和支持 OSC 52 的本地终端
|
|
204
|
+
*
|
|
205
|
+
* @param text 要复制的文本
|
|
206
|
+
* @returns 是否成功写入(注意:这只表示序列已发送,不保证终端支持)
|
|
207
|
+
*/
|
|
208
|
+
static copyToClipboardViaOSC52(text: string): boolean;
|
|
209
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const PROCESS_IDENTITY_MATCH_TOLERANCE_MS = 2000;
|
|
2
|
+
export declare const PROCESS_IDENTITY_QUERY_TIMEOUT_MS = 5000;
|
|
3
|
+
export interface ProcessIdentity {
|
|
4
|
+
procStart?: string;
|
|
5
|
+
procStartFt?: string;
|
|
6
|
+
/** Linux /proc/<pid>/stat field 22, stable for one PID generation. */
|
|
7
|
+
procStartTicks?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function unixMsToWindowsFileTime(unixMs: number): string;
|
|
10
|
+
export declare function windowsFileTimeToUnixMs(fileTime: string | undefined): number | undefined;
|
|
11
|
+
export declare function getProcessIdentityStartMs(identity: ProcessIdentity): number | undefined;
|
|
12
|
+
export declare function parseLinuxProcStatStartTicks(raw: string): string | undefined;
|
|
13
|
+
export interface LinuxClockInfo {
|
|
14
|
+
bootTimeMs: number;
|
|
15
|
+
ticksPerSecond: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function parseLinuxBootTimeMs(raw: string): number | undefined;
|
|
18
|
+
export declare function parseLinuxAuxvClockTicks(raw: Buffer, wordSize?: number, byteOrder?: 'LE' | 'BE'): number | undefined;
|
|
19
|
+
export declare function getCurrentProcessIdentity(platform?: NodeJS.Platform): ProcessIdentity;
|
|
20
|
+
export declare function queryLinuxProcessStartIdentity(pid: number, readStat?: (path: string) => Promise<string>, getClockInfo?: () => Promise<LinuxClockInfo | undefined>): Promise<ProcessIdentity | undefined>;
|
|
21
|
+
export declare function isProcessAlive(pid: number): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Parse `ps -o etime=` output (`[[dd-]hh:]mm:ss`) into elapsed milliseconds.
|
|
24
|
+
* Returns undefined when the token is missing or malformed.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parsePsEtimeToMs(raw: string): number | undefined;
|
|
27
|
+
export declare function queryProcessStartIdentity(pid: number, platform?: NodeJS.Platform): Promise<ProcessIdentity | undefined>;
|
|
28
|
+
export declare function compareProcessIdentities(expected: ProcessIdentity, actual: ProcessIdentity): 'same' | 'different' | 'unknown';
|
|
29
|
+
export declare function readProcessIdentity(value: Partial<ProcessIdentity> | Record<string, unknown> | null | undefined): ProcessIdentity;
|
|
30
|
+
export declare function hasProcessIdentity(identity: ProcessIdentity | undefined): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* True when pid is alive AND (no expected identity / query unknown / identities match).
|
|
33
|
+
* Identity mismatch means the PID was reused — treat as dead.
|
|
34
|
+
*/
|
|
35
|
+
export declare function isMatchingProcessAlive(pid: number, expected: ProcessIdentity | undefined, options?: {
|
|
36
|
+
isAlive?: (pid: number) => boolean;
|
|
37
|
+
queryIdentity?: (pid: number) => Promise<ProcessIdentity | undefined>;
|
|
38
|
+
currentIdentity?: () => ProcessIdentity;
|
|
39
|
+
platform?: NodeJS.Platform;
|
|
40
|
+
}): Promise<boolean>;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 安全审计日志 — agent-cli 层入口
|
|
3
|
+
*
|
|
4
|
+
* agent-cli 将运行时安全事件 append 到 `<HomeDir>/audit-log/spool/*.jsonl`;
|
|
5
|
+
* Desktop Host 在安全中心读取前导入 spool,并补齐正式链上的
|
|
6
|
+
* sequence/prevHash/hash。
|
|
7
|
+
*
|
|
8
|
+
* `<HomeDir>` 由 {@link resolveCliHomeDir} 解析:
|
|
9
|
+
* 定制版 `dataLayout.configDir.userDirName` → `CODEBUDDY_CONFIG_DIR` 环境变量(非空时)→ `~/.codebuddy`。
|
|
10
|
+
* Desktop 在 spawn sidecar 时已显式注入 `CODEBUDDY_CONFIG_DIR=<workbuddy
|
|
11
|
+
* config dir>`,所以 Desktop 端 spool 仍落在 `~/.workbuddy/audit-log/`,
|
|
12
|
+
* 与正式链根目录一致;独立 codebuddy-code CLI 用户则落在 `~/.codebuddy/
|
|
13
|
+
* audit-log/`,与 CLI 其他状态目录约定一致。
|
|
14
|
+
*
|
|
15
|
+
* 写入受 `CODEBUDDY_ENABLE_SECURITY_AUDIT` 环境变量控制:
|
|
16
|
+
* - WorkBuddy Desktop spawn sidecar 时显式设为 `'1'`,spool 持续写入;
|
|
17
|
+
* Desktop main 进程定期 drain 到正式审计链。
|
|
18
|
+
* - 独立 codebuddy-code CLI 用户未显式设置时,所有 append* 函数 no-op,
|
|
19
|
+
* 避免给没有审计 UI / drain 链路的环境留下持续增长的 spool 文件。
|
|
20
|
+
*/
|
|
21
|
+
export declare function createCommandPreview(command: string): string;
|
|
22
|
+
export interface SecurityAuditContext {
|
|
23
|
+
sessionId?: string;
|
|
24
|
+
requestId?: string;
|
|
25
|
+
toolCallId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SecurityAuditEntry extends SecurityAuditContext {
|
|
28
|
+
/** 写入 spool 时生成,导入端据此识别已入库的行。 */
|
|
29
|
+
id?: string;
|
|
30
|
+
category?: string;
|
|
31
|
+
eventType?: string;
|
|
32
|
+
/** i18n key,对齐 `securityCenter.audit.*`。 */
|
|
33
|
+
messageKey?: string;
|
|
34
|
+
/** i18n 插值参数,对应 messageKey 模板中的 `{name}`。 */
|
|
35
|
+
messageParams?: Record<string, string | number>;
|
|
36
|
+
timestamp?: number;
|
|
37
|
+
decision?: 'approved' | 'rejected' | 'blocked' | 'allowed' | 'failed' | 'info';
|
|
38
|
+
commandPreview?: string;
|
|
39
|
+
commandHash?: string;
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export declare function appendToolControlBlockedAuditLog(detail: {
|
|
43
|
+
toolId: string;
|
|
44
|
+
toolName: string;
|
|
45
|
+
serverId?: string;
|
|
46
|
+
reason: 'tool_disabled' | 'mcp_server_disabled' | 'mcp_tool_disabled' | 'custom_mcp_disabled';
|
|
47
|
+
} & SecurityAuditContext): void;
|
|
48
|
+
export type CommandSafetyAction = 'ask-matched' | 'allow-matched' | 'deny-matched' | 'excluded-command' | 'exec-policy-allow' | 'exec-policy-forbidden' | 'bypass-legacy-silent' | 'session-cache-hit' | 'sensitive-session-cache-hit' | 'pre-exec-bypass-requested' | 'pre-exec-bypass-approved' | 'pre-exec-bypass-rejected' | 'bypass-blocked-by-policy' | 'allow-overridden-by-credential' | 'allow-overridden-by-opaque-host' | 'credential-or-opaque-blocked' | 'safety-filter-ask-override' | 'safety-filter-allow-override' | 'auto-approved' | 'auto-rejected' | 'sandbox-executed' | 'program-blacklist-blocked'
|
|
49
|
+
/**
|
|
50
|
+
* 网络严格模式的系统层兜底拦截(genie/genie#122764)。
|
|
51
|
+
*
|
|
52
|
+
* 与 `program-blacklist-blocked` 同型:都是「不可通过审批或 native 重跑修复」
|
|
53
|
+
* 的硬拦截,必须自带独立动作。**不能复用 `sandbox-executed`**——那个的
|
|
54
|
+
* decision 是 `allowed`、文案是「沙箱内执行命令」,与同时落下的
|
|
55
|
+
* `network-strict.blocked`(blocked)在同一条命令上自相矛盾,安全中心按
|
|
56
|
+
* 命令安全筛选时会把已拦截的命令误判为放行。
|
|
57
|
+
*/
|
|
58
|
+
| 'network-strict-blocked' | 'approved' | 'rejected' | 'system-tool-blocked' | 'system-tool-confirm-approved' | 'system-tool-confirm-rejected' | 'system-tool-auto-executed' | 'system-tool-session-cache-hit';
|
|
59
|
+
export type FileSafetyAction = 'block-listed' | 'deny-matched' | 'allow-listed' | 'ask-matched' | 'session-cache-hit' | 'auto-approved' | 'auto-rejected' | 'needs-approval' | 'approved' | 'rejected';
|
|
60
|
+
export type BulkDeleteAuditAction = 'needs-approval' | 'approved' | 'rejected';
|
|
61
|
+
export type SensitiveProtectionAuditAction = 'detected' | 'approval-resolved' | 'approval-timeout' | 'protection-applied' | 'original-reused' | 'protection-reused' | 'failure';
|
|
62
|
+
export interface SensitiveProtectionAuditDetail extends SecurityAuditContext {
|
|
63
|
+
behavior?: 'fail-open' | 'fail-close';
|
|
64
|
+
choice?: 'allow-original' | 'allow-and-protect' | 'allow-execution' | 'deny';
|
|
65
|
+
detectionRef?: string;
|
|
66
|
+
direction?: 'ingress' | 'egress';
|
|
67
|
+
entryCount?: number;
|
|
68
|
+
itemCount?: number;
|
|
69
|
+
plaintexts?: readonly string[];
|
|
70
|
+
reasonCode?: string;
|
|
71
|
+
ruleCount?: number;
|
|
72
|
+
source?: string;
|
|
73
|
+
stage?: 'detection' | 'approval' | 'protection';
|
|
74
|
+
}
|
|
75
|
+
interface SecurityAuditLog {
|
|
76
|
+
entries: SecurityAuditEntry[];
|
|
77
|
+
}
|
|
78
|
+
export interface SandboxBlockAuditLogEvent extends SecurityAuditContext {
|
|
79
|
+
blockType: 'network';
|
|
80
|
+
target: string;
|
|
81
|
+
/** 是否命中恶意网站库。安全中心据此使用面向用户的网络安全文案。 */
|
|
82
|
+
malicious?: boolean;
|
|
83
|
+
/** 面向用户的风险类型,例如“黑灰产 / 钓鱼网站”;不包含 DB 等实现信息。 */
|
|
84
|
+
riskType?: string;
|
|
85
|
+
/**
|
|
86
|
+
* 本次拦截是否来自**网络严格模式**的系统层兜底(genie/genie#122764)。
|
|
87
|
+
*
|
|
88
|
+
* 与 `malicious` 正交:恶意命中是「域名在黑名单里」,严格模式是「程序绕过了代理,
|
|
89
|
+
* 被系统层直接拒绝」——后者与具体域名/规则无关。安全中心据此用「严格模式」文案
|
|
90
|
+
* 而非「域名被拦」文案,让用户看到真实成因,不去找一条并不存在的规则。
|
|
91
|
+
*/
|
|
92
|
+
networkStrict?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export type NetworkAccessAuditOutcome = 'success' | 'allow-matched' | 'ask-matched' | 'approved' | 'auto-approved' | 'auto-rejected' | 'session-cache-hit' | 'blocked' | 'rejected' | 'failed';
|
|
95
|
+
export declare function appendSecurityAuditEntry(entry: SecurityAuditEntry): void;
|
|
96
|
+
export declare function appendCommandSafetyAuditLog(action: CommandSafetyAction, detail: {
|
|
97
|
+
command?: string;
|
|
98
|
+
matchedRule?: string;
|
|
99
|
+
reason?: string;
|
|
100
|
+
programs?: string;
|
|
101
|
+
} & SecurityAuditContext): void;
|
|
102
|
+
/**
|
|
103
|
+
* 文件操作类型,用于审计日志按 DELETE/WRITE/READ 分文案。
|
|
104
|
+
*
|
|
105
|
+
* 来源:sandbox 上报的 `actionMask` 位掩码(READ=0x01 / WRITE=0x02 /
|
|
106
|
+
* DELETE=0x04 / EXECUTE=0x08)。优先级:DELETE > WRITE > READ;其它情况
|
|
107
|
+
* (仅 EXECUTE 或 0)回退到 `access`,沿用旧文案。
|
|
108
|
+
*/
|
|
109
|
+
export type FileSafetyOperation = 'read' | 'write' | 'delete' | 'access';
|
|
110
|
+
export declare function fileSafetyOperationFromActionMask(actionMask: number | undefined): FileSafetyOperation;
|
|
111
|
+
export declare function appendFileSafetyAuditLog(action: FileSafetyAction, detail: {
|
|
112
|
+
paths: string[];
|
|
113
|
+
matchedRule?: string;
|
|
114
|
+
operation?: FileSafetyOperation;
|
|
115
|
+
} & SecurityAuditContext): void;
|
|
116
|
+
export declare function appendBulkDeleteAuditLog(action: BulkDeleteAuditAction, detail: {
|
|
117
|
+
command?: string;
|
|
118
|
+
count?: number;
|
|
119
|
+
threshold?: number;
|
|
120
|
+
targets?: string[];
|
|
121
|
+
} & SecurityAuditContext): void;
|
|
122
|
+
export declare function appendSensitiveProtectionAuditLog(action: SensitiveProtectionAuditAction, detail: SensitiveProtectionAuditDetail): void;
|
|
123
|
+
export declare function appendNetworkAccessAuditLog(target: string, outcome: boolean | NetworkAccessAuditOutcome, detail?: {
|
|
124
|
+
reason?: string;
|
|
125
|
+
matchedRule?: string;
|
|
126
|
+
malicious?: boolean;
|
|
127
|
+
riskType?: string;
|
|
128
|
+
} & SecurityAuditContext): void;
|
|
129
|
+
export declare function appendSandboxBlockAuditLog(event: SandboxBlockAuditLogEvent): void;
|
|
130
|
+
/**
|
|
131
|
+
* 测试辅助:直接读取当前磁盘上的审计日志快照。生产代码不应使用。
|
|
132
|
+
*/
|
|
133
|
+
export declare function readSecurityAuditLogForTest(): SecurityAuditLog;
|
|
134
|
+
export {};
|