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 • 462 B
import e from"node:fs";import t from"node:path";function n(){return Object.freeze({prepare:async n=>{e.mkdirSync(t.dirname(n),{recursive:!0}),e.rmSync(n,{force:!0})},copy:async({from:n,to:r})=>{e.mkdirSync(t.dirname(r),{recursive:!0}),e.copyFileSync(n,r)},remove:async t=>{try{e.rmSync(t,{force:!0})}catch{return`present`}return r(t)?`present`:`removed`}})}function r(t){try{return e.accessSync(t),!0}catch{return!1}}export{n as createScreenRecordingOutputHost};