feat(cli): aligned prefixes, colors, spinner, noise filtering#252
Merged
Conversation
…ering Align stderr prefixes between cocoindex ([vectors]) and graph builder ([graph]) stages. Add TTY-aware ANSI styling (bold, cyan, green, red) for phase tags and success/failure markers. Add braille spinner animation during cocoindex phase. Filter known noise lines (lance::, FutureWarning, Loading weights:, brownfield events). Add --verbose/--quiet flags for three-tier output: default (filtered+styled), --verbose (raw), --quiet (silent). Add styled ✓/✗ completion lines for both vectors and graph stages emitted from the parent process so colors work with piped stderr. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Extract shared noise detection (_NOISE_CONTAINS + is_noise_line) into cli_format.py; remove duplicated _LineFilter/_AsyncLineFilter logic - Fix runtime NameError: styled_cross was used but not imported in pipeline.py run_build_ast_graph - Rename _popen_stream_to_stderr -> _popen_capturing_stderr (no longer relays stdout) - Remove unused styled_tag, dead _NOISE_PREFIXES, self-referential CHECK/CROSS comments - Use ANSI erase-line (\x1b[2K) in Spinner.stop() instead of hardcoded 72-char clear - Drop --verbose from erase subcommand (it has no subprocess phases) - Add three-tier comment on verbose/quiet logic in run_build_ast_graph - Add missing ## Common navigation patterns heading in SKILL.md to fix pre-existing CI failure from PR #230 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
ddf0410 to
9c0b9ee
Compare
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
[vectors]) and graph builder ([graph]) stages for consistent output--verbose(raw output) /--quiet(silent stderr) flags for three-tier output modelOutput design
Default (TTY): Colored tags + spinner + filtered
Pipe/CI: Same text, no ANSI codes, no spinner
--verbose: Raw unfiltered output--quiet: Nothing on stderrTest plan
pytest tests/test_cli_quiet_parity.py tests/test_cli_progress_stdout_invariant.py tests/test_java_codebase_rag_cli.py— 52 passed, 3 skippedruff checkpassesjava-codebase-rag init --source-root <repo> --index-dir /tmp/test— verify colors, spinner, aligned prefixesjava-codebase-rag init --quiet— verify silent stderrjava-codebase-rag init --verbose— verify raw unfiltered outputjava-codebase-rag init 2>&1 | cat— verify no ANSI codes in pipe🤖 Generated with Claude Code