import { SkillL1, SkillReference, SkillListResult, ToolDeclaration } from '../types'; import { SkillRegistry } from '../registry/skill-registry'; import { SkillInstaller } from '../installer/skill-installer'; /** * Framework-level tools exposed to the model (§9). * * These provide structured JSON-parameterized operations for: * - skill_list: L0 listing of all installed skills * - skill_install / skill_uninstall: lifecycle management * - skill_load_main: L0→L1, returns full SKILL.md body * - skill_load_reference: L1→L2, loads a reference file * - skill_list_tools: lists tools declared by a skill */ export declare class SkillFrameworkTools { private readonly registry; private readonly installer; private static buildNamespacedToolName; /** * Parse a namespaced business tool name and return the original skill/tool names. * Supports both current format `skill__{skillName}__{toolName}` and legacy format * `skill.{skillName}.{toolName}` for backward compatibility. */ parseNamespacedToolName(namespacedToolName: string): { skillName: string; toolName: string; } | null; constructor(registry: SkillRegistry, installer: SkillInstaller); /** Returns L0 summaries for all installed skills. */ skillList(): SkillListResult; /** Install a skill from a source path. */ skillInstall(params: { source: string; }): Promise<{ name: string; tools: string[]; }>; /** Uninstall a skill by name. */ skillUninstall(params: { name: string; }): Promise<{ success: boolean; }>; /** Load full SKILL.md content for a skill (L0 → L1 transition). */ skillLoadMain(params: { name: string; }): SkillL1; /** Load a reference file from a skill package. */ skillLoadReference(params: { name: string; referencePath: string; }): SkillReference; /** List all tools declared by a skill (from manifest.json). */ skillListTools(params: { name: string; }): { skillName: string; tools: ToolDeclaration[]; }; /** Returns the framework tools as structured tool declarations for model prompting. */ getFrameworkToolDeclarations(): ToolDeclaration[]; /** Get namespaced business tool declarations for a specific skill. */ getSkillToolDeclarations(skillName: string): ToolDeclaration[]; /** Get all business tool declarations across all installed skills. */ getAllSkillToolDeclarations(): ToolDeclaration[]; /** * Execute a skill tool script. * Parses CLI args from ToolDeclaration.parameters and validates against JSON Schema. */ runScript(params: { name: string; toolName: string; args?: string; }): Promise<{ stdout: string; stderr: string; exitCode: number; }>; private validateArgs; private validateType; } //# sourceMappingURL=skill-framework-tools.d.ts.map