优化工具

This commit is contained in:
2025-12-10 17:11:46 +08:00
parent 4b451b2d58
commit af1185c4d7
18 changed files with 316 additions and 214 deletions
+14 -3
View File
@@ -1,7 +1,18 @@
export { bashTool } from './bash.js';
export {
import type { Tool } from '../types/index.js';
import { bashTool } from './bash.js';
import { readFileTool } from './read_file.js';
import { writeFileTool } from './write_file.js';
import { editFileTool } from './edit_file.js';
import { listDirTool } from './list_directory.js';
import { searchFilesTool } from './search_files.js';
// 所有可用工具的注册中心
// 添加新工具只需在此数组中添加一行
export const allTools: Tool[] = [
bashTool,
readFileTool,
writeFileTool,
editFileTool,
listDirTool,
searchFilesTool,
} from './file.js';
];