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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user