Skip to content

feat(tools): structured intervals.icu workout serializer#36

Merged
yerzhansa merged 1 commit into
mainfrom
feat/intervals-workout-serializer
Apr 16, 2026
Merged

feat(tools): structured intervals.icu workout serializer#36
yerzhansa merged 1 commit into
mainfrom
feat/intervals-workout-serializer

Conversation

@yerzhansa

Copy link
Copy Markdown
Owner

Summary

  • intervals_create_workout now accepts a structured workout object (name + ordered steps) instead of free-form name/movingTime/description fields.
  • New src/cycling/intervals-serializer.ts converts the structured shape into the intervals.icu native description syntax so the power chart renders in the app.
  • skills/workout-design.md + skills/intervals-icu.md updated with the new mapping and examples (sweet spot, Z2 endurance, VO2max).

Test plan

  • `npm test` — new `tests/intervals-serializer.test.ts` covers simple/ramp/set/validation cases; 85/85 pass
  • `npm run check` — typecheck + lint clean
  • After merge: send a /workout via Telegram, confirm the power chart renders in intervals.icu

Replace the free-form description field on intervals_create_workout with
a structured steps shape. The tool now serializes steps into the
intervals.icu native syntax so the power chart renders in the app.
@yerzhansa yerzhansa merged commit 526fb21 into main Apr 16, 2026
1 check passed
@yerzhansa yerzhansa deleted the feat/intervals-workout-serializer branch April 16, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant