Skip to content

feat: compact output for batch, snapshot, and request - #127

Merged
yusukebe merged 1 commit into
nextfrom
feat/compact-output
Sep 7, 2026
Merged

feat: compact output for batch, snapshot, and request#127
yusukebe merged 1 commit into
nextfrom
feat/compact-output

Conversation

@yusukebe

@yusukebe yusukebe commented Sep 7, 2026

Copy link
Copy Markdown
Member

The snapshot workflow won on correctness (3/5 → 5/5 on a 27-route refactor) and lost on tokens (262k vs 149k): full bodies printed per route, echoed back through the batch results.

Three opt-in cost controls: hono batch --compact prints only the failed steps and the summary as one-line JSON; hono snapshot --status-only captures status codes without bodies, except the not-found probe line (a dropped notFound handler still answers 404 — only the body changes); hono request --compact drops the headers and prints one line. Logged in docs/agent-dx-log.md.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit e7f9527 into next Sep 7, 2026
4 checks passed
@yusukebe
yusukebe deleted the feat/compact-output branch September 7, 2026 05:50
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.

1 participant