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.

572 B
Raw Blame
import type { Page } from '@stablyai/playwright-test'
import type {
  TypingDiagnosticBridge,
  TypingLatencyReport
} from '../../src/renderer/src/lib/typing-latency/diagnostic'

/** Reads the existing census without enabling per-keystroke diagnostic instrumentation. */
export async function readTypingScaleCensus(
  page: Page
): Promise<TypingLatencyReport['census'] | null> {
  return page.evaluate(() => {
    const target: Window & { __orcaTypingDiagnostic?: TypingDiagnosticBridge } = window
    return target.__orcaTypingDiagnostic?.report().census ?? null
  })
}