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 • 646 B
import{r as e}from"./rolldown-runtime.js";import{a as t,d as n,u as r}from"./adb-executor.js";import"./retry.js";var i=e({isAndroidShellCommandUnsupported:()=>u,reportsAndroidNoShellCommand:()=>l,runAndroidAdb:()=>a,runAndroidExecOut:()=>s,runAndroidShell:()=>o});async function a(e,n,r){return await t(e)(n,r)}async function o(e,r,i){return await n(t(e),r,i)}async function s(e,n,i){return await r(t(e),n,i)}const c=`no shell command implementation`;function l(e){return e.toLowerCase().includes(c)}function u(e,t){let n=`${e}\n${t}`.toLowerCase();return n.includes(c)||n.includes(`unknown command`)}export{s as a,a as i,u as n,o,l as r,i as t};