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 • 1.76 kB
import{r as e}from"./rolldown-runtime.js";import{v as t}from"./sdk-contracts.js";import{n}from"./runtime-transport-hints.js";import{t as r}from"./base-url.js";import{t as i}from"./bundle-url.js";var a=e({buildBundleUrl:()=>i,clearMetroSessionHintsQuietly:()=>m,normalizeBaseUrl:()=>r,prepareMetroRuntime:()=>s,readMetroSessionRuntime:()=>p,recordOpenedMetroSession:()=>f,recordPreparedMetroSession:()=>d,reloadMetro:()=>c,resolveRuntimeTransport:()=>o,runReactDevtools:()=>u,stopMetroTunnel:()=>l});function o(e){return n(e)}async function s(e,t){return await(await import(`./client-metro.js`)).prepareMetroRuntime(e,t)}async function c(e={}){return await(await import(`./client-metro.js`)).reloadMetro(e)}async function l(e){let{stopMetroCompanion:t}=await import(`./client-metro-companion.js`);await t(e)}async function u(e,n){let[r,...i]=e,a;if(r===`profile`){let{runReactProfileCommand:e}=await import(`./react-profile-command.js`);a=await e(i,n)}else{let{isInspectCommand:e,runReactInspectCommand:t}=await import(`./react-devtools-inspect-command.js`);e(r)&&(a=await t(r,i,n))}if(!a)throw new t(`INVALID_ARGS`,`Unknown react-devtools command: ${r??`(none)`}.`,{hint:`Use react-devtools tree, find, inspect, errors, or profile.`});return a}async function d(e,t){(await import(`./metro-session-hints.js`).then(e=>e.t)).recordPreparedMetroSession(e,t)}async function f(e,t){(await import(`./metro-session-hints.js`).then(e=>e.t)).recordOpenedMetroSession(e,t)}async function p(e){return(await import(`./metro-session-hints.js`).then(e=>e.t)).readMetroSessionRuntime(e)}async function m(e){(await import(`./metro-session-hints.js`).then(e=>e.t)).clearMetroSessionHintsQuietly(e)}export{d as a,u as c,f as i,a as l,s as n,c as o,p as r,o as s,m as t,l as u};