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.

779 B
Raw Blame
/** Register a component-owned breadcrumb sink so lib WebGL code can record diagnostics without a backward import. No-op until registration or outside the renderer. */

/** Crash-report breadcrumb name these crumbs are mirrored under. */
export const TERMINAL_WEBGL_DIAGNOSTIC_BREADCRUMB = 'terminal_webgl_diagnostic'

export type WebglDiagnosticRecorder = (
  kind: string,
  detail?: Record<string, string | number | boolean | null>
) => void

let recorder: WebglDiagnosticRecorder | null = null

export function setTerminalWebglDiagnosticRecorder(next: WebglDiagnosticRecorder | null): void {
  recorder = next
}

export function recordTerminalWebglDiagnostic(
  kind: string,
  detail?: Record<string, string | number | boolean | null>
): void {
  recorder?.(kind, detail)
}