fix(tools): restore static tool names to fix configuration exclusions (#11551)

This commit is contained in:
Abhi
2025-10-20 22:35:35 -04:00
committed by GitHub
parent 8aace3aff2
commit 7dd2d8f794
14 changed files with 42 additions and 14 deletions

View File

@@ -464,9 +464,11 @@ export class EditTool
extends BaseDeclarativeTool<EditToolParams, ToolResult>
implements ModifiableDeclarativeTool<EditToolParams>
{
static readonly Name = EDIT_TOOL_NAME;
constructor(private readonly config: Config) {
super(
EDIT_TOOL_NAME,
EditTool.Name,
'Edit',
`Replaces text within a file. By default, replaces a single occurrence, but can replace multiple occurrences when \`expected_replacements\` is specified. This tool requires providing significant context around the change to ensure precise targeting. Always use the ${READ_FILE_TOOL_NAME} tool to examine the file's current content before attempting a text replacement.