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 • 788 B
import"./command.js";import{t as e}from"./scoped-provider.js";const t=Object.freeze({available:!0,mode:`local`,async start({device:e,outputPath:t,signal:n}){let[{buildAppleSimulatorRecordVideoArgs:r},{runCmdBackground:i}]=await Promise.all([import(`./simctl-facade.js`),import(`./command.js`).then(e=>e.t)]);n?.throwIfAborted();let a=await r(e,t,{signal:n});return n?.throwIfAborted(),i(`xcrun`,a,{allowFailure:!0})}}),n=Object.freeze({available:!1,mode:`transport-composed`,start:async()=>{throw Error(`Scoped Apple provider does not expose an Apple simulator screen-recording transport`)}}),r=e(t);function i(){return r.resolve()}async function a(e,t){return await r.run(e??n,t)}export{i as resolveAppleSimulatorScreenRecordingTransport,a as withAppleSimulatorScreenRecordingTransport};