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 • 767 B
import{r as e}from"./rolldown-runtime.js";import t from"node:zlib";var n=e({encodePngPixels:()=>c});const r=Uint8Array.from([137,80,78,71,13,10,26,10]),i=Buffer.from(`IHDR`,`ascii`),a=Buffer.from(`IDAT`,`ascii`),o=Buffer.from(`IEND`,`ascii`),s=new Uint8Array;function c(e,t,n,c){let d=Buffer.alloc(13);return d.writeUInt32BE(t,0),d.writeUInt32BE(n,4),d[8]=8,d[9]=c===3?2:6,Buffer.concat([r,u(i,d),u(a,l(e,t,n,c)),u(o,s)])}function l(e,n,r,i){let a=n*i,o=new Uint8Array(r*(a+1));for(let t=0;t<r;t+=1){let n=t*(a+1)+1;o.set(e.subarray(t*a,(t+1)*a),n)}return t.deflateSync(o,{level:6})}function u(e,n){let r=Buffer.allocUnsafe(12+n.length);return r.writeUInt32BE(n.length,0),r.set(e,4),r.set(n,8),r.writeUInt32BE(t.crc32(n,t.crc32(e))>>>0,8+n.length),r}export{n,c as t};