MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / firstString

Function firstString

packages/codex-native-api/src/auth_state.ts:302–310  ·  view source on GitHub ↗
(...values: unknown[])

Source from the content-addressed store, hash-verified

300}
301
302function firstString(...values: unknown[]): string | null {
303 for (const value of values) {
304 const normalized = normalizeString(value);
305 if (normalized) {
306 return normalized;
307 }
308 }
309 return null;
310}
311
312function isRecord(value: unknown): value is Record<string, any> {
313 return Boolean(value) && typeof value === 'object' && !Array.isArray(value);

Callers 5

readCodexAuthStateFunction · 0.70
writeCodexAuthFileFunction · 0.70
buildCodexAuthIdentityFunction · 0.70
readCodexAuthTokensFunction · 0.70

Calls 1

normalizeStringFunction · 0.70

Tested by

no test coverage detected