Repository navigation
0.8.0
๐ Release v0.8.0
This release introduces native support for in-progress (active) sleep sessions and improves sleep query indexing, alongside substantial CLI refactorings and test suite enhancements.
๐ In-Progress Sleep Session Support (#64)
- Active Sleep Deserialization:
SessionTimeInterval.end_time,OutOfBedSegment.end_time, andSleepStage.end_timeare now optional (str | None = None), allowing real-time ongoing sleep sessions (whereendTimeisnull) to be deserialized without type errors. is_in_progressProperty: AddedSleep.is_in_progresshelper property to easily detect whether a sleep session is actively ongoing.- Query Indexing Fix: Updated
SLEEPDataTypetime filter path tosleep.interval.start_time. Queries viaapi.sleep.list(start_time=...)now return both completed and currently active sleep sessions.
๐ ๏ธ CLI Refactoring & Test Infrastructure
- Modular CLI Architecture: Refactored CLI commands and subcommands into structured submodules.
- Aiohttp Integration Testing: Upgraded CLI tests to execute against a live
aiohttpmock server rather than relying on monkeypatching. - Agent & Human DX: Enhanced dry-run execution, raw JSON payload handling, and field masking across all 36 supported Google Health API data types.
What's Changed
- feat(sleep): support in-progress sleep sessions and query filtering by start_time (#64) by @allenporter in #66
- refactor: Split CLI commands and tests into modular submodules by @allenporter in #60
- test: Migrate CLI subcommand tests to use real SDK and aiohttp test server by @allenporter in #62
- Toolchain & dependency updates (Ruff, Cruft) by @allenporter and @renovate[bot]
Full Changelog: 0.7.0...0.8.0