Compact default CLI and MCP output#2
Open
andrei-hasna wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--verbose/--jsondetail paths.brief: false,verbose: true,include_raw: true, or detail/get tools).Compatibility notes
--json/--format jsonlist paths continue to return full records where possible.logs healthnow prints a compact human summary by default; uselogs health --jsonfor the full health object.verbose: truefor the full previous status payloads.Before / after
Worst noisy path:
logs list --limit 1with a long log message plus large metadata.Before:
After:
Full machine-readable output remains available:
Adversarial review reconciliation
A read-only adversarial reviewer focused on CLI compatibility, output ergonomics, and token bloat found several issues. Reconciled in this branch:
log_context_from_idcapped results now preserve the requested target log;brief: falsereturns full context unless a limit is explicit.events get <event_id>andtest-reports get <report_id>workflows.include_raw: truenow forces raw/full event rows for search/watch instead of requiringbrief: falsetoo.list_issuescompact output truncates long issue messages.logs list --format compactremains footerless/line-oriented.verboseand capped context parameters.Validation
bun test src/cli/compact-output.test.ts src/mcp/index.test.tsbun testbun run lintbun run buildgit diff --check