Skip to content

feat(cli): drop streaming run output, emit summary only#10

Merged
kevinccbsg merged 1 commit into
mainfrom
feat/cli-run-output-trim
May 25, 2026
Merged

feat(cli): drop streaming run output, emit summary only#10
kevinccbsg merged 1 commit into
mainfrom
feat/cli-run-output-trim

Conversation

@kevinccbsg

Copy link
Copy Markdown
Member

Summary

  • Replaces per-test streaming (RUN: / PASS: / SKIP: / inline FAIL:) with a single end-of-run summary block.
  • Compresses connect output: drops the synchronous Connecting to ... line and the Browser connected, triggering test run... line; logs Connected to <url> on ws.open.
  • Indents the run-complete summary 2 spaces to match the desired AI-friendly format.
  • Doc paragraph in `CLAUDE.md` refreshed to reflect the silent-during-run behavior.

The wire protocol, exit codes, and CLI flags are unchanged. Sample outputs and rationale: see `docs/superpowers/specs/2026-05-24-cli-run-output-trim-design.md`.

Test plan

  • `npm run build` succeeds (both stages: library entry points and CLI).
  • `npm run test:ci` passes (existing 26 tests untouched).
  • Manual smoke against an example app's Vite dev server: green run produces only `Connected to ...` + `Running N test(s)...` + the indented summary block. Exit code 0.
  • Manual smoke with one synthetic failing test: summary block ends with the indented `Failed tests (1):` section showing `× > ` and the multi-line error preserved. Exit code 1.

🤖 Generated with Claude Code

Reduces token cost for AI consumers of `npx twd-relay run`. The CLI now
prints the connect line plus a single end-of-run summary block (with
failure details when failures exist) — no per-test RUN/PASS/SKIP lines,
no inline FAIL lines. The wire protocol and exit codes are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kevinccbsg kevinccbsg force-pushed the feat/cli-run-output-trim branch from 4e9286b to b251e0f Compare May 25, 2026 08:35
@kevinccbsg kevinccbsg merged commit c878d08 into main May 25, 2026
5 checks passed
@kevinccbsg kevinccbsg deleted the feat/cli-run-output-trim branch May 25, 2026 11:33
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