MCPcopy Index your code
hub / github.com/callstack/agent-device / isRemoteShell

Function isRemoteShell

src/cli/auth-session.ts:489–497  ·  view source on GitHub ↗
(env: EnvMap)

Source from the content-addressed store, hash-verified

487}
488
489function isRemoteShell(env: EnvMap): boolean {
490 return Boolean(
491 env.SSH_TTY ||
492 env.SSH_CONNECTION ||
493 env.CODESPACES === 'true' ||
494 env.GITPOD_WORKSPACE_ID ||
495 env.REMOTE_CONTAINERS === 'true',
496 );
497}
498
499function buildNonInteractiveLoginError(command: string, env: EnvMap): AppError {
500 const cloudBaseUrl = resolveCloudBaseUrl(env);

Callers 1

detectAuthModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected