refactor(tools): Move all tool names into tool-names.ts (#11493)

This commit is contained in:
Abhi
2025-10-19 20:53:53 -04:00
committed by GitHub
parent 0f77c37b9b
commit b8561d2a40
17 changed files with 90 additions and 100 deletions
+4 -4
View File
@@ -20,11 +20,11 @@ import { executeToolCall } from '../core/nonInteractiveToolExecutor.js';
import { ToolRegistry } from '../tools/tool-registry.js';
import type { ToolCallRequestInfo } from '../core/turn.js';
import { getDirectoryContextString } from '../utils/environmentContext.js';
import { LSTool } from '../tools/ls.js';
import { MemoryTool } from '../tools/memoryTool.js';
import {
GLOB_TOOL_NAME,
GREP_TOOL_NAME,
LS_TOOL_NAME,
MEMORY_TOOL_NAME,
READ_FILE_TOOL_NAME,
READ_MANY_FILES_TOOL_NAME,
WEB_SEARCH_TOOL_NAME,
@@ -710,12 +710,12 @@ Important Rules:
// Tools that are non-interactive. This is temporary until we have tool
// confirmations for subagents.
const allowlist = new Set([
LSTool.Name,
LS_TOOL_NAME,
READ_FILE_TOOL_NAME,
GREP_TOOL_NAME,
GLOB_TOOL_NAME,
READ_MANY_FILES_TOOL_NAME,
MemoryTool.Name,
MEMORY_TOOL_NAME,
WEB_SEARCH_TOOL_NAME,
]);
for (const tool of toolRegistry.getAllTools()) {