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 • 763 B
JavaScript
const e={browserStack:`browserstack`,awsDeviceFarm:`aws-device-farm`},t={username:`BROWSERSTACK_USERNAME`,accessKey:`BROWSERSTACK_ACCESS_KEY`},n={leaseKind:`direct-device-provider`,requiresAppAttachment:!1,requiresRemoteDaemon:!1,supportsArtifacts:!0,supportsDeferredAppSelection:!1,supportsDirectPortReverse:!1,usesCloudWebDriverLease:!0},r=Object.freeze([{provider:e.browserStack,connection:n,credentialVariables:Object.values(t)},{provider:e.awsDeviceFarm,connection:{...n,requiresAppAttachment:!0}}]);function i(e){return r.find(t=>t.provider===e)}function a(e,t){if(e.slice(0,t.length).toLowerCase()===t)return`${t}${e.slice(t.length)}`}function o(e){return a(e,`bs://`)}function s(e){return/^bs:\/\/[\w.-]+$/.test(e)}export{i as a,o as i,e as n,s as o,r,t};