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.

773 B
Raw Blame
import type { WorkspaceViewChoice } from '../../../src/shared/workspace-view/workspace-view-options'
import type { WorktreeCardProperty } from '../../../src/shared/ui-chrome-types'

// Omit Ports: the phone has no port scan; desktop retains it.
const PHONE_HIDDEN_CARD_PROPERTIES: ReadonlySet<WorktreeCardProperty> = new Set(['ports'])

export function phoneCardPropertyChoices<Choice extends WorkspaceViewChoice<WorktreeCardProperty>>(
  choices: readonly Choice[]
): Choice[] {
  return choices.filter((choice) => !PHONE_HIDDEN_CARD_PROPERTIES.has(choice.id))
}

export function withoutPhoneHiddenProperties(
  properties: readonly WorktreeCardProperty[]
): WorktreeCardProperty[] {
  return properties.filter((property) => !PHONE_HIDDEN_CARD_PROPERTIES.has(property))
}