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.

974 B
Raw Blame
// One English table for diagnostics IPC refusals: main throws the English, the renderer matches it exactly and translates.
export const DIAGNOSTICS_BUNDLE_FAILURE_COPY = {
  creatingDisabled: 'creating review files is disabled',
  sendingDisabled: 'sending diagnostics is disabled',
  sendingNotConfigured: 'sending diagnostics is not configured for this build',
  expiredBeforeSending: 'review file has expired; create a new one before sending',
  expiredBeforeOpening: 'review file has expired; create a new one before opening',
  previewNotOpened: 'open the review file before sending',
  previewOpenFailed: 'could not open review file',
  deleteNotConfigured: 'diagnostic upload endpoint is not configured for this build'
} as const

export type DiagnosticsBundleFailureCode = keyof typeof DIAGNOSTICS_BUNDLE_FAILURE_COPY

export function diagnosticsBundleFailure(code: DiagnosticsBundleFailureCode): Error {
  return new Error(DIAGNOSTICS_BUNDLE_FAILURE_COPY[code])
}