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 { createElement } from 'react'
import type { NativeChatMessage } from '../../../../../src/shared/native-chat-types'
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat-turn-membership'
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat-turn-status'
import { useMobileNativeChatTurnDisclosure } from './use-mobile-native-chat-turn-disclosure'
export function userMessage(id: string): NativeChatMessage {
return {
id,
role: 'user',
blocks: [{ type: 'text', text: id }],
timestamp: null,
source: 'transcript'
}
}
// A component, not a host string: React Native's ElementType has no string members.
export function Result(_props: {
disclosure: ReturnType<typeof useMobileNativeChatTurnDisclosure>
}): null {
return null
}
export function Harness({
messages,
enabled,
isWorking = true,
settledTurns,
turnJournal,
workingStartedAt,
thinking,
lineYields,
scopeKey = 'host\0worktree\0tab-a'
}: {
messages: readonly NativeChatMessage[]
enabled: boolean
isWorking?: boolean
settledTurns?: NativeChatSettledTurns
turnJournal?: NativeChatTurnJournal
workingStartedAt?: number | null
thinking?: boolean
lineYields?: boolean
scopeKey?: string
}): React.JSX.Element {
const disclosure = useMobileNativeChatTurnDisclosure({
messages,
enabled,
isWorking,
settledTurns,
turnJournal,
workingStartedAt,
thinking,
lineYields,
scopeKey
})
return createElement(Result, { disclosure })
}