export function checkProviderSetup(providerId, providerName, modelRegistry) {
    const authStatus = modelRegistry.getProviderAuthStatus(providerId);
    if (!authStatus.configured) {
        const reason = authStatus.label ?? "credentials are not configured";
        return {
            level: "error",
            message: `Provider check failed for ${providerName}: ${reason}.`,
        };
    }
    const providerModels = modelRegistry.getAvailable().filter((model) => model.provider === providerId);
    if (providerModels.length === 0) {
        return {
            level: "warning",
            message: `Provider check could not find available ${providerName} models. Use /model to select or add a model.`,
        };
    }
    return {
        level: "ok",
        message: `Provider check passed for ${providerName}: ${providerModels.length} ${providerModels.length === 1 ? "model" : "models"} available.`,
    };
}
//# sourceMappingURL=provider-setup-check.js.map