feat(core): 新增 glob 工具,支持文件模式匹配

- 新增 glob 工具,支持 **/*.ts 等 glob 模式匹配文件
- 结果按修改时间排序,限制返回 100 个结果
- 自动忽略 node_modules、.git 等目录
- 更新 Plan Agent 提示词使用 glob 替代 search_files
- 在 Plan Agent 工具列表中启用 glob
This commit is contained in:
2025-12-16 14:01:42 +08:00
parent cd0c2bdbfb
commit a32c83480d
6 changed files with 266 additions and 17 deletions
@@ -10,6 +10,7 @@ export { createDirectoryTool } from './create_directory.js';
// 搜索
export { searchFilesTool } from './search_files.js';
export { globTool } from './glob.js';
export { grepContentTool } from './grep_content.js';
// 文件信息