co-mono/packages/ai/src
Mario Zechner 54018b6cc0 Refactor OAuth/API key handling: AuthStorage and ModelRegistry
- Add AuthStorage class for credential storage (auth.json)
- Add ModelRegistry class for model management with API key resolution
- Add discoverAuthStorage() and discoverModels() discovery functions
- Add migration from legacy oauth.json and settings.json apiKeys to auth.json
- Remove configureOAuthStorage, defaultGetApiKey, findModel, discoverAvailableModels
- Remove apiKeys from Settings type and SettingsManager methods
- Rename getOAuthPath to getAuthPath
- Update SDK, examples, docs, tests, and mom package

Fixes #296
2025-12-25 03:48:36 +01:00
..
agent Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
providers getApiKeyFromEnv -> getEnvApiKey 2025-12-25 02:38:10 +01:00
utils WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
cli.ts WIP: Add CLI for OAuth login, update README 2025-12-25 01:09:27 +01:00
index.ts Add Google Gemini CLI and Antigravity OAuth providers 2025-12-20 21:34:18 +01:00
models.generated.ts Refactor OAuth/API key handling: AuthStorage and ModelRegistry 2025-12-25 03:48:36 +01:00
models.ts feat: add xhigh thinking level support for gpt-5.2 models 2025-12-19 20:07:24 +01:00
stream.ts getApiKeyFromEnv -> getEnvApiKey 2025-12-25 02:38:10 +01:00
types.ts Add Google Gemini CLI and Antigravity OAuth providers 2025-12-20 21:34:18 +01:00