(projectRoot, trial)
| 205 | lines.push(`- Task: ${trial.task}`); |
| 206 | lines.push(`- Next: ${trial.nextAction}`); |
| 207 | lines.push('---'); |
| 208 | return `${lines.join('\n')}\n`; |
| 209 | } |
| 210 | |
| 211 | function writeTrial(projectRoot, trial) { |
| 212 | const outDir = path.join(projectRoot, '.planning', 'usefulness-trial'); |
| 213 | fs.mkdirSync(outDir, { recursive: true }); |
| 214 | const outPath = path.join(outDir, 'latest.md'); |
| 215 | fs.writeFileSync(outPath, renderTrial(trial), 'utf8'); |
| 216 | trial.reportPath = normalizePath(path.relative(projectRoot, outPath)); |
| 217 | return trial.reportPath; |
no test coverage detected