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 • 648 B
function e(e){return e.otherActiveApplicationPid===void 0?`whatever app held the foreground (the runner reported no single other app with an active accessibility session)`:`the only app other than the session app with an active accessibility session (pid ${e.otherActiveApplicationPid})`}function t(t){return`The session app was not foreground when this command arrived (prior state ${t.priorState}), so the runner activated it before answering (reason ${t.reason}). Any capture taken earlier in this session described ${e(t)}, not the session app. Re-capture now that the session app answers, or drive the other app in its own session.`}export{t};