@mastra/core 0.9.4 → 0.10.0-alpha.1

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 (168) hide show
  1. package/README.md +3 -2
  2. package/dist/agent/index.cjs +2 -2
  3. package/dist/agent/index.d.cts +13 -14
  4. package/dist/agent/index.d.ts +13 -14
  5. package/dist/agent/index.js +1 -1
  6. package/dist/{base-BCfssGt6.d.ts → base-DttB7sJD.d.ts} +1187 -886
  7. package/dist/{base-CAEcd6q2.d.cts → base-aJ3etsh5.d.cts} +1187 -886
  8. package/dist/{base-H7siSAfu.d.cts → base-aPYtPBT2.d.cts} +3 -3
  9. package/dist/{base-4Z34GQL8.d.ts → base-tc5kgDTD.d.ts} +3 -3
  10. package/dist/base.cjs +2 -2
  11. package/dist/base.d.cts +2 -3
  12. package/dist/base.d.ts +2 -3
  13. package/dist/base.js +1 -1
  14. package/dist/bundler/index.cjs +2 -2
  15. package/dist/bundler/index.d.cts +2 -3
  16. package/dist/bundler/index.d.ts +2 -3
  17. package/dist/bundler/index.js +1 -1
  18. package/dist/{chunk-W4BSLENO.js → chunk-2NTUAUGH.js} +1 -1
  19. package/dist/{chunk-S34QVMKE.js → chunk-2PW6UJMW.js} +77 -10
  20. package/dist/{chunk-WE36CRQV.cjs → chunk-2U7ZZUFO.cjs} +2 -2
  21. package/dist/{workflows/vNext/index.js → chunk-3SQ3G2EJ.js} +19 -16
  22. package/dist/chunk-5HULBQ2W.cjs +38 -0
  23. package/dist/{chunk-XRGDVLM4.cjs → chunk-5JRD3NDP.cjs} +15 -15
  24. package/dist/{chunk-GXKODTLA.cjs → chunk-5W2G7S44.cjs} +83 -68
  25. package/dist/chunk-75Z4BZEE.js +36 -0
  26. package/dist/{chunk-66GQROSI.cjs → chunk-AOGUTJUO.cjs} +58 -51
  27. package/dist/{chunk-WIKOYZ63.js → chunk-BPTSLJHA.js} +9 -9
  28. package/dist/{chunk-JBJ7KXN5.js → chunk-C3ICEF6E.js} +1 -1
  29. package/dist/{chunk-E4FAXBUV.cjs → chunk-CWSFP2HS.cjs} +2 -2
  30. package/dist/{chunk-FW5RS6WV.js → chunk-E7CLY6SK.js} +42 -35
  31. package/dist/{chunk-235X76GC.js → chunk-FI7R232B.js} +2 -2
  32. package/dist/chunk-GQ2XQ4UN.js +321 -0
  33. package/dist/{chunk-H4CEZSRM.js → chunk-J7GDGV6F.js} +1 -1
  34. package/dist/{chunk-NLBJOFNG.js → chunk-JW5TMK2L.js} +1 -1
  35. package/dist/{chunk-NOPY74PV.js → chunk-KJQFFEEQ.js} +1 -1
  36. package/dist/{chunk-V2Q2FEVO.cjs → chunk-KSPHQSZX.cjs} +2 -2
  37. package/dist/{chunk-NZV4OA6P.js → chunk-LHRZV5VG.js} +2 -23
  38. package/dist/chunk-NMDM4IZN.cjs +78 -0
  39. package/dist/chunk-OBEALYTK.js +74 -0
  40. package/dist/{chunk-PEK4TY3P.js → chunk-OCT2762Q.js} +1 -1
  41. package/dist/{chunk-5DUFC7TV.cjs → chunk-P7BGXOQV.cjs} +2 -2
  42. package/dist/{chunk-WQKOM7XM.cjs → chunk-PIZM25KI.cjs} +3 -24
  43. package/dist/{chunk-S7J63JOG.cjs → chunk-RVS6OUJN.cjs} +2 -2
  44. package/dist/{chunk-5JUWUTPJ.cjs → chunk-SKG2NIZW.cjs} +2 -2
  45. package/dist/chunk-SWW4EBUZ.cjs +96 -0
  46. package/dist/{chunk-RGE4UF6A.cjs → chunk-TMPFLJLG.cjs} +2 -2
  47. package/dist/{workflows/vNext/index.cjs → chunk-TTKQ37ZZ.cjs} +24 -21
  48. package/dist/{chunk-EJITEVAB.cjs → chunk-U3L3NEOM.cjs} +81 -10
  49. package/dist/chunk-VHLL4AZK.js +90 -0
  50. package/dist/{chunk-EG74VBSP.cjs → chunk-YEULQPUY.cjs} +6 -6
  51. package/dist/{chunk-SOLXHDNQ.js → chunk-ZB3LEHL2.js} +81 -66
  52. package/dist/{chunk-TAFOICHR.js → chunk-ZKN6HYYQ.js} +1 -1
  53. package/dist/chunk-ZZDAC5KD.cjs +325 -0
  54. package/dist/deployer/index.cjs +2 -2
  55. package/dist/deployer/index.d.cts +2 -3
  56. package/dist/deployer/index.d.ts +2 -3
  57. package/dist/deployer/index.js +1 -1
  58. package/dist/eval/index.d.cts +13 -14
  59. package/dist/eval/index.d.ts +13 -14
  60. package/dist/hooks/index.d.cts +1 -1
  61. package/dist/hooks/index.d.ts +1 -1
  62. package/dist/index.cjs +88 -159
  63. package/dist/index.d.cts +17 -25
  64. package/dist/index.d.ts +17 -25
  65. package/dist/index.js +18 -25
  66. package/dist/integration/index.cjs +3 -3
  67. package/dist/integration/index.d.cts +12 -13
  68. package/dist/integration/index.d.ts +12 -13
  69. package/dist/integration/index.js +1 -1
  70. package/dist/llm/index.d.cts +13 -14
  71. package/dist/llm/index.d.ts +13 -14
  72. package/dist/logger/index.cjs +18 -17
  73. package/dist/logger/index.d.cts +42 -2
  74. package/dist/logger/index.d.ts +42 -2
  75. package/dist/logger/index.js +2 -1
  76. package/dist/{index-QV27jkxQ.d.ts → logger-EhZkzZOr.d.cts} +38 -52
  77. package/dist/{index-QV27jkxQ.d.cts → logger-EhZkzZOr.d.ts} +38 -52
  78. package/dist/mastra/index.cjs +2 -2
  79. package/dist/mastra/index.d.cts +11 -12
  80. package/dist/mastra/index.d.ts +11 -12
  81. package/dist/mastra/index.js +1 -1
  82. package/dist/mcp/index.cjs +75 -17
  83. package/dist/mcp/index.d.cts +14 -15
  84. package/dist/mcp/index.d.ts +14 -15
  85. package/dist/mcp/index.js +69 -15
  86. package/dist/memory/index.cjs +4 -4
  87. package/dist/memory/index.d.cts +12 -13
  88. package/dist/memory/index.d.ts +12 -13
  89. package/dist/memory/index.js +1 -1
  90. package/dist/network/index.cjs +8 -8
  91. package/dist/network/index.d.cts +12 -13
  92. package/dist/network/index.d.ts +12 -13
  93. package/dist/network/index.js +5 -5
  94. package/dist/relevance/index.cjs +4 -4
  95. package/dist/relevance/index.d.cts +15 -16
  96. package/dist/relevance/index.d.ts +15 -16
  97. package/dist/relevance/index.js +1 -1
  98. package/dist/server/index.cjs +4 -0
  99. package/dist/server/index.d.cts +13 -12
  100. package/dist/server/index.d.ts +13 -12
  101. package/dist/server/index.js +4 -1
  102. package/dist/storage/index.cjs +184 -3
  103. package/dist/storage/index.d.cts +83 -13
  104. package/dist/storage/index.d.ts +83 -13
  105. package/dist/storage/index.js +186 -1
  106. package/dist/telemetry/index.d.cts +14 -15
  107. package/dist/telemetry/index.d.ts +14 -15
  108. package/dist/telemetry/otel-vendor.cjs +2 -2
  109. package/dist/telemetry/otel-vendor.d.cts +1 -1
  110. package/dist/telemetry/otel-vendor.d.ts +1 -1
  111. package/dist/telemetry/otel-vendor.js +1 -1
  112. package/dist/tools/index.cjs +4 -4
  113. package/dist/tools/index.d.cts +12 -13
  114. package/dist/tools/index.d.ts +12 -13
  115. package/dist/tools/index.js +1 -1
  116. package/dist/tts/index.cjs +2 -2
  117. package/dist/tts/index.d.cts +2 -3
  118. package/dist/tts/index.d.ts +2 -3
  119. package/dist/tts/index.js +1 -1
  120. package/dist/{types-BtMyV38I.d.ts → types-Bo1uigWx.d.cts} +1 -1
  121. package/dist/{types-BtMyV38I.d.cts → types-Bo1uigWx.d.ts} +1 -1
  122. package/dist/utils.cjs +28 -12
  123. package/dist/utils.d.cts +59 -16
  124. package/dist/utils.d.ts +59 -16
  125. package/dist/utils.js +1 -1
  126. package/dist/vector/filter/index.cjs +189 -7
  127. package/dist/vector/filter/index.js +190 -1
  128. package/dist/vector/index.cjs +2 -2
  129. package/dist/vector/index.d.cts +28 -20
  130. package/dist/vector/index.d.ts +28 -20
  131. package/dist/vector/index.js +1 -1
  132. package/dist/voice/index.cjs +4 -4
  133. package/dist/voice/index.d.cts +12 -13
  134. package/dist/voice/index.d.ts +12 -13
  135. package/dist/voice/index.js +1 -1
  136. package/dist/workflows/index.cjs +17 -69
  137. package/dist/workflows/index.d.cts +197 -77
  138. package/dist/workflows/index.d.ts +197 -77
  139. package/dist/workflows/index.js +1 -1
  140. package/dist/workflows/legacy/index.cjs +90 -0
  141. package/dist/workflows/legacy/index.d.cts +87 -0
  142. package/dist/workflows/legacy/index.d.ts +87 -0
  143. package/dist/workflows/legacy/index.js +1 -0
  144. package/package.json +19 -40
  145. package/workflows/legacy.d.ts +1 -0
  146. package/dist/chunk-4WABQORE.js +0 -781
  147. package/dist/chunk-CIEPFV6B.js +0 -658
  148. package/dist/chunk-CMPPXW4U.js +0 -154
  149. package/dist/chunk-CTKNWYK2.js +0 -131
  150. package/dist/chunk-LGERQTJM.js +0 -190
  151. package/dist/chunk-O44MSFMZ.cjs +0 -168
  152. package/dist/chunk-QDAMIZY3.cjs +0 -783
  153. package/dist/chunk-QHDPLMHB.cjs +0 -667
  154. package/dist/chunk-RAQBTCIR.cjs +0 -134
  155. package/dist/chunk-YK3XJ52U.cjs +0 -192
  156. package/dist/storage/libsql/index.cjs +0 -581
  157. package/dist/storage/libsql/index.d.cts +0 -104
  158. package/dist/storage/libsql/index.d.ts +0 -104
  159. package/dist/storage/libsql/index.js +0 -578
  160. package/dist/vector/libsql/index.cjs +0 -14
  161. package/dist/vector/libsql/index.d.cts +0 -82
  162. package/dist/vector/libsql/index.d.ts +0 -82
  163. package/dist/vector/libsql/index.js +0 -1
  164. package/dist/workflows/vNext/index.d.cts +0 -209
  165. package/dist/workflows/vNext/index.d.ts +0 -209
  166. package/storage/libsql.d.ts +0 -1
  167. package/vector/libsql.d.ts +0 -1
  168. package/workflows/vNext.d.ts +0 -1
package/dist/index.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunkWE36CRQV_cjs = require('./chunk-WE36CRQV.cjs');
4
- var chunkV2Q2FEVO_cjs = require('./chunk-V2Q2FEVO.cjs');
5
- var chunk5JUWUTPJ_cjs = require('./chunk-5JUWUTPJ.cjs');
6
- var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
7
- var chunkGXKODTLA_cjs = require('./chunk-GXKODTLA.cjs');
8
- var chunkQHDPLMHB_cjs = require('./chunk-QHDPLMHB.cjs');
9
- var chunkWQKOM7XM_cjs = require('./chunk-WQKOM7XM.cjs');
10
- var chunk5DUFC7TV_cjs = require('./chunk-5DUFC7TV.cjs');
11
- var chunk66GQROSI_cjs = require('./chunk-66GQROSI.cjs');
12
- var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
13
- var chunkEJITEVAB_cjs = require('./chunk-EJITEVAB.cjs');
3
+ var chunkKSPHQSZX_cjs = require('./chunk-KSPHQSZX.cjs');
4
+ var chunkPIZM25KI_cjs = require('./chunk-PIZM25KI.cjs');
5
+ var chunkTTKQ37ZZ_cjs = require('./chunk-TTKQ37ZZ.cjs');
6
+ var chunk2U7ZZUFO_cjs = require('./chunk-2U7ZZUFO.cjs');
7
+ var chunkP7BGXOQV_cjs = require('./chunk-P7BGXOQV.cjs');
14
8
  var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
9
+ var chunkSKG2NIZW_cjs = require('./chunk-SKG2NIZW.cjs');
10
+ var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
11
+ var chunk5W2G7S44_cjs = require('./chunk-5W2G7S44.cjs');
12
+ var chunkZZDAC5KD_cjs = require('./chunk-ZZDAC5KD.cjs');
13
+ var chunkAOGUTJUO_cjs = require('./chunk-AOGUTJUO.cjs');
15
14
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
16
- var chunkE4FAXBUV_cjs = require('./chunk-E4FAXBUV.cjs');
17
- var chunkEG74VBSP_cjs = require('./chunk-EG74VBSP.cjs');
18
- var chunkO44MSFMZ_cjs = require('./chunk-O44MSFMZ.cjs');
15
+ var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
16
+ var chunkU3L3NEOM_cjs = require('./chunk-U3L3NEOM.cjs');
17
+ var chunkCWSFP2HS_cjs = require('./chunk-CWSFP2HS.cjs');
18
+ var chunkYEULQPUY_cjs = require('./chunk-YEULQPUY.cjs');
19
19
 
20
20
  // src/agent/index.warning.ts
21
- var Agent2 = class extends chunk66GQROSI_cjs.Agent {
21
+ var Agent2 = class extends chunkAOGUTJUO_cjs.Agent {
22
22
  constructor(config) {
23
23
  super(config);
24
24
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -26,7 +26,7 @@ var Agent2 = class extends chunk66GQROSI_cjs.Agent {
26
26
  };
27
27
 
28
28
  // src/base.warning.ts
29
- var MastraBase2 = class extends chunkEG74VBSP_cjs.MastraBase {
29
+ var MastraBase2 = class extends chunkYEULQPUY_cjs.MastraBase {
30
30
  constructor(args) {
31
31
  super(args);
32
32
  this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
@@ -34,7 +34,7 @@ var MastraBase2 = class extends chunkEG74VBSP_cjs.MastraBase {
34
34
  };
35
35
 
36
36
  // src/deployer/index.warning.ts
37
- var MastraDeployer2 = class extends chunkE4FAXBUV_cjs.MastraDeployer {
37
+ var MastraDeployer2 = class extends chunkCWSFP2HS_cjs.MastraDeployer {
38
38
  constructor(args) {
39
39
  super(args);
40
40
  this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
@@ -42,7 +42,7 @@ var MastraDeployer2 = class extends chunkE4FAXBUV_cjs.MastraDeployer {
42
42
  };
43
43
 
44
44
  // src/storage/base.warning.ts
45
- var MastraStorage2 = class extends chunk5DUFC7TV_cjs.MastraStorage {
45
+ var MastraStorage2 = class extends chunkP7BGXOQV_cjs.MastraStorage {
46
46
  constructor({ name }) {
47
47
  super({
48
48
  name
@@ -52,7 +52,7 @@ var MastraStorage2 = class extends chunk5DUFC7TV_cjs.MastraStorage {
52
52
  };
53
53
 
54
54
  // src/integration/integration.warning.ts
55
- var Integration2 = class extends chunk5JUWUTPJ_cjs.Integration {
55
+ var Integration2 = class extends chunkSKG2NIZW_cjs.Integration {
56
56
  constructor() {
57
57
  super();
58
58
  console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
@@ -60,21 +60,15 @@ var Integration2 = class extends chunk5JUWUTPJ_cjs.Integration {
60
60
  };
61
61
 
62
62
  // src/integration/openapi-toolset.warning.ts
63
- var OpenAPIToolset2 = class extends chunk5JUWUTPJ_cjs.OpenAPIToolset {
63
+ var OpenAPIToolset2 = class extends chunkSKG2NIZW_cjs.OpenAPIToolset {
64
64
  constructor() {
65
65
  super();
66
66
  console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
67
67
  }
68
68
  };
69
69
 
70
- // src/logger/index.warning.ts
71
- function createLogger2(options) {
72
- console.warn('Please import "createLogger" from "@mastra/core/logger" instead of "@mastra/core"');
73
- return chunkO44MSFMZ_cjs.createLogger(options);
74
- }
75
-
76
70
  // src/memory/index.warning.ts
77
- var MastraMemory2 = class extends chunkQHDPLMHB_cjs.MastraMemory {
71
+ var MastraMemory2 = class extends chunkZZDAC5KD_cjs.MastraMemory {
78
72
  constructor(_arg) {
79
73
  super({ name: `Deprecated memory` });
80
74
  this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
@@ -82,7 +76,7 @@ var MastraMemory2 = class extends chunkQHDPLMHB_cjs.MastraMemory {
82
76
  };
83
77
 
84
78
  // src/tools/index.warning.ts
85
- var Tool2 = class extends chunkEJITEVAB_cjs.Tool {
79
+ var Tool2 = class extends chunkU3L3NEOM_cjs.Tool {
86
80
  constructor(opts) {
87
81
  super(opts);
88
82
  console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
@@ -90,7 +84,7 @@ var Tool2 = class extends chunkEJITEVAB_cjs.Tool {
90
84
  };
91
85
 
92
86
  // src/tts/index.warning.ts
93
- var MastraTTS2 = class extends chunkV2Q2FEVO_cjs.MastraTTS {
87
+ var MastraTTS2 = class extends chunkKSPHQSZX_cjs.MastraTTS {
94
88
  constructor(args) {
95
89
  super(args);
96
90
  this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
@@ -98,7 +92,7 @@ var MastraTTS2 = class extends chunkV2Q2FEVO_cjs.MastraTTS {
98
92
  };
99
93
 
100
94
  // src/vector/index.warning.ts
101
- var MastraVector2 = class extends chunkWQKOM7XM_cjs.MastraVector {
95
+ var MastraVector2 = class extends chunkPIZM25KI_cjs.MastraVector {
102
96
  constructor() {
103
97
  super();
104
98
  this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
@@ -106,120 +100,88 @@ var MastraVector2 = class extends chunkWQKOM7XM_cjs.MastraVector {
106
100
  };
107
101
 
108
102
  // src/workflows/workflow.warning.ts
109
- var Workflow2 = class extends chunk66GQROSI_cjs.Workflow {
103
+ var Workflow2 = class extends chunkTTKQ37ZZ_cjs.Workflow {
110
104
  constructor(args) {
111
105
  super(args);
112
106
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
113
107
  }
114
108
  };
115
109
 
116
- Object.defineProperty(exports, "CohereRelevanceScorer", {
117
- enumerable: true,
118
- get: function () { return chunkWE36CRQV_cjs.CohereRelevanceScorer; }
119
- });
120
- Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
121
- enumerable: true,
122
- get: function () { return chunkWE36CRQV_cjs.MastraAgentRelevanceScorer; }
123
- });
124
- Object.defineProperty(exports, "createSimilarityPrompt", {
125
- enumerable: true,
126
- get: function () { return chunkWE36CRQV_cjs.createSimilarityPrompt; }
127
- });
128
- Object.defineProperty(exports, "createMockModel", {
129
- enumerable: true,
130
- get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
131
- });
132
- Object.defineProperty(exports, "Mastra", {
133
- enumerable: true,
134
- get: function () { return chunkGXKODTLA_cjs.Mastra; }
135
- });
136
- Object.defineProperty(exports, "MemoryProcessor", {
137
- enumerable: true,
138
- get: function () { return chunkQHDPLMHB_cjs.MemoryProcessor; }
139
- });
140
- Object.defineProperty(exports, "memoryDefaultOptions", {
141
- enumerable: true,
142
- get: function () { return chunkQHDPLMHB_cjs.memoryDefaultOptions; }
143
- });
144
- Object.defineProperty(exports, "Step", {
110
+ Object.defineProperty(exports, "DefaultExecutionEngine", {
145
111
  enumerable: true,
146
- get: function () { return chunk66GQROSI_cjs.Step; }
112
+ get: function () { return chunkTTKQ37ZZ_cjs.DefaultExecutionEngine; }
147
113
  });
148
- Object.defineProperty(exports, "WhenConditionReturnValue", {
114
+ Object.defineProperty(exports, "ExecutionEngine", {
149
115
  enumerable: true,
150
- get: function () { return chunk66GQROSI_cjs.WhenConditionReturnValue; }
116
+ get: function () { return chunkTTKQ37ZZ_cjs.ExecutionEngine; }
151
117
  });
152
- Object.defineProperty(exports, "agentToStep", {
118
+ Object.defineProperty(exports, "Run", {
153
119
  enumerable: true,
154
- get: function () { return chunk66GQROSI_cjs.agentToStep; }
120
+ get: function () { return chunkTTKQ37ZZ_cjs.Run; }
155
121
  });
156
- Object.defineProperty(exports, "getActivePathsAndStatus", {
122
+ Object.defineProperty(exports, "cloneStep", {
157
123
  enumerable: true,
158
- get: function () { return chunk66GQROSI_cjs.getActivePathsAndStatus; }
124
+ get: function () { return chunkTTKQ37ZZ_cjs.cloneStep; }
159
125
  });
160
- Object.defineProperty(exports, "getResultActivePaths", {
126
+ Object.defineProperty(exports, "cloneWorkflow", {
161
127
  enumerable: true,
162
- get: function () { return chunk66GQROSI_cjs.getResultActivePaths; }
128
+ get: function () { return chunkTTKQ37ZZ_cjs.cloneWorkflow; }
163
129
  });
164
- Object.defineProperty(exports, "getStepResult", {
130
+ Object.defineProperty(exports, "createStep", {
165
131
  enumerable: true,
166
- get: function () { return chunk66GQROSI_cjs.getStepResult; }
132
+ get: function () { return chunkTTKQ37ZZ_cjs.createStep; }
167
133
  });
168
- Object.defineProperty(exports, "getSuspendedPaths", {
134
+ Object.defineProperty(exports, "createWorkflow", {
169
135
  enumerable: true,
170
- get: function () { return chunk66GQROSI_cjs.getSuspendedPaths; }
136
+ get: function () { return chunkTTKQ37ZZ_cjs.createWorkflow; }
171
137
  });
172
- Object.defineProperty(exports, "isAgent", {
173
- enumerable: true,
174
- get: function () { return chunk66GQROSI_cjs.isAgent; }
175
- });
176
- Object.defineProperty(exports, "isConditionalKey", {
138
+ Object.defineProperty(exports, "CohereRelevanceScorer", {
177
139
  enumerable: true,
178
- get: function () { return chunk66GQROSI_cjs.isConditionalKey; }
140
+ get: function () { return chunk2U7ZZUFO_cjs.CohereRelevanceScorer; }
179
141
  });
180
- Object.defineProperty(exports, "isErrorEvent", {
142
+ Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
181
143
  enumerable: true,
182
- get: function () { return chunk66GQROSI_cjs.isErrorEvent; }
144
+ get: function () { return chunk2U7ZZUFO_cjs.MastraAgentRelevanceScorer; }
183
145
  });
184
- Object.defineProperty(exports, "isFinalState", {
146
+ Object.defineProperty(exports, "createSimilarityPrompt", {
185
147
  enumerable: true,
186
- get: function () { return chunk66GQROSI_cjs.isFinalState; }
148
+ get: function () { return chunk2U7ZZUFO_cjs.createSimilarityPrompt; }
187
149
  });
188
- Object.defineProperty(exports, "isLimboState", {
150
+ Object.defineProperty(exports, "Metric", {
189
151
  enumerable: true,
190
- get: function () { return chunk66GQROSI_cjs.isLimboState; }
152
+ get: function () { return chunk3C6V2FEP_cjs.Metric; }
191
153
  });
192
- Object.defineProperty(exports, "isTransitionEvent", {
154
+ Object.defineProperty(exports, "evaluate", {
193
155
  enumerable: true,
194
- get: function () { return chunk66GQROSI_cjs.isTransitionEvent; }
156
+ get: function () { return chunk3C6V2FEP_cjs.evaluate; }
195
157
  });
196
- Object.defineProperty(exports, "isVariableReference", {
158
+ Object.defineProperty(exports, "createMockModel", {
197
159
  enumerable: true,
198
- get: function () { return chunk66GQROSI_cjs.isVariableReference; }
160
+ get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
199
161
  });
200
- Object.defineProperty(exports, "isWorkflow", {
162
+ Object.defineProperty(exports, "Mastra", {
201
163
  enumerable: true,
202
- get: function () { return chunk66GQROSI_cjs.isWorkflow; }
164
+ get: function () { return chunk5W2G7S44_cjs.Mastra; }
203
165
  });
204
- Object.defineProperty(exports, "mergeChildValue", {
166
+ Object.defineProperty(exports, "MemoryProcessor", {
205
167
  enumerable: true,
206
- get: function () { return chunk66GQROSI_cjs.mergeChildValue; }
168
+ get: function () { return chunkZZDAC5KD_cjs.MemoryProcessor; }
207
169
  });
208
- Object.defineProperty(exports, "recursivelyCheckForFinalState", {
170
+ Object.defineProperty(exports, "memoryDefaultOptions", {
209
171
  enumerable: true,
210
- get: function () { return chunk66GQROSI_cjs.recursivelyCheckForFinalState; }
172
+ get: function () { return chunkZZDAC5KD_cjs.memoryDefaultOptions; }
211
173
  });
212
- Object.defineProperty(exports, "resolveVariables", {
174
+ Object.defineProperty(exports, "AvailableHooks", {
213
175
  enumerable: true,
214
- get: function () { return chunk66GQROSI_cjs.resolveVariables; }
176
+ get: function () { return chunkST5RMVLG_cjs.AvailableHooks; }
215
177
  });
216
- Object.defineProperty(exports, "updateStepInHierarchy", {
178
+ Object.defineProperty(exports, "executeHook", {
217
179
  enumerable: true,
218
- get: function () { return chunk66GQROSI_cjs.updateStepInHierarchy; }
180
+ get: function () { return chunkST5RMVLG_cjs.executeHook; }
219
181
  });
220
- Object.defineProperty(exports, "workflowToStep", {
182
+ Object.defineProperty(exports, "registerHook", {
221
183
  enumerable: true,
222
- get: function () { return chunk66GQROSI_cjs.workflowToStep; }
184
+ get: function () { return chunkST5RMVLG_cjs.registerHook; }
223
185
  });
224
186
  Object.defineProperty(exports, "InstrumentClass", {
225
187
  enumerable: true,
@@ -247,99 +209,67 @@ Object.defineProperty(exports, "withSpan", {
247
209
  });
248
210
  Object.defineProperty(exports, "checkEvalStorageFields", {
249
211
  enumerable: true,
250
- get: function () { return chunkEJITEVAB_cjs.checkEvalStorageFields; }
212
+ get: function () { return chunkU3L3NEOM_cjs.checkEvalStorageFields; }
251
213
  });
252
214
  Object.defineProperty(exports, "createMastraProxy", {
253
215
  enumerable: true,
254
- get: function () { return chunkEJITEVAB_cjs.createMastraProxy; }
216
+ get: function () { return chunkU3L3NEOM_cjs.createMastraProxy; }
255
217
  });
256
218
  Object.defineProperty(exports, "createTool", {
257
219
  enumerable: true,
258
- get: function () { return chunkEJITEVAB_cjs.createTool; }
220
+ get: function () { return chunkU3L3NEOM_cjs.createTool; }
259
221
  });
260
222
  Object.defineProperty(exports, "deepMerge", {
261
223
  enumerable: true,
262
- get: function () { return chunkEJITEVAB_cjs.deepMerge; }
224
+ get: function () { return chunkU3L3NEOM_cjs.deepMerge; }
263
225
  });
264
226
  Object.defineProperty(exports, "delay", {
265
227
  enumerable: true,
266
- get: function () { return chunkEJITEVAB_cjs.delay; }
228
+ get: function () { return chunkU3L3NEOM_cjs.delay; }
267
229
  });
268
230
  Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
269
231
  enumerable: true,
270
- get: function () { return chunkEJITEVAB_cjs.ensureAllMessagesAreCoreMessages; }
232
+ get: function () { return chunkU3L3NEOM_cjs.ensureAllMessagesAreCoreMessages; }
271
233
  });
272
234
  Object.defineProperty(exports, "ensureToolProperties", {
273
235
  enumerable: true,
274
- get: function () { return chunkEJITEVAB_cjs.ensureToolProperties; }
236
+ get: function () { return chunkU3L3NEOM_cjs.ensureToolProperties; }
275
237
  });
276
- Object.defineProperty(exports, "isVercelTool", {
238
+ Object.defineProperty(exports, "isCoreMessage", {
277
239
  enumerable: true,
278
- get: function () { return chunkEJITEVAB_cjs.isVercelTool; }
240
+ get: function () { return chunkU3L3NEOM_cjs.isCoreMessage; }
279
241
  });
280
- Object.defineProperty(exports, "isZodType", {
242
+ Object.defineProperty(exports, "isUiMessage", {
281
243
  enumerable: true,
282
- get: function () { return chunkEJITEVAB_cjs.isZodType; }
244
+ get: function () { return chunkU3L3NEOM_cjs.isUiMessage; }
283
245
  });
284
- Object.defineProperty(exports, "makeCoreTool", {
285
- enumerable: true,
286
- get: function () { return chunkEJITEVAB_cjs.makeCoreTool; }
287
- });
288
- Object.defineProperty(exports, "maskStreamTags", {
289
- enumerable: true,
290
- get: function () { return chunkEJITEVAB_cjs.maskStreamTags; }
291
- });
292
- Object.defineProperty(exports, "resolveSerializedZodOutput", {
293
- enumerable: true,
294
- get: function () { return chunkEJITEVAB_cjs.resolveSerializedZodOutput; }
295
- });
296
- Object.defineProperty(exports, "Metric", {
297
- enumerable: true,
298
- get: function () { return chunk3C6V2FEP_cjs.Metric; }
299
- });
300
- Object.defineProperty(exports, "evaluate", {
301
- enumerable: true,
302
- get: function () { return chunk3C6V2FEP_cjs.evaluate; }
303
- });
304
- Object.defineProperty(exports, "AvailableHooks", {
305
- enumerable: true,
306
- get: function () { return chunkST5RMVLG_cjs.AvailableHooks; }
307
- });
308
- Object.defineProperty(exports, "executeHook", {
309
- enumerable: true,
310
- get: function () { return chunkST5RMVLG_cjs.executeHook; }
311
- });
312
- Object.defineProperty(exports, "registerHook", {
313
- enumerable: true,
314
- get: function () { return chunkST5RMVLG_cjs.registerHook; }
315
- });
316
- Object.defineProperty(exports, "LogLevel", {
246
+ Object.defineProperty(exports, "isVercelTool", {
317
247
  enumerable: true,
318
- get: function () { return chunkO44MSFMZ_cjs.LogLevel; }
248
+ get: function () { return chunkU3L3NEOM_cjs.isVercelTool; }
319
249
  });
320
- Object.defineProperty(exports, "Logger", {
250
+ Object.defineProperty(exports, "isZodType", {
321
251
  enumerable: true,
322
- get: function () { return chunkO44MSFMZ_cjs.Logger; }
252
+ get: function () { return chunkU3L3NEOM_cjs.isZodType; }
323
253
  });
324
- Object.defineProperty(exports, "LoggerTransport", {
254
+ Object.defineProperty(exports, "makeCoreTool", {
325
255
  enumerable: true,
326
- get: function () { return chunkO44MSFMZ_cjs.LoggerTransport; }
256
+ get: function () { return chunkU3L3NEOM_cjs.makeCoreTool; }
327
257
  });
328
- Object.defineProperty(exports, "MultiLogger", {
258
+ Object.defineProperty(exports, "maskStreamTags", {
329
259
  enumerable: true,
330
- get: function () { return chunkO44MSFMZ_cjs.MultiLogger; }
260
+ get: function () { return chunkU3L3NEOM_cjs.maskStreamTags; }
331
261
  });
332
- Object.defineProperty(exports, "RegisteredLogger", {
262
+ Object.defineProperty(exports, "parseFieldKey", {
333
263
  enumerable: true,
334
- get: function () { return chunkO44MSFMZ_cjs.RegisteredLogger; }
264
+ get: function () { return chunkU3L3NEOM_cjs.parseFieldKey; }
335
265
  });
336
- Object.defineProperty(exports, "combineLoggers", {
266
+ Object.defineProperty(exports, "parseSqlIdentifier", {
337
267
  enumerable: true,
338
- get: function () { return chunkO44MSFMZ_cjs.combineLoggers; }
268
+ get: function () { return chunkU3L3NEOM_cjs.parseSqlIdentifier; }
339
269
  });
340
- Object.defineProperty(exports, "noopLogger", {
270
+ Object.defineProperty(exports, "resolveSerializedZodOutput", {
341
271
  enumerable: true,
342
- get: function () { return chunkO44MSFMZ_cjs.noopLogger; }
272
+ get: function () { return chunkU3L3NEOM_cjs.resolveSerializedZodOutput; }
343
273
  });
344
274
  exports.Agent = Agent2;
345
275
  exports.Integration = Integration2;
@@ -352,4 +282,3 @@ exports.MastraVector = MastraVector2;
352
282
  exports.OpenAPIToolset = OpenAPIToolset2;
353
283
  exports.Tool = Tool2;
354
284
  exports.Workflow = Workflow2;
355
- exports.createLogger = createLogger2;
package/dist/index.d.cts CHANGED
@@ -1,11 +1,10 @@
1
- import { a as Metric } from './types-BtMyV38I.cjs';
2
- export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.cjs';
3
- import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-CAEcd6q2.cjs';
4
- export { aC as ActionContext, aB as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aQ as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aX as ExtractSchemaFromStep, a_ as ExtractSchemaType, aY as ExtractStepResult, a6 as GenerateReturn, at as InternalCoreTool, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a$ as PathsToStringProps, aN as ResolverFunctionInput, aO as ResolverFunctionOutput, az as RetryConfig, am as SharedMemoryConfig, av as StepAction, aF as StepCondition, aG as StepConfig, aE as StepDef, au as StepExecutionContext, ay as StepGraph, aW as StepId, aZ as StepInputType, ax as StepNode, aR as StepResolverOutput, aH as StepResult, aw as StepVariableType, aI as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aP as SubscriberFunctionOutput, aA as VariableReference, ar as VercelTool, aD as WhenConditionReturnValue, aT as WorkflowActionParams, aU as WorkflowActions, aS as WorkflowActors, aK as WorkflowContext, aM as WorkflowEvent, aL as WorkflowLogMessage, b1 as WorkflowResumeResult, f as WorkflowRun, aJ as WorkflowRunResult, b0 as WorkflowRunState, W as WorkflowRuns, aV as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-CAEcd6q2.cjs';
5
- import { M as MastraBase$1 } from './base-H7siSAfu.cjs';
6
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-H7siSAfu.cjs';
7
- import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-QV27jkxQ.cjs';
8
- export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-QV27jkxQ.cjs';
1
+ import { M as Metric } from './types-Bo1uigWx.cjs';
2
+ export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
3
+ import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-aJ3etsh5.cjs';
4
+ export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aP as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b6 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b0 as ExecuteFunction, a$ as ExecutionEngine, a_ as ExecutionGraph, b9 as ExtractSchemaFromStep, b8 as ExtractSchemaType, at as GenerateReturn, aQ as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aI as MemoryConfig, aL as MemoryProcessor, aK as MemoryProcessorOpts, aH as MessageResponse, e as MessageType, av as OutputType, b7 as PathsToStringProps, aZ as Run, aS as SerializedStep, aT as SerializedStepFlowEntry, aJ as SharedMemoryConfig, b2 as StepFailure, aR as StepFlowEntry, b4 as StepResult, b1 as StepSuccess, b3 as StepSuspended, b5 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, ba as VariableReference, aO as VercelTool, bb as WatchEvent, aY as WorkflowResult, g as WorkflowRun, bd as WorkflowRunState, W as WorkflowRuns, bc as ZodPathType, aV as cloneStep, aX as cloneWorkflow, aF as createMockModel, aU as createStep, aN as createTool, aW as createWorkflow, aM as memoryDefaultOptions } from './base-aJ3etsh5.cjs';
5
+ import { M as MastraBase$1 } from './base-aPYtPBT2.cjs';
6
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-aPYtPBT2.cjs';
7
+ import { R as RegisteredLogger } from './logger-EhZkzZOr.cjs';
9
8
  import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
10
9
  export { evaluate } from './eval/index.cjs';
11
10
  import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.cjs';
@@ -13,27 +12,26 @@ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvid
13
12
  export { InstrumentClass, OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan } from './telemetry/index.cjs';
14
13
  import { z } from 'zod';
15
14
  import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.cjs';
16
- export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.cjs';
15
+ export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './utils.cjs';
17
16
  import { MastraVector as MastraVector$1 } from './vector/index.cjs';
18
- export { CreateIndexArgs, CreateIndexParams, IndexStats, ParamsToArgs, QueryResult, QueryVectorArgs, QueryVectorParams, UpsertVectorArgs, UpsertVectorParams } from './vector/index.cjs';
19
- export { agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.cjs';
17
+ export { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from './vector/index.cjs';
18
+ export { DefaultExecutionEngine, ExecutionContext } from './workflows/index.cjs';
20
19
  export { AvailableHooks, executeHook, registerHook } from './hooks/index.cjs';
21
20
  export { Message as AiMessageType } from 'ai';
22
21
  import 'sift';
23
22
  import 'json-schema';
23
+ import 'node:http';
24
+ import 'hono';
24
25
  import './runtime-context/index.cjs';
26
+ import 'hono/cors';
27
+ import 'hono-openapi';
25
28
  import '@opentelemetry/api';
26
29
  import 'xstate';
27
30
  import 'node:events';
28
- import 'node:http';
29
- import 'hono';
30
31
  import 'events';
31
- import 'hono/cors';
32
- import 'hono-openapi';
33
32
  import 'ai/test';
34
33
  import '@opentelemetry/sdk-trace-base';
35
34
  import 'stream';
36
- import 'pino';
37
35
  import './bundler/index.cjs';
38
36
  import '@opentelemetry/core';
39
37
  import './vector/filter/index.cjs';
@@ -71,12 +69,6 @@ declare abstract class OpenAPIToolset extends OpenAPIToolset$1 {
71
69
  constructor();
72
70
  }
73
71
 
74
- declare function createLogger(options: {
75
- name?: string;
76
- level?: LogLevel;
77
- transports?: TransportMap;
78
- }): Logger;
79
-
80
72
  declare abstract class MastraMemory extends MastraMemory$1 {
81
73
  constructor(_arg?: any);
82
74
  }
@@ -93,8 +85,8 @@ declare abstract class MastraVector extends MastraVector$1 {
93
85
  constructor();
94
86
  }
95
87
 
96
- declare class Workflow<TSteps extends Step<any, any, any>[] = any, TTriggerSchema extends z.ZodObject<any> = any> extends Workflow$1<TSteps, string, TTriggerSchema> {
97
- constructor(args: WorkflowOptions<string, TSteps, TTriggerSchema>);
88
+ declare class Workflow<TSteps extends Step<string, any, any, any, any>[] = Step<string, any, any, any, any>[], TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any>, TOutput extends z.ZodType<any> = z.ZodType<any>, TPrevSchema extends z.ZodType<any> = TInput> extends Workflow$1<TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
89
+ constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>);
98
90
  }
99
91
 
100
- export { Agent, Integration, LogLevel, Logger, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, RegisteredLogger, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, TransportMap, Workflow, WorkflowOptions, createLogger };
92
+ export { Agent, Integration, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, Workflow, WorkflowConfig };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- import { a as Metric } from './types-BtMyV38I.js';
2
- export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.js';
3
- import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-BCfssGt6.js';
4
- export { aC as ActionContext, aB as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aQ as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aX as ExtractSchemaFromStep, a_ as ExtractSchemaType, aY as ExtractStepResult, a6 as GenerateReturn, at as InternalCoreTool, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a$ as PathsToStringProps, aN as ResolverFunctionInput, aO as ResolverFunctionOutput, az as RetryConfig, am as SharedMemoryConfig, av as StepAction, aF as StepCondition, aG as StepConfig, aE as StepDef, au as StepExecutionContext, ay as StepGraph, aW as StepId, aZ as StepInputType, ax as StepNode, aR as StepResolverOutput, aH as StepResult, aw as StepVariableType, aI as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aP as SubscriberFunctionOutput, aA as VariableReference, ar as VercelTool, aD as WhenConditionReturnValue, aT as WorkflowActionParams, aU as WorkflowActions, aS as WorkflowActors, aK as WorkflowContext, aM as WorkflowEvent, aL as WorkflowLogMessage, b1 as WorkflowResumeResult, f as WorkflowRun, aJ as WorkflowRunResult, b0 as WorkflowRunState, W as WorkflowRuns, aV as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-BCfssGt6.js';
5
- import { M as MastraBase$1 } from './base-4Z34GQL8.js';
6
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-4Z34GQL8.js';
7
- import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-QV27jkxQ.js';
8
- export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-QV27jkxQ.js';
1
+ import { M as Metric } from './types-Bo1uigWx.js';
2
+ export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
3
+ import { a9 as ToolAction, r as Agent$1, aa as AgentConfig, c as MastraStorage$1, ab as MastraMemory$1, ac as ToolExecutionContext, ad as Tool$1, ae as Step, af as Workflow$1, ag as WorkflowConfig } from './base-DttB7sJD.js';
4
+ export { ap as BaseStructuredOutputType, aG as Config, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, aP as CoreTool, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, b6 as DynamicMapping, ao as EmbedManyResult, an as EmbedResult, E as EvalRow, b0 as ExecuteFunction, a$ as ExecutionEngine, a_ as ExecutionGraph, b9 as ExtractSchemaFromStep, b8 as ExtractSchemaType, at as GenerateReturn, aQ as InternalCoreTool, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, h as LegacyWorkflowRun, L as LegacyWorkflowRuns, a as Mastra, aI as MemoryConfig, aL as MemoryProcessor, aK as MemoryProcessorOpts, aH as MessageResponse, e as MessageType, av as OutputType, b7 as PathsToStringProps, aZ as Run, aS as SerializedStep, aT as SerializedStepFlowEntry, aJ as SharedMemoryConfig, b2 as StepFailure, aR as StepFlowEntry, b4 as StepResult, b1 as StepSuccess, b3 as StepSuspended, b5 as StepsRecord, S as StorageColumn, f as StorageGetMessagesArg, d as StorageThreadType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, ba as VariableReference, aO as VercelTool, bb as WatchEvent, aY as WorkflowResult, g as WorkflowRun, bd as WorkflowRunState, W as WorkflowRuns, bc as ZodPathType, aV as cloneStep, aX as cloneWorkflow, aF as createMockModel, aU as createStep, aN as createTool, aW as createWorkflow, aM as memoryDefaultOptions } from './base-DttB7sJD.js';
5
+ import { M as MastraBase$1 } from './base-tc5kgDTD.js';
6
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-tc5kgDTD.js';
7
+ import { R as RegisteredLogger } from './logger-EhZkzZOr.js';
9
8
  import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
10
9
  export { evaluate } from './eval/index.js';
11
10
  import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.js';
@@ -13,27 +12,26 @@ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvid
13
12
  export { InstrumentClass, OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan } from './telemetry/index.js';
14
13
  import { z } from 'zod';
15
14
  import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
16
- export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.js';
15
+ export { TagMaskOptions, ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './utils.js';
17
16
  import { MastraVector as MastraVector$1 } from './vector/index.js';
18
- export { CreateIndexArgs, CreateIndexParams, IndexStats, ParamsToArgs, QueryResult, QueryVectorArgs, QueryVectorParams, UpsertVectorArgs, UpsertVectorParams } from './vector/index.js';
19
- export { agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.js';
17
+ export { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from './vector/index.js';
18
+ export { DefaultExecutionEngine, ExecutionContext } from './workflows/index.js';
20
19
  export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
21
20
  export { Message as AiMessageType } from 'ai';
22
21
  import 'sift';
23
22
  import 'json-schema';
23
+ import 'node:http';
24
+ import 'hono';
24
25
  import './runtime-context/index.js';
26
+ import 'hono/cors';
27
+ import 'hono-openapi';
25
28
  import '@opentelemetry/api';
26
29
  import 'xstate';
27
30
  import 'node:events';
28
- import 'node:http';
29
- import 'hono';
30
31
  import 'events';
31
- import 'hono/cors';
32
- import 'hono-openapi';
33
32
  import 'ai/test';
34
33
  import '@opentelemetry/sdk-trace-base';
35
34
  import 'stream';
36
- import 'pino';
37
35
  import './bundler/index.js';
38
36
  import '@opentelemetry/core';
39
37
  import './vector/filter/index.js';
@@ -71,12 +69,6 @@ declare abstract class OpenAPIToolset extends OpenAPIToolset$1 {
71
69
  constructor();
72
70
  }
73
71
 
74
- declare function createLogger(options: {
75
- name?: string;
76
- level?: LogLevel;
77
- transports?: TransportMap;
78
- }): Logger;
79
-
80
72
  declare abstract class MastraMemory extends MastraMemory$1 {
81
73
  constructor(_arg?: any);
82
74
  }
@@ -93,8 +85,8 @@ declare abstract class MastraVector extends MastraVector$1 {
93
85
  constructor();
94
86
  }
95
87
 
96
- declare class Workflow<TSteps extends Step<any, any, any>[] = any, TTriggerSchema extends z.ZodObject<any> = any> extends Workflow$1<TSteps, string, TTriggerSchema> {
97
- constructor(args: WorkflowOptions<string, TSteps, TTriggerSchema>);
88
+ declare class Workflow<TSteps extends Step<string, any, any, any, any>[] = Step<string, any, any, any, any>[], TWorkflowId extends string = string, TInput extends z.ZodType<any> = z.ZodType<any>, TOutput extends z.ZodType<any> = z.ZodType<any>, TPrevSchema extends z.ZodType<any> = TInput> extends Workflow$1<TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {
89
+ constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>);
98
90
  }
99
91
 
100
- export { Agent, Integration, LogLevel, Logger, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, RegisteredLogger, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, TransportMap, Workflow, WorkflowOptions, createLogger };
92
+ export { Agent, Integration, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraTTS, MastraVector, Metric, OpenAPIToolset, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, Workflow, WorkflowConfig };