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 { RelayHostReachability } from '../transport/relay-host-reachability'
import type { MobileConnectionPath } from '../transport/stable-logical-rpc-client'
export type HomeHostConnectionProjectionEntry = {
hostId: string
path: MobileConnectionPath
pendingPath: MobileConnectionPath | null
pairingRejected: boolean
relayHostReachability: RelayHostReachability
}
export type HomeHostConnections = Record<string, HomeHostConnectionProjectionEntry>
export function projectHomeHostConnections(
entries: readonly HomeHostConnectionProjectionEntry[]
): HomeHostConnections {
// Why: a host named `__proto__` must land as an own key, not mutate the prototype.
const byHostId: HomeHostConnections = Object.create(null)
for (const entry of entries) {
byHostId[entry.hostId] = entry
}
Object.setPrototypeOf(byHostId, Object.prototype)
return byHostId
}