UNPKG

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 • 495 B
import{n as e}from"./tap-keyboard-occlusion.js";import{t}from"./ios-node-interpretation.js";import{n,t as r}from"./ios-snapshot-acquisition.js";import{parseWebDriverSourceFacts as i}from"./webdriver-source.js";function a(a,o,s){let c=i(a),l=n(c.roots)??{kind:`missing`,reason:`not-provided`};return r({producer:`appium-source`,viewport:l,...e({nodes:c.nodes.map(e=>t(e)),viewport:l.kind===`missing`?null:l.rect,visibility:s}),lineage:o?{targetId:o}:{}})}export{a as acquireWebDriverIosSnapshot};