@mastra/core 0.16.4-alpha.1 → 0.17.0-alpha.3

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 (159) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/agent/agent.d.ts +17 -2
  3. package/dist/agent/agent.d.ts.map +1 -1
  4. package/dist/agent/index.cjs +11 -11
  5. package/dist/agent/index.js +2 -2
  6. package/dist/agent/input-processor/index.cjs +6 -6
  7. package/dist/agent/input-processor/index.js +1 -1
  8. package/dist/agent/types.d.ts +10 -1
  9. package/dist/agent/types.d.ts.map +1 -1
  10. package/dist/ai-tracing/index.cjs +31 -31
  11. package/dist/ai-tracing/index.js +1 -1
  12. package/dist/ai-tracing/span_processors/sensitive-data-filter.d.ts +7 -1
  13. package/dist/ai-tracing/span_processors/sensitive-data-filter.d.ts.map +1 -1
  14. package/dist/bundler/index.cjs +2 -2
  15. package/dist/bundler/index.d.ts +8 -2
  16. package/dist/bundler/index.d.ts.map +1 -1
  17. package/dist/bundler/index.js +1 -1
  18. package/dist/{chunk-AWILTHBM.js → chunk-2PQSZI63.js} +3 -3
  19. package/dist/{chunk-AWILTHBM.js.map → chunk-2PQSZI63.js.map} +1 -1
  20. package/dist/{chunk-BIXBJ4DU.cjs → chunk-4UUBZNVD.cjs} +7 -7
  21. package/dist/{chunk-BIXBJ4DU.cjs.map → chunk-4UUBZNVD.cjs.map} +1 -1
  22. package/dist/{chunk-O5GOFG6A.js → chunk-6DGBFJVJ.js} +3 -3
  23. package/dist/{chunk-O5GOFG6A.js.map → chunk-6DGBFJVJ.js.map} +1 -1
  24. package/dist/{chunk-J52TTT6T.js → chunk-6ER2C5KK.js} +34 -32
  25. package/dist/chunk-6ER2C5KK.js.map +1 -0
  26. package/dist/{chunk-GJKL73EJ.cjs → chunk-7GC52IJO.cjs} +6 -6
  27. package/dist/{chunk-GJKL73EJ.cjs.map → chunk-7GC52IJO.cjs.map} +1 -1
  28. package/dist/{chunk-ZDMAOD35.js → chunk-A6DPQCNR.js} +3 -3
  29. package/dist/{chunk-ZDMAOD35.js.map → chunk-A6DPQCNR.js.map} +1 -1
  30. package/dist/{chunk-DUUXEPE5.cjs → chunk-AZW77RIZ.cjs} +4 -4
  31. package/dist/{chunk-DUUXEPE5.cjs.map → chunk-AZW77RIZ.cjs.map} +1 -1
  32. package/dist/{chunk-ERRIEUC2.cjs → chunk-CUL4XPO7.cjs} +12 -4
  33. package/dist/chunk-CUL4XPO7.cjs.map +1 -0
  34. package/dist/{chunk-L34N5NMP.cjs → chunk-DFG5DYBU.cjs} +4 -4
  35. package/dist/{chunk-L34N5NMP.cjs.map → chunk-DFG5DYBU.cjs.map} +1 -1
  36. package/dist/{chunk-EE5TG5UG.cjs → chunk-FJRTJO6A.cjs} +12 -12
  37. package/dist/{chunk-EE5TG5UG.cjs.map → chunk-FJRTJO6A.cjs.map} +1 -1
  38. package/dist/{chunk-PY4MHJTE.js → chunk-G366B5BY.js} +2 -2
  39. package/dist/chunk-G366B5BY.js.map +1 -0
  40. package/dist/{chunk-WNN3LIOF.js → chunk-HN446TOQ.js} +3 -3
  41. package/dist/{chunk-WNN3LIOF.js.map → chunk-HN446TOQ.js.map} +1 -1
  42. package/dist/{chunk-ENZVBXRB.js → chunk-K3JIDVC4.js} +69 -3
  43. package/dist/chunk-K3JIDVC4.js.map +1 -0
  44. package/dist/{chunk-PRTH6W72.js → chunk-MEAE636Z.js} +3 -3
  45. package/dist/{chunk-PRTH6W72.js.map → chunk-MEAE636Z.js.map} +1 -1
  46. package/dist/{chunk-ELLP4WJF.cjs → chunk-NHXCRP73.cjs} +54 -52
  47. package/dist/chunk-NHXCRP73.cjs.map +1 -0
  48. package/dist/{chunk-CLEXBHVL.js → chunk-O5ZQXW2Z.js} +5 -5
  49. package/dist/{chunk-CLEXBHVL.js.map → chunk-O5ZQXW2Z.js.map} +1 -1
  50. package/dist/{chunk-VH3RNDZA.cjs → chunk-PGJPVLDZ.cjs} +6 -6
  51. package/dist/{chunk-VH3RNDZA.cjs.map → chunk-PGJPVLDZ.cjs.map} +1 -1
  52. package/dist/{chunk-LVVAUDVQ.cjs → chunk-QHDT3QQC.cjs} +2 -2
  53. package/dist/chunk-QHDT3QQC.cjs.map +1 -0
  54. package/dist/chunk-QPOJZU26.cjs +14 -0
  55. package/dist/{chunk-ELKY3FEM.cjs.map → chunk-QPOJZU26.cjs.map} +1 -1
  56. package/dist/{chunk-KFXKSOXF.js → chunk-RYRLZO4M.js} +3 -3
  57. package/dist/{chunk-KFXKSOXF.js.map → chunk-RYRLZO4M.js.map} +1 -1
  58. package/dist/{chunk-KICLFGCP.cjs → chunk-S5QJEY5X.cjs} +69 -3
  59. package/dist/chunk-S5QJEY5X.cjs.map +1 -0
  60. package/dist/{chunk-ODLGLX2R.js → chunk-UIOXAMCE.js} +12 -4
  61. package/dist/chunk-UIOXAMCE.js.map +1 -0
  62. package/dist/{chunk-DORWTJUT.cjs → chunk-VFSLYB2P.cjs} +7 -7
  63. package/dist/{chunk-DORWTJUT.cjs.map → chunk-VFSLYB2P.cjs.map} +1 -1
  64. package/dist/{chunk-BVE3UPHV.js → chunk-YUSC7Q6Y.js} +4 -4
  65. package/dist/{chunk-BVE3UPHV.js.map → chunk-YUSC7Q6Y.js.map} +1 -1
  66. package/dist/deployer/index.cjs +2 -2
  67. package/dist/deployer/index.js +1 -1
  68. package/dist/index.cjs +45 -45
  69. package/dist/index.js +10 -10
  70. package/dist/llm/model/model.loop.d.ts +4 -4
  71. package/dist/llm/model/model.loop.d.ts.map +1 -1
  72. package/dist/llm/model/model.loop.types.d.ts +1 -1
  73. package/dist/llm/model/model.loop.types.d.ts.map +1 -1
  74. package/dist/llm/model/shared.types.d.ts +1 -0
  75. package/dist/llm/model/shared.types.d.ts.map +1 -1
  76. package/dist/loop/index.cjs +2 -2
  77. package/dist/loop/index.js +1 -1
  78. package/dist/loop/loop.d.ts +1 -1
  79. package/dist/loop/loop.d.ts.map +1 -1
  80. package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
  81. package/dist/loop/test-utils/generateText.d.ts.map +1 -1
  82. package/dist/loop/test-utils/options.d.ts.map +1 -1
  83. package/dist/loop/test-utils/resultObject.d.ts.map +1 -1
  84. package/dist/loop/test-utils/streamObject.d.ts.map +1 -1
  85. package/dist/loop/test-utils/textStream.d.ts.map +1 -1
  86. package/dist/loop/test-utils/toUIMessageStream.d.ts.map +1 -1
  87. package/dist/loop/test-utils/tools.d.ts.map +1 -1
  88. package/dist/loop/test-utils/utils.d.ts +4 -3
  89. package/dist/loop/test-utils/utils.d.ts.map +1 -1
  90. package/dist/loop/types.d.ts +3 -2
  91. package/dist/loop/types.d.ts.map +1 -1
  92. package/dist/loop/workflow/llm-execution.d.ts +1 -1
  93. package/dist/loop/workflow/llm-execution.d.ts.map +1 -1
  94. package/dist/loop/workflow/outer-llm-step.d.ts +1 -1
  95. package/dist/loop/workflow/outer-llm-step.d.ts.map +1 -1
  96. package/dist/loop/workflow/run-state.d.ts.map +1 -1
  97. package/dist/loop/workflow/stream.d.ts +1 -1
  98. package/dist/loop/workflow/stream.d.ts.map +1 -1
  99. package/dist/mastra/index.cjs +2 -2
  100. package/dist/mastra/index.js +1 -1
  101. package/dist/memory/index.cjs +4 -4
  102. package/dist/memory/index.js +1 -1
  103. package/dist/network/index.cjs +2 -2
  104. package/dist/network/index.js +1 -1
  105. package/dist/network/vNext/index.cjs +29 -29
  106. package/dist/network/vNext/index.js +2 -2
  107. package/dist/processors/index.cjs +8 -8
  108. package/dist/processors/index.js +2 -2
  109. package/dist/relevance/index.cjs +4 -4
  110. package/dist/relevance/index.js +1 -1
  111. package/dist/scores/index.cjs +8 -8
  112. package/dist/scores/index.js +1 -1
  113. package/dist/server/types.d.ts +7 -0
  114. package/dist/server/types.d.ts.map +1 -1
  115. package/dist/storage/base.d.ts +27 -1
  116. package/dist/storage/base.d.ts.map +1 -1
  117. package/dist/storage/domains/operations/base.d.ts +26 -1
  118. package/dist/storage/domains/operations/base.d.ts.map +1 -1
  119. package/dist/storage/index.cjs +64 -10
  120. package/dist/storage/index.cjs.map +1 -1
  121. package/dist/storage/index.js +58 -4
  122. package/dist/storage/index.js.map +1 -1
  123. package/dist/storage/mock.d.ts +1 -0
  124. package/dist/storage/mock.d.ts.map +1 -1
  125. package/dist/storage/types.d.ts +27 -0
  126. package/dist/storage/types.d.ts.map +1 -1
  127. package/dist/stream/aisdk/v5/execute.d.ts +2 -1
  128. package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
  129. package/dist/stream/aisdk/v5/output-helpers.d.ts +1 -5
  130. package/dist/stream/aisdk/v5/output-helpers.d.ts.map +1 -1
  131. package/dist/stream/aisdk/v5/output.d.ts +2 -10
  132. package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
  133. package/dist/stream/base/output-format-handlers.d.ts.map +1 -1
  134. package/dist/stream/base/output.d.ts +4 -6
  135. package/dist/stream/base/output.d.ts.map +1 -1
  136. package/dist/stream/index.cjs +3 -3
  137. package/dist/stream/index.js +1 -1
  138. package/dist/stream/types.d.ts +7 -1
  139. package/dist/stream/types.d.ts.map +1 -1
  140. package/dist/test-utils/llm-mock.cjs +2 -2
  141. package/dist/test-utils/llm-mock.js +1 -1
  142. package/dist/utils.cjs +17 -17
  143. package/dist/utils.js +1 -1
  144. package/dist/workflows/evented/index.cjs +10 -10
  145. package/dist/workflows/evented/index.js +1 -1
  146. package/dist/workflows/index.cjs +10 -10
  147. package/dist/workflows/index.js +1 -1
  148. package/dist/workflows/legacy/index.cjs +22 -22
  149. package/dist/workflows/legacy/index.js +1 -1
  150. package/package.json +7 -6
  151. package/dist/chunk-ELKY3FEM.cjs +0 -14
  152. package/dist/chunk-ELLP4WJF.cjs.map +0 -1
  153. package/dist/chunk-ENZVBXRB.js.map +0 -1
  154. package/dist/chunk-ERRIEUC2.cjs.map +0 -1
  155. package/dist/chunk-J52TTT6T.js.map +0 -1
  156. package/dist/chunk-KICLFGCP.cjs.map +0 -1
  157. package/dist/chunk-LVVAUDVQ.cjs.map +0 -1
  158. package/dist/chunk-ODLGLX2R.js.map +0 -1
  159. package/dist/chunk-PY4MHJTE.js.map +0 -1
@@ -1,92 +1,92 @@
1
1
  'use strict';
2
2
 
3
- var chunkELLP4WJF_cjs = require('../../chunk-ELLP4WJF.cjs');
3
+ var chunkNHXCRP73_cjs = require('../../chunk-NHXCRP73.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "LegacyStep", {
8
8
  enumerable: true,
9
- get: function () { return chunkELLP4WJF_cjs.LegacyStep; }
9
+ get: function () { return chunkNHXCRP73_cjs.LegacyStep; }
10
10
  });
11
11
  Object.defineProperty(exports, "LegacyWorkflow", {
12
12
  enumerable: true,
13
- get: function () { return chunkELLP4WJF_cjs.LegacyWorkflow; }
13
+ get: function () { return chunkNHXCRP73_cjs.LegacyWorkflow; }
14
14
  });
15
15
  Object.defineProperty(exports, "WhenConditionReturnValue", {
16
16
  enumerable: true,
17
- get: function () { return chunkELLP4WJF_cjs.WhenConditionReturnValue; }
17
+ get: function () { return chunkNHXCRP73_cjs.WhenConditionReturnValue; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkELLP4WJF_cjs.agentToStep; }
21
+ get: function () { return chunkNHXCRP73_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "getActivePathsAndStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunkELLP4WJF_cjs.getActivePathsAndStatus; }
25
+ get: function () { return chunkNHXCRP73_cjs.getActivePathsAndStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "getResultActivePaths", {
28
28
  enumerable: true,
29
- get: function () { return chunkELLP4WJF_cjs.getResultActivePaths; }
29
+ get: function () { return chunkNHXCRP73_cjs.getResultActivePaths; }
30
30
  });
31
31
  Object.defineProperty(exports, "getStepResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkELLP4WJF_cjs.getStepResult; }
33
+ get: function () { return chunkNHXCRP73_cjs.getStepResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "getSuspendedPaths", {
36
36
  enumerable: true,
37
- get: function () { return chunkELLP4WJF_cjs.getSuspendedPaths; }
37
+ get: function () { return chunkNHXCRP73_cjs.getSuspendedPaths; }
38
38
  });
39
39
  Object.defineProperty(exports, "isAgent", {
40
40
  enumerable: true,
41
- get: function () { return chunkELLP4WJF_cjs.isAgent; }
41
+ get: function () { return chunkNHXCRP73_cjs.isAgent; }
42
42
  });
43
43
  Object.defineProperty(exports, "isConditionalKey", {
44
44
  enumerable: true,
45
- get: function () { return chunkELLP4WJF_cjs.isConditionalKey; }
45
+ get: function () { return chunkNHXCRP73_cjs.isConditionalKey; }
46
46
  });
47
47
  Object.defineProperty(exports, "isErrorEvent", {
48
48
  enumerable: true,
49
- get: function () { return chunkELLP4WJF_cjs.isErrorEvent; }
49
+ get: function () { return chunkNHXCRP73_cjs.isErrorEvent; }
50
50
  });
51
51
  Object.defineProperty(exports, "isFinalState", {
52
52
  enumerable: true,
53
- get: function () { return chunkELLP4WJF_cjs.isFinalState; }
53
+ get: function () { return chunkNHXCRP73_cjs.isFinalState; }
54
54
  });
55
55
  Object.defineProperty(exports, "isLimboState", {
56
56
  enumerable: true,
57
- get: function () { return chunkELLP4WJF_cjs.isLimboState; }
57
+ get: function () { return chunkNHXCRP73_cjs.isLimboState; }
58
58
  });
59
59
  Object.defineProperty(exports, "isTransitionEvent", {
60
60
  enumerable: true,
61
- get: function () { return chunkELLP4WJF_cjs.isTransitionEvent; }
61
+ get: function () { return chunkNHXCRP73_cjs.isTransitionEvent; }
62
62
  });
63
63
  Object.defineProperty(exports, "isVariableReference", {
64
64
  enumerable: true,
65
- get: function () { return chunkELLP4WJF_cjs.isVariableReference; }
65
+ get: function () { return chunkNHXCRP73_cjs.isVariableReference; }
66
66
  });
67
67
  Object.defineProperty(exports, "isWorkflow", {
68
68
  enumerable: true,
69
- get: function () { return chunkELLP4WJF_cjs.isWorkflow; }
69
+ get: function () { return chunkNHXCRP73_cjs.isWorkflow; }
70
70
  });
71
71
  Object.defineProperty(exports, "mergeChildValue", {
72
72
  enumerable: true,
73
- get: function () { return chunkELLP4WJF_cjs.mergeChildValue; }
73
+ get: function () { return chunkNHXCRP73_cjs.mergeChildValue; }
74
74
  });
75
75
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
76
76
  enumerable: true,
77
- get: function () { return chunkELLP4WJF_cjs.recursivelyCheckForFinalState; }
77
+ get: function () { return chunkNHXCRP73_cjs.recursivelyCheckForFinalState; }
78
78
  });
79
79
  Object.defineProperty(exports, "resolveVariables", {
80
80
  enumerable: true,
81
- get: function () { return chunkELLP4WJF_cjs.resolveVariables; }
81
+ get: function () { return chunkNHXCRP73_cjs.resolveVariables; }
82
82
  });
83
83
  Object.defineProperty(exports, "updateStepInHierarchy", {
84
84
  enumerable: true,
85
- get: function () { return chunkELLP4WJF_cjs.updateStepInHierarchy; }
85
+ get: function () { return chunkNHXCRP73_cjs.updateStepInHierarchy; }
86
86
  });
87
87
  Object.defineProperty(exports, "workflowToStep", {
88
88
  enumerable: true,
89
- get: function () { return chunkELLP4WJF_cjs.workflowToStep; }
89
+ get: function () { return chunkNHXCRP73_cjs.workflowToStep; }
90
90
  });
91
91
  //# sourceMappingURL=index.cjs.map
92
92
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { LegacyStep, LegacyWorkflow, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../../chunk-J52TTT6T.js';
1
+ export { LegacyStep, LegacyWorkflow, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../../chunk-6ER2C5KK.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": "0.16.4-alpha.1",
3
+ "version": "0.17.0-alpha.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -168,7 +168,7 @@
168
168
  "@a2a-js/sdk": "~0.2.4",
169
169
  "@ai-sdk/provider": "^1.1.3",
170
170
  "@ai-sdk/provider-utils": "^2.2.8",
171
- "@ai-sdk/provider-utils-v5": "npm:@ai-sdk/provider-utils@3.0.5",
171
+ "@ai-sdk/provider-utils-v5": "npm:@ai-sdk/provider-utils@3.0.9",
172
172
  "@ai-sdk/provider-v5": "npm:@ai-sdk/provider@2.0.0",
173
173
  "@ai-sdk/ui-utils": "^1.2.11",
174
174
  "@opentelemetry/api": "^1.9.0",
@@ -186,11 +186,12 @@
186
186
  "@opentelemetry/semantic-conventions": "^1.36.0",
187
187
  "@sindresorhus/slugify": "^2.2.1",
188
188
  "ai": "^4.3.19",
189
- "ai-v5": "npm:ai@5.0.28",
189
+ "ai-v5": "npm:ai@5.0.44",
190
190
  "date-fns": "^3.6.0",
191
191
  "dotenv": "^16.6.1",
192
192
  "hono": "^4.9.6",
193
193
  "hono-openapi": "^0.4.8",
194
+ "js-tiktoken": "^1.0.20",
194
195
  "json-schema": "^0.4.0",
195
196
  "json-schema-to-zod": "^2.6.1",
196
197
  "p-map": "^7.0.3",
@@ -198,7 +199,6 @@
198
199
  "pino-pretty": "^13.0.0",
199
200
  "radash": "^12.1.1",
200
201
  "sift": "^17.1.3",
201
- "js-tiktoken": "^1.0.20",
202
202
  "xstate": "^5.20.1",
203
203
  "zod-to-json-schema": "^3.24.6",
204
204
  "@mastra/schema-compat": "0.11.3"
@@ -209,7 +209,7 @@
209
209
  "devDependencies": {
210
210
  "@ai-sdk/openai": "^1.3.24",
211
211
  "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.23",
212
- "@babel/core": "^7.28.0",
212
+ "@babel/core": "^7.28.4",
213
213
  "@microsoft/api-extractor": "^7.52.8",
214
214
  "@openrouter/ai-sdk-provider": "^0.4.6",
215
215
  "@openrouter/ai-sdk-provider-v5": "npm:@openrouter/ai-sdk-provider@1.1.2",
@@ -222,7 +222,8 @@
222
222
  "eslint": "^9.30.1",
223
223
  "fast-deep-equal": "^3.1.3",
224
224
  "globby": "^14.1.0",
225
- "rollup": "^4.42.0",
225
+ "msw": "^2.11.2",
226
+ "rollup": "^4.50.2",
226
227
  "tsup": "^8.5.0",
227
228
  "typescript": "^5.8.3",
228
229
  "vitest": "^3.2.4",
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkLVVAUDVQ_cjs = require('./chunk-LVVAUDVQ.cjs');
4
-
5
- // src/deployer/index.ts
6
- var MastraDeployer = class extends chunkLVVAUDVQ_cjs.MastraBundler {
7
- constructor({ name }) {
8
- super({ component: "DEPLOYER", name });
9
- }
10
- };
11
-
12
- exports.MastraDeployer = MastraDeployer;
13
- //# sourceMappingURL=chunk-ELKY3FEM.cjs.map
14
- //# sourceMappingURL=chunk-ELKY3FEM.cjs.map