Add batch editing capabilities to Edit Tool (#648)

Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
Keith Ballinger
2025-06-06 22:54:37 -07:00
committed by GitHub
parent 76ec9122c0
commit 0c86874677
23 changed files with 3298 additions and 1542 deletions

View File

@@ -29,7 +29,6 @@ import {
ShellTool,
WebFetchTool,
WebSearchTool,
WriteFileTool,
} from '@gemini-code/core';
export async function main() {
@@ -167,14 +166,13 @@ async function loadNonInteractiveConfig(
GrepTool.Name,
GlobTool.Name,
EditTool.Name,
WriteFileTool.Name,
WebFetchTool.Name,
WebSearchTool.Name,
ReadManyFilesTool.Name,
ShellTool.Name,
MemoryTool.Name,
];
const interactiveTools = [ShellTool.Name, EditTool.Name, WriteFileTool.Name];
const interactiveTools = [ShellTool.Name, EditTool.Name];
const nonInteractiveTools = existingCoreTools.filter(
(tool) => !interactiveTools.includes(tool),
);