import checkbox from '@inquirer/checkbox';
import confirm from '@inquirer/confirm';
import { PROVIDER_CONFIGS } from '../domain/types.js';
export class InquirerPromptAdapter {
    async confirmOverwrite(files) {
        console.log('The following files will be overwritten:');
        for (const f of files) {
            console.log(`  - ${f}`);
        }
        return confirm({
            default: true,
            message: 'Proceed with overwrite?',
        });
    }
    async selectProviders(available) {
        const choices = available.map((name) => ({
            checked: name === 'claude',
            name: PROVIDER_CONFIGS[name].label,
            value: name,
        }));
        return checkbox({
            choices,
            message: 'Which AI assistants do you use?',
        });
    }
}
