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 { hostUnionArms } from '../../../src/shared/zod-salvage'
// Pin the platform set to Node’s union so additions/removals fail typechecking.
export const NODE_PLATFORM_NAMES = hostUnionArms<NodeJS.Platform>({
aix: true,
android: true,
darwin: true,
freebsd: true,
haiku: true,
linux: true,
openbsd: true,
sunos: true,
win32: true,
cygwin: true,
netbsd: true
})
const NODE_PLATFORMS = new Set<NodeJS.Platform>(NODE_PLATFORM_NAMES)
export function readMobileRuntimeHostPlatform(statusResult: unknown): NodeJS.Platform | null {
const hostPlatform = (statusResult as { hostPlatform?: unknown } | null)?.hostPlatform
return typeof hostPlatform === 'string' && NODE_PLATFORMS.has(hostPlatform as NodeJS.Platform)
? (hostPlatform as NodeJS.Platform)
: null
}