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 • 477 B
JavaScript
import e from"node:fs";import t from"node:path";function n(e){let n=t.parse(e);return t.join(n.dir,`${n.name}.gesture-telemetry.json`)}function r(e){return[...e].sort((e,t)=>e.tMs-t.tMs)}function i(t){let i=n(t.videoPath),a={version:1,generatedAt:new Date().toISOString(),events:r(t.events)};return e.writeFileSync(i,JSON.stringify(a,null,2)),i}function a(e){let{recording:t}=e,n=i({videoPath:t.outPath,events:t.gestureEvents});return t.telemetryPath=n,n}export{a as n,n as t};