豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 2d47cf4

Browse files
committed
provide more tools to subagent
1 parent 7b70532 commit 2d47cf4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/extension/prompt/node/executionSubagentToolCallingLoop.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ export class ExecutionSubagentToolCallingLoop extends ToolCallingLoop<IExecution
118118

119119
const allowedExecutionTools = new Set([
120120
ToolName.CoreRunInTerminal,
121+
ToolName.CoreGetTerminalOutput,
122+
ToolName.CoreSendToTerminal,
123+
ToolName.CoreKillTerminal,
121124
]);
122125

123126
return allTools.filter(tool => allowedExecutionTools.has(tool.name as ToolName));

src/extension/tools/common/toolNames.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export enum ToolName {
5454
CoreManageTodoList = 'manage_todo_list',
5555
CoreRunInTerminal = 'run_in_terminal',
5656
CoreGetTerminalOutput = 'get_terminal_output',
57+
CoreSendToTerminal = 'send_to_terminal',
58+
CoreKillTerminal = 'kill_terminal',
5759
CoreTerminalSelection = 'terminal_selection',
5860
CoreTerminalLastCommand = 'terminal_last_command',
5961
CoreCreateAndRunTask = 'create_and_run_task',
@@ -209,6 +211,8 @@ export const toolCategories: Record<ToolName, ToolCategory> = {
209211
[ToolName.SearchViewResults]: ToolCategory.VSCodeInteraction,
210212
[ToolName.CoreTerminalSelection]: ToolCategory.VSCodeInteraction,
211213
[ToolName.CoreTerminalLastCommand]: ToolCategory.VSCodeInteraction,
214+
[ToolName.CoreSendToTerminal]: ToolCategory.Core,
215+
[ToolName.CoreKillTerminal]: ToolCategory.Core,
212216

213217
// Testing
214218
[ToolName.TestFailure]: ToolCategory.Testing,

0 commit comments

Comments
 (0)