MCPcopy Create free account
hub / github.com/SethGammon/Citadel / tailJsonl

Function tailJsonl

scripts/dashboard.js:92–96  ·  view source on GitHub ↗
(filePath, limit)

Source from the content-addressed store, hash-verified

90 }
91}
92
93function tailJsonl(filePath, limit) {
94 const detail = readJsonlDetailed(filePath);
95 if (!detail.exists) return [];
96 return detail.entries.slice(Math.max(0, detail.entries.length - limit));
97}
98
99function countJsonlLines(filePath) {

Callers 5

readRecentActivityFunction · 0.85
readHookActivityFunction · 0.85
readHookValueFunction · 0.85
readHealthFunction · 0.85
readProblemsFunction · 0.85

Calls 1

readJsonlDetailedFunction · 0.85

Tested by

no test coverage detected