@mastra/core 0.24.9-alpha.0 → 0.24.9
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/CHANGELOG.md +8 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/ai-tracing/index.cjs +41 -41
- package/dist/ai-tracing/index.js +2 -2
- package/dist/ai-tracing/serialization.d.ts.map +1 -1
- package/dist/{chunk-3N7RP3UB.js → chunk-2BIQL3SK.js} +3 -3
- package/dist/{chunk-3N7RP3UB.js.map → chunk-2BIQL3SK.js.map} +1 -1
- package/dist/{chunk-LQJJBWFH.cjs → chunk-3L3ISSMS.cjs} +9 -9
- package/dist/chunk-3L3ISSMS.cjs.map +1 -0
- package/dist/{chunk-6ZBXSCZR.js → chunk-4DWBTEHS.js} +3 -3
- package/dist/{chunk-6ZBXSCZR.js.map → chunk-4DWBTEHS.js.map} +1 -1
- package/dist/{chunk-RR7QPRXN.js → chunk-5BMYOHKM.js} +4 -4
- package/dist/{chunk-RR7QPRXN.js.map → chunk-5BMYOHKM.js.map} +1 -1
- package/dist/{chunk-AOUR7HV5.js → chunk-5KSHWBRH.js} +4 -4
- package/dist/{chunk-AOUR7HV5.js.map → chunk-5KSHWBRH.js.map} +1 -1
- package/dist/{chunk-QCZOYIZC.js → chunk-5S5X3QPR.js} +3 -3
- package/dist/{chunk-QCZOYIZC.js.map → chunk-5S5X3QPR.js.map} +1 -1
- package/dist/{chunk-UK4QLV4O.cjs → chunk-7GUQ2EQ4.cjs} +9 -9
- package/dist/{chunk-UK4QLV4O.cjs.map → chunk-7GUQ2EQ4.cjs.map} +1 -1
- package/dist/{chunk-GWZTWJLK.js → chunk-BBE22VBK.js} +5 -5
- package/dist/{chunk-GWZTWJLK.js.map → chunk-BBE22VBK.js.map} +1 -1
- package/dist/{chunk-P67ES4L4.cjs → chunk-CSHVFDF6.cjs} +4 -4
- package/dist/{chunk-P67ES4L4.cjs.map → chunk-CSHVFDF6.cjs.map} +1 -1
- package/dist/{chunk-FTV3ZCSR.cjs → chunk-DGL7I4HZ.cjs} +9 -9
- package/dist/{chunk-FTV3ZCSR.cjs.map → chunk-DGL7I4HZ.cjs.map} +1 -1
- package/dist/{chunk-SQ4FHFMU.cjs → chunk-EHTC7VYS.cjs} +4 -4
- package/dist/{chunk-SQ4FHFMU.cjs.map → chunk-EHTC7VYS.cjs.map} +1 -1
- package/dist/{chunk-PTN7GTBG.js → chunk-EMTBCXQQ.js} +3 -3
- package/dist/{chunk-PTN7GTBG.js.map → chunk-EMTBCXQQ.js.map} +1 -1
- package/dist/{chunk-6KCZMULD.js → chunk-GEHKQTB2.js} +3 -3
- package/dist/{chunk-6KCZMULD.js.map → chunk-GEHKQTB2.js.map} +1 -1
- package/dist/{chunk-Z3PIE2HC.js → chunk-GSQD3QNR.js} +10 -10
- package/dist/{chunk-Z3PIE2HC.js.map → chunk-GSQD3QNR.js.map} +1 -1
- package/dist/{chunk-PVUCLWGL.js → chunk-HHPXFPNO.js} +3 -3
- package/dist/{chunk-PVUCLWGL.js.map → chunk-HHPXFPNO.js.map} +1 -1
- package/dist/{chunk-DM46TJNZ.cjs → chunk-MSFEDB5Z.cjs} +17 -17
- package/dist/{chunk-DM46TJNZ.cjs.map → chunk-MSFEDB5Z.cjs.map} +1 -1
- package/dist/{chunk-YWK4OFUM.js → chunk-NFJJ6B6P.js} +3 -3
- package/dist/{chunk-YWK4OFUM.js.map → chunk-NFJJ6B6P.js.map} +1 -1
- package/dist/{chunk-UG3C67I3.js → chunk-PA6Z5V6U.js} +9 -9
- package/dist/chunk-PA6Z5V6U.js.map +1 -0
- package/dist/{chunk-RLAYS3PT.cjs → chunk-PAW64WWA.cjs} +4 -4
- package/dist/{chunk-RLAYS3PT.cjs.map → chunk-PAW64WWA.cjs.map} +1 -1
- package/dist/{chunk-WHW7ZQCM.cjs → chunk-QETEFQ7T.cjs} +6 -6
- package/dist/{chunk-WHW7ZQCM.cjs.map → chunk-QETEFQ7T.cjs.map} +1 -1
- package/dist/{chunk-KPKDAZ5I.cjs → chunk-QGJF6TRY.cjs} +18 -18
- package/dist/{chunk-KPKDAZ5I.cjs.map → chunk-QGJF6TRY.cjs.map} +1 -1
- package/dist/{chunk-2L6LTY2M.cjs → chunk-QLPSR67Y.cjs} +15 -15
- package/dist/{chunk-2L6LTY2M.cjs.map → chunk-QLPSR67Y.cjs.map} +1 -1
- package/dist/{chunk-7XP3ZCBG.js → chunk-QQKRUSCB.js} +7 -7
- package/dist/{chunk-7XP3ZCBG.js.map → chunk-QQKRUSCB.js.map} +1 -1
- package/dist/{chunk-SJQ6OUHB.cjs → chunk-QWOKGSO2.cjs} +6 -6
- package/dist/{chunk-SJQ6OUHB.cjs.map → chunk-QWOKGSO2.cjs.map} +1 -1
- package/dist/{chunk-MIRRWDFC.cjs → chunk-RDD5YB3T.cjs} +4 -4
- package/dist/{chunk-MIRRWDFC.cjs.map → chunk-RDD5YB3T.cjs.map} +1 -1
- package/dist/{chunk-ZXVDL4TQ.cjs → chunk-W54LWXCG.cjs} +4 -4
- package/dist/{chunk-ZXVDL4TQ.cjs.map → chunk-W54LWXCG.cjs.map} +1 -1
- package/dist/{chunk-DQNIWOM3.cjs → chunk-ZWWHTQ72.cjs} +54 -54
- package/dist/{chunk-DQNIWOM3.cjs.map → chunk-ZWWHTQ72.cjs.map} +1 -1
- package/dist/{chunk-GLA7XHTK.js → chunk-ZZIYFEVM.js} +3 -3
- package/dist/{chunk-GLA7XHTK.js.map → chunk-ZZIYFEVM.js.map} +1 -1
- package/dist/index.cjs +73 -73
- package/dist/index.js +11 -11
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +11 -11
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +9 -9
- package/dist/scores/index.js +2 -2
- package/dist/scores/scoreTraces/index.cjs +8 -8
- package/dist/scores/scoreTraces/index.js +3 -3
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +1 -1
- package/dist/storage/index.cjs +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +22 -22
- package/dist/utils.js +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +17 -17
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-LQJJBWFH.cjs.map +0 -1
- package/dist/chunk-UG3C67I3.js.map +0 -1
package/dist/loop/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "loop", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZWWHTQ72_cjs.loop; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/loop/index.js
CHANGED
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMSFEDB5Z_cjs = require('../chunk-MSFEDB5Z.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 chunkMSFEDB5Z_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mastra/index.js
CHANGED
package/dist/memory/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQETEFQ7T_cjs = require('../chunk-QETEFQ7T.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 chunkQETEFQ7T_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQETEFQ7T_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQETEFQ7T_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/memory/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZWWHTQ72_cjs.BatchPartsProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZWWHTQ72_cjs.LanguageDetector; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZWWHTQ72_cjs.ModerationProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PIIDetector", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZWWHTQ72_cjs.PIIDetector; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ProcessorState", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZWWHTQ72_cjs.ProcessorState; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZWWHTQ72_cjs.PromptInjectionDetector; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZWWHTQ72_cjs.StructuredOutputProcessor; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZWWHTQ72_cjs.SystemPromptScrubber; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZWWHTQ72_cjs.TokenLimiterProcessor; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZWWHTQ72_cjs.UnicodeNormalizer; }
|
|
46
46
|
});
|
|
47
47
|
//# sourceMappingURL=index.cjs.map
|
|
48
48
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-
|
|
1
|
+
export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-GSQD3QNR.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSHVFDF6_cjs = require('../chunk-CSHVFDF6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCSHVFDF6_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCSHVFDF6_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCSHVFDF6_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-4DWBTEHS.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/scores/index.cjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkDGL7I4HZ_cjs = require('../chunk-DGL7I4HZ.cjs');
|
|
4
|
+
var chunkW54LWXCG_cjs = require('../chunk-W54LWXCG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "MastraScorer", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDGL7I4HZ_cjs.MastraScorer; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createScorer", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDGL7I4HZ_cjs.createScorer; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "runExperiment", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDGL7I4HZ_cjs.runExperiment; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkW54LWXCG_cjs.saveScorePayloadSchema; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkW54LWXCG_cjs.scoreResultSchema; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkW54LWXCG_cjs.scoringExtractStepResultSchema; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkW54LWXCG_cjs.scoringValueSchema; }
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
package/dist/scores/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MastraScorer, createScorer, runExperiment } from '../chunk-
|
|
2
|
-
export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-
|
|
1
|
+
export { MastraScorer, createScorer, runExperiment } from '../chunk-HHPXFPNO.js';
|
|
2
|
+
export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-EMTBCXQQ.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkQLPSR67Y_cjs = require('../../chunk-QLPSR67Y.cjs');
|
|
4
|
+
var chunkW54LWXCG_cjs = require('../../chunk-W54LWXCG.cjs');
|
|
5
|
+
var chunkRDD5YB3T_cjs = require('../../chunk-RDD5YB3T.cjs');
|
|
6
6
|
var chunk5NTO7S5I_cjs = require('../../chunk-5NTO7S5I.cjs');
|
|
7
7
|
var pMap = require('p-map');
|
|
8
8
|
var z = require('zod');
|
|
@@ -76,7 +76,7 @@ function normalizeMessageContent(content) {
|
|
|
76
76
|
role: "user",
|
|
77
77
|
parts: content.map((part) => ({ type: part.type, text: part.text }))
|
|
78
78
|
};
|
|
79
|
-
const converted =
|
|
79
|
+
const converted = chunkRDD5YB3T_cjs.convertMessages(tempMessage).to("AIV4.UI");
|
|
80
80
|
return converted[0]?.content || "";
|
|
81
81
|
}
|
|
82
82
|
function convertToUIMessage(message, createdAt) {
|
|
@@ -94,7 +94,7 @@ function convertToUIMessage(message, createdAt) {
|
|
|
94
94
|
parts: message.content.map((part) => ({ type: part.type, text: part.text }))
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
const converted =
|
|
97
|
+
const converted = chunkRDD5YB3T_cjs.convertMessages(messageInput).to("AIV4.UI");
|
|
98
98
|
const result = converted[0];
|
|
99
99
|
if (!result) {
|
|
100
100
|
throw new Error("Failed to convert message");
|
|
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// src/scores/scoreTraces/scoreTracesWorkflow.ts
|
|
237
|
-
var getTraceStep =
|
|
237
|
+
var getTraceStep = chunkQLPSR67Y_cjs.createStep({
|
|
238
238
|
id: "__process-trace-scoring",
|
|
239
239
|
inputSchema: z__default.default.object({
|
|
240
240
|
targets: z__default.default.array(
|
|
@@ -362,7 +362,7 @@ async function runScorerOnTarget({
|
|
|
362
362
|
await attachScoreToSpan({ storage, span, scoreRecord: savedScoreRecord });
|
|
363
363
|
}
|
|
364
364
|
async function validateAndSaveScore({ storage, scorerResult }) {
|
|
365
|
-
const payloadToSave =
|
|
365
|
+
const payloadToSave = chunkW54LWXCG_cjs.saveScorePayloadSchema.parse(scorerResult);
|
|
366
366
|
const result = await storage.saveScore(payloadToSave);
|
|
367
367
|
return result.score;
|
|
368
368
|
}
|
|
@@ -404,7 +404,7 @@ async function attachScoreToSpan({
|
|
|
404
404
|
updates: { links: [...existingLinks, link] }
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
var scoreTracesWorkflow =
|
|
407
|
+
var scoreTracesWorkflow = chunkQLPSR67Y_cjs.createWorkflow({
|
|
408
408
|
id: "__batch-scoring-traces",
|
|
409
409
|
inputSchema: z__default.default.object({
|
|
410
410
|
targets: z__default.default.array(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
2
|
-
import { saveScorePayloadSchema } from '../../chunk-
|
|
3
|
-
import { convertMessages } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-5KSHWBRH.js';
|
|
2
|
+
import { saveScorePayloadSchema } from '../../chunk-EMTBCXQQ.js';
|
|
3
|
+
import { convertMessages } from '../../chunk-NFJJ6B6P.js';
|
|
4
4
|
import { MastraError } from '../../chunk-PZUZNPFM.js';
|
|
5
5
|
import pMap from 'p-map';
|
|
6
6
|
import z from 'zod';
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7GUQ2EQ4_cjs = require('../chunk-7GUQ2EQ4.cjs');
|
|
4
4
|
var chunk5NTO7S5I_cjs = require('../chunk-5NTO7S5I.cjs');
|
|
5
5
|
var chunk6VOPKVYH_cjs = require('../chunk-6VOPKVYH.cjs');
|
|
6
6
|
var chunkEBVYYC2Q_cjs = require('../chunk-EBVYYC2Q.cjs');
|
|
7
7
|
|
|
8
8
|
// src/server/auth.ts
|
|
9
9
|
var _MastraAuthProvider_decorators, _init, _a;
|
|
10
|
-
_MastraAuthProvider_decorators = [
|
|
10
|
+
_MastraAuthProvider_decorators = [chunk7GUQ2EQ4_cjs.InstrumentClass({
|
|
11
11
|
prefix: "auth",
|
|
12
12
|
excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"]
|
|
13
13
|
})];
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InstrumentClass } from '../chunk-
|
|
1
|
+
import { InstrumentClass } from '../chunk-5S5X3QPR.js';
|
|
2
2
|
import { MastraError } from '../chunk-PZUZNPFM.js';
|
|
3
3
|
import { MastraBase } from '../chunk-VQASQG5D.js';
|
|
4
4
|
import { __decoratorStart, __decorateElement, __runInitializers } from '../chunk-3HXBPDKN.js';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkZZ2DSE2G_cjs = require('../chunk-ZZ2DSE2G.cjs');
|
|
4
4
|
var chunk4R2TBRS7_cjs = require('../chunk-4R2TBRS7.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkRDD5YB3T_cjs = require('../chunk-RDD5YB3T.cjs');
|
|
6
6
|
var chunk5NTO7S5I_cjs = require('../chunk-5NTO7S5I.cjs');
|
|
7
7
|
var chunk6VOPKVYH_cjs = require('../chunk-6VOPKVYH.cjs');
|
|
8
8
|
|
|
@@ -311,7 +311,7 @@ var InMemoryMemory = class extends MemoryStorage {
|
|
|
311
311
|
}) {
|
|
312
312
|
this.logger.debug(`MockStore: getMessagesById called`);
|
|
313
313
|
const rawMessages = messageIds.map((id) => this.collection.messages.get(id)).filter((message) => !!message);
|
|
314
|
-
const list = new
|
|
314
|
+
const list = new chunkRDD5YB3T_cjs.MessageList().add(rawMessages.map(this.parseStoredMessage), "memory");
|
|
315
315
|
if (format === "v1") return list.get.all.v1();
|
|
316
316
|
return list.get.all.v2();
|
|
317
317
|
}
|
|
@@ -341,7 +341,7 @@ var InMemoryMemory = class extends MemoryStorage {
|
|
|
341
341
|
};
|
|
342
342
|
this.collection.messages.set(key, storageMessage);
|
|
343
343
|
}
|
|
344
|
-
const list = new
|
|
344
|
+
const list = new chunkRDD5YB3T_cjs.MessageList().add(messages, "memory");
|
|
345
345
|
if (format === `v2`) return list.get.all.v2();
|
|
346
346
|
return list.get.all.v1();
|
|
347
347
|
}
|
package/dist/storage/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { MastraStorage } from '../chunk-BKBVQTOH.js';
|
|
|
2
2
|
export { MastraStorage, ensureDate, resolveMessageLimit, serializeDate } from '../chunk-BKBVQTOH.js';
|
|
3
3
|
import { TABLE_WORKFLOW_SNAPSHOT, TABLE_EVALS, TABLE_TRACES } from '../chunk-SJMKDSRF.js';
|
|
4
4
|
export { AI_SPAN_SCHEMA, SCORERS_SCHEMA, TABLE_AI_SPANS, TABLE_EVALS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-SJMKDSRF.js';
|
|
5
|
-
import { MessageList } from '../chunk-
|
|
5
|
+
import { MessageList } from '../chunk-NFJJ6B6P.js';
|
|
6
6
|
import { MastraError } from '../chunk-PZUZNPFM.js';
|
|
7
7
|
import { MastraBase } from '../chunk-VQASQG5D.js';
|
|
8
8
|
|
package/dist/stream/index.cjs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
|
|
4
|
+
var chunkRDD5YB3T_cjs = require('../chunk-RDD5YB3T.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AISDKV5OutputStream", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkZWWHTQ72_cjs.AISDKV5OutputStream; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ChunkFrom", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkZWWHTQ72_cjs.ChunkFrom; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "MastraAgentNetworkStream", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZWWHTQ72_cjs.MastraAgentNetworkStream; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "MastraModelOutput", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZWWHTQ72_cjs.MastraModelOutput; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "WorkflowRunOutput", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZWWHTQ72_cjs.WorkflowRunOutput; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "convertFullStreamChunkToUIMessageStream", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZWWHTQ72_cjs.convertFullStreamChunkToUIMessageStream; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "convertMastraChunkToAISDKv5", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZWWHTQ72_cjs.convertMastraChunkToAISDKv5; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "DefaultGeneratedFile", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkRDD5YB3T_cjs.DefaultGeneratedFile; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "DefaultGeneratedFileWithType", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkRDD5YB3T_cjs.DefaultGeneratedFileWithType; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=index.cjs.map
|
|
45
45
|
//# sourceMappingURL=index.cjs.map
|
package/dist/stream/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-
|
|
2
|
-
export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-
|
|
1
|
+
export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-GSQD3QNR.js';
|
|
2
|
+
export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-NFJJ6B6P.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/telemetry/index.cjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7GUQ2EQ4_cjs = require('../chunk-7GUQ2EQ4.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk7GUQ2EQ4_cjs.InstrumentClass; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "OTLPStorageExporter", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7GUQ2EQ4_cjs.OTLPTraceExporter; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Telemetry", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7GUQ2EQ4_cjs.Telemetry; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getBaggageValues", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7GUQ2EQ4_cjs.getBaggageValues; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "hasActiveTelemetry", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7GUQ2EQ4_cjs.hasActiveTelemetry; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "withSpan", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7GUQ2EQ4_cjs.withSpan; }
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=index.cjs.map
|
|
32
32
|
//# sourceMappingURL=index.cjs.map
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-
|
|
1
|
+
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-5S5X3QPR.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQWOKGSO2_cjs = require('../chunk-QWOKGSO2.cjs');
|
|
4
4
|
var ai = require('ai');
|
|
5
5
|
var test = require('ai/test');
|
|
6
6
|
var test$1 = require('ai-v5/test');
|
|
@@ -96,7 +96,7 @@ function createMockModel({
|
|
|
96
96
|
});
|
|
97
97
|
return mockModel;
|
|
98
98
|
}
|
|
99
|
-
var MockProvider = class extends
|
|
99
|
+
var MockProvider = class extends chunkQWOKGSO2_cjs.MastraLLMV1 {
|
|
100
100
|
constructor({
|
|
101
101
|
spyGenerate,
|
|
102
102
|
spyStream,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MastraLLMV1 } from '../chunk-
|
|
1
|
+
import { MastraLLMV1 } from '../chunk-ZZIYFEVM.js';
|
|
2
2
|
import { simulateReadableStream } from 'ai';
|
|
3
3
|
import { MockLanguageModelV1 } from 'ai/test';
|
|
4
4
|
import { MockLanguageModelV2, convertArrayToReadableStream } from 'ai-v5/test';
|
package/dist/tts/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPAW64WWA_cjs = require('../chunk-PAW64WWA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraTTS", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkPAW64WWA_cjs.MastraTTS; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/tts/index.js
CHANGED
package/dist/utils.cjs
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQGJF6TRY_cjs = require('./chunk-QGJF6TRY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQGJF6TRY_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQGJF6TRY_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQGJF6TRY_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkQGJF6TRY_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkQGJF6TRY_cjs.ensureToolProperties; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "fetchWithRetry", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkQGJF6TRY_cjs.fetchWithRetry; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "generateEmptyFromSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkQGJF6TRY_cjs.generateEmptyFromSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getNestedValue", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkQGJF6TRY_cjs.getNestedValue2; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkQGJF6TRY_cjs.isCoreMessage; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isUiMessage", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkQGJF6TRY_cjs.isUiMessage; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isZodType", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkQGJF6TRY_cjs.isZodType; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkQGJF6TRY_cjs.makeCoreTool; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "makeCoreToolV5", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkQGJF6TRY_cjs.makeCoreToolV5; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkQGJF6TRY_cjs.maskStreamTags; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "omitKeys", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkQGJF6TRY_cjs.omitKeys2; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkQGJF6TRY_cjs.parseFieldKey; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkQGJF6TRY_cjs.parseSqlIdentifier; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "removeUndefinedValues", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkQGJF6TRY_cjs.removeUndefinedValues; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkQGJF6TRY_cjs.resolveSerializedZodOutput; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "selectFields", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkQGJF6TRY_cjs.selectFields2; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "setNestedValue", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkQGJF6TRY_cjs.setNestedValue2; }
|
|
90
90
|
});
|
|
91
91
|
//# sourceMappingURL=utils.cjs.map
|
|
92
92
|
//# sourceMappingURL=utils.cjs.map
|