@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,16 @@
|
|
|
1
|
+
import { AutoModeRules } from './auto-mode-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* Built-in default auto mode rules — single source of truth.
|
|
4
|
+
*
|
|
5
|
+
* Ported VERBATIM from Claude Code 2.1.179 `auto-mode defaults` with only
|
|
6
|
+
* product-specific substitutions (Claude -> CodeBuddy, ~/.claude -> ~/.codebuddy,
|
|
7
|
+
* .claude/ -> .codebuddy/, CLAUDE.md -> CODEBUDDY.md). The security wording is
|
|
8
|
+
* intentionally NOT summarised or trimmed: the classifier is an LLM that reads
|
|
9
|
+
* these as policy, so every qualifying clause changes its judgement. The only
|
|
10
|
+
* deliberate divergence is the "CodeBuddy Scheduling" allow rule, narrowed
|
|
11
|
+
* because CodeBuddy has no RemoteTrigger / cloud routine registration (see note).
|
|
12
|
+
*
|
|
13
|
+
* Consumed by: the classifier prompt builder AND `codebuddy auto-mode defaults`
|
|
14
|
+
* (Phase 3 CLI) — both must read from here to avoid doc/runtime drift.
|
|
15
|
+
*/
|
|
16
|
+
export declare const AUTO_MODE_DEFAULTS: AutoModeRules;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* After this many consecutive classifier *call failures* (model errors /
|
|
3
|
+
* unavailability — NOT block verdicts), the failure breaker opens and the
|
|
4
|
+
* service short-circuits the classifier + kicks the session out of auto. Kept
|
|
5
|
+
* distinct from the denial-limit counters below (decision D3-A #1): one tracks a
|
|
6
|
+
* flaky model, the other tracks the model deliberately blocking actions.
|
|
7
|
+
*
|
|
8
|
+
* Deliberately far above the denial limits: leaving auto mode is disruptive and
|
|
9
|
+
* classifier call failures are usually transient, so the breaker should only
|
|
10
|
+
* open for a model that is persistently broken — not for a short blip. Claude
|
|
11
|
+
* Code never leaves auto on classifier failures at all (its own session-level
|
|
12
|
+
* auto breaker fires when the *server* rejects auto mode outright), so a low
|
|
13
|
+
* threshold here drops users out of auto far more eagerly than Claude does.
|
|
14
|
+
*/
|
|
15
|
+
export declare const AUTO_MODE_CIRCUIT_BREAKER_THRESHOLD = 5;
|
|
16
|
+
/**
|
|
17
|
+
* Classifier-BLOCK denial limits (Claude Code 2.1.181 `I_m`, research §11):
|
|
18
|
+
* - 3 consecutive blocks, OR 20 total blocks in a session → auto pauses.
|
|
19
|
+
* Interactive sessions fall back to a prompt; headless runs abort. On exceed,
|
|
20
|
+
* both counters reset so the session can resume after the pause (Claude resets).
|
|
21
|
+
*
|
|
22
|
+
* "Block" here means any outcome that blocked the action: a real block verdict,
|
|
23
|
+
* or a classifier run that produced NO verdict (Claude bumps the same counters
|
|
24
|
+
* for `parse_failure`). That way a classifier model which can never answer stops
|
|
25
|
+
* blocking every action once the limit trips.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AUTO_MODE_MAX_CONSECUTIVE_DENIALS = 3;
|
|
28
|
+
export declare const AUTO_MODE_MAX_TOTAL_DENIALS = 20;
|
|
29
|
+
/** Max number of recent denials kept per session for subsequent-approval dedup. */
|
|
30
|
+
export declare const AUTO_MODE_RECENT_DENIALS_MAX = 20;
|
|
31
|
+
/**
|
|
32
|
+
* A single classifier denial, kept so a later approval of the SAME action
|
|
33
|
+
* (toolName + inputKey) can be detected as a subsequent approval and the stale
|
|
34
|
+
* record dropped (Claude `recordDenial` / `removeDenial`).
|
|
35
|
+
*/
|
|
36
|
+
export interface AutoModeDenialRecord {
|
|
37
|
+
toolName: string;
|
|
38
|
+
/** Human-readable label (`toolName <short projection>`), for views. */
|
|
39
|
+
display: string;
|
|
40
|
+
/** Dedup key — the classifier projection of the action (decision D3-A #2). */
|
|
41
|
+
inputKey: string;
|
|
42
|
+
reason: string;
|
|
43
|
+
timestamp: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Outcome of recording a classifier block, used by the host to decide whether to
|
|
47
|
+
* keep denying or pause auto (Claude denial-limit handler).
|
|
48
|
+
*/
|
|
49
|
+
export interface AutoModeDenialLimitState {
|
|
50
|
+
consecutiveDenials: number;
|
|
51
|
+
totalDenials: number;
|
|
52
|
+
/** True once consecutive ≥ 3 or total ≥ 20 — auto should pause this turn. */
|
|
53
|
+
exceeded: boolean;
|
|
54
|
+
/** Which threshold tripped, for the fallback message. */
|
|
55
|
+
kind?: 'consecutive' | 'total';
|
|
56
|
+
}
|
|
57
|
+
export declare const AutoModeDenialTracker: unique symbol;
|
|
58
|
+
/**
|
|
59
|
+
* Per-session auto-mode bookkeeping, aligned with Claude Code. Three independent
|
|
60
|
+
* concerns (do not conflate — decision D3-A #1):
|
|
61
|
+
*
|
|
62
|
+
* 1. Recent denials — `toolName + inputKey + reason` of blocked actions, capped
|
|
63
|
+
* at 20. Used to detect when the user later approves the same action so the
|
|
64
|
+
* stale denial is dropped (subsequent approval). Pure record-keeping.
|
|
65
|
+
* 2. Denial limit — counts classifier outcomes that BLOCKED the action (a block
|
|
66
|
+
* verdict, or a run that produced no verdict). `recordClassifierBlock`
|
|
67
|
+
* bumps consecutive + total and reports when 3-consecutive / 20-total trips;
|
|
68
|
+
* `resetConsecutiveDenials` is called on any allow.
|
|
69
|
+
* 3. Failure breaker — counts CONSECUTIVE classifier CALL failures (errors /
|
|
70
|
+
* unavailability). After the threshold the breaker opens; a successful call
|
|
71
|
+
* resets it.
|
|
72
|
+
*
|
|
73
|
+
* Makes no permission decisions itself.
|
|
74
|
+
*/
|
|
75
|
+
export interface AutoModeDenialTracker {
|
|
76
|
+
/** Record a classifier denial for the recent-denials / subsequent-approval view. */
|
|
77
|
+
recordDenial(sessionId: string, record: AutoModeDenialRecord): void;
|
|
78
|
+
/** Find a recent denial matching toolName + inputKey, if any. */
|
|
79
|
+
findDenial(sessionId: string, toolName: string, inputKey: string): AutoModeDenialRecord | undefined;
|
|
80
|
+
/** Drop a recent denial matching toolName + inputKey; returns true if one was removed. */
|
|
81
|
+
removeDenial(sessionId: string, toolName: string, inputKey: string): boolean;
|
|
82
|
+
/** Recent denials for a session, newest last. */
|
|
83
|
+
getRecentDenials(sessionId: string): AutoModeDenialRecord[];
|
|
84
|
+
/**
|
|
85
|
+
* Record a classifier block: bumps consecutive + total. Returns the limit
|
|
86
|
+
* state; when `exceeded`, both counters are reset to 0 so auto can resume
|
|
87
|
+
* after the pause (Claude resets on exceed).
|
|
88
|
+
*/
|
|
89
|
+
recordClassifierBlock(sessionId: string): AutoModeDenialLimitState;
|
|
90
|
+
/** Reset the consecutive-denial counter (called on any allow). */
|
|
91
|
+
resetConsecutiveDenials(sessionId: string): void;
|
|
92
|
+
/** Record a classifier call failure; returns true if the breaker is now open. */
|
|
93
|
+
recordClassifierFailure(sessionId: string): boolean;
|
|
94
|
+
/** Record a successful classifier call; resets the consecutive-failure counter. */
|
|
95
|
+
recordClassifierSuccess(sessionId: string): void;
|
|
96
|
+
/** Whether the failure breaker is currently open (classifier should be short-circuited). */
|
|
97
|
+
isCircuitOpen(sessionId: string): boolean;
|
|
98
|
+
/** Drop all tracking for a finished session. */
|
|
99
|
+
clear(sessionId: string): void;
|
|
100
|
+
}
|
|
101
|
+
export declare class AutoModeDenialTrackerImpl implements AutoModeDenialTracker {
|
|
102
|
+
private readonly entries;
|
|
103
|
+
private entry;
|
|
104
|
+
recordDenial(sessionId: string, record: AutoModeDenialRecord): void;
|
|
105
|
+
findDenial(sessionId: string, toolName: string, inputKey: string): AutoModeDenialRecord | undefined;
|
|
106
|
+
removeDenial(sessionId: string, toolName: string, inputKey: string): boolean;
|
|
107
|
+
getRecentDenials(sessionId: string): AutoModeDenialRecord[];
|
|
108
|
+
recordClassifierBlock(sessionId: string): AutoModeDenialLimitState;
|
|
109
|
+
resetConsecutiveDenials(sessionId: string): void;
|
|
110
|
+
recordClassifierFailure(sessionId: string): boolean;
|
|
111
|
+
recordClassifierSuccess(sessionId: string): void;
|
|
112
|
+
isCircuitOpen(sessionId: string): boolean;
|
|
113
|
+
clear(sessionId: string): void;
|
|
114
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Logger } from '../../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import { SettingsManager } from '../../settings';
|
|
3
|
+
import { AutoModeClassifierClientImpl } from './auto-mode-classifier-client';
|
|
4
|
+
import { AutoModeDenialTracker } from './auto-mode-denial-tracker';
|
|
5
|
+
import { AutoModeProjectInstructionsResolver } from './auto-mode-project-instructions';
|
|
6
|
+
import { AutoModeAvailability, AutoModePermissionRequest, AutoModePermissionResult, AutoModePermissionService } from './auto-mode-protocol';
|
|
7
|
+
import { AutoModeSettingsResolver } from './auto-mode-settings';
|
|
8
|
+
/**
|
|
9
|
+
* Auto mode permission service — the single entry point host code depends on.
|
|
10
|
+
*
|
|
11
|
+
* Orchestrates: availability gate -> rule resolution -> classifier -> verdict
|
|
12
|
+
* mapping with interactive/non-interactive fallback. Owns no host-flow state;
|
|
13
|
+
* `tool-permission-service` calls `classifyAsk` once when an ask would occur in
|
|
14
|
+
* auto mode.
|
|
15
|
+
*
|
|
16
|
+
* Circuit breaker: consecutive classifier *failures* (not block verdicts) open
|
|
17
|
+
* the breaker; while open we skip the classifier and fall back directly, so a
|
|
18
|
+
* failing model is not hammered. A successful call resets it.
|
|
19
|
+
*/
|
|
20
|
+
export declare class AutoModePermissionServiceImpl implements AutoModePermissionService {
|
|
21
|
+
protected readonly settingsManager: SettingsManager;
|
|
22
|
+
protected readonly classifier: AutoModeClassifierClientImpl;
|
|
23
|
+
protected readonly rulesResolver: AutoModeSettingsResolver;
|
|
24
|
+
protected readonly denialTracker: AutoModeDenialTracker;
|
|
25
|
+
protected readonly projectInstructionsResolver: AutoModeProjectInstructionsResolver;
|
|
26
|
+
protected readonly logger: Logger;
|
|
27
|
+
isAutoModeAvailable(): Promise<AutoModeAvailability>;
|
|
28
|
+
isSettingsAutoGrantAllowed(): Promise<boolean>;
|
|
29
|
+
classifyAsk(request: AutoModePermissionRequest): Promise<AutoModePermissionResult>;
|
|
30
|
+
/** Short human-readable label for a blocked action (toolName + truncated projection). */
|
|
31
|
+
private buildDisplay;
|
|
32
|
+
/**
|
|
33
|
+
* Reason text for a tripped denial limit. Shared by the two outcomes that
|
|
34
|
+
* count toward it — a real block verdict and a no-verdict failure — so both
|
|
35
|
+
* read the same way; the `reason` tail is what distinguishes them.
|
|
36
|
+
*/
|
|
37
|
+
private buildDenialLimitReason;
|
|
38
|
+
/**
|
|
39
|
+
* Breaker-open short-circuit: the classifier has failed repeatedly, so leave
|
|
40
|
+
* auto mode and let the action go through normal default-mode handling (a
|
|
41
|
+
* prompt interactively, deny headless) — Claude `kickOutOfAuto`. Not the
|
|
42
|
+
* per-error fail-closed path.
|
|
43
|
+
*/
|
|
44
|
+
private fallback;
|
|
45
|
+
/**
|
|
46
|
+
* Per-error fail-closed result (Claude §10): a classifier error blocks the
|
|
47
|
+
* action for safety regardless of interactivity. `kickOutOfAuto` is set when
|
|
48
|
+
* the failure just opened the breaker, so subsequent actions leave auto.
|
|
49
|
+
*/
|
|
50
|
+
private failClosed;
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Logger } from '../../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import { MemoryManager } from '../../memory';
|
|
3
|
+
export declare const AutoModeProjectInstructionsResolver: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* Resolves the CODEBUDDY.md / rule-layer text injected into the classifier as a
|
|
6
|
+
* separate user context message (decision D2, aligned with Claude's CLAUDE.md
|
|
7
|
+
* injection).
|
|
8
|
+
*
|
|
9
|
+
* The text is framed in the classifier client as context about user intent — it
|
|
10
|
+
* may authorize the SPECIFIC action under review, but generic encouragement is
|
|
11
|
+
* never authorization. We therefore only need to surface the rule-layer content;
|
|
12
|
+
* the "not a blanket grant" framing lives in the prompt wrapper.
|
|
13
|
+
*
|
|
14
|
+
* Sources: USER + PROJECT scoped memory (the CODEBUDDY.md rule layer). We do NOT
|
|
15
|
+
* include the auto-memory directory or PROJECT_LOCAL here — only the instruction
|
|
16
|
+
* layer the user authored as project/user guidance.
|
|
17
|
+
*/
|
|
18
|
+
export interface AutoModeProjectInstructionsResolver {
|
|
19
|
+
/** Combined rule-layer text, or empty string when none is configured. */
|
|
20
|
+
resolve(): Promise<string>;
|
|
21
|
+
}
|
|
22
|
+
export declare class AutoModeProjectInstructionsResolverImpl implements AutoModeProjectInstructionsResolver {
|
|
23
|
+
protected readonly memoryManager?: MemoryManager;
|
|
24
|
+
protected readonly logger: Logger;
|
|
25
|
+
resolve(): Promise<string>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { PermissionMode } from '../../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Auto mode permission subsystem — public protocol.
|
|
4
|
+
*
|
|
5
|
+
* All auto-mode-specific logic is aggregated under `tools/auto-mode/`. Host files
|
|
6
|
+
* (tool-permission-service, interruption-service, agent-task, session-middleware)
|
|
7
|
+
* only depend on the symbols exported here, never on the internals.
|
|
8
|
+
*/
|
|
9
|
+
/** DI symbol for the auto mode permission service. */
|
|
10
|
+
export declare const AutoModePermissionService: unique symbol;
|
|
11
|
+
/** Classifier verdict categories, aligned with Claude Code auto mode. */
|
|
12
|
+
export type AutoModeDenyCategory = 'soft_deny' | 'hard_deny' | 'unknown' | 'unavailable';
|
|
13
|
+
/**
|
|
14
|
+
* Result of classifying a tool call that would otherwise prompt the user.
|
|
15
|
+
*
|
|
16
|
+
* The classifier verdict is binary (allow | block, mapped to allow | deny here).
|
|
17
|
+
* There is no `ask` result — "requires confirmation" is the host's decision when
|
|
18
|
+
* the classifier is `unavailable` (see fallback). `unavailable.failClosed`
|
|
19
|
+
* tells the host whether to deny (non-interactive) or fall back to a prompt.
|
|
20
|
+
* `unavailable.kickOutOfAuto` is set once the circuit breaker trips — the host
|
|
21
|
+
* should switch the session out of auto mode (back to default), aligned with
|
|
22
|
+
* Claude Code's `kickOutOfAutoIfNeeded`.
|
|
23
|
+
*
|
|
24
|
+
* `unavailable.noVerdict` marks the case where the classifier RAN but returned
|
|
25
|
+
* nothing usable (Claude `parse_failure`): always fail-closed, and the host uses
|
|
26
|
+
* the "no verdict" deny message instead of the "temporarily unavailable" one. It
|
|
27
|
+
* counts toward the denial limit below, so an unusable classifier model does not
|
|
28
|
+
* block every action for the rest of the session.
|
|
29
|
+
*
|
|
30
|
+
* `transcriptTooLong` is produced when the serialized transcript exceeds the
|
|
31
|
+
* classifier model's context window (Claude `transcript_too_long`). The host
|
|
32
|
+
* falls back to normal permission handling (prompt) when interactive, and
|
|
33
|
+
* ABORTS the agent run when headless (`headlessAbort`), aligned with Claude's
|
|
34
|
+
* "exceeded context window in headless mode".
|
|
35
|
+
*
|
|
36
|
+
* `denialLimitExceeded` is produced when classifier outcomes that blocked the
|
|
37
|
+
* action (block verdicts, or runs that produced no verdict) hit the
|
|
38
|
+
* 3-consecutive / 20-total denial limit (Claude `I_m`). Interactive sessions
|
|
39
|
+
* fall back to a prompt (auto pauses); headless runs abort (`headlessAbort`),
|
|
40
|
+
* aligned with Claude's "too many classifier denials in headless mode".
|
|
41
|
+
*/
|
|
42
|
+
export type AutoModePermissionResult = {
|
|
43
|
+
behavior: 'allow';
|
|
44
|
+
reason: string;
|
|
45
|
+
source: 'fastPath' | 'classifier';
|
|
46
|
+
} | {
|
|
47
|
+
behavior: 'deny';
|
|
48
|
+
reason: string;
|
|
49
|
+
category: AutoModeDenyCategory;
|
|
50
|
+
} | {
|
|
51
|
+
behavior: 'unavailable';
|
|
52
|
+
reason: string;
|
|
53
|
+
failClosed: boolean;
|
|
54
|
+
kickOutOfAuto?: boolean;
|
|
55
|
+
noVerdict?: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
behavior: 'transcriptTooLong';
|
|
58
|
+
reason: string;
|
|
59
|
+
headlessAbort: boolean;
|
|
60
|
+
actualTokens: number;
|
|
61
|
+
limitTokens: number;
|
|
62
|
+
} | {
|
|
63
|
+
behavior: 'denialLimitExceeded';
|
|
64
|
+
reason: string;
|
|
65
|
+
headlessAbort: boolean;
|
|
66
|
+
};
|
|
67
|
+
/** Availability of auto mode for the current session/environment. */
|
|
68
|
+
export interface AutoModeAvailability {
|
|
69
|
+
available: boolean;
|
|
70
|
+
reason?: 'disabledBySettings' | 'modelUnavailable';
|
|
71
|
+
message?: string;
|
|
72
|
+
}
|
|
73
|
+
/** Resolved auto mode rules (after $defaults expansion). */
|
|
74
|
+
export interface AutoModeRules {
|
|
75
|
+
environment: string[];
|
|
76
|
+
allow: string[];
|
|
77
|
+
soft_deny: string[];
|
|
78
|
+
hard_deny: string[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A classification request. The host passes the raw tool call plus the
|
|
82
|
+
* conversation transcript and user deny rules; the service owns all prompt
|
|
83
|
+
* assembly (system prompt + two-stage classifier).
|
|
84
|
+
*/
|
|
85
|
+
export interface AutoModePermissionRequest {
|
|
86
|
+
/** Session id, for per-session circuit-breaker / recent-denials bookkeeping. */
|
|
87
|
+
sessionId: string;
|
|
88
|
+
toolName: string;
|
|
89
|
+
toolInput: unknown;
|
|
90
|
+
/** The runtime mode (always Auto when this is invoked). */
|
|
91
|
+
currentMode: PermissionMode;
|
|
92
|
+
/** Abort signal tied to the host run; classifier must not outlive it. */
|
|
93
|
+
signal?: AbortSignal;
|
|
94
|
+
/** Whether the session can prompt the user (interactive) — drives fallback. */
|
|
95
|
+
canPrompt: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the session is headless (outputFormat json / stream-json). On a
|
|
98
|
+
* transcript-too-long it drives ABORT instead of a prompt fallback.
|
|
99
|
+
*/
|
|
100
|
+
headless?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Conversation history to serialize into the `<transcript>` the classifier
|
|
103
|
+
* reads. The action being classified (toolName/toolInput) is appended as the
|
|
104
|
+
* most-recent entry by the serializer. History is DATA — it never grants
|
|
105
|
+
* permission. Loosely typed (AgentInputItem[]) to keep the protocol from
|
|
106
|
+
* depending on the agent runtime types.
|
|
107
|
+
*/
|
|
108
|
+
transcript?: unknown[];
|
|
109
|
+
/** User-configured `permissions.deny` rules, injected into the classifier prompt. */
|
|
110
|
+
settingsDenyRules?: string[];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Auto mode permission service — the single entry point host code depends on.
|
|
114
|
+
*/
|
|
115
|
+
export interface AutoModePermissionService {
|
|
116
|
+
/** Gate: is auto mode usable right now (settings + model)? */
|
|
117
|
+
isAutoModeAvailable(): Promise<AutoModeAvailability>;
|
|
118
|
+
/**
|
|
119
|
+
* Whether `defaultMode: auto` may be granted by the settings sources present.
|
|
120
|
+
* Auto is privileged: only user / CLI scopes may grant it; project / project-local
|
|
121
|
+
* are ignored (anti repo self-grant). Enterprise policy/flag sources are not
|
|
122
|
+
* implemented in this product.
|
|
123
|
+
*/
|
|
124
|
+
isSettingsAutoGrantAllowed(): Promise<boolean>;
|
|
125
|
+
/** Classify a tool call that would otherwise prompt. */
|
|
126
|
+
classifyAsk(request: AutoModePermissionRequest): Promise<AutoModePermissionResult>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Per-stage local timeouts for a classifier call (ms), aligned with Claude Code
|
|
130
|
+
* 2.1.181: Stage 1 = 60s (`§9.2`), Stage 2 = 120s (`§9.3`). Stage 2 gets the
|
|
131
|
+
* longer budget because it runs the thinking pass with the large output budget.
|
|
132
|
+
*/
|
|
133
|
+
export declare const AUTO_MODE_CLASSIFIER_STAGE1_TIMEOUT_MS_DEFAULT = 60000;
|
|
134
|
+
export declare const AUTO_MODE_CLASSIFIER_STAGE2_TIMEOUT_MS_DEFAULT = 120000;
|
|
135
|
+
/**
|
|
136
|
+
* Env override for the classifier timeout. When set, it overrides BOTH stages
|
|
137
|
+
* (single knob — we do not expose per-stage env). Kept for backward compat with
|
|
138
|
+
* the previously single-timeout behaviour.
|
|
139
|
+
*/
|
|
140
|
+
export declare const AUTO_MODE_CLASSIFIER_TIMEOUT_ENV = "CODEBUDDY_AUTO_MODE_CLASSIFIER_TIMEOUT_MS";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Logger } from '../../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import { AutoModeSettings, SettingsManager } from '../../settings';
|
|
3
|
+
import { AutoModeRules } from './auto-mode-protocol';
|
|
4
|
+
export declare const AutoModeSettingsResolver: unique symbol;
|
|
5
|
+
export interface AutoModeSettingsResolver {
|
|
6
|
+
/** Effective auto mode rules after merging allowed sources and expanding $defaults. */
|
|
7
|
+
resolve(): Promise<AutoModeRules>;
|
|
8
|
+
/**
|
|
9
|
+
* Merged-but-UNEXPANDED custom rules (the `$defaults` token is preserved).
|
|
10
|
+
* Used by critique to (a) detect whether a section replaces or extends the
|
|
11
|
+
* defaults, and (b) filter out `$defaults` so only the user's own custom
|
|
12
|
+
* entries are reviewed — mirrors Claude `HDH()` + `is6()`.
|
|
13
|
+
*/
|
|
14
|
+
resolveRaw(): Promise<AutoModeSettings>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Resolves effective auto mode rules.
|
|
18
|
+
*
|
|
19
|
+
* Source policy (no enterprise policy/flag sources in this product):
|
|
20
|
+
* - reads `autoMode` from user / project-local / CLI scopes
|
|
21
|
+
* - shared project settings are NOT read (prevents checked-in repos injecting allow rules)
|
|
22
|
+
*
|
|
23
|
+
* `$defaults` semantics per section:
|
|
24
|
+
* - section unset -> use built-in defaults
|
|
25
|
+
* - array containing `$defaults` -> expand defaults in place
|
|
26
|
+
* - array without `$defaults` -> replace built-in defaults (warns for soft/hard_deny)
|
|
27
|
+
*/
|
|
28
|
+
export declare class AutoModeSettingsResolverImpl implements AutoModeSettingsResolver {
|
|
29
|
+
protected readonly settingsManager: SettingsManager;
|
|
30
|
+
protected readonly logger: Logger;
|
|
31
|
+
resolve(): Promise<AutoModeRules>;
|
|
32
|
+
resolveRaw(): Promise<AutoModeSettings>;
|
|
33
|
+
/** Merge `autoMode` from allowed scopes (later scopes append after earlier ones). */
|
|
34
|
+
private mergeAllowedSources;
|
|
35
|
+
private expandSection;
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RunContext, ToolExecuteArgument } from '../../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
import { Session } from '../../../vendor/cbc-core/node/index.js';
|
|
3
|
+
import { PermissionMode } from '../../../vendor/cbc-shared/node/index.js';
|
|
4
|
+
import { SettingsManager } from '../../settings';
|
|
5
|
+
import { BaseTool } from '../base-tool';
|
|
6
|
+
import { ToolArg } from '../../../vendor/cbc-shared/node/index.js';
|
|
7
|
+
import { ToolPermissionStrategy } from '../tool-protocol';
|
|
8
|
+
/**
|
|
9
|
+
* Auto permission strategy — deterministic fast paths only.
|
|
10
|
+
*
|
|
11
|
+
* 1. acceptEdits fast path: anything acceptEdits would auto-allow, auto allows too.
|
|
12
|
+
* 2. safe tool allowlist: read-only / metadata built-ins auto-allow.
|
|
13
|
+
* 3. everything else returns `ask` → the service's unified outlet routes it into
|
|
14
|
+
* the classifier (AutoModePermissionService). The classifier call deliberately
|
|
15
|
+
* lives outside the strategy so the permission chain stays synchronous/testable.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ToolPermissionAutoStrategy implements ToolPermissionStrategy {
|
|
18
|
+
mode: PermissionMode;
|
|
19
|
+
protected readonly settingsManager: SettingsManager;
|
|
20
|
+
needApproval(tool: BaseTool, runContext: RunContext<Session>, input: ToolExecuteArgument<any>, checkArgs: ToolArg[], callId?: string): Promise<boolean>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PromptManager } from '../../../workspace/prompts/lib/common/index.js';
|
|
2
|
+
import { AutoModeRules } from './auto-mode-protocol';
|
|
3
|
+
export declare const AutoModeSystemPromptBuilder: unique symbol;
|
|
4
|
+
/**
|
|
5
|
+
* Assembles the classifier system prompt by substituting resolved rules and the
|
|
6
|
+
* user's `permissions.deny` rules into the framework template.
|
|
7
|
+
*
|
|
8
|
+
* Mirrors Claude Code 2.1.179: the framework lives in the template with
|
|
9
|
+
* `<user_*_to_replace>` and `<settings_deny_rules>` placeholders; the rule lists
|
|
10
|
+
* and deny-rule section are injected at call time (binary `Pb_` / `QLK`). The
|
|
11
|
+
* framework text (Default Rule / Scope / User Intent Rule / Evaluation Rules /
|
|
12
|
+
* Classification Process / Definitions / Output Format) is NOT duplicated here.
|
|
13
|
+
*/
|
|
14
|
+
export interface AutoModeSystemPromptBuilder {
|
|
15
|
+
build(rules: AutoModeRules, settingsDenyRules: string[]): Promise<string>;
|
|
16
|
+
}
|
|
17
|
+
export declare class AutoModeSystemPromptBuilderImpl implements AutoModeSystemPromptBuilder {
|
|
18
|
+
protected readonly promptManager: PromptManager;
|
|
19
|
+
build(rules: AutoModeRules, settingsDenyRules: string[]): Promise<string>;
|
|
20
|
+
/** Replace `<tag>...</tag>` (default content included) with the formatted rule list. */
|
|
21
|
+
private replaceTag;
|
|
22
|
+
/**
|
|
23
|
+
* Render the user's `permissions.deny` rules as a classifier instruction
|
|
24
|
+
* (binary `QLK`): list the deny rules and tell the classifier to catch
|
|
25
|
+
* circumvention via a different tool. Empty when there are no deny rules.
|
|
26
|
+
*/
|
|
27
|
+
private renderSettingsDenyRules;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Which classifier stage a timeout applies to. */
|
|
2
|
+
export type AutoModeStage = 1 | 2;
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the local timeout (ms) for an auto-mode classifier stage call.
|
|
5
|
+
* Aligned with Claude Code 2.1.181: Stage 1 = 60s, Stage 2 = 120s.
|
|
6
|
+
*
|
|
7
|
+
* `CODEBUDDY_AUTO_MODE_CLASSIFIER_TIMEOUT_MS`, when set, overrides BOTH stages
|
|
8
|
+
* (single knob, backward-compatible with the previous single-timeout behaviour).
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveAutoModeTimeoutMs(stage: AutoModeStage): number;
|
|
11
|
+
/**
|
|
12
|
+
* Race a promise against a local timeout. Rejects with `${label} timed out after Nms`
|
|
13
|
+
* if the timeout fires first. Prevents lite-model calls from hanging forever when
|
|
14
|
+
* the model stream never completes.
|
|
15
|
+
*/
|
|
16
|
+
export declare function withAutoModeTimeout<T>(promise: Promise<T>, timeoutMs: number, label: string): Promise<T>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AgentManager } from '../../../vendor/cbc-core/node/index.js';
|
|
2
|
+
import { ProductManager } from '../../../workspace/product/lib/common/index.js';
|
|
3
|
+
import { Logger } from '../../../workspace/telemetry/lib/common/index.js';
|
|
4
|
+
export declare const AutoModeTranscriptLimit: unique symbol;
|
|
5
|
+
export interface TranscriptLimitCheck {
|
|
6
|
+
tooLong: boolean;
|
|
7
|
+
actualTokens: number;
|
|
8
|
+
limitTokens: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the classifier model's usable transcript-token budget and checks a
|
|
12
|
+
* serialized transcript against it.
|
|
13
|
+
*
|
|
14
|
+
* Mirrors Claude Code 2.1.179 `transcript_too_long`: before calling the model,
|
|
15
|
+
* compare the transcript token estimate against the classifier model's context
|
|
16
|
+
* window (minus system-prompt and output reserves). The transcript is the whole
|
|
17
|
+
* conversation, so on long sessions this is a real limit — exceeding it must NOT
|
|
18
|
+
* hard-call the model (which would just error); the host falls back / aborts.
|
|
19
|
+
*/
|
|
20
|
+
export interface AutoModeTranscriptLimit {
|
|
21
|
+
check(transcript: string): Promise<TranscriptLimitCheck>;
|
|
22
|
+
}
|
|
23
|
+
export declare class AutoModeTranscriptLimitImpl implements AutoModeTranscriptLimit {
|
|
24
|
+
protected readonly agentManager: AgentManager;
|
|
25
|
+
protected readonly productManager: ProductManager;
|
|
26
|
+
protected readonly logger: Logger;
|
|
27
|
+
check(transcript: string): Promise<TranscriptLimitCheck>;
|
|
28
|
+
private resolveLimit;
|
|
29
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AgentInputItem } from '../../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Serializes session history + the action being classified into the single
|
|
4
|
+
* `<transcript>` text the classifier consumes.
|
|
5
|
+
*
|
|
6
|
+
* Aligned with Claude Code 2.1.181 `whK`/`$Pa` projection (NOT a verbatim dump):
|
|
7
|
+
*
|
|
8
|
+
* - `user` text → `User: <text>` (kept — it is the user-intent signal).
|
|
9
|
+
* - `assistant` text → DROPPED.
|
|
10
|
+
* - `tool_result` → DROPPED, except a non-error result answering a prior
|
|
11
|
+
* `AskUserQuestion` → `[User answered AskUserQuestion]: …`
|
|
12
|
+
* (the one tool_result Claude keeps, per User Intent #6).
|
|
13
|
+
* - `tool_use` → projected via the tool's `toAutoClassifierInput`;
|
|
14
|
+
* an empty projection or a read-only history tool
|
|
15
|
+
* (`HISTORY_READONLY_TOOLS`) is skipped entirely.
|
|
16
|
+
*
|
|
17
|
+
* Everything is text the model reads as DATA — it never grants permission (the
|
|
18
|
+
* framework system prompt states this explicitly). The last entry is the action
|
|
19
|
+
* being evaluated, appended by the caller via `action`.
|
|
20
|
+
*
|
|
21
|
+
* The per-tool projection is supplied by the caller (`projectToolUse`) so this
|
|
22
|
+
* module stays decoupled from the tool registry; the classifier client owns the
|
|
23
|
+
* `toolName → BaseTool.toAutoClassifierInput` lookup.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* History tool_use entries for these read-only tools are dropped from the
|
|
27
|
+
* classifier transcript (Claude `$gp`): they add no risk signal and only inflate
|
|
28
|
+
* the prompt. The *current action* is never filtered here — only history.
|
|
29
|
+
*/
|
|
30
|
+
export declare const HISTORY_READONLY_TOOLS: ReadonlySet<string>;
|
|
31
|
+
/**
|
|
32
|
+
* JSONL transcript format toggle (Claude `jsonlTranscript`). Claude defaults to
|
|
33
|
+
* the compact text format; the JSONL variant is a server-flag-only path we do
|
|
34
|
+
* not enable. Kept as a const (not config) so the branch is exercised/visible
|
|
35
|
+
* without introducing an unused product setting (decision D1.3).
|
|
36
|
+
*/
|
|
37
|
+
export declare const AUTO_MODE_JSONL_TRANSCRIPT = false;
|
|
38
|
+
/** The action being classified — projected to its security-relevant text by the caller. */
|
|
39
|
+
export interface TranscriptAction {
|
|
40
|
+
toolName: string;
|
|
41
|
+
/** Result of the tool's `toAutoClassifierInput(input)` for this action. */
|
|
42
|
+
projected: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Projects a history tool_use into its classifier text, or `undefined` to skip
|
|
46
|
+
* the entry (empty projection / unknown tool). Read-only history tools are
|
|
47
|
+
* filtered by the serializer before this is consulted.
|
|
48
|
+
*/
|
|
49
|
+
export type HistoryToolProjector = (toolName: string, toolInput: unknown) => string | undefined;
|
|
50
|
+
export declare function serializeTranscript(history: AgentInputItem[], action: TranscriptAction, projectToolUse: HistoryToolProjector): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './auto-mode-protocol';
|
|
2
|
+
export * from './permission-mode-policy';
|
|
3
|
+
export * from './auto-mode-timeout';
|
|
4
|
+
export * from './auto-mode-defaults';
|
|
5
|
+
export * from './auto-mode-allow-filter';
|
|
6
|
+
export * from './auto-mode-denial-tracker';
|
|
7
|
+
export * from './auto-mode-settings';
|
|
8
|
+
export * from './auto-mode-project-instructions';
|
|
9
|
+
export * from './auto-mode-system-prompt-builder';
|
|
10
|
+
export * from './auto-mode-transcript';
|
|
11
|
+
export * from './auto-mode-transcript-limit';
|
|
12
|
+
export * from './auto-mode-classifier-client';
|
|
13
|
+
export * from './auto-mode-critique-client';
|
|
14
|
+
export * from './auto-mode-permission-service';
|
|
15
|
+
export * from './auto-mode-strategy';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PermissionMode } from '../../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Pure, shared judgments about the auto / dontAsk permission modes.
|
|
4
|
+
*
|
|
5
|
+
* Aggregated here so host files don't each re-implement `mode === Auto || mode === DontAsk`.
|
|
6
|
+
* These are the "restricted" modes: they never auto-approve via interruption-layer
|
|
7
|
+
* short-circuits, and sub-agents under them are clamped to a permission ceiling.
|
|
8
|
+
*/
|
|
9
|
+
/** Modes that must NOT be bypassed by interruption-layer direct-approve short-circuits. */
|
|
10
|
+
export { isRestrictedDirectApproveMode } from '../../../vendor/cbc-shared/node/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Whether a parent mode imposes a permission ceiling on sub-agents.
|
|
13
|
+
* Returns the ceiling mode to clamp to, or undefined when no clamp applies.
|
|
14
|
+
*/
|
|
15
|
+
export declare function permissionCeilingForParent(parentMode: PermissionMode | undefined): PermissionMode | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Denial message shown when a tool is denied solely because mode is dontAsk.
|
|
18
|
+
*
|
|
19
|
+
* Wording aligned with Claude Code 2.1.181 (binary `yBl` + `jIo`): name the tool,
|
|
20
|
+
* surface the reason, then the `jIo` guidance — the agent MAY accomplish the goal
|
|
21
|
+
* with other natural tools but MUST NOT maliciously work around the denial, and
|
|
22
|
+
* should stop + explain to the user if the capability is essential. We also keep
|
|
23
|
+
* CodeBuddy's "add a permission rule" hint (user-helpful, not in conflict).
|
|
24
|
+
* `reason` is the underlying "why this needed approval" text.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildDontAskDenyMessage(toolName: string, reason: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Message shown when the auto mode classifier is unavailable AND prompts cannot
|
|
29
|
+
* be shown (non-interactive), so the action is denied fail-closed.
|
|
30
|
+
*
|
|
31
|
+
* Wording aligned with Claude Code 2.1.179 (binary): the classifier is
|
|
32
|
+
* temporarily unavailable, retry later, and read-only operations still work
|
|
33
|
+
* without it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function buildClassifierUnavailableDenyMessage(toolName: string, reason: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Message shown when the classifier RAN but produced no usable verdict — e.g. a
|
|
38
|
+
* model whose reasoning cannot be disabled spent the whole classifier output
|
|
39
|
+
* budget on hidden thinking and returned nothing parseable.
|
|
40
|
+
*
|
|
41
|
+
* Distinct from `buildClassifierUnavailableDenyMessage` on purpose (Claude keeps
|
|
42
|
+
* the same split: `a9d` for an outage vs `x8s(reason, { refused: false })` for a
|
|
43
|
+
* `parse_failure`): the model is up, so "temporarily unavailable, wait and retry"
|
|
44
|
+
* would be wrong advice. Retrying an unsuitable classifier model reproduces the
|
|
45
|
+
* same empty answer, so the guidance is to stop and let the user pick a model.
|
|
46
|
+
* `reason` already names the model that ran and the setting that changes it.
|
|
47
|
+
*/
|
|
48
|
+
export declare function buildClassifierNoVerdictDenyMessage(toolName: string, reason: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Message returned to the model when the auto mode classifier BLOCKS an action
|
|
51
|
+
* (a real `deny` verdict, not an outage). Aligned with Claude Code 2.1.196
|
|
52
|
+
* (binary `Qpc`): name the classifier + reason, tell the agent it may keep
|
|
53
|
+
* working on unrelated tasks, then append the shared PERMISSION_DENIED_GUIDANCE
|
|
54
|
+
* — the agent may accomplish the goal via other natural tools but MUST NOT try
|
|
55
|
+
* to bypass the intent of the denial, and if the capability is essential it
|
|
56
|
+
* should STOP and explain to the user and let the user decide.
|
|
57
|
+
*
|
|
58
|
+
* Without this guidance the deny result is a bare "denied" line, and some models
|
|
59
|
+
* fill the gap by popping an AskUserQuestion "shall I run it anyway?" prompt —
|
|
60
|
+
* effectively a one-click override of a SOFT BLOCK. The guidance steers the model
|
|
61
|
+
* toward explaining and deferring to the user instead of soliciting a rubber-stamp.
|
|
62
|
+
*/
|
|
63
|
+
export declare function buildClassifierDenyMessage(reason: string): string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RunContext } from '@openai/agents';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
4
|
+
import { BaseTool } from './base-tool';
|
|
5
|
+
import { Tool } from './tool-protocol';
|
|
6
|
+
import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
7
|
+
declare const BashOutputParameters: z.ZodObject<{
|
|
8
|
+
shell_id: z.ZodString;
|
|
9
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
shell_id: string;
|
|
12
|
+
filter?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
shell_id: string;
|
|
15
|
+
filter?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare class BashOutputTool extends BaseTool implements Tool {
|
|
18
|
+
name: ToolNames;
|
|
19
|
+
aliases: string[];
|
|
20
|
+
needsApproval: boolean;
|
|
21
|
+
parameters: z.ZodObject<{
|
|
22
|
+
shell_id: z.ZodString;
|
|
23
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
shell_id: string;
|
|
26
|
+
filter?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
shell_id: string;
|
|
29
|
+
filter?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
execute(input: z.infer<typeof BashOutputParameters>, context: RunContext<Session>): Promise<any>;
|
|
32
|
+
private formatDuration;
|
|
33
|
+
}
|
|
34
|
+
export {};
|