(store: AIConfigStore)
| 208 | * API Key 不再存储在 llm-config.json 中,统一由 auth-profiles.json 管理 |
| 209 | */ |
| 210 | export function saveConfigStore(store: AIConfigStore): void { |
| 211 | saveConfigStoreRaw({ |
| 212 | ...store, |
| 213 | configs: store.configs.map((config) => ({ |
| 214 | ...config, |
| 215 | apiKey: '', |
| 216 | })), |
| 217 | }) |
| 218 | } |
| 219 | |
| 220 | function saveConfigStoreRaw(store: AIConfigStore): void { |
| 221 | const configPath = getConfigPath() |
no test coverage detected