MCPcopy
hub / github.com/AutoMaker-Org/automaker / hasNonEmptyStringField

Function hasNonEmptyStringField

libs/platform/src/system-paths.ts:1198–1200  ·  view source on GitHub ↗
(record: Record<string, unknown>, keys: readonly string[])

Source from the content-addressed store, hash-verified

1196const CODEX_API_KEY_KEYS = ['api_key', 'OPENAI_API_KEY'] as const;
1197
1198function hasNonEmptyStringField(record: Record<string, unknown>, keys: readonly string[]): boolean {
1199 return keys.some((key) => typeof record[key] === 'string' && record[key]);
1200}
1201
1202function getNestedTokens(record: Record<string, unknown>): Record<string, unknown> | null {
1203 const tokens = record[CODEX_TOKENS_KEY];

Callers 2

getCodexAuthIndicatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected