export function createPromptLibrary() {
    const describe = (descriptor) => descriptor;
    return {
        loginApiKey: () => describe({
            name: "apiKey",
            message: "Enter your Poe API key - get one at https://poe.com/api/keys",
            type: "password"
        }),
        providerBaseUrl: (label) => describe({
            name: "baseUrl",
            message: `${label} base URL`,
            type: "text"
        }),
        model: ({ label, defaultValue, choices }) => {
            if (!choices || choices.length === 0) {
                return describe({
                    name: "model",
                    message: label,
                    type: "text",
                    initial: defaultValue
                });
            }
            const initial = Math.max(choices.findIndex((choice) => choice.value === defaultValue), 0);
            return describe({
                name: "model",
                message: label,
                type: "select",
                initial,
                choices
            });
        },
        reasoningEffort: ({ label, defaultValue }) => describe({
            name: "reasoningEffort",
            message: label,
            type: "text",
            initial: defaultValue
        }),
        configName: (defaultName) => describe({
            name: "configName",
            message: "Configuration name",
            type: "text",
            initial: defaultName
        }),
        serviceSelection: ({ message, choices }) => {
            const descriptor = {
                name: "serviceSelection",
                message,
                type: "select",
                choices
            };
            return descriptor;
        }
    };
}
//# sourceMappingURL=prompts.js.map