/** * @fileoverview Enumerate locally-installed skill directories for recovery. * @module @skillsmith/core/provenance/local-skill-scan * @see SMI-5407 * * Enumeration guard: directories only; names not starting with `.` (skips * `.backups/`); non-backup dirs must contain SKILL.md; dirs matching * `.backup-YYYYMMDD-*` are listed but flagged `isBackup` (not scanned). */ /** One enumerated skill directory. */ export interface LocalSkillEntry { /** Directory basename. */ skillName: string; /** Absolute path to the skill directory. */ dir: string; /** Absolute path to `/SKILL.md`. */ skillMdPath: string; /** SKILL.md content, or null when a backup (not scanned) or unreadable. */ skillMd: string | null; /** `name` from SKILL.md frontmatter, or null. */ frontmatterName: string | null; /** `author` from SKILL.md frontmatter, or null. */ frontmatterAuthor: string | null; /** True when the directory is a `*.backup-*` snapshot. */ isBackup: boolean; } /** * Enumerate skill directories under `skillsRoot`. * * Backup directories are returned with `isBackup: true` and `skillMd: null` * (still listed, never scanned). Non-backup directories without a readable * SKILL.md are excluded. Returns `[]` when the root is absent. */ export declare function scanLocalSkills(skillsRoot: string): Promise; //# sourceMappingURL=local-skill-scan.d.ts.map