@trainheroic-unofficial/athlete-mcp 3.1.0 → 3.1.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.
- package/dist/server.mjs +13 -2
- package/package.json +3 -3
package/dist/server.mjs
CHANGED
|
@@ -287,6 +287,17 @@ const programWorkoutResponseSchema = z.looseObject({
|
|
|
287
287
|
sets: z.record(z.string(), z.unknown()).optional()
|
|
288
288
|
});
|
|
289
289
|
z.looseObject({ programWorkouts: z.array(programWorkoutResponseSchema).optional() });
|
|
290
|
+
z.looseObject({
|
|
291
|
+
id: intLike,
|
|
292
|
+
title: z.string(),
|
|
293
|
+
programId: intLike,
|
|
294
|
+
group_program: intLike,
|
|
295
|
+
type: intLike,
|
|
296
|
+
program: z.looseObject({
|
|
297
|
+
id: intLike,
|
|
298
|
+
program_type: intLike
|
|
299
|
+
}).optional()
|
|
300
|
+
});
|
|
290
301
|
//#endregion
|
|
291
302
|
//#region ../dto/src/workout.ts
|
|
292
303
|
/** A single exercise prescription inside a block. */
|
|
@@ -699,7 +710,7 @@ var TrainHeroicClient = class {
|
|
|
699
710
|
session = await this.#ensureSession();
|
|
700
711
|
res = await this.#send(method, url, session, options.body);
|
|
701
712
|
}
|
|
702
|
-
if (!res.ok) notifyHttpError(this.#onHttpError, method, url, res.status);
|
|
713
|
+
if (!res.ok && !options.expectedStatuses?.includes(res.status)) notifyHttpError(this.#onHttpError, method, url, res.status);
|
|
703
714
|
const text = await res.text();
|
|
704
715
|
let data = text;
|
|
705
716
|
if (text.length > 0) try {
|
|
@@ -2143,7 +2154,7 @@ function registerAthleteTrainingTools(server, ctx) {
|
|
|
2143
2154
|
}
|
|
2144
2155
|
//#endregion
|
|
2145
2156
|
//#region package.json
|
|
2146
|
-
var version = "3.1.
|
|
2157
|
+
var version = "3.1.1";
|
|
2147
2158
|
//#endregion
|
|
2148
2159
|
//#region src/server.ts
|
|
2149
2160
|
function main() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trainheroic-unofficial/athlete-mcp",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.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.1.
|
|
25
|
-
"@trainheroic-unofficial/js": "3.1.
|
|
24
|
+
"@trainheroic-unofficial/core": "3.1.1",
|
|
25
|
+
"@trainheroic-unofficial/js": "3.1.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^26.2.0",
|