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.

2 lines • 345 B
import{rt as e}from"./sdk-io.js";import"./command.js";const t=3e3;async function n(e,t){let n=await r(e,t);return n===void 0?void 0:i(n)}async function r(n,r){try{let i=await e(n,r,{allowFailure:!0,timeoutMs:t});return i.exitCode===0?i.stdout:void 0}catch{return}}function i(e){return e.split(` `).map(e=>e.trim()).find(Boolean)}export{i,n,r,t};