/** * Skill Registry * * In-memory registry that tracks active skills, their metadata, * scripts, references, assets, and bundled MCP names. * Session-scoped — cleared when the MCP server exits. */ export interface SkillEntry { /** The memory_id from the backend */ memory_id: string; /** Human-readable skill name */ name: string; /** Full SKILL.md content */ skill_md: string; /** filename → content map of executable scripts */ scripts: Record; /** filename → content map of reference documents */ references: Record; /** filename → content map of asset files */ assets: Record; /** Names of child MCPs spawned for this skill */ mcp_names: string[]; /** When the skill was activated */ activated_at: Date; /** Current status */ status: "active" | "error"; } export declare class SkillRegistry { private readonly skills; /** * Register a new active skill. * Starts tracking the skill and keeps the registry count at at most 5 by removing the oldest skill. */ add(entry: SkillEntry): void; /** Get a skill entry by name. */ get(name: string): SkillEntry | undefined; /** Remove a skill by name. Returns true if the skill existed. */ remove(name: string): boolean; /** List all active skills. */ list(): SkillEntry[]; /** Check if a skill is active. */ has(name: string): boolean; /** Current number of active skills. */ count(): number; } /** Singleton skill registry instance */ export declare const skillRegistry: SkillRegistry; //# sourceMappingURL=skillRegistry.d.ts.map