@mastra/mcp-docs-server 1.3.9-alpha.11 → 1.3.9-alpha.13

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 (77) hide show
  1. package/.docs/docs/agents/processors.md +6 -4
  2. package/.docs/docs/auth/custom-auth-provider.md +1 -1
  3. package/.docs/docs/auth/overview.md +3 -1
  4. package/.docs/docs/connections/sdk-agents.md +18 -7
  5. package/.docs/docs/guides/mcp-authentication-authorization.md +2 -2
  6. package/.docs/docs/harness/agent-controller.md +11 -14
  7. package/.docs/docs/harness/durable-agents.md +3 -1
  8. package/.docs/docs/harness/schedules.md +8 -6
  9. package/.docs/docs/mastra-platform/environments.md +1 -1
  10. package/.docs/docs/mastra-platform/server.md +1 -1
  11. package/.docs/docs/mastra-platform/studio.md +1 -1
  12. package/.docs/docs/memory/semantic-recall.md +20 -0
  13. package/.docs/docs/studio/auth.md +2 -2
  14. package/.docs/docs/studio/observability.md +5 -1
  15. package/.docs/docs/workflows/error-handling.md +1 -1
  16. package/.docs/models/environment-variables.md +0 -1
  17. package/.docs/models/gateways/merge-gateway.md +6 -1
  18. package/.docs/models/index.md +1 -2
  19. package/.docs/models/providers/aixy.md +3 -1
  20. package/.docs/models/providers/alibaba-cn.md +7 -55
  21. package/.docs/models/providers/alibaba-coding-plan-cn.md +8 -12
  22. package/.docs/models/providers/alibaba-coding-plan.md +8 -12
  23. package/.docs/models/providers/alibaba-token-plan-cn.md +0 -2
  24. package/.docs/models/providers/alibaba-token-plan.md +29 -30
  25. package/.docs/models/providers/alibaba.md +32 -61
  26. package/.docs/models/providers/ambient.md +0 -8
  27. package/.docs/models/providers/anthropic.md +4 -2
  28. package/.docs/models/providers/cloudflare-workers-ai.md +1 -1
  29. package/.docs/models/providers/edenai.md +7 -1
  30. package/.docs/models/providers/empiriolabs.md +1 -3
  31. package/.docs/models/providers/google.md +2 -0
  32. package/.docs/models/providers/inception.md +2 -1
  33. package/.docs/models/providers/kilo.md +11 -25
  34. package/.docs/models/providers/llmgateway-providers.md +3 -1
  35. package/.docs/models/providers/llmgateway.md +3 -1
  36. package/.docs/models/providers/minimax-cn-coding-plan.md +4 -11
  37. package/.docs/models/providers/minimax-cn.md +4 -10
  38. package/.docs/models/providers/minimax-coding-plan.md +4 -11
  39. package/.docs/models/providers/minimax.md +4 -10
  40. package/.docs/models/providers/mistral.md +4 -4
  41. package/.docs/models/providers/moonshotai-cn.md +2 -2
  42. package/.docs/models/providers/nano-gpt.md +12 -16
  43. package/.docs/models/providers/openai.md +3 -1
  44. package/.docs/models/providers/runinfra.md +2 -1
  45. package/.docs/models/providers/xai.md +3 -1
  46. package/.docs/models/providers/zai-coding-plan.md +0 -4
  47. package/.docs/models/providers/zhipuai-coding-plan.md +0 -1
  48. package/.docs/models/providers/zhipuai.md +12 -12
  49. package/.docs/models/providers.md +0 -1
  50. package/.docs/reference/agent-controller/agent-controller-class.md +17 -22
  51. package/.docs/reference/agent-controller/session.md +3 -3
  52. package/.docs/reference/agents/channels.md +7 -1
  53. package/.docs/reference/agents/durable-agent.md +9 -7
  54. package/.docs/reference/agents/getSkill.md +1 -1
  55. package/.docs/reference/agents/listSkills.md +1 -4
  56. package/.docs/reference/browser/mastra-browser.md +1 -1
  57. package/.docs/reference/client-js/agent-controller.md +13 -3
  58. package/.docs/reference/client-js/mastra-client.md +1 -1
  59. package/.docs/reference/client-js/observability.md +1 -1
  60. package/.docs/reference/core/mastra-class.md +2 -2
  61. package/.docs/reference/editor/mastra-editor.md +9 -7
  62. package/.docs/reference/editor/tool-provider.md +2 -2
  63. package/.docs/reference/evals/create-classifier-scorer.md +6 -2
  64. package/.docs/reference/file-based-agents/instructions.md +1 -1
  65. package/.docs/reference/file-based-agents/processors.md +2 -0
  66. package/.docs/reference/file-based-agents/schedules.md +1 -1
  67. package/.docs/reference/file-based-agents/skills.md +1 -1
  68. package/.docs/reference/file-based-agents/subagents.md +1 -1
  69. package/.docs/reference/memory/cloneThread.md +1 -1
  70. package/.docs/reference/memory/copyThread.md +1 -1
  71. package/.docs/reference/memory/memory-class.md +2 -0
  72. package/.docs/reference/memory/serialized-memory-config.md +1 -1
  73. package/.docs/reference/observability/tracing/advanced-queries.md +11 -9
  74. package/.docs/reference/processors/processor-interface.md +10 -2
  75. package/.docs/reference/signals/signal-provider.md +2 -0
  76. package/.docs/reference/signals/task-signal-provider.md +1 -1
  77. package/package.json +4 -4
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![DevPass (LLM Gateway) logo](https://models.dev/logos/llmgateway.svg)DevPass (LLM Gateway)
6
6
 
7
- Access 214 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
7
+ Access 216 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [DevPass (LLM Gateway) documentation](https://llmgateway.io/docs).
10
10
 
@@ -134,8 +134,10 @@ for await (const chunk of stream) {
134
134
  | `llmgateway/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
135
135
  | `llmgateway/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
136
136
  | `llmgateway/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
137
+ | `llmgateway/gpt-live-transcribe` | — | | | | | | — | — |
137
138
  | `llmgateway/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.14 |
138
139
  | `llmgateway/gpt-oss-20b` | 131K | | | | | | $0.04 | $0.19 |
140
+ | `llmgateway/gpt-transcribe` | — | | | | | | — | — |
139
141
  | `llmgateway/granite-4.2-8b` | 131K | | | | | | $0.06 | $0.25 |
140
142
  | `llmgateway/grok-4` | 256K | | | | | | $3 | $15 |
141
143
  | `llmgateway/grok-4-1-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
@@ -36,17 +36,10 @@ for await (const chunk of stream) {
36
36
 
37
37
  ## Models
38
38
 
39
- | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
- | --------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `minimax-cn-coding-plan/MiniMax-M2` | 205K | | | | | | — | — |
42
- | `minimax-cn-coding-plan/MiniMax-M2.1` | 205K | | | | | | — | — |
43
- | `minimax-cn-coding-plan/MiniMax-M2.5` | 205K | | | | | | — | — |
44
- | `minimax-cn-coding-plan/MiniMax-M2.5-highspeed` | 205K | | | | | | — | — |
45
- | `minimax-cn-coding-plan/MiniMax-M2.7` | 205K | | | | | | — | — |
46
- | `minimax-cn-coding-plan/MiniMax-M2.7-highspeed` | 205K | | | | | | — | — |
47
- | `minimax-cn-coding-plan/MiniMax-M3` | 1.0M | | | | | | — | — |
48
- | `minimax-cn-coding-plan/MiniMax-M3.1-Flash` | 1.0M | | | | | | — | — |
49
- | `minimax-cn-coding-plan/MiniMax-M3.1-Flash-Preview` | 1.0M | | | | | | — | — |
39
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
+ | ------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `minimax-cn-coding-plan/MiniMax-M3` | 1.0M | | | | | | — | — |
42
+ | `minimax-cn-coding-plan/MiniMax-M3.1-Flash` | 1.0M | | | | | | — | — |
50
43
 
51
44
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
52
45
 
@@ -36,16 +36,10 @@ for await (const chunk of stream) {
36
36
 
37
37
  ## Models
38
38
 
39
- | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
- | ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `minimax-cn/MiniMax-M2` | 205K | | | | | | $0.30 | $1 |
42
- | `minimax-cn/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
43
- | `minimax-cn/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
44
- | `minimax-cn/MiniMax-M2.5-highspeed` | 205K | | | | | | $0.60 | $2 |
45
- | `minimax-cn/MiniMax-M2.7` | 205K | | | | | | $0.30 | $1 |
46
- | `minimax-cn/MiniMax-M2.7-highspeed` | 205K | | | | | | $0.60 | $2 |
47
- | `minimax-cn/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
48
- | `minimax-cn/MiniMax-M3.1-Flash` | 1.0M | | | | | | $0.15 | $0.60 |
39
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
+ | ------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `minimax-cn/MiniMax-M3` | 1.0M | | | | | | $0.31 | $1 |
42
+ | `minimax-cn/MiniMax-M3.1-Flash` | 1.0M | | | | | | $0.15 | $0.60 |
49
43
 
50
44
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
51
45
 
@@ -36,17 +36,10 @@ for await (const chunk of stream) {
36
36
 
37
37
  ## Models
38
38
 
39
- | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
- | ------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `minimax-coding-plan/MiniMax-M2` | 205K | | | | | | — | — |
42
- | `minimax-coding-plan/MiniMax-M2.1` | 205K | | | | | | — | — |
43
- | `minimax-coding-plan/MiniMax-M2.5` | 205K | | | | | | — | — |
44
- | `minimax-coding-plan/MiniMax-M2.5-highspeed` | 205K | | | | | | — | — |
45
- | `minimax-coding-plan/MiniMax-M2.7` | 205K | | | | | | — | — |
46
- | `minimax-coding-plan/MiniMax-M2.7-highspeed` | 205K | | | | | | — | — |
47
- | `minimax-coding-plan/MiniMax-M3` | 1.0M | | | | | | — | — |
48
- | `minimax-coding-plan/MiniMax-M3.1-Flash` | 1.0M | | | | | | — | — |
49
- | `minimax-coding-plan/MiniMax-M3.1-Flash-Preview` | 1.0M | | | | | | — | — |
39
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
+ | ---------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `minimax-coding-plan/MiniMax-M3` | 1.0M | | | | | | — | — |
42
+ | `minimax-coding-plan/MiniMax-M3.1-Flash` | 1.0M | | | | | | — | — |
50
43
 
51
44
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
52
45
 
@@ -36,16 +36,10 @@ for await (const chunk of stream) {
36
36
 
37
37
  ## Models
38
38
 
39
- | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
- | -------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `minimax/MiniMax-M2` | 205K | | | | | | $0.30 | $1 |
42
- | `minimax/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
43
- | `minimax/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
44
- | `minimax/MiniMax-M2.5-highspeed` | 205K | | | | | | $0.60 | $2 |
45
- | `minimax/MiniMax-M2.7` | 205K | | | | | | $0.30 | $1 |
46
- | `minimax/MiniMax-M2.7-highspeed` | 205K | | | | | | $0.60 | $2 |
47
- | `minimax/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
48
- | `minimax/MiniMax-M3.1-Flash` | 1.0M | | | | | | $0.15 | $0.60 |
39
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
+ | ---------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `minimax/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
42
+ | `minimax/MiniMax-M3.1-Flash` | 1.0M | | | | | | $0.15 | $0.60 |
49
43
 
50
44
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
51
45
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Mistral logo](https://models.dev/logos/mistral.svg)Mistral
6
6
 
7
- Access 42 Mistral models through Mastra's model router. Authentication is handled automatically using the `MISTRAL_API_KEY` environment variable.
7
+ Access 39 Mistral models through Mastra's model router. Authentication is handled automatically using the `MISTRAL_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Mistral documentation](https://docs.mistral.ai/getting-started/models/).
10
10
 
@@ -40,9 +40,9 @@ for await (const chunk of stream) {
40
40
  | `mistral/codestral-latest` | 256K | | | | | | $0.30 | $0.90 |
41
41
  | `mistral/ministral-14b-2512` | 262K | | | | | | $0.20 | $0.20 |
42
42
  | `mistral/ministral-3b-2512` | 131K | | | | | | $0.10 | $0.10 |
43
- | `mistral/ministral-3b-latest` | 131K | | | | | | $0.04 | $0.04 |
43
+ | `mistral/ministral-3b-latest` | 131K | | | | | | $0.10 | $0.10 |
44
44
  | `mistral/ministral-8b-2512` | 262K | | | | | | $0.15 | $0.15 |
45
- | `mistral/ministral-8b-latest` | 262K | | | | | | $0.10 | $0.10 |
45
+ | `mistral/ministral-8b-latest` | 262K | | | | | | $0.15 | $0.15 |
46
46
  | `mistral/mistral-embed` | 8K | | | | | | $0.10 | — |
47
47
  | `mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
48
48
  | `mistral/mistral-large-4` | 1.0M | | | | | | $0.68 | $2 |
@@ -54,7 +54,7 @@ for await (const chunk of stream) {
54
54
  | `mistral/voxtral-mini-latest` | — | | | | | | — | — |
55
55
  | `mistral/voxtral-mini-tts-latest` | — | | | | | | — | — |
56
56
  | `mistral/voxtral-small-2507` | 33K | | | | | | $0.10 | $0.40 |
57
- | `mistral/voxtral-small-latest` | 33K | | | | | | $0.10 | $0.30 |
57
+ | `mistral/voxtral-small-latest` | 33K | | | | | | $0.10 | $0.40 |
58
58
  | `mistral/zai-glm-5-3` | 1.0M | | | | | | $1 | $4 |
59
59
 
60
60
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
@@ -38,8 +38,8 @@ for await (const chunk of stream) {
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | ---------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `moonshotai-cn/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
42
- | `moonshotai-cn/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
41
+ | `moonshotai-cn/kimi-k2.6` | 262K | | | | | | $0.97 | $4 |
42
+ | `moonshotai-cn/kimi-k2.7-code` | 262K | | | | | | $0.97 | $4 |
43
43
  | `moonshotai-cn/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
44
44
  | `moonshotai-cn/kimi-k3` | 1.0M | | | | | | $3 | $15 |
45
45
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![NanoGPT logo](https://models.dev/logos/nano-gpt.svg)NanoGPT
6
6
 
7
- Access 621 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
7
+ Access 617 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
10
10
 
@@ -119,12 +119,8 @@ for await (const chunk of stream) {
119
119
  | `nano-gpt/deepseek-ai/deepseek-v3.2-exp-thinking` | 164K | | | | | | $0.28 | $0.42 |
120
120
  | `nano-gpt/deepseek-chat` | 128K | | | | | | $0.10 | $0.42 |
121
121
  | `nano-gpt/deepseek-chat-cheaper` | 128K | | | | | | $0.10 | $0.42 |
122
- | `nano-gpt/deepseek-r1` | 128K | | | | | | $0.40 | $2 |
123
- | `nano-gpt/deepseek-r1-sambanova` | 128K | | | | | | $5 | $7 |
124
- | `nano-gpt/deepseek-reasoner` | 64K | | | | | | $0.40 | $2 |
125
- | `nano-gpt/deepseek-reasoner-cheaper` | 128K | | | | | | $0.40 | $2 |
126
122
  | `nano-gpt/deepseek-v3-0324` | 128K | | | | | | $0.20 | $0.77 |
127
- | `nano-gpt/deepseek/deepseek-latest` | 1.0M | | | | | | $0.15 | $0.44 |
123
+ | `nano-gpt/deepseek/deepseek-latest` | 1.0M | | | | | | $0.66 | $2 |
128
124
  | `nano-gpt/deepseek/deepseek-v3.2` | 163K | | | | | | $0.21 | $0.31 |
129
125
  | `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.21 | $0.31 |
130
126
  | `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
@@ -132,16 +128,16 @@ for await (const chunk of stream) {
132
128
  | `nano-gpt/deepseek/deepseek-v4-flash-0423:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
133
129
  | `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.05 | $0.16 |
134
130
  | `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.05 | $0.16 |
135
- | `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.10 | $0.50 |
131
+ | `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.10 | $0.60 |
136
132
  | `nano-gpt/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
137
133
  | `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
138
134
  | `nano-gpt/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.70 | $1 |
139
- | `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.15 | $0.44 |
140
- | `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $0.15 | $0.44 |
135
+ | `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.66 | $2 |
136
+ | `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $0.66 | $2 |
141
137
  | `nano-gpt/deepseek/deepseek-v4-pro:thinking` | 1.0M | | | | | | $0.70 | $1 |
142
138
  | `nano-gpt/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.14 | $0.42 |
143
- | `nano-gpt/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.10 | $0.50 |
144
- | `nano-gpt/deepseek/deepseek-v4.1-flash-1017:thinking` | 1.0M | | | | | | $0.10 | $0.50 |
139
+ | `nano-gpt/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.10 | $0.60 |
140
+ | `nano-gpt/deepseek/deepseek-v4.1-flash-1017:thinking` | 1.0M | | | | | | $0.10 | $0.60 |
145
141
  | `nano-gpt/deepseek/deepseek-v4.1-flash:thinking` | 1.0M | | | | | | $0.14 | $0.42 |
146
142
  | `nano-gpt/Doctor-Shotgun/MS3.2-24B-Magnum-Diamond` | 33K | | | | | | $0.49 | $0.49 |
147
143
  | `nano-gpt/doubao-1.5-pro-256k` | 256K | | | | | | $0.80 | $1 |
@@ -240,9 +236,9 @@ for await (const chunk of stream) {
240
236
  | `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
241
237
  | `nano-gpt/google/gemini-flash-lite-latest` | 1.0M | | | | | | $0.30 | $3 |
242
238
  | `nano-gpt/google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
243
- | `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.08 | $0.26 |
239
+ | `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.09 | $0.30 |
244
240
  | `nano-gpt/google/gemma-4-26b-a4b-it-cybersecurity` | 262K | | | | | | $0.11 | $0.33 |
245
- | `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.08 | $0.26 |
241
+ | `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.09 | $0.30 |
246
242
  | `nano-gpt/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
247
243
  | `nano-gpt/google/gemma-4-31b-it:thinking` | 262K | | | | | | $0.10 | $0.34 |
248
244
  | `nano-gpt/google/gemma4-31b-splituntied` | 262K | | | | | | $0.10 | $0.30 |
@@ -342,8 +338,8 @@ for await (const chunk of stream) {
342
338
  | `nano-gpt/moonshotai/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
343
339
  | `nano-gpt/moonshotai/kimi-k2.5` | 262K | | | | | | $0.38 | $2 |
344
340
  | `nano-gpt/moonshotai/kimi-k2.5:thinking` | 262K | | | | | | $0.38 | $2 |
345
- | `nano-gpt/moonshotai/kimi-k2.6` | 262K | | | | | | $0.43 | $2 |
346
- | `nano-gpt/moonshotai/kimi-k2.6:thinking` | 262K | | | | | | $0.43 | $2 |
341
+ | `nano-gpt/moonshotai/kimi-k2.6` | 262K | | | | | | $0.45 | $2 |
342
+ | `nano-gpt/moonshotai/kimi-k2.6:thinking` | 262K | | | | | | $0.45 | $2 |
347
343
  | `nano-gpt/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
348
344
  | `nano-gpt/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
349
345
  | `nano-gpt/moonshotai/kimi-k3` | 1.0M | | | | | | $2 | $8 |
@@ -568,7 +564,7 @@ for await (const chunk of stream) {
568
564
  | `nano-gpt/TEE/qwen3.6-35b-a3b` | 262K | | | | | | $0.20 | $1 |
569
565
  | `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.40 | $3 |
570
566
  | `nano-gpt/tencent/hy3` | 262K | | | | | | $0.07 | $0.26 |
571
- | `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.75 | $2 |
567
+ | `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
572
568
  | `nano-gpt/TheDrummer/Anubis-70B-v1` | 66K | | | | | | $0.31 | $0.31 |
573
569
  | `nano-gpt/TheDrummer/Anubis-70B-v1.1` | 32K | | | | | | $0.31 | $0.31 |
574
570
  | `nano-gpt/TheDrummer/Artemis-v1.1` | 262K | | | | | | $0.10 | $0.45 |
@@ -153,6 +153,8 @@ const response = await agent.generate("Hello!", {
153
153
 
154
154
  **reasoningEffort** (`string | null | undefined`)
155
155
 
156
+ **reasoningEffortUpdate** (`"low" | "medium" | "high" | "xhigh" | "max" | undefined`)
157
+
156
158
  **reasoningMode** (`"standard" | "pro" | undefined`)
157
159
 
158
160
  **reasoningContext** (`"auto" | "current_turn" | "all_turns" | undefined`)
@@ -161,7 +163,7 @@ const response = await agent.generate("Hello!", {
161
163
 
162
164
  **safetyIdentifier** (`string | null | undefined`)
163
165
 
164
- **serviceTier** (`"auto" | "default" | "flex" | "priority" | null | undefined`)
166
+ **serviceTier** (`"auto" | "default" | "flex" | "priority" | "fast" | "ultrafast" | null | undefined`)
165
167
 
166
168
  **store** (`boolean | null | undefined`): Controls whether OpenAI stores your API requests for model training. Required to be "false" if your organization has zero data retention enabled. See: https\://platform.openai.com/docs/guides/your-data#zero-data-retention
167
169
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![RunInfra logo](https://models.dev/logos/runinfra.svg)RunInfra
6
6
 
7
- Access 7 RunInfra models through Mastra's model router. Authentication is handled automatically using the `RUNINFRA_GATEWAY_KEY` environment variable.
7
+ Access 8 RunInfra models through Mastra's model router. Authentication is handled automatically using the `RUNINFRA_GATEWAY_KEY` environment variable.
8
8
 
9
9
  Learn more in the [RunInfra documentation](https://runinfra.ai/docs).
10
10
 
@@ -44,6 +44,7 @@ for await (const chunk of stream) {
44
44
  | `runinfra/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16` | 262K | | | | | | $0.05 | $0.15 |
45
45
  | `runinfra/ornith-ai/Ornith-1.5-35B-A3B` | 262K | | | | | | $0.10 | $0.40 |
46
46
  | `runinfra/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.10 | $0.40 |
47
+ | `runinfra/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $4 |
47
48
  | `runinfra/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.10 | $0.40 |
48
49
 
49
50
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
@@ -100,12 +100,14 @@ const response = await agent.generate("Hello!", {
100
100
 
101
101
  ### Available Options
102
102
 
103
- **reasoningEffort** (`"none" | "low" | "medium" | "high" | undefined`)
103
+ **reasoningEffort** (`"none" | "low" | "medium" | "high" | "xhigh" | undefined`)
104
104
 
105
105
  **logprobs** (`boolean | undefined`)
106
106
 
107
107
  **topLogprobs** (`number | undefined`)
108
108
 
109
+ **serviceTier** (`"default" | "priority" | undefined`)
110
+
109
111
  **parallel\_function\_calling** (`boolean | undefined`)
110
112
 
111
113
  **searchParameters** (`{ mode: "off" | "auto" | "on"; returnCitations?: boolean | undefined; fromDate?: string | undefined; toDate?: string | undefined; maxSearchResults?: number | undefined; sources?: ({ ...; } | ... 2 more ... | { ...; })[] | undefined; } | undefined`)
@@ -38,10 +38,6 @@ for await (const chunk of stream) {
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `zai-coding-plan/glm-4.7` | 205K | | | | | | — | — |
42
- | `zai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
43
- | `zai-coding-plan/glm-5.2` | 1.0M | | | | | | — | — |
44
- | `zai-coding-plan/glm-5.2-highspeed` | 1.0M | | | | | | — | — |
45
41
  | `zai-coding-plan/glm-5.3` | 1.0M | | | | | | — | — |
46
42
  | `zai-coding-plan/glm-5.3-flash` | 1.0M | | | | | | — | — |
47
43
  | `zai-coding-plan/glm-5.3-highspeed` | 1.0M | | | | | | — | — |
@@ -38,7 +38,6 @@ for await (const chunk of stream) {
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `zhipuai-coding-plan/glm-4.6v` | 128K | | | | | | $0.30 | $0.90 |
42
41
  | `zhipuai-coding-plan/glm-5.3` | 1.0M | | | | | | — | — |
43
42
  | `zhipuai-coding-plan/glm-5.3-flash` | 1.0M | | | | | | — | — |
44
43
  | `zhipuai-coding-plan/glm-5.3-highspeed` | 1.0M | | | | | | — | — |
@@ -6,7 +6,7 @@
6
6
 
7
7
  Access 17 Zhipu AI models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
8
8
 
9
- Learn more in the [Zhipu AI documentation](https://docs.z.ai/guides/overview/pricing).
9
+ Learn more in the [Zhipu AI documentation](https://docs.bigmodel.cn/cn/guide/start/pricing).
10
10
 
11
11
  ```bash
12
12
  ZHIPU_API_KEY=your-api-key
@@ -32,29 +32,29 @@ for await (const chunk of stream) {
32
32
  }
33
33
  ```
34
34
 
35
- > **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Zhipu AI documentation](https://docs.z.ai/guides/overview/pricing) for details.
35
+ > **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Zhipu AI documentation](https://docs.bigmodel.cn/cn/guide/start/pricing) for details.
36
36
 
37
37
  ## Models
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | ------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
41
  | `zhipuai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
42
- | `zhipuai/glm-4.5-air` | 131K | | | | | | $0.20 | $1 |
42
+ | `zhipuai/glm-4.5-air` | 131K | | | | | | $0.12 | $0.90 |
43
43
  | `zhipuai/glm-4.5-flash` | 131K | | | | | | — | — |
44
- | `zhipuai/glm-4.5v` | 64K | | | | | | $0.60 | $2 |
44
+ | `zhipuai/glm-4.5v` | 64K | | | | | | $0.30 | $0.90 |
45
45
  | `zhipuai/glm-4.6` | 205K | | | | | | $0.60 | $2 |
46
- | `zhipuai/glm-4.6v` | 128K | | | | | | $0.30 | $0.90 |
46
+ | `zhipuai/glm-4.6v` | 128K | | | | | | $0.15 | $0.45 |
47
47
  | `zhipuai/glm-4.6v-flash` | 128K | | | | | | — | — |
48
- | `zhipuai/glm-4.7` | 205K | | | | | | $0.60 | $2 |
48
+ | `zhipuai/glm-4.7` | 205K | | | | | | $0.45 | $2 |
49
49
  | `zhipuai/glm-4.7-flash` | 200K | | | | | | — | — |
50
- | `zhipuai/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.40 |
51
- | `zhipuai/glm-5` | 205K | | | | | | $1 | $3 |
52
- | `zhipuai/glm-5.1` | 200K | | | | | | $1 | $4 |
50
+ | `zhipuai/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.45 |
51
+ | `zhipuai/glm-5` | 205K | | | | | | $0.60 | $3 |
52
+ | `zhipuai/glm-5.1` | 200K | | | | | | $0.90 | $4 |
53
53
  | `zhipuai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
54
54
  | `zhipuai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
55
- | `zhipuai/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
56
- | `zhipuai/glm-5.3-flashx` | 1.0M | | | | | | $0.37 | $1 |
57
- | `zhipuai/glm-5v-turbo` | 200K | | | | | | $5 | $22 |
55
+ | `zhipuai/glm-5.3-flash` | 1.0M | | | | | | $0.12 | $0.42 |
56
+ | `zhipuai/glm-5.3-flashx` | 1.0M | | | | | | $0.30 | $1 |
57
+ | `zhipuai/glm-5v-turbo` | 200K | | | | | | $0.75 | $3 |
58
58
 
59
59
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
60
60
 
@@ -57,7 +57,6 @@ Direct access to individual AI model providers. Each provider offers unique mode
57
57
  - [CoralBricks](https://mastra.ai/models/providers/coralbricks)
58
58
  - [CoreWeave](https://mastra.ai/models/providers/wandb)
59
59
  - [Cortecs](https://mastra.ai/models/providers/cortecs)
60
- - [CrofAI](https://mastra.ai/models/providers/crof)
61
60
  - [CrossModel](https://mastra.ai/models/providers/crossmodel)
62
61
  - [Crusoe](https://mastra.ai/models/providers/crusoe)
63
62
  - [D.Run (China)](https://mastra.ai/models/providers/drun)
@@ -172,27 +172,25 @@ A message lifecycle starts with the initial message in `message_start`. Compact
172
172
 
173
173
  #### `createSession(options)`
174
174
 
175
- Get or create the live session registered for the `(resourceId, scope)` pair. Call `init()` before this method.
175
+ Get or create the live session registered under `id`. Call `init()` before this method.
176
176
 
177
177
  ```typescript
178
178
  const session = await controller.createSession({
179
+ id: 'run-a',
179
180
  resourceId: 'project-42',
180
- scope: 'editor-window-1',
181
181
  threadId: 'thread-7',
182
182
  })
183
183
  ```
184
184
 
185
- The same `resourceId` and `scope` return the same `Session` instance. A different scope creates an isolated session for the same resource. When `threadId` is supplied, the method switches a cached session to that thread or creates the thread when it doesn't exist.
185
+ The same `id` returns the same `Session` instance. Sessions with different ids are independent even when they share a `resourceId`: each has its own run loop, thread binding, mode, model, and state, while their stored threads and resource-scoped memory belong to the shared resource. When `id` is omitted, it defaults to `resourceId`, so one session per resource needs no id. When `threadId` is supplied, the method switches a cached session to that thread or creates the thread when it doesn't exist.
186
186
 
187
- **resourceId** (`string`): Memory resource and live-session registry key. Defaults to the configured resourceId or controller id.
188
-
189
- **scope** (`string`): Optional registry namespace that allows multiple live sessions for one resource.
187
+ **resourceId** (`string`): Memory resource that owns the session's threads and resource-scoped memory. Defaults to the configured resourceId or controller id.
190
188
 
191
189
  **threadId** (`string`): Exact thread to bind. Missing threads are created with this identifier.
192
190
 
193
191
  **createInitialThread** (`boolean`): Create a thread when no existing thread matches. Set false to start the session without a thread; the first message or session.thread.ensureId() creates it, so unused sessions leave no empty thread behind. (Default: `true`)
194
192
 
195
- **id** (`string`): Stable session identifier. Defaults to the controller id.
193
+ **id** (`string`): Session identifier and live-session registry key. Defaults to resourceId.
196
194
 
197
195
  **ownerId** (`string`): Stable identity of the process-local Session host. Defaults to id. New threads use it as their initial owner, but later transfers do not change this value.
198
196
 
@@ -206,12 +204,12 @@ The same `resourceId` and `scope` return the same `Session` instance. A differen
206
204
 
207
205
  Returns: `Promise<Session<TState>>`
208
206
 
209
- #### `getSessionByResource(resourceId, scope?)`
207
+ #### `getSession(sessionId, requestContext?)`
210
208
 
211
- Return the live session registered for a resource and optional scope.
209
+ Return the live session registered under `sessionId`, or `undefined` when none is live.
212
210
 
213
211
  ```typescript
214
- const session = await controller.getSessionByResource('project-42', 'editor-window-1')
212
+ const session = await controller.getSession('run-a')
215
213
  ```
216
214
 
217
215
  Returns: `Promise<Session<TState> | undefined>`
@@ -220,7 +218,7 @@ Returns: `Promise<Session<TState> | undefined>`
220
218
 
221
219
  Subscribe to process-local notifications after `createSession()` materializes a new live session, with isolated listener errors prevented from affecting other listeners. Call the returned function to unsubscribe.
222
220
 
223
- By default listeners are fire-and-forget. Pass `{ blocking: true }` to make `createSession()` await the listener before resolving the new session, so the host can prepare session state before the caller can start a run. Blocking listeners run sequentially in registration order, before fire-and-forget listeners are notified. A blocking listener must not call `createSession()` for the same `(resourceId, scope)` pair. That call would await its own hydration and deadlock.
221
+ By default listeners are fire-and-forget. Pass `{ blocking: true }` to make `createSession()` await the listener before resolving the new session, so the host can prepare session state before the caller can start a run. Blocking listeners run sequentially in registration order, before fire-and-forget listeners are notified. A blocking listener must not call `createSession()` for the same session `id`. That call would await its own hydration and deadlock.
224
222
 
225
223
  ```typescript
226
224
  const unsubscribe = controller.onSessionCreated(
@@ -251,7 +249,7 @@ const unsubscribe = controller.onSessionDeleted(session => {
251
249
  })
252
250
 
253
251
  await controller.createSession({ resourceId: 'project-42' })
254
- await controller.deleteSession({ resourceId: 'project-42' })
252
+ await controller.deleteSession({ sessionId: 'project-42' })
255
253
  unsubscribe()
256
254
  ```
257
255
 
@@ -259,22 +257,19 @@ This listener is best-effort and runs only in the current process. It isn't a pe
259
257
 
260
258
  Returns: `() => void`
261
259
 
262
- #### `deleteSession({ resourceId, scope? })`
260
+ #### `deleteSession({ sessionId })`
263
261
 
264
- Tear down the materialized session for a resource and optional scope. The method aborts active work, then removes thread subscriptions, the active thread lock, and the live session from the controller registry. It doesn't delete persisted threads or messages.
262
+ Tear down the materialized session registered under `sessionId`. The method aborts active work, then removes thread subscriptions, the active thread lock, and the live session from the controller registry. It doesn't delete persisted threads or messages.
265
263
 
266
264
  ```typescript
267
- const deleted = await controller.deleteSession({
268
- resourceId: 'project-42',
269
- scope: 'editor-window-1',
270
- })
265
+ const deleted = await controller.deleteSession({ sessionId: 'run-a' })
271
266
  ```
272
267
 
273
- Returns: `Promise<boolean>`. The result is `true` when a live session was removed and `false` when no matching live session exists or when another deletion is already in progress for the same resource and scope.
268
+ Returns: `Promise<boolean>`. The result is `true` when a live session was removed and `false` when no matching live session exists or when another deletion is already in progress for the same session.
274
269
 
275
270
  #### `setResourceId(session, { resourceId })`
276
271
 
277
- Move a live session to another resource and clear its active thread binding.
272
+ Move a live session to another resource and clear its active thread binding. The session stays registered under its id.
278
273
 
279
274
  ```typescript
280
275
  await controller.setResourceId(session, { resourceId: 'project-43' })
@@ -353,12 +348,12 @@ Returns: `Promise<StorageListMessagesOutput>` with controller-format messages.
353
348
 
354
349
  #### `generateThreadTitle(options)`
355
350
 
356
- Generate and store a title from a thread's conversation without creating a Session. `threadId` is required. `resourceId`, `scope`, `model`, and `requestContext` are optional. The method throws when the thread doesn't exist and returns `undefined` when the model produces no title.
351
+ Generate and store a title from a thread's conversation without creating a Session. `threadId` is required. `sessionId`, `model`, and `requestContext` are optional; pass `sessionId` to borrow a live session's agent and request context. The method throws when the thread doesn't exist and returns `undefined` when the model produces no title.
357
352
 
358
353
  ```typescript
359
354
  const title = await controller.generateThreadTitle({
360
355
  threadId: 'thread-7',
361
- resourceId: 'project-42',
356
+ sessionId: 'run-a',
362
357
  })
363
358
  ```
364
359
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Session
6
6
 
7
- A `Session` is the isolated runtime for one resource and optional scope. It owns its event bus, thread binding, state, mode and model selections, run control, approvals, suspensions, follow-ups, and display state. The [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class) supplies shared agents, configuration, storage, workspaces, and services.
7
+ A `Session` is the isolated runtime registered under one session id. Several sessions can share a resource, which owns their stored threads and resource-scoped memory. It owns its event bus, thread binding, state, mode and model selections, run control, approvals, suspensions, follow-ups, and display state. The [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class) supplies shared agents, configuration, storage, workspaces, and services.
8
8
 
9
9
  Create sessions through `controller.createSession()`. Direct construction and controller wiring methods aren't application APIs.
10
10
 
@@ -164,7 +164,7 @@ session.abort()
164
164
 
165
165
  #### `getWorkspace()`
166
166
 
167
- Return the workspace resolved for this session. This preserves session-level overrides and workspaces selected from the session scope.
167
+ Return the workspace resolved for this session. This preserves session-level overrides.
168
168
 
169
169
  A workspace is optional. When neither the session nor the `AgentController` configures one, the session still runs without filesystem or sandbox access, and this returns `undefined`. Check the result before using it.
170
170
 
@@ -838,7 +838,7 @@ Thread-owned preferences include thinking level, observational memory settings,
838
838
 
839
839
  A queued write keeps its source thread through asynchronous updates and validation. Switching from A to B while a write is pending doesn't apply A's preferences to B. Host-field updates still affect the host. A retained run and the active view of the same thread share update ordering. A resumed run sees edits made while it was parked. Events without a source address that affect the conversation display are emitted only while that source is active.
840
840
 
841
- Inside a tool's controller request context, `state` is a snapshot taken when the context was built. Use `getState()` or `session.state.get()` to read the latest source-thread state after a write.
841
+ Inside a tool's controller request context, `sessionId`, `resourceId`, and `threadId` identify the session, its resource, and its active thread. `state` is a snapshot taken when the context was built. Use `getState()` or `session.state.get()` to read the latest source-thread state after a write.
842
842
 
843
843
  ### `session.state.get()`
844
844
 
@@ -100,7 +100,7 @@ const agent = new Agent({
100
100
 
101
101
  **formatError** (`(error: Error) => PostableMessage`): Override how errors are rendered in the chat. Return a user-friendly message instead of exposing the raw error. (Default: `"❌ Error: <error.message>"`)
102
102
 
103
- **formatToolCall** (`(args: { toolName: string; args: unknown; result: unknown; isError: boolean }) => PostableMessage | null`): \*\*Deprecated\*\* — use toolDisplay (function form) instead. When set, runs as a ToolDisplayFn that only fires on result/error events; running and approval events fall through to no render. Mutually exclusive with toolDisplay at the type level.
103
+ **formatToolCall** (`(info: { toolName: string; args: Record<string, unknown>; result: unknown; isError?: boolean }) => PostableMessage | null`): \*\*Deprecated\*\* — use toolDisplay (function form) instead. When set, runs as a ToolDisplayFn that only fires on result/error events; running and approval events fall through to no render. Mutually exclusive with toolDisplay at the type level.
104
104
 
105
105
  **streaming** (`boolean | { updateIntervalMs?: number }`): Stream agent text deltas to the channel as the agent generates them instead of buffering and posting once per step. Requires the underlying adapter to support post-and-edit streaming. Slack defaults to true; other adapters default to false. (Default: `false (true for Slack)`)
106
106
 
@@ -248,6 +248,8 @@ type ChannelHandler = (
248
248
  type ChannelHandlerContext = {
249
249
  mastra?: Mastra
250
250
  requestContext: RequestContext
251
+ readonly signalMetadata: Record<string, unknown>
252
+ readonly skipped: readonly Message[]
251
253
  }
252
254
  ```
253
255
 
@@ -271,6 +273,10 @@ onDirectMessage: async (thread, message, defaultHandler, ctx) => {
271
273
 
272
274
  Anything the run reads from its request context can be decided per message this way, such as which user a platform sender maps to.
273
275
 
276
+ `ctx.signalMetadata` is the metadata attached to this message's Agent Signal, built fresh for every message. Add JSON-serializable, non-sensitive values before calling `defaultHandler`. Mastra may persist signal metadata and publish it through PubSub. Unlike `ctx.requestContext`, it follows the message whether it starts a new run or is delivered to one that is already active.
277
+
278
+ `ctx.skipped` lists earlier messages from the same sender that the Chat SDK batched into this turn when a `chatOptions.concurrency` strategy such as `burst`, `debounce`, or `queue` is set, oldest first. It's empty when nothing was batched.
279
+
274
280
  ## Resource ID resolution
275
281
 
276
282
  By default a channel thread's memory `resourceId` is `${platform}:${message.author.userId}`. The sender owns the memory, scoped per platform. For apps with a shared identity, such as single sign-on (SSO), this splits memory: the same user gets `feishu:user_123` in a Feishu DM but `user_123` on the web.
@@ -330,7 +330,9 @@ interface DurableAgentListActiveRunsResult {
330
330
 
331
331
  Discovers runs stuck in `running` status for this agent and re-drives them from the last persisted snapshot. Accepts the same filters and pagination as `listActiveRuns()`, plus `runId`. Returns the outcome for each run.
332
332
 
333
- Attempts run serially. Each attempt has a single 30-second wait budget covering both `recover()` setup and settlement of the whole recovered workflow. When the budget expires, recovery moves to the next run and returns `status: 'skipped'` with `reason: 'recovery-timeout'` and no `retryAt`. The timeout doesn't cancel setup or execution, release a live claim, or count as success or failure. The attempt continues in the background, and its eventual outcome doesn't change the returned results. Mastra doesn't automatically retry a timed-out attempt.
333
+ Up to five run waits proceed concurrently, with results returned in discovery order. Each attempt has a single 30-second wait budget covering both `recover()` setup and settlement of the whole recovered workflow. When the budget expires, another run can use the slot. The outcome is `status: 'skipped'` with `reason: 'recovery-timeout'` and `retryAt` set 30 seconds ahead. The timeout doesn't cancel setup or execution, release a live claim, or count as success or failure. The attempt continues in the background, and its eventual outcome doesn't change the returned results. The concurrency limit bounds waiting, not live executions.
334
+
335
+ [`mastra.recoverAllDurableAgents()`](https://mastra.ai/reference/core/mastra-class) schedules timeout re-checks automatically. Direct callers of `recoverActiveRuns()` must schedule their own calls after `retryAt`. While the original bulk attempt remains pending, re-checks defer with another `recovery-timeout` and a future `retryAt`, without invoking `recover()` again. Once it settles, recovery checks the persisted snapshot and ownership before retrying. Finished or suspended runs aren't restarted.
334
336
 
335
337
  The budget applies only to each run attempt in `recoverActiveRuns()`, not to discovery, a direct `recover()` call, or overridden custom recovery methods. When shutdown begins, recovery stops dispatching new runs. The original attempt remains tracked for Mastra's shared shutdown drain even after the wait times out.
336
338
 
@@ -354,12 +356,12 @@ await durableAgent.recoverActiveRuns({ runId: 'run-abc-123' })
354
356
 
355
357
  A run that another execution still drives isn't taken over. Its entry has `status: 'skipped'` and a `reason`, and `recoverActiveRuns()` doesn't check it again. For a run held by another process, `retryAt` is the time after which that claim lapses unless renewed. Call `recoverActiveRuns({ runId })` after it to recover the run if its process crashed. [`mastra.recoverAllDurableAgents()`](https://mastra.ai/reference/core/mastra-class) schedules these re-checks itself.
356
358
 
357
- | `reason` | Meaning |
358
- | --------------------- | ----------------------------------------------------------------------------------------------------------------- |
359
- | `run-active` | Another execution, possibly in another process, holds the run. Sets `retryAt`. |
360
- | `run-active-locally` | This process is executing the run. |
361
- | `already-in-progress` | This process is already recovering the run. |
362
- | `recovery-timeout` | The 30-second wait budget expired. The attempt continues in the background, with no `retryAt` or automatic retry. |
359
+ | `reason` | Meaning |
360
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
361
+ | `run-active` | Another execution, possibly in another process, holds the run. Sets `retryAt`. |
362
+ | `run-active-locally` | This process is executing the run. |
363
+ | `already-in-progress` | This process is already recovering the run. |
364
+ | `recovery-timeout` | The wait expired or an earlier bulk recovery attempt is still pending. Sets `retryAt`; re-checks don't duplicate the pending attempt. |
363
365
 
364
366
  Returns:
365
367
 
@@ -48,7 +48,7 @@ interface Skill {
48
48
  scripts: string[]
49
49
  assets: string[]
50
50
  license?: string
51
- compatibility?: string[]
51
+ compatibility?: unknown
52
52
  'user-invocable'?: boolean
53
53
  metadata?: Record<string, unknown>
54
54
  }