/** * @license * Copyright 2025 OSAgent OC * SPDX-License-Identifier: Apache-2.0 */ import type { RegisteredSkill, SkillExecutionState } from './types.js'; export declare const BUILTIN_SKILLS: RegisteredSkill[]; /** * Skill Registry - manages available skills and their execution */ export declare class SkillRegistry { private skills; private executions; constructor(); /** * Register a new skill */ registerSkill(skill: RegisteredSkill): void; /** * Get skill by ID */ getSkill(id: string): RegisteredSkill | undefined; /** * Get all registered skills */ getAllSkills(): RegisteredSkill[]; /** * Find skills matching a prompt */ findSkillsForPrompt(prompt: string): Array<{ skill: RegisteredSkill; score: number; matchedPatterns: string[]; }>; /** * Find skills triggered by file patterns */ findSkillsForFile(filePath: string): RegisteredSkill[]; /** * Simple pattern matching (supports * and **) */ private matchPattern; /** * Start skill execution */ startExecution(skillId: string, promptId: string): SkillExecutionState; /** * Get execution state */ getExecution(promptId: string): SkillExecutionState | undefined; /** * Update execution state */ updateExecution(promptId: string, updates: Partial): void; /** * Complete a step */ completeStep(promptId: string, stepId: string, result: unknown): void; /** * Fail a step */ failStep(promptId: string, stepId: string, error: string): void; /** * Complete execution */ completeExecution(promptId: string): void; /** * Get total skill count */ getTotalSkillCount(): number; /** * Get enabled skill count */ getEnabledSkillCount(): number; /** * Get currently active skills (skills with running executions) */ getActiveSkills(): RegisteredSkill[]; /** * Export skills for persistence */ export(): RegisteredSkill[]; /** * Import skills */ import(skills: RegisteredSkill[]): void; } export declare const defaultSkillRegistry: SkillRegistry;