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 { salvagedOptional } from '../../../src/shared/zod-salvage'
// Schemas cover history/status and resume metadata from runtime RPC status, ai-vault, repo, folder-workspace and worktree-catalog methods; rows use shared AiVault types.
// Salvage capabilities: unreadable/missing list means unsupported. Keep entries open as vocabulary grows; known-token includes gates support.
// Pass remaining status fields through to total unknown guards for host platform/Windows shell rather than narrowing unused members.
export const agentHistoryHostStatusSchema = z.looseObject({
capabilities: salvagedOptional('capabilities', z.array(z.string()))
})
// Require sessions/issues arrays: ready state maps/counts them directly, so missing containers crash rendering.
// Keep rows opaque: expanding agent vocabulary must survive newer hosts and echo back unchanged on resume; narrowing would reject/drop new sessions.
export const agentHistorySessionScanSchema = z.looseObject({
sessions: z.array(z.unknown()),
issues: z.array(z.unknown())
})
// Require repos array: null/non-array containers break return/member/find reads. Keep rows opaque so newer executionHostId spellings degrade in resolver, not reject whole catalog.
export const resumeRepoListSchema = z.looseObject({ repos: z.array(z.unknown()) })
// Check enrichment containers only: call-site readAcceptedResumeList degrades unreadable members to empty, but bare string replies otherwise silently resolved targets to unknown.
export const resumeMetadataListSchema = z.looseObject({})