@mastra/core 0.5.1-alpha.0 → 0.6.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.
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/{base-C_Oq53qk.d.ts → base-DA1J3qra.d.ts} +18 -8
- package/dist/{base-CIPKleAU.d.cts → base-zjGki2_Z.d.cts} +18 -8
- package/dist/{chunk-YPD6BQIM.js → chunk-22HQQDJZ.js} +36 -53
- package/dist/chunk-3LURIF6I.cjs +90 -0
- package/dist/{chunk-OD7ZMKHY.js → chunk-6ZHR5KIP.js} +93 -42
- package/dist/{chunk-KFQ7Z3PO.cjs → chunk-B3KTSEC5.cjs} +2 -2
- package/dist/chunk-GMAMAKLH.js +88 -0
- package/dist/{chunk-MLFXOST6.js → chunk-MLKXBAQG.js} +2 -2
- package/dist/{chunk-UZNQG7QO.cjs → chunk-N2G5ZI42.cjs} +93 -42
- package/dist/{chunk-GXQRMKSN.cjs → chunk-XLZRGA3F.cjs} +35 -52
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +21 -21
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/libsql/index.cjs +440 -10
- package/dist/storage/libsql/index.d.cts +1 -1
- package/dist/storage/libsql/index.d.ts +1 -1
- package/dist/storage/libsql/index.js +441 -1
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/workflows/index.cjs +17 -17
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-QAZ2ONKM.js +0 -441
- package/dist/chunk-VA4P7QJT.cjs +0 -443
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3LURIF6I_cjs = require('./chunk-3LURIF6I.cjs');
|
|
4
4
|
var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
|
|
5
5
|
var chunkWB2HREXE_cjs = require('./chunk-WB2HREXE.cjs');
|
|
6
6
|
var chunkRWTSGWWL_cjs = require('./chunk-RWTSGWWL.cjs');
|
|
@@ -20,19 +20,25 @@ exports.Mastra = class Mastra {
|
|
|
20
20
|
#deployer;
|
|
21
21
|
#serverMiddleware = [];
|
|
22
22
|
#telemetry;
|
|
23
|
+
#storage;
|
|
24
|
+
#memory;
|
|
23
25
|
/**
|
|
24
|
-
* @deprecated use
|
|
26
|
+
* @deprecated use getTelemetry() instead
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
get telemetry() {
|
|
29
|
+
return this.#telemetry;
|
|
30
|
+
}
|
|
27
31
|
/**
|
|
28
|
-
* @deprecated use
|
|
32
|
+
* @deprecated use getStorage() instead
|
|
29
33
|
*/
|
|
30
|
-
|
|
34
|
+
get storage() {
|
|
35
|
+
return this.#storage;
|
|
36
|
+
}
|
|
31
37
|
/**
|
|
32
|
-
* @deprecated use
|
|
38
|
+
* @deprecated use getMemory() instead
|
|
33
39
|
*/
|
|
34
|
-
get
|
|
35
|
-
return this.#
|
|
40
|
+
get memory() {
|
|
41
|
+
return this.#memory;
|
|
36
42
|
}
|
|
37
43
|
constructor(config) {
|
|
38
44
|
if (config?.serverMiddleware) {
|
|
@@ -58,43 +64,20 @@ exports.Mastra = class Mastra {
|
|
|
58
64
|
this.#logger = logger;
|
|
59
65
|
let storage = config?.storage;
|
|
60
66
|
if (!storage) {
|
|
61
|
-
storage = new
|
|
67
|
+
storage = new chunk3LURIF6I_cjs.DefaultProxyStorage({
|
|
62
68
|
config: {
|
|
63
69
|
url: process.env.MASTRA_DEFAULT_STORAGE_URL || `:memory:`
|
|
64
70
|
}
|
|
65
71
|
});
|
|
66
72
|
}
|
|
67
|
-
|
|
68
|
-
const newTelemetry = {
|
|
69
|
-
...(config?.telemetry || {}),
|
|
70
|
-
export: {
|
|
71
|
-
type: "custom",
|
|
72
|
-
exporter: new chunkXB2TJ7LX_cjs.OTLPTraceExporter({
|
|
73
|
-
logger: this.getLogger(),
|
|
74
|
-
storage
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
this.#telemetry = chunkXB2TJ7LX_cjs.Telemetry.init(newTelemetry);
|
|
79
|
-
} else if (config?.telemetry) {
|
|
80
|
-
this.#telemetry = chunkXB2TJ7LX_cjs.Telemetry.init(config?.telemetry);
|
|
81
|
-
}
|
|
82
|
-
if (config?.deployer) {
|
|
83
|
-
this.#deployer = config.deployer;
|
|
84
|
-
if (this.#telemetry) {
|
|
85
|
-
this.#deployer = this.#telemetry.traceClass(config.deployer, {
|
|
86
|
-
excludeMethods: ["__setTelemetry", "__getTelemetry"]
|
|
87
|
-
});
|
|
88
|
-
this.#deployer.__setTelemetry(this.#telemetry);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
73
|
+
this.#telemetry = chunkXB2TJ7LX_cjs.Telemetry.init(config?.telemetry);
|
|
91
74
|
if (this.#telemetry) {
|
|
92
|
-
this
|
|
75
|
+
this.#storage = this.#telemetry.traceClass(storage, {
|
|
93
76
|
excludeMethods: ["__setTelemetry", "__getTelemetry"]
|
|
94
77
|
});
|
|
95
|
-
this
|
|
78
|
+
this.#storage.__setTelemetry(this.#telemetry);
|
|
96
79
|
} else {
|
|
97
|
-
this
|
|
80
|
+
this.#storage = storage;
|
|
98
81
|
}
|
|
99
82
|
if (config?.vectors) {
|
|
100
83
|
let vectors = {};
|
|
@@ -114,12 +97,12 @@ exports.Mastra = class Mastra {
|
|
|
114
97
|
this.#vectors = config.vectors;
|
|
115
98
|
}
|
|
116
99
|
if (config?.memory) {
|
|
117
|
-
this
|
|
100
|
+
this.#memory = config.memory;
|
|
118
101
|
if (this.#telemetry) {
|
|
119
|
-
this
|
|
102
|
+
this.#memory = this.#telemetry.traceClass(config.memory, {
|
|
120
103
|
excludeMethods: ["__setTelemetry", "__getTelemetry"]
|
|
121
104
|
});
|
|
122
|
-
this
|
|
105
|
+
this.#memory.__setTelemetry(this.#telemetry);
|
|
123
106
|
}
|
|
124
107
|
}
|
|
125
108
|
if (config && `memory` in config) {
|
|
@@ -239,7 +222,7 @@ This is a warning for now, but will throw an error in the future
|
|
|
239
222
|
return this.#workflows;
|
|
240
223
|
}
|
|
241
224
|
setStorage(storage) {
|
|
242
|
-
this
|
|
225
|
+
this.#storage = storage;
|
|
243
226
|
}
|
|
244
227
|
setLogger({
|
|
245
228
|
logger
|
|
@@ -250,8 +233,8 @@ This is a warning for now, but will throw an error in the future
|
|
|
250
233
|
this.#agents?.[key]?.__setLogger(this.#logger);
|
|
251
234
|
});
|
|
252
235
|
}
|
|
253
|
-
if (this
|
|
254
|
-
this
|
|
236
|
+
if (this.#memory) {
|
|
237
|
+
this.#memory.__setLogger(this.#logger);
|
|
255
238
|
}
|
|
256
239
|
if (this.#deployer) {
|
|
257
240
|
this.#deployer.__setLogger(this.#logger);
|
|
@@ -261,8 +244,8 @@ This is a warning for now, but will throw an error in the future
|
|
|
261
244
|
this.#tts?.[key]?.__setLogger(this.#logger);
|
|
262
245
|
});
|
|
263
246
|
}
|
|
264
|
-
if (this
|
|
265
|
-
this
|
|
247
|
+
if (this.#storage) {
|
|
248
|
+
this.#storage.__setLogger(this.#logger);
|
|
266
249
|
}
|
|
267
250
|
if (this.#vectors) {
|
|
268
251
|
Object.keys(this.#vectors).forEach(key => {
|
|
@@ -279,11 +262,11 @@ This is a warning for now, but will throw an error in the future
|
|
|
279
262
|
}
|
|
280
263
|
});
|
|
281
264
|
}
|
|
282
|
-
if (this
|
|
283
|
-
this
|
|
265
|
+
if (this.#memory) {
|
|
266
|
+
this.#memory = this.#telemetry.traceClass(this.#memory, {
|
|
284
267
|
excludeMethods: ["__setTelemetry", "__getTelemetry"]
|
|
285
268
|
});
|
|
286
|
-
this
|
|
269
|
+
this.#memory.__setTelemetry(this.#telemetry);
|
|
287
270
|
}
|
|
288
271
|
if (this.#deployer) {
|
|
289
272
|
this.#deployer = this.#telemetry.traceClass(this.#deployer, {
|
|
@@ -303,11 +286,11 @@ This is a warning for now, but will throw an error in the future
|
|
|
303
286
|
});
|
|
304
287
|
this.#tts = tts;
|
|
305
288
|
}
|
|
306
|
-
if (this
|
|
307
|
-
this
|
|
289
|
+
if (this.#storage) {
|
|
290
|
+
this.#storage = this.#telemetry.traceClass(this.#storage, {
|
|
308
291
|
excludeMethods: ["__setTelemetry", "__getTelemetry"]
|
|
309
292
|
});
|
|
310
|
-
this
|
|
293
|
+
this.#storage.__setTelemetry(this.#telemetry);
|
|
311
294
|
}
|
|
312
295
|
if (this.#vectors) {
|
|
313
296
|
let vectors = {};
|
|
@@ -332,10 +315,10 @@ This is a warning for now, but will throw an error in the future
|
|
|
332
315
|
return this.#telemetry;
|
|
333
316
|
}
|
|
334
317
|
getMemory() {
|
|
335
|
-
return this
|
|
318
|
+
return this.#memory;
|
|
336
319
|
}
|
|
337
320
|
getStorage() {
|
|
338
|
-
return this
|
|
321
|
+
return this.#storage;
|
|
339
322
|
}
|
|
340
323
|
getServerMiddleware() {
|
|
341
324
|
return this.#serverMiddleware;
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, a as MetricResult } from '../types-CwTG2XyQ.cjs';
|
|
2
|
-
import { A as Agent } from '../base-
|
|
2
|
+
import { A as Agent } from '../base-zjGki2_Z.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-DboIg_Cd.cjs';
|
|
5
5
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkHJPMYDWO_cjs = require('./chunk-HJPMYDWO.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkN2G5ZI42_cjs = require('./chunk-N2G5ZI42.cjs');
|
|
5
5
|
var chunkXLSROQ26_cjs = require('./chunk-XLSROQ26.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkXLZRGA3F_cjs = require('./chunk-XLZRGA3F.cjs');
|
|
7
|
+
var chunkB3KTSEC5_cjs = require('./chunk-B3KTSEC5.cjs');
|
|
8
8
|
var chunkENT7U27Y_cjs = require('./chunk-ENT7U27Y.cjs');
|
|
9
9
|
var chunkL5BNMAC3_cjs = require('./chunk-L5BNMAC3.cjs');
|
|
10
10
|
var chunkFL3GQXQ2_cjs = require('./chunk-FL3GQXQ2.cjs');
|
|
@@ -75,7 +75,7 @@ function createLogger2(options) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// src/memory/index.warning.ts
|
|
78
|
-
var MastraMemory2 = class extends
|
|
78
|
+
var MastraMemory2 = class extends chunkB3KTSEC5_cjs.MastraMemory {
|
|
79
79
|
constructor(_arg) {
|
|
80
80
|
super({ name: `Deprecated memory` });
|
|
81
81
|
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
@@ -107,7 +107,7 @@ var MastraVector2 = class extends chunkENT7U27Y_cjs.MastraVector {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
// src/workflows/workflow.warning.ts
|
|
110
|
-
var Workflow2 = class extends
|
|
110
|
+
var Workflow2 = class extends chunkN2G5ZI42_cjs.Workflow {
|
|
111
111
|
constructor(args) {
|
|
112
112
|
super(args);
|
|
113
113
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -116,67 +116,67 @@ var Workflow2 = class extends chunkUZNQG7QO_cjs.Workflow {
|
|
|
116
116
|
|
|
117
117
|
Object.defineProperty(exports, "Step", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkN2G5ZI42_cjs.Step; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkN2G5ZI42_cjs.WhenConditionReturnValue; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "createStep", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkN2G5ZI42_cjs.createStep; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkN2G5ZI42_cjs.getActivePathsAndStatus; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkN2G5ZI42_cjs.getResultActivePaths; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "getStepResult", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkN2G5ZI42_cjs.getStepResult; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkN2G5ZI42_cjs.getSuspendedPaths; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkN2G5ZI42_cjs.isErrorEvent; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "isFinalState", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkN2G5ZI42_cjs.isFinalState; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "isLimboState", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkN2G5ZI42_cjs.isLimboState; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkN2G5ZI42_cjs.isTransitionEvent; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "isVariableReference", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkN2G5ZI42_cjs.isVariableReference; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkN2G5ZI42_cjs.mergeChildValue; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkN2G5ZI42_cjs.recursivelyCheckForFinalState; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkN2G5ZI42_cjs.updateStepInHierarchy; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "Mastra", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkXLZRGA3F_cjs.Mastra; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
182
182
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-CwTG2XyQ.cjs';
|
|
2
2
|
export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.cjs';
|
|
3
|
-
import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-
|
|
4
|
-
export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-
|
|
3
|
+
import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-zjGki2_Z.cjs';
|
|
4
|
+
export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-zjGki2_Z.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-DboIg_Cd.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-DboIg_Cd.cjs';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-mKY1XrpK.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-CwTG2XyQ.js';
|
|
2
2
|
export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.js';
|
|
3
|
-
import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-
|
|
4
|
-
export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-
|
|
3
|
+
import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-DA1J3qra.js';
|
|
4
|
+
export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-DA1J3qra.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-BZViaFTt.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BZViaFTt.js';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-mKY1XrpK.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MastraTTS } from './chunk-CLJYFFOS.js';
|
|
2
|
-
import { Workflow } from './chunk-
|
|
3
|
-
export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-
|
|
2
|
+
import { Workflow } from './chunk-6ZHR5KIP.js';
|
|
3
|
+
export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-6ZHR5KIP.js';
|
|
4
4
|
import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
|
|
5
|
-
export { Mastra } from './chunk-
|
|
6
|
-
import { MastraMemory } from './chunk-
|
|
5
|
+
export { Mastra } from './chunk-22HQQDJZ.js';
|
|
6
|
+
import { MastraMemory } from './chunk-MLKXBAQG.js';
|
|
7
7
|
import { MastraVector } from './chunk-QLYZGX5Z.js';
|
|
8
8
|
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-DGYFNGOC.js';
|
|
9
9
|
import { MastraStorage } from './chunk-7TZAPEAT.js';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-zjGki2_Z.cjs';
|
|
5
5
|
import '../index-mKY1XrpK.cjs';
|
|
6
6
|
import '../base-DboIg_Cd.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-DA1J3qra.js';
|
|
5
5
|
import '../index-mKY1XrpK.js';
|
|
6
6
|
import '../base-BZViaFTt.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXLZRGA3F_cjs = require('../chunk-XLZRGA3F.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkXLZRGA3F_cjs.Mastra; }
|
|
10
10
|
});
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-22HQQDJZ.js';
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB3KTSEC5_cjs = require('../chunk-B3KTSEC5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraMemory", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkB3KTSEC5_cjs.MastraMemory; }
|
|
10
10
|
});
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-
|
|
1
|
+
export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-zjGki2_Z.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-DboIg_Cd.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-
|
|
1
|
+
export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-DA1J3qra.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-BZViaFTt.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraMemory } from '../chunk-
|
|
1
|
+
export { MastraMemory } from '../chunk-MLKXBAQG.js';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-
|
|
1
|
+
export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-zjGki2_Z.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DboIg_Cd.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-
|
|
1
|
+
export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-DA1J3qra.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BZViaFTt.js';
|
|
4
4
|
import '@opentelemetry/api';
|