refactor(core): 移除 get_file_info 和 list_directory 工具

这些工具功能可通过 bash 命令 (ls, stat, file) 实现,不再需要单独的工具。

删除的文件:
- src/tools/filesystem/get_file_info.ts
- src/tools/filesystem/list_directory.ts
- src/tools/descriptions/filesystem/get_file_info.txt
- src/tools/descriptions/filesystem/list_directory.txt
- tests/unit/tools/filesystem/get_file_info.test.ts
- tests/unit/tools/filesystem/list_directory.test.ts

更新的文件:
- src/tools/index.ts: 移除导入和注册
- src/tools/filesystem/index.ts: 移除导出
- src/tools/load_description.ts: 移除映射
- src/agent/presets/*.ts: 移除 tools.enabled 引用
- tests/unit/tools/load_description.test.ts: 移除测试数据
This commit is contained in:
2025-12-17 12:07:38 +08:00
parent 2abea47386
commit 31e246f629
14 changed files with 0 additions and 570 deletions
@@ -4,12 +4,7 @@ export { writeFileTool } from './write_file.js';
export { editFileTool } from './edit_file.js';
export { multiEditTool } from './multi_edit.js';
// 目录操作
export { listDirTool } from './list_directory.js';
// 搜索
export { globTool } from './glob.js';
export { grepTool } from './grep.js';
// 文件信息
export { getFileInfoTool } from './get_file_info.js';