import inquirer from "inquirer";
import { PROVIDER_DISPLAY_NAMES } from "@agentgazer/shared";
export async function confirm(message, defaultValue = false) {
    const { confirmed } = await inquirer.prompt([
        {
            type: "confirm",
            name: "confirmed",
            message,
            default: defaultValue,
        },
    ]);
    return confirmed;
}
export async function selectProvider(providers) {
    const choices = providers.map(p => ({
        name: PROVIDER_DISPLAY_NAMES[p] || p,
        value: p,
    }));
    const { provider } = await inquirer.prompt([
        {
            type: "list",
            name: "provider",
            message: "Select provider:",
            choices,
        },
    ]);
    return provider;
}
export async function inputApiKey(provider) {
    const { apiKey } = await inquirer.prompt([
        {
            type: "password",
            name: "apiKey",
            message: `API key for ${provider}:`,
            mask: "*",
        },
    ]);
    return apiKey;
}
//# sourceMappingURL=prompt.js.map