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 • 429 B
import{h as e}from"./file.js";import t from"node:path";const n=`.webm`;function r(e){return e===`web`?n:`.mp4`}function i(e,n){return t.extname(e)?e:`${e}${n}`}function a(e){return`./recording-${Date.now()}${r(e)}`}function o(t){let r=t.requestedPath===void 0?a(t.platform):t.platform===`web`?i(t.requestedPath,n):t.requestedPath;return Object.freeze({requestedPath:r,outputPath:e(r,{cwd:t.cwd})})}export{o as i,a as n,r,i as t};