@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.
Files changed (868) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/cli/CHANGELOG.md +123 -0
  3. package/cli/dist-server/lite/in-memory-session-store.js +1 -1
  4. package/cli/dist-server/shared.cjs +338 -291
  5. package/cli/dist-server/types/node/a2a/a2a-protocol.d.ts +516 -0
  6. package/cli/dist-server/types/node/agent/agent-completion-waiter.d.ts +28 -0
  7. package/cli/dist-server/types/node/agent/agent-controller.d.ts +147 -0
  8. package/cli/dist-server/types/node/agent/agent-display.d.ts +77 -0
  9. package/cli/dist-server/types/node/agent/agent-manager.d.ts +964 -0
  10. package/cli/dist-server/types/node/agent/agent-memory.d.ts +72 -0
  11. package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +71 -0
  12. package/cli/dist-server/types/node/agent/builtin-agent-modes.d.ts +47 -0
  13. package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +54 -0
  14. package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +43 -0
  15. package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +19 -0
  16. package/cli/dist-server/types/node/agent/exit-planmode-visibility.d.ts +64 -0
  17. package/cli/dist-server/types/node/agent/index.d.ts +22 -0
  18. package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +67 -0
  19. package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +89 -0
  20. package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +30 -0
  21. package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +7 -0
  22. package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +45 -0
  23. package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +47 -0
  24. package/cli/dist-server/types/node/agent/interceptors/index.d.ts +16 -0
  25. package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +29 -0
  26. package/cli/dist-server/types/node/agent/interceptors/manual-compact-request-handler.d.ts +29 -0
  27. package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +43 -0
  28. package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +84 -0
  29. package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +7 -0
  30. package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +101 -0
  31. package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +31 -0
  32. package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +43 -0
  33. package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +21 -0
  34. package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +34 -0
  35. package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +33 -0
  36. package/cli/dist-server/types/node/agent/main-agent-preset.d.ts +32 -0
  37. package/cli/dist-server/types/node/agent/main-agent-resolver.d.ts +156 -0
  38. package/cli/dist-server/types/node/agent/main-agent-session.d.ts +212 -0
  39. package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +84 -0
  40. package/cli/dist-server/types/node/agent/standing-main-agent.d.ts +12 -0
  41. package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +9 -0
  42. package/cli/dist-server/types/node/agent/subagent-limits.d.ts +90 -0
  43. package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +42 -0
  44. package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +67 -0
  45. package/cli/dist-server/types/node/agent-home/agent-home-attachments.d.ts +83 -0
  46. package/cli/dist-server/types/node/agent-home/agent-home-channel-system-event.d.ts +15 -0
  47. package/cli/dist-server/types/node/agent-home/agent-home-channel-task-event.d.ts +24 -0
  48. package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +115 -0
  49. package/cli/dist-server/types/node/agent-home/agent-home-channel-widget.d.ts +45 -0
  50. package/cli/dist-server/types/node/agent-home/agent-home-directory.d.ts +304 -0
  51. package/cli/dist-server/types/node/agent-home/agent-home-limits.d.ts +73 -0
  52. package/cli/dist-server/types/node/agent-home/agent-home-membership.d.ts +34 -0
  53. package/cli/dist-server/types/node/agent-home/agent-home-mentions.d.ts +39 -0
  54. package/cli/dist-server/types/node/agent-home/agent-home-room-contacts.d.ts +51 -0
  55. package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +69 -0
  56. package/cli/dist-server/types/node/agent-task/agent-task-manager.d.ts +242 -0
  57. package/cli/dist-server/types/node/agent-task/agent-task-output-manager.d.ts +55 -0
  58. package/cli/dist-server/types/node/agent-task/agent-task-protocol.d.ts +687 -0
  59. package/cli/dist-server/types/node/agent-task/agent-task.d.ts +405 -0
  60. package/cli/dist-server/types/node/agent-task/background-task-notifier.d.ts +212 -0
  61. package/cli/dist-server/types/node/agent-task/background-task-tool-approval-service.d.ts +36 -0
  62. package/cli/dist-server/types/node/agent-task/index.d.ts +9 -0
  63. package/cli/dist-server/types/node/agent-task/retained-agent-task.d.ts +11 -0
  64. package/cli/dist-server/types/node/agent-task/stream-json-drain-trigger.d.ts +23 -0
  65. package/cli/dist-server/types/node/agent-task/subagent-output-scanner.d.ts +53 -0
  66. package/cli/dist-server/types/node/agent-team/backends/teammate-backend-protocol.d.ts +119 -0
  67. package/cli/dist-server/types/node/agent-team/team-member.d.ts +391 -0
  68. package/cli/dist-server/types/node/agent-team/team-protocol.d.ts +375 -0
  69. package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +209 -0
  70. package/cli/dist-server/types/node/agent-view/agent-view-protocol.d.ts +714 -0
  71. package/cli/dist-server/types/node/agent-view/handoff-policy.d.ts +80 -0
  72. package/cli/dist-server/types/node/agent-view/launch-workspace.d.ts +9 -0
  73. package/cli/dist-server/types/node/agent-view/session-handoff.d.ts +161 -0
  74. package/cli/dist-server/types/node/ask/ask-protoctol.d.ts +102 -0
  75. package/cli/dist-server/types/node/ask/ask-service.d.ts +62 -0
  76. package/cli/dist-server/types/node/ask/index.d.ts +3 -0
  77. package/cli/dist-server/types/node/ask/session-ask-user-question-handler.d.ts +25 -0
  78. package/cli/dist-server/types/node/authentication/api-key-authentication-storage.d.ts +17 -0
  79. package/cli/dist-server/types/node/authentication/custom-token-authentication-storage.d.ts +10 -0
  80. package/cli/dist-server/types/node/authentication/file-authentication-storage.d.ts +71 -0
  81. package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-manager.d.ts +125 -0
  82. package/cli/dist-server/types/node/bash-sandbox/index.d.ts +4 -0
  83. package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-protocol.d.ts +33 -0
  84. package/cli/dist-server/types/node/bash-sandbox/legacy-sandbox-shell-service.d.ts +33 -0
  85. package/cli/dist-server/types/node/blob-store/blob-store-protocol.d.ts +104 -0
  86. package/cli/dist-server/types/node/blob-store/blob-store-service.d.ts +22 -0
  87. package/cli/dist-server/types/node/blob-store/image-blob-service.d.ts +121 -0
  88. package/cli/dist-server/types/node/blob-store/index.d.ts +4 -0
  89. package/cli/dist-server/types/node/blob-store/tool-result-blob-service.d.ts +109 -0
  90. package/cli/dist-server/types/node/channel/channel-event-service.d.ts +18 -0
  91. package/cli/dist-server/types/node/channel/channel-manager.d.ts +41 -0
  92. package/cli/dist-server/types/node/channel/channel-permission-adapter.d.ts +27 -0
  93. package/cli/dist-server/types/node/channel/channel-protocol.d.ts +192 -0
  94. package/cli/dist-server/types/node/channel/channel-security-manager.d.ts +12 -0
  95. package/cli/dist-server/types/node/channel/index.d.ts +5 -0
  96. package/cli/dist-server/types/node/cli/tui-mode-service.d.ts +20 -0
  97. package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +142 -0
  98. package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +111 -0
  99. package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +90 -0
  100. package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +26 -0
  101. package/cli/dist-server/types/node/code-ratio/index.d.ts +5 -0
  102. package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +51 -0
  103. package/cli/dist-server/types/node/command/add-dir-command-executor.d.ts +11 -0
  104. package/cli/dist-server/types/node/command/agent-mode-command-executor.d.ts +11 -0
  105. package/cli/dist-server/types/node/command/agents-command-executor.d.ts +9 -0
  106. package/cli/dist-server/types/node/command/auto-compact-command-executor.d.ts +20 -0
  107. package/cli/dist-server/types/node/command/background-command-executor.d.ts +29 -0
  108. package/cli/dist-server/types/node/command/bash-command-executor.d.ts +62 -0
  109. package/cli/dist-server/types/node/command/btw-command-executor.d.ts +13 -0
  110. package/cli/dist-server/types/node/command/clear-command-executor.d.ts +17 -0
  111. package/cli/dist-server/types/node/command/command-manager.d.ts +54 -0
  112. package/cli/dist-server/types/node/command/command-protocol.d.ts +106 -0
  113. package/cli/dist-server/types/node/command/config-command-executor.d.ts +15 -0
  114. package/cli/dist-server/types/node/command/context-command-executor.d.ts +42 -0
  115. package/cli/dist-server/types/node/command/copy-command-executor.d.ts +10 -0
  116. package/cli/dist-server/types/node/command/cost-command-executor.d.ts +13 -0
  117. package/cli/dist-server/types/node/command/custom-command-renderer.d.ts +29 -0
  118. package/cli/dist-server/types/node/command/debug-command-executor.d.ts +15 -0
  119. package/cli/dist-server/types/node/command/deep-research-command-executor.d.ts +27 -0
  120. package/cli/dist-server/types/node/command/doctor-command-executor.d.ts +7 -0
  121. package/cli/dist-server/types/node/command/effort-command-executor.d.ts +68 -0
  122. package/cli/dist-server/types/node/command/exit-command-executor.d.ts +14 -0
  123. package/cli/dist-server/types/node/command/export-command-executor.d.ts +7 -0
  124. package/cli/dist-server/types/node/command/feedback-command-executor.d.ts +9 -0
  125. package/cli/dist-server/types/node/command/fork-bg-command-executor.d.ts +29 -0
  126. package/cli/dist-server/types/node/command/fork-command-executor.d.ts +28 -0
  127. package/cli/dist-server/types/node/command/goal-command-executor.d.ts +50 -0
  128. package/cli/dist-server/types/node/command/handoff-message-adapter.d.ts +9 -0
  129. package/cli/dist-server/types/node/command/help-command-executor.d.ts +9 -0
  130. package/cli/dist-server/types/node/command/hooks-command-executor.d.ts +9 -0
  131. package/cli/dist-server/types/node/command/ide-command-executor.d.ts +11 -0
  132. package/cli/dist-server/types/node/command/index.d.ts +66 -0
  133. package/cli/dist-server/types/node/command/local-shell.d.ts +31 -0
  134. package/cli/dist-server/types/node/command/mcp-command-executor.d.ts +15 -0
  135. package/cli/dist-server/types/node/command/mcp-prompt-renderer.d.ts +44 -0
  136. package/cli/dist-server/types/node/command/memory-command-executor.d.ts +17 -0
  137. package/cli/dist-server/types/node/command/model-command-executor.d.ts +11 -0
  138. package/cli/dist-server/types/node/command/model-image-to-image-command-executor.d.ts +17 -0
  139. package/cli/dist-server/types/node/command/model-image-to-video-command-executor.d.ts +17 -0
  140. package/cli/dist-server/types/node/command/model-lite-command-executor.d.ts +17 -0
  141. package/cli/dist-server/types/node/command/model-reasoning-command-executor.d.ts +17 -0
  142. package/cli/dist-server/types/node/command/model-text-to-image-command-executor.d.ts +17 -0
  143. package/cli/dist-server/types/node/command/model-text-to-video-command-executor.d.ts +17 -0
  144. package/cli/dist-server/types/node/command/multitask-command-executor.d.ts +9 -0
  145. package/cli/dist-server/types/node/command/permissions-command-executor.d.ts +9 -0
  146. package/cli/dist-server/types/node/command/plan-command-executor.d.ts +11 -0
  147. package/cli/dist-server/types/node/command/plugin-command-executor.d.ts +25 -0
  148. package/cli/dist-server/types/node/command/plugin-validate-command-executor.d.ts +21 -0
  149. package/cli/dist-server/types/node/command/release-notes-command-executor.d.ts +18 -0
  150. package/cli/dist-server/types/node/command/reload-plugins-command-executor.d.ts +22 -0
  151. package/cli/dist-server/types/node/command/remote-control-command-executor.d.ts +44 -0
  152. package/cli/dist-server/types/node/command/rename-command-executor.d.ts +11 -0
  153. package/cli/dist-server/types/node/command/reset-command-executor.d.ts +9 -0
  154. package/cli/dist-server/types/node/command/resume-command-executor.d.ts +21 -0
  155. package/cli/dist-server/types/node/command/rewind-command-executor.d.ts +10 -0
  156. package/cli/dist-server/types/node/command/sandbox-command-executor.d.ts +20 -0
  157. package/cli/dist-server/types/node/command/save-workflow-command-executor.d.ts +43 -0
  158. package/cli/dist-server/types/node/command/skills-command-executor.d.ts +9 -0
  159. package/cli/dist-server/types/node/command/stats-command-executor.d.ts +11 -0
  160. package/cli/dist-server/types/node/command/status-command-executor.d.ts +11 -0
  161. package/cli/dist-server/types/node/command/tasks-command-executor.d.ts +9 -0
  162. package/cli/dist-server/types/node/command/terminal-setup-command-executor.d.ts +7 -0
  163. package/cli/dist-server/types/node/command/theme-command-executor.d.ts +7 -0
  164. package/cli/dist-server/types/node/command/todos-command-executor.d.ts +16 -0
  165. package/cli/dist-server/types/node/command/upgrade-command-executor.d.ts +13 -0
  166. package/cli/dist-server/types/node/command/vim-command-executor.d.ts +11 -0
  167. package/cli/dist-server/types/node/command/web-command-executor.d.ts +18 -0
  168. package/cli/dist-server/types/node/command/workflows-command-executor.d.ts +26 -0
  169. package/cli/dist-server/types/node/command-parser/command-parser-protocol.d.ts +81 -0
  170. package/cli/dist-server/types/node/console/console-manager.d.ts +37 -0
  171. package/cli/dist-server/types/node/console/console-protocol.d.ts +112 -0
  172. package/cli/dist-server/types/node/console/index.d.ts +2 -0
  173. package/cli/dist-server/types/node/context/deferred-tools-description-builder.d.ts +145 -0
  174. package/cli/dist-server/types/node/context/token-calculator/token-calculator-protocol.d.ts +27 -0
  175. package/cli/dist-server/types/node/debug/debug-middleware.d.ts +8 -0
  176. package/cli/dist-server/types/node/debug/debug-protocol.d.ts +63 -0
  177. package/cli/dist-server/types/node/debug/debug-service.d.ts +26 -0
  178. package/cli/dist-server/types/node/debug/index.d.ts +3 -0
  179. package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +100 -0
  180. package/cli/dist-server/types/node/feedback/feedback-protocol.d.ts +32 -0
  181. package/cli/dist-server/types/node/feedback/feedback-service.d.ts +19 -0
  182. package/cli/dist-server/types/node/feedback/index.d.ts +2 -0
  183. package/cli/dist-server/types/node/galileo/agent-metrics-aggregator.d.ts +115 -0
  184. package/cli/dist-server/types/node/galileo/error-category.d.ts +65 -0
  185. package/cli/dist-server/types/node/galileo/galileo-chat-reporter.d.ts +302 -0
  186. package/cli/dist-server/types/node/galileo/galileo-protocol.d.ts +78 -0
  187. package/cli/dist-server/types/node/galileo/galileo-service.d.ts +171 -0
  188. package/cli/dist-server/types/node/galileo/galileo-session-bridge-protocol.d.ts +134 -0
  189. package/cli/dist-server/types/node/galileo/galileo-session-bridge.d.ts +105 -0
  190. package/cli/dist-server/types/node/galileo/galileo-timing-hook.d.ts +115 -0
  191. package/cli/dist-server/types/node/galileo/galileo-tool-error-report-hook.d.ts +32 -0
  192. package/cli/dist-server/types/node/galileo/galileo-tool-post-hook.d.ts +18 -0
  193. package/cli/dist-server/types/node/galileo/galileo-tool-pre-hook.d.ts +16 -0
  194. package/cli/dist-server/types/node/galileo/galileo-tool-start-report-hook.d.ts +14 -0
  195. package/cli/dist-server/types/node/galileo/galileo-tool-success-report-hook.d.ts +14 -0
  196. package/cli/dist-server/types/node/galileo/index.d.ts +15 -0
  197. package/cli/dist-server/types/node/galileo/session-error-tracker.d.ts +44 -0
  198. package/cli/dist-server/types/node/galileo/task-outcome-resolver.d.ts +28 -0
  199. package/cli/dist-server/types/node/galileo/task-outcome.d.ts +35 -0
  200. package/cli/dist-server/types/node/hooks/functional-hooks-protocol.d.ts +78 -0
  201. package/cli/dist-server/types/node/hooks/functional-hooks.d.ts +23 -0
  202. package/cli/dist-server/types/node/http/certificate-manager.d.ts +50 -0
  203. package/cli/dist-server/types/node/http/classify-network-error.d.ts +21 -0
  204. package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +14 -0
  205. package/cli/dist-server/types/node/http/custom-headers-provider.d.ts +26 -0
  206. package/cli/dist-server/types/node/http/fetch-proxy.d.ts +22 -0
  207. package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +116 -0
  208. package/cli/dist-server/types/node/http/index.d.ts +6 -0
  209. package/cli/dist-server/types/node/ide-integration/ide-edit-manager.d.ts +53 -0
  210. package/cli/dist-server/types/node/ide-integration/ide-protocol.d.ts +450 -0
  211. package/cli/dist-server/types/node/install/index.d.ts +6 -0
  212. package/cli/dist-server/types/node/install/install-controller.d.ts +15 -0
  213. package/cli/dist-server/types/node/install/install-env.d.ts +12 -0
  214. package/cli/dist-server/types/node/install/install-protocol.d.ts +83 -0
  215. package/cli/dist-server/types/node/install/install-service.d.ts +36 -0
  216. package/cli/dist-server/types/node/install/releases-service.d.ts +29 -0
  217. package/cli/dist-server/types/node/install/shell-setup.d.ts +36 -0
  218. package/cli/dist-server/types/node/library-runtime.d.ts +9 -0
  219. package/cli/dist-server/types/node/loopback/endpoint-provider.d.ts +9 -0
  220. package/cli/dist-server/types/node/loopback/error-provider.d.ts +9 -0
  221. package/cli/dist-server/types/node/loopback/index.d.ts +4 -0
  222. package/cli/dist-server/types/node/loopback/loopback-body-limit.d.ts +52 -0
  223. package/cli/dist-server/types/node/lsp/index.d.ts +6 -0
  224. package/cli/dist-server/types/node/lsp/lsp-client.d.ts +104 -0
  225. package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +90 -0
  226. package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +245 -0
  227. package/cli/dist-server/types/node/mcp/agent-scoped-mcp-manager.d.ts +38 -0
  228. package/cli/dist-server/types/node/mcp/index.d.ts +32 -0
  229. package/cli/dist-server/types/node/mcp/mcp-cli-config-initializer.d.ts +18 -0
  230. package/cli/dist-server/types/node/mcp/mcp-config-diagnostics-manager.d.ts +29 -0
  231. package/cli/dist-server/types/node/mcp/mcp-config-env-expand-service.d.ts +45 -0
  232. package/cli/dist-server/types/node/mcp/mcp-config-fingerprint.d.ts +28 -0
  233. package/cli/dist-server/types/node/mcp/mcp-config-manager.d.ts +110 -0
  234. package/cli/dist-server/types/node/mcp/mcp-config-store.d.ts +18 -0
  235. package/cli/dist-server/types/node/mcp/mcp-connection-manager.d.ts +35 -0
  236. package/cli/dist-server/types/node/mcp/mcp-controller.d.ts +56 -0
  237. package/cli/dist-server/types/node/mcp/mcp-descriptor-environment.d.ts +5 -0
  238. package/cli/dist-server/types/node/mcp/mcp-first-run-status-service.d.ts +37 -0
  239. package/cli/dist-server/types/node/mcp/mcp-log-service.d.ts +5 -0
  240. package/cli/dist-server/types/node/mcp/mcp-manager.d.ts +339 -0
  241. package/cli/dist-server/types/node/mcp/mcp-oauth-controller.d.ts +26 -0
  242. package/cli/dist-server/types/node/mcp/mcp-oauth-manager.d.ts +33 -0
  243. package/cli/dist-server/types/node/mcp/mcp-oauth-store.d.ts +30 -0
  244. package/cli/dist-server/types/node/mcp/mcp-permissions-manager.d.ts +52 -0
  245. package/cli/dist-server/types/node/mcp/mcp-plugin-registry.d.ts +39 -0
  246. package/cli/dist-server/types/node/mcp/mcp-ready-service.d.ts +94 -0
  247. package/cli/dist-server/types/node/mcp/mcp-resource-catalog-protocol.d.ts +62 -0
  248. package/cli/dist-server/types/node/mcp/mcp-resource-catalog.d.ts +32 -0
  249. package/cli/dist-server/types/node/mcp/mcp-server-manager.d.ts +283 -0
  250. package/cli/dist-server/types/node/mcp/mcp-server-model-manager.d.ts +14 -0
  251. package/cli/dist-server/types/node/mcp/mcp-subagent-tool-manager.d.ts +36 -0
  252. package/cli/dist-server/types/node/mcp/mcp-toggle-manager.d.ts +45 -0
  253. package/cli/dist-server/types/node/mcp/mcp-transport-manager.d.ts +34 -0
  254. package/cli/dist-server/types/node/mcp/mcp-validate-middleware.d.ts +25 -0
  255. package/cli/dist-server/types/node/mcp/node-websocket-transport.d.ts +38 -0
  256. package/cli/dist-server/types/node/mcp/official-mcp-egress-policy.d.ts +17 -0
  257. package/cli/dist-server/types/node/mcp/sdk-mcp-server.d.ts +149 -0
  258. package/cli/dist-server/types/node/mcp/sdk-mcp-transport.d.ts +97 -0
  259. package/cli/dist-server/types/node/memory/conditional-rules-service.d.ts +21 -0
  260. package/cli/dist-server/types/node/memory/glob-matcher.d.ts +16 -0
  261. package/cli/dist-server/types/node/memory/index.d.ts +20 -0
  262. package/cli/dist-server/types/node/memory/memory-age.d.ts +44 -0
  263. package/cli/dist-server/types/node/memory/memory-cache.d.ts +8 -0
  264. package/cli/dist-server/types/node/memory/memory-controller.d.ts +62 -0
  265. package/cli/dist-server/types/node/memory/memory-extraction-prompts.d.ts +11 -0
  266. package/cli/dist-server/types/node/memory/memory-extraction-service.d.ts +56 -0
  267. package/cli/dist-server/types/node/memory/memory-extraction-stop-hook.d.ts +18 -0
  268. package/cli/dist-server/types/node/memory/memory-freshness-post-tool-hook.d.ts +22 -0
  269. package/cli/dist-server/types/node/memory/memory-loader.d.ts +62 -0
  270. package/cli/dist-server/types/node/memory/memory-manager.d.ts +24 -0
  271. package/cli/dist-server/types/node/memory/memory-parser.d.ts +15 -0
  272. package/cli/dist-server/types/node/memory/memory-prompt-builder.d.ts +38 -0
  273. package/cli/dist-server/types/node/memory/memory-protocol.d.ts +235 -0
  274. package/cli/dist-server/types/node/memory/memory-relevance-protocol.d.ts +33 -0
  275. package/cli/dist-server/types/node/memory/memory-relevance-service.d.ts +30 -0
  276. package/cli/dist-server/types/node/memory/memory-scan.d.ts +35 -0
  277. package/cli/dist-server/types/node/memory/memory-types.d.ts +49 -0
  278. package/cli/dist-server/types/node/memory/memory-validator.d.ts +6 -0
  279. package/cli/dist-server/types/node/memory/subdirectory-memory-loader.d.ts +55 -0
  280. package/cli/dist-server/types/node/model/model-protocol.d.ts +22 -0
  281. package/cli/dist-server/types/node/multitask/session-flags.d.ts +110 -0
  282. package/cli/dist-server/types/node/multitask/types.d.ts +123 -0
  283. package/cli/dist-server/types/node/navigation/index.d.ts +2 -0
  284. package/cli/dist-server/types/node/navigation/navigation-manager.d.ts +12 -0
  285. package/cli/dist-server/types/node/navigation/navigation-protocol.d.ts +23 -0
  286. package/cli/dist-server/types/node/notification/notification-protocol.d.ts +19 -0
  287. package/cli/dist-server/types/node/output-style/output-style-protocol.d.ts +60 -0
  288. package/cli/dist-server/types/node/permission/brokered-sandbox/approval-coordinator.d.ts +32 -0
  289. package/cli/dist-server/types/node/permission/brokered-sandbox/host-protocol.d.ts +103 -0
  290. package/cli/dist-server/types/node/permission/canonicalize-command.d.ts +30 -0
  291. package/cli/dist-server/types/node/permission/codebuddy-sandbox-env.d.ts +35 -0
  292. package/cli/dist-server/types/node/permission/directory-trust-service.d.ts +45 -0
  293. package/cli/dist-server/types/node/permission/file-policy-assessment.d.ts +35 -0
  294. package/cli/dist-server/types/node/permission/index.d.ts +16 -0
  295. package/cli/dist-server/types/node/permission/permission-protocol.d.ts +9 -0
  296. package/cli/dist-server/types/node/permission/sandbox-attribution-analyzer.d.ts +108 -0
  297. package/cli/dist-server/types/node/permission/sandbox-audit-service.d.ts +40 -0
  298. package/cli/dist-server/types/node/permission/sandbox-exec-policy-builtin.d.ts +30 -0
  299. package/cli/dist-server/types/node/permission/sandbox-exec-policy-protocol.d.ts +67 -0
  300. package/cli/dist-server/types/node/permission/sandbox-exec-policy.d.ts +13 -0
  301. package/cli/dist-server/types/node/permission/sandbox-orchestrator-protocol.d.ts +239 -0
  302. package/cli/dist-server/types/node/permission/sandbox-orchestrator.d.ts +308 -0
  303. package/cli/dist-server/types/node/permission/sandbox-permission-gateway.d.ts +36 -0
  304. package/cli/dist-server/types/node/permission/sandbox-telemetry-context.d.ts +27 -0
  305. package/cli/dist-server/types/node/permission/sensitive-command-detector.d.ts +71 -0
  306. package/cli/dist-server/types/node/prewarm/prewarm-protocol.d.ts +296 -0
  307. package/cli/dist-server/types/node/product/api-key-helper-product-provider.d.ts +105 -0
  308. package/cli/dist-server/types/node/product/cli-options-product-provider.d.ts +30 -0
  309. package/cli/dist-server/types/node/product/cloud-pre-product-provider.d.ts +76 -0
  310. package/cli/dist-server/types/node/product/config-watch-service.d.ts +201 -0
  311. package/cli/dist-server/types/node/product/craft-to-cli-agent-models-sync-provider.d.ts +16 -0
  312. package/cli/dist-server/types/node/product/custom-agents-product-provider.d.ts +67 -0
  313. package/cli/dist-server/types/node/product/custom-commands-product-provider.d.ts +49 -0
  314. package/cli/dist-server/types/node/product/custom-product-config-provider.d.ts +6 -0
  315. package/cli/dist-server/types/node/product/index.d.ts +21 -0
  316. package/cli/dist-server/types/node/product/internet-enviroment-product-provider.d.ts +61 -0
  317. package/cli/dist-server/types/node/product/mcp-prompt-product-provider.d.ts +17 -0
  318. package/cli/dist-server/types/node/product/mcp-watch-service.d.ts +31 -0
  319. package/cli/dist-server/types/node/product/models-product-provider.d.ts +41 -0
  320. package/cli/dist-server/types/node/product/plugin-product-provider.d.ts +13 -0
  321. package/cli/dist-server/types/node/product/product-capabilities.d.ts +55 -0
  322. package/cli/dist-server/types/node/product/product-config-controller.d.ts +27 -0
  323. package/cli/dist-server/types/node/product/product-env-service.d.ts +20 -0
  324. package/cli/dist-server/types/node/product/product-identity.d.ts +57 -0
  325. package/cli/dist-server/types/node/product/product-protocol.d.ts +7 -0
  326. package/cli/dist-server/types/node/product/sdk-initialize-product-provider.d.ts +17 -0
  327. package/cli/dist-server/types/node/product/settings-endpoint-product-provider.d.ts +20 -0
  328. package/cli/dist-server/types/node/product/skill-product-provider.d.ts +62 -0
  329. package/cli/dist-server/types/node/references/index.d.ts +2 -0
  330. package/cli/dist-server/types/node/references/reference-protocol.d.ts +20 -0
  331. package/cli/dist-server/types/node/references/reference-service.d.ts +42 -0
  332. package/cli/dist-server/types/node/remote-control/remote-control-protocol.d.ts +288 -0
  333. package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +13 -0
  334. package/cli/dist-server/types/node/runtime/cli-capabilities.d.ts +28 -0
  335. package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +8 -0
  336. package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +17 -0
  337. package/cli/dist-server/types/node/runtime/host-capability-provider.d.ts +57 -0
  338. package/cli/dist-server/types/node/runtime/host-detection.d.ts +34 -0
  339. package/cli/dist-server/types/node/runtime/index.d.ts +8 -0
  340. package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +45 -0
  341. package/cli/dist-server/types/node/runtime/workspace.d.ts +5 -0
  342. package/cli/dist-server/types/node/sandbox-cli/sandbox-backend-support.d.ts +7 -0
  343. package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-lifecycle-protocol.d.ts +109 -0
  344. package/cli/dist-server/types/node/sandbox-cli/sandbox-cli-protocol.d.ts +376 -0
  345. package/cli/dist-server/types/node/sandbox-cli/sandbox-rule-sync-service.d.ts +310 -0
  346. package/cli/dist-server/types/node/sandbox-cli/sandbox-session-preparation.d.ts +49 -0
  347. package/cli/dist-server/types/node/sandbox-cli/sandbox-turn-config.d.ts +32 -0
  348. package/cli/dist-server/types/node/sandbox-cli/threat-domain-checker.d.ts +137 -0
  349. package/cli/dist-server/types/node/security-review/gate.d.ts +13 -0
  350. package/cli/dist-server/types/node/security-review/index.d.ts +2 -0
  351. package/cli/dist-server/types/node/security-review/protocol.d.ts +14 -0
  352. package/cli/dist-server/types/node/sensitive-content/index.d.ts +15 -0
  353. package/cli/dist-server/types/node/sensitive-content/managed-cipher-stream-restorer.d.ts +22 -0
  354. package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client-protocol.d.ts +3 -0
  355. package/cli/dist-server/types/node/sensitive-content/sandbox-center-ipc-client.d.ts +7 -0
  356. package/cli/dist-server/types/node/sensitive-content/sandbox-center-port.d.ts +17 -0
  357. package/cli/dist-server/types/node/sensitive-content/sensitive-approval-port.d.ts +22 -0
  358. package/cli/dist-server/types/node/sensitive-content/sensitive-content-mediation.d.ts +6 -0
  359. package/cli/dist-server/types/node/sensitive-content/sensitive-decision-mediation.d.ts +69 -0
  360. package/cli/dist-server/types/node/sensitive-content/sensitive-history-admission.d.ts +42 -0
  361. package/cli/dist-server/types/node/sensitive-content/sensitive-history-replay.d.ts +6 -0
  362. package/cli/dist-server/types/node/sensitive-content/sensitive-local-sideband.d.ts +21 -0
  363. package/cli/dist-server/types/node/sensitive-content/sensitive-model-boundary.d.ts +22 -0
  364. package/cli/dist-server/types/node/sensitive-content/sensitive-protection-metadata.d.ts +7 -0
  365. package/cli/dist-server/types/node/sensitive-content/sensitive-session-grants.d.ts +41 -0
  366. package/cli/dist-server/types/node/sensitive-content/sensitive-tool-egress-guard.d.ts +7 -0
  367. package/cli/dist-server/types/node/sensitive-content/sensitive-user-input-review.d.ts +7 -0
  368. package/cli/dist-server/types/node/sensitive-content/settings-sensitive-protection-policy.d.ts +14 -0
  369. package/cli/dist-server/types/node/server/types.d.ts +11 -2
  370. package/cli/dist-server/types/node/session/index.d.ts +15 -0
  371. package/cli/dist-server/types/node/session/input-history-service.d.ts +47 -0
  372. package/cli/dist-server/types/node/session/input-item-processors.d.ts +70 -0
  373. package/cli/dist-server/types/node/session/session-abort-middleware.d.ts +22 -0
  374. package/cli/dist-server/types/node/session/session-controller.d.ts +126 -0
  375. package/cli/dist-server/types/node/session/session-history-clean-flag.d.ts +2 -0
  376. package/cli/dist-server/types/node/session/session-history-clean-service.d.ts +49 -0
  377. package/cli/dist-server/types/node/session/session-hook-host-adapter.d.ts +21 -0
  378. package/cli/dist-server/types/node/session/session-host-adapter.d.ts +34 -0
  379. package/cli/dist-server/types/node/session/session-http-protocol.d.ts +1 -0
  380. package/cli/dist-server/types/node/session/session-interruption-host-adapter.d.ts +115 -0
  381. package/cli/dist-server/types/node/session/session-manager-host-adapter.d.ts +100 -0
  382. package/cli/dist-server/types/node/session/session-middleware.d.ts +68 -0
  383. package/cli/dist-server/types/node/session/session-response-host-adapter.d.ts +9 -0
  384. package/cli/dist-server/types/node/session/session-store-host-adapter.d.ts +23 -0
  385. package/cli/dist-server/types/node/session/tasks-controller.d.ts +80 -0
  386. package/cli/dist-server/types/node/settings/current-session-model-transition-protocol.d.ts +23 -0
  387. package/cli/dist-server/types/node/settings/current-session-model-transition.d.ts +15 -0
  388. package/cli/dist-server/types/node/settings/index.d.ts +8 -0
  389. package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
  390. package/cli/dist-server/types/node/settings/settings-manager.d.ts +1 -0
  391. package/cli/dist-server/types/node/settings/settings-protocol.d.ts +4 -0
  392. package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
  393. package/cli/dist-server/types/node/shell/delegating-shell-service.d.ts +44 -0
  394. package/cli/dist-server/types/node/shell/driver-shell-service.d.ts +8 -0
  395. package/cli/dist-server/types/node/shell/index.d.ts +10 -0
  396. package/cli/dist-server/types/node/shell/language-shim-env.d.ts +11 -0
  397. package/cli/dist-server/types/node/shell/output-spiller.d.ts +39 -0
  398. package/cli/dist-server/types/node/shell/powershell-safe-delete.d.ts +16 -0
  399. package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/contract.d.ts +61 -0
  400. package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/index.d.ts +3 -0
  401. package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/marker.d.ts +5 -0
  402. package/cli/dist-server/types/node/shell/safe-delete/bulk-guard/service.d.ts +12 -0
  403. package/cli/dist-server/types/node/shell/safe-delete/index.d.ts +17 -0
  404. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-attribution.d.ts +16 -0
  405. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-bootstrap.d.ts +1 -0
  406. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-env.d.ts +42 -0
  407. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-report.d.ts +18 -0
  408. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-sandbox-helpers.d.ts +39 -0
  409. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-settings.d.ts +42 -0
  410. package/cli/dist-server/types/node/shell/safe-delete/safe-delete-trash-service.d.ts +12 -0
  411. package/cli/dist-server/types/node/shell/shell-protocol.d.ts +287 -0
  412. package/cli/dist-server/types/node/shell/shell-runtime-paths.d.ts +23 -0
  413. package/cli/dist-server/types/node/shell/shell-service.d.ts +257 -0
  414. package/cli/dist-server/types/node/shell/shell-snapshot-protocol.d.ts +75 -0
  415. package/cli/dist-server/types/node/shell/shell-snapshot-service.d.ts +86 -0
  416. package/cli/dist-server/types/node/shell/terminal-serializer.d.ts +26 -0
  417. package/cli/dist-server/types/node/shell/truncate-buffer.d.ts +24 -0
  418. package/cli/dist-server/types/node/shell/windows-process-utils.d.ts +42 -0
  419. package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +41 -0
  420. package/cli/dist-server/types/node/skills/skill-approval.d.ts +31 -0
  421. package/cli/dist-server/types/node/stats/index.d.ts +5 -0
  422. package/cli/dist-server/types/node/stats/insights-protocol.d.ts +59 -0
  423. package/cli/dist-server/types/node/stats/insights-report-service.d.ts +17 -0
  424. package/cli/dist-server/types/node/stats/session-facet-service.d.ts +46 -0
  425. package/cli/dist-server/types/node/stats/stats-protocol.d.ts +145 -0
  426. package/cli/dist-server/types/node/stats/stats-service.d.ts +48 -0
  427. package/cli/dist-server/types/node/telemetry/cost-protocol.d.ts +67 -0
  428. package/cli/dist-server/types/node/telemetry/cost-service.d.ts +21 -0
  429. package/cli/dist-server/types/node/telemetry/extension-info-processor.d.ts +13 -0
  430. package/cli/dist-server/types/node/telemetry/friction-analysis.d.ts +54 -0
  431. package/cli/dist-server/types/node/telemetry/friction-recall-client.d.ts +15 -0
  432. package/cli/dist-server/types/node/telemetry/host-ide-info-processor.d.ts +11 -0
  433. package/cli/dist-server/types/node/telemetry/index.d.ts +21 -0
  434. package/cli/dist-server/types/node/telemetry/logger/index.d.ts +1 -0
  435. package/cli/dist-server/types/node/telemetry/logger/storage-path-provider.d.ts +4 -0
  436. package/cli/dist-server/types/node/telemetry/plugin-telemetry-protocol.d.ts +68 -0
  437. package/cli/dist-server/types/node/telemetry/plugin-telemetry-service.d.ts +31 -0
  438. package/cli/dist-server/types/node/telemetry/qimei-env-detector.d.ts +16 -0
  439. package/cli/dist-server/types/node/telemetry/sandbox-telemetry-protocol.d.ts +164 -0
  440. package/cli/dist-server/types/node/telemetry/sandbox-telemetry-service.d.ts +181 -0
  441. package/cli/dist-server/types/node/telemetry/startup-profiler.d.ts +32 -0
  442. package/cli/dist-server/types/node/telemetry/status-reporter.d.ts +39 -0
  443. package/cli/dist-server/types/node/telemetry/telemetry-client-carrier.d.ts +14 -0
  444. package/cli/dist-server/types/node/telemetry/telemetry-client-info-event-processor.d.ts +8 -0
  445. package/cli/dist-server/types/node/telemetry/telemetry-protocol.d.ts +137 -0
  446. package/cli/dist-server/types/node/telemetry/telemetry-service.d.ts +115 -0
  447. package/cli/dist-server/types/node/telemetry/turn-baggage-processor.d.ts +23 -0
  448. package/cli/dist-server/types/node/telemetry/vcs-event-processor.d.ts +19 -0
  449. package/cli/dist-server/types/node/tips/builtin-tips.d.ts +2 -0
  450. package/cli/dist-server/types/node/tips/index.d.ts +4 -0
  451. package/cli/dist-server/types/node/tips/tips-manager.d.ts +14 -0
  452. package/cli/dist-server/types/node/tips/tips-protocol.d.ts +42 -0
  453. package/cli/dist-server/types/node/tips/user-state-manager.d.ts +25 -0
  454. package/cli/dist-server/types/node/tool-control/index.d.ts +1 -0
  455. package/cli/dist-server/types/node/tool-control/tool-control-policy.d.ts +34 -0
  456. package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +55 -0
  457. package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +59 -0
  458. package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +334 -0
  459. package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +168 -0
  460. package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +48 -0
  461. package/cli/dist-server/types/node/tools/agent-tool.d.ts +202 -0
  462. package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +103 -0
  463. package/cli/dist-server/types/node/tools/artifact-tool.d.ts +96 -0
  464. package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +127 -0
  465. package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +237 -0
  466. package/cli/dist-server/types/node/tools/audio-transcribe-service.d.ts +61 -0
  467. package/cli/dist-server/types/node/tools/audio-transcribe-tool.d.ts +66 -0
  468. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-allow-filter.d.ts +33 -0
  469. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-classifier-client.d.ts +230 -0
  470. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +51 -0
  471. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-defaults.d.ts +16 -0
  472. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-denial-tracker.d.ts +114 -0
  473. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-permission-service.d.ts +51 -0
  474. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-project-instructions.d.ts +26 -0
  475. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-protocol.d.ts +140 -0
  476. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-settings.d.ts +36 -0
  477. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +21 -0
  478. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-system-prompt-builder.d.ts +28 -0
  479. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-timeout.d.ts +16 -0
  480. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript-limit.d.ts +29 -0
  481. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-transcript.d.ts +50 -0
  482. package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +15 -0
  483. package/cli/dist-server/types/node/tools/auto-mode/permission-mode-policy.d.ts +63 -0
  484. package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +34 -0
  485. package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +55 -0
  486. package/cli/dist-server/types/node/tools/bash-tool.d.ts +211 -0
  487. package/cli/dist-server/types/node/tools/brief-mode-service.d.ts +26 -0
  488. package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +174 -0
  489. package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +86 -0
  490. package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +82 -0
  491. package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +64 -0
  492. package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +46 -0
  493. package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +28 -0
  494. package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +27 -0
  495. package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +265 -0
  496. package/cli/dist-server/types/node/tools/defer-tool-config-protocol.d.ts +88 -0
  497. package/cli/dist-server/types/node/tools/defer-tool-config-service.d.ts +23 -0
  498. package/cli/dist-server/types/node/tools/deferred-tool-bridge.d.ts +50 -0
  499. package/cli/dist-server/types/node/tools/delegate-tool.d.ts +71 -0
  500. package/cli/dist-server/types/node/tools/edit-tool.d.ts +83 -0
  501. package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +29 -0
  502. package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +59 -0
  503. package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +86 -0
  504. package/cli/dist-server/types/node/tools/file-change-artifact-publisher.d.ts +82 -0
  505. package/cli/dist-server/types/node/tools/glob-tool.d.ts +102 -0
  506. package/cli/dist-server/types/node/tools/grep-tool.d.ts +141 -0
  507. package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +94 -0
  508. package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +107 -0
  509. package/cli/dist-server/types/node/tools/image-service.d.ts +113 -0
  510. package/cli/dist-server/types/node/tools/index.d.ts +109 -0
  511. package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +27 -0
  512. package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +54 -0
  513. package/cli/dist-server/types/node/tools/library-upload-tool.d.ts +70 -0
  514. package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +35 -0
  515. package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +58 -0
  516. package/cli/dist-server/types/node/tools/lsp-tool.d.ts +68 -0
  517. package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +107 -0
  518. package/cli/dist-server/types/node/tools/memory-tool.d.ts +33 -0
  519. package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +83 -0
  520. package/cli/dist-server/types/node/tools/monitor-tool.d.ts +216 -0
  521. package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +109 -0
  522. package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +75 -0
  523. package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +55 -0
  524. package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +7 -0
  525. package/cli/dist-server/types/node/tools/plan-storage-service.d.ts +68 -0
  526. package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +30 -0
  527. package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +23 -0
  528. package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +72 -0
  529. package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +12 -0
  530. package/cli/dist-server/types/node/tools/powershell-detection.d.ts +51 -0
  531. package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +60 -0
  532. package/cli/dist-server/types/node/tools/powershell-security.d.ts +93 -0
  533. package/cli/dist-server/types/node/tools/powershell-tool.d.ts +174 -0
  534. package/cli/dist-server/types/node/tools/produced-artifact-report.d.ts +35 -0
  535. package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +55 -0
  536. package/cli/dist-server/types/node/tools/read-file-state-service.d.ts +27 -0
  537. package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +71 -0
  538. package/cli/dist-server/types/node/tools/read-tool.d.ts +71 -0
  539. package/cli/dist-server/types/node/tools/repl/index.d.ts +10 -0
  540. package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +150 -0
  541. package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +29 -0
  542. package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +149 -0
  543. package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +56 -0
  544. package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +108 -0
  545. package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +17 -0
  546. package/cli/dist-server/types/node/tools/repl/repl-protocol.d.ts +210 -0
  547. package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +142 -0
  548. package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +103 -0
  549. package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +16 -0
  550. package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +2 -0
  551. package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +97 -0
  552. package/cli/dist-server/types/node/tools/sandbox-approval-review.d.ts +40 -0
  553. package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +14 -0
  554. package/cli/dist-server/types/node/tools/sandbox-write-rule-guard.d.ts +126 -0
  555. package/cli/dist-server/types/node/tools/send-message-tool.d.ts +116 -0
  556. package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +22 -0
  557. package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +60 -0
  558. package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +25 -0
  559. package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +77 -0
  560. package/cli/dist-server/types/node/tools/skill-tool.d.ts +129 -0
  561. package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +51 -0
  562. package/cli/dist-server/types/node/tools/space-upload/errors.d.ts +14 -0
  563. package/cli/dist-server/types/node/tools/space-upload/index.d.ts +4 -0
  564. package/cli/dist-server/types/node/tools/space-upload/local-file-source.d.ts +33 -0
  565. package/cli/dist-server/types/node/tools/space-upload/types.d.ts +65 -0
  566. package/cli/dist-server/types/node/tools/space-upload/upload-file.d.ts +27 -0
  567. package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +182 -0
  568. package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +43 -0
  569. package/cli/dist-server/types/node/tools/task-create-tool.d.ts +71 -0
  570. package/cli/dist-server/types/node/tools/task-get-tool.d.ts +31 -0
  571. package/cli/dist-server/types/node/tools/task-list-tool.d.ts +20 -0
  572. package/cli/dist-server/types/node/tools/task-output-tool.d.ts +142 -0
  573. package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +61 -0
  574. package/cli/dist-server/types/node/tools/task-storage-service.d.ts +161 -0
  575. package/cli/dist-server/types/node/tools/task-update-tool.d.ts +79 -0
  576. package/cli/dist-server/types/node/tools/team-create-tool.d.ts +84 -0
  577. package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +38 -0
  578. package/cli/dist-server/types/node/tools/todo-storage-service.d.ts +48 -0
  579. package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +117 -0
  580. package/cli/dist-server/types/node/tools/tool-always-approval-service.d.ts +73 -0
  581. package/cli/dist-server/types/node/tools/tool-argument-rewrite-service.d.ts +4 -0
  582. package/cli/dist-server/types/node/tools/tool-error-codes.d.ts +140 -0
  583. package/cli/dist-server/types/node/tools/tool-hook-manager.d.ts +61 -0
  584. package/cli/dist-server/types/node/tools/tool-manager.d.ts +585 -0
  585. package/cli/dist-server/types/node/tools/tool-permission-service.d.ts +145 -0
  586. package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +83 -0
  587. package/cli/dist-server/types/node/tools/tool-protocol.d.ts +2 -0
  588. package/cli/dist-server/types/node/tools/tool-risk-review/content-history-admission.d.ts +10 -0
  589. package/cli/dist-server/types/node/tools/tool-risk-review/content-review.d.ts +56 -0
  590. package/cli/dist-server/types/node/tools/tool-risk-review/execution-approval-adapter.d.ts +11 -0
  591. package/cli/dist-server/types/node/tools/tool-risk-review/index.d.ts +7 -0
  592. package/cli/dist-server/types/node/tools/tool-risk-review/mcp-permission-review.d.ts +15 -0
  593. package/cli/dist-server/types/node/tools/tool-risk-review/mcp-projector.d.ts +5 -0
  594. package/cli/dist-server/types/node/tools/tool-risk-review/permission-metadata.d.ts +8 -0
  595. package/cli/dist-server/types/node/tools/tool-risk-review/projector-registry.d.ts +22 -0
  596. package/cli/dist-server/types/node/tools/tool-risk-review/projectors/index.d.ts +5 -0
  597. package/cli/dist-server/types/node/tools/tool-risk-review/prompt.d.ts +6 -0
  598. package/cli/dist-server/types/node/tools/tool-risk-review/protocol.d.ts +231 -0
  599. package/cli/dist-server/types/node/tools/tool-risk-review/review-context-build.d.ts +2 -0
  600. package/cli/dist-server/types/node/tools/tool-risk-review/review-context.d.ts +42 -0
  601. package/cli/dist-server/types/node/tools/tool-risk-review/review-runtime.d.ts +6 -0
  602. package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client-impl.d.ts +3 -0
  603. package/cli/dist-server/types/node/tools/tool-risk-review/reviewer-client.d.ts +37 -0
  604. package/cli/dist-server/types/node/tools/tool-risk-review/scope.d.ts +6 -0
  605. package/cli/dist-server/types/node/tools/tool-risk-review/service.d.ts +75 -0
  606. package/cli/dist-server/types/node/tools/tool-risk-review/session-state.d.ts +49 -0
  607. package/cli/dist-server/types/node/tools/tool-risk-review/trusted-builtin-code.d.ts +25 -0
  608. package/cli/dist-server/types/node/tools/tool-search-protocol.d.ts +286 -0
  609. package/cli/dist-server/types/node/tools/tool-search-service.d.ts +137 -0
  610. package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +103 -0
  611. package/cli/dist-server/types/node/tools/tool-spec/agent-tool-defer-overlay-cache.d.ts +45 -0
  612. package/cli/dist-server/types/node/tools/tool-spec/index.d.ts +6 -0
  613. package/cli/dist-server/types/node/tools/tool-spec/legacy-ide-tool-names.d.ts +2 -0
  614. package/cli/dist-server/types/node/tools/tool-spec/tool-defer-overlay.d.ts +70 -0
  615. package/cli/dist-server/types/node/tools/tool-spec/tool-spec-augment.d.ts +17 -0
  616. package/cli/dist-server/types/node/tools/tool-spec/tool-spec-parser.d.ts +38 -0
  617. package/cli/dist-server/types/node/tools/tool-spec/tool-spec-protocol.d.ts +83 -0
  618. package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +88 -0
  619. package/cli/dist-server/types/node/tools/video-service.d.ts +57 -0
  620. package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +79 -0
  621. package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +164 -0
  622. package/cli/dist-server/types/node/tools/web-search-tool.d.ts +79 -0
  623. package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +43 -0
  624. package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +65 -0
  625. package/cli/dist-server/types/node/tools/workflow-background-task.d.ts +54 -0
  626. package/cli/dist-server/types/node/tools/workflow-tool.d.ts +83 -0
  627. package/cli/dist-server/types/node/tools/write-tool.d.ts +80 -0
  628. package/cli/dist-server/types/node/trace/trace-collector-protocol.d.ts +203 -0
  629. package/cli/dist-server/types/node/utils/installation-utils.d.ts +35 -0
  630. package/cli/dist-server/types/node/utils/osc-protocol-utils.d.ts +209 -0
  631. package/cli/dist-server/types/node/utils/process-identity.d.ts +40 -0
  632. package/cli/dist-server/types/node/utils/security-audit-log.d.ts +134 -0
  633. package/cli/dist-server/types/node/utils/terminal-detector-utils.d.ts +78 -0
  634. package/cli/dist-server/types/node/vim/index.d.ts +2 -0
  635. package/cli/dist-server/types/node/vim/vim-manager.d.ts +12 -0
  636. package/cli/dist-server/types/node/vim/vim-protocol.d.ts +24 -0
  637. package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +12 -2
  638. package/cli/dist-server/types/vendor/cbc-core/node/agent/reviewer-recovery.d.ts +7 -0
  639. package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +38 -2
  640. package/cli/dist-server/types/vendor/cbc-core/node/session/background-task-protocol.d.ts +14 -0
  641. package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +4 -0
  642. package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
  643. package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
  644. package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +8 -2
  645. package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +59 -7
  646. package/cli/dist-server/types/vendor/cbc-core/node/session/truncation-recovery.d.ts +8 -0
  647. package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
  648. package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
  649. package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +28 -0
  650. package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +1 -0
  651. package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
  652. package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
  653. package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
  654. package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +1 -0
  655. package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
  656. package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +2 -0
  657. package/cli/dist-server/types/vendor/cbc-shared/node/utils/concurrency-utils.d.ts +5 -0
  658. package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
  659. package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
  660. package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
  661. package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
  662. package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +12 -2
  663. package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
  664. package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
  665. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/background-task-protocol.d.ts +14 -0
  666. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
  667. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
  668. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
  669. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +8 -2
  670. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +59 -7
  671. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/truncation-recovery.d.ts +8 -0
  672. package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
  673. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
  674. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +28 -0
  675. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +1 -0
  676. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
  677. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
  678. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
  679. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
  680. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
  681. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
  682. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
  683. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
  684. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
  685. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
  686. package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
  687. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
  688. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
  689. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
  690. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
  691. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
  692. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
  693. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
  694. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
  695. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
  696. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
  697. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
  698. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
  699. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
  700. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
  701. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
  702. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
  703. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
  704. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
  705. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
  706. package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
  707. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
  708. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
  709. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
  710. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
  711. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
  712. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
  713. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
  714. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
  715. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
  716. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
  717. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
  718. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
  719. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
  720. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
  721. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
  722. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
  723. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
  724. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
  725. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
  726. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
  727. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
  728. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
  729. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
  730. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
  731. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
  732. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
  733. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
  734. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
  735. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
  736. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
  737. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
  738. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
  739. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
  740. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
  741. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
  742. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
  743. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
  744. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
  745. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
  746. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
  747. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
  748. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
  749. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
  750. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
  751. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
  752. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
  753. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
  754. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
  755. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
  756. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
  757. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
  758. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
  759. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
  760. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
  761. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
  762. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
  763. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
  764. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
  765. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
  766. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
  767. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
  768. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
  769. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
  770. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
  771. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
  772. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
  773. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
  774. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
  775. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
  776. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
  777. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
  778. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
  779. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
  780. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
  781. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
  782. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
  783. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
  784. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
  785. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
  786. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
  787. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
  788. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
  789. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
  790. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
  791. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
  792. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
  793. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
  794. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
  795. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
  796. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
  797. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
  798. package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
  799. package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
  800. package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +1 -0
  801. package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
  802. package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +2 -0
  803. package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/concurrency-utils.d.ts +5 -0
  804. package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
  805. package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
  806. package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
  807. package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
  808. package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
  809. package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
  810. package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
  811. package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
  812. package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
  813. package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +69 -44
  814. package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +6 -1
  815. package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
  816. package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
  817. package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
  818. package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
  819. package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
  820. package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
  821. package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
  822. package/cli/package.json +1 -1
  823. package/cli/product.cloudhosted.json +1 -1
  824. package/cli/product.internal.json +1 -1
  825. package/cli/product.ioa.json +1 -1
  826. package/cli/product.json +1 -1
  827. package/cli/product.selfhosted.json +1 -1
  828. package/docs/client.md +62 -0
  829. package/docs/in-process.md +151 -14
  830. package/docs/server.md +40 -1
  831. package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
  832. package/executor/lib/capsule/entry.mjs +8 -8
  833. package/executor/lib/capsule/manifest.json +2 -2
  834. package/executor/lib/private-protocol.cjs +33 -2
  835. package/executor/lib/private-protocol.d.cts +21 -1
  836. package/executor/lib/types.d.cts +15 -0
  837. package/lib/agent/v2.d.ts +1 -1
  838. package/lib/agent/v2.js +1 -1
  839. package/lib/application/services.d.ts +13 -1
  840. package/lib/application/services.js +1 -1
  841. package/lib/cli/main.js +3 -3
  842. package/lib/client/rpc.d.ts +16 -0
  843. package/lib/components/functional-hooks.d.mts +4 -0
  844. package/lib/components/functional-hooks.mjs +1 -0
  845. package/lib/harness/create-harness.js +1 -1
  846. package/lib/harness/hooks.d.ts +8 -0
  847. package/lib/harness/hooks.js +1 -0
  848. package/lib/harness/runtime.js +1 -1
  849. package/lib/harness/types.d.ts +7 -2
  850. package/lib/integration/agent-integration.d.ts +5 -1
  851. package/lib/integration/agent-integration.js +1 -1
  852. package/lib/integration/client-mcp-attachment.d.ts +5 -1
  853. package/lib/integration/client-mcp-attachment.js +1 -1
  854. package/lib/integration/executor-supervisor.d.ts +10 -1
  855. package/lib/integration/executor-supervisor.js +1 -1
  856. package/lib/integration/session-mcp-scope.d.ts +5 -1
  857. package/lib/integration/session-mcp-scope.js +1 -1
  858. package/lib/integration/session-mcp-view.d.ts +6 -1
  859. package/lib/integration/session-mcp-view.js +1 -1
  860. package/lib/mcp-server/module.d.ts +22 -2
  861. package/lib/mcp-server/module.js +1 -1
  862. package/lib/mcp-server/rpcs.d.ts +174 -123
  863. package/lib/mcp-server/rpcs.js +1 -1
  864. package/lib/mcp-server/schemas.d.ts +33 -0
  865. package/lib/mcp-server/schemas.js +1 -1
  866. package/lib/protocol/rpc.d.ts +73 -3
  867. package/lib/public.d.ts +1 -1
  868. package/package.json +24 -20
@@ -0,0 +1,237 @@
1
+ import { Workspace } from '../../workspace/runtime/lib/common/index.js';
2
+ import type { RunContext } from '@openai/agents';
3
+ import { z } from 'zod';
4
+ import { type FunctionCallItem, type ToolExecuteArgument } from '../../vendor/cbc-shared/node/index.js';
5
+ import { AskService } from '../ask';
6
+ import { SdkHooksManager } from '../control-signal/control-signal-protocol';
7
+ import { Session } from '../../vendor/cbc-core/node/index.js';
8
+ import { BaseTool } from './base-tool';
9
+ import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
10
+ import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
11
+ /**
12
+ * Normalize AskUserQuestion input to handle common model mistakes:
13
+ * - Using "answers" field instead of "options"
14
+ * - Passing plain string arrays instead of {label, description} objects
15
+ * - Missing "header" field
16
+ *
17
+ * Call this before passing input to UI layers or tool execution.
18
+ */
19
+ export declare function normalizeAskUserQuestionInput(input: Record<string, any>): Record<string, any>;
20
+ declare const AskUserQuestionParameters: z.ZodEffects<z.ZodObject<{
21
+ questions: z.ZodArray<z.ZodObject<{
22
+ question: z.ZodString;
23
+ header: z.ZodString;
24
+ options: z.ZodArray<z.ZodObject<{
25
+ label: z.ZodString;
26
+ description: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ description: string;
29
+ label: string;
30
+ }, {
31
+ description: string;
32
+ label: string;
33
+ }>, "many">;
34
+ multiSelect: z.ZodDefault<z.ZodBoolean>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ question: string;
37
+ options: {
38
+ description: string;
39
+ label: string;
40
+ }[];
41
+ header: string;
42
+ multiSelect: boolean;
43
+ }, {
44
+ question: string;
45
+ options: {
46
+ description: string;
47
+ label: string;
48
+ }[];
49
+ header: string;
50
+ multiSelect?: boolean | undefined;
51
+ }>, "many">;
52
+ answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
53
+ metadata: z.ZodOptional<z.ZodObject<{
54
+ source: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ source?: string | undefined;
57
+ }, {
58
+ source?: string | undefined;
59
+ }>>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ questions: {
62
+ question: string;
63
+ options: {
64
+ description: string;
65
+ label: string;
66
+ }[];
67
+ header: string;
68
+ multiSelect: boolean;
69
+ }[];
70
+ answers?: Record<string, string> | undefined;
71
+ metadata?: {
72
+ source?: string | undefined;
73
+ } | undefined;
74
+ }, {
75
+ questions: {
76
+ question: string;
77
+ options: {
78
+ description: string;
79
+ label: string;
80
+ }[];
81
+ header: string;
82
+ multiSelect?: boolean | undefined;
83
+ }[];
84
+ answers?: Record<string, string> | undefined;
85
+ metadata?: {
86
+ source?: string | undefined;
87
+ } | undefined;
88
+ }>, {
89
+ questions: {
90
+ question: string;
91
+ options: {
92
+ description: string;
93
+ label: string;
94
+ }[];
95
+ header: string;
96
+ multiSelect: boolean;
97
+ }[];
98
+ answers?: Record<string, string> | undefined;
99
+ metadata?: {
100
+ source?: string | undefined;
101
+ } | undefined;
102
+ }, {
103
+ questions: {
104
+ question: string;
105
+ options: {
106
+ description: string;
107
+ label: string;
108
+ }[];
109
+ header: string;
110
+ multiSelect?: boolean | undefined;
111
+ }[];
112
+ answers?: Record<string, string> | undefined;
113
+ metadata?: {
114
+ source?: string | undefined;
115
+ } | undefined;
116
+ }>;
117
+ export declare class AskUserQuestionTool extends BaseTool implements Tool {
118
+ protected readonly workspace: Workspace;
119
+ protected readonly askService: AskService;
120
+ protected readonly sdkHooksManager: SdkHooksManager;
121
+ name: ToolNames;
122
+ description: string;
123
+ parameters: z.ZodEffects<z.ZodObject<{
124
+ questions: z.ZodArray<z.ZodObject<{
125
+ question: z.ZodString;
126
+ header: z.ZodString;
127
+ options: z.ZodArray<z.ZodObject<{
128
+ label: z.ZodString;
129
+ description: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ description: string;
132
+ label: string;
133
+ }, {
134
+ description: string;
135
+ label: string;
136
+ }>, "many">;
137
+ multiSelect: z.ZodDefault<z.ZodBoolean>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ question: string;
140
+ options: {
141
+ description: string;
142
+ label: string;
143
+ }[];
144
+ header: string;
145
+ multiSelect: boolean;
146
+ }, {
147
+ question: string;
148
+ options: {
149
+ description: string;
150
+ label: string;
151
+ }[];
152
+ header: string;
153
+ multiSelect?: boolean | undefined;
154
+ }>, "many">;
155
+ answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
156
+ metadata: z.ZodOptional<z.ZodObject<{
157
+ source: z.ZodOptional<z.ZodString>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ source?: string | undefined;
160
+ }, {
161
+ source?: string | undefined;
162
+ }>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ questions: {
165
+ question: string;
166
+ options: {
167
+ description: string;
168
+ label: string;
169
+ }[];
170
+ header: string;
171
+ multiSelect: boolean;
172
+ }[];
173
+ answers?: Record<string, string> | undefined;
174
+ metadata?: {
175
+ source?: string | undefined;
176
+ } | undefined;
177
+ }, {
178
+ questions: {
179
+ question: string;
180
+ options: {
181
+ description: string;
182
+ label: string;
183
+ }[];
184
+ header: string;
185
+ multiSelect?: boolean | undefined;
186
+ }[];
187
+ answers?: Record<string, string> | undefined;
188
+ metadata?: {
189
+ source?: string | undefined;
190
+ } | undefined;
191
+ }>, {
192
+ questions: {
193
+ question: string;
194
+ options: {
195
+ description: string;
196
+ label: string;
197
+ }[];
198
+ header: string;
199
+ multiSelect: boolean;
200
+ }[];
201
+ answers?: Record<string, string> | undefined;
202
+ metadata?: {
203
+ source?: string | undefined;
204
+ } | undefined;
205
+ }, {
206
+ questions: {
207
+ question: string;
208
+ options: {
209
+ description: string;
210
+ label: string;
211
+ }[];
212
+ header: string;
213
+ multiSelect?: boolean | undefined;
214
+ }[];
215
+ answers?: Record<string, string> | undefined;
216
+ metadata?: {
217
+ source?: string | undefined;
218
+ } | undefined;
219
+ }>;
220
+ argumentRenderer: ToolCallArgumentRenderer;
221
+ isEnabled: (args: {
222
+ runContext: RunContext<Session>;
223
+ }) => boolean;
224
+ needsApproval: (_runContext: RunContext<Session>, input: ToolExecuteArgument<any>, _callId?: string) => Promise<boolean>;
225
+ execute(input: z.infer<typeof AskUserQuestionParameters>, context?: RunContext<Session>, details?: {
226
+ toolCall: FunctionCallItem;
227
+ }): Promise<ToolResult>;
228
+ /**
229
+ * 把 execute 捕获的异常映射到结构化错误码:
230
+ * - ToolExecutionError:保留其码(missing toolCallId=19201 / no answers=19202)
231
+ * - acquireAnswers 超时('timed out')→ ToolTimeoutError(90003)
232
+ * - 中断/abort('Aborted')→ ToolCancelledError(90004)
233
+ * - 其余(rejectAsk 的 'User declined')→ AskFollowupUserDeclinedError(19204)
234
+ */
235
+ private resolveAskErrorCode;
236
+ }
237
+ export {};
@@ -0,0 +1,61 @@
1
+ import { RestOperations } from '@celljs/http';
2
+ import { AuthenticationManager } from '../../workspace/authentication/lib/common/index.js';
3
+ import { Session } from '../../vendor/cbc-core/node/index.js';
4
+ import { ProductManager } from '../../workspace/product/lib/common/index.js';
5
+ import { Logger } from '../../workspace/telemetry/lib/common/index.js';
6
+ import type { RunContext } from '@openai/agents';
7
+ import { AudioTranscribeResult, AudioTranscribeService, AudioTranscribeSource } from './tool-protocol';
8
+ /**
9
+ * 录音文件识别服务实现。
10
+ *
11
+ * 本地文件经后端预签名上传 COS 换取 download_url;调用方给的公网 URL 直接用。
12
+ * 两者都以 `audio_url` 提交异步转写并轮询(从不用 `audio_data`)。
13
+ * 与 VideoServiceImpl 同源的鉴权(run identity 优先、bootstrap 兜底)与会话归因头。
14
+ */
15
+ export declare class AudioTranscribeServiceImpl implements AudioTranscribeService {
16
+ protected readonly restOperations: RestOperations;
17
+ protected readonly authenticationManager: AuthenticationManager;
18
+ protected readonly productManager: ProductManager;
19
+ protected readonly logger: Logger;
20
+ transcribe(source: AudioTranscribeSource, context: RunContext<Session>): Promise<AudioTranscribeResult>;
21
+ /**
22
+ * URL 来源直接用;本地文件走预签名 → PUT 上传 → download_url。
23
+ *
24
+ * URL 的可达性与格式由上游判定:下载失败的任务以 `failed` 结束,
25
+ * `error.message`(如 `Failed to download audio file!`)由 pollTask 透传。
26
+ */
27
+ private resolveAudioSource;
28
+ /**
29
+ * 通过后端预签名接口获取 upload/download URL,PUT 文件字节到 COS,返回 download_url。
30
+ *
31
+ * 预签名需服务端持有的 COS secretID/secretKey,本地不得内嵌平台密钥(BL-CLI-12)。
32
+ * COS PUT 走裸 fetch,仅带 Content-Type,绝不把 bearer 或身份头发给 COS(BL-CLI-11)。
33
+ */
34
+ private presignAndUpload;
35
+ /** COS 预签名 PUT:只带 Content-Type(绝不带 bearer/身份头),失败时抛出明确错误。 */
36
+ private putToCos;
37
+ /**
38
+ * 提交转写任务:POST /v2/async/tasks/create,返回 task_id。
39
+ *
40
+ * 识别参数不暴露给 Agent(#128310):16k 音频只支持单声道,`channel_num` 固定 1;
41
+ * 工具面向会议/访谈等长音频,`speaker_diarization` 默认开启(需 `channel_num=1`)。
42
+ */
43
+ private submitTask;
44
+ /** 轮询任务状态直到 completed / failed / 超时。 */
45
+ private pollTask;
46
+ /**
47
+ * 组装一次 ASR 请求的头。
48
+ *
49
+ * ASR 对 6 个必需 header 缺任意一个(或为空)都返回 400/10001:
50
+ * X-Conversation-ID / X-Conversation-Request-ID / X-Conversation-Message-ID /
51
+ * User-Agent / X-IDE-Type / X-IDE-Name。buildConversationHeaders 可能把
52
+ * X-IDE-Name 置空,这里强制兜底为非空,并补上 buildConversationHeaders 不产出的 User-Agent。
53
+ */
54
+ private buildAsrHeaders;
55
+ /** 生成上传 objectKey:`uploads/{ts}-{rand}-{sanitizedName}`(内联,避免依赖 agent-provider)。 */
56
+ private generateObjectKey;
57
+ /** 准备请求所需的认证与配置(run identity 优先、bootstrap 兜底),与 VideoServiceImpl 同源。 */
58
+ private prepareRequest;
59
+ /** 可中断的 sleep。 */
60
+ private sleep;
61
+ }
@@ -0,0 +1,66 @@
1
+ import { Session } from '../../vendor/cbc-core/node/index.js';
2
+ import { Agent, ToolNames } from '../../vendor/cbc-shared/node/index.js';
3
+ import { AbTestService, ProductManager } from '../../workspace/product/lib/common/index.js';
4
+ import { Logger } from '../../workspace/telemetry/lib/common/index.js';
5
+ import type { RunContext } from '@openai/agents';
6
+ import { z } from 'zod';
7
+ import { BaseTool } from './base-tool';
8
+ import { AudioTranscribeService, Tool, ToolResult } from './tool-protocol';
9
+ /**
10
+ * 只暴露音频文件地址(#128310 §3)。说话人分离、COS 上传、异步转写与结果轮询
11
+ * 全部由工具内部处理,不向 Agent 暴露额外参数。
12
+ */
13
+ declare const AudioTranscribeParameters: z.ZodObject<{
14
+ filePath: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ filePath: string;
17
+ }, {
18
+ filePath: string;
19
+ }>;
20
+ /**
21
+ * 录音文件识别(长音频转文本)工具。
22
+ *
23
+ * 延迟加载 + 高积分前置审批(与 VideoGen 同机制,见 ModelUtils.isMandatoryApprovalTarget)。
24
+ * 本地音频经后端预签名上传 COS 换取下载地址;调用方给的公网 URL 直接提交,省掉一次上传。
25
+ * 成功返回完整转写文本,失败返回可理解的错误文案(#128310 §7)。
26
+ */
27
+ export declare class AudioTranscribeTool extends BaseTool implements Tool {
28
+ protected readonly audioTranscribeService: AudioTranscribeService;
29
+ protected readonly productManager: ProductManager;
30
+ protected readonly abTestService?: AbTestService;
31
+ protected readonly logger: Logger;
32
+ name: ToolNames;
33
+ description: string;
34
+ parameters: z.ZodObject<{
35
+ filePath: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ filePath: string;
38
+ }, {
39
+ filePath: string;
40
+ }>;
41
+ isEnabled: (_args: {
42
+ runContext: RunContext<Session>;
43
+ agent: Agent;
44
+ }) => Promise<boolean>;
45
+ execute(input: z.infer<typeof AudioTranscribeParameters>, context: RunContext<Session>): Promise<ToolResult>;
46
+ /**
47
+ * 判定 `filePath` 是本地路径还是公网 URL,并做各自的前置校验。
48
+ *
49
+ * `file://` 仍按本地路径处理;其余非 http(s) 的 scheme 要显式报错,否则会掉进
50
+ * 本地分支报 "Audio file not found",把模型误导去重试路径。
51
+ */
52
+ private resolveSource;
53
+ /**
54
+ * URL 来源:只校验 scheme 与目标不是内网地址。
55
+ *
56
+ * 下载由云端 ASR 发起、本机不连这个地址,所以按字面量判定即可,不做 DNS 解析。
57
+ * 音频格式、时长、可达性同样交给上游:下载失败的任务以 `failed` 结束,
58
+ * `error.message`(如 `Failed to download audio file!`)由 service 透传回来。
59
+ */
60
+ private resolveUrlSource;
61
+ /** 本地来源:校验存在、非目录、大小上限(BL-CLI-01)与扩展名。 */
62
+ private resolveLocalSource;
63
+ /** 归一化本地路径(兼容 file:// 与 Windows 盘符),与 ArtifactTool 同款。 */
64
+ private normalizeLocalPath;
65
+ }
66
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Auto mode dangerous-allow-rule filtering.
3
+ *
4
+ * In auto mode, an allow rule that covers a dangerous action (e.g. `Bash(*)`,
5
+ * `Bash(sudo *)`, `PowerShell(iex *)`, `Agent(*)`) would let that action bypass
6
+ * the classifier entirely, defeating auto mode's safety check. We strip such
7
+ * rules from the in-memory rule set for the current permission check, forcing the
8
+ * action through the classifier instead.
9
+ *
10
+ * This never mutates settings on disk — callers pass a copied rule array. We use
11
+ * read-time filtering (not Claude's enter-auto strip + exit-auto restore
12
+ * lifecycle): it is behaviourally equivalent but needs no mutable lifecycle
13
+ * state and cannot leak a stripped rule if an exit path is missed.
14
+ *
15
+ * The danger predicate is a faithful port of Claude Code 2.1.181's
16
+ * `isDangerousClassifierPermission` (`bqe = isDangerousBashPermission ||
17
+ * isDangerousPowerShellPermission || isDangerousTaskPermission`). The command /
18
+ * cmdlet sets below are copied verbatim from the 2.1.181 binary; do NOT trim
19
+ * them — each entry changes which allow rules can bypass the classifier.
20
+ */
21
+ /**
22
+ * Whether an allow rule would dangerously bypass the auto classifier
23
+ * (faithful port of Claude `isDangerousClassifierPermission`):
24
+ * dangerous Bash command || dangerous PowerShell cmdlet || any Agent/Task rule.
25
+ */
26
+ export declare function isDangerousAllowRule(rule: string): boolean;
27
+ /**
28
+ * Filter out dangerous allow rules that would bypass the auto classifier,
29
+ * returning the kept (safe) rules. If `onRemoved` is provided, it is called once
30
+ * per stripped rule (used by the host to emit a debug log) — keeps logging at the
31
+ * single place that owns this domain rule.
32
+ */
33
+ export declare function filterDangerousAllowRules(rules: string[], onRemoved?: (rule: string) => void): string[];
@@ -0,0 +1,230 @@
1
+ import { AgentManager, AgentService } from '../../../vendor/cbc-core/node/index.js';
2
+ import { Logger } from '../../../workspace/telemetry/lib/common/index.js';
3
+ import { BaseTool } from '../base-tool';
4
+ import { AutoModeRules } from './auto-mode-protocol';
5
+ import { AutoModeSystemPromptBuilder } from './auto-mode-system-prompt-builder';
6
+ import { AutoModeTranscriptLimit } from './auto-mode-transcript-limit';
7
+ export declare const AutoModeClassifierClient: unique symbol;
8
+ /**
9
+ * Raw classifier verdict, aligned with Claude Code 2.1.179.
10
+ *
11
+ * The classifier model emits a BINARY decision via `<block>yes/no</block>`:
12
+ * - `<block>no</block>` → allow
13
+ * - `<block>yes</block><reason>…</reason>` → block
14
+ * There is no `ask` verdict — "requires confirmation" is a host-side fallback
15
+ * when the classifier is unavailable / fails, not a model output.
16
+ *
17
+ * `noClassifierRelevantInput` short-circuits BEFORE any model call: when the
18
+ * action's own projection is empty (Claude "Tool declares no classifier-relevant
19
+ * input"), auto mode allows it with zero LLM cost.
20
+ */
21
+ export interface ClassifierVerdict {
22
+ decision: 'allow' | 'block';
23
+ reason: string;
24
+ /** True when allowed purely because the action had no classifier-relevant input (no model call). */
25
+ noClassifierRelevantInput?: boolean;
26
+ /**
27
+ * The action's projection (Claude `toAutoClassifierInput`) — the dedup key
28
+ * for denial tracking (decision D3-A #2). Empty for the no-input short-circuit.
29
+ */
30
+ inputKey: string;
31
+ }
32
+ export interface ClassifyInput {
33
+ toolName: string;
34
+ toolInput: unknown;
35
+ rules: AutoModeRules;
36
+ /** Conversation history (AgentInputItem[]); action is appended as the last entry. */
37
+ transcript?: unknown[];
38
+ /** User `permissions.deny` rules injected into the system prompt. */
39
+ settingsDenyRules?: string[];
40
+ /**
41
+ * Optional CODEBUDDY.md / rule-layer text injected as a separate user
42
+ * context message (Claude CLAUDE.md injection, decision D2). Treated as
43
+ * context about user intent, never as blanket authorization.
44
+ */
45
+ projectInstructions?: string;
46
+ /** Session id — used only to name the error-dump file on classifier failure. */
47
+ sessionId?: string;
48
+ }
49
+ /** Thrown when a classifier STAGE 1 call fails before Stage 2 runs (Claude: block "for safety"). */
50
+ export declare class ClassifierUnavailableError extends Error {
51
+ readonly cause?: unknown | undefined;
52
+ constructor(message: string, cause?: unknown | undefined);
53
+ }
54
+ /**
55
+ * Thrown when the classifier model was reachable and answered, but its response
56
+ * is unusable — e.g. a reasoning-only model (gpt-5.5 via the Responses API) spent
57
+ * the whole small output budget on hidden thinking, leaving an empty visible
58
+ * answer, so the Agents SDK threw while reading an empty content array.
59
+ *
60
+ * Distinct from ClassifierUnavailableError (a genuine transport/model outage):
61
+ * the model is up, it's just a poor fit for the tiny classifier budget. The host
62
+ * still blocks the action fail-closed (Claude `parse_failure` → `shouldBlock`),
63
+ * but with "no verdict" wording that points at the classifier model instead of
64
+ * claiming a transient outage, and it must NOT trip the failure circuit breaker.
65
+ */
66
+ export declare class ClassifierResponseUnusableError extends Error {
67
+ readonly cause?: unknown | undefined;
68
+ constructor(message: string, cause?: unknown | undefined);
69
+ }
70
+ /**
71
+ * Heuristic: does a Stage-1 error look like "the model answered but the response
72
+ * was empty / unparseable" rather than a transport/model outage?
73
+ *
74
+ * Two known shapes, both meaning "the model is up, its visible answer is empty":
75
+ * - The Agents SDK reads `content[last].type` on the assistant message; an empty
76
+ * content array (no visible text — the reasoning-only case above) makes
77
+ * `content[last]` undefined and throws `TypeError: Cannot read properties of
78
+ * undefined (reading 'type')`.
79
+ * - A reasoning model that spends the whole output budget on hidden thinking
80
+ * produces a turn with no visible answer, so the run ends without a final
81
+ * output and the SDK throws `MaxTurnsExceededError` (`maxTurns` is 1 here).
82
+ * Matched on `name` because the SDK error class may come from a second copy
83
+ * of `@openai/agents-core` (dual-dist), making `instanceof` unreliable — the
84
+ * same reason `session-manager` matches this error by name.
85
+ */
86
+ export declare function isClassifierResponseUnusable(err: unknown): boolean;
87
+ /**
88
+ * Thrown when STAGE 2 errors after Stage 1 already ran (both-mode, Stage 1 did
89
+ * not return `<block>no`). Claude blocks based on the Stage 1 assessment rather
90
+ * than failing open — the reason names this so it is auditable. Distinct from
91
+ * ClassifierUnavailableError so the host can use the Stage-1-based reason.
92
+ */
93
+ export declare class ClassifierStage2Error extends Error {
94
+ readonly cause?: unknown | undefined;
95
+ constructor(message: string, cause?: unknown | undefined);
96
+ }
97
+ /**
98
+ * Thrown when the serialized transcript exceeds the classifier model's context
99
+ * window (Claude `transcript_too_long`). Distinct from ClassifierUnavailableError
100
+ * because the host handles it differently (prompt fallback interactive, abort
101
+ * headless) and it must NOT trip the failure circuit breaker.
102
+ */
103
+ export declare class TranscriptTooLongError extends Error {
104
+ readonly actualTokens: number;
105
+ readonly limitTokens: number;
106
+ constructor(actualTokens: number, limitTokens: number);
107
+ }
108
+ /**
109
+ * Invokes the lite model for risk classification, using the real Claude Code
110
+ * two-stage `<block>` mechanism.
111
+ *
112
+ * - Stage 1 (fast): system prompt + transcript + STAGE1_SUFFIX, tiny budget +
113
+ * `</block>` stop, no user-intent / ALLOW. `<block>no</block>` → allow
114
+ * immediately. Otherwise continue to Stage 2.
115
+ * - Stage 2 (thinking): system prompt + transcript + STAGE2_SUFFIX, large
116
+ * budget, NO stop sequence (so `<reason>` after `</block>` is preserved),
117
+ * full rules incl. user intent + ALLOW.
118
+ *
119
+ * The system prompt (framework + injected rules + settings deny rules) is built
120
+ * per call; the transcript is the serialized conversation history with the action
121
+ * being classified as the last entry. The model is the one configured for this
122
+ * agent (`settings.subagents.agents.autoModeClassifier.model`) and otherwise the
123
+ * shipped `lite` default; isolation is owned by
124
+ * AgentService.runOneTimeWithOverrides; the output budget is widened for models
125
+ * that cannot disable reasoning (see `runStage`).
126
+ */
127
+ export declare class AutoModeClassifierClientImpl {
128
+ protected readonly agentService: AgentService;
129
+ protected readonly agentManager: AgentManager;
130
+ protected readonly systemPromptBuilder: AutoModeSystemPromptBuilder;
131
+ protected readonly transcriptLimit: AutoModeTranscriptLimit;
132
+ /** All registered tools — used only to look up per-tool classifier projections. */
133
+ protected readonly tools: BaseTool[];
134
+ protected readonly logger: Logger;
135
+ /** Lazy `toolName → BaseTool` index for projection lookup. */
136
+ private toolIndex?;
137
+ classify(input: ClassifyInput): Promise<ClassifierVerdict>;
138
+ /**
139
+ * Project the action being classified. Returns `''` (short-circuit-to-allow)
140
+ * only when the tool's own projection is empty; an unknown tool projects to
141
+ * its raw input so a tool we cannot reason about is never auto-allowed by the
142
+ * empty-projection path (it still goes to the classifier).
143
+ */
144
+ private projectAction;
145
+ /**
146
+ * Project a history tool_use. Unknown tools are dropped from history (return
147
+ * undefined) — Claude skips tools it has no projection for; in history this
148
+ * is safe because the missing context only weakens, never bypasses, a check.
149
+ */
150
+ private projectHistory;
151
+ /** Call a tool's projection, treating any throw as malformed input (Claude raw-input fallback). */
152
+ private safeProject;
153
+ private fallbackProjection;
154
+ private getToolIndex;
155
+ /**
156
+ * CODEBUDDY.md / rule-layer context message (decision D2). Prepended to the
157
+ * classifier messages with the same framing Claude uses: it is context about
158
+ * the user's environment and intent, and only an explicit authorization of
159
+ * the SPECIFIC action under review may be weighed — generic "be autonomous"
160
+ * encouragement is NOT authorization.
161
+ */
162
+ private buildContextMessages;
163
+ /**
164
+ * Whether the classifier model keeps reasoning no matter what we ask
165
+ * (Claude 2.1.226 `Xpr`). Two existing product signals carry that meaning:
166
+ * - `onlyReasoning`: the model only has a reasoning mode;
167
+ * - `reasoning.canDisableThinking === false`: no "off" switch is offered.
168
+ *
169
+ * Models whose capabilities we cannot read are treated as forcing reasoning.
170
+ * That covers both "no model at all" and the `{ id, name }` placeholders
171
+ * AgentManager builds for ids only the gateway knows (env
172
+ * `CODEBUDDY_SMALL_FAST_MODEL`, `settings.variantModels`, a session model
173
+ * outside `modelMap`): those carry no capability fields, so the two signals
174
+ * above would silently read as "reasoning can be disabled". `supportsReasoning`
175
+ * is the marker — every text model in the product config declares it, the
176
+ * placeholders declare nothing.
177
+ *
178
+ * Erring this way is cheap (a model that can turn reasoning off just gets
179
+ * budget it never uses) while the opposite breaks the classifier outright, so
180
+ * unknown models take the headroom. Claude's `Xpr` falls back to a
181
+ * provider-level check for the same reason.
182
+ */
183
+ private forcesReasoning;
184
+ /**
185
+ * Resolve the model the classifier stages run on:
186
+ * 1. an explicitly picked classifier model — `CODEBUDDY_CODE_SUBAGENT_MODEL`,
187
+ * then `settings.subagents.agents.autoModeClassifier.model`
188
+ * (project > user), i.e. the shared per-Agent priority chain so `/agents`
189
+ * shows what actually runs; pinned onto the run via the `model` override;
190
+ * 2. otherwise the shipped default — `product.json` declares `lite`, whose
191
+ * resolution stays with `AgentService.resolveRunOneTimeModel` (its
192
+ * session-aware variant resolution, #82146); we only mirror it here to
193
+ * decide the output budget.
194
+ *
195
+ * Read-only; a resolution failure yields an empty choice, which
196
+ * `forcesReasoning` treats as "assume reasoning" (grant the headroom).
197
+ */
198
+ private resolveClassifierModel;
199
+ /** The user's configured classifier model, or undefined when they configured none. */
200
+ private resolveConfiguredClassifierModel;
201
+ /**
202
+ * Failure text for "the model answered but produced no usable verdict". Names
203
+ * the model that ran and the knob that changes it: the cause is model fit (a
204
+ * model that spends the small output budget on hidden reasoning), which only
205
+ * the user can fix by pointing the classifier at another model.
206
+ *
207
+ * Which knob is named follows whichever source actually won. Telling the user
208
+ * to edit settings while `CODEBUDDY_CODE_SUBAGENT_MODEL` is set would be wrong
209
+ * advice — the env var outranks settings for every sub-agent, so the edit
210
+ * would have no effect.
211
+ */
212
+ private describeUnusableResponse;
213
+ private runStage;
214
+ /**
215
+ * Best-effort error dump (Claude `auto-mode-classifier-errors/<session>.txt`):
216
+ * write the failing error + action + system prompt + transcript so a flaky
217
+ * classifier can be diagnosed. Never throws — diagnostics must not mask the
218
+ * original failure.
219
+ */
220
+ private dumpError;
221
+ /**
222
+ * Parse `<block>yes|no</block>` after stripping `<thinking>` (Claude nLK/jhK).
223
+ * Returns true=block, false=allow, null=unparseable.
224
+ */
225
+ private parseBlock;
226
+ /** Parse the first `<reason>…</reason>` after stripping `<thinking>` (Claude iLK). */
227
+ private parseReason;
228
+ /** Remove `<thinking>…</thinking>` blocks (and an unterminated trailing one). */
229
+ private stripThinking;
230
+ }
@@ -0,0 +1,51 @@
1
+ import { PromptManager } from '../../../workspace/prompts/lib/common/index.js';
2
+ import { AutoModeSettings } from '../../settings';
3
+ import { AutoModeRules } from './auto-mode-protocol';
4
+ import { AutoModeSystemPromptBuilder } from './auto-mode-system-prompt-builder';
5
+ export declare const AutoModeCritiqueClient: unique symbol;
6
+ /** True if any section has a custom entry beyond the `$defaults` token (Claude `is6`). */
7
+ export declare function hasCustomRules(raw: AutoModeSettings | undefined): boolean;
8
+ /**
9
+ * Runs the auto mode rule critique (read-only).
10
+ *
11
+ * Implementation: spawns a standard `codebuddy -p` (print/headless) subprocess.
12
+ * This reuses the project's canonical "cold-start, run once, exit" path — the
13
+ * child waits for its own runtime to be fully ready, so the critique command
14
+ * never races agent registration during startup (which a direct in-process
15
+ * `runOneTime` would, since this runs from a short-lived dispatch strategy).
16
+ *
17
+ * Prompt / context assembly is aligned with Claude Code 2.1.179 `MIT`/`rs6`:
18
+ * - system prompt = the "expert reviewer" critique instructions template
19
+ * - the user message embeds the FULL classifier system prompt plus the user's
20
+ * custom rules, each section annotated as replacing or extending the defaults
21
+ * - only the user's CUSTOM rules are reviewed (the strategy gates on
22
+ * `hasCustomRules` before calling this)
23
+ *
24
+ * Does not participate in permission decisions.
25
+ */
26
+ export declare class AutoModeCritiqueClientImpl {
27
+ protected readonly systemPromptBuilder: AutoModeSystemPromptBuilder;
28
+ protected readonly promptManager: PromptManager;
29
+ /**
30
+ * @param resolved effective rules after `$defaults` expansion — used to render
31
+ * the classifier system prompt the critique reviews against.
32
+ * @param raw merged-but-unexpanded custom rules (`$defaults` preserved) —
33
+ * used to show only the user's own entries with replace/extend
34
+ * annotations.
35
+ */
36
+ critique(resolved: AutoModeRules, raw: AutoModeSettings): Promise<string>;
37
+ /** Load the critique "expert reviewer" system prompt template text. */
38
+ private loadCritiqueSystemPrompt;
39
+ /**
40
+ * Spawn `codebuddy -p --model lite --system-prompt <critique> -` with the
41
+ * critique user message on stdin, and return the printed text.
42
+ */
43
+ private runPrintSubprocess;
44
+ protected buildCritiqueInput(resolved: AutoModeRules, raw: AutoModeSettings): Promise<string>;
45
+ /**
46
+ * Format one section's custom rules, noting whether they extend (contain
47
+ * `$defaults`) or replace the built-in defaults. Mirrors Claude `rs6`.
48
+ * Returns '' when the section has no custom entries.
49
+ */
50
+ private formatSection;
51
+ }