US-4: Pretty JSON Mode
Parent Epic: #3 (JSON Formatter & Event Schema)
As a developer debugging Cortex manually,
I want to run cortex "test this" --json=pretty and get readable indented JSON,
so that I can inspect the structure without piping through jq.
Acceptance Criteria
Technical Notes
--json=pretty sets json_mode="pretty" in argparse
- JsonFormatter.format_event() switches on mode: ndjson vs pretty
- Pretty mode uses json.dumps(indent=2) with blank-line separators between events
- Stderr diagnostics are allowed (not suppressed)
US-4: Pretty JSON Mode
Parent Epic: #3 (JSON Formatter & Event Schema)
As a developer debugging Cortex manually,
I want to run
cortex "test this" --json=prettyand get readable indented JSON,so that I can inspect the structure without piping through
jq.Acceptance Criteria
--json=prettyoutputs indented JSON blocks separated by blank linesTechnical Notes
--json=prettysets json_mode="pretty" in argparse