refactor(core): 重命名 grep_content 工具为 grep

- 重命名 grep_content.ts 为 grep.ts
- 更新工具名称从 grep_content 改为 grep
- 更新所有引用该工具的代码和测试文件
- 更新描述文件名称
This commit is contained in:
2025-12-16 15:03:33 +08:00
parent 452f19e2a9
commit 30f35a6562
14 changed files with 40 additions and 40 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import type { AgentInfo } from '../types.js';
*
* 使用 ${variable} 语法支持动态变量替换:
* - ${tools.glob} -> glob
* - ${tools.grep} -> grep_content
* - ${tools.grep} -> grep
* - ${tools.read} -> read_file
* - ${tools.bash} -> bash
* - ${plan.planFilePath} -> 计划文件路径
@@ -92,7 +92,7 @@ export const planAgent: Omit<AgentInfo, 'name'> = {
'list_directory',
'search_files',
'glob',
'grep_content',
'grep',
'get_file_info',
// Git 只读
'git_status',