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

Function countPendingIntakeItems

scripts/dashboard.js:638–646  ·  view source on GitHub ↗
(intakeDir)

Source from the content-addressed store, hash-verified

636 };
637}
638
639function countPendingIntakeItems(intakeDir) {
640 return listFiles(intakeDir, (entry) => entry.endsWith('.md') && entry !== '_TEMPLATE.md')
641 .filter((filePath) => {
642 const content = readText(filePath);
643 if (!content) return false;
644 const frontmatter = parseFrontmatter(content);
645 return String(frontmatter.status || 'pending').toLowerCase() === 'pending';
646 }).length;
647}
648
649function readHookValue(projectRoot) {

Callers 1

readQueueCountsFunction · 0.85

Calls 3

listFilesFunction · 0.70
readTextFunction · 0.70
parseFrontmatterFunction · 0.70

Tested by

no test coverage detected