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 • 859 B
import{t as e}from"./durable-capture.js";import{t}from"./durable-capture-resource.js";const n=e({resourceKind:`app-log`,fileName:`app-log.resource.json`,displayName:`App-log`}),r=[`ios-simulator`,`ios-device`,`android`,`harmonyos`,`macos`];function i(e){let t=e?.backend,n=e?.outputPath,i=e?.completedAt;if(!(typeof t!=`string`||!r.includes(t)||typeof n!=`string`||n.length===0||typeof i!=`number`||!Number.isFinite(i)))return{backend:t,outputPath:n,completedAt:i}}const a=t({resourceKind:`app-log`,displayName:`app-log`,store:n,completionMetadata:e=>({backend:e.backend,outputPath:e.outputPath,completedAt:e.completedAt}),completionFromMetadata:i,failedFinishPolicy:`dispose-on-failed-finish`,messages:{noActive:`no app log stream active`,cleanupPendingHint:`Keep app-log.resource.json and retry cleanup through its exact runtime owner.`}});export{n,a as t};