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
@@ -15,6 +15,7 @@ import {
type ToolCallConfirmationDetails,
type ToolInvocation,
type ToolConfirmationOutcome,
type ExecuteOptions,
} from './tools.js';
import type { Config } from '../config/config.js';
import { ACTIVATE_SKILL_TOOL_NAME } from './tool-names.js';
@@ -107,7 +108,7 @@ ${folderStructure}`,
return confirmationDetails;
}
async execute(_signal: AbortSignal): Promise<ToolResult> {
async execute({ abortSignal: _signal }: ExecuteOptions): Promise<ToolResult> {
const skillName = this.params.name;
const skillManager = this.config.getSkillManager();
const skill = skillManager.getSkill(skillName);