@mastra/core 0.7.0 → 0.8.0-alpha.2

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 (149) hide show
  1. package/README.md +76 -74
  2. package/dist/agent/index.cjs +2 -2
  3. package/dist/agent/index.d.cts +5 -3
  4. package/dist/agent/index.d.ts +5 -3
  5. package/dist/agent/index.js +1 -1
  6. package/dist/{base-Cmunaaxb.d.ts → base-BA_in99t.d.ts} +4 -1
  7. package/dist/{base-Cyl73WbV.d.ts → base-CQuRWXAH.d.ts} +985 -913
  8. package/dist/{base-ObPJ-w8K.d.cts → base-CvQbEqGB.d.cts} +4 -1
  9. package/dist/{base-C0wILuA9.d.cts → base-Dpt4tO56.d.cts} +985 -913
  10. package/dist/base.cjs +2 -2
  11. package/dist/base.d.cts +1 -1
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +1 -1
  14. package/dist/bundler/index.cjs +2 -2
  15. package/dist/bundler/index.d.cts +1 -1
  16. package/dist/bundler/index.d.ts +1 -1
  17. package/dist/bundler/index.js +1 -1
  18. package/dist/{chunk-L7CR75HA.js → chunk-2BVZNKLX.js} +1 -1
  19. package/dist/{chunk-V5ORZPFW.cjs → chunk-3C6V2FEP.cjs} +1 -1
  20. package/dist/chunk-3HE5CJBG.cjs +4604 -0
  21. package/dist/{chunk-PNZK456O.js → chunk-4RMSGSQN.js} +4 -4
  22. package/dist/{chunk-WESJ2ZY7.cjs → chunk-57LXIDIK.cjs} +2 -2
  23. package/dist/chunk-5RRJEWMA.cjs +107 -0
  24. package/dist/{chunk-3CNO7YB5.js → chunk-5TFGORLG.js} +1 -1
  25. package/dist/{chunk-5FAJ6HUC.cjs → chunk-64VPB7ZD.cjs} +23 -2
  26. package/dist/chunk-6XLV4KSD.js +100 -0
  27. package/dist/{chunk-XLSROQ26.cjs → chunk-7I7AKQH3.cjs} +5 -5
  28. package/dist/{chunk-RUA6BSB6.cjs → chunk-7JBINHJX.cjs} +2 -2
  29. package/dist/chunk-A6MBM56X.js +268 -0
  30. package/dist/{chunk-2YF5JYTJ.js → chunk-BC5B4EGI.js} +21 -2
  31. package/dist/chunk-BF7ZLRGO.cjs +271 -0
  32. package/dist/{chunk-SMBKF6K5.js → chunk-BRBHQ6KS.js} +10 -1
  33. package/dist/{chunk-VN4M67DA.js → chunk-CLJQYXNM.js} +1 -1
  34. package/dist/{chunk-PL7PVTGF.cjs → chunk-D63P5O4Q.cjs} +4 -4
  35. package/dist/chunk-DCGLGWHI.cjs +141 -0
  36. package/dist/{chunk-YXJQFZOW.cjs → chunk-DL4QPJKI.cjs} +24 -10
  37. package/dist/{chunk-ZABXT2MN.js → chunk-FY57LEMC.js} +1 -1
  38. package/dist/{chunk-XLXJUYKH.js → chunk-GHK3HBWN.js} +1 -1
  39. package/dist/{chunk-ONDCHP6G.cjs → chunk-GO2D7FEK.cjs} +2 -2
  40. package/dist/{chunk-7VTZI3YN.js → chunk-H6ZU5N2C.js} +1 -1
  41. package/dist/{chunk-WBE5RTFI.js → chunk-HAWAUEWK.js} +2 -2
  42. package/dist/chunk-HCDXBSMK.js +4577 -0
  43. package/dist/{chunk-RU7CSPAV.js → chunk-JGJMVCJ4.js} +7 -84
  44. package/dist/{chunk-W5HVJX45.js → chunk-N5ZYOQBL.js} +46 -5
  45. package/dist/{chunk-NPOKIPWC.cjs → chunk-O7IW545H.cjs} +1 -1
  46. package/dist/{chunk-XB2TJ7LX.cjs → chunk-PHWEC4VD.cjs} +47 -6
  47. package/dist/{chunk-NUDAZEOG.js → chunk-PK5QRKSG.js} +1 -1
  48. package/dist/{chunk-43SD5CUE.js → chunk-QDHRRKQ5.js} +63 -9
  49. package/dist/{chunk-ZBKJDQPM.js → chunk-RBWBJC6D.js} +17 -3
  50. package/dist/{chunk-4PYORXWM.cjs → chunk-RXDLSCBA.cjs} +4 -4
  51. package/dist/{chunk-IQLRSKED.cjs → chunk-RZCYBC7D.cjs} +2 -2
  52. package/dist/{chunk-ASFUEC75.cjs → chunk-TNNHN4ZY.cjs} +67 -12
  53. package/dist/{chunk-QM6WIIPM.js → chunk-UF4LZV3D.js} +1 -1
  54. package/dist/{chunk-JJ4YQTFT.cjs → chunk-WAW7QBY4.cjs} +2 -2
  55. package/dist/{chunk-U7ONOIBO.cjs → chunk-YZDUZFVZ.cjs} +11 -2
  56. package/dist/deployer/index.cjs +2 -2
  57. package/dist/deployer/index.d.cts +1 -1
  58. package/dist/deployer/index.d.ts +1 -1
  59. package/dist/deployer/index.js +1 -1
  60. package/dist/eval/index.cjs +3 -3
  61. package/dist/eval/index.d.cts +8 -5
  62. package/dist/eval/index.d.ts +8 -5
  63. package/dist/eval/index.js +1 -1
  64. package/dist/hooks/index.d.cts +1 -1
  65. package/dist/hooks/index.d.ts +1 -1
  66. package/dist/index.cjs +102 -92
  67. package/dist/index.d.cts +11 -9
  68. package/dist/index.d.ts +11 -9
  69. package/dist/index.js +18 -19
  70. package/dist/integration/index.cjs +3 -3
  71. package/dist/integration/index.d.cts +5 -3
  72. package/dist/integration/index.d.ts +5 -3
  73. package/dist/integration/index.js +1 -1
  74. package/dist/llm/index.d.cts +5 -3
  75. package/dist/llm/index.d.ts +5 -3
  76. package/dist/logger/index.cjs +9 -9
  77. package/dist/logger/index.js +1 -1
  78. package/dist/mastra/index.cjs +2 -2
  79. package/dist/mastra/index.d.cts +5 -3
  80. package/dist/mastra/index.d.ts +5 -3
  81. package/dist/mastra/index.js +1 -1
  82. package/dist/memory/index.cjs +6 -2
  83. package/dist/memory/index.d.cts +5 -3
  84. package/dist/memory/index.d.ts +5 -3
  85. package/dist/memory/index.js +1 -1
  86. package/dist/network/index.cjs +8 -8
  87. package/dist/network/index.d.cts +5 -3
  88. package/dist/network/index.d.ts +5 -3
  89. package/dist/network/index.js +4 -4
  90. package/dist/relevance/index.cjs +4 -4
  91. package/dist/relevance/index.d.cts +10 -8
  92. package/dist/relevance/index.d.ts +10 -8
  93. package/dist/relevance/index.js +1 -1
  94. package/dist/server/index.cjs +17 -0
  95. package/dist/server/index.d.cts +37 -0
  96. package/dist/server/index.d.ts +37 -0
  97. package/dist/server/index.js +15 -0
  98. package/dist/storage/index.cjs +12 -8
  99. package/dist/storage/index.d.cts +5 -3
  100. package/dist/storage/index.d.ts +5 -3
  101. package/dist/storage/index.js +2 -2
  102. package/dist/storage/libsql/index.cjs +24 -24
  103. package/dist/storage/libsql/index.d.cts +5 -3
  104. package/dist/storage/libsql/index.d.ts +5 -3
  105. package/dist/storage/libsql/index.js +12 -12
  106. package/dist/telemetry/index.cjs +6 -6
  107. package/dist/telemetry/index.d.cts +5 -3
  108. package/dist/telemetry/index.d.ts +5 -3
  109. package/dist/telemetry/index.js +1 -1
  110. package/dist/tools/index.cjs +7 -3
  111. package/dist/tools/index.d.cts +6 -3
  112. package/dist/tools/index.d.ts +6 -3
  113. package/dist/tools/index.js +1 -1
  114. package/dist/tts/index.cjs +2 -2
  115. package/dist/tts/index.d.cts +1 -1
  116. package/dist/tts/index.d.ts +1 -1
  117. package/dist/tts/index.js +1 -1
  118. package/dist/{types-CwTG2XyQ.d.cts → types-BtMyV38I.d.cts} +4 -1
  119. package/dist/{types-CwTG2XyQ.d.ts → types-BtMyV38I.d.ts} +4 -1
  120. package/dist/utils.cjs +13 -13
  121. package/dist/utils.d.cts +7 -5
  122. package/dist/utils.d.ts +7 -5
  123. package/dist/utils.js +1 -1
  124. package/dist/vector/index.cjs +2 -2
  125. package/dist/vector/index.d.cts +1 -1
  126. package/dist/vector/index.d.ts +1 -1
  127. package/dist/vector/index.js +1 -1
  128. package/dist/vector/libsql/index.cjs +3 -3
  129. package/dist/vector/libsql/index.d.cts +1 -1
  130. package/dist/vector/libsql/index.d.ts +1 -1
  131. package/dist/vector/libsql/index.js +1 -1
  132. package/dist/voice/index.cjs +13 -249
  133. package/dist/voice/index.d.cts +22 -8
  134. package/dist/voice/index.d.ts +22 -8
  135. package/dist/voice/index.js +1 -252
  136. package/dist/workflows/index.cjs +28 -20
  137. package/dist/workflows/index.d.cts +18 -7
  138. package/dist/workflows/index.d.ts +18 -7
  139. package/dist/workflows/index.js +1 -1
  140. package/package.json +5 -3
  141. package/dist/chunk-2W2GYEYQ.cjs +0 -25
  142. package/dist/chunk-C6BBAS4I.cjs +0 -1715
  143. package/dist/chunk-F5UYWPV4.cjs +0 -14
  144. package/dist/chunk-GG6TEAMJ.cjs +0 -2289
  145. package/dist/chunk-R2M5CZ5U.js +0 -2264
  146. package/dist/chunk-RG66XEJT.js +0 -8
  147. package/dist/chunk-VNQRLYIA.js +0 -1715
  148. package/dist/chunk-WVVKLIUW.cjs +0 -218
  149. package/dist/chunk-ZINPRHAN.js +0 -22
package/dist/index.cjs CHANGED
@@ -1,25 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunk4PYORXWM_cjs = require('./chunk-4PYORXWM.cjs');
4
- var chunkGG6TEAMJ_cjs = require('./chunk-GG6TEAMJ.cjs');
5
- var chunkXLSROQ26_cjs = require('./chunk-XLSROQ26.cjs');
6
- var chunkYXJQFZOW_cjs = require('./chunk-YXJQFZOW.cjs');
7
- var chunkASFUEC75_cjs = require('./chunk-ASFUEC75.cjs');
8
- var chunkRUA6BSB6_cjs = require('./chunk-RUA6BSB6.cjs');
9
- var chunkWESJ2ZY7_cjs = require('./chunk-WESJ2ZY7.cjs');
10
- var chunkWVVKLIUW_cjs = require('./chunk-WVVKLIUW.cjs');
11
- var chunkC6BBAS4I_cjs = require('./chunk-C6BBAS4I.cjs');
12
- var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
13
- var chunk5FAJ6HUC_cjs = require('./chunk-5FAJ6HUC.cjs');
14
- var chunk2W2GYEYQ_cjs = require('./chunk-2W2GYEYQ.cjs');
15
- var chunkIQLRSKED_cjs = require('./chunk-IQLRSKED.cjs');
16
- var chunkPL7PVTGF_cjs = require('./chunk-PL7PVTGF.cjs');
17
- var chunkNPOKIPWC_cjs = require('./chunk-NPOKIPWC.cjs');
18
- var chunkV5ORZPFW_cjs = require('./chunk-V5ORZPFW.cjs');
3
+ var chunkRXDLSCBA_cjs = require('./chunk-RXDLSCBA.cjs');
4
+ var chunk7I7AKQH3_cjs = require('./chunk-7I7AKQH3.cjs');
5
+ var chunkDL4QPJKI_cjs = require('./chunk-DL4QPJKI.cjs');
6
+ var chunkTNNHN4ZY_cjs = require('./chunk-TNNHN4ZY.cjs');
7
+ var chunk7JBINHJX_cjs = require('./chunk-7JBINHJX.cjs');
8
+ var chunkDCGLGWHI_cjs = require('./chunk-DCGLGWHI.cjs');
9
+ var chunk57LXIDIK_cjs = require('./chunk-57LXIDIK.cjs');
10
+ var chunk3HE5CJBG_cjs = require('./chunk-3HE5CJBG.cjs');
11
+ var chunkPHWEC4VD_cjs = require('./chunk-PHWEC4VD.cjs');
12
+ var chunk64VPB7ZD_cjs = require('./chunk-64VPB7ZD.cjs');
13
+ var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
14
+ var chunkD63P5O4Q_cjs = require('./chunk-D63P5O4Q.cjs');
15
+ var chunkO7IW545H_cjs = require('./chunk-O7IW545H.cjs');
16
+ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
19
17
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
20
18
 
21
19
  // src/agent/index.warning.ts
22
- var Agent2 = class extends chunkC6BBAS4I_cjs.Agent {
20
+ var Agent2 = class extends chunk3HE5CJBG_cjs.Agent {
23
21
  constructor(config) {
24
22
  super(config);
25
23
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -27,7 +25,7 @@ var Agent2 = class extends chunkC6BBAS4I_cjs.Agent {
27
25
  };
28
26
 
29
27
  // src/base.warning.ts
30
- var MastraBase2 = class extends chunkPL7PVTGF_cjs.MastraBase {
28
+ var MastraBase2 = class extends chunkD63P5O4Q_cjs.MastraBase {
31
29
  constructor(args) {
32
30
  super(args);
33
31
  this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
@@ -35,7 +33,7 @@ var MastraBase2 = class extends chunkPL7PVTGF_cjs.MastraBase {
35
33
  };
36
34
 
37
35
  // src/deployer/index.warning.ts
38
- var MastraDeployer2 = class extends chunkIQLRSKED_cjs.MastraDeployer {
36
+ var MastraDeployer2 = class extends chunkRZCYBC7D_cjs.MastraDeployer {
39
37
  constructor(args) {
40
38
  super(args);
41
39
  this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
@@ -43,7 +41,7 @@ var MastraDeployer2 = class extends chunkIQLRSKED_cjs.MastraDeployer {
43
41
  };
44
42
 
45
43
  // src/storage/base.warning.ts
46
- var MastraStorage2 = class extends chunkWVVKLIUW_cjs.MastraStorage {
44
+ var MastraStorage2 = class extends chunkDCGLGWHI_cjs.MastraStorage {
47
45
  constructor({ name }) {
48
46
  super({
49
47
  name
@@ -53,7 +51,7 @@ var MastraStorage2 = class extends chunkWVVKLIUW_cjs.MastraStorage {
53
51
  };
54
52
 
55
53
  // src/integration/integration.warning.ts
56
- var Integration2 = class extends chunkXLSROQ26_cjs.Integration {
54
+ var Integration2 = class extends chunk7I7AKQH3_cjs.Integration {
57
55
  constructor() {
58
56
  super();
59
57
  console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
@@ -61,7 +59,7 @@ var Integration2 = class extends chunkXLSROQ26_cjs.Integration {
61
59
  };
62
60
 
63
61
  // src/integration/openapi-toolset.warning.ts
64
- var OpenAPIToolset2 = class extends chunkXLSROQ26_cjs.OpenAPIToolset {
62
+ var OpenAPIToolset2 = class extends chunk7I7AKQH3_cjs.OpenAPIToolset {
65
63
  constructor() {
66
64
  super();
67
65
  console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
@@ -71,11 +69,11 @@ var OpenAPIToolset2 = class extends chunkXLSROQ26_cjs.OpenAPIToolset {
71
69
  // src/logger/index.warning.ts
72
70
  function createLogger2(options) {
73
71
  console.warn('Please import "createLogger" from "@mastra/core/logger" instead of "@mastra/core"');
74
- return chunkNPOKIPWC_cjs.createLogger(options);
72
+ return chunkO7IW545H_cjs.createLogger(options);
75
73
  }
76
74
 
77
75
  // src/memory/index.warning.ts
78
- var MastraMemory2 = class extends chunkASFUEC75_cjs.MastraMemory {
76
+ var MastraMemory2 = class extends chunkTNNHN4ZY_cjs.MastraMemory {
79
77
  constructor(_arg) {
80
78
  super({ name: `Deprecated memory` });
81
79
  this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
@@ -83,7 +81,7 @@ var MastraMemory2 = class extends chunkASFUEC75_cjs.MastraMemory {
83
81
  };
84
82
 
85
83
  // src/tools/index.warning.ts
86
- var Tool2 = class extends chunk2W2GYEYQ_cjs.Tool {
84
+ var Tool2 = class extends chunk64VPB7ZD_cjs.Tool {
87
85
  constructor(opts) {
88
86
  super(opts);
89
87
  console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
@@ -91,7 +89,7 @@ var Tool2 = class extends chunk2W2GYEYQ_cjs.Tool {
91
89
  };
92
90
 
93
91
  // src/tts/index.warning.ts
94
- var MastraTTS2 = class extends chunk4PYORXWM_cjs.MastraTTS {
92
+ var MastraTTS2 = class extends chunkRXDLSCBA_cjs.MastraTTS {
95
93
  constructor(args) {
96
94
  super(args);
97
95
  this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
@@ -99,7 +97,7 @@ var MastraTTS2 = class extends chunk4PYORXWM_cjs.MastraTTS {
99
97
  };
100
98
 
101
99
  // src/vector/index.warning.ts
102
- var MastraVector2 = class extends chunkRUA6BSB6_cjs.MastraVector {
100
+ var MastraVector2 = class extends chunk7JBINHJX_cjs.MastraVector {
103
101
  constructor() {
104
102
  super();
105
103
  this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
@@ -107,208 +105,220 @@ var MastraVector2 = class extends chunkRUA6BSB6_cjs.MastraVector {
107
105
  };
108
106
 
109
107
  // src/workflows/workflow.warning.ts
110
- var Workflow2 = class extends chunkGG6TEAMJ_cjs.Workflow {
108
+ var Workflow2 = class extends chunk3HE5CJBG_cjs.Workflow {
111
109
  constructor(args) {
112
110
  super(args);
113
111
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
114
112
  }
115
113
  };
116
114
 
115
+ Object.defineProperty(exports, "Mastra", {
116
+ enumerable: true,
117
+ get: function () { return chunkDL4QPJKI_cjs.Mastra; }
118
+ });
119
+ Object.defineProperty(exports, "MemoryProcessor", {
120
+ enumerable: true,
121
+ get: function () { return chunkTNNHN4ZY_cjs.MemoryProcessor; }
122
+ });
123
+ Object.defineProperty(exports, "CohereRelevanceScorer", {
124
+ enumerable: true,
125
+ get: function () { return chunk57LXIDIK_cjs.CohereRelevanceScorer; }
126
+ });
127
+ Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
128
+ enumerable: true,
129
+ get: function () { return chunk57LXIDIK_cjs.MastraAgentRelevanceScorer; }
130
+ });
131
+ Object.defineProperty(exports, "createSimilarityPrompt", {
132
+ enumerable: true,
133
+ get: function () { return chunk57LXIDIK_cjs.createSimilarityPrompt; }
134
+ });
117
135
  Object.defineProperty(exports, "Step", {
118
136
  enumerable: true,
119
- get: function () { return chunkGG6TEAMJ_cjs.Step; }
137
+ get: function () { return chunk3HE5CJBG_cjs.Step; }
120
138
  });
121
139
  Object.defineProperty(exports, "WhenConditionReturnValue", {
122
140
  enumerable: true,
123
- get: function () { return chunkGG6TEAMJ_cjs.WhenConditionReturnValue; }
141
+ get: function () { return chunk3HE5CJBG_cjs.WhenConditionReturnValue; }
142
+ });
143
+ Object.defineProperty(exports, "agentToStep", {
144
+ enumerable: true,
145
+ get: function () { return chunk3HE5CJBG_cjs.agentToStep; }
124
146
  });
125
147
  Object.defineProperty(exports, "createStep", {
126
148
  enumerable: true,
127
- get: function () { return chunkGG6TEAMJ_cjs.createStep; }
149
+ get: function () { return chunk3HE5CJBG_cjs.createStep; }
128
150
  });
129
151
  Object.defineProperty(exports, "getActivePathsAndStatus", {
130
152
  enumerable: true,
131
- get: function () { return chunkGG6TEAMJ_cjs.getActivePathsAndStatus; }
153
+ get: function () { return chunk3HE5CJBG_cjs.getActivePathsAndStatus; }
132
154
  });
133
155
  Object.defineProperty(exports, "getResultActivePaths", {
134
156
  enumerable: true,
135
- get: function () { return chunkGG6TEAMJ_cjs.getResultActivePaths; }
157
+ get: function () { return chunk3HE5CJBG_cjs.getResultActivePaths; }
136
158
  });
137
159
  Object.defineProperty(exports, "getStepResult", {
138
160
  enumerable: true,
139
- get: function () { return chunkGG6TEAMJ_cjs.getStepResult; }
161
+ get: function () { return chunk3HE5CJBG_cjs.getStepResult; }
140
162
  });
141
163
  Object.defineProperty(exports, "getSuspendedPaths", {
142
164
  enumerable: true,
143
- get: function () { return chunkGG6TEAMJ_cjs.getSuspendedPaths; }
165
+ get: function () { return chunk3HE5CJBG_cjs.getSuspendedPaths; }
166
+ });
167
+ Object.defineProperty(exports, "isAgent", {
168
+ enumerable: true,
169
+ get: function () { return chunk3HE5CJBG_cjs.isAgent; }
144
170
  });
145
171
  Object.defineProperty(exports, "isErrorEvent", {
146
172
  enumerable: true,
147
- get: function () { return chunkGG6TEAMJ_cjs.isErrorEvent; }
173
+ get: function () { return chunk3HE5CJBG_cjs.isErrorEvent; }
148
174
  });
149
175
  Object.defineProperty(exports, "isFinalState", {
150
176
  enumerable: true,
151
- get: function () { return chunkGG6TEAMJ_cjs.isFinalState; }
177
+ get: function () { return chunk3HE5CJBG_cjs.isFinalState; }
152
178
  });
153
179
  Object.defineProperty(exports, "isLimboState", {
154
180
  enumerable: true,
155
- get: function () { return chunkGG6TEAMJ_cjs.isLimboState; }
181
+ get: function () { return chunk3HE5CJBG_cjs.isLimboState; }
156
182
  });
157
183
  Object.defineProperty(exports, "isTransitionEvent", {
158
184
  enumerable: true,
159
- get: function () { return chunkGG6TEAMJ_cjs.isTransitionEvent; }
185
+ get: function () { return chunk3HE5CJBG_cjs.isTransitionEvent; }
160
186
  });
161
187
  Object.defineProperty(exports, "isVariableReference", {
162
188
  enumerable: true,
163
- get: function () { return chunkGG6TEAMJ_cjs.isVariableReference; }
189
+ get: function () { return chunk3HE5CJBG_cjs.isVariableReference; }
164
190
  });
165
191
  Object.defineProperty(exports, "isWorkflow", {
166
192
  enumerable: true,
167
- get: function () { return chunkGG6TEAMJ_cjs.isWorkflow; }
193
+ get: function () { return chunk3HE5CJBG_cjs.isWorkflow; }
168
194
  });
169
195
  Object.defineProperty(exports, "mergeChildValue", {
170
196
  enumerable: true,
171
- get: function () { return chunkGG6TEAMJ_cjs.mergeChildValue; }
197
+ get: function () { return chunk3HE5CJBG_cjs.mergeChildValue; }
172
198
  });
173
199
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
174
200
  enumerable: true,
175
- get: function () { return chunkGG6TEAMJ_cjs.recursivelyCheckForFinalState; }
201
+ get: function () { return chunk3HE5CJBG_cjs.recursivelyCheckForFinalState; }
176
202
  });
177
203
  Object.defineProperty(exports, "resolveVariables", {
178
204
  enumerable: true,
179
- get: function () { return chunkGG6TEAMJ_cjs.resolveVariables; }
205
+ get: function () { return chunk3HE5CJBG_cjs.resolveVariables; }
180
206
  });
181
207
  Object.defineProperty(exports, "updateStepInHierarchy", {
182
208
  enumerable: true,
183
- get: function () { return chunkGG6TEAMJ_cjs.updateStepInHierarchy; }
209
+ get: function () { return chunk3HE5CJBG_cjs.updateStepInHierarchy; }
184
210
  });
185
211
  Object.defineProperty(exports, "workflowToStep", {
186
212
  enumerable: true,
187
- get: function () { return chunkGG6TEAMJ_cjs.workflowToStep; }
188
- });
189
- Object.defineProperty(exports, "Mastra", {
190
- enumerable: true,
191
- get: function () { return chunkYXJQFZOW_cjs.Mastra; }
192
- });
193
- Object.defineProperty(exports, "CohereRelevanceScorer", {
194
- enumerable: true,
195
- get: function () { return chunkWESJ2ZY7_cjs.CohereRelevanceScorer; }
196
- });
197
- Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
198
- enumerable: true,
199
- get: function () { return chunkWESJ2ZY7_cjs.MastraAgentRelevanceScorer; }
200
- });
201
- Object.defineProperty(exports, "createSimilarityPrompt", {
202
- enumerable: true,
203
- get: function () { return chunkWESJ2ZY7_cjs.createSimilarityPrompt; }
213
+ get: function () { return chunk3HE5CJBG_cjs.workflowToStep; }
204
214
  });
205
215
  Object.defineProperty(exports, "InstrumentClass", {
206
216
  enumerable: true,
207
- get: function () { return chunkXB2TJ7LX_cjs.InstrumentClass; }
217
+ get: function () { return chunkPHWEC4VD_cjs.InstrumentClass; }
208
218
  });
209
219
  Object.defineProperty(exports, "OTLPStorageExporter", {
210
220
  enumerable: true,
211
- get: function () { return chunkXB2TJ7LX_cjs.OTLPTraceExporter; }
221
+ get: function () { return chunkPHWEC4VD_cjs.OTLPTraceExporter; }
212
222
  });
213
223
  Object.defineProperty(exports, "Telemetry", {
214
224
  enumerable: true,
215
- get: function () { return chunkXB2TJ7LX_cjs.Telemetry; }
225
+ get: function () { return chunkPHWEC4VD_cjs.Telemetry; }
216
226
  });
217
227
  Object.defineProperty(exports, "hasActiveTelemetry", {
218
228
  enumerable: true,
219
- get: function () { return chunkXB2TJ7LX_cjs.hasActiveTelemetry; }
229
+ get: function () { return chunkPHWEC4VD_cjs.hasActiveTelemetry; }
220
230
  });
221
231
  Object.defineProperty(exports, "withSpan", {
222
232
  enumerable: true,
223
- get: function () { return chunkXB2TJ7LX_cjs.withSpan; }
233
+ get: function () { return chunkPHWEC4VD_cjs.withSpan; }
224
234
  });
225
235
  Object.defineProperty(exports, "checkEvalStorageFields", {
226
236
  enumerable: true,
227
- get: function () { return chunk5FAJ6HUC_cjs.checkEvalStorageFields; }
237
+ get: function () { return chunk64VPB7ZD_cjs.checkEvalStorageFields; }
228
238
  });
229
239
  Object.defineProperty(exports, "createMastraProxy", {
230
240
  enumerable: true,
231
- get: function () { return chunk5FAJ6HUC_cjs.createMastraProxy; }
241
+ get: function () { return chunk64VPB7ZD_cjs.createMastraProxy; }
242
+ });
243
+ Object.defineProperty(exports, "createTool", {
244
+ enumerable: true,
245
+ get: function () { return chunk64VPB7ZD_cjs.createTool; }
232
246
  });
233
247
  Object.defineProperty(exports, "deepMerge", {
234
248
  enumerable: true,
235
- get: function () { return chunk5FAJ6HUC_cjs.deepMerge; }
249
+ get: function () { return chunk64VPB7ZD_cjs.deepMerge; }
236
250
  });
237
251
  Object.defineProperty(exports, "delay", {
238
252
  enumerable: true,
239
- get: function () { return chunk5FAJ6HUC_cjs.delay; }
253
+ get: function () { return chunk64VPB7ZD_cjs.delay; }
240
254
  });
241
255
  Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
242
256
  enumerable: true,
243
- get: function () { return chunk5FAJ6HUC_cjs.ensureAllMessagesAreCoreMessages; }
257
+ get: function () { return chunk64VPB7ZD_cjs.ensureAllMessagesAreCoreMessages; }
244
258
  });
245
259
  Object.defineProperty(exports, "ensureToolProperties", {
246
260
  enumerable: true,
247
- get: function () { return chunk5FAJ6HUC_cjs.ensureToolProperties; }
261
+ get: function () { return chunk64VPB7ZD_cjs.ensureToolProperties; }
248
262
  });
249
263
  Object.defineProperty(exports, "isVercelTool", {
250
264
  enumerable: true,
251
- get: function () { return chunk5FAJ6HUC_cjs.isVercelTool; }
265
+ get: function () { return chunk64VPB7ZD_cjs.isVercelTool; }
252
266
  });
253
267
  Object.defineProperty(exports, "jsonSchemaPropertiesToTSTypes", {
254
268
  enumerable: true,
255
- get: function () { return chunk5FAJ6HUC_cjs.jsonSchemaPropertiesToTSTypes; }
269
+ get: function () { return chunk64VPB7ZD_cjs.jsonSchemaPropertiesToTSTypes; }
256
270
  });
257
271
  Object.defineProperty(exports, "jsonSchemaToModel", {
258
272
  enumerable: true,
259
- get: function () { return chunk5FAJ6HUC_cjs.jsonSchemaToModel; }
273
+ get: function () { return chunk64VPB7ZD_cjs.jsonSchemaToModel; }
260
274
  });
261
275
  Object.defineProperty(exports, "makeCoreTool", {
262
276
  enumerable: true,
263
- get: function () { return chunk5FAJ6HUC_cjs.makeCoreTool; }
277
+ get: function () { return chunk64VPB7ZD_cjs.makeCoreTool; }
264
278
  });
265
279
  Object.defineProperty(exports, "maskStreamTags", {
266
280
  enumerable: true,
267
- get: function () { return chunk5FAJ6HUC_cjs.maskStreamTags; }
281
+ get: function () { return chunk64VPB7ZD_cjs.maskStreamTags; }
268
282
  });
269
283
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
270
284
  enumerable: true,
271
- get: function () { return chunk5FAJ6HUC_cjs.resolveSerializedZodOutput; }
272
- });
273
- Object.defineProperty(exports, "createTool", {
274
- enumerable: true,
275
- get: function () { return chunk2W2GYEYQ_cjs.createTool; }
285
+ get: function () { return chunk64VPB7ZD_cjs.resolveSerializedZodOutput; }
276
286
  });
277
287
  Object.defineProperty(exports, "LogLevel", {
278
288
  enumerable: true,
279
- get: function () { return chunkNPOKIPWC_cjs.LogLevel; }
289
+ get: function () { return chunkO7IW545H_cjs.LogLevel; }
280
290
  });
281
291
  Object.defineProperty(exports, "Logger", {
282
292
  enumerable: true,
283
- get: function () { return chunkNPOKIPWC_cjs.Logger; }
293
+ get: function () { return chunkO7IW545H_cjs.Logger; }
284
294
  });
285
295
  Object.defineProperty(exports, "LoggerTransport", {
286
296
  enumerable: true,
287
- get: function () { return chunkNPOKIPWC_cjs.LoggerTransport; }
297
+ get: function () { return chunkO7IW545H_cjs.LoggerTransport; }
288
298
  });
289
299
  Object.defineProperty(exports, "MultiLogger", {
290
300
  enumerable: true,
291
- get: function () { return chunkNPOKIPWC_cjs.MultiLogger; }
301
+ get: function () { return chunkO7IW545H_cjs.MultiLogger; }
292
302
  });
293
303
  Object.defineProperty(exports, "RegisteredLogger", {
294
304
  enumerable: true,
295
- get: function () { return chunkNPOKIPWC_cjs.RegisteredLogger; }
305
+ get: function () { return chunkO7IW545H_cjs.RegisteredLogger; }
296
306
  });
297
307
  Object.defineProperty(exports, "combineLoggers", {
298
308
  enumerable: true,
299
- get: function () { return chunkNPOKIPWC_cjs.combineLoggers; }
309
+ get: function () { return chunkO7IW545H_cjs.combineLoggers; }
300
310
  });
301
311
  Object.defineProperty(exports, "noopLogger", {
302
312
  enumerable: true,
303
- get: function () { return chunkNPOKIPWC_cjs.noopLogger; }
313
+ get: function () { return chunkO7IW545H_cjs.noopLogger; }
304
314
  });
305
315
  Object.defineProperty(exports, "Metric", {
306
316
  enumerable: true,
307
- get: function () { return chunkV5ORZPFW_cjs.Metric; }
317
+ get: function () { return chunk3C6V2FEP_cjs.Metric; }
308
318
  });
309
319
  Object.defineProperty(exports, "evaluate", {
310
320
  enumerable: true,
311
- get: function () { return chunkV5ORZPFW_cjs.evaluate; }
321
+ get: function () { return chunk3C6V2FEP_cjs.evaluate; }
312
322
  });
313
323
  Object.defineProperty(exports, "AvailableHooks", {
314
324
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { M as Metric } from './types-CwTG2XyQ.cjs';
2
- export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.cjs';
3
- import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-C0wILuA9.cjs';
4
- export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-C0wILuA9.cjs';
5
- import { M as MastraBase$1 } from './base-ObPJ-w8K.cjs';
6
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-ObPJ-w8K.cjs';
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 { i as ToolAction, j as Agent$1, k as AgentConfig, e as MastraStorage$1, l as MastraMemory$1, m as ToolExecutionContext, n as Tool$1, o as Step, W as Workflow$1, p as WorkflowOptions } from './base-Dpt4tO56.cjs';
4
+ export { ac as ActionContext, ab as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, a3 as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, aq as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ax as ExtractSchemaFromStep, aA as ExtractSchemaType, ay as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, a as Mastra, Z as MemoryConfig, a0 as MemoryProcessor, $ as MemoryProcessorOpts, Y as MessageResponse, g as MessageType, O as OutputType, aB as PathsToStringProps, an as ResolverFunctionInput, ao as ResolverFunctionOutput, a9 as RetryConfig, _ as SharedMemoryConfig, a5 as StepAction, af as StepCondition, ag as StepConfig, ae as StepDef, a4 as StepExecutionContext, a8 as StepGraph, aw as StepId, az as StepInputType, a7 as StepNode, ar as StepResolverOutput, ah as StepResult, a6 as StepVariableType, ai as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, ap as SubscriberFunctionOutput, aa as VariableReference, a2 as VercelTool, ad as WhenConditionReturnValue, at as WorkflowActionParams, au as WorkflowActions, as as WorkflowActors, ak as WorkflowContext, am as WorkflowEvent, al as WorkflowLogMessage, aD as WorkflowResumeResult, q as WorkflowRow, aj as WorkflowRunResult, aC as WorkflowRunState, av as WorkflowState, aE as createStep, a1 as createTool } from './base-Dpt4tO56.cjs';
5
+ import { M as MastraBase$1 } from './base-CvQbEqGB.cjs';
6
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-CvQbEqGB.cjs';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
8
8
  export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-CquI0inB.cjs';
9
9
  import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
@@ -16,7 +16,7 @@ import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.cjs';
16
16
  export { TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.cjs';
17
17
  import { MastraVector as MastraVector$1 } from './vector/index.cjs';
18
18
  export { CreateIndexArgs, CreateIndexParams, IndexStats, ParamsToArgs, QueryResult, QueryVectorArgs, QueryVectorParams, UpsertVectorArgs, UpsertVectorParams } from './vector/index.cjs';
19
- export { getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.cjs';
19
+ export { agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.cjs';
20
20
  export { AvailableHooks, executeHook, registerHook } from './hooks/index.cjs';
21
21
  export { Message as AiMessageType } from 'ai';
22
22
  import 'sift';
@@ -24,6 +24,8 @@ import 'json-schema';
24
24
  import '@opentelemetry/api';
25
25
  import 'xstate';
26
26
  import 'node:events';
27
+ import 'hono';
28
+ import 'hono-openapi';
27
29
  import '@opentelemetry/sdk-trace-base';
28
30
  import 'stream';
29
31
  import 'pino';
@@ -31,8 +33,8 @@ import './bundler/index.cjs';
31
33
  import '@opentelemetry/core';
32
34
  import './vector/filter/index.cjs';
33
35
 
34
- declare class Agent<TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TTools, TMetrics> {
35
- constructor(config: AgentConfig<TTools, TMetrics>);
36
+ declare class Agent<TAgentId extends string = string, TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TAgentId, TTools, TMetrics> {
37
+ constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
36
38
  }
37
39
 
38
40
  declare class MastraBase extends MastraBase$1 {
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { M as Metric } from './types-CwTG2XyQ.js';
2
- export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.js';
3
- import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-Cyl73WbV.js';
4
- export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-Cyl73WbV.js';
5
- import { M as MastraBase$1 } from './base-Cmunaaxb.js';
6
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-Cmunaaxb.js';
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 { i as ToolAction, j as Agent$1, k as AgentConfig, e as MastraStorage$1, l as MastraMemory$1, m as ToolExecutionContext, n as Tool$1, o as Step, W as Workflow$1, p as WorkflowOptions } from './base-CQuRWXAH.js';
4
+ export { ac as ActionContext, ab as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, a3 as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, aq as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ax as ExtractSchemaFromStep, aA as ExtractSchemaType, ay as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, a as Mastra, Z as MemoryConfig, a0 as MemoryProcessor, $ as MemoryProcessorOpts, Y as MessageResponse, g as MessageType, O as OutputType, aB as PathsToStringProps, an as ResolverFunctionInput, ao as ResolverFunctionOutput, a9 as RetryConfig, _ as SharedMemoryConfig, a5 as StepAction, af as StepCondition, ag as StepConfig, ae as StepDef, a4 as StepExecutionContext, a8 as StepGraph, aw as StepId, az as StepInputType, a7 as StepNode, ar as StepResolverOutput, ah as StepResult, a6 as StepVariableType, ai as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, ap as SubscriberFunctionOutput, aa as VariableReference, a2 as VercelTool, ad as WhenConditionReturnValue, at as WorkflowActionParams, au as WorkflowActions, as as WorkflowActors, ak as WorkflowContext, am as WorkflowEvent, al as WorkflowLogMessage, aD as WorkflowResumeResult, q as WorkflowRow, aj as WorkflowRunResult, aC as WorkflowRunState, av as WorkflowState, aE as createStep, a1 as createTool } from './base-CQuRWXAH.js';
5
+ import { M as MastraBase$1 } from './base-BA_in99t.js';
6
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BA_in99t.js';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
8
8
  export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-CquI0inB.js';
9
9
  import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
@@ -16,7 +16,7 @@ import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
16
16
  export { TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './utils.js';
17
17
  import { MastraVector as MastraVector$1 } from './vector/index.js';
18
18
  export { CreateIndexArgs, CreateIndexParams, IndexStats, ParamsToArgs, QueryResult, QueryVectorArgs, QueryVectorParams, UpsertVectorArgs, UpsertVectorParams } from './vector/index.js';
19
- export { getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.js';
19
+ export { agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './workflows/index.js';
20
20
  export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
21
21
  export { Message as AiMessageType } from 'ai';
22
22
  import 'sift';
@@ -24,6 +24,8 @@ import 'json-schema';
24
24
  import '@opentelemetry/api';
25
25
  import 'xstate';
26
26
  import 'node:events';
27
+ import 'hono';
28
+ import 'hono-openapi';
27
29
  import '@opentelemetry/sdk-trace-base';
28
30
  import 'stream';
29
31
  import 'pino';
@@ -31,8 +33,8 @@ import './bundler/index.js';
31
33
  import '@opentelemetry/core';
32
34
  import './vector/filter/index.js';
33
35
 
34
- declare class Agent<TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TTools, TMetrics> {
35
- constructor(config: AgentConfig<TTools, TMetrics>);
36
+ declare class Agent<TAgentId extends string = string, TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TAgentId, TTools, TMetrics> {
37
+ constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
36
38
  }
37
39
 
38
40
  declare class MastraBase extends MastraBase$1 {
package/dist/index.js CHANGED
@@ -1,22 +1,21 @@
1
- import { MastraTTS } from './chunk-WBE5RTFI.js';
2
- import { Workflow } from './chunk-R2M5CZ5U.js';
3
- export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-R2M5CZ5U.js';
4
- import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
5
- export { Mastra } from './chunk-ZBKJDQPM.js';
6
- import { MastraMemory } from './chunk-43SD5CUE.js';
7
- import { MastraVector } from './chunk-ZABXT2MN.js';
8
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-QM6WIIPM.js';
9
- import { MastraStorage } from './chunk-RU7CSPAV.js';
10
- import { Agent } from './chunk-VNQRLYIA.js';
11
- export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-W5HVJX45.js';
12
- export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-2YF5JYTJ.js';
13
- import { Tool } from './chunk-ZINPRHAN.js';
14
- export { createTool } from './chunk-ZINPRHAN.js';
15
- import { MastraDeployer } from './chunk-3CNO7YB5.js';
16
- import { MastraBase } from './chunk-VN4M67DA.js';
17
- import { createLogger } from './chunk-L7CR75HA.js';
18
- export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-L7CR75HA.js';
19
- export { Metric, evaluate } from './chunk-NUDAZEOG.js';
1
+ import { MastraTTS } from './chunk-HAWAUEWK.js';
2
+ import { Integration, OpenAPIToolset } from './chunk-4RMSGSQN.js';
3
+ export { Mastra } from './chunk-RBWBJC6D.js';
4
+ import { MastraMemory } from './chunk-QDHRRKQ5.js';
5
+ export { MemoryProcessor } from './chunk-QDHRRKQ5.js';
6
+ import { MastraVector } from './chunk-FY57LEMC.js';
7
+ import { MastraStorage } from './chunk-JGJMVCJ4.js';
8
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-UF4LZV3D.js';
9
+ import { Agent, Workflow } from './chunk-HCDXBSMK.js';
10
+ export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-HCDXBSMK.js';
11
+ export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-N5ZYOQBL.js';
12
+ import { Tool } from './chunk-BC5B4EGI.js';
13
+ export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-BC5B4EGI.js';
14
+ import { MastraDeployer } from './chunk-5TFGORLG.js';
15
+ import { MastraBase } from './chunk-CLJQYXNM.js';
16
+ import { createLogger } from './chunk-2BVZNKLX.js';
17
+ export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-2BVZNKLX.js';
18
+ export { Metric, evaluate } from './chunk-PK5QRKSG.js';
20
19
  export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
21
20
 
22
21
  // src/agent/index.warning.ts
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkXLSROQ26_cjs = require('../chunk-XLSROQ26.cjs');
3
+ var chunk7I7AKQH3_cjs = require('../chunk-7I7AKQH3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Integration", {
8
8
  enumerable: true,
9
- get: function () { return chunkXLSROQ26_cjs.Integration; }
9
+ get: function () { return chunk7I7AKQH3_cjs.Integration; }
10
10
  });
11
11
  Object.defineProperty(exports, "OpenAPIToolset", {
12
12
  enumerable: true,
13
- get: function () { return chunkXLSROQ26_cjs.OpenAPIToolset; }
13
+ get: function () { return chunk7I7AKQH3_cjs.OpenAPIToolset; }
14
14
  });
@@ -1,12 +1,12 @@
1
- import '../base-ObPJ-w8K.cjs';
2
- import { W as Workflow, T as ToolAction } from '../base-C0wILuA9.cjs';
1
+ import '../base-CvQbEqGB.cjs';
2
+ import { W as Workflow, i as ToolAction } from '../base-Dpt4tO56.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
6
6
  import 'pino';
7
7
  import '@opentelemetry/sdk-trace-base';
8
8
  import 'ai';
9
- import '../types-CwTG2XyQ.cjs';
9
+ import '../types-BtMyV38I.cjs';
10
10
  import 'sift';
11
11
  import 'zod';
12
12
  import 'json-schema';
@@ -17,6 +17,8 @@ import '../vector/filter/index.cjs';
17
17
  import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
+ import 'hono';
21
+ import 'hono-openapi';
20
22
 
21
23
  declare class Integration<ToolsParams = void, ApiClient = void> {
22
24
  name: string;
@@ -1,12 +1,12 @@
1
- import '../base-Cmunaaxb.js';
2
- import { W as Workflow, T as ToolAction } from '../base-Cyl73WbV.js';
1
+ import '../base-BA_in99t.js';
2
+ import { W as Workflow, i as ToolAction } from '../base-CQuRWXAH.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
6
6
  import 'pino';
7
7
  import '@opentelemetry/sdk-trace-base';
8
8
  import 'ai';
9
- import '../types-CwTG2XyQ.js';
9
+ import '../types-BtMyV38I.js';
10
10
  import 'sift';
11
11
  import 'zod';
12
12
  import 'json-schema';
@@ -17,6 +17,8 @@ import '../vector/filter/index.js';
17
17
  import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
+ import 'hono';
21
+ import 'hono-openapi';
20
22
 
21
23
  declare class Integration<ToolsParams = void, ApiClient = void> {
22
24
  name: string;
@@ -1 +1 @@
1
- export { Integration, OpenAPIToolset } from '../chunk-PNZK456O.js';
1
+ export { Integration, OpenAPIToolset } from '../chunk-4RMSGSQN.js';