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 { vi } from 'vitest'
import { RUNTIME_CAPABILITIES } from '../../../src/shared/protocol-version'
import type { NotificationsApi } from '../../../src/preload/api/os-permission-api'
const transport = vi.hoisted(() => ({
call: vi.fn(),
away: vi.fn(),
supports: vi.fn(),
dismiss: vi.fn(),
settle: vi.fn(),
dispatch: vi.fn<NotificationsApi['dispatch']>()
}))
vi.mock('@/runtime/runtime-rpc-client', async (original) => ({
...(await original()),
callRuntimeRpc: transport.call,
runtimeEnvironmentSupportsCapability: transport.supports
}))
vi.mock('@/runtime/local-runtime-capabilities', () => ({
readLocalRuntimeCapabilitiesOrUnknown: () => RUNTIME_CAPABILITIES,
ensureLocalRuntimeCapabilities: async () => RUNTIME_CAPABILITIES
}))
vi.mock('@/store', async () => {
const { createTestStore } = await import('@/store/slices/store-test-helpers')
return { useAppStore: createTestStore() }
})
export { transport }