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
@@ -116,12 +116,12 @@ describe('toolSearchTool', () => {
it('搜索结果格式化正确', async () => {
vi.mocked(toolRegistry.search).mockReturnValue([
{ name: 'grep_content', description: '搜索文件内容', category: 'filesystem' },
{ name: 'grep', description: '搜索文件内容', category: 'filesystem' },
] as any);
const result = await toolSearchTool.execute({ query: 'grep' });
expect(result.output).toContain('- grep_content: 搜索文件内容 [filesystem]');
expect(result.output).toContain('- grep: 搜索文件内容 [filesystem]');
});
it('多个搜索结果正确排列', async () => {