@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,67 @@
|
|
|
1
|
+
import { Logger } from '../../workspace/telemetry/lib/common/index.js';
|
|
2
|
+
import type { TeammateFailureInfo } from '../agent-team/team-member';
|
|
3
|
+
import { AgentRunInterceptor, AgentRunInterceptorPriority, AgentRunRequest } from '../../vendor/cbc-core/node/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Window within which a recorded teammate failure is still surfaced to the
|
|
6
|
+
* team-lead's system prompt. Older failures are ignored so stale errors do
|
|
7
|
+
* not keep re-polluting future turns.
|
|
8
|
+
*
|
|
9
|
+
* Kept in sync with `docs/workbuddy/fix/task-status-sync/issue-5-teammate-auth-failure.md` §4.3.
|
|
10
|
+
*/
|
|
11
|
+
export declare const TEAMMATE_FAILURE_TTL_MS: number;
|
|
12
|
+
/**
|
|
13
|
+
* Lightweight shape used by `formatTeammateFailuresBlock` — exported for
|
|
14
|
+
* unit tests that exercise the formatting logic without going through
|
|
15
|
+
* CellJS DI + TeamMemberRegistry.
|
|
16
|
+
*/
|
|
17
|
+
export interface TeammateFailureEntry {
|
|
18
|
+
name: string;
|
|
19
|
+
lastFailure?: TeammateFailureInfo;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Pure formatter: given a list of team members (each carrying an optional
|
|
23
|
+
* `lastFailure`) and a `now` timestamp, return the markdown body of the
|
|
24
|
+
* `<teammate-failures>` block, or undefined when there is nothing to report.
|
|
25
|
+
*
|
|
26
|
+
* Filters by TTL so stale failures older than {@link TEAMMATE_FAILURE_TTL_MS}
|
|
27
|
+
* are dropped.
|
|
28
|
+
*
|
|
29
|
+
* This function is the single source of truth for the block's contents so
|
|
30
|
+
* behavior can be verified by unit tests independent of CellJS.
|
|
31
|
+
*/
|
|
32
|
+
export declare function formatTeammateFailuresBlock(members: ReadonlyArray<TeammateFailureEntry>, now?: number): string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Issue 5 · `TeammateFailureInterceptor`
|
|
35
|
+
*
|
|
36
|
+
* When the team-lead starts a new turn, inspect the TeamMemberRegistry for
|
|
37
|
+
* any teammates whose most recent AgentTask failed (non-silentAbort). For
|
|
38
|
+
* each such teammate within the TTL window, emit a `<teammate-failures>`
|
|
39
|
+
* `<system-reminder>` block so the main agent knows NOT to fabricate a
|
|
40
|
+
* success report and instead surfaces the failure to the user.
|
|
41
|
+
*
|
|
42
|
+
* Non-teammate / non-team-lead sessions are left untouched — `intercept`
|
|
43
|
+
* returns early.
|
|
44
|
+
*
|
|
45
|
+
* Design notes:
|
|
46
|
+
* - Runs at priority 1160 (between TeamContext=1175 and MemoryContext=1150)
|
|
47
|
+
* so the failure notice follows the team-lead instructions but precedes
|
|
48
|
+
* memory recall, reflecting its higher importance.
|
|
49
|
+
* - Reads failures from `TeamMember.lastFailure` which is populated by
|
|
50
|
+
* `AgentTask.execute()`'s failed branch (see agent-task.ts
|
|
51
|
+
* `recordTeammateFailure`). Error strings are already sanitized at write
|
|
52
|
+
* time (credentials / URL query stripped, <=500 chars).
|
|
53
|
+
* - Deduplicates within a prompt by checking for `TEAMMATE_FAILURES_MARKER`
|
|
54
|
+
* in the last user message — mirrors the pattern used by
|
|
55
|
+
* `TeamContextInterceptor.shouldInjectTeamPrompt`.
|
|
56
|
+
*/
|
|
57
|
+
export declare class TeammateFailureInterceptor implements AgentRunInterceptor {
|
|
58
|
+
priority: AgentRunInterceptorPriority;
|
|
59
|
+
protected readonly logger: Logger;
|
|
60
|
+
intercept(request: AgentRunRequest): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Check whether the input already contains a `<teammate-failures>` block
|
|
63
|
+
* from a prior interceptor pass (e.g. resumed prompt). Deduplication
|
|
64
|
+
* mirrors `TeamContextInterceptor.shouldInjectTeamPrompt`.
|
|
65
|
+
*/
|
|
66
|
+
private hasExistingFailureMarker;
|
|
67
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 频道附件:对齐上游 SendMessage 的 type:attachment(file:// 路径 → 房间可见的文件)。
|
|
3
|
+
*
|
|
4
|
+
* 设计取舍:
|
|
5
|
+
* - **落盘复制而不是引用原路径**:成员的工作目录会被后续 turn 覆盖/清理,
|
|
6
|
+
* 只存路径的话过几轮就 404;复制一份才谈得上"房间里的东西一直在"。
|
|
7
|
+
* - **有类型与体积上限**:频道是给人看的,不是对象存储。超限/不认识的类型
|
|
8
|
+
* 直接拒绝(由调用方转告模型),避免把 GB 级二进制塞进 agent-home 目录。
|
|
9
|
+
* - **存内容寻址的文件名**:<sha256 前 16 位><ext>,天然去重、也不怕名字里有
|
|
10
|
+
* 斜杠/换行/中文导致路径穿越或展示问题;展示名另存在消息里。
|
|
11
|
+
*/
|
|
12
|
+
import { CHANNEL_ATTACHMENT_MAX_BYTES, CHANNEL_ATTACHMENT_MAX_PER_MESSAGE } from './agent-home-limits';
|
|
13
|
+
/** 上限的唯一来源在 agent-home-limits(web-ui 也直接消费),这里只是 re-export 兼容既有调用方。 */
|
|
14
|
+
export { CHANNEL_ATTACHMENT_MAX_BYTES, CHANNEL_ATTACHMENT_MAX_PER_MESSAGE };
|
|
15
|
+
export interface ChannelAttachment {
|
|
16
|
+
/** 展示名(原文件名)。 */
|
|
17
|
+
name: string;
|
|
18
|
+
/** 存储文件名(内容寻址,直接拼在频道附件目录下)。 */
|
|
19
|
+
file: string;
|
|
20
|
+
mime: string;
|
|
21
|
+
size: number;
|
|
22
|
+
}
|
|
23
|
+
/** 频道附件目录:<homeDir>/agent-home/attachments/<channelId>/。 */
|
|
24
|
+
export declare function channelAttachmentsDir(homeDir: string, channelId: string): string;
|
|
25
|
+
export declare function channelAttachmentMime(name: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* 展示名净化(落盘文件名不用它,只进消息与扩展名推导):
|
|
28
|
+
* 取 basename(路径分隔符一律当分隔符,含 Windows 反斜杠)、去控制字符、截 200。
|
|
29
|
+
* HTTP 上传的名字是**外部输入**,所以这条必须在入口处做,不能只靠"调用方给的是路径"。
|
|
30
|
+
*/
|
|
31
|
+
export declare function channelAttachmentDisplayName(raw: string | undefined): string;
|
|
32
|
+
/**
|
|
33
|
+
* 存储文件名白名单:`<sha256 前 16 位>[.扩展名]`。
|
|
34
|
+
* POST /messages 会收到客户端回传的 `file`(上传时服务端给的哈希名),
|
|
35
|
+
* 必须按这条白名单收窄,不能靠"里面没有斜杠"隐式成立。
|
|
36
|
+
*/
|
|
37
|
+
export declare function normalizeChannelAttachmentFile(raw: unknown): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* 按字节收进频道附件目录(浏览器上传与本地路径两条入口共用的一套规则)。
|
|
40
|
+
* 失败返回原因字符串(给调用方看的人话),成功返回落盘信息。
|
|
41
|
+
*/
|
|
42
|
+
export declare function storeChannelAttachmentBytes(input: {
|
|
43
|
+
homeDir: string;
|
|
44
|
+
channelId: string;
|
|
45
|
+
bytes: Buffer;
|
|
46
|
+
/** 展示名(原文件名);缺省回落 "attachment"。 */
|
|
47
|
+
name?: string;
|
|
48
|
+
}): Promise<{
|
|
49
|
+
ok: true;
|
|
50
|
+
attachment: ChannelAttachment;
|
|
51
|
+
} | {
|
|
52
|
+
ok: false;
|
|
53
|
+
reason: string;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* 把一个本地文件收进频道附件目录。
|
|
57
|
+
* 失败返回原因字符串(给模型看的人话),成功返回落盘信息。
|
|
58
|
+
*/
|
|
59
|
+
export declare function ingestChannelAttachment(input: {
|
|
60
|
+
homeDir: string;
|
|
61
|
+
channelId: string;
|
|
62
|
+
sourcePath: string;
|
|
63
|
+
/** 展示名;缺省用原文件名。 */
|
|
64
|
+
name?: string;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
ok: true;
|
|
67
|
+
attachment: ChannelAttachment;
|
|
68
|
+
} | {
|
|
69
|
+
ok: false;
|
|
70
|
+
reason: string;
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* 解析一个可对外读取的附件(HTTP 路由 / 发消息校验用):路径 + 真实大小。
|
|
74
|
+
* 任何越界/未知文件一律 undefined —— 和 attachments-service 一样的包含性纪律。
|
|
75
|
+
*/
|
|
76
|
+
export declare function resolveChannelAttachment(input: {
|
|
77
|
+
homeDir: string;
|
|
78
|
+
channelId: string;
|
|
79
|
+
file: string;
|
|
80
|
+
}): Promise<{
|
|
81
|
+
path: string;
|
|
82
|
+
size: number;
|
|
83
|
+
} | undefined>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 频道系统事件行(如轮次收场):结构化本体,UI 按当前语言渲染。
|
|
3
|
+
*
|
|
4
|
+
* 零 import:目录记录(agent-home-directory)与 web-ui 都会引用它,
|
|
5
|
+
* 而这两条链路都受 agent-home-web-ui-shared-imports.spec.ts 约束(不许牵出 node 侧重模块)。
|
|
6
|
+
*/
|
|
7
|
+
/** 频道系统事件本体(落盘进 jsonl 的 `systemEvent`,界面按当前语言渲染)。 */
|
|
8
|
+
export interface AgentHomeChannelSystemEvent {
|
|
9
|
+
type: 'room-turn-ended';
|
|
10
|
+
reason: 'timeout' | 'gone' | 'silent' | 'relay-exhausted';
|
|
11
|
+
/** 相关人名("轮到谁没见回应" / "叫了谁都没接住")。 */
|
|
12
|
+
names?: string[];
|
|
13
|
+
}
|
|
14
|
+
/** 落盘时的兜底文案(UI 有 systemEvent 就按当前语言重渲染,text 只是旧记录/导出用)。 */
|
|
15
|
+
export declare function agentHomeChannelSystemEventText(event: AgentHomeChannelSystemEvent): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 任务板**事件本体**与它改动的字段集合:node 域、落盘记录、文案层与 web-ui 共用这一份。
|
|
3
|
+
*
|
|
4
|
+
* 零 import:目录记录(agent-home-directory)与 web-ui 都会引用它,
|
|
5
|
+
* 而这两条链路都受 agent-home-web-ui-shared-imports.spec.ts 约束(不许牵出 node 侧重模块)。
|
|
6
|
+
*/
|
|
7
|
+
/** `updated` 事件改了哪几项(与 i18n 的 field.* 一一对应)。 */
|
|
8
|
+
export type AgentHomeChannelTaskChange = 'subject' | 'detail' | 'assignee' | 'refs' | 'owner';
|
|
9
|
+
export declare function isAgentHomeChannelTaskChange(value: unknown): value is AgentHomeChannelTaskChange;
|
|
10
|
+
/**
|
|
11
|
+
* 结构化事件(落盘进频道 jsonl 的 `taskPayload`,界面按当前语言渲染)。
|
|
12
|
+
* 单任务事件带 `subject`,批量事件带 `taskIds` / `subjects`。
|
|
13
|
+
*/
|
|
14
|
+
export interface AgentHomeChannelTaskEventPayload {
|
|
15
|
+
type: string;
|
|
16
|
+
taskId?: string;
|
|
17
|
+
taskIds?: string[];
|
|
18
|
+
subject?: string;
|
|
19
|
+
subjects?: string[];
|
|
20
|
+
ownerId?: string;
|
|
21
|
+
assigneeId?: string;
|
|
22
|
+
actorId?: string;
|
|
23
|
+
changes?: readonly AgentHomeChannelTaskChange[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/** 落盘后叫醒频道成员。用户发言全员;同事发言只叫 @。 */
|
|
2
|
+
import type { IDaemonProcessManager } from '../../workspace/cbc-daemon/lib/node/index.js';
|
|
3
|
+
import type { IJobStore } from '../agent-view/agent-view-protocol';
|
|
4
|
+
import { type AgentHomeChannel, type AgentHomeChannelMessage, type AgentHomeDirectoryFile } from './agent-home-directory';
|
|
5
|
+
/** 唤醒被跳过时给审计的原因(写进 audit.jsonl 的 wake_skipped)。 */
|
|
6
|
+
export type ChannelWakeSkipReason = 'no-job' | 'error' | 'user-stopped' | 'dead' | 'flood' | 'deferred';
|
|
7
|
+
/** 落盘成功后的叫醒出口:HTTP 回车和 SpeakInChannel 共用。 */
|
|
8
|
+
export declare function wakeAfterChannelSpeech(input: {
|
|
9
|
+
directory: AgentHomeDirectoryFile;
|
|
10
|
+
channel: AgentHomeChannel;
|
|
11
|
+
message: AgentHomeChannelMessage;
|
|
12
|
+
/** speech 侧的结果:这次发言有没有推进轮次。false = 别叫人(待发言的人早就叫过了)。 */
|
|
13
|
+
advancedTurn?: boolean;
|
|
14
|
+
homeDir: string;
|
|
15
|
+
store: IJobStore;
|
|
16
|
+
processManager?: IDaemonProcessManager;
|
|
17
|
+
canRespawn?: boolean;
|
|
18
|
+
reloadDirectory?: () => Promise<AgentHomeDirectoryFile | undefined>;
|
|
19
|
+
onSkip?: (agentId: string, reason: ChannelWakeSkipReason) => void;
|
|
20
|
+
onDelivered?: (agentId: string) => void;
|
|
21
|
+
log?: (message: string) => void;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
export declare function wakeChannelMembers(input: {
|
|
24
|
+
directory: AgentHomeDirectoryFile;
|
|
25
|
+
channel: AgentHomeChannel;
|
|
26
|
+
text: string;
|
|
27
|
+
/** 说话人:user 或成员 agentId。 */
|
|
28
|
+
from?: string;
|
|
29
|
+
mentionNames?: string[];
|
|
30
|
+
messageId?: string;
|
|
31
|
+
/** 这条发言带的附件:信封会带绝对路径(只给名字同事读不到,会去磁盘翻同名旧图)。 */
|
|
32
|
+
attachments?: readonly {
|
|
33
|
+
name: string;
|
|
34
|
+
file: string;
|
|
35
|
+
}[];
|
|
36
|
+
/** 轮转标记(如 "3/10"):这封是轮到你发言,不是被 @。 */
|
|
37
|
+
round?: string;
|
|
38
|
+
homeDir: string;
|
|
39
|
+
store: IJobStore;
|
|
40
|
+
processManager?: IDaemonProcessManager;
|
|
41
|
+
/** 拉起接缝:默认走 respawnColleagueJob + processManager;单测注入假实现。 */
|
|
42
|
+
respawn?: (jobId: string, options?: {
|
|
43
|
+
resumeStopped?: boolean;
|
|
44
|
+
}) => Promise<boolean>;
|
|
45
|
+
/** 默认 true。job worker 里应 false,只写信 + wake 票,避免双 fork。 */
|
|
46
|
+
canRespawn?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 对方进程已死时**干脆不投**。默认 false:正常频道轮转与显式 @ 必须把信写入
|
|
49
|
+
* inbox 并留 wake ticket,让中央 broker 拉起被空闲回收的成员。仅用于调用方明确
|
|
50
|
+
* 只做在线 best-effort 通知的场景;不要按 `from === 'agent'` 自动开启,否则全员轮转
|
|
51
|
+
* 会在第一位之后静默断链。
|
|
52
|
+
*/
|
|
53
|
+
skipIfDead?: boolean;
|
|
54
|
+
/** 没开过 1:1 时按招人同一条路起 job,写上 primaryJobId。不要把 channel.id 写进 jobAssignments。 */
|
|
55
|
+
ensureJob?: (agentId: string) => Promise<string | undefined>;
|
|
56
|
+
onSkip?: (agentId: string, reason: ChannelWakeSkipReason) => void;
|
|
57
|
+
/** 投递成功回调:信已经进对方的 job 收件箱。 */
|
|
58
|
+
onDelivered?: (agentId: string) => void;
|
|
59
|
+
/** 说话人自己不要再吃一封自己的入站。 */
|
|
60
|
+
excludeAgentId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 只叫醒这些成员(仍会去掉 exclude)。
|
|
63
|
+
* 不传 = 全员。传 [] = 谁也不叫(同事没 @ 任何人)。
|
|
64
|
+
*/
|
|
65
|
+
onlyAgentIds?: readonly string[];
|
|
66
|
+
/**
|
|
67
|
+
* 这条消息里**用户真正 @ 到的人**(与 onlyAgentIds 不是一回事:用户发言开一轮时
|
|
68
|
+
* 只叫指针第一位,但那位不一定是被 @ 的)。
|
|
69
|
+
* 只用来判"要不要把被用户终止过的同事重新拉起"。不传 = 退回 onlyAgentIds(工具侧
|
|
70
|
+
* 的定向叫醒本来就只有这一份名单)。
|
|
71
|
+
*/
|
|
72
|
+
mentionedAgentIds?: readonly string[];
|
|
73
|
+
/** 每人投递前再读一次目录,避免解锁后 primary 被改派。 */
|
|
74
|
+
reloadDirectory?: () => Promise<AgentHomeDirectoryFile | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* 这是不是**自动链**(成员发言触发的那一棒):是则过互叫护栏(同轮去重 + 窗口限速)。
|
|
77
|
+
* 用户发言 / @ 点名 / 派单不传,不受限。
|
|
78
|
+
*/
|
|
79
|
+
autoWake?: boolean;
|
|
80
|
+
}): Promise<ChannelWakeOutcome>;
|
|
81
|
+
/**
|
|
82
|
+
* 一次叫醒的结果(调用方据此决定"这一棒要不要当场交给下一位")。
|
|
83
|
+
*
|
|
84
|
+
* - `delivered`:信真的进了对方 job 收件箱且人活着(或被拉起来了)。
|
|
85
|
+
* - `unreachable`:**这次没送到、而且不会再送到**(dead / no-job / user-stopped)——
|
|
86
|
+
* 轮次接力看到自己那一棒落在这里,就必须当场推进指针,不能等看门狗
|
|
87
|
+
* (看门狗只在 `--serve` 表面进程里跑;TUI / 页面关掉时根本没人兜底)。
|
|
88
|
+
* - `deferred` 不进 unreachable:信已入收件箱 + 留了唤醒票,人起来自己会读,
|
|
89
|
+
* 推进指针反而会让他醒来发现"不是我的棒"。
|
|
90
|
+
*/
|
|
91
|
+
export interface ChannelWakeOutcome {
|
|
92
|
+
delivered: string[];
|
|
93
|
+
unreachable: string[];
|
|
94
|
+
}
|
|
95
|
+
/** 叫醒计划:叫谁(已按叫醒池过滤)+ 这封要不要带轮次标记。 */
|
|
96
|
+
export interface ChannelWakePlan {
|
|
97
|
+
targets: string[];
|
|
98
|
+
/** 轮次标记(如 "1/3 · 2/10")。没有进行中的轮次、或这次发言没推进轮次时不带。 */
|
|
99
|
+
round?: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 叫醒判定 —— **唯一一份**。HTTP 回执(要回 wokeAgentIds)与投递
|
|
103
|
+
* (wakeAfterChannelSpeech)都调它;两边输入相同,结论就相同,不存在"两处要保持一致"。
|
|
104
|
+
*/
|
|
105
|
+
export declare function planChannelWake(input: {
|
|
106
|
+
directory: AgentHomeDirectoryFile;
|
|
107
|
+
channel: AgentHomeChannel;
|
|
108
|
+
/** 说话人:'user' 或成员 agentId。 */
|
|
109
|
+
from?: string;
|
|
110
|
+
mentionAgentIds?: readonly string[];
|
|
111
|
+
/** speech 侧结果:这次发言有没有推进/开启轮次。false = 待发言的人早叫过了,别重复叫。 */
|
|
112
|
+
advancedTurn?: boolean;
|
|
113
|
+
/** 说话人自己不吃自己的入站。 */
|
|
114
|
+
excludeAgentId?: string;
|
|
115
|
+
}): ChannelWakePlan;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 频道选项卡卡片(对齐上游 SendMessage 的 type:widget)。
|
|
3
|
+
*
|
|
4
|
+
* 上游语义(照搬结论,注释记理由):
|
|
5
|
+
* - 卡片 = 一个提问 + 2–6 个可选项,用户点一个,选项的 value 作为**用户回复**
|
|
6
|
+
* 回到房间,成员下一轮就能看到"用户选了 X";
|
|
7
|
+
* - **发卡片即结束本轮发言**:模型发完就该停手等用户回答,而不是继续自说自话;
|
|
8
|
+
* - 选项必须是真实可选项,不能现编占位;能用查证解决的别问卡片
|
|
9
|
+
* (上游把"少问"写进工具描述:默认自己决定并推进)。
|
|
10
|
+
*
|
|
11
|
+
* 我们这里的映射:卡片是一条频道消息(kind='widget'),用户点击后走普通的
|
|
12
|
+
* 用户发言(带 replyTo 指向卡片),因此"是否已答"完全可以从既有消息流推导,
|
|
13
|
+
* 不需要改写历史 —— transcript 仍是 append-only。
|
|
14
|
+
*/
|
|
15
|
+
/** 选项上限对齐上游 widget 的 1–6(我们要求至少 2:一个选项不算选择题)。 */
|
|
16
|
+
export declare const CHANNEL_WIDGET_MIN_OPTIONS = 2;
|
|
17
|
+
export declare const CHANNEL_WIDGET_MAX_OPTIONS = 6;
|
|
18
|
+
/** 卡片标题与选项文本的长度上限(防止把整段话塞进卡片)。 */
|
|
19
|
+
export declare const CHANNEL_WIDGET_PROMPT_MAX = 500;
|
|
20
|
+
export declare const CHANNEL_WIDGET_LABEL_MAX = 120;
|
|
21
|
+
export type AgentHomeChannelWidgetStyle = 'default' | 'primary' | 'danger';
|
|
22
|
+
export interface AgentHomeChannelWidgetOption {
|
|
23
|
+
/** 选项按钮上的文字。 */
|
|
24
|
+
label: string;
|
|
25
|
+
/** 用户选中后回传给模型的文本;缺省 = label。 */
|
|
26
|
+
value?: string;
|
|
27
|
+
style?: AgentHomeChannelWidgetStyle;
|
|
28
|
+
}
|
|
29
|
+
export interface AgentHomeChannelWidget {
|
|
30
|
+
prompt: string;
|
|
31
|
+
helpText?: string;
|
|
32
|
+
options: AgentHomeChannelWidgetOption[];
|
|
33
|
+
}
|
|
34
|
+
export type NormalizeChannelWidgetResult = {
|
|
35
|
+
ok: true;
|
|
36
|
+
widget: AgentHomeChannelWidget;
|
|
37
|
+
} | {
|
|
38
|
+
ok: false;
|
|
39
|
+
reason: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* 校验并归一化模型给的卡片。失败返回人话原因(工具结果会原样转告模型,
|
|
43
|
+
* 让它改成合法的卡片或改用普通发言)。
|
|
44
|
+
*/
|
|
45
|
+
export declare function normalizeChannelWidget(raw: unknown): NormalizeChannelWidgetResult;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 落盘:`~/.codebuddy/agent-home/directory.json`。
|
|
3
|
+
* 写必须进 `withAgentHomeDirectoryLock`。
|
|
4
|
+
* Channel ≠ Room ≠ 1:1。组队禁令只在 UI 拦,读盘不按引擎 / 默认踢人。
|
|
5
|
+
*
|
|
6
|
+
* ⚠️ 本模块(连同 agent-home-limits / membership / mentions / envelope-body)会被 web-ui
|
|
7
|
+
* 直接 import。**别在这里引 node 侧的重模块**(../cli、../session、../tools,以及会牵出
|
|
8
|
+
* 它们的 agent-home-errors / agent-home-channel-tasks…):type-only 也会把整个 node 端
|
|
9
|
+
* 拉进前端 typecheck,前端构建会炸出几千条无关的装饰器错误。
|
|
10
|
+
*/
|
|
11
|
+
import type { ChannelAttachment } from './agent-home-attachments';
|
|
12
|
+
import type { AgentHomeChannelSystemEvent } from './agent-home-channel-system-event';
|
|
13
|
+
import type { AgentHomeChannelTaskEventPayload } from './agent-home-channel-task-event';
|
|
14
|
+
import type { AgentHomeChannelWidget } from './agent-home-channel-widget';
|
|
15
|
+
import { type ResolveMeAsAgentOptions } from './agent-home-room-contacts';
|
|
16
|
+
export { CHANNEL_MAX_MEMBERS, GROUP_MIN_MEMBERS } from './agent-home-limits';
|
|
17
|
+
export { agentHomeTeamJoinBlock, blockedTeamAgentIds, canJoinAgentHomeChannel, canJoinAgentHomeRoom, canJoinAgentHomeTeam, type AgentHomeTeamJoinBlock, type RoomMessageCallStyle, roomMessageCallStyle, } from './agent-home-membership';
|
|
18
|
+
export { flattenRoomContacts, resolveRoomContacts, type ResolveMeAsAgentOptions, type RoomContact, type RoomContactScope, } from './agent-home-room-contacts';
|
|
19
|
+
export interface AgentHomeProfile {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
/** 几何头像变体;0 专供默认 Agent,普通同事使用 1..15。 */
|
|
23
|
+
avatarVariant?: number;
|
|
24
|
+
/** 一行职务(侧栏次行可用) */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** 人设 / 系统提示补充 */
|
|
27
|
+
description?: string;
|
|
28
|
+
/** 引擎:cli | ptc | minimal | create | 自定义 agent 名;缺省=产品默认 */
|
|
29
|
+
engine?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 这个同事固定跑哪个模型 / 权限模式(建人时定,启 job 时拼进 --model / --permission-mode)。
|
|
32
|
+
* 缺省 = 跟随产品默认(和用户新开一个 Run 的默认一致)。
|
|
33
|
+
*/
|
|
34
|
+
model?: string;
|
|
35
|
+
permissionMode?: string;
|
|
36
|
+
/** 家目录:新 Run 的默认 cwd */
|
|
37
|
+
homeCwd: string;
|
|
38
|
+
/**
|
|
39
|
+
* 这个人的主对话(第一句 createJob 的那条)。缺省=还没说过话。
|
|
40
|
+
* 点行只打开这一条,不抢桶里最新 Run。
|
|
41
|
+
*/
|
|
42
|
+
primaryJobId?: string;
|
|
43
|
+
visibility: 'visible' | 'hidden';
|
|
44
|
+
/** 侧栏分组。缺省 = 未分组。私信房簇不进分组。 */
|
|
45
|
+
sectionId?: string;
|
|
46
|
+
createdAt: number;
|
|
47
|
+
lastActiveAt?: number;
|
|
48
|
+
/** 被频道 @ 了:侧栏人行黄点。点开人或点开频道再清。 */
|
|
49
|
+
unreadByUser?: number;
|
|
50
|
+
/** 谁建的(自治组的队)。缺省 = user(含历史数据)。 */
|
|
51
|
+
createdBy?: 'user' | 'agent';
|
|
52
|
+
/** 建人者 agentId(createdBy=agent 时)。 */
|
|
53
|
+
createdByAgentId?: string;
|
|
54
|
+
/** 自治创建的深度:默认 Agent 建的人=0,其再建 +1;上限见 agent-home-limits。 */
|
|
55
|
+
depth?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 房间:把已有同事编成一组。只是分组 / ACL,不是第三个说话的人,
|
|
59
|
+
* 也不是 Agent Teams(那套是 `name@team` + `~/.codebuddy/teams/`)。
|
|
60
|
+
* 成员各自的对话和 homeCwd 不变。
|
|
61
|
+
*/
|
|
62
|
+
export interface AgentHomeGroup {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
/** 2–6 人,去重;顺序 = 叠头像 / 成员条顺序。全目录只能有一间房。 */
|
|
66
|
+
memberAgentIds: string[];
|
|
67
|
+
/** 建房时定,加人/移出都不改(免得 Files 乱跳) */
|
|
68
|
+
homeCwd: string;
|
|
69
|
+
visibility: 'visible' | 'hidden';
|
|
70
|
+
pinned?: boolean;
|
|
71
|
+
/** 未置顶时的顺序,默认 createdAt */
|
|
72
|
+
sortIndex: number;
|
|
73
|
+
createdAt: number;
|
|
74
|
+
lastActiveAt?: number;
|
|
75
|
+
unreadByUser?: number;
|
|
76
|
+
lastPreview?: string;
|
|
77
|
+
/** 组队中(Agent Teams 的队名):禁止改成员 / 解散 */
|
|
78
|
+
activeTeamName?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 频道:通讯录里和人对等的一条群对话。
|
|
82
|
+
* 不是私信房(groups):房间没有自己的会话;频道有自己的 transcript。
|
|
83
|
+
* 主键是 `id`(UUID),可以多间;禁止把 channel.id 写进 jobAssignments。
|
|
84
|
+
* `transcriptId` 必须等于 `id`,jsonl 路径 `channels/<id>.jsonl`。
|
|
85
|
+
*/
|
|
86
|
+
export interface AgentHomeChannel {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
/** 2–6 人,都在 agents[]。用户发言可全员叫醒;成员发言只叫 @。默认 Agent 不叫。 */
|
|
90
|
+
memberAgentIds: string[];
|
|
91
|
+
/** 频道自己的会话 id,不是 jobId */
|
|
92
|
+
transcriptId: string;
|
|
93
|
+
/** 有人提文件时才用;默认第一个成员的家。不改成员档案。 */
|
|
94
|
+
homeCwd: string;
|
|
95
|
+
visibility: 'visible' | 'hidden';
|
|
96
|
+
pinned?: boolean;
|
|
97
|
+
sectionId?: string;
|
|
98
|
+
sortIndex: number;
|
|
99
|
+
unreadByUser?: number;
|
|
100
|
+
lastPreview?: string;
|
|
101
|
+
lastActiveAt?: number;
|
|
102
|
+
createdAt: number;
|
|
103
|
+
/**
|
|
104
|
+
* 频道 lead:看板快照只推给 lead,dispatch / escalate 也只有 lead 能调。
|
|
105
|
+
* 缺省 = user-as-lead(用户自己编排)。被移出成员时 sanitize 会清掉,自动降级。
|
|
106
|
+
*/
|
|
107
|
+
leadAgentId?: string;
|
|
108
|
+
/** 谁建的频道。缺省 = user(含历史数据)。 */
|
|
109
|
+
createdBy?: 'user' | 'agent';
|
|
110
|
+
createdByAgentId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* 进行中的房间轮次(对齐上游群聊:一次 room turn 最多 3 轮 / 10 条发言)。
|
|
113
|
+
* 不存在 = 当前没有轮次;由 channel-room-turn.ts 的状态机推进。
|
|
114
|
+
*/
|
|
115
|
+
roomTurn?: AgentHomeChannelRoomTurn;
|
|
116
|
+
/**
|
|
117
|
+
* 跨人共享房间的 id(占位,对齐上游 SandGroupConfig.sharedRoomId):
|
|
118
|
+
* 本机频道将来挂到共享房间上时填这里,现在不参与判定。
|
|
119
|
+
*/
|
|
120
|
+
sharedRoomId?: string;
|
|
121
|
+
/** 共享房间的主机(占位,对齐上游 SandRemoteRoomConfig.hostAuthId/hostName)。 */
|
|
122
|
+
host?: {
|
|
123
|
+
authId: string;
|
|
124
|
+
name: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/** 房间轮次状态;字段语义见 agent-home-channel-room-turn.ts。 */
|
|
128
|
+
export interface AgentHomeChannelRoomTurn {
|
|
129
|
+
startedAt: number;
|
|
130
|
+
round: number;
|
|
131
|
+
messages: number;
|
|
132
|
+
responderIds: string[];
|
|
133
|
+
order: string[];
|
|
134
|
+
cursor: number;
|
|
135
|
+
/** 当前这一棒是什么时候交出去的(看门狗按它算"刚叫醒"保护,而不是按轮起点)。 */
|
|
136
|
+
cursorSetAt?: number;
|
|
137
|
+
spokenThisRound: number;
|
|
138
|
+
/** 每人本轮已计条数(上限 ROOM_MAX_MESSAGES_PER_TURN)。 */
|
|
139
|
+
spokenByAgent?: Record<string, number>;
|
|
140
|
+
/**
|
|
141
|
+
* 这一棒已经催过几次(对齐上游 ack 语义:收到消息不回应算欠一条回信)。
|
|
142
|
+
* 到上限就不再催,避免无限烧钱。
|
|
143
|
+
*/
|
|
144
|
+
nudges?: number;
|
|
145
|
+
/**
|
|
146
|
+
* 上一次催办的时间。与 cursorSetAt(交棒时刻)分开:催办要按"上次催了多久"
|
|
147
|
+
* 算间隔,交棒时刻还要给"进程死了多少秒才跳过"的保护窗用——催办刷新交棒时刻
|
|
148
|
+
* 会把死人的保护窗一起拉长(实测会让看门狗误判)。
|
|
149
|
+
*/
|
|
150
|
+
lastNudgeAt?: number;
|
|
151
|
+
}
|
|
152
|
+
/** 频道 jsonl 一行。不进 JobStore,也不进对方 1:1。 */
|
|
153
|
+
export interface AgentHomeChannelMessage {
|
|
154
|
+
id: string;
|
|
155
|
+
at: number;
|
|
156
|
+
from: 'user' | 'agent' | 'system';
|
|
157
|
+
agentId?: string;
|
|
158
|
+
text: string;
|
|
159
|
+
mentionAgentIds?: string[];
|
|
160
|
+
/**
|
|
161
|
+
* 任务板事件行(kind='task'):text 是给人看的一行事件描述,
|
|
162
|
+
* taskPayload 是结构化本体(UI 按当前语言渲染);taskEvent/taskId 只是
|
|
163
|
+
* 透传给前端的事件类型/任务 id 冗余字段(渲染只用 taskPayload)。
|
|
164
|
+
*/
|
|
165
|
+
kind?: 'task' | 'widget' | 'system';
|
|
166
|
+
/**
|
|
167
|
+
* 系统事件行(kind='system'):text 是给人看的一行兜底描述,
|
|
168
|
+
* systemEvent 是结构化本体(UI 按当前语言渲染)。
|
|
169
|
+
*/
|
|
170
|
+
systemEvent?: AgentHomeChannelSystemEvent;
|
|
171
|
+
taskEvent?: string;
|
|
172
|
+
taskId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* 结构化事件本体。UI 用它**按当前语言**渲染这一行(text 只是当时写下的那份,
|
|
175
|
+
* 英文界面不该看到中文系统行);缺它(老记录)时回落 text。
|
|
176
|
+
*/
|
|
177
|
+
taskPayload?: AgentHomeChannelTaskEventPayload;
|
|
178
|
+
/**
|
|
179
|
+
* 弃权标记("(pass)")。对齐上游:pass 不写进 transcript、不计入轮次条数,
|
|
180
|
+
* 只用于推进轮转 —— 所以它只存在于内存里的这条消息上,不落盘。
|
|
181
|
+
*/
|
|
182
|
+
pass?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* 选项卡卡片(对齐上游 SendMessage 的 type:widget):
|
|
185
|
+
* 用户点选后以普通用户发言回到房间(带 replyTo 指向本条),
|
|
186
|
+
* 因此"是否已答/答了什么"直接从消息流推导,不改写历史。
|
|
187
|
+
*/
|
|
188
|
+
widget?: AgentHomeChannelWidget;
|
|
189
|
+
/**
|
|
190
|
+
* 附件(对齐上游 SendMessage 的 type:attachment):
|
|
191
|
+
* 落盘时已复制进频道附件目录,file 是内容寻址的存储名。
|
|
192
|
+
*/
|
|
193
|
+
attachments?: ChannelAttachment[];
|
|
194
|
+
/**
|
|
195
|
+
* 引用的消息 id(对齐上游 SendMessage 的 reply_to)。
|
|
196
|
+
* 房间历史里的每条消息都带一个短地址(#xxxxxxxx),成员用地址引用;
|
|
197
|
+
* 落盘存解析后的完整 id,UI 据此在气泡上方画一条引用。
|
|
198
|
+
*/
|
|
199
|
+
replyTo?: string;
|
|
200
|
+
}
|
|
201
|
+
/** 侧栏分段。缺省 = 未分组。私信房簇不进分组。 */
|
|
202
|
+
/**
|
|
203
|
+
* 外部成员(占位,对齐上游 RemoteRoomMember):将来跨人/跨机协作时,
|
|
204
|
+
* 房间里可能出现"别人的 agent"或"另一个人"。现在**只留字段位**,
|
|
205
|
+
* 读盘原样透传,不参与任何权限/唤醒判定。
|
|
206
|
+
*/
|
|
207
|
+
export interface AgentHomeRemoteMember {
|
|
208
|
+
kind: 'agent' | 'human';
|
|
209
|
+
/** 对方的稳定身份(上游 authId):同一个人的多个 agent 共享它。 */
|
|
210
|
+
authId: string;
|
|
211
|
+
/** kind=agent 时是对方的 agentId;human 时空。 */
|
|
212
|
+
agentId?: string;
|
|
213
|
+
displayName: string;
|
|
214
|
+
avatarUrl?: string;
|
|
215
|
+
}
|
|
216
|
+
export interface AgentHomeSection {
|
|
217
|
+
id: string;
|
|
218
|
+
name: string;
|
|
219
|
+
sortIndex: number;
|
|
220
|
+
}
|
|
221
|
+
export interface AgentHomeDirectoryFile {
|
|
222
|
+
version: 1;
|
|
223
|
+
defaultAgentId: string;
|
|
224
|
+
agents: AgentHomeProfile[];
|
|
225
|
+
/** jobId → 同事 agentId。没有映射的 job 未认领;默认 Agent 不进 jobs/。 */
|
|
226
|
+
jobAssignments: Record<string, string>;
|
|
227
|
+
/**
|
|
228
|
+
* sessionId → 同事 agentId:会话级身份登记。
|
|
229
|
+
*
|
|
230
|
+
* jobId 是进程级一次性信号(`claimJobIdentity` 读完即从 env 摘除),job 内派生的会话、
|
|
231
|
+
* 以及「新建智能体」首轮尚未写入 jobAssignments 的窗口里都拿不到它 —— 那时同事解析不出
|
|
232
|
+
* 自己是谁,频道工具会整体消失。本表是持久归属,按会话 id 兜住这些形态。
|
|
233
|
+
* 旧文件没有该字段,读成 {},version 不升。
|
|
234
|
+
*/
|
|
235
|
+
sessionAssignments?: Record<string, string>;
|
|
236
|
+
/** 房间。旧文件没有这个字段,读成 [],version 不升。 */
|
|
237
|
+
groups: AgentHomeGroup[];
|
|
238
|
+
/** 频道。旧文件没有这个字段,读成 [],version 不升。 */
|
|
239
|
+
channels?: AgentHomeChannel[];
|
|
240
|
+
/** 侧栏分组。旧文件没有这个字段,读成 []。 */
|
|
241
|
+
sections?: AgentHomeSection[];
|
|
242
|
+
/**
|
|
243
|
+
* 外部成员(占位,对齐上游 remote-room.json 的 members):跨人协作的未来入口。
|
|
244
|
+
* 读盘清洗只做格式校验;不参与成员资格 / 唤醒 / 权限。
|
|
245
|
+
*/
|
|
246
|
+
externalMembers?: AgentHomeRemoteMember[];
|
|
247
|
+
}
|
|
248
|
+
export declare function agentHomeDirectoryPath(homeDir: string): string;
|
|
249
|
+
export { mentionAgentIdsFromText } from './agent-home-mentions';
|
|
250
|
+
export declare function bumpUnread(target: {
|
|
251
|
+
unreadByUser?: number;
|
|
252
|
+
}): void;
|
|
253
|
+
/**
|
|
254
|
+
* 把默认 Agent 的家目录投影为宿主进程的当前启动目录(`--serve` cwd)。
|
|
255
|
+
*
|
|
256
|
+
* 档案只在首次 bootstrap 时记过一次 homeCwd,之后换目录启动不会更新 —— 主对话的
|
|
257
|
+
* 工作区(顶栏副标题 / 输入框目录 chip / 空状态 / 侧栏 chip)会一直显示历史目录。
|
|
258
|
+
* **只投影读快照、不落盘**:同一个 HOME 可能并存多个宿主(TUI + 多个 serve),落盘
|
|
259
|
+
* 会让默认 Agent 的家目录在它们之间来回改写。job 进程别传 hostCwd(同事 Run 的 cwd
|
|
260
|
+
* 是同事家目录)。值没变时保留原对象引用 —— 目录 15s 轮询一次,引用一换 memo 链就断。
|
|
261
|
+
*/
|
|
262
|
+
export declare function projectDefaultAgentHostCwd<T extends {
|
|
263
|
+
id: string;
|
|
264
|
+
homeCwd: string;
|
|
265
|
+
}>(agents: T[], defaultAgentId: string | null | undefined, hostCwd: string | undefined): T[];
|
|
266
|
+
/** 原子写 directory.json。调用方必须已经持有 withAgentHomeDirectoryLock。 */
|
|
267
|
+
export declare function writeAgentHomeDirectoryFile(homeDir: string, directory: AgentHomeDirectoryFile): Promise<void>;
|
|
268
|
+
/**
|
|
269
|
+
* 只读加载。文件不存在 / 损坏 / 版本对不上都返回 undefined——
|
|
270
|
+
* 读方一律降级成「没有房间」,绝不代替控制器 bootstrap 或写盘。
|
|
271
|
+
*/
|
|
272
|
+
export declare function readAgentHomeDirectory(homeDir: string): Promise<AgentHomeDirectoryFile | undefined>;
|
|
273
|
+
/**
|
|
274
|
+
* 同步版:给必须同步作答的调用点用(工具的 isEnabled)。
|
|
275
|
+
* 目录是几 KB 的本地 JSON,且写方用的是原子 rename,读到的永远是完整文件。
|
|
276
|
+
*/
|
|
277
|
+
export declare function readAgentHomeDirectorySync(homeDir: string): AgentHomeDirectoryFile | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* 叫醒落点:只认仍归这个人的 primaryJobId。
|
|
280
|
+
* primary 被改派走:如果只剩一条 assignment 就用那条;多条不猜 Object.entries 顺序。
|
|
281
|
+
* 未映射的 primary 归默认 Agent 名下,不能当这个人的投递点。
|
|
282
|
+
*/
|
|
283
|
+
export declare function resolveMemberJobId(directory: AgentHomeDirectoryFile, agentId: string): string | undefined;
|
|
284
|
+
export declare function ownedJobIds(directory: AgentHomeDirectoryFile, agentId: string): string[];
|
|
285
|
+
/**
|
|
286
|
+
* 幽灵 job 对账用的清理:把这条 job 的映射整个忘掉(认领关系 + 任何指向它的 primary)。
|
|
287
|
+
* 返回有没有真的改到。纯函数,调用方负责在目录锁内落盘。
|
|
288
|
+
*
|
|
289
|
+
* 为什么需要:用户删掉某个 Run 之后,directory 里的 primaryJobId/jobAssignments 仍指向它;
|
|
290
|
+
* 于是「招人」判定命中 existing 不再重建,投递只会把信写进一个复活出来的空壳目录。成员就此永久哑掉。
|
|
291
|
+
*/
|
|
292
|
+
export declare function forgetJobId(directory: AgentHomeDirectoryFile, jobId: string): boolean;
|
|
293
|
+
/** 我能说话的可见频道。不是房间 ACL。
|
|
294
|
+
* 主 Agent 不在成员表里(它是委托侧的工作现场),但说出来的话就是用户的话,
|
|
295
|
+
* 所以它对每个可见频道都能发言;同事仍然只认自己名下的频道。
|
|
296
|
+
*/
|
|
297
|
+
export declare function channelsForSelf(directory: AgentHomeDirectoryFile | undefined, jobId?: string, sessionId?: string): AgentHomeChannel[];
|
|
298
|
+
/**
|
|
299
|
+
* 当前说话人。没有 job id = 主会话默认 Agent(用户 1:1,不是同事)。
|
|
300
|
+
* job worker 必须对上 primaryJobId / jobAssignments;认不出时看 options(见
|
|
301
|
+
* ResolveMeAsAgentOptions):可见性路径回落默认 Agent,动作路径传
|
|
302
|
+
* `{ fallbackToDefault: false }` 拿 undefined 并据此拒绝。
|
|
303
|
+
*/
|
|
304
|
+
export declare function resolveAgentHomeSelf(directory: AgentHomeDirectoryFile | undefined, jobId?: string, sessionId?: string, options?: ResolveMeAsAgentOptions): AgentHomeProfile | undefined;
|