Repository navigation
v0.8.2 - Multi-Language Error Parsing & Context Summary
π v0.8.2 - Multi-Language Error Parsing & Context Summary
β¨ Multi-Language Error Parsing
The debug command now supports 5 programming languages with automatic detection:
- Python: Enhanced traceback parsing (existing)
- JavaScript/TypeScript: Parse stack traces with
at func (file.js:line:col)format - Go: Parse panic traces with goroutine information
- Rust: Parse panic messages with precise file locations
- Java: Parse exception stack traces with full class paths
# Works with all languages automatically
python broken.py 2>&1 | cdc debug --auto-context # Python
node app.js 2>&1 | cdc debug --auto-context # JavaScript/TypeScript
go run main.go 2>&1 | cdc debug --auto-context # Go
cargo run 2>&1 | cdc debug --auto-context # Rust
java Main 2>&1 | cdc debug --auto-context # Javaπ Context Summary Command
Preview context before making expensive API calls:
cdc context summary mymodule.pyFeatures:
- Rich table showing Type, Content, Size, Lines, Truncated status
- Estimated token count (~chars / 4)
- Total statistics across all context items
- Truncation warnings when size limits are hit
- Toggle options:
--include-git,--include-deps,--include-tests - Perfect for estimating costs before API calls
π§ Enhanced Error Context
detect_language(): Auto-identify programming language from error format- Language-specific parsers optimized for each language
- Column numbers for JavaScript, TypeScript, Rust errors
format_for_ai()includes language identification- Backward compatible with existing Python error parsing
π Testing
- Added 11 new tests for multi-language parsing
- Language detection tests for all 5 languages
- Parser validation with realistic error examples
- 218 total tests passing (from 207)
π¦ Installation
pip install --upgrade claude-dev-cliπ Documentation
π Credits
Built with Warp AI