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 • 487 B
import{$ as e,ut as t}from"./sdk-io.js";import"./command.js";import{p as n}from"./host-file.js";import r from"node:path";function i(e){return a(e)}async function a(e){if(await e.which(`vega`))return`vega`;if(e.homeDirectory===void 0)return;let t=r.join(e.homeDirectory,`vega`,`bin`,`vega`);return await e.isExecutableFile(t)?t:void 0}function o(r){return Object.freeze({which:async e=>await t(e,r)?e:void 0,isExecutableFile:async t=>await e(t),homeDirectory:n(r)})}export{i as n,o as t};