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
// Node/libuv errno codes (`EACCES`, `E2BIG`); anchored and capped so a code can't carry a path.
export const ERRNO_CODE_PATTERN = /^E[A-Z0-9]{1,15}$/
export function errnoCodeOrUnknown(error: unknown): string {
const code = typeof error === 'object' && error !== null && 'code' in error ? error.code : null
return typeof code === 'string' && ERRNO_CODE_PATTERN.test(code) ? code : 'unknown'
}