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
import { describe, expect, it } from 'vitest'

import { TUI_AGENT_CONFIG } from '../../../src/shared/tui-agent-config'
import { TUI_AGENT_DISPLAY_NAMES } from '../../../src/shared/tui-agent-display-names'
import { TUI_AGENT_AUTO_PICK_ORDER } from '../../../src/shared/tui-agent-selection'
import { MOBILE_AGENT_CATALOG } from './mobile-agent-catalog'

describe('mobile agent catalog', () => {
  it('follows desktop auto-pick order and covers every configured TUI agent', () => {
    expect(MOBILE_AGENT_CATALOG.map((agent) => agent.id)).toEqual([...TUI_AGENT_AUTO_PICK_ORDER])
    expect(new Set(MOBILE_AGENT_CATALOG.map((agent) => agent.id))).toEqual(
      new Set(Object.keys(TUI_AGENT_CONFIG))
    )
  })

  it('labels every agent with the desktop display name', () => {
    for (const entry of MOBILE_AGENT_CATALOG) {
      expect(entry.label).toBe(TUI_AGENT_DISPLAY_NAMES[entry.id])
    }
  })

  it('keeps Claude Agent Teams in the catalog without a favicon domain', () => {
    const teams = MOBILE_AGENT_CATALOG.find((agent) => agent.id === 'claude-agent-teams')
    expect(teams).toBeDefined()
    expect(teams).not.toHaveProperty('faviconDomain')
  })
})