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 { z } from 'zod'
import type { ExecutionHostHealth } from './execution-host-health'
// Why: both are answered by the paired desktop itself; the phone lists servers the desktop shows.
export const MOBILE_RELAY_HOSTS_LIST_METHOD = 'mobileRelay.hosts.list'
export const MOBILE_RELAY_HOST_WORKTREES_METHOD = 'mobileRelay.hosts.worktrees'
/** Whether the desktop can relay the phone to this server now; `update-needed` is the server's build. */
export type MobileRelayHostRelay = 'ready' | 'update-needed' | 'unavailable'
export type MobileRelayHost = {
hostId: `runtime:${string}`
label: string
health: ExecutionHostHealth
relay: MobileRelayHostRelay
/** This desktop's own WSL host, confirmed stopped: a phone never starts it, only the desktop. */
stoppedOnDesktop?: true
/** This desktop's own WSL host, not connected there and not known stopped; older phones show "Connecting". */
unavailableOnDesktop?: true
}
export type MobileRelayHostsListResult = { hosts: MobileRelayHost[] }
export const MobileRelayHostWorktreesParamsSchema = z
.object({ hostId: z.string().min(1).max(1024) })
.strict()
/** One of a server's own `worktree.ps` rows (RuntimeWorktreePsSummary), carrying the server's host id. */
export type MobileRelayServerWorktreeRow = Record<string, unknown> & {
hostId: `runtime:${string}`
/** The desktop calls this row another client's; the phone applies the shared filter value. */
desktopOtherClient?: true
}
/** The server's own `worktree.ps` rows as the desktop last fetched them, refreshed when the server answers. */
export type MobileRelayHostWorktreesResult = { worktrees: MobileRelayServerWorktreeRow[] | null }