()
| 14 | * should be *visible* (e.g., command registration, config UI). |
| 15 | */ |
| 16 | export function isVoiceGrowthBookEnabled(): boolean { |
| 17 | // Positive ternary pattern — see docs/feature-gating.md. |
| 18 | // Negative pattern (if (!feature(...)) return) does not eliminate |
| 19 | // inline string literals from external builds. |
| 20 | return feature('VOICE_MODE') |
| 21 | ? !getFeatureValue_CACHED_MAY_BE_STALE('tengu_amber_quartz_disabled', false) |
| 22 | : false |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Auth-only check for voice mode. Returns true when the user has a valid |
no test coverage detected