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 • 1.77 kB
JavaScript
import{t as e}from"./durable-capture-resource.js";import{n as t,t as n}from"./screen-recording-resource-store.js";const r=e({resourceKind:`screen-recording`,displayName:`screen recording`,store:t,completionMetadata:o,completionFromMetadata:async e=>(await import(`./screen-recording-stop-recovery.js`).then(e=>e.i)).readReplayableStoredCompletion(e),failedFinishPolicy:`preserve-retry-material`,messages:{noActive:`no active recording`,cleanupPendingHint:`Keep screen-recording.resource.json and retry stop through its exact runtime owner.`}});function i(e){return r.adoptStarted(e)}function a(e){return r.finishLive(e)}function o(e){return{[n]:{backend:e.backend,outPath:e.outPath,startedAt:e.startedAt,completedAt:e.completedAt,...e.capturedDurationMs===void 0?{}:{capturedDurationMs:e.capturedDurationMs},...e.stopObservation===void 0?{}:{stopObservation:c(e.stopObservation)},...e.nativePathDisposition===void 0?{}:{nativePathDisposition:e.nativePathDisposition},scope:e.scope,showTouches:e.showTouches,recordOnlySession:e.recordOnlySession,...e.clientOutPath===void 0?{}:{clientOutPath:e.clientOutPath},...e.telemetryPath===void 0?{}:{telemetryPath:e.telemetryPath},...e.warning===void 0?{}:{warning:e.warning},...e.overlayWarning===void 0?{}:{overlayWarning:e.overlayWarning},...e.activeSessionApp===void 0?{}:{activeSessionApp:s(e.activeSessionApp)},...e.chunks===void 0?{}:{chunks:e.chunks.map(l)}}}}function s(e){return{bundleId:e.bundleId,...e.name===void 0?{}:{name:e.name}}}function c(e){return e.recorder===`confirmed`?{recorder:e.recorder}:{recorder:e.recorder,why:e.why}}function l(e){return{index:e.index,path:e.path,...e.clientOutPath===void 0?{}:{clientOutPath:e.clientOutPath}}}function u(e){return r.finishRecovered(e)}export{r as i,a as n,u as r,i as t};