@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,164 @@
|
|
|
1
|
+
import type { ModifyBackupCommittedPayload, SafeDeleteBulkApprovalPayload, SandboxDaemonFailurePayload, SandboxDaemonStartupFinishedPayload, SandboxSafetyTogglePayload, SandboxThreatDatabaseHitPayload, SandboxThreatDatabaseLoadPayload, SandboxTurnStatePayload, SecurityReviewApprovalPayload, SecurityReviewModelCallPayload, SecurityReviewResultProtectionPayload, SecurityReviewToolCallPayload, ToolCallInterceptPayload, ToolCallNativeRerunPayload, ToolCallOutcomePayload, ToolCallSandboxFirstRunPayload } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import type { ReportEventRequest } from '../sandbox-cli/sandbox-cli-protocol';
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox 上报场景化门面。
|
|
5
|
+
*
|
|
6
|
+
* 设计契约:[apps/workbuddy-desktop/docs/沙盒上报设计.md]。
|
|
7
|
+
*
|
|
8
|
+
* 业务代码调用沙箱事件的**唯一入口**:
|
|
9
|
+
* - 屏蔽底层 `GalileoService.logInfo / logError` 的弱类型
|
|
10
|
+
* - 每个方法对应一个独立伽利略 message,attribute set 各自约束
|
|
11
|
+
* - 集中处理"埋点失败不影响主流程"
|
|
12
|
+
* - 自动剔除 undefined attribute,避免 tags 里塞一堆空值
|
|
13
|
+
*
|
|
14
|
+
* 核心事件(伽利略 message):
|
|
15
|
+
* - `sandbox.turn_sandbox_cli_usage.recorded` — 每轮 sandbox-cli 生效状态记录
|
|
16
|
+
* - `sandbox.enable_switch.changed` — 沙箱启用开关状态变更(保留契约,当前无生产注入)
|
|
17
|
+
* - `sandbox.daemon.startup.finished` — sandbox-cli 启动 / 重启尝试终态
|
|
18
|
+
* - `sandbox.daemon.failure` — sandbox-cli 启动 / 运行期失败(当前生成 11 个 phase 子场景)
|
|
19
|
+
* - `sandbox.tool_call.sandbox_first_run.finished` — 沙箱首跑结果
|
|
20
|
+
* - `sandbox.tool_call.native_rerun.finished` — native 重跑结果
|
|
21
|
+
* - `sandbox.tool_call.outcome` — 命令终局(全量漏斗与分母)
|
|
22
|
+
* - `sandbox.tool_call.intercept` — 用户授权弹窗选择
|
|
23
|
+
* - `sandbox.safe_delete.bulk_approval.finished` — safe-delete 批量删除保护审批结果
|
|
24
|
+
*/
|
|
25
|
+
export declare const SandboxTelemetryReporter: unique symbol;
|
|
26
|
+
/**
|
|
27
|
+
* Sandbox 上报场景化门面接口。每个方法对应一个伽利略事件 message。
|
|
28
|
+
*/
|
|
29
|
+
export interface SandboxTelemetryReporter {
|
|
30
|
+
reportSecurityReviewToolCall(payload: SecurityReviewToolCallPayload): void;
|
|
31
|
+
/** 每次 reviewer 模型调用(含降级调用)结算一条。 */
|
|
32
|
+
reportSecurityReviewModelCall(payload: SecurityReviewModelCallPayload): void;
|
|
33
|
+
reportSecurityReviewApproval(payload: SecurityReviewApprovalPayload): void;
|
|
34
|
+
reportSecurityReviewResultProtection(payload: SecurityReviewResultProtectionPayload): void;
|
|
35
|
+
/** 每个真实用户 turn 上报本轮 sandbox-cli 是否在执行链路里生效。 */
|
|
36
|
+
reportTurnState(payload: SandboxTurnStatePayload): void;
|
|
37
|
+
/** 安全中心中用户手动切换沙箱启用开关;当前仅保留契约,没有生产调用方。 */
|
|
38
|
+
reportSandboxSafetyToggle(payload: SandboxSafetyTogglePayload): void;
|
|
39
|
+
/** 每次真实 bootstrap / restart 尝试最终严格上报一条。 */
|
|
40
|
+
reportDaemonStartupFinished(payload: SandboxDaemonStartupFinishedPayload): void;
|
|
41
|
+
/**
|
|
42
|
+
* sandbox-cli daemon 失败统一上报入口。
|
|
43
|
+
*
|
|
44
|
+
* 覆盖 daemon 整个生命周期当前生成的 11 个失败 phase(startup-* / runtime-*)。
|
|
45
|
+
* 调用方按 phase 填充对应字段,参考 `SandboxDaemonFailurePayload` 上的
|
|
46
|
+
* 字段命中矩阵。
|
|
47
|
+
*/
|
|
48
|
+
reportDaemonFailure(payload: SandboxDaemonFailurePayload): void;
|
|
49
|
+
/**
|
|
50
|
+
* 命令进入沙箱后的首跑结果。
|
|
51
|
+
*
|
|
52
|
+
* 只在命令真正进入沙箱后上报;pre-exec 阶段直接放行 / 拒绝的命令不触发。
|
|
53
|
+
* 本事件记录首跑阶段事实,终局放行 / 拒绝仍由 `reportToolCallOutcome` 表达。
|
|
54
|
+
*/
|
|
55
|
+
reportToolCallSandboxFirstRun(payload: ToolCallSandboxFirstRunPayload): void;
|
|
56
|
+
/**
|
|
57
|
+
* native 重跑真实执行结果。
|
|
58
|
+
*
|
|
59
|
+
* 只在沙箱首跑后发生本地重跑时上报;pre-exec 直接本地放行 / 会话缓存放行
|
|
60
|
+
* 不触发。本事件记录 native 重跑是否真的成功,权限链路结论仍由
|
|
61
|
+
* `reportToolCallOutcome` 表达。
|
|
62
|
+
*/
|
|
63
|
+
reportToolCallNativeRerun(payload: ToolCallNativeRerunPayload): void;
|
|
64
|
+
/**
|
|
65
|
+
* 真正向用户弹出授权弹窗的拦截场景上报。
|
|
66
|
+
*
|
|
67
|
+
* 由 `SandboxOrchestrator` 在新权限路径真正展示授权弹窗、并拿到用户 `decision`
|
|
68
|
+
* 后调用;auto-approve(零弹窗)与未拦截命令都不触发。
|
|
69
|
+
*/
|
|
70
|
+
reportToolCallIntercept(payload: ToolCallInterceptPayload): void;
|
|
71
|
+
/**
|
|
72
|
+
* safe-delete 批量删除保护审批结果。
|
|
73
|
+
*
|
|
74
|
+
* 由 `SandboxOrchestrator` 在 safe-delete runtime 输出 bulk confirm marker、
|
|
75
|
+
* 复用授权 UI 拿到用户选择后调用。它不是沙箱文件 / 网络权限拦截,不应复用
|
|
76
|
+
* `reportToolCallIntercept`。
|
|
77
|
+
*/
|
|
78
|
+
reportSafeDeleteBulkApproval(payload: SafeDeleteBulkApprovalPayload): void;
|
|
79
|
+
/**
|
|
80
|
+
* 命令终局全链路上报(pre-exec + post-exec 全漏斗)。
|
|
81
|
+
*
|
|
82
|
+
* 由 `SandboxOrchestrator` 在 `execute()` 的每个终止点调用一条。Payload 中的
|
|
83
|
+
* `stage/outcome/reason/prompted/autoApproveReason` 用于调用点内部归因和兼容,v2
|
|
84
|
+
* reporter 不输出这些旧字段;最终日志使用 `decisionReason/route/permissionResult/
|
|
85
|
+
* sandboxPrompted/autoReleaseReason` 等 v2 字段。与 `reportToolCallIntercept`
|
|
86
|
+
* (真实弹窗子集)互补,本事件提供完整漏斗与分母。
|
|
87
|
+
* `status` 仍由内部 `outcome/reason` 派生(reporter 内部处理)。
|
|
88
|
+
*/
|
|
89
|
+
reportToolCallOutcome(payload: ToolCallOutcomePayload): void;
|
|
90
|
+
/**
|
|
91
|
+
* FinalStop 收尾阶段 CommitModifyBackup 成功后上报 modify backup 统计数据。
|
|
92
|
+
*
|
|
93
|
+
* 仅当 IPC 响应同时携带 `totalModifyBackupSizeMb` 和
|
|
94
|
+
* `modifyBackupSessionCount` 时调用。用于观测磁盘占用和 session 数量趋势。
|
|
95
|
+
*/
|
|
96
|
+
reportModifyBackupCommitted(payload: ModifyBackupCommittedPayload): void;
|
|
97
|
+
/**
|
|
98
|
+
* 恶意域名威胁库同步尝试结果上报。
|
|
99
|
+
*
|
|
100
|
+
* 只描述实际进入 ThreatDomainChecker 的同步尝试,不代表所有用户 turn 的
|
|
101
|
+
* Sandbox 覆盖率;整体覆盖率需结合 sandbox.turn_sandbox_cli_usage.recorded。
|
|
102
|
+
* reporter 必须是纯旁路,调用异常不得影响 DB 同步或恶意域名判断。
|
|
103
|
+
*/
|
|
104
|
+
reportThreatDatabaseLoad(payload: SandboxThreatDatabaseLoadPayload): void;
|
|
105
|
+
/**
|
|
106
|
+
* 上报一次恶意域名命中,回答「防护实际拦下了什么」。
|
|
107
|
+
*
|
|
108
|
+
* 与安全中心审计写入同址、共用同一套去重,条数与用户看到的记录一一对应。
|
|
109
|
+
* reporter 必须是纯旁路,调用异常不得影响拦截行为或审计写入。
|
|
110
|
+
*/
|
|
111
|
+
reportThreatDatabaseHit(payload: SandboxThreatDatabaseHitPayload): void;
|
|
112
|
+
/**
|
|
113
|
+
* 接收 sandbox-cli 通过反向事件 `ReportEvent` 上送的原始 envelope。
|
|
114
|
+
*
|
|
115
|
+
* 当前没有任何 scene/action 需要翻译成伽利略事件,全部丢弃:sandbox-cli 每次
|
|
116
|
+
* OpenSession 都会上送 `sandbox_projfs.mount`,静默丢弃避免刷 warn;其余未知
|
|
117
|
+
* scene/action 写 warn 日志后丢弃,便于发现协议漂移。
|
|
118
|
+
*/
|
|
119
|
+
ingestRawEvent(envelope: ReportEventRequest): void;
|
|
120
|
+
}
|
|
121
|
+
export interface SandboxExecResultLike {
|
|
122
|
+
exitCode: number | null;
|
|
123
|
+
signal: NodeJS.Signals | string | null;
|
|
124
|
+
interrupted: boolean;
|
|
125
|
+
sandboxDenied?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* sandbox 内被升级 / 提权拒绝的标记。仅在升级流程下相关,普通 deny 路径
|
|
128
|
+
* 上不一定填。详见 SandboxOrchestratorResult。
|
|
129
|
+
*/
|
|
130
|
+
sandboxEscalationDenied?: boolean;
|
|
131
|
+
fileBlockRecords?: ReadonlyArray<FileBlockRecordLike> | undefined;
|
|
132
|
+
networkBlockRecords?: ReadonlyArray<NetworkBlockRecordLike> | undefined;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* 单条文件拦截记录的窄接口 —— sandbox-cli-protocol 同名类型的字段子集。
|
|
136
|
+
*
|
|
137
|
+
* 故意不直接 import `FileBlockRecord` 类型:避免 telemetry 包反向依赖
|
|
138
|
+
* sandbox-cli protocol(保持依赖方向:tools / orchestrator → telemetry)。
|
|
139
|
+
*
|
|
140
|
+
* 字段:
|
|
141
|
+
* - `path` 文件绝对路径(不脱敏,按业务上报需要全文上报)
|
|
142
|
+
* - `actionMask` 操作 bitmask:0x01=READ, 0x02=WRITE, 0x04=DELETE, 0x08=EXECUTE
|
|
143
|
+
* 解码为人类可读字符串走 [`decodeFileActionMask`] helper
|
|
144
|
+
*/
|
|
145
|
+
export interface FileBlockRecordLike {
|
|
146
|
+
path: string;
|
|
147
|
+
actionMask: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* 单条网络拦截记录的窄接口 —— sandbox-cli-protocol 同名类型的字段子集。
|
|
151
|
+
*
|
|
152
|
+
* 字段:
|
|
153
|
+
* - `host` 被拦截的域名 / IP(不脱敏)
|
|
154
|
+
* - `port` 端口(可选)
|
|
155
|
+
* - `protocol` 协议("tcp" / "udp" / "dns" 等;与 sandbox-cli-protocol 字段名保持一致)
|
|
156
|
+
* - `actionMask` 操作 bitmask:0x01=CONNECT, 0x02=DNS_RESOLVE, 0x04=SENDTO
|
|
157
|
+
* 解码为人类可读字符串走 [`decodeNetworkActionMask`] helper
|
|
158
|
+
*/
|
|
159
|
+
export interface NetworkBlockRecordLike {
|
|
160
|
+
host: string;
|
|
161
|
+
port?: number;
|
|
162
|
+
protocol: string;
|
|
163
|
+
actionMask: number;
|
|
164
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { Logger } from '@celljs/core';
|
|
2
|
+
import { type ModifyBackupCommittedPayload, type SafeDeleteBulkApprovalPayload, type SandboxDaemonFailurePayload, type SandboxDaemonStartupFinishedPayload, type SandboxInterceptType, type SandboxSafetyTogglePayload, type SandboxStatus, type SandboxThreatDatabaseHitPayload, type SandboxThreatDatabaseLoadPayload, type SandboxThreatDatabaseUnavailableReason, type SandboxToolCallOutcome, type SandboxTurnStatePayload, type SecurityReviewApprovalPayload, type SecurityReviewModelCallPayload, type SecurityReviewResultProtectionPayload, type SecurityReviewToolCallPayload, type ToolCallInterceptPayload, type ToolCallNativeRerunPayload, type ToolCallOutcomePayload, type ToolCallSandboxFirstRunPayload } from '../../workspace/telemetry/lib/common/index.js';
|
|
3
|
+
import { GalileoService } from '../galileo/galileo-protocol';
|
|
4
|
+
import type { ReportEventRequest } from '../sandbox-cli/sandbox-cli-protocol';
|
|
5
|
+
import { type SandboxExecResultLike, SandboxTelemetryReporter } from './sandbox-telemetry-protocol';
|
|
6
|
+
/**
|
|
7
|
+
* `SandboxTelemetryReporter` 默认实现。
|
|
8
|
+
*
|
|
9
|
+
* 实现注意事项:
|
|
10
|
+
* - 每个 `report*` 方法直接构造伽利略 attribute 对象(语义化 key,零 JSON 序列化),
|
|
11
|
+
* 并同步写入 OTel 本地 buffer;实际网络导出由 Galileo BatchProcessor 异步完成,
|
|
12
|
+
* 不返回可被主链路等待的 Promise。
|
|
13
|
+
* - 字段长度护栏:errorMsg 等可能超长的字段在 reporter 内部截断到位。
|
|
14
|
+
* - 报错容错:序列化或 GalileoService 任一环节失败,记 warn 后吞掉,不影响主流程。
|
|
15
|
+
*
|
|
16
|
+
* 上报通路:
|
|
17
|
+
* - 业务字段统一通过 `GalileoService.logInfo / logError` 落到伽利略 logs。
|
|
18
|
+
* - 失败 / 超时(status ∈ {failed, timeout})走 `logError`,其余走 `logInfo`。
|
|
19
|
+
* 伽利略后台日志级别可直接当告警入口。
|
|
20
|
+
*/
|
|
21
|
+
export declare class SandboxTelemetryReporterImpl implements SandboxTelemetryReporter {
|
|
22
|
+
protected readonly galileoService: GalileoService;
|
|
23
|
+
protected readonly logger: Logger;
|
|
24
|
+
reportSecurityReviewToolCall(payload: SecurityReviewToolCallPayload): void;
|
|
25
|
+
reportSecurityReviewModelCall(payload: SecurityReviewModelCallPayload): void;
|
|
26
|
+
reportSecurityReviewApproval(payload: SecurityReviewApprovalPayload): void;
|
|
27
|
+
reportSecurityReviewResultProtection(payload: SecurityReviewResultProtectionPayload): void;
|
|
28
|
+
reportTurnState(payload: SandboxTurnStatePayload): void;
|
|
29
|
+
reportSandboxSafetyToggle(payload: SandboxSafetyTogglePayload): void;
|
|
30
|
+
reportDaemonStartupFinished(payload: SandboxDaemonStartupFinishedPayload): void;
|
|
31
|
+
/**
|
|
32
|
+
* 上报 daemon 失败事件,兼容 main 历史 phase 并覆盖 5.3.x 新 phase
|
|
33
|
+
* (详见 `SandboxDaemonFailurePayload`)。
|
|
34
|
+
* undefined 字段被 `_buildAttributes` 自动剔除。
|
|
35
|
+
*/
|
|
36
|
+
reportDaemonFailure(payload: SandboxDaemonFailurePayload): void;
|
|
37
|
+
/**
|
|
38
|
+
* 上报命令进入沙箱后的首跑结果。`status` 只承载日志严重级:
|
|
39
|
+
* 基础设施异常进 logError,其余业务结果进 logInfo,业务结论看 `result`。
|
|
40
|
+
*/
|
|
41
|
+
reportToolCallSandboxFirstRun(payload: ToolCallSandboxFirstRunPayload): void;
|
|
42
|
+
/**
|
|
43
|
+
* 上报沙箱首跑后的 native 重跑结果。`status` 只承载日志严重级:
|
|
44
|
+
* native 执行基础设施异常进 logError,其余业务执行结果进 logInfo。
|
|
45
|
+
*/
|
|
46
|
+
reportToolCallNativeRerun(payload: ToolCallNativeRerunPayload): void;
|
|
47
|
+
/**
|
|
48
|
+
* 上报真正向用户弹出授权弹窗的拦截场景(带用户最终 decision)。
|
|
49
|
+
*
|
|
50
|
+
* 由 `SandboxOrchestrator` 在新权限路径真正展示弹窗、拿到 `decision` 后调用;
|
|
51
|
+
* auto-approve(零弹窗)与未拦截命令都不触发。`status` 恒为 `failed`。
|
|
52
|
+
*/
|
|
53
|
+
reportToolCallIntercept(payload: ToolCallInterceptPayload): void;
|
|
54
|
+
/**
|
|
55
|
+
* 上报 safe-delete 批量删除保护审批结果。它复用授权 UI,但业务含义不是
|
|
56
|
+
* 沙箱权限拦截,因此独立成事件;用户拒绝也是正常审批结果,status 仍为 success。
|
|
57
|
+
*/
|
|
58
|
+
reportSafeDeleteBulkApproval(payload: SafeDeleteBulkApprovalPayload): void;
|
|
59
|
+
/**
|
|
60
|
+
* 命令终局全链路上报。`status` 由 `(outcome, reason)` 派生:仅**策略硬拦**
|
|
61
|
+
* (`forbidden` / `system-tool-blocked`)的 `deny` → failed(logError,留作安全
|
|
62
|
+
* 审计告警入口);**用户主动拒绝**的 deny 及其余结局 → success(logInfo),避免
|
|
63
|
+
* 把正常用户拒绝灌进告警流。详见 {@link outcomeToStatus}。
|
|
64
|
+
*/
|
|
65
|
+
reportToolCallOutcome(payload: ToolCallOutcomePayload): void;
|
|
66
|
+
reportModifyBackupCommitted(payload: ModifyBackupCommittedPayload): void;
|
|
67
|
+
/** 上报威胁库加载进 sandbox-cli 的结果;底层 _emit 已吞掉全部上报异常。 */
|
|
68
|
+
reportThreatDatabaseLoad(payload: SandboxThreatDatabaseLoadPayload): void;
|
|
69
|
+
/**
|
|
70
|
+
* 上报一次恶意域名命中;底层 `_emit` 已吞掉全部上报异常。
|
|
71
|
+
*
|
|
72
|
+
* 命中是防护成功生效,`status` 恒为 `success`——不能因为「拦了」就记 failed,否则告警
|
|
73
|
+
* 通道会被正常防护行为填满。拦截量与风险类型分布按 tags 聚合。
|
|
74
|
+
*/
|
|
75
|
+
reportThreatDatabaseHit(payload: SandboxThreatDatabaseHitPayload): void;
|
|
76
|
+
/**
|
|
77
|
+
* sandbox-cli 通过反向事件 `ReportEvent` 上送的原始 envelope 入口。
|
|
78
|
+
*
|
|
79
|
+
* 当前没有任何 scene/action 需要翻译成伽利略事件,全部丢弃。`sandbox_projfs.mount`
|
|
80
|
+
* 由 sandbox-cli 每次 OpenSession 主动上送,静默丢弃避免刷 warn;其余未知
|
|
81
|
+
* scene/action 仍写 warn,便于发现协议漂移。
|
|
82
|
+
*/
|
|
83
|
+
ingestRawEvent(envelope: ReportEventRequest): void;
|
|
84
|
+
/**
|
|
85
|
+
* 构造 attribute 并写入 Galileo 本地 OTel buffer。
|
|
86
|
+
*
|
|
87
|
+
* - 自动剔除 undefined value(保持 attribute 紧凑,伽利略后台"日志转指标"
|
|
88
|
+
* 配规则时按 dim 切片更干净)
|
|
89
|
+
* - SDK 类型 `Attributes` 是 `Record<string, string>`——number / boolean
|
|
90
|
+
* 会被 GalileoService 内部 normalizeAttributes 统一转字符串,业务侧无感
|
|
91
|
+
* - 失败 / 超时进 logError,其余进 logInfo
|
|
92
|
+
* - 字段构造和本地入队任一阶段失败都静默吞掉,不向调用方返回 Promise
|
|
93
|
+
*
|
|
94
|
+
* 这里刻意不再套 `setImmediate`:`GalileoService.logInfo / logError` 只执行本地
|
|
95
|
+
* BatchProcessor 入队,网络导出本来就是异步的。额外延后一轮会让退出 flush 看不到
|
|
96
|
+
* 尚未入队的最后一批事件,造成尾部少报。
|
|
97
|
+
*/
|
|
98
|
+
private _emit;
|
|
99
|
+
/**
|
|
100
|
+
* 从统一字段清单提取最终关联 ID。这里不读取 SessionManager:事件可能在异步
|
|
101
|
+
* callback 中结算,必须使用调用方在事件入口固化的快照,避免多 Session 串值。
|
|
102
|
+
*/
|
|
103
|
+
private _pickCorrelationAttributes;
|
|
104
|
+
/** 诊断日志独立测试缝;生产把 telemetry 自身的 warn 延后,避免影响调用栈。 */
|
|
105
|
+
protected _scheduleTelemetry(task: () => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* 构造伽利略 attributes:把 status / module 升格为 attribute、剔除 undefined / null value。
|
|
108
|
+
*
|
|
109
|
+
* `module='sandbox'` 是所有沙箱事件共享的一等切片维度——伽利略后台直接用
|
|
110
|
+
* `{tags.module="sandbox"}` 一键聚合所有沙箱事件,不必走 `message =~ "sandbox\\..*"`
|
|
111
|
+
* 正则。注入点放在 _buildAttributes 这一公共出口,所有最终调用 `_emit` 的 reporter
|
|
112
|
+
* 方法全部命中,调用方零感知;`ingestRawEvent` 当前只丢弃原始 envelope,不经过这里。
|
|
113
|
+
*/
|
|
114
|
+
private _buildAttributes;
|
|
115
|
+
/**
|
|
116
|
+
* 截断 errorMsg 到 1KB 字节长度上限。
|
|
117
|
+
*
|
|
118
|
+
* UTF-8 字节长度计数(避免中文等多字节字符在边界处被截成乱码)。
|
|
119
|
+
* 截断时 `logger.warn` 一次(不输出原文,避免日志爆量)。
|
|
120
|
+
*/
|
|
121
|
+
private _truncateMessage;
|
|
122
|
+
private _truncateField;
|
|
123
|
+
private _warnSafely;
|
|
124
|
+
/**
|
|
125
|
+
* UTF-8 安全截断:按字节数截但不切断多字节字符。
|
|
126
|
+
*
|
|
127
|
+
* 实现:先按 `maxBytes` 切 Buffer,然后用 `TextDecoder('utf-8', { fatal: false })`
|
|
128
|
+
* 解码并丢弃尾部 `\uFFFD` 替换字符。
|
|
129
|
+
*/
|
|
130
|
+
private _truncateUtf8;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* errorMsg 字段字节上限(跨事件统一)。
|
|
134
|
+
*/
|
|
135
|
+
export declare const ERROR_MESSAGE_MAX_BYTES = 1024;
|
|
136
|
+
/** 解码文件拦截 actionMask(导出供 reporter 内部和单测使用)。 */
|
|
137
|
+
export declare function decodeFileActionMask(mask: number): string;
|
|
138
|
+
/** 解码网络拦截 actionMask(导出供 reporter 内部和单测使用)。 */
|
|
139
|
+
export declare function decodeNetworkActionMask(mask: number): string;
|
|
140
|
+
/**
|
|
141
|
+
* 由命令终局 `(outcome, reason)` 派生伽利略 severity 状态。
|
|
142
|
+
*
|
|
143
|
+
* - `deny` 且 `reason` ∈ 策略硬拦(`forbidden` / `system-tool-blocked`)→ `failed`
|
|
144
|
+
* (logError,留作安全审计告警入口:有人在跑被禁命令)
|
|
145
|
+
* - `deny` 其余(**用户主动拒绝**:`user-denied` / `bypass-user-denied` /
|
|
146
|
+
* `sensitive-denied` / `system-tool-rejected` / `command-safety-ask-denied`)→
|
|
147
|
+
* `success`(logInfo)——拒绝是正常用户行为,不该灌进告警流
|
|
148
|
+
* - `allow` / `prompt-allow` / `error` / `dispatched` → `success`(logInfo);
|
|
149
|
+
* `error`(命令自挂/异常)、`dispatched`(后台未裁决)同样刻意不进错误流
|
|
150
|
+
*
|
|
151
|
+
* 注意:`status` 只承载日志级别(severity),不承载放通/拒绝语义——放通率、拒绝率
|
|
152
|
+
* 一律按 `tags.outcome` 统计,不依赖 `status`。
|
|
153
|
+
*/
|
|
154
|
+
export declare function outcomeToStatus(outcome: SandboxToolCallOutcome, reason?: string): SandboxStatus;
|
|
155
|
+
/**
|
|
156
|
+
* 由威胁库加载结果派生伽利略 severity 状态。
|
|
157
|
+
*
|
|
158
|
+
* 只有 `sync-failed` 进 `failed`/logError 告警通道——那是「DB 已经在本地、却没能
|
|
159
|
+
* 加载进 sandbox-cli」,属真实故障。其余不生效原因是预期状态,进 logInfo:
|
|
160
|
+
*
|
|
161
|
+
* - `no-db-path`:daemon 还没发布首个 DB。新装用户必然先经历这段窗口,按失败上报
|
|
162
|
+
* 会让告警通道被开箱即用的正常样本淹没,真实加载故障反而看不出来。
|
|
163
|
+
* - `lifecycle-unavailable`:沙箱未启用或生命周期缺失。用户关掉沙箱是正常配置,
|
|
164
|
+
* 且本轮沙箱覆盖率由 `sandbox.turn_sandbox_cli_usage.recorded` 回答,不靠本事件。
|
|
165
|
+
* - `disabled`:用户主动关闭了恶意域名拦截。
|
|
166
|
+
* - `protocol-unsupported`:当前 sandbox-cli 版本不认这条命令。版本落后期间每一轮都会命中,
|
|
167
|
+
* 按失败上报等于用一个可预期的过渡态把告警通道占满。这类样本按 `tags.reason` 单独看即可。
|
|
168
|
+
*
|
|
169
|
+
* 与 {@link outcomeToStatus} 同理:`status` 只承载日志级别,防护是否生效一律按
|
|
170
|
+
* `tags.available` 与 `tags.reason` 统计,不依赖 `status`。
|
|
171
|
+
*/
|
|
172
|
+
export declare function threatDatabaseLoadToStatus(available: boolean, reason?: SandboxThreatDatabaseUnavailableReason): SandboxStatus;
|
|
173
|
+
/**
|
|
174
|
+
* 由 fileBlock / networkBlock 数量判定 interceptType。
|
|
175
|
+
*
|
|
176
|
+
* - 两类都非空 → 'mixed'
|
|
177
|
+
* - 仅 fileBlock → 'file'
|
|
178
|
+
* - 仅 networkBlock → 'network'
|
|
179
|
+
* - 均无 → 'none'
|
|
180
|
+
*/
|
|
181
|
+
export declare function deriveInterceptType(result: SandboxExecResultLike): SandboxInterceptType;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StartupPhase, StartupProfiler, StartupProfileReport } from './startup-profiler-protocol';
|
|
2
|
+
declare global {
|
|
3
|
+
var __CODEBUDDY_PROCESS_START_TIME__: number | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare class StartupProfilerImpl implements StartupProfiler {
|
|
6
|
+
private phases;
|
|
7
|
+
private phaseOrder;
|
|
8
|
+
private enabled;
|
|
9
|
+
private uiReadyTime;
|
|
10
|
+
constructor();
|
|
11
|
+
init(): void;
|
|
12
|
+
isEnabled(): boolean;
|
|
13
|
+
markStart(phase: StartupPhase | string, label?: string, metadata?: Record<string, unknown>): void;
|
|
14
|
+
markEnd(phase: StartupPhase | string, metadata?: Record<string, unknown>): void;
|
|
15
|
+
markEvent(phase: StartupPhase | string, label?: string, metadata?: Record<string, unknown>): void;
|
|
16
|
+
markUIReady(): void;
|
|
17
|
+
getUIReadyTime(): number | undefined;
|
|
18
|
+
measure<T>(phase: StartupPhase | string, label: string, fn: () => Promise<T>): Promise<T>;
|
|
19
|
+
getTotalDuration(): number;
|
|
20
|
+
getReport(): StartupProfileReport;
|
|
21
|
+
formatReport(options?: {
|
|
22
|
+
showAll?: boolean;
|
|
23
|
+
threshold?: number;
|
|
24
|
+
}): string;
|
|
25
|
+
private formatDuration;
|
|
26
|
+
private createProgressBar;
|
|
27
|
+
private getPhaseLabel;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 获取进程启动时间(用于在模块加载阶段记录)
|
|
31
|
+
*/
|
|
32
|
+
export declare function getProcessStartTime(): number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Application, ApplicationLifecycle, IntervalTimer } from '@celljs/core';
|
|
2
|
+
import { AuthenticationManager } from '../../workspace/authentication/lib/common/index.js';
|
|
3
|
+
import { ProductManager } from '../../workspace/product/lib/common/index.js';
|
|
4
|
+
import { EventService, Logger, PluginStatusTelemetry } from '../../workspace/telemetry/lib/common/index.js';
|
|
5
|
+
import { type IPrewarmStateService } from '../prewarm/prewarm-protocol';
|
|
6
|
+
interface PluginStatusDailyState {
|
|
7
|
+
version: 1;
|
|
8
|
+
reports: Record<string, string>;
|
|
9
|
+
}
|
|
10
|
+
export declare class PluginStatusServiceImpl implements ApplicationLifecycle<Application> {
|
|
11
|
+
protected readonly productManager: ProductManager;
|
|
12
|
+
protected readonly logger: Logger;
|
|
13
|
+
protected readonly eventService: EventService;
|
|
14
|
+
protected readonly authenticationManager: AuthenticationManager;
|
|
15
|
+
protected readonly prewarmState: IPrewarmStateService;
|
|
16
|
+
protected readonly timer: IntervalTimer;
|
|
17
|
+
protected pluginStartReportPending: boolean;
|
|
18
|
+
protected readonly checkInterval: number;
|
|
19
|
+
private stopped;
|
|
20
|
+
private activationDeferred;
|
|
21
|
+
private cancelAuthWait?;
|
|
22
|
+
initialize(): void;
|
|
23
|
+
protected init(): void;
|
|
24
|
+
protected doInit(): void;
|
|
25
|
+
onStop(): void;
|
|
26
|
+
protected startPeriodicChecking(): Promise<void>;
|
|
27
|
+
protected reportPluginStatusOnStart(): void;
|
|
28
|
+
protected doReportPluginStatusOnStart(): Promise<void>;
|
|
29
|
+
protected waitAuthReadyForPluginStart(): Promise<void>;
|
|
30
|
+
protected delay(ms: number): Promise<void>;
|
|
31
|
+
protected checkAndReportDaily(): Promise<void>;
|
|
32
|
+
protected reportOncePerAccountPerDay(payload: PluginStatusTelemetry): Promise<boolean>;
|
|
33
|
+
protected getAccountUid(): string | undefined;
|
|
34
|
+
protected getLocalDateKey(date?: Date): string;
|
|
35
|
+
protected getDailyReportStatePath(): string;
|
|
36
|
+
protected readDailyReportState(): Promise<PluginStatusDailyState>;
|
|
37
|
+
protected writeDailyReportState(state: PluginStatusDailyState): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Session } from '../../vendor/cbc-core/node/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* 把发起本次请求的客户端遥测信息(`session.telemetryClientInfo`)作为临时载体字段
|
|
4
|
+
* 塞进 event payload,供 {@link TelemetryClientInfoEventProcessor} 在 processor 阶段展开成
|
|
5
|
+
* 正式公共字段后删除(对齐 `fileUri` → `VCSEventProcessor` 的临时载体范式)。
|
|
6
|
+
*
|
|
7
|
+
* - 无session 或 session 未携带客户端信息(普通 CLI)→ 原样返回 payload,processor 走进程级兜底。
|
|
8
|
+
* - **就地写入并返回同一对象**:调用点 `report(code, attachTelemetryClientCarrier(payload, session))`
|
|
9
|
+
* 即可,不改变原有 report 调用形态(await / options / 是否 modelEventService 均不受影响)。
|
|
10
|
+
*
|
|
11
|
+
* 供`TelemetryServiceImpl` 及包外上报点(friction / credit-refund / mcp 等持有 session 者)复用,
|
|
12
|
+
* 避免每处重复拼载体。
|
|
13
|
+
*/
|
|
14
|
+
export declare function attachTelemetryClientCarrier<T extends object>(payload: T, session: Session | undefined): T;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventProcessContext, EventProcessor } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* processor 顺序不保证;客户端值有值即覆盖,进程级 processor 只兜底空值。
|
|
4
|
+
* 载体是内部字段,用后删除,避免泄漏进最终上报 payload。
|
|
5
|
+
*/
|
|
6
|
+
export declare class TelemetryClientInfoEventProcessor implements EventProcessor {
|
|
7
|
+
process({ event }: EventProcessContext): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { ToolCallLoopEventKind, ToolCallLoopEvidence } from '../../vendor/cbc-core/node/index.js';
|
|
2
|
+
import { ModelCallGeneration, ModelResponseMetadata, Session } from '../../vendor/cbc-core/node/index.js';
|
|
3
|
+
import { RunResult, StreamedRunResult } from '../../vendor/cbc-shared/node/index.js';
|
|
4
|
+
import { ChatMessageSendTelemetry } from '../../workspace/telemetry/lib/common/event/types/craft.js';
|
|
5
|
+
export declare const TelemetryService: unique symbol;
|
|
6
|
+
export type UserTaskFailedCreditRefundReason = 'loop_detected' | 'abnormal_finish_reason';
|
|
7
|
+
export interface TelemetryService {
|
|
8
|
+
/**
|
|
9
|
+
* 记录当前 rootRequestId 下出现过的 conversationRequestId,用于失败退费逐条上报。
|
|
10
|
+
*/
|
|
11
|
+
recordCreditRefundConversationRequest(session: Session): void;
|
|
12
|
+
/**
|
|
13
|
+
* 记录当前 conversationRequestId 的模型 finish_reason,用于过滤未进入 Tool Calls 的请求。
|
|
14
|
+
*/
|
|
15
|
+
recordCreditRefundConversationRequestEnd(session: Session, finishReason: string | undefined): void;
|
|
16
|
+
/**
|
|
17
|
+
* 标记当前 conversationRequestId 不参与退费上报。
|
|
18
|
+
*/
|
|
19
|
+
suppressCreditRefundConversationRequest(session: Session): void;
|
|
20
|
+
/**
|
|
21
|
+
* 上报用户任务失败退费检测事件;触发后消费当前 rootRequestId 的累积 request 列表。
|
|
22
|
+
*/
|
|
23
|
+
reportUserTaskFailedCreditRefund(session: Session, reason: UserTaskFailedCreditRefundReason): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* 上报工具调用循环观测事件:弹窗展示(suspected)、用户继续(continue)、
|
|
26
|
+
* 弹不出窗的自动继续(auto_continue)、用户停止(detected)。
|
|
27
|
+
* 只做观测,不影响退费;退费仍走 reportUserTaskFailedCreditRefund。
|
|
28
|
+
*/
|
|
29
|
+
reportToolCallLoopEvent(kind: ToolCallLoopEventKind, session: Session, evidence: ToolCallLoopEvidence): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 创建并发送消息发送埋点
|
|
32
|
+
* @param headers 请求头
|
|
33
|
+
* @param body 请求体
|
|
34
|
+
* @param isStream 是否为流式请求
|
|
35
|
+
* @param session Session the model call belongs to; defaults to the current one
|
|
36
|
+
* @returns 发送埋点数据
|
|
37
|
+
*/
|
|
38
|
+
reportMessageSendTelemetry(headers: Record<string, string>, body: any, isStream: boolean, session?: Session): ChatMessageSendTelemetry & {
|
|
39
|
+
sendTime: number;
|
|
40
|
+
isStream: boolean;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* 发送非流式消息响应埋点
|
|
44
|
+
* @param session 会话对象
|
|
45
|
+
* @param sendTelemetry 发送埋点数据
|
|
46
|
+
* @param axiosResponse 响应对象(用于从 data.usage 提取 token)
|
|
47
|
+
* @param isSuccessful 是否成功
|
|
48
|
+
* @param error 错误信息(可选)
|
|
49
|
+
*/
|
|
50
|
+
reportMessageResponseTelemetryNonStream(session: Session, sendTelemetry: ChatMessageSendTelemetry & {
|
|
51
|
+
sendTime: number;
|
|
52
|
+
isStream: boolean;
|
|
53
|
+
}, axiosResponse: any, isSuccessful: boolean, error?: any): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* 发送聊天请求埋点
|
|
56
|
+
* @param session 会话对象
|
|
57
|
+
*/
|
|
58
|
+
reportChatRequestSendTelemetry(session: Session): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* 上报等待模型 X-Request-ID 的增长埋点。
|
|
61
|
+
* @param session 会话对象
|
|
62
|
+
* @param requestId 实际 /v2/chat/completions 请求头 X-Request-ID
|
|
63
|
+
*/
|
|
64
|
+
flushPendingGrowthTelemetry(session: Session, requestId: string): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* 发送请求响应埋点
|
|
67
|
+
* @param session 会话对象
|
|
68
|
+
* @param result 运行结果
|
|
69
|
+
* @param isSuccessful 是否成功
|
|
70
|
+
* @param error 错误信息(可选)
|
|
71
|
+
* @param modelResponseMetadata 模型响应元数据(可选)
|
|
72
|
+
*/
|
|
73
|
+
reportChatRequestResponseTelemetry(session: Session, result?: RunResult<any, any> | StreamedRunResult<any, any> | undefined, isSuccessful?: boolean, error?: any, modelResponseMetadata?: ModelResponseMetadata): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* 上报流式请求的消息响应埋点
|
|
76
|
+
* @param session 会话对象
|
|
77
|
+
*/
|
|
78
|
+
reportMessageResponseTelemetryStream(session: Session, usage?: {
|
|
79
|
+
inputTokens: number;
|
|
80
|
+
outputTokens: number;
|
|
81
|
+
totalTokens: number;
|
|
82
|
+
requests?: number | undefined;
|
|
83
|
+
inputTokensDetails?: Record<string, number> | undefined;
|
|
84
|
+
outputTokensDetails?: Record<string, number> | undefined;
|
|
85
|
+
}, modelResponseMetadata?: ModelResponseMetadata, error?: any): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* 上报模型工具调用埋点
|
|
88
|
+
* @param session 会话对象
|
|
89
|
+
* @param functionCallResultItem 工具调用结果项
|
|
90
|
+
*/
|
|
91
|
+
reportModelToolCall(session: Session, functionCallResultItem: any): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* 上报手动工具调用埋点
|
|
94
|
+
* @param session 会话对象
|
|
95
|
+
* @param toolCallItem 工具调用项
|
|
96
|
+
* @param toolCallSuccessful 调用是否成功
|
|
97
|
+
* @param toolStatus 工具状态
|
|
98
|
+
* @param toolErrorCode 错误代码
|
|
99
|
+
*/
|
|
100
|
+
reportManualToolCall(session: Session, toolCallItem: any, toolCallSuccessful: boolean, toolStatus: string, toolErrorCode: unknown): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* 上报聊天文件操作埋点
|
|
103
|
+
* @param session 会话对象
|
|
104
|
+
* @param fileActionData 文件操作数据
|
|
105
|
+
*/
|
|
106
|
+
reportChatFileAction(session: Session, fileActionData: {
|
|
107
|
+
languageId: string;
|
|
108
|
+
isNewFile: boolean;
|
|
109
|
+
addLineCount: number;
|
|
110
|
+
removedLines: number;
|
|
111
|
+
addCharCount: number;
|
|
112
|
+
deleteCharCount: number;
|
|
113
|
+
}): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* 上报消息状态埋点(成功或失败)
|
|
116
|
+
* @param session 会话对象
|
|
117
|
+
* @param messageErrorCode 错误代码,成功时为 '0'
|
|
118
|
+
* @param generation 该状态所属的那次模型调用,与同一调用的 chat_message_send / response 同 id
|
|
119
|
+
*/
|
|
120
|
+
reportChatMessageStatus(session: Session, messageErrorCode: string, generation: ModelCallGeneration, error?: unknown): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* 上报达到最大 Token 限制埋点
|
|
123
|
+
* @param session 会话对象
|
|
124
|
+
* @param responseModelId 响应模型 ID(可选)
|
|
125
|
+
*/
|
|
126
|
+
reportChatMaxTokenReached(session: Session, responseModelId?: string): Promise<void>;
|
|
127
|
+
/**
|
|
128
|
+
* 上报代码编辑统计埋点
|
|
129
|
+
* @param languageId 语言 ID
|
|
130
|
+
* @param fileCount 变更文件数
|
|
131
|
+
* @param lineCount 变更行数
|
|
132
|
+
* @param characterCount 变更字符数
|
|
133
|
+
* @param traceId 关联 trace(仅在有 session 上下文时透传)
|
|
134
|
+
* @param session 发起本次请求的 session,用于按客户端来源端归属公共字段
|
|
135
|
+
*/
|
|
136
|
+
reportCodeEdit(languageId: string, fileCount: number, lineCount: number, characterCount: number, traceId?: string, session?: Session): Promise<void>;
|
|
137
|
+
}
|