@trainheroic-unofficial/athlete-mcp 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/server.mjs +7 -1
  2. package/package.json +3 -3
package/dist/server.mjs CHANGED
@@ -715,6 +715,12 @@ const exerciseSpecSchema = z.object({
715
715
  instr: z.string().optional(),
716
716
  param_1_type: z.number().optional(),
717
717
  param_2_type: z.number().optional()
718
+ }).superRefine((exercise, ctx) => {
719
+ if (Array.isArray(exercise.reps) && Array.isArray(exercise.weight) && exercise.reps.length !== exercise.weight.length) ctx.addIssue({
720
+ code: "custom",
721
+ message: `Per-set reps and weight arrays must have the same length; received ${exercise.reps.length} reps and ${exercise.weight.length} weights.`,
722
+ path: ["weight"]
723
+ });
718
724
  });
719
725
  /** A block's Red-Zone leaderboard: a unit string/number, or an object with options. */
720
726
  const leaderboardSpecSchema = z.union([
@@ -2759,7 +2765,7 @@ function registerAthleteTrainingTools(server, ctx) {
2759
2765
  }
2760
2766
  //#endregion
2761
2767
  //#region package.json
2762
- var version = "3.5.0";
2768
+ var version = "3.5.1";
2763
2769
  //#endregion
2764
2770
  //#region src/server.ts
2765
2771
  function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/athlete-mcp",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@modelcontextprotocol/server": "2.0.0",
23
23
  "zod": "^4.4.3",
24
- "@trainheroic-unofficial/core": "3.5.0",
25
- "@trainheroic-unofficial/js": "3.5.0"
24
+ "@trainheroic-unofficial/core": "3.5.1",
25
+ "@trainheroic-unofficial/js": "3.5.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.3.0",