mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Unify agent flavor definitions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user