(filePath)
| 241 | } |
| 242 | |
| 243 | function parseJsonl(filePath) { |
| 244 | if (!fs.existsSync(filePath)) return []; |
| 245 | const content = fs.readFileSync(filePath, 'utf8').trim(); |
| 246 | if (!content) return []; |
| 247 | return content.split(/\r?\n/).map((line) => JSON.parse(line)); |
| 248 | } |
| 249 | |
| 250 | function collectProof(workDir, owner, repoName, repoUrl, transcript, args) { |
| 251 | const queue = readJson(path.join(workDir, '.agent-steward', 'queue.json')); |