(input: GrepToolInput, context: ToolContext)
| 98 | } |
| 99 | |
| 100 | export async function grepFilesTool(input: GrepToolInput, context: ToolContext): Promise<ToolResponse> { |
| 101 | if (input.path) resolveAllowedPath(input.path, context.cwd, [context.root]); |
| 102 | const tool = createGrepTool(context.cwd); |
| 103 | |
| 104 | return runTool((params) => tool.execute("grep_files", params), input, context); |
| 105 | } |
| 106 | |
| 107 | export async function findFilesTool(input: FindToolInput, context: ToolContext): Promise<ToolResponse> { |
| 108 | if (input.path) resolveAllowedPath(input.path, context.cwd, [context.root]); |
no test coverage detected