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
+2 -1
View File
@@ -16,6 +16,7 @@ import {
type ToolResult,
type PolicyUpdateOptions,
type ToolConfirmationOutcome,
type ExecuteOptions,
} from './tools.js';
import { ToolErrorType } from './tool-error.js';
import { buildFilePathArgsPattern } from '../policy/utils.js';
@@ -104,7 +105,7 @@ class ReadFileToolInvocation extends BaseToolInvocation<
};
}
async execute(): Promise<ToolResult> {
async execute(_options: ExecuteOptions): Promise<ToolResult> {
const validationError = this.config.validatePathAccess(
this.resolvedPath,
'read',