@tencent-ai/agent-harness 0.2.0-beta.7 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/cli/CHANGELOG.md +74 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +263 -217
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +3 -1
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +7 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +6 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +46 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +27 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +7 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +46 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +35 -22
- package/cli/dist-server/types/workspace/product/lib/common/types/index.d.ts +0 -1
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +0 -7
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +41 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
- package/cli/dist-server/types/workspace/product/lib/common/types/workspace-report.d.ts +0 -119
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Workspace } from '../../workspace/runtime/lib/common/index.js';
|
|
2
|
+
import type { RunContext } from '@openai/agents';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
5
|
+
import { BaseTool } from './base-tool';
|
|
6
|
+
import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
|
|
7
|
+
import { ToolArg, ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
8
|
+
declare const NotebookReadParameters: z.ZodObject<{
|
|
9
|
+
notebook_path: z.ZodString;
|
|
10
|
+
cell_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
notebook_path: string;
|
|
13
|
+
cell_id?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
notebook_path: string;
|
|
16
|
+
cell_id?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare class NotebookReadTool extends BaseTool implements Tool {
|
|
19
|
+
protected readonly workspace: Workspace;
|
|
20
|
+
name: ToolNames;
|
|
21
|
+
aliases: string[];
|
|
22
|
+
parameters: z.ZodObject<{
|
|
23
|
+
notebook_path: z.ZodString;
|
|
24
|
+
cell_id: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
notebook_path: string;
|
|
27
|
+
cell_id?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
notebook_path: string;
|
|
30
|
+
cell_id?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
argumentRenderer: ToolCallArgumentRenderer;
|
|
33
|
+
resolveNeedPermissionArgs(runContext: RunContext, input: z.infer<typeof NotebookReadParameters>, callId?: string): ToolArg[];
|
|
34
|
+
/**
|
|
35
|
+
* 验证工具参数
|
|
36
|
+
*/
|
|
37
|
+
private validateToolParams;
|
|
38
|
+
/**
|
|
39
|
+
* 读取和解析 Jupyter notebook 文件
|
|
40
|
+
*/
|
|
41
|
+
private readNotebookFile;
|
|
42
|
+
/**
|
|
43
|
+
* 格式化单个 cell 内容
|
|
44
|
+
*/
|
|
45
|
+
private formatCell;
|
|
46
|
+
/**
|
|
47
|
+
* 根据 cell_id 查找特定的 cell
|
|
48
|
+
*/
|
|
49
|
+
private findCellById;
|
|
50
|
+
/**
|
|
51
|
+
* 执行 notebook 读取操作
|
|
52
|
+
*/
|
|
53
|
+
execute(params: z.infer<typeof NotebookReadParameters>, context: RunContext<Session>): Promise<ToolResult>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
2
|
+
import { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
3
|
+
export declare const PlanStorageService: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* Interface for Plan content persistence
|
|
6
|
+
*/
|
|
7
|
+
export interface PlanStorageService {
|
|
8
|
+
/**
|
|
9
|
+
* Initialize plan file path for a session
|
|
10
|
+
* Generates a unique plan file path and stores it in session.meta.planFilePath
|
|
11
|
+
* @param session The session
|
|
12
|
+
* @returns The generated plan file path
|
|
13
|
+
*/
|
|
14
|
+
initializePlanFilePath(session: Session): string;
|
|
15
|
+
/**
|
|
16
|
+
* Get plan file path from session
|
|
17
|
+
* @param session The session
|
|
18
|
+
* @returns The plan file path or undefined if not initialized
|
|
19
|
+
*/
|
|
20
|
+
getPlanFilePath(session: Session): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Write plan content to file
|
|
23
|
+
* @param session The session
|
|
24
|
+
* @param content The plan content to write
|
|
25
|
+
*/
|
|
26
|
+
write(session: Session, content: string): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Read plan content from file
|
|
29
|
+
* @param session The session
|
|
30
|
+
* @returns The plan content or undefined if not found
|
|
31
|
+
*/
|
|
32
|
+
read(session: Session): Promise<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Read plan content from file
|
|
35
|
+
* @param session The session
|
|
36
|
+
* @returns The plan content or undefined if not found
|
|
37
|
+
*/
|
|
38
|
+
syncRead(session: Session): string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Check if plan file exists
|
|
41
|
+
* @param session The session
|
|
42
|
+
*/
|
|
43
|
+
exists(session: Session): Promise<boolean>;
|
|
44
|
+
}
|
|
45
|
+
export declare class PlanStorageServiceImpl implements PlanStorageService {
|
|
46
|
+
protected readonly logger: Logger;
|
|
47
|
+
/**
|
|
48
|
+
* Initialize plan file path for a session
|
|
49
|
+
*/
|
|
50
|
+
initializePlanFilePath(session: Session): string;
|
|
51
|
+
/**
|
|
52
|
+
* Get plan file path from session
|
|
53
|
+
*/
|
|
54
|
+
getPlanFilePath(session: Session): string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Write plan content to file
|
|
57
|
+
*/
|
|
58
|
+
write(session: Session, content: string): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Read plan content from file
|
|
61
|
+
*/
|
|
62
|
+
read(session: Session): Promise<string | undefined>;
|
|
63
|
+
syncRead(session: Session): string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Check if plan file exists
|
|
66
|
+
*/
|
|
67
|
+
exists(session: Session): Promise<boolean>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerShell Constrained Language Mode (CLM) allowed types.
|
|
3
|
+
*
|
|
4
|
+
* Microsoft's CLM restricts .NET type usage to this allowlist when PowerShell
|
|
5
|
+
* runs under AppLocker/WDAC system lockdown. Any type NOT in this set is
|
|
6
|
+
* considered unsafe for untrusted code execution.
|
|
7
|
+
*
|
|
8
|
+
* We invert this: type literals not in this set -> ask. One canonical check
|
|
9
|
+
* replaces enumerating individual dangerous types (named pipes, reflection,
|
|
10
|
+
* process spawning, P/Invoke marshaling, etc.). Microsoft maintains the list.
|
|
11
|
+
*
|
|
12
|
+
* Source: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes
|
|
13
|
+
*
|
|
14
|
+
* Aligned with Claude Code's clmTypes.ts.
|
|
15
|
+
*
|
|
16
|
+
* Normalization: entries stored lowercase, short AND full names where both
|
|
17
|
+
* exist (PS resolves type accelerators like [int] -> System.Int32 at runtime;
|
|
18
|
+
* we match against the literal text from the command).
|
|
19
|
+
*/
|
|
20
|
+
export declare const CLM_ALLOWED_TYPES: ReadonlySet<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Normalize a type name from command text.
|
|
23
|
+
* Handles array suffix ([]) and generic brackets.
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalizeTypeName(name: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* True if typeName is in Microsoft's CLM allowlist.
|
|
28
|
+
* Types NOT in this set trigger ask — they access system APIs CLM blocks.
|
|
29
|
+
*/
|
|
30
|
+
export declare function isClmAllowedType(typeName: string): boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Windows command exit code semantic interpretation.
|
|
3
|
+
*
|
|
4
|
+
* Some Windows commands use non-zero exit codes for non-error conditions.
|
|
5
|
+
* Without this mapping, the model (and user) would interpret any non-zero
|
|
6
|
+
* exit code as a failure, leading to unnecessary retries.
|
|
7
|
+
*
|
|
8
|
+
* Reference: Claude Code's commandSemantics.ts
|
|
9
|
+
*/
|
|
10
|
+
export interface CommandSemantic {
|
|
11
|
+
/** Whether this exit code represents an actual error */
|
|
12
|
+
isError: boolean;
|
|
13
|
+
/** Human-readable explanation of the exit code */
|
|
14
|
+
message?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Interpret the exit code of a command, accounting for Windows-specific semantics.
|
|
18
|
+
*
|
|
19
|
+
* @param command - The original command string
|
|
20
|
+
* @param exitCode - The process exit code
|
|
21
|
+
* @returns Semantic interpretation, or null if no special handling needed
|
|
22
|
+
*/
|
|
23
|
+
export declare function interpretCommandResult(command: string, exitCode: number | null): CommandSemantic | null;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for PowerShell cmdlets that execute arbitrary code.
|
|
3
|
+
*
|
|
4
|
+
* These lists are consumed by the security checker (powershell-security.ts)
|
|
5
|
+
* and future permission UI components. Keeping them here avoids duplicating
|
|
6
|
+
* the lists and prevents sync drift.
|
|
7
|
+
*
|
|
8
|
+
* Aligned with Claude Code's dangerousCmdlets.ts.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* PowerShell common alias -> canonical cmdlet name mapping.
|
|
12
|
+
* Used for resolving aliases before security checks.
|
|
13
|
+
*
|
|
14
|
+
* Lowercase keys and values for case-insensitive matching.
|
|
15
|
+
*/
|
|
16
|
+
export declare const COMMON_ALIASES: Readonly<Record<string, string>>;
|
|
17
|
+
/**
|
|
18
|
+
* Cmdlets that accept a -FilePath (or positional path) and execute the
|
|
19
|
+
* file's contents as a script.
|
|
20
|
+
*/
|
|
21
|
+
export declare const FILEPATH_EXECUTION_CMDLETS: Set<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Cmdlets where a scriptblock argument executes arbitrary code (not just
|
|
24
|
+
* filtering/transforming pipeline input like Where-Object).
|
|
25
|
+
*/
|
|
26
|
+
export declare const DANGEROUS_SCRIPT_BLOCK_CMDLETS: Set<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Cmdlets that load and execute module/script code. .psm1 files run
|
|
29
|
+
* their top-level body on import — same code-execution risk as iex.
|
|
30
|
+
*/
|
|
31
|
+
export declare const MODULE_LOADING_CMDLETS: Set<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Network cmdlets — wildcard rules for these enable exfil/download without prompt.
|
|
34
|
+
*/
|
|
35
|
+
export declare const NETWORK_CMDLETS: Set<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Alias/variable mutation cmdlets — Set-Alias rebinds command resolution,
|
|
38
|
+
* Set-Variable can poison $PSDefaultParameterValues.
|
|
39
|
+
*/
|
|
40
|
+
export declare const ALIAS_HIJACK_CMDLETS: Set<string>;
|
|
41
|
+
/**
|
|
42
|
+
* WMI/CIM process spawn — Invoke-WmiMethod -Class Win32_Process -Name Create
|
|
43
|
+
* is a Start-Process equivalent that bypasses normal process checks.
|
|
44
|
+
*/
|
|
45
|
+
export declare const WMI_CIM_CMDLETS: Set<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Shells and interpreters whose child processes do NOT go through
|
|
48
|
+
* checkPowerShellSecurity. Spawning any of these means the child runs
|
|
49
|
+
* arbitrary code outside the validation surface (issue #42604).
|
|
50
|
+
*/
|
|
51
|
+
export declare const SHELLS_AND_INTERPRETERS: readonly ["pwsh", "powershell", "cmd", "wsl", "bash", "sh", "zsh", "busybox"];
|
|
52
|
+
/**
|
|
53
|
+
* Windows native binaries that are MITRE-classified LOLBins.
|
|
54
|
+
* They can perform actions equivalent to BLOCKed cmdlets (process creation,
|
|
55
|
+
* persistence, in-memory code compilation/loading) without matching any
|
|
56
|
+
* PowerShell-cmdlet regex (issue #42604).
|
|
57
|
+
*
|
|
58
|
+
* Note: read-only subcommands (e.g. `reg query`, `sc query`, `schtasks /Query`)
|
|
59
|
+
* are deliberately handled by more specific patterns in powershell-security.ts
|
|
60
|
+
* so they are not blanket-blocked here.
|
|
61
|
+
*/
|
|
62
|
+
export declare const WINDOWS_LOLBINS: readonly ["csc", "installutil", "regsvr32", "rundll32", "mshta", "wscript", "cscript", "msbuild", "bitsadmin", "certutil"];
|
|
63
|
+
/**
|
|
64
|
+
* Commands to never suggest as a wildcard prefix in the permission dialog.
|
|
65
|
+
* Derived from the above lists plus shells and interpreters.
|
|
66
|
+
*/
|
|
67
|
+
export declare const NEVER_SUGGEST: ReadonlySet<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Resolve a command name through COMMON_ALIASES to its canonical cmdlet.
|
|
70
|
+
* Returns the canonical lowercase name, or the lowercased input if no alias.
|
|
71
|
+
*/
|
|
72
|
+
export declare function resolveAlias(name: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects potentially destructive PowerShell commands and returns a warning
|
|
3
|
+
* string for display in the permission dialog. This is purely informational
|
|
4
|
+
* -- it doesn't affect permission logic or auto-approval.
|
|
5
|
+
*
|
|
6
|
+
* Aligned with Claude Code's destructiveCommandWarning.ts.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a PowerShell command matches known destructive patterns.
|
|
10
|
+
* Returns a human-readable warning string, or null if no destructive pattern is detected.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getDestructiveCommandWarning(command: string): string | null;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerShell edition information
|
|
3
|
+
*/
|
|
4
|
+
export type PowerShellEdition = 'core' | 'desktop';
|
|
5
|
+
/**
|
|
6
|
+
* Detected PowerShell information
|
|
7
|
+
*/
|
|
8
|
+
export interface PowerShellInfo {
|
|
9
|
+
/** Full path to the PowerShell executable */
|
|
10
|
+
path: string;
|
|
11
|
+
/** PowerShell version string (e.g. "7.4.1"), or null if detection failed */
|
|
12
|
+
version: string | null;
|
|
13
|
+
/** Whether this is PowerShell 7+ (pwsh) */
|
|
14
|
+
isPwsh7: boolean;
|
|
15
|
+
/** Edition: 'core' (pwsh 7+) or 'desktop' (powershell 5.1) */
|
|
16
|
+
edition: PowerShellEdition;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Find and cache PowerShell installation.
|
|
20
|
+
*
|
|
21
|
+
* Discovery order:
|
|
22
|
+
* 1. Environment variable CODEBUDDY_POWERSHELL_PATH (user override)
|
|
23
|
+
* 2. pwsh in PATH (PowerShell 7+, cross-platform)
|
|
24
|
+
* 3. powershell in PATH (Windows PowerShell 5.1)
|
|
25
|
+
* 4. Well-known default paths on Windows
|
|
26
|
+
*
|
|
27
|
+
* Returns null if PowerShell is not found.
|
|
28
|
+
*/
|
|
29
|
+
export declare function findPowerShell(): PowerShellInfo | null;
|
|
30
|
+
/**
|
|
31
|
+
* Get the cached PowerShell path, or null if not available.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getCachedPowerShellPath(): string | null;
|
|
34
|
+
export declare function findPowerShellSandboxSafe(): PowerShellInfo | null;
|
|
35
|
+
/**
|
|
36
|
+
* Get the PowerShell edition, or null if not available.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getPowerShellEdition(): PowerShellEdition | null;
|
|
39
|
+
/**
|
|
40
|
+
* Check if PowerShell tool should be enabled.
|
|
41
|
+
*
|
|
42
|
+
* Enabled when:
|
|
43
|
+
* - Running on Windows AND
|
|
44
|
+
* - PowerShell is available AND
|
|
45
|
+
* - Not explicitly disabled via CODEBUDDY_USE_POWERSHELL_TOOL=0
|
|
46
|
+
*/
|
|
47
|
+
export declare function isPowerShellToolEnabled(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Clear cached detection result (for testing).
|
|
50
|
+
*/
|
|
51
|
+
export declare function clearPowerShellCache(): void;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git safety checks for PowerShell commands.
|
|
3
|
+
*
|
|
4
|
+
* Git can be weaponized for sandbox escape via two vectors:
|
|
5
|
+
* 1. Bare-repo attack: if cwd contains HEAD + objects/ + refs/ but no valid
|
|
6
|
+
* .git/HEAD, Git treats cwd as a bare repository and runs hooks from cwd.
|
|
7
|
+
* 2. Git-internal write + git: a compound command creates HEAD/objects/refs/
|
|
8
|
+
* hooks/ then runs git — the git subcommand executes the freshly-created
|
|
9
|
+
* malicious hooks.
|
|
10
|
+
*
|
|
11
|
+
* This is a regex-based approximation of Claude Code's AST-based gitSafety.ts.
|
|
12
|
+
* It cannot be as precise without AST parameter binding, but covers the common
|
|
13
|
+
* attack vectors through heuristic command/path analysis.
|
|
14
|
+
*
|
|
15
|
+
* Aligned with Claude Code's gitSafety.ts.
|
|
16
|
+
*/
|
|
17
|
+
import type { SecurityCheckResult } from './powershell-security';
|
|
18
|
+
/**
|
|
19
|
+
* Normalize a PowerShell argument to a canonical path for git-internal matching.
|
|
20
|
+
*
|
|
21
|
+
* Order: structural strips (quotes, backtick escapes, provider prefix),
|
|
22
|
+
* then NTFS per-component trailing-strip (spaces always; dots only if not ./..),
|
|
23
|
+
* then normalize separators, then case-fold.
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalizeGitPathArg(arg: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* True if arg (raw PS arg text) resolves to a git-internal path.
|
|
28
|
+
* Covers both bare-repo paths (hooks/, refs/) and standard-repo paths
|
|
29
|
+
* (.git/hooks/, .git/config).
|
|
30
|
+
*/
|
|
31
|
+
export declare function isGitInternalPath(arg: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* True if arg resolves to a path inside .git/ (standard-repo metadata dir).
|
|
34
|
+
* Unlike isGitInternalPath, does NOT match bare-repo-style root-level
|
|
35
|
+
* hooks/, refs/ etc. — those are common project directory names.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isDotGitPath(arg: string): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Cmdlets that can place a file at a caller-specified path. The
|
|
40
|
+
* git-internal-paths guard checks whether any arg is a git-internal path.
|
|
41
|
+
*/
|
|
42
|
+
export declare const GIT_SAFETY_WRITE_CMDLETS: Set<string>;
|
|
43
|
+
/**
|
|
44
|
+
* External archive-extraction applications that write files to cwd with
|
|
45
|
+
* archive-controlled paths. Archive contents are opaque — any extraction
|
|
46
|
+
* preceding git must ask.
|
|
47
|
+
*/
|
|
48
|
+
export declare const GIT_SAFETY_ARCHIVE_EXTRACTORS: Set<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Check if a compound PowerShell command contains a dangerous git-write pattern.
|
|
51
|
+
*
|
|
52
|
+
* Detects two patterns:
|
|
53
|
+
* 1. Write cmdlet targeting a git-internal path + git command in same compound
|
|
54
|
+
* 2. Archive extraction + git command in same compound (TOCTOU)
|
|
55
|
+
*
|
|
56
|
+
* This is a regex heuristic — it splits the command by statement separators
|
|
57
|
+
* and checks each segment. Less precise than Claude Code's AST-based check
|
|
58
|
+
* but covers the common attack vectors.
|
|
59
|
+
*/
|
|
60
|
+
export declare function checkGitSafety(command: string): SecurityCheckResult;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerShell command security checker.
|
|
3
|
+
*
|
|
4
|
+
* Aligned with Claude Code's 24 security validators using regex-based
|
|
5
|
+
* pattern matching + CLM type whitelist + git safety + destructive warnings.
|
|
6
|
+
*
|
|
7
|
+
* Multi-layer security:
|
|
8
|
+
* Layer 1: BLOCK/ASK pattern matching (24/24 Claude Code validators)
|
|
9
|
+
* Layer 2: CLM type whitelist (~90 types, inverted check)
|
|
10
|
+
* Layer 3: Git safety (compound command git-write detection)
|
|
11
|
+
* Layer 4: CMD syntax compatibility checks (avoid cmd.exe semantics in PowerShell)
|
|
12
|
+
* Layer 5: Read-only validation (explicit whitelist, no dangerous Get-*)
|
|
13
|
+
* Layer 6: Destructive command warnings (informational UI hints)
|
|
14
|
+
*
|
|
15
|
+
* Enhancements:
|
|
16
|
+
* - Unicode dash support (en-dash U+2013, em-dash U+2014, horizontal-bar U+2015)
|
|
17
|
+
* - Full CLM type whitelist (~90 types) replacing 6 hardcoded type checks
|
|
18
|
+
* - Alias resolution via COMMON_ALIASES before read-only checks
|
|
19
|
+
* - Explicit Get-* whitelist (excludes Get-Command, Get-Help, Get-WmiObject, Get-CimInstance)
|
|
20
|
+
* - External command flag validation (git, docker, dotnet, node, python)
|
|
21
|
+
* - Git safety checks for compound commands
|
|
22
|
+
* - Destructive command warnings in SecurityCheckResult
|
|
23
|
+
* - bitsadmin /transfer detection (Claude Code #6 completeness)
|
|
24
|
+
*
|
|
25
|
+
* Claude Code validator mapping (24/24 covered):
|
|
26
|
+
* 1. checkInvokeExpression -> BLOCK: Invoke-Expression / iex
|
|
27
|
+
* 2. checkDynamicCommandName -> BLOCK: $() as command name
|
|
28
|
+
* 3. checkEncodedCommand -> BLOCK: -EncodedCommand / -enc (+ Unicode dashes)
|
|
29
|
+
* 4. checkPwshCommandOrFile -> ASK: pwsh/powershell as command or Start-Process target
|
|
30
|
+
* 5. checkDownloadCradles -> BLOCK: IWR|IEX, IRM|IEX, WebClient
|
|
31
|
+
* 6. checkDownloadUtilities -> BLOCK: certutil, Start-BitsTransfer, bitsadmin
|
|
32
|
+
* 7. checkAddType -> BLOCK: Add-Type
|
|
33
|
+
* 8. checkComObject -> BLOCK: New-Object -ComObject (+ Unicode dashes)
|
|
34
|
+
* 9. checkDangerousFilePathExecution -> BLOCK: -FilePath/-LiteralPath (+ Unicode dashes)
|
|
35
|
+
* 10. checkForEachMemberName -> ASK: ForEach-Object -MemberName (+ positional + aliases)
|
|
36
|
+
* 11. checkStartProcess -> ASK: Start-Process -Verb RunAs (+ Unicode dashes + colon-bound)
|
|
37
|
+
* 12. checkScriptBlockInjection -> BLOCK: Invoke-Command {, Start-Job {
|
|
38
|
+
* 13. checkSubExpressions -> ASK: $() sub-expressions
|
|
39
|
+
* 14. checkExpandableStrings -> ASK: "$($expr)" expandable strings
|
|
40
|
+
* 15. checkSplatting -> ASK: @variable splatting
|
|
41
|
+
* 16. checkStopParsing -> ASK: --% stop-parsing token
|
|
42
|
+
* 17. checkMemberInvocations -> ASK: .Method() / ::StaticMethod()
|
|
43
|
+
* 18. checkTypeLiterals -> ASK: CLM whitelist check (~90 types)
|
|
44
|
+
* 19. checkInvokeItem -> ASK: Invoke-Item / ii
|
|
45
|
+
* 20. checkScheduledTask -> ASK: Register-ScheduledTask / schtasks (+ New-ScheduledTask*)
|
|
46
|
+
* 21. checkEnvVarManipulation -> ASK: [Environment]::SetEnvironmentVariable Machine
|
|
47
|
+
* 22. checkModuleLoading -> ASK: Install-Module / Import-Module (+ Update/Save-Script)
|
|
48
|
+
* 23. checkRuntimeStateManipulation -> ASK: Set-Alias / Set-Variable / New-Variable (hijacking)
|
|
49
|
+
* 24. checkWmiProcessSpawn -> BLOCK: Invoke-WmiMethod Win32_Process
|
|
50
|
+
*
|
|
51
|
+
* Issue #42604 hardening (Windows-only):
|
|
52
|
+
* - BLOCK Start-Process when target is a shell/interpreter/LOLBin/system-tool
|
|
53
|
+
* (covers `Start-Process powershell -File` child-process escape)
|
|
54
|
+
* - BLOCK Windows native LOLBins:
|
|
55
|
+
* csc / InstallUtil / regsvr32 / rundll32 / mshta / wscript / cscript / msbuild
|
|
56
|
+
* (wmic/sc/reg/schtasks 直接执行由 SystemToolPolicy 管控,
|
|
57
|
+
* 但 Start-Process 创建的子进程脱离沙箱,仍需 block)
|
|
58
|
+
* - BLOCK non-PowerShell shells at line start: bash / sh / zsh / busybox
|
|
59
|
+
* (wsl 直接执行由 SystemToolPolicy 管控)
|
|
60
|
+
* - BLOCK .NET runtime APIs equivalent to existing BLOCKs:
|
|
61
|
+
* [Diagnostics.Process]::Start (== Start-Process)
|
|
62
|
+
* New-Object Diagnostics.Process (== Start-Process)
|
|
63
|
+
* [Reflection.Assembly]::Load* (== Add-Type)
|
|
64
|
+
* [AppDomain]::*ExecuteAssembly (== Add-Type)
|
|
65
|
+
* [PowerShell]::Create()...AddScript (== IEX)
|
|
66
|
+
* $ExecutionContext.InvokeCommand.* (== IEX)
|
|
67
|
+
* - ASK reg export/save (registry hive dump for offline cred extraction)
|
|
68
|
+
*
|
|
69
|
+
* Known limitations tracked separately:
|
|
70
|
+
* - Sandbox path bypasses checkPowerShellSecurity entirely
|
|
71
|
+
* - `-File <script>` content is not recursively scanned
|
|
72
|
+
*/
|
|
73
|
+
export type SecurityBehavior = 'allow' | 'ask' | 'block';
|
|
74
|
+
export interface SecurityCheckResult {
|
|
75
|
+
/** Whether the command is safe to run */
|
|
76
|
+
behavior: SecurityBehavior;
|
|
77
|
+
/** Human-readable reason for the decision */
|
|
78
|
+
reason?: string;
|
|
79
|
+
/** Informational warning for display in permission dialog (does not affect behavior) */
|
|
80
|
+
warning?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a PowerShell command is safe to run.
|
|
84
|
+
*
|
|
85
|
+
* Returns:
|
|
86
|
+
* - { behavior: 'block' } for dangerous commands
|
|
87
|
+
* - { behavior: 'ask' } for commands needing confirmation
|
|
88
|
+
* - { behavior: 'allow' } for safe read-only commands
|
|
89
|
+
* - { behavior: 'ask' } as default for unknown commands
|
|
90
|
+
*
|
|
91
|
+
* The `warning` field is populated for destructive commands regardless of behavior.
|
|
92
|
+
*/
|
|
93
|
+
export declare function checkPowerShellSecurity(command: string): SecurityCheckResult;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { Session, SessionManager } from '../../vendor/cbc-core/node/index.js';
|
|
3
|
+
import { FunctionCallItem, ToolArg, ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
4
|
+
import type { RunContext, ToolExecuteArgument } from '@openai/agents';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { type AcpTerminalPublisher } from '../acp/acp-protocol';
|
|
7
|
+
import { BackgroundTaskNotifier } from '../agent-task/agent-task-protocol';
|
|
8
|
+
import { ToolResultBlobService } from '../blob-store/tool-result-blob-service';
|
|
9
|
+
import { type SandboxOrchestrator as ISandboxOrchestrator, type SandboxPermissionGateway as ISandboxPermissionGateway } from '../permission';
|
|
10
|
+
import { SettingsManager } from '../settings';
|
|
11
|
+
import { ShortcutManager } from '../shortcut/shortcut-protocol';
|
|
12
|
+
import { type SandboxTelemetryReporter as ISandboxTelemetryReporter } from '../telemetry/sandbox-telemetry-protocol';
|
|
13
|
+
import { BaseTool } from './base-tool';
|
|
14
|
+
import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
|
|
15
|
+
type ShellServiceType = import('../shell/index.js').ShellService;
|
|
16
|
+
type BashSandboxManagerType = import('../bash-sandbox/bash-sandbox-protocol.js').BashSandboxManager;
|
|
17
|
+
declare const PowerShellParameters: z.ZodObject<{
|
|
18
|
+
command: z.ZodString;
|
|
19
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
run_in_background: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
dangerouslyDisableSandbox: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
command: string;
|
|
25
|
+
timeout?: number | undefined;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
run_in_background?: boolean | undefined;
|
|
28
|
+
dangerouslyDisableSandbox?: boolean | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
command: string;
|
|
31
|
+
timeout?: number | undefined;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
run_in_background?: boolean | undefined;
|
|
34
|
+
dangerouslyDisableSandbox?: boolean | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
type PowerShellInput = z.infer<typeof PowerShellParameters>;
|
|
37
|
+
export declare class PowerShellTool extends BaseTool implements Tool {
|
|
38
|
+
protected readonly shortcutManager: ShortcutManager;
|
|
39
|
+
protected readonly logger: Logger;
|
|
40
|
+
protected readonly settingsManager: SettingsManager;
|
|
41
|
+
protected readonly toolResultBlobService: ToolResultBlobService;
|
|
42
|
+
protected readonly shellService: ShellServiceType;
|
|
43
|
+
protected readonly sandboxOrchestrator: ISandboxOrchestrator;
|
|
44
|
+
protected readonly sandboxTelemetryReporter?: ISandboxTelemetryReporter;
|
|
45
|
+
protected readonly sandboxPermissionGateway: ISandboxPermissionGateway;
|
|
46
|
+
protected readonly sessionManager: SessionManager;
|
|
47
|
+
protected readonly backgroundTaskNotifier: BackgroundTaskNotifier;
|
|
48
|
+
protected readonly bashSandboxManager: BashSandboxManagerType;
|
|
49
|
+
/**
|
|
50
|
+
* ACP v2 终端推送器。惰性解析而非 @Autowired:纯 TUI / SDK 运行时不会加载 acp 模块,
|
|
51
|
+
* 此时容器里没有这个绑定,取不到就整体降级为不推送。与 BashTool 同款。
|
|
52
|
+
*/
|
|
53
|
+
private terminalPublisherRef?;
|
|
54
|
+
protected get terminalPublisher(): AcpTerminalPublisher | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* 发一条终端创建通知。整段自吞异常:这是尽力而为的旁路观测,绝不能让它的失败
|
|
57
|
+
* 掀翻已经 spawn 成功的后台任务(与 BashTool 的两处 try/catch 强度对齐)。
|
|
58
|
+
*
|
|
59
|
+
* `command` 传的是**脱敏后**的命令:`redactPowerShellCommand` 的产物同时用于
|
|
60
|
+
* `task.title`,上 wire 的那份必须同源,否则会把内联凭据推给客户端。
|
|
61
|
+
*/
|
|
62
|
+
private notifyTerminalCreated;
|
|
63
|
+
/**
|
|
64
|
+
* 发一条终端退出通知。任何终止分支都必须调用:`exitStatus` 是客户端判定"已结束"
|
|
65
|
+
* 的唯一依据,漏一条就会让卡片永远停在运行中。
|
|
66
|
+
*/
|
|
67
|
+
private notifyTerminalExit;
|
|
68
|
+
/**
|
|
69
|
+
* 把一段后台输出投给 ACP 客户端。
|
|
70
|
+
*
|
|
71
|
+
* 保真度:PowerShell 的后台执行没有文件 fd 通道,输出一律经 ConPTY / child_process
|
|
72
|
+
* 解码成字符串后才到这里,原始字节在上游就没了,只能重新编码回 UTF-8。这与
|
|
73
|
+
* BashTool 的 pipe 兜底路径同级,弱于 BashTool 的 file-fd 通道(那条是字节保真)。
|
|
74
|
+
* 不是 bug,是已知取舍——前台链路本就需要字符串去拼 ToolResult。
|
|
75
|
+
*/
|
|
76
|
+
private publishTerminalOutput;
|
|
77
|
+
name: ToolNames;
|
|
78
|
+
aliases: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Dynamic schema (method, not static field) so ToolManager.get()
|
|
81
|
+
* re-evaluates it against the current env. When
|
|
82
|
+
* CODEBUDDY_CODE_DISABLE_BACKGROUND_TASKS is truthy the `run_in_background`
|
|
83
|
+
* field is omitted from what the model sees (issue #63114). The runtime
|
|
84
|
+
* guard in `execute()` coerces stale/cached `run_in_background=true` back to
|
|
85
|
+
* foreground. Note: the foreground-timeout auto-background path is a
|
|
86
|
+
* separate lifecycle safeguard and is not governed by this env.
|
|
87
|
+
*/
|
|
88
|
+
parameters(): z.ZodTypeAny;
|
|
89
|
+
argumentRenderer: ToolCallArgumentRenderer;
|
|
90
|
+
/**
|
|
91
|
+
* Only enabled on Windows when PowerShell is available.
|
|
92
|
+
*/
|
|
93
|
+
isEnabled: () => boolean;
|
|
94
|
+
resolveNeedPermissionArgs(_runContext: RunContext, input: PowerShellInput, _callId?: string): ToolArg[];
|
|
95
|
+
/** Auto mode classifier projection: the command is the action's risk surface. */
|
|
96
|
+
toAutoClassifierInput(input: unknown): string;
|
|
97
|
+
needsApproval: (runContext: RunContext<Session>, input: ToolExecuteArgument<any>, callId?: string) => Promise<boolean>;
|
|
98
|
+
execute(input: PowerShellInput, context: RunContext<Session>, details?: {
|
|
99
|
+
toolCall: FunctionCallItem;
|
|
100
|
+
}): Promise<ToolResult>;
|
|
101
|
+
private executeForeground;
|
|
102
|
+
/** 补齐未进入 Orchestrator 的 PowerShell 本机执行路由,不参与执行控制。 */
|
|
103
|
+
private _scheduleDirectNativeOutcome;
|
|
104
|
+
private _logOutcomeTelemetryFailure;
|
|
105
|
+
/**
|
|
106
|
+
* Route PowerShell execution through the SandboxOrchestrator. The
|
|
107
|
+
* orchestrator owns the sandbox-first / bypass-on-approval policy, so this
|
|
108
|
+
* method's job is limited to:
|
|
109
|
+
* - wrapping the user command into the `pwsh -NoProfile -NonInteractive -Command "..."`
|
|
110
|
+
* form that sandbox-cli executes with `rawCommand: true`;
|
|
111
|
+
* - routing the orchestrator's approval requests through
|
|
112
|
+
* `session.interruptionSubject` so the Desktop UI (SandboxInterceptCard)
|
|
113
|
+
* picks them up;
|
|
114
|
+
* - shaping the resulting ShellResult into the PowerShell tool's
|
|
115
|
+
* `buildResult`-equivalent output.
|
|
116
|
+
*/
|
|
117
|
+
private executeForegroundViaOrchestrator;
|
|
118
|
+
/**
|
|
119
|
+
* 后台执行走 Orchestrator,对齐 Bash 后台的实现。
|
|
120
|
+
* 构建 rawCommand(pwsh -Command "...")交给 orchestrator.execute(),
|
|
121
|
+
* 拿到 handle 后用 handle.wait() 追踪完成状态。
|
|
122
|
+
*/
|
|
123
|
+
private executeInBackgroundViaOrchestrator;
|
|
124
|
+
/**
|
|
125
|
+
* Construct an approval requester that surfaces orchestrator prompts via
|
|
126
|
+
* the standard RunToolApprovalItem flow. Mirrors BashTool's requester but
|
|
127
|
+
* renders under the `PowerShell` tool name so the UI can label correctly.
|
|
128
|
+
*/
|
|
129
|
+
private _createApprovalRequester;
|
|
130
|
+
private executeInBackground;
|
|
131
|
+
/**
|
|
132
|
+
* 创建 BackgroundTask 并注册到 ToolManager / session.backgroundTaskSubject。
|
|
133
|
+
* 供前台超时自动后台化、Ctrl+B 转后台、显式 run_in_background 三条路径共用。
|
|
134
|
+
*
|
|
135
|
+
* NOTE: 与 BashTool 的 `createBackgroundTask` 实现重叠约 80%,后续独立 PR 抽出
|
|
136
|
+
* `ShellToolBase` 基类统一(见 task #10)。
|
|
137
|
+
*/
|
|
138
|
+
private registerBackgroundTask;
|
|
139
|
+
/**
|
|
140
|
+
* 翻 BackgroundTask 终态并推送完成事件。
|
|
141
|
+
*
|
|
142
|
+
* **必须**由调用方传入 task 启动时的 session 快照(`sessionAtRegister`),
|
|
143
|
+
* 不能在这里 `sessionManager.sessionSubject.value` 即时读 —— 后台任务跨 turn
|
|
144
|
+
* 完成时 session 可能已被切走,即时读会把通知推到错误的会话或丢失。
|
|
145
|
+
* 对齐 `BackgroundTaskNotifier` 文档承诺:"传入的 session 必须是 task 启动时所在的那个"。
|
|
146
|
+
*/
|
|
147
|
+
private updateBackgroundTaskStatus;
|
|
148
|
+
private buildBackgroundResult;
|
|
149
|
+
private spawnPowerShellPty;
|
|
150
|
+
private spawnPowerShell;
|
|
151
|
+
private buildResult;
|
|
152
|
+
validateRuntimeInput(input: unknown): ToolResult | undefined;
|
|
153
|
+
private invalidInputResult;
|
|
154
|
+
private errorResult;
|
|
155
|
+
private generateTaskId;
|
|
156
|
+
/**
|
|
157
|
+
* Build a model-readable description of sandbox interception, mirroring
|
|
158
|
+
* BashTool's `Append sandbox intercept information` block. Returns an
|
|
159
|
+
* empty string when no interception happened, so the foreground orchestrator
|
|
160
|
+
* path can append it conditionally without leaking noise into normal runs.
|
|
161
|
+
*
|
|
162
|
+
* Cases:
|
|
163
|
+
* - `sandboxDenied + sandboxEscalationDenied` → user explicitly rejected
|
|
164
|
+
* the approval prompt; tell the model so it stops retrying silently.
|
|
165
|
+
* - `sandboxDenied` with a non-zero exit → sandbox blocked the operation;
|
|
166
|
+
* model should adjust approach.
|
|
167
|
+
* - `fileBlockRecords` / `networkBlockRecords` without `sandboxDenied` →
|
|
168
|
+
* non-blocking intercepts (e.g. `strip_write` that didn't surface as a
|
|
169
|
+
* denial); attach as informational so the model knows side effects may
|
|
170
|
+
* not have happened.
|
|
171
|
+
*/
|
|
172
|
+
private _buildSandboxInterceptInfo;
|
|
173
|
+
}
|
|
174
|
+
export {};
|