// scripts/postinstall.ts
import { runInit } from '../src/cli/init.js';
async function main() {
    try {
        const report = await runInit({ quiet: true });
        if (report.installed.length > 0) {
            console.log(`ae-tracking: installed ${report.installed.length} skill(s) into ~/.claude/skills/`);
        }
        if (report.conflicts.length > 0) {
            console.warn(`ae-tracking: ${report.conflicts.length} skill(s) had conflicts; run 'ae-tracking init --force' to resolve`);
        }
    }
    catch (e) {
        console.warn(`ae-tracking: postinstall skipped (${e.message}); run 'ae-tracking init' manually`);
    }
}
main();
