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:
can1357
2026-03-10 23:59:44 +01:00
parent 88364ee830
commit 36d2fed5d9
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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({