@mastra/core 0.9.4 → 0.10.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/README.md +3 -2
  2. package/dist/agent/index.cjs +2 -2
  3. package/dist/agent/index.d.cts +13 -14
  4. package/dist/agent/index.d.ts +13 -14
  5. package/dist/agent/index.js +1 -1
  6. package/dist/{base-BCfssGt6.d.ts → base-DttB7sJD.d.ts} +1187 -886
  7. package/dist/{base-CAEcd6q2.d.cts → base-aJ3etsh5.d.cts} +1187 -886
  8. package/dist/{base-H7siSAfu.d.cts → base-aPYtPBT2.d.cts} +3 -3
  9. package/dist/{base-4Z34GQL8.d.ts → base-tc5kgDTD.d.ts} +3 -3
  10. package/dist/base.cjs +2 -2
  11. package/dist/base.d.cts +2 -3
  12. package/dist/base.d.ts +2 -3
  13. package/dist/base.js +1 -1
  14. package/dist/bundler/index.cjs +2 -2
  15. package/dist/bundler/index.d.cts +2 -3
  16. package/dist/bundler/index.d.ts +2 -3
  17. package/dist/bundler/index.js +1 -1
  18. package/dist/{chunk-W4BSLENO.js → chunk-2NTUAUGH.js} +1 -1
  19. package/dist/{chunk-S34QVMKE.js → chunk-2PW6UJMW.js} +77 -10
  20. package/dist/{chunk-WE36CRQV.cjs → chunk-2U7ZZUFO.cjs} +2 -2
  21. package/dist/{workflows/vNext/index.js → chunk-3SQ3G2EJ.js} +19 -16
  22. package/dist/chunk-5HULBQ2W.cjs +38 -0
  23. package/dist/{chunk-XRGDVLM4.cjs → chunk-5JRD3NDP.cjs} +15 -15
  24. package/dist/{chunk-GXKODTLA.cjs → chunk-5W2G7S44.cjs} +83 -68
  25. package/dist/chunk-75Z4BZEE.js +36 -0
  26. package/dist/{chunk-66GQROSI.cjs → chunk-AOGUTJUO.cjs} +58 -51
  27. package/dist/{chunk-WIKOYZ63.js → chunk-BPTSLJHA.js} +9 -9
  28. package/dist/{chunk-JBJ7KXN5.js → chunk-C3ICEF6E.js} +1 -1
  29. package/dist/{chunk-E4FAXBUV.cjs → chunk-CWSFP2HS.cjs} +2 -2
  30. package/dist/{chunk-FW5RS6WV.js → chunk-E7CLY6SK.js} +42 -35
  31. package/dist/{chunk-235X76GC.js → chunk-FI7R232B.js} +2 -2
  32. package/dist/chunk-GQ2XQ4UN.js +321 -0
  33. package/dist/{chunk-H4CEZSRM.js → chunk-J7GDGV6F.js} +1 -1
  34. package/dist/{chunk-NLBJOFNG.js → chunk-JW5TMK2L.js} +1 -1
  35. package/dist/{chunk-NOPY74PV.js → chunk-KJQFFEEQ.js} +1 -1
  36. package/dist/{chunk-V2Q2FEVO.cjs → chunk-KSPHQSZX.cjs} +2 -2
  37. package/dist/{chunk-NZV4OA6P.js → chunk-LHRZV5VG.js} +2 -23
  38. package/dist/chunk-NMDM4IZN.cjs +78 -0
  39. package/dist/chunk-OBEALYTK.js +74 -0
  40. package/dist/{chunk-PEK4TY3P.js → chunk-OCT2762Q.js} +1 -1
  41. package/dist/{chunk-5DUFC7TV.cjs → chunk-P7BGXOQV.cjs} +2 -2
  42. package/dist/{chunk-WQKOM7XM.cjs → chunk-PIZM25KI.cjs} +3 -24
  43. package/dist/{chunk-S7J63JOG.cjs → chunk-RVS6OUJN.cjs} +2 -2
  44. package/dist/{chunk-5JUWUTPJ.cjs → chunk-SKG2NIZW.cjs} +2 -2
  45. package/dist/chunk-SWW4EBUZ.cjs +96 -0
  46. package/dist/{chunk-RGE4UF6A.cjs → chunk-TMPFLJLG.cjs} +2 -2
  47. package/dist/{workflows/vNext/index.cjs → chunk-TTKQ37ZZ.cjs} +24 -21
  48. package/dist/{chunk-EJITEVAB.cjs → chunk-U3L3NEOM.cjs} +81 -10
  49. package/dist/chunk-VHLL4AZK.js +90 -0
  50. package/dist/{chunk-EG74VBSP.cjs → chunk-YEULQPUY.cjs} +6 -6
  51. package/dist/{chunk-SOLXHDNQ.js → chunk-ZB3LEHL2.js} +81 -66
  52. package/dist/{chunk-TAFOICHR.js → chunk-ZKN6HYYQ.js} +1 -1
  53. package/dist/chunk-ZZDAC5KD.cjs +325 -0
  54. package/dist/deployer/index.cjs +2 -2
  55. package/dist/deployer/index.d.cts +2 -3
  56. package/dist/deployer/index.d.ts +2 -3
  57. package/dist/deployer/index.js +1 -1
  58. package/dist/eval/index.d.cts +13 -14
  59. package/dist/eval/index.d.ts +13 -14
  60. package/dist/hooks/index.d.cts +1 -1
  61. package/dist/hooks/index.d.ts +1 -1
  62. package/dist/index.cjs +88 -159
  63. package/dist/index.d.cts +17 -25
  64. package/dist/index.d.ts +17 -25
  65. package/dist/index.js +18 -25
  66. package/dist/integration/index.cjs +3 -3
  67. package/dist/integration/index.d.cts +12 -13
  68. package/dist/integration/index.d.ts +12 -13
  69. package/dist/integration/index.js +1 -1
  70. package/dist/llm/index.d.cts +13 -14
  71. package/dist/llm/index.d.ts +13 -14
  72. package/dist/logger/index.cjs +18 -17
  73. package/dist/logger/index.d.cts +42 -2
  74. package/dist/logger/index.d.ts +42 -2
  75. package/dist/logger/index.js +2 -1
  76. package/dist/{index-QV27jkxQ.d.ts → logger-EhZkzZOr.d.cts} +38 -52
  77. package/dist/{index-QV27jkxQ.d.cts → logger-EhZkzZOr.d.ts} +38 -52
  78. package/dist/mastra/index.cjs +2 -2
  79. package/dist/mastra/index.d.cts +11 -12
  80. package/dist/mastra/index.d.ts +11 -12
  81. package/dist/mastra/index.js +1 -1
  82. package/dist/mcp/index.cjs +75 -17
  83. package/dist/mcp/index.d.cts +14 -15
  84. package/dist/mcp/index.d.ts +14 -15
  85. package/dist/mcp/index.js +69 -15
  86. package/dist/memory/index.cjs +4 -4
  87. package/dist/memory/index.d.cts +12 -13
  88. package/dist/memory/index.d.ts +12 -13
  89. package/dist/memory/index.js +1 -1
  90. package/dist/network/index.cjs +8 -8
  91. package/dist/network/index.d.cts +12 -13
  92. package/dist/network/index.d.ts +12 -13
  93. package/dist/network/index.js +5 -5
  94. package/dist/relevance/index.cjs +4 -4
  95. package/dist/relevance/index.d.cts +15 -16
  96. package/dist/relevance/index.d.ts +15 -16
  97. package/dist/relevance/index.js +1 -1
  98. package/dist/server/index.cjs +4 -0
  99. package/dist/server/index.d.cts +13 -12
  100. package/dist/server/index.d.ts +13 -12
  101. package/dist/server/index.js +4 -1
  102. package/dist/storage/index.cjs +184 -3
  103. package/dist/storage/index.d.cts +83 -13
  104. package/dist/storage/index.d.ts +83 -13
  105. package/dist/storage/index.js +186 -1
  106. package/dist/telemetry/index.d.cts +14 -15
  107. package/dist/telemetry/index.d.ts +14 -15
  108. package/dist/telemetry/otel-vendor.cjs +2 -2
  109. package/dist/telemetry/otel-vendor.d.cts +1 -1
  110. package/dist/telemetry/otel-vendor.d.ts +1 -1
  111. package/dist/telemetry/otel-vendor.js +1 -1
  112. package/dist/tools/index.cjs +4 -4
  113. package/dist/tools/index.d.cts +12 -13
  114. package/dist/tools/index.d.ts +12 -13
  115. package/dist/tools/index.js +1 -1
  116. package/dist/tts/index.cjs +2 -2
  117. package/dist/tts/index.d.cts +2 -3
  118. package/dist/tts/index.d.ts +2 -3
  119. package/dist/tts/index.js +1 -1
  120. package/dist/{types-BtMyV38I.d.ts → types-Bo1uigWx.d.cts} +1 -1
  121. package/dist/{types-BtMyV38I.d.cts → types-Bo1uigWx.d.ts} +1 -1
  122. package/dist/utils.cjs +28 -12
  123. package/dist/utils.d.cts +59 -16
  124. package/dist/utils.d.ts +59 -16
  125. package/dist/utils.js +1 -1
  126. package/dist/vector/filter/index.cjs +189 -7
  127. package/dist/vector/filter/index.js +190 -1
  128. package/dist/vector/index.cjs +2 -2
  129. package/dist/vector/index.d.cts +28 -20
  130. package/dist/vector/index.d.ts +28 -20
  131. package/dist/vector/index.js +1 -1
  132. package/dist/voice/index.cjs +4 -4
  133. package/dist/voice/index.d.cts +12 -13
  134. package/dist/voice/index.d.ts +12 -13
  135. package/dist/voice/index.js +1 -1
  136. package/dist/workflows/index.cjs +17 -69
  137. package/dist/workflows/index.d.cts +197 -77
  138. package/dist/workflows/index.d.ts +197 -77
  139. package/dist/workflows/index.js +1 -1
  140. package/dist/workflows/legacy/index.cjs +90 -0
  141. package/dist/workflows/legacy/index.d.cts +87 -0
  142. package/dist/workflows/legacy/index.d.ts +87 -0
  143. package/dist/workflows/legacy/index.js +1 -0
  144. package/package.json +19 -40
  145. package/workflows/legacy.d.ts +1 -0
  146. package/dist/chunk-4WABQORE.js +0 -781
  147. package/dist/chunk-CIEPFV6B.js +0 -658
  148. package/dist/chunk-CMPPXW4U.js +0 -154
  149. package/dist/chunk-CTKNWYK2.js +0 -131
  150. package/dist/chunk-LGERQTJM.js +0 -190
  151. package/dist/chunk-O44MSFMZ.cjs +0 -168
  152. package/dist/chunk-QDAMIZY3.cjs +0 -783
  153. package/dist/chunk-QHDPLMHB.cjs +0 -667
  154. package/dist/chunk-RAQBTCIR.cjs +0 -134
  155. package/dist/chunk-YK3XJ52U.cjs +0 -192
  156. package/dist/storage/libsql/index.cjs +0 -581
  157. package/dist/storage/libsql/index.d.cts +0 -104
  158. package/dist/storage/libsql/index.d.ts +0 -104
  159. package/dist/storage/libsql/index.js +0 -578
  160. package/dist/vector/libsql/index.cjs +0 -14
  161. package/dist/vector/libsql/index.d.cts +0 -82
  162. package/dist/vector/libsql/index.d.ts +0 -82
  163. package/dist/vector/libsql/index.js +0 -1
  164. package/dist/workflows/vNext/index.d.cts +0 -209
  165. package/dist/workflows/vNext/index.d.ts +0 -209
  166. package/storage/libsql.d.ts +0 -1
  167. package/vector/libsql.d.ts +0 -1
  168. package/workflows/vNext.d.ts +0 -1
package/dist/index.js CHANGED
@@ -1,23 +1,22 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-H4CEZSRM.js';
2
- import { MastraTTS } from './chunk-JBJ7KXN5.js';
3
- import { Integration, OpenAPIToolset } from './chunk-PEK4TY3P.js';
4
- export { createMockModel } from './chunk-HNEE7IF4.js';
5
- export { Mastra } from './chunk-SOLXHDNQ.js';
6
- import { MastraMemory } from './chunk-CIEPFV6B.js';
7
- export { MemoryProcessor, memoryDefaultOptions } from './chunk-CIEPFV6B.js';
8
- import { MastraVector } from './chunk-NZV4OA6P.js';
9
- import { MastraStorage } from './chunk-TAFOICHR.js';
10
- import { Agent, Workflow } from './chunk-FW5RS6WV.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-FW5RS6WV.js';
12
- export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-BFNYQFG2.js';
13
- import { Tool } from './chunk-S34QVMKE.js';
14
- export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-S34QVMKE.js';
1
+ import { MastraTTS } from './chunk-C3ICEF6E.js';
2
+ import { MastraVector } from './chunk-LHRZV5VG.js';
3
+ import { Workflow } from './chunk-3SQ3G2EJ.js';
4
+ export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-3SQ3G2EJ.js';
5
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-J7GDGV6F.js';
6
+ import { MastraStorage } from './chunk-ZKN6HYYQ.js';
15
7
  export { Metric, evaluate } from './chunk-PK5QRKSG.js';
8
+ import { Integration, OpenAPIToolset } from './chunk-OCT2762Q.js';
9
+ export { createMockModel } from './chunk-HNEE7IF4.js';
10
+ export { Mastra } from './chunk-ZB3LEHL2.js';
11
+ import { MastraMemory } from './chunk-GQ2XQ4UN.js';
12
+ export { MemoryProcessor, memoryDefaultOptions } from './chunk-GQ2XQ4UN.js';
13
+ import { Agent } from './chunk-E7CLY6SK.js';
16
14
  export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
17
- import { MastraDeployer } from './chunk-W4BSLENO.js';
18
- import { MastraBase } from './chunk-235X76GC.js';
19
- import { createLogger } from './chunk-CMPPXW4U.js';
20
- export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-CMPPXW4U.js';
15
+ export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-BFNYQFG2.js';
16
+ import { Tool } from './chunk-2PW6UJMW.js';
17
+ export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-2PW6UJMW.js';
18
+ import { MastraDeployer } from './chunk-2NTUAUGH.js';
19
+ import { MastraBase } from './chunk-FI7R232B.js';
21
20
 
22
21
  // src/agent/index.warning.ts
23
22
  var Agent2 = class extends Agent {
@@ -69,12 +68,6 @@ var OpenAPIToolset2 = class extends OpenAPIToolset {
69
68
  }
70
69
  };
71
70
 
72
- // src/logger/index.warning.ts
73
- function createLogger2(options) {
74
- console.warn('Please import "createLogger" from "@mastra/core/logger" instead of "@mastra/core"');
75
- return createLogger(options);
76
- }
77
-
78
71
  // src/memory/index.warning.ts
79
72
  var MastraMemory2 = class extends MastraMemory {
80
73
  constructor(_arg) {
@@ -115,4 +108,4 @@ var Workflow2 = class extends Workflow {
115
108
  }
116
109
  };
117
110
 
118
- export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow, createLogger2 as createLogger };
111
+ export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow };
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk5JUWUTPJ_cjs = require('../chunk-5JUWUTPJ.cjs');
3
+ var chunkSKG2NIZW_cjs = require('../chunk-SKG2NIZW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Integration", {
8
8
  enumerable: true,
9
- get: function () { return chunk5JUWUTPJ_cjs.Integration; }
9
+ get: function () { return chunkSKG2NIZW_cjs.Integration; }
10
10
  });
11
11
  Object.defineProperty(exports, "OpenAPIToolset", {
12
12
  enumerable: true,
13
- get: function () { return chunk5JUWUTPJ_cjs.OpenAPIToolset; }
13
+ get: function () { return chunkSKG2NIZW_cjs.OpenAPIToolset; }
14
14
  });
@@ -1,28 +1,27 @@
1
- import '../base-H7siSAfu.cjs';
2
- import { L as Workflow, C as ToolAction } from '../base-CAEcd6q2.cjs';
1
+ import '../base-aPYtPBT2.cjs';
2
+ import { af as Workflow, a9 as ToolAction } from '../base-aJ3etsh5.cjs';
3
3
  import '@opentelemetry/api';
4
- import '../index-QV27jkxQ.cjs';
4
+ import '../logger-EhZkzZOr.cjs';
5
5
  import 'stream';
6
- import 'pino';
7
6
  import '@opentelemetry/sdk-trace-base';
8
7
  import 'ai';
9
- import '../types-BtMyV38I.cjs';
8
+ import '../types-Bo1uigWx.cjs';
10
9
  import 'sift';
11
10
  import 'zod';
12
11
  import 'json-schema';
12
+ import '../deployer/index.cjs';
13
+ import '../bundler/index.cjs';
14
+ import 'node:http';
15
+ import 'hono';
13
16
  import '../runtime-context/index.cjs';
14
- import 'xstate';
15
- import 'node:events';
16
17
  import '../vector/index.cjs';
17
18
  import '../vector/filter/index.cjs';
18
- import '../tts/index.cjs';
19
- import 'node:http';
20
- import 'hono';
21
- import 'events';
22
- import '../deployer/index.cjs';
23
- import '../bundler/index.cjs';
24
19
  import 'hono/cors';
25
20
  import 'hono-openapi';
21
+ import '../tts/index.cjs';
22
+ import 'xstate';
23
+ import 'node:events';
24
+ import 'events';
26
25
  import 'ai/test';
27
26
 
28
27
  declare class Integration<ToolsParams = void, ApiClient = void> {
@@ -1,28 +1,27 @@
1
- import '../base-4Z34GQL8.js';
2
- import { L as Workflow, C as ToolAction } from '../base-BCfssGt6.js';
1
+ import '../base-tc5kgDTD.js';
2
+ import { af as Workflow, a9 as ToolAction } from '../base-DttB7sJD.js';
3
3
  import '@opentelemetry/api';
4
- import '../index-QV27jkxQ.js';
4
+ import '../logger-EhZkzZOr.js';
5
5
  import 'stream';
6
- import 'pino';
7
6
  import '@opentelemetry/sdk-trace-base';
8
7
  import 'ai';
9
- import '../types-BtMyV38I.js';
8
+ import '../types-Bo1uigWx.js';
10
9
  import 'sift';
11
10
  import 'zod';
12
11
  import 'json-schema';
12
+ import '../deployer/index.js';
13
+ import '../bundler/index.js';
14
+ import 'node:http';
15
+ import 'hono';
13
16
  import '../runtime-context/index.js';
14
- import 'xstate';
15
- import 'node:events';
16
17
  import '../vector/index.js';
17
18
  import '../vector/filter/index.js';
18
- import '../tts/index.js';
19
- import 'node:http';
20
- import 'hono';
21
- import 'events';
22
- import '../deployer/index.js';
23
- import '../bundler/index.js';
24
19
  import 'hono/cors';
25
20
  import 'hono-openapi';
21
+ import '../tts/index.js';
22
+ import 'xstate';
23
+ import 'node:events';
24
+ import 'events';
26
25
  import 'ai/test';
27
26
 
28
27
  declare class Integration<ToolsParams = void, ApiClient = void> {
@@ -1 +1 @@
1
- export { Integration, OpenAPIToolset } from '../chunk-PEK4TY3P.js';
1
+ export { Integration, OpenAPIToolset } from '../chunk-OCT2762Q.js';
@@ -1,26 +1,25 @@
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-CAEcd6q2.cjs';
5
- import '../index-QV27jkxQ.cjs';
4
+ export { ap as BaseStructuredOutputType, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, ao as EmbedManyResult, an as EmbedResult, at as GenerateReturn, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, av as OutputType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, aF as createMockModel } from '../base-aJ3etsh5.cjs';
6
5
  import '../runtime-context/index.cjs';
7
- import '../base-H7siSAfu.cjs';
6
+ import '../base-aPYtPBT2.cjs';
8
7
  import '@opentelemetry/api';
8
+ import '../logger-EhZkzZOr.cjs';
9
+ import 'stream';
9
10
  import '@opentelemetry/sdk-trace-base';
10
- import '../types-BtMyV38I.cjs';
11
+ import '../types-Bo1uigWx.cjs';
11
12
  import 'sift';
12
- import 'xstate';
13
- import 'node:events';
14
- import '../vector/index.cjs';
15
- import '../vector/filter/index.cjs';
16
- import 'stream';
17
- import 'pino';
18
- import '../tts/index.cjs';
19
- import 'node:http';
20
- import 'hono';
21
- import 'events';
22
13
  import '../deployer/index.cjs';
23
14
  import '../bundler/index.cjs';
15
+ import 'node:http';
16
+ import 'hono';
17
+ import '../vector/index.cjs';
18
+ import '../vector/filter/index.cjs';
24
19
  import 'hono/cors';
25
20
  import 'hono-openapi';
21
+ import '../tts/index.cjs';
22
+ import 'xstate';
23
+ import 'node:events';
24
+ import 'events';
26
25
  import 'ai/test';
@@ -1,26 +1,25 @@
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-BCfssGt6.js';
5
- import '../index-QV27jkxQ.js';
4
+ export { ap as BaseStructuredOutputType, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, ao as EmbedManyResult, an as EmbedResult, at as GenerateReturn, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, av as OutputType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, aF as createMockModel } from '../base-DttB7sJD.js';
6
5
  import '../runtime-context/index.js';
7
- import '../base-4Z34GQL8.js';
6
+ import '../base-tc5kgDTD.js';
8
7
  import '@opentelemetry/api';
8
+ import '../logger-EhZkzZOr.js';
9
+ import 'stream';
9
10
  import '@opentelemetry/sdk-trace-base';
10
- import '../types-BtMyV38I.js';
11
+ import '../types-Bo1uigWx.js';
11
12
  import 'sift';
12
- import 'xstate';
13
- import 'node:events';
14
- import '../vector/index.js';
15
- import '../vector/filter/index.js';
16
- import 'stream';
17
- import 'pino';
18
- import '../tts/index.js';
19
- import 'node:http';
20
- import 'hono';
21
- import 'events';
22
13
  import '../deployer/index.js';
23
14
  import '../bundler/index.js';
15
+ import 'node:http';
16
+ import 'hono';
17
+ import '../vector/index.js';
18
+ import '../vector/filter/index.js';
24
19
  import 'hono/cors';
25
20
  import 'hono-openapi';
21
+ import '../tts/index.js';
22
+ import 'xstate';
23
+ import 'node:events';
24
+ import 'events';
26
25
  import 'ai/test';
@@ -1,38 +1,39 @@
1
1
  'use strict';
2
2
 
3
- var chunkO44MSFMZ_cjs = require('../chunk-O44MSFMZ.cjs');
3
+ var chunkNMDM4IZN_cjs = require('../chunk-NMDM4IZN.cjs');
4
+ var chunkSWW4EBUZ_cjs = require('../chunk-SWW4EBUZ.cjs');
4
5
 
5
6
 
6
7
 
7
- Object.defineProperty(exports, "LogLevel", {
8
+ Object.defineProperty(exports, "LoggerTransport", {
8
9
  enumerable: true,
9
- get: function () { return chunkO44MSFMZ_cjs.LogLevel; }
10
+ get: function () { return chunkNMDM4IZN_cjs.LoggerTransport; }
10
11
  });
11
- Object.defineProperty(exports, "Logger", {
12
+ Object.defineProperty(exports, "MultiLogger", {
12
13
  enumerable: true,
13
- get: function () { return chunkO44MSFMZ_cjs.Logger; }
14
+ get: function () { return chunkNMDM4IZN_cjs.MultiLogger; }
14
15
  });
15
- Object.defineProperty(exports, "LoggerTransport", {
16
+ Object.defineProperty(exports, "noopLogger", {
16
17
  enumerable: true,
17
- get: function () { return chunkO44MSFMZ_cjs.LoggerTransport; }
18
+ get: function () { return chunkNMDM4IZN_cjs.noopLogger; }
18
19
  });
19
- Object.defineProperty(exports, "MultiLogger", {
20
+ Object.defineProperty(exports, "ConsoleLogger", {
20
21
  enumerable: true,
21
- get: function () { return chunkO44MSFMZ_cjs.MultiLogger; }
22
+ get: function () { return chunkSWW4EBUZ_cjs.ConsoleLogger; }
22
23
  });
23
- Object.defineProperty(exports, "RegisteredLogger", {
24
+ Object.defineProperty(exports, "LogLevel", {
24
25
  enumerable: true,
25
- get: function () { return chunkO44MSFMZ_cjs.RegisteredLogger; }
26
+ get: function () { return chunkSWW4EBUZ_cjs.LogLevel; }
26
27
  });
27
- Object.defineProperty(exports, "combineLoggers", {
28
+ Object.defineProperty(exports, "MastraLogger", {
28
29
  enumerable: true,
29
- get: function () { return chunkO44MSFMZ_cjs.combineLoggers; }
30
+ get: function () { return chunkSWW4EBUZ_cjs.MastraLogger; }
30
31
  });
31
- Object.defineProperty(exports, "createLogger", {
32
+ Object.defineProperty(exports, "RegisteredLogger", {
32
33
  enumerable: true,
33
- get: function () { return chunkO44MSFMZ_cjs.createLogger; }
34
+ get: function () { return chunkSWW4EBUZ_cjs.RegisteredLogger; }
34
35
  });
35
- Object.defineProperty(exports, "noopLogger", {
36
+ Object.defineProperty(exports, "createLogger", {
36
37
  enumerable: true,
37
- get: function () { return chunkO44MSFMZ_cjs.noopLogger; }
38
+ get: function () { return chunkSWW4EBUZ_cjs.createLogger; }
38
39
  });
@@ -1,3 +1,43 @@
1
+ import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, M as MastraLogger } from '../logger-EhZkzZOr.cjs';
2
+ export { B as BaseLogMessage, R as RegisteredLogger } from '../logger-EhZkzZOr.cjs';
1
3
  import 'stream';
2
- import 'pino';
3
- export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-QV27jkxQ.cjs';
4
+
5
+ declare class MultiLogger implements IMastraLogger {
6
+ private loggers;
7
+ constructor(loggers: IMastraLogger[]);
8
+ debug(message: string, ...args: any[]): void;
9
+ info(message: string, ...args: any[]): void;
10
+ warn(message: string, ...args: any[]): void;
11
+ error(message: string, ...args: any[]): void;
12
+ getTransports(): Map<string, LoggerTransport>;
13
+ getLogs(transportId: string): Promise<any[]>;
14
+ getLogsByRunId(args: {
15
+ transportId: string;
16
+ runId: string;
17
+ }): Promise<any[]>;
18
+ }
19
+
20
+ declare const noopLogger: IMastraLogger;
21
+
22
+ declare const createLogger: (options: {
23
+ name?: string;
24
+ level?: LogLevel;
25
+ transports?: Record<string, LoggerTransport>;
26
+ }) => ConsoleLogger;
27
+ declare class ConsoleLogger extends MastraLogger {
28
+ constructor(options?: {
29
+ name?: string;
30
+ level?: LogLevel;
31
+ });
32
+ debug(message: string, ...args: any[]): void;
33
+ info(message: string, ...args: any[]): void;
34
+ warn(message: string, ...args: any[]): void;
35
+ error(message: string, ...args: any[]): void;
36
+ getLogs(_transportId: string): Promise<never[]>;
37
+ getLogsByRunId(_args: {
38
+ transportId: string;
39
+ runId: string;
40
+ }): Promise<never[]>;
41
+ }
42
+
43
+ export { ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
@@ -1,3 +1,43 @@
1
+ import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, M as MastraLogger } from '../logger-EhZkzZOr.js';
2
+ export { B as BaseLogMessage, R as RegisteredLogger } from '../logger-EhZkzZOr.js';
1
3
  import 'stream';
2
- import 'pino';
3
- export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-QV27jkxQ.js';
4
+
5
+ declare class MultiLogger implements IMastraLogger {
6
+ private loggers;
7
+ constructor(loggers: IMastraLogger[]);
8
+ debug(message: string, ...args: any[]): void;
9
+ info(message: string, ...args: any[]): void;
10
+ warn(message: string, ...args: any[]): void;
11
+ error(message: string, ...args: any[]): void;
12
+ getTransports(): Map<string, LoggerTransport>;
13
+ getLogs(transportId: string): Promise<any[]>;
14
+ getLogsByRunId(args: {
15
+ transportId: string;
16
+ runId: string;
17
+ }): Promise<any[]>;
18
+ }
19
+
20
+ declare const noopLogger: IMastraLogger;
21
+
22
+ declare const createLogger: (options: {
23
+ name?: string;
24
+ level?: LogLevel;
25
+ transports?: Record<string, LoggerTransport>;
26
+ }) => ConsoleLogger;
27
+ declare class ConsoleLogger extends MastraLogger {
28
+ constructor(options?: {
29
+ name?: string;
30
+ level?: LogLevel;
31
+ });
32
+ debug(message: string, ...args: any[]): void;
33
+ info(message: string, ...args: any[]): void;
34
+ warn(message: string, ...args: any[]): void;
35
+ error(message: string, ...args: any[]): void;
36
+ getLogs(_transportId: string): Promise<never[]>;
37
+ getLogsByRunId(_args: {
38
+ transportId: string;
39
+ runId: string;
40
+ }): Promise<never[]>;
41
+ }
42
+
43
+ export { ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
@@ -1 +1,2 @@
1
- export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-CMPPXW4U.js';
1
+ export { LoggerTransport, MultiLogger, noopLogger } from '../chunk-OBEALYTK.js';
2
+ export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-VHLL4AZK.js';
@@ -1,11 +1,21 @@
1
1
  import { Transform } from 'stream';
2
- import pino from 'pino';
3
2
 
4
- type RunStatus = 'created' | 'running' | 'completed' | 'failed';
5
- type Run = {
3
+ interface BaseLogMessage {
6
4
  runId?: string;
7
- runStatus?: RunStatus;
8
- };
5
+ msg: string;
6
+ level: number;
7
+ time: Date;
8
+ pid: number;
9
+ hostname: string;
10
+ name: string;
11
+ }
12
+ declare abstract class LoggerTransport extends Transform {
13
+ constructor(opts?: any);
14
+ getLogsByRunId(_args: {
15
+ runId: string;
16
+ }): Promise<BaseLogMessage[]>;
17
+ getLogs(): Promise<BaseLogMessage[]>;
18
+ }
9
19
 
10
20
  declare const RegisteredLogger: {
11
21
  readonly AGENT: "AGENT";
@@ -31,62 +41,38 @@ declare const LogLevel: {
31
41
  readonly NONE: "silent";
32
42
  };
33
43
  type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
34
- interface BaseLogMessage extends Run {
35
- msg: string;
36
- level: number;
37
- time: Date;
38
- pid: number;
39
- hostname: string;
40
- name: string;
41
- }
42
- declare class LoggerTransport extends Transform {
43
- constructor(opts?: any);
44
+
45
+ interface IMastraLogger {
46
+ debug(message: string, ...args: any[]): void;
47
+ info(message: string, ...args: any[]): void;
48
+ warn(message: string, ...args: any[]): void;
49
+ error(message: string, ...args: any[]): void;
50
+ getTransports(): Map<string, LoggerTransport>;
51
+ getLogs(_transportId: string): Promise<any[]>;
44
52
  getLogsByRunId(_args: {
53
+ transportId: string;
45
54
  runId: string;
46
- }): Promise<BaseLogMessage[]>;
47
- getLogs(): Promise<BaseLogMessage[]>;
55
+ }): Promise<any[]>;
48
56
  }
49
- type TransportMap = Record<string, LoggerTransport>;
50
- declare class Logger {
51
- protected logger: pino.Logger;
52
- transports: TransportMap;
57
+ declare abstract class MastraLogger implements IMastraLogger {
58
+ protected name: string;
59
+ protected level: LogLevel;
60
+ protected transports: Map<string, LoggerTransport>;
53
61
  constructor(options?: {
54
62
  name?: string;
55
63
  level?: LogLevel;
56
- transports?: TransportMap;
57
- overrideDefaultTransports?: boolean;
64
+ transports?: Record<string, LoggerTransport>;
58
65
  });
59
- debug(message: string, args?: Record<string, any>): void;
60
- info(message: string, args?: Record<string, any>): void;
61
- warn(message: string, args?: Record<string, any>): void;
62
- error(message: string, args?: Record<string, any>): void;
63
- createStream(): Transform;
66
+ abstract debug(message: string, ...args: any[]): void;
67
+ abstract info(message: string, ...args: any[]): void;
68
+ abstract warn(message: string, ...args: any[]): void;
69
+ abstract error(message: string, ...args: any[]): void;
70
+ getTransports(): Map<string, LoggerTransport>;
64
71
  getLogs(transportId: string): Promise<BaseLogMessage[]>;
65
- getLogsByRunId({ runId, transportId }: {
72
+ getLogsByRunId({ transportId, runId }: {
66
73
  transportId: string;
67
74
  runId: string;
68
- }): Promise<BaseLogMessage[] | undefined>;
69
- }
70
- declare function createLogger(options: {
71
- name?: string;
72
- level?: LogLevel;
73
- transports?: TransportMap;
74
- }): Logger;
75
- declare class MultiLogger {
76
- private loggers;
77
- constructor(loggers: Logger[]);
78
- debug(message: string, ...args: any[]): void;
79
- info(message: string, ...args: any[]): void;
80
- warn(message: string, ...args: any[]): void;
81
- error(message: string, ...args: any[]): void;
75
+ }): Promise<BaseLogMessage[]>;
82
76
  }
83
- declare function combineLoggers(loggers: Logger[]): MultiLogger;
84
- declare const noopLogger: {
85
- debug: () => void;
86
- info: () => void;
87
- warn: () => void;
88
- error: () => void;
89
- cleanup: () => Promise<void>;
90
- };
91
77
 
92
- export { type BaseLogMessage as B, Logger as L, MultiLogger as M, RegisteredLogger as R, type TransportMap as T, LogLevel as a, LoggerTransport as b, combineLoggers as c, type Run as d, createLogger as e, noopLogger as n };
78
+ export { type BaseLogMessage as B, type IMastraLogger as I, LoggerTransport as L, MastraLogger as M, RegisteredLogger as R, LogLevel as a };
@@ -1,11 +1,21 @@
1
1
  import { Transform } from 'stream';
2
- import pino from 'pino';
3
2
 
4
- type RunStatus = 'created' | 'running' | 'completed' | 'failed';
5
- type Run = {
3
+ interface BaseLogMessage {
6
4
  runId?: string;
7
- runStatus?: RunStatus;
8
- };
5
+ msg: string;
6
+ level: number;
7
+ time: Date;
8
+ pid: number;
9
+ hostname: string;
10
+ name: string;
11
+ }
12
+ declare abstract class LoggerTransport extends Transform {
13
+ constructor(opts?: any);
14
+ getLogsByRunId(_args: {
15
+ runId: string;
16
+ }): Promise<BaseLogMessage[]>;
17
+ getLogs(): Promise<BaseLogMessage[]>;
18
+ }
9
19
 
10
20
  declare const RegisteredLogger: {
11
21
  readonly AGENT: "AGENT";
@@ -31,62 +41,38 @@ declare const LogLevel: {
31
41
  readonly NONE: "silent";
32
42
  };
33
43
  type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
34
- interface BaseLogMessage extends Run {
35
- msg: string;
36
- level: number;
37
- time: Date;
38
- pid: number;
39
- hostname: string;
40
- name: string;
41
- }
42
- declare class LoggerTransport extends Transform {
43
- constructor(opts?: any);
44
+
45
+ interface IMastraLogger {
46
+ debug(message: string, ...args: any[]): void;
47
+ info(message: string, ...args: any[]): void;
48
+ warn(message: string, ...args: any[]): void;
49
+ error(message: string, ...args: any[]): void;
50
+ getTransports(): Map<string, LoggerTransport>;
51
+ getLogs(_transportId: string): Promise<any[]>;
44
52
  getLogsByRunId(_args: {
53
+ transportId: string;
45
54
  runId: string;
46
- }): Promise<BaseLogMessage[]>;
47
- getLogs(): Promise<BaseLogMessage[]>;
55
+ }): Promise<any[]>;
48
56
  }
49
- type TransportMap = Record<string, LoggerTransport>;
50
- declare class Logger {
51
- protected logger: pino.Logger;
52
- transports: TransportMap;
57
+ declare abstract class MastraLogger implements IMastraLogger {
58
+ protected name: string;
59
+ protected level: LogLevel;
60
+ protected transports: Map<string, LoggerTransport>;
53
61
  constructor(options?: {
54
62
  name?: string;
55
63
  level?: LogLevel;
56
- transports?: TransportMap;
57
- overrideDefaultTransports?: boolean;
64
+ transports?: Record<string, LoggerTransport>;
58
65
  });
59
- debug(message: string, args?: Record<string, any>): void;
60
- info(message: string, args?: Record<string, any>): void;
61
- warn(message: string, args?: Record<string, any>): void;
62
- error(message: string, args?: Record<string, any>): void;
63
- createStream(): Transform;
66
+ abstract debug(message: string, ...args: any[]): void;
67
+ abstract info(message: string, ...args: any[]): void;
68
+ abstract warn(message: string, ...args: any[]): void;
69
+ abstract error(message: string, ...args: any[]): void;
70
+ getTransports(): Map<string, LoggerTransport>;
64
71
  getLogs(transportId: string): Promise<BaseLogMessage[]>;
65
- getLogsByRunId({ runId, transportId }: {
72
+ getLogsByRunId({ transportId, runId }: {
66
73
  transportId: string;
67
74
  runId: string;
68
- }): Promise<BaseLogMessage[] | undefined>;
69
- }
70
- declare function createLogger(options: {
71
- name?: string;
72
- level?: LogLevel;
73
- transports?: TransportMap;
74
- }): Logger;
75
- declare class MultiLogger {
76
- private loggers;
77
- constructor(loggers: Logger[]);
78
- debug(message: string, ...args: any[]): void;
79
- info(message: string, ...args: any[]): void;
80
- warn(message: string, ...args: any[]): void;
81
- error(message: string, ...args: any[]): void;
75
+ }): Promise<BaseLogMessage[]>;
82
76
  }
83
- declare function combineLoggers(loggers: Logger[]): MultiLogger;
84
- declare const noopLogger: {
85
- debug: () => void;
86
- info: () => void;
87
- warn: () => void;
88
- error: () => void;
89
- cleanup: () => Promise<void>;
90
- };
91
77
 
92
- export { type BaseLogMessage as B, Logger as L, MultiLogger as M, RegisteredLogger as R, type TransportMap as T, LogLevel as a, LoggerTransport as b, combineLoggers as c, type Run as d, createLogger as e, noopLogger as n };
78
+ export { type BaseLogMessage as B, type IMastraLogger as I, LoggerTransport as L, MastraLogger as M, RegisteredLogger as R, LogLevel as a };
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGXKODTLA_cjs = require('../chunk-GXKODTLA.cjs');
3
+ var chunk5W2G7S44_cjs = require('../chunk-5W2G7S44.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkGXKODTLA_cjs.Mastra; }
9
+ get: function () { return chunk5W2G7S44_cjs.Mastra; }
10
10
  });