()
| 82 | * Detect whether the current session is remote or direct. |
| 83 | */ |
| 84 | export 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. |
no outgoing calls
no test coverage detected