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

Function countActionableJsonl

scripts/dashboard.js:104–109  ·  view source on GitHub ↗
(filePath, actionableStatuses = ['needs-review', 'pending'])

Source from the content-addressed store, hash-verified

102 return raw.split(/\r?\n/).filter(Boolean).length;
103}
104
105function countActionableJsonl(filePath, actionableStatuses = ['needs-review', 'pending']) {
106 const detail = readJsonlDetailed(filePath);
107 if (!detail.exists) return 0;
108 const statuses = new Set(actionableStatuses);
109 return detail.entries.filter((entry) => statuses.has(entry.status)).length;
110}
111
112function truncate(value, max) {

Callers 1

readQueueCountsFunction · 0.85

Calls 1

readJsonlDetailedFunction · 0.85

Tested by

no test coverage detected