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 • 2.99 kB
import{r as e}from"./rolldown-runtime.js";var t=e({appSwitcherHarmony:()=>y,backHarmony:()=>_,closeHarmonyApp:()=>o,createHarmonyInventoryModule:()=>O,doubleClickHarmony:()=>d,ensureHarmonyToolchainPathConfigured:()=>l,fillHarmony:()=>m,harmonyToolchainCheck:()=>D,homeHarmony:()=>v,longPressHarmony:()=>f,openHarmonyApp:()=>a,performHarmonyGesture:()=>g,pressHarmony:()=>u,pressHarmonyKeyboardKey:()=>b,readHarmonyGestureViewport:()=>T,runHarmonyHdc:()=>s,runHarmonyShell:()=>c,runtimeModule:()=>i,sampleHarmonyMemoryPerf:()=>E,screenshotHarmony:()=>S,scrollHarmony:()=>h,setHarmonyOrientation:()=>x,setHarmonySetting:()=>C,snapshotHarmony:()=>w,typeHarmony:()=>p});function n(e){return(async(...t)=>await(await e())(...t))}const r=Object.freeze({family:`harmonyos`}),i=Object.freeze({...r,loadRuntime:async e=>{let{createHarmonyPlatformRuntime:t}=await import(`./runtime9.js`);return t(e)}}),a=n(async()=>(await import(`./app-lifecycle2.js`).then(e=>e.t)).openHarmonyApp),o=n(async()=>(await import(`./app-lifecycle2.js`).then(e=>e.t)).closeHarmonyApp),s=n(async()=>(await import(`./hdc.js`).then(e=>e.t)).runHarmonyHdc),c=n(async()=>(await import(`./hdc.js`).then(e=>e.t)).runHarmonyShell),l=n(async()=>(await import(`./hdc.js`).then(e=>e.t)).ensureHarmonyToolchainPathConfigured),u=n(async()=>(await import(`./input-actions.js`)).pressHarmony),d=n(async()=>(await import(`./input-actions.js`)).doubleClickHarmony),f=n(async()=>(await import(`./input-actions.js`)).longPressHarmony),p=n(async()=>(await import(`./input-actions.js`)).typeHarmony),m=n(async()=>(await import(`./input-actions.js`)).fillHarmony),h=n(async()=>(await import(`./input-actions.js`)).scrollHarmony),g=n(async()=>(await import(`./input-actions.js`)).performHarmonyGesture),_=n(async()=>(await import(`./input-actions.js`)).backHarmony),v=n(async()=>(await import(`./input-actions.js`)).homeHarmony),y=n(async()=>(await import(`./input-actions.js`)).appSwitcherHarmony),b=n(async()=>(await import(`./input-actions.js`)).pressHarmonyKeyboardKey),x=n(async()=>(await import(`./input-actions.js`)).setHarmonyOrientation),S=n(async()=>(await import(`./screenshot2.js`)).screenshotHarmony),C=n(async()=>(await import(`./settings2.js`)).setHarmonySetting),w=n(async()=>(await import(`./snapshot3.js`).then(e=>e.r)).snapshotHarmony),T=n(async()=>(await import(`./snapshot3.js`).then(e=>e.r)).readHarmonyGestureViewport),E=n(async()=>(await import(`./perf.js`)).sampleHarmonyMemoryPerf),D=n(async()=>(await import(`./doctor.js`)).harmonyToolchainCheck);function O(e){let t=Object.freeze({hdcSdkPath:k(e.hdcSdkPath),devecoSdkHome:k(e.devecoSdkHome),commandLineToolsHome:k(e.commandLineToolsHome)});return Object.freeze({...r,loadInventory:async e=>{let{createHarmonyInventory:n}=await import(`./inventory3.js`);return n(e,t)}})}function k(e){return e?.trim()||void 0}export{x as _,d as a,t as b,f as c,u as d,b as f,h as g,S as h,O as i,a as l,i as m,_ as n,m as o,T as p,o as r,v as s,y as t,g as u,C as v,p as x,w as y};