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 • 535 B
import{i as e,r as t}from"./observability.js";const n=new Map([{alias:`long-press`,command:`longpress`},{alias:`tap`,command:`press`},{alias:`launch`,command:`open`},{alias:`relaunch`,command:`open`,impliedFlags:[`relaunch`]}].map(e=>[e.alias,e])),r=new Map([[t,e],[`rotate`,`rotate was renamed to orientation; for the two-finger gesture use: gesture rotate`]]);function i(e){return n.get(e.toLowerCase())?.command??e}function a(e){return r.get(e.toLowerCase())}function o(e){return n.get(e.toLowerCase())}export{i as n,a as r,o as t};