(intakeDir)
| 636 | }; |
| 637 | } |
| 638 | |
| 639 | function 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 | |
| 649 | function readHookValue(projectRoot) { |
no test coverage detected