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 • 380 B
import{r as e}from"./rolldown-runtime.js";import{n as t}from"./provider-session-ownership.js";var n=e({recordProviderSession:()=>i,releaseLease:()=>r});async function r(e,t,n,r,a){let o=n?await t?.release?.(n,a):void 0;return n&&i(e,n,o),{registryReleased:e.releaseLease(r).released,provider:o}}function i(e,n,r){let i=t(r);i&&e.recordProviderSession(n,i)}export{i as n,r,n as t};