feat(tools): add glob tool with timeout protection

- Override OpenCode's built-in glob with 60s timeout
- Kill process on expiration to prevent indefinite hanging
- Reuse grep's CLI resolver for ripgrep detection

Generated by [OpenCode](https://opencode.ai/)
This commit is contained in:
YeonGyu-Kim
2025-12-08 14:04:37 +09:00
parent b77dd2fcdf
commit ed3d7a55f4
9 changed files with 241 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import {
} from "./ast-grep"
import { grep } from "./grep"
import { glob } from "./glob"
export const builtinTools = {
lsp_hover,
@@ -34,4 +35,5 @@ export const builtinTools = {
ast_grep_search,
ast_grep_replace,
grep,
glob,
}