@tencent-ai/agent-harness 0.2.0-beta.6 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/cli/CHANGELOG.md +123 -0
- package/cli/dist-server/lite/in-memory-session-store.js +1 -1
- package/cli/dist-server/shared.cjs +338 -291
- package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
- package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
- package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
- package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
- package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
- package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
- package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
- package/cli/dist-server/types/node/agent/index.d.ts +22 -0
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
- package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
- package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
- package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
- package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
- package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
- package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
- package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
- package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
- package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
- package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
- package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
- package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
- package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
- package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
- package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
- package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
- package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
- package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
- package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
- package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
- package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
- package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
- package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
- package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
- package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
- package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
- package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
- package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
- package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
- package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
- package/cli/dist-server/types/node/ask/index.d.ts +3 -0
- package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
- package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
- package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
- package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
- package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
- package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
- package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
- package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
- package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
- package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
- package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
- package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
- package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
- package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
- package/cli/dist-server/types/node/channel/index.d.ts +5 -0
- package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
- package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
- package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
- package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
- package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
- package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
- package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
- package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
- package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
- package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
- package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
- package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
- package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
- package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/index.d.ts +66 -0
- package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
- package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
- package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
- package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
- package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
- package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
- package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
- package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
- package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
- package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
- package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
- package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
- package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
- package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
- package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
- package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
- package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
- package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
- package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
- package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
- package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
- package/cli/dist-server/types/node/console/index.d.ts +2 -0
- package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
- package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
- package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
- package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
- package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
- package/cli/dist-server/types/node/debug/index.d.ts +3 -0
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
- package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
- package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
- package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
- package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
- package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
- package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
- package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
- package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
- package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
- package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
- package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
- package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
- package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
- package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
- package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
- package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
- package/cli/dist-server/types/node/http/index.d.ts +6 -0
- package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
- package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
- package/cli/dist-server/types/node/install/index.d.ts +6 -0
- package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
- package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
- package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
- package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
- package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
- package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
- package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
- package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
- package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
- package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
- package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
- package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
- package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
- package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
- package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
- package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
- package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
- package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
- package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
- package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
- package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
- package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
- package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
- package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
- package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
- package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
- package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
- package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
- package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
- package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
- package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
- package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
- package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
- package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
- package/cli/dist-server/types/node/memory/index.d.ts +20 -0
- package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
- package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
- package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
- package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
- package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
- package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
- package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
- package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
- package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
- package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
- package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
- package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
- package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
- package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
- package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
- package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
- package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
- package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
- package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
- package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
- package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
- package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
- package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
- package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
- package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
- package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
- package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
- package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
- package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
- package/cli/dist-server/types/node/permission/index.d.ts +16 -0
- package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
- package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
- package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
- package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
- package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
- package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
- package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
- package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
- package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
- package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
- package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
- package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
- package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
- package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
- package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
- package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
- package/cli/dist-server/types/node/product/index.d.ts +21 -0
- package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
- package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
- package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
- package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
- package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
- package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
- package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
- package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
- package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
- package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
- package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
- package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
- package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
- package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
- package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
- package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
- package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
- package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
- package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
- package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
- package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
- package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
- package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
- package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
- package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
- package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
- package/cli/dist-server/types/node/server/types.d.ts +11 -2
- package/cli/dist-server/types/node/session/index.d.ts +15 -0
- package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
- package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
- package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
- package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
- package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
- package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
- package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
- package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
- package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
- package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
- package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
- package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
- package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
- package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
- package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
- package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
- package/cli/dist-server/types/node/settings/index.d.ts +8 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
- package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
- package/cli/dist-server/types/node/shell/index.d.ts +10 -0
- package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
- package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
- package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
- package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
- package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
- package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
- package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
- package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
- package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
- package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
- package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
- package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
- package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
- package/cli/dist-server/types/node/stats/index.d.ts +5 -0
- package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
- package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
- package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
- package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
- package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
- package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
- package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
- package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
- package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
- package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
- package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
- package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
- package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
- package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
- package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
- package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
- package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
- package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
- package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
- package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
- package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
- package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
- package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
- package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
- package/cli/dist-server/types/node/tips/index.d.ts +4 -0
- package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
- package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
- package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
- package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
- package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
- package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
- package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
- package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
- package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
- package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
- package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
- package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
- package/cli/dist-server/types/node/tools/index.d.ts +109 -0
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
- package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
- package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
- package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
- package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
- package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
- package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
- package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
- package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
- package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
- package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
- package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
- package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
- package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
- package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
- package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
- package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
- package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
- package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
- package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
- package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
- package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
- package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
- package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
- package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
- package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
- package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
- package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
- package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
- package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
- package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
- package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
- package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
- package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
- package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
- package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
- package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
- package/cli/dist-server/types/node/vim/index.d.ts +2 -0
- package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
- package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/vendor/cbc-core/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +12 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/background-task-protocol.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +8 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +59 -7
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/truncation-recovery.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/concurrency-utils.d.ts +5 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
- package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +69 -44
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +6 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
- package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +1 -1
- package/cli/product.internal.json +1 -1
- package/cli/product.ioa.json +1 -1
- package/cli/product.json +1 -1
- package/cli/product.selfhosted.json +1 -1
- package/docs/client.md +62 -0
- package/docs/in-process.md +151 -14
- package/docs/server.md +40 -1
- package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
- package/executor/lib/capsule/entry.mjs +8 -8
- package/executor/lib/capsule/manifest.json +2 -2
- package/executor/lib/private-protocol.cjs +33 -2
- package/executor/lib/private-protocol.d.cts +21 -1
- package/executor/lib/types.d.cts +15 -0
- package/lib/agent/v2.d.ts +1 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +13 -1
- package/lib/application/services.js +1 -1
- package/lib/cli/main.js +3 -3
- package/lib/client/rpc.d.ts +16 -0
- package/lib/components/functional-hooks.d.mts +4 -0
- package/lib/components/functional-hooks.mjs +1 -0
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/hooks.d.ts +8 -0
- package/lib/harness/hooks.js +1 -0
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +7 -2
- package/lib/integration/agent-integration.d.ts +5 -1
- package/lib/integration/agent-integration.js +1 -1
- package/lib/integration/client-mcp-attachment.d.ts +5 -1
- package/lib/integration/client-mcp-attachment.js +1 -1
- package/lib/integration/executor-supervisor.d.ts +10 -1
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/integration/session-mcp-scope.d.ts +5 -1
- package/lib/integration/session-mcp-scope.js +1 -1
- package/lib/integration/session-mcp-view.d.ts +6 -1
- package/lib/integration/session-mcp-view.js +1 -1
- package/lib/mcp-server/module.d.ts +22 -2
- package/lib/mcp-server/module.js +1 -1
- package/lib/mcp-server/rpcs.d.ts +174 -123
- package/lib/mcp-server/rpcs.js +1 -1
- package/lib/mcp-server/schemas.d.ts +33 -0
- package/lib/mcp-server/schemas.js +1 -1
- package/lib/protocol/rpc.d.ts +73 -3
- package/lib/public.d.ts +1 -1
- package/package.json +24 -20
|
@@ -0,0 +1,1567 @@
|
|
|
1
|
+
import { Event } from '@celljs/core';
|
|
2
|
+
import { McpConfig } from '../../../../../node/mcp/index.js';
|
|
3
|
+
import { SettingsScope } from '../../../../../node/settings/index.js';
|
|
4
|
+
import { MarketplaceConfigItem, ProductConfiguration } from '../../../../product/lib/common/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* 市场配置项(带名称)
|
|
7
|
+
* 用于内部处理,将对象结构转换为数组结构
|
|
8
|
+
*/
|
|
9
|
+
export interface MarketplaceConfigEntry extends MarketplaceConfigItem {
|
|
10
|
+
/** 市场名称 */
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 插件状态枚举
|
|
15
|
+
*/
|
|
16
|
+
export declare enum PluginStatus {
|
|
17
|
+
/** 已安装但未启用 */
|
|
18
|
+
Installed = "installed",
|
|
19
|
+
/** 已启用 */
|
|
20
|
+
Enabled = "enabled",
|
|
21
|
+
/** 已禁用 */
|
|
22
|
+
Disabled = "disabled"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 市场类型枚举
|
|
26
|
+
*/
|
|
27
|
+
export declare enum MarketplaceType {
|
|
28
|
+
/** 本地文件系统 */
|
|
29
|
+
Directory = "directory",
|
|
30
|
+
/** Github仓库 */
|
|
31
|
+
Github = "github",
|
|
32
|
+
/** Git仓库 */
|
|
33
|
+
Git = "git",
|
|
34
|
+
/** HTTP/HTTPS远端 */
|
|
35
|
+
URL = "url",
|
|
36
|
+
/** Zip/Tgz/Tar.gz 归档包(http(s) URL 或本地文件路径) */
|
|
37
|
+
Zip = "zip"
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 插件扩展类型
|
|
41
|
+
*/
|
|
42
|
+
export declare enum PluginExtensionType {
|
|
43
|
+
Agent = "agent",
|
|
44
|
+
Command = "command",
|
|
45
|
+
Skill = "skill",
|
|
46
|
+
MCP = "mcp",
|
|
47
|
+
Hook = "hook",
|
|
48
|
+
LSP = "lsp",
|
|
49
|
+
OutputStyle = "output-style",
|
|
50
|
+
Settings = "settings"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Provider优先级常量
|
|
54
|
+
*/
|
|
55
|
+
export declare namespace MarketplaceProviderPriority {
|
|
56
|
+
const Local = 1000;
|
|
57
|
+
const Git = 2000;
|
|
58
|
+
const Http = 3000;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* MCP服务器配置
|
|
62
|
+
*/
|
|
63
|
+
export interface MCPServerConfig {
|
|
64
|
+
/** 服务器名称 */
|
|
65
|
+
name: string;
|
|
66
|
+
/** 执行命令 */
|
|
67
|
+
command: string;
|
|
68
|
+
/** 命令参数 */
|
|
69
|
+
args?: string[];
|
|
70
|
+
/** 环境变量 */
|
|
71
|
+
env?: Record<string, string>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* LSP 服务器配置
|
|
75
|
+
*/
|
|
76
|
+
export interface LspServerConfig {
|
|
77
|
+
/** LSP 可执行命令 (must be in PATH) */
|
|
78
|
+
command: string;
|
|
79
|
+
/** 命令参数 */
|
|
80
|
+
args?: string[];
|
|
81
|
+
/** 文件扩展名到语言 ID 的映射 */
|
|
82
|
+
extensionToLanguage: Record<string, string>;
|
|
83
|
+
/** 通信传输方式 */
|
|
84
|
+
transport?: 'stdio' | 'socket';
|
|
85
|
+
/** 环境变量 */
|
|
86
|
+
env?: Record<string, string>;
|
|
87
|
+
/** 初始化选项 */
|
|
88
|
+
initializationOptions?: any;
|
|
89
|
+
/** 服务器设置 */
|
|
90
|
+
settings?: any;
|
|
91
|
+
/** 工作区路径 */
|
|
92
|
+
workspaceFolder?: string;
|
|
93
|
+
/** 启动超时(毫秒) */
|
|
94
|
+
startupTimeout?: number;
|
|
95
|
+
/** 关闭超时(毫秒) */
|
|
96
|
+
shutdownTimeout?: number;
|
|
97
|
+
/** 崩溃时自动重启 */
|
|
98
|
+
restartOnCrash?: boolean;
|
|
99
|
+
/** 最大重启次数 */
|
|
100
|
+
maxRestarts?: number;
|
|
101
|
+
/** 日志配置 */
|
|
102
|
+
loggingConfig?: {
|
|
103
|
+
/** 是否启用日志 */
|
|
104
|
+
enabled?: boolean;
|
|
105
|
+
/** 日志级别 */
|
|
106
|
+
level?: 'off' | 'messages' | 'verbose';
|
|
107
|
+
};
|
|
108
|
+
/** 是否在注册时立即启动(默认 false,即懒加载模式) */
|
|
109
|
+
eager?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export type PluginHooksConfig = Record<string, any> | string | Array<Record<string, any> | string>;
|
|
112
|
+
/**
|
|
113
|
+
* 插件清单结构 (plugin.json)
|
|
114
|
+
*/
|
|
115
|
+
export interface PluginManifest {
|
|
116
|
+
/** 插件唯一标识符 */
|
|
117
|
+
name: string;
|
|
118
|
+
/** 插件版本(遵循语义化版本) */
|
|
119
|
+
version?: string;
|
|
120
|
+
/** 插件描述 */
|
|
121
|
+
description?: string;
|
|
122
|
+
/** 作者信息 */
|
|
123
|
+
author?: {
|
|
124
|
+
name: string;
|
|
125
|
+
email?: string;
|
|
126
|
+
url?: string;
|
|
127
|
+
};
|
|
128
|
+
/** 许可证 */
|
|
129
|
+
license?: string;
|
|
130
|
+
/** 插件主页 */
|
|
131
|
+
homepage?: string;
|
|
132
|
+
/** 仓库URL */
|
|
133
|
+
repository?: string;
|
|
134
|
+
/** 关键词 */
|
|
135
|
+
keywords?: string[];
|
|
136
|
+
/** 插件分类 */
|
|
137
|
+
category?: string;
|
|
138
|
+
/** Agent 配置:支持指定的 agent 文件或目录路径 */
|
|
139
|
+
agents?: string[] | string;
|
|
140
|
+
/** Command 配置:支持指定的 command 文件或目录路径 */
|
|
141
|
+
commands?: string[] | string;
|
|
142
|
+
/** Skill 配置:支持指定的 skill 文件或目录路径 */
|
|
143
|
+
skills?: string[] | string;
|
|
144
|
+
/** Hook 配置:支持指定的 hook 配置或文件路径 */
|
|
145
|
+
hooks?: PluginHooksConfig;
|
|
146
|
+
/** MCP 服务器配置:支持指定的 MCP 服务器配置或文件路径 */
|
|
147
|
+
mcpServers?: Record<string, McpConfig> | string;
|
|
148
|
+
/** MCP Bundle 配置:预打包的 MCP 服务(远程 URL 或本地 .mcpb/.dxt 文件) */
|
|
149
|
+
mcpBundles?: McpBundleEntry[];
|
|
150
|
+
/** LSP 服务器配置:支持指定的 LSP 服务器配置或文件路径 */
|
|
151
|
+
lspServers?: Record<string, LspServerConfig> | string;
|
|
152
|
+
/** 插件默认设置(启用时合并到 settings 系统,使用 allowlist 机制) */
|
|
153
|
+
settings?: PluginSettings;
|
|
154
|
+
/** 默认是否启用。显式 false 时安装后保持 disabled,除非依赖解析需要显式启用。 */
|
|
155
|
+
defaultEnabled?: boolean;
|
|
156
|
+
/** Legacy top-level theme 配置;当前 agent-cli 仅识别,不加载到运行时。 */
|
|
157
|
+
themes?: string[] | string;
|
|
158
|
+
/** Legacy top-level monitor 配置;当前 agent-cli 仅识别,不启动 monitor。 */
|
|
159
|
+
monitors?: string | PluginMonitorEntry[];
|
|
160
|
+
/** 实验组件配置,兼容 Claude Code manifest schema。 */
|
|
161
|
+
experimental?: {
|
|
162
|
+
themes?: string[] | string;
|
|
163
|
+
monitors?: string | PluginMonitorEntry[];
|
|
164
|
+
[key: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
/** Output style 配置:支持指定的 output-style 文件路径 */
|
|
167
|
+
outputStyles?: string[] | string;
|
|
168
|
+
/** 用户配置选项定义(安装时交互式收集) */
|
|
169
|
+
userConfig?: Record<string, PluginUserConfigField>;
|
|
170
|
+
/** 插件依赖列表。字符串默认解析到同 marketplace;对象可声明 version / marketplace。 */
|
|
171
|
+
dependencies?: PluginDependency[];
|
|
172
|
+
/** 依赖要求 */
|
|
173
|
+
requirements?: {
|
|
174
|
+
/** Claude Code版本要求 */
|
|
175
|
+
claude_code?: string;
|
|
176
|
+
/** Node.js版本要求 */
|
|
177
|
+
node?: string;
|
|
178
|
+
/** 其他自定义要求 */
|
|
179
|
+
[key: string]: string | undefined;
|
|
180
|
+
};
|
|
181
|
+
/** 功能列表 */
|
|
182
|
+
features?: string[];
|
|
183
|
+
/** 安装命令 */
|
|
184
|
+
installation?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 市场清单结构 (marketplace.json)
|
|
188
|
+
*/
|
|
189
|
+
export interface MarketplaceManifest {
|
|
190
|
+
/** 市场名称 */
|
|
191
|
+
name: string;
|
|
192
|
+
/** 市场描述 */
|
|
193
|
+
description?: string;
|
|
194
|
+
/** 所有者信息 */
|
|
195
|
+
owner?: {
|
|
196
|
+
name: string;
|
|
197
|
+
email?: string;
|
|
198
|
+
};
|
|
199
|
+
/** 插件列表 */
|
|
200
|
+
plugins: MarketplacePluginEntry[];
|
|
201
|
+
/**
|
|
202
|
+
* 允许自动安装跨 marketplace 依赖的目标 marketplace 名称列表。
|
|
203
|
+
* 仅 root marketplace 的 allowlist 生效,不做传递信任。
|
|
204
|
+
*/
|
|
205
|
+
allowCrossMarketplaceDependenciesOn?: string[];
|
|
206
|
+
/** 市场版本 */
|
|
207
|
+
version?: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* 插件源类型
|
|
211
|
+
*/
|
|
212
|
+
export declare enum PluginSourceType {
|
|
213
|
+
/** 本地相对路径 */
|
|
214
|
+
Local = "local",
|
|
215
|
+
/** Git仓库 */
|
|
216
|
+
Github = "github",
|
|
217
|
+
/** Git URL */
|
|
218
|
+
Url = "url",
|
|
219
|
+
/** npm 包 */
|
|
220
|
+
Npm = "npm",
|
|
221
|
+
/** pip 包 */
|
|
222
|
+
Pip = "pip",
|
|
223
|
+
/** Git 仓库子目录 */
|
|
224
|
+
GitSubdir = "git-subdir"
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* 插件源配置
|
|
228
|
+
*/
|
|
229
|
+
export interface PluginSource {
|
|
230
|
+
/** 源类型 */
|
|
231
|
+
source: PluginSourceType;
|
|
232
|
+
/** Git URL (source为url时使用) */
|
|
233
|
+
url?: string;
|
|
234
|
+
/** github 仓库 */
|
|
235
|
+
repo?: string;
|
|
236
|
+
/**
|
|
237
|
+
* 路径字段,含义随 `source` 不同:
|
|
238
|
+
* - `source === 'local'`: 本地相对路径(相对于 marketplace 根目录)
|
|
239
|
+
* - `source === 'git-subdir'`: Git 仓库内子目录路径(官方 claude-plugins 规范字段名)
|
|
240
|
+
*
|
|
241
|
+
* 对于 git-subdir,`path` 与历史字段 `subdir` 等价且优先级更高。
|
|
242
|
+
*/
|
|
243
|
+
path?: string;
|
|
244
|
+
/** npm 包名 (source为npm时使用) */
|
|
245
|
+
package?: string;
|
|
246
|
+
/** 版本约束 (npm/pip) */
|
|
247
|
+
versionConstraint?: string;
|
|
248
|
+
/** 自定义 registry (npm) */
|
|
249
|
+
registry?: string;
|
|
250
|
+
/** Git 仓库子目录路径 (source为git-subdir时使用) */
|
|
251
|
+
subdir?: string;
|
|
252
|
+
/**
|
|
253
|
+
* Git 分支或标签名(source为git-subdir时使用)
|
|
254
|
+
* 默认使用仓库的默认分支
|
|
255
|
+
*/
|
|
256
|
+
ref?: string;
|
|
257
|
+
/**
|
|
258
|
+
* 锁定的 Git 提交 SHA(source为git-subdir时使用)
|
|
259
|
+
* 完整 40 字符 SHA,优先级高于 `ref`
|
|
260
|
+
*/
|
|
261
|
+
sha?: string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* 市场中的插件条目
|
|
265
|
+
*/
|
|
266
|
+
export interface MarketplacePluginEntry {
|
|
267
|
+
/** 插件名称 */
|
|
268
|
+
name: string;
|
|
269
|
+
/** 插件源路径(相对于市场根目录)或源对象 */
|
|
270
|
+
source: string | PluginSource;
|
|
271
|
+
/** 插件描述 */
|
|
272
|
+
description?: string;
|
|
273
|
+
/** 插件版本 */
|
|
274
|
+
version?: string;
|
|
275
|
+
/** 插件依赖列表。可覆盖/补充 plugin.json 中的 dependencies。 */
|
|
276
|
+
dependencies?: PluginDependency[];
|
|
277
|
+
/** 严格模式(兼容superpowers-marketplace) */
|
|
278
|
+
strict?: boolean;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 插件依赖声明。
|
|
282
|
+
* - string: 依赖当前 marketplace 中同名插件;兼容历史 name@marketplace 写法
|
|
283
|
+
* - object: 支持 semver range 和显式 marketplace
|
|
284
|
+
*/
|
|
285
|
+
export type PluginDependency = string | PluginDependencyObject;
|
|
286
|
+
export interface PluginDependencyObject {
|
|
287
|
+
/** 依赖插件名称 */
|
|
288
|
+
name: string;
|
|
289
|
+
/** semver range,如 ^1.0.0 / ~2.1.0 / >=1.4 */
|
|
290
|
+
version?: string;
|
|
291
|
+
/** 显式指定依赖所在 marketplace,省略时使用声明方 marketplace */
|
|
292
|
+
marketplace?: string;
|
|
293
|
+
}
|
|
294
|
+
export interface PluginDependencyError {
|
|
295
|
+
code: 'dependency-unsatisfied' | 'dependency-version-unsatisfied' | 'no-matching-tag' | 'range-conflict' | 'cross-marketplace' | 'invalid-dependency';
|
|
296
|
+
dependency: string;
|
|
297
|
+
dependencyMarketplace?: string;
|
|
298
|
+
required?: string;
|
|
299
|
+
installed?: string;
|
|
300
|
+
message: string;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* 市场源配置(扩展支持 pattern 匹配)
|
|
304
|
+
*/
|
|
305
|
+
export interface MarketplaceSourceConfig extends MarketplaceSource {
|
|
306
|
+
/** 允许的 host 正则模式(用于 URL 源白名单) */
|
|
307
|
+
hostPattern?: string;
|
|
308
|
+
/** 允许的路径正则模式(用于本地目录源白名单) */
|
|
309
|
+
pathPattern?: string;
|
|
310
|
+
/** 是否启用自动更新 */
|
|
311
|
+
autoUpdate?: boolean;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* 插件信息(扩展清单,包含来源)
|
|
315
|
+
*/
|
|
316
|
+
export interface PluginInfo extends PluginManifest {
|
|
317
|
+
/** 所属市场名称 */
|
|
318
|
+
marketplaceName: string;
|
|
319
|
+
/** 插件源配置(支持字符串或对象类型) */
|
|
320
|
+
source: string | PluginSource;
|
|
321
|
+
/** 安装状态 */
|
|
322
|
+
status?: PluginStatus;
|
|
323
|
+
/** 安装路径(已安装时) */
|
|
324
|
+
installedPath?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Whether the plugin has an applicable explicit installed_plugins.json
|
|
327
|
+
* record. Inline plugins are the only runtime plugins that may have an
|
|
328
|
+
* installedPath without such a record; Marketplace plugins always run
|
|
329
|
+
* from the immutable cache selected by the registry.
|
|
330
|
+
*
|
|
331
|
+
* @internal
|
|
332
|
+
*/
|
|
333
|
+
registryInstalled?: boolean;
|
|
334
|
+
/** 安装 scope (user/project/project-local) */
|
|
335
|
+
installScope?: PluginInstallScope;
|
|
336
|
+
/** 用户是否可以删除(卸载)该插件,只有显式 false 才禁止(由管控策略注入) */
|
|
337
|
+
canRemove?: boolean;
|
|
338
|
+
/** 用户是否可以禁用该插件,只有显式 false 才禁止(由管控策略注入) */
|
|
339
|
+
canSwitchoff?: boolean;
|
|
340
|
+
/** 用户是否可以编辑该插件配置,只有显式 false 才禁止(由管控策略注入) */
|
|
341
|
+
canEdit?: boolean;
|
|
342
|
+
/** 当前插件因依赖不满足而被运行时降级/禁用的原因 */
|
|
343
|
+
dependencyErrors?: PluginDependencyError[];
|
|
344
|
+
/** tag 约束解析出的实际版本,优先于 manifest.version 做依赖校验。 */
|
|
345
|
+
resolvedVersion?: string;
|
|
346
|
+
/** Git 来源实际安装的 commit SHA。 */
|
|
347
|
+
gitCommitSha?: string;
|
|
348
|
+
/** 是否作为其他插件的依赖自动安装。 */
|
|
349
|
+
autoInstalled?: boolean;
|
|
350
|
+
/** 是否属于内置市场(从所属 Marketplace 的 isBuiltIn 透传,供客户端隐藏内置插件)。 */
|
|
351
|
+
isBuiltIn?: boolean;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* 市场信息
|
|
355
|
+
*/
|
|
356
|
+
export interface MarketplaceInfo {
|
|
357
|
+
/** 市场名称 */
|
|
358
|
+
name: string;
|
|
359
|
+
/** 市场存储名称 */
|
|
360
|
+
storageName?: string;
|
|
361
|
+
/**
|
|
362
|
+
* 调用方声明的市场名。安装阶段实例带的是 `source-<hash>-<pid>-<nonce>` staging 名,
|
|
363
|
+
* 按市场身份取数(如内置市场的版本元数据)只能用本字段(#119844)。
|
|
364
|
+
*/
|
|
365
|
+
declaredName?: string;
|
|
366
|
+
/**
|
|
367
|
+
* 已验证的 marketplace manifest 名称。
|
|
368
|
+
*
|
|
369
|
+
* `storageName` 是稳定的 registry key,Product / settings 可以用别名将它
|
|
370
|
+
* 绑定到不同的上游 manifest name。单独持久该字段,让只读消费者无需
|
|
371
|
+
* 放宽 identity 校验也能安全解析别名。
|
|
372
|
+
*/
|
|
373
|
+
manifestName?: string;
|
|
374
|
+
/** 市场类型 */
|
|
375
|
+
type: MarketplaceType;
|
|
376
|
+
/** 市场源地址 */
|
|
377
|
+
source: MarketplaceSource;
|
|
378
|
+
/** 本地安装地址 */
|
|
379
|
+
installLocation: string;
|
|
380
|
+
/** 市场描述 */
|
|
381
|
+
description?: string;
|
|
382
|
+
/** 更新时间 */
|
|
383
|
+
lastUpdated?: string;
|
|
384
|
+
/** 是否为内置市场 */
|
|
385
|
+
isBuiltIn?: boolean;
|
|
386
|
+
/** 是否启用自动更新 */
|
|
387
|
+
autoUpdate?: boolean;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Lightweight result produced before a remote marketplace source is staged.
|
|
391
|
+
*
|
|
392
|
+
* Implementations may use a version pointer, URL version, ETag, or another
|
|
393
|
+
* source-native token. The check runs against the stable, last-good source;
|
|
394
|
+
* it must not download or publish the replacement payload.
|
|
395
|
+
*/
|
|
396
|
+
export interface MarketplaceUpdatePreparation {
|
|
397
|
+
/** Whether new source bytes must be prepared and published. */
|
|
398
|
+
needsUpdate: boolean;
|
|
399
|
+
/** Diagnostic reason emitted by the source-specific freshness check. */
|
|
400
|
+
reason: string;
|
|
401
|
+
/** Optional version token to commit alongside the published snapshot. */
|
|
402
|
+
remoteVersion?: string;
|
|
403
|
+
}
|
|
404
|
+
/** How PluginManager seeds the private source transaction directory. */
|
|
405
|
+
export type MarketplaceUpdateStagingMode = 'copy' | 'empty';
|
|
406
|
+
export interface Marketplace extends MarketplaceInfo {
|
|
407
|
+
/** Last successfully loaded marketplace manifest, when one is available. */
|
|
408
|
+
manifest?: MarketplaceManifest;
|
|
409
|
+
/**
|
|
410
|
+
* Complete-snapshot sources can start from an empty transaction directory.
|
|
411
|
+
* Incremental/custom implementations default to copying the last-good tree.
|
|
412
|
+
*/
|
|
413
|
+
readonly updateStagingMode?: MarketplaceUpdateStagingMode;
|
|
414
|
+
init(marketplaceInfo: MarketplaceInfo): void;
|
|
415
|
+
install(onProgress?: ProgressCallback): Promise<void>;
|
|
416
|
+
/**
|
|
417
|
+
* Optionally check freshness against the stable source before PluginManager
|
|
418
|
+
* creates a private staging directory.
|
|
419
|
+
*/
|
|
420
|
+
checkForUpdate?(onProgress?: ProgressCallback): Promise<MarketplaceUpdatePreparation>;
|
|
421
|
+
/**
|
|
422
|
+
* Refresh the marketplace source. `false` means the source was checked and
|
|
423
|
+
* is already current; `true` means new source bytes were published.
|
|
424
|
+
* Legacy/custom implementations may return void, which callers treat as
|
|
425
|
+
* changed for backward compatibility.
|
|
426
|
+
*
|
|
427
|
+
* `preparation` is supplied when the caller already checked the stable
|
|
428
|
+
* source. Implementations must not repeat that check against private staging.
|
|
429
|
+
*/
|
|
430
|
+
update(onProgress?: ProgressCallback, preparation?: MarketplaceUpdatePreparation): Promise<boolean | void>;
|
|
431
|
+
listPlugins(): Promise<PluginInfo[]>;
|
|
432
|
+
loadManifest(): Promise<void>;
|
|
433
|
+
getPlugin(pluginName: string): Promise<PluginInfo | undefined>;
|
|
434
|
+
}
|
|
435
|
+
export interface MarketplaceSource {
|
|
436
|
+
source: MarketplaceType;
|
|
437
|
+
path?: string;
|
|
438
|
+
repo?: string;
|
|
439
|
+
url?: string;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* 插件内容(安装时获取的完整内容)
|
|
443
|
+
*/
|
|
444
|
+
export interface PluginContent {
|
|
445
|
+
/** 插件清单 */
|
|
446
|
+
manifest: PluginManifest;
|
|
447
|
+
/** 文件映射: 相对路径 -> 文件内容 */
|
|
448
|
+
files: Map<string, string | Buffer>;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* 进度回调函数类型
|
|
452
|
+
*/
|
|
453
|
+
export type ProgressCallback = (message: string) => void;
|
|
454
|
+
/**
|
|
455
|
+
* 市场添加选项
|
|
456
|
+
*/
|
|
457
|
+
export interface MarketplaceAddOptions {
|
|
458
|
+
/** 市场名称 */
|
|
459
|
+
name?: string;
|
|
460
|
+
/** 进度回调函数 */
|
|
461
|
+
onProgress?: ProgressCallback;
|
|
462
|
+
/** 是否启用自动更新(默认 false) */
|
|
463
|
+
autoUpdate?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* 是否跳过官方名称保护校验(isBlockedOfficialName / validateOfficialNameSource)
|
|
466
|
+
*
|
|
467
|
+
* 仅供内部信任路径使用(如 `installBuiltInMarketplaces` 读取 product.json 注入
|
|
468
|
+
* 的 builtin marketplace)。product 配置本身即可信源,不应再被名称保护拦截。
|
|
469
|
+
*
|
|
470
|
+
* 用户通过命令行、UI 或 settings 手工添加的市场必须走完整校验,禁止开启此开关。
|
|
471
|
+
*/
|
|
472
|
+
bypassNameValidation?: boolean;
|
|
473
|
+
/**
|
|
474
|
+
* 是否强制更新:跳过 `MarketplaceUpdateChecker` 的 short-circuit
|
|
475
|
+
* (url-version / ETag / Last-Modified / mtime throttle),直接下载并覆盖
|
|
476
|
+
* 目标市场目录。
|
|
477
|
+
*
|
|
478
|
+
* 供用户显式要求重新下载或诊断缓存问题时使用。正常自动更新必须由同一个
|
|
479
|
+
* MarketplaceUpdateChecker 判定,不能再叠加一套宿主版本状态机。
|
|
480
|
+
*
|
|
481
|
+
* 仅在 `updateMarketplace` 路径生效;`addMarketplace` 路径忽略。
|
|
482
|
+
*/
|
|
483
|
+
force?: boolean;
|
|
484
|
+
/** 内部批量准备流程已在末尾统一修复依赖时跳过单次修复。 */
|
|
485
|
+
skipDependencyResolution?: boolean;
|
|
486
|
+
/** Internal: an explicit plugin update owns the later cache refresh. */
|
|
487
|
+
skipInstalledPluginRefresh?: boolean;
|
|
488
|
+
}
|
|
489
|
+
/** Internal marketplace object already selected by its exact storage name. */
|
|
490
|
+
export interface MarketplaceSelectionOptions {
|
|
491
|
+
marketplace?: Marketplace;
|
|
492
|
+
}
|
|
493
|
+
export interface MarketplaceUpdateOptions extends MarketplaceAddOptions, MarketplaceSelectionOptions {
|
|
494
|
+
/**
|
|
495
|
+
* Re-materialize plugins already installed from this Marketplace after
|
|
496
|
+
* refreshing its catalog. Manual Marketplace updates leave this false to
|
|
497
|
+
* match Claude Code; background/host upgrade flows opt in explicitly.
|
|
498
|
+
*/
|
|
499
|
+
updateInstalledPlugins?: boolean;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* 插件安装选项
|
|
503
|
+
*/
|
|
504
|
+
export interface PluginInstallOptions {
|
|
505
|
+
/** 是否强制重新安装 */
|
|
506
|
+
force?: boolean;
|
|
507
|
+
/** marketplace 已由上层刷新时,避免 updatePlugins 再次拉取。 */
|
|
508
|
+
skipMarketplaceSync?: boolean;
|
|
509
|
+
/** 是否自动启用 */
|
|
510
|
+
autoEnable?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* @internal Materialize registry/cache without writing enabledPlugins.
|
|
513
|
+
* Used by product declarations that preinstall optional plugins.
|
|
514
|
+
*/
|
|
515
|
+
persistEnabledState?: boolean;
|
|
516
|
+
/**
|
|
517
|
+
* @internal Apply autoEnable only when the settings key is absent, so an
|
|
518
|
+
* explicit user false remains authoritative.
|
|
519
|
+
*/
|
|
520
|
+
preserveExistingEnabledState?: boolean;
|
|
521
|
+
/** 安装 scope (user/project/project-local),默认为 user */
|
|
522
|
+
scope?: PluginInstallScope;
|
|
523
|
+
/** 工作区路径覆盖,用于嵌入式 sidecar 的 project-local scope settings 写入。 */
|
|
524
|
+
workspacePath?: string;
|
|
525
|
+
/** Internal exact Marketplace selection; never accepted from the HTTP wire. */
|
|
526
|
+
marketplace?: Marketplace;
|
|
527
|
+
/**
|
|
528
|
+
* @internal Effective settings projection for an explicit workspace.
|
|
529
|
+
* Resource preparation supplies this so the standard installer does not
|
|
530
|
+
* accidentally consult the long-lived process cwd while checking scopes.
|
|
531
|
+
*/
|
|
532
|
+
enabledPluginStates?: Readonly<Record<string, {
|
|
533
|
+
enabled: boolean;
|
|
534
|
+
scope: PluginInstallScope;
|
|
535
|
+
}>>;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* 插件卸载选项
|
|
539
|
+
*/
|
|
540
|
+
export interface PluginUninstallOptions {
|
|
541
|
+
/** 是否删除配置文件 */
|
|
542
|
+
removeConfig?: boolean;
|
|
543
|
+
/** 保留 ~/.codebuddy/plugins/data/{id} 中的持久化插件数据。 */
|
|
544
|
+
keepData?: boolean;
|
|
545
|
+
/** 卸载 scope (user/project/project-local);省略时沿用已解析插件的安装 scope。 */
|
|
546
|
+
scope?: PluginInstallScope;
|
|
547
|
+
/** 卸载后同时清理该 scope 下不再被依赖的自动安装插件。 */
|
|
548
|
+
prune?: boolean;
|
|
549
|
+
/** project/local scope 对应的工作区路径覆盖。 */
|
|
550
|
+
workspacePath?: string;
|
|
551
|
+
/** Internal exact Marketplace selection; never accepted from the HTTP wire. */
|
|
552
|
+
marketplace?: Marketplace;
|
|
553
|
+
/** 是否绕过管控策略检查(仅限内部管控操作使用) */
|
|
554
|
+
bypassPolicyCheck?: boolean;
|
|
555
|
+
}
|
|
556
|
+
export interface PluginPruneOptions {
|
|
557
|
+
/** 清理 scope,默认 user。 */
|
|
558
|
+
scope?: PluginInstallScope;
|
|
559
|
+
/** project/local scope 对应的工作区路径覆盖。 */
|
|
560
|
+
workspacePath?: string;
|
|
561
|
+
/** 仅返回将被清理的插件,不修改 settings 或 registry。 */
|
|
562
|
+
dryRun?: boolean;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* 插件验证器接口
|
|
566
|
+
* 负责验证插件和市场清单文件的有效性
|
|
567
|
+
*/
|
|
568
|
+
export declare const PluginValidator: unique symbol;
|
|
569
|
+
export interface PluginValidator {
|
|
570
|
+
/** 验证插件或市场清单 */
|
|
571
|
+
validateManifest(inputPath: string): Promise<any>;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* 插件管理器接口
|
|
575
|
+
* 负责插件的安装、卸载、启用、禁用等核心功能
|
|
576
|
+
* 同时负责管理插件市场
|
|
577
|
+
*/
|
|
578
|
+
export declare const PluginManager: unique symbol;
|
|
579
|
+
/**
|
|
580
|
+
* One entry in the plugin set currently active in this CLI process.
|
|
581
|
+
*
|
|
582
|
+
* Management APIs may already expose newer install/enable state, but runtime
|
|
583
|
+
* consumers keep reading this snapshot until startup or an explicit
|
|
584
|
+
* `/reload-plugins` refreshes it. This mirrors Claude Code's pending-vs-active
|
|
585
|
+
* plugin semantics with one process-local activation boundary.
|
|
586
|
+
*/
|
|
587
|
+
export interface ActivePluginRuntimeEntry {
|
|
588
|
+
readonly plugin: PluginInfo;
|
|
589
|
+
readonly components: PluginComponents;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Effective enabled state selected by the settings precedence rules for one
|
|
593
|
+
* explicit workspace. Management discovery supplies this snapshot so Plugin
|
|
594
|
+
* runtime preparation never needs to consult or mutate the process-global cwd.
|
|
595
|
+
*/
|
|
596
|
+
export interface PluginWorkspaceEnabledState {
|
|
597
|
+
readonly enabled: boolean;
|
|
598
|
+
readonly scope: PluginInstallScope;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* One marketplace selected for an explicit workspace. `storageName` is the
|
|
602
|
+
* settings/registry identity; the runtime marketplace manifest may expose a
|
|
603
|
+
* different display name.
|
|
604
|
+
*/
|
|
605
|
+
export interface PluginWorkspaceMarketplaceEntry {
|
|
606
|
+
readonly marketplace: Marketplace;
|
|
607
|
+
readonly storageName: string;
|
|
608
|
+
}
|
|
609
|
+
export interface PluginWorkspaceMarketplaceDiagnostic {
|
|
610
|
+
readonly marketplaceName?: string;
|
|
611
|
+
readonly marketplacePath: string;
|
|
612
|
+
readonly message: string;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Side-effect-free marketplace projection for one explicit workspace.
|
|
616
|
+
* Directory sources may be represented by inert transient Marketplace
|
|
617
|
+
* instances. Remote sources are included only when an exactly matching global
|
|
618
|
+
* materialization already exists; discovery never installs or rewrites them.
|
|
619
|
+
*/
|
|
620
|
+
export interface PluginWorkspaceMarketplaceCatalog {
|
|
621
|
+
readonly workspacePath: string;
|
|
622
|
+
readonly entries: readonly PluginWorkspaceMarketplaceEntry[];
|
|
623
|
+
readonly errors: readonly PluginWorkspaceMarketplaceDiagnostic[];
|
|
624
|
+
}
|
|
625
|
+
export interface PluginRuntimeLoadError {
|
|
626
|
+
readonly type: 'dependency-unsatisfied' | 'component-load-failed';
|
|
627
|
+
readonly source: string;
|
|
628
|
+
readonly message: string;
|
|
629
|
+
readonly reason?: 'not-found' | 'not-enabled' | 'version-unsatisfied' | 'unknown';
|
|
630
|
+
readonly dependency?: string;
|
|
631
|
+
readonly dependencyMarketplace?: string;
|
|
632
|
+
}
|
|
633
|
+
export interface ActivePluginRefreshPreparation {
|
|
634
|
+
readonly previousActivePlugins: readonly ActivePluginRuntimeEntry[];
|
|
635
|
+
readonly activePlugins: readonly ActivePluginRuntimeEntry[];
|
|
636
|
+
readonly errors: readonly PluginRuntimeLoadError[];
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Runtime eligibility result for an explicit workspace. It may emit normal
|
|
640
|
+
* loader diagnostics, but unlike refreshActivePlugins() it does not publish a
|
|
641
|
+
* process-wide active Plugin snapshot or update the MCP registry.
|
|
642
|
+
*/
|
|
643
|
+
export interface PluginWorkspaceRuntimePreparation {
|
|
644
|
+
readonly activePlugins: readonly ActivePluginRuntimeEntry[];
|
|
645
|
+
readonly errors: readonly PluginRuntimeLoadError[];
|
|
646
|
+
}
|
|
647
|
+
export interface ActivePluginRefreshOptions {
|
|
648
|
+
/**
|
|
649
|
+
* Runs after the fresh snapshot has been fully prepared but before it is
|
|
650
|
+
* published. Throwing keeps the previous runtime snapshot active.
|
|
651
|
+
*/
|
|
652
|
+
readonly beforeCommit?: (preparation: ActivePluginRefreshPreparation) => void | Promise<void>;
|
|
653
|
+
/** Refresh only this required closure and preserve healthy unselected entries. */
|
|
654
|
+
readonly pluginIds?: readonly string[];
|
|
655
|
+
}
|
|
656
|
+
export interface PluginDependencyRepairResult {
|
|
657
|
+
readonly installed: readonly string[];
|
|
658
|
+
readonly failed: readonly {
|
|
659
|
+
pluginId: string;
|
|
660
|
+
error: string;
|
|
661
|
+
}[];
|
|
662
|
+
}
|
|
663
|
+
export interface PluginRepairOptions {
|
|
664
|
+
/** Restrict repair to enabled roots owned by these settings scopes. */
|
|
665
|
+
enabledPluginScopes?: readonly SettingsScope[];
|
|
666
|
+
/** Persist repaired dependency enablement; false keeps it session-local. */
|
|
667
|
+
persistEnabledPlugins?: boolean;
|
|
668
|
+
}
|
|
669
|
+
export interface PluginManager {
|
|
670
|
+
/** 插件和市场配置变更事件 */
|
|
671
|
+
readonly onDidChange: Event<void>;
|
|
672
|
+
/** 添加市场 */
|
|
673
|
+
addMarketplace(source: string, options?: MarketplaceAddOptions): Promise<Marketplace>;
|
|
674
|
+
/** 更新市场 */
|
|
675
|
+
updateMarketplace(name: string, options?: MarketplaceUpdateOptions): Promise<Marketplace>;
|
|
676
|
+
/** 删除市场 */
|
|
677
|
+
removeMarketplace(name: string, options?: MarketplaceSelectionOptions): Promise<void>;
|
|
678
|
+
/** 列出所有市场 */
|
|
679
|
+
listMarketplace(): Promise<Marketplace[]>;
|
|
680
|
+
/** 获取市场信息 */
|
|
681
|
+
getMarketplace(name: string): Promise<Marketplace | undefined>;
|
|
682
|
+
/** Resolve only by the stable persisted storage identity. */
|
|
683
|
+
getMarketplaceByStorageName(name: string): Promise<Marketplace | undefined>;
|
|
684
|
+
/** Build an inert directory marketplace for one explicit workspace read. */
|
|
685
|
+
createWorkspaceDirectoryMarketplace(marketplaceName: string, directory: string): Marketplace;
|
|
686
|
+
/**
|
|
687
|
+
* Resolve USER -> PROJECT -> LOCAL -> CLI marketplace settings for one
|
|
688
|
+
* explicit workspace without consulting or mutating the process cwd.
|
|
689
|
+
*/
|
|
690
|
+
resolveMarketplacesForWorkspace(workspacePath: string): Promise<PluginWorkspaceMarketplaceCatalog>;
|
|
691
|
+
/** 设置市场自动更新状态 */
|
|
692
|
+
setMarketplaceAutoUpdate(name: string, autoUpdate: boolean): Promise<void>;
|
|
693
|
+
/** 从市场获取插件列表 */
|
|
694
|
+
getPlugins(marketplaceName: string, options?: MarketplaceSelectionOptions): Promise<PluginInfo[]>;
|
|
695
|
+
/** 安装插件 */
|
|
696
|
+
installPlugins(pluginNames: string[], marketplaceName: string, options?: PluginInstallOptions): Promise<void>;
|
|
697
|
+
/** 更新插件 */
|
|
698
|
+
updatePlugins(pluginNames: string[], marketplaceName: string, options?: PluginInstallOptions): Promise<void>;
|
|
699
|
+
/** 卸载插件 */
|
|
700
|
+
uninstallPlugins(pluginNames: string[], marketplaceName: string, options?: PluginUninstallOptions): Promise<void>;
|
|
701
|
+
/** 清理指定 scope 中不再被任何手动安装插件依赖的 auto dependency。 */
|
|
702
|
+
prunePlugins(options?: PluginPruneOptions): Promise<string[]>;
|
|
703
|
+
/** 补装 enabledPlugins 中缺失的根插件和依赖,并修复版本不满足的依赖。 */
|
|
704
|
+
repairEnabledPlugins(options?: PluginRepairOptions): Promise<void>;
|
|
705
|
+
/**
|
|
706
|
+
* Claude-compatible reload repair: only install manifest dependencies that
|
|
707
|
+
* are missing for an enabled plugin. It does not repair missing roots or
|
|
708
|
+
* version mismatches and never updates marketplaces.
|
|
709
|
+
*/
|
|
710
|
+
repairMissingPluginDependencies(): Promise<PluginDependencyRepairResult>;
|
|
711
|
+
/**
|
|
712
|
+
* 启用插件
|
|
713
|
+
*
|
|
714
|
+
* @param options.bypassPolicyCheck 跳过企业管控策略检查(autoEnable 场景)
|
|
715
|
+
* @param options.persist 是否把 enabled 状态写入 settings.json(默认 true)。
|
|
716
|
+
* 设置为 `false` 时只改进程内的 `plugin.status`,不落盘,不触发持久化污染。
|
|
717
|
+
*/
|
|
718
|
+
enablePlugins(pluginNames: string[], marketplaceName: string, options?: {
|
|
719
|
+
bypassPolicyCheck?: boolean;
|
|
720
|
+
persist?: boolean;
|
|
721
|
+
scope?: PluginInstallScope;
|
|
722
|
+
workspacePath?: string;
|
|
723
|
+
}): Promise<void>;
|
|
724
|
+
/**
|
|
725
|
+
* 禁用插件
|
|
726
|
+
*
|
|
727
|
+
* @param options.persist 是否把 disabled 状态写入 settings.json(默认 true)。
|
|
728
|
+
* 设置为 `false` 时只改进程内的 `plugin.status`,不落盘。
|
|
729
|
+
* 通常与 `enablePlugins({ persist: false })` 成对使用。
|
|
730
|
+
*/
|
|
731
|
+
disablePlugins(pluginNames: string[], marketplaceName: string, options?: {
|
|
732
|
+
persist?: boolean;
|
|
733
|
+
scope?: PluginInstallScope;
|
|
734
|
+
workspacePath?: string;
|
|
735
|
+
}): Promise<void>;
|
|
736
|
+
/**
|
|
737
|
+
* 原子切换插件:在同一事务中 disable 旧插件 + enable 新插件,只触发一次管理态变更事件。
|
|
738
|
+
* 是否立即激活由调用方随后进入显式 refresh 边界决定。
|
|
739
|
+
*
|
|
740
|
+
* @param disableNames 需要禁用的插件名列表(可为空数组)
|
|
741
|
+
* @param enableNames 需要启用的插件名列表(可为空数组)
|
|
742
|
+
* @param marketplaceName 市场名称(disable 和 enable 共享)
|
|
743
|
+
* @param options.persist 是否落盘(默认 true)
|
|
744
|
+
*/
|
|
745
|
+
switchPlugins(disableNames: string[], enableNames: string[], marketplaceName: string, options?: {
|
|
746
|
+
persist?: boolean;
|
|
747
|
+
}): Promise<void>;
|
|
748
|
+
/** 获取已安装插件列表 */
|
|
749
|
+
getInstalledPlugins(): Promise<PluginInfo[]>;
|
|
750
|
+
/**
|
|
751
|
+
* Read the committed installed-registry projection for the current
|
|
752
|
+
* request's settings without publishing it to the shared runtime cache.
|
|
753
|
+
* Used only by the deprecated required-root reconcile compatibility path.
|
|
754
|
+
*/
|
|
755
|
+
inspectCommittedPluginsForCurrentSettings(): Promise<PluginInfo[]>;
|
|
756
|
+
/** 获取插件信息 */
|
|
757
|
+
getPlugin(pluginName: string, marketplaceName: string, options?: MarketplaceSelectionOptions): Promise<PluginInfo | undefined>;
|
|
758
|
+
/**
|
|
759
|
+
* Resolve the materialized Plugin selected by an explicit workspace
|
|
760
|
+
* settings scope without consulting the process-global cwd cache.
|
|
761
|
+
* Management discovery uses this for multi-cwd inventory reads.
|
|
762
|
+
*/
|
|
763
|
+
getPluginForWorkspace(pluginName: string, marketplaceName: string, options: {
|
|
764
|
+
/**
|
|
765
|
+
* Explicit workspace catalog entry; avoids process-global lookup.
|
|
766
|
+
* `null` is an authoritative workspace miss and forbids fallback.
|
|
767
|
+
*/
|
|
768
|
+
marketplace?: Marketplace | null;
|
|
769
|
+
scope: PluginInstallScope;
|
|
770
|
+
workspacePath: string;
|
|
771
|
+
}): Promise<PluginInfo | undefined>;
|
|
772
|
+
/**
|
|
773
|
+
* Apply the same dependency, version, integrity and component-load guards
|
|
774
|
+
* as runtime activation to the effective Plugin settings for an explicit
|
|
775
|
+
* workspace, without changing the process active snapshot.
|
|
776
|
+
*/
|
|
777
|
+
prepareActivePluginsForWorkspace(options: {
|
|
778
|
+
workspacePath: string;
|
|
779
|
+
enabledPlugins: Readonly<Record<string, PluginWorkspaceEnabledState>>;
|
|
780
|
+
}): Promise<PluginWorkspaceRuntimePreparation>;
|
|
781
|
+
/**
|
|
782
|
+
* Resolve only the Plugin MCP component set for an explicit workspace.
|
|
783
|
+
* The result is inert: it neither replaces the process active snapshot nor
|
|
784
|
+
* publishes/opens an MCP connection in this process. Missing enabled roots
|
|
785
|
+
* and dependencies may be materialized into the shared immutable cache,
|
|
786
|
+
* but the explicit selection is never written to settings or session state.
|
|
787
|
+
*/
|
|
788
|
+
preparePluginMcpForWorkspace(options: {
|
|
789
|
+
workspacePath: string;
|
|
790
|
+
enabledPlugins: Readonly<Record<string, PluginWorkspaceEnabledState>>;
|
|
791
|
+
}): Promise<PluginWorkspaceRuntimePreparation>;
|
|
792
|
+
/** 获取插件扩展组件列表 */
|
|
793
|
+
getPluginComponents(pluginName: string, marketplaceName: string): Promise<PluginComponents | undefined>;
|
|
794
|
+
/** 获取当前进程已经激活的插件快照;不会隐式读取或激活管理态。 */
|
|
795
|
+
getActivePlugins(): Promise<readonly ActivePluginRuntimeEntry[]>;
|
|
796
|
+
/**
|
|
797
|
+
* 从最新 settings/install 状态整体重建 active plugin 快照。
|
|
798
|
+
* 仅启动屏障和显式 reload 调用;普通管理操作只留下 pending 状态。
|
|
799
|
+
*/
|
|
800
|
+
refreshActivePlugins(options?: ActivePluginRefreshOptions): Promise<readonly ActivePluginRuntimeEntry[]>;
|
|
801
|
+
/** 从 settings 中安装配置的市场 */
|
|
802
|
+
installMarketplacesFromSettings(options?: {
|
|
803
|
+
marketplaceNames?: readonly string[];
|
|
804
|
+
skipInstalledPluginRefresh?: boolean;
|
|
805
|
+
throwOnFailure?: boolean;
|
|
806
|
+
workspacePath?: string;
|
|
807
|
+
}): Promise<void>;
|
|
808
|
+
/**
|
|
809
|
+
* Reconcile the effective Product and CLI-settings plugin declarations.
|
|
810
|
+
*
|
|
811
|
+
* This is the strict, host-neutral readiness boundary used before a host
|
|
812
|
+
* consumes plugins. It only materializes configured marketplaces,
|
|
813
|
+
* product-declared plugins, enabled roots, and their dependencies. Legacy
|
|
814
|
+
* migrations, cache cleanup, and marketplace auto-update remain background
|
|
815
|
+
* maintenance and are deliberately excluded.
|
|
816
|
+
*/
|
|
817
|
+
reconcileConfiguredPlugins(): Promise<void>;
|
|
818
|
+
/** 清除插件缓存(用于热更新) */
|
|
819
|
+
clearCache(): void;
|
|
820
|
+
/** 获取所有启用插件的 bin/ 目录路径(用于注入 Bash PATH) */
|
|
821
|
+
getPluginBinPaths(): Promise<string[]>;
|
|
822
|
+
/** 获取插件用户配置选项值 */
|
|
823
|
+
getPluginOptions(pluginName: string, marketplaceName: string): Promise<Record<string, string | boolean | number>>;
|
|
824
|
+
/** 保存插件用户配置选项值 */
|
|
825
|
+
savePluginOptions(pluginName: string, marketplaceName: string, values: Record<string, string | boolean | number>): Promise<void>;
|
|
826
|
+
/** 按当前运行时 settings 惰性发布现有 immutable cache 投影。 */
|
|
827
|
+
whenReady(): Promise<void>;
|
|
828
|
+
/**
|
|
829
|
+
* 首个 runtime 投影发布后,后台 reconcile marketplace 和 Plugin desired
|
|
830
|
+
* state。使用 --no-plugin-management 时这是只等待 cache readiness 的 no-op。
|
|
831
|
+
*/
|
|
832
|
+
startBackgroundPluginManagement(): Promise<void>;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* 插件安装器接口
|
|
836
|
+
*/
|
|
837
|
+
export declare const PluginInstaller: unique symbol;
|
|
838
|
+
export interface PluginInstaller {
|
|
839
|
+
/**
|
|
840
|
+
* 判断该安装器是否支持指定的插件源
|
|
841
|
+
* @param pluginSource 插件源配置(字符串或对象)
|
|
842
|
+
* @returns true表示支持,false表示不支持
|
|
843
|
+
*/
|
|
844
|
+
support(pluginSource: string | PluginSource): boolean;
|
|
845
|
+
/**
|
|
846
|
+
* 安装插件到指定目录
|
|
847
|
+
* @param pluginEntry 市场插件条目
|
|
848
|
+
* @param targetDir 目标安装目录
|
|
849
|
+
* @param onProgress 进度回调
|
|
850
|
+
* @returns 插件的实际安装路径
|
|
851
|
+
*/
|
|
852
|
+
install(pluginEntry: MarketplacePluginEntry, targetDir: string, onProgress?: (message: string) => void): Promise<string>;
|
|
853
|
+
/**
|
|
854
|
+
* 更新已安装的插件
|
|
855
|
+
* @param pluginEntry 市场插件条目
|
|
856
|
+
* @param installedPath 已安装的路径
|
|
857
|
+
* @param onProgress 进度回调
|
|
858
|
+
* @returns 更新后的插件路径
|
|
859
|
+
*/
|
|
860
|
+
update(pluginEntry: MarketplacePluginEntry, installedPath: string, onProgress?: (message: string) => void): Promise<string>;
|
|
861
|
+
/**
|
|
862
|
+
* 检查插件是否已安装
|
|
863
|
+
* @param pluginInfo 插件信息
|
|
864
|
+
* @param marketplaceInstalledPath 目标目录
|
|
865
|
+
* @returns 已安装则返回路径,否则返回undefined
|
|
866
|
+
*/
|
|
867
|
+
isInstalled(pluginInfo: MarketplacePluginEntry, marketplaceInstalledPath: string): Promise<string | undefined>;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* 插件安装结果
|
|
871
|
+
*/
|
|
872
|
+
export interface PluginInstallResult {
|
|
873
|
+
/** 插件名称 */
|
|
874
|
+
pluginName: string;
|
|
875
|
+
/** 安装路径 */
|
|
876
|
+
installedPath: string;
|
|
877
|
+
/** 是否为新安装 */
|
|
878
|
+
isNewInstall: boolean;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* 扩展加载器接口
|
|
882
|
+
*/
|
|
883
|
+
export declare const ExtensionLoader: unique symbol;
|
|
884
|
+
export interface ExtensionLoader {
|
|
885
|
+
/**
|
|
886
|
+
* 加载扩展,返回加载的数据
|
|
887
|
+
* @param extensionDir 扩展目录路径
|
|
888
|
+
* @param extensionName 扩展名称(用于标记)
|
|
889
|
+
* @returns 加载的扩展数据数组
|
|
890
|
+
*/
|
|
891
|
+
load(extensionDir: string, extensionName?: string): Promise<ProductConfiguration>;
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* 市场存储接口
|
|
895
|
+
*/
|
|
896
|
+
export declare const MarketplaceStorage: unique symbol;
|
|
897
|
+
export interface MarketplaceStorage {
|
|
898
|
+
/** 获取所有市场配置 */
|
|
899
|
+
getMarketplaces(options?: {
|
|
900
|
+
/** Recovery-only raw view; normal readers hide an actively published alias. */
|
|
901
|
+
includePublishing?: boolean;
|
|
902
|
+
}): Promise<MarketplaceInfo[]>;
|
|
903
|
+
/** 保存市场配置 */
|
|
904
|
+
saveMarketplace(marketplace: MarketplaceInfo): Promise<void>;
|
|
905
|
+
/** 删除市场配置 */
|
|
906
|
+
removeMarketplace(name: string): Promise<void>;
|
|
907
|
+
/** 检查市场是否已安装 */
|
|
908
|
+
isMarketplaceInstalled(name: string): Promise<boolean>;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* 插件扩展组件集合
|
|
912
|
+
*/
|
|
913
|
+
export interface PluginComponents {
|
|
914
|
+
marketplaceName: string;
|
|
915
|
+
pluginName: string;
|
|
916
|
+
/** Agent 列表 */
|
|
917
|
+
agents?: any[];
|
|
918
|
+
/** Command 列表 */
|
|
919
|
+
commands?: any[];
|
|
920
|
+
/** Skill 列表 */
|
|
921
|
+
skills?: any[];
|
|
922
|
+
/** Hook 配置,键为事件名,值为 HookConfig 数组 */
|
|
923
|
+
hooks?: Record<string, any[]>;
|
|
924
|
+
/** MCP 服务器列表 */
|
|
925
|
+
mcpServers?: Record<string, McpConfig>;
|
|
926
|
+
/** LSP 服务器列表 */
|
|
927
|
+
lspServers?: Record<string, LspServerConfig>;
|
|
928
|
+
/** Output style 列表 */
|
|
929
|
+
outputStyles?: PluginOutputStyleEntry[];
|
|
930
|
+
/** 插件默认设置 */
|
|
931
|
+
settings?: PluginSettings;
|
|
932
|
+
}
|
|
933
|
+
export declare const MarketplaceConfigManager: unique symbol;
|
|
934
|
+
export interface MarketplaceConfigManager {
|
|
935
|
+
/**
|
|
936
|
+
* 获取所有配置的市场(合并用户和项目配置)
|
|
937
|
+
*/
|
|
938
|
+
getConfiguredMarketplaces(options?: {
|
|
939
|
+
/** 是否包含当前 served request 的 session-tier 声明,默认 true。 */
|
|
940
|
+
includeSession?: boolean;
|
|
941
|
+
/**
|
|
942
|
+
* Resolve PROJECT and LOCAL declarations for this workspace instead
|
|
943
|
+
* of consulting the long-lived process cwd.
|
|
944
|
+
*/
|
|
945
|
+
workspacePath?: string;
|
|
946
|
+
}): Promise<Map<string, MarketplaceSource>>;
|
|
947
|
+
/**
|
|
948
|
+
* 获取需要安装的市场列表
|
|
949
|
+
*/
|
|
950
|
+
getMarketplacesToInstall(options?: {
|
|
951
|
+
workspacePath?: string;
|
|
952
|
+
}): Promise<MarketplaceToInstall[]>;
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* 待安装的市场配置
|
|
956
|
+
*/
|
|
957
|
+
export interface MarketplaceToInstall {
|
|
958
|
+
/** 市场名称 */
|
|
959
|
+
name: string;
|
|
960
|
+
/** 市场源配置 */
|
|
961
|
+
source: MarketplaceSource;
|
|
962
|
+
/** 声明式自动更新策略;未声明时保留现有值 */
|
|
963
|
+
autoUpdate?: boolean;
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* 内置市场提供者接口
|
|
967
|
+
* 负责从 ProductManager 读取 builtInMarketplaces 配置
|
|
968
|
+
*/
|
|
969
|
+
export declare const BuiltInMarketplaceProvider: unique symbol;
|
|
970
|
+
export interface BuiltInMarketplaceProvider {
|
|
971
|
+
/**
|
|
972
|
+
* 获取所有内置市场配置
|
|
973
|
+
* 将对象结构转换为带名称的数组结构
|
|
974
|
+
*/
|
|
975
|
+
getBuiltInMarketplaces(): Promise<MarketplaceConfigEntry[]>;
|
|
976
|
+
/**
|
|
977
|
+
* 检查指定市场是否为内置市场
|
|
978
|
+
* @param name 市场名称
|
|
979
|
+
*/
|
|
980
|
+
isBuiltInMarketplace(name: string): Promise<boolean>;
|
|
981
|
+
/**
|
|
982
|
+
* Return the current Product-declared version URL for a built-in
|
|
983
|
+
* marketplace. The URL is intentionally not persisted in marketplace
|
|
984
|
+
* storage so Product metadata remains the single source of truth.
|
|
985
|
+
*/
|
|
986
|
+
getVersionUrl(name: string): Promise<string | undefined>;
|
|
987
|
+
/**
|
|
988
|
+
* 将市场配置转换为 MarketplaceSource
|
|
989
|
+
* @param config 市场配置项(带名称)
|
|
990
|
+
*/
|
|
991
|
+
toMarketplaceSource(config: MarketplaceConfigEntry): MarketplaceSource;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* 更新检查结果
|
|
995
|
+
*/
|
|
996
|
+
export interface MarketplaceNeedsUpdateResult {
|
|
997
|
+
/** 是否需要更新 */
|
|
998
|
+
needsUpdate: boolean;
|
|
999
|
+
/**
|
|
1000
|
+
* 检查来源,便于日志与排错
|
|
1001
|
+
*/
|
|
1002
|
+
reason: 'throttled' | 'version-url-match' | 'version-url-changed' | 'url-version-match' | 'url-version-changed' | 'etag-match' | 'etag-changed' | 'last-modified-match' | 'last-modified-changed' | 'no-metadata' | 'head-failed' | 'first-install';
|
|
1003
|
+
/** 通过 versionUrl 或 url-version 得到的版本号,供 commitVersion 使用 */
|
|
1004
|
+
remoteVersion?: string;
|
|
1005
|
+
/** 通过 HEAD 读到的 ETag(HTTP 路径) */
|
|
1006
|
+
etag?: string;
|
|
1007
|
+
/** 通过 HEAD 读到的 Last-Modified(HTTP 路径) */
|
|
1008
|
+
lastModified?: string;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* 市场更新检查器
|
|
1012
|
+
*
|
|
1013
|
+
* 按 versionUrl → url-version → ETag → Last-Modified 的顺序判断远端是否有新版本。
|
|
1014
|
+
* 内置 mtime 节流,避免短时间内多次触发同一市场的远端检查。
|
|
1015
|
+
*/
|
|
1016
|
+
export declare const MarketplaceUpdateChecker: unique symbol;
|
|
1017
|
+
export interface MarketplaceUpdateChecker {
|
|
1018
|
+
/**
|
|
1019
|
+
* 判断市场是否需要更新
|
|
1020
|
+
* @param args.marketplaceName 市场名称(用于节流键与日志)
|
|
1021
|
+
* @param args.installLocation 本地已安装路径
|
|
1022
|
+
* @param args.zipUrl ZIP 源 URL(用于 HEAD 检查)
|
|
1023
|
+
* @param args.versionUrl Product 元数据声明的纯文本版本 URL(仅内置市场)。
|
|
1024
|
+
* @param args.urlVersion 调用方从 zipUrl 解析出的 UUID 版本号(仅内置市场传入)。
|
|
1025
|
+
* 传入则走本地版本号比对,不命中再回落到 ETag/Last-Modified。
|
|
1026
|
+
* 非内置市场不传,直接走 ETag 兜底,行为与历史一致。
|
|
1027
|
+
*/
|
|
1028
|
+
needsUpdate(args: {
|
|
1029
|
+
marketplaceName: string;
|
|
1030
|
+
installLocation: string;
|
|
1031
|
+
zipUrl: string;
|
|
1032
|
+
versionUrl?: string;
|
|
1033
|
+
urlVersion?: string;
|
|
1034
|
+
}): Promise<MarketplaceNeedsUpdateResult>;
|
|
1035
|
+
/**
|
|
1036
|
+
* 更新成功后写入远端版本号到本地缓存文件(与 `.zip-metadata.json` 同目录)
|
|
1037
|
+
*/
|
|
1038
|
+
commitVersion(marketplaceName: string, installLocation: string, version: string): Promise<void>;
|
|
1039
|
+
/**
|
|
1040
|
+
* 清除指定市场的本地版本缓存(`.marketplace-version` 与 `.zip-metadata.json`)。
|
|
1041
|
+
*
|
|
1042
|
+
* 用于用户显式要求的"强制更新"路径;checker 内部基于
|
|
1043
|
+
* mtime throttle / url-version / ETag 的 short-circuit 可能仍会判为"无需更新"。
|
|
1044
|
+
* 在调用 `Marketplace.update` 之前先 invalidate 一次,让 checker 重新走
|
|
1045
|
+
* `no-metadata` / `url-version-changed` 分支,确保下载与整目录覆盖真正发生。
|
|
1046
|
+
*
|
|
1047
|
+
* 实现必须 best-effort,不存在或删除失败都不应抛出。
|
|
1048
|
+
*/
|
|
1049
|
+
invalidateCache(marketplaceName: string, installLocation: string): Promise<void>;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* 插件默认设置(allowlist 机制)
|
|
1053
|
+
*/
|
|
1054
|
+
export interface PluginSettings {
|
|
1055
|
+
/** 设置默认 agent(插件 agents/ 中定义的 agent 名称) */
|
|
1056
|
+
agent?: string;
|
|
1057
|
+
/** Claude 兼容字段;当前仅保留在组件元数据中,尚未接入子 agent 状态行运行时。 */
|
|
1058
|
+
subagentStatusLine?: unknown;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* MCP Bundle 条目定义
|
|
1062
|
+
* 用于从远程 URL 或本地文件加载预打包的 MCP 服务
|
|
1063
|
+
*/
|
|
1064
|
+
export interface McpBundleEntry {
|
|
1065
|
+
/** 服务器名称 */
|
|
1066
|
+
name: string;
|
|
1067
|
+
/** 下载 URL 或本地文件路径(.mcpb/.dxt/.zip) */
|
|
1068
|
+
source: string;
|
|
1069
|
+
/** 内容校验和(格式 sha256:hex) */
|
|
1070
|
+
checksum?: string;
|
|
1071
|
+
/** MCP Bundle 版本 */
|
|
1072
|
+
version?: string;
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* MCP Bundle 加载结果
|
|
1076
|
+
*/
|
|
1077
|
+
export interface McpBundleLoadResult {
|
|
1078
|
+
/** Bundle 名称 */
|
|
1079
|
+
name: string;
|
|
1080
|
+
/** 生成的 MCP 服务器配置 */
|
|
1081
|
+
mcpConfig: McpConfig;
|
|
1082
|
+
/** 解压路径 */
|
|
1083
|
+
extractedPath: string;
|
|
1084
|
+
/** 内容哈希 */
|
|
1085
|
+
contentHash: string;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* MCP Bundle 缓存元数据
|
|
1089
|
+
*/
|
|
1090
|
+
export interface McpBundleCacheMetadata {
|
|
1091
|
+
/** 源地址 */
|
|
1092
|
+
source: string;
|
|
1093
|
+
/** 内容哈希 */
|
|
1094
|
+
contentHash: string;
|
|
1095
|
+
/** 解压路径 */
|
|
1096
|
+
extractedPath: string;
|
|
1097
|
+
/** 缓存时间 */
|
|
1098
|
+
cachedAt: string;
|
|
1099
|
+
/** 最后检查时间 */
|
|
1100
|
+
lastChecked: string;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* 插件用户配置字段定义
|
|
1104
|
+
*/
|
|
1105
|
+
export interface PluginUserConfigField {
|
|
1106
|
+
/** 字段类型 */
|
|
1107
|
+
type: 'string' | 'boolean' | 'number';
|
|
1108
|
+
/** 字段描述 */
|
|
1109
|
+
description: string;
|
|
1110
|
+
/** 默认值 */
|
|
1111
|
+
default?: string | boolean | number;
|
|
1112
|
+
/** 是否为敏感字段(如 API Key,存储到安全存储) */
|
|
1113
|
+
sensitive?: boolean;
|
|
1114
|
+
/** 是否必填 */
|
|
1115
|
+
required?: boolean;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* 插件 output style 条目
|
|
1119
|
+
*/
|
|
1120
|
+
export interface PluginOutputStyleEntry {
|
|
1121
|
+
/** 样式名称(命名空间化:plugin-name:style-name) */
|
|
1122
|
+
name: string;
|
|
1123
|
+
/** 样式描述 */
|
|
1124
|
+
description: string;
|
|
1125
|
+
/** 样式内容(Markdown) */
|
|
1126
|
+
content: string;
|
|
1127
|
+
/** 是否保留编码指令 */
|
|
1128
|
+
keepCodingInstructions?: boolean;
|
|
1129
|
+
/** 插件启用时是否强制应用该样式 */
|
|
1130
|
+
forceForPlugin?: boolean;
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* 插件 background monitor 条目
|
|
1134
|
+
*/
|
|
1135
|
+
export interface PluginMonitorEntry {
|
|
1136
|
+
/** Monitor 名称,插件内唯一 */
|
|
1137
|
+
name: string;
|
|
1138
|
+
/** 持续运行的 shell command */
|
|
1139
|
+
command: string;
|
|
1140
|
+
/** 展示描述 */
|
|
1141
|
+
description: string;
|
|
1142
|
+
/** 触发时机,默认 always */
|
|
1143
|
+
when?: string;
|
|
1144
|
+
}
|
|
1145
|
+
export interface InstalledPluginRecord {
|
|
1146
|
+
/** 安装 scope */
|
|
1147
|
+
scope: 'managed' | 'user' | 'project' | 'local';
|
|
1148
|
+
/** project/local scope 对应的项目路径。 */
|
|
1149
|
+
projectPath?: string;
|
|
1150
|
+
/** 已物化 cache 路径 */
|
|
1151
|
+
installPath: string;
|
|
1152
|
+
/** 当前 cache version key,可能是显式版本、Git SHA 或 tag 版本加 SHA 后缀。 */
|
|
1153
|
+
version?: string;
|
|
1154
|
+
/** tag 约束解析出的版本。 */
|
|
1155
|
+
resolvedVersion?: string;
|
|
1156
|
+
/** Git 来源实际安装的 commit SHA。 */
|
|
1157
|
+
gitCommitSha?: string;
|
|
1158
|
+
/** 是否由依赖自动安装;缺失表示手动安装。 */
|
|
1159
|
+
auto?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* 物化时 marketplace entry 已声明的依赖。源插件的 plugin.json 保持 vendor
|
|
1162
|
+
* 原样,因此该元数据用于保留两层 manifest 合并后的运行语义。
|
|
1163
|
+
*/
|
|
1164
|
+
dependencies?: PluginDependency[];
|
|
1165
|
+
/** 首次安装时间 */
|
|
1166
|
+
installedAt?: string;
|
|
1167
|
+
/** 最近更新时间 */
|
|
1168
|
+
lastUpdated?: string;
|
|
1169
|
+
}
|
|
1170
|
+
export interface InstalledPluginsRegistry {
|
|
1171
|
+
version: 2;
|
|
1172
|
+
plugins: Record<string, InstalledPluginRecord[]>;
|
|
1173
|
+
}
|
|
1174
|
+
export declare const PLUGINS_METADATA_DIRS: string[];
|
|
1175
|
+
export declare const MARKETPLACE_STORAGE_FILE_NAME = "known_marketplaces.json";
|
|
1176
|
+
export declare const INSTALLED_PLUGINS_FILE_NAME = "installed_plugins.json";
|
|
1177
|
+
export declare const MARKETPLACE_MANIFEST_FILE = "marketplace.json";
|
|
1178
|
+
export declare const PLUGIN_MANIFEST_FILE = "plugin.json";
|
|
1179
|
+
/** Marketplace source checkout root, matching Claude's `plugins/marketplaces/<marketplace>` layout. */
|
|
1180
|
+
export declare const MARKETPLACES_DIR = "marketplaces";
|
|
1181
|
+
/** Installed plugin cache root, matching Claude's `plugins/cache/<marketplace>/<plugin>/<version>` layout. */
|
|
1182
|
+
export declare const PLUGIN_CACHE_DIR = "cache";
|
|
1183
|
+
/** @deprecated Use MARKETPLACES_DIR for marketplace sources or PLUGIN_CACHE_DIR for installed plugin cache. */
|
|
1184
|
+
export declare const MARKETPLACE_CACHE_DIR = "marketplaces";
|
|
1185
|
+
export declare const DEFAULT_GIT_PLUGINS_DIR = "plugins";
|
|
1186
|
+
/** Install stats cache file name */
|
|
1187
|
+
export declare const INSTALL_STATS_CACHE_FILE_NAME = "install-counts-cache.json";
|
|
1188
|
+
/**
|
|
1189
|
+
* 市场未就绪错误
|
|
1190
|
+
* 当 builtInMarketPluginsMerge 策略引用的市场尚未安装完成时抛出
|
|
1191
|
+
* 此错误类型用于标识可重试的错误(pending 队列机制)
|
|
1192
|
+
*/
|
|
1193
|
+
export declare class MarketplaceNotReadyError extends Error {
|
|
1194
|
+
constructor(marketplaceName: string);
|
|
1195
|
+
}
|
|
1196
|
+
/** Remote URL for plugin install statistics */
|
|
1197
|
+
export declare const INSTALL_STATS_REMOTE_URL = "https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json";
|
|
1198
|
+
/** Install stats cache TTL: 1 hour in milliseconds */
|
|
1199
|
+
export declare const INSTALL_STATS_CACHE_TTL_MS: number;
|
|
1200
|
+
/** Concurrent marketplace installation limit */
|
|
1201
|
+
export declare const CONCURRENT_MARKETPLACE_INSTALL_LIMIT = 3;
|
|
1202
|
+
/** Concurrent plugin installation limit */
|
|
1203
|
+
export declare const CONCURRENT_PLUGIN_INSTALL_LIMIT = 5;
|
|
1204
|
+
/** Concurrent marketplace update limit */
|
|
1205
|
+
export declare const CONCURRENT_MARKETPLACE_UPDATE_LIMIT = 2;
|
|
1206
|
+
/** Concurrent marketplace plugin listing limit */
|
|
1207
|
+
export declare const CONCURRENT_MARKETPLACE_PLUGIN_LOAD_LIMIT = 4;
|
|
1208
|
+
/** Concurrent plugin metadata loading limit */
|
|
1209
|
+
export declare const CONCURRENT_PLUGIN_METADATA_LOAD_LIMIT = 16;
|
|
1210
|
+
/** Concurrent plugin component loading limit */
|
|
1211
|
+
export declare const CONCURRENT_PLUGIN_COMPONENT_LOAD_LIMIT = 16;
|
|
1212
|
+
/**
|
|
1213
|
+
* Plugin installation scope
|
|
1214
|
+
* Uses existing SettingsScope for consistency
|
|
1215
|
+
* Note: Currently uses all SettingsScope values to simplify type compatibility.
|
|
1216
|
+
* While plugins typically only use USER/PROJECT/PROJECT_LOCAL, including CLI scope
|
|
1217
|
+
* avoids type casting issues without practical drawbacks.
|
|
1218
|
+
*/
|
|
1219
|
+
export type PluginInstallScope = SettingsScope;
|
|
1220
|
+
/**
|
|
1221
|
+
* Plugin install statistics
|
|
1222
|
+
*/
|
|
1223
|
+
export interface PluginInstallStats {
|
|
1224
|
+
/** Plugin name (key from remote JSON) */
|
|
1225
|
+
name: string;
|
|
1226
|
+
/** Number of installations */
|
|
1227
|
+
installs: number;
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* Plugin error type enum
|
|
1231
|
+
*/
|
|
1232
|
+
export declare enum PluginErrorType {
|
|
1233
|
+
PathNotFound = "path-not-found",
|
|
1234
|
+
GitAuthFailed = "git-auth-failed",
|
|
1235
|
+
GitTimeout = "git-timeout",
|
|
1236
|
+
NetworkError = "network-error",
|
|
1237
|
+
ManifestParseError = "manifest-parse-error",
|
|
1238
|
+
ManifestValidationError = "manifest-validation-error",
|
|
1239
|
+
PluginNotFound = "plugin-not-found",
|
|
1240
|
+
MarketplaceNotFound = "marketplace-not-found",
|
|
1241
|
+
MarketplaceLoadFailed = "marketplace-load-failed",
|
|
1242
|
+
RepositoryScanFailed = "repository-scan-failed",
|
|
1243
|
+
McpConfigInvalid = "mcp-config-invalid",
|
|
1244
|
+
HookLoadFailed = "hook-load-failed",
|
|
1245
|
+
ComponentLoadFailed = "component-load-failed",
|
|
1246
|
+
McpbDownloadFailed = "mcpb-download-failed",
|
|
1247
|
+
McpbExtractFailed = "mcpb-extract-failed",
|
|
1248
|
+
McpbInvalidManifest = "mcpb-invalid-manifest",
|
|
1249
|
+
MarketplaceBlockedByPolicy = "marketplace-blocked-by-policy",
|
|
1250
|
+
MarketplaceRemoveFailed = "marketplace-remove-failed",
|
|
1251
|
+
MarketplaceUpdateFailed = "marketplace-update-failed",
|
|
1252
|
+
MarketplaceInstallFailed = "marketplace-install-failed",
|
|
1253
|
+
InstallFailed = "install-failed",
|
|
1254
|
+
UpdateFailed = "update-failed",
|
|
1255
|
+
UninstallFailed = "uninstall-failed",
|
|
1256
|
+
EnableFailed = "enable-failed",
|
|
1257
|
+
DisableFailed = "disable-failed",
|
|
1258
|
+
LoadFailed = "load-failed",
|
|
1259
|
+
MarketplaceConfigSaveFailed = "marketplace-config-save-failed",
|
|
1260
|
+
DependencyUnsatisfied = "dependency-unsatisfied",
|
|
1261
|
+
DependencyVersionUnsatisfied = "dependency-version-unsatisfied",
|
|
1262
|
+
DependencyNoMatchingTag = "no-matching-tag",
|
|
1263
|
+
DependencyRangeConflict = "range-conflict",
|
|
1264
|
+
DependencyCrossMarketplaceBlocked = "cross-marketplace",
|
|
1265
|
+
GenericError = "generic-error"
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Detailed plugin error types with specific fields
|
|
1269
|
+
*/
|
|
1270
|
+
export type PluginError = PluginErrorPathNotFound | PluginErrorGitAuthFailed | PluginErrorGitTimeout | PluginErrorNetworkError | PluginErrorManifestParseError | PluginErrorManifestValidationError | PluginErrorPluginNotFound | PluginErrorMarketplaceNotFound | PluginErrorMarketplaceLoadFailed | PluginErrorRepositoryScanFailed | PluginErrorMcpConfigInvalid | PluginErrorHookLoadFailed | PluginErrorComponentLoadFailed | PluginErrorMcpbDownloadFailed | PluginErrorMcpbExtractFailed | PluginErrorMcpbInvalidManifest | PluginErrorMarketplaceBlockedByPolicy | PluginErrorMarketplaceRemoveFailed | PluginErrorMarketplaceUpdateFailed | PluginErrorMarketplaceInstallFailed | PluginErrorInstallFailed | PluginErrorUpdateFailed | PluginErrorUninstallFailed | PluginErrorEnableFailed | PluginErrorDisableFailed | PluginErrorLoadFailed | PluginErrorMarketplaceConfigSaveFailed | PluginErrorDependencyUnsatisfied | PluginErrorDependencyVersionUnsatisfied | PluginErrorDependencyNoMatchingTag | PluginErrorDependencyRangeConflict | PluginErrorDependencyCrossMarketplaceBlocked | PluginErrorGenericError;
|
|
1271
|
+
/** Base error properties */
|
|
1272
|
+
interface PluginErrorBase {
|
|
1273
|
+
/** Error unique ID */
|
|
1274
|
+
id: string;
|
|
1275
|
+
/** Timestamp when error occurred */
|
|
1276
|
+
timestamp: Date;
|
|
1277
|
+
/** Plugin name (if applicable) */
|
|
1278
|
+
plugin?: string;
|
|
1279
|
+
/** Marketplace name (if applicable) */
|
|
1280
|
+
source?: string;
|
|
1281
|
+
}
|
|
1282
|
+
export interface PluginErrorPathNotFound extends PluginErrorBase {
|
|
1283
|
+
type: PluginErrorType.PathNotFound;
|
|
1284
|
+
component: string;
|
|
1285
|
+
path: string;
|
|
1286
|
+
}
|
|
1287
|
+
export interface PluginErrorGitAuthFailed extends PluginErrorBase {
|
|
1288
|
+
type: PluginErrorType.GitAuthFailed;
|
|
1289
|
+
gitUrl: string;
|
|
1290
|
+
authType: 'ssh' | 'https';
|
|
1291
|
+
}
|
|
1292
|
+
export interface PluginErrorGitTimeout extends PluginErrorBase {
|
|
1293
|
+
type: PluginErrorType.GitTimeout;
|
|
1294
|
+
gitUrl: string;
|
|
1295
|
+
operation: string;
|
|
1296
|
+
}
|
|
1297
|
+
export interface PluginErrorNetworkError extends PluginErrorBase {
|
|
1298
|
+
type: PluginErrorType.NetworkError;
|
|
1299
|
+
url: string;
|
|
1300
|
+
details?: string;
|
|
1301
|
+
}
|
|
1302
|
+
export interface PluginErrorManifestParseError extends PluginErrorBase {
|
|
1303
|
+
type: PluginErrorType.ManifestParseError;
|
|
1304
|
+
manifestPath: string;
|
|
1305
|
+
parseError: string;
|
|
1306
|
+
}
|
|
1307
|
+
export interface PluginErrorManifestValidationError extends PluginErrorBase {
|
|
1308
|
+
type: PluginErrorType.ManifestValidationError;
|
|
1309
|
+
manifestPath: string;
|
|
1310
|
+
validationErrors: string[];
|
|
1311
|
+
}
|
|
1312
|
+
export interface PluginErrorPluginNotFound extends PluginErrorBase {
|
|
1313
|
+
type: PluginErrorType.PluginNotFound;
|
|
1314
|
+
pluginId: string;
|
|
1315
|
+
marketplace: string;
|
|
1316
|
+
}
|
|
1317
|
+
export interface PluginErrorMarketplaceNotFound extends PluginErrorBase {
|
|
1318
|
+
type: PluginErrorType.MarketplaceNotFound;
|
|
1319
|
+
marketplace: string;
|
|
1320
|
+
availableMarketplaces: string[];
|
|
1321
|
+
}
|
|
1322
|
+
export interface PluginErrorMarketplaceLoadFailed extends PluginErrorBase {
|
|
1323
|
+
type: PluginErrorType.MarketplaceLoadFailed;
|
|
1324
|
+
marketplace: string;
|
|
1325
|
+
reason: string;
|
|
1326
|
+
}
|
|
1327
|
+
export interface PluginErrorRepositoryScanFailed extends PluginErrorBase {
|
|
1328
|
+
type: PluginErrorType.RepositoryScanFailed;
|
|
1329
|
+
repositoryPath: string;
|
|
1330
|
+
reason: string;
|
|
1331
|
+
}
|
|
1332
|
+
export interface PluginErrorMcpConfigInvalid extends PluginErrorBase {
|
|
1333
|
+
type: PluginErrorType.McpConfigInvalid;
|
|
1334
|
+
serverName: string;
|
|
1335
|
+
validationError: string;
|
|
1336
|
+
}
|
|
1337
|
+
export interface PluginErrorHookLoadFailed extends PluginErrorBase {
|
|
1338
|
+
type: PluginErrorType.HookLoadFailed;
|
|
1339
|
+
hookPath: string;
|
|
1340
|
+
reason: string;
|
|
1341
|
+
}
|
|
1342
|
+
export interface PluginErrorComponentLoadFailed extends PluginErrorBase {
|
|
1343
|
+
type: PluginErrorType.ComponentLoadFailed;
|
|
1344
|
+
component: string;
|
|
1345
|
+
path: string;
|
|
1346
|
+
reason: string;
|
|
1347
|
+
}
|
|
1348
|
+
export interface PluginErrorMcpbDownloadFailed extends PluginErrorBase {
|
|
1349
|
+
type: PluginErrorType.McpbDownloadFailed;
|
|
1350
|
+
url: string;
|
|
1351
|
+
reason: string;
|
|
1352
|
+
}
|
|
1353
|
+
export interface PluginErrorMcpbExtractFailed extends PluginErrorBase {
|
|
1354
|
+
type: PluginErrorType.McpbExtractFailed;
|
|
1355
|
+
mcpbPath: string;
|
|
1356
|
+
reason: string;
|
|
1357
|
+
}
|
|
1358
|
+
export interface PluginErrorMcpbInvalidManifest extends PluginErrorBase {
|
|
1359
|
+
type: PluginErrorType.McpbInvalidManifest;
|
|
1360
|
+
mcpbPath: string;
|
|
1361
|
+
validationError: string;
|
|
1362
|
+
}
|
|
1363
|
+
export interface PluginErrorMarketplaceBlockedByPolicy extends PluginErrorBase {
|
|
1364
|
+
type: PluginErrorType.MarketplaceBlockedByPolicy;
|
|
1365
|
+
marketplace: string;
|
|
1366
|
+
blockedByBlocklist: boolean;
|
|
1367
|
+
allowedSources: string[];
|
|
1368
|
+
}
|
|
1369
|
+
export interface PluginErrorMarketplaceRemoveFailed extends PluginErrorBase {
|
|
1370
|
+
type: PluginErrorType.MarketplaceRemoveFailed;
|
|
1371
|
+
marketplaceName: string;
|
|
1372
|
+
message: string;
|
|
1373
|
+
details: string;
|
|
1374
|
+
}
|
|
1375
|
+
export interface PluginErrorMarketplaceUpdateFailed extends PluginErrorBase {
|
|
1376
|
+
type: PluginErrorType.MarketplaceUpdateFailed;
|
|
1377
|
+
marketplaceName: string;
|
|
1378
|
+
message: string;
|
|
1379
|
+
details: string;
|
|
1380
|
+
}
|
|
1381
|
+
export interface PluginErrorMarketplaceInstallFailed extends PluginErrorBase {
|
|
1382
|
+
type: PluginErrorType.MarketplaceInstallFailed;
|
|
1383
|
+
marketplaceName: string;
|
|
1384
|
+
sourceUrl?: string;
|
|
1385
|
+
sourcePath?: string;
|
|
1386
|
+
message: string;
|
|
1387
|
+
details: string;
|
|
1388
|
+
}
|
|
1389
|
+
export interface PluginErrorInstallFailed extends PluginErrorBase {
|
|
1390
|
+
type: PluginErrorType.InstallFailed;
|
|
1391
|
+
pluginName: string;
|
|
1392
|
+
marketplaceName: string;
|
|
1393
|
+
message: string;
|
|
1394
|
+
details: string;
|
|
1395
|
+
}
|
|
1396
|
+
export interface PluginErrorUpdateFailed extends PluginErrorBase {
|
|
1397
|
+
type: PluginErrorType.UpdateFailed;
|
|
1398
|
+
pluginName: string;
|
|
1399
|
+
marketplaceName: string;
|
|
1400
|
+
message: string;
|
|
1401
|
+
details: string;
|
|
1402
|
+
}
|
|
1403
|
+
export interface PluginErrorUninstallFailed extends PluginErrorBase {
|
|
1404
|
+
type: PluginErrorType.UninstallFailed;
|
|
1405
|
+
pluginName: string;
|
|
1406
|
+
marketplaceName: string;
|
|
1407
|
+
message: string;
|
|
1408
|
+
details: string;
|
|
1409
|
+
}
|
|
1410
|
+
export interface PluginErrorEnableFailed extends PluginErrorBase {
|
|
1411
|
+
type: PluginErrorType.EnableFailed;
|
|
1412
|
+
pluginName: string;
|
|
1413
|
+
marketplaceName: string;
|
|
1414
|
+
message: string;
|
|
1415
|
+
details: string;
|
|
1416
|
+
}
|
|
1417
|
+
export interface PluginErrorDisableFailed extends PluginErrorBase {
|
|
1418
|
+
type: PluginErrorType.DisableFailed;
|
|
1419
|
+
pluginName: string;
|
|
1420
|
+
marketplaceName: string;
|
|
1421
|
+
message: string;
|
|
1422
|
+
details: string;
|
|
1423
|
+
}
|
|
1424
|
+
export interface PluginErrorLoadFailed extends PluginErrorBase {
|
|
1425
|
+
type: PluginErrorType.LoadFailed;
|
|
1426
|
+
componentType: 'MCP' | 'Hook' | 'Command' | 'Skill' | 'Agent' | 'PluginComponents';
|
|
1427
|
+
pluginName?: string;
|
|
1428
|
+
marketplaceName?: string;
|
|
1429
|
+
path?: string;
|
|
1430
|
+
message: string;
|
|
1431
|
+
details: string;
|
|
1432
|
+
}
|
|
1433
|
+
export interface PluginErrorMarketplaceConfigSaveFailed extends PluginErrorBase {
|
|
1434
|
+
type: PluginErrorType.MarketplaceConfigSaveFailed;
|
|
1435
|
+
operation: 'save' | 'remove' | 'clear' | 'repair';
|
|
1436
|
+
marketplaceName?: string;
|
|
1437
|
+
message: string;
|
|
1438
|
+
details: string;
|
|
1439
|
+
}
|
|
1440
|
+
export interface PluginErrorDependencyUnsatisfied extends PluginErrorBase {
|
|
1441
|
+
type: PluginErrorType.DependencyUnsatisfied;
|
|
1442
|
+
pluginName: string;
|
|
1443
|
+
marketplaceName: string;
|
|
1444
|
+
dependencyName: string;
|
|
1445
|
+
dependencyMarketplaceName: string;
|
|
1446
|
+
message: string;
|
|
1447
|
+
details: string;
|
|
1448
|
+
}
|
|
1449
|
+
export interface PluginErrorDependencyVersionUnsatisfied extends PluginErrorBase {
|
|
1450
|
+
type: PluginErrorType.DependencyVersionUnsatisfied;
|
|
1451
|
+
pluginName: string;
|
|
1452
|
+
marketplaceName: string;
|
|
1453
|
+
dependencyName: string;
|
|
1454
|
+
dependencyMarketplaceName: string;
|
|
1455
|
+
required: string;
|
|
1456
|
+
installed?: string;
|
|
1457
|
+
message: string;
|
|
1458
|
+
details: string;
|
|
1459
|
+
}
|
|
1460
|
+
export interface PluginErrorDependencyNoMatchingTag extends PluginErrorBase {
|
|
1461
|
+
type: PluginErrorType.DependencyNoMatchingTag;
|
|
1462
|
+
pluginName: string;
|
|
1463
|
+
marketplaceName: string;
|
|
1464
|
+
dependencyName: string;
|
|
1465
|
+
dependencyMarketplaceName: string;
|
|
1466
|
+
required: string;
|
|
1467
|
+
message: string;
|
|
1468
|
+
details: string;
|
|
1469
|
+
}
|
|
1470
|
+
export interface PluginErrorDependencyRangeConflict extends PluginErrorBase {
|
|
1471
|
+
type: PluginErrorType.DependencyRangeConflict;
|
|
1472
|
+
pluginName: string;
|
|
1473
|
+
marketplaceName: string;
|
|
1474
|
+
dependencyName: string;
|
|
1475
|
+
dependencyMarketplaceName: string;
|
|
1476
|
+
ranges: string[];
|
|
1477
|
+
message: string;
|
|
1478
|
+
details: string;
|
|
1479
|
+
}
|
|
1480
|
+
export interface PluginErrorDependencyCrossMarketplaceBlocked extends PluginErrorBase {
|
|
1481
|
+
type: PluginErrorType.DependencyCrossMarketplaceBlocked;
|
|
1482
|
+
pluginName: string;
|
|
1483
|
+
marketplaceName: string;
|
|
1484
|
+
dependencyName: string;
|
|
1485
|
+
dependencyMarketplaceName: string;
|
|
1486
|
+
message: string;
|
|
1487
|
+
details: string;
|
|
1488
|
+
}
|
|
1489
|
+
export interface PluginErrorGenericError extends PluginErrorBase {
|
|
1490
|
+
type: PluginErrorType.GenericError;
|
|
1491
|
+
error: string;
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Plugin error collector service interface
|
|
1495
|
+
*/
|
|
1496
|
+
export declare const PluginErrorCollector: unique symbol;
|
|
1497
|
+
export interface PluginErrorCollector {
|
|
1498
|
+
/** Event fired when errors change */
|
|
1499
|
+
readonly onDidChange: Event<void>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Add a new error
|
|
1502
|
+
* @param error Error to add (id and timestamp will be auto-generated if not provided)
|
|
1503
|
+
*/
|
|
1504
|
+
addError(error: any): void;
|
|
1505
|
+
/**
|
|
1506
|
+
* Get all errors
|
|
1507
|
+
* @returns Array of plugin errors, sorted by timestamp descending
|
|
1508
|
+
*/
|
|
1509
|
+
getErrors(): PluginError[];
|
|
1510
|
+
/**
|
|
1511
|
+
* Get errors filtered by type
|
|
1512
|
+
* @param type Error type to filter
|
|
1513
|
+
*/
|
|
1514
|
+
getErrorsByType(type: PluginError['type']): PluginError[];
|
|
1515
|
+
/**
|
|
1516
|
+
* Get errors filtered by plugin
|
|
1517
|
+
* @param pluginName Plugin name
|
|
1518
|
+
* @param marketplaceName Marketplace name
|
|
1519
|
+
*/
|
|
1520
|
+
getErrorsByPlugin(pluginName: string, marketplaceName: string): PluginError[];
|
|
1521
|
+
/**
|
|
1522
|
+
* Get error count
|
|
1523
|
+
*/
|
|
1524
|
+
getErrorCount(): number;
|
|
1525
|
+
/**
|
|
1526
|
+
* Clear all errors
|
|
1527
|
+
*/
|
|
1528
|
+
clearErrors(): void;
|
|
1529
|
+
/**
|
|
1530
|
+
* Clear errors for a specific plugin
|
|
1531
|
+
* @param pluginName Plugin name
|
|
1532
|
+
* @param marketplaceName Marketplace name
|
|
1533
|
+
*/
|
|
1534
|
+
clearPluginErrors(pluginName: string, marketplaceName: string): void;
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Plugin install stats service interface
|
|
1538
|
+
*/
|
|
1539
|
+
export declare const PluginInstallStatsService: unique symbol;
|
|
1540
|
+
export interface PluginInstallStatsService {
|
|
1541
|
+
/**
|
|
1542
|
+
* Fetch install statistics from remote
|
|
1543
|
+
* @returns Map of plugin name to install count
|
|
1544
|
+
*/
|
|
1545
|
+
fetchInstallStats(): Promise<Map<string, number>>;
|
|
1546
|
+
/**
|
|
1547
|
+
* Get install count for a specific plugin
|
|
1548
|
+
* @param pluginName Plugin name
|
|
1549
|
+
* @returns Install count or undefined if not found
|
|
1550
|
+
*/
|
|
1551
|
+
getInstallCount(pluginName: string): Promise<number | undefined>;
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Plugin load guard — optional pre-load integrity check.
|
|
1555
|
+
*
|
|
1556
|
+
* Implementations can block a plugin from loading (e.g. directory tampered).
|
|
1557
|
+
* Injected via @Optional() so the system works without any guard registered.
|
|
1558
|
+
*/
|
|
1559
|
+
export declare const PluginLoadGuard: unique symbol;
|
|
1560
|
+
export interface PluginLoadGuard {
|
|
1561
|
+
/**
|
|
1562
|
+
* Called before loading plugin components.
|
|
1563
|
+
* Return false to block loading; throw to block with a specific error message.
|
|
1564
|
+
*/
|
|
1565
|
+
canLoad(plugin: PluginInfo): Promise<boolean>;
|
|
1566
|
+
}
|
|
1567
|
+
export {};
|