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 • 1.02 kB
import{i as e,n as t,r as n}from"./provider-profile-fields.js";import{d as r}from"./runtime13.js";import{_ as i,f as a,v as o,y as s}from"./browserstack.js";import{n as c}from"./providers.js";import{t as l}from"./connection-verification.js";const u=c.awsDeviceFarm,d=`connect ${u}`;function f(c){let{env:f}=c;return{resolve:({flags:e})=>{t(e,a);let n=r(e,u),c=s(e.awsProjectArn,f,`awsProjectArn`,d);return{profile:{leaseProvider:u,platform:n,device:e.device,awsProjectArn:c,awsDeviceArn:s(e.awsDeviceArn,f,`awsDeviceArn`,d),awsAppArn:e.awsAppArn??o(f,`awsAppArn`),awsRegion:e.awsRegion??o(f,`awsRegion`)??i(c),awsInteractionMode:e.awsInteractionMode,providerSessionName:e.providerSessionName}}},verify:async({flags:t})=>await l({platform:n(t.platform,`AWS Device Farm`),projectArn:e(t.awsProjectArn,`AWS Device Farm profile missed project ARN.`),deviceArn:e(t.awsDeviceArn,`AWS Device Farm profile missed device ARN.`),appArn:t.awsAppArn,region:t.awsRegion},c.runHostCommand)}}export{f as createAwsDeviceFarmConnection};