Feature: targen -u (Structured JSON Progress Output) #11

Merged
gronod merged 1 commits from feature/targen-json-progress into main 2026-08-21 21:52:02 +01:00
Owner

Closes #2

Summary of Changes

  • Added -u command-line switch to targen to emit structured JSON progress events during patch generation on stdout.
  • Supported progress reporting during:
    • OFPS seeding phase ("seeding", percentage from 0 to 100).
    • OFPS iterative optimization phase ("optimising", percentage from 0 to 100).
    • IFARP generation ("generating", percentage from 0 to 100).
    • Random / Sobol generation ("generating", percentage from 0 to 100).
    • CRT display response delay optimization ("optimising", percentage from 0 to 100).
  • Emitted events in newline-delimited JSON (NDJSON) format:
    {"event": "progress", "stage": "optimising", "percent": 45}
    
  • Documented -u option in doc/targen.html and targen usage help.
Closes #2 ### Summary of Changes - Added `-u` command-line switch to `targen` to emit structured JSON progress events during patch generation on `stdout`. - Supported progress reporting during: - OFPS seeding phase (`"seeding"`, percentage from 0 to 100). - OFPS iterative optimization phase (`"optimising"`, percentage from 0 to 100). - IFARP generation (`"generating"`, percentage from 0 to 100). - Random / Sobol generation (`"generating"`, percentage from 0 to 100). - CRT display response delay optimization (`"optimising"`, percentage from 0 to 100). - Emitted events in newline-delimited JSON (NDJSON) format: ```json {"event": "progress", "stage": "optimising", "percent": 45} ``` - Documented `-u` option in `doc/targen.html` and `targen` usage help.
gronod added 1 commit 2026-08-21 20:33:29 +01:00
gronod merged commit 29edebe2ea into main 2026-08-21 21:52:02 +01:00
gronod deleted branch feature/targen-json-progress 2026-08-22 09:30:08 +01:00
Sign in to join this conversation.