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 • 441 B
JavaScript
import e from"node:path";function t(t,r){let[i=``]=t.trim().split(/\s+/,1);if(r.executablePath){for(let e of n(r.executablePath))if(t===e||i===e||t.startsWith(`${e} `))return!0;return!1}return e.basename(i)===r.executableName}function n(e){let t=[e];return e.startsWith(`/private/var/`)?t.push(e.replace(`/private/var/`,`/var/`)):e.startsWith(`/var/`)&&t.push(e.replace(`/var/`,`/private/var/`)),t}export{t as matchesAppleExecutableProcess};