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 { getEphemeralVmRecipeResultCheckoutMode } from './ephemeral-vm-recipes'
import type { EphemeralVmRecipeResult } from './ephemeral-vm-recipes'
import type { OrcaVmRecipe } from './orca-yaml-hook-types'
import { ephemeralVmFailure, type EphemeralVmFailure } from './ephemeral-vm-failure-copy'
export function getEphemeralVmRecipeResultSchemaVersion(recipe: OrcaVmRecipe): 1 | 2 {
return recipe.checkoutMode === 'provisioned-root' ? 2 : 1
}
export function getEphemeralVmRecipeCheckoutModeFailure(
recipe: OrcaVmRecipe,
result: EphemeralVmRecipeResult
): EphemeralVmFailure | null {
const configuredMode = recipe.checkoutMode ?? 'orca-worktree'
const resultMode = getEphemeralVmRecipeResultCheckoutMode(result)
if (configuredMode === resultMode) {
return null
}
return ephemeralVmFailure(
configuredMode === 'provisioned-root'
? 'provisionedRootResultRequired'
: 'provisionedRootNotConfigured'
)
}