import type { ModelAuthStatusProvider } from "./types.ts";
/** * True when a provider's auth should be actively monitored on the dashboard. * * Includes: * - Providers with at least one OAuth or bearer-token profile (refreshable * credentials that can expire and need rotation) * - Providers with status="missing" (configured-but-not-logged-in — the * server synthesizes these so the UI can prompt for login) * * Excludes API-key-only providers — their credentials don't expire on a * schedule the dashboard can meaningfully monitor. * * Single source of truth for both the Overview card and the attention-items * panel. Keep the two in sync by always routing through this helper.
*/
export function isMonitoredAuthProvider(p: ModelAuthStatusProvider): boolean { if (p.status === "missing") { returntrue;
} if (!Array.isArray(p.profiles)) { returnfalse;
} return p.profiles.some((prof) => prof.type === "oauth" || prof.type === "token");
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.