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 • 425 B
import{x as e}from"./sdk-device.js";import{t}from"./runner-client.js";import{t as n}from"./ios-node-interpretation.js";async function r(r,i,a,o,s){let c=await t(r,{command:`querySelector`,selectorKey:i.key,selectorValue:i.value,appBundleId:a,...s===`hittability`?{hittabilityProbe:!0}:{}},o);return{...c,...Array.isArray(c.nodes)?{nodes:c.nodes.map(t=>n(t,{reactNativeValue:e(r)}))}:{}}}export{r as queryAppleRunnerSelector};