๐จ Breaking Changes
- Package Name Change: Renamed from
claude-usage-monitor
toclaude-monitor
- New installation:
pip install claude-monitor
oruv tool install claude-monitor
- New command aliases:
claude-monitor
andcmonitor
- New installation:
- Python Requirement: Minimum Python version raised from 3.8 to 3.9
- Architecture Overhaul: Complete rewrite from single-file to modular package structure
- Entry Point Changes: Module execution now via
claude_monitor.__main__:main
๐๏ธ Complete Architectural Restructuring
- ๐ Professional Package Layout: Migrated to
src/claude_monitor/
structure with proper namespace isolation- Replaced single
claude_monitor.py
file with comprehensive modular architecture - Implemented clean separation of concerns across 8 specialized modules
- Replaced single
- ๐ง Modular Design: New package organization:
cli/
- Command-line interface and bootstrap logiccore/
- Business logic, models, settings, calculations, and pricingdata/
- Data management, analysis, and reading utilitiesmonitoring/
- Real-time session monitoring and orchestrationui/
- User interface components, layouts, and display controllersterminal/
- Terminal management and theme handlingutils/
- Formatting, notifications, timezone, and model utilities
- โก Enhanced Performance: Optimized data processing with caching, threading, and efficient session management
๐จ Rich Terminal UI System
- ๐ซ Rich Integration: Complete UI overhaul using Rich library for professional terminal interface
- Advanced progress bars with semantic color coding (๐ข๐ก๐ด)
- Responsive layouts with proper terminal width handling (80+ characters required)
- Enhanced typography and visual hierarchy
- ๐ Improved Theme System: Enhanced automatic theme detection with better contrast ratios
- ๐ Advanced Display Components: New progress visualization with burn rate indicators and time-based metrics
๐ Type Safety and Validation
- ๐ก๏ธ Pydantic Integration: Complete type safety implementation
- Comprehensive settings validation with user-friendly error messages
- Type-safe data models (
UsageEntry
,SessionBlock
,TokenCounts
) - CLI parameter validation with detailed feedback
- โ๏ธ Smart Configuration: Pydantic-based settings with last-used parameter persistence
- ๐ Enhanced Error Handling: Centralized error management with optional Sentry integration
๐ Advanced Analytics Features
- ๐งฎ P90 Percentile Calculations: Machine learning-inspired usage prediction and limit detection
- ๐ Smart Plan Detection: Auto-detection of Claude plan limits with custom plan support
- โฑ๏ธ Real-time Monitoring: Enhanced session tracking with threading and callback systems
- ๐ก Intelligent Insights: Advanced burn rate calculations and velocity indicators
๐ง Developer Experience Improvements
- ๐ Modern Build System: Migrated from Hatchling to Setuptools with src layout
- ๐งช Comprehensive Testing: Professional test infrastructure with pytest and coverage reporting
- ๐ Enhanced Documentation: Updated troubleshooting guide with v3.0.0-specific solutions
- ๐ CI/CD Reactivation: Restored and enhanced GitHub Actions workflows:
- Multi-Python version testing (3.9-3.12)
- Automated linting with Ruff
- Trusted PyPI publishing with OIDC
- Automated version bumping and changelog management
๐ฆ Dependency and Packaging Updates
- ๐ Core Dependencies Added:
pydantic>=2.0.0
&pydantic-settings>=2.0.0
- Type validation and settingsnumpy>=1.21.0
- Advanced calculationssentry-sdk>=1.40.0
- Optional error trackingpyyaml>=6.0
- Configuration file support
- โฌ๏ธ Dependency Upgrades:
rich
:>=13.0.0
โ>=13.7.0
- Enhanced UI featurespytz
: No constraint โ>=2023.3
- Improved timezone handling
- ๐ ๏ธ Development Tools: Expanded with MyPy, Bandit, testing frameworks, and documentation tools
๐ฏ Enhanced User Features
- ๐๏ธ Flexible Configuration: Support for auto-detection, manual overrides, and persistent settings
- ๐ Improved Timezone Handling: Enhanced timezone detection and validation
- โก Performance Optimizations: Faster startup times and reduced memory usage
- ๐ Smart Notifications: Enhanced feedback system with contextual messaging
๐ง Installation and Compatibility
- ๐ Installation Method Updates: Full support for
uv
,pipx
, and traditional pip installation - ๐ง Platform Compatibility: Enhanced support for modern Linux distributions with externally-managed environments
- ๐ฃ๏ธ Migration Path: Automatic handling of legacy configurations and smooth upgrade experience
๐ Technical Implementation Details
- ๐ข Professional Architecture: Implementation of SOLID principles with single responsibility modules
- ๐ Async-Ready Design: Threading infrastructure for real-time monitoring capabilities
- ๐พ Efficient Data Handling: Optimized JSONL parsing with error resilience
- ๐ Security Enhancements: Secure configuration handling and optional telemetry integration