@tencent-ai/agent-harness 0.2.0-beta.6 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/cli/CHANGELOG.md +123 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +338 -291
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +11 -2
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +69 -44
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +6 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +62 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type FileDirectoryApproval } from '../../workspace/sandbox-cli/lib/node/file-policy.js';
|
|
3
|
+
import { type BashSandboxManager as IBashSandboxManager, type ModifyBackupExcludedPathOptions } from '../bash-sandbox/bash-sandbox-protocol';
|
|
4
|
+
import { type SandboxCenterIpcClient as ISandboxCenterIpcClient } from '../sensitive-content/sandbox-center-ipc-client-protocol';
|
|
5
|
+
import { type ISandboxCLILifecycle } from './sandbox-cli-lifecycle-protocol';
|
|
6
|
+
import type { SandboxTurnConfig as ISandboxTurnConfig } from './sandbox-turn-config';
|
|
7
|
+
export declare const SandboxRuleSyncService: unique symbol;
|
|
8
|
+
export declare class FileDirectoryApprovalError extends Error {
|
|
9
|
+
readonly allowOnce: boolean;
|
|
10
|
+
constructor(message: string, allowOnce: boolean);
|
|
11
|
+
}
|
|
12
|
+
export type SandboxRuleSyncStatus = 'applied' | 'deferred' | 'failed';
|
|
13
|
+
export interface SandboxRuleSyncResult {
|
|
14
|
+
status: 'applied' | 'deferred';
|
|
15
|
+
}
|
|
16
|
+
/** path 为本次询问的真实目标,directory 为宿主从该目标推导出的授权目录。 */
|
|
17
|
+
export interface SandboxFileDirectoryApprovalRequest extends FileDirectoryApproval {
|
|
18
|
+
path: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SandboxRuleSyncService {
|
|
21
|
+
/**
|
|
22
|
+
* Turn 开始时同步所有必要的沙箱规则。
|
|
23
|
+
* 由 interceptor 每轮调用一次,作为 Turn 级规则同步的统一入口。
|
|
24
|
+
*/
|
|
25
|
+
syncRulesOnTurnStart(sessionId: string, permissionMode?: string): Promise<SandboxRuleSyncResult>;
|
|
26
|
+
/** 安全中心配置变更时刷新持久规则,不清理当前 Turn 的临时规则。 */
|
|
27
|
+
syncRulesOnConfigRefresh(sessionId: string, permissionMode?: string): Promise<SandboxRuleSyncResult>;
|
|
28
|
+
getFilePolicyGeneration(sessionId: string): number;
|
|
29
|
+
supportsFileDirectoryApproval(sessionId: string): boolean;
|
|
30
|
+
hasFileDirectoryApprovals(sessionId: string): boolean;
|
|
31
|
+
/** 新 worker 在首次规则同步前合并宿主保存的已确认目录批准。 */
|
|
32
|
+
restoreCommittedFileApprovals(sessionId: string, approvals: readonly FileDirectoryApproval[]): void;
|
|
33
|
+
onFileApprovalCommitted(listener: (approval: FileDirectoryApproval & {
|
|
34
|
+
sessionId: string;
|
|
35
|
+
}) => void): () => void;
|
|
36
|
+
/**
|
|
37
|
+
* 登记本会话目录批准并重建文件规则;复核目标已被放行后才返回。
|
|
38
|
+
* 失败时撤回本次登记并恢复原规则。
|
|
39
|
+
*/
|
|
40
|
+
grantFileApproval(sessionId: string, request: SandboxFileDirectoryApprovalRequest, expectedGeneration: number): Promise<{
|
|
41
|
+
registered: boolean;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* 目录授权回滚失败后,原生端可能残留允许规则:执行受保护操作前重新全量下发,
|
|
45
|
+
* 恢复失败则抛错,调用方必须拒绝执行。其他同步失败不影响。
|
|
46
|
+
*/
|
|
47
|
+
ensureFileApprovalRulesSettled(sessionId: string): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* 订阅 center 重连事件以重推全量规则(可选能力,#126618 规则空窗修复)。
|
|
50
|
+
* 幂等;由首个消费者(interceptor PostConstruct)调用一次。
|
|
51
|
+
*/
|
|
52
|
+
subscribeCenterReconnect?(): void;
|
|
53
|
+
/**
|
|
54
|
+
* 安全中心文件白名单路径的通用 `~/...` 展开,不继承 sandbox manager 的产品
|
|
55
|
+
* 目录特殊规则。供 SandboxShellService.applyRulesDelta 在下发增量时复用。
|
|
56
|
+
*/
|
|
57
|
+
expandSecurityCenterPath(p: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* 记录一次「会话级放行」的明文 HTTP host(用户在 HTTP 拦截弹窗选了「本次会话放行」)。
|
|
60
|
+
*
|
|
61
|
+
* 该 host 会在后续每次 `syncRulesOnTurnStart` 以 `{target: host, action: 'allow'}`
|
|
62
|
+
* 前置注入到 HttpInterceptRule 表,确保该会话内此 host 的明文 HTTP 不再被拦。
|
|
63
|
+
* 按 sessionId 隔离,不同会话的放行不互通。
|
|
64
|
+
*/
|
|
65
|
+
addSessionAllowHttpHost(sessionId: string, host: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* 读取指定会话的「会话级放行」host 集合(只读视图)。
|
|
68
|
+
* 诊断/测试用途;规则下发走全部会话并集(见 getAllSessionAllowHttpHosts)。
|
|
69
|
+
*/
|
|
70
|
+
getSessionAllowHttpHosts(sessionId: string): ReadonlySet<string>;
|
|
71
|
+
/**
|
|
72
|
+
* 会话结束时清理该会话的「会话级放行」host 集合,防止长跑进程内存缓慢泄漏。
|
|
73
|
+
*/
|
|
74
|
+
clearSessionAllowHttpHosts(sessionId: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* 会话释放的完整收口:清内存集合 + 重建 Center 的进程级 HTTP 拦截规则表。
|
|
77
|
+
*
|
|
78
|
+
* SetHttpIntercept 是进程级全局替换,只清内存不重建的话,已结束会话的
|
|
79
|
+
* allow_session 放行会在 Center 残留——其他会话访问同一 host 会跳过拦截
|
|
80
|
+
* 确认,相当于未经批准直接放行。
|
|
81
|
+
*
|
|
82
|
+
* 由 SessionManager.releaseInMemory(同步上下文)调用,重建为
|
|
83
|
+
* fire-and-forget:失败仅 log,不阻塞会话清理;残留风险由下一次
|
|
84
|
+
* turn-start 的全量下发兜底。该会话本就无放行 host 时不触发 IPC。
|
|
85
|
+
*/
|
|
86
|
+
releaseSessionHttpIntercept(sessionId: string): void;
|
|
87
|
+
/**
|
|
88
|
+
* 用最新 config + 会话级放行 host 重算 HttpInterceptRule[] 并全量下发
|
|
89
|
+
* `SetHttpIntercept`。
|
|
90
|
+
*
|
|
91
|
+
* 供 HTTP 拦截弹窗「本次会话放行」后立即调用(`addSessionAllowHttpHost` 之后),
|
|
92
|
+
* 让放行 host 即时进入 Center 规则表——不等下一个 turn 的
|
|
93
|
+
* `syncRulesOnTurnStart`,同一 turn 内后续命令即不再被拦。
|
|
94
|
+
*
|
|
95
|
+
* fullAccess-relaxed 下直接下发空 rules(fail-open),不施加 HTTP 拦截。
|
|
96
|
+
*/
|
|
97
|
+
syncHttpIntercept(sessionId: string): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* 实时同步网络严格模式开关(genie/genie#122764)。
|
|
100
|
+
*
|
|
101
|
+
* 供 `SandboxShellService.applyRulesDelta` 在收到 `networkStrictMode` 增量时调用,
|
|
102
|
+
* 让开关即时生效——不等下一个 turn 的 `syncRulesOnTurnStart` 全量下发。
|
|
103
|
+
*
|
|
104
|
+
* 与 `syncHttpIntercept` 的差别:裸布尔、无 fullAccess 特例、无「读内存集合重算」。
|
|
105
|
+
* 仅 macOS 下发(非 darwin 直接 no-op)。
|
|
106
|
+
*/
|
|
107
|
+
syncNetworkStrictMode(sessionId: string, enabled: boolean): Promise<void>;
|
|
108
|
+
}
|
|
109
|
+
export declare function isWindowsAllowWriteNoBackupPath(rulePath: string, options?: Omit<ModifyBackupExcludedPathOptions, 'platform'>): boolean;
|
|
110
|
+
export declare class SandboxRuleSyncServiceImpl implements SandboxRuleSyncService {
|
|
111
|
+
private readonly sessionSyncQueues;
|
|
112
|
+
private readonly sessionSyncStates;
|
|
113
|
+
private readonly sessionSyncGenerations;
|
|
114
|
+
private readonly sessionLifecycleGenerations;
|
|
115
|
+
/** 复核期间的暂存批准;原生会话换代时丢弃。 */
|
|
116
|
+
private readonly sessionFileApprovals;
|
|
117
|
+
/** 已经通过 Center 复核的批准;原生会话换代后重新编入规则。 */
|
|
118
|
+
private readonly committedFileApprovals;
|
|
119
|
+
private readonly fileApprovalCommittedListeners;
|
|
120
|
+
/** 目录授权回滚失败、原生端可能残留允许规则的会话 → 当时的规则代际。 */
|
|
121
|
+
private readonly unsettledFileApprovalSessions;
|
|
122
|
+
private nextFilePolicyGeneration;
|
|
123
|
+
protected readonly logger: Logger;
|
|
124
|
+
protected readonly bashSandboxManager?: IBashSandboxManager;
|
|
125
|
+
protected readonly turnConfig: ISandboxTurnConfig;
|
|
126
|
+
protected readonly lifecycle?: ISandboxCLILifecycle;
|
|
127
|
+
protected readonly sandboxCenterClient?: ISandboxCenterIpcClient;
|
|
128
|
+
/**
|
|
129
|
+
* 会话级「放行」明文 HTTP host 集合,按 sessionId 隔离。
|
|
130
|
+
*
|
|
131
|
+
* 来源:用户在 HTTP 拦截弹窗选「本次会话放行」时 {@link addSessionAllowHttpHost} 写入。
|
|
132
|
+
* 消费:每次 {@link syncRulesOnTurnStart} 全量下发 + {@link getSessionAllowHttpHosts}
|
|
133
|
+
* 供 SandboxShellService.applyRulesDelta 实时同步时合并重算。
|
|
134
|
+
*/
|
|
135
|
+
protected readonly sessionAllowHttpHosts: Map<string, Set<string>>;
|
|
136
|
+
/**
|
|
137
|
+
* 最近一次**成功全量下发**规则的会话快照(sessionId → 下发时的 permissionMode)。
|
|
138
|
+
*
|
|
139
|
+
* 消费:center 重连时({@link subscribeCenterReconnect})的重推——center 重启后
|
|
140
|
+
* 内存规则全空(RuleMissing 空窗,#126618),对本快照里的每个会话按当时的
|
|
141
|
+
* permissionMode 重推全量规则,填上「重连到下一轮 turn-start」之间的空窗。
|
|
142
|
+
*
|
|
143
|
+
* 生命周期:syncRules 成功即记录/覆盖;会话释放(releaseSessionHttpIntercept /
|
|
144
|
+
* clearSessionAllowHttpHosts)同步摘除——已结束的会话不再参与每次重连的全量
|
|
145
|
+
* 重推(七轮 CR:不清则活跃会话越多,每次闪断重连都向 center 送一堆无人
|
|
146
|
+
* 消费的规则)。
|
|
147
|
+
*/
|
|
148
|
+
protected readonly lastSyncedSessions: Map<string, string | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* 订阅 center client 的重连事件(幂等,重复调用只订阅一次)。
|
|
151
|
+
*
|
|
152
|
+
* 由模块装配处调用(agent 容器就绪后);client 可选注入,缺失(纯 CLI 无 center)
|
|
153
|
+
* 时不订阅。重连回调对 {@link lastSyncedSessions} 里每个会话按当时的
|
|
154
|
+
* permissionMode 重推**全局规则**({@link syncRulesOnConfigRefresh} 路径,
|
|
155
|
+
* 不清 auto_grant/temp)——fire-and-forget:失败仅留痕(重连瞬间的 center
|
|
156
|
+
* 可能仍在初始化,下一次 turn-start 的全量下发是兜底,重推只是把空窗收窄)。
|
|
157
|
+
*
|
|
158
|
+
* 不走 {@link syncRulesOnTurnStart}(七轮 CR):onReconnect 区分不了 center
|
|
159
|
+
* 真重启与 socket 闪断。闪断时 center 内存里本轮的临时放行(auto_grant/temp)
|
|
160
|
+
* 还在,turn-start 路径会先清空它们再写 global——对话中途的确认弹窗会
|
|
161
|
+
* 重新弹一遍。重连要补的只有全局规则;center 真重启后临时授权本来就要等
|
|
162
|
+
* 下一轮 turn-start 重建,不靠重推。
|
|
163
|
+
*/
|
|
164
|
+
subscribeCenterReconnect(): void;
|
|
165
|
+
/** center 重连订阅的取消句柄(subscribeCenterReconnect 幂等用)。 */
|
|
166
|
+
private centerReconnectUnsubscribe;
|
|
167
|
+
addSessionAllowHttpHost(sessionId: string, host: string): void;
|
|
168
|
+
getSessionAllowHttpHosts(sessionId: string): ReadonlySet<string>;
|
|
169
|
+
/**
|
|
170
|
+
* 所有活跃会话的「会话级放行」host 并集。
|
|
171
|
+
*
|
|
172
|
+
* SetHttpIntercept 是进程级全局替换:重建规则表时只取当前 session 的
|
|
173
|
+
* allow hosts,会在别的 session(如 subagent)turn-start 时把父 session
|
|
174
|
+
* 已审批的 allow_session 放行冲掉。故下发时必须合并全部会话的并集。
|
|
175
|
+
* 已释放的会话(releaseInMemory → clearSessionAllowHttpHosts)自动退出并集。
|
|
176
|
+
*/
|
|
177
|
+
private getAllSessionAllowHttpHosts;
|
|
178
|
+
clearSessionAllowHttpHosts(sessionId: string): void;
|
|
179
|
+
releaseSessionHttpIntercept(sessionId: string): void;
|
|
180
|
+
syncHttpIntercept(sessionId: string): Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* 实时同步网络严格模式开关(delta 路径,genie/genie#122764)。
|
|
183
|
+
*
|
|
184
|
+
* 供 `SandboxShellService.applyRulesDelta` 在收到 `networkStrictMode` 增量时调用。
|
|
185
|
+
*
|
|
186
|
+
* **直接消费 delta 里的布尔值,不重读 settings.json**。`delta` 就是本次配置
|
|
187
|
+
* 变更的权威内容(由宿主在落盘后广播),而重读会引入两条错误路径:
|
|
188
|
+
* - `loadConfig()` 失败时回落到 `DEFAULT_SANDBOX_CONFIG`(不含该字段)→ 读成
|
|
189
|
+
* `false`,用户刚打开的总闸被静默写回关闭;
|
|
190
|
+
* - 读盘有 TTL 缓存,即使 `clearCache` 也存在与广播的时序竞争。
|
|
191
|
+
* 用户点开 = 期望开启,任何读盘不确定性都不该把它变成关闭。
|
|
192
|
+
*
|
|
193
|
+
* 平台门控与 IPC 失败口径见 {@link setNetworkStrictMode}。
|
|
194
|
+
*/
|
|
195
|
+
syncNetworkStrictMode(sessionId: string, enabled: boolean): Promise<void>;
|
|
196
|
+
syncRulesOnTurnStart(sessionId: string, permissionMode?: string): Promise<SandboxRuleSyncResult>;
|
|
197
|
+
syncRulesOnConfigRefresh(sessionId: string, permissionMode?: string): Promise<SandboxRuleSyncResult>;
|
|
198
|
+
getFilePolicySyncStatus(sessionId: string): SandboxRuleSyncStatus;
|
|
199
|
+
getFilePolicyGeneration(sessionId: string): number;
|
|
200
|
+
supportsFileDirectoryApproval(sessionId: string): boolean;
|
|
201
|
+
hasFileDirectoryApprovals(sessionId: string): boolean;
|
|
202
|
+
restoreCommittedFileApprovals(sessionId: string, approvals: readonly FileDirectoryApproval[]): void;
|
|
203
|
+
onFileApprovalCommitted(listener: (approval: FileDirectoryApproval & {
|
|
204
|
+
sessionId: string;
|
|
205
|
+
}) => void): () => void;
|
|
206
|
+
grantFileApproval(sessionId: string, request: SandboxFileDirectoryApprovalRequest, expectedGeneration: number): Promise<{
|
|
207
|
+
registered: boolean;
|
|
208
|
+
}>;
|
|
209
|
+
ensureFileApprovalRulesSettled(sessionId: string): Promise<void>;
|
|
210
|
+
/** 目录授权及回滚只同步文件规则,不依赖其他类型的规则同步。 */
|
|
211
|
+
private syncFileRules;
|
|
212
|
+
private runSessionSync;
|
|
213
|
+
/** 调用方必须已处于该会话的同步队列内。 */
|
|
214
|
+
private applySessionSync;
|
|
215
|
+
private withSessionSyncQueue;
|
|
216
|
+
private syncRules;
|
|
217
|
+
/**
|
|
218
|
+
* fullAccess 下只下发有序规则里的 allow,不下发 deny/ask。
|
|
219
|
+
*
|
|
220
|
+
* fullAccess 放开了全部网络规则,但恶意网站库不随之关闭,而 sandbox-cli 的
|
|
221
|
+
* 网络裁决只有第一层 `allowed_*` 能跳过威胁库查询。不下发白名单会让“请用户
|
|
222
|
+
* 把域名加入白名单”这个唯一放行出口在 fullAccess 下变成死路,也与 WebFetch
|
|
223
|
+
* (命中白名单即跳过威胁库)行为不一致。
|
|
224
|
+
*/
|
|
225
|
+
private buildFullAccessNetworkRules;
|
|
226
|
+
/**
|
|
227
|
+
* 安全中心有序规则中的 allow 规则。始终最后追加,供 fullAccess-relaxed 保留
|
|
228
|
+
* 恶意域名库误报的显式放行入口。
|
|
229
|
+
*
|
|
230
|
+
* 三平台一视同仁。此前 Linux 被单独跳过,前提是 `decide_enable_proxy` 在 Linux 恒为
|
|
231
|
+
* false、规则下发了也没人执行,只会白付一层 `--unshare-net`。sandbox-cli 5.4.0-beta.17
|
|
232
|
+
* 起 Linux executor 改用 `needs_domain_layer_proxy`(有网络规则或有威胁库即挂
|
|
233
|
+
* LocalProxy)自行决策,规则会被真正执行,该前提不再成立。
|
|
234
|
+
*/
|
|
235
|
+
private buildWhitelistNetworkRules;
|
|
236
|
+
private buildNetworkRules;
|
|
237
|
+
private syncCenterRules;
|
|
238
|
+
private setGlobalFileRules;
|
|
239
|
+
/**
|
|
240
|
+
* 全量下发明文 HTTP 拦截规则表(`SetHttpIntercept` 是全量替换协议)。
|
|
241
|
+
*
|
|
242
|
+
* `rules` 由 {@link buildHttpInterceptRules} 按三态配置 + allow 网络规则 +
|
|
243
|
+
* 全部会话的放行 host 并集翻译而来。空 `rules` → Center fail-open(放行所有
|
|
244
|
+
* 明文 HTTP),用于 fullAccess 或全 allow 场景。
|
|
245
|
+
*
|
|
246
|
+
* httpIntercept 是进程级全局状态(非 per-session),fullAccess-relaxed 下
|
|
247
|
+
* 必须下发空 rules——否则 Center 仍拦截产 http_intercept ask/deny 记录,
|
|
248
|
+
* 而该模式下无审批出口,命令会被 403 拦死。
|
|
249
|
+
*
|
|
250
|
+
* IPC 失败与 SetFileRules/SetNetworkRules/SetCmdRules 同口径:log 后抛出,
|
|
251
|
+
* 让 syncRulesOnTurnStart / applyRulesDelta 的调用方感知失败(Center 残留
|
|
252
|
+
* 旧规则表时 UI/host 不应误认为更新成功)。
|
|
253
|
+
*/
|
|
254
|
+
private setHttpIntercept;
|
|
255
|
+
/**
|
|
256
|
+
* 下发网络严格模式开关(genie/genie#122764)。
|
|
257
|
+
*
|
|
258
|
+
* `SetRulesConfig` 是**进程级**命令(无 session 语义,与 `SetHttpIntercept` 同级),
|
|
259
|
+
* 一次写入即对本 center 进程内所有会话的新发起命令生效——已运行进程不受影响
|
|
260
|
+
* (其 SBPL profile 在 spawn 时已固化)。
|
|
261
|
+
*
|
|
262
|
+
* 与 httpIntercept 的差别:httpIntercept 要先把三态翻译成 `HttpInterceptRuleItem[]`
|
|
263
|
+
* 全量替换,本开关是裸布尔,直接透传即可(Center 侧 `networkStrictMode` 为 `Option<bool>`,
|
|
264
|
+
* 缺省=不改)。
|
|
265
|
+
*
|
|
266
|
+
* **仅 macOS 有执行面**:非 mac 平台的 center 收到后会打 warn(配了但不消费),
|
|
267
|
+
* 是刻意的 fail-visible 而非静默丢弃。平台门控收敛在本方法——两个入口
|
|
268
|
+
* (turn-start 全量、delta 实时)共用同一收口,避免各自判一次漏一个。
|
|
269
|
+
*
|
|
270
|
+
* **不随 fullAccess-relaxed 关闭**:与 httpIntercept 不同(那个在 fullAccess 下
|
|
271
|
+
* 必须下发空表,否则无审批出口会把命令 403 拦死),严格模式的语义是「逼流量进
|
|
272
|
+
* 代理」——它不产生 ask 记录,也不会因无审批出口而拦死命令;反过来在 fullAccess
|
|
273
|
+
* 下静默关掉它,会让「用户明确开了总闸」与「实际没开」不一致。故按配置原值下发。
|
|
274
|
+
*
|
|
275
|
+
* IPC 失败口径与 SetFileRules/SetHttpIntercept 一致:log 后抛出,让调用方感知
|
|
276
|
+
* (Center 残留旧档位时 UI/host 不应误认为已更新)。
|
|
277
|
+
*/
|
|
278
|
+
private setNetworkStrictMode;
|
|
279
|
+
/** httpIntercept 前置放行的域名来源:有序网络规则中的 allow 规则。 */
|
|
280
|
+
private buildHttpInterceptAllowDomains;
|
|
281
|
+
private buildCenterCommandRules;
|
|
282
|
+
/**
|
|
283
|
+
* 将 settings.json 中的程序黑名单同步到 Sandbox Center session 规则层。
|
|
284
|
+
* Center 返回的是合并后的规则,不携带规则来源;删除时显式限定 session
|
|
285
|
+
* category,避免影响全局或企业规则。程序黑名单是独立的高风险拦截能力,
|
|
286
|
+
* 即使 permissionMode=fullAccess 也保持生效。
|
|
287
|
+
*/
|
|
288
|
+
private syncProgramBlacklist;
|
|
289
|
+
/** 安全中心文件白名单只做通用 `~/...` 展开,不继承 sandbox manager 的产品目录特殊规则。 */
|
|
290
|
+
expandSecurityCenterPath(p: string): string;
|
|
291
|
+
private buildTurnFileRules;
|
|
292
|
+
private normalizeMacOSUnlinkPolicy;
|
|
293
|
+
private buildFullAccessFileRules;
|
|
294
|
+
/**
|
|
295
|
+
* Linux:放行沙箱内读取/执行托管 Node/Python 运行时目录。
|
|
296
|
+
*
|
|
297
|
+
* Linux 上托管 node/python 以「包内受信目录 + 软链」交付:
|
|
298
|
+
* `~/.workbuddy/binaries/<runtime>/versions/<v>/bin` 是指向包内
|
|
299
|
+
* `/opt/<App>/resources/runtime/<runtime>/bin` 的软链。沙箱内核会按真实路径裁决,
|
|
300
|
+
* 故同时下发软链路径与其 realpath(/opt 目标),确保 agent 能在沙箱里 spawn 运行时。
|
|
301
|
+
*/
|
|
302
|
+
private getLinuxManagedRuntimeReadOnlyRules;
|
|
303
|
+
private getBrokeredShellRuntimeReadOnlyPaths;
|
|
304
|
+
private isManagedRuntimeDisabled;
|
|
305
|
+
private isDirectoryRulePath;
|
|
306
|
+
private hasDirectoryGlobSuffix;
|
|
307
|
+
private hasDirectoryRuleSuffix;
|
|
308
|
+
private isValidDirectory;
|
|
309
|
+
private getPlatform;
|
|
310
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import type { SandboxCenterIpcClient } from '../sensitive-content/sandbox-center-ipc-client-protocol';
|
|
3
|
+
import { type Settings, SettingsManager } from '../settings';
|
|
4
|
+
import type { ISandboxCLILifecycle } from './sandbox-cli-lifecycle-protocol';
|
|
5
|
+
import type { SandboxCLIProcessManager } from './sandbox-cli-protocol';
|
|
6
|
+
import type { SandboxTurnConfig } from './sandbox-turn-config';
|
|
7
|
+
export declare function isFileBackupSupported(): boolean;
|
|
8
|
+
export declare function shouldUseSandboxCLI(settingsEnabled: boolean): boolean;
|
|
9
|
+
export declare function normalizeFileBackupMaxSizeMB(value: unknown): number;
|
|
10
|
+
interface ResolvedSandboxSessionSettings {
|
|
11
|
+
configuredSandboxEnabled: boolean;
|
|
12
|
+
useSandboxCLI: boolean;
|
|
13
|
+
fileBackupEnabled: boolean;
|
|
14
|
+
fileBackupMaxSizeMB?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 普通对话通过隔离执行策略校验后,与冷回退共用这份设置解析。
|
|
18
|
+
*
|
|
19
|
+
* 企业托管覆盖就落在这里(issue #129503):这是两条入口唯一共用的解析点。
|
|
20
|
+
* 之前只在 `sandbox-interceptor` 叠加托管值,冷回退(`loadSandboxSessionSettings`
|
|
21
|
+
* → 文件回退的 `ensureSandboxReady`)直解原始 settings,于是「企业开启 + 本地
|
|
22
|
+
* settings 关闭」时普通对话启用沙箱、冷回退却判为关闭并返回 SANDBOX_UNAVAILABLE,
|
|
23
|
+
* 历史消息回退恢复不了文件。该矛盾状态是可构造的:ACP 配置入口仍允许写入与企业值
|
|
24
|
+
* 相反的 settings。
|
|
25
|
+
*
|
|
26
|
+
* 两个方向都在此收敛,顺序即优先级:
|
|
27
|
+
* - 托管**关闭** → 一律按关处理(含文件备份),settings 说开也不认;
|
|
28
|
+
* - 托管**开启** → 先把 `sandbox.enabled` 叠成 true 再按常规解析,让 useSandboxCLI /
|
|
29
|
+
* 文件备份 / maxSizeMB 全部按「沙箱已启用」一次算出(逐字段打补丁会漏掉文件备份,
|
|
30
|
+
* 因为它依赖 useSandboxCLI)。
|
|
31
|
+
*
|
|
32
|
+
* 强制开仍受**平台能力**约束:下面的 `shouldUseSandboxCLI` 保留平台判定,不支持的
|
|
33
|
+
* 平台上不会置 true,否则下游会等一个永不就绪的沙箱。
|
|
34
|
+
*/
|
|
35
|
+
export declare function resolveSandboxSessionSettings(mergedSettings: Settings, logger: Logger): ResolvedSandboxSessionSettings;
|
|
36
|
+
/** 无用户消息的文件回退独立读取会话设置;正常对话仍先校验隔离执行策略。 */
|
|
37
|
+
export declare function loadSandboxSessionSettings(settingsManager: SettingsManager, turnConfig: SandboxTurnConfig, logger: Logger, policyPermissionMode?: string): Promise<{
|
|
38
|
+
configuredSandboxEnabled: boolean;
|
|
39
|
+
settingsReadFailed: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
/** 备份开关与常规对话共用同一份配置;5.7.0 的回退边界使用完整 file rules 视图。 */
|
|
42
|
+
export declare function syncModifyBackupConfig(sessionId: string, deps: {
|
|
43
|
+
turnConfig: SandboxTurnConfig;
|
|
44
|
+
lifecycle?: ISandboxCLILifecycle;
|
|
45
|
+
centerClient?: SandboxCenterIpcClient;
|
|
46
|
+
processManager?: SandboxCLIProcessManager;
|
|
47
|
+
logger: Logger;
|
|
48
|
+
}): Promise<void>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SecurityCenterFileRule } from '../../workspace/sandbox-cli/lib/common/rule-config.js';
|
|
2
|
+
export declare const SandboxTurnConfig: unique symbol;
|
|
3
|
+
export interface SandboxTurnConfig {
|
|
4
|
+
useSandboxCLI: boolean;
|
|
5
|
+
/** 文件备份:是否启用 */
|
|
6
|
+
enableFileBackup: boolean;
|
|
7
|
+
/** Successful native enable acknowledgment for this Turn; not merely the requested switch. */
|
|
8
|
+
modifyBackupConfirmed?: boolean;
|
|
9
|
+
/** 文件备份:总大小上限(MB) */
|
|
10
|
+
fileBackupMaxSizeMB?: number;
|
|
11
|
+
/** safe-delete 运行时保护是否启用(来自 sandbox config) */
|
|
12
|
+
safeDeleteRuntimeEnabled: boolean;
|
|
13
|
+
/** 当前 filesystem.allowWrite 是否已包含 allow-all 路径 */
|
|
14
|
+
configAllowsAllWritePath: boolean;
|
|
15
|
+
/** 当前 session 权限模式,用于决定沙箱规则宽严。 */
|
|
16
|
+
permissionMode?: string;
|
|
17
|
+
/** 本轮下发给 Center 的有序文件规则来源快照。 */
|
|
18
|
+
orderedFileRules?: readonly SecurityCenterFileRule[];
|
|
19
|
+
/** 本轮最终沙箱规则 profile。 */
|
|
20
|
+
ruleProfile?: 'sandbox-disabled' | 'default-strict' | 'fullAccess-relaxed';
|
|
21
|
+
}
|
|
22
|
+
export declare class SandboxTurnConfigImpl implements SandboxTurnConfig {
|
|
23
|
+
useSandboxCLI: boolean;
|
|
24
|
+
enableFileBackup: boolean;
|
|
25
|
+
modifyBackupConfirmed: boolean;
|
|
26
|
+
fileBackupMaxSizeMB?: number;
|
|
27
|
+
safeDeleteRuntimeEnabled: boolean;
|
|
28
|
+
configAllowsAllWritePath: boolean;
|
|
29
|
+
permissionMode?: string;
|
|
30
|
+
orderedFileRules?: readonly SecurityCenterFileRule[];
|
|
31
|
+
ruleProfile?: 'sandbox-disabled' | 'default-strict' | 'fullAccess-relaxed';
|
|
32
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type SandboxCenterIpcClient as ISandboxCenterIpcClient } from '../sensitive-content/sandbox-center-ipc-client-protocol';
|
|
3
|
+
import { type SandboxTelemetryReporter as ISandboxTelemetryReporter } from '../telemetry/sandbox-telemetry-protocol';
|
|
4
|
+
import { type ISandboxCLILifecycle } from './sandbox-cli-lifecycle-protocol';
|
|
5
|
+
import { type SandboxTurnConfig as ISandboxTurnConfig } from './sandbox-turn-config';
|
|
6
|
+
export interface ThreatDomainCheckResult {
|
|
7
|
+
available: boolean;
|
|
8
|
+
malicious: boolean;
|
|
9
|
+
requestedDomain?: string;
|
|
10
|
+
matchedDomain?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
mainDomainMatch?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ThreatDomainChecker: unique symbol;
|
|
15
|
+
export interface ThreatDomainChecker {
|
|
16
|
+
/** 把持久化状态中的当前 DB 同步到已运行的 sandbox-cli。 */
|
|
17
|
+
sync(context: {
|
|
18
|
+
sessionId: string;
|
|
19
|
+
conversationRequestId?: string;
|
|
20
|
+
}): Promise<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* 调用方已完成 ensureReady/ensureAlive 时使用,避免重复探活。
|
|
23
|
+
* 该方法始终复用 lifecycle 当前已打开的 session,不切换或停止进程。
|
|
24
|
+
*/
|
|
25
|
+
syncReady(context: {
|
|
26
|
+
sessionId: string;
|
|
27
|
+
conversationRequestId?: string;
|
|
28
|
+
}): Promise<boolean>;
|
|
29
|
+
check(hostname: string, context: {
|
|
30
|
+
sessionId: string;
|
|
31
|
+
conversationRequestId?: string;
|
|
32
|
+
}): Promise<ThreatDomainCheckResult>;
|
|
33
|
+
/** sandbox-cli 里当前真正加载的库版本,供命中埋点标注是哪一版拦下的;从未加载成功时为空。 */
|
|
34
|
+
getLoadedVersion(): string | undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* agent-cli 侧恶意域名查询入口。
|
|
38
|
+
*
|
|
39
|
+
* SQLite 只由 sandbox-center/Rust 打开;Web 工具通过 `decide_network` 查询,避免在 TS
|
|
40
|
+
* 再维护一套 SQLite 依赖、域名标准化和主域匹配逻辑。
|
|
41
|
+
*/
|
|
42
|
+
export declare class ThreatDomainCheckerImpl implements ThreatDomainChecker {
|
|
43
|
+
protected readonly logger: Logger;
|
|
44
|
+
protected readonly lifecycle?: ISandboxCLILifecycle;
|
|
45
|
+
protected readonly sandboxCenterClient?: ISandboxCenterIpcClient;
|
|
46
|
+
protected readonly sandboxTurnConfig?: ISandboxTurnConfig;
|
|
47
|
+
protected readonly telemetryReporter?: ISandboxTelemetryReporter;
|
|
48
|
+
private loadedPath?;
|
|
49
|
+
private loadedGeneration?;
|
|
50
|
+
private loadedCenterGeneration?;
|
|
51
|
+
/**
|
|
52
|
+
* sandbox-cli 进程里当前这个 reader 实际加载的库版本,只在 SetThreatDatabase 成功后才更新。
|
|
53
|
+
*
|
|
54
|
+
* 与 state.json 此刻的 activeVersion 分开保存:磁盘可能已经换代而 CLI 仍困在旧 reader 上,
|
|
55
|
+
* 埋点要报的是后者,否则最需要被发现的那类分叉恰好看不见。
|
|
56
|
+
*/
|
|
57
|
+
private loadedVersion?;
|
|
58
|
+
private readonly reportedTelemetryTurns;
|
|
59
|
+
/** 串行化 manager 进程级 reader 的启用/停用,避免并发 WebFetch 与开关切换互相覆盖。 */
|
|
60
|
+
private syncQueue;
|
|
61
|
+
/** 最近一次 SetThreatDatabase 失败,用于抑制高频重试,见 isSetFailureCached。 */
|
|
62
|
+
private setFailure?;
|
|
63
|
+
/** 忘掉本代 reader:三个字段必须同进同出,分开清会让埋点报出一个已经不存在的版本。 */
|
|
64
|
+
private clearLoadedReader;
|
|
65
|
+
/**
|
|
66
|
+
* sandbox-cli 里当前真正加载的库版本,供命中埋点标注是哪一版拦下的。
|
|
67
|
+
*
|
|
68
|
+
* 与 `resolveThreatDatabaseRuntimeConfig().version`(磁盘视角)不同,这里是进程视角。
|
|
69
|
+
*/
|
|
70
|
+
getLoadedVersion(): string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* 本代 sandbox-cli 里那个 SQLite reader 是否仍然活着,活着就返回它所在的 session。
|
|
73
|
+
*
|
|
74
|
+
* Rust 侧只在收到 `SetThreatDatabase{enabled:false}` 或进程退出时才卸载 reader,所以
|
|
75
|
+
* 「同步失败」不等于「查不了」。这两件事必须分开报:若同步一失败就一律 `queryAvailable=false`,
|
|
76
|
+
* Bash 侧还在走沙箱内的旧 reader 继续拦,WebFetch 这条旁路却直接放行——同一个域名两个工具
|
|
77
|
+
* 给出相反结论,模型据此会得出「换个工具就能过」,而这正是需求明确禁止的。
|
|
78
|
+
*/
|
|
79
|
+
private getAliveReaderSessionId;
|
|
80
|
+
/**
|
|
81
|
+
* 同一 `(path, generation)` 上刚失败过的 SetThreatDatabase 是否应跳过重试。
|
|
82
|
+
*
|
|
83
|
+
* 失败不写 `loadedPath`(否则会谎称已加载),于是下一次进来判据依然成立、再发一次。
|
|
84
|
+
* 而调用密度是每条沙箱命令一次 + 每个 WebFetch URL 一次(重定向逐跳累加),一旦
|
|
85
|
+
* sandbox-cli 根本不认这个命令——Linux 目前钉在不含威胁库能力的版本,这是必然存在的
|
|
86
|
+
* 过渡态——就变成每条命令都白付一次 IPC 往返并刷一条 warn。
|
|
87
|
+
*
|
|
88
|
+
* 用冷却窗口而不是永久负缓存:进程/版本没变但 IPC 偶发抖动的情况必须还能自己恢复,
|
|
89
|
+
* 否则防护会静默停在关闭状态直到沙箱重启。path 或 generation 变化时判据自然失效。
|
|
90
|
+
*/
|
|
91
|
+
private isSetFailureCached;
|
|
92
|
+
check(hostname: string, context: {
|
|
93
|
+
sessionId: string;
|
|
94
|
+
conversationRequestId?: string;
|
|
95
|
+
}): Promise<ThreatDomainCheckResult>;
|
|
96
|
+
sync(context: {
|
|
97
|
+
sessionId: string;
|
|
98
|
+
conversationRequestId?: string;
|
|
99
|
+
}): Promise<boolean>;
|
|
100
|
+
syncReady(context: {
|
|
101
|
+
sessionId: string;
|
|
102
|
+
conversationRequestId?: string;
|
|
103
|
+
}): Promise<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* 确保当前 DB 已同步到 sandbox-cli,返回可用性 + 不生效原因。
|
|
106
|
+
*
|
|
107
|
+
* 埋点是严格旁路:同一个 sessionId + conversationRequestId 最多尝试上报一次,
|
|
108
|
+
* 任何 reporter 异常均被吞掉,不能改变 DB 同步、域名查询或放行/拦截结果。
|
|
109
|
+
*/
|
|
110
|
+
private syncInternal;
|
|
111
|
+
private reportSyncTelemetryOnce;
|
|
112
|
+
/**
|
|
113
|
+
* 把当前 DB 同步进 sandbox-cli,并区分当前库同步状态与旧 reader 查询能力。
|
|
114
|
+
* `sync-failed` 覆盖 ensureReady / SetThreatDatabase 失败——后者的 IPC 结果是
|
|
115
|
+
* Rust 端 `threat_database.load` 的真实成败信号,load 失败会 response_err 抛回。
|
|
116
|
+
*/
|
|
117
|
+
private syncToSandbox;
|
|
118
|
+
/**
|
|
119
|
+
* 关闭开关时停用进程内的 SQLite reader。这里只关闭连接,不删除本地 DB,也不会
|
|
120
|
+
* 触发下载;再次开启时直接复用 state.json 指向的同一文件。没有活跃 sandbox-cli
|
|
121
|
+
* 时无需为了“关闭”而启动进程。停用失败时保持 fail-safe(旧 reader 仍生效),
|
|
122
|
+
* 但错误只记日志/埋点,不阻塞设置保存或命令主链路。
|
|
123
|
+
*/
|
|
124
|
+
private disableThreatDatabase;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 解析 daemon 更新器发布的当前 DB。
|
|
128
|
+
*
|
|
129
|
+
* 环境变量仅保留为手工测试兜底;正常 Desktop 链路读取 configDir 下的原子状态
|
|
130
|
+
* 文件,因此 daemon 更新后不需要修改已经启动的 agent-cli 进程环境。
|
|
131
|
+
*/
|
|
132
|
+
export declare function resolveThreatDatabaseRuntimeConfig(): {
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
path?: string;
|
|
135
|
+
/** state.json 记录的库版本,仅用于埋点;env 兜底路径没有版本可言,此时不下发。 */
|
|
136
|
+
version?: string;
|
|
137
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TurnSecurityReviewPolicy } from '../../workspace/product/lib/common/index.js';
|
|
2
|
+
import type { Session } from '../session';
|
|
3
|
+
import { type SecurityReviewGate as SecurityReviewGateContract } from './protocol';
|
|
4
|
+
export declare class SecurityReviewGateImpl implements SecurityReviewGateContract {
|
|
5
|
+
private readonly pendingPolicies;
|
|
6
|
+
private readonly policies;
|
|
7
|
+
setSessionConfig(session: Session, rawConfig: unknown): TurnSecurityReviewPolicy;
|
|
8
|
+
beginTurn(session: Session): TurnSecurityReviewPolicy;
|
|
9
|
+
getTurnPolicy(session: Session): TurnSecurityReviewPolicy;
|
|
10
|
+
isModelBehaviorReviewEnabled(session: Session): boolean;
|
|
11
|
+
isRiskContentProtectionEnabled(session: Session): boolean;
|
|
12
|
+
getAssistedApprovalMode(session: Session, scope?: 'tool' | 'sandbox'): TurnSecurityReviewPolicy['assistedApprovalMode'];
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TurnSecurityReviewPolicy } from '../../workspace/product/lib/common/index.js';
|
|
2
|
+
import type { Session } from '../session';
|
|
3
|
+
export declare const DEFAULT_TURN_SECURITY_REVIEW_POLICY: TurnSecurityReviewPolicy;
|
|
4
|
+
/** 工具结果类审批受风险内容保护开关约束,其余工具风险审批受模型行为审查开关约束。 */
|
|
5
|
+
export declare function isToolRiskApprovalEnabled(policy: TurnSecurityReviewPolicy | undefined, reviewType: unknown): boolean;
|
|
6
|
+
export declare const SecurityReviewGate: unique symbol;
|
|
7
|
+
export interface SecurityReviewGate {
|
|
8
|
+
setSessionConfig(session: Session, rawConfig: unknown): TurnSecurityReviewPolicy;
|
|
9
|
+
beginTurn(session: Session): TurnSecurityReviewPolicy;
|
|
10
|
+
getTurnPolicy(session: Session): TurnSecurityReviewPolicy;
|
|
11
|
+
isModelBehaviorReviewEnabled(session: Session): boolean;
|
|
12
|
+
isRiskContentProtectionEnabled(session: Session): boolean;
|
|
13
|
+
getAssistedApprovalMode(session: Session, scope?: 'tool' | 'sandbox'): TurnSecurityReviewPolicy['assistedApprovalMode'];
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './sensitive-content-protocol';
|
|
2
|
+
export * from './sandbox-center-ipc-client';
|
|
3
|
+
export * from './sandbox-center-port';
|
|
4
|
+
export * from './sensitive-approval-port';
|
|
5
|
+
export * from './sensitive-decision-mediation';
|
|
6
|
+
export * from './sensitive-content-mediation';
|
|
7
|
+
export * from './sensitive-tool-egress-guard';
|
|
8
|
+
export * from './sensitive-protection-metadata';
|
|
9
|
+
export * from './sensitive-local-sideband';
|
|
10
|
+
export * from './settings-sensitive-protection-policy';
|
|
11
|
+
export * from './managed-cipher-stream-restorer';
|
|
12
|
+
export * from './sensitive-model-boundary';
|
|
13
|
+
export * from './sensitive-user-input-review';
|
|
14
|
+
export * from './sensitive-history-admission';
|
|
15
|
+
export * from './sensitive-history-replay';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CipherEntry, SensitivePlaintextProtectionMetadata } from './sensitive-content-protocol';
|
|
2
|
+
export interface RestoredStreamChunk {
|
|
3
|
+
/** Plaintext consumed by the execution path. */
|
|
4
|
+
content: string;
|
|
5
|
+
/** Ciphertext projection consumed by the conversation UI. */
|
|
6
|
+
displayContent: string;
|
|
7
|
+
sensitiveProtection?: SensitivePlaintextProtectionMetadata;
|
|
8
|
+
}
|
|
9
|
+
export declare function restoreManagedText(source: string, entries: ReadonlyArray<Readonly<CipherEntry>>): RestoredStreamChunk;
|
|
10
|
+
/**
|
|
11
|
+
* Restores registered variable-format ciphertexts without buffering an entire model response.
|
|
12
|
+
* Only a suffix that can still become one registered ciphertext is retained.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ManagedCipherStreamRestorer {
|
|
15
|
+
private pending;
|
|
16
|
+
private readonly index;
|
|
17
|
+
private readonly ciphertexts;
|
|
18
|
+
constructor(entries: ReadonlyArray<Readonly<CipherEntry>>);
|
|
19
|
+
push(delta: string): RestoredStreamChunk;
|
|
20
|
+
flush(): RestoredStreamChunk;
|
|
21
|
+
private consume;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SandboxCenterClientBase, type SandboxCenterRequestOptions, type SandboxCenterRuntimeContext } from '../../workspace/sandbox-cli/lib/node/sandbox-center-client.js';
|
|
2
|
+
export { type SandboxCenterRequestOptions, type SandboxCenterRuntimeContext, };
|
|
3
|
+
export { SandboxCenterIpcClient } from './sandbox-center-ipc-client-protocol';
|
|
4
|
+
export declare class SandboxCenterIpcClientImpl extends SandboxCenterClientBase {
|
|
5
|
+
constructor();
|
|
6
|
+
protected resolveRuntimeContext(options?: SandboxCenterRequestOptions): SandboxCenterRuntimeContext;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type SandboxCenterIpcClient as SandboxCenterIpcClientInterface } from './sandbox-center-ipc-client-protocol';
|
|
2
|
+
import { type CipherEntry, type SandboxCenterPort as SandboxCenterPortInterface, type SensitiveDetectionOutcome } from './sensitive-content-protocol';
|
|
3
|
+
export declare class SandboxCenterPortImpl implements SandboxCenterPortInterface {
|
|
4
|
+
protected sandboxCenterClient: SandboxCenterIpcClientInterface;
|
|
5
|
+
private messageSequence;
|
|
6
|
+
detectSensitiveContent(request: Parameters<SandboxCenterPortInterface['detectSensitiveContent']>[0]): Promise<SensitiveDetectionOutcome>;
|
|
7
|
+
private pathExists;
|
|
8
|
+
notifyEncryptionChoice(request: Parameters<SandboxCenterPortInterface['notifyEncryptionChoice']>[0]): Promise<{
|
|
9
|
+
entries: CipherEntry[];
|
|
10
|
+
}>;
|
|
11
|
+
queryEntries(request: Parameters<SandboxCenterPortInterface['queryEntries']>[0]): Promise<CipherEntry[]>;
|
|
12
|
+
private queryExact;
|
|
13
|
+
private toPortEntry;
|
|
14
|
+
private normalizeStrings;
|
|
15
|
+
private normalizeDetectedItems;
|
|
16
|
+
private nextDetectionMessageId;
|
|
17
|
+
}
|