Skip to content

feat: add repl json output mode#139

Merged
rlippmann merged 3 commits into
mainfrom
codex/repl-json-output
May 23, 2026
Merged

feat: add repl json output mode#139
rlippmann merged 3 commits into
mainfrom
codex/repl-json-output

Conversation

@rlippmann
Copy link
Copy Markdown
Owner

What changed

  • Added --json CLI flag for machine-readable REPL output in non-interactive usage.
  • Implemented NDJSON-style output: one complete JSON object per processed input line.
  • Reused existing controller result shapes for JSON step and preview outputs.
  • Added JSON envelopes for state command output and command-layer errors.
  • Kept default human-readable REPL behavior unchanged.
  • Added targeted REPL tests for JSON command paths, error paths, and contract coverage.
  • Added a minimal README Quickstart note for --json NDJSON behavior.

Why this was needed

  • Provides stable script-friendly REPL output for automation workflows.
  • Preserves existing interactive UX while adding machine-readable non-interactive output.
  • Establishes a versioned, deterministic output surface for future parity work.

Closes #56

@rlippmann rlippmann merged commit 84a2ad1 into main May 23, 2026
12 checks passed
@rlippmann rlippmann deleted the codex/repl-json-output branch May 23, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhancement: add machine-only JSON output mode for non-interactive REPL

1 participant