@tencent-ai/agent-sdk 0.3.263-dev.90f0e98.202609190050 → 0.3.263

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 (264) hide show
  1. package/cli/dist/codebuddy-headless.js +1 -1
  2. package/cli/dist/codebuddy-lite-wb.mjs +1 -1
  3. package/cli/dist-server/codebuddy.js +1 -1
  4. package/cli/dist-server/types/node/references/index.d.ts +2 -0
  5. package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
  6. package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
  7. package/cli/dist-server/types/node/utils/compress-path.source.d.ts +59 -0
  8. package/cli/package.json +2 -3
  9. package/cli/product.cloudhosted.json +2 -2
  10. package/cli/product.internal.json +2 -2
  11. package/cli/product.ioa.json +2 -2
  12. package/cli/product.json +2 -2
  13. package/cli/product.selfhosted.json +2 -2
  14. package/package.json +2 -3
  15. package/cli/dist-server/types/node/a2a/a2a-artifact-download-service.d.ts +0 -51
  16. package/cli/dist-server/types/node/a2a/a2a-context-store.d.ts +0 -100
  17. package/cli/dist-server/types/node/a2a/a2a-remote-cancel.d.ts +0 -111
  18. package/cli/dist-server/types/node/acp/usage-by-category-calculator.d.ts +0 -45
  19. package/cli/dist-server/types/node/acp/usage-by-category-char-weight.d.ts +0 -9
  20. package/cli/dist-server/types/node/acp/usage-by-category-distribute.d.ts +0 -6
  21. package/cli/dist-server/types/node/acp/usage-by-category-tools-split.d.ts +0 -11
  22. package/cli/dist-server/types/node/agent/agent-config-cli-fields.d.ts +0 -57
  23. package/cli/dist-server/types/node/agent/agent-controller.d.ts +0 -127
  24. package/cli/dist-server/types/node/agent/agent-display.d.ts +0 -77
  25. package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +0 -69
  26. package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +0 -54
  27. package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +0 -43
  28. package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +0 -19
  29. package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +0 -67
  30. package/cli/dist-server/types/node/agent/interceptor-name-registry.d.ts +0 -4
  31. package/cli/dist-server/types/node/agent/interceptors/channel-event-interceptor.d.ts +0 -44
  32. package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +0 -71
  33. package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +0 -30
  34. package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +0 -7
  35. package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +0 -38
  36. package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +0 -47
  37. package/cli/dist-server/types/node/agent/interceptors/index.d.ts +0 -15
  38. package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +0 -29
  39. package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +0 -43
  40. package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +0 -68
  41. package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +0 -7
  42. package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +0 -76
  43. package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +0 -31
  44. package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +0 -43
  45. package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +0 -21
  46. package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +0 -34
  47. package/cli/dist-server/types/node/agent/main-agent-acp-handler.d.ts +0 -203
  48. package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +0 -33
  49. package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +0 -84
  50. package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +0 -9
  51. package/cli/dist-server/types/node/agent/subagent-limits.d.ts +0 -75
  52. package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +0 -42
  53. package/cli/dist-server/types/node/agent/team-resume-intent.d.ts +0 -20
  54. package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +0 -67
  55. package/cli/dist-server/types/node/agent-home/agent-home-acp-forward.d.ts +0 -11
  56. package/cli/dist-server/types/node/agent-home/agent-home-agent-create.d.ts +0 -31
  57. package/cli/dist-server/types/node/agent-home/agent-home-audit.d.ts +0 -54
  58. package/cli/dist-server/types/node/agent-home/agent-home-channel-context.d.ts +0 -44
  59. package/cli/dist-server/types/node/agent-home/agent-home-channel-create.d.ts +0 -73
  60. package/cli/dist-server/types/node/agent-home/agent-home-channel-events.d.ts +0 -8
  61. package/cli/dist-server/types/node/agent-home/agent-home-channel-lookup.d.ts +0 -30
  62. package/cli/dist-server/types/node/agent-home/agent-home-channel-speech.d.ts +0 -72
  63. package/cli/dist-server/types/node/agent-home/agent-home-channel-task-events.d.ts +0 -45
  64. package/cli/dist-server/types/node/agent-home/agent-home-channel-task-order.d.ts +0 -25
  65. package/cli/dist-server/types/node/agent-home/agent-home-channel-tasks.d.ts +0 -156
  66. package/cli/dist-server/types/node/agent-home/agent-home-channel-wake-guard.d.ts +0 -35
  67. package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +0 -102
  68. package/cli/dist-server/types/node/agent-home/agent-home-colleague-job.d.ts +0 -37
  69. package/cli/dist-server/types/node/agent-home/agent-home-colleague-memory.d.ts +0 -52
  70. package/cli/dist-server/types/node/agent-home/agent-home-deliver.d.ts +0 -76
  71. package/cli/dist-server/types/node/agent-home/agent-home-directory-lock.d.ts +0 -22
  72. package/cli/dist-server/types/node/agent-home/agent-home-errors.d.ts +0 -17
  73. package/cli/dist-server/types/node/agent-home/agent-home-inbox.d.ts +0 -101
  74. package/cli/dist-server/types/node/agent-home/agent-home-main-session.d.ts +0 -33
  75. package/cli/dist-server/types/node/agent-home/agent-home-recipients.d.ts +0 -38
  76. package/cli/dist-server/types/node/agent-home/agent-home-room-context-interceptor.d.ts +0 -30
  77. package/cli/dist-server/types/node/agent-home/agent-home-runtime-arm-state.d.ts +0 -14
  78. package/cli/dist-server/types/node/agent-home/agent-home-runtime.d.ts +0 -87
  79. package/cli/dist-server/types/node/agent-home/agent-home-settings.d.ts +0 -39
  80. package/cli/dist-server/types/node/agent-home/agent-home-tool-gate.d.ts +0 -53
  81. package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +0 -69
  82. package/cli/dist-server/types/node/agent-task/categorize-failure.d.ts +0 -65
  83. package/cli/dist-server/types/node/agent-team/shutdown-coordinator.d.ts +0 -98
  84. package/cli/dist-server/types/node/agent-team/team-runtime-adopter.d.ts +0 -13
  85. package/cli/dist-server/types/node/agent-team/team-runtime-manifest.d.ts +0 -66
  86. package/cli/dist-server/types/node/agent-team/team-runtime-status.d.ts +0 -34
  87. package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +0 -205
  88. package/cli/dist-server/types/node/agent-view/job-reclaim-gate.d.ts +0 -13
  89. package/cli/dist-server/types/node/ask/index.d.ts +0 -3
  90. package/cli/dist-server/types/node/bash-sandbox/index.d.ts +0 -4
  91. package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +0 -159
  92. package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +0 -111
  93. package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +0 -90
  94. package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +0 -26
  95. package/cli/dist-server/types/node/code-ratio/index.d.ts +0 -5
  96. package/cli/dist-server/types/node/code-ratio/repo-discovery.d.ts +0 -32
  97. package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +0 -51
  98. package/cli/dist-server/types/node/control-signal/stdout-writer.d.ts +0 -99
  99. package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +0 -100
  100. package/cli/dist-server/types/node/hooks/admin-trusted.d.ts +0 -41
  101. package/cli/dist-server/types/node/http/api-galileo-metrics.d.ts +0 -19
  102. package/cli/dist-server/types/node/http/classify-network-error.d.ts +0 -21
  103. package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +0 -14
  104. package/cli/dist-server/types/node/http/fetch-proxy.d.ts +0 -22
  105. package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +0 -74
  106. package/cli/dist-server/types/node/http/index.d.ts +0 -6
  107. package/cli/dist-server/types/node/http/workbuddy-config-dir.d.ts +0 -17
  108. package/cli/dist-server/types/node/lsp/index.d.ts +0 -6
  109. package/cli/dist-server/types/node/lsp/lsp-client.d.ts +0 -104
  110. package/cli/dist-server/types/node/lsp/lsp-exit-registry.d.ts +0 -16
  111. package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +0 -91
  112. package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +0 -245
  113. package/cli/dist-server/types/node/model/effort-capabilities.d.ts +0 -64
  114. package/cli/dist-server/types/node/model/passthrough-header-policy.d.ts +0 -25
  115. package/cli/dist-server/types/node/multitask/completion-bus.d.ts +0 -36
  116. package/cli/dist-server/types/node/multitask/coordinator-acp-bridge.d.ts +0 -41
  117. package/cli/dist-server/types/node/multitask/coordinator-interceptor.d.ts +0 -7
  118. package/cli/dist-server/types/node/multitask/coordinator-tool-policy.d.ts +0 -18
  119. package/cli/dist-server/types/node/multitask/delegation-planner.d.ts +0 -6
  120. package/cli/dist-server/types/node/multitask/entry-guard.d.ts +0 -12
  121. package/cli/dist-server/types/node/multitask/host-api.d.ts +0 -63
  122. package/cli/dist-server/types/node/multitask/inspect-self-tool.d.ts +0 -18
  123. package/cli/dist-server/types/node/multitask/multitask-log.d.ts +0 -2
  124. package/cli/dist-server/types/node/multitask/multitask-metrics.d.ts +0 -2
  125. package/cli/dist-server/types/node/multitask/planner-runtime.d.ts +0 -7
  126. package/cli/dist-server/types/node/multitask/sandbox-reveal.d.ts +0 -35
  127. package/cli/dist-server/types/node/multitask/self-model.d.ts +0 -7
  128. package/cli/dist-server/types/node/multitask/slash-entry.d.ts +0 -14
  129. package/cli/dist-server/types/node/multitask/spawn-detached.d.ts +0 -9
  130. package/cli/dist-server/types/node/multitask/subagent-alias.d.ts +0 -5
  131. package/cli/dist-server/types/node/multitask/surface-reminder.d.ts +0 -5
  132. package/cli/dist-server/types/node/multitask/types.d.ts +0 -123
  133. package/cli/dist-server/types/node/multitask/wakeup-gate.d.ts +0 -21
  134. package/cli/dist-server/types/node/navigation/index.d.ts +0 -2
  135. package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +0 -13
  136. package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +0 -8
  137. package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +0 -17
  138. package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +0 -45
  139. package/cli/dist-server/types/node/runtime/workspace.d.ts +0 -5
  140. package/cli/dist-server/types/node/sandbox-cli/network-block-records.d.ts +0 -18
  141. package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +0 -41
  142. package/cli/dist-server/types/node/stats/index.d.ts +0 -5
  143. package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +0 -55
  144. package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +0 -59
  145. package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +0 -316
  146. package/cli/dist-server/types/node/tools/a2a-poll-retry.d.ts +0 -46
  147. package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +0 -138
  148. package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +0 -48
  149. package/cli/dist-server/types/node/tools/agent-tool.d.ts +0 -154
  150. package/cli/dist-server/types/node/tools/artifact-common.d.ts +0 -80
  151. package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +0 -103
  152. package/cli/dist-server/types/node/tools/artifact-tool.d.ts +0 -109
  153. package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +0 -127
  154. package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +0 -237
  155. package/cli/dist-server/types/node/tools/ask-user-question-validation.d.ts +0 -22
  156. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +0 -51
  157. package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +0 -21
  158. package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +0 -15
  159. package/cli/dist-server/types/node/tools/background-output-files.d.ts +0 -39
  160. package/cli/dist-server/types/node/tools/background-output-tail-poller.d.ts +0 -60
  161. package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +0 -34
  162. package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +0 -48
  163. package/cli/dist-server/types/node/tools/bash-security-windows.d.ts +0 -34
  164. package/cli/dist-server/types/node/tools/bash-tool.d.ts +0 -204
  165. package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +0 -174
  166. package/cli/dist-server/types/node/tools/computer-use-capabilities.d.ts +0 -23
  167. package/cli/dist-server/types/node/tools/computer-use-executor.d.ts +0 -130
  168. package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +0 -86
  169. package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +0 -82
  170. package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +0 -64
  171. package/cli/dist-server/types/node/tools/create-mode-write-guard.d.ts +0 -3
  172. package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +0 -41
  173. package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +0 -28
  174. package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +0 -27
  175. package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +0 -260
  176. package/cli/dist-server/types/node/tools/delegate-tool.d.ts +0 -71
  177. package/cli/dist-server/types/node/tools/edit-tool.d.ts +0 -78
  178. package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +0 -29
  179. package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +0 -59
  180. package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +0 -86
  181. package/cli/dist-server/types/node/tools/file-action-report-utils.d.ts +0 -35
  182. package/cli/dist-server/types/node/tools/glob-tool.d.ts +0 -102
  183. package/cli/dist-server/types/node/tools/grep-tool.d.ts +0 -141
  184. package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +0 -94
  185. package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +0 -107
  186. package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +0 -27
  187. package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +0 -54
  188. package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +0 -35
  189. package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +0 -58
  190. package/cli/dist-server/types/node/tools/lsp-tool.d.ts +0 -68
  191. package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +0 -107
  192. package/cli/dist-server/types/node/tools/malicious-block-guidance.d.ts +0 -11
  193. package/cli/dist-server/types/node/tools/memory-tool.d.ts +0 -33
  194. package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +0 -79
  195. package/cli/dist-server/types/node/tools/monitor-tool.d.ts +0 -216
  196. package/cli/dist-server/types/node/tools/monitor-ws-network-policy.d.ts +0 -64
  197. package/cli/dist-server/types/node/tools/monitor-ws-source.d.ts +0 -72
  198. package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +0 -104
  199. package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +0 -75
  200. package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +0 -55
  201. package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +0 -7
  202. package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +0 -30
  203. package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +0 -23
  204. package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +0 -72
  205. package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +0 -12
  206. package/cli/dist-server/types/node/tools/powershell-detection.d.ts +0 -51
  207. package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +0 -60
  208. package/cli/dist-server/types/node/tools/powershell-pty-utils.d.ts +0 -13
  209. package/cli/dist-server/types/node/tools/powershell-security.d.ts +0 -93
  210. package/cli/dist-server/types/node/tools/powershell-tool.d.ts +0 -174
  211. package/cli/dist-server/types/node/tools/product-interaction-tools.d.ts +0 -23
  212. package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +0 -55
  213. package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +0 -71
  214. package/cli/dist-server/types/node/tools/read-state-guard.d.ts +0 -22
  215. package/cli/dist-server/types/node/tools/read-tool.d.ts +0 -71
  216. package/cli/dist-server/types/node/tools/repl/index.d.ts +0 -10
  217. package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +0 -109
  218. package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +0 -29
  219. package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +0 -136
  220. package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +0 -56
  221. package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +0 -117
  222. package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +0 -17
  223. package/cli/dist-server/types/node/tools/repl/repl-nested-interaction.d.ts +0 -32
  224. package/cli/dist-server/types/node/tools/repl/repl-sandbox-result.d.ts +0 -111
  225. package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +0 -128
  226. package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +0 -95
  227. package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +0 -16
  228. package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +0 -2
  229. package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +0 -97
  230. package/cli/dist-server/types/node/tools/running-background-tasks.d.ts +0 -26
  231. package/cli/dist-server/types/node/tools/sandbox-approval-helpers.d.ts +0 -19
  232. package/cli/dist-server/types/node/tools/sandbox-intercept-message.d.ts +0 -22
  233. package/cli/dist-server/types/node/tools/sandbox-network-intercept-message.d.ts +0 -25
  234. package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +0 -14
  235. package/cli/dist-server/types/node/tools/sandbox-program-blacklist-message.d.ts +0 -9
  236. package/cli/dist-server/types/node/tools/send-message-tool.d.ts +0 -116
  237. package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +0 -22
  238. package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +0 -60
  239. package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +0 -25
  240. package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +0 -77
  241. package/cli/dist-server/types/node/tools/skill-tool.d.ts +0 -129
  242. package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +0 -45
  243. package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +0 -178
  244. package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +0 -43
  245. package/cli/dist-server/types/node/tools/task-create-tool.d.ts +0 -72
  246. package/cli/dist-server/types/node/tools/task-get-tool.d.ts +0 -31
  247. package/cli/dist-server/types/node/tools/task-list-tool.d.ts +0 -21
  248. package/cli/dist-server/types/node/tools/task-output-tool.d.ts +0 -127
  249. package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +0 -61
  250. package/cli/dist-server/types/node/tools/task-update-tool.d.ts +0 -79
  251. package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +0 -38
  252. package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +0 -117
  253. package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +0 -83
  254. package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +0 -113
  255. package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +0 -82
  256. package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +0 -79
  257. package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +0 -164
  258. package/cli/dist-server/types/node/tools/web-search-tool.d.ts +0 -79
  259. package/cli/dist-server/types/node/tools/webfetch-resource-kind.d.ts +0 -25
  260. package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +0 -43
  261. package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +0 -65
  262. package/cli/dist-server/types/node/tools/workflow-tool.d.ts +0 -100
  263. package/cli/dist-server/types/node/tools/write-tool.d.ts +0 -74
  264. package/cli/dist-server/types/node/utils/stdio-persistence.d.ts +0 -39
@@ -1,116 +0,0 @@
1
- import { type AgentRunScope as IAgentRunScope, type Session } from '../../vendor/cbc-core/node/index.js';
2
- import { type RunContext, ToolNames } from '../../vendor/cbc-shared/node/index.js';
3
- import { Logger } from '@genie/telemetry';
4
- import { z } from 'zod';
5
- import { BaseTool } from './base-tool';
6
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
7
- /**
8
- * Structured data for SendMessage tool rendering.
9
- * This is passed to the UI layer via renderer.value for human-like display.
10
- */
11
- export interface SendMessageRenderData {
12
- /** Message type: message, broadcast, shutdown_request, shutdown_response, plan_approval_response */
13
- type: 'message' | 'broadcast' | 'shutdown_request' | 'shutdown_response' | 'plan_approval_response';
14
- /** Sender name (for display context) */
15
- sender: string;
16
- /** Recipient name or '@team' for broadcast */
17
- recipient?: string;
18
- /** Recipient's color for display */
19
- recipientColor?: string;
20
- /** Short summary/preview text */
21
- summary?: string;
22
- /** Result message shown below the header */
23
- resultMessage: string;
24
- /** For shutdown/plan_approval: whether approved */
25
- approved?: boolean;
26
- /** Number of recipients for broadcast */
27
- recipientCount?: number;
28
- }
29
- /**
30
- * SendMessage tool - unified messaging for Agent Team communication.
31
- *
32
- * Supports 5 message types:
33
- * - message: Direct message to a specific teammate
34
- * - broadcast: Message to all teammates (use sparingly)
35
- * - shutdown_request: Request a teammate to shut down
36
- * - shutdown_response: Respond to a shutdown request
37
- * - plan_approval_response: Approve or reject a plan
38
- */
39
- export declare class SendMessageTool extends BaseTool implements Tool {
40
- protected readonly logger: Logger;
41
- protected readonly agentRunScope?: IAgentRunScope;
42
- name: ToolNames;
43
- description: string;
44
- shouldShowInToolSearch: () => boolean;
45
- parameters: z.ZodObject<{
46
- type: z.ZodEnum<["message", "broadcast", "shutdown_request", "shutdown_response", "plan_approval_response"]>;
47
- recipient: z.ZodOptional<z.ZodString>;
48
- content: z.ZodOptional<z.ZodString>;
49
- summary: z.ZodOptional<z.ZodString>;
50
- request_id: z.ZodOptional<z.ZodString>;
51
- approve: z.ZodOptional<z.ZodBoolean>;
52
- }, "strip", z.ZodTypeAny, {
53
- type: "broadcast" | "message" | "plan_approval_response" | "shutdown_request" | "shutdown_response";
54
- recipient?: string | undefined;
55
- content?: string | undefined;
56
- summary?: string | undefined;
57
- request_id?: string | undefined;
58
- approve?: boolean | undefined;
59
- }, {
60
- type: "broadcast" | "message" | "plan_approval_response" | "shutdown_request" | "shutdown_response";
61
- recipient?: string | undefined;
62
- content?: string | undefined;
63
- summary?: string | undefined;
64
- request_id?: string | undefined;
65
- approve?: boolean | undefined;
66
- }>;
67
- argumentRenderer: ToolCallArgumentRenderer;
68
- needsApproval: boolean;
69
- /**
70
- * Auto mode classifier projection (Claude alignment, decision D1): a plain
71
- * message projects `to ${recipient}: ${content}`; structured control messages
72
- * (shutdown / plan-approval) project a short summary. Consumed in history —
73
- * SendMessage has `needsApproval = false`, so the current action never reaches
74
- * the classifier directly.
75
- */
76
- toAutoClassifierInput(input: unknown): string;
77
- isEnabled: () => boolean;
78
- execute(input: {
79
- type: string;
80
- recipient?: string;
81
- content?: string;
82
- summary?: string;
83
- request_id?: string;
84
- approve?: boolean;
85
- }, context?: RunContext<Session>): Promise<ToolResult>;
86
- /**
87
- * Resolve a recipient by name, checking both formal TeamManager and implicit TeamMemberRegistry.
88
- * `teamName` scopes the implicit registry lookup so cross-team same-name members
89
- * cannot be matched as this sender's recipient.
90
- *
91
- * Falls back to a single `refreshFromDisk()` re-read when neither in-memory
92
- * source has the recipient. This closes the spawn-race window where one
93
- * teammate has been persisted to `config.json` but not yet reflected in
94
- * the current process's TeamManager snapshot (e.g. concurrent spawns).
95
- */
96
- private resolveRecipient;
97
- /**
98
- * Map a recipient name to its canonical form (e.g. "main" → "team-lead").
99
- */
100
- private resolveRecipientName;
101
- /**
102
- * Notify an in-process logical actor after its inbox append is durable.
103
- * The actor owns serialization and revalidates the human-turn lease at the
104
- * actual paused -> running boundary.
105
- */
106
- private kickRecipient;
107
- /**
108
- * Get all known member names from both formal TeamManager and TeamMemberRegistry.
109
- */
110
- private getAllMemberNames;
111
- private handleMessage;
112
- private handleBroadcast;
113
- private handleShutdownRequest;
114
- private handleShutdownResponse;
115
- private handlePlanApprovalResponse;
116
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * SendUserMessage 工具解析后的附件元信息(issue #82025,对齐 claude-code)。
3
- *
4
- * `file_uuid` 预留给远程上传场景(BRIDGE_MODE 专属),本期只解析本地元信息、
5
- * 不做上传,因此始终为 undefined。上传与客户端消费按 issue 备注另行拆分。
6
- */
7
- export interface ResolvedAttachment {
8
- path: string;
9
- size: number;
10
- isImage: boolean;
11
- file_uuid?: string;
12
- }
13
- /**
14
- * 校验附件路径:文件须存在且为常规文件。任一不满足抛出可读错误,
15
- * 让模型看到失败原因(cwd 一并带上,便于定位相对路径)。
16
- */
17
- export declare function validateAttachmentPaths(rawPaths: string[]): Promise<void>;
18
- /**
19
- * 解析附件路径为元信息 `{ path, size, isImage }`。串行 stat 保持顺序确定,
20
- * 与入参顺序一致。本期不做远程上传。
21
- */
22
- export declare function resolveAttachments(rawPaths: string[]): Promise<ResolvedAttachment[]>;
@@ -1,60 +0,0 @@
1
- import { Logger } from '@genie/telemetry';
2
- import { z } from 'zod';
3
- import { RunContext } from '../../vendor/cbc-shared/node/index.js';
4
- import { Session } from '../../vendor/cbc-core/node/index.js';
5
- import { BaseTool } from './base-tool';
6
- import { BriefModeService } from './brief-mode-service';
7
- import { ResolvedAttachment } from './send-user-message-attachments';
8
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
9
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
10
- /**
11
- * SendUserMessage 工具的结构化返回数据(issue #82025,对齐 claude-code)。
12
- *
13
- * 挂在 `ToolResult.rawResponse` 上,供 hooks /客户端渲染侧消费。
14
- */
15
- export interface SendUserMessageOutput {
16
- /** 面向用户的消息(markdown)。 */
17
- message: string;
18
- /** 解析后的附件元信息;无附件时缺省。 */
19
- attachments?: ResolvedAttachment[];
20
- /** 工具执行时刻的 ISO 时间戳。 */
21
- sentAt: string;
22
- }
23
- /**
24
- * SendUserMessage 工具 —— Agent 面向用户的显式通信通道(Brief 模式,issue #82025)。
25
- *
26
- * 对齐 claude-code 的 BriefTool:开启 `--brief` 后作为 Agent 面向用户的主要可见输出通道。
27
- * 工具常驻工具列表,`isEnabled` 在未开 Brief 模式时隐藏它。
28
- */
29
- export declare class SendUserMessageTool extends BaseTool implements Tool {
30
- protected readonly logger: Logger;
31
- protected readonly briefModeService: BriefModeService;
32
- name: ToolNames;
33
- description: string;
34
- shouldShowInToolSearch: () => boolean;
35
- parameters: z.ZodObject<{
36
- message: z.ZodString;
37
- attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
- status: z.ZodEnum<["normal", "proactive"]>;
39
- }, "strip", z.ZodTypeAny, {
40
- message: string;
41
- attachments?: string[] | undefined;
42
- status: "normal" | "proactive";
43
- }, {
44
- message: string;
45
- attachments?: string[] | undefined;
46
- status: "normal" | "proactive";
47
- }>;
48
- argumentRenderer: ToolCallArgumentRenderer;
49
- needsApproval: boolean;
50
- /**
51
- * Auto mode classifier projection: 面向用户的消息本身即分类相关文本。
52
- */
53
- toAutoClassifierInput(input: unknown): string;
54
- isEnabled: () => boolean;
55
- execute(input: {
56
- message: string;
57
- attachments?: string[];
58
- status: 'normal' | 'proactive';
59
- }, _context?: RunContext<Session>): Promise<ToolResult>;
60
- }
@@ -1,25 +0,0 @@
1
- import { Logger } from '@celljs/core';
2
- import type { Session } from '../../vendor/cbc-core/node/index.js';
3
- export declare const ShellStreamPusher: unique symbol;
4
- export interface ShellStreamPusherOptions {
5
- toolName: string;
6
- resultId: string;
7
- callId: string;
8
- /** 从工具开始执行攒到当下的**全量**输出 buffer(追加 statusText 后的整体文本),不是增量 delta。
9
- * \r 折叠与半截序列收尾都依赖全量语义:传 delta 会导致帧间内容错乱且无任何报错。 */
10
- value: string;
11
- }
12
- export interface ShellStreamPusherService {
13
- push(session: Session | undefined, opts: ShellStreamPusherOptions): void;
14
- }
15
- /**
16
- * shell 类工具(Bash / REPL)的流式进度推送:统一拼 function_call_result 帧,
17
- * value 过 toShellDisplayText 后作为 `renderer.value` 与流式 `content` 下发。
18
- *
19
- * 流式帧直接走 inputSubject(不进 history、不过 AgentInputItemProcessor 链),
20
- * 因此最终结果的清洗出口(input-item-processors)覆盖不到这里,由本服务补位。
21
- */
22
- export declare class ShellStreamPusherImpl implements ShellStreamPusherService {
23
- protected readonly logger: Logger;
24
- push(session: Session | undefined, opts: ShellStreamPusherOptions): void;
25
- }
@@ -1,77 +0,0 @@
1
- import { Session } from '../../vendor/cbc-core/node/index.js';
2
- import { Agent, ToolNames } from '../../vendor/cbc-shared/node/index.js';
3
- import { ProductManager } from '@genie/product';
4
- import { Logger } from '@genie/telemetry';
5
- import type { RunContext } from '@openai/agents';
6
- import { z } from 'zod';
7
- import { BaseTool } from './base-tool';
8
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
9
- declare const SkillManageParameters: z.ZodObject<{
10
- action: z.ZodEnum<["list", "create", "modify", "delete"]>;
11
- name: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- action: "create" | "delete" | "list" | "modify";
14
- name?: string | undefined;
15
- }, {
16
- action: "create" | "delete" | "list" | "modify";
17
- name?: string | undefined;
18
- }>;
19
- export declare class SkillManageTool extends BaseTool implements Tool {
20
- protected readonly productManager: ProductManager;
21
- protected readonly logger: Logger;
22
- name: ToolNames;
23
- description: string;
24
- parameters: z.ZodObject<{
25
- action: z.ZodEnum<["list", "create", "modify", "delete"]>;
26
- name: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- action: "create" | "delete" | "list" | "modify";
29
- name?: string | undefined;
30
- }, {
31
- action: "create" | "delete" | "list" | "modify";
32
- name?: string | undefined;
33
- }>;
34
- needsApproval: boolean;
35
- argumentRenderer: ToolCallArgumentRenderer;
36
- /**
37
- * Controlled by ProductFeature.SkillManage.
38
- * Disabled by default; can be enabled via product config or client settings.
39
- */
40
- isEnabled: (_args: {
41
- runContext: RunContext<Session>;
42
- agent: Agent;
43
- }) => Promise<boolean>;
44
- execute(input: z.infer<typeof SkillManageParameters>, context: RunContext<Session>): Promise<ToolResult>;
45
- private handleList;
46
- private handleCreate;
47
- private handleModify;
48
- private handleDelete;
49
- /**
50
- * Read the agent-created-skills.json registry file.
51
- * Returns empty registry if file doesn't exist or is malformed.
52
- */
53
- private readRegistry;
54
- /**
55
- * Check if a skill name exists in the registry file.
56
- */
57
- private isInRegistry;
58
- /**
59
- * Check if a skill's SKILL.md file contains `agent_created: true` in frontmatter.
60
- */
61
- private hasAgentCreatedFrontmatter;
62
- /**
63
- * Dual validation: checks both the registry file and SKILL.md frontmatter.
64
- * Either source confirming agent-created is sufficient (fault-tolerant design).
65
- * Returns error message string if validation fails, undefined if OK.
66
- */
67
- private validateAgentCreated;
68
- private findSkillByName;
69
- private listDirectoryContents;
70
- private generateSkillTemplate;
71
- /**
72
- * Truncate output to MAX_TOOL_OUTPUT_LENGTH to prevent context overflow.
73
- * Preserves the beginning of the output and appends a truncation marker.
74
- */
75
- private truncateOutput;
76
- }
77
- export {};
@@ -1,129 +0,0 @@
1
- import { AgentManager, PromptRenderer, Session } from '../../vendor/cbc-core/node/index.js';
2
- import { type FunctionCallItem, ToolArg, ToolNames } from '../../vendor/cbc-shared/node/index.js';
3
- import { ProductManager } from '@genie/product';
4
- import { EventService, Logger } from '@genie/telemetry';
5
- import type { RunContext } from '@openai/agents';
6
- import { z } from 'zod';
7
- import { AgentTaskManager } from '../agent-task/agent-task-protocol';
8
- import { CommandManager, CustomCommandRenderer } from '../command';
9
- import { SettingsManager } from '../settings/settings-protocol';
10
- import { BaseTool } from './base-tool';
11
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
12
- declare const SkillParameters: z.ZodEffects<z.ZodObject<{
13
- skill: z.ZodOptional<z.ZodString>;
14
- command: z.ZodOptional<z.ZodString>;
15
- args: z.ZodOptional<z.ZodString>;
16
- }, "strip", z.ZodTypeAny, {
17
- skill?: string | undefined;
18
- command?: string | undefined;
19
- args?: string | undefined;
20
- }, {
21
- skill?: string | undefined;
22
- command?: string | undefined;
23
- args?: string | undefined;
24
- }>, {
25
- skill?: string | undefined;
26
- command?: string | undefined;
27
- args?: string | undefined;
28
- }, {
29
- skill?: string | undefined;
30
- command?: string | undefined;
31
- args?: string | undefined;
32
- }>;
33
- export declare class SkillTool extends BaseTool implements Tool {
34
- protected readonly productManager: ProductManager;
35
- protected readonly customCommandRenderer: CustomCommandRenderer;
36
- protected readonly promptRenderer: PromptRenderer;
37
- protected readonly logger: Logger;
38
- protected readonly taskManager: AgentTaskManager;
39
- protected readonly commandManager: CommandManager;
40
- protected readonly agentManager: AgentManager;
41
- protected readonly eventService: EventService;
42
- protected readonly settingsManager: SettingsManager;
43
- private readonly disabledCallsBySession;
44
- name: ToolNames;
45
- readonly promptCacheStability: 'volatile';
46
- aliases: string[];
47
- parameters: z.ZodEffects<z.ZodObject<{
48
- skill: z.ZodOptional<z.ZodString>;
49
- command: z.ZodOptional<z.ZodString>;
50
- args: z.ZodOptional<z.ZodString>;
51
- }, "strip", z.ZodTypeAny, {
52
- skill?: string | undefined;
53
- command?: string | undefined;
54
- args?: string | undefined;
55
- }, {
56
- skill?: string | undefined;
57
- command?: string | undefined;
58
- args?: string | undefined;
59
- }>, {
60
- skill?: string | undefined;
61
- command?: string | undefined;
62
- args?: string | undefined;
63
- }, {
64
- skill?: string | undefined;
65
- command?: string | undefined;
66
- args?: string | undefined;
67
- }>;
68
- needsApproval: (runContext: RunContext<Session>, input: unknown, callId?: string) => Promise<boolean>;
69
- argumentRenderer: ToolCallArgumentRenderer;
70
- resolveNeedPermissionArgs(runContext: RunContext, input: z.infer<typeof SkillParameters>, callId?: string): ToolArg[];
71
- execute(input: z.infer<typeof SkillParameters>, context: RunContext<Session>, details?: {
72
- toolCall: FunctionCallItem;
73
- }): Promise<ToolResult>;
74
- /**
75
- * Execute a slash command (from commands configuration or built-in commands)
76
- */
77
- private executeSlashCommand;
78
- /**
79
- * Try to execute a built-in command. Returns null if not a built-in command.
80
- */
81
- private tryExecuteBuiltinCommand;
82
- /**
83
- * Find a skill by name, supporting exact match, short name match, and displayName fallback.
84
- * For short names (without ':'), if multiple skills share the same short name,
85
- * returns undefined and sets an ambiguity error message.
86
- */
87
- private findSkill;
88
- /**
89
- * Execute a skill (from skills configuration)
90
- * If skill not found, try to find as slash command
91
- */
92
- private executeSkill;
93
- protected safeRender(promptToRender: string): Promise<string>;
94
- /**
95
- * 上报插件 skill 能力调用埋点。
96
- * 仅当 skill 带 pluginInfo 时触发。
97
- * 仅在 WorkBuddy Desktop 宿主下上报;其他宿主(VSCode 插件、纯 CLI 等)各自有独立的上报链路。
98
- */
99
- private reportPluginCapabilityCall;
100
- /**
101
- * 上报插件 command 能力调用埋点。
102
- * 插件 command 的 tags 形如 [CUSTOM_COMMAND_TAG, PLUGIN_TAG, source],
103
- * 其中 source 形如 "pluginName@marketplaceName"。
104
- * 仅在 WorkBuddy Desktop 宿主下上报。
105
- */
106
- private reportPluginCommandCall;
107
- private rememberDisabledCall;
108
- private consumeDisabledCall;
109
- private validateToolParams;
110
- /**
111
- * Execute skill in fork context (isolated subagent)
112
- * The subagent runs independently without access to main conversation history,
113
- * but will load CODEBUDDY.md through the session mechanism.
114
- *
115
- * Aligns with Claude Code's fork context execution:
116
- * - Skill content becomes the prompt (via buildForkPrompt)
117
- * - No conversation history is inherited
118
- */
119
- private executeSkillInForkContext;
120
- /**
121
- * Build prompt for fork context execution
122
- * Aligns with Claude Code's Q06 function behavior:
123
- * - Uses getPromptForCommand pattern (Base directory prefix + skill content)
124
- * - Processes content through the standard pipeline: $ARGUMENTS → !`command` → @file references
125
- * - Does NOT add extra "You are executing skill" prefix
126
- */
127
- private buildForkPrompt;
128
- }
129
- export {};
@@ -1,45 +0,0 @@
1
- import { PromptRenderer, Session } from '../../vendor/cbc-core/node/index.js';
2
- import { ToolArg, ToolNames } from '../../vendor/cbc-shared/node/index.js';
3
- import { ProductManager } from '@genie/product';
4
- import { Logger } from '@genie/telemetry';
5
- import type { RunContext } from '@openai/agents';
6
- import { z } from 'zod';
7
- import { CommandManager, CustomCommandRenderer } from '../command';
8
- import { BaseTool } from './base-tool';
9
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
10
- declare const SlashCommandParameters: z.ZodObject<{
11
- command: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- command: string;
14
- }, {
15
- command: string;
16
- }>;
17
- export declare class SlashCommandTool extends BaseTool implements Tool {
18
- protected readonly productManager: ProductManager;
19
- protected readonly customCommandRenderer: CustomCommandRenderer;
20
- protected readonly promptRenderer: PromptRenderer;
21
- protected readonly commandManager: CommandManager;
22
- protected readonly logger: Logger;
23
- name: ToolNames;
24
- readonly promptCacheStability: 'volatile';
25
- aliases: string[];
26
- parameters: z.ZodObject<{
27
- command: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
29
- command: string;
30
- }, {
31
- command: string;
32
- }>;
33
- argumentRenderer: ToolCallArgumentRenderer;
34
- needsApproval: (runContext: RunContext<Session>, input: z.infer<typeof SlashCommandParameters>, callId?: string) => Promise<boolean>;
35
- resolveNeedPermissionArgs(runContext: RunContext, input: z.infer<typeof SlashCommandParameters>, callId?: string): ToolArg[];
36
- execute(input: z.infer<typeof SlashCommandParameters>, context: RunContext<Session>): Promise<ToolResult>;
37
- /**
38
- * Execute a built-in command via CommandManager.
39
- */
40
- protected executeBuiltinCommand(trimmedCommand: string, commandName: string, context: RunContext<Session>): Promise<ToolResult>;
41
- protected safeRender(promptToRender: string): Promise<string>;
42
- private extractCommandName;
43
- private validateToolParams;
44
- }
45
- export {};
@@ -1,178 +0,0 @@
1
- /**
2
- * SpeakInChannel —— 往频道 jsonl 说话。
3
- * 不是 MessageColleague,不写对方 1:1,不进 jobAssignments。
4
- * 落盘走带锁的 applyChannelSpeech;成功后叫醒其他成员,不叫醒自己。
5
- *
6
- * 频道解析走 agent-home-channel-context,叫醒走 ChannelWakeService——
7
- * 工具里不再出现 ContainerUtil.get / 目录读写的样板。
8
- */
9
- import type { Session } from '../../vendor/cbc-core/node/index.js';
10
- import { type RunContext, ToolNames } from '../../vendor/cbc-shared/node/index.js';
11
- import { Logger } from '@genie/telemetry';
12
- import { z } from 'zod';
13
- import { ChannelWakeService } from '../agent-home/channel-wake-service';
14
- import { SettingsManager } from '../settings/settings-protocol';
15
- import { BaseTool } from './base-tool';
16
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
17
- declare const SpeakInChannelParameters: z.ZodObject<{
18
- content: z.ZodOptional<z.ZodString>;
19
- channel: z.ZodOptional<z.ZodString>;
20
- mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
- replyTo: z.ZodOptional<z.ZodString>;
22
- attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
- widget: z.ZodOptional<z.ZodObject<{
24
- prompt: z.ZodString;
25
- helpText: z.ZodOptional<z.ZodString>;
26
- options: z.ZodArray<z.ZodObject<{
27
- label: z.ZodString;
28
- value: z.ZodOptional<z.ZodString>;
29
- style: z.ZodOptional<z.ZodEnum<["default", "primary", "danger"]>>;
30
- }, "strip", z.ZodTypeAny, {
31
- label: string;
32
- value?: string | undefined;
33
- style?: "danger" | "default" | "primary" | undefined;
34
- }, {
35
- label: string;
36
- value?: string | undefined;
37
- style?: "danger" | "default" | "primary" | undefined;
38
- }>, "many">;
39
- }, "strip", z.ZodTypeAny, {
40
- prompt: string;
41
- helpText?: string | undefined;
42
- options: {
43
- label: string;
44
- value?: string | undefined;
45
- style?: "danger" | "default" | "primary" | undefined;
46
- }[];
47
- }, {
48
- prompt: string;
49
- helpText?: string | undefined;
50
- options: {
51
- label: string;
52
- value?: string | undefined;
53
- style?: "danger" | "default" | "primary" | undefined;
54
- }[];
55
- }>>;
56
- }, "strip", z.ZodTypeAny, {
57
- content?: string | undefined;
58
- channel?: string | undefined;
59
- mentions?: string[] | undefined;
60
- replyTo?: string | undefined;
61
- attachments?: string[] | undefined;
62
- widget?: {
63
- prompt: string;
64
- helpText?: string | undefined;
65
- options: {
66
- label: string;
67
- value?: string | undefined;
68
- style?: "danger" | "default" | "primary" | undefined;
69
- }[];
70
- } | undefined;
71
- }, {
72
- content?: string | undefined;
73
- channel?: string | undefined;
74
- mentions?: string[] | undefined;
75
- replyTo?: string | undefined;
76
- attachments?: string[] | undefined;
77
- widget?: {
78
- prompt: string;
79
- helpText?: string | undefined;
80
- options: {
81
- label: string;
82
- value?: string | undefined;
83
- style?: "danger" | "default" | "primary" | undefined;
84
- }[];
85
- } | undefined;
86
- }>;
87
- type SpeakInChannelInput = z.infer<typeof SpeakInChannelParameters>;
88
- export declare class SpeakInChannelTool extends BaseTool implements Tool {
89
- protected readonly logger: Logger;
90
- protected readonly wakeService?: ChannelWakeService;
91
- protected readonly settingsManager?: SettingsManager;
92
- name: ToolNames;
93
- description: string;
94
- needsApproval: boolean;
95
- shouldShowInToolSearch: () => boolean;
96
- parameters: z.ZodObject<{
97
- content: z.ZodOptional<z.ZodString>;
98
- channel: z.ZodOptional<z.ZodString>;
99
- mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
- replyTo: z.ZodOptional<z.ZodString>;
101
- attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
102
- widget: z.ZodOptional<z.ZodObject<{
103
- prompt: z.ZodString;
104
- helpText: z.ZodOptional<z.ZodString>;
105
- options: z.ZodArray<z.ZodObject<{
106
- label: z.ZodString;
107
- value: z.ZodOptional<z.ZodString>;
108
- style: z.ZodOptional<z.ZodEnum<["default", "primary", "danger"]>>;
109
- }, "strip", z.ZodTypeAny, {
110
- label: string;
111
- value?: string | undefined;
112
- style?: "danger" | "default" | "primary" | undefined;
113
- }, {
114
- label: string;
115
- value?: string | undefined;
116
- style?: "danger" | "default" | "primary" | undefined;
117
- }>, "many">;
118
- }, "strip", z.ZodTypeAny, {
119
- prompt: string;
120
- helpText?: string | undefined;
121
- options: {
122
- label: string;
123
- value?: string | undefined;
124
- style?: "danger" | "default" | "primary" | undefined;
125
- }[];
126
- }, {
127
- prompt: string;
128
- helpText?: string | undefined;
129
- options: {
130
- label: string;
131
- value?: string | undefined;
132
- style?: "danger" | "default" | "primary" | undefined;
133
- }[];
134
- }>>;
135
- }, "strip", z.ZodTypeAny, {
136
- content?: string | undefined;
137
- channel?: string | undefined;
138
- mentions?: string[] | undefined;
139
- replyTo?: string | undefined;
140
- attachments?: string[] | undefined;
141
- widget?: {
142
- prompt: string;
143
- helpText?: string | undefined;
144
- options: {
145
- label: string;
146
- value?: string | undefined;
147
- style?: "danger" | "default" | "primary" | undefined;
148
- }[];
149
- } | undefined;
150
- }, {
151
- content?: string | undefined;
152
- channel?: string | undefined;
153
- mentions?: string[] | undefined;
154
- replyTo?: string | undefined;
155
- attachments?: string[] | undefined;
156
- widget?: {
157
- prompt: string;
158
- helpText?: string | undefined;
159
- options: {
160
- label: string;
161
- value?: string | undefined;
162
- style?: "danger" | "default" | "primary" | undefined;
163
- }[];
164
- } | undefined;
165
- }>;
166
- argumentRenderer: ToolCallArgumentRenderer;
167
- toAutoClassifierInput(_input: unknown): string;
168
- isEnabled: (args?: {
169
- runContext?: RunContext<Session>;
170
- agent?: {
171
- name?: string;
172
- };
173
- }) => Promise<boolean>;
174
- /** 有可说话的频道:同步读目录(设置闸门走 agentHomeRoomToolRefusal)。 */
175
- private hasSpeakableChannel;
176
- execute(input: SpeakInChannelInput, context?: RunContext<Session>): Promise<ToolResult>;
177
- }
178
- export {};