What
The examples/ directory has quickstart.ts, analyze.ts, and training.ts but no example showing the WorkoutEngine executing a protocol with real-time step tracking.
Where
- New example:
examples/workout.ts
- Add script to:
examples/package.json
How
- Use
MockTransport for a Tabata protocol
- Show
WorkoutEngine step progression and target compliance events
- Make it runnable via
pnpm --filter @hrkit/examples workout
Acceptance Criteria
What
The
examples/directory hasquickstart.ts,analyze.ts, andtraining.tsbut no example showing the WorkoutEngine executing a protocol with real-time step tracking.Where
examples/workout.tsexamples/package.jsonHow
MockTransportfor a Tabata protocolWorkoutEnginestep progression and target compliance eventspnpm --filter @hrkit/examples workoutAcceptance Criteria