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.

1.0 KB
Raw Blame
export type BrowserUserAgentMode = 'clean' | 'native'

export type BrowserIdentityModeSnapshot =
  | {
      state: 'missing' | 'valid'
      appliedMode: BrowserUserAgentMode
      configuredMode: BrowserUserAgentMode
      explicitSelection: boolean
      migrationNoticePending: boolean
      restartRequired: boolean
    }
  | {
      state: 'corrupt' | 'future' | 'unreadable'
      appliedMode: 'clean'
      configuredMode: null
      explicitSelection: null
      migrationNoticePending: null
      restartRequired: false
    }

export type BrowserIdentityModeStatus = {
  identity: BrowserIdentityModeSnapshot
  migrationNotice: { degraded: boolean } | null
}

export type BrowserIdentityModeSetResult =
  | { ok: true; identity: BrowserIdentityModeSnapshot }
  | {
      ok: false
      error: {
        code:
          | 'browser_identity_reset_required'
          | 'browser_identity_write_failed'
          | 'browser_identity_backup_failed'
        message: string
      }
      identity: BrowserIdentityModeSnapshot
    }