Skip to content

v0.8.2 - Multi-Language Error Parsing & Context Summary

Choose a tag to compare

@thinmanj thinmanj released this 09 Jan 01:50
· 67 commits to master since this release

πŸŽ‰ 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.py

Features:

  • 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