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.

795 B
Raw Blame
import { describe, expect, it } from 'vitest'
import { buildAgentStartupPlan } from './tui-agent-startup'
import { TUI_AGENT_CONFIG } from './tui-agent-config'

describe('DSH first launch', () => {
  it.each(['darwin', 'linux', 'win32'] as const)(
    'plans the current workspace with task input deferred on %s',
    (platform) => {
      const plan = buildAgentStartupPlan({
        agent: 'dsh',
        prompt: 'Review this folder',
        cmdOverrides: {},
        platform
      })
      expect(plan?.launchCommand).toContain('dsh-tui .')
      expect(plan?.launchCommand).not.toContain('Review this folder')
      expect(TUI_AGENT_CONFIG.dsh.promptInjectionMode).toBe('stdin-after-start')
      expect(TUI_AGENT_CONFIG.dsh.draftPasteReadySignal).toBe('dsh-composer-prompt')
    }
  )
})