@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,7 +1,7 @@
1
1
  export { Message as AiMessageType } from 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { A as Agent, av as AgentConfig, c5 as AgentGenerateOptions, c4 as AgentMemoryOption, c6 as AgentStreamOptions, c3 as DynamicArgument, bD as MastraLanguageModel, c7 as MastraMessageContentV2, t as MastraMessageV2, c1 as MessageList, T as ToolsInput, c2 as ToolsetsInput } from '../base-D_hcRjcY.cjs';
4
+ export { A as Agent, av as AgentConfig, c5 as AgentGenerateOptions, c4 as AgentMemoryOption, c6 as AgentStreamOptions, c3 as DynamicArgument, bD as MastraLanguageModel, c7 as MastraMessageContentV2, t as MastraMessageV2, c1 as MessageList, T as ToolsInput, c2 as ToolsetsInput } from '../base-B_WEJuiR.cjs';
5
5
  import '../base-DVVTzIQy.cjs';
6
6
  import '../types-Bo1uigWx.cjs';
7
7
  import '../runtime-context/index.cjs';
@@ -1,7 +1,7 @@
1
1
  export { Message as AiMessageType } from 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { A as Agent, av as AgentConfig, c5 as AgentGenerateOptions, c4 as AgentMemoryOption, c6 as AgentStreamOptions, c3 as DynamicArgument, bD as MastraLanguageModel, c7 as MastraMessageContentV2, t as MastraMessageV2, c1 as MessageList, T as ToolsInput, c2 as ToolsetsInput } from '../base-DVaOuGyL.js';
4
+ export { A as Agent, av as AgentConfig, c5 as AgentGenerateOptions, c4 as AgentMemoryOption, c6 as AgentStreamOptions, c3 as DynamicArgument, bD as MastraLanguageModel, c7 as MastraMessageContentV2, t as MastraMessageV2, c1 as MessageList, T as ToolsInput, c2 as ToolsetsInput } from '../base-DnSegjq5.js';
5
5
  import '../base-BbdvunNJ.js';
6
6
  import '../types-Bo1uigWx.js';
7
7
  import '../runtime-context/index.js';
@@ -2746,20 +2746,40 @@ declare class NewAgentNetwork extends MastraBase {
2746
2746
  [x: string]: StepResult<any, any, any, any> | StepResult<unknown, unknown, unknown, unknown>;
2747
2747
  };
2748
2748
  }>;
2749
- loopStream(message: string, { runtimeContext, maxIterations, }: {
2749
+ loopStream(message: string, { runtimeContext, maxIterations, threadId, resourceId, }: {
2750
2750
  runtimeContext?: RuntimeContext;
2751
2751
  maxIterations?: number;
2752
+ threadId?: string;
2753
+ resourceId?: string;
2752
2754
  }): Promise<{
2753
2755
  stream: stream_web.ReadableStream<StreamEvent>;
2754
2756
  getWorkflowState: () => Promise<WorkflowResult<z.ZodObject<{
2755
- text: z.ZodString;
2757
+ task: z.ZodString;
2758
+ resourceId: z.ZodString;
2759
+ resourceType: z.ZodEnum<["agent", "workflow", "none", "tool", "none"]>;
2760
+ prompt: z.ZodString;
2761
+ result: z.ZodString;
2762
+ isComplete: z.ZodOptional<z.ZodBoolean>;
2763
+ completionReason: z.ZodOptional<z.ZodString>;
2756
2764
  iteration: z.ZodNumber;
2757
2765
  }, "strip", z.ZodTypeAny, {
2758
- text: string;
2766
+ prompt: string;
2767
+ resourceId: string;
2768
+ result: string;
2769
+ task: string;
2770
+ resourceType: "none" | "tool" | "workflow" | "agent";
2759
2771
  iteration: number;
2772
+ isComplete?: boolean | undefined;
2773
+ completionReason?: string | undefined;
2760
2774
  }, {
2761
- text: string;
2775
+ prompt: string;
2776
+ resourceId: string;
2777
+ result: string;
2778
+ task: string;
2779
+ resourceType: "none" | "tool" | "workflow" | "agent";
2762
2780
  iteration: number;
2781
+ isComplete?: boolean | undefined;
2782
+ completionReason?: string | undefined;
2763
2783
  }>, Step<string, any, any, any, any, DefaultEngineType>[]>>;
2764
2784
  }>;
2765
2785
  createWorkflow({ runtimeContext }: {
@@ -2800,6 +2820,9 @@ declare class NewAgentNetwork extends MastraBase {
2800
2820
  isComplete: z.ZodOptional<z.ZodBoolean>;
2801
2821
  completionReason: z.ZodOptional<z.ZodString>;
2802
2822
  iteration: z.ZodNumber;
2823
+ threadId: z.ZodOptional<z.ZodString>;
2824
+ threadResourceId: z.ZodOptional<z.ZodString>;
2825
+ isOneOff: z.ZodBoolean;
2803
2826
  }, "strip", z.ZodTypeAny, {
2804
2827
  prompt: string;
2805
2828
  resourceId: string;
@@ -2807,6 +2830,9 @@ declare class NewAgentNetwork extends MastraBase {
2807
2830
  task: string;
2808
2831
  resourceType: "none" | "tool" | "workflow" | "agent";
2809
2832
  iteration: number;
2833
+ isOneOff: boolean;
2834
+ threadId?: string | undefined;
2835
+ threadResourceId?: string | undefined;
2810
2836
  isComplete?: boolean | undefined;
2811
2837
  completionReason?: string | undefined;
2812
2838
  }, {
@@ -2816,35 +2842,38 @@ declare class NewAgentNetwork extends MastraBase {
2816
2842
  task: string;
2817
2843
  resourceType: "none" | "tool" | "workflow" | "agent";
2818
2844
  iteration: number;
2845
+ isOneOff: boolean;
2846
+ threadId?: string | undefined;
2847
+ threadResourceId?: string | undefined;
2819
2848
  isComplete?: boolean | undefined;
2820
2849
  completionReason?: string | undefined;
2821
2850
  }>, z.ZodObject<{
2822
2851
  task: z.ZodString;
2823
2852
  resourceId: z.ZodString;
2824
2853
  resourceType: z.ZodEnum<["agent", "workflow", "none", "tool", "none"]>;
2825
- prompt: z.ZodString;
2826
- result: z.ZodString;
2827
- isComplete: z.ZodOptional<z.ZodBoolean>;
2828
- completionReason: z.ZodOptional<z.ZodString>;
2854
+ result: z.ZodOptional<z.ZodString>;
2829
2855
  iteration: z.ZodNumber;
2856
+ threadId: z.ZodOptional<z.ZodString>;
2857
+ threadResourceId: z.ZodOptional<z.ZodString>;
2858
+ isOneOff: z.ZodBoolean;
2830
2859
  }, "strip", z.ZodTypeAny, {
2831
- prompt: string;
2832
2860
  resourceId: string;
2833
- result: string;
2834
2861
  task: string;
2835
2862
  resourceType: "none" | "tool" | "workflow" | "agent";
2836
2863
  iteration: number;
2837
- isComplete?: boolean | undefined;
2838
- completionReason?: string | undefined;
2864
+ isOneOff: boolean;
2865
+ threadId?: string | undefined;
2866
+ result?: string | undefined;
2867
+ threadResourceId?: string | undefined;
2839
2868
  }, {
2840
- prompt: string;
2841
2869
  resourceId: string;
2842
- result: string;
2843
2870
  task: string;
2844
2871
  resourceType: "none" | "tool" | "workflow" | "agent";
2845
2872
  iteration: number;
2846
- isComplete?: boolean | undefined;
2847
- completionReason?: string | undefined;
2873
+ isOneOff: boolean;
2874
+ threadId?: string | undefined;
2875
+ result?: string | undefined;
2876
+ threadResourceId?: string | undefined;
2848
2877
  }>>;
2849
2878
  generate(message: string, { runtimeContext, threadId, resourceId, }: {
2850
2879
  runtimeContext?: RuntimeContext;
@@ -2871,6 +2900,9 @@ declare class NewAgentNetwork extends MastraBase {
2871
2900
  isComplete: z.ZodOptional<z.ZodBoolean>;
2872
2901
  completionReason: z.ZodOptional<z.ZodString>;
2873
2902
  iteration: z.ZodNumber;
2903
+ threadId: z.ZodOptional<z.ZodString>;
2904
+ threadResourceId: z.ZodOptional<z.ZodString>;
2905
+ isOneOff: z.ZodBoolean;
2874
2906
  }, "strip", z.ZodTypeAny, {
2875
2907
  prompt: string;
2876
2908
  resourceId: string;
@@ -2878,6 +2910,9 @@ declare class NewAgentNetwork extends MastraBase {
2878
2910
  task: string;
2879
2911
  resourceType: "none" | "tool" | "workflow" | "agent";
2880
2912
  iteration: number;
2913
+ isOneOff: boolean;
2914
+ threadId?: string | undefined;
2915
+ threadResourceId?: string | undefined;
2881
2916
  isComplete?: boolean | undefined;
2882
2917
  completionReason?: string | undefined;
2883
2918
  }, {
@@ -2887,6 +2922,9 @@ declare class NewAgentNetwork extends MastraBase {
2887
2922
  task: string;
2888
2923
  resourceType: "none" | "tool" | "workflow" | "agent";
2889
2924
  iteration: number;
2925
+ isOneOff: boolean;
2926
+ threadId?: string | undefined;
2927
+ threadResourceId?: string | undefined;
2890
2928
  isComplete?: boolean | undefined;
2891
2929
  completionReason?: string | undefined;
2892
2930
  }>, Step<string, any, any, any, any, DefaultEngineType>[]>>;
@@ -2746,20 +2746,40 @@ declare class NewAgentNetwork extends MastraBase {
2746
2746
  [x: string]: StepResult<any, any, any, any> | StepResult<unknown, unknown, unknown, unknown>;
2747
2747
  };
2748
2748
  }>;
2749
- loopStream(message: string, { runtimeContext, maxIterations, }: {
2749
+ loopStream(message: string, { runtimeContext, maxIterations, threadId, resourceId, }: {
2750
2750
  runtimeContext?: RuntimeContext;
2751
2751
  maxIterations?: number;
2752
+ threadId?: string;
2753
+ resourceId?: string;
2752
2754
  }): Promise<{
2753
2755
  stream: stream_web.ReadableStream<StreamEvent>;
2754
2756
  getWorkflowState: () => Promise<WorkflowResult<z.ZodObject<{
2755
- text: z.ZodString;
2757
+ task: z.ZodString;
2758
+ resourceId: z.ZodString;
2759
+ resourceType: z.ZodEnum<["agent", "workflow", "none", "tool", "none"]>;
2760
+ prompt: z.ZodString;
2761
+ result: z.ZodString;
2762
+ isComplete: z.ZodOptional<z.ZodBoolean>;
2763
+ completionReason: z.ZodOptional<z.ZodString>;
2756
2764
  iteration: z.ZodNumber;
2757
2765
  }, "strip", z.ZodTypeAny, {
2758
- text: string;
2766
+ prompt: string;
2767
+ resourceId: string;
2768
+ result: string;
2769
+ task: string;
2770
+ resourceType: "none" | "tool" | "workflow" | "agent";
2759
2771
  iteration: number;
2772
+ isComplete?: boolean | undefined;
2773
+ completionReason?: string | undefined;
2760
2774
  }, {
2761
- text: string;
2775
+ prompt: string;
2776
+ resourceId: string;
2777
+ result: string;
2778
+ task: string;
2779
+ resourceType: "none" | "tool" | "workflow" | "agent";
2762
2780
  iteration: number;
2781
+ isComplete?: boolean | undefined;
2782
+ completionReason?: string | undefined;
2763
2783
  }>, Step<string, any, any, any, any, DefaultEngineType>[]>>;
2764
2784
  }>;
2765
2785
  createWorkflow({ runtimeContext }: {
@@ -2800,6 +2820,9 @@ declare class NewAgentNetwork extends MastraBase {
2800
2820
  isComplete: z.ZodOptional<z.ZodBoolean>;
2801
2821
  completionReason: z.ZodOptional<z.ZodString>;
2802
2822
  iteration: z.ZodNumber;
2823
+ threadId: z.ZodOptional<z.ZodString>;
2824
+ threadResourceId: z.ZodOptional<z.ZodString>;
2825
+ isOneOff: z.ZodBoolean;
2803
2826
  }, "strip", z.ZodTypeAny, {
2804
2827
  prompt: string;
2805
2828
  resourceId: string;
@@ -2807,6 +2830,9 @@ declare class NewAgentNetwork extends MastraBase {
2807
2830
  task: string;
2808
2831
  resourceType: "none" | "tool" | "workflow" | "agent";
2809
2832
  iteration: number;
2833
+ isOneOff: boolean;
2834
+ threadId?: string | undefined;
2835
+ threadResourceId?: string | undefined;
2810
2836
  isComplete?: boolean | undefined;
2811
2837
  completionReason?: string | undefined;
2812
2838
  }, {
@@ -2816,35 +2842,38 @@ declare class NewAgentNetwork extends MastraBase {
2816
2842
  task: string;
2817
2843
  resourceType: "none" | "tool" | "workflow" | "agent";
2818
2844
  iteration: number;
2845
+ isOneOff: boolean;
2846
+ threadId?: string | undefined;
2847
+ threadResourceId?: string | undefined;
2819
2848
  isComplete?: boolean | undefined;
2820
2849
  completionReason?: string | undefined;
2821
2850
  }>, z.ZodObject<{
2822
2851
  task: z.ZodString;
2823
2852
  resourceId: z.ZodString;
2824
2853
  resourceType: z.ZodEnum<["agent", "workflow", "none", "tool", "none"]>;
2825
- prompt: z.ZodString;
2826
- result: z.ZodString;
2827
- isComplete: z.ZodOptional<z.ZodBoolean>;
2828
- completionReason: z.ZodOptional<z.ZodString>;
2854
+ result: z.ZodOptional<z.ZodString>;
2829
2855
  iteration: z.ZodNumber;
2856
+ threadId: z.ZodOptional<z.ZodString>;
2857
+ threadResourceId: z.ZodOptional<z.ZodString>;
2858
+ isOneOff: z.ZodBoolean;
2830
2859
  }, "strip", z.ZodTypeAny, {
2831
- prompt: string;
2832
2860
  resourceId: string;
2833
- result: string;
2834
2861
  task: string;
2835
2862
  resourceType: "none" | "tool" | "workflow" | "agent";
2836
2863
  iteration: number;
2837
- isComplete?: boolean | undefined;
2838
- completionReason?: string | undefined;
2864
+ isOneOff: boolean;
2865
+ threadId?: string | undefined;
2866
+ result?: string | undefined;
2867
+ threadResourceId?: string | undefined;
2839
2868
  }, {
2840
- prompt: string;
2841
2869
  resourceId: string;
2842
- result: string;
2843
2870
  task: string;
2844
2871
  resourceType: "none" | "tool" | "workflow" | "agent";
2845
2872
  iteration: number;
2846
- isComplete?: boolean | undefined;
2847
- completionReason?: string | undefined;
2873
+ isOneOff: boolean;
2874
+ threadId?: string | undefined;
2875
+ result?: string | undefined;
2876
+ threadResourceId?: string | undefined;
2848
2877
  }>>;
2849
2878
  generate(message: string, { runtimeContext, threadId, resourceId, }: {
2850
2879
  runtimeContext?: RuntimeContext;
@@ -2871,6 +2900,9 @@ declare class NewAgentNetwork extends MastraBase {
2871
2900
  isComplete: z.ZodOptional<z.ZodBoolean>;
2872
2901
  completionReason: z.ZodOptional<z.ZodString>;
2873
2902
  iteration: z.ZodNumber;
2903
+ threadId: z.ZodOptional<z.ZodString>;
2904
+ threadResourceId: z.ZodOptional<z.ZodString>;
2905
+ isOneOff: z.ZodBoolean;
2874
2906
  }, "strip", z.ZodTypeAny, {
2875
2907
  prompt: string;
2876
2908
  resourceId: string;
@@ -2878,6 +2910,9 @@ declare class NewAgentNetwork extends MastraBase {
2878
2910
  task: string;
2879
2911
  resourceType: "none" | "tool" | "workflow" | "agent";
2880
2912
  iteration: number;
2913
+ isOneOff: boolean;
2914
+ threadId?: string | undefined;
2915
+ threadResourceId?: string | undefined;
2881
2916
  isComplete?: boolean | undefined;
2882
2917
  completionReason?: string | undefined;
2883
2918
  }, {
@@ -2887,6 +2922,9 @@ declare class NewAgentNetwork extends MastraBase {
2887
2922
  task: string;
2888
2923
  resourceType: "none" | "tool" | "workflow" | "agent";
2889
2924
  iteration: number;
2925
+ isOneOff: boolean;
2926
+ threadId?: string | undefined;
2927
+ threadResourceId?: string | undefined;
2890
2928
  isComplete?: boolean | undefined;
2891
2929
  completionReason?: string | undefined;
2892
2930
  }>, Step<string, any, any, any, any, DefaultEngineType>[]>>;
@@ -1615,11 +1615,15 @@ var Workflow = class extends chunkP3Q73CAW_cjs.MastraBase {
1615
1615
  }) {
1616
1616
  this.__registerMastra(mastra);
1617
1617
  const run = resume?.steps?.length ? this.createRun({ runId: resume.runId }) : this.createRun();
1618
+ const unwatchV2 = run.watch((event) => {
1619
+ emitter.emit("nested-watch-v2", event);
1620
+ }, "watch-v2");
1618
1621
  const unwatch = run.watch((event) => {
1619
1622
  emitter.emit("nested-watch", { event, workflowId: this.id, runId: run.runId, isResume: !!resume?.steps?.length });
1620
- });
1623
+ }, "watch");
1621
1624
  const res = resume?.steps?.length ? await run.resume({ resumeData, step: resume.steps, runtimeContext }) : await run.start({ inputData, runtimeContext });
1622
1625
  unwatch();
1626
+ unwatchV2();
1623
1627
  const suspendedSteps = Object.entries(res.steps).filter(([_stepName, stepResult]) => {
1624
1628
  const stepRes = stepResult;
1625
1629
  return stepRes?.status === "suspended";
@@ -1813,14 +1817,8 @@ var Run = class {
1813
1817
  watch(cb, type = "watch") {
1814
1818
  const watchCb = (event) => {
1815
1819
  this.updateState(event.payload);
1816
- if (type !== "watch-v2") {
1817
- cb({ type: event.type, payload: this.getState(), eventTimestamp: event.eventTimestamp });
1818
- }
1820
+ cb({ type: event.type, payload: this.getState(), eventTimestamp: event.eventTimestamp });
1819
1821
  };
1820
- this.emitter.on("watch", watchCb);
1821
- if (type === "watch-v2") {
1822
- this.emitter.on("watch-v2", cb);
1823
- }
1824
1822
  const nestedWatchCb = ({ event, workflowId }) => {
1825
1823
  try {
1826
1824
  const { type: type2, payload, eventTimestamp } = event;
@@ -1845,13 +1843,23 @@ var Run = class {
1845
1843
  console.error(e);
1846
1844
  }
1847
1845
  };
1848
- this.emitter.on("nested-watch", nestedWatchCb);
1846
+ if (type === "watch") {
1847
+ this.emitter.on("watch", watchCb);
1848
+ this.emitter.on("nested-watch", nestedWatchCb);
1849
+ } else if (type === "watch-v2") {
1850
+ this.emitter.on("watch-v2", cb);
1851
+ this.emitter.on("nested-watch-v2", (event) => {
1852
+ this.emitter.emit("watch-v2", event);
1853
+ });
1854
+ }
1849
1855
  return () => {
1850
1856
  if (type === "watch-v2") {
1851
1857
  this.emitter.off("watch-v2", cb);
1858
+ this.emitter.off("nested-watch-v2", nestedWatchCb);
1859
+ } else {
1860
+ this.emitter.off("watch", watchCb);
1861
+ this.emitter.off("nested-watch", nestedWatchCb);
1852
1862
  }
1853
- this.emitter.off("watch", watchCb);
1854
- this.emitter.off("nested-watch", nestedWatchCb);
1855
1863
  };
1856
1864
  }
1857
1865
  async resume(params) {
@@ -1609,11 +1609,15 @@ var Workflow = class extends MastraBase {
1609
1609
  }) {
1610
1610
  this.__registerMastra(mastra);
1611
1611
  const run = resume?.steps?.length ? this.createRun({ runId: resume.runId }) : this.createRun();
1612
+ const unwatchV2 = run.watch((event) => {
1613
+ emitter.emit("nested-watch-v2", event);
1614
+ }, "watch-v2");
1612
1615
  const unwatch = run.watch((event) => {
1613
1616
  emitter.emit("nested-watch", { event, workflowId: this.id, runId: run.runId, isResume: !!resume?.steps?.length });
1614
- });
1617
+ }, "watch");
1615
1618
  const res = resume?.steps?.length ? await run.resume({ resumeData, step: resume.steps, runtimeContext }) : await run.start({ inputData, runtimeContext });
1616
1619
  unwatch();
1620
+ unwatchV2();
1617
1621
  const suspendedSteps = Object.entries(res.steps).filter(([_stepName, stepResult]) => {
1618
1622
  const stepRes = stepResult;
1619
1623
  return stepRes?.status === "suspended";
@@ -1807,14 +1811,8 @@ var Run = class {
1807
1811
  watch(cb, type = "watch") {
1808
1812
  const watchCb = (event) => {
1809
1813
  this.updateState(event.payload);
1810
- if (type !== "watch-v2") {
1811
- cb({ type: event.type, payload: this.getState(), eventTimestamp: event.eventTimestamp });
1812
- }
1814
+ cb({ type: event.type, payload: this.getState(), eventTimestamp: event.eventTimestamp });
1813
1815
  };
1814
- this.emitter.on("watch", watchCb);
1815
- if (type === "watch-v2") {
1816
- this.emitter.on("watch-v2", cb);
1817
- }
1818
1816
  const nestedWatchCb = ({ event, workflowId }) => {
1819
1817
  try {
1820
1818
  const { type: type2, payload, eventTimestamp } = event;
@@ -1839,13 +1837,23 @@ var Run = class {
1839
1837
  console.error(e);
1840
1838
  }
1841
1839
  };
1842
- this.emitter.on("nested-watch", nestedWatchCb);
1840
+ if (type === "watch") {
1841
+ this.emitter.on("watch", watchCb);
1842
+ this.emitter.on("nested-watch", nestedWatchCb);
1843
+ } else if (type === "watch-v2") {
1844
+ this.emitter.on("watch-v2", cb);
1845
+ this.emitter.on("nested-watch-v2", (event) => {
1846
+ this.emitter.emit("watch-v2", event);
1847
+ });
1848
+ }
1843
1849
  return () => {
1844
1850
  if (type === "watch-v2") {
1845
1851
  this.emitter.off("watch-v2", cb);
1852
+ this.emitter.off("nested-watch-v2", nestedWatchCb);
1853
+ } else {
1854
+ this.emitter.off("watch", watchCb);
1855
+ this.emitter.off("nested-watch", nestedWatchCb);
1846
1856
  }
1847
- this.emitter.off("watch", watchCb);
1848
- this.emitter.off("nested-watch", nestedWatchCb);
1849
1857
  };
1850
1858
  }
1851
1859
  async resume(params) {
@@ -1,6 +1,6 @@
1
1
  import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.cjs';
2
2
  export { a as MetricResult } from '../types-Bo1uigWx.cjs';
3
- import { A as Agent } from '../base-D_hcRjcY.cjs';
3
+ import { A as Agent } from '../base-B_WEJuiR.cjs';
4
4
  import 'ai';
5
5
  import '../base-DVVTzIQy.cjs';
6
6
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.js';
2
2
  export { a as MetricResult } from '../types-Bo1uigWx.js';
3
- import { A as Agent } from '../base-DVaOuGyL.js';
3
+ import { A as Agent } from '../base-DnSegjq5.js';
4
4
  import 'ai';
5
5
  import '../base-BbdvunNJ.js';
6
6
  import '@opentelemetry/api';
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkGWFS5DAR_cjs = require('./chunk-GWFS5DAR.cjs');
4
4
  var chunkMP2QBLUJ_cjs = require('./chunk-MP2QBLUJ.cjs');
5
- var chunk42FURHI4_cjs = require('./chunk-42FURHI4.cjs');
5
+ var chunkARLIH6PO_cjs = require('./chunk-ARLIH6PO.cjs');
6
6
  var chunkRG3R4Z7I_cjs = require('./chunk-RG3R4Z7I.cjs');
7
7
  var chunkGF7LQBIM_cjs = require('./chunk-GF7LQBIM.cjs');
8
8
  var chunkF2WMR75C_cjs = require('./chunk-F2WMR75C.cjs');
@@ -101,7 +101,7 @@ var MastraVector2 = class extends chunkMP2QBLUJ_cjs.MastraVector {
101
101
  };
102
102
 
103
103
  // src/workflows/workflow.warning.ts
104
- var Workflow2 = class extends chunk42FURHI4_cjs.Workflow {
104
+ var Workflow2 = class extends chunkARLIH6PO_cjs.Workflow {
105
105
  constructor(args) {
106
106
  super(args);
107
107
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -110,35 +110,35 @@ var Workflow2 = class extends chunk42FURHI4_cjs.Workflow {
110
110
 
111
111
  Object.defineProperty(exports, "DefaultExecutionEngine", {
112
112
  enumerable: true,
113
- get: function () { return chunk42FURHI4_cjs.DefaultExecutionEngine; }
113
+ get: function () { return chunkARLIH6PO_cjs.DefaultExecutionEngine; }
114
114
  });
115
115
  Object.defineProperty(exports, "ExecutionEngine", {
116
116
  enumerable: true,
117
- get: function () { return chunk42FURHI4_cjs.ExecutionEngine; }
117
+ get: function () { return chunkARLIH6PO_cjs.ExecutionEngine; }
118
118
  });
119
119
  Object.defineProperty(exports, "Run", {
120
120
  enumerable: true,
121
- get: function () { return chunk42FURHI4_cjs.Run; }
121
+ get: function () { return chunkARLIH6PO_cjs.Run; }
122
122
  });
123
123
  Object.defineProperty(exports, "cloneStep", {
124
124
  enumerable: true,
125
- get: function () { return chunk42FURHI4_cjs.cloneStep; }
125
+ get: function () { return chunkARLIH6PO_cjs.cloneStep; }
126
126
  });
127
127
  Object.defineProperty(exports, "cloneWorkflow", {
128
128
  enumerable: true,
129
- get: function () { return chunk42FURHI4_cjs.cloneWorkflow; }
129
+ get: function () { return chunkARLIH6PO_cjs.cloneWorkflow; }
130
130
  });
131
131
  Object.defineProperty(exports, "createStep", {
132
132
  enumerable: true,
133
- get: function () { return chunk42FURHI4_cjs.createStep; }
133
+ get: function () { return chunkARLIH6PO_cjs.createStep; }
134
134
  });
135
135
  Object.defineProperty(exports, "createWorkflow", {
136
136
  enumerable: true,
137
- get: function () { return chunk42FURHI4_cjs.createWorkflow; }
137
+ get: function () { return chunkARLIH6PO_cjs.createWorkflow; }
138
138
  });
139
139
  Object.defineProperty(exports, "mapVariable", {
140
140
  enumerable: true,
141
- get: function () { return chunk42FURHI4_cjs.mapVariable; }
141
+ get: function () { return chunkARLIH6PO_cjs.mapVariable; }
142
142
  });
143
143
  Object.defineProperty(exports, "MemoryProcessor", {
144
144
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-Bo1uigWx.cjs';
2
2
  export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
3
- import { c as ToolAction, A as Agent$1, av as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aw as DefaultEngineType, f as Step, e as Workflow$1, ax as WorkflowConfig } from './base-D_hcRjcY.cjs';
4
- export { aG as BaseStructuredOutputType, aX as Config, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, C as CoreTool, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, bt as DynamicMapping, aF as EmbedManyResult, aE as EmbedResult, bl as Emitter, E as EvalRow, bk as ExecuteFunction, bj as ExecutionEngine, bi as ExecutionGraph, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, aK as GenerateReturn, at as InternalCoreTool, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, z as LegacyWorkflowRun, y as LegacyWorkflowRuns, M as Mastra, v as MastraMessageV1, t as MastraMessageV2, a$ as MemoryConfig, b5 as MemoryProcessor, b4 as MemoryProcessorOpts, aZ as MessageResponse, aY as MessageType, aM as OutputType, B as PaginationArgs, P as PaginationInfo, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, ba as SerializedStepFlowEntry, b0 as SharedMemoryConfig, bn as StepFailure, b8 as StepFlowEntry, br as StepResult, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, q as StorageColumn, u as StorageGetMessagesArg, D as StorageGetTracesArg, s as StorageResourceType, r as StorageThreadType, by as StreamEvent, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, b7 as Tool, au as ToolExecutionContext, b1 as TraceType, bx as VariableReference, V as VercelTool, bA as WatchEvent, bg as WorkflowResult, x as WorkflowRun, bC as WorkflowRunState, bz as WorkflowRunStatus, w as WorkflowRuns, a_ as WorkingMemory, b2 as WorkingMemoryFormat, b3 as WorkingMemoryTemplate, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, aW as createMockModel, bc as createStep, as as createTool, be as createWorkflow, bb as mapVariable, b6 as memoryDefaultOptions } from './base-D_hcRjcY.cjs';
3
+ import { c as ToolAction, A as Agent$1, av as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aw as DefaultEngineType, f as Step, e as Workflow$1, ax as WorkflowConfig } from './base-B_WEJuiR.cjs';
4
+ export { aG as BaseStructuredOutputType, aX as Config, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, C as CoreTool, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, bt as DynamicMapping, aF as EmbedManyResult, aE as EmbedResult, bl as Emitter, E as EvalRow, bk as ExecuteFunction, bj as ExecutionEngine, bi as ExecutionGraph, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, aK as GenerateReturn, at as InternalCoreTool, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, z as LegacyWorkflowRun, y as LegacyWorkflowRuns, M as Mastra, v as MastraMessageV1, t as MastraMessageV2, a$ as MemoryConfig, b5 as MemoryProcessor, b4 as MemoryProcessorOpts, aZ as MessageResponse, aY as MessageType, aM as OutputType, B as PaginationArgs, P as PaginationInfo, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, ba as SerializedStepFlowEntry, b0 as SharedMemoryConfig, bn as StepFailure, b8 as StepFlowEntry, br as StepResult, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, q as StorageColumn, u as StorageGetMessagesArg, D as StorageGetTracesArg, s as StorageResourceType, r as StorageThreadType, by as StreamEvent, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, b7 as Tool, au as ToolExecutionContext, b1 as TraceType, bx as VariableReference, V as VercelTool, bA as WatchEvent, bg as WorkflowResult, x as WorkflowRun, bC as WorkflowRunState, bz as WorkflowRunStatus, w as WorkflowRuns, a_ as WorkingMemory, b2 as WorkingMemoryFormat, b3 as WorkingMemoryTemplate, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, aW as createMockModel, bc as createStep, as as createTool, be as createWorkflow, bb as mapVariable, b6 as memoryDefaultOptions } from './base-B_WEJuiR.cjs';
5
5
  import { M as MastraBase$1 } from './base-DVVTzIQy.cjs';
6
6
  export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-DVVTzIQy.cjs';
7
7
  import { R as RegisteredLogger } from './logger-CpL0z5v_.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-Bo1uigWx.js';
2
2
  export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
3
- import { c as ToolAction, A as Agent$1, av as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aw as DefaultEngineType, f as Step, e as Workflow$1, ax as WorkflowConfig } from './base-DVaOuGyL.js';
4
- export { aG as BaseStructuredOutputType, aX as Config, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, C as CoreTool, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, bt as DynamicMapping, aF as EmbedManyResult, aE as EmbedResult, bl as Emitter, E as EvalRow, bk as ExecuteFunction, bj as ExecutionEngine, bi as ExecutionGraph, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, aK as GenerateReturn, at as InternalCoreTool, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, z as LegacyWorkflowRun, y as LegacyWorkflowRuns, M as Mastra, v as MastraMessageV1, t as MastraMessageV2, a$ as MemoryConfig, b5 as MemoryProcessor, b4 as MemoryProcessorOpts, aZ as MessageResponse, aY as MessageType, aM as OutputType, B as PaginationArgs, P as PaginationInfo, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, ba as SerializedStepFlowEntry, b0 as SharedMemoryConfig, bn as StepFailure, b8 as StepFlowEntry, br as StepResult, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, q as StorageColumn, u as StorageGetMessagesArg, D as StorageGetTracesArg, s as StorageResourceType, r as StorageThreadType, by as StreamEvent, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, b7 as Tool, au as ToolExecutionContext, b1 as TraceType, bx as VariableReference, V as VercelTool, bA as WatchEvent, bg as WorkflowResult, x as WorkflowRun, bC as WorkflowRunState, bz as WorkflowRunStatus, w as WorkflowRuns, a_ as WorkingMemory, b2 as WorkingMemoryFormat, b3 as WorkingMemoryTemplate, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, aW as createMockModel, bc as createStep, as as createTool, be as createWorkflow, bb as mapVariable, b6 as memoryDefaultOptions } from './base-DVaOuGyL.js';
3
+ import { c as ToolAction, A as Agent$1, av as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aw as DefaultEngineType, f as Step, e as Workflow$1, ax as WorkflowConfig } from './base-DnSegjq5.js';
4
+ export { aG as BaseStructuredOutputType, aX as Config, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, C as CoreTool, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, bt as DynamicMapping, aF as EmbedManyResult, aE as EmbedResult, bl as Emitter, E as EvalRow, bk as ExecuteFunction, bj as ExecutionEngine, bi as ExecutionGraph, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, aK as GenerateReturn, at as InternalCoreTool, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, z as LegacyWorkflowRun, y as LegacyWorkflowRuns, M as Mastra, v as MastraMessageV1, t as MastraMessageV2, a$ as MemoryConfig, b5 as MemoryProcessor, b4 as MemoryProcessorOpts, aZ as MessageResponse, aY as MessageType, aM as OutputType, B as PaginationArgs, P as PaginationInfo, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, ba as SerializedStepFlowEntry, b0 as SharedMemoryConfig, bn as StepFailure, b8 as StepFlowEntry, br as StepResult, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, q as StorageColumn, u as StorageGetMessagesArg, D as StorageGetTracesArg, s as StorageResourceType, r as StorageThreadType, by as StreamEvent, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, b7 as Tool, au as ToolExecutionContext, b1 as TraceType, bx as VariableReference, V as VercelTool, bA as WatchEvent, bg as WorkflowResult, x as WorkflowRun, bC as WorkflowRunState, bz as WorkflowRunStatus, w as WorkflowRuns, a_ as WorkingMemory, b2 as WorkingMemoryFormat, b3 as WorkingMemoryTemplate, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, aW as createMockModel, bc as createStep, as as createTool, be as createWorkflow, bb as mapVariable, b6 as memoryDefaultOptions } from './base-DnSegjq5.js';
5
5
  import { M as MastraBase$1 } from './base-BbdvunNJ.js';
6
6
  export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-BbdvunNJ.js';
7
7
  import { R as RegisteredLogger } from './logger-DtVDdb81.js';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { MastraTTS } from './chunk-GH2KM66J.js';
2
2
  import { MastraVector } from './chunk-V5D2LIF5.js';
3
- import { Workflow } from './chunk-RJWOQVNO.js';
4
- export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from './chunk-RJWOQVNO.js';
3
+ import { Workflow } from './chunk-N234PKVU.js';
4
+ export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from './chunk-N234PKVU.js';
5
5
  import { MastraMemory } from './chunk-LVQUY7BQ.js';
6
6
  export { MemoryProcessor, memoryDefaultOptions } from './chunk-LVQUY7BQ.js';
7
7
  export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-JQ7TNWEG.js';
@@ -1,5 +1,5 @@
1
1
  import '../base-DVVTzIQy.cjs';
2
- import { e as Workflow, c as ToolAction } from '../base-D_hcRjcY.cjs';
2
+ import { e as Workflow, c as ToolAction } from '../base-B_WEJuiR.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../logger-CpL0z5v_.cjs';
5
5
  import '../error/index.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../base-BbdvunNJ.js';
2
- import { e as Workflow, c as ToolAction } from '../base-DVaOuGyL.js';
2
+ import { e as Workflow, c as ToolAction } from '../base-DnSegjq5.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../logger-DtVDdb81.js';
5
5
  import '../error/index.js';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { aG as BaseStructuredOutputType, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, aF as EmbedManyResult, aE as EmbedResult, aK as GenerateReturn, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, aM as OutputType, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, aW as createMockModel } from '../base-D_hcRjcY.cjs';
4
+ export { aG as BaseStructuredOutputType, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, aF as EmbedManyResult, aE as EmbedResult, aK as GenerateReturn, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, aM as OutputType, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, aW as createMockModel } from '../base-B_WEJuiR.cjs';
5
5
  import '../runtime-context/index.cjs';
6
6
  import '../base-DVVTzIQy.cjs';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { aG as BaseStructuredOutputType, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, aF as EmbedManyResult, aE as EmbedResult, aK as GenerateReturn, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, aM as OutputType, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, aW as createMockModel } from '../base-DVaOuGyL.js';
4
+ export { aG as BaseStructuredOutputType, aB as CoreAssistantMessage, az as CoreMessage, aA as CoreSystemMessage, aD as CoreToolMessage, aC as CoreUserMessage, aQ as DefaultLLMStreamObjectOptions, aP as DefaultLLMStreamOptions, aO as DefaultLLMTextObjectOptions, aN as DefaultLLMTextOptions, aF as EmbedManyResult, aE as EmbedResult, aK as GenerateReturn, aU as LLMInnerStreamOptions, aV as LLMStreamObjectOptions, aT as LLMStreamOptions, aS as LLMTextObjectOptions, aR as LLMTextOptions, ay as LanguageModel, aM as OutputType, aL as StreamReturn, aJ as StructuredOutput, aI as StructuredOutputArrayItem, aH as StructuredOutputType, aW as createMockModel } from '../base-DnSegjq5.js';
5
5
  import '../runtime-context/index.js';
6
6
  import '../base-BbdvunNJ.js';
7
7
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import '../logger-CpL0z5v_.cjs';
2
- export { aX as Config, M as Mastra } from '../base-D_hcRjcY.cjs';
2
+ export { aX as Config, M as Mastra } from '../base-B_WEJuiR.cjs';
3
3
  import '../deployer/index.cjs';
4
4
  import '../vector/index.cjs';
5
5
  import '../base-DVVTzIQy.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../logger-DtVDdb81.js';
2
- export { aX as Config, M as Mastra } from '../base-DVaOuGyL.js';
2
+ export { aX as Config, M as Mastra } from '../base-DnSegjq5.js';
3
3
  import '../deployer/index.js';
4
4
  import '../vector/index.js';
5
5
  import '../base-BbdvunNJ.js';
@@ -1,4 +1,4 @@
1
- export { bR as ArgumentInfo, bV as CommandInfo, bL as ConvertedTool, bW as EnvironmentVariableInfo, h as MCPServerBase, bZ as MCPServerConfig, bO as MCPServerHTTPOptions, bN as MCPServerHonoSSEOptions, bM as MCPServerSSEOptions, c0 as MCPToolType, bT as NamedArgumentInfo, bX as PackageInfo, bS as PositionalArgumentInfo, bY as RemoteInfo, bP as Repository, b$ as ServerDetailInfo, b_ as ServerInfo, bU as SubcommandInfo, bQ as VersionDetail } from '../base-D_hcRjcY.cjs';
1
+ export { bR as ArgumentInfo, bV as CommandInfo, bL as ConvertedTool, bW as EnvironmentVariableInfo, h as MCPServerBase, bZ as MCPServerConfig, bO as MCPServerHTTPOptions, bN as MCPServerHonoSSEOptions, bM as MCPServerSSEOptions, c0 as MCPToolType, bT as NamedArgumentInfo, bX as PackageInfo, bS as PositionalArgumentInfo, bY as RemoteInfo, bP as Repository, b$ as ServerDetailInfo, b_ as ServerInfo, bU as SubcommandInfo, bQ as VersionDetail } from '../base-B_WEJuiR.cjs';
2
2
  import '../base-DVVTzIQy.cjs';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { bR as ArgumentInfo, bV as CommandInfo, bL as ConvertedTool, bW as EnvironmentVariableInfo, h as MCPServerBase, bZ as MCPServerConfig, bO as MCPServerHTTPOptions, bN as MCPServerHonoSSEOptions, bM as MCPServerSSEOptions, c0 as MCPToolType, bT as NamedArgumentInfo, bX as PackageInfo, bS as PositionalArgumentInfo, bY as RemoteInfo, bP as Repository, b$ as ServerDetailInfo, b_ as ServerInfo, bU as SubcommandInfo, bQ as VersionDetail } from '../base-DVaOuGyL.js';
1
+ export { bR as ArgumentInfo, bV as CommandInfo, bL as ConvertedTool, bW as EnvironmentVariableInfo, h as MCPServerBase, bZ as MCPServerConfig, bO as MCPServerHTTPOptions, bN as MCPServerHonoSSEOptions, bM as MCPServerSSEOptions, c0 as MCPToolType, bT as NamedArgumentInfo, bX as PackageInfo, bS as PositionalArgumentInfo, bY as RemoteInfo, bP as Repository, b$ as ServerDetailInfo, b_ as ServerInfo, bU as SubcommandInfo, bQ as VersionDetail } from '../base-DnSegjq5.js';
2
2
  import '../base-BbdvunNJ.js';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -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-D_hcRjcY.cjs';
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-B_WEJuiR.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import '@opentelemetry/api';