@mastra/core 0.10.3 → 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-Dmg7H-Iz.d.cts → base-BURd0RH-.d.cts} +46 -6
  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-Bdo-CPMn.d.ts → base-nFL4giIu.d.ts} +46 -6
  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-5EB62G6T.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-ERUGEZPR.cjs → chunk-FJXOUO3F.cjs} +2 -2
  28. package/dist/{chunk-FGBS7VRU.js → chunk-FNQU5CHU.js} +3 -3
  29. package/dist/{chunk-B4TMM6NT.js → chunk-GEDW7TMB.js} +7 -7
  30. package/dist/{chunk-FHLDRRKJ.cjs → chunk-H5IRI46R.cjs} +3 -3
  31. package/dist/{chunk-FLPSXJWQ.js → chunk-HJML6BS7.js} +1 -1
  32. package/dist/{chunk-4TEWSQS5.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-K7BZ4VXX.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-MVXVUMLA.cjs → chunk-MHN2BI4P.cjs} +23 -23
  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-LMTSGD2E.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-IBIGJYTD.cjs → chunk-VAOBU5SY.cjs} +8 -8
  48. package/dist/{chunk-X6VHQCYN.cjs → chunk-W5I6MEVU.cjs} +2 -2
  49. package/dist/{chunk-677GIYFF.js → chunk-YCYAVLYR.js} +1 -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 +51 -51
  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 +8 -9
  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
@@ -1,75 +1,22 @@
1
1
  'use strict';
2
2
 
3
- // src/error/index.ts
4
- var Level = /* @__PURE__ */ ((Level2) => {
5
- Level2["ERROR"] = "ERROR";
6
- Level2["WARNING"] = "WARNING";
7
- Level2["INFO"] = "INFO";
8
- Level2["DEBUG"] = "DEBUG";
9
- return Level2;
10
- })(Level || {});
11
- var Domain = /* @__PURE__ */ ((Domain2) => {
12
- Domain2["TOOL"] = "TOOL";
13
- Domain2["AGENT"] = "AGENT";
14
- Domain2["MCP"] = "MCP";
15
- Domain2["UNKNOWN"] = "UNKNOWN";
16
- return Domain2;
17
- })(Domain || {});
18
- var ErrorCategory = /* @__PURE__ */ ((ErrorCategory2) => {
19
- ErrorCategory2["UNKNOWN"] = "UNKNOWN";
20
- ErrorCategory2["USER"] = "USER";
21
- ErrorCategory2["SYSTEM"] = "SYSTEM";
22
- return ErrorCategory2;
23
- })(ErrorCategory || {});
24
- var MastraError = class extends Error {
25
- id;
26
- domain;
27
- category;
28
- originalError;
29
- details = {};
30
- constructor(errorDefinition, originalError) {
31
- const message = errorDefinition.text;
32
- super(message, originalError);
33
- this.id = errorDefinition.id;
34
- this.domain = errorDefinition.domain;
35
- this.category = errorDefinition.category;
36
- this.originalError = originalError;
37
- this.details = errorDefinition.details ?? {};
38
- Object.setPrototypeOf(this, new.target.prototype);
39
- }
40
- /**
41
- * Returns a structured representation of the error, useful for logging or API responses.
42
- */
43
- toJSONDetails() {
44
- return {
45
- message: this.message,
46
- domain: this.domain,
47
- category: this.category,
48
- stack: this.stack,
49
- originalError: this.originalError,
50
- details: this.details
51
- };
52
- }
53
- toJSON() {
54
- return {
55
- message: this.message,
56
- details: this.toJSONDetails(),
57
- code: this.id
58
- };
59
- }
60
- };
61
- var error = new MastraError({
62
- id: "BASE_TEST_001",
63
- text: "This is a base test error",
64
- domain: "AGENT" /* AGENT */,
65
- category: "UNKNOWN" /* UNKNOWN */,
66
- details: {
67
- tset: "lalal"
68
- }
69
- });
70
- console.log(error.toJSON());
3
+ var chunkBBAQW23O_cjs = require('../chunk-BBAQW23O.cjs');
4
+
71
5
 
72
- exports.Domain = Domain;
73
- exports.ErrorCategory = ErrorCategory;
74
- exports.Level = Level;
75
- exports.MastraError = MastraError;
6
+
7
+ Object.defineProperty(exports, "ErrorCategory", {
8
+ enumerable: true,
9
+ get: function () { return chunkBBAQW23O_cjs.ErrorCategory; }
10
+ });
11
+ Object.defineProperty(exports, "ErrorDomain", {
12
+ enumerable: true,
13
+ get: function () { return chunkBBAQW23O_cjs.ErrorDomain; }
14
+ });
15
+ Object.defineProperty(exports, "MastraBaseError", {
16
+ enumerable: true,
17
+ get: function () { return chunkBBAQW23O_cjs.MastraBaseError; }
18
+ });
19
+ Object.defineProperty(exports, "MastraError", {
20
+ enumerable: true,
21
+ get: function () { return chunkBBAQW23O_cjs.MastraError; }
22
+ });
@@ -1,10 +1,4 @@
1
- declare enum Level {
2
- ERROR = "ERROR",
3
- WARNING = "WARNING",
4
- INFO = "INFO",
5
- DEBUG = "DEBUG"
6
- }
7
- declare enum Domain {
1
+ declare enum ErrorDomain {
8
2
  TOOL = "TOOL",
9
3
  AGENT = "AGENT",
10
4
  MCP = "MCP",
@@ -13,7 +7,8 @@ declare enum Domain {
13
7
  declare enum ErrorCategory {
14
8
  UNKNOWN = "UNKNOWN",
15
9
  USER = "USER",
16
- SYSTEM = "SYSTEM"
10
+ SYSTEM = "SYSTEM",
11
+ THIRD_PARTY = "THIRD_PARTY"
17
12
  }
18
13
  type Scalar = null | boolean | number | string;
19
14
  type Json<T> = [T] extends [Scalar | undefined] ? Scalar : [T] extends [{
@@ -25,56 +20,55 @@ type Json<T> = [T] extends [Scalar | undefined] ? Scalar : [T] extends [{
25
20
  * Defines the structure for an error's metadata.
26
21
  * This is used to create instances of MastraError.
27
22
  */
28
- interface IErrorDefinition {
23
+ interface IErrorDefinition<D, C> {
29
24
  /** Unique identifier for the error. */
30
- id: string | number;
25
+ id: Uppercase<string>;
31
26
  /**
32
- * The error message template or a function to generate it.
33
- * If a function, it receives context to interpolate values.
27
+ * Optional custom error message that overrides the original error message.
28
+ * If not provided, the original error message will be used, or 'Unknown error' if no error is provided.
34
29
  */
35
- text: string;
30
+ text?: string;
36
31
  /**
37
32
  * Functional domain of the error (e.g., CONFIG, BUILD, API).
38
33
  */
39
- domain: `${Domain}`;
34
+ domain: D;
40
35
  /** Broad category of the error (e.g., USER, SYSTEM, THIRD_PARTY). */
41
- category: `${ErrorCategory}`;
36
+ category: C;
42
37
  details?: Record<string, Json<Scalar>>;
43
38
  }
44
39
  /**
45
40
  * Base error class for the Mastra ecosystem.
46
41
  * It standardizes error reporting and can be extended for more specific error types.
47
42
  */
48
- declare class MastraError extends Error {
49
- readonly id: string | number;
50
- readonly domain: `${Domain}`;
51
- readonly category: `${ErrorCategory}`;
52
- readonly originalError?: Error;
43
+ declare class MastraBaseError<D, C> extends Error {
44
+ readonly id: Uppercase<string>;
45
+ readonly domain: D;
46
+ readonly category: C;
53
47
  readonly details?: Record<string, Json<Scalar>>;
54
- constructor(errorDefinition: IErrorDefinition, originalError?: Error | MastraError);
48
+ readonly message: string;
49
+ constructor(errorDefinition: IErrorDefinition<D, C>, originalError?: string | Error | MastraBaseError<D, C> | unknown);
55
50
  /**
56
51
  * Returns a structured representation of the error, useful for logging or API responses.
57
52
  */
58
53
  toJSONDetails(): {
59
54
  message: string;
60
- domain: "TOOL" | "AGENT" | "MCP" | "UNKNOWN";
61
- category: "UNKNOWN" | "USER" | "SYSTEM";
62
- stack: string | undefined;
63
- originalError: Error | undefined;
55
+ domain: D;
56
+ category: C;
64
57
  details: Record<string, Scalar> | undefined;
65
58
  };
66
59
  toJSON(): {
67
60
  message: string;
68
61
  details: {
69
62
  message: string;
70
- domain: "TOOL" | "AGENT" | "MCP" | "UNKNOWN";
71
- category: "UNKNOWN" | "USER" | "SYSTEM";
72
- stack: string | undefined;
73
- originalError: Error | undefined;
63
+ domain: D;
64
+ category: C;
74
65
  details: Record<string, Scalar> | undefined;
75
66
  };
76
- code: string | number;
67
+ code: Uppercase<string>;
77
68
  };
69
+ toString(): string;
70
+ }
71
+ declare class MastraError extends MastraBaseError<`${ErrorDomain}`, `${ErrorCategory}`> {
78
72
  }
79
73
 
80
- export { Domain, ErrorCategory, type IErrorDefinition, Level, MastraError };
74
+ export { ErrorCategory, ErrorDomain, type IErrorDefinition, MastraBaseError, MastraError };
@@ -1,10 +1,4 @@
1
- declare enum Level {
2
- ERROR = "ERROR",
3
- WARNING = "WARNING",
4
- INFO = "INFO",
5
- DEBUG = "DEBUG"
6
- }
7
- declare enum Domain {
1
+ declare enum ErrorDomain {
8
2
  TOOL = "TOOL",
9
3
  AGENT = "AGENT",
10
4
  MCP = "MCP",
@@ -13,7 +7,8 @@ declare enum Domain {
13
7
  declare enum ErrorCategory {
14
8
  UNKNOWN = "UNKNOWN",
15
9
  USER = "USER",
16
- SYSTEM = "SYSTEM"
10
+ SYSTEM = "SYSTEM",
11
+ THIRD_PARTY = "THIRD_PARTY"
17
12
  }
18
13
  type Scalar = null | boolean | number | string;
19
14
  type Json<T> = [T] extends [Scalar | undefined] ? Scalar : [T] extends [{
@@ -25,56 +20,55 @@ type Json<T> = [T] extends [Scalar | undefined] ? Scalar : [T] extends [{
25
20
  * Defines the structure for an error's metadata.
26
21
  * This is used to create instances of MastraError.
27
22
  */
28
- interface IErrorDefinition {
23
+ interface IErrorDefinition<D, C> {
29
24
  /** Unique identifier for the error. */
30
- id: string | number;
25
+ id: Uppercase<string>;
31
26
  /**
32
- * The error message template or a function to generate it.
33
- * If a function, it receives context to interpolate values.
27
+ * Optional custom error message that overrides the original error message.
28
+ * If not provided, the original error message will be used, or 'Unknown error' if no error is provided.
34
29
  */
35
- text: string;
30
+ text?: string;
36
31
  /**
37
32
  * Functional domain of the error (e.g., CONFIG, BUILD, API).
38
33
  */
39
- domain: `${Domain}`;
34
+ domain: D;
40
35
  /** Broad category of the error (e.g., USER, SYSTEM, THIRD_PARTY). */
41
- category: `${ErrorCategory}`;
36
+ category: C;
42
37
  details?: Record<string, Json<Scalar>>;
43
38
  }
44
39
  /**
45
40
  * Base error class for the Mastra ecosystem.
46
41
  * It standardizes error reporting and can be extended for more specific error types.
47
42
  */
48
- declare class MastraError extends Error {
49
- readonly id: string | number;
50
- readonly domain: `${Domain}`;
51
- readonly category: `${ErrorCategory}`;
52
- readonly originalError?: Error;
43
+ declare class MastraBaseError<D, C> extends Error {
44
+ readonly id: Uppercase<string>;
45
+ readonly domain: D;
46
+ readonly category: C;
53
47
  readonly details?: Record<string, Json<Scalar>>;
54
- constructor(errorDefinition: IErrorDefinition, originalError?: Error | MastraError);
48
+ readonly message: string;
49
+ constructor(errorDefinition: IErrorDefinition<D, C>, originalError?: string | Error | MastraBaseError<D, C> | unknown);
55
50
  /**
56
51
  * Returns a structured representation of the error, useful for logging or API responses.
57
52
  */
58
53
  toJSONDetails(): {
59
54
  message: string;
60
- domain: "TOOL" | "AGENT" | "MCP" | "UNKNOWN";
61
- category: "UNKNOWN" | "USER" | "SYSTEM";
62
- stack: string | undefined;
63
- originalError: Error | undefined;
55
+ domain: D;
56
+ category: C;
64
57
  details: Record<string, Scalar> | undefined;
65
58
  };
66
59
  toJSON(): {
67
60
  message: string;
68
61
  details: {
69
62
  message: string;
70
- domain: "TOOL" | "AGENT" | "MCP" | "UNKNOWN";
71
- category: "UNKNOWN" | "USER" | "SYSTEM";
72
- stack: string | undefined;
73
- originalError: Error | undefined;
63
+ domain: D;
64
+ category: C;
74
65
  details: Record<string, Scalar> | undefined;
75
66
  };
76
- code: string | number;
67
+ code: Uppercase<string>;
77
68
  };
69
+ toString(): string;
70
+ }
71
+ declare class MastraError extends MastraBaseError<`${ErrorDomain}`, `${ErrorCategory}`> {
78
72
  }
79
73
 
80
- export { Domain, ErrorCategory, type IErrorDefinition, Level, MastraError };
74
+ export { ErrorCategory, ErrorDomain, type IErrorDefinition, MastraBaseError, MastraError };
@@ -1,70 +1 @@
1
- // src/error/index.ts
2
- var Level = /* @__PURE__ */ ((Level2) => {
3
- Level2["ERROR"] = "ERROR";
4
- Level2["WARNING"] = "WARNING";
5
- Level2["INFO"] = "INFO";
6
- Level2["DEBUG"] = "DEBUG";
7
- return Level2;
8
- })(Level || {});
9
- var Domain = /* @__PURE__ */ ((Domain2) => {
10
- Domain2["TOOL"] = "TOOL";
11
- Domain2["AGENT"] = "AGENT";
12
- Domain2["MCP"] = "MCP";
13
- Domain2["UNKNOWN"] = "UNKNOWN";
14
- return Domain2;
15
- })(Domain || {});
16
- var ErrorCategory = /* @__PURE__ */ ((ErrorCategory2) => {
17
- ErrorCategory2["UNKNOWN"] = "UNKNOWN";
18
- ErrorCategory2["USER"] = "USER";
19
- ErrorCategory2["SYSTEM"] = "SYSTEM";
20
- return ErrorCategory2;
21
- })(ErrorCategory || {});
22
- var MastraError = class extends Error {
23
- id;
24
- domain;
25
- category;
26
- originalError;
27
- details = {};
28
- constructor(errorDefinition, originalError) {
29
- const message = errorDefinition.text;
30
- super(message, originalError);
31
- this.id = errorDefinition.id;
32
- this.domain = errorDefinition.domain;
33
- this.category = errorDefinition.category;
34
- this.originalError = originalError;
35
- this.details = errorDefinition.details ?? {};
36
- Object.setPrototypeOf(this, new.target.prototype);
37
- }
38
- /**
39
- * Returns a structured representation of the error, useful for logging or API responses.
40
- */
41
- toJSONDetails() {
42
- return {
43
- message: this.message,
44
- domain: this.domain,
45
- category: this.category,
46
- stack: this.stack,
47
- originalError: this.originalError,
48
- details: this.details
49
- };
50
- }
51
- toJSON() {
52
- return {
53
- message: this.message,
54
- details: this.toJSONDetails(),
55
- code: this.id
56
- };
57
- }
58
- };
59
- var error = new MastraError({
60
- id: "BASE_TEST_001",
61
- text: "This is a base test error",
62
- domain: "AGENT" /* AGENT */,
63
- category: "UNKNOWN" /* UNKNOWN */,
64
- details: {
65
- tset: "lalal"
66
- }
67
- });
68
- console.log(error.toJSON());
69
-
70
- export { Domain, ErrorCategory, Level, MastraError };
1
+ export { ErrorCategory, ErrorDomain, MastraBaseError, MastraError } from '../chunk-PVGSY24V.js';
@@ -1,10 +1,11 @@
1
1
  import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.cjs';
2
2
  export { a as MetricResult } from '../types-Bo1uigWx.cjs';
3
- import { A as Agent } from '../base-Dmg7H-Iz.cjs';
3
+ import { A as Agent } from '../base-BURd0RH-.cjs';
4
4
  import 'ai';
5
- import '../base-BY9WFI65.cjs';
5
+ import '../base-CO-L7hF9.cjs';
6
6
  import '@opentelemetry/api';
7
- import '../logger-BF2Sn7JX.cjs';
7
+ import '../logger-CpL0z5v_.cjs';
8
+ import '../error/index.cjs';
8
9
  import 'stream';
9
10
  import '@opentelemetry/sdk-trace-base';
10
11
  import 'zod';
@@ -1,10 +1,11 @@
1
1
  import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.js';
2
2
  export { a as MetricResult } from '../types-Bo1uigWx.js';
3
- import { A as Agent } from '../base-Bdo-CPMn.js';
3
+ import { A as Agent } from '../base-nFL4giIu.js';
4
4
  import 'ai';
5
- import '../base-C0yUw8BC.js';
5
+ import '../base-Bi9KB0TN.js';
6
6
  import '@opentelemetry/api';
7
- import '../logger-BF2Sn7JX.js';
7
+ import '../logger-DtVDdb81.js';
8
+ import '../error/index.js';
8
9
  import 'stream';
9
10
  import '@opentelemetry/sdk-trace-base';
10
11
  import 'zod';
package/dist/index.cjs CHANGED
@@ -1,25 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunkHZ7ME4LD_cjs = require('./chunk-HZ7ME4LD.cjs');
4
- var chunkTAHSAZUN_cjs = require('./chunk-TAHSAZUN.cjs');
5
- var chunkIBIGJYTD_cjs = require('./chunk-IBIGJYTD.cjs');
6
- var chunkERUGEZPR_cjs = require('./chunk-ERUGEZPR.cjs');
7
- var chunkX6VHQCYN_cjs = require('./chunk-X6VHQCYN.cjs');
3
+ var chunkFFYVLKQW_cjs = require('./chunk-FFYVLKQW.cjs');
4
+ var chunkLEK3J7YN_cjs = require('./chunk-LEK3J7YN.cjs');
5
+ var chunkVAOBU5SY_cjs = require('./chunk-VAOBU5SY.cjs');
6
+ var chunkRORSYAKV_cjs = require('./chunk-RORSYAKV.cjs');
7
+ var chunkFJXOUO3F_cjs = require('./chunk-FJXOUO3F.cjs');
8
+ var chunkW5I6MEVU_cjs = require('./chunk-W5I6MEVU.cjs');
8
9
  var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
9
10
  var chunkB7SQOKEC_cjs = require('./chunk-B7SQOKEC.cjs');
10
11
  var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
11
- var chunkLMTSGD2E_cjs = require('./chunk-LMTSGD2E.cjs');
12
- var chunkSH2C4VTJ_cjs = require('./chunk-SH2C4VTJ.cjs');
13
- var chunkMVXVUMLA_cjs = require('./chunk-MVXVUMLA.cjs');
12
+ var chunkQVTGHY2K_cjs = require('./chunk-QVTGHY2K.cjs');
13
+ var chunkMHN2BI4P_cjs = require('./chunk-MHN2BI4P.cjs');
14
14
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
15
15
  var chunkTICDQWVJ_cjs = require('./chunk-TICDQWVJ.cjs');
16
- var chunkWWLMZIHW_cjs = require('./chunk-WWLMZIHW.cjs');
16
+ var chunkQVROTSA5_cjs = require('./chunk-QVROTSA5.cjs');
17
17
  var chunk4Z3OU5RY_cjs = require('./chunk-4Z3OU5RY.cjs');
18
- var chunkPKYG5CWB_cjs = require('./chunk-PKYG5CWB.cjs');
19
- var chunkVHZPWE5L_cjs = require('./chunk-VHZPWE5L.cjs');
18
+ var chunkZZLBNB3U_cjs = require('./chunk-ZZLBNB3U.cjs');
19
+ var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
20
20
 
21
21
  // src/agent/index.warning.ts
22
- var Agent2 = class extends chunkMVXVUMLA_cjs.Agent {
22
+ var Agent2 = class extends chunkMHN2BI4P_cjs.Agent {
23
23
  constructor(config) {
24
24
  super(config);
25
25
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -27,7 +27,7 @@ var Agent2 = class extends chunkMVXVUMLA_cjs.Agent {
27
27
  };
28
28
 
29
29
  // src/base.warning.ts
30
- var MastraBase2 = class extends chunkVHZPWE5L_cjs.MastraBase {
30
+ var MastraBase2 = class extends chunkP3Q73CAW_cjs.MastraBase {
31
31
  constructor(args) {
32
32
  super(args);
33
33
  this.logger.warn('Please import "MastraBase" from "@mastra/core/base" instead of "@mastra/core"');
@@ -35,7 +35,7 @@ var MastraBase2 = class extends chunkVHZPWE5L_cjs.MastraBase {
35
35
  };
36
36
 
37
37
  // src/deployer/index.warning.ts
38
- var MastraDeployer2 = class extends chunkPKYG5CWB_cjs.MastraDeployer {
38
+ var MastraDeployer2 = class extends chunkZZLBNB3U_cjs.MastraDeployer {
39
39
  constructor(args) {
40
40
  super(args);
41
41
  this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
@@ -43,7 +43,7 @@ var MastraDeployer2 = class extends chunkPKYG5CWB_cjs.MastraDeployer {
43
43
  };
44
44
 
45
45
  // src/storage/base.warning.ts
46
- var MastraStorage2 = class extends chunkX6VHQCYN_cjs.MastraStorage {
46
+ var MastraStorage2 = class extends chunkW5I6MEVU_cjs.MastraStorage {
47
47
  constructor({ name }) {
48
48
  super({
49
49
  name
@@ -69,7 +69,7 @@ var OpenAPIToolset2 = class extends chunkB7SQOKEC_cjs.OpenAPIToolset {
69
69
  };
70
70
 
71
71
  // src/memory/index.warning.ts
72
- var MastraMemory2 = class extends chunkLMTSGD2E_cjs.MastraMemory {
72
+ var MastraMemory2 = class extends chunkRORSYAKV_cjs.MastraMemory {
73
73
  constructor(_arg) {
74
74
  super({ name: `Deprecated memory` });
75
75
  this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
@@ -85,7 +85,7 @@ var Tool2 = class extends chunk4Z3OU5RY_cjs.Tool {
85
85
  };
86
86
 
87
87
  // src/tts/index.warning.ts
88
- var MastraTTS2 = class extends chunkHZ7ME4LD_cjs.MastraTTS {
88
+ var MastraTTS2 = class extends chunkFFYVLKQW_cjs.MastraTTS {
89
89
  constructor(args) {
90
90
  super(args);
91
91
  this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
@@ -93,7 +93,7 @@ var MastraTTS2 = class extends chunkHZ7ME4LD_cjs.MastraTTS {
93
93
  };
94
94
 
95
95
  // src/vector/index.warning.ts
96
- var MastraVector2 = class extends chunkTAHSAZUN_cjs.MastraVector {
96
+ var MastraVector2 = class extends chunkLEK3J7YN_cjs.MastraVector {
97
97
  constructor() {
98
98
  super();
99
99
  this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
@@ -101,7 +101,7 @@ var MastraVector2 = class extends chunkTAHSAZUN_cjs.MastraVector {
101
101
  };
102
102
 
103
103
  // src/workflows/workflow.warning.ts
104
- var Workflow2 = class extends chunkIBIGJYTD_cjs.Workflow {
104
+ var Workflow2 = class extends chunkVAOBU5SY_cjs.Workflow {
105
105
  constructor(args) {
106
106
  super(args);
107
107
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -110,43 +110,51 @@ var Workflow2 = class extends chunkIBIGJYTD_cjs.Workflow {
110
110
 
111
111
  Object.defineProperty(exports, "DefaultExecutionEngine", {
112
112
  enumerable: true,
113
- get: function () { return chunkIBIGJYTD_cjs.DefaultExecutionEngine; }
113
+ get: function () { return chunkVAOBU5SY_cjs.DefaultExecutionEngine; }
114
114
  });
115
115
  Object.defineProperty(exports, "ExecutionEngine", {
116
116
  enumerable: true,
117
- get: function () { return chunkIBIGJYTD_cjs.ExecutionEngine; }
117
+ get: function () { return chunkVAOBU5SY_cjs.ExecutionEngine; }
118
118
  });
119
119
  Object.defineProperty(exports, "Run", {
120
120
  enumerable: true,
121
- get: function () { return chunkIBIGJYTD_cjs.Run; }
121
+ get: function () { return chunkVAOBU5SY_cjs.Run; }
122
122
  });
123
123
  Object.defineProperty(exports, "cloneStep", {
124
124
  enumerable: true,
125
- get: function () { return chunkIBIGJYTD_cjs.cloneStep; }
125
+ get: function () { return chunkVAOBU5SY_cjs.cloneStep; }
126
126
  });
127
127
  Object.defineProperty(exports, "cloneWorkflow", {
128
128
  enumerable: true,
129
- get: function () { return chunkIBIGJYTD_cjs.cloneWorkflow; }
129
+ get: function () { return chunkVAOBU5SY_cjs.cloneWorkflow; }
130
130
  });
131
131
  Object.defineProperty(exports, "createStep", {
132
132
  enumerable: true,
133
- get: function () { return chunkIBIGJYTD_cjs.createStep; }
133
+ get: function () { return chunkVAOBU5SY_cjs.createStep; }
134
134
  });
135
135
  Object.defineProperty(exports, "createWorkflow", {
136
136
  enumerable: true,
137
- get: function () { return chunkIBIGJYTD_cjs.createWorkflow; }
137
+ get: function () { return chunkVAOBU5SY_cjs.createWorkflow; }
138
+ });
139
+ Object.defineProperty(exports, "MemoryProcessor", {
140
+ enumerable: true,
141
+ get: function () { return chunkRORSYAKV_cjs.MemoryProcessor; }
142
+ });
143
+ Object.defineProperty(exports, "memoryDefaultOptions", {
144
+ enumerable: true,
145
+ get: function () { return chunkRORSYAKV_cjs.memoryDefaultOptions; }
138
146
  });
139
147
  Object.defineProperty(exports, "CohereRelevanceScorer", {
140
148
  enumerable: true,
141
- get: function () { return chunkERUGEZPR_cjs.CohereRelevanceScorer; }
149
+ get: function () { return chunkFJXOUO3F_cjs.CohereRelevanceScorer; }
142
150
  });
143
151
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
144
152
  enumerable: true,
145
- get: function () { return chunkERUGEZPR_cjs.MastraAgentRelevanceScorer; }
153
+ get: function () { return chunkFJXOUO3F_cjs.MastraAgentRelevanceScorer; }
146
154
  });
147
155
  Object.defineProperty(exports, "createSimilarityPrompt", {
148
156
  enumerable: true,
149
- get: function () { return chunkERUGEZPR_cjs.createSimilarityPrompt; }
157
+ get: function () { return chunkFJXOUO3F_cjs.createSimilarityPrompt; }
150
158
  });
151
159
  Object.defineProperty(exports, "Metric", {
152
160
  enumerable: true,
@@ -160,17 +168,9 @@ Object.defineProperty(exports, "createMockModel", {
160
168
  enumerable: true,
161
169
  get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
162
170
  });
163
- Object.defineProperty(exports, "MemoryProcessor", {
164
- enumerable: true,
165
- get: function () { return chunkLMTSGD2E_cjs.MemoryProcessor; }
166
- });
167
- Object.defineProperty(exports, "memoryDefaultOptions", {
168
- enumerable: true,
169
- get: function () { return chunkLMTSGD2E_cjs.memoryDefaultOptions; }
170
- });
171
171
  Object.defineProperty(exports, "Mastra", {
172
172
  enumerable: true,
173
- get: function () { return chunkSH2C4VTJ_cjs.Mastra; }
173
+ get: function () { return chunkQVTGHY2K_cjs.Mastra; }
174
174
  });
175
175
  Object.defineProperty(exports, "AvailableHooks", {
176
176
  enumerable: true,
@@ -210,55 +210,55 @@ Object.defineProperty(exports, "withSpan", {
210
210
  });
211
211
  Object.defineProperty(exports, "checkEvalStorageFields", {
212
212
  enumerable: true,
213
- get: function () { return chunkWWLMZIHW_cjs.checkEvalStorageFields; }
213
+ get: function () { return chunkQVROTSA5_cjs.checkEvalStorageFields; }
214
214
  });
215
215
  Object.defineProperty(exports, "createMastraProxy", {
216
216
  enumerable: true,
217
- get: function () { return chunkWWLMZIHW_cjs.createMastraProxy; }
217
+ get: function () { return chunkQVROTSA5_cjs.createMastraProxy; }
218
218
  });
219
219
  Object.defineProperty(exports, "deepMerge", {
220
220
  enumerable: true,
221
- get: function () { return chunkWWLMZIHW_cjs.deepMerge; }
221
+ get: function () { return chunkQVROTSA5_cjs.deepMerge; }
222
222
  });
223
223
  Object.defineProperty(exports, "delay", {
224
224
  enumerable: true,
225
- get: function () { return chunkWWLMZIHW_cjs.delay; }
225
+ get: function () { return chunkQVROTSA5_cjs.delay; }
226
226
  });
227
227
  Object.defineProperty(exports, "ensureToolProperties", {
228
228
  enumerable: true,
229
- get: function () { return chunkWWLMZIHW_cjs.ensureToolProperties; }
229
+ get: function () { return chunkQVROTSA5_cjs.ensureToolProperties; }
230
230
  });
231
231
  Object.defineProperty(exports, "isCoreMessage", {
232
232
  enumerable: true,
233
- get: function () { return chunkWWLMZIHW_cjs.isCoreMessage; }
233
+ get: function () { return chunkQVROTSA5_cjs.isCoreMessage; }
234
234
  });
235
235
  Object.defineProperty(exports, "isUiMessage", {
236
236
  enumerable: true,
237
- get: function () { return chunkWWLMZIHW_cjs.isUiMessage; }
237
+ get: function () { return chunkQVROTSA5_cjs.isUiMessage; }
238
238
  });
239
239
  Object.defineProperty(exports, "isZodType", {
240
240
  enumerable: true,
241
- get: function () { return chunkWWLMZIHW_cjs.isZodType; }
241
+ get: function () { return chunkQVROTSA5_cjs.isZodType; }
242
242
  });
243
243
  Object.defineProperty(exports, "makeCoreTool", {
244
244
  enumerable: true,
245
- get: function () { return chunkWWLMZIHW_cjs.makeCoreTool; }
245
+ get: function () { return chunkQVROTSA5_cjs.makeCoreTool; }
246
246
  });
247
247
  Object.defineProperty(exports, "maskStreamTags", {
248
248
  enumerable: true,
249
- get: function () { return chunkWWLMZIHW_cjs.maskStreamTags; }
249
+ get: function () { return chunkQVROTSA5_cjs.maskStreamTags; }
250
250
  });
251
251
  Object.defineProperty(exports, "parseFieldKey", {
252
252
  enumerable: true,
253
- get: function () { return chunkWWLMZIHW_cjs.parseFieldKey; }
253
+ get: function () { return chunkQVROTSA5_cjs.parseFieldKey; }
254
254
  });
255
255
  Object.defineProperty(exports, "parseSqlIdentifier", {
256
256
  enumerable: true,
257
- get: function () { return chunkWWLMZIHW_cjs.parseSqlIdentifier; }
257
+ get: function () { return chunkQVROTSA5_cjs.parseSqlIdentifier; }
258
258
  });
259
259
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
260
260
  enumerable: true,
261
- get: function () { return chunkWWLMZIHW_cjs.resolveSerializedZodOutput; }
261
+ get: function () { return chunkQVROTSA5_cjs.resolveSerializedZodOutput; }
262
262
  });
263
263
  Object.defineProperty(exports, "createTool", {
264
264
  enumerable: true,