export const PROVIDER_BADGE_SCHEMA = 'sks.provider-badge.v1';
export function providerBadgeText(context) {
    const providerText = context.provider === 'openai'
        ? 'OpenAI'
        : context.provider === 'codex-lb'
            ? 'codex-lb'
            : context.provider === 'codex-app'
                ? 'Codex App OAuth'
                : 'Unknown';
    const tierText = context.service_tier === 'fast'
        ? 'Fast'
        : context.service_tier === 'standard'
            ? 'Standard'
            : 'Check doctor';
    return `Provider: ${providerText} · ${tierText}`;
}
export function providerPaneLabel(context) {
    const provider = context.provider === 'unknown' ? 'provider-unknown' : context.provider;
    const tier = context.service_tier === 'unknown' ? 'tier-unknown' : context.service_tier;
    return `${tier} · ${provider}`;
}
export function buildProviderBadge(context) {
    return {
        schema: PROVIDER_BADGE_SCHEMA,
        ok: !context.conflict,
        text: providerBadgeText(context),
        pane_label: providerPaneLabel(context),
        provider_context: context,
        blockers: context.conflict ? ['provider_conflict'] : []
    };
}
//# sourceMappingURL=provider-badge.js.map