MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readUiLogTail

Function readUiLogTail

graph-ui/src/projects/projects-model.ts:266–277  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

264}
265
266export function readUiLogTail(raw: unknown): UiLogTail {
267 const record = isRecord(raw) ? raw : {};
268 const lines = strings(record['lines']);
269 return {
270 path: text(record['path']),
271 previousPath: text(record['previous_path']),
272 sizeBytes: optionalNumber(record['size_bytes']) ?? 0,
273 partial: record['partial'] === true,
274 lines,
275 total: optionalNumber(record['total']) ?? lines.length,
276 };
277}
278
279/**
280 * One line of the frontend log as the panel shows it: time, level, source

Callers 2

uiLogTailMethod · 0.90

Calls 4

stringsFunction · 0.85
optionalNumberFunction · 0.85
isRecordFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected