computerControl.ts 635 B

12345678
  1. export interface ComputerFrame {id:string;generation:number;data:string;width:number;height:number;capturedAt:number}
  2. export interface ComputerControlStatus {backend?:'grok';mode:'off'|'idle'|'agent'|'pausing'|'human'|'resuming'|'error';generation?:number;controlId?:string;canResume?:boolean;error?:string}
  3. export type ComputerInput =
  4. | {kind:'click';x:number;y:number;button?:'left'|'right'|'middle';count?:number}
  5. | {kind:'drag';fromX:number;fromY:number;toX:number;toY:number}
  6. | {kind:'text';text:string}
  7. | {kind:'key';key:string;modifiers?:string[]}
  8. | {kind:'scroll';direction:'up'|'down'|'left'|'right';amount?:number}