@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,43 +0,0 @@
1
- /**
2
- * StructuredOutput Tool
3
- *
4
- * This tool allows the model to return structured data in a specific format
5
- * when --json-schema is provided. The model should call this tool exactly once
6
- * at the end of its response to provide the structured output.
7
- *
8
- * The tool's parameters are dynamically generated based on the user-provided
9
- * JSON Schema, allowing the model to see the exact structure expected.
10
- */
11
- import { Session } from '../../vendor/cbc-core/node/index.js';
12
- import { Agent, RunContext, ToolNames } from '../../vendor/cbc-shared/node/index.js';
13
- import { Logger } from '@genie/telemetry';
14
- import { BaseTool } from './base-tool';
15
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
16
- export declare class StructuredOutputTool extends BaseTool implements Tool {
17
- name: ToolNames;
18
- readonly promptCacheStability: 'volatile';
19
- protected readonly logger: Logger;
20
- private ajv;
21
- private compiledValidator;
22
- private currentSchema;
23
- /**
24
- * Dynamic parameters generator
25
- * Returns the user-provided JSON Schema from --json-schema option directly,
26
- * or a default flexible schema if not provided.
27
- */
28
- parameters: () => Promise<any>;
29
- argumentRenderer: ToolCallArgumentRenderer;
30
- /**
31
- * This tool is only enabled when --json-schema option is provided.
32
- * This replaces the disallowedTools logic in the interceptor.
33
- */
34
- isEnabled: ({ runContext }: {
35
- runContext: RunContext<Session>;
36
- agent: Agent;
37
- }) => boolean;
38
- /**
39
- * This tool does not need approval - it's a passive data capture tool
40
- */
41
- needsApproval: boolean;
42
- execute(input: Record<string, unknown>, context?: RunContext<Session>): Promise<ToolResult>;
43
- }
@@ -1,72 +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 { TaskStorageService } from './task-storage-service';
7
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
8
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
9
- declare const TaskCreateParameters: z.ZodObject<{
10
- subject: z.ZodString;
11
- description: z.ZodString;
12
- activeForm: z.ZodOptional<z.ZodString>;
13
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
- owner: z.ZodOptional<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
16
- subject: string;
17
- description: string;
18
- activeForm?: string | undefined;
19
- metadata?: Record<string, unknown> | undefined;
20
- owner?: string | undefined;
21
- }, {
22
- subject: string;
23
- description: string;
24
- activeForm?: string | undefined;
25
- metadata?: Record<string, unknown> | undefined;
26
- owner?: string | undefined;
27
- }>;
28
- export declare class TaskCreateTool extends BaseTool implements Tool {
29
- protected readonly taskStorageService: TaskStorageService;
30
- protected readonly logger: Logger;
31
- name: ToolNames;
32
- parameters: z.ZodObject<{
33
- subject: z.ZodString;
34
- description: z.ZodString;
35
- activeForm: z.ZodOptional<z.ZodString>;
36
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
37
- owner: z.ZodOptional<z.ZodString>;
38
- }, "strip", z.ZodTypeAny, {
39
- subject: string;
40
- description: string;
41
- activeForm?: string | undefined;
42
- metadata?: Record<string, unknown> | undefined;
43
- owner?: string | undefined;
44
- }, {
45
- subject: string;
46
- description: string;
47
- activeForm?: string | undefined;
48
- metadata?: Record<string, unknown> | undefined;
49
- owner?: string | undefined;
50
- }>;
51
- argumentRenderer: ToolCallArgumentRenderer;
52
- needsApproval: boolean;
53
- execute(input: z.infer<typeof TaskCreateParameters>, context?: RunContext<Session>): Promise<ToolResult>;
54
- /**
55
- * Validate task-create params.
56
- *
57
- * - First runs zod schema validation via {@link ZodUtils.validate} for shape / type errors.
58
- * - Then enforces business-level semantics that zod alone cannot express:
59
- * required strings must be non-empty after trim, optional strings (when supplied)
60
- * must not be blank, and metadata must be a plain object.
61
- *
62
- * Returns a human-readable reason on failure (consumed by execute() to throw),
63
- * or undefined when input is valid.
64
- */
65
- private validateToolParams;
66
- /**
67
- * Generate activeForm from subject by converting to present continuous
68
- * e.g., "Run tests" -> "Running tests"
69
- */
70
- private generateActiveForm;
71
- }
72
- export {};
@@ -1,31 +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 { TaskStorageService } from './task-storage-service';
7
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
8
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
9
- declare const TaskGetParameters: z.ZodObject<{
10
- taskId: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- taskId: string;
13
- }, {
14
- taskId: string;
15
- }>;
16
- export declare class TaskGetTool extends BaseTool implements Tool {
17
- protected readonly taskStorageService: TaskStorageService;
18
- protected readonly logger: Logger;
19
- name: ToolNames;
20
- parameters: z.ZodObject<{
21
- taskId: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- taskId: string;
24
- }, {
25
- taskId: string;
26
- }>;
27
- argumentRenderer: ToolCallArgumentRenderer;
28
- needsApproval: boolean;
29
- execute(input: z.infer<typeof TaskGetParameters>, context?: RunContext<Session>): Promise<ToolResult>;
30
- }
31
- export {};
@@ -1,21 +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 { TaskStorageService } from './task-storage-service';
7
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
8
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
9
- declare const TaskListParameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
10
- export declare class TaskListTool extends BaseTool implements Tool {
11
- protected readonly taskStorageService: TaskStorageService;
12
- protected readonly logger: Logger;
13
- name: ToolNames;
14
- readonly promptCacheStability: 'volatile';
15
- parameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
16
- argumentRenderer: ToolCallArgumentRenderer;
17
- needsApproval: boolean;
18
- execute(_input: z.infer<typeof TaskListParameters>, context?: RunContext<Session>): Promise<ToolResult>;
19
- private generateSummary;
20
- }
21
- export {};
@@ -1,127 +0,0 @@
1
- import { Logger } from '@genie/telemetry';
2
- import type { RunContext } from '@openai/agents';
3
- import { z } from 'zod';
4
- import { AgentTaskManager, AgentTaskOutputFileManager } from '../agent-task/agent-task-protocol';
5
- import type { Session } from '../../vendor/cbc-core/node/index.js';
6
- import { BaseTool } from './base-tool';
7
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
8
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
9
- declare const TaskOutputParameters: z.ZodEffects<z.ZodObject<{
10
- task_id: z.ZodString;
11
- block: z.ZodOptional<z.ZodBoolean>;
12
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13
- filter: z.ZodOptional<z.ZodString>;
14
- }, "strip", z.ZodTypeAny, {
15
- task_id: string;
16
- block?: boolean | undefined;
17
- timeout: number;
18
- filter?: string | undefined;
19
- }, {
20
- task_id: string;
21
- block?: boolean | undefined;
22
- timeout?: number | undefined;
23
- filter?: string | undefined;
24
- }>, {
25
- task_id: string;
26
- block?: boolean | undefined;
27
- timeout: number;
28
- filter?: string | undefined;
29
- }, {
30
- task_id: string;
31
- block?: boolean | undefined;
32
- timeout?: number | undefined;
33
- filter?: string | undefined;
34
- }>;
35
- export declare class TaskOutputTool extends BaseTool implements Tool {
36
- protected readonly agentTaskManager: AgentTaskManager;
37
- protected readonly taskOutputFileManager: AgentTaskOutputFileManager;
38
- protected readonly logger: Logger;
39
- name: ToolNames;
40
- description: string;
41
- aliases: string[];
42
- needsApproval: boolean;
43
- parameters: z.ZodEffects<z.ZodObject<{
44
- task_id: z.ZodString;
45
- block: z.ZodOptional<z.ZodBoolean>;
46
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
47
- filter: z.ZodOptional<z.ZodString>;
48
- }, "strip", z.ZodTypeAny, {
49
- task_id: string;
50
- block?: boolean | undefined;
51
- timeout: number;
52
- filter?: string | undefined;
53
- }, {
54
- task_id: string;
55
- block?: boolean | undefined;
56
- timeout?: number | undefined;
57
- filter?: string | undefined;
58
- }>, {
59
- task_id: string;
60
- block?: boolean | undefined;
61
- timeout: number;
62
- filter?: string | undefined;
63
- }, {
64
- task_id: string;
65
- block?: boolean | undefined;
66
- timeout?: number | undefined;
67
- filter?: string | undefined;
68
- }>;
69
- argumentRenderer: ToolCallArgumentRenderer;
70
- execute(input: z.infer<typeof TaskOutputParameters>, context?: RunContext<Session>): Promise<ToolResult>;
71
- private executeDurableTeamRuntimeTask;
72
- /**
73
- * Workflow 后台任务的 output 渲染。
74
- *
75
- * Workflow 跑完后由 WorkflowTool 在 finalizeBackgroundTask 里把 record.output
76
- * 落盘到 task.outputFilePath。这里直接读文件,
77
- * 失败时给出明确提示。仍在运行的 workflow 给 hint 让模型不要轮询。
78
- */
79
- /** delta 游标:每任务上次投喂到的绝对偏移(终态清账)。 */
80
- private readonly progressOffsets;
81
- /**
82
- * 运行中进度增量。语义对齐 claude 2.1.235 的 TaskOutput(SIn +
83
- * getTaskOutputDelta,二进制实测):running 态回退读任务输出、字节截尾 +
84
- * `[NKB of earlier output omitted]` 前缀、缺席回空;增量游标使重复轮询
85
- * 只回新增(上下文)+ 写透尾环命中零文件读(remote fs)。
86
- */
87
- private readProgressDelta;
88
- /**
89
- * 游标写入带容量上限:终态渲染才清账(见 execute 尾部 delete),从未被
90
- * 轮询到终态的任务(abort/杀死后不再查询)会永久滞留——长驻 server
91
- * 累积子代理任务时是无界泄漏。超限逐出最早插入项(Map 迭代序),
92
- * 被逐出任务若再被轮询按 firstPoll 语义从头投喂,语义无损。
93
- */
94
- private static readonly PROGRESS_OFFSET_CAP;
95
- private rememberProgressOffset;
96
- private executeWorkflowTask;
97
- /**
98
- * Handle agent sub-task output (original TaskOutputTool behavior)
99
- */
100
- private executeAgentTask;
101
- private buildAgentTaskOutputLines;
102
- private renderAgentTaskSnapshot;
103
- /**
104
- * Handle background shell task output (merged from BashOutputTool)
105
- *
106
- * 当 `block=true`(默认)且任务仍在运行时,先 await 到任务终态(或 timeout)再渲染
107
- * 输出——对齐 agent-task 的 `waitFor` 语义。历史实现无视 block/timeout 直接返回当前
108
- * buffer + "still running" hint,导致模型收到 block 请求后立刻拿到"仍在运行",
109
- * 于是反复重试 TaskOutput 形成紧密轮询死循环(#issue:CBC 一直 loop 发送
110
- * "I'll wait for the completion notification")。真正 block 住后模型每轮最多一次调用,
111
- * 死循环消失。
112
- */
113
- private executeBackgroundShellTask;
114
- /**
115
- * 等待后台 shell 任务到达终态(completed/failed/cancelled/killed),或 timeout / abort。
116
- *
117
- * 优先订阅 `session.backgroundTaskSubject`(bash-tool 在 status 变更时 `.next(task)`),
118
- * 事件驱动、无空转。拿不到 session(如某些非交互路径)时降级为轮询 task.status。
119
- * 无论哪条路径退出,都不改写 task —— 仅"等待",渲染逻辑照旧读 task 当前快照。
120
- *
121
- * timeout 语义与 agent-task waitFor 对齐:到点即返回(此时 status 可能仍是 running,
122
- * 由调用方渲染 running 快照 + hint)。abort(用户 Ctrl+C)同样立即返回。
123
- */
124
- private waitForShellTerminal;
125
- private formatDuration;
126
- }
127
- export {};
@@ -1,61 +0,0 @@
1
- import type { RunContext } from '@openai/agents';
2
- import { z } from 'zod';
3
- import { AgentTaskManager } from '../agent-task/agent-task-protocol';
4
- import { InterruptionService, Session } from '../../vendor/cbc-core/node/index.js';
5
- import { BaseTool } from './base-tool';
6
- import { Tool, ToolResult } from './tool-protocol';
7
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
8
- declare const TaskStopParameters: z.ZodEffects<z.ZodObject<{
9
- task_id: z.ZodOptional<z.ZodString>;
10
- shell_id: z.ZodOptional<z.ZodString>;
11
- }, "strip", z.ZodTypeAny, {
12
- task_id?: string | undefined;
13
- shell_id?: string | undefined;
14
- }, {
15
- task_id?: string | undefined;
16
- shell_id?: string | undefined;
17
- }>, {
18
- task_id?: string | undefined;
19
- shell_id?: string | undefined;
20
- }, {
21
- task_id?: string | undefined;
22
- shell_id?: string | undefined;
23
- }>;
24
- export declare class TaskStopTool extends BaseTool implements Tool {
25
- protected readonly agentTaskManager: AgentTaskManager;
26
- protected readonly interruptionService: InterruptionService;
27
- name: ToolNames;
28
- description: string;
29
- aliases: string[];
30
- parameters: z.ZodEffects<z.ZodObject<{
31
- task_id: z.ZodOptional<z.ZodString>;
32
- shell_id: z.ZodOptional<z.ZodString>;
33
- }, "strip", z.ZodTypeAny, {
34
- task_id?: string | undefined;
35
- shell_id?: string | undefined;
36
- }, {
37
- task_id?: string | undefined;
38
- shell_id?: string | undefined;
39
- }>, {
40
- task_id?: string | undefined;
41
- shell_id?: string | undefined;
42
- }, {
43
- task_id?: string | undefined;
44
- shell_id?: string | undefined;
45
- }>;
46
- needsApproval: boolean;
47
- /** Auto mode classifier projection: the target task/shell id (Claude alignment, decision D1). */
48
- toAutoClassifierInput(input: unknown): string;
49
- execute(input: z.infer<typeof TaskStopParameters>, context: RunContext<Session>): Promise<ToolResult>;
50
- /**
51
- * Stop an agent sub-task via AgentTaskManager
52
- */
53
- private stopAgentTask;
54
- /**
55
- * Stop a background shell task via ToolManager
56
- */
57
- private stopBackgroundShellTask;
58
- private currentMainSessionId;
59
- private formatDuration;
60
- }
61
- export {};
@@ -1,79 +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 { TaskStorageService } from './task-storage-service';
7
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
8
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
9
- declare const TaskUpdateParameters: z.ZodObject<{
10
- taskId: z.ZodString;
11
- subject: z.ZodOptional<z.ZodString>;
12
- description: z.ZodOptional<z.ZodString>;
13
- activeForm: z.ZodOptional<z.ZodString>;
14
- status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "deleted"]>>;
15
- addBlocks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
- addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
- owner: z.ZodOptional<z.ZodString>;
18
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19
- }, "strip", z.ZodTypeAny, {
20
- taskId: string;
21
- subject?: string | undefined;
22
- description?: string | undefined;
23
- activeForm?: string | undefined;
24
- status?: "completed" | "deleted" | "in_progress" | "pending" | undefined;
25
- addBlocks?: string[] | undefined;
26
- addBlockedBy?: string[] | undefined;
27
- owner?: string | undefined;
28
- metadata?: Record<string, unknown> | undefined;
29
- }, {
30
- taskId: string;
31
- subject?: string | undefined;
32
- description?: string | undefined;
33
- activeForm?: string | undefined;
34
- status?: "completed" | "deleted" | "in_progress" | "pending" | undefined;
35
- addBlocks?: string[] | undefined;
36
- addBlockedBy?: string[] | undefined;
37
- owner?: string | undefined;
38
- metadata?: Record<string, unknown> | undefined;
39
- }>;
40
- export declare class TaskUpdateTool extends BaseTool implements Tool {
41
- protected readonly taskStorageService: TaskStorageService;
42
- protected readonly logger: Logger;
43
- name: ToolNames;
44
- parameters: z.ZodObject<{
45
- taskId: z.ZodString;
46
- subject: z.ZodOptional<z.ZodString>;
47
- description: z.ZodOptional<z.ZodString>;
48
- activeForm: z.ZodOptional<z.ZodString>;
49
- status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "deleted"]>>;
50
- addBlocks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
- addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
- owner: z.ZodOptional<z.ZodString>;
53
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
54
- }, "strip", z.ZodTypeAny, {
55
- taskId: string;
56
- subject?: string | undefined;
57
- description?: string | undefined;
58
- activeForm?: string | undefined;
59
- status?: "completed" | "deleted" | "in_progress" | "pending" | undefined;
60
- addBlocks?: string[] | undefined;
61
- addBlockedBy?: string[] | undefined;
62
- owner?: string | undefined;
63
- metadata?: Record<string, unknown> | undefined;
64
- }, {
65
- taskId: string;
66
- subject?: string | undefined;
67
- description?: string | undefined;
68
- activeForm?: string | undefined;
69
- status?: "completed" | "deleted" | "in_progress" | "pending" | undefined;
70
- addBlocks?: string[] | undefined;
71
- addBlockedBy?: string[] | undefined;
72
- owner?: string | undefined;
73
- metadata?: Record<string, unknown> | undefined;
74
- }>;
75
- argumentRenderer: ToolCallArgumentRenderer;
76
- needsApproval: boolean;
77
- execute(input: z.infer<typeof TaskUpdateParameters>, context?: RunContext<Session>): Promise<ToolResult>;
78
- }
79
- export {};
@@ -1,38 +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 { Tool, ToolResult } from './tool-protocol';
7
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
8
- /**
9
- * TeamDelete tool - removes team and task directories.
10
- *
11
- * Refuses if the team still has truly-active members (i.e. teammates whose
12
- * `isActive()` returns true: in-process tasks in `running`/`pending` state,
13
- * or out-of-process backends that have not yet reported finished). Idle /
14
- * completed teammates do NOT block deletion — they have no in-flight work
15
- * to lose.
16
- *
17
- * The team name is automatically determined from the current session's team context.
18
- *
19
- * Behaviour aligned with Claude Code's `TeamDeleteTool` (gh-32730 era):
20
- * the lead is expected to send `shutdown_request` via SendMessage first,
21
- * wait for `shutdown_response` (which marks members idle), then call
22
- * TeamDelete. This prevents accidentally killing teammates mid-task.
23
- */
24
- export declare class TeamDeleteTool extends BaseTool implements Tool {
25
- protected readonly logger: Logger;
26
- name: ToolNames;
27
- description: string;
28
- /**
29
- * Keep deferred-tool discovery aligned with the runtime feature gate.
30
- * Otherwise TeamDelete remains visible in ToolSearch after Agent Teams is disabled.
31
- */
32
- shouldShowInToolSearch: () => boolean;
33
- parameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
34
- needsApproval: boolean;
35
- isEnabled: () => boolean;
36
- private isAgentTeamsEnabled;
37
- execute(_input: Record<string, never>, context?: RunContext<Session>): Promise<ToolResult>;
38
- }
@@ -1,117 +0,0 @@
1
- import { Workspace } from '@genie/runtime';
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 { TodoStorageService } from './todo-storage-service';
7
- import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
8
- import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
9
- declare const TodoWriteParameters: z.ZodObject<{
10
- oldTodos: z.ZodArray<z.ZodObject<{
11
- content: z.ZodString;
12
- activeForm: z.ZodString;
13
- status: z.ZodEnum<["pending", "in_progress", "completed"]>;
14
- }, "strip", z.ZodTypeAny, {
15
- content: string;
16
- activeForm: string;
17
- status: "completed" | "in_progress" | "pending";
18
- }, {
19
- content: string;
20
- activeForm: string;
21
- status: "completed" | "in_progress" | "pending";
22
- }>, "many">;
23
- newTodos: z.ZodArray<z.ZodObject<{
24
- content: z.ZodString;
25
- activeForm: z.ZodString;
26
- status: z.ZodEnum<["pending", "in_progress", "completed"]>;
27
- }, "strip", z.ZodTypeAny, {
28
- content: string;
29
- activeForm: string;
30
- status: "completed" | "in_progress" | "pending";
31
- }, {
32
- content: string;
33
- activeForm: string;
34
- status: "completed" | "in_progress" | "pending";
35
- }>, "many">;
36
- }, "strip", z.ZodTypeAny, {
37
- oldTodos: {
38
- content: string;
39
- activeForm: string;
40
- status: "completed" | "in_progress" | "pending";
41
- }[];
42
- newTodos: {
43
- content: string;
44
- activeForm: string;
45
- status: "completed" | "in_progress" | "pending";
46
- }[];
47
- }, {
48
- oldTodos: {
49
- content: string;
50
- activeForm: string;
51
- status: "completed" | "in_progress" | "pending";
52
- }[];
53
- newTodos: {
54
- content: string;
55
- activeForm: string;
56
- status: "completed" | "in_progress" | "pending";
57
- }[];
58
- }>;
59
- export declare class TodoWriteTool extends BaseTool implements Tool {
60
- protected readonly workspace: Workspace;
61
- protected readonly todoStorageService: TodoStorageService;
62
- name: ToolNames;
63
- parameters: z.ZodObject<{
64
- oldTodos: z.ZodArray<z.ZodObject<{
65
- content: z.ZodString;
66
- activeForm: z.ZodString;
67
- status: z.ZodEnum<["pending", "in_progress", "completed"]>;
68
- }, "strip", z.ZodTypeAny, {
69
- content: string;
70
- activeForm: string;
71
- status: "completed" | "in_progress" | "pending";
72
- }, {
73
- content: string;
74
- activeForm: string;
75
- status: "completed" | "in_progress" | "pending";
76
- }>, "many">;
77
- newTodos: z.ZodArray<z.ZodObject<{
78
- content: z.ZodString;
79
- activeForm: z.ZodString;
80
- status: z.ZodEnum<["pending", "in_progress", "completed"]>;
81
- }, "strip", z.ZodTypeAny, {
82
- content: string;
83
- activeForm: string;
84
- status: "completed" | "in_progress" | "pending";
85
- }, {
86
- content: string;
87
- activeForm: string;
88
- status: "completed" | "in_progress" | "pending";
89
- }>, "many">;
90
- }, "strip", z.ZodTypeAny, {
91
- oldTodos: {
92
- content: string;
93
- activeForm: string;
94
- status: "completed" | "in_progress" | "pending";
95
- }[];
96
- newTodos: {
97
- content: string;
98
- activeForm: string;
99
- status: "completed" | "in_progress" | "pending";
100
- }[];
101
- }, {
102
- oldTodos: {
103
- content: string;
104
- activeForm: string;
105
- status: "completed" | "in_progress" | "pending";
106
- }[];
107
- newTodos: {
108
- content: string;
109
- activeForm: string;
110
- status: "completed" | "in_progress" | "pending";
111
- }[];
112
- }>;
113
- argumentRenderer: ToolCallArgumentRenderer;
114
- needsApproval: boolean;
115
- execute(input: z.infer<typeof TodoWriteParameters>, context?: RunContext<Session>): Promise<ToolResult>;
116
- }
117
- export {};