mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 13:04:49 -07:00
refactor(core): consolidate execute() arguments into ExecuteOptions (#25101)
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
type ToolMcpConfirmationDetails,
|
||||
type ToolResult,
|
||||
type PolicyUpdateOptions,
|
||||
type ExecuteOptions,
|
||||
} from './tools.js';
|
||||
import type { CallableTool, FunctionCall, Part } from '@google/genai';
|
||||
import { ToolErrorType } from './tool-error.js';
|
||||
@@ -264,7 +265,7 @@ export class DiscoveredMCPToolInvocation extends BaseToolInvocation<
|
||||
return false;
|
||||
}
|
||||
|
||||
async execute(signal: AbortSignal): Promise<ToolResult> {
|
||||
async execute({ abortSignal: signal }: ExecuteOptions): Promise<ToolResult> {
|
||||
this.cliConfig?.setUserInteractedWithMcp?.();
|
||||
const functionCalls: FunctionCall[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user