(filePath, value)
| 38 | } |
| 39 | |
| 40 | function appendJsonl(filePath, value) { |
| 41 | ensureDir(path.dirname(filePath)); |
| 42 | fs.appendFileSync(filePath, JSON.stringify(value) + '\n', 'utf8'); |
| 43 | } |
| 44 | |
| 45 | function readTextIfExists(filePath) { |
| 46 | if (!fs.existsSync(filePath)) return ''; |
no test coverage detected