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 • 653 B
import{R as e,f as t,v as n}from"./sdk-contracts.js";import{c as r}from"./device-shell.js";import{n as i}from"./device-selector-intent.js";function a(t){let i=r(t);return new n(`SESSION_NOT_FOUND`,`No active session "${t}". Run agent-device open <app> --session ${i} first, or omit --session to run against a device selector.`,{...e(t),hint:`Run agent-device session list to see the sessions this daemon holds. A daemon that was replaced or restarted starts without its predecessor's sessions.`})}function o(e){if(!e.session&&t(e.req)&&!i(e.req.flags))throw a(e.sessionAddress)}export{a as namedSessionNotFoundError,o as requireNamedSessionHoldsDevice};