Returns true if the provider's key is stored.
(provider: string)
| 97 | |
| 98 | /** Returns true if the provider's key is stored. */ |
| 99 | hasProviderKey(provider: string): boolean { |
| 100 | const env = PROVIDER_API_KEY_ENV[provider]; |
| 101 | return env != null && this.keys[env] !== undefined; |
| 102 | } |
| 103 | |
| 104 | private persist(): void { |
| 105 | writeFileSync(this.file, JSON.stringify(this.keys, null, 2), { mode: 0o600 }); |
nothing calls this directly
no outgoing calls
no test coverage detected