Skip to content

Add CLI wait output formatting with shared projection helper #48

Description

@kcosr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions