@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,55 @@
|
|
|
1
|
+
import { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import { Memory, MemoryParser, MemoryValidator, SubdirectoryMemoryLoader } from './memory-protocol';
|
|
3
|
+
export declare class SubdirectoryMemoryLoaderImpl implements SubdirectoryMemoryLoader {
|
|
4
|
+
protected readonly parser: MemoryParser;
|
|
5
|
+
protected readonly validator: MemoryValidator;
|
|
6
|
+
protected readonly logger: Logger;
|
|
7
|
+
private chainCache;
|
|
8
|
+
private dirCache;
|
|
9
|
+
private fileCache;
|
|
10
|
+
protected initialize(): void;
|
|
11
|
+
loadForPaths(filePaths: string[]): Promise<Memory[]>;
|
|
12
|
+
clear(): void;
|
|
13
|
+
/**
|
|
14
|
+
* 加载指定目录到 workDir 之间所有目录的 memory
|
|
15
|
+
* @param dirPath 目录路径
|
|
16
|
+
* @param workDir 工作目录
|
|
17
|
+
* @returns memory 列表
|
|
18
|
+
*/
|
|
19
|
+
private loadForDirectory;
|
|
20
|
+
/**
|
|
21
|
+
* 加载单个目录的 memory
|
|
22
|
+
* @param dirPath 目录路径
|
|
23
|
+
* @param workDir 工作目录
|
|
24
|
+
* @returns memory 或 undefined
|
|
25
|
+
*/
|
|
26
|
+
private loadDirMemory;
|
|
27
|
+
/**
|
|
28
|
+
* 转换用户定义的 globs 为基于 workDir 的路径
|
|
29
|
+
* @param userGlobs 用户定义的 globs
|
|
30
|
+
* @param relativeDirPath 相对于 workDir 的目录路径
|
|
31
|
+
* @returns 转换后的 globs,无有效 globs 时返回默认目录 glob
|
|
32
|
+
*/
|
|
33
|
+
private resolveGlobs;
|
|
34
|
+
/**
|
|
35
|
+
* 将单个 glob 转换为基于 workDir 的路径
|
|
36
|
+
* @param glob 原始 glob 模式
|
|
37
|
+
* @param relativeDirPath 相对于 workDir 的目录路径
|
|
38
|
+
* @returns 转换后的 glob,绝对路径保留,.. 开头返回 undefined
|
|
39
|
+
*/
|
|
40
|
+
private resolveGlobToWorkDir;
|
|
41
|
+
/**
|
|
42
|
+
* 查找目录下的 memory 文件
|
|
43
|
+
* @param dirPath 目录路径
|
|
44
|
+
* @returns memory 文件路径或 undefined
|
|
45
|
+
*/
|
|
46
|
+
private findMemoryFile;
|
|
47
|
+
/**
|
|
48
|
+
* 检查路径是否在父路径内
|
|
49
|
+
*/
|
|
50
|
+
private isSubPath;
|
|
51
|
+
/**
|
|
52
|
+
* 检查目录是否在产品目录(.codebuddy / 定制版 .xxxcode)内
|
|
53
|
+
*/
|
|
54
|
+
private isInsideProductDir;
|
|
55
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Model, OpenAIChatCompletionsModel, type RawModelProvider } from '../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
export { Model, OpenAIChatCompletionsModel };
|
|
3
|
+
export declare const MAX_MODEL_CACHE_SIZE = 10;
|
|
4
|
+
export { AUTHENTICATION_REQUIRED_MESSAGE, AUTHENTICATION_FAILED_MESSAGE } from '../../vendor/cbc-shared/node/index.js';
|
|
5
|
+
export declare const ModelProvider: unique symbol;
|
|
6
|
+
export declare const ModelErrorAnalyzer: unique symbol;
|
|
7
|
+
export declare const ModelRequestProcessor: unique symbol;
|
|
8
|
+
export interface ModelProvider extends RawModelProvider {
|
|
9
|
+
}
|
|
10
|
+
export interface ModelErrorAnalyzer {
|
|
11
|
+
analyze(error: unknown, axiosConfig: any): Promise<Response>;
|
|
12
|
+
createErrorResponse(body: string, status: number, statusText: string, headers?: Record<string, string>): Response;
|
|
13
|
+
}
|
|
14
|
+
export interface ModelRequestProcessor {
|
|
15
|
+
/**
|
|
16
|
+
* Priority of the processor. Lower values execute first.
|
|
17
|
+
* Default is 1000. GzipRequestProcessor should use a high value (e.g., 9999)
|
|
18
|
+
* to ensure it runs after all other processors that need to access the raw body.
|
|
19
|
+
*/
|
|
20
|
+
priority?: number;
|
|
21
|
+
process(axiosConfig: any): Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type AgentTaskManager } from '../agent-task/agent-task-protocol';
|
|
2
|
+
import { type CoordinatorLiveWorker, type MultitaskSessionRef } from './types';
|
|
3
|
+
/** starting 短路有 TTL:二次 init 泄漏时 sweep 仍能拆掉僵尸。 */
|
|
4
|
+
export declare const STARTING_DELEGATION_TTL_MS = 30000;
|
|
5
|
+
/**
|
|
6
|
+
* worker session 打标(markWorkerSession)完成时刻的监听者。
|
|
7
|
+
* 唯一的生产消费者是 coordinator-acp-bridge:worker session 在 AgentTask.execute()
|
|
8
|
+
* 的 setupPhase 里才创建,spawn 路径拿不到,靠这个钩子在创建的同一调用栈里挂桥。
|
|
9
|
+
*/
|
|
10
|
+
export type MultitaskWorkerSessionListener = (worker: MultitaskSessionRef, parent?: MultitaskSessionRef) => void;
|
|
11
|
+
/** 返回退订函数。监听者抛错只 warn,不影响打标主流程。 */
|
|
12
|
+
export declare function onMultitaskWorkerSession(listener: MultitaskWorkerSessionListener): () => void;
|
|
13
|
+
/** 极简站立不能开 overlay(无子代理面)。站立键优先,否则看 leftover agentName。 */
|
|
14
|
+
export declare function isMinimalStandingForMultitask(session?: MultitaskSessionRef | null): boolean;
|
|
15
|
+
/** 只认布尔 `true`。字符串 `"true"` / 1 都算关,避免脏 meta 误开。 */
|
|
16
|
+
export declare function isMultitaskMode(session?: MultitaskSessionRef | null): boolean;
|
|
17
|
+
/** 协调器:mode 开且非 worker/子会话。站立键会拷到子会话,role/parent 双保险。 */
|
|
18
|
+
export declare function isMultitaskCoordinator(session?: MultitaskSessionRef | null): boolean;
|
|
19
|
+
export declare function shouldDetachCoordinatorSpawn(session?: MultitaskSessionRef | null): boolean;
|
|
20
|
+
/** overlay 已开,或旧会话站立键 / agentName 仍是 multitask(挡住同步 Agent 堵主会话)。 */
|
|
21
|
+
export declare function isCoordinatorStanding(session?: MultitaskSessionRef | null): boolean;
|
|
22
|
+
/** worker / 子会话 / 落盘 agent-* 转录。续聊、斜杠、选名共用,避免只认内存 role。 */
|
|
23
|
+
export declare function isMultitaskWorkerOrSubagent(session?: MultitaskSessionRef | null): boolean;
|
|
24
|
+
/** overlay 会落盘;旧站立键 `multitask` 时补盖并迁回。DISABLE_BACKGROUND 下不盖。 */
|
|
25
|
+
export declare function restoreCoordinatorFromStanding(session?: MultitaskSessionRef | null): void;
|
|
26
|
+
/** overlay 真正打开/关掉过几次。关了之后靠它决定要不要热注入站立工具面。 */
|
|
27
|
+
export declare function readSurfaceEpoch(session?: MultitaskSessionRef | null): number;
|
|
28
|
+
/** REPL 常驻 kernel 目录新鲜度:indexEpoch + overlay 开关。两者都只增,和单调。 */
|
|
29
|
+
export declare function overlayCatalogEpoch(indexEpoch: number, session?: MultitaskSessionRef | null): number;
|
|
30
|
+
/** 只开 overlay(mode + coordinator role)。不改站立 mode / agentName / permissionMode。 */
|
|
31
|
+
export declare function stampMultitaskSession(session: MultitaskSessionRef): void;
|
|
32
|
+
/** 关掉 overlay。站立 mode 不动;旧会话若站立键仍是 multitask 则迁回。锁不清。 */
|
|
33
|
+
export declare function clearMultitaskSession(session: MultitaskSessionRef): void;
|
|
34
|
+
export declare function markDelegationStarting(taskId: string): void;
|
|
35
|
+
export declare function clearDelegationStarting(taskId: string): void;
|
|
36
|
+
export declare function resetDelegationStartingForTests(): void;
|
|
37
|
+
/** 测试用:清掉未正常 detach 的桥监听,避免跨用例泄漏。生产靠 worker 终态拆订阅。 */
|
|
38
|
+
export declare function resetWorkerSessionListenersForTests(): void;
|
|
39
|
+
export declare function addDelegationLock(session: MultitaskSessionRef, taskId: string): void;
|
|
40
|
+
export declare function clearDelegationLock(session: MultitaskSessionRef, taskId: string): void;
|
|
41
|
+
export declare function hasLiveDelegation(session?: MultitaskSessionRef | null): boolean;
|
|
42
|
+
export declare function listDelegationLockIds(session?: MultitaskSessionRef | null): string[];
|
|
43
|
+
export declare function normalizeWorkerScopeKey(scopeKey?: string): string | undefined;
|
|
44
|
+
export declare function setWorkerScopeKey(session: MultitaskSessionRef, taskId: string, scopeKey?: string): void;
|
|
45
|
+
export declare function getWorkerScopeKey(session: MultitaskSessionRef | null | undefined, taskId: string): string | undefined;
|
|
46
|
+
export declare function clearWorkerScopeKey(session: MultitaskSessionRef, taskId: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* Coordinator UI surface: expose every delegation lock without sweeping it through
|
|
49
|
+
* this process's TaskManager. Detached workers may execute in another runtime,
|
|
50
|
+
* while the coordinator session meta is the shared cross-runtime source of truth.
|
|
51
|
+
*
|
|
52
|
+
* Keep this separate from listCoordinatorLiveWorkers(), whose lock ∩ local
|
|
53
|
+
* TaskManager semantics are intentionally used by lifecycle/cleanup logic.
|
|
54
|
+
*/
|
|
55
|
+
export declare function listCoordinatorSurfaceWorkers(session?: MultitaskSessionRef | null): CoordinatorLiveWorker[] | null;
|
|
56
|
+
/** 协调器 ListAgents:活锁 ∩ TaskManager live。非协调器返回 null(走原目录)。 */
|
|
57
|
+
export declare function listCoordinatorLiveWorkers(session?: MultitaskSessionRef | null): CoordinatorLiveWorker[] | null;
|
|
58
|
+
/** Ask / ExitPlanMode only. Write/Bash and other permissions still follow parent teardown. */
|
|
59
|
+
export declare function isLiveDetachedWorkerHitlTool(effectiveToolName: unknown): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Live coordinator worker: `multitaskRole=worker` and a pending/running AgentTask
|
|
62
|
+
* whose sub-session matches `source`. Fail-closed if TaskManager is unavailable.
|
|
63
|
+
*
|
|
64
|
+
* Do not use `parentSessionId` alone — ordinary (non-multitask) subagents must
|
|
65
|
+
* still lose HITL when the parent turn is cancelled.
|
|
66
|
+
*/
|
|
67
|
+
export declare function isLiveDetachedWorkerSession(source?: MultitaskSessionRef | null, parentSessionId?: string): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Parent-turn sweep (`prompt_timeout` / user Stop / sandbox timeout) must not
|
|
70
|
+
* settle a live detached worker's Ask/plan. Closing the parent session still does.
|
|
71
|
+
*/
|
|
72
|
+
export declare function shouldKeepLiveDetachedWorkerHitl(args: {
|
|
73
|
+
effectiveToolName: unknown;
|
|
74
|
+
source?: MultitaskSessionRef | null;
|
|
75
|
+
sweepSessionId: string;
|
|
76
|
+
reason: string;
|
|
77
|
+
}): boolean;
|
|
78
|
+
/** 只读协议上的 `resume`,不穿透实现类 private `config`。 */
|
|
79
|
+
export declare function readTaskResumeId(task: {
|
|
80
|
+
resume?: unknown;
|
|
81
|
+
}): string | undefined;
|
|
82
|
+
/** 按 task.id / sessionId / resume 找任意状态的任务(含已终态,供 resume 验 id)。 */
|
|
83
|
+
export declare function findMatchingTask(taskManager: AgentTaskManager, taskId: string): ReturnType<AgentTaskManager['getTask']>;
|
|
84
|
+
/** 按 task.id / sessionId / resume 找仍 pending/running 的 worker。 */
|
|
85
|
+
export declare function findLiveMatchingTask(taskManager: AgentTaskManager, taskId: string): ReturnType<AgentTaskManager['getTask']>;
|
|
86
|
+
/** live = pending/running(含别名)。死任务清锁;TaskManager 不可用则认锁数组。 */
|
|
87
|
+
export declare function isLiveDelegationId(session?: MultitaskSessionRef | null, taskId?: string): boolean;
|
|
88
|
+
/** 先回灌再扫僵尸。新开 worker 和终态通知都要走。 */
|
|
89
|
+
export declare function sweepStaleDelegationLocks(session?: MultitaskSessionRef | null): void;
|
|
90
|
+
/** 第一条活锁(顺手清僵尸)。不参与默认派工。 */
|
|
91
|
+
export declare function resolveLiveResume(session?: MultitaskSessionRef | null): string | undefined;
|
|
92
|
+
/** worker:标 role、剥 multitaskMode,从父会话抄 acpConnectionId。 */
|
|
93
|
+
export declare function markWorkerSession(session: MultitaskSessionRef, parent?: MultitaskSessionRef): void;
|
|
94
|
+
export declare function markModuleSpawn(taskId: string): void;
|
|
95
|
+
export declare function clearModuleSpawn(taskId: string): void;
|
|
96
|
+
export declare function isModuleSpawned(taskId?: string): boolean;
|
|
97
|
+
export declare function resetModuleSpawnMarksForTests(): void;
|
|
98
|
+
export declare function shouldSkipTeamNotification(task: {
|
|
99
|
+
id?: string;
|
|
100
|
+
teamContext?: unknown;
|
|
101
|
+
getMainSession?: () => MultitaskSessionRef | undefined;
|
|
102
|
+
} | null | undefined): boolean;
|
|
103
|
+
export declare function applyCoordinatorTaskOutput<T extends {
|
|
104
|
+
block?: unknown;
|
|
105
|
+
}>(session: MultitaskSessionRef | null | undefined, input: T): T;
|
|
106
|
+
export declare const COORDINATOR_TASKOUTPUT_RUNNING_HINT: string;
|
|
107
|
+
/** 协调器上把「稍后再查」改成禁止空转,避免 block=false 后模型仍 tight-loop。 */
|
|
108
|
+
export declare function annotateCoordinatorTaskOutput<T extends {
|
|
109
|
+
content?: unknown;
|
|
110
|
+
}>(session: MultitaskSessionRef | null | undefined, result: T): T;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { ToolResult } from '../tools/tool-protocol';
|
|
2
|
+
export declare const MULTITASK_MODE_NAME = "multitask";
|
|
3
|
+
/** 必须与 `MAIN_AGENT_META_KEY` 同字面量,本模块不反向 import main-agent-session。 */
|
|
4
|
+
export declare const MULTITASK_STANDING_META_KEY = "codebuddy.ai/mainAgent";
|
|
5
|
+
export declare const MULTITASK_MODE_META_KEY = "multitaskMode";
|
|
6
|
+
export declare const MULTITASK_ROLE_META_KEY = "multitaskRole";
|
|
7
|
+
export declare const MULTITASK_ACTIVE_TASK_IDS_KEY = "multitaskActiveTaskIds";
|
|
8
|
+
/** 旧会话站立键曾写成 `multitask` 时,用来迁回进 overlay 前的 mode。新盖章不再写。 */
|
|
9
|
+
export declare const MULTITASK_PREVIOUS_AGENT_KEY = "multitaskPreviousAgent";
|
|
10
|
+
export declare const MULTITASK_SCOPE_BY_TASK_KEY = "multitaskWorkerScopeByTaskId";
|
|
11
|
+
export declare const MULTITASK_TASK_STORAGE_ID_KEY = "multitaskTaskStorageId";
|
|
12
|
+
export declare const MULTITASK_LAST_PLAN_KEY = "multitaskLastPlan";
|
|
13
|
+
export declare const MULTITASK_LAST_PLAN_TURN_KEY = "multitaskLastPlanTurn";
|
|
14
|
+
/** 每次真正打开/关掉 overlay 加一。关了之后每轮靠它决定要不要热注入站立工具面。 */
|
|
15
|
+
export declare const MULTITASK_SURFACE_EPOCH_KEY = "multitaskSurfaceEpoch";
|
|
16
|
+
export declare const MULTITASK_DELEGATED_FORBIDDEN = "delegated_work_forbidden";
|
|
17
|
+
/** 同批探测通过后才放行。不在 shipped 白名单里单独开;策略按 batch 判定。 */
|
|
18
|
+
export declare const MULTITASK_COORDINATOR_READONLY_TOOL_NAMES: readonly ["Grep", "Read"];
|
|
19
|
+
/** Overlay 打开时的热注入首句。拦截器 / notes / InspectSelf 共用,不作废历史。 */
|
|
20
|
+
export declare const OVERLAY_ON_SURFACE_LEAD: string;
|
|
21
|
+
/** 派工后:别空转等完成;用户问进度时必须读一次中途输出。 */
|
|
22
|
+
export declare const COORDINATOR_WAIT_FOR_NOTIFICATION: string;
|
|
23
|
+
/** 通知后:TaskOutput 就是用来读全文的。`<summary>` 只有 240 字标题。 */
|
|
24
|
+
export declare const COORDINATOR_READ_REPORT_THEN_SYNTHESIZE: string;
|
|
25
|
+
/** Code Mode overlay:对话层没有 TaskOutput,必须在 REPL 里 await 一次。 */
|
|
26
|
+
export declare const COORDINATOR_READ_REPORT_IN_REPL: string;
|
|
27
|
+
/** 每轮 reminder / InspectSelf / snapshot 共用,避免三处文案漂移。 */
|
|
28
|
+
export declare const COORDINATOR_BEHAVIOR_NOTES: string;
|
|
29
|
+
/** 协调器工具白名单。策略拦截与 shipped mode `tools` 共用这一份。 */
|
|
30
|
+
export declare const MULTITASK_COORDINATOR_TOOL_NAMES: readonly ["Agent", "TaskOutput", "TaskStop", "InterruptAgent", "ListAgents", "InspectSelf", "AskUserQuestion", "SendUserMessage", "Grep", "Read"];
|
|
31
|
+
export type MultitaskCoordinatorToolName = (typeof MULTITASK_COORDINATOR_TOOL_NAMES)[number];
|
|
32
|
+
export type MultitaskRole = 'coordinator' | 'worker';
|
|
33
|
+
/** 策略 / 盖章用的最小 session 面,避免单测拉齐完整 Session。 */
|
|
34
|
+
export interface MultitaskSessionRef {
|
|
35
|
+
id?: string;
|
|
36
|
+
/** 子代理落盘用 agent-*,反序列化后 role/parent 已丢,靠这个认 worker。 */
|
|
37
|
+
storeId?: string;
|
|
38
|
+
meta?: Record<string, unknown>;
|
|
39
|
+
agentName?: string;
|
|
40
|
+
options?: {
|
|
41
|
+
permissionMode?: string;
|
|
42
|
+
};
|
|
43
|
+
permissionModeSubject?: {
|
|
44
|
+
next(mode: string): void;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface SpawnDetachedInput {
|
|
48
|
+
prompt?: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
model?: string;
|
|
51
|
+
resume?: string;
|
|
52
|
+
subagent_type?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
max_turns?: number;
|
|
55
|
+
run_in_background?: boolean;
|
|
56
|
+
scopeKey?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface SpawnDetachedContext {
|
|
59
|
+
session: MultitaskSessionRef & {
|
|
60
|
+
id?: string;
|
|
61
|
+
};
|
|
62
|
+
input: SpawnDetachedInput;
|
|
63
|
+
parentToolUseId?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface PreparedCoordinatorSpawn {
|
|
66
|
+
agentType: string;
|
|
67
|
+
resume?: string;
|
|
68
|
+
/** 目标 worker 仍 pending/running:禁止再 new 一条 execute。 */
|
|
69
|
+
alreadyLive?: boolean;
|
|
70
|
+
consumeBudget: boolean;
|
|
71
|
+
description: string;
|
|
72
|
+
prompt: string;
|
|
73
|
+
/** Optional display label for this detached worker. It does not create a Team member. */
|
|
74
|
+
displayName?: string;
|
|
75
|
+
/** Original isolation mode of the worker being resumed. */
|
|
76
|
+
historicalAgentIsolation?: 'worktree';
|
|
77
|
+
scopeKey?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface MultitaskProcessGuardOpts {
|
|
80
|
+
/** 已归一化的进程 agent 名(`--multitask` 必须先收成 `multitask`)。 */
|
|
81
|
+
agentName?: string;
|
|
82
|
+
print?: boolean;
|
|
83
|
+
streamJson?: boolean;
|
|
84
|
+
stdoutIsTTY?: boolean;
|
|
85
|
+
stdinIsTTY?: boolean;
|
|
86
|
+
acp?: boolean;
|
|
87
|
+
serve?: boolean;
|
|
88
|
+
backgroundDisabled?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface PlannerSpawnSibling {
|
|
91
|
+
subagentType?: string;
|
|
92
|
+
scopeKey: string;
|
|
93
|
+
hint: string;
|
|
94
|
+
}
|
|
95
|
+
export type PlannerDecision = {
|
|
96
|
+
action: 'answer_inline';
|
|
97
|
+
} | {
|
|
98
|
+
action: 'spawn';
|
|
99
|
+
subagentType: string;
|
|
100
|
+
count: number;
|
|
101
|
+
scopeKey?: string;
|
|
102
|
+
siblings?: PlannerSpawnSibling[];
|
|
103
|
+
followUp?: string;
|
|
104
|
+
} | {
|
|
105
|
+
action: 'resume';
|
|
106
|
+
taskId: string;
|
|
107
|
+
};
|
|
108
|
+
export interface CoordinatorLiveWorker {
|
|
109
|
+
id: string;
|
|
110
|
+
status: string;
|
|
111
|
+
scopeKey?: string;
|
|
112
|
+
description?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface SelfSnapshot {
|
|
115
|
+
role: 'coordinator';
|
|
116
|
+
tools: readonly string[];
|
|
117
|
+
liveWorkers: CoordinatorLiveWorker[];
|
|
118
|
+
locks: string[];
|
|
119
|
+
plan?: PlannerDecision;
|
|
120
|
+
permissionMode?: string;
|
|
121
|
+
notes: string;
|
|
122
|
+
}
|
|
123
|
+
export type CoordinatorToolDecision = ToolResult | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { initialRender, InitialRoute, NavigationManager } from './navigation-protocol';
|
|
3
|
+
export declare class NavigationManagerImpl implements NavigationManager {
|
|
4
|
+
navigateSubject: Subject<string>;
|
|
5
|
+
initialRoute?: InitialRoute;
|
|
6
|
+
initialRender?: initialRender;
|
|
7
|
+
to(path: string): Promise<void>;
|
|
8
|
+
setInitialRoute(route: InitialRoute): void;
|
|
9
|
+
setInitialRender(renderer: initialRender): void;
|
|
10
|
+
clearInitialRender(): void;
|
|
11
|
+
clearInitialRoute(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
export declare const NavigationManager: unique symbol;
|
|
3
|
+
export interface InitialRoute {
|
|
4
|
+
currentPath: string;
|
|
5
|
+
params?: {
|
|
6
|
+
escapeExit: string;
|
|
7
|
+
skipAuth: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface initialRender {
|
|
11
|
+
component: React.ComponentType<any>;
|
|
12
|
+
props: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
export interface NavigationManager {
|
|
15
|
+
navigateSubject: Subject<string>;
|
|
16
|
+
initialRoute?: InitialRoute;
|
|
17
|
+
initialRender?: initialRender;
|
|
18
|
+
setInitialRender: (renderer: initialRender) => void;
|
|
19
|
+
to: (path: string) => Promise<void>;
|
|
20
|
+
setInitialRoute: (route: InitialRoute) => void;
|
|
21
|
+
clearInitialRoute: () => void;
|
|
22
|
+
clearInitialRender: () => void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NotificationType } from '../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
3
|
+
import { ProgressState } from '../utils/osc-protocol-utils';
|
|
4
|
+
export declare const TerminalNotificationService: unique symbol;
|
|
5
|
+
export interface TerminalNotificationService {
|
|
6
|
+
sendNotification(message: string, title?: string, notificationType?: NotificationType, session?: Session): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Tool-triggered notification (model calling PushNotificationTool).
|
|
9
|
+
* Bypasses the hooks-only NotificationType whitelist in sendNotification.
|
|
10
|
+
*/
|
|
11
|
+
sendToolNotification(message: string, title?: string, session?: Session): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare const ProgressSyncService: unique symbol;
|
|
14
|
+
export interface ProgressSyncService {
|
|
15
|
+
start(session: Session): Promise<void>;
|
|
16
|
+
stop(sessionId: string): void;
|
|
17
|
+
updateProgress(state: ProgressState, percentage?: number): void;
|
|
18
|
+
clearProgress(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const OUTPUT_STYLE_DIRNAME = "output-styles";
|
|
2
|
+
export declare const OUTPUT_STYLE_PATTERN = "*.md";
|
|
3
|
+
export declare const OutputStyleManager: unique symbol;
|
|
4
|
+
export interface OutputStyle {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
content: string;
|
|
8
|
+
keepCodingInstructions?: boolean;
|
|
9
|
+
/** 插件样式启用时强制应用,覆盖用户的 outputStyle 设置。 */
|
|
10
|
+
forceForPlugin?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 待渲染的 instructions 模板名(仅内置样式携带)。内置样式的 `content` 渲染成本较高
|
|
13
|
+
* (`promptRenderer.render`),而 `initialize` 握手 / 样式选择面板只需要 name/description
|
|
14
|
+
* 列表,不需要 content。因此加载列表时**不预渲染**,把模板名暂存在此,等 `getOutputStyleByName`
|
|
15
|
+
* 真正要用样式内容(run 时应用到 agent instructions)才懒渲染并写回 `content` 缓存。
|
|
16
|
+
* 自定义/插件样式的 content 直接来自文件读取,无渲染成本,不使用本字段。
|
|
17
|
+
*/
|
|
18
|
+
instructionsTemplate?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface OutputStyleManager {
|
|
21
|
+
/** Rebuild cached styles from the current active plugin snapshot. */
|
|
22
|
+
reload?(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Get all output styles (built-in + custom)
|
|
25
|
+
* Returns cached data after initialization
|
|
26
|
+
*/
|
|
27
|
+
getAllOutputStyles(): Promise<OutputStyle[]>;
|
|
28
|
+
/**
|
|
29
|
+
* initialize 握手专用的**快速快照**:只返回来自 product 配置的内置样式列表
|
|
30
|
+
* (name/description/instructionsTemplate),**不做**任何 fs 扫描 / 插件遍历,
|
|
31
|
+
* 从而避免把工作目录树遍历 + 插件消费拖进 SDK 首次 `initialize` 的关键路径。
|
|
32
|
+
*
|
|
33
|
+
* 自定义 / 插件样式的加载改为**在返回快照之后 fire-and-forget** 由完整
|
|
34
|
+
* `getAllOutputStyles()` 触发;下游首次通过 `getOutputStyleByName` 消费时若尚未
|
|
35
|
+
* 就绪,会自然等待那次后台加载完成 —— 语义等价,仅把耗时从 initialize 握手挪到
|
|
36
|
+
* 首个 prompt 的路径上(run 时本来就要等一堆 await,感知不到)。
|
|
37
|
+
*
|
|
38
|
+
* 语义边界(重要):本方法**只用于 initialize 握手**回报可选项,不承诺完备性。
|
|
39
|
+
* 需要拿完整列表(TUI 面板 / 按名匹配)请继续用 `getAllOutputStyles()` /
|
|
40
|
+
* `getOutputStyleByName()`。
|
|
41
|
+
*/
|
|
42
|
+
getInitializeSnapshot(): Promise<OutputStyle[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Get output style by name
|
|
45
|
+
* Returns the first matching style (case-insensitive)
|
|
46
|
+
*/
|
|
47
|
+
getOutputStyleByName(name: string): Promise<OutputStyle | undefined>;
|
|
48
|
+
/** 返回首个由已启用插件强制应用的样式。 */
|
|
49
|
+
getForcedOutputStyle(): Promise<OutputStyle | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Get all output styles from current project and parent directories
|
|
52
|
+
* Returns array of output styles ordered from parent to child directories
|
|
53
|
+
* @deprecated Use getAllOutputStyles instead
|
|
54
|
+
*/
|
|
55
|
+
getProjectOutputStyles(): Promise<OutputStyle[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Parse markdown content to extract output style information
|
|
58
|
+
*/
|
|
59
|
+
parseOutputStyleContent(content: string, filePath: string): OutputStyle;
|
|
60
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import type { DecisionRecord } from '../../../workspace/sandbox-cli/lib/common/protocol.generated.js';
|
|
3
|
+
import type { FileBlockRecord } from '../../sandbox-cli/sandbox-cli-protocol';
|
|
4
|
+
import type { BrokeredSandboxApprovalScope, BrokeredSandboxFileTokenResult, BrokeredSandboxHostResult } from './host-protocol';
|
|
5
|
+
export declare const BrokeredSandboxApprovalCoordinator: unique symbol;
|
|
6
|
+
/** Memory-only: native verdicts may carry sensitive items and must not enter raw block logs. */
|
|
7
|
+
export declare const BROKERED_FILE_DECISION: unique symbol;
|
|
8
|
+
interface BrokeredFileBlock extends FileBlockRecord {
|
|
9
|
+
[BROKERED_FILE_DECISION]?: DecisionRecord;
|
|
10
|
+
}
|
|
11
|
+
export interface BrokeredApprovalRequest {
|
|
12
|
+
id?: string;
|
|
13
|
+
operation?: string;
|
|
14
|
+
sessionId?: string;
|
|
15
|
+
toolCallId?: string;
|
|
16
|
+
brokerTraceId?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class BrokeredSandboxApprovalCoordinatorImpl {
|
|
19
|
+
protected readonly logger?: Logger;
|
|
20
|
+
private readonly promptBlocks;
|
|
21
|
+
runApprovalLoop(request: BrokeredApprovalRequest, dispatch: (approvalScope: BrokeredSandboxApprovalScope | undefined) => Promise<BrokeredSandboxFileTokenResult | BrokeredSandboxHostResult | undefined>): Promise<BrokeredSandboxFileTokenResult | BrokeredSandboxHostResult | undefined>;
|
|
22
|
+
dispatchAndRecordPrompt(request: BrokeredApprovalRequest, dispatch: (approvalScope: BrokeredSandboxApprovalScope | undefined) => Promise<BrokeredSandboxFileTokenResult | BrokeredSandboxHostResult | undefined>): Promise<BrokeredSandboxFileTokenResult | BrokeredSandboxHostResult | undefined>;
|
|
23
|
+
recordPromptBlock(request: BrokeredApprovalRequest, result: BrokeredSandboxFileTokenResult | BrokeredSandboxHostResult): void;
|
|
24
|
+
drainPromptBlocks(request: {
|
|
25
|
+
sessionId?: string;
|
|
26
|
+
toolCallId?: string;
|
|
27
|
+
}): BrokeredFileBlock[];
|
|
28
|
+
clearSessionApprovals(): void;
|
|
29
|
+
private prunePromptBlocks;
|
|
30
|
+
}
|
|
31
|
+
export type BrokeredSandboxApprovalCoordinator = Pick<BrokeredSandboxApprovalCoordinatorImpl, keyof BrokeredSandboxApprovalCoordinatorImpl>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { SecurityCenterFileRule } from '../../bash-sandbox/bash-sandbox-protocol';
|
|
2
|
+
import type { BrokeredFileAccessDecision, BrokeredFileDecision, BrokeredFileOperation } from '../file-policy-assessment';
|
|
3
|
+
export interface BrokeredSandboxApprovedAccess {
|
|
4
|
+
operation: BrokeredFileOperation;
|
|
5
|
+
normalisedPath: string;
|
|
6
|
+
matchedRule?: BrokeredFileAccessDecision['matchedRule'];
|
|
7
|
+
}
|
|
8
|
+
export interface BrokeredSandboxApprovalScope {
|
|
9
|
+
accesses: readonly BrokeredSandboxApprovedAccess[];
|
|
10
|
+
}
|
|
11
|
+
export type BrokeredSandboxDeleteMode = 'trash' | 'unlink';
|
|
12
|
+
export type BrokeredSandboxPolicyReason = 'implicit-safe-delete-fallback';
|
|
13
|
+
interface BrokeredSandboxPolicyParams {
|
|
14
|
+
orderedFileRules?: readonly SecurityCenterFileRule[];
|
|
15
|
+
approvalScope?: BrokeredSandboxApprovalScope;
|
|
16
|
+
sandboxFilesystem?: import('../../bash-sandbox/bash-sandbox-protocol').SandboxConfig['filesystem'];
|
|
17
|
+
sessionId?: string;
|
|
18
|
+
}
|
|
19
|
+
type BrokeredSandboxPathParams<T extends object = Record<never, never>> = BrokeredSandboxPolicyParams & {
|
|
20
|
+
path: string;
|
|
21
|
+
} & T;
|
|
22
|
+
type BrokeredSandboxPairParams<T extends object = Record<never, never>> = BrokeredSandboxPolicyParams & {
|
|
23
|
+
from: string;
|
|
24
|
+
to: string;
|
|
25
|
+
} & T;
|
|
26
|
+
export type BrokeredSandboxDeleteParams = BrokeredSandboxPathParams<{
|
|
27
|
+
deleteMode?: BrokeredSandboxDeleteMode;
|
|
28
|
+
recursive?: boolean;
|
|
29
|
+
force?: boolean;
|
|
30
|
+
safeDeleteReportPath?: string;
|
|
31
|
+
runtime?: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type BrokeredSandboxMkdirParams = BrokeredSandboxPathParams<{
|
|
34
|
+
recursive?: boolean;
|
|
35
|
+
mode?: number;
|
|
36
|
+
}>;
|
|
37
|
+
export type BrokeredSandboxRenameParams = BrokeredSandboxPairParams;
|
|
38
|
+
export type BrokeredSandboxCopyParams = BrokeredSandboxPairParams<{
|
|
39
|
+
recursive?: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
export type BrokeredSandboxChmodParams = BrokeredSandboxPathParams<{
|
|
42
|
+
mode: number;
|
|
43
|
+
}>;
|
|
44
|
+
export type BrokeredSandboxLinkParams = BrokeredSandboxPairParams<{
|
|
45
|
+
symbolic?: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
export type BrokeredSandboxTouchParams = BrokeredSandboxPathParams;
|
|
48
|
+
export type BrokeredSandboxFileTokenParams = BrokeredSandboxPathParams<{
|
|
49
|
+
operation: 'read' | 'write';
|
|
50
|
+
}>;
|
|
51
|
+
interface BrokeredSandboxDecisionResult {
|
|
52
|
+
ok: boolean;
|
|
53
|
+
path: string;
|
|
54
|
+
normalisedPath: string;
|
|
55
|
+
decision: BrokeredFileDecision;
|
|
56
|
+
decisionRecord?: BrokeredFileAccessDecision['decisionRecord'];
|
|
57
|
+
refusedOperation?: BrokeredFileOperation;
|
|
58
|
+
matchedRule?: BrokeredFileAccessDecision['matchedRule'];
|
|
59
|
+
approvalAccess?: BrokeredSandboxApprovedAccess;
|
|
60
|
+
approvedByUser?: boolean;
|
|
61
|
+
error?: string;
|
|
62
|
+
}
|
|
63
|
+
export type BrokeredSandboxHostResult = BrokeredSandboxDecisionResult & {
|
|
64
|
+
operation: 'delete' | 'mkdir' | 'rename' | 'copy' | 'chmod' | 'link' | 'touch';
|
|
65
|
+
deleteMode?: BrokeredSandboxDeleteMode;
|
|
66
|
+
policyReason?: BrokeredSandboxPolicyReason;
|
|
67
|
+
sourceApprovedByUser?: boolean;
|
|
68
|
+
to?: string;
|
|
69
|
+
normalisedTo?: string;
|
|
70
|
+
toMatchedRule?: BrokeredFileAccessDecision['matchedRule'];
|
|
71
|
+
toApprovedByUser?: boolean;
|
|
72
|
+
toDeleteDecision?: BrokeredFileDecision;
|
|
73
|
+
toDeleteMatchedRule?: BrokeredFileAccessDecision['matchedRule'];
|
|
74
|
+
toDeleteApprovedByUser?: boolean;
|
|
75
|
+
};
|
|
76
|
+
export type BrokeredSandboxFileTokenResult = BrokeredSandboxDecisionResult & {
|
|
77
|
+
operation: 'read' | 'write';
|
|
78
|
+
inspectionPath?: string;
|
|
79
|
+
token?: string;
|
|
80
|
+
};
|
|
81
|
+
type BrokeredHostPathRef = Pick<BrokeredFileAccessDecision, 'path' | 'normalisedPath' | 'matchedRule' | 'decisionRecord'>;
|
|
82
|
+
type BrokeredResultOperation = BrokeredSandboxHostResult['operation'] | BrokeredSandboxFileTokenResult['operation'];
|
|
83
|
+
type BrokeredPairPathRef = BrokeredHostPathRef | BrokeredFileAccessDecision;
|
|
84
|
+
type BrokeredResultExtra = Partial<Pick<BrokeredSandboxDecisionResult, 'matchedRule' | 'approvalAccess' | 'approvedByUser' | 'error' | 'decisionRecord' | 'refusedOperation'> & Pick<BrokeredSandboxHostResult, 'deleteMode' | 'policyReason' | 'sourceApprovedByUser' | 'to' | 'normalisedTo' | 'toMatchedRule' | 'toApprovedByUser' | 'toDeleteDecision' | 'toDeleteMatchedRule' | 'toDeleteApprovedByUser'> & Pick<BrokeredSandboxFileTokenResult, 'inspectionPath' | 'token'>>;
|
|
85
|
+
type BrokeredResult<TOperation extends BrokeredResultOperation> = BrokeredSandboxDecisionResult & {
|
|
86
|
+
operation: TOperation;
|
|
87
|
+
} & BrokeredResultExtra;
|
|
88
|
+
type BrokeredRefusalResult<TOperation extends BrokeredResultOperation> = BrokeredResult<TOperation> & {
|
|
89
|
+
ok: false;
|
|
90
|
+
error: string;
|
|
91
|
+
};
|
|
92
|
+
type BrokeredPairOperation = 'rename' | 'copy' | 'link';
|
|
93
|
+
export declare function isAccessApproved(access: BrokeredFileAccessDecision, expectedDecision: BrokeredFileDecision, approvalScope?: BrokeredSandboxApprovalScope): boolean;
|
|
94
|
+
export declare function hasApprovedAccess(access: BrokeredFileAccessDecision, approvalScope?: BrokeredSandboxApprovalScope): boolean;
|
|
95
|
+
export declare function toApprovalAccess(access: BrokeredFileAccessDecision): BrokeredSandboxApprovedAccess | undefined;
|
|
96
|
+
export declare function hostDeny<TOperation extends BrokeredResultOperation>(operation: TOperation, path: string, error: string, extra?: BrokeredResultExtra): BrokeredRefusalResult<TOperation>;
|
|
97
|
+
export declare function hostPolicyRefusal<TOperation extends BrokeredResultOperation>(operation: TOperation, access: BrokeredFileAccessDecision, error: string, extra?: BrokeredResultExtra): BrokeredRefusalResult<TOperation>;
|
|
98
|
+
export declare function hostRefusal<TOperation extends BrokeredResultOperation>(operation: TOperation, access: BrokeredHostPathRef, decision: BrokeredFileDecision, error: string, extra?: BrokeredResultExtra): BrokeredRefusalResult<TOperation>;
|
|
99
|
+
export declare function hostSuccess<TOperation extends BrokeredResultOperation>(operation: TOperation, access: BrokeredFileAccessDecision, decision: BrokeredFileDecision, approvalScope: BrokeredSandboxApprovalScope | undefined, extra?: BrokeredResultExtra): BrokeredResult<TOperation>;
|
|
100
|
+
export declare function rawPathRef(path: string): BrokeredHostPathRef;
|
|
101
|
+
export declare function hostPairPolicyRefusal(operation: BrokeredPairOperation, pathAccess: BrokeredPairPathRef, toAccess: BrokeredHostPathRef, refusedAccess: BrokeredFileAccessDecision, error: string): BrokeredSandboxHostResult;
|
|
102
|
+
export declare function hostPairCompletion(operation: BrokeredPairOperation, pathAccess: BrokeredPairPathRef, toAccess: BrokeredFileAccessDecision, approvalScope: BrokeredSandboxApprovalScope | undefined, error?: string, additionalAccess?: BrokeredFileAccessDecision): BrokeredSandboxHostResult;
|
|
103
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonicalize a shell command string into a stable key for the sandbox
|
|
3
|
+
* approval cache (SandboxApprovalStore).
|
|
4
|
+
*
|
|
5
|
+
* The goal is to recognise "the same user intent" across superficial syntax
|
|
6
|
+
* differences introduced by shell wrappers, so that a session-level approval
|
|
7
|
+
* granted for `rm x` through one invocation path is also honoured when the
|
|
8
|
+
* model later invokes the same command through a different wrapper.
|
|
9
|
+
*
|
|
10
|
+
* Design reference: Codex's `canonicalize_command_for_approval`
|
|
11
|
+
* (codex-rs/core/src/command_canonicalization.rs).
|
|
12
|
+
*
|
|
13
|
+
* Our version is deliberately lighter-weight:
|
|
14
|
+
*
|
|
15
|
+
* 1. Identify common shell wrappers (`bash -c 'script'`, `/bin/bash -lc ...`,
|
|
16
|
+
* `zsh -c ...`, `pwsh -Command ...`, `powershell -Command ...`) and extract
|
|
17
|
+
* the inner script body as the key. Shell path and login/interactive flags
|
|
18
|
+
* are normalised away.
|
|
19
|
+
* 2. Otherwise fall back to the trimmed original command as-is.
|
|
20
|
+
*
|
|
21
|
+
* Returning a plain string keeps the key hashable and cheap to log. Callers
|
|
22
|
+
* combine this with the cwd to form the full approval key.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Normalise a command string into an approval-cache key.
|
|
26
|
+
*
|
|
27
|
+
* The output is a plain string prefixed with a tag that identifies how the
|
|
28
|
+
* command was recognised, keeping keys human-readable in logs.
|
|
29
|
+
*/
|
|
30
|
+
export declare function canonicalizeCommand(command: string): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PermissionMode } from '../../vendor/cbc-shared/node/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Isolated-sandbox full pass (HIGH-RISK).
|
|
4
|
+
*
|
|
5
|
+
* Default `-y` stays `bypassPermissions`: HIGH/CRITICAL commands still prompt.
|
|
6
|
+
* A truthy process env (`1` / `true` / `yes` / `on`) makes `-y` / bypass skip
|
|
7
|
+
* those prompts without changing the visible permission mode.
|
|
8
|
+
*
|
|
9
|
+
* Intentionally an env var, not a CLI flag: full pass can run arbitrary
|
|
10
|
+
* commands (data loss, host damage, credential leak via prompt injection).
|
|
11
|
+
* The launch process must opt in explicitly (industry sandbox design).
|
|
12
|
+
*
|
|
13
|
+
* Process-level only: do not honor `settings.json` `env` (especially project
|
|
14
|
+
* scope) so a repo cannot silently upgrade `-y`.
|
|
15
|
+
* `permissions.disableBypassPermissionsMode` still blocks the bypass path.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CODEBUDDY_IS_SANDBOX_ENV = "CODEBUDDY_IS_SANDBOX";
|
|
18
|
+
export declare function isCodeBuddySandboxEnabled(env?: NodeJS.Dict<string>): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Skip HIGH/CRITICAL safety prompts: explicit `fullAccess`, or bypass while
|
|
21
|
+
* `CODEBUDDY_IS_SANDBOX` is set on the process.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isUnrestrictedPermissionMode(mode: PermissionMode | string | undefined, env?: NodeJS.Dict<string>): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Session-aware full pass. `permissions.disableBypassPermissionsMode` still
|
|
26
|
+
* blocks the CLI bypass path; ACP `fullAccess` is an explicit IDE mode.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isUnrestrictedSandboxSession(session: {
|
|
29
|
+
permissionModeSubject?: {
|
|
30
|
+
value?: PermissionMode | string;
|
|
31
|
+
};
|
|
32
|
+
toolPermissionContext?: {
|
|
33
|
+
isBypassPermissionsModeAvailable?: boolean;
|
|
34
|
+
};
|
|
35
|
+
}): boolean;
|