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 • 460 B
JavaScript
const e=/\.(?:apk|aab)$/i,t=/^[A-Za-z_][\w]*(\.[A-Za-z_][\w]*)+$/;function n(t){let n=t.trim();return n.length===0?`other`:e.test(n)?n.includes(`/`)||n.includes(`\\`)||n.startsWith(`.`)||n.startsWith(`~`)||!r(n)?`binary`:`package`:r(n)?`package`:`other`}function r(e){return t.test(e)}function i(e){return`Android runtime hints require an installed package name, not "${e}". Install or reinstall the app first, then relaunch by package.`}export{i as n,n as t};