@tencent-ai/agent-harness 0.2.0-beta.7 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/cli/CHANGELOG.md +74 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +263 -217
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +3 -1
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +7 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +6 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +46 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +27 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +7 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +46 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +35 -22
- package/cli/dist-server/types/workspace/product/lib/common/types/index.d.ts +0 -1
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +0 -7
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +41 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
- package/cli/dist-server/types/workspace/product/lib/common/types/workspace-report.d.ts +0 -119
|
@@ -0,0 +1,714 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent View 模块协议定义
|
|
3
|
+
*
|
|
4
|
+
* 遵循项目 protocol pattern:所有 DI Symbol、类型与常量集中在此文件,
|
|
5
|
+
* 实现类在独立文件中 import 这些定义。
|
|
6
|
+
*
|
|
7
|
+
* 设计依据来自对本地 Claude Code v2.1.216 原生二进制的拆包分析
|
|
8
|
+
* (见 openspec/changes/add-agent-view/design.md,常量后附 bundle 行号)。
|
|
9
|
+
*/
|
|
10
|
+
export declare const JobStore: unique symbol;
|
|
11
|
+
export declare const JobStateReporter: unique symbol;
|
|
12
|
+
export declare const JobTerminalBroker: unique symbol;
|
|
13
|
+
export declare const JobInboxConsumer: unique symbol;
|
|
14
|
+
/** worker 启动时消费 adopt.json 的生命周期组件 */
|
|
15
|
+
export declare const JobAdoptConsumer: unique symbol;
|
|
16
|
+
export declare const JobOrphanWatchdog: unique symbol;
|
|
17
|
+
/** 后台会话进程通过此变量得知自己对应哪个 job 目录 */
|
|
18
|
+
export declare const ENV_JOB_ID = "CODEBUDDY_JOB_ID";
|
|
19
|
+
/** inner worker 所属的 outer broker 代次(broker PID)。 */
|
|
20
|
+
export declare const ENV_JOB_GENERATION = "CODEBUDDY_JOB_GENERATION";
|
|
21
|
+
/** Internal one-shot authority for a reserved worker launch. */
|
|
22
|
+
export declare const ENV_JOB_LAUNCH_TOKEN = "CODEBUDDY_JOB_LAUNCH_TOKEN";
|
|
23
|
+
/**
|
|
24
|
+
* job 目录的绝对路径,供会话里的 shell 命令使用(对齐 Claude 的
|
|
25
|
+
* CLAUDE_JOB_DIR):并行会话各自往 `$CODEBUDDY_JOB_DIR/tmp` 写临时文件,
|
|
26
|
+
* 互不碰撞。与身份三件套不同,它是给用户命令用的,**不在**
|
|
27
|
+
* job-identity 的 scrub 名单里,会一路继承到 shell 子进程。
|
|
28
|
+
*/
|
|
29
|
+
export declare const ENV_JOB_DIR = "CODEBUDDY_JOB_DIR";
|
|
30
|
+
/** 设置该变量(任意非空值)即整体关闭 agent view */
|
|
31
|
+
export declare const ENV_DISABLE_AGENT_VIEW = "CODEBUDDY_CODE_DISABLE_AGENT_VIEW";
|
|
32
|
+
/** 打开 agent view 时预选中的 job short id(← 交接后传入) */
|
|
33
|
+
export declare const ENV_AGENTS_SELECT = "CODEBUDDY_AGENTS_SELECT";
|
|
34
|
+
/**
|
|
35
|
+
* attach 的来源标记:从 agent view attach 进来的会话,detach(←)后应回 agent view;
|
|
36
|
+
* 从 shell 直接 attach 的则回 shell(对照 Claude `pendingAgentViewAttach`)。
|
|
37
|
+
*/
|
|
38
|
+
export declare const ENV_ATTACH_ORIGIN = "CODEBUDDY_ATTACH_ORIGIN";
|
|
39
|
+
/** detached 外层进程以 PTY broker 模式托管完整交互会话 */
|
|
40
|
+
export declare const ENV_JOB_BROKER = "CODEBUDDY_JOB_BROKER";
|
|
41
|
+
/** broker 内层交互进程连接的本地控制 socket */
|
|
42
|
+
export declare const ENV_JOB_CONTROL_SOCKET = "CODEBUDDY_JOB_CONTROL_SOCKET";
|
|
43
|
+
/**
|
|
44
|
+
* agent view 里按 Esc 时要回到的那个后台会话。
|
|
45
|
+
*
|
|
46
|
+
* 刻意与 {@link ENV_AGENTS_SELECT} 分开:后者只表示「列表打开时高亮哪一行」,
|
|
47
|
+
* 是纯展示语义;一个 job 可以被预选中却不是 Esc 的返回目标(例如 detach 后
|
|
48
|
+
* 重新打开列表——那时应该停在刚才那一行,但 Esc 该回 shell 而不是又 attach 回去)。
|
|
49
|
+
* 两个语义共用一个变量时,「detach → Esc」会立刻把用户弹回刚离开的会话。
|
|
50
|
+
*/
|
|
51
|
+
export declare const ENV_AGENTS_RETURN_JOB = "CODEBUDDY_AGENTS_RETURN_JOB";
|
|
52
|
+
/**
|
|
53
|
+
* 列表刚打开时要显示的一条提示(通常是上一次 attach 失败的原因)。
|
|
54
|
+
*
|
|
55
|
+
* attach 发生在 Ink 卸载之后,那时 `console.log` 只会把字打到 scrollback:
|
|
56
|
+
* 它落在重绘出来的列表上方,与失败的那一行毫无关联,用户读到的是
|
|
57
|
+
* 「按了回车没反应,上面多了一行莫名其妙的字」。所以把原因交给
|
|
58
|
+
* 新进程,由它画进列表内部。对齐 bundle 908398 的 `initialError`。
|
|
59
|
+
*/
|
|
60
|
+
export declare const ENV_AGENTS_NOTICE = "CODEBUDDY_AGENTS_NOTICE";
|
|
61
|
+
/** `ENV_ATTACH_ORIGIN` 的取值 */
|
|
62
|
+
export declare const ATTACH_ORIGIN_AGENT_VIEW = "agent-view";
|
|
63
|
+
/** jobs 根目录名(位于 PathUtils.getHomeDir() 下) */
|
|
64
|
+
export declare const JOBS_DIR_NAME = "jobs";
|
|
65
|
+
/** 每个 job 的状态文件名 */
|
|
66
|
+
export declare const JOB_STATE_FILE = "state.json";
|
|
67
|
+
/**
|
|
68
|
+
* Job mutation lock suffix, stored at jobs/.locks/<id>.state.lock.
|
|
69
|
+
* Exclusive creation serializes create/patch/remove across processes even when
|
|
70
|
+
* the job directory is deleted. A recoverable directory guard serializes acquisition
|
|
71
|
+
* and dead-owner recovery; the file still excludes legacy writers. Live or unknown
|
|
72
|
+
* owners are never evicted based on age, and contention times out without writing.
|
|
73
|
+
*/
|
|
74
|
+
export declare const JOB_STATE_LOCK_FILE = "state.lock";
|
|
75
|
+
/**
|
|
76
|
+
* 每个 job 的临时目录名:会话里的 shell 命令可往
|
|
77
|
+
* `$CODEBUDDY_JOB_DIR/tmp` 写草稿,随 job 删除一起清理。
|
|
78
|
+
*/
|
|
79
|
+
export declare const JOB_TMP_DIR = "tmp";
|
|
80
|
+
/**
|
|
81
|
+
* sidecar:broker 专属的连接端点(pid + attachSocket)。
|
|
82
|
+
*
|
|
83
|
+
* 单独一个文件而不是写进 state.json:state.json 同时被 broker 进程和
|
|
84
|
+
* inner worker 的 reporter 高频写,两个进程各自读-合并-写会互相覆盖
|
|
85
|
+
* (进程内的 writeMutex 拦不住跨进程的 lost update),attachSocket
|
|
86
|
+
* 被抹掉后 attach 会报 ENOTREADY。各进程只写自己拥有的文件就没有合并竞态。
|
|
87
|
+
*/
|
|
88
|
+
export declare const JOB_BROKER_FILE = "broker.json";
|
|
89
|
+
/** 转后台时落盘的 adopt 清单(可搬走的在跑工作 + abort 预填) */
|
|
90
|
+
export declare const JOB_ADOPT_FILE = "adopt.json";
|
|
91
|
+
/** sidecar:手动排序值(目录分组模式下生效) */
|
|
92
|
+
export declare const JOB_ORDER_FILE = "order";
|
|
93
|
+
/** sidecar:手动排序值(状态分组模式下生效) */
|
|
94
|
+
export declare const JOB_STATE_ORDER_FILE = "stateOrder";
|
|
95
|
+
/** sidecar:用户自定义分组名 */
|
|
96
|
+
export declare const JOB_GROUP_FILE = "group";
|
|
97
|
+
/** jobs 根目录下的全局置顶集合 */
|
|
98
|
+
export declare const JOB_PINS_FILE = "pins.json";
|
|
99
|
+
/** 每个 job 的回复收件箱目录 */
|
|
100
|
+
export declare const JOB_INBOX_DIR = "inbox";
|
|
101
|
+
/** 投递失败后暂存的回复,会话下次启动时作为首个 prompt 消费 */
|
|
102
|
+
export declare const JOB_PENDING_REPLY_FILE = "pending-reply.json";
|
|
103
|
+
/** job 目录名长度:会话 UUID 的前 8 位 */
|
|
104
|
+
export declare const JOB_SHORT_ID_LENGTH = 8;
|
|
105
|
+
/**
|
|
106
|
+
* 任务生命周期状态。
|
|
107
|
+
*
|
|
108
|
+
* 与 tempo 正交:state 描述"任务走到哪一步",tempo 描述"现在是否真的在动"。
|
|
109
|
+
* 只有两者结合才能表达"已完成但又被追问一句所以重新活跃"这种状态。
|
|
110
|
+
*/
|
|
111
|
+
export type AgentJobLifecycle = 'working' | 'blocked' | 'done' | 'failed' | 'stopped';
|
|
112
|
+
/** 活跃度。terminal state + tempo !== 'active' 才算真正终结 */
|
|
113
|
+
export type AgentJobTempo = 'active' | 'idle' | 'blocked';
|
|
114
|
+
/** 终结产出。null 表示尚未终结 */
|
|
115
|
+
export type AgentJobOutcome = 'success' | 'failure' | 'stopped' | null;
|
|
116
|
+
/** UI 波段——决定图标形态与颜色 */
|
|
117
|
+
export type AgentJobBand = 'active' | 'blocked' | 'completed';
|
|
118
|
+
/** 状态分组键——决定落在哪个分组标题下 */
|
|
119
|
+
export type AgentJobStateGroup = 'review' | 'blocked' | 'working' | 'done';
|
|
120
|
+
/** 列表分组维度,Ctrl+S 在两者间切换 */
|
|
121
|
+
export type AgentViewGroupMode = 'state' | 'directory';
|
|
122
|
+
/** 处于终结生命周期的 state 集合(不含 tempo 判定) */
|
|
123
|
+
export declare const TERMINAL_LIFECYCLES: readonly AgentJobLifecycle[];
|
|
124
|
+
/** 阻塞时给出的一个预设选项 */
|
|
125
|
+
export interface AgentJobQuestionOption {
|
|
126
|
+
label: string;
|
|
127
|
+
description?: string;
|
|
128
|
+
}
|
|
129
|
+
/** 阻塞时正在问的一个问题 */
|
|
130
|
+
export interface AgentJobQuestion {
|
|
131
|
+
question: string;
|
|
132
|
+
options?: AgentJobQuestionOption[];
|
|
133
|
+
}
|
|
134
|
+
/** 关联的外部产出(当前只有 PR,预留 kind 便于扩展) */
|
|
135
|
+
export interface AgentJobLink {
|
|
136
|
+
kind: 'pr';
|
|
137
|
+
/** PR 编号 */
|
|
138
|
+
number: number;
|
|
139
|
+
/** 可点击的 URL */
|
|
140
|
+
href?: string;
|
|
141
|
+
/** PR 状态,决定标签颜色 */
|
|
142
|
+
status?: 'open' | 'checks-failed' | 'checks-passed' | 'merged' | 'draft' | 'closed';
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* 持久化到 `~/.codebuddy/jobs/<shortId>/state.json` 的 job 状态。
|
|
146
|
+
*
|
|
147
|
+
* 注意:pinned / sortOrder / stateSortOrder / group 这四个纯展示字段
|
|
148
|
+
* **不属于本结构**,它们由 agent view 单方面拥有并存在 sidecar 文件中,
|
|
149
|
+
* 否则会话进程每次汇报状态都会把用户的摆放覆盖回去。
|
|
150
|
+
*/
|
|
151
|
+
export interface AgentJobState {
|
|
152
|
+
/** 任务生命周期 */
|
|
153
|
+
state: AgentJobLifecycle;
|
|
154
|
+
/** 一句话摘要,渲染在行内 */
|
|
155
|
+
detail: string;
|
|
156
|
+
/** 活跃度 */
|
|
157
|
+
tempo: AgentJobTempo;
|
|
158
|
+
/** 阻塞时的问题原文 */
|
|
159
|
+
needs?: string;
|
|
160
|
+
/** 阻塞时的结构化问题与选项 */
|
|
161
|
+
block?: {
|
|
162
|
+
questions: AgentJobQuestion[];
|
|
163
|
+
};
|
|
164
|
+
/** 阻塞时可供 Tab 一键填入的建议回复 */
|
|
165
|
+
suggestedReply?: string;
|
|
166
|
+
/** 终结时的结果文本(键为分段名,便于未来扩展多段结果) */
|
|
167
|
+
output?: Record<string, string> | null;
|
|
168
|
+
/** 关联的 PR 等外部产出 */
|
|
169
|
+
children?: AgentJobLink[] | null;
|
|
170
|
+
/** 用户原始 prompt,用于 URL 过滤与兜底命名 */
|
|
171
|
+
intent: string;
|
|
172
|
+
/** 覆盖行内展示用的意图文本 */
|
|
173
|
+
displayIntent?: string;
|
|
174
|
+
/** 会话启动时要消费的首个 prompt */
|
|
175
|
+
initialPrompt?: string;
|
|
176
|
+
/** 已排队但尚未发送的 prompt */
|
|
177
|
+
queuedPrompt?: string;
|
|
178
|
+
/** 会话显示名 */
|
|
179
|
+
name?: string;
|
|
180
|
+
/** 名字来源:用户显式命名还是自动生成 */
|
|
181
|
+
nameSource?: 'user' | 'auto';
|
|
182
|
+
/** 会话主题色(对齐 /color 的语义) */
|
|
183
|
+
color?: string;
|
|
184
|
+
/** 完整会话 UUID */
|
|
185
|
+
sessionId: string;
|
|
186
|
+
/** UI 当前选中的会话;跨浏览器/刷新恢复,默认回落到 sessionId */
|
|
187
|
+
selectedSessionId?: string;
|
|
188
|
+
/** 会话 UUID 前 8 位,等于 job 目录名 */
|
|
189
|
+
shortId: string;
|
|
190
|
+
/** 写入该状态的 CLI 版本 */
|
|
191
|
+
cliVersion?: string;
|
|
192
|
+
/**
|
|
193
|
+
* 最近一次 attach recap 的幂等键(M12):同一条进展只在 attach
|
|
194
|
+
* 时播报一次,反复进出不刷屏。
|
|
195
|
+
*/
|
|
196
|
+
lastRecapKey?: string;
|
|
197
|
+
/** 会话启动时的工作目录 */
|
|
198
|
+
cwd: string;
|
|
199
|
+
/** ISO 时间戳 */
|
|
200
|
+
createdAt: string;
|
|
201
|
+
/** ISO 时间戳 */
|
|
202
|
+
updatedAt: string;
|
|
203
|
+
/** 首次进入终结态的 ISO 时间戳,年龄列据此冻结 */
|
|
204
|
+
firstTerminalAt?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* 最近一次进入空闲的 ISO 时间戳。只在 busy→idle / stop 时写入,
|
|
207
|
+
* 后续 idle 补丁不得刷新。reaper 用它回收仍活着的空闲 worker。
|
|
208
|
+
*/
|
|
209
|
+
idleSince?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* 最近一次 attach 的起始时间(ISO)。attach 期间置位、detach/会话结束时
|
|
212
|
+
* 清空。reaper 对终结 job 回收 worker 时用它做「正在被使用」守卫:
|
|
213
|
+
* attachedAt 有效且 broker 存活 → 跳过,避免把正在服务的 broker 杀掉。
|
|
214
|
+
*/
|
|
215
|
+
attachedAt?: string | null;
|
|
216
|
+
/** 下次计划执行的时间戳(ms),用于渲染 `in 4m` */
|
|
217
|
+
nextRunAt?: number;
|
|
218
|
+
/** 该 job 已执行的轮次(排期任务用) */
|
|
219
|
+
runCount?: number;
|
|
220
|
+
/** 会话被移入的 worktree 路径 */
|
|
221
|
+
worktreePath?: string;
|
|
222
|
+
/** worktree 对应分支 */
|
|
223
|
+
worktreeBranch?: string;
|
|
224
|
+
/** 会话最初启动的目录(移入 worktree 前) */
|
|
225
|
+
originCwd?: string;
|
|
226
|
+
/** 该仓库的后台隔离模式 */
|
|
227
|
+
bgIsolation?: 'none' | 'worktree';
|
|
228
|
+
/** broker 进程 PID(可能已退出) */
|
|
229
|
+
pid?: number;
|
|
230
|
+
/**
|
|
231
|
+
* broker 进程启动时刻(ISO)。与 pid 一起区分 PID 复用:
|
|
232
|
+
* stop / reaper 在发信号或判定存活前比对;缺省时回退到 kill(0)。
|
|
233
|
+
*/
|
|
234
|
+
procStart?: string | null;
|
|
235
|
+
/** Windows FILETIME 启动时刻(与 procStart 同源,跨精度比对) */
|
|
236
|
+
procStartFt?: string | null;
|
|
237
|
+
/** Linux /proc/<pid>/stat 启动 tick;直接读取内核状态,不派生 ps 子进程。 */
|
|
238
|
+
procStartTicks?: string | null;
|
|
239
|
+
/** 支持代次强匹配的新 worker;值为启动该 inner 的 broker PID。 */
|
|
240
|
+
workerGeneration?: number;
|
|
241
|
+
/** Internal launch reservation; never exposed in public job DTOs. */
|
|
242
|
+
workerLaunchToken?: string;
|
|
243
|
+
/** Inner-owned shutdown barrier; pending inbox delivery must wake a replacement. */
|
|
244
|
+
workerReclaimGeneration?: number;
|
|
245
|
+
/** Reservation owner, used only for conservative dead-owner recovery. */
|
|
246
|
+
workerLaunchOwnerPid?: number;
|
|
247
|
+
/**
|
|
248
|
+
* 重拉中标记:respawn 期间 stopWorker 会先写 `state:'stopped'` 作为**中间态**,
|
|
249
|
+
* 但投递/唤醒票那一侧把 `stopped` 读成「用户终止过」→ 信不落盘、唤醒票被丢,
|
|
250
|
+
* 恰好落在这个窗口里的消息就永久消失了。有这个标记时两侧都按"非用户终止"处理。
|
|
251
|
+
*/
|
|
252
|
+
restarting?: boolean;
|
|
253
|
+
/** broker 的本地 attach socket */
|
|
254
|
+
attachSocket?: string;
|
|
255
|
+
/** 会话输出日志路径 */
|
|
256
|
+
logPath?: string;
|
|
257
|
+
/** respawn 时需要原样回放的 CLI 参数 */
|
|
258
|
+
respawnArgs?: string[];
|
|
259
|
+
/**
|
|
260
|
+
* 这件活在**哪个主会话**里被起(或被叫起来)的。Agent Home 的同事回投主 Agent 时
|
|
261
|
+
* 按它寻址(信落在那个会话的上下文里),见 agent-home-main-mail-gate.ts。
|
|
262
|
+
* 只在 Agent Home 侧写;不带 = 没地址,信按"活跃会话"启发式投。
|
|
263
|
+
*/
|
|
264
|
+
originSessionId?: string;
|
|
265
|
+
/** 这是一个 shell job(`!` 前缀派发)而非模型会话 */
|
|
266
|
+
exec?: string;
|
|
267
|
+
/** 删除被拒绝时的原因,渲染为行内 `not deleted` 提示 */
|
|
268
|
+
notDeletedReason?: string;
|
|
269
|
+
/**
|
|
270
|
+
* 原地 worker 化进行中:前台进程没有退出,正把当前轮自然跑完
|
|
271
|
+
* (见 become-worker.ts)。这段窗口里进程存活但**没有 broker PTY**,
|
|
272
|
+
* attach 物理上接不通 —— 读侧看到「inPlaceWorker + 进程存活 + 无
|
|
273
|
+
* attachSocket」应立即给出 ATTACH_FINISHING_MESSAGE,而不是让 broker
|
|
274
|
+
* 的 10s 就绪轮询把一次回车拖成假死。轮次结束、idle-fork 出正式
|
|
275
|
+
* worker 之前由原进程清为 false。
|
|
276
|
+
*/
|
|
277
|
+
inPlaceWorker?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* 前台持有中:这段对话正在某个终端的前台进程里进行(← 落盘建行,
|
|
280
|
+
* 对齐 Claude「← 即转后台、跨终端可见」的可见性语义,见
|
|
281
|
+
* foreground-session-record.ts)。它没有 broker PTY,他端 attach 应立即
|
|
282
|
+
* 给出 ATTACH_FOREGROUND_MESSAGE;Esc 回对话(撤销切换)时整行删除,
|
|
283
|
+
* 交接成真后台 worker 时由新记录覆盖。
|
|
284
|
+
*/
|
|
285
|
+
foregroundHeld?: boolean;
|
|
286
|
+
/** fork 出这个副本时,父会话是否仍在前台存活 */
|
|
287
|
+
forkSourceAlive?: boolean;
|
|
288
|
+
/** fork 发生时的边界时间戳(ms),用于区分「副本继承到哪一句」 */
|
|
289
|
+
forkBoundaryAt?: number;
|
|
290
|
+
/** 副本自己的会话 id(与 sessionId 相同,显式记录便于关联查询) */
|
|
291
|
+
forkSessionId?: string;
|
|
292
|
+
/** 被 fork 的父会话 id */
|
|
293
|
+
forkParentSessionId?: string;
|
|
294
|
+
}
|
|
295
|
+
/** 创建 job 时的必填输入,其余字段由 store 补默认值 */
|
|
296
|
+
export interface AgentJobInit {
|
|
297
|
+
sessionId: string;
|
|
298
|
+
cwd: string;
|
|
299
|
+
intent: string;
|
|
300
|
+
name?: string;
|
|
301
|
+
nameSource?: 'user' | 'auto';
|
|
302
|
+
detail?: string;
|
|
303
|
+
pid?: number;
|
|
304
|
+
logPath?: string;
|
|
305
|
+
respawnArgs?: string[];
|
|
306
|
+
exec?: string;
|
|
307
|
+
bgIsolation?: 'none' | 'worktree';
|
|
308
|
+
initialPrompt?: string;
|
|
309
|
+
/** 原地 worker 化建行:见 AgentJobState.inPlaceWorker */
|
|
310
|
+
inPlaceWorker?: boolean;
|
|
311
|
+
/** 前台持有建行:见 AgentJobState.foregroundHeld */
|
|
312
|
+
foregroundHeld?: boolean;
|
|
313
|
+
}
|
|
314
|
+
/** agent view 读到的展示字段(来自 sidecar,不在 state.json 里) */
|
|
315
|
+
export interface AgentJobDisplayMeta {
|
|
316
|
+
pinned?: boolean;
|
|
317
|
+
sortOrder?: number;
|
|
318
|
+
stateSortOrder?: number;
|
|
319
|
+
group?: string;
|
|
320
|
+
}
|
|
321
|
+
/** 进程存活信息,来自 PID 注册表 + kill -0 */
|
|
322
|
+
export interface AgentJobLiveness {
|
|
323
|
+
/** 进程是否存活 */
|
|
324
|
+
alive: boolean;
|
|
325
|
+
/** 注册表汇报的运行状态 */
|
|
326
|
+
status?: 'busy' | 'idle' | 'waiting' | 'stopped';
|
|
327
|
+
/** status 为 waiting 时说明在等什么 */
|
|
328
|
+
waitingFor?: string;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* 视图对象:job 状态 + 展示字段 + 进程存活合并后的结果。
|
|
332
|
+
* 渲染层与视图模型只消费这个类型,不直接读文件。
|
|
333
|
+
*/
|
|
334
|
+
export interface AgentJobView {
|
|
335
|
+
id: string;
|
|
336
|
+
/** 进程内前台会话的临时投影,不可通过磁盘 job 操作。 */
|
|
337
|
+
origin?: 'in-process';
|
|
338
|
+
state: AgentJobState;
|
|
339
|
+
display: AgentJobDisplayMeta;
|
|
340
|
+
live: AgentJobLiveness;
|
|
341
|
+
}
|
|
342
|
+
/** 待投递的回复 */
|
|
343
|
+
export interface AgentJobReply {
|
|
344
|
+
text: string;
|
|
345
|
+
/** true 表示以 Bash 命令执行而非普通 prompt */
|
|
346
|
+
bash?: boolean;
|
|
347
|
+
/** 写入时间戳(ms) */
|
|
348
|
+
at: number;
|
|
349
|
+
}
|
|
350
|
+
export interface AgentJobInboxStatus {
|
|
351
|
+
queued: number;
|
|
352
|
+
processing: number;
|
|
353
|
+
oldestAt?: number;
|
|
354
|
+
}
|
|
355
|
+
/** broker 登记的连接端点,落在 JOB_BROKER_FILE sidecar 里 */
|
|
356
|
+
export interface JobBrokerEndpoint {
|
|
357
|
+
/** broker 进程 pid,读侧用它判断端点是否仍然有效 */
|
|
358
|
+
pid: number;
|
|
359
|
+
/** broker 监听的 attach socket 路径 */
|
|
360
|
+
attachSocket: string;
|
|
361
|
+
/** broker 进程启动身份(可选;与 AgentJobState.procStart* 同源) */
|
|
362
|
+
procStart?: string;
|
|
363
|
+
procStartFt?: string;
|
|
364
|
+
procStartTicks?: string;
|
|
365
|
+
}
|
|
366
|
+
/** job 状态文件与 sidecar 的读写 */
|
|
367
|
+
export interface IJobStore {
|
|
368
|
+
/** jobs 根目录绝对路径 */
|
|
369
|
+
getJobsDir(): string;
|
|
370
|
+
/** 单个 job 目录绝对路径 */
|
|
371
|
+
getJobDir(id: string): string;
|
|
372
|
+
/** 创建 job 目录与初始状态文件,返回 shortId */
|
|
373
|
+
create(init: AgentJobInit): Promise<string>;
|
|
374
|
+
/** 读取单个 job 状态;损坏或缺字段返回 undefined */
|
|
375
|
+
read(id: string): Promise<AgentJobState | undefined>;
|
|
376
|
+
/** 浅合并写入;自动更新 updatedAt,自动剔除 UI-only 字段 */
|
|
377
|
+
patch(id: string, partial: Partial<AgentJobState>): Promise<void>;
|
|
378
|
+
/**
|
|
379
|
+
* 浅合并写入,但**不触发**写侧死会话收割(patch 的 maybeReapDeadJobs)。
|
|
380
|
+
*
|
|
381
|
+
* 用于 attach 生命周期标记(attachedAt / lastRecapKey):这些 patch 发生
|
|
382
|
+
* 在 attach 进行中,若触发全量 reap,会把「done + alive + 超 TTL」的、
|
|
383
|
+
* 正在被本进程接管的 broker 自己杀掉(A1 评审 blocker)。
|
|
384
|
+
*/
|
|
385
|
+
patchQuiet(id: string, partial: Partial<AgentJobState>): Promise<void>;
|
|
386
|
+
/** Conditional patch under the job lock; false if missing or superseded. Does not trigger reaping; I/O errors reject. */
|
|
387
|
+
patchIf(id: string, partial: Partial<AgentJobState>, predicate: (state: AgentJobState) => boolean): Promise<boolean>;
|
|
388
|
+
/** 列出全部可读 job(含展示字段),跳过损坏条目 */
|
|
389
|
+
list(): Promise<Array<{
|
|
390
|
+
id: string;
|
|
391
|
+
state: AgentJobState;
|
|
392
|
+
display: AgentJobDisplayMeta;
|
|
393
|
+
}>>;
|
|
394
|
+
/** 删除 job 目录 */
|
|
395
|
+
remove(id: string): Promise<void>;
|
|
396
|
+
/** Conditional removal under the job lock; false if missing or superseded. I/O errors reject. */
|
|
397
|
+
removeIf(id: string, predicate: (state: AgentJobState) => boolean): Promise<boolean>;
|
|
398
|
+
/** 读取全局置顶集合 */
|
|
399
|
+
readPins(): Promise<Set<string>>;
|
|
400
|
+
/** 置顶或取消置顶 */
|
|
401
|
+
setPinned(id: string, pinned: boolean): Promise<void>;
|
|
402
|
+
/** 写入手动排序值;mode 决定落到哪个 sidecar */
|
|
403
|
+
setOrder(id: string, mode: AgentViewGroupMode, order: number | undefined): Promise<void>;
|
|
404
|
+
/** 写入自定义分组名;传 undefined 清除 */
|
|
405
|
+
setGroup(id: string, group: string | undefined): Promise<void>;
|
|
406
|
+
/** 投递一条回复到收件箱 */
|
|
407
|
+
enqueueReply(id: string, reply: Omit<AgentJobReply, 'at'>): Promise<void>;
|
|
408
|
+
/** 只读收件箱阶段快照,用于诊断长期等待;不认领、不修改文件。 */
|
|
409
|
+
inspectInbox?(id: string): Promise<AgentJobInboxStatus>;
|
|
410
|
+
commitReclaim?(id: string, expected: AgentJobState): Promise<boolean>;
|
|
411
|
+
/**
|
|
412
|
+
* 认领收件箱(两阶段投递的第一阶段):把待处理项移进 `inbox/.processing/` 并返回。
|
|
413
|
+
* **不再删除**——调用方处理成功后必须 ackInbox,失败/中断则 releaseInbox(或直接
|
|
414
|
+
* 等下一轮 drain 再取,认领目录里的残留会被重新取走)。这样"已读未处理"是盘上的显式状态,
|
|
415
|
+
* 崩溃不再丢信(at-least-once;重复由回执判重吸收)。
|
|
416
|
+
*/
|
|
417
|
+
drainInbox(id: string): Promise<AgentJobReply[]>;
|
|
418
|
+
/** 确认这一批已处理:清掉 `inbox/.processing/`。实现可选,缺省表示旧语义。 */
|
|
419
|
+
ackInbox?(id: string): Promise<void>;
|
|
420
|
+
/** 这一批没处理成功:放回 `inbox/`,下一轮再取(保序、不丢)。 */
|
|
421
|
+
releaseInbox?(id: string): Promise<void>;
|
|
422
|
+
/** 暂存投递失败的回复(bash 回复不允许暂存) */
|
|
423
|
+
savePendingReply(id: string, reply: Omit<AgentJobReply, 'at'>): Promise<boolean>;
|
|
424
|
+
/** 只读暂存回复(不删除)。respawn 需要先读后 fork、成功后再消费,避免 fork 失败丢回复 */
|
|
425
|
+
readPendingReply(id: string): Promise<AgentJobReply | undefined>;
|
|
426
|
+
/** 取出并清除暂存回复;expected 存在时仅消费同一条回复,保留并发新写入。 */
|
|
427
|
+
takePendingReply(id: string, expected?: AgentJobReply): Promise<AgentJobReply | undefined>;
|
|
428
|
+
/**
|
|
429
|
+
* 登记 / 清除 broker 连接端点(写 JOB_BROKER_FILE sidecar)。
|
|
430
|
+
*
|
|
431
|
+
* 只该由 broker 进程调用:它是这个文件唯一的写方,
|
|
432
|
+
* 与 reporter 高频写的 state.json 彻底隔离。
|
|
433
|
+
* When expected is provided, mutate only if the current sidecar matches its PID and socket.
|
|
434
|
+
*/
|
|
435
|
+
setBrokerEndpoint(id: string, endpoint: JobBrokerEndpoint | undefined, expected?: JobBrokerEndpoint): Promise<void>;
|
|
436
|
+
}
|
|
437
|
+
export interface JobAttachResult {
|
|
438
|
+
outcome: 'detached' | 'exited' | 'error';
|
|
439
|
+
code?: number;
|
|
440
|
+
message?: string;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* `prepareAttach` 的产物:已经把「慢的部分」(解析/重启 worker、等 socket
|
|
444
|
+
* 就绪、重读盘上状态)做完,握着一个可以立刻 pipe 的 socket。
|
|
445
|
+
*
|
|
446
|
+
* 拆成两步是为了消除切换黑屏:这些慢操作(可能 poll 到数秒)此前跑在
|
|
447
|
+
* 「Ink 已卸载、终端全黑」的真空期里,黑屏时长 = 连接耗时。把它提到卸载
|
|
448
|
+
* **之前**(Ink 还在正常渲染时)完成,卸载后只剩真正的终端接管(快)。
|
|
449
|
+
*/
|
|
450
|
+
export type PreparedAttach = {
|
|
451
|
+
ok: true;
|
|
452
|
+
socketPath: string;
|
|
453
|
+
job: AgentJobView;
|
|
454
|
+
} | {
|
|
455
|
+
ok: false;
|
|
456
|
+
message: string;
|
|
457
|
+
};
|
|
458
|
+
/** broker 控制协议的请求。每条请求是一行 JSON。 */
|
|
459
|
+
export declare const JOB_CONTROL_PROTOCOL_VERSION = 1;
|
|
460
|
+
export type JobControlRequest = {
|
|
461
|
+
protocolVersion?: number;
|
|
462
|
+
} & ({
|
|
463
|
+
op: 'attach';
|
|
464
|
+
cols?: number;
|
|
465
|
+
rows?: number;
|
|
466
|
+
} | {
|
|
467
|
+
op: 'detach';
|
|
468
|
+
} | {
|
|
469
|
+
op: 'resize';
|
|
470
|
+
cols?: number;
|
|
471
|
+
rows?: number;
|
|
472
|
+
} | {
|
|
473
|
+
op: 'ping';
|
|
474
|
+
} | {
|
|
475
|
+
op: 'request-reclaim';
|
|
476
|
+
token?: string;
|
|
477
|
+
reason?: 'memory-pressure' | 'stale-state-probe';
|
|
478
|
+
pid: number;
|
|
479
|
+
workerGeneration: number;
|
|
480
|
+
sessionId: string;
|
|
481
|
+
createdAt: string;
|
|
482
|
+
idleSince?: string | null;
|
|
483
|
+
firstTerminalAt?: string | null;
|
|
484
|
+
}
|
|
485
|
+
/** @deprecated Broker rejects with ENOTREADY; use `request-reclaim`. Kept so old clients get a clear refusal. */
|
|
486
|
+
| {
|
|
487
|
+
op: 'reclaim';
|
|
488
|
+
reason?: 'memory-pressure';
|
|
489
|
+
pid: number;
|
|
490
|
+
workerGeneration: number;
|
|
491
|
+
sessionId: string;
|
|
492
|
+
createdAt: string;
|
|
493
|
+
idleSince?: string | null;
|
|
494
|
+
firstTerminalAt?: string | null;
|
|
495
|
+
});
|
|
496
|
+
/** broker 控制协议的应答。同样是一行 JSON。 */
|
|
497
|
+
export interface JobControlResponse {
|
|
498
|
+
protocolVersion?: number;
|
|
499
|
+
ok: boolean;
|
|
500
|
+
error?: string;
|
|
501
|
+
code?: JobControlErrorCode;
|
|
502
|
+
}
|
|
503
|
+
export type JobControlErrorCode = 'EBADREQ' | 'ETOOLARGE' | 'ENOJOB' | 'ENOTREADY' | 'EEXEC';
|
|
504
|
+
export interface IJobTerminalBroker {
|
|
505
|
+
/** 以 broker 身份托管一个完整交互会话,直到内层进程退出 */
|
|
506
|
+
run(): Promise<void>;
|
|
507
|
+
/** 把当前终端接到某个后台会话的 PTY 上,直到 detach 或对端退出 */
|
|
508
|
+
attach(job: AgentJobView): Promise<JobAttachResult>;
|
|
509
|
+
/**
|
|
510
|
+
* 只做 attach 的「慢准备」——解析/重启 worker、等 socket 就绪、重读状态——
|
|
511
|
+
* 不接管终端。可在 Ink 还挂着时调用,把连接耗时挪出切换黑屏窗口。
|
|
512
|
+
*/
|
|
513
|
+
prepareAttach(job: AgentJobView): Promise<PreparedAttach>;
|
|
514
|
+
/** 用已 prepare 好的 socket 直接接管终端(跳过慢准备)。终端此刻必须已交还。 */
|
|
515
|
+
attachPrepared(prepared: Extract<PreparedAttach, {
|
|
516
|
+
ok: true;
|
|
517
|
+
}>): Promise<JobAttachResult>;
|
|
518
|
+
/** 内层会话请求把 attacher 踢开(← / Ctrl+Z / /exit),worker 继续存活 */
|
|
519
|
+
requestDetach(): Promise<boolean>;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* 「pid 还没写进 job 记录」的宽限期。
|
|
523
|
+
*
|
|
524
|
+
* 早切视图后,← 交接建出的行会先于 fork 完成出现在列表里;这段窗口内
|
|
525
|
+
* attach 不能走 respawn——那会和在途 fork 双开同一个 session。
|
|
526
|
+
*/
|
|
527
|
+
export declare const ATTACH_SPAWN_GRACE_MS = 30000;
|
|
528
|
+
/** attach 时 socket 还没就绪 */
|
|
529
|
+
export declare const ATTACH_NOT_READY_MESSAGE = "Session is starting \u2014 it will appear once ready. Press enter to try again.";
|
|
530
|
+
/**
|
|
531
|
+
* 会话进程已经不在了,正在按 `--resume` 重新拉起。
|
|
532
|
+
*
|
|
533
|
+
* Claude 的语义是**透明重启再接管**(bundle 762520 附近的
|
|
534
|
+
* `tengu_bg_attach_legacy_autorespawn`),而不是甩用户一句「它没了」:
|
|
535
|
+
* transcript 一直在盘上,会话本来就该能从断点续起。
|
|
536
|
+
*/
|
|
537
|
+
export declare const ATTACH_RESTARTING_MESSAGE = "Session had exited \u2014 restarting it and restoring the conversation\u2026";
|
|
538
|
+
/** 重启也失败了:说清楚对话还在,以及怎么捞回来 */
|
|
539
|
+
export declare const ATTACH_RESTART_FAILED_MESSAGE = "Couldn't restart this session \u2014 its conversation is still available via 'codebuddy --resume'";
|
|
540
|
+
/** attach 目标已经不在,且不适合自动重启 */
|
|
541
|
+
export declare const ATTACH_NO_JOB_MESSAGE = "Session is no longer running";
|
|
542
|
+
/** shell job 不是交互会话,没有可接管的 PTY */
|
|
543
|
+
export declare const ATTACH_EXEC_MESSAGE = "This is a shell command, not a session \u2014 press space to peek at its output";
|
|
544
|
+
/**
|
|
545
|
+
* 原地 worker 化期间的行内摘要(become-worker.ts)。
|
|
546
|
+
*
|
|
547
|
+
* 这段窗口里没有 broker PTY,attach 物理上接不通 —— 文案必须同时说清
|
|
548
|
+
* 「它还在干活」与「什么时候能进去」,否则用户对着一行 working 反复回车。
|
|
549
|
+
*/
|
|
550
|
+
export declare const FINISHING_TURN_DETAIL = "finishing the current turn \u2014 attach when done";
|
|
551
|
+
/** attach 一个还在原地收尾当前轮的会话时的拒绝文案(预期内,非故障) */
|
|
552
|
+
export declare const ATTACH_FINISHING_MESSAGE = "Session is finishing its current turn \u2014 it will be attachable when the turn ends";
|
|
553
|
+
/**
|
|
554
|
+
* 他端 attach 一个正在另一个终端前台进行的对话时的拒绝文案。
|
|
555
|
+
*
|
|
556
|
+
* 前台持有的会话没有 broker PTY,接不通属预期;文案要说清它在哪、
|
|
557
|
+
* 怎么才能接(那边把它转后台,或等它退出后 respawn)。
|
|
558
|
+
*/
|
|
559
|
+
export declare const ATTACH_FOREGROUND_MESSAGE = "Session is open in another terminal's foreground \u2014 background it there to attach here";
|
|
560
|
+
/** 接上了但屏幕还没重绘出来 */
|
|
561
|
+
export declare const ATTACH_WAITING_REDRAW_MESSAGE = "Waiting for session to redraw\u2026 Ctrl+Z to detach";
|
|
562
|
+
/** 同一个会话在别处被接管,本连接被替换 */
|
|
563
|
+
export declare const ATTACH_KICKED_MESSAGE = "Session opened in another window \u2014 this view was detached";
|
|
564
|
+
/** 平台没有 PTY,后台会话无法常驻 */
|
|
565
|
+
export declare const BROKER_NO_PTY_MESSAGE = "Background sessions need a PTY, which is unavailable on this platform";
|
|
566
|
+
/**
|
|
567
|
+
* `!command` 回复送不进一个正在跑的会话。
|
|
568
|
+
*
|
|
569
|
+
* `!` 是输入框层面的语法,会话层没有对应通道;当成普通文本发过去,
|
|
570
|
+
* 「执行命令」就悄悄变成了「说了句话」。宁可明说也不要静默错误。
|
|
571
|
+
*/
|
|
572
|
+
export declare const REPLY_BASH_NEEDS_ATTACH_MESSAGE = "Bash replies only run inside the session \u2014 press enter to attach and run it there";
|
|
573
|
+
/** 会话进程内的状态汇报器 */
|
|
574
|
+
export interface IJobStateReporter {
|
|
575
|
+
/** 若当前进程不是后台 job 则为 no-op */
|
|
576
|
+
start(): void;
|
|
577
|
+
/** 停止汇报并落盘最终状态 */
|
|
578
|
+
stop(): Promise<void>;
|
|
579
|
+
/** 当前进程对应的 job id(非 job 进程为 undefined) */
|
|
580
|
+
readonly jobId: string | undefined;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* 存活图标:工作中与静止都用这一个字形。
|
|
584
|
+
*
|
|
585
|
+
* 工作中的动画用颜色明暗脉冲而不是换字形(见 resolveIconPulseDim):
|
|
586
|
+
* 换字形的帧序列只要有任意一帧在用户终端里被画成 2 格(EAW Ambiguous
|
|
587
|
+
* 双宽、emoji 呈现、字体差异都可能),图标右侧整行就会随动画左右横跳;
|
|
588
|
+
* 颜色码不占列宽,任何终端下都绝对稳定。
|
|
589
|
+
*/
|
|
590
|
+
export declare const ICON_ALIVE = "\u273B";
|
|
591
|
+
/** 进程已退出——仍可 peek / 回复 / 接管,会话会从断点续起 */
|
|
592
|
+
export declare const ICON_DEAD = "\u2219";
|
|
593
|
+
/** 排期中(loop 会话在两轮之间休眠) */
|
|
594
|
+
export declare const ICON_SCHEDULED = "\u2722";
|
|
595
|
+
/**
|
|
596
|
+
* 等待用户输入的图标。
|
|
597
|
+
*
|
|
598
|
+
* 语义优先级高于 `ICON_DEAD`:一个「进程已退、但在等你回答」的会话
|
|
599
|
+
* 首先是在等你——用死点表示会让最需要处理的行长着最不起眼的脸。
|
|
600
|
+
*/
|
|
601
|
+
export declare const ICON_BLOCKED = "?";
|
|
602
|
+
/**
|
|
603
|
+
* 终结产出的形状编码:✓ 成功 / ✗ 失败(stopped 沿用死点)。
|
|
604
|
+
* 颜色(success/error)之外再用形状区分一次——色盲终端下也能分诊。
|
|
605
|
+
* 两个字形均属 East-Asian-Neutral(单格),不会触发 Ambiguous 双宽问题。
|
|
606
|
+
*/
|
|
607
|
+
export declare const ICON_DONE_OK = "\u2713";
|
|
608
|
+
export declare const ICON_DONE_FAIL = "\u2717";
|
|
609
|
+
/** 选中行前缀标记 */
|
|
610
|
+
export declare const ROW_SELECTION_MARKER = "\u276F";
|
|
611
|
+
/** 分组标题的展开/折叠指示符(两种状态都渲染,标题不再左右横跳) */
|
|
612
|
+
export declare const GROUP_GLYPH_COLLAPSED = "\u25B8";
|
|
613
|
+
export declare const GROUP_GLYPH_EXPANDED = "\u25BE";
|
|
614
|
+
/** 状态分组的渲染顺序。对齐 bundle 908750 的 `Lti` */
|
|
615
|
+
export declare const STATE_GROUP_ORDER: readonly AgentJobStateGroup[];
|
|
616
|
+
/** 状态分组标题。对齐 bundle 908752 的 `qSt` */
|
|
617
|
+
export declare const STATE_GROUP_LABELS: Record<AgentJobStateGroup, string>;
|
|
618
|
+
/** 空态时分组标题下的说明行。对齐 bundle 908758 的 `ISS` */
|
|
619
|
+
export declare const STATE_GROUP_DESCRIPTIONS: Record<AgentJobStateGroup, string>;
|
|
620
|
+
/** 置顶分组标题 */
|
|
621
|
+
export declare const PINNED_GROUP_LABEL = "Pinned";
|
|
622
|
+
/** 目录分组模式下无法归属仓库时的分组名 */
|
|
623
|
+
export declare const UNGROUPED_GROUP_LABEL = "(ungrouped)";
|
|
624
|
+
/**
|
|
625
|
+
* 从 `←` 交接进来时,列表顶部的上下文说明。
|
|
626
|
+
*
|
|
627
|
+
* 用户刚被从一个正在进行的对话里带走,屏幕整个换了 —— 得先说清楚
|
|
628
|
+
* 「刚才那个会话去哪了、怎么回去」,否则很容易以为会话被关掉了。
|
|
629
|
+
*
|
|
630
|
+
* 文案取自 Claude Code v2.1.218 的实际界面(用户提供的截图)。
|
|
631
|
+
* 本地的两个 recovery bundle 是 2.1.216 / 2.1.210,里面还没有这一行,
|
|
632
|
+
* 所以依据是运行时截图而不是 bundle。
|
|
633
|
+
*/
|
|
634
|
+
export declare const HANDOFF_CONTEXT_HINT = "Your conversation moved to the background \u2014 enter opens it \u00B7 esc returns to it \u00B7 ctrl+c twice quits";
|
|
635
|
+
/** 空列表时输入框上方的引导文案 */
|
|
636
|
+
export declare const EMPTY_LIST_HINT = "Describe a task below and press enter to dispatch your first session";
|
|
637
|
+
/** 尚未收到首个 prompt 的行提示 */
|
|
638
|
+
export declare const AWAITING_FIRST_PROMPT_HINT = "space to send it a prompt";
|
|
639
|
+
/** 仅能在会话内运行的命令的提示 */
|
|
640
|
+
export declare const ATTACH_ONLY_COMMAND_HINT = "attach to a session to run it";
|
|
641
|
+
/** 删除被拒绝时的行内标记 */
|
|
642
|
+
export declare const NOT_DELETED_MARKER = "not deleted";
|
|
643
|
+
/**
|
|
644
|
+
* 旧版 worker 写进 `state.detail` 的转后台样板句。
|
|
645
|
+
*
|
|
646
|
+
* 它对「这一行和别的行有什么不同」贡献为零——四行阻塞会话挂着同一句话,
|
|
647
|
+
* 真正的问题反而藏在 peek 里。渲染层识别到它就换成有信息量的内容。
|
|
648
|
+
*/
|
|
649
|
+
export declare const NO_SIGNAL_DETAIL_PATTERN: RegExp;
|
|
650
|
+
/** 阻塞中但拿不到具体问题时的兜底摘要 */
|
|
651
|
+
export declare const BLOCKED_FALLBACK_DETAIL = "waiting for your reply \u2014 space to answer";
|
|
652
|
+
/** 已完成行的 `result: ` 前缀——✓ 图标与 Completed 标题已经说了这件事 */
|
|
653
|
+
export declare const RESULT_PREFIX_PATTERN: RegExp;
|
|
654
|
+
/**
|
|
655
|
+
* 页脚快捷键提示,按「窄终端先丢队尾」排列。
|
|
656
|
+
* key 用 hint 色、动作用暗色渲染,比一整句暗字扫得快。
|
|
657
|
+
*/
|
|
658
|
+
export declare const FOOTER_HINTS: ReadonlyArray<readonly [string, string]>;
|
|
659
|
+
/** 派发纯文本 prompt 的最小长度。对齐 bundle 908569 的 `ASS` */
|
|
660
|
+
export declare const MIN_DISPATCH_PROMPT_LENGTH = 4;
|
|
661
|
+
/** 过短时的提示。对齐 bundle 906455 */
|
|
662
|
+
export declare const TOO_SHORT_HINT = "Too short \u2014 describe the task";
|
|
663
|
+
/** 粘贴折叠字符阈值。对齐 bundle 906745 的 `xkt` */
|
|
664
|
+
export declare const PASTE_COLLAPSE_CHARS = 800;
|
|
665
|
+
/** 粘贴折叠行数阈值(严格大于) */
|
|
666
|
+
export declare const PASTE_COLLAPSE_LINES = 2;
|
|
667
|
+
/** Ctrl+X 两连击删除的窗口。对齐 bundle 904385 的 `Oc(..., 2000)` */
|
|
668
|
+
export declare const DELETE_ARM_WINDOW_MS = 2000;
|
|
669
|
+
/** Ctrl+C 两连击退出的窗口 */
|
|
670
|
+
export declare const EXIT_ARM_WINDOW_MS = 2000;
|
|
671
|
+
/** Ctrl+C 第一击后的确认提示(与快捷键浮层的 press twice 文案一致) */
|
|
672
|
+
export declare const EXIT_CONFIRM_HINT = "Press ctrl+c again to exit";
|
|
673
|
+
/** agent view 轮询 jobs 目录的间隔 */
|
|
674
|
+
export declare const AGENT_VIEW_POLL_INTERVAL_MS = 800;
|
|
675
|
+
/** 行摘要复用会话自身输出时的最小刷新间隔(不发起模型请求)。对齐 bundle 476048 的 `efd` */
|
|
676
|
+
export declare const DETAIL_REFRESH_MIN_INTERVAL_MS = 15000;
|
|
677
|
+
/** 折叠前必须至少能藏这么多行,否则不如直接显示。对齐 `I5f` */
|
|
678
|
+
export declare const DONE_FOLD_MIN_HIDDEN = 3;
|
|
679
|
+
/**
|
|
680
|
+
* 头部 + 输入框 + 提示行等固定占用的行数。
|
|
681
|
+
* 原值 8 对齐 Claude 的 `HSS`(3 行头部);头部并为 2 行后随之减 1,
|
|
682
|
+
* 否则 chrome 多算 1 行,Completed 组会提前一行进入折叠/紧凑模式。
|
|
683
|
+
*/
|
|
684
|
+
export declare const DONE_FOLD_CHROME_ROWS = 7;
|
|
685
|
+
/** 首选给页脚预留的行数。对齐 `fti` */
|
|
686
|
+
export declare const DONE_FOLD_FOOTER_ROWS = 4;
|
|
687
|
+
/** 空间不足时压缩到的页脚行数。对齐 `OSS` */
|
|
688
|
+
export declare const DONE_FOLD_FOOTER_ROWS_COMPACT = 2;
|
|
689
|
+
/** 落在 cap 边界这段时间内完成的行合并进同一批展示。对齐 `DSS` */
|
|
690
|
+
export declare const DONE_FOLD_MERGE_WINDOW_MS = 60000;
|
|
691
|
+
/** 行首选中标记列宽度(marker 之外的列宽由 computeColumnWidths 分配) */
|
|
692
|
+
export declare const AGENT_VIEW_MARKER_WIDTH = 2;
|
|
693
|
+
/** 年龄列最小宽度。对齐 bundle 901610 的 `kSS` */
|
|
694
|
+
export declare const AGE_COLUMN_MIN_WIDTH = 8;
|
|
695
|
+
/** 会话名列最大宽度(列宽随最长可见名自适应,钳在 min/max 之间) */
|
|
696
|
+
export declare const NAME_COLUMN_WIDTH = 24;
|
|
697
|
+
/** 会话名列最小宽度:短名(`hi`)不再撑出 20 格空白,摘要列拿回预算 */
|
|
698
|
+
export declare const NAME_COLUMN_MIN_WIDTH = 10;
|
|
699
|
+
/** 图标列宽度(图标 + 间隔) */
|
|
700
|
+
export declare const ICON_COLUMN_WIDTH = 3;
|
|
701
|
+
/** 摘要列在极窄终端下的最小宽度 */
|
|
702
|
+
export declare const DETAIL_COLUMN_MIN_WIDTH = 12;
|
|
703
|
+
/** agent view 打开期间的终端标题。对齐 bundle 901754 的 `k5f` */
|
|
704
|
+
export declare function formatAgentViewTitle(awaitingInput: number): string;
|
|
705
|
+
/** 通知类型,与 Notification hook 的 notification_type 对齐 */
|
|
706
|
+
export declare const NOTIFICATION_TYPE_NEEDS_INPUT = "agent_needs_input";
|
|
707
|
+
export declare const NOTIFICATION_TYPE_COMPLETED = "agent_completed";
|
|
708
|
+
/**
|
|
709
|
+
* 在 agent view 内直接执行而不派发会话的命令。对齐 Claude v2.1.216
|
|
710
|
+
* bundle 906315-906441(design.md D6):**恰好这 6 个**,其余内置命令
|
|
711
|
+
* 一律回 `attach to a session to run it`(attach-only)。
|
|
712
|
+
* 不含 `/continue`——Claude 未把它列入 host。
|
|
713
|
+
*/
|
|
714
|
+
export declare const AGENT_VIEW_HOST_COMMANDS: readonly string[];
|