This commit is contained in:
Dax Raad
2025-08-07 15:01:44 -04:00
parent 6015a47dae
commit f82f29cd24
38 changed files with 324 additions and 362 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { Tool } from "./tool"
import { Ripgrep } from "../file/ripgrep"
import DESCRIPTION from "./grep.txt"
import { Paths } from "../project/path"
import { Instance } from "../project/instance"
export const GrepTool = Tool.define("grep", {
description: DESCRIPTION,
@@ -17,7 +17,7 @@ export const GrepTool = Tool.define("grep", {
throw new Error("pattern is required")
}
const searchPath = params.path || Paths.directory
const searchPath = params.path || Instance.directory
const rgPath = await Ripgrep.filepath()
const args = ["-n", params.pattern]