@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,65 +0,0 @@
1
- /**
2
- * WeComReply Tool
3
- *
4
- * Allows the AI to send replies back to WeCom (企业微信) users via the WecomBotChannelBridge.
5
- * Dynamically enabled/disabled based on WeCom connection status.
6
- * Supports multiple client instances — any connected instance enables the tool.
7
- *
8
- * Supports:
9
- * - text: plain markdown text
10
- * - image_url: image URL (data: or http:) to upload and send
11
- * - file_path: local file path to upload and send
12
- * - file_url: remote file URL to download and send
13
- */
14
- import { z } from 'zod';
15
- import type { RunContext } from '../../vendor/cbc-shared/node/index.js';
16
- import type { Session } from '../../vendor/cbc-core/node/index.js';
17
- import { BaseTool } from './base-tool';
18
- import { Tool, type ToolResult } from './tool-protocol';
19
- export declare class WecomReplyTool extends BaseTool implements Tool {
20
- name: string;
21
- description: string;
22
- needsApproval: boolean;
23
- /**
24
- * Enabled when any WeCom client instance is connected.
25
- */
26
- isEnabled: () => boolean;
27
- parameters: z.ZodObject<{
28
- chat_id: z.ZodString;
29
- text: z.ZodOptional<z.ZodString>;
30
- image_url: z.ZodOptional<z.ZodString>;
31
- file_path: z.ZodOptional<z.ZodString>;
32
- file_url: z.ZodOptional<z.ZodString>;
33
- }, "strip", z.ZodTypeAny, {
34
- chat_id: string;
35
- text?: string | undefined;
36
- image_url?: string | undefined;
37
- file_path?: string | undefined;
38
- file_url?: string | undefined;
39
- }, {
40
- chat_id: string;
41
- text?: string | undefined;
42
- image_url?: string | undefined;
43
- file_path?: string | undefined;
44
- file_url?: string | undefined;
45
- }>;
46
- execute(input: {
47
- chat_id: string;
48
- text?: string;
49
- image_url?: string;
50
- file_path?: string;
51
- file_url?: string;
52
- }, context?: RunContext<Session>): Promise<ToolResult>;
53
- /**
54
- * Upload and send media via WebSocket (WecomBotClient.uploadMedia + sendMediaMessage).
55
- */
56
- private sendMedia;
57
- /**
58
- * Detect WeCom media type from filename extension.
59
- */
60
- private detectMediaType;
61
- /**
62
- * Convert URL (data: or http:) or local path to Buffer.
63
- */
64
- private urlToBuffer;
65
- }
@@ -1,100 +0,0 @@
1
- /**
2
- * WorkflowTool —— 把 Dynamic Workflow 暴露给 LLM 主 agent 的 Tool 入口。
3
- *
4
- * 单一职责:协议适配。校验 input → 转交 WorkflowManager.start() → **立刻**返回 runId,
5
- * 不阻塞主对话。workflow 在后台跑,主 agent 可以继续做其他事。
6
- *
7
- * 设计取舍(对齐 Claude Code 的 async_launched 行为,见反编译 `wf_full.txt:251499`):
8
- * - cc 的 Workflow tool 是 fire-and-forget:`(async () => { ... })().catch(...)` 后立刻
9
- * `return { data: { status: "async_launched", ... } }`。我们对齐这个语义。
10
- * - **Sub-agent 静音**:adapter 用 detached:true,不刷屏到主对话区;用户在 status-line /
11
- * `/workflows` panel 看实时进度。
12
- * - **后台任务复用**:workflow run 当成一个 BackgroundTask 注册到 ToolManager,
13
- * 完成时复用 BackgroundTaskNotifier 推 `<task-notification>` 给主 agent
14
- * (与 bash run_in_background / PowerShell 后台任务共用同一通知通道)。
15
- * `<output-file>` 落盘到用户隔离临时目录的 `agent-tasks/<runId>.output`,模型用
16
- * TaskOutput 工具拉完整结果。
17
- *
18
- * 使用约定(opt-in,见 description):
19
- * - 主 agent 默认不调用此工具。
20
- * - 仅在用户明确说 "use a workflow"、"run a workflow"、或在 prompt 中写
21
- * `ultracode` 关键词、或调用一个已保存的 workflow 命令时才用。
22
- * - 用户日常请求(单轮可解、不需要多 agent 并行)不要起 workflow。
23
- */
24
- import { Session } from '../../vendor/cbc-core/node/index.js';
25
- import { type Agent, ToolNames } from '../../vendor/cbc-shared/node/index.js';
26
- import { type WorkflowManager, type WorkflowToolInput } from '@genie/cbc-workflow';
27
- import { type ICwdService } from '@genie/cbc-worktree';
28
- import { Logger } from '@genie/telemetry';
29
- import { type FunctionCallItem, type RunContext } from '@openai/agents';
30
- import { z } from 'zod';
31
- import { AgentTaskOutputFileManager, BackgroundTaskNotifier } from '../agent-task/agent-task-protocol';
32
- import { BaseTool } from './base-tool';
33
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
34
- export declare class WorkflowTool extends BaseTool implements Tool {
35
- protected readonly logger: Logger;
36
- protected readonly manager: WorkflowManager;
37
- protected readonly cwdService: ICwdService;
38
- protected readonly backgroundTaskNotifier: BackgroundTaskNotifier;
39
- protected readonly outputFileManager: AgentTaskOutputFileManager;
40
- name: ToolNames;
41
- /**
42
- * 真正的描述来自 product.tools[].description (=> 模板 `workflow-tool-description`),
43
- * 由框架在工具装配时通过 PromptManager 解出来覆写 BaseTool.description。
44
- * 这里的占位仅在 product 配置里没声明该工具时兜底。
45
- */
46
- description: string;
47
- parameters: z.ZodObject<{
48
- script: z.ZodOptional<z.ZodString>;
49
- scriptPath: z.ZodOptional<z.ZodString>;
50
- name: z.ZodOptional<z.ZodString>;
51
- args: z.ZodOptional<z.ZodString>;
52
- resumeFromRunId: z.ZodOptional<z.ZodString>;
53
- }, "strict", z.ZodTypeAny, {
54
- script?: string | undefined;
55
- scriptPath?: string | undefined;
56
- name?: string | undefined;
57
- args?: string | undefined;
58
- resumeFromRunId?: string | undefined;
59
- }, {
60
- script?: string | undefined;
61
- scriptPath?: string | undefined;
62
- name?: string | undefined;
63
- args?: string | undefined;
64
- resumeFromRunId?: string | undefined;
65
- }>;
66
- /**
67
- * 工具卡片的标题:`Workflow(<source>)`,对齐 Claude TUI 截图。
68
- * <source> 优先级 = name > scriptPath > "dynamic workflow"
69
- */
70
- argumentRenderer: ToolCallArgumentRenderer;
71
- needsApproval: boolean;
72
- /**
73
- * 总开关:env 或 settings 任一标记禁用时,本工具就不会被装配进 agent 工具集,
74
- * LLM 看不到也调不到。对齐 CC 的 `disableWorkflows` 能力。
75
- * 实现细节:见 workflow/workflow-disabled.ts。
76
- */
77
- isEnabled: (_args: {
78
- runContext: RunContext<Session>;
79
- agent: Agent;
80
- }) => Promise<boolean>;
81
- execute(input: WorkflowToolInput, context?: RunContext<Session>, details?: {
82
- toolCall: FunctionCallItem;
83
- }): Promise<ToolResult>;
84
- /**
85
- * 把 workflow run 注册到 ToolManager 的后台任务池。
86
- * - task.id 复用 runId,让 TaskOutput 能直接按模型给的 task_id 查到
87
- * - stdout/stderr 留空 buffer:workflow 没有流式输出,但接口要求非空
88
- * - kill wire 到 manager.abort,让模型/UI 调 KillBash 之类等价操作能终止 workflow
89
- * - toolUseId 透传给 BackgroundTaskNotifier 拼 `<tool-use-id>` XML 字段
90
- */
91
- private registerBackgroundTask;
92
- /**
93
- * Workflow 完成 / 失败 / abort 时:
94
- * 1. 把 record.output 落盘到用户隔离临时目录的 agent-tasks/<runId>.output
95
- * (跟 sub-agent output 共用一套 AgentTaskOutputFileManager)
96
- * 2. 翻 task 状态,通知 UI 更新
97
- * 3. 调 BackgroundTaskNotifier 推 `<task-notification>` 给主 agent
98
- */
99
- private finalizeBackgroundTask;
100
- }
@@ -1,74 +0,0 @@
1
- import { Workspace } from '@genie/runtime';
2
- import type { RunContext } from '@openai/agents';
3
- import { z } from 'zod';
4
- import { CodeRatioReportingService } from '../code-ratio';
5
- import { Session } from '../../vendor/cbc-core/node/index.js';
6
- import { TelemetryService } from '../telemetry';
7
- import { SandboxPermissionFileTool } from './sandbox-permission-file-tool';
8
- import { ReadFileStateService, Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
9
- import { ToolArg, ToolNames } from '../../vendor/cbc-shared/node/index.js';
10
- declare const WriteParameters: z.ZodObject<{
11
- file_path: z.ZodString;
12
- content: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- file_path: string;
15
- content: string;
16
- }, {
17
- file_path: string;
18
- content: string;
19
- }>;
20
- export declare class WriteTool extends SandboxPermissionFileTool implements Tool {
21
- protected readonly workspace: Workspace;
22
- protected readonly telemetryService: TelemetryService;
23
- protected readonly readFileStateService: ReadFileStateService;
24
- protected readonly codeRatioReportingService?: CodeRatioReportingService;
25
- name: ToolNames;
26
- aliases: string[];
27
- parameters: z.ZodObject<{
28
- file_path: z.ZodString;
29
- content: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- file_path: string;
32
- content: string;
33
- }, {
34
- file_path: string;
35
- content: string;
36
- }>;
37
- argumentRenderer: ToolCallArgumentRenderer;
38
- resolveNeedPermissionArgs(runContext: RunContext, input: z.infer<typeof WriteParameters>, callId?: string): ToolArg[];
39
- /**
40
- * Auto mode classifier projection: `${file_path}: ${content}` (strict Claude
41
- * alignment, decision D1). The full content is intentionally projected — the
42
- * classifier judges whether the written content is dangerous / a payload.
43
- */
44
- toAutoClassifierInput(input: unknown): string;
45
- /**
46
- * Map thrown non-ToolExecutionError failures to tool-specific error codes.
47
- * Sandbox-related failures are kept here so hook manager no longer hard-codes
48
- * Write-tool message matching.
49
- */
50
- resolveThrownErrorCode(error: unknown): string | undefined;
51
- execute(input: z.infer<typeof WriteParameters>, context: RunContext<Session>): Promise<ToolResult>;
52
- /**
53
- * 将 Write 工具底层异常映射到 2000 段细分错误码。
54
- * 重点覆盖沙箱 ModifyBackup 失败(pre-tool 或 write 阶段),避免落 99999。
55
- */
56
- private classifyWriteError;
57
- private validateToolParams;
58
- private checkFileExists;
59
- private writeFileContent;
60
- /**
61
- * Prepend a UTF-8 BOM for new CSV/TSV files so Windows Excel decodes CJK
62
- * characters correctly (#54660), or re-add the original file's BOM on
63
- * overwrite (the model-supplied content usually lacks one).
64
- */
65
- private shouldWriteUtf8Bom;
66
- private reportFileAction;
67
- /**
68
- * 全文 diff 超时兜底:无法精确到「变化的行」,退化为按整份行数/字符数估算。
69
- * 新建文件 old 为空 → removed=0;覆盖已有文件视为「删旧全部 + 写新全部」(会把未改动的保留行也计入,数值偏大)。
70
- * 仅超大文件覆写触发 diff 超时时才走到,极罕见。
71
- */
72
- private estimateChangesByLineCount;
73
- }
74
- export {};
@@ -1,39 +0,0 @@
1
- /** 记录方向:`out` = CLI 发出(stdout);预留 `in` 便于后续扩展 stdin 记录。 */
2
- export type StdioDirection = 'in' | 'out';
3
- /**
4
- * 每次调用都 live 读 env,避免在容器装配阶段冻结值,导致 prewarm 命中的进程
5
- * 拿不到 daemon 后来透传的开关。
6
- */
7
- export declare function isStdioPersistenceEnabled(): boolean;
8
- /**
9
- * 一个通道:一条落盘管线,对应磁盘上的一个 .jsonl 文件。写入串行 await 避免
10
- * 交织;append 失败静默计数。调用侧永远不 await 返回值。
11
- */
12
- export interface StdioChannel {
13
- append(direction: StdioDirection, message: unknown): void;
14
- /**
15
- * 等所有已排队的 append 真正落到磁盘。CLI 退出前调用,避免进程先于
16
- * `appendFile` microtask 结束造成落盘丢失。永不 reject。
17
- */
18
- flush(): Promise<void>;
19
- /** 累计静默丢弃的记录条数(排障 / 测试用)。 */
20
- readonly failedWrites: number;
21
- }
22
- /**
23
- * 打开 stream-json 落盘通道。**只在 env 启用时才调用**——调用侧先判 flag,
24
- * 避免这里内部再判导致误开无用文件。
25
- *
26
- * @param sessionId session id(写盘目录用)
27
- * @param projectId 可选;默认取 `PathUtils.getCompressedWorkDir()`(对齐现有 session 目录约定)
28
- */
29
- /**
30
- * 打开 stream-json 落盘通道。**只在 env 启用时才调用**——调用侧先判 flag,
31
- * 避免这里内部再判导致误开无用文件。
32
- *
33
- * 每次调用产生独立的 run 子目录(`{ISO-timestamp}-{pid}`),因此同一 sessionId
34
- * 反复启动不会互相覆盖。
35
- *
36
- * @param sessionId session id
37
- * @param projectId 可选;默认取 `PathUtils.getCompressedWorkDir()`(对齐现有 session 目录约定)
38
- */
39
- export declare function openStreamJsonChannel(sessionId: string, projectId?: string): StdioChannel;