@mastra/core 0.6.3 → 0.6.4-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 (55) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-CbMRVSw8.d.ts → base-CMQiCwHG.d.ts} +5 -4
  6. package/dist/{base-DsOQiX2q.d.cts → base-DbCjWM67.d.cts} +5 -4
  7. package/dist/{chunk-75XZXEUM.cjs → chunk-5BKWVGKC.cjs} +19 -4
  8. package/dist/{chunk-S7PRIZBF.js → chunk-5J2V6T6D.js} +2 -1
  9. package/dist/{chunk-ZG5FKEL2.cjs → chunk-7BVC5JCJ.cjs} +2 -2
  10. package/dist/{chunk-F6KZ3CUF.js → chunk-F6HJG4BI.js} +1 -1
  11. package/dist/{chunk-DW4X6TXX.js → chunk-SEYVSQ4I.js} +19 -4
  12. package/dist/{chunk-YW6NIHPF.cjs → chunk-VTVNTJAD.cjs} +2 -1
  13. package/dist/eval/index.d.cts +1 -1
  14. package/dist/eval/index.d.ts +1 -1
  15. package/dist/index.cjs +25 -25
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +5 -5
  19. package/dist/integration/index.d.cts +1 -1
  20. package/dist/integration/index.d.ts +1 -1
  21. package/dist/llm/index.d.cts +1 -1
  22. package/dist/llm/index.d.ts +1 -1
  23. package/dist/mastra/index.cjs +2 -2
  24. package/dist/mastra/index.d.cts +1 -1
  25. package/dist/mastra/index.d.ts +1 -1
  26. package/dist/mastra/index.js +1 -1
  27. package/dist/memory/index.d.cts +1 -1
  28. package/dist/memory/index.d.ts +1 -1
  29. package/dist/network/index.cjs +2 -2
  30. package/dist/network/index.d.cts +1 -1
  31. package/dist/network/index.d.ts +1 -1
  32. package/dist/network/index.js +1 -1
  33. package/dist/relevance/index.cjs +4 -4
  34. package/dist/relevance/index.d.cts +1 -1
  35. package/dist/relevance/index.d.ts +1 -1
  36. package/dist/relevance/index.js +1 -1
  37. package/dist/storage/index.d.cts +1 -1
  38. package/dist/storage/index.d.ts +1 -1
  39. package/dist/storage/libsql/index.d.cts +1 -1
  40. package/dist/storage/libsql/index.d.ts +1 -1
  41. package/dist/telemetry/index.d.cts +1 -1
  42. package/dist/telemetry/index.d.ts +1 -1
  43. package/dist/tools/index.d.cts +1 -1
  44. package/dist/tools/index.d.ts +1 -1
  45. package/dist/utils.d.cts +1 -1
  46. package/dist/utils.d.ts +1 -1
  47. package/dist/voice/index.d.cts +1 -1
  48. package/dist/voice/index.d.ts +1 -1
  49. package/dist/workflows/index.cjs +17 -17
  50. package/dist/workflows/index.d.cts +2 -2
  51. package/dist/workflows/index.d.ts +2 -2
  52. package/dist/workflows/index.js +1 -1
  53. package/package.json +1 -1
  54. package/dist/{chunk-LHUFN2BG.cjs → chunk-YXJQFZOW.cjs} +1 -1
  55. package/dist/{chunk-U6V76AAB.js → chunk-ZBKJDQPM.js} +1 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk75XZXEUM_cjs = require('../chunk-75XZXEUM.cjs');
3
+ var chunk5BKWVGKC_cjs = require('../chunk-5BKWVGKC.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Agent", {
8
8
  enumerable: true,
9
- get: function () { return chunk75XZXEUM_cjs.Agent; }
9
+ get: function () { return chunk5BKWVGKC_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 { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-DsOQiX2q.cjs';
4
+ export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-DbCjWM67.cjs';
5
5
  import '../base-ObPJ-w8K.cjs';
6
6
  import '../types-CwTG2XyQ.cjs';
7
7
  import 'sift';
@@ -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, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-CbMRVSw8.js';
4
+ export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-CMQiCwHG.js';
5
5
  import '../base-Cmunaaxb.js';
6
6
  import '../types-CwTG2XyQ.js';
7
7
  import 'sift';
@@ -1 +1 @@
1
- export { Agent } from '../chunk-DW4X6TXX.js';
1
+ export { Agent } from '../chunk-SEYVSQ4I.js';
@@ -1587,6 +1587,7 @@ declare class MastraLLMBase extends MastraBase {
1587
1587
  getModel(): ai.LanguageModelV1;
1588
1588
  convertToMessages(messages: string | string[] | CoreMessage$1[]): CoreMessage$1[];
1589
1589
  __registerPrimitives(p: MastraPrimitives): void;
1590
+ __registerMastra(p: Mastra): void;
1590
1591
  __text<Z extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextOptions<Z>): Promise<GenerateTextResult<any, any>>;
1591
1592
  __textObject<T extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextObjectOptions<T>): Promise<GenerateObjectResult<T>>;
1592
1593
  generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], options?: LLMStreamOptions<Z>): Promise<GenerateReturn<Z>>;
@@ -1681,22 +1682,22 @@ declare class Agent<TTools extends ToolsInput = ToolsInput, TMetrics extends Rec
1681
1682
  outputText: string;
1682
1683
  }) => Promise<void>;
1683
1684
  };
1684
- generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & {
1685
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & {
1685
1686
  output?: never;
1686
1687
  experimental_output?: never;
1687
1688
  }): Promise<GenerateTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
1688
- generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & ({
1689
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & ({
1689
1690
  output: Z;
1690
1691
  experimental_output?: never;
1691
1692
  } | {
1692
1693
  experimental_output: Z;
1693
1694
  output?: never;
1694
1695
  })): Promise<GenerateObjectResult<Z extends ZodSchema ? z.infer<Z> : unknown>>;
1695
- stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & {
1696
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & {
1696
1697
  output?: never;
1697
1698
  experimental_output?: never;
1698
1699
  }): Promise<StreamTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
1699
- stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & ({
1700
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & ({
1700
1701
  output: Z;
1701
1702
  experimental_output?: never;
1702
1703
  } | {
@@ -1587,6 +1587,7 @@ declare class MastraLLMBase extends MastraBase {
1587
1587
  getModel(): ai.LanguageModelV1;
1588
1588
  convertToMessages(messages: string | string[] | CoreMessage$1[]): CoreMessage$1[];
1589
1589
  __registerPrimitives(p: MastraPrimitives): void;
1590
+ __registerMastra(p: Mastra): void;
1590
1591
  __text<Z extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextOptions<Z>): Promise<GenerateTextResult<any, any>>;
1591
1592
  __textObject<T extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextObjectOptions<T>): Promise<GenerateObjectResult<T>>;
1592
1593
  generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], options?: LLMStreamOptions<Z>): Promise<GenerateReturn<Z>>;
@@ -1681,22 +1682,22 @@ declare class Agent<TTools extends ToolsInput = ToolsInput, TMetrics extends Rec
1681
1682
  outputText: string;
1682
1683
  }) => Promise<void>;
1683
1684
  };
1684
- generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & {
1685
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & {
1685
1686
  output?: never;
1686
1687
  experimental_output?: never;
1687
1688
  }): Promise<GenerateTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
1688
- generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & ({
1689
+ generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & ({
1689
1690
  output: Z;
1690
1691
  experimental_output?: never;
1691
1692
  } | {
1692
1693
  experimental_output: Z;
1693
1694
  output?: never;
1694
1695
  })): Promise<GenerateObjectResult<Z extends ZodSchema ? z.infer<Z> : unknown>>;
1695
- stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & {
1696
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & {
1696
1697
  output?: never;
1697
1698
  experimental_output?: never;
1698
1699
  }): Promise<StreamTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
1699
- stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & ({
1700
+ stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & ({
1700
1701
  output: Z;
1701
1702
  experimental_output?: never;
1702
1703
  } | {
@@ -58,6 +58,8 @@ var MastraLLMBase = class extends chunkPL7PVTGF_cjs.MastraBase {
58
58
  if (p.logger) {
59
59
  this.__setLogger(p.logger);
60
60
  }
61
+ }
62
+ __registerMastra(p) {
61
63
  this.#mastra = p;
62
64
  }
63
65
  async __text(input) {
@@ -113,8 +115,8 @@ var MastraLLM = class extends MastraLLMBase {
113
115
  this.#model = model;
114
116
  if (mastra) {
115
117
  this.#mastra = mastra;
116
- if (mastra.logger) {
117
- this.__setLogger(mastra.logger);
118
+ if (mastra.getLogger()) {
119
+ this.__setLogger(mastra.getLogger());
118
120
  }
119
121
  }
120
122
  }
@@ -125,6 +127,8 @@ var MastraLLM = class extends MastraLLMBase {
125
127
  if (p.logger) {
126
128
  this.__setLogger(p.logger);
127
129
  }
130
+ }
131
+ __registerMastra(p) {
128
132
  this.#mastra = p;
129
133
  }
130
134
  getProvider() {
@@ -144,6 +148,14 @@ var MastraLLM = class extends MastraLLMBase {
144
148
  memory
145
149
  } = {}) {
146
150
  this.logger.debug("Starting tool conversion for LLM");
151
+ let mastraProxy = void 0;
152
+ const logger = this.logger;
153
+ if (this.#mastra) {
154
+ mastraProxy = chunkWSMI66XC_cjs.createMastraProxy({
155
+ mastra: this.#mastra,
156
+ logger
157
+ });
158
+ }
147
159
  const converted = Object.entries(tools || {}).reduce((memo, value) => {
148
160
  const k = value[0];
149
161
  const tool = value[1];
@@ -155,7 +167,7 @@ var MastraLLM = class extends MastraLLMBase {
155
167
  resourceId,
156
168
  logger: this.logger,
157
169
  memory,
158
- mastra: this.#mastra
170
+ mastra: mastraProxy
159
171
  };
160
172
  memo[k] = chunkWSMI66XC_cjs.makeCoreTool(tool, options);
161
173
  }
@@ -629,7 +641,8 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
629
641
  throw new Error(`LanguageModel is required to create an Agent. Please provide the 'model'.`);
630
642
  }
631
643
  this.llm = new MastraLLM({
632
- model: config.model
644
+ model: config.model,
645
+ mastra: config.mastra
633
646
  });
634
647
  this.tools = {};
635
648
  this.metrics = {};
@@ -638,6 +651,7 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
638
651
  this.tools = chunkWSMI66XC_cjs.ensureToolProperties(config.tools);
639
652
  }
640
653
  if (config.mastra) {
654
+ this.__registerMastra(config.mastra);
641
655
  this.__registerPrimitives({
642
656
  telemetry: config.mastra.getTelemetry(),
643
657
  logger: config.mastra.getLogger()
@@ -690,6 +704,7 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
690
704
  }
691
705
  __registerMastra(mastra) {
692
706
  this.#mastra = mastra;
707
+ this.llm.__registerMastra(mastra);
693
708
  }
694
709
  /**
695
710
  * Set the concrete tools for the agent
@@ -1995,7 +1995,8 @@ var Workflow = class extends MastraBase {
1995
1995
  if (activeRun) {
1996
1996
  return activeRun.resume({ stepId, context: resumeContext });
1997
1997
  }
1998
- throw new Error(`Workflow run ${runId} not found`);
1998
+ const run = this.createRun({ runId });
1999
+ return run.resume({ stepId, context: resumeContext });
1999
2000
  }
2000
2001
  watch(onTransition) {
2001
2002
  this.logger.warn(`Please use 'watch' on the 'createRun' call instead, watch is deprecated`);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk75XZXEUM_cjs = require('./chunk-75XZXEUM.cjs');
3
+ var chunk5BKWVGKC_cjs = require('./chunk-5BKWVGKC.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 chunk75XZXEUM_cjs.Agent({
41
+ this.agent = new chunk5BKWVGKC_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.
@@ -1,4 +1,4 @@
1
- import { Agent } from './chunk-DW4X6TXX.js';
1
+ import { Agent } from './chunk-SEYVSQ4I.js';
2
2
  import { CohereClient } from 'cohere-ai';
3
3
 
4
4
  var CohereRelevanceScorer = class {
@@ -56,6 +56,8 @@ var MastraLLMBase = class extends MastraBase {
56
56
  if (p.logger) {
57
57
  this.__setLogger(p.logger);
58
58
  }
59
+ }
60
+ __registerMastra(p) {
59
61
  this.#mastra = p;
60
62
  }
61
63
  async __text(input) {
@@ -111,8 +113,8 @@ var MastraLLM = class extends MastraLLMBase {
111
113
  this.#model = model;
112
114
  if (mastra) {
113
115
  this.#mastra = mastra;
114
- if (mastra.logger) {
115
- this.__setLogger(mastra.logger);
116
+ if (mastra.getLogger()) {
117
+ this.__setLogger(mastra.getLogger());
116
118
  }
117
119
  }
118
120
  }
@@ -123,6 +125,8 @@ var MastraLLM = class extends MastraLLMBase {
123
125
  if (p.logger) {
124
126
  this.__setLogger(p.logger);
125
127
  }
128
+ }
129
+ __registerMastra(p) {
126
130
  this.#mastra = p;
127
131
  }
128
132
  getProvider() {
@@ -142,6 +146,14 @@ var MastraLLM = class extends MastraLLMBase {
142
146
  memory
143
147
  } = {}) {
144
148
  this.logger.debug("Starting tool conversion for LLM");
149
+ let mastraProxy = void 0;
150
+ const logger = this.logger;
151
+ if (this.#mastra) {
152
+ mastraProxy = createMastraProxy({
153
+ mastra: this.#mastra,
154
+ logger
155
+ });
156
+ }
145
157
  const converted = Object.entries(tools || {}).reduce((memo, value) => {
146
158
  const k = value[0];
147
159
  const tool = value[1];
@@ -153,7 +165,7 @@ var MastraLLM = class extends MastraLLMBase {
153
165
  resourceId,
154
166
  logger: this.logger,
155
167
  memory,
156
- mastra: this.#mastra
168
+ mastra: mastraProxy
157
169
  };
158
170
  memo[k] = makeCoreTool(tool, options);
159
171
  }
@@ -627,7 +639,8 @@ var Agent = class extends (_a = MastraBase) {
627
639
  throw new Error(`LanguageModel is required to create an Agent. Please provide the 'model'.`);
628
640
  }
629
641
  this.llm = new MastraLLM({
630
- model: config.model
642
+ model: config.model,
643
+ mastra: config.mastra
631
644
  });
632
645
  this.tools = {};
633
646
  this.metrics = {};
@@ -636,6 +649,7 @@ var Agent = class extends (_a = MastraBase) {
636
649
  this.tools = ensureToolProperties(config.tools);
637
650
  }
638
651
  if (config.mastra) {
652
+ this.__registerMastra(config.mastra);
639
653
  this.__registerPrimitives({
640
654
  telemetry: config.mastra.getTelemetry(),
641
655
  logger: config.mastra.getLogger()
@@ -688,6 +702,7 @@ var Agent = class extends (_a = MastraBase) {
688
702
  }
689
703
  __registerMastra(mastra) {
690
704
  this.#mastra = mastra;
705
+ this.llm.__registerMastra(mastra);
691
706
  }
692
707
  /**
693
708
  * Set the concrete tools for the agent
@@ -2002,7 +2002,8 @@ var Workflow = class extends chunkPL7PVTGF_cjs.MastraBase {
2002
2002
  if (activeRun) {
2003
2003
  return activeRun.resume({ stepId, context: resumeContext });
2004
2004
  }
2005
- throw new Error(`Workflow run ${runId} not found`);
2005
+ const run = this.createRun({ runId });
2006
+ return run.resume({ stepId, context: resumeContext });
2006
2007
  }
2007
2008
  watch(onTransition) {
2008
2009
  this.logger.warn(`Please use 'watch' on the 'createRun' call instead, watch is deprecated`);
@@ -1,5 +1,5 @@
1
1
  import { M as Metric, T as TestInfo, a as MetricResult } from '../types-CwTG2XyQ.cjs';
2
- import { A as Agent } from '../base-DsOQiX2q.cjs';
2
+ import { A as Agent } from '../base-DbCjWM67.cjs';
3
3
  import 'ai';
4
4
  import '../base-ObPJ-w8K.cjs';
5
5
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import { M as Metric, T as TestInfo, a as MetricResult } from '../types-CwTG2XyQ.js';
2
- import { A as Agent } from '../base-CbMRVSw8.js';
2
+ import { A as Agent } from '../base-CMQiCwHG.js';
3
3
  import 'ai';
4
4
  import '../base-Cmunaaxb.js';
5
5
  import '@opentelemetry/api';
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4PYORXWM_cjs = require('./chunk-4PYORXWM.cjs');
4
- var chunkYW6NIHPF_cjs = require('./chunk-YW6NIHPF.cjs');
4
+ var chunkVTVNTJAD_cjs = require('./chunk-VTVNTJAD.cjs');
5
5
  var chunkXLSROQ26_cjs = require('./chunk-XLSROQ26.cjs');
6
- var chunkLHUFN2BG_cjs = require('./chunk-LHUFN2BG.cjs');
6
+ var chunkYXJQFZOW_cjs = require('./chunk-YXJQFZOW.cjs');
7
7
  var chunk5ROCYEY7_cjs = require('./chunk-5ROCYEY7.cjs');
8
8
  var chunkRUA6BSB6_cjs = require('./chunk-RUA6BSB6.cjs');
9
- var chunkZG5FKEL2_cjs = require('./chunk-ZG5FKEL2.cjs');
9
+ var chunk7BVC5JCJ_cjs = require('./chunk-7BVC5JCJ.cjs');
10
10
  var chunkWVVKLIUW_cjs = require('./chunk-WVVKLIUW.cjs');
11
- var chunk75XZXEUM_cjs = require('./chunk-75XZXEUM.cjs');
11
+ var chunk5BKWVGKC_cjs = require('./chunk-5BKWVGKC.cjs');
12
12
  var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
13
13
  var chunkWSMI66XC_cjs = require('./chunk-WSMI66XC.cjs');
14
14
  var chunk2W2GYEYQ_cjs = require('./chunk-2W2GYEYQ.cjs');
@@ -19,7 +19,7 @@ var chunkV5ORZPFW_cjs = require('./chunk-V5ORZPFW.cjs');
19
19
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
20
20
 
21
21
  // src/agent/index.warning.ts
22
- var Agent2 = class extends chunk75XZXEUM_cjs.Agent {
22
+ var Agent2 = class extends chunk5BKWVGKC_cjs.Agent {
23
23
  constructor(config) {
24
24
  super(config);
25
25
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -107,7 +107,7 @@ var MastraVector2 = class extends chunkRUA6BSB6_cjs.MastraVector {
107
107
  };
108
108
 
109
109
  // src/workflows/workflow.warning.ts
110
- var Workflow2 = class extends chunkYW6NIHPF_cjs.Workflow {
110
+ var Workflow2 = class extends chunkVTVNTJAD_cjs.Workflow {
111
111
  constructor(args) {
112
112
  super(args);
113
113
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -116,79 +116,79 @@ var Workflow2 = class extends chunkYW6NIHPF_cjs.Workflow {
116
116
 
117
117
  Object.defineProperty(exports, "Step", {
118
118
  enumerable: true,
119
- get: function () { return chunkYW6NIHPF_cjs.Step; }
119
+ get: function () { return chunkVTVNTJAD_cjs.Step; }
120
120
  });
121
121
  Object.defineProperty(exports, "WhenConditionReturnValue", {
122
122
  enumerable: true,
123
- get: function () { return chunkYW6NIHPF_cjs.WhenConditionReturnValue; }
123
+ get: function () { return chunkVTVNTJAD_cjs.WhenConditionReturnValue; }
124
124
  });
125
125
  Object.defineProperty(exports, "createStep", {
126
126
  enumerable: true,
127
- get: function () { return chunkYW6NIHPF_cjs.createStep; }
127
+ get: function () { return chunkVTVNTJAD_cjs.createStep; }
128
128
  });
129
129
  Object.defineProperty(exports, "getActivePathsAndStatus", {
130
130
  enumerable: true,
131
- get: function () { return chunkYW6NIHPF_cjs.getActivePathsAndStatus; }
131
+ get: function () { return chunkVTVNTJAD_cjs.getActivePathsAndStatus; }
132
132
  });
133
133
  Object.defineProperty(exports, "getResultActivePaths", {
134
134
  enumerable: true,
135
- get: function () { return chunkYW6NIHPF_cjs.getResultActivePaths; }
135
+ get: function () { return chunkVTVNTJAD_cjs.getResultActivePaths; }
136
136
  });
137
137
  Object.defineProperty(exports, "getStepResult", {
138
138
  enumerable: true,
139
- get: function () { return chunkYW6NIHPF_cjs.getStepResult; }
139
+ get: function () { return chunkVTVNTJAD_cjs.getStepResult; }
140
140
  });
141
141
  Object.defineProperty(exports, "getSuspendedPaths", {
142
142
  enumerable: true,
143
- get: function () { return chunkYW6NIHPF_cjs.getSuspendedPaths; }
143
+ get: function () { return chunkVTVNTJAD_cjs.getSuspendedPaths; }
144
144
  });
145
145
  Object.defineProperty(exports, "isErrorEvent", {
146
146
  enumerable: true,
147
- get: function () { return chunkYW6NIHPF_cjs.isErrorEvent; }
147
+ get: function () { return chunkVTVNTJAD_cjs.isErrorEvent; }
148
148
  });
149
149
  Object.defineProperty(exports, "isFinalState", {
150
150
  enumerable: true,
151
- get: function () { return chunkYW6NIHPF_cjs.isFinalState; }
151
+ get: function () { return chunkVTVNTJAD_cjs.isFinalState; }
152
152
  });
153
153
  Object.defineProperty(exports, "isLimboState", {
154
154
  enumerable: true,
155
- get: function () { return chunkYW6NIHPF_cjs.isLimboState; }
155
+ get: function () { return chunkVTVNTJAD_cjs.isLimboState; }
156
156
  });
157
157
  Object.defineProperty(exports, "isTransitionEvent", {
158
158
  enumerable: true,
159
- get: function () { return chunkYW6NIHPF_cjs.isTransitionEvent; }
159
+ get: function () { return chunkVTVNTJAD_cjs.isTransitionEvent; }
160
160
  });
161
161
  Object.defineProperty(exports, "isVariableReference", {
162
162
  enumerable: true,
163
- get: function () { return chunkYW6NIHPF_cjs.isVariableReference; }
163
+ get: function () { return chunkVTVNTJAD_cjs.isVariableReference; }
164
164
  });
165
165
  Object.defineProperty(exports, "mergeChildValue", {
166
166
  enumerable: true,
167
- get: function () { return chunkYW6NIHPF_cjs.mergeChildValue; }
167
+ get: function () { return chunkVTVNTJAD_cjs.mergeChildValue; }
168
168
  });
169
169
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
170
170
  enumerable: true,
171
- get: function () { return chunkYW6NIHPF_cjs.recursivelyCheckForFinalState; }
171
+ get: function () { return chunkVTVNTJAD_cjs.recursivelyCheckForFinalState; }
172
172
  });
173
173
  Object.defineProperty(exports, "updateStepInHierarchy", {
174
174
  enumerable: true,
175
- get: function () { return chunkYW6NIHPF_cjs.updateStepInHierarchy; }
175
+ get: function () { return chunkVTVNTJAD_cjs.updateStepInHierarchy; }
176
176
  });
177
177
  Object.defineProperty(exports, "Mastra", {
178
178
  enumerable: true,
179
- get: function () { return chunkLHUFN2BG_cjs.Mastra; }
179
+ get: function () { return chunkYXJQFZOW_cjs.Mastra; }
180
180
  });
181
181
  Object.defineProperty(exports, "CohereRelevanceScorer", {
182
182
  enumerable: true,
183
- get: function () { return chunkZG5FKEL2_cjs.CohereRelevanceScorer; }
183
+ get: function () { return chunk7BVC5JCJ_cjs.CohereRelevanceScorer; }
184
184
  });
185
185
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
186
186
  enumerable: true,
187
- get: function () { return chunkZG5FKEL2_cjs.MastraAgentRelevanceScorer; }
187
+ get: function () { return chunk7BVC5JCJ_cjs.MastraAgentRelevanceScorer; }
188
188
  });
189
189
  Object.defineProperty(exports, "createSimilarityPrompt", {
190
190
  enumerable: true,
191
- get: function () { return chunkZG5FKEL2_cjs.createSimilarityPrompt; }
191
+ get: function () { return chunk7BVC5JCJ_cjs.createSimilarityPrompt; }
192
192
  });
193
193
  Object.defineProperty(exports, "InstrumentClass", {
194
194
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-CwTG2XyQ.cjs';
2
2
  export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.cjs';
3
- import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-DsOQiX2q.cjs';
4
- export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-DsOQiX2q.cjs';
3
+ import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-DbCjWM67.cjs';
4
+ export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-DbCjWM67.cjs';
5
5
  import { M as MastraBase$1 } from './base-ObPJ-w8K.cjs';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-ObPJ-w8K.cjs';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-CwTG2XyQ.js';
2
2
  export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.js';
3
- import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-CbMRVSw8.js';
4
- export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-CbMRVSw8.js';
3
+ import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-CMQiCwHG.js';
4
+ export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-CMQiCwHG.js';
5
5
  import { M as MastraBase$1 } from './base-Cmunaaxb.js';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-Cmunaaxb.js';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { MastraTTS } from './chunk-WBE5RTFI.js';
2
- import { Workflow } from './chunk-S7PRIZBF.js';
3
- export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-S7PRIZBF.js';
2
+ import { Workflow } from './chunk-5J2V6T6D.js';
3
+ export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-5J2V6T6D.js';
4
4
  import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
5
- export { Mastra } from './chunk-U6V76AAB.js';
5
+ export { Mastra } from './chunk-ZBKJDQPM.js';
6
6
  import { MastraMemory } from './chunk-OC5LOLNS.js';
7
7
  import { MastraVector } from './chunk-ZABXT2MN.js';
8
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-F6KZ3CUF.js';
8
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-F6HJG4BI.js';
9
9
  import { MastraStorage } from './chunk-RU7CSPAV.js';
10
- import { Agent } from './chunk-DW4X6TXX.js';
10
+ import { Agent } from './chunk-SEYVSQ4I.js';
11
11
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-W5HVJX45.js';
12
12
  export { createMastraProxy, deepMerge, delay, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-64NEAPI4.js';
13
13
  import { Tool } from './chunk-ZINPRHAN.js';
@@ -1,5 +1,5 @@
1
1
  import '../base-ObPJ-w8K.cjs';
2
- import { W as Workflow, T as ToolAction } from '../base-DsOQiX2q.cjs';
2
+ import { W as Workflow, T as ToolAction } from '../base-DbCjWM67.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-Cmunaaxb.js';
2
- import { W as Workflow, T as ToolAction } from '../base-CbMRVSw8.js';
2
+ import { W as Workflow, T as ToolAction } from '../base-CMQiCwHG.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-DsOQiX2q.cjs';
4
+ export { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-DbCjWM67.cjs';
5
5
  import '../index-CquI0inB.cjs';
6
6
  import '../base-ObPJ-w8K.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 { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-CbMRVSw8.js';
4
+ export { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-CMQiCwHG.js';
5
5
  import '../index-CquI0inB.js';
6
6
  import '../base-Cmunaaxb.js';
7
7
  import '@opentelemetry/api';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkLHUFN2BG_cjs = require('../chunk-LHUFN2BG.cjs');
3
+ var chunkYXJQFZOW_cjs = require('../chunk-YXJQFZOW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkLHUFN2BG_cjs.Mastra; }
9
+ get: function () { return chunkYXJQFZOW_cjs.Mastra; }
10
10
  });
@@ -1,5 +1,5 @@
1
1
  import '../index-CquI0inB.cjs';
2
- export { X as Config, M as Mastra } from '../base-DsOQiX2q.cjs';
2
+ export { X as Config, M as Mastra } from '../base-DbCjWM67.cjs';
3
3
  import '../deployer/index.cjs';
4
4
  import '../vector/index.cjs';
5
5
  import '../base-ObPJ-w8K.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../index-CquI0inB.js';
2
- export { X as Config, M as Mastra } from '../base-CbMRVSw8.js';
2
+ export { X as Config, M as Mastra } from '../base-CMQiCwHG.js';
3
3
  import '../deployer/index.js';
4
4
  import '../vector/index.js';
5
5
  import '../base-Cmunaaxb.js';
@@ -1 +1 @@
1
- export { Mastra } from '../chunk-U6V76AAB.js';
1
+ export { Mastra } from '../chunk-ZBKJDQPM.js';
@@ -1,4 +1,4 @@
1
- export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-DsOQiX2q.cjs';
1
+ export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-DbCjWM67.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-ObPJ-w8K.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-CbMRVSw8.js';
1
+ export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-CMQiCwHG.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-Cmunaaxb.js';
4
4
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk75XZXEUM_cjs = require('../chunk-75XZXEUM.cjs');
3
+ var chunk5BKWVGKC_cjs = require('../chunk-5BKWVGKC.cjs');
4
4
  var chunk2W2GYEYQ_cjs = require('../chunk-2W2GYEYQ.cjs');
5
5
  var chunkPL7PVTGF_cjs = require('../chunk-PL7PVTGF.cjs');
6
6
  var chunkNPOKIPWC_cjs = require('../chunk-NPOKIPWC.cjs');
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkPL7PVTGF_cjs.MastraBase {
17
17
  this.#instructions = config.instructions;
18
18
  this.#agents = config.agents;
19
19
  this.#model = config.model;
20
- this.#routingAgent = new chunk75XZXEUM_cjs.Agent({
20
+ this.#routingAgent = new chunk5BKWVGKC_cjs.Agent({
21
21
  name: config.name,
22
22
  instructions: this.getInstructions(),
23
23
  model: this.#model,
@@ -1,4 +1,4 @@
1
- export { f as AgentNetwork, aA as AgentNetworkConfig } from '../base-DsOQiX2q.cjs';
1
+ export { f as AgentNetwork, aA as AgentNetworkConfig } from '../base-DbCjWM67.cjs';
2
2
  import 'ai';
3
3
  import '../base-ObPJ-w8K.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { f as AgentNetwork, aA as AgentNetworkConfig } from '../base-CbMRVSw8.js';
1
+ export { f as AgentNetwork, aA as AgentNetworkConfig } from '../base-CMQiCwHG.js';
2
2
  import 'ai';
3
3
  import '../base-Cmunaaxb.js';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- import { Agent } from '../chunk-DW4X6TXX.js';
1
+ import { Agent } from '../chunk-SEYVSQ4I.js';
2
2
  import { createTool } from '../chunk-ZINPRHAN.js';
3
3
  import { MastraBase } from '../chunk-VN4M67DA.js';
4
4
  import { RegisteredLogger } from '../chunk-L7CR75HA.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkZG5FKEL2_cjs = require('../chunk-ZG5FKEL2.cjs');
3
+ var chunk7BVC5JCJ_cjs = require('../chunk-7BVC5JCJ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkZG5FKEL2_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunk7BVC5JCJ_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkZG5FKEL2_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunk7BVC5JCJ_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkZG5FKEL2_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunk7BVC5JCJ_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-ObPJ-w8K.cjs';
2
- import { az as MastraLanguageModel } from '../base-DsOQiX2q.cjs';
2
+ import { az as MastraLanguageModel } from '../base-DbCjWM67.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-Cmunaaxb.js';
2
- import { az as MastraLanguageModel } from '../base-CbMRVSw8.js';
2
+ import { az as MastraLanguageModel } from '../base-CMQiCwHG.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-F6KZ3CUF.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-F6HJG4BI.js';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-DsOQiX2q.cjs';
1
+ export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-DbCjWM67.cjs';
2
2
  import 'ai';
3
3
  import '../base-ObPJ-w8K.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-CbMRVSw8.js';
1
+ export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-CMQiCwHG.js';
2
2
  import 'ai';
3
3
  import '../base-Cmunaaxb.js';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-DsOQiX2q.cjs';
1
+ import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-DbCjWM67.cjs';
2
2
  import 'ai';
3
3
  import '../../base-ObPJ-w8K.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-CbMRVSw8.js';
1
+ import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-CMQiCwHG.js';
2
2
  import 'ai';
3
3
  import '../../base-Cmunaaxb.js';
4
4
  import '@opentelemetry/api';
@@ -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 { g as MastraStorage } from '../base-DsOQiX2q.cjs';
6
+ import { g as MastraStorage } from '../base-DbCjWM67.cjs';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -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 { g as MastraStorage } from '../base-CbMRVSw8.js';
6
+ import { g as MastraStorage } from '../base-CMQiCwHG.js';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -1,4 +1,4 @@
1
- export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-DsOQiX2q.cjs';
1
+ export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-DbCjWM67.cjs';
2
2
  import 'ai';
3
3
  import '../base-ObPJ-w8K.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-CbMRVSw8.js';
1
+ export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-CMQiCwHG.js';
2
2
  import 'ai';
3
3
  import '../base-Cmunaaxb.js';
4
4
  import '@opentelemetry/api';
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-DsOQiX2q.cjs';
1
+ import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-DbCjWM67.cjs';
2
2
  import { MastraTTS } from './tts/index.cjs';
3
3
  import { MastraVector } from './vector/index.cjs';
4
4
  import { M as Metric } from './types-CwTG2XyQ.cjs';
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-CbMRVSw8.js';
1
+ import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-CMQiCwHG.js';
2
2
  import { MastraTTS } from './tts/index.js';
3
3
  import { MastraVector } from './vector/index.js';
4
4
  import { M as Metric } from './types-CwTG2XyQ.js';
@@ -1,4 +1,4 @@
1
- export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-DsOQiX2q.cjs';
1
+ export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-DbCjWM67.cjs';
2
2
  import 'ai';
3
3
  import '../base-ObPJ-w8K.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-CbMRVSw8.js';
1
+ export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-CMQiCwHG.js';
2
2
  import 'ai';
3
3
  import '../base-Cmunaaxb.js';
4
4
  import '@opentelemetry/api';
@@ -1,70 +1,70 @@
1
1
  'use strict';
2
2
 
3
- var chunkYW6NIHPF_cjs = require('../chunk-YW6NIHPF.cjs');
3
+ var chunkVTVNTJAD_cjs = require('../chunk-VTVNTJAD.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Step", {
8
8
  enumerable: true,
9
- get: function () { return chunkYW6NIHPF_cjs.Step; }
9
+ get: function () { return chunkVTVNTJAD_cjs.Step; }
10
10
  });
11
11
  Object.defineProperty(exports, "WhenConditionReturnValue", {
12
12
  enumerable: true,
13
- get: function () { return chunkYW6NIHPF_cjs.WhenConditionReturnValue; }
13
+ get: function () { return chunkVTVNTJAD_cjs.WhenConditionReturnValue; }
14
14
  });
15
15
  Object.defineProperty(exports, "Workflow", {
16
16
  enumerable: true,
17
- get: function () { return chunkYW6NIHPF_cjs.Workflow; }
17
+ get: function () { return chunkVTVNTJAD_cjs.Workflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "createStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkYW6NIHPF_cjs.createStep; }
21
+ get: function () { return chunkVTVNTJAD_cjs.createStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "getActivePathsAndStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunkYW6NIHPF_cjs.getActivePathsAndStatus; }
25
+ get: function () { return chunkVTVNTJAD_cjs.getActivePathsAndStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "getResultActivePaths", {
28
28
  enumerable: true,
29
- get: function () { return chunkYW6NIHPF_cjs.getResultActivePaths; }
29
+ get: function () { return chunkVTVNTJAD_cjs.getResultActivePaths; }
30
30
  });
31
31
  Object.defineProperty(exports, "getStepResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkYW6NIHPF_cjs.getStepResult; }
33
+ get: function () { return chunkVTVNTJAD_cjs.getStepResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "getSuspendedPaths", {
36
36
  enumerable: true,
37
- get: function () { return chunkYW6NIHPF_cjs.getSuspendedPaths; }
37
+ get: function () { return chunkVTVNTJAD_cjs.getSuspendedPaths; }
38
38
  });
39
39
  Object.defineProperty(exports, "isErrorEvent", {
40
40
  enumerable: true,
41
- get: function () { return chunkYW6NIHPF_cjs.isErrorEvent; }
41
+ get: function () { return chunkVTVNTJAD_cjs.isErrorEvent; }
42
42
  });
43
43
  Object.defineProperty(exports, "isFinalState", {
44
44
  enumerable: true,
45
- get: function () { return chunkYW6NIHPF_cjs.isFinalState; }
45
+ get: function () { return chunkVTVNTJAD_cjs.isFinalState; }
46
46
  });
47
47
  Object.defineProperty(exports, "isLimboState", {
48
48
  enumerable: true,
49
- get: function () { return chunkYW6NIHPF_cjs.isLimboState; }
49
+ get: function () { return chunkVTVNTJAD_cjs.isLimboState; }
50
50
  });
51
51
  Object.defineProperty(exports, "isTransitionEvent", {
52
52
  enumerable: true,
53
- get: function () { return chunkYW6NIHPF_cjs.isTransitionEvent; }
53
+ get: function () { return chunkVTVNTJAD_cjs.isTransitionEvent; }
54
54
  });
55
55
  Object.defineProperty(exports, "isVariableReference", {
56
56
  enumerable: true,
57
- get: function () { return chunkYW6NIHPF_cjs.isVariableReference; }
57
+ get: function () { return chunkVTVNTJAD_cjs.isVariableReference; }
58
58
  });
59
59
  Object.defineProperty(exports, "mergeChildValue", {
60
60
  enumerable: true,
61
- get: function () { return chunkYW6NIHPF_cjs.mergeChildValue; }
61
+ get: function () { return chunkVTVNTJAD_cjs.mergeChildValue; }
62
62
  });
63
63
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
64
64
  enumerable: true,
65
- get: function () { return chunkYW6NIHPF_cjs.recursivelyCheckForFinalState; }
65
+ get: function () { return chunkVTVNTJAD_cjs.recursivelyCheckForFinalState; }
66
66
  });
67
67
  Object.defineProperty(exports, "updateStepInHierarchy", {
68
68
  enumerable: true,
69
- get: function () { return chunkYW6NIHPF_cjs.updateStepInHierarchy; }
69
+ get: function () { return chunkVTVNTJAD_cjs.updateStepInHierarchy; }
70
70
  });
@@ -1,5 +1,5 @@
1
- import { a5 as VariableReference, ac as StepResult } from '../base-DsOQiX2q.cjs';
2
- export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-DsOQiX2q.cjs';
1
+ import { a5 as VariableReference, ac as StepResult } from '../base-DbCjWM67.cjs';
2
+ export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-DbCjWM67.cjs';
3
3
  import 'ai';
4
4
  import '../base-ObPJ-w8K.cjs';
5
5
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
- import { a5 as VariableReference, ac as StepResult } from '../base-CbMRVSw8.js';
2
- export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-CbMRVSw8.js';
1
+ import { a5 as VariableReference, ac as StepResult } from '../base-CMQiCwHG.js';
2
+ export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-CMQiCwHG.js';
3
3
  import 'ai';
4
4
  import '../base-Cmunaaxb.js';
5
5
  import '@opentelemetry/api';
@@ -1 +1 @@
1
- export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-S7PRIZBF.js';
1
+ export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-5J2V6T6D.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4-alpha.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -138,6 +138,7 @@ This is a warning for now, but will throw an error in the future
138
138
  if (agents[key]) {
139
139
  throw new Error(`Agent with name ID:${key} already exists`);
140
140
  }
141
+ agent.__registerMastra(this);
141
142
  agent.__registerPrimitives({
142
143
  logger: this.getLogger(),
143
144
  telemetry: this.#telemetry,
@@ -147,7 +148,6 @@ This is a warning for now, but will throw an error in the future
147
148
  tts: this.#tts,
148
149
  vectors: this.#vectors
149
150
  });
150
- agent.__registerMastra(this);
151
151
  agents[key] = agent;
152
152
  });
153
153
  }
@@ -136,6 +136,7 @@ This is a warning for now, but will throw an error in the future
136
136
  if (agents[key]) {
137
137
  throw new Error(`Agent with name ID:${key} already exists`);
138
138
  }
139
+ agent.__registerMastra(this);
139
140
  agent.__registerPrimitives({
140
141
  logger: this.getLogger(),
141
142
  telemetry: this.#telemetry,
@@ -145,7 +146,6 @@ This is a warning for now, but will throw an error in the future
145
146
  tts: this.#tts,
146
147
  vectors: this.#vectors
147
148
  });
148
- agent.__registerMastra(this);
149
149
  agents[key] = agent;
150
150
  });
151
151
  }