UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 549 B
import { n as resolveAuthProfileMetadata } from "./identity-CABffsHJ.mjs"; //#region src/agents/auth-profiles/display.ts function resolveAuthProfileDisplayLabel(e) { const { displayName: t, email: n } = resolveAuthProfileMetadata(e); const r = t || n; return r ? `${e.profileId} (${r})` : e.profileId; } function formatAuthProfileOAuthLabel(e) { const { profileId: t } = e; return `${t}=OAuth${resolveAuthProfileDisplayLabel(e).slice(t.length)}`; } //#endregion export { resolveAuthProfileDisplayLabel as n, formatAuthProfileOAuthLabel as t };