()
| 26 | * is only referenced when bridge mode is enabled at build time. |
| 27 | */ |
| 28 | export function isBridgeEnabled(): boolean { |
| 29 | // Positive ternary pattern — see docs/feature-gating.md. |
| 30 | // Negative pattern (if (!feature(...)) return) does not eliminate |
| 31 | // inline string literals from external builds. |
| 32 | return feature('BRIDGE_MODE') |
| 33 | ? isClaudeAISubscriber() && |
| 34 | getFeatureValue_CACHED_MAY_BE_STALE('tengu_ccr_bridge', false) |
| 35 | : false |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Blocking entitlement check for Remote Control. |
no test coverage detected