mirror of
https://github.com/stablyai/orca.git
synced 2026-10-09 08:02:35 +00:00
22 lines
796 B
TypeScript
22 lines
796 B
TypeScript
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)(
|
|
'selects the current workspace before pasting the task 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')
|
|
}
|
|
)
|
|
})
|