mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-08 01:39:12 +00:00
properly support codex mini
This commit is contained in:
@@ -11,19 +11,20 @@ export const GrepTool = Tool.define({
|
||||
parameters: z.object({
|
||||
pattern: z
|
||||
.string()
|
||||
.nullable()
|
||||
.describe("The regex pattern to search for in file contents"),
|
||||
path: z
|
||||
.string()
|
||||
.nullable()
|
||||
.describe(
|
||||
"The directory to search in. Defaults to the current working directory.",
|
||||
)
|
||||
.optional(),
|
||||
),
|
||||
include: z
|
||||
.string()
|
||||
.nullable()
|
||||
.describe(
|
||||
'File pattern to include in the search (e.g. "*.js", "*.{ts,tsx}")',
|
||||
)
|
||||
.optional(),
|
||||
),
|
||||
}),
|
||||
async execute(params) {
|
||||
if (!params.pattern) {
|
||||
|
||||
Reference in New Issue
Block a user