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 • 544 B
JavaScript
import{r as e}from"./rolldown-runtime.js";import{styleText as t}from"node:util";var n=e({formatCliStatusMarker:()=>i,shouldColorStatusMarkers:()=>r});function r(e,t){return e.FORCE_COLOR===void 0?e.NO_COLOR===void 0&&t:e.FORCE_COLOR!==`0`}function i(e,n){let{useColor:r}=n;if(e===`pass`){let e=n.passFormat??`green`;return r?t(e,`✓`,{validateStream:!1}):`✓`}return e===`fail`?r?t(`red`,`⨯`,{validateStream:!1}):`⨯`:e===`warn`?r?t(`yellow`,`!`,{validateStream:!1}):`!`:r?t(`dim`,`-`,{validateStream:!1}):`-`}export{r as n,n as r,i as t};