agent-device
Version:
Open source device layer for AI coding agents: a CLI, MCP server, and typed Node.js API to control mobile, web, TV, and desktop apps on devices and simulators, locally or in the cloud.
1 lines • 695 B
JavaScript
import{Mn as e}from"./sdk-batch.js";import{t}from"./touch-runtime.js";import{H as n,I as r,N as i,T as a,z as o}from"./tv-remote-runtime.js";import{n as s}from"./screenshot-runtime2.js";import{t as c}from"./interactor-operation-catalog.js";function l(l){let{facts:u,pause:d}=l,f={device:l.device,signal:l.signal,resolveInteractor:l.resolveInteractor};return{...u.captureScreenshot.available?s({...f,captureCapabilities:l.captureCapabilities}):{},...u.focusPoint.available?o(f):{},...r({...f,facts:u}),...u.scrollDirection.available?i(f):{},...u.typeText.available?a(f):{},...u.readTextAtPoint.available?n(f):{},...e(u.tapPoint,()=>t({...f,facts:u,pause:d})),...c({...f,facts:u})}}export{l as t};