@mastra/core 0.8.0 → 0.8.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 (51) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +2 -1
  3. package/dist/agent/index.d.ts +2 -1
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-nVWefprR.d.cts → base-CRsNpPj6.d.cts} +6 -0
  6. package/dist/{base-C7f5RDDD.d.ts → base-D0afZZ9D.d.ts} +6 -0
  7. package/dist/{chunk-A74FQNCI.js → chunk-26NMSLXS.js} +1 -1
  8. package/dist/{chunk-FUQKE5AK.cjs → chunk-6BT5XRRD.cjs} +2 -2
  9. package/dist/{chunk-SGR6AJWC.js → chunk-FFOLLSHP.js} +1 -1
  10. package/dist/{chunk-ENOIN7PM.cjs → chunk-MP3UIX44.cjs} +1 -1
  11. package/dist/eval/index.d.cts +2 -1
  12. package/dist/eval/index.d.ts +2 -1
  13. package/dist/index.cjs +28 -28
  14. package/dist/index.d.cts +3 -2
  15. package/dist/index.d.ts +3 -2
  16. package/dist/index.js +3 -3
  17. package/dist/integration/index.d.cts +2 -1
  18. package/dist/integration/index.d.ts +2 -1
  19. package/dist/llm/index.d.cts +2 -1
  20. package/dist/llm/index.d.ts +2 -1
  21. package/dist/mastra/index.d.cts +2 -1
  22. package/dist/mastra/index.d.ts +2 -1
  23. package/dist/memory/index.d.cts +2 -1
  24. package/dist/memory/index.d.ts +2 -1
  25. package/dist/network/index.cjs +2 -2
  26. package/dist/network/index.d.cts +2 -1
  27. package/dist/network/index.d.ts +2 -1
  28. package/dist/network/index.js +1 -1
  29. package/dist/relevance/index.cjs +4 -4
  30. package/dist/relevance/index.d.cts +2 -1
  31. package/dist/relevance/index.d.ts +2 -1
  32. package/dist/relevance/index.js +1 -1
  33. package/dist/server/index.d.cts +2 -1
  34. package/dist/server/index.d.ts +2 -1
  35. package/dist/storage/index.d.cts +2 -1
  36. package/dist/storage/index.d.ts +2 -1
  37. package/dist/storage/libsql/index.d.cts +2 -1
  38. package/dist/storage/libsql/index.d.ts +2 -1
  39. package/dist/telemetry/index.d.cts +2 -1
  40. package/dist/telemetry/index.d.ts +2 -1
  41. package/dist/tools/index.d.cts +2 -1
  42. package/dist/tools/index.d.ts +2 -1
  43. package/dist/utils.d.cts +2 -1
  44. package/dist/utils.d.ts +2 -1
  45. package/dist/voice/index.d.cts +3 -2
  46. package/dist/voice/index.d.ts +3 -2
  47. package/dist/workflows/index.cjs +23 -23
  48. package/dist/workflows/index.d.cts +3 -2
  49. package/dist/workflows/index.d.ts +3 -2
  50. package/dist/workflows/index.js +1 -1
  51. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkENOIN7PM_cjs = require('../chunk-ENOIN7PM.cjs');
3
+ var chunkMP3UIX44_cjs = require('../chunk-MP3UIX44.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Agent", {
8
8
  enumerable: true,
9
- get: function () { return chunkENOIN7PM_cjs.Agent; }
9
+ get: function () { return chunkMP3UIX44_cjs.Agent; }
10
10
  });
@@ -1,7 +1,7 @@
1
1
  export { Message as AiMessageType } from 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-nVWefprR.cjs';
4
+ export { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-CRsNpPj6.cjs';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '../types-BtMyV38I.cjs';
7
7
  import 'sift';
@@ -18,4 +18,5 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,7 +1,7 @@
1
1
  export { Message as AiMessageType } from 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-C7f5RDDD.js';
4
+ export { j as Agent, k as AgentConfig, aM as AgentGenerateOptions, aN as AgentStreamOptions, aG as MastraLanguageModel, aH as ToolsInput, aL as ToolsetsInput } from '../base-D0afZZ9D.js';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '../types-BtMyV38I.js';
7
7
  import 'sift';
@@ -18,4 +18,5 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1 +1 @@
1
- export { Agent } from '../chunk-SGR6AJWC.js';
1
+ export { Agent } from '../chunk-FFOLLSHP.js';
@@ -14,6 +14,7 @@ import { MastraVector } from './vector/index.cjs';
14
14
  import { MastraTTS } from './tts/index.cjs';
15
15
  import { MastraDeployer } from './deployer/index.cjs';
16
16
  import { Handler, MiddlewareHandler } from 'hono';
17
+ import { cors } from 'hono/cors';
17
18
  import { DescribeRouteOptions } from 'hono-openapi';
18
19
 
19
20
  type VercelTool = Tool$1;
@@ -1633,6 +1634,11 @@ type ServerConfig = {
1633
1634
  timeout?: number;
1634
1635
  apiRoutes?: ApiRoute[];
1635
1636
  middleware?: Middleware | Middleware[];
1637
+ /**
1638
+ * CORS configuration for the server
1639
+ * @default { origin: '*', allowMethods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowHeaders: ['Content-Type', 'Authorization', 'x-mastra-client-type'], exposeHeaders: ['Content-Length', 'X-Requested-With'], credentials: false }
1640
+ */
1641
+ cors?: Parameters<typeof cors>[0] | false;
1636
1642
  };
1637
1643
 
1638
1644
  interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger, TNetworks extends Record<string, AgentNetwork> = Record<string, AgentNetwork>> {
@@ -14,6 +14,7 @@ import { MastraVector } from './vector/index.js';
14
14
  import { MastraTTS } from './tts/index.js';
15
15
  import { MastraDeployer } from './deployer/index.js';
16
16
  import { Handler, MiddlewareHandler } from 'hono';
17
+ import { cors } from 'hono/cors';
17
18
  import { DescribeRouteOptions } from 'hono-openapi';
18
19
 
19
20
  type VercelTool = Tool$1;
@@ -1633,6 +1634,11 @@ type ServerConfig = {
1633
1634
  timeout?: number;
1634
1635
  apiRoutes?: ApiRoute[];
1635
1636
  middleware?: Middleware | Middleware[];
1637
+ /**
1638
+ * CORS configuration for the server
1639
+ * @default { origin: '*', allowMethods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowHeaders: ['Content-Type', 'Authorization', 'x-mastra-client-type'], exposeHeaders: ['Content-Length', 'X-Requested-With'], credentials: false }
1640
+ */
1641
+ cors?: Parameters<typeof cors>[0] | false;
1636
1642
  };
1637
1643
 
1638
1644
  interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger, TNetworks extends Record<string, AgentNetwork> = Record<string, AgentNetwork>> {
@@ -1,4 +1,4 @@
1
- import { Agent } from './chunk-SGR6AJWC.js';
1
+ import { Agent } from './chunk-FFOLLSHP.js';
2
2
  import { CohereClient } from 'cohere-ai';
3
3
 
4
4
  var CohereRelevanceScorer = class {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkENOIN7PM_cjs = require('./chunk-ENOIN7PM.cjs');
3
+ var chunkMP3UIX44_cjs = require('./chunk-MP3UIX44.cjs');
4
4
  var cohereAi = require('cohere-ai');
5
5
 
6
6
  var CohereRelevanceScorer = class {
@@ -38,7 +38,7 @@ Relevance score (0-1):`;
38
38
  var MastraAgentRelevanceScorer = class {
39
39
  agent;
40
40
  constructor(name, model) {
41
- this.agent = new chunkENOIN7PM_cjs.Agent({
41
+ this.agent = new chunkMP3UIX44_cjs.Agent({
42
42
  name: `Relevance Scorer ${name}`,
43
43
  instructions: `You are a specialized agent for evaluating the relevance of text to queries.
44
44
  Your task is to rate how well a text passage answers a given query.
@@ -224,7 +224,7 @@ var MastraLLM = class extends MastraLLMBase {
224
224
  async __text({
225
225
  runId,
226
226
  messages,
227
- maxSteps,
227
+ maxSteps = 5,
228
228
  tools,
229
229
  convertedTools,
230
230
  temperature,
@@ -231,7 +231,7 @@ var MastraLLM = class extends MastraLLMBase {
231
231
  async __text({
232
232
  runId,
233
233
  messages,
234
- maxSteps,
234
+ maxSteps = 5,
235
235
  tools,
236
236
  convertedTools,
237
237
  temperature,
@@ -1,6 +1,6 @@
1
1
  import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.cjs';
2
2
  export { M as MetricResult } from '../types-BtMyV38I.cjs';
3
- import { j as Agent } from '../base-nVWefprR.cjs';
3
+ import { j as Agent } from '../base-CRsNpPj6.cjs';
4
4
  import 'ai';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '@opentelemetry/api';
@@ -19,6 +19,7 @@ import '../tts/index.cjs';
19
19
  import '../deployer/index.cjs';
20
20
  import '../bundler/index.cjs';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
23
24
 
24
25
  declare function evaluate<T extends Agent>({ agentName, input, metric, output, runId, globalRunId, testInfo, instructions, }: {
@@ -1,6 +1,6 @@
1
1
  import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.js';
2
2
  export { M as MetricResult } from '../types-BtMyV38I.js';
3
- import { j as Agent } from '../base-C7f5RDDD.js';
3
+ import { j as Agent } from '../base-D0afZZ9D.js';
4
4
  import 'ai';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '@opentelemetry/api';
@@ -19,6 +19,7 @@ import '../tts/index.js';
19
19
  import '../deployer/index.js';
20
20
  import '../bundler/index.js';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
23
24
 
24
25
  declare function evaluate<T extends Agent>({ agentName, input, metric, output, runId, globalRunId, testInfo, instructions, }: {
package/dist/index.cjs CHANGED
@@ -6,8 +6,8 @@ var chunkFGPCJCMB_cjs = require('./chunk-FGPCJCMB.cjs');
6
6
  var chunkIUU6FRPI_cjs = require('./chunk-IUU6FRPI.cjs');
7
7
  var chunk7JBINHJX_cjs = require('./chunk-7JBINHJX.cjs');
8
8
  var chunkJJ5OT2JE_cjs = require('./chunk-JJ5OT2JE.cjs');
9
- var chunkFUQKE5AK_cjs = require('./chunk-FUQKE5AK.cjs');
10
- var chunkENOIN7PM_cjs = require('./chunk-ENOIN7PM.cjs');
9
+ var chunk6BT5XRRD_cjs = require('./chunk-6BT5XRRD.cjs');
10
+ var chunkMP3UIX44_cjs = require('./chunk-MP3UIX44.cjs');
11
11
  var chunk4VGR4D7S_cjs = require('./chunk-4VGR4D7S.cjs');
12
12
  var chunk64VPB7ZD_cjs = require('./chunk-64VPB7ZD.cjs');
13
13
  var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
@@ -17,7 +17,7 @@ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
17
17
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
18
18
 
19
19
  // src/agent/index.warning.ts
20
- var Agent2 = class extends chunkENOIN7PM_cjs.Agent {
20
+ var Agent2 = class extends chunkMP3UIX44_cjs.Agent {
21
21
  constructor(config) {
22
22
  super(config);
23
23
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -105,7 +105,7 @@ var MastraVector2 = class extends chunk7JBINHJX_cjs.MastraVector {
105
105
  };
106
106
 
107
107
  // src/workflows/workflow.warning.ts
108
- var Workflow2 = class extends chunkENOIN7PM_cjs.Workflow {
108
+ var Workflow2 = class extends chunkMP3UIX44_cjs.Workflow {
109
109
  constructor(args) {
110
110
  super(args);
111
111
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -122,99 +122,99 @@ Object.defineProperty(exports, "MemoryProcessor", {
122
122
  });
123
123
  Object.defineProperty(exports, "CohereRelevanceScorer", {
124
124
  enumerable: true,
125
- get: function () { return chunkFUQKE5AK_cjs.CohereRelevanceScorer; }
125
+ get: function () { return chunk6BT5XRRD_cjs.CohereRelevanceScorer; }
126
126
  });
127
127
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
128
128
  enumerable: true,
129
- get: function () { return chunkFUQKE5AK_cjs.MastraAgentRelevanceScorer; }
129
+ get: function () { return chunk6BT5XRRD_cjs.MastraAgentRelevanceScorer; }
130
130
  });
131
131
  Object.defineProperty(exports, "createSimilarityPrompt", {
132
132
  enumerable: true,
133
- get: function () { return chunkFUQKE5AK_cjs.createSimilarityPrompt; }
133
+ get: function () { return chunk6BT5XRRD_cjs.createSimilarityPrompt; }
134
134
  });
135
135
  Object.defineProperty(exports, "Step", {
136
136
  enumerable: true,
137
- get: function () { return chunkENOIN7PM_cjs.Step; }
137
+ get: function () { return chunkMP3UIX44_cjs.Step; }
138
138
  });
139
139
  Object.defineProperty(exports, "WhenConditionReturnValue", {
140
140
  enumerable: true,
141
- get: function () { return chunkENOIN7PM_cjs.WhenConditionReturnValue; }
141
+ get: function () { return chunkMP3UIX44_cjs.WhenConditionReturnValue; }
142
142
  });
143
143
  Object.defineProperty(exports, "agentToStep", {
144
144
  enumerable: true,
145
- get: function () { return chunkENOIN7PM_cjs.agentToStep; }
145
+ get: function () { return chunkMP3UIX44_cjs.agentToStep; }
146
146
  });
147
147
  Object.defineProperty(exports, "createStep", {
148
148
  enumerable: true,
149
- get: function () { return chunkENOIN7PM_cjs.createStep; }
149
+ get: function () { return chunkMP3UIX44_cjs.createStep; }
150
150
  });
151
151
  Object.defineProperty(exports, "getActivePathsAndStatus", {
152
152
  enumerable: true,
153
- get: function () { return chunkENOIN7PM_cjs.getActivePathsAndStatus; }
153
+ get: function () { return chunkMP3UIX44_cjs.getActivePathsAndStatus; }
154
154
  });
155
155
  Object.defineProperty(exports, "getResultActivePaths", {
156
156
  enumerable: true,
157
- get: function () { return chunkENOIN7PM_cjs.getResultActivePaths; }
157
+ get: function () { return chunkMP3UIX44_cjs.getResultActivePaths; }
158
158
  });
159
159
  Object.defineProperty(exports, "getStepResult", {
160
160
  enumerable: true,
161
- get: function () { return chunkENOIN7PM_cjs.getStepResult; }
161
+ get: function () { return chunkMP3UIX44_cjs.getStepResult; }
162
162
  });
163
163
  Object.defineProperty(exports, "getSuspendedPaths", {
164
164
  enumerable: true,
165
- get: function () { return chunkENOIN7PM_cjs.getSuspendedPaths; }
165
+ get: function () { return chunkMP3UIX44_cjs.getSuspendedPaths; }
166
166
  });
167
167
  Object.defineProperty(exports, "isAgent", {
168
168
  enumerable: true,
169
- get: function () { return chunkENOIN7PM_cjs.isAgent; }
169
+ get: function () { return chunkMP3UIX44_cjs.isAgent; }
170
170
  });
171
171
  Object.defineProperty(exports, "isConditionalKey", {
172
172
  enumerable: true,
173
- get: function () { return chunkENOIN7PM_cjs.isConditionalKey; }
173
+ get: function () { return chunkMP3UIX44_cjs.isConditionalKey; }
174
174
  });
175
175
  Object.defineProperty(exports, "isErrorEvent", {
176
176
  enumerable: true,
177
- get: function () { return chunkENOIN7PM_cjs.isErrorEvent; }
177
+ get: function () { return chunkMP3UIX44_cjs.isErrorEvent; }
178
178
  });
179
179
  Object.defineProperty(exports, "isFinalState", {
180
180
  enumerable: true,
181
- get: function () { return chunkENOIN7PM_cjs.isFinalState; }
181
+ get: function () { return chunkMP3UIX44_cjs.isFinalState; }
182
182
  });
183
183
  Object.defineProperty(exports, "isLimboState", {
184
184
  enumerable: true,
185
- get: function () { return chunkENOIN7PM_cjs.isLimboState; }
185
+ get: function () { return chunkMP3UIX44_cjs.isLimboState; }
186
186
  });
187
187
  Object.defineProperty(exports, "isTransitionEvent", {
188
188
  enumerable: true,
189
- get: function () { return chunkENOIN7PM_cjs.isTransitionEvent; }
189
+ get: function () { return chunkMP3UIX44_cjs.isTransitionEvent; }
190
190
  });
191
191
  Object.defineProperty(exports, "isVariableReference", {
192
192
  enumerable: true,
193
- get: function () { return chunkENOIN7PM_cjs.isVariableReference; }
193
+ get: function () { return chunkMP3UIX44_cjs.isVariableReference; }
194
194
  });
195
195
  Object.defineProperty(exports, "isWorkflow", {
196
196
  enumerable: true,
197
- get: function () { return chunkENOIN7PM_cjs.isWorkflow; }
197
+ get: function () { return chunkMP3UIX44_cjs.isWorkflow; }
198
198
  });
199
199
  Object.defineProperty(exports, "mergeChildValue", {
200
200
  enumerable: true,
201
- get: function () { return chunkENOIN7PM_cjs.mergeChildValue; }
201
+ get: function () { return chunkMP3UIX44_cjs.mergeChildValue; }
202
202
  });
203
203
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
204
204
  enumerable: true,
205
- get: function () { return chunkENOIN7PM_cjs.recursivelyCheckForFinalState; }
205
+ get: function () { return chunkMP3UIX44_cjs.recursivelyCheckForFinalState; }
206
206
  });
207
207
  Object.defineProperty(exports, "resolveVariables", {
208
208
  enumerable: true,
209
- get: function () { return chunkENOIN7PM_cjs.resolveVariables; }
209
+ get: function () { return chunkMP3UIX44_cjs.resolveVariables; }
210
210
  });
211
211
  Object.defineProperty(exports, "updateStepInHierarchy", {
212
212
  enumerable: true,
213
- get: function () { return chunkENOIN7PM_cjs.updateStepInHierarchy; }
213
+ get: function () { return chunkMP3UIX44_cjs.updateStepInHierarchy; }
214
214
  });
215
215
  Object.defineProperty(exports, "workflowToStep", {
216
216
  enumerable: true,
217
- get: function () { return chunkENOIN7PM_cjs.workflowToStep; }
217
+ get: function () { return chunkMP3UIX44_cjs.workflowToStep; }
218
218
  });
219
219
  Object.defineProperty(exports, "InstrumentClass", {
220
220
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as Metric } from './types-BtMyV38I.cjs';
2
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, p as Workflow$1, q as WorkflowOptions } from './base-nVWefprR.cjs';
4
- export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-nVWefprR.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, p as Workflow$1, q as WorkflowOptions } from './base-CRsNpPj6.cjs';
4
+ export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-CRsNpPj6.cjs';
5
5
  import { M as MastraBase$1 } from './base-BihKcqDY.cjs';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BihKcqDY.cjs';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
@@ -25,6 +25,7 @@ import '@opentelemetry/api';
25
25
  import 'xstate';
26
26
  import 'node:events';
27
27
  import 'hono';
28
+ import 'hono/cors';
28
29
  import 'hono-openapi';
29
30
  import '@opentelemetry/sdk-trace-base';
30
31
  import 'stream';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as Metric } from './types-BtMyV38I.js';
2
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, p as Workflow$1, q as WorkflowOptions } from './base-C7f5RDDD.js';
4
- export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-C7f5RDDD.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, p as Workflow$1, q as WorkflowOptions } from './base-D0afZZ9D.js';
4
+ export { ae as ActionContext, ad as BaseCondition, B as BaseStructuredOutputType, Z as Config, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, a5 as CoreTool, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, as as DependencyCheckOutput, z as EmbedManyResult, y as EmbedResult, E as EvalRow, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, a as Mastra, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, O as OutputType, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, a0 as SharedMemoryConfig, a7 as StepAction, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, aj as StepResult, a8 as StepVariableType, ak as StepsRecord, S as StorageColumn, h as StorageGetMessagesArg, f as StorageThreadType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType, ar as SubscriberFunctionOutput, ac as VariableReference, a4 as VercelTool, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, am as WorkflowContext, ao as WorkflowEvent, an as WorkflowLogMessage, aE as WorkflowResumeResult, r as WorkflowRow, al as WorkflowRunResult, W as WorkflowRunState, s as WorkflowRuns, ax as WorkflowState, aF as createStep, a3 as createTool } from './base-D0afZZ9D.js';
5
5
  import { M as MastraBase$1 } from './base-DT2poiVK.js';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-DT2poiVK.js';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
@@ -25,6 +25,7 @@ import '@opentelemetry/api';
25
25
  import 'xstate';
26
26
  import 'node:events';
27
27
  import 'hono';
28
+ import 'hono/cors';
28
29
  import 'hono-openapi';
29
30
  import '@opentelemetry/sdk-trace-base';
30
31
  import 'stream';
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ import { MastraMemory } from './chunk-Q5Q3V2SQ.js';
5
5
  export { MemoryProcessor } from './chunk-Q5Q3V2SQ.js';
6
6
  import { MastraVector } from './chunk-FY57LEMC.js';
7
7
  import { MastraStorage } from './chunk-ZKVHS4RY.js';
8
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-A74FQNCI.js';
9
- import { Agent, Workflow } from './chunk-SGR6AJWC.js';
10
- export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-SGR6AJWC.js';
8
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-26NMSLXS.js';
9
+ import { Agent, Workflow } from './chunk-FFOLLSHP.js';
10
+ export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-FFOLLSHP.js';
11
11
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-RT3BSWWR.js';
12
12
  import { Tool } from './chunk-BC5B4EGI.js';
13
13
  export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-BC5B4EGI.js';
@@ -1,5 +1,5 @@
1
1
  import '../base-BihKcqDY.cjs';
2
- import { p as Workflow, i as ToolAction } from '../base-nVWefprR.cjs';
2
+ import { p as Workflow, i as ToolAction } from '../base-CRsNpPj6.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -18,6 +18,7 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
22
23
 
23
24
  declare class Integration<ToolsParams = void, ApiClient = void> {
@@ -1,5 +1,5 @@
1
1
  import '../base-DT2poiVK.js';
2
- import { p as Workflow, i as ToolAction } from '../base-C7f5RDDD.js';
2
+ import { p as Workflow, i as ToolAction } from '../base-D0afZZ9D.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
@@ -18,6 +18,7 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
22
23
 
23
24
  declare class Integration<ToolsParams = void, ApiClient = void> {
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-nVWefprR.cjs';
4
+ export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-CRsNpPj6.cjs';
5
5
  import '../index-CquI0inB.cjs';
6
6
  import '../base-BihKcqDY.cjs';
7
7
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-C7f5RDDD.js';
4
+ export { B as BaseStructuredOutputType, v as CoreAssistantMessage, t as CoreMessage, u as CoreSystemMessage, x as CoreToolMessage, w as CoreUserMessage, P as DefaultLLMStreamObjectOptions, N as DefaultLLMStreamOptions, K as DefaultLLMTextObjectOptions, J as DefaultLLMTextOptions, z as EmbedManyResult, y as EmbedResult, H as GenerateReturn, X as LLMInnerStreamOptions, Y as LLMStreamObjectOptions, U as LLMStreamOptions, R as LLMTextObjectOptions, Q as LLMTextOptions, L as LanguageModel, O as OutputType, I as StreamReturn, G as StructuredOutput, F as StructuredOutputArrayItem, D as StructuredOutputType } from '../base-D0afZZ9D.js';
5
5
  import '../index-CquI0inB.js';
6
6
  import '../base-DT2poiVK.js';
7
7
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- export { Z as Config, a as Mastra } from '../base-nVWefprR.cjs';
1
+ export { Z as Config, a as Mastra } from '../base-CRsNpPj6.cjs';
2
2
  import '../index-CquI0inB.cjs';
3
3
  import '../vector/index.cjs';
4
4
  import '../base-BihKcqDY.cjs';
@@ -13,6 +13,7 @@ import '@opentelemetry/api';
13
13
  import 'xstate';
14
14
  import 'node:events';
15
15
  import 'hono';
16
+ import 'hono/cors';
16
17
  import 'hono-openapi';
17
18
  import 'stream';
18
19
  import 'pino';
@@ -1,4 +1,4 @@
1
- export { Z as Config, a as Mastra } from '../base-C7f5RDDD.js';
1
+ export { Z as Config, a as Mastra } from '../base-D0afZZ9D.js';
2
2
  import '../index-CquI0inB.js';
3
3
  import '../vector/index.js';
4
4
  import '../base-DT2poiVK.js';
@@ -13,6 +13,7 @@ import '@opentelemetry/api';
13
13
  import 'xstate';
14
14
  import 'node:events';
15
15
  import 'hono';
16
+ import 'hono/cors';
16
17
  import 'hono-openapi';
17
18
  import 'stream';
18
19
  import 'pino';
@@ -1,4 +1,4 @@
1
- export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-nVWefprR.cjs';
1
+ export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-CRsNpPj6.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-C7f5RDDD.js';
1
+ export { l as MastraMemory, $ as MemoryConfig, a2 as MemoryProcessor, a1 as MemoryProcessorOpts, _ as MessageResponse, g as MessageType, a0 as SharedMemoryConfig, f as StorageThreadType } from '../base-D0afZZ9D.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkENOIN7PM_cjs = require('../chunk-ENOIN7PM.cjs');
3
+ var chunkMP3UIX44_cjs = require('../chunk-MP3UIX44.cjs');
4
4
  var chunk64VPB7ZD_cjs = require('../chunk-64VPB7ZD.cjs');
5
5
  var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
6
6
  var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
17
17
  this.#instructions = config.instructions;
18
18
  this.#agents = config.agents;
19
19
  this.#model = config.model;
20
- this.#routingAgent = new chunkENOIN7PM_cjs.Agent({
20
+ this.#routingAgent = new chunkMP3UIX44_cjs.Agent({
21
21
  name: config.name,
22
22
  instructions: this.getInstructions(),
23
23
  model: this.#model,
@@ -1,4 +1,4 @@
1
- export { aJ as AgentNetwork, aK as AgentNetworkConfig } from '../base-nVWefprR.cjs';
1
+ export { aJ as AgentNetwork, aK as AgentNetworkConfig } from '../base-CRsNpPj6.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- export { aJ as AgentNetwork, aK as AgentNetworkConfig } from '../base-C7f5RDDD.js';
1
+ export { aJ as AgentNetwork, aK as AgentNetworkConfig } from '../base-D0afZZ9D.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- import { Agent } from '../chunk-SGR6AJWC.js';
1
+ import { Agent } from '../chunk-FFOLLSHP.js';
2
2
  import { createTool } from '../chunk-BC5B4EGI.js';
3
3
  import { MastraBase } from '../chunk-CLJQYXNM.js';
4
4
  import { RegisteredLogger } from '../chunk-2BVZNKLX.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkFUQKE5AK_cjs = require('../chunk-FUQKE5AK.cjs');
3
+ var chunk6BT5XRRD_cjs = require('../chunk-6BT5XRRD.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkFUQKE5AK_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunk6BT5XRRD_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkFUQKE5AK_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunk6BT5XRRD_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkFUQKE5AK_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunk6BT5XRRD_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-BihKcqDY.cjs';
2
- import { aG as MastraLanguageModel } from '../base-nVWefprR.cjs';
2
+ import { aG as MastraLanguageModel } from '../base-CRsNpPj6.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -18,6 +18,7 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
22
23
 
23
24
  interface RelevanceScoreProvider {
@@ -1,5 +1,5 @@
1
1
  import '../base-DT2poiVK.js';
2
- import { aG as MastraLanguageModel } from '../base-C7f5RDDD.js';
2
+ import { aG as MastraLanguageModel } from '../base-D0afZZ9D.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
@@ -18,6 +18,7 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
22
23
 
23
24
  interface RelevanceScoreProvider {
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-A74FQNCI.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-26NMSLXS.js';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-nVWefprR.cjs';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-CRsNpPj6.cjs';
4
4
  import 'ai';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '@opentelemetry/api';
@@ -19,6 +19,7 @@ import '../vector/filter/index.cjs';
19
19
  import '../tts/index.cjs';
20
20
  import '../deployer/index.cjs';
21
21
  import '../bundler/index.cjs';
22
+ import 'hono/cors';
22
23
 
23
24
  type ParamsFromPath<P extends string> = {
24
25
  [K in P extends `${string}:${infer Param}/${string}` | `${string}:${infer Param}` ? Param : never]: string;
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-C7f5RDDD.js';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-D0afZZ9D.js';
4
4
  import 'ai';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '@opentelemetry/api';
@@ -19,6 +19,7 @@ import '../vector/filter/index.js';
19
19
  import '../tts/index.js';
20
20
  import '../deployer/index.js';
21
21
  import '../bundler/index.js';
22
+ import 'hono/cors';
22
23
 
23
24
  type ParamsFromPath<P extends string> = {
24
25
  [K in P extends `${string}:${infer Param}/${string}` | `${string}:${infer Param}` ? Param : never]: string;
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-nVWefprR.cjs';
1
+ export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-CRsNpPj6.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-C7f5RDDD.js';
1
+ export { E as EvalRow, e as MastraStorage, S as StorageColumn, h as StorageGetMessagesArg, aP as TABLE_EVALS, aQ as TABLE_MESSAGES, T as TABLE_NAMES, aT as TABLE_SCHEMAS, aR as TABLE_THREADS, aS as TABLE_TRACES, aO as TABLE_WORKFLOW_SNAPSHOT, r as WorkflowRow, s as WorkflowRuns } from '../base-D0afZZ9D.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -18,4 +18,5 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-nVWefprR.cjs';
1
+ import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-CRsNpPj6.cjs';
2
2
  import '../../base-BihKcqDY.cjs';
3
3
  import 'ai';
4
4
  import '../../types-BtMyV38I.cjs';
@@ -17,6 +17,7 @@ import '../../tts/index.cjs';
17
17
  import '../../deployer/index.cjs';
18
18
  import '../../bundler/index.cjs';
19
19
  import 'hono';
20
+ import 'hono/cors';
20
21
  import 'hono-openapi';
21
22
  import '@opentelemetry/sdk-trace-base';
22
23
 
@@ -1,4 +1,4 @@
1
- import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-C7f5RDDD.js';
1
+ import { e as MastraStorage, T as TABLE_NAMES, S as StorageColumn, f as StorageThreadType, g as MessageType, h as StorageGetMessagesArg, E as EvalRow, W as WorkflowRunState } from '../../base-D0afZZ9D.js';
2
2
  import '../../base-DT2poiVK.js';
3
3
  import 'ai';
4
4
  import '../../types-BtMyV38I.js';
@@ -17,6 +17,7 @@ import '../../tts/index.js';
17
17
  import '../../deployer/index.js';
18
18
  import '../../bundler/index.js';
19
19
  import 'hono';
20
+ import 'hono/cors';
20
21
  import 'hono-openapi';
21
22
  import '@opentelemetry/sdk-trace-base';
22
23
 
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
6
- import { e as MastraStorage } from '../base-nVWefprR.cjs';
6
+ import { e as MastraStorage } from '../base-CRsNpPj6.cjs';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -19,6 +19,7 @@ import '../tts/index.cjs';
19
19
  import '../deployer/index.cjs';
20
20
  import '../bundler/index.cjs';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
23
24
 
24
25
  declare function withSpan(options: {
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
6
- import { e as MastraStorage } from '../base-C7f5RDDD.js';
6
+ import { e as MastraStorage } from '../base-D0afZZ9D.js';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -19,6 +19,7 @@ import '../tts/index.js';
19
19
  import '../deployer/index.js';
20
20
  import '../bundler/index.js';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
23
24
 
24
25
  declare function withSpan(options: {
@@ -1,4 +1,4 @@
1
- export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-nVWefprR.cjs';
1
+ export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-CRsNpPj6.cjs';
2
2
  export { isVercelTool } from '../utils.cjs';
3
3
  import 'ai';
4
4
  import '../base-BihKcqDY.cjs';
@@ -19,4 +19,5 @@ import '../tts/index.cjs';
19
19
  import '../deployer/index.cjs';
20
20
  import '../bundler/index.cjs';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
@@ -1,4 +1,4 @@
1
- export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-C7f5RDDD.js';
1
+ export { a5 as CoreTool, n as Tool, i as ToolAction, m as ToolExecutionContext, a4 as VercelTool, a3 as createTool } from '../base-D0afZZ9D.js';
2
2
  export { isVercelTool } from '../utils.js';
3
3
  import 'ai';
4
4
  import '../base-DT2poiVK.js';
@@ -19,4 +19,5 @@ import '../tts/index.js';
19
19
  import '../deployer/index.js';
20
20
  import '../bundler/index.js';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-nVWefprR.cjs';
1
+ import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-CRsNpPj6.cjs';
2
2
  import { CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.cjs';
4
4
  import { MastraVector } from './vector/index.cjs';
@@ -17,6 +17,7 @@ import 'stream';
17
17
  import 'pino';
18
18
  import '@opentelemetry/sdk-trace-base';
19
19
  import 'hono';
20
+ import 'hono/cors';
20
21
  import 'hono-openapi';
21
22
  import './vector/filter/index.cjs';
22
23
 
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-C7f5RDDD.js';
1
+ import { a4 as VercelTool, i as ToolAction, aH as ToolsInput, a as Mastra, aI as MastraPrimitives, l as MastraMemory, a5 as CoreTool, j as Agent, p as Workflow, o as Step, a6 as StepExecutionContext, am as WorkflowContext, aJ as AgentNetwork } from './base-D0afZZ9D.js';
2
2
  import { CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.js';
4
4
  import { MastraVector } from './vector/index.js';
@@ -17,6 +17,7 @@ import 'stream';
17
17
  import 'pino';
18
18
  import '@opentelemetry/sdk-trace-base';
19
19
  import 'hono';
20
+ import 'hono/cors';
20
21
  import 'hono-openapi';
21
22
  import './vector/filter/index.js';
22
23
 
@@ -1,5 +1,5 @@
1
- import { b as MastraVoice } from '../base-nVWefprR.cjs';
2
- export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-nVWefprR.cjs';
1
+ import { b as MastraVoice } from '../base-CRsNpPj6.cjs';
2
+ export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-CRsNpPj6.cjs';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import 'ai';
5
5
  import '../types-BtMyV38I.cjs';
@@ -18,6 +18,7 @@ import '../tts/index.cjs';
18
18
  import '../deployer/index.cjs';
19
19
  import '../bundler/index.cjs';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
22
23
  import '@opentelemetry/sdk-trace-base';
23
24
 
@@ -1,5 +1,5 @@
1
- import { b as MastraVoice } from '../base-C7f5RDDD.js';
2
- export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-C7f5RDDD.js';
1
+ import { b as MastraVoice } from '../base-D0afZZ9D.js';
2
+ export { C as CompositeVoice, d as VoiceConfig, c as VoiceEventMap, V as VoiceEventType } from '../base-D0afZZ9D.js';
3
3
  import '../base-DT2poiVK.js';
4
4
  import 'ai';
5
5
  import '../types-BtMyV38I.js';
@@ -18,6 +18,7 @@ import '../tts/index.js';
18
18
  import '../deployer/index.js';
19
19
  import '../bundler/index.js';
20
20
  import 'hono';
21
+ import 'hono/cors';
21
22
  import 'hono-openapi';
22
23
  import '@opentelemetry/sdk-trace-base';
23
24
 
@@ -1,94 +1,94 @@
1
1
  'use strict';
2
2
 
3
- var chunkENOIN7PM_cjs = require('../chunk-ENOIN7PM.cjs');
3
+ var chunkMP3UIX44_cjs = require('../chunk-MP3UIX44.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Step", {
8
8
  enumerable: true,
9
- get: function () { return chunkENOIN7PM_cjs.Step; }
9
+ get: function () { return chunkMP3UIX44_cjs.Step; }
10
10
  });
11
11
  Object.defineProperty(exports, "WhenConditionReturnValue", {
12
12
  enumerable: true,
13
- get: function () { return chunkENOIN7PM_cjs.WhenConditionReturnValue; }
13
+ get: function () { return chunkMP3UIX44_cjs.WhenConditionReturnValue; }
14
14
  });
15
15
  Object.defineProperty(exports, "Workflow", {
16
16
  enumerable: true,
17
- get: function () { return chunkENOIN7PM_cjs.Workflow; }
17
+ get: function () { return chunkMP3UIX44_cjs.Workflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkENOIN7PM_cjs.agentToStep; }
21
+ get: function () { return chunkMP3UIX44_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "createStep", {
24
24
  enumerable: true,
25
- get: function () { return chunkENOIN7PM_cjs.createStep; }
25
+ get: function () { return chunkMP3UIX44_cjs.createStep; }
26
26
  });
27
27
  Object.defineProperty(exports, "getActivePathsAndStatus", {
28
28
  enumerable: true,
29
- get: function () { return chunkENOIN7PM_cjs.getActivePathsAndStatus; }
29
+ get: function () { return chunkMP3UIX44_cjs.getActivePathsAndStatus; }
30
30
  });
31
31
  Object.defineProperty(exports, "getResultActivePaths", {
32
32
  enumerable: true,
33
- get: function () { return chunkENOIN7PM_cjs.getResultActivePaths; }
33
+ get: function () { return chunkMP3UIX44_cjs.getResultActivePaths; }
34
34
  });
35
35
  Object.defineProperty(exports, "getStepResult", {
36
36
  enumerable: true,
37
- get: function () { return chunkENOIN7PM_cjs.getStepResult; }
37
+ get: function () { return chunkMP3UIX44_cjs.getStepResult; }
38
38
  });
39
39
  Object.defineProperty(exports, "getSuspendedPaths", {
40
40
  enumerable: true,
41
- get: function () { return chunkENOIN7PM_cjs.getSuspendedPaths; }
41
+ get: function () { return chunkMP3UIX44_cjs.getSuspendedPaths; }
42
42
  });
43
43
  Object.defineProperty(exports, "isAgent", {
44
44
  enumerable: true,
45
- get: function () { return chunkENOIN7PM_cjs.isAgent; }
45
+ get: function () { return chunkMP3UIX44_cjs.isAgent; }
46
46
  });
47
47
  Object.defineProperty(exports, "isConditionalKey", {
48
48
  enumerable: true,
49
- get: function () { return chunkENOIN7PM_cjs.isConditionalKey; }
49
+ get: function () { return chunkMP3UIX44_cjs.isConditionalKey; }
50
50
  });
51
51
  Object.defineProperty(exports, "isErrorEvent", {
52
52
  enumerable: true,
53
- get: function () { return chunkENOIN7PM_cjs.isErrorEvent; }
53
+ get: function () { return chunkMP3UIX44_cjs.isErrorEvent; }
54
54
  });
55
55
  Object.defineProperty(exports, "isFinalState", {
56
56
  enumerable: true,
57
- get: function () { return chunkENOIN7PM_cjs.isFinalState; }
57
+ get: function () { return chunkMP3UIX44_cjs.isFinalState; }
58
58
  });
59
59
  Object.defineProperty(exports, "isLimboState", {
60
60
  enumerable: true,
61
- get: function () { return chunkENOIN7PM_cjs.isLimboState; }
61
+ get: function () { return chunkMP3UIX44_cjs.isLimboState; }
62
62
  });
63
63
  Object.defineProperty(exports, "isTransitionEvent", {
64
64
  enumerable: true,
65
- get: function () { return chunkENOIN7PM_cjs.isTransitionEvent; }
65
+ get: function () { return chunkMP3UIX44_cjs.isTransitionEvent; }
66
66
  });
67
67
  Object.defineProperty(exports, "isVariableReference", {
68
68
  enumerable: true,
69
- get: function () { return chunkENOIN7PM_cjs.isVariableReference; }
69
+ get: function () { return chunkMP3UIX44_cjs.isVariableReference; }
70
70
  });
71
71
  Object.defineProperty(exports, "isWorkflow", {
72
72
  enumerable: true,
73
- get: function () { return chunkENOIN7PM_cjs.isWorkflow; }
73
+ get: function () { return chunkMP3UIX44_cjs.isWorkflow; }
74
74
  });
75
75
  Object.defineProperty(exports, "mergeChildValue", {
76
76
  enumerable: true,
77
- get: function () { return chunkENOIN7PM_cjs.mergeChildValue; }
77
+ get: function () { return chunkMP3UIX44_cjs.mergeChildValue; }
78
78
  });
79
79
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
80
80
  enumerable: true,
81
- get: function () { return chunkENOIN7PM_cjs.recursivelyCheckForFinalState; }
81
+ get: function () { return chunkMP3UIX44_cjs.recursivelyCheckForFinalState; }
82
82
  });
83
83
  Object.defineProperty(exports, "resolveVariables", {
84
84
  enumerable: true,
85
- get: function () { return chunkENOIN7PM_cjs.resolveVariables; }
85
+ get: function () { return chunkMP3UIX44_cjs.resolveVariables; }
86
86
  });
87
87
  Object.defineProperty(exports, "updateStepInHierarchy", {
88
88
  enumerable: true,
89
- get: function () { return chunkENOIN7PM_cjs.updateStepInHierarchy; }
89
+ get: function () { return chunkMP3UIX44_cjs.updateStepInHierarchy; }
90
90
  });
91
91
  Object.defineProperty(exports, "workflowToStep", {
92
92
  enumerable: true,
93
- get: function () { return chunkENOIN7PM_cjs.workflowToStep; }
93
+ get: function () { return chunkMP3UIX44_cjs.workflowToStep; }
94
94
  });
@@ -1,5 +1,5 @@
1
- import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-nVWefprR.cjs';
2
- export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-nVWefprR.cjs';
1
+ import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-CRsNpPj6.cjs';
2
+ export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-CRsNpPj6.cjs';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.cjs';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
@@ -19,6 +19,7 @@ import '../tts/index.cjs';
19
19
  import '../deployer/index.cjs';
20
20
  import '../bundler/index.cjs';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
23
24
 
24
25
  declare function isErrorEvent(stateEvent: any): stateEvent is {
@@ -1,5 +1,5 @@
1
- import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-C7f5RDDD.js';
2
- export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-C7f5RDDD.js';
1
+ import { ac as VariableReference, aj as StepResult, o as Step, p as Workflow, j as Agent, am as WorkflowContext, aH as ToolsInput, a as Mastra, a7 as StepAction, al as WorkflowRunResult } from '../base-D0afZZ9D.js';
2
+ export { ae as ActionContext, ad as BaseCondition, as as DependencyCheckOutput, az as ExtractSchemaFromStep, aC as ExtractSchemaType, aA as ExtractStepResult, aD as PathsToStringProps, ap as ResolverFunctionInput, aq as ResolverFunctionOutput, ab as RetryConfig, ah as StepCondition, ai as StepConfig, ag as StepDef, a6 as StepExecutionContext, aa as StepGraph, ay as StepId, aB as StepInputType, a9 as StepNode, at as StepResolverOutput, a8 as StepVariableType, ak as StepsRecord, ar as SubscriberFunctionOutput, af as WhenConditionReturnValue, av as WorkflowActionParams, aw as WorkflowActions, au as WorkflowActors, ao as WorkflowEvent, an as WorkflowLogMessage, q as WorkflowOptions, aE as WorkflowResumeResult, W as WorkflowRunState, ax as WorkflowState, aF as createStep } from '../base-D0afZZ9D.js';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.js';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
@@ -19,6 +19,7 @@ import '../tts/index.js';
19
19
  import '../deployer/index.js';
20
20
  import '../bundler/index.js';
21
21
  import 'hono';
22
+ import 'hono/cors';
22
23
  import 'hono-openapi';
23
24
 
24
25
  declare function isErrorEvent(stateEvent: any): stateEvent is {
@@ -1 +1 @@
1
- export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-SGR6AJWC.js';
1
+ export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-FFOLLSHP.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",