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
@@ -1,4 +1,5 @@
import { useMutation, useQueryClient } from '@tanstack/react-query'
import type { AgentFlavor } from '@hapi/protocol'
import type { ApiClient } from '@/api/client'
import type { SpawnResponse } from '@/types/api'
import { queryKeys } from '@/lib/query-keys'
@@ -6,7 +7,7 @@ import { queryKeys } from '@/lib/query-keys'
type SpawnInput = {
machineId: string
directory: string
agent?: 'claude' | 'codex' | 'cursor' | 'gemini' | 'opencode'
agent?: AgentFlavor
model?: string
effort?: string
modelReasoningEffort?: string