@mastra/core 0.9.2-alpha.6 → 0.9.2

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-CP0djERZ.d.cts → base-B3g_Q3KV.d.cts} +1 -1
  6. package/dist/{base-ukwrvBvm.d.ts → base-Dq_YZkEc.d.ts} +1 -1
  7. package/dist/{chunk-QESYVGP2.cjs → chunk-6FW4DXZO.cjs} +2 -2
  8. package/dist/{chunk-KHSHYGJU.js → chunk-SIQPAONL.js} +1 -1
  9. package/dist/eval/index.d.cts +1 -1
  10. package/dist/eval/index.d.ts +1 -1
  11. package/dist/index.cjs +36 -36
  12. package/dist/index.d.cts +2 -2
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +3 -3
  15. package/dist/integration/index.d.cts +1 -1
  16. package/dist/integration/index.d.ts +1 -1
  17. package/dist/llm/index.d.cts +1 -1
  18. package/dist/llm/index.d.ts +1 -1
  19. package/dist/mastra/index.d.cts +1 -1
  20. package/dist/mastra/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.cjs +2 -2
  24. package/dist/network/index.d.cts +1 -1
  25. package/dist/network/index.d.ts +1 -1
  26. package/dist/network/index.js +1 -1
  27. package/dist/relevance/index.cjs +4 -4
  28. package/dist/relevance/index.d.cts +1 -1
  29. package/dist/relevance/index.d.ts +1 -1
  30. package/dist/relevance/index.js +1 -1
  31. package/dist/server/index.d.cts +1 -1
  32. package/dist/server/index.d.ts +1 -1
  33. package/dist/storage/index.d.cts +1 -1
  34. package/dist/storage/index.d.ts +1 -1
  35. package/dist/storage/libsql/index.d.cts +1 -1
  36. package/dist/storage/libsql/index.d.ts +1 -1
  37. package/dist/telemetry/index.d.cts +1 -1
  38. package/dist/telemetry/index.d.ts +1 -1
  39. package/dist/tools/index.d.cts +1 -1
  40. package/dist/tools/index.d.ts +1 -1
  41. package/dist/utils.d.cts +1 -1
  42. package/dist/utils.d.ts +1 -1
  43. package/dist/voice/index.d.cts +1 -1
  44. package/dist/voice/index.d.ts +1 -1
  45. package/dist/workflows/index.cjs +22 -22
  46. package/dist/workflows/index.d.cts +2 -2
  47. package/dist/workflows/index.d.ts +2 -2
  48. package/dist/workflows/index.js +1 -1
  49. package/dist/workflows/vNext/index.cjs +3 -3
  50. package/dist/workflows/vNext/index.d.cts +2 -2
  51. package/dist/workflows/vNext/index.d.ts +2 -2
  52. package/dist/workflows/vNext/index.js +2 -2
  53. package/package.json +3 -3
  54. package/dist/{chunk-WQVDK654.cjs → chunk-HAFLSGW5.cjs} +1 -1
  55. package/dist/{chunk-TNZMJBPN.js → chunk-URYHOYKQ.js} +1 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkWQVDK654_cjs = require('../chunk-WQVDK654.cjs');
3
+ var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Agent", {
8
8
  enumerable: true,
9
- get: function () { return chunkWQVDK654_cjs.Agent; }
9
+ get: function () { return chunkHAFLSGW5_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 { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument, b1 as MastraLanguageModel, b2 as ToolsInput, bc as ToolsetsInput } from '../base-CP0djERZ.cjs';
4
+ export { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument, b4 as MastraLanguageModel, b1 as ToolsInput, bc as ToolsetsInput } from '../base-B3g_Q3KV.cjs';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '../types-BtMyV38I.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 { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument, b1 as MastraLanguageModel, b2 as ToolsInput, bc as ToolsetsInput } from '../base-ukwrvBvm.js';
4
+ export { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument, b4 as MastraLanguageModel, b1 as ToolsInput, bc as ToolsetsInput } from '../base-Dq_YZkEc.js';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '../types-BtMyV38I.js';
7
7
  import '../runtime-context/index.js';
@@ -1 +1 @@
1
- export { Agent } from '../chunk-TNZMJBPN.js';
1
+ export { Agent } from '../chunk-URYHOYKQ.js';
@@ -2676,4 +2676,4 @@ declare abstract class MastraStorage extends MastraBase {
2676
2676
  }): Promise<WorkflowRun | null>;
2677
2677
  }
2678
2678
 
2679
- export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type MastraLanguageModel as b1, type ToolsInput as b2, type MastraPrimitives as b3, AgentNetwork as b4, type AgentNetworkConfig as b5, type VoiceEventType as b6, type VoiceEventMap as b7, type VoiceConfig as b8, MastraVoice as b9, CompositeVoice as ba, DefaultVoice as bb, type ToolsetsInput as bc, type DynamicArgument as bd, type AgentGenerateOptions as be, type AgentStreamOptions as bf, TABLE_WORKFLOW_SNAPSHOT as bg, TABLE_EVALS as bh, TABLE_MESSAGES as bi, TABLE_THREADS as bj, TABLE_TRACES as bk, TABLE_SCHEMAS as bl, type StorageThreadType as c, type MessageType as d, type StorageGetMessagesArg as e, type WorkflowRun as f, ExecutionEngine as g, type ExecutionGraph as h, type StepResult as i, type StepFlowEntry as j, type ExecuteFunction as k, type SerializedStep as l, type SerializedStepFlowEntry as m, createStep as n, cloneStep as o, createWorkflow as p, cloneWorkflow as q, type WorkflowResult as r, type NewWorkflowConfig as s, NewWorkflow as t, type StepSuccess as u, type StepFailure as v, type StepSuspended as w, type StepsRecord as x, type ExtractSchemaType as y, type ExtractSchemaFromStep as z };
2679
+ export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type ToolsInput as b1, type MastraPrimitives as b2, AgentNetwork as b3, type MastraLanguageModel as b4, type AgentNetworkConfig as b5, type VoiceEventType as b6, type VoiceEventMap as b7, type VoiceConfig as b8, MastraVoice as b9, CompositeVoice as ba, DefaultVoice as bb, type ToolsetsInput as bc, type DynamicArgument as bd, type AgentGenerateOptions as be, type AgentStreamOptions as bf, TABLE_WORKFLOW_SNAPSHOT as bg, TABLE_EVALS as bh, TABLE_MESSAGES as bi, TABLE_THREADS as bj, TABLE_TRACES as bk, TABLE_SCHEMAS as bl, type StorageThreadType as c, type MessageType as d, type StorageGetMessagesArg as e, type WorkflowRun as f, ExecutionEngine as g, type ExecutionGraph as h, type StepResult as i, type StepFlowEntry as j, type ExecuteFunction as k, type SerializedStep as l, type SerializedStepFlowEntry as m, createStep as n, cloneStep as o, createWorkflow as p, cloneWorkflow as q, type WorkflowResult as r, type NewWorkflowConfig as s, NewWorkflow as t, type StepSuccess as u, type StepFailure as v, type StepSuspended as w, type StepsRecord as x, type ExtractSchemaType as y, type ExtractSchemaFromStep as z };
@@ -2676,4 +2676,4 @@ declare abstract class MastraStorage extends MastraBase {
2676
2676
  }): Promise<WorkflowRun | null>;
2677
2677
  }
2678
2678
 
2679
- export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type MastraLanguageModel as b1, type ToolsInput as b2, type MastraPrimitives as b3, AgentNetwork as b4, type AgentNetworkConfig as b5, type VoiceEventType as b6, type VoiceEventMap as b7, type VoiceConfig as b8, MastraVoice as b9, CompositeVoice as ba, DefaultVoice as bb, type ToolsetsInput as bc, type DynamicArgument as bd, type AgentGenerateOptions as be, type AgentStreamOptions as bf, TABLE_WORKFLOW_SNAPSHOT as bg, TABLE_EVALS as bh, TABLE_MESSAGES as bi, TABLE_THREADS as bj, TABLE_TRACES as bk, TABLE_SCHEMAS as bl, type StorageThreadType as c, type MessageType as d, type StorageGetMessagesArg as e, type WorkflowRun as f, ExecutionEngine as g, type ExecutionGraph as h, type StepResult as i, type StepFlowEntry as j, type ExecuteFunction as k, type SerializedStep as l, type SerializedStepFlowEntry as m, createStep as n, cloneStep as o, createWorkflow as p, cloneWorkflow as q, type WorkflowResult as r, type NewWorkflowConfig as s, NewWorkflow as t, type StepSuccess as u, type StepFailure as v, type StepSuspended as w, type StepsRecord as x, type ExtractSchemaType as y, type ExtractSchemaFromStep as z };
2679
+ export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type ToolsInput as b1, type MastraPrimitives as b2, AgentNetwork as b3, type MastraLanguageModel as b4, type AgentNetworkConfig as b5, type VoiceEventType as b6, type VoiceEventMap as b7, type VoiceConfig as b8, MastraVoice as b9, CompositeVoice as ba, DefaultVoice as bb, type ToolsetsInput as bc, type DynamicArgument as bd, type AgentGenerateOptions as be, type AgentStreamOptions as bf, TABLE_WORKFLOW_SNAPSHOT as bg, TABLE_EVALS as bh, TABLE_MESSAGES as bi, TABLE_THREADS as bj, TABLE_TRACES as bk, TABLE_SCHEMAS as bl, type StorageThreadType as c, type MessageType as d, type StorageGetMessagesArg as e, type WorkflowRun as f, ExecutionEngine as g, type ExecutionGraph as h, type StepResult as i, type StepFlowEntry as j, type ExecuteFunction as k, type SerializedStep as l, type SerializedStepFlowEntry as m, createStep as n, cloneStep as o, createWorkflow as p, cloneWorkflow as q, type WorkflowResult as r, type NewWorkflowConfig as s, NewWorkflow as t, type StepSuccess as u, type StepFailure as v, type StepSuspended as w, type StepsRecord as x, type ExtractSchemaType as y, type ExtractSchemaFromStep as z };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWQVDK654_cjs = require('./chunk-WQVDK654.cjs');
3
+ var chunkHAFLSGW5_cjs = require('./chunk-HAFLSGW5.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 chunkWQVDK654_cjs.Agent({
41
+ this.agent = new chunkHAFLSGW5_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-TNZMJBPN.js';
1
+ import { Agent } from './chunk-URYHOYKQ.js';
2
2
  import { CohereClient } from 'cohere-ai';
3
3
 
4
4
  var CohereRelevanceScorer = class {
@@ -1,6 +1,6 @@
1
1
  import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.cjs';
2
2
  export { M as MetricResult } from '../types-BtMyV38I.cjs';
3
- import { F as Agent } from '../base-CP0djERZ.cjs';
3
+ import { F as Agent } from '../base-B3g_Q3KV.cjs';
4
4
  import 'ai';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.js';
2
2
  export { M as MetricResult } from '../types-BtMyV38I.js';
3
- import { F as Agent } from '../base-ukwrvBvm.js';
3
+ import { F as Agent } from '../base-Dq_YZkEc.js';
4
4
  import 'ai';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '@opentelemetry/api';
package/dist/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var chunk6FW4DXZO_cjs = require('./chunk-6FW4DXZO.cjs');
3
4
  var chunkZZRFVSYZ_cjs = require('./chunk-ZZRFVSYZ.cjs');
4
5
  var chunkB7N24G5E_cjs = require('./chunk-B7N24G5E.cjs');
5
6
  var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
@@ -7,8 +8,7 @@ var chunkJSKASUR2_cjs = require('./chunk-JSKASUR2.cjs');
7
8
  var chunkJTKSOVYL_cjs = require('./chunk-JTKSOVYL.cjs');
8
9
  var chunkYAJVZMZH_cjs = require('./chunk-YAJVZMZH.cjs');
9
10
  var chunkXNBNJEES_cjs = require('./chunk-XNBNJEES.cjs');
10
- var chunkQESYVGP2_cjs = require('./chunk-QESYVGP2.cjs');
11
- var chunkWQVDK654_cjs = require('./chunk-WQVDK654.cjs');
11
+ var chunkHAFLSGW5_cjs = require('./chunk-HAFLSGW5.cjs');
12
12
  var chunkMYHX5XVW_cjs = require('./chunk-MYHX5XVW.cjs');
13
13
  var chunkD2Y3ET63_cjs = require('./chunk-D2Y3ET63.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 chunkWQVDK654_cjs.Agent {
21
+ var Agent2 = class extends chunkHAFLSGW5_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,13 +106,25 @@ var MastraVector2 = class extends chunkYAJVZMZH_cjs.MastraVector {
106
106
  };
107
107
 
108
108
  // src/workflows/workflow.warning.ts
109
- var Workflow2 = class extends chunkWQVDK654_cjs.Workflow {
109
+ var Workflow2 = class extends chunkHAFLSGW5_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"');
113
113
  }
114
114
  };
115
115
 
116
+ Object.defineProperty(exports, "CohereRelevanceScorer", {
117
+ enumerable: true,
118
+ get: function () { return chunk6FW4DXZO_cjs.CohereRelevanceScorer; }
119
+ });
120
+ Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
121
+ enumerable: true,
122
+ get: function () { return chunk6FW4DXZO_cjs.MastraAgentRelevanceScorer; }
123
+ });
124
+ Object.defineProperty(exports, "createSimilarityPrompt", {
125
+ enumerable: true,
126
+ get: function () { return chunk6FW4DXZO_cjs.createSimilarityPrompt; }
127
+ });
116
128
  Object.defineProperty(exports, "createMockModel", {
117
129
  enumerable: true,
118
130
  get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
@@ -129,97 +141,85 @@ Object.defineProperty(exports, "memoryDefaultOptions", {
129
141
  enumerable: true,
130
142
  get: function () { return chunkJTKSOVYL_cjs.memoryDefaultOptions; }
131
143
  });
132
- Object.defineProperty(exports, "CohereRelevanceScorer", {
133
- enumerable: true,
134
- get: function () { return chunkQESYVGP2_cjs.CohereRelevanceScorer; }
135
- });
136
- Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
137
- enumerable: true,
138
- get: function () { return chunkQESYVGP2_cjs.MastraAgentRelevanceScorer; }
139
- });
140
- Object.defineProperty(exports, "createSimilarityPrompt", {
141
- enumerable: true,
142
- get: function () { return chunkQESYVGP2_cjs.createSimilarityPrompt; }
143
- });
144
144
  Object.defineProperty(exports, "Step", {
145
145
  enumerable: true,
146
- get: function () { return chunkWQVDK654_cjs.Step; }
146
+ get: function () { return chunkHAFLSGW5_cjs.Step; }
147
147
  });
148
148
  Object.defineProperty(exports, "WhenConditionReturnValue", {
149
149
  enumerable: true,
150
- get: function () { return chunkWQVDK654_cjs.WhenConditionReturnValue; }
150
+ get: function () { return chunkHAFLSGW5_cjs.WhenConditionReturnValue; }
151
151
  });
152
152
  Object.defineProperty(exports, "agentToStep", {
153
153
  enumerable: true,
154
- get: function () { return chunkWQVDK654_cjs.agentToStep; }
154
+ get: function () { return chunkHAFLSGW5_cjs.agentToStep; }
155
155
  });
156
156
  Object.defineProperty(exports, "getActivePathsAndStatus", {
157
157
  enumerable: true,
158
- get: function () { return chunkWQVDK654_cjs.getActivePathsAndStatus; }
158
+ get: function () { return chunkHAFLSGW5_cjs.getActivePathsAndStatus; }
159
159
  });
160
160
  Object.defineProperty(exports, "getResultActivePaths", {
161
161
  enumerable: true,
162
- get: function () { return chunkWQVDK654_cjs.getResultActivePaths; }
162
+ get: function () { return chunkHAFLSGW5_cjs.getResultActivePaths; }
163
163
  });
164
164
  Object.defineProperty(exports, "getStepResult", {
165
165
  enumerable: true,
166
- get: function () { return chunkWQVDK654_cjs.getStepResult; }
166
+ get: function () { return chunkHAFLSGW5_cjs.getStepResult; }
167
167
  });
168
168
  Object.defineProperty(exports, "getSuspendedPaths", {
169
169
  enumerable: true,
170
- get: function () { return chunkWQVDK654_cjs.getSuspendedPaths; }
170
+ get: function () { return chunkHAFLSGW5_cjs.getSuspendedPaths; }
171
171
  });
172
172
  Object.defineProperty(exports, "isAgent", {
173
173
  enumerable: true,
174
- get: function () { return chunkWQVDK654_cjs.isAgent; }
174
+ get: function () { return chunkHAFLSGW5_cjs.isAgent; }
175
175
  });
176
176
  Object.defineProperty(exports, "isConditionalKey", {
177
177
  enumerable: true,
178
- get: function () { return chunkWQVDK654_cjs.isConditionalKey; }
178
+ get: function () { return chunkHAFLSGW5_cjs.isConditionalKey; }
179
179
  });
180
180
  Object.defineProperty(exports, "isErrorEvent", {
181
181
  enumerable: true,
182
- get: function () { return chunkWQVDK654_cjs.isErrorEvent; }
182
+ get: function () { return chunkHAFLSGW5_cjs.isErrorEvent; }
183
183
  });
184
184
  Object.defineProperty(exports, "isFinalState", {
185
185
  enumerable: true,
186
- get: function () { return chunkWQVDK654_cjs.isFinalState; }
186
+ get: function () { return chunkHAFLSGW5_cjs.isFinalState; }
187
187
  });
188
188
  Object.defineProperty(exports, "isLimboState", {
189
189
  enumerable: true,
190
- get: function () { return chunkWQVDK654_cjs.isLimboState; }
190
+ get: function () { return chunkHAFLSGW5_cjs.isLimboState; }
191
191
  });
192
192
  Object.defineProperty(exports, "isTransitionEvent", {
193
193
  enumerable: true,
194
- get: function () { return chunkWQVDK654_cjs.isTransitionEvent; }
194
+ get: function () { return chunkHAFLSGW5_cjs.isTransitionEvent; }
195
195
  });
196
196
  Object.defineProperty(exports, "isVariableReference", {
197
197
  enumerable: true,
198
- get: function () { return chunkWQVDK654_cjs.isVariableReference; }
198
+ get: function () { return chunkHAFLSGW5_cjs.isVariableReference; }
199
199
  });
200
200
  Object.defineProperty(exports, "isWorkflow", {
201
201
  enumerable: true,
202
- get: function () { return chunkWQVDK654_cjs.isWorkflow; }
202
+ get: function () { return chunkHAFLSGW5_cjs.isWorkflow; }
203
203
  });
204
204
  Object.defineProperty(exports, "mergeChildValue", {
205
205
  enumerable: true,
206
- get: function () { return chunkWQVDK654_cjs.mergeChildValue; }
206
+ get: function () { return chunkHAFLSGW5_cjs.mergeChildValue; }
207
207
  });
208
208
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
209
209
  enumerable: true,
210
- get: function () { return chunkWQVDK654_cjs.recursivelyCheckForFinalState; }
210
+ get: function () { return chunkHAFLSGW5_cjs.recursivelyCheckForFinalState; }
211
211
  });
212
212
  Object.defineProperty(exports, "resolveVariables", {
213
213
  enumerable: true,
214
- get: function () { return chunkWQVDK654_cjs.resolveVariables; }
214
+ get: function () { return chunkHAFLSGW5_cjs.resolveVariables; }
215
215
  });
216
216
  Object.defineProperty(exports, "updateStepInHierarchy", {
217
217
  enumerable: true,
218
- get: function () { return chunkWQVDK654_cjs.updateStepInHierarchy; }
218
+ get: function () { return chunkHAFLSGW5_cjs.updateStepInHierarchy; }
219
219
  });
220
220
  Object.defineProperty(exports, "workflowToStep", {
221
221
  enumerable: true,
222
- get: function () { return chunkWQVDK654_cjs.workflowToStep; }
222
+ get: function () { return chunkHAFLSGW5_cjs.workflowToStep; }
223
223
  });
224
224
  Object.defineProperty(exports, "InstrumentClass", {
225
225
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as Metric } from './types-BtMyV38I.cjs';
2
2
  export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.cjs';
3
- import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-CP0djERZ.cjs';
4
- export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-CP0djERZ.cjs';
3
+ import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-B3g_Q3KV.cjs';
4
+ export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-B3g_Q3KV.cjs';
5
5
  import { M as MastraBase$1 } from './base-BihKcqDY.cjs';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BihKcqDY.cjs';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as Metric } from './types-BtMyV38I.js';
2
2
  export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.js';
3
- import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-ukwrvBvm.js';
4
- export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-ukwrvBvm.js';
3
+ import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-Dq_YZkEc.js';
4
+ export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-Dq_YZkEc.js';
5
5
  import { M as MastraBase$1 } from './base-DT2poiVK.js';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-DT2poiVK.js';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-SIQPAONL.js';
1
2
  import { MastraTTS } from './chunk-7IAP7VPO.js';
2
3
  import { Integration, OpenAPIToolset } from './chunk-IBKW4TJU.js';
3
4
  export { createMockModel } from './chunk-HNEE7IF4.js';
@@ -6,9 +7,8 @@ import { MastraMemory } from './chunk-2JNVEJCM.js';
6
7
  export { MemoryProcessor, memoryDefaultOptions } from './chunk-2JNVEJCM.js';
7
8
  import { MastraVector } from './chunk-LXIAHZ45.js';
8
9
  import { MastraStorage } from './chunk-52SRR7WR.js';
9
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-KHSHYGJU.js';
10
- import { Agent, Workflow } from './chunk-TNZMJBPN.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-TNZMJBPN.js';
10
+ import { Agent, Workflow } from './chunk-URYHOYKQ.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-URYHOYKQ.js';
12
12
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-KWYJUFY3.js';
13
13
  import { Tool } from './chunk-ZCJJ6XOH.js';
14
14
  export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-ZCJJ6XOH.js';
@@ -1,5 +1,5 @@
1
1
  import '../base-BihKcqDY.cjs';
2
- import { L as Workflow, C as ToolAction } from '../base-CP0djERZ.cjs';
2
+ import { L as Workflow, C as ToolAction } from '../base-B3g_Q3KV.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-DT2poiVK.js';
2
- import { L as Workflow, C as ToolAction } from '../base-ukwrvBvm.js';
2
+ import { L as Workflow, C as ToolAction } from '../base-Dq_YZkEc.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 { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-CP0djERZ.cjs';
4
+ export { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-B3g_Q3KV.cjs';
5
5
  import '../index-CquI0inB.cjs';
6
6
  import '../runtime-context/index.cjs';
7
7
  import '../base-BihKcqDY.cjs';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-ukwrvBvm.js';
4
+ export { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-Dq_YZkEc.js';
5
5
  import '../index-CquI0inB.js';
6
6
  import '../runtime-context/index.js';
7
7
  import '../base-DT2poiVK.js';
@@ -1,4 +1,4 @@
1
- export { aj as Config, a as Mastra } from '../base-CP0djERZ.cjs';
1
+ export { aj as Config, a as Mastra } from '../base-B3g_Q3KV.cjs';
2
2
  import '../index-CquI0inB.cjs';
3
3
  import '../vector/index.cjs';
4
4
  import '../base-BihKcqDY.cjs';
@@ -1,4 +1,4 @@
1
- export { aj as Config, a as Mastra } from '../base-ukwrvBvm.js';
1
+ export { aj as Config, a as Mastra } from '../base-Dq_YZkEc.js';
2
2
  import '../index-CquI0inB.js';
3
3
  import '../vector/index.js';
4
4
  import '../base-DT2poiVK.js';
@@ -1,4 +1,4 @@
1
- export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-CP0djERZ.cjs';
1
+ export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-B3g_Q3KV.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-ukwrvBvm.js';
1
+ export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-Dq_YZkEc.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWQVDK654_cjs = require('../chunk-WQVDK654.cjs');
3
+ var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.cjs');
4
4
  var chunkD2Y3ET63_cjs = require('../chunk-D2Y3ET63.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 chunkWQVDK654_cjs.Agent({
20
+ this.#routingAgent = new chunkHAFLSGW5_cjs.Agent({
21
21
  name: config.name,
22
22
  instructions: this.getInstructions(),
23
23
  model: this.#model,
@@ -1,4 +1,4 @@
1
- export { b4 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-CP0djERZ.cjs';
1
+ export { b3 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-B3g_Q3KV.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { b4 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-ukwrvBvm.js';
1
+ export { b3 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-Dq_YZkEc.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- import { Agent } from '../chunk-TNZMJBPN.js';
1
+ import { Agent } from '../chunk-URYHOYKQ.js';
2
2
  import { createTool } from '../chunk-ZCJJ6XOH.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 chunkQESYVGP2_cjs = require('../chunk-QESYVGP2.cjs');
3
+ var chunk6FW4DXZO_cjs = require('../chunk-6FW4DXZO.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkQESYVGP2_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunk6FW4DXZO_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkQESYVGP2_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunk6FW4DXZO_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkQESYVGP2_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunk6FW4DXZO_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-BihKcqDY.cjs';
2
- import { b1 as MastraLanguageModel } from '../base-CP0djERZ.cjs';
2
+ import { b4 as MastraLanguageModel } from '../base-B3g_Q3KV.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-DT2poiVK.js';
2
- import { b1 as MastraLanguageModel } from '../base-ukwrvBvm.js';
2
+ import { b4 as MastraLanguageModel } from '../base-Dq_YZkEc.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-KHSHYGJU.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-SIQPAONL.js';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-CP0djERZ.cjs';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-B3g_Q3KV.cjs';
4
4
  import 'ai';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-ukwrvBvm.js';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-Dq_YZkEc.js';
4
4
  import 'ai';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-CP0djERZ.cjs';
1
+ export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-B3g_Q3KV.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-ukwrvBvm.js';
1
+ export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-Dq_YZkEc.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@libsql/client';
2
- import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-CP0djERZ.cjs';
2
+ import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-B3g_Q3KV.cjs';
3
3
  import 'ai';
4
4
  import '../../base-BihKcqDY.cjs';
5
5
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@libsql/client';
2
- import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-ukwrvBvm.js';
2
+ import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-Dq_YZkEc.js';
3
3
  import 'ai';
4
4
  import '../../base-DT2poiVK.js';
5
5
  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 { b as MastraStorage } from '../base-CP0djERZ.cjs';
6
+ import { b as MastraStorage } from '../base-B3g_Q3KV.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 { b as MastraStorage } from '../base-ukwrvBvm.js';
6
+ import { b as MastraStorage } from '../base-Dq_YZkEc.js';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -1,4 +1,4 @@
1
- export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-CP0djERZ.cjs';
1
+ export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-B3g_Q3KV.cjs';
2
2
  export { isVercelTool } from '../utils.cjs';
3
3
  import 'ai';
4
4
  import '../base-BihKcqDY.cjs';
@@ -1,4 +1,4 @@
1
- export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-ukwrvBvm.js';
1
+ export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-Dq_YZkEc.js';
2
2
  export { isVercelTool } from '../utils.js';
3
3
  import 'ai';
4
4
  import '../base-DT2poiVK.js';
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { ar as VercelTool, C as ToolAction, b2 as ToolsInput, a as Mastra, b3 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b4 as AgentNetwork } from './base-CP0djERZ.cjs';
1
+ import { ar as VercelTool, C as ToolAction, b1 as ToolsInput, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b3 as AgentNetwork } from './base-B3g_Q3KV.cjs';
2
2
  import { CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.cjs';
4
4
  import { MastraVector } from './vector/index.cjs';
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ar as VercelTool, C as ToolAction, b2 as ToolsInput, a as Mastra, b3 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b4 as AgentNetwork } from './base-ukwrvBvm.js';
1
+ import { ar as VercelTool, C as ToolAction, b1 as ToolsInput, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b3 as AgentNetwork } from './base-Dq_YZkEc.js';
2
2
  import { CoreMessage, Message } from 'ai';
3
3
  import { MastraTTS } from './tts/index.js';
4
4
  import { MastraVector } from './vector/index.js';
@@ -1,4 +1,4 @@
1
- export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-CP0djERZ.cjs';
1
+ export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-B3g_Q3KV.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-ukwrvBvm.js';
1
+ export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-Dq_YZkEc.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,90 +1,90 @@
1
1
  'use strict';
2
2
 
3
- var chunkWQVDK654_cjs = require('../chunk-WQVDK654.cjs');
3
+ var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Step", {
8
8
  enumerable: true,
9
- get: function () { return chunkWQVDK654_cjs.Step; }
9
+ get: function () { return chunkHAFLSGW5_cjs.Step; }
10
10
  });
11
11
  Object.defineProperty(exports, "WhenConditionReturnValue", {
12
12
  enumerable: true,
13
- get: function () { return chunkWQVDK654_cjs.WhenConditionReturnValue; }
13
+ get: function () { return chunkHAFLSGW5_cjs.WhenConditionReturnValue; }
14
14
  });
15
15
  Object.defineProperty(exports, "Workflow", {
16
16
  enumerable: true,
17
- get: function () { return chunkWQVDK654_cjs.Workflow; }
17
+ get: function () { return chunkHAFLSGW5_cjs.Workflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkWQVDK654_cjs.agentToStep; }
21
+ get: function () { return chunkHAFLSGW5_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "getActivePathsAndStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunkWQVDK654_cjs.getActivePathsAndStatus; }
25
+ get: function () { return chunkHAFLSGW5_cjs.getActivePathsAndStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "getResultActivePaths", {
28
28
  enumerable: true,
29
- get: function () { return chunkWQVDK654_cjs.getResultActivePaths; }
29
+ get: function () { return chunkHAFLSGW5_cjs.getResultActivePaths; }
30
30
  });
31
31
  Object.defineProperty(exports, "getStepResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkWQVDK654_cjs.getStepResult; }
33
+ get: function () { return chunkHAFLSGW5_cjs.getStepResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "getSuspendedPaths", {
36
36
  enumerable: true,
37
- get: function () { return chunkWQVDK654_cjs.getSuspendedPaths; }
37
+ get: function () { return chunkHAFLSGW5_cjs.getSuspendedPaths; }
38
38
  });
39
39
  Object.defineProperty(exports, "isAgent", {
40
40
  enumerable: true,
41
- get: function () { return chunkWQVDK654_cjs.isAgent; }
41
+ get: function () { return chunkHAFLSGW5_cjs.isAgent; }
42
42
  });
43
43
  Object.defineProperty(exports, "isConditionalKey", {
44
44
  enumerable: true,
45
- get: function () { return chunkWQVDK654_cjs.isConditionalKey; }
45
+ get: function () { return chunkHAFLSGW5_cjs.isConditionalKey; }
46
46
  });
47
47
  Object.defineProperty(exports, "isErrorEvent", {
48
48
  enumerable: true,
49
- get: function () { return chunkWQVDK654_cjs.isErrorEvent; }
49
+ get: function () { return chunkHAFLSGW5_cjs.isErrorEvent; }
50
50
  });
51
51
  Object.defineProperty(exports, "isFinalState", {
52
52
  enumerable: true,
53
- get: function () { return chunkWQVDK654_cjs.isFinalState; }
53
+ get: function () { return chunkHAFLSGW5_cjs.isFinalState; }
54
54
  });
55
55
  Object.defineProperty(exports, "isLimboState", {
56
56
  enumerable: true,
57
- get: function () { return chunkWQVDK654_cjs.isLimboState; }
57
+ get: function () { return chunkHAFLSGW5_cjs.isLimboState; }
58
58
  });
59
59
  Object.defineProperty(exports, "isTransitionEvent", {
60
60
  enumerable: true,
61
- get: function () { return chunkWQVDK654_cjs.isTransitionEvent; }
61
+ get: function () { return chunkHAFLSGW5_cjs.isTransitionEvent; }
62
62
  });
63
63
  Object.defineProperty(exports, "isVariableReference", {
64
64
  enumerable: true,
65
- get: function () { return chunkWQVDK654_cjs.isVariableReference; }
65
+ get: function () { return chunkHAFLSGW5_cjs.isVariableReference; }
66
66
  });
67
67
  Object.defineProperty(exports, "isWorkflow", {
68
68
  enumerable: true,
69
- get: function () { return chunkWQVDK654_cjs.isWorkflow; }
69
+ get: function () { return chunkHAFLSGW5_cjs.isWorkflow; }
70
70
  });
71
71
  Object.defineProperty(exports, "mergeChildValue", {
72
72
  enumerable: true,
73
- get: function () { return chunkWQVDK654_cjs.mergeChildValue; }
73
+ get: function () { return chunkHAFLSGW5_cjs.mergeChildValue; }
74
74
  });
75
75
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
76
76
  enumerable: true,
77
- get: function () { return chunkWQVDK654_cjs.recursivelyCheckForFinalState; }
77
+ get: function () { return chunkHAFLSGW5_cjs.recursivelyCheckForFinalState; }
78
78
  });
79
79
  Object.defineProperty(exports, "resolveVariables", {
80
80
  enumerable: true,
81
- get: function () { return chunkWQVDK654_cjs.resolveVariables; }
81
+ get: function () { return chunkHAFLSGW5_cjs.resolveVariables; }
82
82
  });
83
83
  Object.defineProperty(exports, "updateStepInHierarchy", {
84
84
  enumerable: true,
85
- get: function () { return chunkWQVDK654_cjs.updateStepInHierarchy; }
85
+ get: function () { return chunkHAFLSGW5_cjs.updateStepInHierarchy; }
86
86
  });
87
87
  Object.defineProperty(exports, "workflowToStep", {
88
88
  enumerable: true,
89
- get: function () { return chunkWQVDK654_cjs.workflowToStep; }
89
+ get: function () { return chunkHAFLSGW5_cjs.workflowToStep; }
90
90
  });
@@ -1,5 +1,5 @@
1
- import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b2 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-CP0djERZ.cjs';
2
- export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-CP0djERZ.cjs';
1
+ import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b1 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-B3g_Q3KV.cjs';
2
+ export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-B3g_Q3KV.cjs';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.cjs';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
@@ -1,5 +1,5 @@
1
- import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b2 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-ukwrvBvm.js';
2
- export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-ukwrvBvm.js';
1
+ import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b1 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-Dq_YZkEc.js';
2
+ export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-Dq_YZkEc.js';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.js';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
@@ -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-TNZMJBPN.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-URYHOYKQ.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkWQVDK654_cjs = require('../../chunk-WQVDK654.cjs');
3
+ var chunkHAFLSGW5_cjs = require('../../chunk-HAFLSGW5.cjs');
4
4
  var chunkD2Y3ET63_cjs = require('../../chunk-D2Y3ET63.cjs');
5
+ var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
5
6
  var chunkD63P5O4Q_cjs = require('../../chunk-D63P5O4Q.cjs');
6
7
  var chunkO7IW545H_cjs = require('../../chunk-O7IW545H.cjs');
7
- var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
8
8
  var crypto = require('crypto');
9
9
  var EventEmitter = require('events');
10
10
  var zod = require('zod');
@@ -631,7 +631,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
631
631
 
632
632
  // src/workflows/vNext/workflow.ts
633
633
  function createStep(params) {
634
- if (params instanceof chunkWQVDK654_cjs.Agent) {
634
+ if (params instanceof chunkHAFLSGW5_cjs.Agent) {
635
635
  return {
636
636
  id: params.name,
637
637
  // @ts-ignore
@@ -1,5 +1,5 @@
1
- import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-CP0djERZ.cjs';
2
- export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-CP0djERZ.cjs';
1
+ import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-B3g_Q3KV.cjs';
2
+ export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-B3g_Q3KV.cjs';
3
3
  import EventEmitter from 'events';
4
4
  import { Span } from '@opentelemetry/api';
5
5
  import { RuntimeContext } from '../../runtime-context/index.cjs';
@@ -1,5 +1,5 @@
1
- import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-ukwrvBvm.js';
2
- export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-ukwrvBvm.js';
1
+ import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-Dq_YZkEc.js';
2
+ export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-Dq_YZkEc.js';
3
3
  import EventEmitter from 'events';
4
4
  import { Span } from '@opentelemetry/api';
5
5
  import { RuntimeContext } from '../../runtime-context/index.js';
@@ -1,8 +1,8 @@
1
- import { Agent } from '../../chunk-TNZMJBPN.js';
1
+ import { Agent } from '../../chunk-URYHOYKQ.js';
2
2
  import { Tool } from '../../chunk-ZCJJ6XOH.js';
3
+ import { RuntimeContext } from '../../chunk-SGGPJWRQ.js';
3
4
  import { MastraBase } from '../../chunk-CLJQYXNM.js';
4
5
  import { RegisteredLogger } from '../../chunk-2BVZNKLX.js';
5
- import { RuntimeContext } from '../../chunk-SGGPJWRQ.js';
6
6
  import { randomUUID } from 'crypto';
7
7
  import EventEmitter from 'events';
8
8
  import { z } from 'zod';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.9.2-alpha.6",
3
+ "version": "0.9.2",
4
4
  "license": "Elastic-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -154,8 +154,8 @@
154
154
  "tsup": "^8.4.0",
155
155
  "typescript": "^5.8.2",
156
156
  "vitest": "^3.1.2",
157
- "zod": "^3.24.2",
158
- "@internal/lint": "0.0.2"
157
+ "zod": "^3.24.3",
158
+ "@internal/lint": "0.0.3"
159
159
  },
160
160
  "engines": {
161
161
  "node": ">=20"
@@ -4,9 +4,9 @@ var chunkPOEYDVX7_cjs = require('./chunk-POEYDVX7.cjs');
4
4
  var chunkZVBLRU4W_cjs = require('./chunk-ZVBLRU4W.cjs');
5
5
  var chunkMYHX5XVW_cjs = require('./chunk-MYHX5XVW.cjs');
6
6
  var chunkD2Y3ET63_cjs = require('./chunk-D2Y3ET63.cjs');
7
+ var chunkLABUWBKX_cjs = require('./chunk-LABUWBKX.cjs');
7
8
  var chunkD63P5O4Q_cjs = require('./chunk-D63P5O4Q.cjs');
8
9
  var chunkO7IW545H_cjs = require('./chunk-O7IW545H.cjs');
9
- var chunkLABUWBKX_cjs = require('./chunk-LABUWBKX.cjs');
10
10
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
11
11
  var chunkRWTSGWWL_cjs = require('./chunk-RWTSGWWL.cjs');
12
12
  var api = require('@opentelemetry/api');
@@ -2,9 +2,9 @@ import { DefaultVoice } from './chunk-Q6Z2YS6I.js';
2
2
  import { MastraLLM } from './chunk-QV4ZJLWA.js';
3
3
  import { InstrumentClass } from './chunk-KWYJUFY3.js';
4
4
  import { ensureToolProperties, ensureAllMessagesAreCoreMessages, createMastraProxy, makeCoreTool } from './chunk-ZCJJ6XOH.js';
5
+ import { RuntimeContext } from './chunk-SGGPJWRQ.js';
5
6
  import { MastraBase } from './chunk-CLJQYXNM.js';
6
7
  import { RegisteredLogger } from './chunk-2BVZNKLX.js';
7
- import { RuntimeContext } from './chunk-SGGPJWRQ.js';
8
8
  import { executeHook } from './chunk-BB4KXGBU.js';
9
9
  import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
10
10
  import { context, trace } from '@opentelemetry/api';