HTTP wait responses now support output_format for projecting captured stdout / stderr as text or JSON. Add equivalent CLI support for wait-mode command/launch output formatting, while extracting the reusable projection logic out of the HTTP module.
Scope:
- Add CLI flags for selecting output format, aligned with HTTP
output_format semantics.
- Support JSON projection for selected captured streams.
- Preserve run metadata and report projection errors consistently, including invalid JSON and invalid UTF-8.
- Extract the shared captured-output projection core from
gateway/http/output_projection.rs into a transport-neutral helper.
- Keep shared byte-to-projection logic separate from HTTP and CLI envelope rendering.
Notes:
- The shared helper should model projected stream results and projection errors; it should not own transport-specific envelopes.
- HTTP and CLI JSON renderers should align field names such as
stdout_json, stderr_json, and output_errors where their response shapes overlap.
HTTP wait responses now support
output_formatfor projecting capturedstdout/stderras text or JSON. Add equivalent CLI support for wait-mode command/launch output formatting, while extracting the reusable projection logic out of the HTTP module.Scope:
output_formatsemantics.gateway/http/output_projection.rsinto a transport-neutral helper.Notes:
stdout_json,stderr_json, andoutput_errorswhere their response shapes overlap.