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

Function tailLines

src/cli/dashboard-observability.ts:10–12  ·  view source on GitHub ↗
(text: string, n = 40)

Source from the content-addressed store, hash-verified

8
9/** Last `n` non-empty lines of a log blob, oldest→newest. PURE. */
10export function tailLines(text: string, n = 40): string[] {
11 return text.split('\n').filter(l => l.trim()).slice(-n);
12}
13
14/** Roll up a few at-a-glance health signals from the gathered dashboard facts. PURE. */
15export function computeHealth(input: {

Callers 2

gatherDashboardDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected