MCPcopy
hub / github.com/codeaashu/claude-code / getCustomApiKeyStatus

Function getCustomApiKeyStatus

src/utils/config.ts:1103–1114  ·  view source on GitHub ↗
(
  truncatedApiKey: string,
)

Source from the content-addressed store, hash-verified

1101}
1102
1103export function getCustomApiKeyStatus(
1104 truncatedApiKey: string,
1105): 'approved' | 'rejected' | 'new' {
1106 const config = getGlobalConfig()
1107 if (config.customApiKeyResponses?.approved?.includes(truncatedApiKey)) {
1108 return 'approved'
1109 }
1110 if (config.customApiKeyResponses?.rejected?.includes(truncatedApiKey)) {
1111 return 'rejected'
1112 }
1113 return 'new'
1114}
1115
1116function saveConfig<A extends object>(
1117 file: string,

Callers 2

showSetupScreensFunction · 0.85
OnboardingFunction · 0.85

Calls 1

getGlobalConfigFunction · 0.85

Tested by

no test coverage detected