()
| 117 | // lazily so pre-config access still fails closed to "not enabled" rather than |
| 118 | // poisoning startup with a config read. |
| 119 | function 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. |
no test coverage detected