feat: close builder mutation and roundtrip evidence gaps
This commit is contained in:
@@ -19,9 +19,9 @@ const execution = spawnSync(command, ['--python-path', resolve(sysroot, 'usr/lib
|
||||
})
|
||||
const output = `${execution.stdout || ''}\n${execution.stderr || ''}`
|
||||
const marker = 'FREECAD_PARTDESIGN_REVOLUTION_GROOVE_ORACLE_RESULT='
|
||||
const line = output.split(/\r?\n/).find((entry) => entry.startsWith(marker))
|
||||
const line = output.split(/\r?\n/).find((entry) => entry.includes(marker))
|
||||
if (execution.error || execution.status !== 0 || !line) throw new Error(`FreeCAD PartDesign Revolution/Groove oracle failed: ${execution.error?.message || output.trim()}`)
|
||||
const report = JSON.parse(line.slice(marker.length))
|
||||
const report = JSON.parse(line.slice(line.indexOf(marker) + marker.length))
|
||||
await mkdir(resolve(root, 'config'), { recursive: true })
|
||||
await writeFile(outputFile, `${JSON.stringify(report, null, 2)}\n`)
|
||||
console.log(JSON.stringify({ status: 'freecad-partdesign-revolution-groove-oracle-generated', output: outputFile, summary: report.summary }, null, 2))
|
||||
|
||||
Reference in New Issue
Block a user