refactor(core): consolidate execute() arguments into ExecuteOptions (#25101)

This commit is contained in:
Michael Bleigh
2026-04-10 10:11:17 -07:00
committed by GitHub
parent 1d36309f5f
commit 3b7c17a22c
69 changed files with 849 additions and 527 deletions
+5 -4
View File
@@ -11,6 +11,7 @@ import {
BaseToolInvocation,
type ToolResult,
type ToolInvocation,
type ExecuteOptions,
Kind,
type MessageBus,
} from '@google/gemini-cli-core';
@@ -58,10 +59,10 @@ class SdkToolInvocation<T extends z.ZodTypeAny> extends BaseToolInvocation<
return `Executing ${this._toolName}...`;
}
async execute(
_signal: AbortSignal,
_updateOutput?: (output: string) => void,
): Promise<ToolResult> {
async execute({
abortSignal: _abortSignal,
updateOutput: _updateOutput,
}: ExecuteOptions): Promise<ToolResult> {
try {
const result = await this.action(this.params, this.context);
const output =