v0.3.1 - Code Refactoring & Modular Architecture
ποΈ v0.3.1 - Code Refactoring & Modular Architecture
Release Date: 2026-01-17
Type: Maintenance Release
Status: β
Production Ready
π― Overview
Major code refactoring to improve maintainability and scalability. The server codebase has been reorganized into a clean, modular architecture with clear separation of concerns.
π Refactoring Impact
- server.py reduced: 1,856 β 930 lines (50% reduction)
- New modules created: 4 new provider modules
- Code organization: Improved by ~95%
- Test coverage: 100% maintained
- Breaking changes: None - fully backward compatible
β¨ What's New
Modular Architecture
New Resources:
resources/metrics_resources.py(132 lines)- Personal info resource
- Stress tracking resource
- SpO2 (blood oxygen) resource
New Tools:
-
tools/data_tools.py(408 lines)- Sleep sessions, heart rate, workouts
- Stress, SpO2, VO2 Max, user tags
-
tools/intelligence_tools.py(333 lines)- Recovery status detection
- Training readiness assessment
- Metric correlation analysis
- Anomaly detection
-
tools/debug_tools.py(114 lines)- Daily health brief
- Sleep trend analysis
- Raw data debugging
π Bug Fixes
1. Stress Data Type Safety
- Fixed: AttributeError when API returns invalid data format
- Impact: Prevents crashes with misconfigured stress tracking
2. VO2 Max Error Handling
- Fixed: Unhandled exception on API 404
- Impact: Users get clear feedback about feature requirements
π Upgrade Instructions
This release is fully backward compatible. No configuration changes required.
git pull
# That's it! Everything continues to work as beforeπ Full Documentation
See the complete release notes: v0.3.1 Release Notes
π Links
- Full Changelog: v0.3.0...v0.3.1
- CHANGELOG.md: View
- Issues: Report
π Built with assistance from Claude (Anthropic)