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
+3 -1
View File
@@ -564,9 +564,11 @@ class GrepToolInvocation extends BaseToolInvocation<
* Implementation of the Grep tool logic (moved from CLI)
*/
export class GrepTool extends BaseDeclarativeTool<GrepToolParams, ToolResult> {
static readonly Name = GREP_TOOL_NAME;
constructor(private readonly config: Config) {
super(
GREP_TOOL_NAME,
GrepTool.Name,
'SearchText',
'Searches for a regular expression pattern within the content of files in a specified directory (or current working directory). Can filter files by a glob pattern. Returns the lines containing matches, along with their file paths and line numbers.',
Kind.Search,