MCPcopy Create free account
hub / github.com/Noumena-Network/code / isBridgeEnabled

Function isBridgeEnabled

src/bridge/bridgeEnabled.ts:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 * is only referenced when bridge mode is enabled at build time.
32 */
33export function isBridgeEnabled(): boolean {
34 // Positive ternary pattern — see docs/feature-gating.md.
35 // Negative pattern (if (!feature(...)) return) does not eliminate
36 // inline string literals from external builds.
37 return feature('BRIDGE_MODE')
38 ? hasManagedBridgePrincipal(getCurrentBridgeEligibilitySession()) &&
39 getFeatureValue_CACHED_MAY_BE_STALE('ncode_ccr_bridge', false)
40 : false
41}
42
43/**
44 * Blocking entitlement check for Remote Control.

Callers 4

shouldShowRemoteCalloutFunction · 0.85
ConfigFunction · 0.85
BridgeStatusIndicatorFunction · 0.85
isEnabledFunction · 0.85

Tested by

no test coverage detected