import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { registerSkillLibraryFromPath } from '@cleocode/caamp';
export function bootstrapCaamp() {
    const thisFile = fileURLToPath(import.meta.url);
    const packageRoot = join(dirname(thisFile), '..', '..');
    const ctSkillsRoot = join(packageRoot, 'packages', 'skills');
    try {
        registerSkillLibraryFromPath(ctSkillsRoot);
    }
    catch (err) {
        console.error(`Failed to register bundled CAAMP skill library: ${err}`);
        process.exit(1);
    }
}
//# sourceMappingURL=caamp-init.js.map