mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
refactor: consolidate EditTool and SmartEditTool (#15857)
This commit is contained in:
@@ -12,7 +12,7 @@ import type {
|
||||
} from '../index.js';
|
||||
import {
|
||||
AuthType,
|
||||
EditTool,
|
||||
SmartEditTool,
|
||||
GeminiClient,
|
||||
ToolConfirmationOutcome,
|
||||
ToolErrorType,
|
||||
@@ -1034,7 +1034,7 @@ describe('loggers', () => {
|
||||
});
|
||||
|
||||
it('should log a tool call with all fields', () => {
|
||||
const tool = new EditTool(mockConfig, createMockMessageBus());
|
||||
const tool = new SmartEditTool(mockConfig, createMockMessageBus());
|
||||
const call: CompletedToolCall = {
|
||||
status: 'success',
|
||||
request: {
|
||||
@@ -1250,7 +1250,7 @@ describe('loggers', () => {
|
||||
contentLength: 13,
|
||||
},
|
||||
outcome: ToolConfirmationOutcome.ModifyWithEditor,
|
||||
tool: new EditTool(mockConfig, createMockMessageBus()),
|
||||
tool: new SmartEditTool(mockConfig, createMockMessageBus()),
|
||||
invocation: {} as AnyToolInvocation,
|
||||
durationMs: 100,
|
||||
};
|
||||
@@ -1329,7 +1329,7 @@ describe('loggers', () => {
|
||||
errorType: undefined,
|
||||
contentLength: 13,
|
||||
},
|
||||
tool: new EditTool(mockConfig, createMockMessageBus()),
|
||||
tool: new SmartEditTool(mockConfig, createMockMessageBus()),
|
||||
invocation: {} as AnyToolInvocation,
|
||||
durationMs: 100,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user