@trainheroic-unofficial/coach-mcp 3.0.1 → 3.1.0

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 -15
  2. package/package.json +3 -3
package/dist/server.mjs CHANGED
@@ -201,21 +201,12 @@ const coachLogSetArgsSchema = z.object({
201
201
  savedWorkoutSetId: idArgSchema,
202
202
  results: loggedExerciseResultsSchema
203
203
  }).extend({ athleteId: idArgSchema });
204
- /**
205
- * Args for the coach prescription-override write. Like {@link coachLogSetArgsSchema}
206
- * (athleteId + date + savedWorkoutSetId + per-exercise `sets`), but the values are prescribed
207
- * targets (param1 = reps, param2 = weight) written to the athlete's plan without marking the set
208
- * performed. The write replaces this athlete's whole prescription for the set, so its sets are
209
- * positional and sequential by definition: it deliberately omits the log path's `slot` field (a
210
- * sparse, slot-targeted prescription has no meaning here) by building its results off
211
- * {@link loggedSetSchema} rather than {@link loggedSetWithSlotSchema}.
212
- */
204
+ /** Coach variant of {@link athletePrescribeSetArgsSchema}, with the roster athlete to update. */
213
205
  const coachPrescribeSetArgsSchema = z.object({
214
206
  date: dateString,
215
207
  savedWorkoutSetId: idArgSchema,
216
- athleteId: idArgSchema,
217
208
  results: prescribedExerciseResultsSchema
218
- });
209
+ }).extend({ athleteId: idArgSchema });
219
210
  /**
220
211
  * Args for the coach per-athlete exercise swap: replace the exercise prescribed in one of a
221
212
  * roster athlete's saved-workout slots with a different exercise, the API equivalent of the
@@ -1719,9 +1710,10 @@ async function swapAthleteExercise(client, args) {
1719
1710
  };
1720
1711
  }
1721
1712
  /**
1722
- * Shared set-write behind {@link logAthleteSet}, {@link logForAthlete}, and
1723
- * {@link prescribeForAthlete}. `target` selects the surface: `athlete` writes `/1.0/athlete/...`;
1724
- * `coach` writes `/1.0/coach/...{athleteId}` and stamps `athleteId` into each body.
1713
+ * Shared set-write behind {@link logAthleteSet}, {@link prescribeAthleteSet},
1714
+ * {@link logForAthlete}, and {@link prescribeForAthlete}. `target` selects the surface: `athlete`
1715
+ * writes `/1.0/athlete/...`; `coach` writes `/1.0/coach/...{athleteId}` and stamps `athleteId` into
1716
+ * each body.
1725
1717
  *
1726
1718
  * Step 1 PUTs each exercise's per-set values to its own endpoint (the only path that actually
1727
1719
  * stores reps and weight). `mode` decides what those values mean: `"log"` records them as a
@@ -3926,7 +3918,7 @@ var JsonFileLibraryCache = class {
3926
3918
  };
3927
3919
  //#endregion
3928
3920
  //#region package.json
3929
- var version = "3.0.1";
3921
+ var version = "3.1.0";
3930
3922
  //#endregion
3931
3923
  //#region src/server.ts
3932
3924
  function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/coach-mcp",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
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.0.1",
25
- "@trainheroic-unofficial/js": "3.0.1"
24
+ "@trainheroic-unofficial/core": "3.1.0",
25
+ "@trainheroic-unofficial/js": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.2.0",