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
import { describe, expect, it } from 'vitest'
import { discoveredModel } from './structured-agent-session-discovered-model'

const unconfirmed = {
  id: 'other',
  label: 'Other',
  isDefault: false,
  efforts: [
    { value: 'off', label: 'Off' },
    { value: 'auto', label: 'Auto' }
  ],
  effortsKnown: false as const
}

describe('unconfirmed effort menus', () => {
  it('hides them for Pi, whose menus are exact', () => {
    expect(discoveredModel(unconfirmed, false, 'pi').options).toEqual([])
  })

  it.each(['omp', 'claude', 'codex', undefined] as const)('still offers them for %s', (agent) => {
    const [effort] = discoveredModel(unconfirmed, false, agent).options
    expect(effort?.kind).toMatchObject({ type: 'select', choices: unconfirmed.efforts })
  })
})