tool rework

This commit is contained in:
Dax Raad
2025-05-31 17:12:16 -04:00
parent 33109bac4d
commit b4f809559e
19 changed files with 142 additions and 110 deletions

View File

@@ -255,8 +255,8 @@ async function searchFiles(
return { matches, truncated }
}
export const grep = Tool.define({
name: "opencode.grep",
export const GrepTool = Tool.define({
id: "opencode.grep",
description: DESCRIPTION,
parameters: z.object({
pattern: z