Check if configuration is complete and valid. Subscription-mode providers (claude-code, codex) do not require an API key — they authenticate via the underlying CLI's OAuth. Returns: True if configured, False otherwise
(self)
| 273 | return self._config |
| 274 | |
| 275 | def is_configured(self) -> bool: |
| 276 | """ |
| 277 | Check if configuration is complete and valid. |
| 278 | |
| 279 | Subscription-mode providers (claude-code, codex) do not require an |
| 280 | API key — they authenticate via the underlying CLI's OAuth. |
| 281 | |
| 282 | Returns: |
| 283 | True if configured, False otherwise |
| 284 | """ |
| 285 | if self._config is None: |
| 286 | return False |
| 287 | |
| 288 | from codewiki.src.be.backend import is_caw_provider |
| 289 | if not is_caw_provider(self._config.provider): |
| 290 | # Check if API key is set |
| 291 | if self.get_api_key() is None: |
| 292 | return False |
| 293 | |
| 294 | # Check if config is complete |
| 295 | return self._config.is_complete() |
| 296 | |
| 297 | def delete_api_key(self): |
| 298 | """Delete API key from keyring and fallback file.""" |
no test coverage detected