(projectRoot, summary, options = {})
| 192 | } |
| 193 | |
| 194 | function writeReport(projectRoot, summary, options = {}) { |
| 195 | const dir = path.join(projectRoot, '.planning', 'doc-sync'); |
| 196 | fs.mkdirSync(dir, { recursive: true }); |
| 197 | const reportPath = path.join(dir, 'latest.md'); |
| 198 | fs.writeFileSync(reportPath, renderReport(projectRoot, summary, options) + '\n', 'utf8'); |
| 199 | return reportPath; |
| 200 | } |
| 201 | |
| 202 | function updateQueue(queuePath, entries, summary, options = {}) { |
| 203 | const now = options.now || new Date().toISOString(); |
no test coverage detected