()
| 96 | // ─── Availability ────────────────────────────────────────────────────── |
| 97 | |
| 98 | export function isVoiceStreamAvailable(): boolean { |
| 99 | // voice_stream uses the same OAuth as Claude Code — available when the |
| 100 | // user is authenticated with Anthropic (Claude.ai subscriber or has |
| 101 | // valid OAuth tokens). |
| 102 | if (!isAnthropicAuthEnabled()) { |
| 103 | return false |
| 104 | } |
| 105 | const tokens = getClaudeAIOAuthTokens() |
| 106 | return tokens !== null && tokens.accessToken !== null |
| 107 | } |
| 108 | |
| 109 | // ─── Connection ──────────────────────────────────────────────────────── |
| 110 |
no test coverage detected