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 • 675 B
import{B as e,v as t}from"./sdk-contracts.js";function n(n){let r={reason:`platform-owner-shutdown-failed`,failures:n.map(({owner:t,error:n})=>({owner:t,error:e(n)}))},i=`Platform runtime owner shutdown failed: ${r.failures.map(({owner:e,error:t})=>`${e.kind===`local-family`?e.family:`${e.provider} (${e.instance})`}: ${t.message}`).join(`; `)}`;return new t(`COMMAND_FAILED`,i,{...r,hint:`Cleanup is unconfirmed. Inspect the owner failures and verify claim ownership before attempting recovery.`,retriable:!1},n.length===1?n[0].error:AggregateError(n.map(({error:e})=>e),`Original platform runtime owner shutdown failures`))}export{n as createPlatformRuntimeShutdownError};