@mastra/core 0.13.0 → 0.13.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.
- package/dist/agent/index.cjs +10 -10
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/processors/index.cjs +6 -6
- package/dist/agent/input-processor/processors/index.js +1 -1
- package/dist/agent/message-list/prompt/convert-to-mastra-v1.d.ts.map +1 -1
- package/dist/{chunk-4JPOVSKQ.cjs → chunk-6LAJM2IY.cjs} +7 -7
- package/dist/{chunk-4JPOVSKQ.cjs.map → chunk-6LAJM2IY.cjs.map} +1 -1
- package/dist/{chunk-6S7RRJON.cjs → chunk-A4TGKXTE.cjs} +24 -24
- package/dist/{chunk-6S7RRJON.cjs.map → chunk-A4TGKXTE.cjs.map} +1 -1
- package/dist/{chunk-JGCB7U4Y.cjs → chunk-F67MSMRF.cjs} +6 -6
- package/dist/{chunk-JGCB7U4Y.cjs.map → chunk-F67MSMRF.cjs.map} +1 -1
- package/dist/{chunk-B7JOIJJU.js → chunk-JUGCNTXJ.js} +3 -3
- package/dist/{chunk-B7JOIJJU.js.map → chunk-JUGCNTXJ.js.map} +1 -1
- package/dist/{chunk-OFCCIPH2.js → chunk-L2YJ4I5T.js} +28 -13
- package/dist/chunk-L2YJ4I5T.js.map +1 -0
- package/dist/{chunk-OXARRBRN.js → chunk-LQUMLXH4.js} +3 -3
- package/dist/{chunk-OXARRBRN.js.map → chunk-LQUMLXH4.js.map} +1 -1
- package/dist/{chunk-A3BSP25E.cjs → chunk-MITKB4IU.cjs} +5 -5
- package/dist/{chunk-A3BSP25E.cjs.map → chunk-MITKB4IU.cjs.map} +1 -1
- package/dist/{chunk-2EXWZ3PI.cjs → chunk-MW267UVU.cjs} +3 -3
- package/dist/{chunk-2EXWZ3PI.cjs.map → chunk-MW267UVU.cjs.map} +1 -1
- package/dist/{chunk-MSXZK7BL.cjs → chunk-OFZZZ22B.cjs} +30 -15
- package/dist/chunk-OFZZZ22B.cjs.map +1 -0
- package/dist/{chunk-ZRRHATKS.js → chunk-OSBHZ3L7.js} +6 -6
- package/dist/{chunk-ZRRHATKS.js.map → chunk-OSBHZ3L7.js.map} +1 -1
- package/dist/{chunk-DSMC4VSS.cjs → chunk-RH6XXERP.cjs} +4 -4
- package/dist/{chunk-DSMC4VSS.cjs.map → chunk-RH6XXERP.cjs.map} +1 -1
- package/dist/{chunk-OM556XHR.js → chunk-SFF2EJEV.js} +3 -3
- package/dist/{chunk-OM556XHR.js.map → chunk-SFF2EJEV.js.map} +1 -1
- package/dist/{chunk-RLQIQX4O.js → chunk-TE4VA3NA.js} +4 -4
- package/dist/{chunk-RLQIQX4O.js.map → chunk-TE4VA3NA.js.map} +1 -1
- package/dist/{chunk-57EVKFM5.js → chunk-WS2S7AEJ.js} +4 -4
- package/dist/{chunk-57EVKFM5.js.map → chunk-WS2S7AEJ.js.map} +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.js +8 -8
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/network/vNext/index.cjs +14 -14
- package/dist/network/vNext/index.js +3 -3
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +5 -5
- package/dist/scores/index.js +2 -2
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/utils.cjs +15 -15
- package/dist/utils.js +1 -1
- package/dist/workflows/index.cjs +10 -10
- 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 +3 -3
- package/dist/chunk-MSXZK7BL.cjs.map +0 -1
- package/dist/chunk-OFCCIPH2.js.map +0 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkA4TGKXTE_cjs = require('../chunk-A4TGKXTE.cjs');
|
|
4
|
+
var chunkOFZZZ22B_cjs = require('../chunk-OFZZZ22B.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkA4TGKXTE_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkA4TGKXTE_cjs.LanguageDetector; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkA4TGKXTE_cjs.ModerationInputProcessor; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PIIDetector", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkA4TGKXTE_cjs.PIIDetector; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkA4TGKXTE_cjs.PromptInjectionDetector; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TripWire", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkA4TGKXTE_cjs.TripWire; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkA4TGKXTE_cjs.UnicodeNormalizer; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkOFZZZ22B_cjs.MessageList; }
|
|
39
39
|
});
|
|
40
40
|
//# sourceMappingURL=index.cjs.map
|
|
41
41
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, TripWire, UnicodeNormalizer } from '../chunk-
|
|
2
|
-
export { MessageList } from '../chunk-
|
|
1
|
+
export { Agent, LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, TripWire, UnicodeNormalizer } from '../chunk-OSBHZ3L7.js';
|
|
2
|
+
export { MessageList } from '../chunk-L2YJ4I5T.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA4TGKXTE_cjs = require('../../../chunk-A4TGKXTE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkA4TGKXTE_cjs.LanguageDetector; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ModerationInputProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkA4TGKXTE_cjs.ModerationInputProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PIIDetector", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkA4TGKXTE_cjs.PIIDetector; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkA4TGKXTE_cjs.PromptInjectionDetector; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkA4TGKXTE_cjs.UnicodeNormalizer; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=index.cjs.map
|
|
28
28
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, UnicodeNormalizer } from '../../../chunk-
|
|
1
|
+
export { LanguageDetector, ModerationInputProcessor, PIIDetector, PromptInjectionDetector, UnicodeNormalizer } from '../../../chunk-OSBHZ3L7.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-to-mastra-v1.d.ts","sourceRoot":"","sources":["../../../../src/agent/message-list/prompt/convert-to-mastra-v1.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAA0B,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"convert-to-mastra-v1.d.ts","sourceRoot":"","sources":["../../../../src/agent/message-list/prompt/convert-to-mastra-v1.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAA0B,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAmDlF,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,qBAmVnE"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkNFXTYMWZ_cjs = require('./chunk-NFXTYMWZ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkA4TGKXTE_cjs = require('./chunk-A4TGKXTE.cjs');
|
|
5
|
+
var chunkGPWMM745_cjs = require('./chunk-GPWMM745.cjs');
|
|
5
6
|
var chunkS6MAHT7F_cjs = require('./chunk-S6MAHT7F.cjs');
|
|
6
7
|
var chunkH65GI7JY_cjs = require('./chunk-H65GI7JY.cjs');
|
|
7
8
|
var chunk3BFAQTC3_cjs = require('./chunk-3BFAQTC3.cjs');
|
|
8
9
|
var chunkYT4RGZYO_cjs = require('./chunk-YT4RGZYO.cjs');
|
|
9
10
|
var chunkIDDUQR6P_cjs = require('./chunk-IDDUQR6P.cjs');
|
|
10
|
-
var chunkGPWMM745_cjs = require('./chunk-GPWMM745.cjs');
|
|
11
11
|
var crypto = require('crypto');
|
|
12
12
|
var api = require('@opentelemetry/api');
|
|
13
13
|
var EventEmitter = require('events');
|
|
@@ -1706,7 +1706,7 @@ function createStep(params) {
|
|
|
1706
1706
|
const wrapExecute = (execute) => {
|
|
1707
1707
|
return async (executeParams) => {
|
|
1708
1708
|
const executeResult = await execute(executeParams);
|
|
1709
|
-
if (params instanceof
|
|
1709
|
+
if (params instanceof chunkA4TGKXTE_cjs.Agent || params instanceof chunkH65GI7JY_cjs.Tool) {
|
|
1710
1710
|
return executeResult;
|
|
1711
1711
|
}
|
|
1712
1712
|
let scorersToUse = params.scorers;
|
|
@@ -1717,7 +1717,7 @@ function createStep(params) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
if (scorersToUse && Object.keys(scorersToUse || {}).length > 0) {
|
|
1719
1719
|
for (const [id, scorerObject] of Object.entries(scorersToUse || {})) {
|
|
1720
|
-
|
|
1720
|
+
chunkA4TGKXTE_cjs.runScorer({
|
|
1721
1721
|
scorerId: id,
|
|
1722
1722
|
scorerObject,
|
|
1723
1723
|
runId: executeParams.runId,
|
|
@@ -1737,7 +1737,7 @@ function createStep(params) {
|
|
|
1737
1737
|
return executeResult;
|
|
1738
1738
|
};
|
|
1739
1739
|
};
|
|
1740
|
-
if (params instanceof
|
|
1740
|
+
if (params instanceof chunkA4TGKXTE_cjs.Agent) {
|
|
1741
1741
|
return {
|
|
1742
1742
|
id: params.name,
|
|
1743
1743
|
// @ts-ignore
|
|
@@ -2870,5 +2870,5 @@ exports.cloneWorkflow = cloneWorkflow;
|
|
|
2870
2870
|
exports.createStep = createStep;
|
|
2871
2871
|
exports.createWorkflow = createWorkflow;
|
|
2872
2872
|
exports.mapVariable = mapVariable;
|
|
2873
|
-
//# sourceMappingURL=chunk-
|
|
2874
|
-
//# sourceMappingURL=chunk-
|
|
2873
|
+
//# sourceMappingURL=chunk-6LAJM2IY.cjs.map
|
|
2874
|
+
//# sourceMappingURL=chunk-6LAJM2IY.cjs.map
|