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 { ExecutionHostId } from './execution-host'
export const SERVER_SSH_PROJECT_ADD_UNAVAILABLE_MESSAGE =
"This Orca server can't add projects on its SSH hosts. Add the SSH host on your computer to open its projects."
/** Repo IDs can repeat across hosts; hostId selects the intended setup, while older clients omit it and retain first-ID matching. */
export type ProjectHostSetupTarget = {
setupId: string
hostId?: ExecutionHostId
}
type SetupIdentity = { id: string; hostId: string }
export function findProjectHostSetup<T extends SetupIdentity>(
setups: readonly T[],
target: ProjectHostSetupTarget
): T | undefined {
return setups.find(
(setup) =>
setup.id === target.setupId && (target.hostId === undefined || setup.hostId === target.hostId)
)
}