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 • 409 B
JavaScript
import{ensureManagedDaemon as e,resolveClientSettings as t}from"./daemon-client-lifecycle.js";async function n(n){let r=t({session:`default`,command:`proxy`,positionals:[],flags:{stateDir:n.stateDir,daemonBaseUrl:``,daemonTransport:`http`,daemonServerMode:`http`}},void 0,n.host),i=await e(r);return{httpPort:i.info.httpPort,token:i.info.token,stateDir:r.paths.baseDir}}export{n as ensureProxyUpstreamDaemon};