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.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import type { HostClientAcquisition } from './host-client-acquisition-registry'
import type { RpcClient } from './rpc-client'
import type { RelayHostReachability } from './relay-host-reachability'
import type { MobileConnectionPath } from './stable-logical-rpc-client'
import type { ConnectionState, HostProfile } from './types'
/** Re-dials one host. `null` where this document cannot dial: the page's shell owns the connection. */
export type ForceReconnect = ((hostId: string) => Promise<void>) | null
export type RpcClientContextValue = {
acquire: (
hostId: string,
acquisition: HostClientAcquisition,
host?: HostProfile
) => RpcClient | null
release: (hostId: string, acquisition: HostClientAcquisition) => void
releaseAndCloseIfUnused: (hostId: string, acquisition: HostClientAcquisition) => void
closeIfUnused: (hostId: string) => void
forceReconnect: ForceReconnect
refreshHostClient: (hostId: string) => void
forgetHostClient: (hostId: string) => void
disconnectHostClient: (hostId: string) => void
getState: (hostId: string) => ConnectionState
getKnownState: (hostId: string) => ConnectionState | null
getClientId: (hostId: string) => string | null
getReconnectAttempt: (hostId: string) => number
getLastConnectedAt: (hostId: string) => number | null
getActivePath: (hostId: string) => MobileConnectionPath
getPendingPath: (hostId: string) => MobileConnectionPath | null
isPairingRejected: (hostId: string) => boolean
getRelayHostReachability: (hostId: string) => RelayHostReachability
subscribeHostState: (hostId: string, listener: (state: ConnectionState) => void) => () => void
getAllClients: () => { hostId: string; client: RpcClient }[]
subscribeAllHosts: (listener: () => void) => () => void
primeHosts: (hosts: HostProfile[]) => void
}