getApiKeyFromEnv -> getEnvApiKey

This commit is contained in:
Mario Zechner 2025-12-25 02:38:00 +01:00
parent bf022d2581
commit 9f97f0c8da
8 changed files with 16 additions and 53 deletions

View file

@ -4,7 +4,7 @@
### Breaking Changes
- **setApiKey, resolveApiKey**: Removed. Callers must manage their own API key storage/resolution.
- **getApiKey**: Renamed to `getApiKeyFromEnv`. Only checks environment variables for known providers.
- **getApiKey**: Renamed to `getEnvApiKey`. Only checks environment variables for known providers.
- **OAuth storage removed**: All storage functions (`loadOAuthCredentials`, `saveOAuthCredentials`, `setOAuthStorage`, etc.) removed. Callers are responsible for storing credentials.
- **OAuth login functions**: `loginAnthropic`, `loginGitHubCopilot`, `loginGeminiCli`, `loginAntigravity` now return `OAuthCredentials` instead of saving to disk.
- **refreshOAuthToken**: Now takes `(provider, credentials)` and returns new `OAuthCredentials` instead of saving.