@mastra/mcp-docs-server 1.3.10-alpha.8 → 1.3.10

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 (51) hide show
  1. package/.docs/docs/agents/overview.md +2 -0
  2. package/.docs/docs/harness/durable-agents.md +1 -1
  3. package/.docs/docs/index.md +33 -5
  4. package/.docs/docs/memory/semantic-recall.md +4 -2
  5. package/.docs/docs/signals/thread-streams.md +34 -3
  6. package/.docs/docs/studio/auth.md +6 -6
  7. package/.docs/integrations/observability/opentelemetry.md +27 -4
  8. package/.docs/models/environment-variables.md +1 -0
  9. package/.docs/models/gateways/openrouter.md +2 -1
  10. package/.docs/models/index.md +2 -1
  11. package/.docs/models/providers/302ai.md +2 -1
  12. package/.docs/models/providers/cortecs.md +2 -1
  13. package/.docs/models/providers/edenai.md +6 -9
  14. package/.docs/models/providers/inceptron.md +3 -3
  15. package/.docs/models/providers/kilo.md +15 -14
  16. package/.docs/models/providers/llmgateway-providers.md +423 -431
  17. package/.docs/models/providers/llmgateway.md +3 -16
  18. package/.docs/models/providers/modular.md +84 -0
  19. package/.docs/models/providers/nano-gpt.md +7 -7
  20. package/.docs/models/providers/novita-ai.md +1 -1
  21. package/.docs/models/providers/ofox.md +1 -1
  22. package/.docs/models/providers/vivgrid.md +2 -1
  23. package/.docs/models/providers.md +1 -0
  24. package/.docs/reference/agents/agent.md +3 -1
  25. package/.docs/reference/agents/durable-agent.md +17 -9
  26. package/.docs/reference/client-js/agents.md +2 -0
  27. package/.docs/reference/evals/completeness.md +5 -1
  28. package/.docs/reference/evals/context-precision.md +3 -1
  29. package/.docs/reference/evals/create-scorer.md +1 -1
  30. package/.docs/reference/evals/faithfulness.md +5 -5
  31. package/.docs/reference/evals/mastra-scorer.md +1 -1
  32. package/.docs/reference/file-based-agents/instructions.md +1 -1
  33. package/.docs/reference/file-based-agents/schedules.md +1 -1
  34. package/.docs/reference/memory/cloneThread.md +2 -2
  35. package/.docs/reference/memory/memory-class.md +8 -6
  36. package/.docs/reference/observability/tracing/spans.md +24 -1
  37. package/.docs/reference/processors/language-detector.md +2 -2
  38. package/.docs/reference/processors/provider-history-compat.md +13 -13
  39. package/.docs/reference/rag/graph-rag.md +5 -1
  40. package/.docs/reference/server/create-route.md +20 -4
  41. package/.docs/reference/server/express-adapter.md +8 -8
  42. package/.docs/reference/signals/signal-provider.md +1 -1
  43. package/.docs/reference/streaming/ChunkType.md +18 -0
  44. package/.docs/reference/streaming/agents/stream.md +1 -1
  45. package/dist/index.js +1 -1
  46. package/dist/{src-Cv7bX2-6.js → src-BDrEqwuY.js} +3 -2
  47. package/dist/src-BDrEqwuY.js.map +1 -0
  48. package/dist/stdio.js +1 -1
  49. package/dist/tools/course.d.ts.map +1 -1
  50. package/package.json +7 -7
  51. package/dist/src-Cv7bX2-6.js.map +0 -1
@@ -54,19 +54,19 @@ Registering in `errorProcessors` alone, as the example above does, covers both h
54
54
 
55
55
  `ProviderHistoryCompat` includes these built-in compatibility rules:
56
56
 
57
- | Rule | Provider | Timing | Behavior |
58
- | ------------------------------------------------ | ---------------------------------------------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
59
- | `strip-foreign-provider-executed-tools` | Anthropic, OpenAI, Azure OpenAI, Google/Vertex | Preemptive prompt rewrite | Removes provider-executed tool calls and their paired results from the outbound prompt when they came from a different provider family, since the receiving provider can't resolve another provider's tool IDs. Persisted history is left untouched. |
60
- | `anthropic-tool-id-format` | Anthropic | Preemptive prompt rewrite | Rewrites tool call IDs that contain characters outside `[a-zA-Z0-9_-]` in the outbound prompt, on both the call and its result. A sanitized ID that would collide with one already in the prompt gets a `_2`, `_3`, … suffix. The provider's rejection never fires, and persisted history keeps the original IDs. A reactive fallback covers providers the preemptive check doesn't recognize, such as Vertex-hosted Claude. |
61
- | `cerebras-strip-reasoning-content` | Cerebras | Preemptive prompt rewrite | Removes assistant `reasoning` parts from the outbound prompt so they're not serialized as unsupported `reasoning_content` fields. |
62
- | `anthropic-strip-empty-signed-reasoning-content` | Anthropic | Preemptive prompt rewrite | Removes assistant `reasoning` parts that carry an Anthropic signature but have empty text, which legacy records can contain. Anthropic signs the exact thinking text, so the mismatched pair would be rejected. |
63
- | `anthropic-strip-foreign-reasoning-content` | Anthropic | Preemptive prompt rewrite | Removes non-Anthropic assistant `reasoning` parts from the outbound prompt. Anthropic-native thinking history is preserved. |
64
- | `anthropic-strip-foreign-signed-reasoning` | Anthropic-compatible | Preemptive prompt rewrite | Drops signed thinking from the outbound prompt when its origin turn was stamped with a different provider (for example Kimi For Coding ↔ `anthropic/claude-sonnet-5-5`), since the receiving provider can't verify another provider's signature. Turns emptied of all content by the drop are removed from the prompt. Unstamped history is left untouched. |
65
- | `azure-system-reminder-transform` | Azure OpenAI | Preemptive prompt rewrite | Renames `<system-reminder>` wrappers in user text and system instructions to `<memory-context>` for the outbound request. Stored history remains unchanged. |
66
- | `openai-orphan-item-id` | OpenAI, Azure OpenAI (Responses) | Reactive API error recovery | Recovers history that OpenAI rejects with `Item 'msg_…' of type 'message' was provided without its required 'reasoning' item`. Drops the Responses `itemId` from every item-bearing part of an assistant message that carries one but has no `reasoning` part, and retries. The message then replays by value instead of as an unsatisfiable `item_reference`. The repair is applied to the in-memory list for the current turn. |
67
- | `anthropic-orphaned-thinking-step` | Anthropic | Reactive API error recovery | Recovers history that Anthropic rejects because `thinking` or `redacted_thinking` blocks in the latest assistant message can't be modified. Removes steps that contain only reasoning when more assistant content follows them, and retries. Covers history saved by older `@mastra/memory` releases ([#22798](https://github.com/mastra-ai/mastra/issues/22798)). |
68
- | `tool-call-empty-input` | All providers | Preemptive prompt rewrite | Sends an assistant tool call whose stored input is missing (`undefined` or `null`) as `{}` in the outbound prompt, because providers reject a tool call without input (Anthropic: `tool_use.input: Field required`). A call whose arguments couldn't be parsed is stored this way. The call keeps its paired error result, and persisted history is left untouched. An empty-string input is a real stored value and is sent as is. |
69
- | `ensure-user-first-turn` | Amazon Bedrock, Google/Vertex Gemini | Preemptive prompt rewrite | Inserts a minimal user turn (`.`) before a leading assistant turn, because these providers reject conversations whose first non-system turn is the assistant's. This happens when an agent greets first or `lastMessages` cuts into a thread. Runs last, so it sees the prompt after other rules have dropped emptied turns. |
57
+ | Rule | Provider | Timing | Behavior |
58
+ | ------------------------------------------------ | ---------------------------------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
59
+ | `strip-foreign-provider-executed-tools` | Anthropic, OpenAI, Azure OpenAI, Google/Vertex | Preemptive prompt rewrite | Removes provider-executed tool calls and their paired results from the outbound prompt when they came from a different provider family, since the receiving provider can't resolve another provider's tool IDs. Persisted history is left untouched. |
60
+ | `anthropic-tool-id-format` | Anthropic | Preemptive prompt rewrite | Rewrites tool call IDs that contain characters outside `[a-zA-Z0-9_-]` in the outbound prompt, on both the call and its result. A sanitized ID that would collide with one already in the prompt gets a `_2`, `_3`, … suffix. The provider's rejection never fires, and persisted history keeps the original IDs. A reactive fallback covers providers the preemptive check doesn't recognize, such as Vertex-hosted Claude. |
61
+ | `cerebras-strip-reasoning-content` | Cerebras | Preemptive prompt rewrite | Removes assistant `reasoning` parts from the outbound prompt so they're not serialized as unsupported `reasoning_content` fields. |
62
+ | `anthropic-strip-empty-signed-reasoning-content` | Anthropic | Reactive (matches Anthropic's 400 rejecting modified thinking blocks) | Removes assistant `reasoning` parts that carry an Anthropic signature but have empty text, which legacy records can contain, from earlier messages. Runs only after Anthropic rejects the history, because Claude 5.x returns empty-text signed blocks as normal output and they must be replayed unchanged to keep prompt caching. |
63
+ | `anthropic-strip-foreign-reasoning-content` | Anthropic | Preemptive prompt rewrite | Removes non-Anthropic assistant `reasoning` parts from the outbound prompt. Anthropic-native thinking history is preserved. |
64
+ | `anthropic-strip-foreign-signed-reasoning` | Anthropic-compatible | Preemptive prompt rewrite | Drops signed thinking from the outbound prompt when its origin turn was stamped with a different provider (for example Kimi For Coding ↔ `anthropic/claude-sonnet-5-5`), since the receiving provider can't verify another provider's signature. Turns emptied of all content by the drop are removed from the prompt. Unstamped history is left untouched. |
65
+ | `azure-system-reminder-transform` | Azure OpenAI | Preemptive prompt rewrite | Renames `<system-reminder>` wrappers in user text and system instructions to `<memory-context>` for the outbound request. Stored history remains unchanged. |
66
+ | `openai-orphan-item-id` | OpenAI, Azure OpenAI (Responses) | Reactive API error recovery | Recovers history that OpenAI rejects with `Item 'msg_…' of type 'message' was provided without its required 'reasoning' item`. Drops the Responses `itemId` from every item-bearing part of an assistant message that carries one but has no `reasoning` part, and retries. The message then replays by value instead of as an unsatisfiable `item_reference`. The repair is applied to the in-memory list for the current turn. |
67
+ | `anthropic-orphaned-thinking-step` | Anthropic | Reactive API error recovery | Recovers history that Anthropic rejects because `thinking` or `redacted_thinking` blocks in the latest assistant message can't be modified. Removes steps that contain only reasoning when more assistant content follows them, and retries. Covers history saved by older `@mastra/memory` releases ([#22798](https://github.com/mastra-ai/mastra/issues/22798)). |
68
+ | `tool-call-empty-input` | All providers | Preemptive prompt rewrite | Sends an assistant tool call whose stored input is missing (`undefined` or `null`) as `{}` in the outbound prompt, because providers reject a tool call without input (Anthropic: `tool_use.input: Field required`). A call whose arguments couldn't be parsed is stored this way. The call keeps its paired error result, and persisted history is left untouched. An empty-string input is a real stored value and is sent as is. |
69
+ | `ensure-user-first-turn` | Amazon Bedrock, Google/Vertex Gemini | Preemptive prompt rewrite | Inserts a minimal user turn (`.`) before a leading assistant turn, because these providers reject conversations whose first non-system turn is the assistant's. This happens when an agent greets first or `lastMessages` cuts into a thread. Runs last, so it sees the prompt after other rules have dropped emptied turns. |
70
70
 
71
71
  Preemptive rules run through `processLLMRequest` after Mastra converts messages to the model prompt format and before the prompt is sent to the provider. These rewrites affect only the current provider call. Persisted history is never changed, so the IDs and content in memory and in the Studio stay exactly as written.
72
72
 
@@ -56,12 +56,14 @@ query({
56
56
  query,
57
57
  topK = 10,
58
58
  randomWalkSteps = 100,
59
- restartProb = 0.15
59
+ restartProb = 0.15,
60
+ filter
60
61
  }: {
61
62
  query: number[];
62
63
  topK?: number;
63
64
  randomWalkSteps?: number;
64
65
  restartProb?: number;
66
+ filter?: Partial<Record<string, any>>;
65
67
  }): RankedNode[]
66
68
  ```
67
69
 
@@ -75,6 +77,8 @@ query({
75
77
 
76
78
  **restartProb** (`number`): Probability of restarting walk from query node (Default: `0.15`)
77
79
 
80
+ **filter** (`Partial<Record<string, any>>`): Restricts the search to nodes whose metadata matches every given key/value pair. Similarity search and the random walk both stay within matching nodes.
81
+
78
82
  #### Returns
79
83
 
80
84
  Returns an array of `RankedNode` objects, where each node contains:
@@ -15,8 +15,24 @@ import { createRoute } from '@mastra/server/server-adapter'
15
15
  ## Signature
16
16
 
17
17
  ```typescript
18
- function createRoute<TPath, TQuery, TBody, TResponse, TResponseType>(
19
- config: RouteConfig<TPath, TQuery, TBody, TResponse, TResponseType>,
18
+ function createRoute<
19
+ TPathSchema extends z.ZodTypeAny | undefined = undefined,
20
+ TQuerySchema extends z.ZodTypeAny | undefined = undefined,
21
+ TBodySchema extends z.ZodTypeAny | undefined = undefined,
22
+ TResponseSchema extends z.ZodTypeAny | undefined = undefined,
23
+ TResponseType extends ResponseType = 'json',
24
+ TMethod extends string = string,
25
+ TPath extends string = string,
26
+ >(
27
+ config: RouteConfig<
28
+ TPathSchema,
29
+ TQuerySchema,
30
+ TBodySchema,
31
+ TResponseSchema,
32
+ TResponseType,
33
+ TMethod,
34
+ TPath
35
+ >,
20
36
  ): ServerRoute
21
37
  ```
22
38
 
@@ -63,10 +79,10 @@ handler: async params => {
63
79
  params.filter // From queryParamSchema
64
80
  params.name // From bodySchema
65
81
 
66
- // Runtime context (always available)
82
+ // Runtime context
67
83
  params.mastra // Mastra instance
68
84
  params.requestContext // Request-scoped context
69
- params.tools // Available tools
85
+ params.registeredTools // Tools registered with the adapter
70
86
  params.abortSignal // Request cancellation signal
71
87
  params.taskStore // A2A task storage
72
88
  }
@@ -78,13 +78,13 @@ Express requires `express.json()` middleware for JSON body parsing. Add it befor
78
78
 
79
79
  ## Differences from Hono
80
80
 
81
- | Aspect | Express | Hono |
82
- | -------------------- | ------------------------------ | --------------------- |
83
- | Body parsing | Requires `express.json()` | Handled by framework |
84
- | Context storage | `res.locals` | `c.get()` / `c.set()` |
85
- | Middleware signature | `(req, res, next)` | `(c, next)` |
86
- | Streaming | `res.write()` / `res.end()` | `stream()` helper |
87
- | AbortSignal | Created from `req.on('close')` | `c.req.raw.signal` |
81
+ | Aspect | Express | Hono |
82
+ | -------------------- | ---------------------------------------------------------------------------- | --------------------- |
83
+ | Body parsing | Requires `express.json()` | Handled by framework |
84
+ | Context storage | `res.locals` | `c.get()` / `c.set()` |
85
+ | Middleware signature | `(req, res, next)` | `(c, next)` |
86
+ | Streaming | `res.write()` / `res.end()` | `stream()` helper |
87
+ | AbortSignal | Created from `res.on('close')`, aborted only when the response didn't finish | `c.req.raw.signal` |
88
88
 
89
89
  ## Adding custom routes
90
90
 
@@ -157,7 +157,7 @@ Available properties on `res.locals`:
157
157
  | `mastra` | Mastra instance |
158
158
  | `requestContext` | Request context map |
159
159
  | `abortSignal` | Request cancellation signal |
160
- | `tools` | Available tools |
160
+ | `registeredTools` | Tools registered with the adapter |
161
161
  | `taskStore` | Task store for A2A operations |
162
162
  | `customRouteAuthConfig` | Per-route auth overrides |
163
163
  | `user` | Authenticated user (if auth configured) |
@@ -360,7 +360,7 @@ await this.notify(
360
360
 
361
361
  **notification.summary** (`string`): Human-readable summary of the event.
362
362
 
363
- **notification.priority** (`"high" | "medium" | "low"`): Notification priority.
363
+ **notification.priority** (`"high" | "medium" | "low" | "urgent"`): Notification priority.
364
364
 
365
365
  **notification.payload** (`unknown`): Arbitrary data attached to the notification.
366
366
 
@@ -764,8 +764,26 @@ The stored history of a thread, emitted at the start of a thread subscription.
764
764
 
765
765
  **payload.hasMore** (`boolean`): Whether older messages exist beyond this page.
766
766
 
767
+ **payload.activeRunId** (`string | null`): Run holding thread ownership during hydration, or null when idle. Use thread-run-status for the outcome.
768
+
767
769
  For queue-count events on the same thread, see the [Thread events reference](https://mastra.ai/reference/signals/thread-events).
768
770
 
771
+ ### thread-run-status
772
+
773
+ `ThreadRunStatusChunk` reports a run's outcome independently of stored-message replay. It's exported from `@mastra/core/stream` and emitted only when `subscribeToThread()` receives `withRunStatus: true`. The option defaults to `false`.
774
+
775
+ Live output precedes its status. `success`, `failed`, and `aborted` are final outcomes. `suspended` is resumable, so the same run can later emit more output and a final outcome. A status doesn't close the subscription.
776
+
777
+ **type** (`"thread-run-status"`): Chunk type identifier.
778
+
779
+ **runId** (`string`): ID of the run whose outcome is reported.
780
+
781
+ **from** (`ChunkFrom`): Always AGENT for thread run outcomes.
782
+
783
+ **payload** (`{ status: "success" | "failed" | "aborted" | "suspended" }`): Run outcome. Suspended runs can resume.
784
+
785
+ With `withInitialHistory`, `thread-history` arrives first. Opted-in late subscribers then receive one outcome per still-retained finished run, including runs outside that history page. Final outcomes are deduplicated within a subscription. Suspensions are deduplicated per execution segment. Reconnecting can redeliver outcomes. Recovery depends on PubSub retention and isn't a permanent audit log. See [Thread streams](https://mastra.ai/docs/signals/thread-streams).
786
+
769
787
  ## Usage example
770
788
 
771
789
  ```typescript
@@ -192,7 +192,7 @@ const stream = await agent.stream('message for agent')
192
192
 
193
193
  **options.toolCallConcurrency** (`number`): Maximum number of tool calls to execute concurrently. Defaults to 1 when approval may be required, otherwise 10.
194
194
 
195
- **options.eagerToolExecution** (`boolean`): Defaults to true. A tool call whose arguments have finished streaming starts executing immediately, instead of waiting for the model to finish the whole step. Set it to false to restore the previous scheduling. Tool results and message history keep their model-call order either way. Only server-side tools are started early: approval-gated, suspend-schema-declaring, provider-executed, client-side, background-dispatched (by argument or by backgroundTasks config), missing and inactive tools are left to the post-stream pass, as is any run using autoResumeSuspendedTools or an output processor that runs after the stream completes. That last case is wider than it sounds: a processor workflow you build yourself counts whatever it contains, because its contents are not inspected, and so does structuredOutput when given an explicit model. A processor implementing processToolResult is excluded too when a provider-executed tool is configured: that hook runs inside the stream when a provider result arrives there, and its abort bails the turn before the post-stream pass, so starting a tool early would change whether it runs, not just when. Without a provider tool, the hook only sees results after the pass and early dispatch stays on. Also left to the post-stream pass is any run using toolCallConcurrency.strategy: 'called' (the full set of called tools is not known until the step finishes). Eager executions honour the same toolCallConcurrency limit (they are counted separately from the post-stream pass, so the limit constrains each rather than being pooled across both) and aborting the run waits for work already running, then keeps its result, as the post-stream pass does. A tool that already ran is never run again, and its finished result is never thrown away. If the last model fails mid-stream with no retry, its calls still run through the post-stream pass, which adopts eager work instead of restarting it. If the attempt is retried or failed over, tools still running are allowed to finish, and every started call's result or error is written into the conversation before the replacement attempt begins, even if the retry never runs. A tool that calls suspend() at runtime without declaring a suspend schema cannot be detected in advance; the early attempt hands its suspension back to that call's own post-stream iteration, which raises the real suspension with the tool's own payload, so the tool body runs exactly once — the same as it would without early execution. Because that pre-suspend work already happened, an attempt holding such a call is never retried or failed over: the run suspends on that call instead, so resuming it is the only way the tool runs again. Not supported by durable agents, which reject an explicit true.
195
+ **options.eagerToolExecution** (`boolean`): Defaults to true. A tool call whose arguments have finished streaming starts executing immediately, instead of waiting for the model to finish the whole step. Set it to false to restore the previous scheduling. Tool results and message history keep their model-call order either way. Only server-side tools are started early: approval-gated, suspend-schema-declaring, provider-executed, client-side, background-dispatched (by argument or by backgroundTasks config), missing and inactive tools are left to the post-stream pass, as is any run using autoResumeSuspendedTools or an output processor that runs after the stream completes. That last case is wider than it sounds: a processor workflow you build yourself counts whatever it contains, because its contents are not inspected, and so does structuredOutput when given an explicit model. A processor implementing processToolResult is excluded too when a provider-executed tool is configured: that hook runs inside the stream when a provider result arrives there, and its abort bails the turn before the post-stream pass, so starting a tool early would change whether it runs, not just when. Without a provider tool, the hook only sees results after the pass and early dispatch stays on. Also left to the post-stream pass is any run using toolCallConcurrency.strategy: 'called' (the full set of called tools is not known until the step finishes). Eager executions honour the same toolCallConcurrency limit (they are counted separately from the post-stream pass, so the limit constrains each rather than being pooled across both). Aborting the run gives running tool executions a 250 ms grace period to settle and keeps successful results completed within that window. Canceled tool calls emit a tool-result chunk carrying a cancellation notice and record it in conversation history, so the next turn knows the tool started and its effects are unknown. Check the tool's status before retrying. Later results or errors are ignored. The grace period bounds the wait for tool cleanup, not the overall run deadline. For in-process agents, the remaining modelSettings.timeout.totalMs budget can expire first, producing MastraTimeoutError instead of the cancellation notice. This timeout precedence has not been verified for durable agents. This does not forcibly stop tool code or an already-running onOutput hook. Already-started tool code and external side effects may continue after cancellation. If the last model fails mid-stream with no retry, its calls still run through the post-stream pass, which adopts eager work instead of restarting it. Unless the caller cancels the run, retry and fallback allow running tools to finish and write every started call's result or error into the conversation before the replacement attempt begins, even if the retry never runs. A tool that calls suspend() at runtime without declaring a suspend schema cannot be detected in advance; the early attempt hands its suspension back to that call's own post-stream iteration, which raises the real suspension with the tool's own payload, so the tool body runs exactly once — the same as it would without early execution. Because that pre-suspend work already happened, an attempt holding such a call is never retried or failed over: the run suspends on that call instead, so resuming it is the only way the tool runs again. Not supported by durable agents, which reject an explicit true.
196
196
 
197
197
  **options.providerOptions** (`Record<string, Record<string, JSONValue>>`): Additional provider-specific options that are passed through to the underlying LLM provider. The structure is { providerName: { optionKey: value } }. For example: { openai: { reasoningEffort: 'high' }, anthropic: { maxTokens: 1000 } }.
198
198
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { t as createDocsServer, n as runServer } from "./src-Cv7bX2-6.js";
1
+ export { t as createDocsServer, n as runServer } from "./src-BDrEqwuY.js";
@@ -621,7 +621,8 @@ const startMastraCourse = {
621
621
  courseState.currentLesson = nextLesson.name;
622
622
  await saveCourseState(courseState, deviceId);
623
623
  return `${statusMessage}🎉 You've completed the "${currentLessonName}" lesson!\n\nMoving on to the next lesson: "${nextLesson.name}".\n\nUse the \`nextMastraCourseStep\` tool to start the first step of this lesson.`;
624
- } else return `${statusMessage}🎉 Congratulations! You've completed all available lessons in the Mastra Course!\n\nIf you'd like to review any lesson, use the \`startMastraCourseLesson\` tool with the lesson name.`;
624
+ }
625
+ return `${statusMessage}🎉 Congratulations! You've completed all available lessons in the Mastra Course!\n\nIf you'd like to review any lesson, use the \`startMastraCourseLesson\` tool with the lesson name.`;
625
626
  }
626
627
  if (!currentStep) return `${statusMessage}Error: No incomplete steps found in the current lesson. Please try another lesson or reset your course progress.`;
627
628
  currentStep.status = 1;
@@ -1846,4 +1847,4 @@ async function runServer() {
1846
1847
  }
1847
1848
  export { writeErrorLog as i, runServer as n, setLogLevel as r, createDocsServer as t };
1848
1849
 
1849
- //# sourceMappingURL=src-Cv7bX2-6.js.map
1850
+ //# sourceMappingURL=src-BDrEqwuY.js.map