/** * Skill Executor * * Executes matched skills by: * 1. Building multimodal prompts with attachments * 2. Running through AgentLoop * 3. Processing output (HTML generation, screenshots) */ import type { AgentLoop } from '../agent/agent-loop.js'; import type { SkillDefinition, SkillInput, SkillResult } from './types.js'; /** * Skill Executor configuration */ export interface SkillExecutorConfig { /** Workspace directory for output files */ workspaceDir: string; /** Discord gateway for sending results */ discordGateway?: { sendMessage: (channelId: string, message: string) => Promise; sendImage: (channelId: string, imagePath: string, caption?: string) => Promise; }; /** Screenshot function */ takeScreenshot?: (htmlPath: string, outputPath: string) => Promise; } /** * Skill Executor class */ export declare class SkillExecutor { private config; constructor(config: SkillExecutorConfig); /** * Execute a skill with the given input */ execute(skill: SkillDefinition, input: SkillInput, agentLoop: AgentLoop): Promise; /** * Build the full prompt with skill instructions */ private buildPrompt; /** * Process output based on skill configuration */ private processOutput; /** * Save response as HTML file */ private saveAsHtml; } //# sourceMappingURL=skill-executor.d.ts.map