Commit 6311a84
Reorganize hq CLI: OutputSink context manager, section ordering, and cleanups
Introduces OutputSink to own the output lifecycle (stream/accumulate/flush),
replacing the mutable json_accumulator parameter threading. Reorganizes all
definitions into dependency-ordered sections (constants → helpers → query
dispatch → output → execution → CLI). Deduplicates file reading via
_read_input, simplifies _extract_location with a loop, collapses redundant
except blocks, and removes dead code.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 05dda65 commit 6311a84
1 file changed
Lines changed: 325 additions & 320 deletions
0 commit comments