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 • 746 B
JavaScript
import{_n as e}from"./sdk-batch.js";import{o as t}from"./device.js";import{i as n}from"./runtime-admission.js";async function r(r){let i=t(r.positionals);return await n({command:`telephony`,device:r.device,use:e,inspectFacts:r.inspectFacts,platformServices:r.platformServices,bindDevice:r.bindDevice},e=>a(e,i))}const i={call:`Simulated an incoming call from`,accept:`Accepted the call from`,cancel:`Ended the call from`};async function a(e,t){return await e.operations.sendTelephonyEvent(t),t.action===`sms`?{action:t.action,number:t.number,textLength:Array.from(t.text).length,message:`Simulated an incoming SMS from ${t.number}`}:{action:t.action,number:t.number,message:`${i[t.action]} ${t.number}`}}export{r as resolveBoundTelephonyRuntime};