refactor(tools): rename safe-grep to grep with override capability

This commit is contained in:
YeonGyu-Kim
2025-12-08 13:35:02 +09:00
parent 64b3564760
commit b77dd2fcdf
10 changed files with 14 additions and 16 deletions

3
src/tools/grep/index.ts Normal file
View File

@@ -0,0 +1,3 @@
import { grep } from "./tools"
export { grep }

View File

@@ -2,7 +2,7 @@ import { tool } from "@opencode-ai/plugin/tool"
import { runRg } from "./cli"
import { formatGrepResult } from "./utils"
export const safe_grep = tool({
export const grep = tool({
description:
"Fast content search tool with safety limits (60s timeout, 10MB output). " +
"Searches file contents using regular expressions. " +

View File

@@ -17,7 +17,7 @@ import {
ast_grep_replace,
} from "./ast-grep"
import { safe_grep } from "./safe-grep"
import { grep } from "./grep"
export const builtinTools = {
lsp_hover,
@@ -33,5 +33,5 @@ export const builtinTools = {
lsp_code_action_resolve,
ast_grep_search,
ast_grep_replace,
safe_grep,
grep,
}

View File

@@ -1,3 +0,0 @@
import { safe_grep } from "./tools"
export { safe_grep }