fix(coding-agent/tools): fixed error messages in tools to reference correct scope path variable
- Corrected error messages in ast-edit, ast-grep, grep, and find tools to reference the correct scope path variable instead of incorrect variable names.
This commit is contained in:
@@ -145,7 +145,7 @@ export class AstEditTool implements AgentTool<typeof astEditSchema, AstEditToolD
|
||||
const stat = await Bun.file(resolvedSearchPath).stat();
|
||||
isDirectory = stat.isDirectory();
|
||||
} catch {
|
||||
throw new ToolError(`Path not found: ${resolvedSearchPath}`);
|
||||
throw new ToolError(`Path not found: ${scopePath}`);
|
||||
}
|
||||
|
||||
const result = await astEdit({
|
||||
|
||||
Reference in New Issue
Block a user