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.

775 B
Raw Blame
// Expose stable refusal codes; messages also contain asset paths/hashes.
export const MOBILE_WEB_BUNDLE_FETCH_REFUSALS = [
  'chunk-oversize',
  'asset-overlong',
  'asset-no-progress',
  'asset-short',
  'asset-checksum-mismatch',
  'build-changed-mid-fetch',
  'chunk-misrouted',
  'asset-entry-changed',
  /** A range body that would not decode: corrupt or truncated gzip, or an encoding this build lacks. */
  'range-undecodable',
  'fetch-stopped'
] as const

export type MobileWebBundleFetchRefusal = (typeof MOBILE_WEB_BUNDLE_FETCH_REFUSALS)[number]

export class MobileWebBundleFetchError extends Error {
  constructor(
    readonly refusal: MobileWebBundleFetchRefusal,
    message: string
  ) {
    super(message)
    this.name = 'MobileWebBundleFetchError'
  }
}