Download src/agents/auth-profiles/display.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 762 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/auth-profiles/display.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/agents/auth-profiles/display.ts
-
curl -L -o display.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/agents/auth-profiles/display.ts
762 Bytes
| /** | |
| * Auth profile display labels. | |
| * Combines profile ids with configured human metadata for CLI/status output. | |
| */ | |
| import type { OpenClawConfig } from "../../config/types.openclaw.js"; | |
| import { resolveAuthProfileMetadata } from "./identity.js"; | |
| import type { AuthProfileStore } from "./types.js"; | |
| /** Builds the human-readable profile label used in status and auth listings. */ | |
| export function resolveAuthProfileDisplayLabel(params: { | |
| cfg?: OpenClawConfig; | |
| store: AuthProfileStore; | |
| profileId: string; | |
| }): string { | |
| const { displayName, email } = resolveAuthProfileMetadata(params); | |
| if (displayName) { | |
| return `${params.profileId} (${displayName})`; | |
| } | |
| if (email) { | |
| return `${params.profileId} (${email})`; | |
| } | |
| return params.profileId; | |
| } | |