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 • 636 B
import{r as e}from"./rolldown-runtime.js";import{t}from"./status-markers.js";var n=e({formatDoctorCheckDetailLines:()=>i,formatDoctorCheckSummaryLine:()=>r});function r(e,n){return`${t(a(e.status),n)} ${o(e)}`}function i(e){return e.status!==`fail`&&e.status!==`warn`?[]:typeof e.command==`string`?[` run: ${e.command}`]:typeof e.hint==`string`?[` hint: ${e.hint}`]:[]}function a(e){return e===`pass`?`pass`:e===`fail`?`fail`:e===`warn`?`warn`:`skip`}function o(e){let t=typeof e.id==`string`&&e.id.length>0?e.id:`check`,n=typeof e.summary==`string`&&e.summary.length>0?e.summary:t;return n===t?t:`${t}: ${n}`}export{i as n,r,n as t};