Merged
Conversation
…ample to help. Added new claude output pattern.
- Add activity_spinner_unknown for unknown activity states - Add task_todos_unknown for unknown task states - Place catch-all patterns LAST in profile for lowest priority - Known states match specific patterns, unknown states caught gracefully - Future Claude Code changes will show as [*-unknown:...] in output This follows the pattern structure: [prefix](esc to interrupt[INTERMEDIATE])[suffix] Where intermediate content varies but prefix/suffix are fixed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add -u flag to all Python commands for unbuffered I/O - Set PYTHONUNBUFFERED=1 environment variable for all pipeline processes - Ensures output file is updated in real-time during session - Prevents data being buffered until TUI closes Python uses full buffering when stdout is a pipe, causing output to be delayed until buffer fills or process exits. Using -u flag and PYTHONUNBUFFERED env var forces unbuffered/line-buffered I/O for immediate output. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Update tests for 'run' → 'into' command rename and new output_file parameter: - test_cli.py: Update all command invocations to use 'into' with output files - test_coverage_gaps.py: Add output_file parameter to build_script_command tests - test_oracle.py: Add output_file parameter to run_tui_with_pipeline tests - test_integration.py: Fix command_line parameter and add output_file Tests now pass: 277/282 (5 remaining failures are doc line length issues) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Validate profile against available profiles before running - Show clear error message with available profiles - Exit immediately with code 1 on invalid profile - Fixes test_cli.py::test_run_command_invalid_profile Error message example: Error: Profile 'nonexistent' not found. Available profiles: claude_code, generic, minimal Use 'tui-delta list-profiles' to see descriptions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Shorten example commands to fit within 80 character limit: - quick-start.md: Use shorter example (echo instead of printf) - ai-assistants.md: Simplify date format in timestamped filename - custom-profiles.md: Use shorter file and profile names - cli.md: Use shorter output filename All 282 tests now pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add --stage-outputs option documentation to CLI reference - Document decode-escapes command with usage examples - Add debugging section to quick start guide - Add stage outputs debugging guide to custom profiles - Explain stage naming convention and use cases 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
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.
This pull request introduces a major update to the tui-delta CLI and documentation, replacing the
runcommand with a newintocommand that writes processed TUI output directly to a specified file or named pipe. The documentation has been thoroughly revised to reflect this change, clarify usage patterns, and add advanced debugging and post-processing workflows. Additionally, the CLI reference now documents a newdecode-escapescommand for interpreting terminal escape sequences in logs. Several patterns for capturing, filtering, and analyzing session logs are now demonstrated using named pipes for real-time post-processing.The most important changes are:
CLI Command Redesign and Enhancements
runcommand withintothroughout the codebase and documentation. The newintocommand writes processed deltas to a file or named pipe, enabling more robust logging and post-processing workflows. The CLI help and argument structure were updated accordingly (src/tui_delta/cli.py, all documentation). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]decode-escapescommand to the CLI, allowing users to convert raw escape sequences in output logs to human-readable markers for easier debugging and analysis. Comprehensive documentation and usage examples were added.Documentation Overhaul and Usage Patterns
intoinstead ofrun, with examples for logging, post-processing via named pipes, and advanced workflows such as real-time filtering and searching. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]--stage-outputsoption, showing how to inspect intermediate files and decode escape sequences for troubleshooting and custom profile development. [1] [2] [3]Improved Log and Output Handling
sed,ansifilter), and for real-time log analysis with tools likeless,grep, andloggerwithout interfering with TUI display. [1] [2] [3] [4] [5]Testing and Maintenance
docs/conftest.py)check-added-large-filesto 10MB. (.pre-commit-config.yaml)This update modernizes tui-delta's workflow, making it more flexible for advanced logging, debugging, and integration with external tools.