@tencent-ai/agent-harness 0.2.0-beta.7 → 0.2.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (859) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/cli/CHANGELOG.md +74 -0
  3. package/cli/dist-server/lite/in-memory-session-store.js +1 -1
  4. package/cli/dist-server/shared.cjs +263 -217
  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 +3 -1
  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 +7 -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/interruption-service.d.ts +4 -0
  641. package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-host-protocol.d.ts +2 -1
  642. package/cli/dist-server/types/vendor/cbc-core/node/session/session-interruption-host-protocol.d.ts +3 -0
  643. package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +6 -0
  644. package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +46 -7
  645. package/cli/dist-server/types/vendor/cbc-core/node/session-title/session-title-utils.d.ts +36 -0
  646. package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +37 -9
  647. package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +27 -0
  648. package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +9 -5
  649. package/cli/dist-server/types/vendor/cbc-shared/node/agent/custom-input-item-types.d.ts +20 -0
  650. package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +2 -2
  651. package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +23 -6
  652. package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +2 -0
  653. package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/security-review-reason-code.d.ts +0 -10
  654. package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-path-utils.d.ts +10 -0
  655. package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +2 -0
  656. package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +7 -2
  657. package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/reviewer-recovery.d.ts +7 -0
  658. package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +38 -2
  659. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +4 -0
  660. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-host-protocol.d.ts +2 -1
  661. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-interruption-host-protocol.d.ts +3 -0
  662. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +6 -0
  663. package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +46 -7
  664. package/cli/dist-server/types/workspace/cbc-core/lib/node/session-title/session-title-utils.d.ts +36 -0
  665. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +37 -9
  666. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +27 -0
  667. package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +9 -5
  668. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-parser.d.ts +34 -0
  669. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-protocol.d.ts +191 -0
  670. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler-service.d.ts +131 -0
  671. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-scheduler.d.ts +20 -0
  672. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-state-manager.d.ts +50 -0
  673. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-storage.d.ts +61 -0
  674. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/cron-task-session.d.ts +1 -0
  675. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/index.d.ts +8 -0
  676. package/cli/dist-server/types/workspace/cbc-cron/lib/node/cron/loop-skill-provider.d.ts +36 -0
  677. package/cli/dist-server/types/workspace/cbc-cron/lib/node/index.d.ts +10 -0
  678. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/bg-session-handler.d.ts +88 -0
  679. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-auto-restart.d.ts +61 -0
  680. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-channel-autoconnect.d.ts +28 -0
  681. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-enhancements-lifecycle.d.ts +45 -0
  682. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-process.d.ts +77 -0
  683. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-protocol.d.ts +324 -0
  684. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/daemon-service.d.ts +45 -0
  685. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/index.d.ts +10 -0
  686. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/session-registry.d.ts +39 -0
  687. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/system-service.d.ts +60 -0
  688. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/daemon/wake-detector.d.ts +47 -0
  689. package/cli/dist-server/types/workspace/cbc-daemon/lib/node/index.d.ts +11 -0
  690. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-format.d.ts +25 -0
  691. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-policy.d.ts +55 -0
  692. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-protocol.d.ts +204 -0
  693. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-service.d.ts +353 -0
  694. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-session-start-hook.d.ts +25 -0
  695. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/goal-utils.d.ts +23 -0
  696. package/cli/dist-server/types/workspace/cbc-goal/lib/node/goal/index.d.ts +6 -0
  697. package/cli/dist-server/types/workspace/cbc-goal/lib/node/index.d.ts +12 -0
  698. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/index.d.ts +35 -0
  699. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/index.d.ts +14 -0
  700. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/sec-default.d.ts +32 -0
  701. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/builtin/telemetry.d.ts +43 -0
  702. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/enable-flag.d.ts +41 -0
  703. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/engine-builder.d.ts +61 -0
  704. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/hooks-registry.d.ts +188 -0
  705. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/index.d.ts +6 -0
  706. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/mods-runtime.d.ts +101 -0
  707. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/op-table.d.ts +37 -0
  708. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/engine/pattern.d.ts +20 -0
  709. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/core-handler.d.ts +78 -0
  710. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/host-bindings.d.ts +215 -0
  711. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/index.d.ts +6 -0
  712. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/plugin-store.d.ts +22 -0
  713. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-component.d.ts +115 -0
  714. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/render-registry.d.ts +99 -0
  715. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/host/terminal-play.d.ts +56 -0
  716. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/index.d.ts +9 -0
  717. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/fan-out.d.ts +23 -0
  718. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/hook-result-mapper.d.ts +27 -0
  719. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/legacy-adapter/index.d.ts +2 -0
  720. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bootstrap.d.ts +104 -0
  721. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/bundle-cache.d.ts +59 -0
  722. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/index.d.ts +8 -0
  723. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/isolated-import.d.ts +20 -0
  724. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/load-mod.d.ts +151 -0
  725. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/manifest-dir.d.ts +33 -0
  726. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/mounted-import.d.ts +12 -0
  727. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/ts-runtime.d.ts +64 -0
  728. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/loader/types-emitter.d.ts +105 -0
  729. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/harness.d.ts +84 -0
  730. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/testing/index.d.ts +1 -0
  731. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/agent.d.ts +188 -0
  732. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/command.d.ts +114 -0
  733. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/prompt.d.ts +310 -0
  734. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/tool.d.ts +308 -0
  735. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events/upstream.d.ts +8777 -0
  736. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/events.d.ts +651 -0
  737. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/mods/types/index.d.ts +1 -0
  738. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/concurrency.d.ts +1 -0
  739. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/dependency-resolver.d.ts +43 -0
  740. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/directory-plugin-cache-projection.d.ts +2 -0
  741. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/index.d.ts +2 -0
  742. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/guards/weixinpay-integrity-guard.d.ts +48 -0
  743. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/index.d.ts +42 -0
  744. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-plugin-installer.d.ts +42 -0
  745. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/git-subdir-plugin-installer.d.ts +19 -0
  746. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/index.d.ts +4 -0
  747. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/local-plugin-installer.d.ts +40 -0
  748. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/installers/npm-plugin-installer.d.ts +23 -0
  749. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/agent-loader.d.ts +43 -0
  750. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/command-loader.d.ts +39 -0
  751. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/hook-loader.d.ts +55 -0
  752. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/index.d.ts +8 -0
  753. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/lsp-loader.d.ts +47 -0
  754. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/mcp-loader.d.ts +75 -0
  755. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/output-style-loader.d.ts +49 -0
  756. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/plugin-loader-manager.d.ts +73 -0
  757. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/loaders/skill-loader.d.ts +45 -0
  758. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-name-validator.d.ts +50 -0
  759. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplace-path-safety.d.ts +86 -0
  760. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/base-marketplace.d.ts +48 -0
  761. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/builtin-marketplace-provider.d.ts +47 -0
  762. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/directory-marketplace.d.ts +19 -0
  763. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-availability-detector.d.ts +62 -0
  764. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-fallback-coordinator.d.ts +42 -0
  765. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/git-to-zip-url-converter.d.ts +50 -0
  766. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/github-marketplace.d.ts +41 -0
  767. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/http-marketplace.d.ts +47 -0
  768. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/index.d.ts +13 -0
  769. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-config-manager.d.ts +43 -0
  770. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-factory.d.ts +12 -0
  771. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-storage.d.ts +142 -0
  772. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/marketplace-update-checker.d.ts +41 -0
  773. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/marketplaces/zip-marketplace.d.ts +150 -0
  774. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/mcpb-handler.d.ts +29 -0
  775. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-controller.d.ts +77 -0
  776. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-environment.d.ts +36 -0
  777. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-error-collector.d.ts +17 -0
  778. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-install-stats-service.d.ts +20 -0
  779. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-manager.d.ts +765 -0
  780. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-mcp-snapshot.d.ts +63 -0
  781. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-options-storage.d.ts +87 -0
  782. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-policy-service.d.ts +55 -0
  783. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-protocol.d.ts +1567 -0
  784. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-read-summary.d.ts +61 -0
  785. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-runtime-refresh-service.d.ts +262 -0
  786. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/plugin-validator.d.ts +48 -0
  787. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/session-plugin-snapshot.d.ts +5 -0
  788. package/cli/dist-server/types/workspace/cbc-plugins/lib/node/plugins/zip-utils.d.ts +94 -0
  789. package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/custom-input-item-types.d.ts +20 -0
  790. package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +2 -2
  791. package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +23 -6
  792. package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-protocol.d.ts +124 -0
  793. package/cli/dist-server/types/workspace/code-ratio/lib/common/code-ratio-reporter.d.ts +57 -0
  794. package/cli/dist-server/types/workspace/code-ratio/lib/common/diff/unified-diff.d.ts +37 -0
  795. package/cli/dist-server/types/workspace/code-ratio/lib/common/feature-gate.d.ts +59 -0
  796. package/cli/dist-server/types/workspace/code-ratio/lib/common/filters/file-filter.d.ts +41 -0
  797. package/cli/dist-server/types/workspace/code-ratio/lib/common/index.d.ts +6 -0
  798. package/cli/dist-server/types/workspace/code-ratio/lib/common/vcs-repo-resolver-protocol.d.ts +50 -0
  799. package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
  800. package/cli/dist-server/types/workspace/product/lib/common/repo-params.d.ts +14 -0
  801. package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +35 -22
  802. package/cli/dist-server/types/workspace/product/lib/common/types/index.d.ts +0 -1
  803. package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +1 -0
  804. package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +0 -7
  805. package/cli/dist-server/types/workspace/sandbox-cli/lib/common/protocol.generated.d.ts +392 -0
  806. package/cli/dist-server/types/workspace/sandbox-cli/lib/node/file-policy.d.ts +48 -0
  807. package/cli/dist-server/types/workspace/sandbox-cli/lib/node/resolver.d.ts +95 -0
  808. package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-cli-client.d.ts +78 -0
  809. package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/security-review.d.ts +35 -6
  810. package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/index.d.ts +1 -1
  811. package/cli/dist-server/types/workspace/telemetry/lib/common/tracing/otel-env.d.ts +1 -0
  812. package/cli/package.json +1 -1
  813. package/cli/product.cloudhosted.json +1 -1
  814. package/cli/product.internal.json +1 -1
  815. package/cli/product.ioa.json +1 -1
  816. package/cli/product.json +1 -1
  817. package/cli/product.selfhosted.json +1 -1
  818. package/docs/client.md +41 -0
  819. package/docs/in-process.md +151 -14
  820. package/docs/server.md +40 -1
  821. package/executor/lib/capsule/THIRD_PARTY_LICENSES.md +2 -2
  822. package/executor/lib/capsule/entry.mjs +8 -8
  823. package/executor/lib/capsule/manifest.json +2 -2
  824. package/executor/lib/private-protocol.cjs +33 -2
  825. package/executor/lib/private-protocol.d.cts +21 -1
  826. package/executor/lib/types.d.cts +15 -0
  827. package/lib/agent/v2.d.ts +1 -1
  828. package/lib/agent/v2.js +1 -1
  829. package/lib/application/services.d.ts +13 -1
  830. package/lib/application/services.js +1 -1
  831. package/lib/cli/main.js +3 -3
  832. package/lib/client/rpc.d.ts +16 -0
  833. package/lib/components/functional-hooks.d.mts +4 -0
  834. package/lib/components/functional-hooks.mjs +1 -0
  835. package/lib/harness/create-harness.js +1 -1
  836. package/lib/harness/hooks.d.ts +8 -0
  837. package/lib/harness/hooks.js +1 -0
  838. package/lib/harness/runtime.js +1 -1
  839. package/lib/harness/types.d.ts +7 -2
  840. package/lib/integration/agent-integration.d.ts +5 -1
  841. package/lib/integration/agent-integration.js +1 -1
  842. package/lib/integration/client-mcp-attachment.d.ts +5 -1
  843. package/lib/integration/client-mcp-attachment.js +1 -1
  844. package/lib/integration/executor-supervisor.d.ts +10 -1
  845. package/lib/integration/executor-supervisor.js +1 -1
  846. package/lib/integration/session-mcp-scope.d.ts +5 -1
  847. package/lib/integration/session-mcp-scope.js +1 -1
  848. package/lib/integration/session-mcp-view.d.ts +6 -1
  849. package/lib/integration/session-mcp-view.js +1 -1
  850. package/lib/mcp-server/module.d.ts +22 -2
  851. package/lib/mcp-server/module.js +1 -1
  852. package/lib/mcp-server/rpcs.d.ts +174 -123
  853. package/lib/mcp-server/rpcs.js +1 -1
  854. package/lib/mcp-server/schemas.d.ts +33 -0
  855. package/lib/mcp-server/schemas.js +1 -1
  856. package/lib/protocol/rpc.d.ts +73 -3
  857. package/lib/public.d.ts +1 -1
  858. package/package.json +24 -20
  859. package/cli/dist-server/types/workspace/product/lib/common/types/workspace-report.d.ts +0 -119
@@ -0,0 +1,151 @@
1
+ import { type PlatformPath } from 'node:path';
2
+ import type { Plugin } from 'esbuild';
3
+ import type { PluginOptions, Register, RegisteredMod, Tier } from '../types/index.js';
4
+ import { type ManifestDir } from './manifest-dir.js';
5
+ /** `plugin.json` 的形状(对齐官方 mod 的 manifest)。 */
6
+ export interface PluginManifest {
7
+ name: string;
8
+ version?: string;
9
+ description?: string;
10
+ author?: {
11
+ name?: string;
12
+ } | string;
13
+ /**
14
+ * 该 plugin 的类型契约路径,相对 plugin root、以 `./` 开头。
15
+ *
16
+ * 官方约束(`plugin validate` 会查):一个**自包含**的 `.d.ts` —— 不含
17
+ * import / export-from / require / reference,顶层导出它在 `engine.create`
18
+ * 里加的 noun 的类型,并在 `declare module 'codebuddy-code' { interface
19
+ * EngineInterface { … } }`(或 `'claude-code'`)里声明该 noun,别无其他。
20
+ */
21
+ types?: string;
22
+ /** 该 mod 的默认配置项。 */
23
+ options?: PluginOptions;
24
+ }
25
+ /** `hooks/hooks.json` 的形状。 */
26
+ export interface HooksManifest {
27
+ description?: string;
28
+ /** register 模块路径列表(相对 hooks.json 所在目录)。 */
29
+ modules: readonly string[];
30
+ }
31
+ /** 一个已解析、可挂载的 mod 包。 */
32
+ export interface LoadedMod extends RegisteredMod {
33
+ readonly manifest: PluginManifest;
34
+ /** manifest 实际来自哪个受支持的插件元数据目录。 */
35
+ readonly manifestDir: ManifestDir;
36
+ readonly hooks: HooksManifest;
37
+ }
38
+ /** 模块加载器:把一个 TS/JS 入口变成运行时模块。 */
39
+ export type ModuleImporter = (absPath: string, root?: string) => Promise<unknown>;
40
+ /** 载入 mod 时的可选项。 */
41
+ export interface LoadOptions {
42
+ /** Metadata and code must use the same mounted filesystem. */
43
+ readonly readText?: (path: string) => Promise<string>;
44
+ readonly paths?: Pick<PlatformPath, 'join' | 'resolve' | 'isAbsolute'>;
45
+ /** 挂载 tier,默认 `user`。 */
46
+ readonly tier?: Tier;
47
+ /** 覆盖/补充 manifest 里的 options。 */
48
+ readonly options?: PluginOptions;
49
+ /**
50
+ * 自定义模块加载器。默认用 esbuild 把入口 bundle 成一个临时 ESM 文件再
51
+ * `import()` —— 官方 mod 的 TS 源码(目录 import、`.js` specifier、
52
+ * `import type … from 'claude-code'`)都能直接吃下。
53
+ */
54
+ readonly importModule?: ModuleImporter;
55
+ /**
56
+ * 是否走**隔离通道**:把 register 模块塞进 vm 沙箱执行,脚本因此够不到宿主的
57
+ * `require` / `process` / `global` 等高危面(见 `isolated-import.ts`)。
58
+ *
59
+ * 缺省 `false`,保持「宿主 realm 内 `import()`、mod 可直接用 Node 内建」的既有
60
+ * 语义。`options.importModule` 显式给出时本项被忽略(自定义加载器优先)。
61
+ */
62
+ readonly isolate?: boolean;
63
+ }
64
+ /**
65
+ * JSX factory shim,原地嵌入(不能读磁盘:CLI 打进 `dist/codebuddy.js` 后源码
66
+ * 不再挨着 bundle)。ESM 通道与 isolated CJS 通道共用同一份 —— 两者的 esbuild
67
+ * 配置都 `inject: ['cbc-jsx-shim']`,factory 名 `h` 与各文件头部的 `@jsx h`
68
+ * pragma 对齐。
69
+ */
70
+ export declare const JSX_SHIM_SOURCE = "\n// The JSX factory. Named `h` (Preact / classic-pragma convention) so the\n// esbuild config's `jsxFactory: 'h'` matches per-file `/* @jsx h */`\n// pragmas exactly. Aliased as `__cbcH` for internal spec tests that\n// reference it under the old name.\nexport function h(type, props, ...children) {\n const flat = [];\n for (const child of children) {\n if (child === null || child === undefined || child === false || child === true) continue;\n if (Array.isArray(child)) {\n for (const inner of child) {\n if (inner !== null && inner !== undefined && inner !== false && inner !== true) flat.push(inner);\n }\n continue;\n }\n flat.push(child);\n }\n const finalProps = { ...(props ?? {}) };\n // Function-typed `type` means `<Box>` came from a destructured factory\n // (`const { Box } = await $.ui.resolve(e)`) \u2014 official diff mod pattern.\n // React's createElement treats that as a component: call it with props +\n // children slot and return whatever it produces. Our `$.ui.resolve`\n // factories return `{ type: 'Box', ... }` at runtime, so this collapses\n // the JSX call into the real element in one step.\n if (typeof type === 'function') {\n return type({ ...finalProps, children: flat.length === 1 ? flat[0] : flat });\n }\n if (type === 'Text' && finalProps.text === undefined && flat.every(c => typeof c === 'string' || typeof c === 'number')) {\n finalProps.text = flat.join('');\n return { type, props: finalProps, children: [] };\n }\n return { type, props: finalProps, children: flat };\n}\nexport const __cbcH = h;\nexport const Fragment = 'Fragment';\nexport const __cbcFragment = Fragment;\nexport const Box = 'Box';\nexport const Text = 'Text';\nexport const Button = 'Button';\nexport const Input = 'Input';\nexport const Select = 'Select';\nexport const Link = 'Link';\nexport const Code = 'Code';\nexport const Markdown = 'Markdown';\nexport const Image = 'Image';\nexport const Svg = 'Svg';\nexport const Raster = 'Raster';\nexport const Client = 'Client';\n";
71
+ /**
72
+ * 懒加载 esbuild —— 只有走转译通道(JSX / isolated CJS)才需要。缺失时把「为什么
73
+ * 需要转译器」「怎么补」讲清楚,别让用户对着光秃秃的 `ERR_MODULE_NOT_FOUND` 去猜。
74
+ *
75
+ * @param entry register 模块的绝对路径(仅用于错误信息)
76
+ */
77
+ export declare function loadEsbuild(entry: string): Promise<typeof import('esbuild')>;
78
+ /**
79
+ * 用 esbuild 把 mod 入口 bundle 成单文件。`format` 决定产物形态:
80
+ * - `'esm'`:给 `import()` 通道(`bundleAndImport`)
81
+ * - `'cjs'`:给 isolated vm 通道(`importModuleIsolated`),产物在沙箱里以
82
+ * `module`/`exports` 执行,`require` 被拦截
83
+ *
84
+ * 两个 format 共用同一套解析 / JSX / external 配置,只差 `format` 一项 —— 保证
85
+ * 「同一个 mod 在两条通道里编译出的语义完全一致」。
86
+ *
87
+ * @returns bundle 产物文本,以及本次真正读过的输入文件(缓存失效判定用)
88
+ */
89
+ export declare function runEsbuild(esbuild: typeof import('esbuild'), entry: string, format: 'esm' | 'cjs', plugins?: readonly Plugin[]): Promise<{
90
+ code: string;
91
+ inputs: string[];
92
+ }>;
93
+ /**
94
+ * 通道二:esbuild bundle → 临时 `.mjs` → 动态 `import()`。
95
+ *
96
+ * **只在 Node 内建通道搞不定时才用**(唯一已知场景:mod 里有 JSX,官方 `diff`
97
+ * 就是)。因此 esbuild 是**可选依赖** —— 缺了它,非 JSX 的 mod 照样能跑,带 JSX
98
+ * 的 mod 会得到一句明确的话。
99
+ *
100
+ * 产物走**内容寻址磁盘缓存**(`bundle-cache.ts`):命中就直接 `import` 缓存的
101
+ * `.mjs`,完全不启动 esbuild。
102
+ *
103
+ * @param entry register 模块的绝对路径
104
+ * @param env 环境(决定缓存根目录;测试可指向临时目录)
105
+ */
106
+ export declare function bundleAndImport(entry: string, env?: NodeJS.ProcessEnv): Promise<unknown>;
107
+ /**
108
+ * 默认加载器:**JSX 一律走 esbuild,其余先试 Node 内建通道**。
109
+ *
110
+ * 0. **`.tsx` / JSX 一律走 esbuild** —— Bun / Node(22.6+ strip-types / 22.15+
111
+ * hooks / 20.x)对 JSX 的默认 factory 各不相同(Bun 用 `React.createElement`,
112
+ * Node 根本不认 JSX),而 mod 作者不 import 任何 factory。让所有 JSX 集中
113
+ * 走 esbuild 的 `jsxFactory: '__cbcH'` + `inject: [jsx-shim]`,是**唯一**
114
+ * 能保证「不管在哪版 Node/Bun 都编译到同一个 factory」的路径。命中 bundle
115
+ * 缓存后无感(`.tsx` 首次 build 后 stat 比对,几毫秒)。
116
+ * 1. runtime 原生支持(Bun)—— **非 JSX** mod 直接 `import()`,零开销、零钩子。
117
+ * 2. Node 内建 type stripping + **作用域化**的 resolve 钩子(只对该 mod root
118
+ * 之下的路径生效,加载完即卸载)。零第三方依赖,覆盖官方 `telemetry` /
119
+ * `sec-default` / `agents-md`。
120
+ * 3. 只有当报错表明「strip-types 不认这个语法」时,才 `bundleAndImport()` 用
121
+ * esbuild 真转译。
122
+ *
123
+ * 其它错误(源码本身写错、依赖缺失)**原样抛出** —— 不会被误判成「需要转译器」
124
+ * 而绕一圈给出无关的 esbuild 提示。
125
+ *
126
+ * @param entry register 模块的绝对路径
127
+ */
128
+ export declare function defaultImporter(entry: string, root?: string): Promise<unknown>;
129
+ /**
130
+ * 从一个 mod 目录载入 mod —— 等价官方 `claude --plugin-dir <path>`。
131
+ *
132
+ * 期望目录结构(与 `anthropics/claude-code/mods/*` 完全一致):
133
+ * ```
134
+ * <root>/
135
+ * ├── .codebuddy-plugin/plugin.json # cbc 优先;官方 mod 用 .claude-plugin,同样识别
136
+ * └── hooks/
137
+ * ├── hooks.json # { description, modules: ["./register.ts"] }
138
+ * └── register.ts # export function register(on, options)
139
+ * ```
140
+ *
141
+ * 多个 `modules` 的 `register` 按声明顺序执行(等价一个 mod 内多段注册,
142
+ * 先声明的更外层)。
143
+ *
144
+ * @param root mod 目录(含 `.codebuddy-plugin/` 或 `.claude-plugin/`)
145
+ * @param options tier / options / 自定义 importer
146
+ */
147
+ export declare function loadModFromDirectory(root: string, options?: LoadOptions): Promise<LoadedMod>;
148
+ /** 判断一个目录是否是 mod(带 function hooks 的 plugin)。 */
149
+ export declare function isModDirectory(root: string, readText?: (path: string) => Promise<string>, joinPath?: (...paths: string[]) => string): Promise<boolean>;
150
+ /** 把一个已在内存里的 `register` 包成 mod(测试 / 宿主自带 mod 用)。 */
151
+ export declare function modOf(name: string, tier: Tier, register: Register, options?: PluginOptions, root?: string): RegisteredMod;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * plugin manifest 目录名 —— cbc 优先自有命名,同时**兼容识别** Claude Code 的。
3
+ *
4
+ * 顺序即优先级,与普通插件扫描共用 codebuddy、workbuddy、claude 的约定。
5
+ */
6
+ export declare const MANIFEST_DIRS: string[];
7
+ export type ManifestDir = (typeof MANIFEST_DIRS)[number];
8
+ /** manifest 文件名(各实现一致)。 */
9
+ export declare const MANIFEST_FILE = "plugin.json";
10
+ /** hooks manifest 相对 plugin root 的路径(各实现一致)。 */
11
+ export declare const HOOKS_MANIFEST: readonly ['hooks', 'hooks.json'];
12
+ /** 一次探测的结果。 */
13
+ export interface ManifestLocation {
14
+ /** 命中的目录名。 */
15
+ readonly dir: ManifestDir;
16
+ /** `<root>/<dir>/plugin.json` 的绝对路径。 */
17
+ readonly path: string;
18
+ /** 已读到的原文。 */
19
+ readonly text: string;
20
+ }
21
+ /**
22
+ * 在 plugin root 下按 PLUGINS_METADATA_DIRS 的优先级寻找 manifest。
23
+ *
24
+ * 这样一来,`anthropics/claude-code/mods/*` 这类**未经改动的官方 mod 目录**
25
+ * 可以直接被 cbc 加载(它们只有 `.claude-plugin`),而 cbc 自有生态可以用
26
+ * `.codebuddy-plugin` 且不与 Claude 争抢同一个目录名。
27
+ *
28
+ * @param root plugin 根目录
29
+ * @returns 命中的位置;候选目录都没有则 undefined
30
+ */
31
+ export declare function findManifest(root: string, readText?: (path: string) => Promise<string>, joinPath?: (...paths: string[]) => string): Promise<ManifestLocation | undefined>;
32
+ /** 供诊断用:列出候选路径。 */
33
+ export declare function manifestCandidates(root: string): readonly string[];
@@ -0,0 +1,12 @@
1
+ import { type PlatformPath } from 'node:path';
2
+ import { type ModuleImporter } from './load-mod.js';
3
+ export interface ModFileSystem {
4
+ readText(path: string): Promise<string>;
5
+ log?(...args: unknown[]): void;
6
+ paths: Pick<PlatformPath, 'resolve' | 'relative' | 'dirname' | 'join' | 'isAbsolute'>;
7
+ }
8
+ /** esbuild's virtual-module API keeps every source read on the host's mount.
9
+ * Each evaluation gets a fresh realm; only the session owner retains module state.
10
+ * No native-fs fallback, npm resolution or shared evaluated-module cache.
11
+ */
12
+ export declare function mountedModuleImporter(fs: ModFileSystem): ModuleImporter;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * 按绝对路径做**真正的** ESM 动态 import。
3
+ *
4
+ * ## 两个 magic comment 都是必需的,不是装饰
5
+ *
6
+ * agent-cli 的发布产物是 rspack 打出的 CJS bundle。打包器默认会接管它**能看见**
7
+ * 的每一个 `import(x)`:在 CJS 输出里退化成自己的 `require(x)`。而 mod 的入口是
8
+ * 运行时才知道的绝对路径,落到 CJS `require` 上必然失败 —— 实测发布产物报
9
+ * `Cannot find module 'file:///…/register.ts'`:CJS 既不认 `file://` URL,也不认
10
+ * `.ts` 扩展名,更不会经过我们注册的 ESM resolve 钩子。
11
+ *
12
+ * `webpackIgnore` 让 rspack/webpack 原样保留这行 `import()`,交给 Node 的 ESM
13
+ * 加载器;`@vite-ignore` 让 vitest/Vite 别去静态分析一个运行时才成形的 specifier。
14
+ *
15
+ * 源码直跑(vitest / raw node)时没有打包器介入,所以缺了注释的坑**只在打包产物
16
+ * 里暴露** —— 这也是为什么这条路径必须用真实产物验证,单测全绿不能说明它通。
17
+ */
18
+ export declare function importByPath(absPath: string): Promise<unknown>;
19
+ /**
20
+ * 把一个本地 specifier 解析成实际存在的 TS 文件路径。
21
+ *
22
+ * @param p 已按 parent 解析出的绝对路径(可能无扩展名 / 是目录 / 带 .js 后缀)
23
+ * @returns 命中的文件绝对路径;没有则 undefined
24
+ */
25
+ export declare function resolveTsPath(p: string): string | undefined;
26
+ /** 本进程是否跑在 Bun 上。 */
27
+ export declare function isBun(): boolean;
28
+ /**
29
+ * runtime 是否自己就能吃下官方 mod 的写法(TS + 目录 import + `.js`→`.ts` + JSX)。
30
+ *
31
+ * 目前只有 Bun 满足。实测 Bun 1.4 原样加载全部四个官方 mod。
32
+ */
33
+ export declare function hasNativeTypeScriptSupport(): boolean;
34
+ /**
35
+ * 本进程是否具备 Node 内建通道 —— **两个条件都要**:
36
+ *
37
+ * 1. `module.registerHooks()`(Node 22.15+)—— 补 Bun 式模块解析
38
+ * 2. type stripping 开启 —— 擦类型
39
+ *
40
+ * 光有其一没用。真实存在的缺口是 **Node 22.15–22.17**:`registerHooks` 已经有了,
41
+ * 但 type stripping 要等 22.18 才默认开。那个区间若只按 `registerHooks` 判断,
42
+ * 每个 mod 都得先尝试失败一次才回退,白付一次开销(实测:strip 关闭时缓存里
43
+ * 出现 2 个产物而不是 1 个,说明连非 JSX 的 mod 也绕了一圈)。提前判掉更干净。
44
+ */
45
+ export declare function isNodeTypeScriptAvailable(): boolean;
46
+ /**
47
+ * 在「只对 `root` 之下生效」的钩子作用域内跑一段加载逻辑。
48
+ *
49
+ * 并发安全:多个 mod 同时加载时共用一次注册,引用计数归零才 `deregister()`。
50
+ * 因此钩子存在的时间被压到最短,宿主此后的模块解析不再经过它。
51
+ *
52
+ * @param root 允许被补解析的目录(mod 的 root)
53
+ * @param body 加载逻辑
54
+ */
55
+ export declare function withModResolveScope<T>(root: string, body: () => Promise<T>): Promise<T>;
56
+ /** 该错误是否说明「这个 mod 需要真转译器」。 */
57
+ export declare function needsTranspiler(error: unknown): boolean;
58
+ /**
59
+ * 通道一 / 二:runtime 原生,或 Node 内建 type stripping + 作用域化 resolve 钩子。
60
+ *
61
+ * @param entry register 模块的绝对路径
62
+ * @param root 该 mod 的 root(钩子白名单;缺省用 entry 所在目录)
63
+ */
64
+ export declare function importWithNodeTypeStripping(entry: string, root?: string): Promise<unknown>;
@@ -0,0 +1,105 @@
1
+ import type { LoadedMod } from './load-mod.js';
2
+ /**
3
+ * mods 的对外 TS 契约 —— 生产、命名空间与落盘位置。
4
+ *
5
+ * ## 命名空间
6
+ *
7
+ * cbc 以 `codebuddy-code` 为**主模块名**,并把 `claude-code` 作为**兼容别名**
8
+ * 一起声明。于是:
9
+ * - cbc 生态:`import type { On } from 'codebuddy-code'`
10
+ * - 未经改动的官方 mod:`import type { On } from 'claude-code'` 同样成立
11
+ *
12
+ * 两个模块名指向同一套声明(别名文件 `export * from` 主文件),所以不会出现
13
+ * 「同名类型两份实例」的问题。
14
+ *
15
+ * ## 落盘位置
16
+ *
17
+ * 与官方 `/plugin-types` 的布局对齐(官方写 `.claude/types/`):
18
+ *
19
+ * ```
20
+ * <cwd>/.codebuddy/types/
21
+ * ├── codebuddy-code.d.ts # 引擎 API 声明(主)
22
+ * ├── claude-code.d.ts # 兼容别名,re-export 主文件
23
+ * ├── codebuddy-code-plugins.d.ts # 已启用 plugin 契约的索引
24
+ * └── codebuddy-code-plugins/
25
+ * └── <plugin>.d.ts # 每个 plugin 的契约副本
26
+ * ```
27
+ *
28
+ * ## 怎么生产
29
+ *
30
+ * `emitPluginTypes()` 是唯一入口(宿主把它挂到 `/plugin-types` 斜杠命令或
31
+ * `codebuddy plugin types` 子命令上):
32
+ * 1. 写引擎声明(来源是本包 `mods/types/` 的编译产物 `.d.ts`,见 `engineDeclarations`)
33
+ * 2. 逐个拷贝各 plugin 的 `types` 契约到 `codebuddy-code-plugins/<plugin>.d.ts`
34
+ * 3. 生成索引 `codebuddy-code-plugins.d.ts`(`/// <reference path="…" />` 汇总)
35
+ */
36
+ /** 主模块名。 */
37
+ export declare const PRIMARY_MODULE = "codebuddy-code";
38
+ /** 兼容模块名(让官方 mod 原样通过类型检查)。 */
39
+ export declare const COMPAT_MODULE = "claude-code";
40
+ /** 产出根目录(相对工作目录)。 */
41
+ export declare const TYPES_DIR: string;
42
+ /** 兼容读取的老目录(Claude Code 的位置)。 */
43
+ export declare const COMPAT_TYPES_DIR: string;
44
+ /** 各产物文件名。 */
45
+ export declare const TYPE_FILES: {
46
+ readonly engine: "codebuddy-code.d.ts";
47
+ readonly engineCompat: "claude-code.d.ts";
48
+ readonly pluginsIndex: "codebuddy-code-plugins.d.ts";
49
+ readonly pluginsDir: "codebuddy-code-plugins";
50
+ readonly mcp: "codebuddy-code-mcp.d.ts";
51
+ };
52
+ /** `emitPluginTypes` 的入参。 */
53
+ export interface EmitOptions {
54
+ /** 工作目录(产物落到 `<cwd>/.codebuddy/types/`)。 */
55
+ readonly cwd: string;
56
+ /**
57
+ * 引擎 API 的声明正文。
58
+ *
59
+ * 宿主传入本包 `mods/types` 的编译产物(`lib/node/mods/types/events.d.ts`
60
+ * 或其打平版本)。这里不自己跑 tsc —— 保持本函数纯 IO,便于测试。
61
+ */
62
+ readonly engineDeclarations: string;
63
+ /** 已启用的 mod(用其 `manifest.types` 找契约文件)。 */
64
+ readonly mods?: readonly LoadedMod[];
65
+ /** MCP 工具输入声明(可选)。 */
66
+ readonly mcpDeclarations?: string;
67
+ }
68
+ /** 一次生产的结果。 */
69
+ export interface EmitResult {
70
+ /** 写出的文件绝对路径。 */
71
+ readonly written: readonly string[];
72
+ /** 被跳过的 plugin 契约与原因。 */
73
+ readonly skipped: readonly {
74
+ readonly plugin: string;
75
+ readonly reason: string;
76
+ }[];
77
+ }
78
+ /** 契约校验失败的原因。 */
79
+ export interface ContractProblem {
80
+ readonly line?: number;
81
+ readonly reason: string;
82
+ }
83
+ /**
84
+ * 校验一个 plugin 的类型契约是否「自包含、纯类型」。
85
+ *
86
+ * 规则与官方 `claude plugin validate` 对齐:
87
+ * - 不含 import / export-from / require / `/// <reference>`
88
+ * - 不含会运行的代码(`class` / `const` / `enum` / `function` / `let` / `var`)
89
+ * - 不含隐藏或改变阅读顺序的字符
90
+ *
91
+ * @param source 契约文件正文
92
+ * @returns 问题列表;空数组表示通过
93
+ */
94
+ export declare function validateContract(source: string): readonly ContractProblem[];
95
+ /**
96
+ * 生成 mods 的对外 TS 契约。
97
+ *
98
+ * @param options 工作目录 / 引擎声明 / 已启用 mod
99
+ * @returns 写出的文件与跳过项
100
+ */
101
+ export declare function emitPluginTypes(options: EmitOptions): Promise<EmitResult>;
102
+ /** 两个候选 types 目录(`.codebuddy/types` 优先,`.claude/types` 兼容)。 */
103
+ export declare function typesDirCandidates(cwd: string): readonly string[];
104
+ /** 给 mod 作者用的 tsconfig 片段(把产物纳入类型检查)。 */
105
+ export declare function tsconfigHint(): string;
@@ -0,0 +1,84 @@
1
+ import { HooksRegistry } from '../engine/index.js';
2
+ import type { EngineInterface, EventInput, EventName, EventResult, On, RegisteredMod, Tier } from '../types/index.js';
3
+ /**
4
+ * 测试脚手架 —— 语义对齐官方 `claude-code/testing`。
5
+ *
6
+ * 核心约定(原文):「A test gets the engine's own `$` and a plugin's `on`. …
7
+ * The hooks the test registers with `on` sit **beneath** the mod, where the
8
+ * rest of the world would be, and **nothing is beneath them**: a call they
9
+ * leave unanswered throws, naming its event.」
10
+ *
11
+ * 所以:
12
+ * - 被测 mod 挂在 `tier(t)` 声明的层;
13
+ * - 测试用 `on()` 注册的 hook 挂在 `core` 层(世界层,在 mod 之下);
14
+ * - 没有任何 hook 应答的 `$` 调用 → 抛错并点名事件。
15
+ */
16
+ /** 一次 harness 的句柄。 */
17
+ export interface Harness {
18
+ /** fold 后的 `$`(等于被测 mod 看到的那一个)。 */
19
+ readonly $: EngineInterface;
20
+ /** 世界层注册器(挂在 `core` tier,位于被测 mod 之下)。 */
21
+ readonly on: On;
22
+ /** 直接分发事件(绕过 `$`,用于测 middleware 行为)。 */
23
+ readonly dispatch: (event: EventName, input: EventInput, coreResult?: EventResult) => Promise<EventResult>;
24
+ /** 底层引擎。 */
25
+ readonly hooks: HooksRegistry;
26
+ }
27
+ /** `createHarness` 的入参。 */
28
+ export interface HarnessOptions {
29
+ /** 被测 mod。 */
30
+ readonly mod: RegisteredMod;
31
+ /** 额外挂载的 mod(如 noun provider)。 */
32
+ readonly also?: readonly RegisteredMod[];
33
+ }
34
+ /**
35
+ * 建一套测试环境:被测 mod 在它声明的 tier,测试 hook 在 `core` 层。
36
+ *
37
+ * 未被应答的调用会抛错,形如:
38
+ * `nothing answered "fs.read"; register a hook for it in the test`
39
+ */
40
+ export declare function createHarness(options: HarnessOptions): Promise<Harness>;
41
+ /**
42
+ * 延迟建 harness 的形态:先让测试用 `on()` 注册世界层,再 `ready()` 构建 `$`。
43
+ *
44
+ * 官方 `test(name, async ($, on) => ...)` 里 `$` 与 `on` 同时可用,是因为
45
+ * 世界层 hook 的注册和 `$` 调用发生在同一个同步 body 的不同时刻;这里用
46
+ * 「先收集、首次 `$` 调用时 fold」的等价做法。
47
+ */
48
+ export interface LazyHarness {
49
+ readonly on: On;
50
+ /** 首次访问时 fold;之后返回同一个 `$`。 */
51
+ readonly $: EngineInterface;
52
+ readonly dispatch: (event: EventName, input: EventInput, coreResult?: EventResult) => Promise<EventResult>;
53
+ readonly hooks: HooksRegistry;
54
+ }
55
+ /**
56
+ * 与 `createHarness` 等价,但 `$` 是惰性代理:任何方法首次被调用时才 fold,
57
+ * 这样测试可以「先 `on(...)` 铺世界层、后 `await $.xxx()`」,与官方写法一致。
58
+ */
59
+ export declare function harness(options: HarnessOptions): LazyHarness;
60
+ /** `mock.clock` 的句柄。 */
61
+ export interface MockClock {
62
+ /** 当前虚拟时间。 */
63
+ now: () => number;
64
+ /** 推进虚拟时间,兑现所有到期的 sleep/after/every。 */
65
+ advance: (ms: number) => Promise<void>;
66
+ /** 让已 start 的 dispatch 有机会推进到下一个 await 点(时钟不动)。 */
67
+ settle: () => Promise<void>;
68
+ }
69
+ /**
70
+ * 从内存应答世界层的 noun。每个成员都是一个把 hook 注册到 `on` 上的普通函数 ——
71
+ * 与官方「each member a plain function over `on`」一致。
72
+ */
73
+ export declare const mock: {
74
+ /** `$.env.get` / `$.env.set` 走内存变量表。 */
75
+ env(on: On, variables?: Record<string, string>): void;
76
+ /** `$.store.*` 走内存 KV。 */
77
+ store(on: On, entries?: Record<string, unknown>): void;
78
+ /** `$.clock.*` 走虚拟时钟;`advance(ms)` 兑现到期的等待。 */
79
+ clock(on: On, options?: {
80
+ startMs?: number;
81
+ }): MockClock;
82
+ };
83
+ /** 声明被测 mod 所在的层(对齐官方 `tier('builtin')`)。 */
84
+ export declare function tierOf(t: Tier): Tier;
@@ -0,0 +1 @@
1
+ export * from './harness.js';
@@ -0,0 +1,188 @@
1
+ /**
2
+ * `types/events/agent.ts`
3
+ *
4
+ * Precise `agent.*` event shapes: `agent.spawn`, `agent.offer`, plus the
5
+ * op-facing types `AgentSpec` / `AgentInfo` / `AgentCallRecord` / `AgentLoop`.
6
+ *
7
+ * Field-for-field aligned with upstream so mods that read `e.subagentType`,
8
+ * `e.background`, `e.fork`, `e.parentModel`, `e.parentAgentId` etc. type-check
9
+ * unchanged after switching import specifier to `codebuddy-code`.
10
+ */
11
+ import type { Origin } from '../events.js';
12
+ /**
13
+ * What an Agent call a plugin raised answers as `result` once the agent
14
+ * settles; `text` is its final answer.
15
+ *
16
+ * A plugin's spawn always runs in the background, so the call resolves with
17
+ * this record and not the Agent tool's own `BuiltinToolResults` entry, which
18
+ * is what a model's Agent call carries at `tool.call`.
19
+ */
20
+ export interface AgentCallRecord {
21
+ /** The spawned agent's id, as `$.agent.list()` names it. */
22
+ agentId: string;
23
+ /** The model the agent resolved to, when one is known. */
24
+ resolvedModel?: string;
25
+ }
26
+ /**
27
+ * One agent loop of this session as `$.agent.list()` returns it: a subagent
28
+ * or an in-process teammate.
29
+ */
30
+ export interface AgentInfo {
31
+ /** The agent's id: same string its loop's `tool.call` events carry as `agentId`. */
32
+ id: string;
33
+ /** Its row's label. */
34
+ description: string;
35
+ /** The agent definition it runs as, or `teammate` for an in-process teammate. */
36
+ type: string;
37
+ /** `running`, `completed`, `failed`, `killed`, or another engine task status. */
38
+ status: string;
39
+ /** The id of the subagent whose loop spawned it; absent when the main loop did. */
40
+ parentId?: string;
41
+ /** The plugin whose `$.agent.spawn` started it; absent when the model or the person did. */
42
+ spawnedBy?: string;
43
+ /** What SendMessage addresses it by, when it has one; not `description` or `type`. */
44
+ name?: string;
45
+ }
46
+ /**
47
+ * Which model loop an event happened in: the loop's agent id inside a
48
+ * subagent's or a teammate's loop, absent on the main loop.
49
+ *
50
+ * The agent axis, not the origin axis: `next.origin` names the plugin whose
51
+ * hook frame caused the dispatch (the recursion skip), whichever loop it ran
52
+ * in; `agentId` names the loop, whoever caused the call.
53
+ */
54
+ export interface AgentLoop {
55
+ /** The id of the loop this call runs in; absent on the main loop. Pinned. */
56
+ agentId?: string;
57
+ }
58
+ /**
59
+ * The input of `agent.offer`: one agent type, at the moment the engine
60
+ * offers it to the model.
61
+ *
62
+ * Listed for the model or named by it at dispatch: same event at each.
63
+ * Model-facing only: a plugin's own `$.agent.spawn` of a type is no offer.
64
+ */
65
+ export interface AgentOfferInput {
66
+ /** Which type (`Explore`, `Plan`, a plugin's agent). */
67
+ agent: string;
68
+ /** Its listing line's text as the definition states it (`whenToUse`). */
69
+ description: string;
70
+ /** Where the definition came from (`built-in`, `plugin`, a settings source). */
71
+ source: string;
72
+ /** Who provides this agent. Pinned: a rewrite is refused. */
73
+ provider: Origin;
74
+ }
75
+ /**
76
+ * What an `agent.offer` hook returns: whether the model is offered the agent
77
+ * type, in its listing and at dispatch.
78
+ */
79
+ export interface AgentOfferResult {
80
+ isOffered: boolean;
81
+ }
82
+ /**
83
+ * The input of `agent.spawn`: what the Agent tool decided about the subagent
84
+ * it is about to start, before its model is resolved.
85
+ *
86
+ * A hook rewrites content (prompt, description, subagentType, model,
87
+ * background, cwd), read back as the tool's parameters; tool_use_id, name,
88
+ * fork, parentModel, permissionMode, parentAgentId and provider are pinned.
89
+ */
90
+ export interface AgentSpawnInput {
91
+ /** The Agent tool call this spawn belongs to. Pinned. */
92
+ tool_use_id: string;
93
+ /** The task the subagent is given. A rewrite is the prompt the subagent runs with. */
94
+ prompt: string;
95
+ /** The Agent tool's short `description` of the task. */
96
+ description: string;
97
+ /** The resolved agent type. A rewrite names another agent this call can dispatch. */
98
+ subagentType: string;
99
+ /** Who provides this agent. Pinned with the spawn's identity. */
100
+ provider: Origin;
101
+ /** The Agent tool's `model` parameter as given. */
102
+ model?: string;
103
+ /** The parent's effective model. Pinned. */
104
+ parentModel: string;
105
+ /** The id of the loop the spawn happens in; absent from main. Pinned. */
106
+ parentAgentId?: string;
107
+ /** The parent's permission mode. Pinned. */
108
+ permissionMode?: string;
109
+ /** True when the subagent will run in the background (or remotely). */
110
+ background: boolean;
111
+ /** True for a fork of the parent. Pinned. */
112
+ fork: boolean;
113
+ /** Given by the call (`Agent({ name })`); undefined when unnamed. Pinned. */
114
+ name?: string;
115
+ /** The directory the subagent runs in when the call set one. */
116
+ cwd?: string;
117
+ }
118
+ /**
119
+ * `agent.spawn`'s input as the call takes it: what the Agent tool's caller
120
+ * says; the engine fills the rest.
121
+ */
122
+ export type AgentSpawnArgs = Pick<AgentSpawnInput, 'prompt'> & Partial<Pick<AgentSpawnInput, 'description' | 'subagentType' | 'model' | 'name' | 'cwd'>>;
123
+ /**
124
+ * What an `agent.spawn` hook returns and what `next(e)` resolves to: the
125
+ * started subagent's `{ model, agentId }`, or `{ deny: reason }`, refusing it.
126
+ */
127
+ export type AgentSpawnResult = {
128
+ /** What the subagent runs on. */
129
+ model: string;
130
+ /** The started subagent's id. Set by core; absent when a hook answered without `next`. */
131
+ agentId?: string;
132
+ deny?: undefined;
133
+ } | {
134
+ /** Refuses the spawn; the model sees the text as the Agent tool's error. */
135
+ deny: string;
136
+ model?: undefined;
137
+ agentId?: undefined;
138
+ };
139
+ /**
140
+ * What `$.agent.register` takes: an agent type this plugin defines, spelled
141
+ * as an agent definition in settings JSON is, plus its `name`.
142
+ *
143
+ * Every field an agent file or `--agents` entry may carry is here and takes
144
+ * effect as it does there; the engine validates it with the same schema.
145
+ */
146
+ export interface AgentSpec {
147
+ /** The type's short name (letters, digits, `_`, `-`; up to 64). */
148
+ name: string;
149
+ /** When to delegate to this agent: the line the model reads in its listing. */
150
+ description: string;
151
+ /** The agent's system prompt, whole: it replaces the session's. */
152
+ prompt: string;
153
+ /** What the agent may call, by tool name; a call to any other is refused. */
154
+ tools?: readonly string[];
155
+ /** Tools withheld from the agent, out of whatever `tools` allows. */
156
+ disallowedTools?: readonly string[];
157
+ /** The agent's model: an alias, a full id, or `inherit`. */
158
+ model?: string;
159
+ /** The agent's effort: a level or an integer budget. */
160
+ effort?: string | number;
161
+ /** How the agent's permission asks are decided. */
162
+ permissionMode?: string;
163
+ /** Servers connected over MCP for the agent's run. */
164
+ mcpServers?: readonly (string | Record<string, unknown>)[];
165
+ /** Settings hooks in force while the agent runs, in settings.json's `hooks` shape. */
166
+ hooks?: Record<string, unknown>;
167
+ /** The most turns the agent takes before it stops. */
168
+ maxTurns?: number;
169
+ /** Preloaded into the agent's context before its first turn: skill names. */
170
+ skills?: readonly string[];
171
+ /** The agent's first user turn; `{{intent}}` in it takes the spawn's prompt. */
172
+ initialPrompt?: string;
173
+ /** A persistent memory the agent keeps between runs, and where. */
174
+ memory?: 'user' | 'project' | 'local';
175
+ /** Set so that every spawn of the agent runs in the background. */
176
+ background?: true;
177
+ /** Set so that the agent's context carries no CLAUDE.md block. */
178
+ omitClaudeMd?: true;
179
+ /** Where the agent runs apart from the session. */
180
+ isolation?: 'worktree' | 'remote';
181
+ }
182
+ /**
183
+ * What `$.agent.register` resolves to: the type's fully-qualified name
184
+ * (`<plugin>:<name>`).
185
+ */
186
+ export interface AgentRegisterResult {
187
+ agent: string;
188
+ }