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 { ResourceViewAdmission } from '../../shared/resource-view-admission'
import type { TelemetryConsentState } from '../../shared/telemetry-consent-types'
import type { MemorySnapshot, StatsSummary } from '../../shared/process-stats-types'
export type StatsApi = {
getSummary: () => Promise<StatsSummary>
}
// Diagnostics IPC payloads; mirror the runtime types in `src/main/observability/{index,bundle}.ts`.
export type DiagnosticsStatusPayload = {
readonly localFileEnabled: boolean
readonly bundleEnabled: boolean
readonly traceFilePath: string
readonly traceFamilySize: number
readonly disabledReason?:
| 'do_not_track'
| 'orca_telemetry_disabled'
| 'orca_diagnostics_disabled'
| 'ci'
}
export type DiagnosticsBundlePayload = {
readonly bundleSubmissionId: string
readonly bytes: number
readonly spanCount: number
}
export type DiagnosticsUploadPayload =
| {
readonly ticketId: string
}
| {
readonly canceled: true
}
export type MemoryApi = {
getSnapshot: (admission?: ResourceViewAdmission) => Promise<MemorySnapshot>
resourceWindowVisible: () => Promise<boolean>
onResourceWindowVisibility: (callback: (visible: boolean) => void) => () => void
}
export type DiagnosticsApi = {
getStatus: () => Promise<DiagnosticsStatusPayload>
collectBundle: (lookbackMinutes?: number) => Promise<DiagnosticsBundlePayload>
openBundlePreview: (bundleSubmissionId: string) => Promise<void>
discardBundlePreview: (bundleSubmissionId: string) => Promise<void>
uploadBundle: (bundleSubmissionId: string) => Promise<DiagnosticsUploadPayload>
deleteBundle: (ticketId: string) => Promise<void>
}
export type TelemetryApi = {
/** Use lib/telemetry.ts; true means captured/already recorded today, void is a legacy reply. */
telemetryTrack: (name: string, props: Record<string, unknown>) => Promise<boolean | void>
/** Main permits at most five consent mutations per session. */
telemetrySetOptIn: (optedIn: boolean) => Promise<void>
/** Main retains upload payloads so the renderer cannot read or substitute arbitrary bytes. */
diagnostics: DiagnosticsApi
telemetryGetConsentState: () => Promise<TelemetryConsentState>
/** Banner dismissal opts in without emitting telemetry_opted_in; shares the consent rate limit. */
telemetryAcknowledgeBanner: () => Promise<void>
stats: StatsApi
memory: MemoryApi
}