(filePath, actionableStatuses = ['needs-review', 'pending'])
| 102 | return raw.split(/\r?\n/).filter(Boolean).length; |
| 103 | } |
| 104 | |
| 105 | function 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 | |
| 112 | function truncate(value, max) { |
no test coverage detected