@mastra/core 0.10.2 → 0.10.4-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/agent/index.cjs +4 -4
  2. package/dist/agent/index.d.cts +4 -3
  3. package/dist/agent/index.d.ts +4 -3
  4. package/dist/agent/index.js +2 -2
  5. package/dist/{base-BJBoI-g2.d.cts → base-BURd0RH-.d.cts} +48 -7
  6. package/dist/{base-BY9WFI65.d.cts → base-Bi9KB0TN.d.ts} +19 -3
  7. package/dist/{base-C0yUw8BC.d.ts → base-CO-L7hF9.d.cts} +19 -3
  8. package/dist/{base-BEjkhvZ_.d.ts → base-nFL4giIu.d.ts} +48 -7
  9. package/dist/base.cjs +2 -2
  10. package/dist/base.d.cts +3 -2
  11. package/dist/base.d.ts +3 -2
  12. package/dist/base.js +1 -1
  13. package/dist/bundler/index.cjs +2 -2
  14. package/dist/bundler/index.d.cts +3 -2
  15. package/dist/bundler/index.d.ts +3 -2
  16. package/dist/bundler/index.js +1 -1
  17. package/dist/{chunk-NMDM4IZN.cjs → chunk-2D7NOO7S.cjs} +16 -11
  18. package/dist/{chunk-3JGO7S6X.cjs → chunk-33LPXZPZ.cjs} +2 -2
  19. package/dist/{chunk-JOCKZ2US.js → chunk-5IEKR756.js} +1 -1
  20. package/dist/{chunk-XXVGT7SJ.js → chunk-5YDTZN2X.js} +32 -9
  21. package/dist/{chunk-DTJ4KVHM.js → chunk-ATXBSEFT.js} +1 -1
  22. package/dist/chunk-BBAQW23O.cjs +68 -0
  23. package/dist/{chunk-OBEALYTK.js → chunk-DO5R43AJ.js} +16 -11
  24. package/dist/{chunk-7AWGDSGR.js → chunk-DU32FMDF.js} +3 -3
  25. package/dist/{chunk-CYJF6U6B.cjs → chunk-FEYYOBBG.cjs} +2 -2
  26. package/dist/{chunk-HZ7ME4LD.cjs → chunk-FFYVLKQW.cjs} +2 -2
  27. package/dist/{chunk-5G3XWKIU.cjs → chunk-FJXOUO3F.cjs} +2 -2
  28. package/dist/{chunk-FGBS7VRU.js → chunk-FNQU5CHU.js} +3 -3
  29. package/dist/{chunk-JBTXWDNO.js → chunk-GEDW7TMB.js} +9 -9
  30. package/dist/{chunk-KUJQVCEL.cjs → chunk-H5IRI46R.cjs} +6 -3
  31. package/dist/{chunk-FLPSXJWQ.js → chunk-HJML6BS7.js} +1 -1
  32. package/dist/{chunk-B2RDYK2X.js → chunk-IG7FGYSW.js} +1 -1
  33. package/dist/{chunk-PMAVDBJY.js → chunk-IM7CLVLZ.js} +1 -1
  34. package/dist/{chunk-XJCP3SLA.js → chunk-JNMQKJH4.js} +1 -1
  35. package/dist/{chunk-WE5ABCZN.js → chunk-KIKYEFSA.js} +3 -3
  36. package/dist/{chunk-VBSKHNCY.cjs → chunk-KQ2KYQLN.cjs} +9 -9
  37. package/dist/{chunk-TAHSAZUN.cjs → chunk-LEK3J7YN.cjs} +2 -2
  38. package/dist/{chunk-TO5645ZP.cjs → chunk-MHN2BI4P.cjs} +25 -25
  39. package/dist/{chunk-VHZPWE5L.cjs → chunk-P3Q73CAW.cjs} +6 -6
  40. package/dist/chunk-PVGSY24V.js +63 -0
  41. package/dist/chunk-QVROTSA5.cjs +408 -0
  42. package/dist/{chunk-SH2C4VTJ.cjs → chunk-QVTGHY2K.cjs} +21 -10
  43. package/dist/{chunk-S4TS74VT.cjs → chunk-RORSYAKV.cjs} +7 -7
  44. package/dist/{chunk-7MWWPVCE.js → chunk-RSN3NZQS.js} +1 -1
  45. package/dist/chunk-TRJIWZKM.js +390 -0
  46. package/dist/{chunk-ZPOETARN.js → chunk-V6I25JEV.js} +1 -1
  47. package/dist/{chunk-SKYO5NFQ.cjs → chunk-VAOBU5SY.cjs} +8 -8
  48. package/dist/{chunk-X6VHQCYN.cjs → chunk-W5I6MEVU.cjs} +2 -2
  49. package/dist/{chunk-JAVP6ACT.js → chunk-YCYAVLYR.js} +4 -1
  50. package/dist/{chunk-TIPFGQCO.js → chunk-YKJZX7TE.js} +18 -7
  51. package/dist/{chunk-RFAN7FAT.cjs → chunk-ZIZ3CVHN.cjs} +32 -9
  52. package/dist/{chunk-PKYG5CWB.cjs → chunk-ZZLBNB3U.cjs} +2 -2
  53. package/dist/deployer/index.cjs +2 -2
  54. package/dist/deployer/index.d.cts +3 -2
  55. package/dist/deployer/index.d.ts +3 -2
  56. package/dist/deployer/index.js +1 -1
  57. package/dist/error/index.cjs +19 -72
  58. package/dist/error/index.d.cts +25 -31
  59. package/dist/error/index.d.ts +25 -31
  60. package/dist/error/index.js +1 -70
  61. package/dist/eval/index.d.cts +4 -3
  62. package/dist/eval/index.d.ts +4 -3
  63. package/dist/index.cjs +45 -45
  64. package/dist/index.d.cts +6 -5
  65. package/dist/index.d.ts +6 -5
  66. package/dist/index.js +13 -13
  67. package/dist/integration/index.d.cts +4 -3
  68. package/dist/integration/index.d.ts +4 -3
  69. package/dist/llm/index.d.cts +4 -3
  70. package/dist/llm/index.d.ts +4 -3
  71. package/dist/logger/index.cjs +10 -10
  72. package/dist/logger/index.d.cts +60 -7
  73. package/dist/logger/index.d.ts +60 -7
  74. package/dist/logger/index.js +2 -2
  75. package/dist/logger-CpL0z5v_.d.cts +158 -0
  76. package/dist/logger-DtVDdb81.d.ts +158 -0
  77. package/dist/mastra/index.cjs +2 -2
  78. package/dist/mastra/index.d.cts +5 -4
  79. package/dist/mastra/index.d.ts +5 -4
  80. package/dist/mastra/index.js +1 -1
  81. package/dist/mcp/index.cjs +4 -4
  82. package/dist/mcp/index.d.cts +5 -4
  83. package/dist/mcp/index.d.ts +5 -4
  84. package/dist/mcp/index.js +3 -3
  85. package/dist/memory/index.cjs +4 -4
  86. package/dist/memory/index.d.cts +4 -3
  87. package/dist/memory/index.d.ts +4 -3
  88. package/dist/memory/index.js +1 -1
  89. package/dist/network/index.cjs +6 -6
  90. package/dist/network/index.d.cts +4 -3
  91. package/dist/network/index.d.ts +4 -3
  92. package/dist/network/index.js +3 -3
  93. package/dist/relevance/index.cjs +4 -4
  94. package/dist/relevance/index.d.cts +5 -4
  95. package/dist/relevance/index.d.ts +5 -4
  96. package/dist/relevance/index.js +1 -1
  97. package/dist/server/index.cjs +2 -2
  98. package/dist/server/index.d.cts +5 -4
  99. package/dist/server/index.d.ts +5 -4
  100. package/dist/server/index.js +1 -1
  101. package/dist/storage/index.cjs +5 -5
  102. package/dist/storage/index.d.cts +6 -5
  103. package/dist/storage/index.d.ts +6 -5
  104. package/dist/storage/index.js +3 -3
  105. package/dist/telemetry/index.d.cts +4 -3
  106. package/dist/telemetry/index.d.ts +4 -3
  107. package/dist/tools/index.d.cts +6 -5
  108. package/dist/tools/index.d.ts +6 -5
  109. package/dist/tts/index.cjs +2 -2
  110. package/dist/tts/index.d.cts +3 -2
  111. package/dist/tts/index.d.ts +3 -2
  112. package/dist/tts/index.js +1 -1
  113. package/dist/utils.cjs +14 -14
  114. package/dist/utils.d.cts +4 -3
  115. package/dist/utils.d.ts +4 -3
  116. package/dist/utils.js +1 -1
  117. package/dist/vector/index.cjs +2 -2
  118. package/dist/vector/index.d.cts +3 -2
  119. package/dist/vector/index.d.ts +3 -2
  120. package/dist/vector/index.js +1 -1
  121. package/dist/voice/index.cjs +4 -4
  122. package/dist/voice/index.d.cts +4 -3
  123. package/dist/voice/index.d.ts +4 -3
  124. package/dist/voice/index.js +1 -1
  125. package/dist/workflows/index.cjs +9 -9
  126. package/dist/workflows/index.d.cts +5 -4
  127. package/dist/workflows/index.d.ts +5 -4
  128. package/dist/workflows/index.js +1 -1
  129. package/dist/workflows/legacy/index.cjs +22 -22
  130. package/dist/workflows/legacy/index.d.cts +5 -4
  131. package/dist/workflows/legacy/index.d.ts +5 -4
  132. package/dist/workflows/legacy/index.js +1 -1
  133. package/package.json +9 -10
  134. package/dist/chunk-WWLMZIHW.cjs +0 -995
  135. package/dist/chunk-Y5BGCPNZ.js +0 -977
  136. package/dist/logger-BF2Sn7JX.d.cts +0 -79
  137. package/dist/logger-BF2Sn7JX.d.ts +0 -79
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { M as Metric } from './types-Bo1uigWx.cjs';
2
2
  export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
3
- import { c as ToolAction, A as Agent$1, ap as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ao as ToolExecutionContext, al as Tool$1, f as Step, e as Workflow$1, aq as WorkflowConfig } from './base-BJBoI-g2.cjs';
4
- export { az as BaseStructuredOutputType, aQ as Config, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, C as CoreTool, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, be as DynamicMapping, ay as EmbedManyResult, ax as EmbedResult, E as EvalRow, b7 as ExecuteFunction, b6 as ExecutionEngine, b5 as ExecutionGraph, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, aD as GenerateReturn, an as InternalCoreTool, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aF as OutputType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, a_ as SerializedStepFlowEntry, aU as SharedMemoryConfig, b9 as StepFailure, aY as StepFlowEntry, bc as StepResult, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bj as StreamEvent, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, bi as VariableReference, V as VercelTool, bk as WatchEvent, b3 as WorkflowResult, w as WorkflowRun, bm as WorkflowRunState, v as WorkflowRuns, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, aP as createMockModel, a$ as createStep, am as createTool, b1 as createWorkflow, aX as memoryDefaultOptions } from './base-BJBoI-g2.cjs';
5
- import { M as MastraBase$1 } from './base-BY9WFI65.cjs';
6
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BY9WFI65.cjs';
7
- import { R as RegisteredLogger } from './logger-BF2Sn7JX.cjs';
3
+ import { c as ToolAction, A as Agent$1, ar as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aq as ToolExecutionContext, an as Tool$1, f as Step, e as Workflow$1, as as WorkflowConfig } from './base-BURd0RH-.cjs';
4
+ export { aB as BaseStructuredOutputType, aS as Config, aw as CoreAssistantMessage, au as CoreMessage, av as CoreSystemMessage, C as CoreTool, ay as CoreToolMessage, ax as CoreUserMessage, aL as DefaultLLMStreamObjectOptions, aK as DefaultLLMStreamOptions, aJ as DefaultLLMTextObjectOptions, aI as DefaultLLMTextOptions, bg as DynamicMapping, aA as EmbedManyResult, az as EmbedResult, E as EvalRow, b9 as ExecuteFunction, b8 as ExecutionEngine, b7 as ExecutionGraph, bj as ExtractSchemaFromStep, bi as ExtractSchemaType, aF as GenerateReturn, ap as InternalCoreTool, aP as LLMInnerStreamOptions, aQ as LLMStreamObjectOptions, aO as LLMStreamOptions, aN as LLMTextObjectOptions, aM as LLMTextOptions, at as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aV as MemoryConfig, aY as MemoryProcessor, aX as MemoryProcessorOpts, aU as MessageResponse, aT as MessageType, aH as OutputType, P as PaginationArgs, z as PaginationInfo, bh as PathsToStringProps, b6 as Run, a$ as SerializedStep, b0 as SerializedStepFlowEntry, aW as SharedMemoryConfig, bb as StepFailure, a_ as StepFlowEntry, be as StepResult, bd as StepRunning, ba as StepSuccess, bc as StepSuspended, bf as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bl as StreamEvent, aG as StreamReturn, aE as StructuredOutput, aD as StructuredOutputArrayItem, aC as StructuredOutputType, bk as VariableReference, V as VercelTool, bm as WatchEvent, b5 as WorkflowResult, w as WorkflowRun, bo as WorkflowRunState, v as WorkflowRuns, bn as ZodPathType, b2 as cloneStep, b4 as cloneWorkflow, aR as createMockModel, b1 as createStep, ao as createTool, b3 as createWorkflow, aZ as memoryDefaultOptions } from './base-BURd0RH-.cjs';
5
+ import { M as MastraBase$1 } from './base-CO-L7hF9.cjs';
6
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry, a as Trace } from './base-CO-L7hF9.cjs';
7
+ import { R as RegisteredLogger } from './logger-CpL0z5v_.cjs';
8
8
  import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
9
9
  export { evaluate } from './eval/index.cjs';
10
10
  import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.cjs';
@@ -32,6 +32,7 @@ import 'ai/test';
32
32
  import 'hono/cors';
33
33
  import 'hono-openapi';
34
34
  import '@opentelemetry/sdk-trace-base';
35
+ import './error/index.cjs';
35
36
  import 'stream';
36
37
  import './bundler/index.cjs';
37
38
  import '@opentelemetry/core';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { M as Metric } from './types-Bo1uigWx.js';
2
2
  export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
3
- import { c as ToolAction, A as Agent$1, ap as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ao as ToolExecutionContext, al as Tool$1, f as Step, e as Workflow$1, aq as WorkflowConfig } from './base-BEjkhvZ_.js';
4
- export { az as BaseStructuredOutputType, aQ as Config, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, C as CoreTool, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, be as DynamicMapping, ay as EmbedManyResult, ax as EmbedResult, E as EvalRow, b7 as ExecuteFunction, b6 as ExecutionEngine, b5 as ExecutionGraph, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, aD as GenerateReturn, an as InternalCoreTool, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aF as OutputType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, a_ as SerializedStepFlowEntry, aU as SharedMemoryConfig, b9 as StepFailure, aY as StepFlowEntry, bc as StepResult, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bj as StreamEvent, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, bi as VariableReference, V as VercelTool, bk as WatchEvent, b3 as WorkflowResult, w as WorkflowRun, bm as WorkflowRunState, v as WorkflowRuns, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, aP as createMockModel, a$ as createStep, am as createTool, b1 as createWorkflow, aX as memoryDefaultOptions } from './base-BEjkhvZ_.js';
5
- import { M as MastraBase$1 } from './base-C0yUw8BC.js';
6
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-C0yUw8BC.js';
7
- import { R as RegisteredLogger } from './logger-BF2Sn7JX.js';
3
+ import { c as ToolAction, A as Agent$1, ar as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, aq as ToolExecutionContext, an as Tool$1, f as Step, e as Workflow$1, as as WorkflowConfig } from './base-nFL4giIu.js';
4
+ export { aB as BaseStructuredOutputType, aS as Config, aw as CoreAssistantMessage, au as CoreMessage, av as CoreSystemMessage, C as CoreTool, ay as CoreToolMessage, ax as CoreUserMessage, aL as DefaultLLMStreamObjectOptions, aK as DefaultLLMStreamOptions, aJ as DefaultLLMTextObjectOptions, aI as DefaultLLMTextOptions, bg as DynamicMapping, aA as EmbedManyResult, az as EmbedResult, E as EvalRow, b9 as ExecuteFunction, b8 as ExecutionEngine, b7 as ExecutionGraph, bj as ExtractSchemaFromStep, bi as ExtractSchemaType, aF as GenerateReturn, ap as InternalCoreTool, aP as LLMInnerStreamOptions, aQ as LLMStreamObjectOptions, aO as LLMStreamOptions, aN as LLMTextObjectOptions, aM as LLMTextOptions, at as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aV as MemoryConfig, aY as MemoryProcessor, aX as MemoryProcessorOpts, aU as MessageResponse, aT as MessageType, aH as OutputType, P as PaginationArgs, z as PaginationInfo, bh as PathsToStringProps, b6 as Run, a$ as SerializedStep, b0 as SerializedStepFlowEntry, aW as SharedMemoryConfig, bb as StepFailure, a_ as StepFlowEntry, be as StepResult, bd as StepRunning, ba as StepSuccess, bc as StepSuspended, bf as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bl as StreamEvent, aG as StreamReturn, aE as StructuredOutput, aD as StructuredOutputArrayItem, aC as StructuredOutputType, bk as VariableReference, V as VercelTool, bm as WatchEvent, b5 as WorkflowResult, w as WorkflowRun, bo as WorkflowRunState, v as WorkflowRuns, bn as ZodPathType, b2 as cloneStep, b4 as cloneWorkflow, aR as createMockModel, b1 as createStep, ao as createTool, b3 as createWorkflow, aZ as memoryDefaultOptions } from './base-nFL4giIu.js';
5
+ import { M as MastraBase$1 } from './base-Bi9KB0TN.js';
6
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry, a as Trace } from './base-Bi9KB0TN.js';
7
+ import { R as RegisteredLogger } from './logger-DtVDdb81.js';
8
8
  import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
9
9
  export { evaluate } from './eval/index.js';
10
10
  import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.js';
@@ -32,6 +32,7 @@ import 'ai/test';
32
32
  import 'hono/cors';
33
33
  import 'hono-openapi';
34
34
  import '@opentelemetry/sdk-trace-base';
35
+ import './error/index.js';
35
36
  import 'stream';
36
37
  import './bundler/index.js';
37
38
  import '@opentelemetry/core';
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
- import { MastraTTS } from './chunk-ZPOETARN.js';
2
- import { MastraVector } from './chunk-PMAVDBJY.js';
3
- import { Workflow } from './chunk-WE5ABCZN.js';
4
- export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-WE5ABCZN.js';
5
- import { MastraMemory } from './chunk-7AWGDSGR.js';
6
- export { MemoryProcessor, memoryDefaultOptions } from './chunk-7AWGDSGR.js';
7
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-B2RDYK2X.js';
8
- import { MastraStorage } from './chunk-7MWWPVCE.js';
1
+ import { MastraTTS } from './chunk-V6I25JEV.js';
2
+ import { MastraVector } from './chunk-IM7CLVLZ.js';
3
+ import { Workflow } from './chunk-KIKYEFSA.js';
4
+ export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-KIKYEFSA.js';
5
+ import { MastraMemory } from './chunk-DU32FMDF.js';
6
+ export { MemoryProcessor, memoryDefaultOptions } from './chunk-DU32FMDF.js';
7
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-IG7FGYSW.js';
8
+ import { MastraStorage } from './chunk-RSN3NZQS.js';
9
9
  export { Metric, evaluate } from './chunk-PK5QRKSG.js';
10
10
  import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
11
11
  export { createMockModel } from './chunk-HNEE7IF4.js';
12
- export { Mastra } from './chunk-TIPFGQCO.js';
13
- import { Agent } from './chunk-JBTXWDNO.js';
12
+ export { Mastra } from './chunk-YKJZX7TE.js';
13
+ import { Agent } from './chunk-GEDW7TMB.js';
14
14
  export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
15
15
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-EWDGXKOQ.js';
16
- export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-Y5BGCPNZ.js';
16
+ export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-TRJIWZKM.js';
17
17
  import { Tool } from './chunk-C4LMN2IR.js';
18
18
  export { createTool } from './chunk-C4LMN2IR.js';
19
- import { MastraDeployer } from './chunk-XJCP3SLA.js';
20
- import { MastraBase } from './chunk-JOCKZ2US.js';
19
+ import { MastraDeployer } from './chunk-JNMQKJH4.js';
20
+ import { MastraBase } from './chunk-5IEKR756.js';
21
21
 
22
22
  // src/agent/index.warning.ts
23
23
  var Agent2 = class extends Agent {
@@ -1,7 +1,8 @@
1
- import '../base-BY9WFI65.cjs';
2
- import { e as Workflow, c as ToolAction } from '../base-BJBoI-g2.cjs';
1
+ import '../base-CO-L7hF9.cjs';
2
+ import { e as Workflow, c as ToolAction } from '../base-BURd0RH-.cjs';
3
3
  import '@opentelemetry/api';
4
- import '../logger-BF2Sn7JX.cjs';
4
+ import '../logger-CpL0z5v_.cjs';
5
+ import '../error/index.cjs';
5
6
  import 'stream';
6
7
  import '@opentelemetry/sdk-trace-base';
7
8
  import 'ai';
@@ -1,7 +1,8 @@
1
- import '../base-C0yUw8BC.js';
2
- import { e as Workflow, c as ToolAction } from '../base-BEjkhvZ_.js';
1
+ import '../base-Bi9KB0TN.js';
2
+ import { e as Workflow, c as ToolAction } from '../base-nFL4giIu.js';
3
3
  import '@opentelemetry/api';
4
- import '../logger-BF2Sn7JX.js';
4
+ import '../logger-DtVDdb81.js';
5
+ import '../error/index.js';
5
6
  import 'stream';
6
7
  import '@opentelemetry/sdk-trace-base';
7
8
  import 'ai';
@@ -1,11 +1,12 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-BJBoI-g2.cjs';
4
+ export { aB as BaseStructuredOutputType, aw as CoreAssistantMessage, au as CoreMessage, av as CoreSystemMessage, ay as CoreToolMessage, ax as CoreUserMessage, aL as DefaultLLMStreamObjectOptions, aK as DefaultLLMStreamOptions, aJ as DefaultLLMTextObjectOptions, aI as DefaultLLMTextOptions, aA as EmbedManyResult, az as EmbedResult, aF as GenerateReturn, aP as LLMInnerStreamOptions, aQ as LLMStreamObjectOptions, aO as LLMStreamOptions, aN as LLMTextObjectOptions, aM as LLMTextOptions, at as LanguageModel, aH as OutputType, aG as StreamReturn, aE as StructuredOutput, aD as StructuredOutputArrayItem, aC as StructuredOutputType, aR as createMockModel } from '../base-BURd0RH-.cjs';
5
5
  import '../runtime-context/index.cjs';
6
- import '../base-BY9WFI65.cjs';
6
+ import '../base-CO-L7hF9.cjs';
7
7
  import '@opentelemetry/api';
8
- import '../logger-BF2Sn7JX.cjs';
8
+ import '../logger-CpL0z5v_.cjs';
9
+ import '../error/index.cjs';
9
10
  import 'stream';
10
11
  import '@opentelemetry/sdk-trace-base';
11
12
  import '../tts/index.cjs';
@@ -1,11 +1,12 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-BEjkhvZ_.js';
4
+ export { aB as BaseStructuredOutputType, aw as CoreAssistantMessage, au as CoreMessage, av as CoreSystemMessage, ay as CoreToolMessage, ax as CoreUserMessage, aL as DefaultLLMStreamObjectOptions, aK as DefaultLLMStreamOptions, aJ as DefaultLLMTextObjectOptions, aI as DefaultLLMTextOptions, aA as EmbedManyResult, az as EmbedResult, aF as GenerateReturn, aP as LLMInnerStreamOptions, aQ as LLMStreamObjectOptions, aO as LLMStreamOptions, aN as LLMTextObjectOptions, aM as LLMTextOptions, at as LanguageModel, aH as OutputType, aG as StreamReturn, aE as StructuredOutput, aD as StructuredOutputArrayItem, aC as StructuredOutputType, aR as createMockModel } from '../base-nFL4giIu.js';
5
5
  import '../runtime-context/index.js';
6
- import '../base-C0yUw8BC.js';
6
+ import '../base-Bi9KB0TN.js';
7
7
  import '@opentelemetry/api';
8
- import '../logger-BF2Sn7JX.js';
8
+ import '../logger-DtVDdb81.js';
9
+ import '../error/index.js';
9
10
  import 'stream';
10
11
  import '@opentelemetry/sdk-trace-base';
11
12
  import '../tts/index.js';
@@ -1,39 +1,39 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMDM4IZN_cjs = require('../chunk-NMDM4IZN.cjs');
4
- var chunkRFAN7FAT_cjs = require('../chunk-RFAN7FAT.cjs');
3
+ var chunk2D7NOO7S_cjs = require('../chunk-2D7NOO7S.cjs');
4
+ var chunkZIZ3CVHN_cjs = require('../chunk-ZIZ3CVHN.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "LoggerTransport", {
9
9
  enumerable: true,
10
- get: function () { return chunkNMDM4IZN_cjs.LoggerTransport; }
10
+ get: function () { return chunk2D7NOO7S_cjs.LoggerTransport; }
11
11
  });
12
12
  Object.defineProperty(exports, "MultiLogger", {
13
13
  enumerable: true,
14
- get: function () { return chunkNMDM4IZN_cjs.MultiLogger; }
14
+ get: function () { return chunk2D7NOO7S_cjs.MultiLogger; }
15
15
  });
16
16
  Object.defineProperty(exports, "noopLogger", {
17
17
  enumerable: true,
18
- get: function () { return chunkNMDM4IZN_cjs.noopLogger; }
18
+ get: function () { return chunk2D7NOO7S_cjs.noopLogger; }
19
19
  });
20
20
  Object.defineProperty(exports, "ConsoleLogger", {
21
21
  enumerable: true,
22
- get: function () { return chunkRFAN7FAT_cjs.ConsoleLogger; }
22
+ get: function () { return chunkZIZ3CVHN_cjs.ConsoleLogger; }
23
23
  });
24
24
  Object.defineProperty(exports, "LogLevel", {
25
25
  enumerable: true,
26
- get: function () { return chunkRFAN7FAT_cjs.LogLevel; }
26
+ get: function () { return chunkZIZ3CVHN_cjs.LogLevel; }
27
27
  });
28
28
  Object.defineProperty(exports, "MastraLogger", {
29
29
  enumerable: true,
30
- get: function () { return chunkRFAN7FAT_cjs.MastraLogger; }
30
+ get: function () { return chunkZIZ3CVHN_cjs.MastraLogger; }
31
31
  });
32
32
  Object.defineProperty(exports, "RegisteredLogger", {
33
33
  enumerable: true,
34
- get: function () { return chunkRFAN7FAT_cjs.RegisteredLogger; }
34
+ get: function () { return chunkZIZ3CVHN_cjs.RegisteredLogger; }
35
35
  });
36
36
  Object.defineProperty(exports, "createLogger", {
37
37
  enumerable: true,
38
- get: function () { return chunkRFAN7FAT_cjs.createLogger; }
38
+ get: function () { return chunkZIZ3CVHN_cjs.createLogger; }
39
39
  });
@@ -1,5 +1,6 @@
1
- import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, M as MastraLogger } from '../logger-BF2Sn7JX.cjs';
2
- export { B as BaseLogMessage, R as RegisteredLogger } from '../logger-BF2Sn7JX.cjs';
1
+ import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, B as BaseLogMessage, M as MastraLogger } from '../logger-CpL0z5v_.cjs';
2
+ export { R as RegisteredLogger } from '../logger-CpL0z5v_.cjs';
3
+ import { MastraError } from '../error/index.cjs';
3
4
  import 'stream';
4
5
 
5
6
  declare class MultiLogger implements IMastraLogger {
@@ -9,12 +10,39 @@ declare class MultiLogger implements IMastraLogger {
9
10
  info(message: string, ...args: any[]): void;
10
11
  warn(message: string, ...args: any[]): void;
11
12
  error(message: string, ...args: any[]): void;
13
+ trackException(error: MastraError): void;
12
14
  getTransports(): Map<string, LoggerTransport>;
13
- getLogs(transportId: string): Promise<any[]>;
15
+ getLogs(transportId: string, params?: {
16
+ fromDate?: Date;
17
+ toDate?: Date;
18
+ logLevel?: LogLevel;
19
+ filters?: Record<string, any>;
20
+ returnPaginationResults?: boolean;
21
+ page?: number;
22
+ perPage?: number;
23
+ }): Promise<{
24
+ logs: BaseLogMessage[];
25
+ total: number;
26
+ page: number;
27
+ perPage: number;
28
+ hasMore: boolean;
29
+ }>;
14
30
  getLogsByRunId(args: {
15
31
  transportId: string;
16
32
  runId: string;
17
- }): Promise<any[]>;
33
+ fromDate?: Date;
34
+ toDate?: Date;
35
+ logLevel?: LogLevel;
36
+ filters?: Record<string, any>;
37
+ page?: number;
38
+ perPage?: number;
39
+ }): Promise<{
40
+ logs: BaseLogMessage[];
41
+ total: number;
42
+ page: number;
43
+ perPage: number;
44
+ hasMore: boolean;
45
+ }>;
18
46
  }
19
47
 
20
48
  declare const noopLogger: IMastraLogger;
@@ -33,11 +61,36 @@ declare class ConsoleLogger extends MastraLogger {
33
61
  info(message: string, ...args: any[]): void;
34
62
  warn(message: string, ...args: any[]): void;
35
63
  error(message: string, ...args: any[]): void;
36
- getLogs(_transportId: string): Promise<never[]>;
64
+ getLogs(_transportId: string, _params?: {
65
+ fromDate?: Date;
66
+ toDate?: Date;
67
+ logLevel?: LogLevel;
68
+ filters?: Record<string, any>;
69
+ page?: number;
70
+ perPage?: number;
71
+ }): Promise<{
72
+ logs: never[];
73
+ total: number;
74
+ page: number;
75
+ perPage: number;
76
+ hasMore: boolean;
77
+ }>;
37
78
  getLogsByRunId(_args: {
38
79
  transportId: string;
39
80
  runId: string;
40
- }): Promise<never[]>;
81
+ fromDate?: Date;
82
+ toDate?: Date;
83
+ logLevel?: LogLevel;
84
+ filters?: Record<string, any>;
85
+ page?: number;
86
+ perPage?: number;
87
+ }): Promise<{
88
+ logs: never[];
89
+ total: number;
90
+ page: number;
91
+ perPage: number;
92
+ hasMore: boolean;
93
+ }>;
41
94
  }
42
95
 
43
- export { ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
96
+ export { BaseLogMessage, ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
@@ -1,5 +1,6 @@
1
- import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, M as MastraLogger } from '../logger-BF2Sn7JX.js';
2
- export { B as BaseLogMessage, R as RegisteredLogger } from '../logger-BF2Sn7JX.js';
1
+ import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, B as BaseLogMessage, M as MastraLogger } from '../logger-DtVDdb81.js';
2
+ export { R as RegisteredLogger } from '../logger-DtVDdb81.js';
3
+ import { MastraError } from '../error/index.js';
3
4
  import 'stream';
4
5
 
5
6
  declare class MultiLogger implements IMastraLogger {
@@ -9,12 +10,39 @@ declare class MultiLogger implements IMastraLogger {
9
10
  info(message: string, ...args: any[]): void;
10
11
  warn(message: string, ...args: any[]): void;
11
12
  error(message: string, ...args: any[]): void;
13
+ trackException(error: MastraError): void;
12
14
  getTransports(): Map<string, LoggerTransport>;
13
- getLogs(transportId: string): Promise<any[]>;
15
+ getLogs(transportId: string, params?: {
16
+ fromDate?: Date;
17
+ toDate?: Date;
18
+ logLevel?: LogLevel;
19
+ filters?: Record<string, any>;
20
+ returnPaginationResults?: boolean;
21
+ page?: number;
22
+ perPage?: number;
23
+ }): Promise<{
24
+ logs: BaseLogMessage[];
25
+ total: number;
26
+ page: number;
27
+ perPage: number;
28
+ hasMore: boolean;
29
+ }>;
14
30
  getLogsByRunId(args: {
15
31
  transportId: string;
16
32
  runId: string;
17
- }): Promise<any[]>;
33
+ fromDate?: Date;
34
+ toDate?: Date;
35
+ logLevel?: LogLevel;
36
+ filters?: Record<string, any>;
37
+ page?: number;
38
+ perPage?: number;
39
+ }): Promise<{
40
+ logs: BaseLogMessage[];
41
+ total: number;
42
+ page: number;
43
+ perPage: number;
44
+ hasMore: boolean;
45
+ }>;
18
46
  }
19
47
 
20
48
  declare const noopLogger: IMastraLogger;
@@ -33,11 +61,36 @@ declare class ConsoleLogger extends MastraLogger {
33
61
  info(message: string, ...args: any[]): void;
34
62
  warn(message: string, ...args: any[]): void;
35
63
  error(message: string, ...args: any[]): void;
36
- getLogs(_transportId: string): Promise<never[]>;
64
+ getLogs(_transportId: string, _params?: {
65
+ fromDate?: Date;
66
+ toDate?: Date;
67
+ logLevel?: LogLevel;
68
+ filters?: Record<string, any>;
69
+ page?: number;
70
+ perPage?: number;
71
+ }): Promise<{
72
+ logs: never[];
73
+ total: number;
74
+ page: number;
75
+ perPage: number;
76
+ hasMore: boolean;
77
+ }>;
37
78
  getLogsByRunId(_args: {
38
79
  transportId: string;
39
80
  runId: string;
40
- }): Promise<never[]>;
81
+ fromDate?: Date;
82
+ toDate?: Date;
83
+ logLevel?: LogLevel;
84
+ filters?: Record<string, any>;
85
+ page?: number;
86
+ perPage?: number;
87
+ }): Promise<{
88
+ logs: never[];
89
+ total: number;
90
+ page: number;
91
+ perPage: number;
92
+ hasMore: boolean;
93
+ }>;
41
94
  }
42
95
 
43
- export { ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
96
+ export { BaseLogMessage, ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
@@ -1,2 +1,2 @@
1
- export { LoggerTransport, MultiLogger, noopLogger } from '../chunk-OBEALYTK.js';
2
- export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-XXVGT7SJ.js';
1
+ export { LoggerTransport, MultiLogger, noopLogger } from '../chunk-DO5R43AJ.js';
2
+ export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-5YDTZN2X.js';
@@ -0,0 +1,158 @@
1
+ import { MastraError } from './error/index.cjs';
2
+ import { Transform } from 'stream';
3
+
4
+ declare const RegisteredLogger: {
5
+ readonly AGENT: "AGENT";
6
+ readonly AUTH: "AUTH";
7
+ readonly NETWORK: "NETWORK";
8
+ readonly WORKFLOW: "WORKFLOW";
9
+ readonly LLM: "LLM";
10
+ readonly TTS: "TTS";
11
+ readonly VOICE: "VOICE";
12
+ readonly VECTOR: "VECTOR";
13
+ readonly BUNDLER: "BUNDLER";
14
+ readonly DEPLOYER: "DEPLOYER";
15
+ readonly MEMORY: "MEMORY";
16
+ readonly STORAGE: "STORAGE";
17
+ readonly EMBEDDINGS: "EMBEDDINGS";
18
+ readonly MCP_SERVER: "MCP_SERVER";
19
+ };
20
+ type RegisteredLogger = (typeof RegisteredLogger)[keyof typeof RegisteredLogger];
21
+ declare const LogLevel: {
22
+ readonly DEBUG: "debug";
23
+ readonly INFO: "info";
24
+ readonly WARN: "warn";
25
+ readonly ERROR: "error";
26
+ readonly NONE: "silent";
27
+ };
28
+ type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
29
+
30
+ interface BaseLogMessage {
31
+ runId?: string;
32
+ msg: string;
33
+ level: LogLevel;
34
+ time: Date;
35
+ pid: number;
36
+ hostname: string;
37
+ name: string;
38
+ }
39
+ declare abstract class LoggerTransport extends Transform {
40
+ constructor(opts?: any);
41
+ getLogsByRunId(_args: {
42
+ runId: string;
43
+ fromDate?: Date;
44
+ toDate?: Date;
45
+ logLevel?: LogLevel;
46
+ filters?: Record<string, any>;
47
+ page?: number;
48
+ perPage?: number;
49
+ }): Promise<{
50
+ logs: BaseLogMessage[];
51
+ total: number;
52
+ page: number;
53
+ perPage: number;
54
+ hasMore: boolean;
55
+ }>;
56
+ getLogs(_args?: {
57
+ fromDate?: Date;
58
+ toDate?: Date;
59
+ logLevel?: LogLevel;
60
+ filters?: Record<string, any>;
61
+ returnPaginationResults?: boolean;
62
+ page?: number;
63
+ perPage?: number;
64
+ }): Promise<{
65
+ logs: BaseLogMessage[];
66
+ total: number;
67
+ page: number;
68
+ perPage: number;
69
+ hasMore: boolean;
70
+ }>;
71
+ }
72
+
73
+ interface IMastraLogger {
74
+ debug(message: string, ...args: any[]): void;
75
+ info(message: string, ...args: any[]): void;
76
+ warn(message: string, ...args: any[]): void;
77
+ error(message: string, ...args: any[]): void;
78
+ trackException(error: MastraError): void;
79
+ getTransports(): Map<string, LoggerTransport>;
80
+ getLogs(_transportId: string, _params?: {
81
+ fromDate?: Date;
82
+ toDate?: Date;
83
+ logLevel?: LogLevel;
84
+ filters?: Record<string, any>;
85
+ page?: number;
86
+ perPage?: number;
87
+ }): Promise<{
88
+ logs: BaseLogMessage[];
89
+ total: number;
90
+ page: number;
91
+ perPage: number;
92
+ hasMore: boolean;
93
+ }>;
94
+ getLogsByRunId(_args: {
95
+ transportId: string;
96
+ runId: string;
97
+ fromDate?: Date;
98
+ toDate?: Date;
99
+ logLevel?: LogLevel;
100
+ filters?: Record<string, any>;
101
+ page?: number;
102
+ perPage?: number;
103
+ }): Promise<{
104
+ logs: BaseLogMessage[];
105
+ total: number;
106
+ page: number;
107
+ perPage: number;
108
+ hasMore: boolean;
109
+ }>;
110
+ }
111
+ declare abstract class MastraLogger implements IMastraLogger {
112
+ protected name: string;
113
+ protected level: LogLevel;
114
+ protected transports: Map<string, LoggerTransport>;
115
+ constructor(options?: {
116
+ name?: string;
117
+ level?: LogLevel;
118
+ transports?: Record<string, LoggerTransport>;
119
+ });
120
+ abstract debug(message: string, ...args: any[]): void;
121
+ abstract info(message: string, ...args: any[]): void;
122
+ abstract warn(message: string, ...args: any[]): void;
123
+ abstract error(message: string, ...args: any[]): void;
124
+ getTransports(): Map<string, LoggerTransport>;
125
+ trackException(_error: MastraError): void;
126
+ getLogs(transportId: string, params?: {
127
+ fromDate?: Date;
128
+ toDate?: Date;
129
+ logLevel?: LogLevel;
130
+ filters?: Record<string, any>;
131
+ page?: number;
132
+ perPage?: number;
133
+ }): Promise<{
134
+ logs: BaseLogMessage[];
135
+ total: number;
136
+ page: number;
137
+ perPage: number;
138
+ hasMore: boolean;
139
+ }>;
140
+ getLogsByRunId({ transportId, runId, fromDate, toDate, logLevel, filters, page, perPage, }: {
141
+ transportId: string;
142
+ runId: string;
143
+ fromDate?: Date;
144
+ toDate?: Date;
145
+ logLevel?: LogLevel;
146
+ filters?: Record<string, any>;
147
+ page?: number;
148
+ perPage?: number;
149
+ }): Promise<{
150
+ logs: BaseLogMessage[];
151
+ total: number;
152
+ page: number;
153
+ perPage: number;
154
+ hasMore: boolean;
155
+ }>;
156
+ }
157
+
158
+ export { type BaseLogMessage as B, type IMastraLogger as I, LoggerTransport as L, MastraLogger as M, RegisteredLogger as R, LogLevel as a };