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.

601 B
Raw Blame
/** Features an extension can ask for that Orca's browser does not provide yet. */
export type UnsupportedBrowserExtensionFeature = 'identity'

function featureFor(permission: string): UnsupportedBrowserExtensionFeature | null {
  switch (permission) {
    case 'identity':
    case 'identity.email':
      return 'identity'
    default:
      return null
  }
}

export function unsupportedBrowserExtensionFeatures(
  permissions: string[]
): UnsupportedBrowserExtensionFeature[] {
  const features = permissions.map(featureFor).filter((feature) => feature !== null)
  return [...new Set(features)]
}