MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / symbol

Function symbol

src/utils/network-check.ts:183–183  ·  view source on GitHub ↗
(s: ProbeStatus)

Source from the content-addressed store, hash-verified

181 const lines: string[] = [];
182 const ok = (s: ProbeStatus) => s === 'ok';
183 const symbol = (s: ProbeStatus) => ok(s) ? '✓' : s === 'timeout' ? '⏱' : s === 'connection_refused' ? '✗' : s === 'dns_failed' ? '?' : '✗';
184 const internetLabel =
185 d.public.internet === 'ok' ? 'Online ✓'
186 : d.public.internet === 'blocked' ? 'Offline (Cloudflare unreachable)'

Callers 1

formatDiagnosticFunction · 0.85

Calls 1

okFunction · 0.85

Tested by

no test coverage detected