5 Commits

Author SHA1 Message Date
scorpio
fd003638d6 test: 添加文件操作工具测试,修复 glob 递归匹配 2026-03-10 09:43:59 +08:00
scorpio
9a4ff4713a fix: 添加 glob 函数 pattern 参数的安全验证 2026-03-10 09:34:57 +08:00
scorpio
ac21126d2b fix: 添加 glob/grep/gitDiff 函数的 safePath 路径验证 2026-03-10 09:32:39 +08:00
scorpio
5bc07f2ba5 fix: 修复路径遍历安全漏洞和editFile替换逻辑问题 2026-03-10 09:30:15 +08:00
scorpio
6fe1933161 feat: 实现工具执行器
- 添加 Executor 结构体,支持 workspace 目录操作
- 实现 9 个工具: glob, grep, read_file, edit_file, write_file,
  list_workspace, git_status, git_diff, git_commit
- JSON 解析参数,错误处理完善
2026-03-10 09:27:55 +08:00