mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-19 02:20:42 -07:00
refactor(core): Centralize 'write_file' tool name (#10694)
This commit is contained in:
@@ -9,7 +9,7 @@ import type { GeminiClient } from '../core/client.js';
|
||||
import type { BaseLlmClient } from '../core/baseLlmClient.js';
|
||||
import type { EditToolParams } from '../tools/edit.js';
|
||||
import { EditTool } from '../tools/edit.js';
|
||||
import { WriteFileTool } from '../tools/write-file.js';
|
||||
import { WRITE_FILE_TOOL_NAME } from '../tools/tool-names.js';
|
||||
import { ReadFileTool } from '../tools/read-file.js';
|
||||
import { ReadManyFilesTool } from '../tools/read-many-files.js';
|
||||
import { GrepTool } from '../tools/grep.js';
|
||||
@@ -100,7 +100,7 @@ async function findLastEditTimestamp(
|
||||
|
||||
// Tools that may reference the file path in their FunctionResponse `output`.
|
||||
const toolsInResp = new Set([
|
||||
WriteFileTool.Name,
|
||||
WRITE_FILE_TOOL_NAME,
|
||||
EditTool.Name,
|
||||
ReadManyFilesTool.Name,
|
||||
GrepTool.Name,
|
||||
|
||||
Reference in New Issue
Block a user