mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
mapCycle now emits AVERAGE_HEART_RATE and MAX_HEART_RATE from the cycle score's average_heart_rate / max_heart_rate — both were already on the typed WhoopCycle interface but dropped on the floor. mapSleep now reads stage_summary.disturbance_count (added to the WhoopSleep interface) and emits SLEEP_DISTURBANCE_COUNT. All three guard nulls / unscored records and carry distinct field tags (avg_hr / max_hr / disturbances) so they don't collide with the existing strain / energy / stage rows under the shared resource externalId. Update mapping.md to document the three and note the cycle HR pair were previously fetched-but-dropped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>