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 • 748 B
import{j as e,v as t}from"./sdk-contracts.js";const n=`agent-device-cli`;function r(e){return`${n}/${e}`}const i=Object.freeze({maxRetries:0});async function a(t,n,r){try{return n===`ios`?await t.iosInstances.delete(r,i):await t.androidInstances.delete(r,i),{failure:void 0,cause:void 0}}catch(t){return o(t)===404?{failure:void 0,cause:void 0}:{failure:e(t),cause:t}}}function o(e){if(!e||typeof e!=`object`)return;let t=e.status;return typeof t==`number`?t:void 0}function s(e,n,r=`This daemon drives an existing Limrun instance with its own token. Set LIMRUN_API_KEY, or ask the instance owner to do this.`){if(e)return e;throw new t(`UNSUPPORTED_OPERATION`,`${n} requires a Limrun API key.`,{hint:r})}export{s as a,r as i,i as n,a as r,n as t};