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.56 kB
import{r as e}from"./rolldown-runtime.js";var t=e({APP_SURFACE:()=>`app`,IOS_SYSTEM_SURFACE_HOSTS:()=>n,iosSystemSurfaceDisclosure:()=>c,iosSystemSurfaceHost:()=>i,iosSystemSurfaceOpenRefusal:()=>s,iosSystemSurfaceTransitionDisclosure:()=>l});const n=Object.freeze([Object.freeze({bundleId:`com.apple.SafariViewService`,kind:`web-auth`,processExecutable:`SafariViewService.app/SafariViewService`}),Object.freeze({bundleId:`com.apple.PassbookUIService`,kind:`payment`,processExecutable:`PassbookUIService.app/PassbookUIService`})]),r=new Map(n.map(e=>[e.bundleId,e]));function i(e){return e===void 0?void 0:r.get(e)}const a=Object.freeze({"web-auth":`a system web sign-in sheet`,payment:`the system Apple Pay sheet`});function o(e){let t=r.get(e);if(!t)throw Error(`${e} is not a registered iOS system surface host`);return a[t.kind]}function s(e){return`${e} hosts ${o(e)} and cannot be opened directly — launching or activating it cancels what it presents. While it is on screen it already appears in this session's snapshots; read it and interact with it there without opening it.`}function c(e){return`This snapshot shows ${o(e)} presented over the app (hosted out of the app process), not app content. Its controls are real and interactive; complete or dismiss the sheet to return to app content.`}function l(e){return e.to===`app`?`Before this action ${o(e.from)} was presented over the app and it is gone now, so this observation describes app content while the pre-action tree described that sheet.`:c(e.to)}export{t as a,l as i,c as n,i as r,n as t};