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=[`pending`,`retirable`,`retired`];function t(t){return e.some(e=>e===t)}const n=[`confirmed`,`unconfirmed`,`lost`],r=[`identity-unreadable`,`no-exit-in-budget`],i=[`identity-not-ours`,`owner-session-lost`,`native-artifact-absent`];function a(e){if(typeof e!=`object`||!e)return!1;let t=e;return n.some(e=>e===t.recorder)?t.recorder===`confirmed`?t.why===void 0:(t.recorder===`unconfirmed`?r:i).some(e=>e===t.why):!1}export{t as i,a as n,e as r,n as t};