Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

507 B
Raw Blame
import { isRemoteRuntimePtyId } from './remote-runtime/remote-runtime-pty-id'
import { parseAppSshPtyId } from './ssh-pty-id'

/** Malformed/unknown remote: IDs remain foreign; inability to parse ownership means unverifiable, never local
 * (docs/reference/ssh-execution-boundary.md). */
export function isRemoteExecutionHostPtyId(ptyId: string | null | undefined): boolean {
  if (typeof ptyId !== 'string') {
    return false
  }
  return isRemoteRuntimePtyId(ptyId) || parseAppSshPtyId(ptyId) !== null
}