Skip to content

armgit / orca

Public Imported from GitHub
0

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.

626 B
Raw Blame
import type { AgentProviderSessionMetadata } from './agent-session-resume'

export const AGENT_HOOK_INFER_INTERRUPT_METHOD = 'agent_hook.inferInterrupt' as const

export type RemoteAgentInterruptRequest = {
  paneKey: string
  hostTurnRevision: string
  launchToken?: string
  providerSession: AgentProviderSessionMetadata
  intent: 'ctrl-c'
}

export type RemoteAgentInterruptDispatch = {
  connectionId: string
  request: RemoteAgentInterruptRequest
}

export function normalizeHostTurnRevision(value: unknown): string | undefined {
  return typeof value === 'string' && /^[0-9a-f-]{36}$/i.test(value) ? value : undefined
}