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

Function getCurrentBridgeEligibilitySession

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

Source from the content-addressed store, hash-verified

117// lazily so pre-config access still fails closed to "not enabled" rather than
118// poisoning startup with a config read.
119function getCurrentBridgeEligibilitySession(): BridgeEligibilitySession {
120 try {
121 /* eslint-disable @typescript-eslint/no-require-imports */
122 const { getAuthRuntime } =
123 require('../auth/runtime/AuthRuntime.js') as typeof import('../auth/runtime/AuthRuntime.js')
124 /* eslint-enable @typescript-eslint/no-require-imports */
125 return getAuthRuntime().getCurrentSession()
126 } catch {
127 return null
128 }
129}
130
131/**
132 * Runtime check for the env-less (v2) REPL bridge path.

Callers 3

isBridgeEnabledFunction · 0.85
isBridgeEnabledBlockingFunction · 0.85
getBridgeDisabledReasonFunction · 0.85

Calls 2

getAuthRuntimeFunction · 0.85
getCurrentSessionMethod · 0.65

Tested by

no test coverage detected