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 • 491 B
JavaScript
function e(e){return e.meta?.requestProgress===`replay-test`||e.meta?.requestProgress===`command`}function t(e){return!!e&&typeof e==`object`&&e.type===`progress`&&!!e.event}function n(e){return!!e&&typeof e==`object`&&e.type===`response`&&!!e.response}function r(e){return`${JSON.stringify({type:`progress`,event:e})}\n`}function i(e){return`${JSON.stringify({type:`response`,response:e})}\n`}function a(e){return`${JSON.stringify({type:`response`,response:e})}\n`}export{a,i,n,e as o,r,t};