@mastra/core 0.9.2-alpha.0 → 0.9.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk7PRLYMXV_cjs = require('../chunk-7PRLYMXV.cjs');
3
+ var chunk3BKYXIDL_cjs = require('../chunk-3BKYXIDL.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Agent", {
8
8
  enumerable: true,
9
- get: function () { return chunk7PRLYMXV_cjs.Agent; }
9
+ get: function () { return chunk3BKYXIDL_cjs.Agent; }
10
10
  });
@@ -1 +1 @@
1
- export { Agent } from '../chunk-H2UWWO4L.js';
1
+ export { Agent } from '../chunk-UQ2VDYKC.js';
@@ -511,6 +511,9 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
511
511
  });
512
512
  return messagesBySanitizedContent.filter(message => {
513
513
  if (typeof message.content === `string`) {
514
+ if (message.role === "assistant") {
515
+ return true;
516
+ }
514
517
  return message.content !== "";
515
518
  }
516
519
  if (Array.isArray(message.content)) {
@@ -1,4 +1,4 @@
1
- import { Agent } from './chunk-H2UWWO4L.js';
1
+ import { Agent } from './chunk-UQ2VDYKC.js';
2
2
  import { CohereClient } from 'cohere-ai';
3
3
 
4
4
  var CohereRelevanceScorer = class {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7PRLYMXV_cjs = require('./chunk-7PRLYMXV.cjs');
3
+ var chunk3BKYXIDL_cjs = require('./chunk-3BKYXIDL.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 chunk7PRLYMXV_cjs.Agent({
41
+ this.agent = new chunk3BKYXIDL_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.
@@ -504,6 +504,9 @@ var Agent = class extends (_a = MastraBase) {
504
504
  });
505
505
  return messagesBySanitizedContent.filter(message => {
506
506
  if (typeof message.content === `string`) {
507
+ if (message.role === "assistant") {
508
+ return true;
509
+ }
507
510
  return message.content !== "";
508
511
  }
509
512
  if (Array.isArray(message.content)) {
package/dist/index.cjs CHANGED
@@ -7,8 +7,8 @@ var chunk33XQ5DGU_cjs = require('./chunk-33XQ5DGU.cjs');
7
7
  var chunkVI3IQINW_cjs = require('./chunk-VI3IQINW.cjs');
8
8
  var chunkYAJVZMZH_cjs = require('./chunk-YAJVZMZH.cjs');
9
9
  var chunkXNBNJEES_cjs = require('./chunk-XNBNJEES.cjs');
10
- var chunkZWALP7T2_cjs = require('./chunk-ZWALP7T2.cjs');
11
- var chunk7PRLYMXV_cjs = require('./chunk-7PRLYMXV.cjs');
10
+ var chunkUPEXV5RA_cjs = require('./chunk-UPEXV5RA.cjs');
11
+ var chunk3BKYXIDL_cjs = require('./chunk-3BKYXIDL.cjs');
12
12
  var chunkMYHX5XVW_cjs = require('./chunk-MYHX5XVW.cjs');
13
13
  var chunk7JRVDC7F_cjs = require('./chunk-7JRVDC7F.cjs');
14
14
  var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
@@ -18,7 +18,7 @@ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
18
18
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
19
19
 
20
20
  // src/agent/index.warning.ts
21
- var Agent2 = class extends chunk7PRLYMXV_cjs.Agent {
21
+ var Agent2 = class extends chunk3BKYXIDL_cjs.Agent {
22
22
  constructor(config) {
23
23
  super(config);
24
24
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -106,7 +106,7 @@ var MastraVector2 = class extends chunkYAJVZMZH_cjs.MastraVector {
106
106
  };
107
107
 
108
108
  // src/workflows/workflow.warning.ts
109
- var Workflow2 = class extends chunk7PRLYMXV_cjs.Workflow {
109
+ var Workflow2 = class extends chunk3BKYXIDL_cjs.Workflow {
110
110
  constructor(args) {
111
111
  super(args);
112
112
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -131,95 +131,95 @@ Object.defineProperty(exports, "memoryDefaultOptions", {
131
131
  });
132
132
  Object.defineProperty(exports, "CohereRelevanceScorer", {
133
133
  enumerable: true,
134
- get: function () { return chunkZWALP7T2_cjs.CohereRelevanceScorer; }
134
+ get: function () { return chunkUPEXV5RA_cjs.CohereRelevanceScorer; }
135
135
  });
136
136
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
137
137
  enumerable: true,
138
- get: function () { return chunkZWALP7T2_cjs.MastraAgentRelevanceScorer; }
138
+ get: function () { return chunkUPEXV5RA_cjs.MastraAgentRelevanceScorer; }
139
139
  });
140
140
  Object.defineProperty(exports, "createSimilarityPrompt", {
141
141
  enumerable: true,
142
- get: function () { return chunkZWALP7T2_cjs.createSimilarityPrompt; }
142
+ get: function () { return chunkUPEXV5RA_cjs.createSimilarityPrompt; }
143
143
  });
144
144
  Object.defineProperty(exports, "Step", {
145
145
  enumerable: true,
146
- get: function () { return chunk7PRLYMXV_cjs.Step; }
146
+ get: function () { return chunk3BKYXIDL_cjs.Step; }
147
147
  });
148
148
  Object.defineProperty(exports, "WhenConditionReturnValue", {
149
149
  enumerable: true,
150
- get: function () { return chunk7PRLYMXV_cjs.WhenConditionReturnValue; }
150
+ get: function () { return chunk3BKYXIDL_cjs.WhenConditionReturnValue; }
151
151
  });
152
152
  Object.defineProperty(exports, "agentToStep", {
153
153
  enumerable: true,
154
- get: function () { return chunk7PRLYMXV_cjs.agentToStep; }
154
+ get: function () { return chunk3BKYXIDL_cjs.agentToStep; }
155
155
  });
156
156
  Object.defineProperty(exports, "getActivePathsAndStatus", {
157
157
  enumerable: true,
158
- get: function () { return chunk7PRLYMXV_cjs.getActivePathsAndStatus; }
158
+ get: function () { return chunk3BKYXIDL_cjs.getActivePathsAndStatus; }
159
159
  });
160
160
  Object.defineProperty(exports, "getResultActivePaths", {
161
161
  enumerable: true,
162
- get: function () { return chunk7PRLYMXV_cjs.getResultActivePaths; }
162
+ get: function () { return chunk3BKYXIDL_cjs.getResultActivePaths; }
163
163
  });
164
164
  Object.defineProperty(exports, "getStepResult", {
165
165
  enumerable: true,
166
- get: function () { return chunk7PRLYMXV_cjs.getStepResult; }
166
+ get: function () { return chunk3BKYXIDL_cjs.getStepResult; }
167
167
  });
168
168
  Object.defineProperty(exports, "getSuspendedPaths", {
169
169
  enumerable: true,
170
- get: function () { return chunk7PRLYMXV_cjs.getSuspendedPaths; }
170
+ get: function () { return chunk3BKYXIDL_cjs.getSuspendedPaths; }
171
171
  });
172
172
  Object.defineProperty(exports, "isAgent", {
173
173
  enumerable: true,
174
- get: function () { return chunk7PRLYMXV_cjs.isAgent; }
174
+ get: function () { return chunk3BKYXIDL_cjs.isAgent; }
175
175
  });
176
176
  Object.defineProperty(exports, "isConditionalKey", {
177
177
  enumerable: true,
178
- get: function () { return chunk7PRLYMXV_cjs.isConditionalKey; }
178
+ get: function () { return chunk3BKYXIDL_cjs.isConditionalKey; }
179
179
  });
180
180
  Object.defineProperty(exports, "isErrorEvent", {
181
181
  enumerable: true,
182
- get: function () { return chunk7PRLYMXV_cjs.isErrorEvent; }
182
+ get: function () { return chunk3BKYXIDL_cjs.isErrorEvent; }
183
183
  });
184
184
  Object.defineProperty(exports, "isFinalState", {
185
185
  enumerable: true,
186
- get: function () { return chunk7PRLYMXV_cjs.isFinalState; }
186
+ get: function () { return chunk3BKYXIDL_cjs.isFinalState; }
187
187
  });
188
188
  Object.defineProperty(exports, "isLimboState", {
189
189
  enumerable: true,
190
- get: function () { return chunk7PRLYMXV_cjs.isLimboState; }
190
+ get: function () { return chunk3BKYXIDL_cjs.isLimboState; }
191
191
  });
192
192
  Object.defineProperty(exports, "isTransitionEvent", {
193
193
  enumerable: true,
194
- get: function () { return chunk7PRLYMXV_cjs.isTransitionEvent; }
194
+ get: function () { return chunk3BKYXIDL_cjs.isTransitionEvent; }
195
195
  });
196
196
  Object.defineProperty(exports, "isVariableReference", {
197
197
  enumerable: true,
198
- get: function () { return chunk7PRLYMXV_cjs.isVariableReference; }
198
+ get: function () { return chunk3BKYXIDL_cjs.isVariableReference; }
199
199
  });
200
200
  Object.defineProperty(exports, "isWorkflow", {
201
201
  enumerable: true,
202
- get: function () { return chunk7PRLYMXV_cjs.isWorkflow; }
202
+ get: function () { return chunk3BKYXIDL_cjs.isWorkflow; }
203
203
  });
204
204
  Object.defineProperty(exports, "mergeChildValue", {
205
205
  enumerable: true,
206
- get: function () { return chunk7PRLYMXV_cjs.mergeChildValue; }
206
+ get: function () { return chunk3BKYXIDL_cjs.mergeChildValue; }
207
207
  });
208
208
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
209
209
  enumerable: true,
210
- get: function () { return chunk7PRLYMXV_cjs.recursivelyCheckForFinalState; }
210
+ get: function () { return chunk3BKYXIDL_cjs.recursivelyCheckForFinalState; }
211
211
  });
212
212
  Object.defineProperty(exports, "resolveVariables", {
213
213
  enumerable: true,
214
- get: function () { return chunk7PRLYMXV_cjs.resolveVariables; }
214
+ get: function () { return chunk3BKYXIDL_cjs.resolveVariables; }
215
215
  });
216
216
  Object.defineProperty(exports, "updateStepInHierarchy", {
217
217
  enumerable: true,
218
- get: function () { return chunk7PRLYMXV_cjs.updateStepInHierarchy; }
218
+ get: function () { return chunk3BKYXIDL_cjs.updateStepInHierarchy; }
219
219
  });
220
220
  Object.defineProperty(exports, "workflowToStep", {
221
221
  enumerable: true,
222
- get: function () { return chunk7PRLYMXV_cjs.workflowToStep; }
222
+ get: function () { return chunk3BKYXIDL_cjs.workflowToStep; }
223
223
  });
224
224
  Object.defineProperty(exports, "InstrumentClass", {
225
225
  enumerable: true,
package/dist/index.js CHANGED
@@ -6,9 +6,9 @@ import { MastraMemory } from './chunk-INXNZ5VE.js';
6
6
  export { MemoryProcessor, memoryDefaultOptions } from './chunk-INXNZ5VE.js';
7
7
  import { MastraVector } from './chunk-LXIAHZ45.js';
8
8
  import { MastraStorage } from './chunk-52SRR7WR.js';
9
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-FA7FWCKH.js';
10
- import { Agent, Workflow } from './chunk-H2UWWO4L.js';
11
- export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-H2UWWO4L.js';
9
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-GKTDO6XW.js';
10
+ import { Agent, Workflow } from './chunk-UQ2VDYKC.js';
11
+ export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-UQ2VDYKC.js';
12
12
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-KWYJUFY3.js';
13
13
  import { Tool } from './chunk-JSUPD5IG.js';
14
14
  export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-JSUPD5IG.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7PRLYMXV_cjs = require('../chunk-7PRLYMXV.cjs');
3
+ var chunk3BKYXIDL_cjs = require('../chunk-3BKYXIDL.cjs');
4
4
  var chunk7JRVDC7F_cjs = require('../chunk-7JRVDC7F.cjs');
5
5
  var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
6
6
  var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
17
17
  this.#instructions = config.instructions;
18
18
  this.#agents = config.agents;
19
19
  this.#model = config.model;
20
- this.#routingAgent = new chunk7PRLYMXV_cjs.Agent({
20
+ this.#routingAgent = new chunk3BKYXIDL_cjs.Agent({
21
21
  name: config.name,
22
22
  instructions: this.getInstructions(),
23
23
  model: this.#model,
@@ -1,4 +1,4 @@
1
- import { Agent } from '../chunk-H2UWWO4L.js';
1
+ import { Agent } from '../chunk-UQ2VDYKC.js';
2
2
  import { createTool } from '../chunk-JSUPD5IG.js';
3
3
  import { MastraBase } from '../chunk-CLJQYXNM.js';
4
4
  import { RegisteredLogger } from '../chunk-2BVZNKLX.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWALP7T2_cjs = require('../chunk-ZWALP7T2.cjs');
3
+ var chunkUPEXV5RA_cjs = require('../chunk-UPEXV5RA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkZWALP7T2_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunkUPEXV5RA_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkZWALP7T2_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunkUPEXV5RA_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkZWALP7T2_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunkUPEXV5RA_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-FA7FWCKH.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-GKTDO6XW.js';
@@ -1,90 +1,90 @@
1
1
  'use strict';
2
2
 
3
- var chunk7PRLYMXV_cjs = require('../chunk-7PRLYMXV.cjs');
3
+ var chunk3BKYXIDL_cjs = require('../chunk-3BKYXIDL.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Step", {
8
8
  enumerable: true,
9
- get: function () { return chunk7PRLYMXV_cjs.Step; }
9
+ get: function () { return chunk3BKYXIDL_cjs.Step; }
10
10
  });
11
11
  Object.defineProperty(exports, "WhenConditionReturnValue", {
12
12
  enumerable: true,
13
- get: function () { return chunk7PRLYMXV_cjs.WhenConditionReturnValue; }
13
+ get: function () { return chunk3BKYXIDL_cjs.WhenConditionReturnValue; }
14
14
  });
15
15
  Object.defineProperty(exports, "Workflow", {
16
16
  enumerable: true,
17
- get: function () { return chunk7PRLYMXV_cjs.Workflow; }
17
+ get: function () { return chunk3BKYXIDL_cjs.Workflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunk7PRLYMXV_cjs.agentToStep; }
21
+ get: function () { return chunk3BKYXIDL_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "getActivePathsAndStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunk7PRLYMXV_cjs.getActivePathsAndStatus; }
25
+ get: function () { return chunk3BKYXIDL_cjs.getActivePathsAndStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "getResultActivePaths", {
28
28
  enumerable: true,
29
- get: function () { return chunk7PRLYMXV_cjs.getResultActivePaths; }
29
+ get: function () { return chunk3BKYXIDL_cjs.getResultActivePaths; }
30
30
  });
31
31
  Object.defineProperty(exports, "getStepResult", {
32
32
  enumerable: true,
33
- get: function () { return chunk7PRLYMXV_cjs.getStepResult; }
33
+ get: function () { return chunk3BKYXIDL_cjs.getStepResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "getSuspendedPaths", {
36
36
  enumerable: true,
37
- get: function () { return chunk7PRLYMXV_cjs.getSuspendedPaths; }
37
+ get: function () { return chunk3BKYXIDL_cjs.getSuspendedPaths; }
38
38
  });
39
39
  Object.defineProperty(exports, "isAgent", {
40
40
  enumerable: true,
41
- get: function () { return chunk7PRLYMXV_cjs.isAgent; }
41
+ get: function () { return chunk3BKYXIDL_cjs.isAgent; }
42
42
  });
43
43
  Object.defineProperty(exports, "isConditionalKey", {
44
44
  enumerable: true,
45
- get: function () { return chunk7PRLYMXV_cjs.isConditionalKey; }
45
+ get: function () { return chunk3BKYXIDL_cjs.isConditionalKey; }
46
46
  });
47
47
  Object.defineProperty(exports, "isErrorEvent", {
48
48
  enumerable: true,
49
- get: function () { return chunk7PRLYMXV_cjs.isErrorEvent; }
49
+ get: function () { return chunk3BKYXIDL_cjs.isErrorEvent; }
50
50
  });
51
51
  Object.defineProperty(exports, "isFinalState", {
52
52
  enumerable: true,
53
- get: function () { return chunk7PRLYMXV_cjs.isFinalState; }
53
+ get: function () { return chunk3BKYXIDL_cjs.isFinalState; }
54
54
  });
55
55
  Object.defineProperty(exports, "isLimboState", {
56
56
  enumerable: true,
57
- get: function () { return chunk7PRLYMXV_cjs.isLimboState; }
57
+ get: function () { return chunk3BKYXIDL_cjs.isLimboState; }
58
58
  });
59
59
  Object.defineProperty(exports, "isTransitionEvent", {
60
60
  enumerable: true,
61
- get: function () { return chunk7PRLYMXV_cjs.isTransitionEvent; }
61
+ get: function () { return chunk3BKYXIDL_cjs.isTransitionEvent; }
62
62
  });
63
63
  Object.defineProperty(exports, "isVariableReference", {
64
64
  enumerable: true,
65
- get: function () { return chunk7PRLYMXV_cjs.isVariableReference; }
65
+ get: function () { return chunk3BKYXIDL_cjs.isVariableReference; }
66
66
  });
67
67
  Object.defineProperty(exports, "isWorkflow", {
68
68
  enumerable: true,
69
- get: function () { return chunk7PRLYMXV_cjs.isWorkflow; }
69
+ get: function () { return chunk3BKYXIDL_cjs.isWorkflow; }
70
70
  });
71
71
  Object.defineProperty(exports, "mergeChildValue", {
72
72
  enumerable: true,
73
- get: function () { return chunk7PRLYMXV_cjs.mergeChildValue; }
73
+ get: function () { return chunk3BKYXIDL_cjs.mergeChildValue; }
74
74
  });
75
75
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
76
76
  enumerable: true,
77
- get: function () { return chunk7PRLYMXV_cjs.recursivelyCheckForFinalState; }
77
+ get: function () { return chunk3BKYXIDL_cjs.recursivelyCheckForFinalState; }
78
78
  });
79
79
  Object.defineProperty(exports, "resolveVariables", {
80
80
  enumerable: true,
81
- get: function () { return chunk7PRLYMXV_cjs.resolveVariables; }
81
+ get: function () { return chunk3BKYXIDL_cjs.resolveVariables; }
82
82
  });
83
83
  Object.defineProperty(exports, "updateStepInHierarchy", {
84
84
  enumerable: true,
85
- get: function () { return chunk7PRLYMXV_cjs.updateStepInHierarchy; }
85
+ get: function () { return chunk3BKYXIDL_cjs.updateStepInHierarchy; }
86
86
  });
87
87
  Object.defineProperty(exports, "workflowToStep", {
88
88
  enumerable: true,
89
- get: function () { return chunk7PRLYMXV_cjs.workflowToStep; }
89
+ get: function () { return chunk3BKYXIDL_cjs.workflowToStep; }
90
90
  });
@@ -1 +1 @@
1
- export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-H2UWWO4L.js';
1
+ export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-UQ2VDYKC.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7PRLYMXV_cjs = require('../../chunk-7PRLYMXV.cjs');
3
+ var chunk3BKYXIDL_cjs = require('../../chunk-3BKYXIDL.cjs');
4
4
  var chunk7JRVDC7F_cjs = require('../../chunk-7JRVDC7F.cjs');
5
5
  var chunkD63P5O4Q_cjs = require('../../chunk-D63P5O4Q.cjs');
6
6
  var chunkO7IW545H_cjs = require('../../chunk-O7IW545H.cjs');
@@ -586,7 +586,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
586
586
 
587
587
  // src/workflows/vNext/workflow.ts
588
588
  function createStep(params) {
589
- if (params instanceof chunk7PRLYMXV_cjs.Agent) {
589
+ if (params instanceof chunk3BKYXIDL_cjs.Agent) {
590
590
  return {
591
591
  id: params.name,
592
592
  // @ts-ignore
@@ -1,4 +1,4 @@
1
- import { Agent } from '../../chunk-H2UWWO4L.js';
1
+ import { Agent } from '../../chunk-UQ2VDYKC.js';
2
2
  import { Tool } from '../../chunk-JSUPD5IG.js';
3
3
  import { MastraBase } from '../../chunk-CLJQYXNM.js';
4
4
  import { RegisteredLogger } from '../../chunk-2BVZNKLX.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.9.2-alpha.0",
3
+ "version": "0.9.2-alpha.1",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",