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.

632 B
Raw Blame
/** The capture id becomes a directory name under userData, so main validates it before
 *  use. Both sides import this so the renderer cannot mint an id main will reject. */
export const TERMINAL_RENDER_DESYNC_CAPTURE_ID_PATTERN = /^[a-zA-Z0-9_-]{1,120}$/

export type TerminalRenderDesyncEvidencePhase = 'corrupt' | 'healed'

export type WriteTerminalRenderDesyncEvidenceArgs = {
  captureId: string
  phase: TerminalRenderDesyncEvidencePhase
  pngDataUrl: string
  metadata?: Record<string, unknown>
}

export type WriteTerminalRenderDesyncEvidenceResult = {
  directory: string
  pngPath: string
  metadataPath: string | null
}