@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
@@ -1,2 +1,187 @@
1
- export { MastraStorage } from '../chunk-TAFOICHR.js';
1
+ import { MastraStorage } from '../chunk-ZKN6HYYQ.js';
2
+ export { MastraStorage } from '../chunk-ZKN6HYYQ.js';
2
3
  export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-SEOWDGC2.js';
4
+
5
+ // src/storage/mock.ts
6
+ var MockStore = class extends MastraStorage {
7
+ data = {
8
+ mastra_workflow_snapshot: {},
9
+ mastra_evals: {},
10
+ mastra_messages: {},
11
+ mastra_threads: {},
12
+ mastra_traces: {}
13
+ };
14
+ constructor() {
15
+ super({ name: "MockStore" });
16
+ this.hasInitialized = Promise.resolve(true);
17
+ }
18
+ async createTable({ tableName }) {
19
+ this.logger.debug(`MockStore: createTable called for ${tableName}`);
20
+ }
21
+ async clearTable({ tableName }) {
22
+ this.logger.debug(`MockStore: clearTable called for ${tableName}`);
23
+ this.data[tableName] = {};
24
+ }
25
+ async insert({ tableName, record }) {
26
+ this.logger.debug(`MockStore: insert called for ${tableName}`, record);
27
+ this.data[tableName][record.run_id] = JSON.parse(JSON.stringify(record));
28
+ }
29
+ async batchInsert({ tableName, records }) {
30
+ this.logger.debug(`MockStore: batchInsert called for ${tableName} with ${records.length} records`);
31
+ for (const record of records) {
32
+ this.data[tableName][record.run_id] = JSON.parse(JSON.stringify(record));
33
+ }
34
+ }
35
+ async load({ tableName, keys }) {
36
+ this.logger.debug(`MockStore: load called for ${tableName} with keys`, keys);
37
+ const record = this.data[tableName][keys.run_id];
38
+ return record ? record : null;
39
+ }
40
+ async getThreadById({ threadId }) {
41
+ this.logger.debug(`MockStore: getThreadById called for ${threadId}`);
42
+ const thread = Object.values(this.data.mastra_threads).find((t) => t.id === threadId);
43
+ return thread ? thread : null;
44
+ }
45
+ async getThreadsByResourceId({ resourceId }) {
46
+ this.logger.debug(`MockStore: getThreadsByResourceId called for ${resourceId}`);
47
+ const threads = Object.values(this.data.mastra_threads).filter((t) => t.resourceId === resourceId);
48
+ return threads;
49
+ }
50
+ async saveThread({ thread }) {
51
+ this.logger.debug(`MockStore: saveThread called for ${thread.id}`);
52
+ const key = thread.id;
53
+ this.data.mastra_threads[key] = thread;
54
+ return thread;
55
+ }
56
+ async updateThread({
57
+ id,
58
+ title,
59
+ metadata
60
+ }) {
61
+ this.logger.debug(`MockStore: updateThread called for ${id}`);
62
+ const thread = this.data.mastra_threads[id];
63
+ if (thread) {
64
+ thread.title = title;
65
+ thread.metadata = { ...thread.metadata, ...metadata };
66
+ thread.updatedAt = /* @__PURE__ */ new Date();
67
+ }
68
+ return thread;
69
+ }
70
+ async deleteThread({ threadId }) {
71
+ this.logger.debug(`MockStore: deleteThread called for ${threadId}`);
72
+ delete this.data.mastra_threads[threadId];
73
+ this.data.mastra_messages = Object.fromEntries(
74
+ Object.entries(this.data.mastra_messages).filter(([, msg]) => msg.threadId !== threadId)
75
+ );
76
+ }
77
+ async getMessages({ threadId, selectBy }) {
78
+ this.logger.debug(`MockStore: getMessages called for thread ${threadId}`);
79
+ let messages = Object.values(this.data.mastra_messages).filter((msg) => msg.threadId === threadId);
80
+ if (selectBy?.last) {
81
+ messages = messages.slice(-selectBy.last);
82
+ }
83
+ messages.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
84
+ return messages;
85
+ }
86
+ async saveMessages({ messages }) {
87
+ this.logger.debug(`MockStore: saveMessages called with ${messages.length} messages`);
88
+ for (const message of messages) {
89
+ const key = message.id;
90
+ this.data.mastra_messages[key] = message;
91
+ }
92
+ return messages;
93
+ }
94
+ async getTraces({
95
+ name,
96
+ scope,
97
+ page,
98
+ perPage,
99
+ attributes,
100
+ filters,
101
+ fromDate,
102
+ toDate
103
+ }) {
104
+ this.logger.debug(`MockStore: getTraces called`);
105
+ let traces = Object.values(this.data.mastra_traces);
106
+ if (name) traces = traces.filter((t) => t.name?.startsWith(name));
107
+ if (scope) traces = traces.filter((t) => t.scope === scope);
108
+ if (attributes) {
109
+ traces = traces.filter(
110
+ (t) => Object.entries(attributes).every(([key, value]) => t.attributes?.[key] === value)
111
+ );
112
+ }
113
+ if (filters) {
114
+ traces = traces.filter((t) => Object.entries(filters).every(([key, value]) => t[key] === value));
115
+ }
116
+ if (fromDate) traces = traces.filter((t) => new Date(t.createdAt) >= fromDate);
117
+ if (toDate) traces = traces.filter((t) => new Date(t.createdAt) <= toDate);
118
+ traces.sort((a, b) => new Date(b.startTime).getTime() - new Date(a.startTime).getTime());
119
+ const start = page * perPage;
120
+ const end = start + perPage;
121
+ return traces.slice(start, end);
122
+ }
123
+ async getEvalsByAgentName(agentName, type) {
124
+ this.logger.debug(`MockStore: getEvalsByAgentName called for ${agentName}`);
125
+ let evals = Object.values(this.data.mastra_evals).filter((e) => e.agentName === agentName);
126
+ if (type === "test") {
127
+ evals = evals.filter((e) => e.testInfo && e.testInfo.testPath);
128
+ } else if (type === "live") {
129
+ evals = evals.filter((e) => !e.testInfo || !e.testInfo.testPath);
130
+ }
131
+ evals.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
132
+ return evals;
133
+ }
134
+ async getWorkflowRuns({
135
+ workflowName,
136
+ fromDate,
137
+ toDate,
138
+ limit,
139
+ offset,
140
+ resourceId
141
+ } = {}) {
142
+ this.logger.debug(`MockStore: getWorkflowRuns called`);
143
+ let runs = Object.values(this.data.mastra_workflow_snapshot || {});
144
+ if (workflowName) runs = runs.filter((run) => run.workflow_name === workflowName);
145
+ if (fromDate) runs = runs.filter((run) => new Date(run.createdAt) >= fromDate);
146
+ if (toDate) runs = runs.filter((run) => new Date(run.createdAt) <= toDate);
147
+ if (resourceId) runs = runs.filter((run) => run.resourceId === resourceId);
148
+ const total = runs.length;
149
+ runs.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
150
+ if (limit !== void 0 && offset !== void 0) {
151
+ const start = offset;
152
+ const end = start + limit;
153
+ runs = runs.slice(start, end);
154
+ }
155
+ const parsedRuns = runs.map((run) => ({
156
+ ...run,
157
+ snapshot: typeof run.snapshot === "string" ? JSON.parse(run.snapshot) : { ...run.snapshot },
158
+ createdAt: new Date(run.createdAt),
159
+ updatedAt: new Date(run.updatedAt),
160
+ runId: run.run_id,
161
+ workflowName: run.workflow_name
162
+ }));
163
+ return { runs: parsedRuns, total };
164
+ }
165
+ async getWorkflowRunById({
166
+ runId,
167
+ workflowName
168
+ }) {
169
+ this.logger.debug(`MockStore: getWorkflowRunById called for runId ${runId}`);
170
+ let run = Object.values(this.data.mastra_workflow_snapshot || {}).find((r) => r.run_id === runId);
171
+ if (run && workflowName && run.workflow_name !== workflowName) {
172
+ run = void 0;
173
+ }
174
+ if (!run) return null;
175
+ const parsedRun = {
176
+ ...run,
177
+ snapshot: typeof run.snapshot === "string" ? JSON.parse(run.snapshot) : run.snapshot,
178
+ createdAt: new Date(run.createdAt),
179
+ updatedAt: new Date(run.updatedAt),
180
+ runId: run.run_id,
181
+ workflowName: run.workflow_name
182
+ };
183
+ return parsedRun;
184
+ }
185
+ };
186
+
187
+ export { MockStore };
@@ -1,29 +1,28 @@
1
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../base-H7siSAfu.cjs';
1
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../base-aPYtPBT2.cjs';
2
2
  import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
- import { L as Logger } from '../index-QV27jkxQ.cjs';
6
- import { b as MastraStorage } from '../base-CAEcd6q2.cjs';
5
+ import { I as IMastraLogger } from '../logger-EhZkzZOr.cjs';
6
+ import { c as MastraStorage } from '../base-aJ3etsh5.cjs';
7
7
  import 'stream';
8
- import 'pino';
9
8
  import 'ai';
10
- import '../types-BtMyV38I.cjs';
9
+ import '../types-Bo1uigWx.cjs';
11
10
  import 'sift';
12
11
  import 'zod';
13
12
  import 'json-schema';
13
+ import '../deployer/index.cjs';
14
+ import '../bundler/index.cjs';
15
+ import 'node:http';
16
+ import 'hono';
14
17
  import '../runtime-context/index.cjs';
15
- import 'xstate';
16
- import 'node:events';
17
18
  import '../vector/index.cjs';
18
19
  import '../vector/filter/index.cjs';
19
- import '../tts/index.cjs';
20
- import 'node:http';
21
- import 'hono';
22
- import 'events';
23
- import '../deployer/index.cjs';
24
- import '../bundler/index.cjs';
25
20
  import 'hono/cors';
26
21
  import 'hono-openapi';
22
+ import '../tts/index.cjs';
23
+ import 'xstate';
24
+ import 'node:events';
25
+ import 'events';
27
26
  import 'ai/test';
28
27
 
29
28
  declare function withSpan(options: {
@@ -59,14 +58,14 @@ declare class OTLPTraceExporter implements SpanExporter {
59
58
  private logger;
60
59
  private activeFlush;
61
60
  constructor({ logger, storage }: {
62
- logger: Logger;
61
+ logger: IMastraLogger;
63
62
  storage: MastraStorage;
64
63
  });
65
64
  export(internalRepresentation: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
66
65
  shutdown(): Promise<void>;
67
66
  flush(): Promise<void>;
68
67
  forceFlush(): Promise<void>;
69
- __setLogger(logger: Logger): void;
68
+ __setLogger(logger: IMastraLogger): void;
70
69
  }
71
70
 
72
71
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan };
@@ -1,29 +1,28 @@
1
- export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../base-4Z34GQL8.js';
1
+ export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../base-tc5kgDTD.js';
2
2
  import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
- import { L as Logger } from '../index-QV27jkxQ.js';
6
- import { b as MastraStorage } from '../base-BCfssGt6.js';
5
+ import { I as IMastraLogger } from '../logger-EhZkzZOr.js';
6
+ import { c as MastraStorage } from '../base-DttB7sJD.js';
7
7
  import 'stream';
8
- import 'pino';
9
8
  import 'ai';
10
- import '../types-BtMyV38I.js';
9
+ import '../types-Bo1uigWx.js';
11
10
  import 'sift';
12
11
  import 'zod';
13
12
  import 'json-schema';
13
+ import '../deployer/index.js';
14
+ import '../bundler/index.js';
15
+ import 'node:http';
16
+ import 'hono';
14
17
  import '../runtime-context/index.js';
15
- import 'xstate';
16
- import 'node:events';
17
18
  import '../vector/index.js';
18
19
  import '../vector/filter/index.js';
19
- import '../tts/index.js';
20
- import 'node:http';
21
- import 'hono';
22
- import 'events';
23
- import '../deployer/index.js';
24
- import '../bundler/index.js';
25
20
  import 'hono/cors';
26
21
  import 'hono-openapi';
22
+ import '../tts/index.js';
23
+ import 'xstate';
24
+ import 'node:events';
25
+ import 'events';
27
26
  import 'ai/test';
28
27
 
29
28
  declare function withSpan(options: {
@@ -59,14 +58,14 @@ declare class OTLPTraceExporter implements SpanExporter {
59
58
  private logger;
60
59
  private activeFlush;
61
60
  constructor({ logger, storage }: {
62
- logger: Logger;
61
+ logger: IMastraLogger;
63
62
  storage: MastraStorage;
64
63
  });
65
64
  export(internalRepresentation: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
66
65
  shutdown(): Promise<void>;
67
66
  flush(): Promise<void>;
68
67
  forceFlush(): Promise<void>;
69
- __setLogger(logger: Logger): void;
68
+ __setLogger(logger: IMastraLogger): void;
70
69
  }
71
70
 
72
71
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, getBaggageValues, hasActiveTelemetry, withSpan };
@@ -72,9 +72,9 @@ Object.defineProperty(exports, "ATTR_SERVICE_NAME", {
72
72
  enumerable: true,
73
73
  get: function () { return semanticConventions.ATTR_SERVICE_NAME; }
74
74
  });
75
- Object.defineProperty(exports, "Resource", {
75
+ Object.defineProperty(exports, "resourceFromAttributes", {
76
76
  enumerable: true,
77
- get: function () { return resources.Resource; }
77
+ get: function () { return resources.resourceFromAttributes; }
78
78
  });
79
79
  Object.defineProperty(exports, "OTLPHttpExporter", {
80
80
  enumerable: true,
@@ -2,7 +2,7 @@ export { NodeSDK } from '@opentelemetry/sdk-node';
2
2
  export { ConsoleSpanExporter } from '@opentelemetry/sdk-trace-node';
3
3
  export { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
4
4
  export { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
5
- export { Resource } from '@opentelemetry/resources';
5
+ export { resourceFromAttributes } from '@opentelemetry/resources';
6
6
  export { OTLPTraceExporter as OTLPHttpExporter } from '@opentelemetry/exporter-trace-otlp-http';
7
7
  export { OTLPTraceExporter as OTLPGrpcExporter } from '@opentelemetry/exporter-trace-otlp-grpc';
8
8
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
@@ -2,7 +2,7 @@ export { NodeSDK } from '@opentelemetry/sdk-node';
2
2
  export { ConsoleSpanExporter } from '@opentelemetry/sdk-trace-node';
3
3
  export { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
4
4
  export { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
5
- export { Resource } from '@opentelemetry/resources';
5
+ export { resourceFromAttributes } from '@opentelemetry/resources';
6
6
  export { OTLPTraceExporter as OTLPHttpExporter } from '@opentelemetry/exporter-trace-otlp-http';
7
7
  export { OTLPTraceExporter as OTLPGrpcExporter } from '@opentelemetry/exporter-trace-otlp-grpc';
8
8
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
@@ -2,7 +2,7 @@ export { NodeSDK } from '@opentelemetry/sdk-node';
2
2
  export { ConsoleSpanExporter } from '@opentelemetry/sdk-trace-node';
3
3
  export { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
4
4
  export { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
5
- export { Resource } from '@opentelemetry/resources';
5
+ export { resourceFromAttributes } from '@opentelemetry/resources';
6
6
  export { OTLPTraceExporter as OTLPHttpExporter } from '@opentelemetry/exporter-trace-otlp-http';
7
7
  export { OTLPTraceExporter as OTLPGrpcExporter } from '@opentelemetry/exporter-trace-otlp-grpc';
8
8
  export { AlwaysOffSampler, AlwaysOnSampler, ParentBasedSampler, TraceIdRatioBasedSampler } from '@opentelemetry/sdk-trace-base';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkEJITEVAB_cjs = require('../chunk-EJITEVAB.cjs');
3
+ var chunkU3L3NEOM_cjs = require('../chunk-U3L3NEOM.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Tool", {
8
8
  enumerable: true,
9
- get: function () { return chunkEJITEVAB_cjs.Tool; }
9
+ get: function () { return chunkU3L3NEOM_cjs.Tool; }
10
10
  });
11
11
  Object.defineProperty(exports, "createTool", {
12
12
  enumerable: true,
13
- get: function () { return chunkEJITEVAB_cjs.createTool; }
13
+ get: function () { return chunkU3L3NEOM_cjs.createTool; }
14
14
  });
15
15
  Object.defineProperty(exports, "isVercelTool", {
16
16
  enumerable: true,
17
- get: function () { return chunkEJITEVAB_cjs.isVercelTool; }
17
+ get: function () { return chunkU3L3NEOM_cjs.isVercelTool; }
18
18
  });
@@ -1,27 +1,26 @@
1
- export { as as CoreTool, at as InternalCoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-CAEcd6q2.cjs';
1
+ export { aP as CoreTool, aQ as InternalCoreTool, ad as Tool, a9 as ToolAction, ac as ToolExecutionContext, aO as VercelTool, aN as createTool } from '../base-aJ3etsh5.cjs';
2
2
  export { isVercelTool } from '../utils.cjs';
3
3
  import 'ai';
4
- import '../base-H7siSAfu.cjs';
4
+ import '../base-aPYtPBT2.cjs';
5
5
  import '@opentelemetry/api';
6
- import '../index-QV27jkxQ.cjs';
6
+ import '../logger-EhZkzZOr.cjs';
7
7
  import 'stream';
8
- import 'pino';
9
8
  import '@opentelemetry/sdk-trace-base';
10
- import '../types-BtMyV38I.cjs';
9
+ import '../types-Bo1uigWx.cjs';
11
10
  import 'sift';
12
11
  import 'zod';
13
12
  import 'json-schema';
13
+ import '../deployer/index.cjs';
14
+ import '../bundler/index.cjs';
15
+ import 'node:http';
16
+ import 'hono';
14
17
  import '../runtime-context/index.cjs';
15
- import 'xstate';
16
- import 'node:events';
17
18
  import '../vector/index.cjs';
18
19
  import '../vector/filter/index.cjs';
19
- import '../tts/index.cjs';
20
- import 'node:http';
21
- import 'hono';
22
- import 'events';
23
- import '../deployer/index.cjs';
24
- import '../bundler/index.cjs';
25
20
  import 'hono/cors';
26
21
  import 'hono-openapi';
22
+ import '../tts/index.cjs';
23
+ import 'xstate';
24
+ import 'node:events';
25
+ import 'events';
27
26
  import 'ai/test';
@@ -1,27 +1,26 @@
1
- export { as as CoreTool, at as InternalCoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-BCfssGt6.js';
1
+ export { aP as CoreTool, aQ as InternalCoreTool, ad as Tool, a9 as ToolAction, ac as ToolExecutionContext, aO as VercelTool, aN as createTool } from '../base-DttB7sJD.js';
2
2
  export { isVercelTool } from '../utils.js';
3
3
  import 'ai';
4
- import '../base-4Z34GQL8.js';
4
+ import '../base-tc5kgDTD.js';
5
5
  import '@opentelemetry/api';
6
- import '../index-QV27jkxQ.js';
6
+ import '../logger-EhZkzZOr.js';
7
7
  import 'stream';
8
- import 'pino';
9
8
  import '@opentelemetry/sdk-trace-base';
10
- import '../types-BtMyV38I.js';
9
+ import '../types-Bo1uigWx.js';
11
10
  import 'sift';
12
11
  import 'zod';
13
12
  import 'json-schema';
13
+ import '../deployer/index.js';
14
+ import '../bundler/index.js';
15
+ import 'node:http';
16
+ import 'hono';
14
17
  import '../runtime-context/index.js';
15
- import 'xstate';
16
- import 'node:events';
17
18
  import '../vector/index.js';
18
19
  import '../vector/filter/index.js';
19
- import '../tts/index.js';
20
- import 'node:http';
21
- import 'hono';
22
- import 'events';
23
- import '../deployer/index.js';
24
- import '../bundler/index.js';
25
20
  import 'hono/cors';
26
21
  import 'hono-openapi';
22
+ import '../tts/index.js';
23
+ import 'xstate';
24
+ import 'node:events';
25
+ import 'events';
27
26
  import 'ai/test';
@@ -1 +1 @@
1
- export { Tool, createTool, isVercelTool } from '../chunk-S34QVMKE.js';
1
+ export { Tool, createTool, isVercelTool } from '../chunk-2PW6UJMW.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkV2Q2FEVO_cjs = require('../chunk-V2Q2FEVO.cjs');
3
+ var chunkKSPHQSZX_cjs = require('../chunk-KSPHQSZX.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraTTS", {
8
8
  enumerable: true,
9
- get: function () { return chunkV2Q2FEVO_cjs.MastraTTS; }
9
+ get: function () { return chunkKSPHQSZX_cjs.MastraTTS; }
10
10
  });
@@ -1,8 +1,7 @@
1
- import { M as MastraBase } from '../base-H7siSAfu.cjs';
1
+ import { M as MastraBase } from '../base-aPYtPBT2.cjs';
2
2
  import '@opentelemetry/api';
3
- import '../index-QV27jkxQ.cjs';
3
+ import '../logger-EhZkzZOr.cjs';
4
4
  import 'stream';
5
- import 'pino';
6
5
  import '@opentelemetry/sdk-trace-base';
7
6
 
8
7
  interface BuiltInModelConfig {
@@ -1,8 +1,7 @@
1
- import { M as MastraBase } from '../base-4Z34GQL8.js';
1
+ import { M as MastraBase } from '../base-tc5kgDTD.js';
2
2
  import '@opentelemetry/api';
3
- import '../index-QV27jkxQ.js';
3
+ import '../logger-EhZkzZOr.js';
4
4
  import 'stream';
5
- import 'pino';
6
5
  import '@opentelemetry/sdk-trace-base';
7
6
 
8
7
  interface BuiltInModelConfig {
package/dist/tts/index.js CHANGED
@@ -1 +1 @@
1
- export { MastraTTS } from '../chunk-JBJ7KXN5.js';
1
+ export { MastraTTS } from '../chunk-C3ICEF6E.js';
@@ -14,4 +14,4 @@ interface EvaluationResult extends MetricResult {
14
14
  output: string;
15
15
  }
16
16
 
17
- export { type EvaluationResult as E, type MetricResult as M, type TestInfo as T, Metric as a };
17
+ export { type EvaluationResult as E, Metric as M, type TestInfo as T, type MetricResult as a };
@@ -14,4 +14,4 @@ interface EvaluationResult extends MetricResult {
14
14
  output: string;
15
15
  }
16
16
 
17
- export { type EvaluationResult as E, type MetricResult as M, type TestInfo as T, Metric as a };
17
+ export { type EvaluationResult as E, Metric as M, type TestInfo as T, type MetricResult as a };
package/dist/utils.cjs CHANGED
@@ -1,50 +1,66 @@
1
1
  'use strict';
2
2
 
3
- var chunkEJITEVAB_cjs = require('./chunk-EJITEVAB.cjs');
3
+ var chunkU3L3NEOM_cjs = require('./chunk-U3L3NEOM.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "checkEvalStorageFields", {
8
8
  enumerable: true,
9
- get: function () { return chunkEJITEVAB_cjs.checkEvalStorageFields; }
9
+ get: function () { return chunkU3L3NEOM_cjs.checkEvalStorageFields; }
10
10
  });
11
11
  Object.defineProperty(exports, "createMastraProxy", {
12
12
  enumerable: true,
13
- get: function () { return chunkEJITEVAB_cjs.createMastraProxy; }
13
+ get: function () { return chunkU3L3NEOM_cjs.createMastraProxy; }
14
14
  });
15
15
  Object.defineProperty(exports, "deepMerge", {
16
16
  enumerable: true,
17
- get: function () { return chunkEJITEVAB_cjs.deepMerge; }
17
+ get: function () { return chunkU3L3NEOM_cjs.deepMerge; }
18
18
  });
19
19
  Object.defineProperty(exports, "delay", {
20
20
  enumerable: true,
21
- get: function () { return chunkEJITEVAB_cjs.delay; }
21
+ get: function () { return chunkU3L3NEOM_cjs.delay; }
22
22
  });
23
23
  Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
24
24
  enumerable: true,
25
- get: function () { return chunkEJITEVAB_cjs.ensureAllMessagesAreCoreMessages; }
25
+ get: function () { return chunkU3L3NEOM_cjs.ensureAllMessagesAreCoreMessages; }
26
26
  });
27
27
  Object.defineProperty(exports, "ensureToolProperties", {
28
28
  enumerable: true,
29
- get: function () { return chunkEJITEVAB_cjs.ensureToolProperties; }
29
+ get: function () { return chunkU3L3NEOM_cjs.ensureToolProperties; }
30
+ });
31
+ Object.defineProperty(exports, "isCoreMessage", {
32
+ enumerable: true,
33
+ get: function () { return chunkU3L3NEOM_cjs.isCoreMessage; }
34
+ });
35
+ Object.defineProperty(exports, "isUiMessage", {
36
+ enumerable: true,
37
+ get: function () { return chunkU3L3NEOM_cjs.isUiMessage; }
30
38
  });
31
39
  Object.defineProperty(exports, "isVercelTool", {
32
40
  enumerable: true,
33
- get: function () { return chunkEJITEVAB_cjs.isVercelTool; }
41
+ get: function () { return chunkU3L3NEOM_cjs.isVercelTool; }
34
42
  });
35
43
  Object.defineProperty(exports, "isZodType", {
36
44
  enumerable: true,
37
- get: function () { return chunkEJITEVAB_cjs.isZodType; }
45
+ get: function () { return chunkU3L3NEOM_cjs.isZodType; }
38
46
  });
39
47
  Object.defineProperty(exports, "makeCoreTool", {
40
48
  enumerable: true,
41
- get: function () { return chunkEJITEVAB_cjs.makeCoreTool; }
49
+ get: function () { return chunkU3L3NEOM_cjs.makeCoreTool; }
42
50
  });
43
51
  Object.defineProperty(exports, "maskStreamTags", {
44
52
  enumerable: true,
45
- get: function () { return chunkEJITEVAB_cjs.maskStreamTags; }
53
+ get: function () { return chunkU3L3NEOM_cjs.maskStreamTags; }
54
+ });
55
+ Object.defineProperty(exports, "parseFieldKey", {
56
+ enumerable: true,
57
+ get: function () { return chunkU3L3NEOM_cjs.parseFieldKey; }
58
+ });
59
+ Object.defineProperty(exports, "parseSqlIdentifier", {
60
+ enumerable: true,
61
+ get: function () { return chunkU3L3NEOM_cjs.parseSqlIdentifier; }
46
62
  });
47
63
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
48
64
  enumerable: true,
49
- get: function () { return chunkEJITEVAB_cjs.resolveSerializedZodOutput; }
65
+ get: function () { return chunkU3L3NEOM_cjs.resolveSerializedZodOutput; }
50
66
  });