(apiKey: string)
| 1234 | } |
| 1235 | |
| 1236 | export function isCustomApiKeyApproved(apiKey: string): boolean { |
| 1237 | const config = getGlobalConfig() |
| 1238 | const normalizedKey = normalizeApiKeyForConfig(apiKey) |
| 1239 | return ( |
| 1240 | config.customApiKeyResponses?.approved?.includes(normalizedKey) ?? false |
| 1241 | ) |
| 1242 | } |
| 1243 | |
| 1244 | export async function removeApiKey(): Promise<void> { |
| 1245 | await maybeRemoveApiKeyFromMacOSKeychain() |
nothing calls this directly
no test coverage detected