@tencent-ai/agent-harness 0.2.0-beta.6 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/cli/CHANGELOG.md +123 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +338 -291
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +11 -2
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +69 -44
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +6 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +62 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { SettingsManager } from '../settings';
|
|
3
|
+
import { DirectoryTrustService } from './permission-protocol';
|
|
4
|
+
export declare class DirectoryTrustServiceImpl implements DirectoryTrustService {
|
|
5
|
+
protected readonly logger: Logger;
|
|
6
|
+
protected readonly settingsManager: SettingsManager;
|
|
7
|
+
private trustedDirectories;
|
|
8
|
+
private trustAll;
|
|
9
|
+
private initializedDeferred;
|
|
10
|
+
private trustDirDeferred;
|
|
11
|
+
isTrustDirectoryPromise: Promise<void>;
|
|
12
|
+
initialized: Promise<void>;
|
|
13
|
+
isTrustDirectory: boolean;
|
|
14
|
+
protected init(): void;
|
|
15
|
+
/**
|
|
16
|
+
* 检查目录是否为危险目录
|
|
17
|
+
*/
|
|
18
|
+
isDangerousDirectory(dirPath: string): boolean;
|
|
19
|
+
private normalizePath;
|
|
20
|
+
/**
|
|
21
|
+
* 判断目标路径是否匹配信任规则(支持 glob 通配符)
|
|
22
|
+
* @param pattern 信任规则,可以是精确路径或 glob 模式(如 /path/** 表示递归信任)
|
|
23
|
+
* @param targetPath 要检查的目标路径
|
|
24
|
+
*/
|
|
25
|
+
private matchTrustPattern;
|
|
26
|
+
/**
|
|
27
|
+
* 检查目录是否需要显示授权提示
|
|
28
|
+
*/
|
|
29
|
+
needsAuthorization(dirPath: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 信任目录
|
|
32
|
+
* @param dirPath 要信任的目录路径
|
|
33
|
+
* @param permanent 是否永久保存(危险目录建议为 false)
|
|
34
|
+
* @param recursive 是否递归信任子目录(为 true 时会添加 /** 后缀)
|
|
35
|
+
*/
|
|
36
|
+
trustDirectory(dirPath: string, permanent?: boolean, recursive?: boolean): void;
|
|
37
|
+
/**
|
|
38
|
+
* 加载已信任的目录
|
|
39
|
+
*/
|
|
40
|
+
private doInit;
|
|
41
|
+
/**
|
|
42
|
+
* 保存已信任的目录
|
|
43
|
+
*/
|
|
44
|
+
private saveTrustedDirectories;
|
|
45
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DecisionRecord } from '../../workspace/sandbox-cli/lib/common/protocol.generated.js';
|
|
2
|
+
import type { FileBlockRecord } from '../sandbox-cli/sandbox-cli-protocol';
|
|
3
|
+
/** Approval/audit presentation only. Access decisions belong to Sandbox Center. */
|
|
4
|
+
export type RiskLevel = 'low' | 'medium' | 'unknown' | 'high';
|
|
5
|
+
export type SandboxExecutionMode = 'default' | 'bypass';
|
|
6
|
+
export interface FilePolicyMatch {
|
|
7
|
+
pathPattern: string;
|
|
8
|
+
level: RiskLevel;
|
|
9
|
+
/** Legacy audit labels; the native matchRule still determines the verdict. */
|
|
10
|
+
source?: 'builtin' | 'user-allowlist' | 'user-blocklist';
|
|
11
|
+
}
|
|
12
|
+
export interface RiskAssessment {
|
|
13
|
+
record: FileBlockRecord;
|
|
14
|
+
level: RiskLevel;
|
|
15
|
+
matchedRule?: FilePolicyMatch;
|
|
16
|
+
}
|
|
17
|
+
export interface FilePolicyClassification {
|
|
18
|
+
autoApprove: RiskAssessment[];
|
|
19
|
+
needsApproval: RiskAssessment[];
|
|
20
|
+
denied: RiskAssessment[];
|
|
21
|
+
/** Kept for the existing audit DTO; command rules no longer downgrade file policy. */
|
|
22
|
+
commandAllowDowngradedCount: number;
|
|
23
|
+
}
|
|
24
|
+
export type BrokeredFileOperation = 'read' | 'write' | 'delete';
|
|
25
|
+
export type BrokeredFileDecision = 'grant-token' | 'host-op' | 'deny' | 'prompt' | 'sandbox';
|
|
26
|
+
export interface BrokeredFileAccessDecision {
|
|
27
|
+
/** Original Center verdict, carried unchanged into post-exec attribution. */
|
|
28
|
+
decisionRecord?: DecisionRecord;
|
|
29
|
+
decision: BrokeredFileDecision;
|
|
30
|
+
operation: BrokeredFileOperation;
|
|
31
|
+
path: string;
|
|
32
|
+
normalisedPath: string;
|
|
33
|
+
level: RiskLevel;
|
|
34
|
+
matchedRule?: FilePolicyMatch;
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './canonicalize-command';
|
|
2
|
+
export * from './codebuddy-sandbox-env';
|
|
3
|
+
export * from './directory-trust-service';
|
|
4
|
+
export * from './permission-protocol';
|
|
5
|
+
export * from '../../vendor/cbc-core/node/index.js';
|
|
6
|
+
export * from './sandbox-attribution-analyzer';
|
|
7
|
+
export * from './sandbox-audit-service';
|
|
8
|
+
export * from './sandbox-exec-policy';
|
|
9
|
+
export * from './sandbox-exec-policy-builtin';
|
|
10
|
+
export * from './sandbox-exec-policy-protocol';
|
|
11
|
+
export * from './sandbox-orchestrator';
|
|
12
|
+
export * from './sandbox-orchestrator-protocol';
|
|
13
|
+
export * from './sandbox-permission-gateway';
|
|
14
|
+
export * from './file-policy-assessment';
|
|
15
|
+
export * from './sandbox-telemetry-context';
|
|
16
|
+
export * from './sensitive-command-detector';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DirectoryTrustService: unique symbol;
|
|
2
|
+
export interface DirectoryTrustService {
|
|
3
|
+
initialized: Promise<void>;
|
|
4
|
+
isTrustDirectory: boolean;
|
|
5
|
+
isTrustDirectoryPromise: Promise<void>;
|
|
6
|
+
needsAuthorization(dirPath: string): boolean;
|
|
7
|
+
trustDirectory(dirPath: string, permanent?: boolean, recursive?: boolean): void;
|
|
8
|
+
isDangerousDirectory(dirPath: string): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox Attribution Analyzer — 失败归因分析器。
|
|
3
|
+
*
|
|
4
|
+
* 设计文档 § 五-⑤ 定位:
|
|
5
|
+
* - 命令失败是"代码写错了"还是"沙箱拦住了"?只有后者才进入沙箱裁决处理。
|
|
6
|
+
* - 归因只做因果判断;文件权限由后续流程消费 Center 原始裁决。
|
|
7
|
+
*
|
|
8
|
+
* 归因矩阵(权限系统只关注硬拦截,越界写入到影子区不进入此矩阵):
|
|
9
|
+
*
|
|
10
|
+
* | exitCode | EPERM 拦截记录 | 归因 |
|
|
11
|
+
* |---------------|-----------------------------------------------------|-----------------|
|
|
12
|
+
* | 0 或 null | 无 / 仅 `process-exec*` / 已知启动缓存噪声 / 仅 `sysctl/ioctl/IOKit` | ✅ `success` |
|
|
13
|
+
* | 0 | 仅 `file-read-metadata` | ✅ `success` |
|
|
14
|
+
* | 任意 | 有可操作文件拦截或网络拦截 | 🔒 `sandbox_denied` |
|
|
15
|
+
* | ≠0 | 无可操作文件拦截且无网络拦截 | ❌ `error` |
|
|
16
|
+
*
|
|
17
|
+
* 过滤规则:
|
|
18
|
+
* - `reason=forbidden_program` → non_actionable(程序黑名单硬拦截,不可通过文件授权修复)
|
|
19
|
+
* - `process-exec*` → 默认归因为 `error`(进程执行权限不足,弹提权 UI 也修不了)
|
|
20
|
+
* 但 safe-delete helper(`genie-trash` / `osascript`)或带 `SAFE_DELETE`
|
|
21
|
+
* 签名的包装进程(如 perl)例外,进入 `sandbox_denied` 以支持无弹窗本地重跑降级。
|
|
22
|
+
* - PowerShell 启动缓存等已知进程副作用 → ignore(不计入 blocked 列表)
|
|
23
|
+
* - `sysctl/ioctl/IOKit` → ignore(静默丢弃,不上报遥测,不计入 blocked 列表)
|
|
24
|
+
* - 命令成功且有效拦截仅为 `file-read-metadata` → ignore(保留原始记录,不升级提权)
|
|
25
|
+
* - 其余(`file-write*`, `file-read-data` 等)→ 可操作,进入裁决处理
|
|
26
|
+
*
|
|
27
|
+
* 边界:
|
|
28
|
+
* - Linux (bwrap) 无结构化拦截记录,1 期不弹提权 UI → 返回 error
|
|
29
|
+
* - 越界写入到影子区(全局投影模式)不进入此矩阵——命令正常完成(exitCode=0)
|
|
30
|
+
*/
|
|
31
|
+
import type { DecisionRecord } from '../../workspace/sandbox-cli/lib/common/protocol.generated.js';
|
|
32
|
+
import { type FileBlockRecord } from '../sandbox-cli/sandbox-cli-protocol';
|
|
33
|
+
import type { ShellResult } from '../shell';
|
|
34
|
+
import type { ShellNetworkBlockRecord } from '../shell/shell-protocol';
|
|
35
|
+
/**
|
|
36
|
+
* Attribution status — the causal judgement for a command execution.
|
|
37
|
+
*
|
|
38
|
+
* - `success`: command succeeded (exitCode 0 / null), no actionable escalation needed.
|
|
39
|
+
* - `error`: command failed for non-sandbox reasons (code bug, missing dep, etc.).
|
|
40
|
+
* - `sandbox_denied`: command failed because the sandbox blocked actionable file or network operations.
|
|
41
|
+
*/
|
|
42
|
+
export type AttributionStatus = 'success' | 'error' | 'sandbox_denied';
|
|
43
|
+
/**
|
|
44
|
+
* Input for the attribution analyzer.
|
|
45
|
+
*
|
|
46
|
+
* Directly sourced from {@link ShellResult} fields after sandbox execution.
|
|
47
|
+
*/
|
|
48
|
+
export interface AttributionInput {
|
|
49
|
+
/** Process exit code. 0 or null means success. */
|
|
50
|
+
exitCode: number | null;
|
|
51
|
+
/** Structured file block records from the IPC compatibility boundary. */
|
|
52
|
+
fileBlockRecords?: FileBlockRecord[];
|
|
53
|
+
/** Structured network block records from the IPC compatibility boundary. */
|
|
54
|
+
networkBlockRecords?: ShellNetworkBlockRecord[];
|
|
55
|
+
/** Center authority records from the current execution (may be empty or undefined). */
|
|
56
|
+
decisionRecords?: DecisionRecord[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Result of the attribution analysis.
|
|
60
|
+
*/
|
|
61
|
+
export interface AttributionResult {
|
|
62
|
+
/** The causal judgement. */
|
|
63
|
+
status: AttributionStatus;
|
|
64
|
+
/**
|
|
65
|
+
* Actionable file evidence — only populated when `status === 'sandbox_denied'`.
|
|
66
|
+
*
|
|
67
|
+
* These are the records that passed filtering (excluded `process-exec*` and
|
|
68
|
+
* `sysctl/ioctl/IOKit` entries). Downstream policy handling joins these
|
|
69
|
+
* subjects to native Center verdicts.
|
|
70
|
+
*/
|
|
71
|
+
actionableFileBlocks: FileBlockRecord[];
|
|
72
|
+
/**
|
|
73
|
+
* Network evidence — passed through as-is for post-exec ask/deny handling.
|
|
74
|
+
*/
|
|
75
|
+
networkBlockRecords: ShellNetworkBlockRecord[];
|
|
76
|
+
/** Center authority records preserved alongside their internal evidence projection. */
|
|
77
|
+
decisionRecords: DecisionRecord[];
|
|
78
|
+
/** Non-allow Center decisions that must not be silently treated as command errors. */
|
|
79
|
+
actionableDecisionRecords: DecisionRecord[];
|
|
80
|
+
/** Subject 不完整或 domain 暂无审批映射的非 allow 决策,调用方必须 fail-closed。 */
|
|
81
|
+
unmappedDecisionRecords: DecisionRecord[];
|
|
82
|
+
/**
|
|
83
|
+
* File evidence that was filtered out as non-actionable
|
|
84
|
+
* (`process-exec*` or program-blacklist hits). Kept for diagnostics / telemetry.
|
|
85
|
+
*/
|
|
86
|
+
filteredNonActionable: FileBlockRecord[];
|
|
87
|
+
/**
|
|
88
|
+
* File evidence that was silently ignored
|
|
89
|
+
* (known runtime cache writes, `sysctl/ioctl/IOKit`, or successful
|
|
90
|
+
* metadata-only probes). Kept for diagnostics only.
|
|
91
|
+
*/
|
|
92
|
+
filteredIgnored: FileBlockRecord[];
|
|
93
|
+
}
|
|
94
|
+
type AttributionShellResult = Pick<ShellResult, 'exitCode' | 'fileBlockRecords' | 'networkBlockRecords' | 'decisionRecords'>;
|
|
95
|
+
/** 保证所有 ShellResult 消费链都把 Center 权威记录纳入归因。 */
|
|
96
|
+
export declare function analyzeShellResultAttribution(result: AttributionShellResult): AttributionResult;
|
|
97
|
+
/**
|
|
98
|
+
* Analyze the attribution of a sandboxed command execution.
|
|
99
|
+
*
|
|
100
|
+
* This is a **pure function** — no side effects, no DI dependencies.
|
|
101
|
+
* It is the single source of truth for "why did this command fail?"
|
|
102
|
+
* in the new permission path.
|
|
103
|
+
*
|
|
104
|
+
* @param input - Execution result from the sandbox (exitCode + attribution evidence).
|
|
105
|
+
* @returns Attribution result with status and filtered evidence.
|
|
106
|
+
*/
|
|
107
|
+
export declare function analyzeAttribution(input: AttributionInput): AttributionResult;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox Audit Service — fire-and-forget command audit via AgentDR SDK.
|
|
3
|
+
*
|
|
4
|
+
* Observe mode only. Collects command data after sandbox policy handling;
|
|
5
|
+
* does NOT participate in allow/deny decisions. Historical wire field names
|
|
6
|
+
* remain compatible even though the local SafetyFilter has been removed.
|
|
7
|
+
*
|
|
8
|
+
* Configuration priority: process.env > built-in defaults.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SandboxAuditService: unique symbol;
|
|
11
|
+
export interface SandboxAuditParams {
|
|
12
|
+
command: string;
|
|
13
|
+
cwd: string;
|
|
14
|
+
stage: 'post_exec_safety_filter';
|
|
15
|
+
safetyFilterResult?: {
|
|
16
|
+
autoApproveCount: number;
|
|
17
|
+
needsApprovalCount: number;
|
|
18
|
+
riskLevels: string[];
|
|
19
|
+
};
|
|
20
|
+
/** 沙箱首跑回调数据,透传给科恩 SDK context.wb_sandbox.attempt */
|
|
21
|
+
sandboxAttempt?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export interface SandboxAuditService {
|
|
24
|
+
/**
|
|
25
|
+
* Fire-and-forget audit. Never throws, never blocks the caller.
|
|
26
|
+
*/
|
|
27
|
+
auditCommand(params: SandboxAuditParams): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export declare class SandboxAuditServiceImpl implements SandboxAuditService {
|
|
30
|
+
private readonly clientInfoProvider?;
|
|
31
|
+
private readonly sessionManager;
|
|
32
|
+
private readonly logger;
|
|
33
|
+
private initPromise;
|
|
34
|
+
auditCommand(params: SandboxAuditParams): Promise<void>;
|
|
35
|
+
private _initSdk;
|
|
36
|
+
private _getDeviceId;
|
|
37
|
+
private _buildWbSandboxContext;
|
|
38
|
+
private _getWorkbuddyDesktopVersion;
|
|
39
|
+
private _normalizeVersion;
|
|
40
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in rule table for {@link SandboxExecPolicy}.
|
|
3
|
+
*
|
|
4
|
+
* Keep this table deliberately small and defensive:
|
|
5
|
+
*
|
|
6
|
+
* - Allow-list only covers commands whose effects are purely observational
|
|
7
|
+
* (print state, read files, search). If in doubt, leave it as `prompt` so
|
|
8
|
+
* the user (and the post-exec sandbox attempt) get the final say.
|
|
9
|
+
* - Forbid-list only covers actions that can irrecoverably destroy the host
|
|
10
|
+
* or terminate the user's session, where no sane use case exists inside a
|
|
11
|
+
* coding assistant. Everyday "dangerous" commands (plain `rm -rf`,
|
|
12
|
+
* `sudo <anything else>`, `git push --force`, ...) are intentionally
|
|
13
|
+
* **not** forbidden: they may well be legitimate and the prompt flow +
|
|
14
|
+
* sandbox can handle them safely.
|
|
15
|
+
*
|
|
16
|
+
* Matching semantics are defined in `sandbox-exec-policy.ts`.
|
|
17
|
+
*/
|
|
18
|
+
import type { SandboxExecPolicyRule } from './sandbox-exec-policy-protocol';
|
|
19
|
+
export declare const BUILTIN_ALLOW_RULES: SandboxExecPolicyRule[];
|
|
20
|
+
/**
|
|
21
|
+
* Commands that are never valid inside a coding assistant context.
|
|
22
|
+
*
|
|
23
|
+
* Intentional non-inclusions (see §3.3 of `20-sandbox-exec-policy-plan.md`):
|
|
24
|
+
* - Plain `rm -rf <path>` where path is not `/`: too common legitimately.
|
|
25
|
+
* - Plain `sudo <anything>` except `rm -rf /`: may install deps, etc.
|
|
26
|
+
* - `curl URL | sh`, `eval`, `$()` — prefix matching can't identify them.
|
|
27
|
+
* - `cmd.exe rd /s /q C:\` — argv order is variable, high false-positive
|
|
28
|
+
* risk; deferred to v2.
|
|
29
|
+
*/
|
|
30
|
+
export declare const BUILTIN_FORBIDDEN_RULES: SandboxExecPolicyRule[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static command-level pre-approval policy, inspired by Codex's `ExecPolicy`
|
|
3
|
+
* (codex-rs/exec-policy/...). See
|
|
4
|
+
* `apps/workbuddy-desktop/docs/refactor/win-cli-sandbox/20-sandbox-exec-policy-plan.md`
|
|
5
|
+
* for the design rationale.
|
|
6
|
+
*
|
|
7
|
+
* The policy returns a bounded decision for every command the
|
|
8
|
+
* {@link SandboxOrchestrator} is about to run:
|
|
9
|
+
*
|
|
10
|
+
* - `allow` — known-safe command; execute directly via `LocalShellService`
|
|
11
|
+
* without sandboxing or any approval UI.
|
|
12
|
+
* - `forbidden` — known-dangerous command; reject synthetically without any
|
|
13
|
+
* execution, sandbox attempt, or approval UI.
|
|
14
|
+
* - `prompt` — no rule matches; fall through to the orchestrator's normal
|
|
15
|
+
* `dangerouslyDisableSandbox` / session-cache / sandbox-first
|
|
16
|
+
* / escalation pipeline.
|
|
17
|
+
*
|
|
18
|
+
* Matching is prefix-based on argv tokens (see
|
|
19
|
+
* {@link SandboxExecPolicyRule.prefix}). We deliberately avoid Codex's Starlark
|
|
20
|
+
* DSL: prefix matching is simpler, cheap to reason about, and sufficient for
|
|
21
|
+
* the coarse "it's just `ls`" vs "it's `rm -rf /`" buckets we care about.
|
|
22
|
+
*/
|
|
23
|
+
import type { SandboxExecPolicyRuleConfig, SandboxExecPolicyUserConfig } from '../bash-sandbox/bash-sandbox-protocol';
|
|
24
|
+
/** DI symbol for the policy. */
|
|
25
|
+
export declare const SandboxExecPolicy: unique symbol;
|
|
26
|
+
export type SandboxExecDecision = 'allow' | 'prompt' | 'forbidden';
|
|
27
|
+
/** A parsed allow/forbidden rule in the policy table. */
|
|
28
|
+
export interface SandboxExecPolicyRule extends SandboxExecPolicyRuleConfig {
|
|
29
|
+
/** Whether this rule grants allow or forbidden; `prompt` is the default
|
|
30
|
+
* (no rule). */
|
|
31
|
+
decision: Exclude<SandboxExecDecision, 'prompt'>;
|
|
32
|
+
/** Where this rule came from; useful for diagnostics. */
|
|
33
|
+
source?: 'builtin' | 'user';
|
|
34
|
+
}
|
|
35
|
+
/** Outcome of matching a command against the policy. */
|
|
36
|
+
export interface SandboxExecPolicyMatch {
|
|
37
|
+
decision: SandboxExecDecision;
|
|
38
|
+
/** The rule that produced the decision, or undefined when `prompt`. */
|
|
39
|
+
rule?: SandboxExecPolicyRule;
|
|
40
|
+
}
|
|
41
|
+
/** User-authored rules loaded from `settings.sandbox.execPolicy`. */
|
|
42
|
+
export type SandboxExecPolicyUserRules = SandboxExecPolicyUserConfig;
|
|
43
|
+
export interface SandboxExecPolicy {
|
|
44
|
+
/**
|
|
45
|
+
* Classify a raw command string.
|
|
46
|
+
*
|
|
47
|
+
* Compound commands (chained with `&&`, `||`, `;`, or `|`) are split into
|
|
48
|
+
* sub-commands and each sub-command is matched independently. Compound
|
|
49
|
+
* resolution rules:
|
|
50
|
+
*
|
|
51
|
+
* - Any sub-command forbidden → `forbidden` (forbidden-wins).
|
|
52
|
+
* - All sub-commands allow → `allow`.
|
|
53
|
+
* - Otherwise → `prompt` (downgrade to manual review).
|
|
54
|
+
*
|
|
55
|
+
* Unrecognisable shell constructs (command substitution `$(...)`, `eval`,
|
|
56
|
+
* nested `bash -c` scripts that themselves compose commands, etc.) are
|
|
57
|
+
* treated as `prompt`; we refuse to make confident decisions about
|
|
58
|
+
* payloads we can't parse.
|
|
59
|
+
*/
|
|
60
|
+
match(command: string): SandboxExecPolicyMatch;
|
|
61
|
+
/**
|
|
62
|
+
* Replace the currently loaded user rules. Called by
|
|
63
|
+
* `BashSandboxManager` whenever `settings.sandbox.execPolicy` changes.
|
|
64
|
+
* Implementations must keep builtin rules unaffected by this call.
|
|
65
|
+
*/
|
|
66
|
+
setUserRules(rules: SandboxExecPolicyUserRules | undefined): void;
|
|
67
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type SandboxExecPolicy as ISandboxExecPolicy, type SandboxExecPolicyMatch, type SandboxExecPolicyUserRules } from './sandbox-exec-policy-protocol';
|
|
3
|
+
export declare class SandboxExecPolicyImpl implements ISandboxExecPolicy {
|
|
4
|
+
protected readonly logger: Logger;
|
|
5
|
+
private readonly builtinAllow;
|
|
6
|
+
private readonly builtinForbidden;
|
|
7
|
+
private userAllow;
|
|
8
|
+
private userForbidden;
|
|
9
|
+
setUserRules(rules: SandboxExecPolicyUserRules | undefined): void;
|
|
10
|
+
match(command: string): SandboxExecPolicyMatch;
|
|
11
|
+
private matchArgv;
|
|
12
|
+
private toRule;
|
|
13
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import type { FileApprovalScope, SandboxRuleContext } from '../../workspace/agent-client-protocol/lib/common/index.js';
|
|
2
|
+
import type { Session } from '../../vendor/cbc-core/node/index.js';
|
|
3
|
+
import type { SandboxCorrelationFields, SandboxTurnDisabledReason } from '../../workspace/telemetry/lib/common/index.js';
|
|
4
|
+
import type { SafeDeleteBulkConfirmInfo } from '../shell/safe-delete';
|
|
5
|
+
import type { ShellExecuteParams, ShellExecutionHandle, ShellResult } from '../shell/shell-protocol';
|
|
6
|
+
/** DI symbol for the sandbox orchestrator. */
|
|
7
|
+
export declare const SandboxOrchestrator: unique symbol;
|
|
8
|
+
/**
|
|
9
|
+
* Why a particular invocation ended up bypassing the sandbox.
|
|
10
|
+
*
|
|
11
|
+
* - `dangerously-disable-sandbox` — model explicitly asked for bypass and the
|
|
12
|
+
* user approved the request before first execution (Codex `RequireEscalated`).
|
|
13
|
+
* - `session-approved` — this (canonical command, cwd) was previously approved
|
|
14
|
+
* with `allow_session`; we skipped the first sandboxed attempt entirely.
|
|
15
|
+
* - `escalation-approved` — first attempt failed inside the sandbox with real
|
|
16
|
+
* denials; the user approved post-exec escalation with `allow_once` or
|
|
17
|
+
* `allow_session` and we re-ran outside the sandbox.
|
|
18
|
+
* - `exec-policy-allow` — {@link SandboxExecPolicy} classified the command as
|
|
19
|
+
* known-safe (builtin or user allow rule), so we ran it locally without
|
|
20
|
+
* any sandbox attempt or approval UI.
|
|
21
|
+
*/
|
|
22
|
+
export type SandboxBypassReason = 'dangerously-disable-sandbox' | 'session-approved' | 'escalation-approved' | 'exec-policy-allow' | 'system-tool-approved';
|
|
23
|
+
/**
|
|
24
|
+
* Context the UI layer needs to render a SandboxInterceptCard.
|
|
25
|
+
*
|
|
26
|
+
* `pre-exec` is raised for model-requested bypass (`dangerouslyDisableSandbox`)
|
|
27
|
+
* before any execution; `post-exec` is raised after the sandbox rejected the
|
|
28
|
+
* first attempt and we need user consent to retry without the sandbox.
|
|
29
|
+
*/
|
|
30
|
+
export interface SandboxApprovalRequest {
|
|
31
|
+
ruleContext?: SandboxRuleContext;
|
|
32
|
+
fileApprovalScope?: FileApprovalScope;
|
|
33
|
+
/** Trusted host-side target used for Center revalidation; never forwarded to UI metadata. */
|
|
34
|
+
fileApprovalTargetPath?: string;
|
|
35
|
+
/** Native sandbox session, which may be the parent of the logical approval session. */
|
|
36
|
+
fileApprovalSandboxSessionId?: string;
|
|
37
|
+
/** Captured native-session epoch; stale pending requests cannot grant after restart/close. */
|
|
38
|
+
fileApprovalSessionGeneration?: number;
|
|
39
|
+
/** Raw command the model wants to execute (not canonicalised). */
|
|
40
|
+
command: string;
|
|
41
|
+
/** Canonicalised command string — same value used as the cache key. */
|
|
42
|
+
canonicalCommand: string;
|
|
43
|
+
/** Absolute cwd the command will run in. */
|
|
44
|
+
cwd: string;
|
|
45
|
+
/** Distinguishes first-time bypass request from post-denial escalation. */
|
|
46
|
+
mode: 'pre-exec' | 'post-exec';
|
|
47
|
+
/**
|
|
48
|
+
* For `post-exec`: the ShellResult returned by the sandboxed attempt.
|
|
49
|
+
* For `pre-exec`: undefined.
|
|
50
|
+
*/
|
|
51
|
+
sandboxResult?: ShellResult;
|
|
52
|
+
/**
|
|
53
|
+
* When `true`, this approval request was raised by the new permission
|
|
54
|
+
* path's sandbox policy (Center verdict or local bulk approval). The
|
|
55
|
+
* `requestApproval` callback should **not** perform a second
|
|
56
|
+
* `CommandUtils.checkCommandSafety` check and must surface the
|
|
57
|
+
* approval UI unconditionally.
|
|
58
|
+
*
|
|
59
|
+
* When absent or `false`, the legacy CommandUtils-based auto-approval
|
|
60
|
+
* logic in `_createApprovalRequester` is still applicable.
|
|
61
|
+
*/
|
|
62
|
+
sandboxPolicyEvaluated?: boolean;
|
|
63
|
+
/** false 表示审批只授权本次操作,不得将 allow_session 复用于其他排队调用。 */
|
|
64
|
+
sessionApprovalReusable?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Optional legacy/future pre-exec sensitive-command metadata. The current
|
|
67
|
+
* new sandbox path does not set this field; credential paths are handled by
|
|
68
|
+
* native file rules and Center verdicts.
|
|
69
|
+
*/
|
|
70
|
+
sensitiveCommandInfo?: SensitiveCommandInfo;
|
|
71
|
+
/**
|
|
72
|
+
* 沙箱拦截原因,用于在审批卡片中显示可读的拦截说明。
|
|
73
|
+
*
|
|
74
|
+
* - `file-external` — 命令试图修改工作空间外部文件,被沙箱拦截。
|
|
75
|
+
* - `file-blocklist` — 命令试图访问用户在安全中心配置的黑名单路径。
|
|
76
|
+
* - `command-rule-ask` — 命令命中安全中心的询问规则。
|
|
77
|
+
*
|
|
78
|
+
* 仅拦截类审批设置。普通有序命令 ask 仍不设此字段,卡片用模型描述。
|
|
79
|
+
* `unsafe-delete` 是 pre-exec:不安全删除(当前为 find -delete)。
|
|
80
|
+
* post-exec 沙箱拦截用于区分文件和网络原因;pre-exec 命令询问规则
|
|
81
|
+
* 使用 `command-rule-ask`,以便审批卡片展示准确的命中原因。
|
|
82
|
+
*/
|
|
83
|
+
interceptReason?: 'file-external' | 'file-blocklist' | 'file-rule-ask' | 'network-external' | 'command-rule-ask' | 'bulk-delete-threshold' | 'unsafe-delete';
|
|
84
|
+
/** 文件询问规则对应的明确操作;混合或无法识别时不设置。 */
|
|
85
|
+
fileOperation?: 'read' | 'write' | 'delete';
|
|
86
|
+
bulkDeleteInfo?: SafeDeleteBulkConfirmInfo;
|
|
87
|
+
/**
|
|
88
|
+
* HTTP 明文拦截弹窗所需信息。仅拦截成因为 `http_intercept_ask` 时设置
|
|
89
|
+
* (post-exec 网络拦截的子集),用于构造审批卡片的 target/description 文案。
|
|
90
|
+
*/
|
|
91
|
+
httpInterceptInfo?: SandboxHttpInterceptInfo;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* HTTP 明文拦截弹窗信息。由 `sandbox-orchestrator` 的 post-exec 网络拦截
|
|
95
|
+
* 审批路径填充(`networkBlockRecords` 中 reason='http_intercept_ask' 的记录),
|
|
96
|
+
* 供 `bash-sandbox-approval-requester` 构造 HTTP 专属的审批卡片文案。
|
|
97
|
+
*/
|
|
98
|
+
export interface SandboxHttpInterceptInfo {
|
|
99
|
+
/** 拼接的 HTTP URL,形如 `http://host[:port]`,用于弹窗文案展示。 */
|
|
100
|
+
url: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Extra context attached to a {@link SandboxApprovalRequest} for legacy/future
|
|
104
|
+
* sensitive-command approval flows.
|
|
105
|
+
*/
|
|
106
|
+
export interface SensitiveCommandInfo {
|
|
107
|
+
/** Human-readable reason for the sensitive-command prompt. */
|
|
108
|
+
reason: string;
|
|
109
|
+
/** The credential paths that were matched. */
|
|
110
|
+
matchedPaths: string[];
|
|
111
|
+
}
|
|
112
|
+
/** The approval choice returned by the UI or an automatic approval path. */
|
|
113
|
+
export type SandboxApprovalChoice = 'allow_once' | 'allow_session' | 'deny';
|
|
114
|
+
/** Where an approval choice came from. */
|
|
115
|
+
export type SandboxApprovalSource = 'user' | 'auto';
|
|
116
|
+
/** The approval result for a sandbox approval request. */
|
|
117
|
+
export type SandboxApprovalDecision = SandboxApprovalChoice | {
|
|
118
|
+
decision: SandboxApprovalChoice;
|
|
119
|
+
source: SandboxApprovalSource;
|
|
120
|
+
/** True only after an actual capable ACP response and native directory grant. */
|
|
121
|
+
fileDirectoryApprovalGranted?: boolean;
|
|
122
|
+
};
|
|
123
|
+
/** Callback supplied by the tool layer to surface the approval UI. */
|
|
124
|
+
export type SandboxApprovalRequester = (request: SandboxApprovalRequest) => Promise<SandboxApprovalDecision>;
|
|
125
|
+
/** ToolCall 入口固化的上报关联上下文;任何字段都不得参与执行或审批决策。 */
|
|
126
|
+
export interface SandboxTelemetryContext extends SandboxCorrelationFields {
|
|
127
|
+
agentType?: 'main' | 'sub-agent';
|
|
128
|
+
turnSandboxDisabledReason?: SandboxTurnDisabledReason;
|
|
129
|
+
}
|
|
130
|
+
/** Parameters for {@link SandboxOrchestrator.execute}. */
|
|
131
|
+
export interface SandboxOrchestratorParams {
|
|
132
|
+
/** Shell params to forward to whichever backend ultimately runs. */
|
|
133
|
+
shellParams: ShellExecuteParams;
|
|
134
|
+
/**
|
|
135
|
+
* 执行所属会话(权限判断、审批记录与埋点)。Server/多会话入口必须显式传入;
|
|
136
|
+
* CLI 缺省时在 execute 入口捕获当前会话,等待审批后不再重新读取全局槽位。
|
|
137
|
+
*/
|
|
138
|
+
session?: Session;
|
|
139
|
+
/**
|
|
140
|
+
* Absolute cwd used as part of the approval cache key. When omitted, the
|
|
141
|
+
* orchestrator resolves `shellParams.cwd` against the current workspace
|
|
142
|
+
* folder — matching the cwd that `SandboxShellService` would compute — so
|
|
143
|
+
* tests that want deterministic keys should pass this explicitly.
|
|
144
|
+
*/
|
|
145
|
+
cwd?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Model-level bypass request. When true, we skip the sandboxed first
|
|
148
|
+
* attempt and go straight to the approval UI; user consent means we run
|
|
149
|
+
* with `LocalShellService`.
|
|
150
|
+
*/
|
|
151
|
+
dangerouslyDisableSandbox: boolean;
|
|
152
|
+
/** Callback that shows the approval UI and resolves with the user's choice. */
|
|
153
|
+
requestApproval: SandboxApprovalRequester;
|
|
154
|
+
/** 仅供上报区分真实 UI 与自动决策;不参与审批结果。 */
|
|
155
|
+
approvalUiAvailable?: boolean;
|
|
156
|
+
/** ToolCall 入口固化的旁路上报上下文;不得参与任何执行或审批判定。 */
|
|
157
|
+
telemetryContext?: SandboxTelemetryContext;
|
|
158
|
+
/**
|
|
159
|
+
* When true, the orchestrator skips all pre-exec checks (ExecPolicy
|
|
160
|
+
* forbidden/allow and dangerouslyDisableSandbox pre-exec approval UI),
|
|
161
|
+
* going directly to sandbox execution + post-exec escalation only.
|
|
162
|
+
*
|
|
163
|
+
* Used by the new permission system to implement "pure post-exec approval":
|
|
164
|
+
* no command is pre-judged or pre-blocked — everything enters the sandbox
|
|
165
|
+
* first, and the user is only prompted after the sandbox reports a denial.
|
|
166
|
+
*/
|
|
167
|
+
skipPreExecChecks?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* The user-facing command **before** any tool-level wrapping.
|
|
170
|
+
*
|
|
171
|
+
* PowerShellTool wraps the model's command into
|
|
172
|
+
* `pwsh.exe -NoProfile -NonInteractive -Command "..."`, making the
|
|
173
|
+
* actual intent invisible to canonicalization when it only sees
|
|
174
|
+
* `shellParams.command`.
|
|
175
|
+
*
|
|
176
|
+
* When set, the orchestrator uses this value for:
|
|
177
|
+
* - {@link canonicalizeCommand} (produce a stable approval-cache key
|
|
178
|
+
* that doesn't depend on the PowerShell executable path)
|
|
179
|
+
* - safety checks and audit records that need the user-facing command.
|
|
180
|
+
*/
|
|
181
|
+
originalCommand?: string;
|
|
182
|
+
/**
|
|
183
|
+
* 后台执行模式。为 true 时,orchestrator 在沙箱内启动命令后立即返回
|
|
184
|
+
* handle,跳过 await sandboxHandle.wait() 及后续的归因分析和提权流程。
|
|
185
|
+
* 沙箱拒绝的操作会直接导致命令失败,不弹提权窗。
|
|
186
|
+
*
|
|
187
|
+
* 适用于 run_in_background 场景:pre-exec 安全检查(SystemToolPolicy、
|
|
188
|
+
* ExecPolicy、有序命令 ask 等)照常执行,只跳过 post-exec 阶段。
|
|
189
|
+
*/
|
|
190
|
+
background?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Logical tool name that drove this execution (`'Bash'` | `'PowerShell'` | `'Grep'`).
|
|
193
|
+
*
|
|
194
|
+
* Threaded through to `sandbox.tool_call.*` telemetry as `tags.toolName`
|
|
195
|
+
* so BI can split metrics by tool. The orchestrator is
|
|
196
|
+
* tool-agnostic and cannot infer this on its own, so the tool layer must
|
|
197
|
+
* pass it. Optional for non-tool callers (tests / internal) — absent means
|
|
198
|
+
* the attribute is simply not reported.
|
|
199
|
+
*/
|
|
200
|
+
toolName?: string;
|
|
201
|
+
}
|
|
202
|
+
/** Result of {@link SandboxOrchestrator.execute}. */
|
|
203
|
+
export interface SandboxOrchestratorResult {
|
|
204
|
+
/** The live execution handle the caller should `await .wait()` on. */
|
|
205
|
+
handle: ShellExecutionHandle;
|
|
206
|
+
/** True iff the command ended up executing outside the sandbox. */
|
|
207
|
+
bypassed: boolean;
|
|
208
|
+
/** Populated iff `bypassed` is true. */
|
|
209
|
+
bypassReason?: SandboxBypassReason;
|
|
210
|
+
/**
|
|
211
|
+
* The `ShellResult` from the sandboxed first attempt, when one occurred.
|
|
212
|
+
* Useful for diagnostics and for callers that want to differentiate
|
|
213
|
+
* "failed in sandbox, then bypassed" from "failed after bypass".
|
|
214
|
+
*/
|
|
215
|
+
sandboxAttemptResult?: ShellResult;
|
|
216
|
+
}
|
|
217
|
+
export interface SandboxOrchestrator {
|
|
218
|
+
/**
|
|
219
|
+
* Run a shell command applying the Codex-style
|
|
220
|
+
* "sandbox-first, bypass on approval" policy.
|
|
221
|
+
*
|
|
222
|
+
* Implementations must:
|
|
223
|
+
* 1. If `dangerouslyDisableSandbox`, ask the user first and either run
|
|
224
|
+
* locally (bypass) or reject.
|
|
225
|
+
* 2. Consult the session's `SandboxApprovalStore` for a cached
|
|
226
|
+
* `allow_session` approval and skip straight to local execution on
|
|
227
|
+
* hit.
|
|
228
|
+
* 3. Otherwise attempt the command in the sandbox. Return the handle
|
|
229
|
+
* immediately for successful attempts.
|
|
230
|
+
* 4. On post-exec denial (see `_parseFileBlockRecords`), request
|
|
231
|
+
* approval. On `deny` return the sandboxed (failing) handle; on
|
|
232
|
+
* `allow_*` drop the first-attempt buffers, update the store for
|
|
233
|
+
* `allow_session`, and run locally.
|
|
234
|
+
*
|
|
235
|
+
* Thrown errors propagate to the caller; approval timeouts should be
|
|
236
|
+
* surfaced by `requestApproval` itself.
|
|
237
|
+
*/
|
|
238
|
+
execute(params: SandboxOrchestratorParams): Promise<SandboxOrchestratorResult>;
|
|
239
|
+
}
|