@mastra/core 0.10.7 → 0.10.8-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/agent/index.d.cts +1 -1
  2. package/dist/agent/index.d.ts +1 -1
  3. package/dist/{base-D_hcRjcY.d.cts → base-B_WEJuiR.d.cts} +54 -16
  4. package/dist/{base-DVaOuGyL.d.ts → base-DnSegjq5.d.ts} +54 -16
  5. package/dist/{chunk-42FURHI4.cjs → chunk-ARLIH6PO.cjs} +19 -11
  6. package/dist/{chunk-RJWOQVNO.js → chunk-N234PKVU.js} +19 -11
  7. package/dist/eval/index.d.cts +1 -1
  8. package/dist/eval/index.d.ts +1 -1
  9. package/dist/index.cjs +10 -10
  10. package/dist/index.d.cts +2 -2
  11. package/dist/index.d.ts +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/integration/index.d.cts +1 -1
  14. package/dist/integration/index.d.ts +1 -1
  15. package/dist/llm/index.d.cts +1 -1
  16. package/dist/llm/index.d.ts +1 -1
  17. package/dist/mastra/index.d.cts +1 -1
  18. package/dist/mastra/index.d.ts +1 -1
  19. package/dist/mcp/index.d.cts +1 -1
  20. package/dist/mcp/index.d.ts +1 -1
  21. package/dist/memory/index.d.cts +1 -1
  22. package/dist/memory/index.d.ts +1 -1
  23. package/dist/network/index.d.cts +1 -1
  24. package/dist/network/index.d.ts +1 -1
  25. package/dist/network/vNext/index.cjs +67 -18
  26. package/dist/network/vNext/index.d.cts +1 -1
  27. package/dist/network/vNext/index.d.ts +1 -1
  28. package/dist/network/vNext/index.js +57 -8
  29. package/dist/relevance/index.d.cts +1 -1
  30. package/dist/relevance/index.d.ts +1 -1
  31. package/dist/server/index.d.cts +2 -2
  32. package/dist/server/index.d.ts +2 -2
  33. package/dist/storage/index.d.cts +2 -2
  34. package/dist/storage/index.d.ts +2 -2
  35. package/dist/telemetry/index.d.cts +1 -1
  36. package/dist/telemetry/index.d.ts +1 -1
  37. package/dist/tools/index.d.cts +2 -2
  38. package/dist/tools/index.d.ts +2 -2
  39. package/dist/utils.d.cts +1 -1
  40. package/dist/utils.d.ts +1 -1
  41. package/dist/voice/index.d.cts +1 -1
  42. package/dist/voice/index.d.ts +1 -1
  43. package/dist/workflows/index.cjs +10 -10
  44. package/dist/workflows/index.d.cts +2 -2
  45. package/dist/workflows/index.d.ts +2 -2
  46. package/dist/workflows/index.js +1 -1
  47. package/dist/workflows/legacy/index.d.cts +2 -2
  48. package/dist/workflows/legacy/index.d.ts +2 -2
  49. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export { b as MastraMemory, v as MastraMessageV1, t as MastraMessageV2, a$ as MemoryConfig, b5 as MemoryProcessor, b4 as MemoryProcessorOpts, aZ as MessageResponse, aY as MessageType, b0 as SharedMemoryConfig, r as StorageThreadType, b1 as TraceType, a_ as WorkingMemory, b2 as WorkingMemoryFormat, b3 as WorkingMemoryTemplate, b6 as memoryDefaultOptions } from '../base-DVaOuGyL.js';
1
+ export { b as MastraMemory, v as MastraMessageV1, t as MastraMessageV2, a$ as MemoryConfig, b5 as MemoryProcessor, b4 as MemoryProcessorOpts, aZ as MessageResponse, aY as MessageType, b0 as SharedMemoryConfig, r as StorageThreadType, b1 as TraceType, a_ as WorkingMemory, b2 as WorkingMemoryFormat, b3 as WorkingMemoryTemplate, b6 as memoryDefaultOptions } from '../base-DnSegjq5.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { g as AgentNetwork, bE as AgentNetworkConfig } from '../base-D_hcRjcY.cjs';
1
+ export { g as AgentNetwork, bE as AgentNetworkConfig } from '../base-B_WEJuiR.cjs';
2
2
  import 'ai';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { g as AgentNetwork, bE as AgentNetworkConfig } from '../base-DVaOuGyL.js';
1
+ export { g as AgentNetwork, bE as AgentNetworkConfig } from '../base-DnSegjq5.js';
2
2
  import 'ai';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk42FURHI4_cjs = require('../../chunk-42FURHI4.cjs');
3
+ var chunkARLIH6PO_cjs = require('../../chunk-ARLIH6PO.cjs');
4
4
  var chunkBB6DPGIV_cjs = require('../../chunk-BB6DPGIV.cjs');
5
5
  var chunkI27AAGKV_cjs = require('../../chunk-I27AAGKV.cjs');
6
6
  var chunkP3Q73CAW_cjs = require('../../chunk-P3Q73CAW.cjs');
@@ -140,6 +140,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
140
140
  If you have multiple entries that need to be called with a workflow or agent, call them separately with each input.
141
141
  When calling a workflow, the prompt should be a JSON value that corresponds to the input schema of the workflow. The JSON value is stringified.
142
142
  When calling a tool, the prompt should be a JSON value that corresponds to the input schema of the tool. The JSON value is stringified.
143
+ When calling an agent, the prompt should be a text value, like you would call an LLM in a chat interface.
143
144
 
144
145
  Keep in mind that the user only sees the final result of the task. When reviewing completion, you should know that the user will not see the intermediate results.
145
146
  `;
@@ -155,7 +156,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
155
156
  maxIterations
156
157
  }) {
157
158
  const networkWorkflow = this.createWorkflow({ runtimeContext });
158
- const finalStep = chunk42FURHI4_cjs.createStep({
159
+ const finalStep = chunkARLIH6PO_cjs.createStep({
159
160
  id: "final-step",
160
161
  inputSchema: networkWorkflow.outputSchema,
161
162
  outputSchema: networkWorkflow.outputSchema,
@@ -169,7 +170,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
169
170
  return inputData;
170
171
  }
171
172
  });
172
- const mainWorkflow = chunk42FURHI4_cjs.createWorkflow({
173
+ const mainWorkflow = chunkARLIH6PO_cjs.createWorkflow({
173
174
  id: "Agent-Network-Main-Workflow",
174
175
  inputSchema: zod.z.object({
175
176
  iteration: zod.z.number(),
@@ -201,10 +202,12 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
201
202
  }
202
203
  async loopStream(message, {
203
204
  runtimeContext,
204
- maxIterations
205
+ maxIterations,
206
+ threadId,
207
+ resourceId
205
208
  }) {
206
209
  const networkWorkflow = this.createWorkflow({ runtimeContext });
207
- const finalStep = chunk42FURHI4_cjs.createStep({
210
+ const finalStep = chunkARLIH6PO_cjs.createStep({
208
211
  id: "final-step",
209
212
  inputSchema: networkWorkflow.outputSchema,
210
213
  outputSchema: networkWorkflow.outputSchema,
@@ -218,33 +221,63 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
218
221
  return inputData;
219
222
  }
220
223
  });
221
- const mainWorkflow = chunk42FURHI4_cjs.createWorkflow({
224
+ const mainWorkflow = chunkARLIH6PO_cjs.createWorkflow({
222
225
  id: "Agent-Network-Main-Workflow",
223
226
  inputSchema: zod.z.object({
224
227
  iteration: zod.z.number(),
225
228
  task: zod.z.string(),
226
- resourceType: RESOURCE_TYPES
229
+ resourceId: zod.z.string(),
230
+ resourceType: RESOURCE_TYPES,
231
+ result: zod.z.string().optional(),
232
+ threadId: zod.z.string().optional(),
233
+ threadResourceId: zod.z.string().optional(),
234
+ isOneOff: zod.z.boolean()
227
235
  }),
228
236
  outputSchema: zod.z.object({
229
- text: zod.z.string(),
237
+ task: zod.z.string(),
238
+ resourceId: zod.z.string(),
239
+ resourceType: RESOURCE_TYPES,
240
+ prompt: zod.z.string(),
241
+ result: zod.z.string(),
242
+ isComplete: zod.z.boolean().optional(),
243
+ completionReason: zod.z.string().optional(),
230
244
  iteration: zod.z.number()
231
245
  })
232
246
  }).dountil(networkWorkflow, async ({ inputData }) => {
233
247
  return inputData.isComplete || maxIterations && inputData.iteration >= maxIterations;
234
248
  }).then(finalStep).commit();
235
249
  const run = mainWorkflow.createRun();
250
+ const memory = await this.getMemory({ runtimeContext: runtimeContext || new chunkLABUWBKX_cjs.RuntimeContext() });
251
+ await memory?.saveMessages({
252
+ messages: [
253
+ {
254
+ id: crypto.randomUUID(),
255
+ type: "text",
256
+ role: "user",
257
+ content: { parts: [{ type: "text", text: message }], format: 2 },
258
+ createdAt: /* @__PURE__ */ new Date(),
259
+ threadId: threadId || run.runId,
260
+ resourceId: resourceId || this.name
261
+ }
262
+ ],
263
+ format: "v2"
264
+ });
236
265
  return run.stream({
237
266
  inputData: {
238
267
  task: message,
268
+ resourceId: "",
239
269
  resourceType: "none",
240
- iteration: 0
270
+ iteration: 0,
271
+ threadResourceId: resourceId,
272
+ threadId,
273
+ isOneOff: false
241
274
  }
242
275
  });
243
276
  }
244
277
  createWorkflow({ runtimeContext }) {
245
278
  const runId = crypto.randomUUID();
246
279
  const runtimeContextToUse = runtimeContext || new chunkLABUWBKX_cjs.RuntimeContext();
247
- const routingStep = chunk42FURHI4_cjs.createStep({
280
+ const routingStep = chunkARLIH6PO_cjs.createStep({
248
281
  id: "routing-step",
249
282
  inputSchema: zod.z.object({
250
283
  task: zod.z.string(),
@@ -354,7 +387,7 @@ ${completionResult.object.finalResult}` : ""}
354
387
  };
355
388
  }
356
389
  });
357
- const agentStep = chunk42FURHI4_cjs.createStep({
390
+ const agentStep = chunkARLIH6PO_cjs.createStep({
358
391
  id: "agent-step",
359
392
  inputSchema: zod.z.object({
360
393
  task: zod.z.string(),
@@ -413,11 +446,11 @@ ${completionResult.object.finalResult}` : ""}
413
446
  case "step-start":
414
447
  case "step-finish":
415
448
  case "finish":
416
- break;
417
449
  case "tool-call":
418
450
  case "tool-result":
419
451
  case "tool-call-streaming-start":
420
452
  case "tool-call-delta":
453
+ break;
421
454
  case "source":
422
455
  case "file":
423
456
  default:
@@ -452,7 +485,7 @@ ${completionResult.object.finalResult}` : ""}
452
485
  };
453
486
  }
454
487
  });
455
- const workflowStep = chunk42FURHI4_cjs.createStep({
488
+ const workflowStep = chunkARLIH6PO_cjs.createStep({
456
489
  id: "workflow-step",
457
490
  inputSchema: zod.z.object({
458
491
  task: zod.z.string(),
@@ -569,7 +602,7 @@ ${completionResult.object.finalResult}` : ""}
569
602
  };
570
603
  }
571
604
  });
572
- const toolStep = chunk42FURHI4_cjs.createStep({
605
+ const toolStep = chunkARLIH6PO_cjs.createStep({
573
606
  id: "toolStep",
574
607
  inputSchema: zod.z.object({
575
608
  task: zod.z.string(),
@@ -639,7 +672,7 @@ ${completionResult.object.finalResult}` : ""}
639
672
  };
640
673
  }
641
674
  });
642
- const finishStep = chunk42FURHI4_cjs.createStep({
675
+ const finishStep = chunkARLIH6PO_cjs.createStep({
643
676
  id: "finish-step",
644
677
  inputSchema: zod.z.object({
645
678
  task: zod.z.string(),
@@ -666,7 +699,7 @@ ${completionResult.object.finalResult}` : ""}
666
699
  };
667
700
  }
668
701
  });
669
- const networkWorkflow = chunk42FURHI4_cjs.createWorkflow({
702
+ const networkWorkflow = chunkARLIH6PO_cjs.createWorkflow({
670
703
  id: "Agent-Network-Outer-Workflow",
671
704
  inputSchema: zod.z.object({
672
705
  task: zod.z.string(),
@@ -686,9 +719,13 @@ ${completionResult.object.finalResult}` : ""}
686
719
  result: zod.z.string(),
687
720
  isComplete: zod.z.boolean().optional(),
688
721
  completionReason: zod.z.string().optional(),
689
- iteration: zod.z.number()
722
+ iteration: zod.z.number(),
723
+ threadId: zod.z.string().optional(),
724
+ threadResourceId: zod.z.string().optional(),
725
+ isOneOff: zod.z.boolean()
690
726
  })
691
- }).then(routingStep).branch([
727
+ });
728
+ networkWorkflow.then(routingStep).branch([
692
729
  [async ({ inputData }) => !inputData.isComplete && inputData.resourceType === "agent", agentStep],
693
730
  [async ({ inputData }) => !inputData.isComplete && inputData.resourceType === "workflow", workflowStep],
694
731
  [async ({ inputData }) => !inputData.isComplete && inputData.resourceType === "tool", toolStep],
@@ -721,6 +758,18 @@ ${completionResult.object.finalResult}` : ""}
721
758
  iteration: {
722
759
  step: [routingStep, agentStep, workflowStep, toolStep],
723
760
  path: "iteration"
761
+ },
762
+ isOneOff: {
763
+ initData: networkWorkflow,
764
+ path: "isOneOff"
765
+ },
766
+ threadId: {
767
+ initData: networkWorkflow,
768
+ path: "threadId"
769
+ },
770
+ threadResourceId: {
771
+ initData: networkWorkflow,
772
+ path: "threadResourceId"
724
773
  }
725
774
  }).commit();
726
775
  return networkWorkflow;
@@ -1,6 +1,6 @@
1
1
  import 'stream/web';
2
2
  import '../../types-Bo1uigWx.cjs';
3
- export { N as NewAgentNetwork } from '../../base-D_hcRjcY.cjs';
3
+ export { N as NewAgentNetwork } from '../../base-B_WEJuiR.cjs';
4
4
  import 'zod';
5
5
  import '../../base-DVVTzIQy.cjs';
6
6
  import '../../runtime-context/index.cjs';
@@ -1,6 +1,6 @@
1
1
  import 'stream/web';
2
2
  import '../../types-Bo1uigWx.js';
3
- export { N as NewAgentNetwork } from '../../base-DVaOuGyL.js';
3
+ export { N as NewAgentNetwork } from '../../base-DnSegjq5.js';
4
4
  import 'zod';
5
5
  import '../../base-BbdvunNJ.js';
6
6
  import '../../runtime-context/index.js';
@@ -1,4 +1,4 @@
1
- import { createStep, createWorkflow } from '../../chunk-RJWOQVNO.js';
1
+ import { createStep, createWorkflow } from '../../chunk-N234PKVU.js';
2
2
  import { EMITTER_SYMBOL } from '../../chunk-Y7D2JLKS.js';
3
3
  import { Agent } from '../../chunk-SSDOXKZK.js';
4
4
  import { MastraBase } from '../../chunk-5IEKR756.js';
@@ -138,6 +138,7 @@ var NewAgentNetwork = class extends MastraBase {
138
138
  If you have multiple entries that need to be called with a workflow or agent, call them separately with each input.
139
139
  When calling a workflow, the prompt should be a JSON value that corresponds to the input schema of the workflow. The JSON value is stringified.
140
140
  When calling a tool, the prompt should be a JSON value that corresponds to the input schema of the tool. The JSON value is stringified.
141
+ When calling an agent, the prompt should be a text value, like you would call an LLM in a chat interface.
141
142
 
142
143
  Keep in mind that the user only sees the final result of the task. When reviewing completion, you should know that the user will not see the intermediate results.
143
144
  `;
@@ -199,7 +200,9 @@ var NewAgentNetwork = class extends MastraBase {
199
200
  }
200
201
  async loopStream(message, {
201
202
  runtimeContext,
202
- maxIterations
203
+ maxIterations,
204
+ threadId,
205
+ resourceId
203
206
  }) {
204
207
  const networkWorkflow = this.createWorkflow({ runtimeContext });
205
208
  const finalStep = createStep({
@@ -221,21 +224,51 @@ var NewAgentNetwork = class extends MastraBase {
221
224
  inputSchema: z.object({
222
225
  iteration: z.number(),
223
226
  task: z.string(),
224
- resourceType: RESOURCE_TYPES
227
+ resourceId: z.string(),
228
+ resourceType: RESOURCE_TYPES,
229
+ result: z.string().optional(),
230
+ threadId: z.string().optional(),
231
+ threadResourceId: z.string().optional(),
232
+ isOneOff: z.boolean()
225
233
  }),
226
234
  outputSchema: z.object({
227
- text: z.string(),
235
+ task: z.string(),
236
+ resourceId: z.string(),
237
+ resourceType: RESOURCE_TYPES,
238
+ prompt: z.string(),
239
+ result: z.string(),
240
+ isComplete: z.boolean().optional(),
241
+ completionReason: z.string().optional(),
228
242
  iteration: z.number()
229
243
  })
230
244
  }).dountil(networkWorkflow, async ({ inputData }) => {
231
245
  return inputData.isComplete || maxIterations && inputData.iteration >= maxIterations;
232
246
  }).then(finalStep).commit();
233
247
  const run = mainWorkflow.createRun();
248
+ const memory = await this.getMemory({ runtimeContext: runtimeContext || new RuntimeContext() });
249
+ await memory?.saveMessages({
250
+ messages: [
251
+ {
252
+ id: randomUUID(),
253
+ type: "text",
254
+ role: "user",
255
+ content: { parts: [{ type: "text", text: message }], format: 2 },
256
+ createdAt: /* @__PURE__ */ new Date(),
257
+ threadId: threadId || run.runId,
258
+ resourceId: resourceId || this.name
259
+ }
260
+ ],
261
+ format: "v2"
262
+ });
234
263
  return run.stream({
235
264
  inputData: {
236
265
  task: message,
266
+ resourceId: "",
237
267
  resourceType: "none",
238
- iteration: 0
268
+ iteration: 0,
269
+ threadResourceId: resourceId,
270
+ threadId,
271
+ isOneOff: false
239
272
  }
240
273
  });
241
274
  }
@@ -411,11 +444,11 @@ ${completionResult.object.finalResult}` : ""}
411
444
  case "step-start":
412
445
  case "step-finish":
413
446
  case "finish":
414
- break;
415
447
  case "tool-call":
416
448
  case "tool-result":
417
449
  case "tool-call-streaming-start":
418
450
  case "tool-call-delta":
451
+ break;
419
452
  case "source":
420
453
  case "file":
421
454
  default:
@@ -684,9 +717,13 @@ ${completionResult.object.finalResult}` : ""}
684
717
  result: z.string(),
685
718
  isComplete: z.boolean().optional(),
686
719
  completionReason: z.string().optional(),
687
- iteration: z.number()
720
+ iteration: z.number(),
721
+ threadId: z.string().optional(),
722
+ threadResourceId: z.string().optional(),
723
+ isOneOff: z.boolean()
688
724
  })
689
- }).then(routingStep).branch([
725
+ });
726
+ networkWorkflow.then(routingStep).branch([
690
727
  [async ({ inputData }) => !inputData.isComplete && inputData.resourceType === "agent", agentStep],
691
728
  [async ({ inputData }) => !inputData.isComplete && inputData.resourceType === "workflow", workflowStep],
692
729
  [async ({ inputData }) => !inputData.isComplete && inputData.resourceType === "tool", toolStep],
@@ -719,6 +756,18 @@ ${completionResult.object.finalResult}` : ""}
719
756
  iteration: {
720
757
  step: [routingStep, agentStep, workflowStep, toolStep],
721
758
  path: "iteration"
759
+ },
760
+ isOneOff: {
761
+ initData: networkWorkflow,
762
+ path: "isOneOff"
763
+ },
764
+ threadId: {
765
+ initData: networkWorkflow,
766
+ path: "threadId"
767
+ },
768
+ threadResourceId: {
769
+ initData: networkWorkflow,
770
+ path: "threadResourceId"
722
771
  }
723
772
  }).commit();
724
773
  return networkWorkflow;
@@ -1,4 +1,4 @@
1
- import { bD as MastraLanguageModel } from '../base-D_hcRjcY.cjs';
1
+ import { bD as MastraLanguageModel } from '../base-B_WEJuiR.cjs';
2
2
  import '../base-DVVTzIQy.cjs';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { bD as MastraLanguageModel } from '../base-DVaOuGyL.js';
1
+ import { bD as MastraLanguageModel } from '../base-DnSegjq5.js';
2
2
  import '../base-BbdvunNJ.js';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  import { Handler, Context, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-D_hcRjcY.cjs';
4
- export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-D_hcRjcY.cjs';
3
+ import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-B_WEJuiR.cjs';
4
+ export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-B_WEJuiR.cjs';
5
5
  import 'ai';
6
6
  import '../base-DVVTzIQy.cjs';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
1
1
  import { Handler, Context, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-DVaOuGyL.js';
4
- export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-DVaOuGyL.js';
3
+ import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-DnSegjq5.js';
4
+ export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-DnSegjq5.js';
5
5
  import 'ai';
6
6
  import '../base-BbdvunNJ.js';
7
7
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
- import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as StorageResourceType, t as MastraMessageV2, u as StorageGetMessagesArg, v as MastraMessageV1, E as EvalRow, w as WorkflowRuns, x as WorkflowRun, P as PaginationInfo } from '../base-D_hcRjcY.cjs';
2
- export { z as LegacyWorkflowRun, y as LegacyWorkflowRuns, B as PaginationArgs, D as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_RESOURCES, O as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-D_hcRjcY.cjs';
1
+ import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as StorageResourceType, t as MastraMessageV2, u as StorageGetMessagesArg, v as MastraMessageV1, E as EvalRow, w as WorkflowRuns, x as WorkflowRun, P as PaginationInfo } from '../base-B_WEJuiR.cjs';
2
+ export { z as LegacyWorkflowRun, y as LegacyWorkflowRuns, B as PaginationArgs, D as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_RESOURCES, O as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-B_WEJuiR.cjs';
3
3
  import { T as Trace } from '../base-DVVTzIQy.cjs';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as StorageResourceType, t as MastraMessageV2, u as StorageGetMessagesArg, v as MastraMessageV1, E as EvalRow, w as WorkflowRuns, x as WorkflowRun, P as PaginationInfo } from '../base-DVaOuGyL.js';
2
- export { z as LegacyWorkflowRun, y as LegacyWorkflowRuns, B as PaginationArgs, D as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_RESOURCES, O as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-DVaOuGyL.js';
1
+ import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as StorageResourceType, t as MastraMessageV2, u as StorageGetMessagesArg, v as MastraMessageV1, E as EvalRow, w as WorkflowRuns, x as WorkflowRun, P as PaginationInfo } from '../base-DnSegjq5.js';
2
+ export { z as LegacyWorkflowRun, y as LegacyWorkflowRuns, B as PaginationArgs, D as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_RESOURCES, O as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-DnSegjq5.js';
3
3
  import { T as Trace } from '../base-BbdvunNJ.js';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { I as IMastraLogger } from '../logger-CpL0z5v_.cjs';
6
- import { o as MastraStorage } from '../base-D_hcRjcY.cjs';
6
+ import { o as MastraStorage } from '../base-B_WEJuiR.cjs';
7
7
  import '../error/index.cjs';
8
8
  import 'stream';
9
9
  import 'ai';
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { I as IMastraLogger } from '../logger-DtVDdb81.js';
6
- import { o as MastraStorage } from '../base-DVaOuGyL.js';
6
+ import { o as MastraStorage } from '../base-DnSegjq5.js';
7
7
  import '../error/index.js';
8
8
  import 'stream';
9
9
  import 'ai';
@@ -1,5 +1,5 @@
1
- import { V as VercelTool, c as ToolAction } from '../base-D_hcRjcY.cjs';
2
- export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-D_hcRjcY.cjs';
1
+ import { V as VercelTool, c as ToolAction } from '../base-B_WEJuiR.cjs';
2
+ export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-B_WEJuiR.cjs';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { V as VercelTool, c as ToolAction } from '../base-DVaOuGyL.js';
2
- export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-DVaOuGyL.js';
1
+ import { V as VercelTool, c as ToolAction } from '../base-DnSegjq5.js';
2
+ export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-DnSegjq5.js';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import 'ai';
5
5
  import 'zod';
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-D_hcRjcY.cjs';
1
+ import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-B_WEJuiR.cjs';
2
2
  import { LanguageModelV1, CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.cjs';
4
4
  import { MastraVector } from './vector/index.cjs';
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-DVaOuGyL.js';
1
+ import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-DnSegjq5.js';
2
2
  import { LanguageModelV1, CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.js';
4
4
  import { MastraVector } from './vector/index.js';
@@ -1,4 +1,4 @@
1
- export { bJ as CompositeVoice, bK as DefaultVoice, bI as MastraVoice, bH as VoiceConfig, bG as VoiceEventMap, bF as VoiceEventType } from '../base-D_hcRjcY.cjs';
1
+ export { bJ as CompositeVoice, bK as DefaultVoice, bI as MastraVoice, bH as VoiceConfig, bG as VoiceEventMap, bF as VoiceEventType } from '../base-B_WEJuiR.cjs';
2
2
  import 'ai';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { bJ as CompositeVoice, bK as DefaultVoice, bI as MastraVoice, bH as VoiceConfig, bG as VoiceEventMap, bF as VoiceEventType } from '../base-DVaOuGyL.js';
1
+ export { bJ as CompositeVoice, bK as DefaultVoice, bI as MastraVoice, bH as VoiceConfig, bG as VoiceEventMap, bF as VoiceEventType } from '../base-DnSegjq5.js';
2
2
  import 'ai';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import '@opentelemetry/api';
@@ -1,42 +1,42 @@
1
1
  'use strict';
2
2
 
3
- var chunk42FURHI4_cjs = require('../chunk-42FURHI4.cjs');
3
+ var chunkARLIH6PO_cjs = require('../chunk-ARLIH6PO.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DefaultExecutionEngine", {
8
8
  enumerable: true,
9
- get: function () { return chunk42FURHI4_cjs.DefaultExecutionEngine; }
9
+ get: function () { return chunkARLIH6PO_cjs.DefaultExecutionEngine; }
10
10
  });
11
11
  Object.defineProperty(exports, "ExecutionEngine", {
12
12
  enumerable: true,
13
- get: function () { return chunk42FURHI4_cjs.ExecutionEngine; }
13
+ get: function () { return chunkARLIH6PO_cjs.ExecutionEngine; }
14
14
  });
15
15
  Object.defineProperty(exports, "Run", {
16
16
  enumerable: true,
17
- get: function () { return chunk42FURHI4_cjs.Run; }
17
+ get: function () { return chunkARLIH6PO_cjs.Run; }
18
18
  });
19
19
  Object.defineProperty(exports, "Workflow", {
20
20
  enumerable: true,
21
- get: function () { return chunk42FURHI4_cjs.Workflow; }
21
+ get: function () { return chunkARLIH6PO_cjs.Workflow; }
22
22
  });
23
23
  Object.defineProperty(exports, "cloneStep", {
24
24
  enumerable: true,
25
- get: function () { return chunk42FURHI4_cjs.cloneStep; }
25
+ get: function () { return chunkARLIH6PO_cjs.cloneStep; }
26
26
  });
27
27
  Object.defineProperty(exports, "cloneWorkflow", {
28
28
  enumerable: true,
29
- get: function () { return chunk42FURHI4_cjs.cloneWorkflow; }
29
+ get: function () { return chunkARLIH6PO_cjs.cloneWorkflow; }
30
30
  });
31
31
  Object.defineProperty(exports, "createStep", {
32
32
  enumerable: true,
33
- get: function () { return chunk42FURHI4_cjs.createStep; }
33
+ get: function () { return chunkARLIH6PO_cjs.createStep; }
34
34
  });
35
35
  Object.defineProperty(exports, "createWorkflow", {
36
36
  enumerable: true,
37
- get: function () { return chunk42FURHI4_cjs.createWorkflow; }
37
+ get: function () { return chunkARLIH6PO_cjs.createWorkflow; }
38
38
  });
39
39
  Object.defineProperty(exports, "mapVariable", {
40
40
  enumerable: true,
41
- get: function () { return chunk42FURHI4_cjs.mapVariable; }
41
+ get: function () { return chunkARLIH6PO_cjs.mapVariable; }
42
42
  });
@@ -1,5 +1,5 @@
1
- import { bj as ExecutionEngine, bl as Emitter, br as StepResult, bi as ExecutionGraph, ba as SerializedStepFlowEntry, b8 as StepFlowEntry, f as Step, bk as ExecuteFunction, aw as DefaultEngineType } from '../base-D_hcRjcY.cjs';
2
- export { bt as DynamicMapping, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, bn as StepFailure, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, by as StreamEvent, bx as VariableReference, bA as WatchEvent, e as Workflow, ax as WorkflowConfig, bg as WorkflowResult, bC as WorkflowRunState, bz as WorkflowRunStatus, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, bc as createStep, be as createWorkflow, bb as mapVariable } from '../base-D_hcRjcY.cjs';
1
+ import { bj as ExecutionEngine, bl as Emitter, br as StepResult, bi as ExecutionGraph, ba as SerializedStepFlowEntry, b8 as StepFlowEntry, f as Step, bk as ExecuteFunction, aw as DefaultEngineType } from '../base-B_WEJuiR.cjs';
2
+ export { bt as DynamicMapping, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, bn as StepFailure, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, by as StreamEvent, bx as VariableReference, bA as WatchEvent, e as Workflow, ax as WorkflowConfig, bg as WorkflowResult, bC as WorkflowRunState, bz as WorkflowRunStatus, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, bc as createStep, be as createWorkflow, bb as mapVariable } from '../base-B_WEJuiR.cjs';
3
3
  import { Span } from '@opentelemetry/api';
4
4
  import { RuntimeContext } from '../runtime-context/index.cjs';
5
5
  import 'ai';
@@ -1,5 +1,5 @@
1
- import { bj as ExecutionEngine, bl as Emitter, br as StepResult, bi as ExecutionGraph, ba as SerializedStepFlowEntry, b8 as StepFlowEntry, f as Step, bk as ExecuteFunction, aw as DefaultEngineType } from '../base-DVaOuGyL.js';
2
- export { bt as DynamicMapping, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, bn as StepFailure, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, by as StreamEvent, bx as VariableReference, bA as WatchEvent, e as Workflow, ax as WorkflowConfig, bg as WorkflowResult, bC as WorkflowRunState, bz as WorkflowRunStatus, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, bc as createStep, be as createWorkflow, bb as mapVariable } from '../base-DVaOuGyL.js';
1
+ import { bj as ExecutionEngine, bl as Emitter, br as StepResult, bi as ExecutionGraph, ba as SerializedStepFlowEntry, b8 as StepFlowEntry, f as Step, bk as ExecuteFunction, aw as DefaultEngineType } from '../base-DnSegjq5.js';
2
+ export { bt as DynamicMapping, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, bn as StepFailure, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, by as StreamEvent, bx as VariableReference, bA as WatchEvent, e as Workflow, ax as WorkflowConfig, bg as WorkflowResult, bC as WorkflowRunState, bz as WorkflowRunStatus, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, bc as createStep, be as createWorkflow, bb as mapVariable } from '../base-DnSegjq5.js';
3
3
  import { Span } from '@opentelemetry/api';
4
4
  import { RuntimeContext } from '../runtime-context/index.js';
5
5
  import 'ai';
@@ -1 +1 @@
1
- export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-RJWOQVNO.js';
1
+ export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-N234PKVU.js';
@@ -1,5 +1,5 @@
1
- import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-D_hcRjcY.cjs';
2
- export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-D_hcRjcY.cjs';
1
+ import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-B_WEJuiR.cjs';
2
+ export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-B_WEJuiR.cjs';
3
3
  import { z } from 'zod';
4
4
  import { M as Metric } from '../../types-Bo1uigWx.cjs';
5
5
  import { I as IMastraLogger } from '../../logger-CpL0z5v_.cjs';
@@ -1,5 +1,5 @@
1
- import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-DVaOuGyL.js';
2
- export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-DVaOuGyL.js';
1
+ import { Q as VariableReference, R as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, U as StepAction, X as LegacyWorkflowRunResult } from '../../base-DnSegjq5.js';
2
+ export { a2 as ActionContext, a1 as BaseCondition, ad as DependencyCheckOutput, ak as ExtractSchemaFromStep, an as ExtractSchemaType, al as ExtractStepResult, ap as LegacyWorkflowRunState, ai as LegacyWorkflowState, ao as PathsToStringProps, aa as ResolverFunctionInput, ab as ResolverFunctionOutput, a0 as RetryConfig, a5 as StepCondition, a6 as StepConfig, a4 as StepDef, S as StepExecutionContext, $ as StepGraph, aj as StepId, am as StepInputType, _ as StepNode, ae as StepResolverOutput, Z as StepVariableType, a7 as StepsRecord, ac as SubscriberFunctionOutput, a3 as WhenConditionReturnValue, ag as WorkflowActionParams, ah as WorkflowActions, af as WorkflowActors, a9 as WorkflowEvent, a8 as WorkflowLogMessage, Y as WorkflowOptions, aq as WorkflowResumeResult } from '../../base-DnSegjq5.js';
3
3
  import { z } from 'zod';
4
4
  import { M as Metric } from '../../types-Bo1uigWx.js';
5
5
  import { I as IMastraLogger } from '../../logger-DtVDdb81.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.10.7",
3
+ "version": "0.10.8-alpha.0",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",