@trainheroic-unofficial/core 3.6.0 → 3.7.2

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/index.d.mts CHANGED
@@ -2,33 +2,33 @@ import { CallToolResult, InputRequiredResult, McpServer, ServerContext } from "@
2
2
  import { ClientResult, ExerciseIndex, RequestOptions, SessionExercise, TrainHeroicClient } from "@trainheroic-unofficial/js";
3
3
  //#region src/context.d.ts
4
4
  /** What a tool handler may return: a finished result or an MRTR input round. */
5
- type ToolHandlerResult = CallToolResult | InputRequiredResult;
5
+ export type ToolHandlerResult = CallToolResult | InputRequiredResult;
6
6
  /** A tool argument that accepts a numeric id as a number or a string of digits. */
7
- declare const idParam: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
8
- declare function toId(value: string | number): number;
9
- declare const READ: {
7
+ export declare const idParam: import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>;
8
+ export declare function toId(value: string | number): number;
9
+ export declare const READ: {
10
10
  readonly readOnlyHint: true;
11
11
  readonly destructiveHint: false;
12
12
  readonly openWorldHint: false;
13
13
  };
14
- declare const ADDITIVE: {
14
+ export declare const ADDITIVE: {
15
15
  readonly readOnlyHint: false;
16
16
  readonly destructiveHint: false;
17
17
  readonly openWorldHint: false;
18
18
  };
19
- declare const SYNC: {
19
+ export declare const SYNC: {
20
20
  readonly readOnlyHint: false;
21
21
  readonly idempotentHint: true;
22
22
  readonly destructiveHint: false;
23
23
  readonly openWorldHint: false;
24
24
  };
25
- declare const DESTRUCTIVE: {
25
+ export declare const DESTRUCTIVE: {
26
26
  readonly readOnlyHint: false;
27
27
  readonly destructiveHint: true;
28
28
  readonly openWorldHint: false;
29
29
  };
30
30
  /** Everything a tool handler needs: the authenticated client and the exercise index. */
31
- type ToolContext = {
31
+ export type ToolContext = {
32
32
  client: TrainHeroicClient;
33
33
  index: ExerciseIndex;
34
34
  };
@@ -37,16 +37,16 @@ type ToolContext = {
37
37
  * only ever produces a `CallToolResult` keeps that narrower type instead of widening to the
38
38
  * MRTR union — that is what lets `apiCall` delegate here rather than repeat this catch.
39
39
  */
40
- declare function attempt<T extends ToolHandlerResult>(fn: () => Promise<T>): Promise<T | CallToolResult>;
40
+ export declare function attempt<T extends ToolHandlerResult>(fn: () => Promise<T>): Promise<T | CallToolResult>;
41
41
  /** Conservative per-result character cap, below the smallest host cap. */
42
- declare const DEFAULT_RESULT_BUDGET = 60000;
42
+ export declare const DEFAULT_RESULT_BUDGET = 60000;
43
43
  /**
44
44
  * Clip an array to its first `keep` items and attach the `__truncated` marker describing what was
45
45
  * dropped. Every budget fallback that trims a list uses this envelope (`{ items, __truncated }`),
46
46
  * including in-place object-array truncation (the sliced array becomes `items` and `field` names
47
47
  * the original key). `athlete_exercises` uses the same helper for a client-side catalog cap.
48
48
  */
49
- declare function clipArray<T>(items: readonly T[], keep: number, hint?: string, field?: string): {
49
+ export declare function clipArray<T>(items: readonly T[], keep: number, hint?: string, field?: string): {
50
50
  items: T[];
51
51
  __truncated: {
52
52
  field?: string;
@@ -57,24 +57,24 @@ declare function clipArray<T>(items: readonly T[], keep: number, hint?: string,
57
57
  };
58
58
  };
59
59
  /** Active budget. Overridable via TH_MCP_RESULT_BUDGET on Node; the default on workerd. */
60
- declare function resultBudget(): number;
60
+ export declare function resultBudget(): number;
61
61
  /**
62
62
  * Serialize `data` within `budget` characters. Small JSON results are pretty-printed and small
63
63
  * strings remain plain text. Oversized values become valid JSON truncation envelopes.
64
64
  */
65
- declare function boundedSerialize(data: unknown, budget: number, hint?: string): string;
65
+ export declare function boundedSerialize(data: unknown, budget: number, hint?: string): string;
66
66
  /** Per-tool guidance threaded into the truncation marker when a result is too large. */
67
- type BudgetHint = {
67
+ export type BudgetHint = {
68
68
  hint?: string | undefined;
69
69
  };
70
70
  /** A successful tool result carrying JSON (or text) for the model, size-bounded. */
71
- declare function jsonResult(data: unknown, opts?: BudgetHint): CallToolResult;
71
+ export declare function jsonResult(data: unknown, opts?: BudgetHint): CallToolResult;
72
72
  /** A tool-level error: returned in-band (isError) so the model can self-correct. */
73
- declare function errorResult(message: string): CallToolResult;
73
+ export declare function errorResult(message: string): CallToolResult;
74
74
  /** Format an already-issued TrainHeroic response as a size-bounded tool result. */
75
- declare function apiResponseResult(res: ClientResult, hint?: string): CallToolResult;
75
+ export declare function apiResponseResult(res: ClientResult, hint?: string): CallToolResult;
76
76
  /** Issue a TrainHeroic request and format the outcome as a tool result. */
77
- declare function apiCall(ctx: ToolContext, method: string, path: string, options?: RequestOptions, hint?: string): Promise<CallToolResult>;
77
+ export declare function apiCall(ctx: ToolContext, method: string, path: string, options?: RequestOptions, hint?: string): Promise<CallToolResult>;
78
78
  //#endregion
79
79
  //#region src/confirm.d.ts
80
80
  /**
@@ -82,7 +82,7 @@ declare function apiCall(ctx: ToolContext, method: string, path: string, options
82
82
  * refusal is the answer. (The `confirm: true` fallback for clients that cannot elicit is
83
83
  * advertised in each gated tool's description, which is where a model looks before calling.)
84
84
  */
85
- declare const NOT_CONFIRMED = "Not confirmed — the user declined. Nothing was changed.";
85
+ export declare const NOT_CONFIRMED = "Not confirmed — the user declined. Nothing was changed.";
86
86
  /**
87
87
  * Confirm a destructive/athlete-facing action.
88
88
  *
@@ -98,11 +98,11 @@ declare const NOT_CONFIRMED = "Not confirmed — the user declined. Nothing was
98
98
  * confirmation message ever needs data fetched first, that fetch must be idempotent.
99
99
  *
100
100
  * Written once in the 2026 `inputRequired` style: modern clients retry with `inputResponses`.
101
- * A client that cannot elicit at all never reaches the denial below — the SDK rejects the
102
- * request before the retry — so it must pass `confirm: true`, which is why the hint rides inside
103
- * the prompt text itself.
101
+ * MCP correctly rejects unsupported embedded requests with `-32021`. This application has an
102
+ * alternate `confirm: true` flow, so a modern client that does not declare form elicitation gets
103
+ * a model-readable tool error that tells it how to recover while the gate remains closed.
104
104
  */
105
- declare function confirmGate(ctx: ServerContext, message: string, confirmArg: boolean | undefined): ToolHandlerResult | undefined;
105
+ export declare function confirmGate(ctx: ServerContext, message: string, confirmArg: boolean | undefined): ToolHandlerResult | undefined;
106
106
  //#endregion
107
107
  //#region src/instructions.d.ts
108
108
  /**
@@ -113,14 +113,14 @@ declare function confirmGate(ctx: ServerContext, message: string, confirmArg: bo
113
113
  * descriptions here reference each other by name to drive correct chaining, which primes that
114
114
  * leak further. This tells the host to keep that wiring internal and speak in app terms.
115
115
  */
116
- declare const SERVER_INSTRUCTIONS: string;
116
+ export declare const SERVER_INSTRUCTIONS: string;
117
117
  //#endregion
118
118
  //#region src/tools/reads.d.ts
119
- declare function registerReadTools(server: McpServer, ctx: ToolContext): void;
119
+ export declare function registerReadTools(server: McpServer, ctx: ToolContext): void;
120
120
  //#endregion
121
121
  //#region src/tools/main-lifts.d.ts
122
122
  /** Coach main-lift PR reads: one athlete, or the whole roster at once. */
123
- declare function registerMainLiftTools(server: McpServer, ctx: ToolContext): void;
123
+ export declare function registerMainLiftTools(server: McpServer, ctx: ToolContext): void;
124
124
  //#endregion
125
125
  //#region src/tools/athlete-training.d.ts
126
126
  /**
@@ -128,11 +128,11 @@ declare function registerMainLiftTools(server: McpServer, ctx: ToolContext): voi
128
128
  * context than the coach tools. A full `ToolContext` also satisfies this, so the same ctx
129
129
  * object can be passed.
130
130
  */
131
- type AthleteContext = {
131
+ export type AthleteContext = {
132
132
  client: TrainHeroicClient;
133
133
  };
134
134
  /** Map validated logSession exercises to the SDK's SessionExercise[] (ids coerced, slots trimmed). */
135
- declare function mapSessionExercises(exercises: ReadonlyArray<{
135
+ export declare function mapSessionExercises(exercises: ReadonlyArray<{
136
136
  exerciseId: number | string;
137
137
  order?: number | undefined;
138
138
  sets: ReadonlyArray<{
@@ -145,7 +145,7 @@ declare function mapSessionExercises(exercises: ReadonlyArray<{
145
145
  * PRs, working maxes), plus a gated set-logging write. The athlete user id is
146
146
  * resolved once from /user/simple and reused across tools.
147
147
  */
148
- declare function registerAthleteTrainingTools(server: McpServer, ctx: AthleteContext): void;
148
+ export declare function registerAthleteTrainingTools(server: McpServer, ctx: AthleteContext): void;
149
149
  //#endregion
150
150
  //#region src/tools/athletes.d.ts
151
151
  /**
@@ -155,22 +155,22 @@ declare function registerAthleteTrainingTools(server: McpServer, ctx: AthleteCon
155
155
  * validate the address (POST /v5/emails/validate), then inviteToTeam
156
156
  * (POST /v5/athletes/inviteToTeam). Both act on the live account, so the invite is gated.
157
157
  */
158
- declare function registerAthleteTools(server: McpServer, ctx: ToolContext): void;
158
+ export declare function registerAthleteTools(server: McpServer, ctx: ToolContext): void;
159
159
  //#endregion
160
160
  //#region src/tools/teams.d.ts
161
161
  /**
162
162
  * Team write tools. The team reads (list_teams, get_team, list_team_codes) live in
163
163
  * reads.ts; this module covers create/rename/delete plus the join-code lifecycle.
164
164
  */
165
- declare function registerTeamTools(server: McpServer, ctx: ToolContext): void;
165
+ export declare function registerTeamTools(server: McpServer, ctx: ToolContext): void;
166
166
  //#endregion
167
167
  //#region src/tools/programs.d.ts
168
168
  /** Standalone program writes. Program reads live in reads.ts. */
169
- declare function registerProgramTools(server: McpServer, ctx: ToolContext): void;
169
+ export declare function registerProgramTools(server: McpServer, ctx: ToolContext): void;
170
170
  //#endregion
171
171
  //#region src/tools/analytics.d.ts
172
172
  /** Analytics report pulls. Read-only despite the POST verb, so ungated. */
173
- declare function registerAnalyticsTools(server: McpServer, ctx: ToolContext): void;
173
+ export declare function registerAnalyticsTools(server: McpServer, ctx: ToolContext): void;
174
174
  //#endregion
175
175
  //#region src/tools/exercises.d.ts
176
176
  /**
@@ -178,18 +178,17 @@ declare function registerAnalyticsTools(server: McpServer, ctx: ToolContext): vo
178
178
  * on-disk/in-memory cache locally. The descriptions stay at the interface level so they
179
179
  * read correctly on both backends.
180
180
  */
181
- declare function registerExerciseTools(server: McpServer, ctx: ToolContext): void;
181
+ export declare function registerExerciseTools(server: McpServer, ctx: ToolContext): void;
182
182
  //#endregion
183
183
  //#region src/tools/workout.d.ts
184
184
  /** Workout building, read-back, publishing, and the session calendar lifecycle. */
185
- declare function registerWorkoutTools(server: McpServer, ctx: ToolContext): void;
185
+ export declare function registerWorkoutTools(server: McpServer, ctx: ToolContext): void;
186
186
  //#endregion
187
187
  //#region src/tools/messaging.d.ts
188
188
  /** Live messaging: list/read conversations, draft a message, and the gated send/delete. */
189
- declare function registerMessagingTools(server: McpServer, ctx: ToolContext): void;
189
+ export declare function registerMessagingTools(server: McpServer, ctx: ToolContext): void;
190
190
  //#endregion
191
191
  //#region src/tools/coach.d.ts
192
192
  /** Register the full coach tool surface (roster, teams, programs, exercises, messaging). */
193
- declare function registerCoachTools(server: McpServer, ctx: ToolContext): void;
194
- //#endregion
195
- export { ADDITIVE, AthleteContext, BudgetHint, DEFAULT_RESULT_BUDGET, DESTRUCTIVE, NOT_CONFIRMED, READ, SERVER_INSTRUCTIONS, SYNC, ToolContext, ToolHandlerResult, apiCall, apiResponseResult, attempt, boundedSerialize, clipArray, confirmGate, errorResult, idParam, jsonResult, mapSessionExercises, registerAnalyticsTools, registerAthleteTools, registerAthleteTrainingTools, registerCoachTools, registerExerciseTools, registerMainLiftTools, registerMessagingTools, registerProgramTools, registerReadTools, registerTeamTools, registerWorkoutTools, resultBudget, toId };
193
+ export declare function registerCoachTools(server: McpServer, ctx: ToolContext): void;
194
+ //#endregion
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { athleteExerciseCatalogOutputSchema, athleteExerciseNoteArgsSchema, athleteExerciseNoteOutputSchema, athleteInviteOutputSchema, athleteMainLiftPrsOutputSchema, athletePrefsSchema, athletePrescribeSetArgsSchema, athleteProfileOutputSchema, athleteSessionRemoveArgsSchema, athleteSessionRemovedOutputSchema, athleteWorkingMaxListSchema, athleteWorkoutNoteArgsSchema, athleteWorkoutNoteObject, athleteWorkoutNoteOutputSchema, athleteWorkoutsOutputSchema, blockSpecSchema, coachAthleteTrainingOutputSchema, coachLogSessionArgsSchema, coachLogSetArgsSchema, coachPrescribeSetArgsSchema, commentDraftSchema, dateString, exerciseCreateSchema, exerciseCreatedOutputSchema, exerciseDeletedOutputSchema, exerciseForgottenOutputSchema, exerciseGetOutputSchema, exerciseHistoryOutputSchema, exerciseResolveOutputSchema, exerciseStatsSchema, exerciseSwapOutputSchema, exerciseViewSchema, idArgSchema, logSessionArgsSchema, logSetArgsSchema, logTargetsOutputSchema, messageDeletedOutputSchema, messageDraftOutputSchema, messageSentOutputSchema, opaqueOutputSchema, parseWorkoutDate, personalRecordListSchema, personalWorkoutCreatedOutputSchema, programCreatedOutputSchema, programDeletedOutputSchema, removedSessionOutputSchema, rosterActivityOutputSchema, sessionLogOutputSchema, sessionTemplateCreateSchema, sessionTemplateCreatedOutputSchema, setLogOutputSchema, setPrescriptionOutputSchema, swapAthleteExerciseArgsSchema, teamPublishPatchObject, teamPublishPatchSchema, teamVolumeOutputSchema, toolOutputSchema, userSimpleSchema, workoutBuildOutputSchema, workoutPublishOutputSchema, workoutReadOutputSchema } from "@trainheroic-unofficial/dto";
2
- import { acceptedContent, inputRequired, inputResponse } from "@modelcontextprotocol/server";
1
+ import { athleteExerciseCatalogOutputSchema, athleteExerciseNoteArgsSchema, athleteExerciseNoteOutputSchema, athleteInviteOutputSchema, athleteMainLiftPrsOutputSchema, athletePrefsSchema, athletePrescribeSetArgsSchema, athleteProfileOutputSchema, athleteSessionRemoveArgsSchema, athleteSessionRemovedOutputSchema, athleteWorkingMaxListSchema, athleteWorkoutNoteArgsSchema, athleteWorkoutNoteObject, athleteWorkoutNoteOutputSchema, athleteWorkoutsOutputSchema, blockSpecSchema, coachAthleteTrainingOutputSchema, coachLogSessionArgsSchema, coachLogSetArgsSchema, coachPrescribeSetArgsSchema, commentDraftSchema, dateString, exerciseCreateSchema, exerciseCreatedOutputSchema, exerciseDeletedOutputSchema, exerciseForgottenOutputSchema, exerciseGetOutputSchema, exerciseHistoryOutputSchema, exerciseResolveOutputSchema, exerciseStatsSchema, exerciseSwapOutputSchema, exerciseUpdateSchema, exerciseViewSchema, idArgSchema, logSessionArgsSchema, logSetArgsSchema, logTargetsOutputSchema, messageDeletedOutputSchema, messageDraftOutputSchema, messageSentOutputSchema, opaqueOutputSchema, parseWorkoutDate, personalRecordListSchema, personalWorkoutCreatedOutputSchema, programCreatedOutputSchema, programDeletedOutputSchema, removedSessionOutputSchema, rosterActivityOutputSchema, sessionLogOutputSchema, sessionTemplateCreateSchema, sessionTemplateCreatedOutputSchema, setLogOutputSchema, setPrescriptionOutputSchema, swapAthleteExerciseArgsSchema, teamPublishPatchObject, teamPublishPatchSchema, teamVolumeOutputSchema, toolOutputSchema, userSimpleSchema, workoutBuildOutputSchema, workoutPublishOutputSchema, workoutReadOutputSchema } from "@trainheroic-unofficial/dto";
2
+ import { CLIENT_CAPABILITIES_META_KEY, acceptedContent, inputRequired, inputResponse } from "@modelcontextprotocol/server";
3
3
  import { z } from "zod";
4
4
  import { ANALYTICS_METRIC_KEYS, PROGRAM_KINDS, SESSION_TEMPLATES_LIST_PATH, addExercisesToWorkout, buildCommentPayload, buildSession, coerceInt, collectAdvisories, copySession, createPersonalWorkout, createProgram, createSessionTemplate, definedProps, deleteComment, deleteProgram, exerciseUnits, fetchAthleteCircuits, fetchAthleteMainLiftPRs, fetchAthletePrefs, fetchAthleteProfileSummary, fetchAthleteProgrammingPrograms, fetchAthleteUser, fetchAthleteWorkouts, fetchCoachAthleteCalendarSummary, fetchCoachAthleteWorkouts, fetchExerciseHistoryDetail, fetchExerciseHistoryList, fetchExerciseStats, fetchLeaderboard, fetchPersonalRecords, fetchRecentExercises, fetchRosterActivity, fetchRosterMainLiftPRs, fetchStreams, fetchTeamAthleteIds, fetchWorkingMaxes, historyInRange, inviteAthletes, isRecord, logAdHocSession, logAthleteSet, logForAthlete, logSessionForAthlete, prescribeAthleteSet, prescribeForAthlete, presentAthleteWorkouts, presentCoachAthleteTraining, presentExerciseHistory, presentLogTargets, publishSession, queryAnalytics, readLive, readSession, removePersonalWorkout, removeSession, resolveBuildProgramId, searchExerciseHistory, selectWorkouts, selectWorkoutsByProgram, sendComment, setAthleteExerciseNote, setAthleteWorkoutNote, setSplitSummary, summarizeAthleteWorkouts, swapAthleteExercise, teamPublishTarget, teamVolume, toSetResults, updateTeam, updateTeamPublishSettings } from "@trainheroic-unofficial/js";
5
5
  //#region src/context.ts
@@ -226,6 +226,15 @@ async function apiCall(ctx, method, path, options, hint) {
226
226
  const NOT_CONFIRMED = "Not confirmed — the user declined. Nothing was changed.";
227
227
  /** Appended to the prompt so the fallback survives whichever way a client surfaces the request. */
228
228
  const FALLBACK_HINT = " (If you cannot show this prompt, re-run the tool with confirm:true once the user has agreed.)";
229
+ const CONFIRMATION_REQUIRED = "Ask the user to approve this action, then retry the tool with confirm:true only after they agree. Nothing was changed.";
230
+ /** `undefined` means a legacy request, whose capability check belongs to the SDK's shim. */
231
+ function modernClientSupportsFormElicitation(ctx) {
232
+ const envelope = ctx.mcpReq.envelope;
233
+ if (envelope === void 0) return void 0;
234
+ const elicitation = envelope[CLIENT_CAPABILITIES_META_KEY]?.elicitation;
235
+ if (elicitation === void 0) return false;
236
+ return elicitation.form !== void 0 || elicitation.url === void 0;
237
+ }
229
238
  /**
230
239
  * Confirm a destructive/athlete-facing action.
231
240
  *
@@ -241,14 +250,15 @@ const FALLBACK_HINT = " (If you cannot show this prompt, re-run the tool with co
241
250
  * confirmation message ever needs data fetched first, that fetch must be idempotent.
242
251
  *
243
252
  * Written once in the 2026 `inputRequired` style: modern clients retry with `inputResponses`.
244
- * A client that cannot elicit at all never reaches the denial below — the SDK rejects the
245
- * request before the retry — so it must pass `confirm: true`, which is why the hint rides inside
246
- * the prompt text itself.
253
+ * MCP correctly rejects unsupported embedded requests with `-32021`. This application has an
254
+ * alternate `confirm: true` flow, so a modern client that does not declare form elicitation gets
255
+ * a model-readable tool error that tells it how to recover while the gate remains closed.
247
256
  */
248
257
  function confirmGate(ctx, message, confirmArg) {
249
258
  if (confirmArg === true) return void 0;
250
259
  if (acceptedContent(ctx.mcpReq.inputResponses, "confirm")?.confirm === true) return void 0;
251
260
  if (inputResponse(ctx.mcpReq.inputResponses, "confirm").kind !== "missing") return errorResult(NOT_CONFIRMED);
261
+ if (modernClientSupportsFormElicitation(ctx) === false) return errorResult(`${message} ${CONFIRMATION_REQUIRED}`);
252
262
  const prompt = message + FALLBACK_HINT;
253
263
  return inputRequired({ inputRequests: { confirm: inputRequired.elicit({
254
264
  message: prompt,
@@ -1360,10 +1370,10 @@ function registerAnalyticsTools(server, ctx) {
1360
1370
  function registerExerciseUpdate(server, index) {
1361
1371
  server.registerTool("exercise_update", {
1362
1372
  title: "Update custom exercise",
1363
- description: "Update a custom exercise (POST /2.0/coach/exercise/update/{id}) and write it through to the mirror. Same body as exercise_create. Only works for exercises with can_edit:1. Requires confirmation (elicitation, or confirm:true).",
1373
+ description: "Update a custom exercise (POST /2.0/coach/exercise/update/{id}) and write it through to the mirror. Uses the same writable fields as exercise_create; omitted fields are left unchanged. Only works for exercises with can_edit:1. Requires confirmation (elicitation, or confirm:true).",
1364
1374
  inputSchema: {
1365
1375
  id: idParam,
1366
- exercise: exerciseCreateSchema,
1376
+ exercise: exerciseUpdateSchema,
1367
1377
  confirm: z.boolean().optional()
1368
1378
  },
1369
1379
  outputSchema: toolOutputSchema(exerciseCreatedOutputSchema),
@@ -1443,7 +1453,7 @@ function registerExerciseTools(server, ctx) {
1443
1453
  registerExerciseReads(server, index);
1444
1454
  server.registerTool("exercise_create", {
1445
1455
  title: "Create custom exercise",
1446
- description: "Create a custom exercise (POST /2.0/coach/exercise/create) and write it through to the mirror. Body example: {\"title\":\"Sandbag Clean\",\"param_1_type\":3,\"param_2_type\":1}.",
1456
+ description: "Create a custom exercise (POST /2.0/coach/exercise/create) and write it through to the mirror. Body example: {\"title\":\"Sandbag Clean\",\"param_1_type\":3,\"param_2_type\":1}. The server supplies an empty points_of_performance value when it is omitted.",
1447
1457
  inputSchema: { exercise: exerciseCreateSchema },
1448
1458
  outputSchema: toolOutputSchema(exerciseCreatedOutputSchema),
1449
1459
  annotations: ADDITIVE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/core",
3
- "version": "3.6.0",
3
+ "version": "3.7.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,13 +24,13 @@
24
24
  "dependencies": {
25
25
  "@cfworker/json-schema": "^4.1.1",
26
26
  "@modelcontextprotocol/server": "2.0.0",
27
- "zod": "^4.4.3",
28
- "@trainheroic-unofficial/dto": "3.6.0",
29
- "@trainheroic-unofficial/js": "3.6.0"
27
+ "zod": "^4.6.3",
28
+ "@trainheroic-unofficial/dto": "3.7.2",
29
+ "@trainheroic-unofficial/js": "3.7.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^26.3.0",
33
- "tsdown": "^0.22.14",
32
+ "@types/node": "^26.5.1",
33
+ "tsdown": "^0.23.0",
34
34
  "typescript": "^7.0.2",
35
35
  "vitest": "^4.1.11"
36
36
  },