Files
orca/src/cli/agent-launch-test-fixtures.ts
T
OrcaWinandOrcaWin 120f01331c [comment audit] Shorten CLI parsing and host-routing comments (#32265)
* chore: shorten process-host comments

* chore: audit CLI parsing and host-routing comments

* chore: remove stale host-selector restriction comment

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-23 07:49:36 -07:00

22 lines
810 B
TypeScript

import { AGENT_LAUNCH_RUNTIME_CAPABILITIES } from '../shared/agent-launch-runtime-capability'
import { okFixture } from './test-fixtures'
export function agentLaunchHostFixture() {
return okFixture('req_status', { capabilities: [...AGENT_LAUNCH_RUNTIME_CAPABILITIES] })
}
export function agentLaunchFixture(worktreeId: string, warning?: string) {
return okFixture('req_launch', {
outcome: { kind: 'structured', sessionId: 'codex_1', handle: 'agent_1' },
worktreeId,
receipt: {
mode: 'structured',
preferred: 'structured',
reason: 'user_default',
detail: 'Started a structured chat session, the default for new agent tabs in your settings.'
},
prompt: { delivery: 'submit', outcome: 'journaled', messageId: 'msg_1' },
...(warning ? { warning } : {})
})
}