@mastra/core 1.20.0-alpha.0 → 1.21.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/agent/agent-legacy.d.ts +2 -1
  3. package/dist/agent/agent-legacy.d.ts.map +1 -1
  4. package/dist/agent/agent.d.ts +30 -0
  5. package/dist/agent/agent.d.ts.map +1 -1
  6. package/dist/agent/index.cjs +8 -8
  7. package/dist/agent/index.js +1 -1
  8. package/dist/{chunk-I6P4ZMZR.cjs → chunk-3CEO7364.cjs} +15 -15
  9. package/dist/{chunk-I6P4ZMZR.cjs.map → chunk-3CEO7364.cjs.map} +1 -1
  10. package/dist/{chunk-EUACZBJQ.js → chunk-4VNX7DR6.js} +4 -4
  11. package/dist/{chunk-EUACZBJQ.js.map → chunk-4VNX7DR6.js.map} +1 -1
  12. package/dist/{chunk-6PIICTDQ.js → chunk-6QHS7ULS.js} +3 -3
  13. package/dist/{chunk-6PIICTDQ.js.map → chunk-6QHS7ULS.js.map} +1 -1
  14. package/dist/{chunk-ML643Q3Q.cjs → chunk-BJH5SHX3.cjs} +28 -18
  15. package/dist/chunk-BJH5SHX3.cjs.map +1 -0
  16. package/dist/{chunk-HVDHMRDP.cjs → chunk-D27Q6R5E.cjs} +5 -5
  17. package/dist/{chunk-HVDHMRDP.cjs.map → chunk-D27Q6R5E.cjs.map} +1 -1
  18. package/dist/{chunk-JWPGGVYM.js → chunk-DIGGYQAF.js} +3 -3
  19. package/dist/{chunk-JWPGGVYM.js.map → chunk-DIGGYQAF.js.map} +1 -1
  20. package/dist/{chunk-UKZAGP3S.js → chunk-DNSWGNZW.js} +19 -9
  21. package/dist/chunk-DNSWGNZW.js.map +1 -0
  22. package/dist/{chunk-FAHX46V5.cjs → chunk-E6GHYTTI.cjs} +9 -9
  23. package/dist/{chunk-FAHX46V5.cjs.map → chunk-E6GHYTTI.cjs.map} +1 -1
  24. package/dist/{chunk-RTAUE6GT.js → chunk-G6AGIGL4.js} +6 -6
  25. package/dist/{chunk-RTAUE6GT.js.map → chunk-G6AGIGL4.js.map} +1 -1
  26. package/dist/{chunk-K6BGA6VT.cjs → chunk-IGBP52Y5.cjs} +9 -7
  27. package/dist/chunk-IGBP52Y5.cjs.map +1 -0
  28. package/dist/{chunk-OBP4NK5A.js → chunk-NHKURALS.js} +3 -3
  29. package/dist/{chunk-OBP4NK5A.js.map → chunk-NHKURALS.js.map} +1 -1
  30. package/dist/{chunk-FSCEKOV2.js → chunk-P22E5RS2.js} +4 -4
  31. package/dist/{chunk-FSCEKOV2.js.map → chunk-P22E5RS2.js.map} +1 -1
  32. package/dist/{chunk-UXAM4V4V.cjs → chunk-PAJDCXP4.cjs} +6 -6
  33. package/dist/{chunk-UXAM4V4V.cjs.map → chunk-PAJDCXP4.cjs.map} +1 -1
  34. package/dist/{chunk-HVEPQYIA.cjs → chunk-QM6V2G4N.cjs} +185 -185
  35. package/dist/{chunk-HVEPQYIA.cjs.map → chunk-QM6V2G4N.cjs.map} +1 -1
  36. package/dist/{chunk-Z6RH6FVZ.js → chunk-RLWBOWTH.js} +8 -6
  37. package/dist/chunk-RLWBOWTH.js.map +1 -0
  38. package/dist/{chunk-Q3PALUCS.js → chunk-SNNRWDHR.js} +3 -3
  39. package/dist/{chunk-Q3PALUCS.js.map → chunk-SNNRWDHR.js.map} +1 -1
  40. package/dist/{chunk-HKUABNPR.cjs → chunk-SP6HMNXJ.cjs} +3 -3
  41. package/dist/{chunk-HKUABNPR.cjs.map → chunk-SP6HMNXJ.cjs.map} +1 -1
  42. package/dist/{chunk-VXFKAXPG.cjs → chunk-SUTSYKYL.cjs} +75 -75
  43. package/dist/{chunk-VXFKAXPG.cjs.map → chunk-SUTSYKYL.cjs.map} +1 -1
  44. package/dist/{chunk-4D5OKNI6.js → chunk-UP4JBYON.js} +8 -8
  45. package/dist/{chunk-4D5OKNI6.js.map → chunk-UP4JBYON.js.map} +1 -1
  46. package/dist/{chunk-TZ6QKXAX.cjs → chunk-VJ2I6NB5.cjs} +48 -48
  47. package/dist/{chunk-TZ6QKXAX.cjs.map → chunk-VJ2I6NB5.cjs.map} +1 -1
  48. package/dist/{chunk-KB7PLSUK.js → chunk-W6TU23LC.js} +3 -3
  49. package/dist/{chunk-KB7PLSUK.js.map → chunk-W6TU23LC.js.map} +1 -1
  50. package/dist/{chunk-UH3RKNFA.cjs → chunk-WV75DCGC.cjs} +7 -7
  51. package/dist/{chunk-UH3RKNFA.cjs.map → chunk-WV75DCGC.cjs.map} +1 -1
  52. package/dist/datasets/index.cjs +11 -11
  53. package/dist/datasets/index.js +1 -1
  54. package/dist/docs/SKILL.md +2 -2
  55. package/dist/docs/assets/SOURCE_MAP.json +146 -146
  56. package/dist/docs/references/docs-server-mastra-client.md +12 -10
  57. package/dist/docs/references/docs-server-mastra-server.md +13 -1
  58. package/dist/docs/references/reference-agents-getLLM.md +9 -3
  59. package/dist/docs/references/reference.md +2 -0
  60. package/dist/evals/index.cjs +5 -5
  61. package/dist/evals/index.js +2 -2
  62. package/dist/evals/scoreTraces/index.cjs +3 -3
  63. package/dist/evals/scoreTraces/index.js +1 -1
  64. package/dist/harness/index.cjs +7 -7
  65. package/dist/harness/index.js +5 -5
  66. package/dist/index.cjs +2 -2
  67. package/dist/index.js +1 -1
  68. package/dist/llm/index.cjs +16 -16
  69. package/dist/llm/index.js +5 -5
  70. package/dist/llm/model/provider-types.generated.d.ts +1 -0
  71. package/dist/loop/index.cjs +14 -14
  72. package/dist/loop/index.js +1 -1
  73. package/dist/mastra/index.cjs +2 -2
  74. package/dist/mastra/index.js +1 -1
  75. package/dist/memory/index.cjs +14 -14
  76. package/dist/memory/index.js +1 -1
  77. package/dist/models-dev-FGUL4P5N.js +3 -0
  78. package/dist/{models-dev-3P3IAKKM.js.map → models-dev-FGUL4P5N.js.map} +1 -1
  79. package/dist/models-dev-SQKUCQPB.cjs +12 -0
  80. package/dist/{models-dev-OSJ3DXHK.cjs.map → models-dev-SQKUCQPB.cjs.map} +1 -1
  81. package/dist/netlify-3WID3IMG.cjs +12 -0
  82. package/dist/{netlify-R4Q3C263.cjs.map → netlify-3WID3IMG.cjs.map} +1 -1
  83. package/dist/netlify-6VLZ7U7Y.js +3 -0
  84. package/dist/{netlify-3WGJ3X2J.js.map → netlify-6VLZ7U7Y.js.map} +1 -1
  85. package/dist/processor-provider/index.cjs +10 -10
  86. package/dist/processor-provider/index.js +1 -1
  87. package/dist/processors/index.cjs +44 -44
  88. package/dist/processors/index.js +1 -1
  89. package/dist/provider-registry-XZ5AT4KC.cjs +40 -0
  90. package/dist/{provider-registry-D5RMTQJP.cjs.map → provider-registry-XZ5AT4KC.cjs.map} +1 -1
  91. package/dist/provider-registry-ZQPKRDCE.js +3 -0
  92. package/dist/{provider-registry-4HZEFIEW.js.map → provider-registry-ZQPKRDCE.js.map} +1 -1
  93. package/dist/provider-registry.json +4 -2
  94. package/dist/relevance/index.cjs +3 -3
  95. package/dist/relevance/index.js +1 -1
  96. package/dist/stream/index.cjs +8 -8
  97. package/dist/stream/index.js +1 -1
  98. package/dist/tool-loop-agent/index.cjs +4 -4
  99. package/dist/tool-loop-agent/index.js +1 -1
  100. package/dist/workflows/evented/index.cjs +10 -10
  101. package/dist/workflows/evented/index.js +1 -1
  102. package/dist/workflows/index.cjs +24 -24
  103. package/dist/workflows/index.js +1 -1
  104. package/package.json +9 -9
  105. package/src/llm/model/provider-types.generated.d.ts +1 -0
  106. package/dist/chunk-K6BGA6VT.cjs.map +0 -1
  107. package/dist/chunk-ML643Q3Q.cjs.map +0 -1
  108. package/dist/chunk-UKZAGP3S.js.map +0 -1
  109. package/dist/chunk-Z6RH6FVZ.js.map +0 -1
  110. package/dist/models-dev-3P3IAKKM.js +0 -3
  111. package/dist/models-dev-OSJ3DXHK.cjs +0 -12
  112. package/dist/netlify-3WGJ3X2J.js +0 -3
  113. package/dist/netlify-R4Q3C263.cjs +0 -12
  114. package/dist/provider-registry-4HZEFIEW.js +0 -3
  115. package/dist/provider-registry-D5RMTQJP.cjs +0 -40
@@ -1,100 +1,100 @@
1
1
  'use strict';
2
2
 
3
- var chunkML643Q3Q_cjs = require('../chunk-ML643Q3Q.cjs');
3
+ var chunkBJH5SHX3_cjs = require('../chunk-BJH5SHX3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DefaultExecutionEngine", {
8
8
  enumerable: true,
9
- get: function () { return chunkML643Q3Q_cjs.DefaultExecutionEngine; }
9
+ get: function () { return chunkBJH5SHX3_cjs.DefaultExecutionEngine; }
10
10
  });
11
11
  Object.defineProperty(exports, "ExecutionEngine", {
12
12
  enumerable: true,
13
- get: function () { return chunkML643Q3Q_cjs.ExecutionEngine; }
13
+ get: function () { return chunkBJH5SHX3_cjs.ExecutionEngine; }
14
14
  });
15
15
  Object.defineProperty(exports, "Run", {
16
16
  enumerable: true,
17
- get: function () { return chunkML643Q3Q_cjs.Run; }
17
+ get: function () { return chunkBJH5SHX3_cjs.Run; }
18
18
  });
19
19
  Object.defineProperty(exports, "Workflow", {
20
20
  enumerable: true,
21
- get: function () { return chunkML643Q3Q_cjs.Workflow; }
21
+ get: function () { return chunkBJH5SHX3_cjs.Workflow; }
22
22
  });
23
23
  Object.defineProperty(exports, "cleanStepResult", {
24
24
  enumerable: true,
25
- get: function () { return chunkML643Q3Q_cjs.cleanStepResult; }
25
+ get: function () { return chunkBJH5SHX3_cjs.cleanStepResult; }
26
26
  });
27
27
  Object.defineProperty(exports, "cloneStep", {
28
28
  enumerable: true,
29
- get: function () { return chunkML643Q3Q_cjs.cloneStep; }
29
+ get: function () { return chunkBJH5SHX3_cjs.cloneStep; }
30
30
  });
31
31
  Object.defineProperty(exports, "cloneWorkflow", {
32
32
  enumerable: true,
33
- get: function () { return chunkML643Q3Q_cjs.cloneWorkflow; }
33
+ get: function () { return chunkBJH5SHX3_cjs.cloneWorkflow; }
34
34
  });
35
35
  Object.defineProperty(exports, "createDeprecationProxy", {
36
36
  enumerable: true,
37
- get: function () { return chunkML643Q3Q_cjs.createDeprecationProxy; }
37
+ get: function () { return chunkBJH5SHX3_cjs.createDeprecationProxy; }
38
38
  });
39
39
  Object.defineProperty(exports, "createStep", {
40
40
  enumerable: true,
41
- get: function () { return chunkML643Q3Q_cjs.createStep; }
41
+ get: function () { return chunkBJH5SHX3_cjs.createStep; }
42
42
  });
43
43
  Object.defineProperty(exports, "createTimeTravelExecutionParams", {
44
44
  enumerable: true,
45
- get: function () { return chunkML643Q3Q_cjs.createTimeTravelExecutionParams; }
45
+ get: function () { return chunkBJH5SHX3_cjs.createTimeTravelExecutionParams; }
46
46
  });
47
47
  Object.defineProperty(exports, "createWorkflow", {
48
48
  enumerable: true,
49
- get: function () { return chunkML643Q3Q_cjs.createWorkflow; }
49
+ get: function () { return chunkBJH5SHX3_cjs.createWorkflow; }
50
50
  });
51
51
  Object.defineProperty(exports, "getResumeLabelsByStepId", {
52
52
  enumerable: true,
53
- get: function () { return chunkML643Q3Q_cjs.getResumeLabelsByStepId; }
53
+ get: function () { return chunkBJH5SHX3_cjs.getResumeLabelsByStepId; }
54
54
  });
55
55
  Object.defineProperty(exports, "getStepIds", {
56
56
  enumerable: true,
57
- get: function () { return chunkML643Q3Q_cjs.getStepIds; }
57
+ get: function () { return chunkBJH5SHX3_cjs.getStepIds; }
58
58
  });
59
59
  Object.defineProperty(exports, "getStepResult", {
60
60
  enumerable: true,
61
- get: function () { return chunkML643Q3Q_cjs.getStepResult; }
61
+ get: function () { return chunkBJH5SHX3_cjs.getStepResult; }
62
62
  });
63
63
  Object.defineProperty(exports, "hydrateSerializedStepErrors", {
64
64
  enumerable: true,
65
- get: function () { return chunkML643Q3Q_cjs.hydrateSerializedStepErrors; }
65
+ get: function () { return chunkBJH5SHX3_cjs.hydrateSerializedStepErrors; }
66
66
  });
67
67
  Object.defineProperty(exports, "isProcessor", {
68
68
  enumerable: true,
69
- get: function () { return chunkML643Q3Q_cjs.isProcessor; }
69
+ get: function () { return chunkBJH5SHX3_cjs.isProcessor; }
70
70
  });
71
71
  Object.defineProperty(exports, "mapVariable", {
72
72
  enumerable: true,
73
- get: function () { return chunkML643Q3Q_cjs.mapVariable; }
73
+ get: function () { return chunkBJH5SHX3_cjs.mapVariable; }
74
74
  });
75
75
  Object.defineProperty(exports, "runCountDeprecationMessage", {
76
76
  enumerable: true,
77
- get: function () { return chunkML643Q3Q_cjs.runCountDeprecationMessage; }
77
+ get: function () { return chunkBJH5SHX3_cjs.runCountDeprecationMessage; }
78
78
  });
79
79
  Object.defineProperty(exports, "validateStepInput", {
80
80
  enumerable: true,
81
- get: function () { return chunkML643Q3Q_cjs.validateStepInput; }
81
+ get: function () { return chunkBJH5SHX3_cjs.validateStepInput; }
82
82
  });
83
83
  Object.defineProperty(exports, "validateStepRequestContext", {
84
84
  enumerable: true,
85
- get: function () { return chunkML643Q3Q_cjs.validateStepRequestContext; }
85
+ get: function () { return chunkBJH5SHX3_cjs.validateStepRequestContext; }
86
86
  });
87
87
  Object.defineProperty(exports, "validateStepResumeData", {
88
88
  enumerable: true,
89
- get: function () { return chunkML643Q3Q_cjs.validateStepResumeData; }
89
+ get: function () { return chunkBJH5SHX3_cjs.validateStepResumeData; }
90
90
  });
91
91
  Object.defineProperty(exports, "validateStepStateData", {
92
92
  enumerable: true,
93
- get: function () { return chunkML643Q3Q_cjs.validateStepStateData; }
93
+ get: function () { return chunkBJH5SHX3_cjs.validateStepStateData; }
94
94
  });
95
95
  Object.defineProperty(exports, "validateStepSuspendData", {
96
96
  enumerable: true,
97
- get: function () { return chunkML643Q3Q_cjs.validateStepSuspendData; }
97
+ get: function () { return chunkBJH5SHX3_cjs.validateStepSuspendData; }
98
98
  });
99
99
  //# sourceMappingURL=index.cjs.map
100
100
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cleanStepResult, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, hydrateSerializedStepErrors, isProcessor, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-UKZAGP3S.js';
1
+ export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cleanStepResult, cloneStep, cloneWorkflow, createDeprecationProxy, createStep, createTimeTravelExecutionParams, createWorkflow, getResumeLabelsByStepId, getStepIds, getStepResult, hydrateSerializedStepErrors, isProcessor, mapVariable, runCountDeprecationMessage, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData } from '../chunk-DNSWGNZW.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "1.20.0-alpha.0",
3
+ "version": "1.21.0-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -278,15 +278,15 @@
278
278
  "vscode-jsonrpc": "^8.2.1",
279
279
  "vscode-languageserver-protocol": "^3.17.5",
280
280
  "zod": "^4.3.6",
281
+ "@internal/ai-sdk-v4": "0.0.24",
282
+ "@internal/ai-sdk-v5": "0.0.24",
283
+ "@internal/ai-v6": "0.0.24",
281
284
  "@internal/core": "0.0.0",
282
- "@internal/ai-sdk-v5": "0.0.23",
283
- "@internal/ai-sdk-v4": "0.0.23",
284
- "@internal/lint": "0.0.76",
285
- "@internal/external-types": "0.0.26",
286
- "@internal/ai-v6": "0.0.23",
287
- "@internal/test-utils": "0.0.12",
288
- "@internal/types-builder": "0.0.51",
289
- "@internal/llm-recorder": "0.0.12"
285
+ "@internal/external-types": "0.0.27",
286
+ "@internal/llm-recorder": "0.0.13",
287
+ "@internal/test-utils": "0.0.13",
288
+ "@internal/types-builder": "0.0.52",
289
+ "@internal/lint": "0.0.77"
290
290
  },
291
291
  "engines": {
292
292
  "node": ">=22.13.0"
@@ -1822,6 +1822,7 @@ export type ProviderModelsMap = {
1822
1822
  'z-ai/glm-4.7',
1823
1823
  'z-ai/glm-4.7-flash',
1824
1824
  'z-ai/glm-5',
1825
+ 'z-ai/glm-5-turbo',
1825
1826
  ];
1826
1827
  readonly zenmux: readonly [
1827
1828
  'anthropic/claude-3.5-haiku',