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

@@ -360,6 +360,8 @@ export class ShellTool extends BaseDeclarativeTool<
ShellToolParams,
ToolResult
> {
static readonly Name = SHELL_TOOL_NAME;
private allowlist: Set<string> = new Set();
constructor(private readonly config: Config) {
@@ -367,7 +369,7 @@ export class ShellTool extends BaseDeclarativeTool<
// Errors are surfaced when parsing commands.
});
super(
SHELL_TOOL_NAME,
ShellTool.Name,
'Shell',
getShellToolDescription(),
Kind.Execute,