mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 14:41:45 +08:00
Merge commit '4b7be20fe0cce3e7979cc3bdfdd7b02ec6630c00' into dev
This commit is contained in:
15
web/src/types/computerUseTimeline.ts
Normal file
15
web/src/types/computerUseTimeline.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { ComputerUseAction, ComputerUseScreenshot } from '@/api'
|
||||
|
||||
export type ComputerUseTimelineItem =
|
||||
| { id: string; type: 'user'; text: string }
|
||||
| { id: string; type: 'assistant'; text: string }
|
||||
| { id: string; type: 'screenshot'; screenshot: ComputerUseScreenshot }
|
||||
| { id: string; type: 'actions_executed'; actions: ComputerUseAction[] }
|
||||
| { id: string; type: 'error'; text: string }
|
||||
| { id: string; type: 'status'; text: string }
|
||||
|
||||
export type NewComputerUseTimelineItem = ComputerUseTimelineItem extends infer Item
|
||||
? Item extends { id: string }
|
||||
? Omit<Item, 'id'>
|
||||
: never
|
||||
: never
|
||||
Reference in New Issue
Block a user