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

Function getAccessMode

src/capabilities/runtime.ts:84–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 * Detect whether the current session is remote or direct.
83 */
84export function getAccessMode(): AccessMode {
85 if (process.env.CLAUDE_CODE_REMOTE_SESSION_ID) {
86 return 'remote'
87 }
88 return 'direct'
89}
90
91// Reference-only copy of BUILD_SPIN for fallback heuristics above.
92// The canonical constant lives in index.ts to avoid a circular import.

Callers 1

getResolvedCapabilitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected