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.1 KB
Raw Blame
/** Human-readable import sources aligned with CHROMIUM_BROWSERS in
 *  browser-cookie-import.ts plus Firefox/Safari detection. */
const CHROMIUM_COOKIE_IMPORT_SOURCES = [
  { label: 'Google Chrome', mac: true, win: true, linux: true },
  { label: 'Microsoft Edge', mac: true, win: true, linux: true },
  { label: 'Arc', mac: true, win: false, linux: false },
  { label: 'Brave', mac: true, win: true, linux: true },
  { label: 'Comet', mac: true, win: true, linux: false },
  { label: 'Helium', mac: true, win: false, linux: false },
  { label: 'Vivaldi', mac: true, win: true, linux: true }
] as const

export function getBrowserCookieImportSourceLabels(
  platform: 'darwin' | 'win32' | 'linux'
): string[] {
  const labels: string[] = []
  for (const source of CHROMIUM_COOKIE_IMPORT_SOURCES) {
    if (platform === 'darwin' && source.mac) {
      labels.push(source.label)
    } else if (platform === 'win32' && source.win) {
      labels.push(source.label)
    } else if (platform === 'linux' && source.linux) {
      labels.push(source.label)
    }
  }
  labels.push('Firefox')
  if (platform === 'darwin') {
    labels.push('Safari')
  }
  return labels
}