@tencent-ai/agent-harness 0.2.0-beta.7 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/cli/CHANGELOG.md +74 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +263 -217
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +3 -1
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +7 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +6 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +46 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +27 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +7 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +46 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +35 -22
- package/cli/dist-server/types/workspace/product/lib/common/types/index.d.ts +0 -1
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +0 -7
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +41 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
- package/cli/dist-server/types/workspace/product/lib/common/types/workspace-report.d.ts +0 -119
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './delegating-shell-service';
|
|
2
|
+
export * from './driver-shell-service';
|
|
3
|
+
export * from './output-spiller';
|
|
4
|
+
export * from './shell-protocol';
|
|
5
|
+
export * from './shell-service';
|
|
6
|
+
export * from './shell-snapshot-protocol';
|
|
7
|
+
export * from './shell-snapshot-service';
|
|
8
|
+
export * from './terminal-serializer';
|
|
9
|
+
export * from './truncate-buffer';
|
|
10
|
+
export * from './windows-process-utils';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ShellRuntimePaths } from './shell-runtime-paths';
|
|
2
|
+
export interface LanguageShimEnvOptions {
|
|
3
|
+
nodeShimEnabled?: boolean;
|
|
4
|
+
pythonShimEnabled?: boolean;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
conversationRequestId?: string;
|
|
7
|
+
toolCallId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function injectNodeShimEnv(env: Record<string, string>, runtimePaths: Pick<ShellRuntimePaths, 'nodeShimPath'>): void;
|
|
10
|
+
export declare function injectPythonShimEnv(env: Record<string, string>, runtimePaths: Pick<ShellRuntimePaths, 'shimDir'>): void;
|
|
11
|
+
export declare function injectLanguageShimEnv(env: Record<string, string>, runtimePaths: Pick<ShellRuntimePaths, 'shimDir' | 'nodeShimPath'>, options?: LanguageShimEnvOptions): void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OutputSpiller - 流式将完整输出写入磁盘临时文件。
|
|
3
|
+
*
|
|
4
|
+
* 与 TruncateBuffer 配合使用:TruncateBuffer 在内存中只保留 head+tail(给 LLM),
|
|
5
|
+
* OutputSpiller 将完整输出流式写入磁盘(供用户按需读取)。
|
|
6
|
+
*
|
|
7
|
+
* 使用方式:
|
|
8
|
+
* const spiller = new OutputSpiller(filePath);
|
|
9
|
+
* // 在每次收到数据时同时 push
|
|
10
|
+
* spiller.push(chunk);
|
|
11
|
+
* // 完成后关闭
|
|
12
|
+
* await spiller.close();
|
|
13
|
+
* // 获取文件路径和总字节数
|
|
14
|
+
* spiller.filePath; // 磁盘文件路径
|
|
15
|
+
* spiller.totalBytes; // 写入的总字节数
|
|
16
|
+
*/
|
|
17
|
+
export declare class OutputSpiller {
|
|
18
|
+
readonly filePath: string;
|
|
19
|
+
private stream;
|
|
20
|
+
private _totalBytes;
|
|
21
|
+
private _closed;
|
|
22
|
+
private _hasError;
|
|
23
|
+
constructor(filePath: string);
|
|
24
|
+
push(data: string): void;
|
|
25
|
+
close(): Promise<void>;
|
|
26
|
+
get totalBytes(): number;
|
|
27
|
+
get hasError(): boolean;
|
|
28
|
+
get isClosed(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Remove the spill file (e.g. if output wasn't actually truncated).
|
|
31
|
+
*
|
|
32
|
+
* Closes the underlying WriteStream first to release the fd; otherwise the
|
|
33
|
+
* stream lingers until V8 GC collects it, at which point Node logs
|
|
34
|
+
* "Closing file descriptor X on garbage collection" and may throw EBADF
|
|
35
|
+
* if the fd number was reused. See bash-tool auto-background path where
|
|
36
|
+
* cleanup() runs without buildForegroundResult having closed the spiller.
|
|
37
|
+
*/
|
|
38
|
+
cleanup(): Promise<void>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerShell safe-delete 预置脚本。
|
|
3
|
+
*
|
|
4
|
+
* 目标:在 PowerShell 路径下统一把 `rm` / `del` / `erase` / `ri` / `rmdir` /
|
|
5
|
+
* `unlink` 路由到回收站删除逻辑,并对失败场景保持 fail-closed(拒绝真删)。
|
|
6
|
+
*
|
|
7
|
+
* 说明:
|
|
8
|
+
* - 优先调用 genie-trash native helper(若存在)。
|
|
9
|
+
* - binary 不可用时回退到 Microsoft.VisualBasic 回收站 API。
|
|
10
|
+
* - 仅在当前 PowerShell 进程内生效;通过全局标记避免重复定义。
|
|
11
|
+
*/
|
|
12
|
+
export declare const POWERSHELL_SAFE_DELETE_PRELUDE: string;
|
|
13
|
+
export declare function wrapPowerShellCommandWithSafeDelete(command: string, options?: {
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
inlineEnv?: Record<string, string | undefined>;
|
|
16
|
+
}): string;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type BulkGuardApprovalScope = 'turn';
|
|
2
|
+
export declare const DEFAULT_SAFE_DELETE_BULK_THRESHOLD = 50;
|
|
3
|
+
export declare const SAFE_DELETE_BULK_STATE_DIR_NAME = "codebuddy-safe-delete-bulk";
|
|
4
|
+
export interface BulkGuardContextInput {
|
|
5
|
+
stateRoot: string;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
toolCallId: string;
|
|
8
|
+
threshold: number;
|
|
9
|
+
conversationRequestId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface BulkGuardContext extends BulkGuardContextInput {
|
|
12
|
+
requestId: string;
|
|
13
|
+
sessionHash: string;
|
|
14
|
+
sessionDir: string;
|
|
15
|
+
statePath: string;
|
|
16
|
+
}
|
|
17
|
+
export interface BulkGuardConfirmPayload {
|
|
18
|
+
count: number;
|
|
19
|
+
threshold: number;
|
|
20
|
+
scope: BulkGuardApprovalScope;
|
|
21
|
+
targets: string[];
|
|
22
|
+
targetCount: number;
|
|
23
|
+
}
|
|
24
|
+
export type BulkGuardRejectedPayload = BulkGuardConfirmPayload;
|
|
25
|
+
export type BulkGuardDecision = {
|
|
26
|
+
kind: 'allow';
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'confirmRequired';
|
|
29
|
+
payload: BulkGuardConfirmPayload;
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'rejected';
|
|
32
|
+
payload: BulkGuardRejectedPayload;
|
|
33
|
+
};
|
|
34
|
+
export interface BulkGuardRequestState {
|
|
35
|
+
count: number;
|
|
36
|
+
updatedAt: number;
|
|
37
|
+
}
|
|
38
|
+
export interface BulkGuardToolApprovalState {
|
|
39
|
+
approved: boolean;
|
|
40
|
+
updatedAt: number;
|
|
41
|
+
}
|
|
42
|
+
export interface BulkGuardRequestRejectionState {
|
|
43
|
+
rejected: boolean;
|
|
44
|
+
count: number;
|
|
45
|
+
threshold: number;
|
|
46
|
+
targets: string[];
|
|
47
|
+
targetCount: number;
|
|
48
|
+
updatedAt: number;
|
|
49
|
+
}
|
|
50
|
+
export interface BulkGuardState {
|
|
51
|
+
requests: Record<string, BulkGuardRequestState>;
|
|
52
|
+
toolApprovals: Record<string, BulkGuardToolApprovalState>;
|
|
53
|
+
requestRejections?: Record<string, BulkGuardRequestRejectionState>;
|
|
54
|
+
}
|
|
55
|
+
export type BulkGuardSignal = {
|
|
56
|
+
type: 'confirmRequired';
|
|
57
|
+
payload: BulkGuardConfirmPayload;
|
|
58
|
+
} | {
|
|
59
|
+
type: 'rejected';
|
|
60
|
+
payload: BulkGuardRejectedPayload;
|
|
61
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BulkGuardConfirmPayload } from './contract';
|
|
2
|
+
export declare const SAFE_DELETE_BULK_CONFIRM_MARKER = "[safe-delete][SAFE_DELETE_BULK_CONFIRM_REQUIRED]";
|
|
3
|
+
export declare const SAFE_DELETE_BULK_ERROR_MARKER = "[safe-delete][SAFE_DELETE_BULK_GUARD_ERROR]";
|
|
4
|
+
export declare function formatSafeDeleteBulkConfirmMarker(payload: BulkGuardConfirmPayload): string;
|
|
5
|
+
export declare function parseSafeDeleteBulkConfirmMarker(output: string): BulkGuardConfirmPayload | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BulkGuardApprovalScope, BulkGuardConfirmPayload, BulkGuardContext, BulkGuardContextInput, BulkGuardDecision, BulkGuardSignal } from './contract';
|
|
2
|
+
export declare function createSafeDeleteBulkGuardContext(input: BulkGuardContextInput): BulkGuardContext;
|
|
3
|
+
export declare function checkSafeDeleteBulkGuard(context: BulkGuardContext, targets: readonly string[]): BulkGuardDecision;
|
|
4
|
+
export declare function approveSafeDeleteBulkGuard(context: BulkGuardContext, scope?: BulkGuardApprovalScope): void;
|
|
5
|
+
export declare function rejectSafeDeleteBulkGuard(context: BulkGuardContext, payload: BulkGuardConfirmPayload): void;
|
|
6
|
+
/**
|
|
7
|
+
* 从 side-channel 信号文件读取 bulk-guard 决策结果。
|
|
8
|
+
*
|
|
9
|
+
* 返回 undefined 表示无信号(guard 未触发 / 文件不存在)。
|
|
10
|
+
* 读取后自动删除信号文件,防止后续 tool call 误读到陈旧信号。
|
|
11
|
+
*/
|
|
12
|
+
export declare function readBulkGuardSignalFile(context: BulkGuardContext): BulkGuardSignal | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { buildPowerShellSafeDeleteEnv, buildSafeDeleteEnv, type SafeDeleteEnvBuildOptions } from './safe-delete-env';
|
|
2
|
+
export { buildSafeDeletePosixBootstrap } from './safe-delete-bootstrap';
|
|
3
|
+
export { isSafeDeleteHelperProcessExecRecord, isSafeDeleteHelperPath } from './safe-delete-attribution';
|
|
4
|
+
export { appendSafeDeleteReportEvent, attachSafeDeleteReportEvents, ensureSafeDeleteReportPath, readSafeDeleteReport, SAFE_DELETE_REPORT_ENV, type SafeDeleteReportEvent, } from './safe-delete-report';
|
|
5
|
+
export { movePathToTrash, type MovePathToTrashOptions } from './safe-delete-trash-service';
|
|
6
|
+
export { logSafeDeleteInjection, parseSafeDeleteBulkThreshold, resolveSafeDeleteRuntimeConfig, resolveSafeDeleteRuntimeEnabled, type SafeDeleteRuntimeConfig, } from './safe-delete-settings';
|
|
7
|
+
export { approveSafeDeleteBulkGuard, createSafeDeleteBulkGuardContext, DEFAULT_SAFE_DELETE_BULK_THRESHOLD, readBulkGuardSignalFile, rejectSafeDeleteBulkGuard, SAFE_DELETE_BULK_STATE_DIR_NAME, type BulkGuardSignal, } from './bulk-guard';
|
|
8
|
+
export { resolveWindowsRecycleBinAuditPath, filterSafeDeleteTempProbeNoise, matchesSafeDeleteEscalationCommand, parseSafeDeleteBulkConfirmInfo, shouldEscalateSafeDeleteBulkConfirm, shouldEscalateSafeDeleteFailClosed, normalizeWindowsShellPathForAudit, SAFE_DELETE_BULK_CONFIRM_MARKER_RE, SAFE_DELETE_FAIL_CLOSED_MARKER_RE, type SafeDeleteBulkConfirmInfo, } from './safe-delete-sandbox-helpers';
|
|
9
|
+
/**
|
|
10
|
+
* 从 sandbox 配置判定 safe-delete 运行时是否启用。
|
|
11
|
+
*
|
|
12
|
+
* 默认启用(fail-open):未配置或读取失败时返回 true,
|
|
13
|
+
* 只有显式设为 false 才禁用。
|
|
14
|
+
*/
|
|
15
|
+
export declare function isSafeDeleteRuntimeEnabled(sandboxConfig: {
|
|
16
|
+
safeDeleteRuntimeEnabled?: boolean;
|
|
17
|
+
} | undefined): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* safe-delete 归因辅助——判定 sandbox 拦截记录是否属于 safe-delete 链路。
|
|
3
|
+
*
|
|
4
|
+
* 被 sandbox-attribution-analyzer 消费,用于把 safe-delete helper
|
|
5
|
+
* (genie-trash / osascript / perl SAFE_DELETE 包装)的 process-exec*
|
|
6
|
+
* 拦截归类为「可恢复」,允许走本地重跑降级。
|
|
7
|
+
*/
|
|
8
|
+
import type { FileBlockRecord } from '../../sandbox-cli/sandbox-cli-protocol';
|
|
9
|
+
export declare function isSafeDeleteHelperPath(blockedPath: string | undefined): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 判定 block record 是否属于 safe-delete helper 链路的 process-exec* 拦截。
|
|
12
|
+
*
|
|
13
|
+
* 内部先检查 operation 是否为 process-exec*,再判定路径/签名。
|
|
14
|
+
* 非 process-exec* 操作直接返回 false。
|
|
15
|
+
*/
|
|
16
|
+
export declare function isSafeDeleteHelperProcessExecRecord(record: FileBlockRecord): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildSafeDeletePosixBootstrap(shell: string): string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type LanguageShimEnvOptions } from '../language-shim-env';
|
|
2
|
+
import { type ShellRuntimePaths } from '../shell-runtime-paths';
|
|
3
|
+
import type { SafeDeleteRuntimeConfig } from './safe-delete-settings';
|
|
4
|
+
export interface SafeDeleteEnvBuildOptions extends LanguageShimEnvOptions {
|
|
5
|
+
/**
|
|
6
|
+
* 是否启用运行时 safe-delete 环境变量注入。
|
|
7
|
+
* 默认为 true(兼容历史行为)。
|
|
8
|
+
*/
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
bulkThreshold?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 注入 safe-delete 自身所需环境变量。
|
|
14
|
+
* brokered shell / toybox / zsh 由 shell-runtime-env.ts 负责组合。
|
|
15
|
+
*/
|
|
16
|
+
export declare function injectSafeDeleteEnv(env: Record<string, string>, runtimePaths: ShellRuntimePaths, options?: SafeDeleteEnvBuildOptions): void;
|
|
17
|
+
export declare function buildSafeDeleteEnv(baseEnv?: Record<string, string>, options?: SafeDeleteEnvBuildOptions): Record<string, string>;
|
|
18
|
+
/**
|
|
19
|
+
* 构建 PowerShell 子进程的 safe-delete 上下文环境变量。
|
|
20
|
+
*
|
|
21
|
+
* 对齐 BashTool 的 buildBashContextEnv + safe-delete 注入:
|
|
22
|
+
* - session ID:Node/Python shim 的启动条件(无 ID 时 shim 直接 return)
|
|
23
|
+
* - NODE_OPTIONS / PYTHONPATH / PATH / BASH_ENV 等:shim 加载路径
|
|
24
|
+
*
|
|
25
|
+
* 确保 PowerShell 里再执行 `node -e "fs.unlinkSync(...)"` 或
|
|
26
|
+
* `python -c "os.remove(...)"` 时 safe-delete shim 能正常生效。
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildPowerShellSafeDeleteEnv(sessionManager: {
|
|
29
|
+
sessionSubject: {
|
|
30
|
+
value: {
|
|
31
|
+
id?: string;
|
|
32
|
+
conversationRequestId?: string;
|
|
33
|
+
} | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
}, safeDeleteRuntimeConfig: SafeDeleteRuntimeConfig, options?: {
|
|
36
|
+
toolCallId?: string;
|
|
37
|
+
bulkThreshold?: number;
|
|
38
|
+
session?: {
|
|
39
|
+
id?: string;
|
|
40
|
+
conversationRequestId?: string;
|
|
41
|
+
};
|
|
42
|
+
}): Record<string, string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const SAFE_DELETE_REPORT_ENV = "CODEBUDDY_SAFE_DELETE_REPORT_PATH";
|
|
2
|
+
export type SafeDeleteRuntime = 'bash' | 'node' | 'powershell' | 'python';
|
|
3
|
+
export interface SafeDeleteReportEvent {
|
|
4
|
+
operation: 'trash';
|
|
5
|
+
path: string;
|
|
6
|
+
runtime?: SafeDeleteRuntime;
|
|
7
|
+
timestamp?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SafeDeleteReportLogger {
|
|
10
|
+
debug?: (message: string) => void;
|
|
11
|
+
info?: (message: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function appendSafeDeleteReportEvent(reportPath: string | undefined, event: SafeDeleteReportEvent): Promise<void>;
|
|
14
|
+
export declare function ensureSafeDeleteReportPath(env: Record<string, string>): string | undefined;
|
|
15
|
+
export declare function readSafeDeleteReport(reportPath: string | undefined, logger?: SafeDeleteReportLogger): SafeDeleteReportEvent[];
|
|
16
|
+
export declare function attachSafeDeleteReportEvents<T extends object>(result: T, reportPath: string | undefined, logger?: SafeDeleteReportLogger): T & {
|
|
17
|
+
safeDeleteEvents?: SafeDeleteReportEvent[];
|
|
18
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* safe-delete 沙箱辅助逻辑——从 sandbox-orchestrator.ts 提取的纯函数。
|
|
3
|
+
*
|
|
4
|
+
* 包括:
|
|
5
|
+
* - Windows 回收站路径反解析($I/$R → 原始路径)
|
|
6
|
+
* - safe-delete fail-closed 审批判定
|
|
7
|
+
* - safe-delete 临时探针噪声过滤
|
|
8
|
+
*/
|
|
9
|
+
import type { FileBlockRecord } from '../../sandbox-cli/sandbox-cli-protocol';
|
|
10
|
+
import type { ShellResult } from '../shell-protocol';
|
|
11
|
+
import { type BulkGuardConfirmPayload } from './bulk-guard';
|
|
12
|
+
export declare const SAFE_DELETE_FAIL_CLOSED_MARKER_RE: RegExp;
|
|
13
|
+
export declare const SAFE_DELETE_BULK_CONFIRM_MARKER_RE: RegExp;
|
|
14
|
+
export declare function extractWindowsRecycleBinOriginalPathFromInfoBuffer(buffer: Buffer): string | undefined;
|
|
15
|
+
export declare function normalizeWindowsShellPathForAudit(targetPath: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Convert Windows recycle-bin internal artifacts (`$I*` / `$R*`) back to
|
|
18
|
+
* the user-facing delete target when the original command is available.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveWindowsRecycleBinAuditPath(record: {
|
|
21
|
+
path: string;
|
|
22
|
+
command?: string;
|
|
23
|
+
}, fallbackCommand?: string, fallbackOutput?: string): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* 过滤 safe-delete 临时探针噪声——rm / python safe-delete 场景下,
|
|
26
|
+
* 回收站内部路径和临时目录写入不应触发用户审批。
|
|
27
|
+
*/
|
|
28
|
+
export declare function filterSafeDeleteTempProbeNoise(actionableFileBlocks: FileBlockRecord[], command: string, sandboxResult: ShellResult): FileBlockRecord[];
|
|
29
|
+
export declare function matchesSafeDeleteEscalationCommand(command: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 判定是否应触发 safe-delete fail-closed 审批。
|
|
32
|
+
*
|
|
33
|
+
* 仅在无结构化拦截记录(attribution=error)但 stderr/stdout 命中
|
|
34
|
+
* safe-delete fail-closed 标记时触发。
|
|
35
|
+
*/
|
|
36
|
+
export declare function shouldEscalateSafeDeleteFailClosed(command: string, sandboxResult: ShellResult, actionableFileBlockCount: number): boolean;
|
|
37
|
+
export type SafeDeleteBulkConfirmInfo = BulkGuardConfirmPayload;
|
|
38
|
+
export declare function parseSafeDeleteBulkConfirmInfo(output: string): SafeDeleteBulkConfirmInfo | undefined;
|
|
39
|
+
export declare function shouldEscalateSafeDeleteBulkConfirm(command: string, sandboxResult: ShellResult, actionableFileBlockCount: number): SafeDeleteBulkConfirmInfo | undefined;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* safe-delete 运行时开关读取与注入日志——消除 ShellService / SandboxShellService /
|
|
3
|
+
* PowerShellTool 三处重复。
|
|
4
|
+
*/
|
|
5
|
+
export declare const MIN_SAFE_DELETE_BULK_THRESHOLD = 1;
|
|
6
|
+
export declare const MAX_SAFE_DELETE_BULK_THRESHOLD = 99999;
|
|
7
|
+
export interface SafeDeleteSettingsReader {
|
|
8
|
+
list(): Promise<{
|
|
9
|
+
sandbox?: {
|
|
10
|
+
safeDeleteBulkThreshold?: number;
|
|
11
|
+
safeDeleteRuntimeEnabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export interface SafeDeleteLogger {
|
|
16
|
+
info?(...args: unknown[]): void;
|
|
17
|
+
warn?(...args: unknown[]): void;
|
|
18
|
+
}
|
|
19
|
+
export interface SafeDeleteRuntimeConfig {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
bulkThreshold: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 解析批量删除阈值。合法时返回该值,非法时返回 undefined(由调用方决定 fallback)。
|
|
25
|
+
*
|
|
26
|
+
* 注意:workbuddy-server 和 agent-ui 各有同名 `normalizeSafeDeleteBulkThreshold` 函数,
|
|
27
|
+
* 语义为"总返回有效 number"。CLI 端此函数显式返回 undefined 以区分"配置缺失"与"有效值"。
|
|
28
|
+
*/
|
|
29
|
+
export declare function parseSafeDeleteBulkThreshold(value: unknown): number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* 从 SettingsManager 读取 sandbox.safeDeleteRuntimeEnabled,读取失败默认 true。
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveSafeDeleteRuntimeEnabled(settingsManager: SafeDeleteSettingsReader, logger: SafeDeleteLogger | undefined, source: string): Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* 从 SettingsManager 读取 sandbox.safeDeleteRuntimeEnabled 和 safeDeleteBulkThreshold。
|
|
36
|
+
* 读取失败默认启用 runtime safe-delete,批量删除阈值使用默认常量。
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveSafeDeleteRuntimeConfig(settingsManager: SafeDeleteSettingsReader, logger: SafeDeleteLogger | undefined, source: string): Promise<SafeDeleteRuntimeConfig>;
|
|
39
|
+
/**
|
|
40
|
+
* 记录 safe-delete 环境变量注入日志——统一格式。
|
|
41
|
+
*/
|
|
42
|
+
export declare function logSafeDeleteInjection(logger: SafeDeleteLogger | undefined, source: string, env: Record<string, string | undefined>, safeDeleteRuntimeEnabled: boolean): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type SafeDeleteRuntime } from './safe-delete-report';
|
|
2
|
+
export interface MovePathToTrashOptions {
|
|
3
|
+
force?: boolean;
|
|
4
|
+
recursive?: boolean;
|
|
5
|
+
reportPath?: string;
|
|
6
|
+
runtime?: SafeDeleteRuntime;
|
|
7
|
+
trashDir?: string;
|
|
8
|
+
fallbackTrash?: (path: string) => Promise<void>;
|
|
9
|
+
/** 原生 trash 失败、即将尝试 fallback 时回调,供调用方记录原始失败原因。 */
|
|
10
|
+
onNativeTrashError?: (error: unknown) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function movePathToTrash(path: string, options?: MovePathToTrashOptions): Promise<void>;
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { Disposable, Event } from '@celljs/core';
|
|
2
|
+
import type { AnsiOutput } from './terminal-serializer';
|
|
3
|
+
export declare const DEFAULT_BASH_TIMEOUT_MS = 120000;
|
|
4
|
+
export declare const DEFAULT_BASH_MAX_TIMEOUT_MS = 600000;
|
|
5
|
+
export declare const DEFAULT_BASH_MAX_OUTPUT_LENGTH = 30000;
|
|
6
|
+
export declare const MAX_BASH_OUTPUT_LENGTH_CAP = 150000;
|
|
7
|
+
/**
|
|
8
|
+
* 主 agent 前台阻塞预算(Kairos 式,对齐 Claude Code ASSISTANT_BLOCKING_BUDGET_MS=15000)。
|
|
9
|
+
*
|
|
10
|
+
* 默认值 0 = 禁用(CC 公开版 `feature('KAIROS')` 也默认为 false,此机制在公开版不生效)。
|
|
11
|
+
* 设置为 >0 时,主 thread 的前台 Bash 命令超过此时间会自动转为后台任务,
|
|
12
|
+
* 让主 agent 继续响应其他操作;命令本身不被 kill,继续在后台跑。
|
|
13
|
+
*
|
|
14
|
+
* 可通过 env `CODEBUDDY_BASH_ASSISTANT_BUDGET_MS` 覆盖。
|
|
15
|
+
*/
|
|
16
|
+
export declare const DEFAULT_BASH_ASSISTANT_BUDGET_MS = 0;
|
|
17
|
+
/** Resolve the foreground assistant budget from the current runtime environment. */
|
|
18
|
+
export declare function resolveBashAssistantBudgetMs(env?: NodeJS.ProcessEnv): number;
|
|
19
|
+
/**
|
|
20
|
+
* 从给定的环境变量字典解析 bash 超时配置。
|
|
21
|
+
* 显式传入的 settings env 优先;缺失或无效字段回退到运行时 process.env,再回退默认值。
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveBashTimeoutFromEnv(env?: Record<string, string>): {
|
|
24
|
+
defaultTimeout: number;
|
|
25
|
+
maxTimeout: number;
|
|
26
|
+
};
|
|
27
|
+
/** Resolve the model-facing shell output budget from the current runtime environment. */
|
|
28
|
+
export declare function resolveMaxShellOutputLength(env?: NodeJS.ProcessEnv): number;
|
|
29
|
+
export declare const ShellService: unique symbol;
|
|
30
|
+
/**
|
|
31
|
+
* 本地 Shell 服务 Symbol,用于标识原始的 ShellServiceImpl。
|
|
32
|
+
* DelegatingShellService 通过此 Symbol 注入本地执行实现。
|
|
33
|
+
*/
|
|
34
|
+
export declare const LocalShellService: unique symbol;
|
|
35
|
+
export interface ShellService {
|
|
36
|
+
execute(params: ShellExecuteParams): Promise<ShellExecutionHandle>;
|
|
37
|
+
disposeAll(): Promise<void>;
|
|
38
|
+
getActiveHandleCount(): number;
|
|
39
|
+
}
|
|
40
|
+
export interface ShellOutputChunk {
|
|
41
|
+
type: 'stdout' | 'stderr';
|
|
42
|
+
data: string;
|
|
43
|
+
timestamp: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ShellExecuteParams {
|
|
46
|
+
/** Optional captured host environment; defaults to process.env. */
|
|
47
|
+
processEnv?: NodeJS.ProcessEnv;
|
|
48
|
+
command: string;
|
|
49
|
+
/**
|
|
50
|
+
* The run's session, passed explicitly by tool callers. Multi-session
|
|
51
|
+
* surfaces (agent-cli/server) route on it — never rely on the
|
|
52
|
+
* current-session slot or ambient context for shell dispatch.
|
|
53
|
+
*/
|
|
54
|
+
session?: import('../../vendor/cbc-core/node/index.js').Session;
|
|
55
|
+
/**
|
|
56
|
+
* Execute a trusted executable with an already-tokenized argument vector.
|
|
57
|
+
* No shell or command-line parser is involved. This is intended for
|
|
58
|
+
* internal callers such as Grep that need identical argv in local and
|
|
59
|
+
* sandbox-backed execution paths.
|
|
60
|
+
*/
|
|
61
|
+
directCommand?: {
|
|
62
|
+
executable: string;
|
|
63
|
+
args: string[];
|
|
64
|
+
displayCommand?: string;
|
|
65
|
+
pathOverride?: string;
|
|
66
|
+
};
|
|
67
|
+
cwd?: string;
|
|
68
|
+
timeout?: number;
|
|
69
|
+
cols?: number;
|
|
70
|
+
rows?: number;
|
|
71
|
+
env?: Record<string, string>;
|
|
72
|
+
onOutput?: (chunk: ShellOutputChunk) => void;
|
|
73
|
+
abortSignal?: AbortSignal;
|
|
74
|
+
/** Set to false to force child_process fallback (skip PTY). Defaults to true. */
|
|
75
|
+
usePty?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Optional callback for handling sandbox intercept events.
|
|
78
|
+
* When sandbox-cli blocks a command due to policy violation, this callback is invoked
|
|
79
|
+
* with the intercept details. Return user's choice: 'allow_once' | 'allow_session' | 'deny'.
|
|
80
|
+
*
|
|
81
|
+
* Provided by BashTool to bridge sandbox intercepts into the standard
|
|
82
|
+
* InterruptionService/Permission flow using the current tool call context.
|
|
83
|
+
* If not provided, SandboxShellService uses ACP requestPermission callback or auto-allows.
|
|
84
|
+
*/
|
|
85
|
+
onSandboxIntercept?: (event: {
|
|
86
|
+
interceptType: string;
|
|
87
|
+
command: string;
|
|
88
|
+
operation: string;
|
|
89
|
+
target: string;
|
|
90
|
+
details: unknown;
|
|
91
|
+
}) => Promise<'allow_once' | 'allow_session' | 'deny'>;
|
|
92
|
+
/**
|
|
93
|
+
* Optional tool call ID for correlating sandbox intercepts with the originating tool call.
|
|
94
|
+
* Used by SandboxShellService to route InterceptNotification to the correct handler.
|
|
95
|
+
*/
|
|
96
|
+
toolCallId?: string;
|
|
97
|
+
/**
|
|
98
|
+
* When true, SandboxShellService executes with executionMode: 'sandbox_bypass',
|
|
99
|
+
* bypassing sandbox isolation. Corresponds to BashTool's dangerouslyDisableSandbox parameter.
|
|
100
|
+
*/
|
|
101
|
+
sandboxBypass?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* When true, `command` is already a complete command line
|
|
104
|
+
* (e.g. `pwsh -NoProfile -Command "..."`) and MUST NOT be wrapped by
|
|
105
|
+
* shell-service machinery.
|
|
106
|
+
*
|
|
107
|
+
* - SandboxShellService: passes `command` through to sandbox-cli verbatim
|
|
108
|
+
* (no `buildSandboxCommand`).
|
|
109
|
+
* - LocalShellService: parses `command` via `parseCommandLine(...)` and
|
|
110
|
+
* calls `spawn(exe, args[])` directly — no bash `-c`, no shopt guard,
|
|
111
|
+
* no `eval`, no snapshot sourcing. `CODEBUDDY_ENV_FILE` is loaded as
|
|
112
|
+
* KEY=VALUE pairs and merged into the child's `env`. PTY is forced
|
|
113
|
+
* off on this path (node-pty would re-introduce a shell).
|
|
114
|
+
*
|
|
115
|
+
* Used by PowerShellTool to pass raw PowerShell invocations through the
|
|
116
|
+
* sandbox orchestrator without bash-mangling on Windows.
|
|
117
|
+
*/
|
|
118
|
+
rawCommand?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Invoked by SandboxShellService immediately before a post-exec escalation retry.
|
|
121
|
+
* Callers that accumulate streaming output (e.g. BashTool's buffers) should clear
|
|
122
|
+
* their state here so the retry output is observed as a fresh stream rather than
|
|
123
|
+
* appended to the first-attempt output. Not invoked in non-retry execution paths
|
|
124
|
+
* or by LocalShellService.
|
|
125
|
+
*/
|
|
126
|
+
onSandboxRetryStart?: () => void;
|
|
127
|
+
/**
|
|
128
|
+
* 命令到达 `timeout` 时的自定义处理回调。
|
|
129
|
+
*
|
|
130
|
+
* 如果返回 `true`,shell-service 认为调用方已接管后续处理(典型场景:
|
|
131
|
+
* BashTool 把命令转为后台任务继续跑),shell-service **不再发送 SIGTERM**,
|
|
132
|
+
* 子进程继续运行;`wait()` 返回的结果由调用方自行管理。
|
|
133
|
+
*
|
|
134
|
+
* 如果返回 `false` 或没有提供此回调,shell-service 维持原行为:
|
|
135
|
+
* 设置 `interrupted = true` 并调 `kill('SIGTERM')`。
|
|
136
|
+
*
|
|
137
|
+
* 同步返回值;异步决策需要调用方在外部处理(例如先快照 handle、再在外部监听)。
|
|
138
|
+
*
|
|
139
|
+
* @returns true 表示已接管;false/undefined 表示走默认 kill 路径。
|
|
140
|
+
*/
|
|
141
|
+
onTimeout?: () => boolean | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* 当提供时,子进程的 stdout 直接写入这个文件描述符,**不通过 pipe 回传到父进程**。
|
|
144
|
+
*
|
|
145
|
+
* 仅 LocalShellService 的 ChildProcess 路径生效(即 `usePty: false` 或 PTY 不可用时);
|
|
146
|
+
* PTY 路径和 SandboxShellService 会忽略此参数(PTY 必须接管 stdio,sandbox 走 IPC 协议)。
|
|
147
|
+
*
|
|
148
|
+
* 用于解决"后台任务的孙进程持有父进程 pipe fd 导致 EOF 不来 / nohup 残留 defunct"问题:
|
|
149
|
+
* 当 stdout 直接写文件,孙进程继承的也是这个文件 fd,父 bash 退出立即触发 'exit',
|
|
150
|
+
* 不依赖 grandchild 关闭 fd。参考 Claude Code `Shell.ts` 的实现。
|
|
151
|
+
*
|
|
152
|
+
* **fd 生命周期由调用方负责**:调用方 open 这个 fd,spawn 完成后 child 已 dup 自己的副本,
|
|
153
|
+
* 调用方应立即 close 父侧 fd(避免父进程持有写端导致后续读取卡住);ShellService 不会 close。
|
|
154
|
+
*/
|
|
155
|
+
stdoutFd?: number;
|
|
156
|
+
/**
|
|
157
|
+
* 同 {@link stdoutFd},给 stderr。
|
|
158
|
+
*
|
|
159
|
+
* 可与 stdoutFd 指向同一个 fd(依赖 POSIX O_APPEND 的原子写入语义),
|
|
160
|
+
* 也可分开写两个文件(codebuddy 的默认做法,便于 UI 区分 stderr)。
|
|
161
|
+
*/
|
|
162
|
+
stderrFd?: number;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 网络拦截记录的业务视图(ShellResult 暴露给上层 tools / orchestrator / telemetry 的形态)。
|
|
166
|
+
*
|
|
167
|
+
* Sandbox ProcessExit 仅上送 DecisionRecord;执行句柄在 IPC 边界将其投影为本
|
|
168
|
+
* 业务视图,保持 tools / orchestrator / telemetry 的既有接口不变。
|
|
169
|
+
*/
|
|
170
|
+
export interface ShellNetworkBlockRecord {
|
|
171
|
+
/** 被拦截的目标主机(优先域名,无域名时为 IP) */
|
|
172
|
+
host: string;
|
|
173
|
+
/** 端口号(可选) */
|
|
174
|
+
port?: number;
|
|
175
|
+
/** 协议类型: "tcp" / "udp" / "dns" / "https" 等(vendor 协议层字段名为 `scheme`,本视图统一为 `protocol`) */
|
|
176
|
+
protocol: string;
|
|
177
|
+
/** 操作类型 bitmask: 0x01=CONNECT, 0x02=DNS_RESOLVE, 0x04=SENDTO */
|
|
178
|
+
actionMask: number;
|
|
179
|
+
/** 沙箱建议的可选处理方式。 */
|
|
180
|
+
options?: string[];
|
|
181
|
+
/** 触发拦截的命令(若 Sandbox 能提供)。 */
|
|
182
|
+
command?: string;
|
|
183
|
+
/** Vendor 原始记录,保留用于诊断。 */
|
|
184
|
+
raw?: import('../sandbox-cli/sandbox-cli-protocol.js').JsonValue;
|
|
185
|
+
/**
|
|
186
|
+
* 网络拦截成因;DecisionRecord 投影使用 center_ask / center_deny 区分三态。
|
|
187
|
+
*/
|
|
188
|
+
reason?: import('../sandbox-cli/sandbox-cli-protocol.js').NetworkBlockReason;
|
|
189
|
+
/** 恶意域名 DB 命中时的威胁标签。 */
|
|
190
|
+
maliciousLabel?: string;
|
|
191
|
+
/** DB 实际命中的候选域名(可能是请求域名的父域)。 */
|
|
192
|
+
matchedDomain?: string;
|
|
193
|
+
/** DB 中原始的主域匹配字段。 */
|
|
194
|
+
mainDomainMatch?: boolean;
|
|
195
|
+
}
|
|
196
|
+
export interface ShellResult {
|
|
197
|
+
stdout: string;
|
|
198
|
+
stderr: string;
|
|
199
|
+
exitCode: number | null;
|
|
200
|
+
signal: NodeJS.Signals | null;
|
|
201
|
+
/** 命令是否被中断(超时或用户取消) */
|
|
202
|
+
interrupted: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* `exitCode` / `signal` 是否不可信。
|
|
205
|
+
*
|
|
206
|
+
* 缺省(undefined / false)表示这份结果来自真实的进程终止事件,退出码可以直接用。
|
|
207
|
+
* 置 `true` 表示句柄是靠"进程已不存在"这个状态兜底收口的——终止事件始终没到,
|
|
208
|
+
* 退出码无从得知,此时 `exitCode: null` 不代表成功,调用方**不能**再用
|
|
209
|
+
* `exitCode ?? 0` 这类兜底把它归一成 0。
|
|
210
|
+
*
|
|
211
|
+
* 为什么需要它:线上实测约 11% 的后台子进程收不到终止事件(#92382),
|
|
212
|
+
* 没有这个标记,兜底收口会把一个失败的命令报成 completed。
|
|
213
|
+
*/
|
|
214
|
+
exitStatusUnknown?: boolean;
|
|
215
|
+
/** safe-delete shim 成功把目标移入系统回收站的 side-channel 事件,不进入 stdout/stderr。 */
|
|
216
|
+
safeDeleteEvents?: import('./safe-delete/index.js').SafeDeleteReportEvent[];
|
|
217
|
+
/** 由 DecisionRecord 在 IPC 边界映射出的旧文件拦截业务视图。 */
|
|
218
|
+
fileBlockRecords?: import('../sandbox-cli/sandbox-cli-protocol.js').FileBlockRecord[];
|
|
219
|
+
/** Center authority records from the current process execution. */
|
|
220
|
+
decisionRecords?: import('../sandbox-cli/sandbox-cli-protocol.js').DecisionRecord[];
|
|
221
|
+
/** 由 DecisionRecord 在 IPC 边界映射出的旧网络拦截业务视图。 */
|
|
222
|
+
networkBlockRecords?: ShellNetworkBlockRecord[];
|
|
223
|
+
/** 沙箱是否拒绝了操作导致命令失败 */
|
|
224
|
+
sandboxDenied?: boolean;
|
|
225
|
+
/** 命中用户配置的硬拒绝规则,当前 Agent run 应直接结束 */
|
|
226
|
+
policyDenied?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* 安全规则终局拒绝的结构化说明。
|
|
229
|
+
*
|
|
230
|
+
* 文件 / 网络裁决发生在沙箱首跑之后:命令已经真跑过一遍,OS 层的
|
|
231
|
+
* `Operation not permitted` 早已通过 `onData` 流进工具的输出缓冲。置位该字段
|
|
232
|
+
* 表示"这次失败的权威原因是安全规则,不是命令本身",工具层应当用它替代缓冲区
|
|
233
|
+
* 里的原始报错来展示。
|
|
234
|
+
*
|
|
235
|
+
* 与 `policyDenied` 正交:后者会终止整个 Agent run,此字段只影响展示。
|
|
236
|
+
*/
|
|
237
|
+
denialMessage?: string;
|
|
238
|
+
/** 被沙箱阻止的文件路径列表 */
|
|
239
|
+
sandboxBlockedPaths?: string[];
|
|
240
|
+
/** 用户是否已拒绝提权请求 (区分 "没走提权" 和 "走了但用户拒绝") */
|
|
241
|
+
sandboxEscalationDenied?: boolean;
|
|
242
|
+
/** 命令因系统级工具安全策略被拦截(区分于通用 sandboxDenied) */
|
|
243
|
+
systemToolBlocked?: boolean;
|
|
244
|
+
/** 沙箱提权后重试成功,BashTool 应使用 ShellResult.stdout/stderr 而非 execCtx buffer */
|
|
245
|
+
sandboxRetried?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Populated by the SandboxOrchestrator when the command ended up running
|
|
248
|
+
* outside the sandbox (e.g. after `dangerouslyDisableSandbox` approval, a
|
|
249
|
+
* cached `allow_session` decision, or a post-exec escalation). Downstream tools can surface this to the LLM so it
|
|
250
|
+
* knows the command did not run under sandbox isolation.
|
|
251
|
+
*/
|
|
252
|
+
sandboxBypassed?: boolean;
|
|
253
|
+
/** Reason recorded when `sandboxBypassed` is true; see SandboxBypassReason. */
|
|
254
|
+
sandboxBypassReason?: 'dangerously-disable-sandbox' | 'session-approved' | 'escalation-approved' | 'exec-policy-allow' | 'system-tool-approved';
|
|
255
|
+
}
|
|
256
|
+
export interface ShellExecutionHandle extends Disposable {
|
|
257
|
+
readonly id: string;
|
|
258
|
+
readonly pid: number;
|
|
259
|
+
readonly isAlive: boolean;
|
|
260
|
+
readonly command: string;
|
|
261
|
+
write(data: string): void;
|
|
262
|
+
sendKey(key: ShellSpecialKey): void;
|
|
263
|
+
resize(cols: number, rows: number): void;
|
|
264
|
+
kill(signal?: NodeJS.Signals): Promise<void>;
|
|
265
|
+
getScreen(): string;
|
|
266
|
+
getColorScreen(): AnsiOutput;
|
|
267
|
+
usedAlternateBuffer(): boolean;
|
|
268
|
+
wait(): Promise<ShellResult>;
|
|
269
|
+
/**
|
|
270
|
+
* 若进程已终止而终止事件始终没来,则手动收口 {@link wait};否则什么都不做。
|
|
271
|
+
*
|
|
272
|
+
* 与 {@link kill} 的职责严格分开:本方法**永不发信号**。`kill` 内部的兜底只覆盖
|
|
273
|
+
* 「进程活着 → 被杀 → 事件丢失」,而「进程已经死了 → 事件丢失」这条只能由本方法
|
|
274
|
+
* 收口——线上实测约 11% 的后台子进程走到后一种情形(#92382),不收口则 `wait()`
|
|
275
|
+
* 永久挂起,依赖它的后台任务终态判定与通知全部停摆。
|
|
276
|
+
*
|
|
277
|
+
* 可选:sandbox 侧的句柄实现暂未接入,调用方需用 `?.` 并对 undefined 做兜底。
|
|
278
|
+
*
|
|
279
|
+
* @returns 是否真的发生了收口;进程仍存活或已收口过都返回 false。
|
|
280
|
+
*/
|
|
281
|
+
settleIfProcessExited?(): boolean;
|
|
282
|
+
readonly onData: Event<string>;
|
|
283
|
+
readonly onExit: Event<ShellResult>;
|
|
284
|
+
/** 当检测到程序进入 alternate screen buffer 时触发(TUI 程序特征) */
|
|
285
|
+
readonly onAlternateBuffer: Event<void>;
|
|
286
|
+
}
|
|
287
|
+
export type ShellSpecialKey = 'CTRL_A' | 'CTRL_B' | 'CTRL_C' | 'CTRL_D' | 'CTRL_E' | 'CTRL_F' | 'CTRL_G' | 'CTRL_H' | 'CTRL_I' | 'CTRL_J' | 'CTRL_K' | 'CTRL_L' | 'CTRL_M' | 'CTRL_N' | 'CTRL_O' | 'CTRL_P' | 'CTRL_Q' | 'CTRL_R' | 'CTRL_S' | 'CTRL_T' | 'CTRL_U' | 'CTRL_V' | 'CTRL_W' | 'CTRL_X' | 'CTRL_Y' | 'CTRL_Z' | 'ENTER' | 'TAB' | 'ESCAPE' | 'BACKSPACE' | 'DELETE' | 'UP' | 'DOWN' | 'LEFT' | 'RIGHT' | 'HOME' | 'END' | 'PAGE_UP' | 'PAGE_DOWN';
|