Unify agent flavor definitions

This commit is contained in:
weishu
2026-05-21 10:23:57 +08:00
parent 15113668cc
commit 9698aa9f4c
11 changed files with 27 additions and 18 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ import type {
SessionResponse,
SessionsResponse
} from '@/types/api'
import type { AgentFlavor } from '@hapi/protocol'
import type { CancelMessageResponse } from '@hapi/protocol/schemas'
type ApiClientOptions = {
@@ -459,7 +460,7 @@ export class ApiClient {
async spawnSession(
machineId: string,
directory: string,
agent?: 'claude' | 'codex' | 'cursor' | 'gemini' | 'opencode',
agent?: AgentFlavor,
model?: string,
modelReasoningEffort?: string,
yolo?: boolean,