github Maciek-roboblog/Claude-Code-Usage-Monitor v3.0.3
Release v3.0.3

latest releases: v3.1.0, v3.0.4
one month ago

๐Ÿšจ Breaking Changes

  • Package Name Change: Renamed from claude-usage-monitor to claude-monitor
    • New installation: pip install claude-monitor or uv tool install claude-monitor
    • New command aliases: claude-monitor and cmonitor
  • 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
  • ๐Ÿ”ง Modular Design: New package organization:
    • cli/ - Command-line interface and bootstrap logic
    • core/ - Business logic, models, settings, calculations, and pricing
    • data/ - Data management, analysis, and reading utilities
    • monitoring/ - Real-time session monitoring and orchestration
    • ui/ - User interface components, layouts, and display controllers
    • terminal/ - Terminal management and theme handling
    • utils/ - 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 settings
    • numpy>=1.21.0 - Advanced calculations
    • sentry-sdk>=1.40.0 - Optional error tracking
    • pyyaml>=6.0 - Configuration file support
  • โฌ†๏ธ Dependency Upgrades:
    • rich: >=13.0.0 โ†’ >=13.7.0 - Enhanced UI features
    • pytz: 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

Don't miss a new Claude-Code-Usage-Monitor release

NewReleases is sending notifications on new releases.