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 • 976 B
const e=`com.android.systemui`;function t(e){return n(`com.android.systemui`,e)!==void 0||e===`com.android.systemui:id/split_shade_status_bar`||e===`com.android.systemui:id/keyguard_status_bar`}function n(e,t,n){if(e===`com.android.launcher3`||e===`com.google.android.apps.nexuslauncher`)return t===`${e}:id/navbuttons_view`||n?.bundleId===e&&n.systemBar===`navigation`?`navigation`:void 0;if(e===`com.android.systemui`)switch(t){case`com.android.systemui:id/status_bar`:case`com.android.systemui:id/status_bar_container`:case`com.android.systemui:id/status_bar_launch_animation_container`:return`status`;case`com.android.systemui:id/navigation_bar`:case`com.android.systemui:id/navigation_bar_frame`:return`navigation`;default:return n?.bundleId===e?n.systemBar:void 0}}function r(e){return`systemChrome`in e&&e.systemChrome===!0}function i(e){if(!r(e))return e;let{systemChrome:t,...n}=e;return n}function a(e){return e.some(r)?e.map(i):e}export{a,t as i,n,i as o,r,e as t};