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.02 kB
JavaScript
import{p as e}from"./screenshot.js";import"./capture.js";import{wt as t}from"./sdk-io.js";import"./diagnostics.js";import{i as n}from"./click-button.js";import{d as r}from"./request.js";import{o as i}from"./lease-context.js";const a=`activity.launchConsole.launchArgs.clearAppState.verbose.iosXctestrunFile.iosXctestDerivedDataPath.iosXctestEnvDir.snapshotInteractiveOnly.snapshotPreferredBackend.snapshotDepth.snapshotScope.snapshotRaw.snapshotCustomActions.snapshotIncludeHiddenContentHints.count.intervalMs.delayMs.durationMs.holdMs.jitterPx.pixels.until.maxPasses.doubleTap.backMode.pauseMs.pattern`.split(`.`);function o(e){return Object.fromEntries(a.map(t=>[t,e?.[t]]))}function s(e,t){let n=e.meta?.cwd;return typeof n==`string`?n:t.cwd}function c(a,s,c,l,u,d){let f=u??t().requestId;return{requestId:f,signal:r(f),appBundleId:c,runnerLeaseContext:i({meta:d}),logPath:a,traceLogPath:l,...o(s),preferredScreenshotCaptureBackend:s?.maestro?.screenshotCaptureBackend,...e(s),clickButton:n(s)}}export{s as n,c as t};