@mastra/core 1.23.0-alpha.5 → 1.23.0-alpha.7
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 +14 -0
- package/dist/agent/agent.d.ts +13 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +2 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-XFLQVMNH.cjs → chunk-2COMJWSP.cjs} +18 -18
- package/dist/{chunk-XFLQVMNH.cjs.map → chunk-2COMJWSP.cjs.map} +1 -1
- package/dist/{chunk-I6XSSR4Z.js → chunk-2DOJSEKM.js} +20 -14
- package/dist/chunk-2DOJSEKM.js.map +1 -0
- package/dist/{chunk-Z63F3XHK.js → chunk-37G434JU.js} +3 -3
- package/dist/{chunk-Z63F3XHK.js.map → chunk-37G434JU.js.map} +1 -1
- package/dist/{chunk-VO6R5RZT.js → chunk-3PX4NVO4.js} +5 -5
- package/dist/{chunk-VO6R5RZT.js.map → chunk-3PX4NVO4.js.map} +1 -1
- package/dist/{chunk-QIJFD7ZC.js → chunk-4GR73476.js} +3 -3
- package/dist/{chunk-QIJFD7ZC.js.map → chunk-4GR73476.js.map} +1 -1
- package/dist/{chunk-QRK2HWHI.js → chunk-7R6CUMCQ.js} +7 -7
- package/dist/{chunk-QRK2HWHI.js.map → chunk-7R6CUMCQ.js.map} +1 -1
- package/dist/{chunk-TKH2A57J.cjs → chunk-AC4BKIH4.cjs} +185 -185
- package/dist/{chunk-TKH2A57J.cjs.map → chunk-AC4BKIH4.cjs.map} +1 -1
- package/dist/{chunk-UENWRQLR.cjs → chunk-AESXHP7M.cjs} +5 -5
- package/dist/{chunk-UENWRQLR.cjs.map → chunk-AESXHP7M.cjs.map} +1 -1
- package/dist/{chunk-YR7XRMDN.cjs → chunk-DUKZTMIA.cjs} +6 -6
- package/dist/{chunk-YR7XRMDN.cjs.map → chunk-DUKZTMIA.cjs.map} +1 -1
- package/dist/{chunk-HWAEQSOO.js → chunk-EBLC3SZU.js} +10 -10
- package/dist/{chunk-HWAEQSOO.js.map → chunk-EBLC3SZU.js.map} +1 -1
- package/dist/{chunk-Z34TVGNZ.js → chunk-EC7FJWDQ.js} +4 -4
- package/dist/{chunk-Z34TVGNZ.js.map → chunk-EC7FJWDQ.js.map} +1 -1
- package/dist/{chunk-ZHYPWNWS.js → chunk-EFX7OKPD.js} +4 -4
- package/dist/{chunk-ZHYPWNWS.js.map → chunk-EFX7OKPD.js.map} +1 -1
- package/dist/{chunk-QYQSXRFZ.js → chunk-FEUHTHXS.js} +35 -10
- package/dist/chunk-FEUHTHXS.js.map +1 -0
- package/dist/{chunk-L2MCWEEX.js → chunk-H4DMZG2G.js} +3 -3
- package/dist/{chunk-L2MCWEEX.js.map → chunk-H4DMZG2G.js.map} +1 -1
- package/dist/{chunk-V7AX2MSJ.cjs → chunk-J2R537Z7.cjs} +32 -26
- package/dist/chunk-J2R537Z7.cjs.map +1 -0
- package/dist/{chunk-EXORPYDN.js → chunk-JI4PAFKP.js} +3 -3
- package/dist/{chunk-EXORPYDN.js.map → chunk-JI4PAFKP.js.map} +1 -1
- package/dist/{chunk-JJFGNYVY.cjs → chunk-KYH7NFDR.cjs} +7 -7
- package/dist/{chunk-JJFGNYVY.cjs.map → chunk-KYH7NFDR.cjs.map} +1 -1
- package/dist/{chunk-JNXWDPCZ.js → chunk-N4QQVYW3.js} +4 -4
- package/dist/{chunk-JNXWDPCZ.js.map → chunk-N4QQVYW3.js.map} +1 -1
- package/dist/{chunk-XZCYFQ4N.cjs → chunk-OFMVPJGK.cjs} +51 -51
- package/dist/{chunk-XZCYFQ4N.cjs.map → chunk-OFMVPJGK.cjs.map} +1 -1
- package/dist/{chunk-ZUN5CMDY.cjs → chunk-OROK2RQF.cjs} +84 -84
- package/dist/{chunk-ZUN5CMDY.cjs.map → chunk-OROK2RQF.cjs.map} +1 -1
- package/dist/{chunk-7DONY7OL.cjs → chunk-R37UG42A.cjs} +3 -3
- package/dist/{chunk-7DONY7OL.cjs.map → chunk-R37UG42A.cjs.map} +1 -1
- package/dist/{chunk-FSHOQBGF.cjs → chunk-RN6YQCOU.cjs} +9 -9
- package/dist/{chunk-FSHOQBGF.cjs.map → chunk-RN6YQCOU.cjs.map} +1 -1
- package/dist/{chunk-6UQKQBIB.js → chunk-UKYZDPXL.js} +3 -3
- package/dist/{chunk-6UQKQBIB.js.map → chunk-UKYZDPXL.js.map} +1 -1
- package/dist/{chunk-7STIIXEL.cjs → chunk-VDZYHVUM.cjs} +3 -3
- package/dist/{chunk-7STIIXEL.cjs.map → chunk-VDZYHVUM.cjs.map} +1 -1
- package/dist/{chunk-4W26D7S6.cjs → chunk-WTRV3KTS.cjs} +7 -7
- package/dist/{chunk-4W26D7S6.cjs.map → chunk-WTRV3KTS.cjs.map} +1 -1
- package/dist/{chunk-Z67JQNEH.cjs → chunk-X4JUECE7.cjs} +9 -9
- package/dist/{chunk-Z67JQNEH.cjs.map → chunk-X4JUECE7.cjs.map} +1 -1
- package/dist/{chunk-DO4JBKMT.cjs → chunk-ZGOY2O3K.cjs} +74 -49
- package/dist/chunk-ZGOY2O3K.cjs.map +1 -0
- package/dist/{chunk-TG46FM6X.js → chunk-ZZK7VFFA.js} +3 -3
- package/dist/{chunk-TG46FM6X.js.map → chunk-ZZK7VFFA.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +242 -242
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/harness.d.ts +2 -0
- package/dist/harness/harness.d.ts.map +1 -1
- package/dist/harness/index.cjs +20 -9
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.js +17 -6
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/types.d.ts +8 -0
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +6 -3
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-GK6QM5DQ.js +3 -0
- package/dist/{mastra-O4WWP6N5.js.map → mastra-GK6QM5DQ.js.map} +1 -1
- package/dist/mastra-KE4XLMI2.cjs +12 -0
- package/dist/{mastra-VHS7LVQG.cjs.map → mastra-KE4XLMI2.cjs.map} +1 -1
- package/dist/memory/index.cjs +17 -17
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-CT6FMRSU.js +3 -0
- package/dist/{models-dev-4W7JQVWR.js.map → models-dev-CT6FMRSU.js.map} +1 -1
- package/dist/models-dev-UJDAX4F3.cjs +12 -0
- package/dist/{models-dev-3IPTEPRM.cjs.map → models-dev-UJDAX4F3.cjs.map} +1 -1
- package/dist/netlify-ECN64HAF.js +3 -0
- package/dist/{netlify-FZBGNFDI.js.map → netlify-ECN64HAF.js.map} +1 -1
- package/dist/netlify-ML4C3IKP.cjs +12 -0
- package/dist/{netlify-XT32D45G.cjs.map → netlify-ML4C3IKP.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-6FR6AKYW.js +3 -0
- package/dist/{provider-registry-AWL2JDVF.js.map → provider-registry-6FR6AKYW.js.map} +1 -1
- package/dist/provider-registry-DRMNUKIF.cjs +40 -0
- package/dist/{provider-registry-X5PBSJ2G.cjs.map → provider-registry-DRMNUKIF.cjs.map} +1 -1
- package/dist/provider-registry.json +12 -6
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/utils.cjs +25 -25
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/handlers/entry.d.ts.map +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/package.json +4 -4
- package/src/llm/model/provider-types.generated.d.ts +6 -3
- package/dist/chunk-DO4JBKMT.cjs.map +0 -1
- package/dist/chunk-I6XSSR4Z.js.map +0 -1
- package/dist/chunk-QYQSXRFZ.js.map +0 -1
- package/dist/chunk-V7AX2MSJ.cjs.map +0 -1
- package/dist/mastra-O4WWP6N5.js +0 -3
- package/dist/mastra-VHS7LVQG.cjs +0 -12
- package/dist/models-dev-3IPTEPRM.cjs +0 -12
- package/dist/models-dev-4W7JQVWR.js +0 -3
- package/dist/netlify-FZBGNFDI.js +0 -3
- package/dist/netlify-XT32D45G.cjs +0 -12
- package/dist/provider-registry-AWL2JDVF.js +0 -3
- package/dist/provider-registry-X5PBSJ2G.cjs +0 -40
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZGOY2O3K_cjs = require('../chunk-ZGOY2O3K.cjs');
|
|
4
4
|
var v4 = require('zod/v4');
|
|
5
5
|
|
|
6
6
|
// src/processor-provider/types.ts
|
|
@@ -67,7 +67,7 @@ var unicodeNormalizerProvider = {
|
|
|
67
67
|
}),
|
|
68
68
|
availablePhases: ["processInput"],
|
|
69
69
|
createProcessor(config) {
|
|
70
|
-
return new
|
|
70
|
+
return new chunkZGOY2O3K_cjs.UnicodeNormalizer(config);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
var tokenLimiterProvider = {
|
|
@@ -83,7 +83,7 @@ var tokenLimiterProvider = {
|
|
|
83
83
|
}),
|
|
84
84
|
availablePhases: ["processInput", "processOutputStream", "processOutputResult"],
|
|
85
85
|
createProcessor(config) {
|
|
86
|
-
return new
|
|
86
|
+
return new chunkZGOY2O3K_cjs.TokenLimiterProcessor(
|
|
87
87
|
config
|
|
88
88
|
);
|
|
89
89
|
}
|
|
@@ -99,7 +99,7 @@ var toolCallFilterProvider = {
|
|
|
99
99
|
}),
|
|
100
100
|
availablePhases: ["processInput"],
|
|
101
101
|
createProcessor(config) {
|
|
102
|
-
return new
|
|
102
|
+
return new chunkZGOY2O3K_cjs.ToolCallFilter(config);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
var batchPartsProvider = {
|
|
@@ -115,7 +115,7 @@ var batchPartsProvider = {
|
|
|
115
115
|
}),
|
|
116
116
|
availablePhases: ["processOutputStream"],
|
|
117
117
|
createProcessor(config) {
|
|
118
|
-
return new
|
|
118
|
+
return new chunkZGOY2O3K_cjs.BatchPartsProcessor(config);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
var moderationProvider = {
|
|
@@ -137,7 +137,7 @@ var moderationProvider = {
|
|
|
137
137
|
}),
|
|
138
138
|
availablePhases: ["processInput", "processOutputResult", "processOutputStream"],
|
|
139
139
|
createProcessor(config) {
|
|
140
|
-
return new
|
|
140
|
+
return new chunkZGOY2O3K_cjs.ModerationProcessor(config);
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
var promptInjectionDetectorProvider = {
|
|
@@ -158,7 +158,7 @@ var promptInjectionDetectorProvider = {
|
|
|
158
158
|
}),
|
|
159
159
|
availablePhases: ["processInput"],
|
|
160
160
|
createProcessor(config) {
|
|
161
|
-
return new
|
|
161
|
+
return new chunkZGOY2O3K_cjs.PromptInjectionDetector(config);
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
var piiDetectorProvider = {
|
|
@@ -181,7 +181,7 @@ var piiDetectorProvider = {
|
|
|
181
181
|
}),
|
|
182
182
|
availablePhases: ["processInput"],
|
|
183
183
|
createProcessor(config) {
|
|
184
|
-
return new
|
|
184
|
+
return new chunkZGOY2O3K_cjs.PIIDetector(config);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
var languageDetectorProvider = {
|
|
@@ -204,7 +204,7 @@ var languageDetectorProvider = {
|
|
|
204
204
|
}),
|
|
205
205
|
availablePhases: ["processInput"],
|
|
206
206
|
createProcessor(config) {
|
|
207
|
-
return new
|
|
207
|
+
return new chunkZGOY2O3K_cjs.LanguageDetector(config);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
var systemPromptScrubberProvider = {
|
|
@@ -225,7 +225,7 @@ var systemPromptScrubberProvider = {
|
|
|
225
225
|
}),
|
|
226
226
|
availablePhases: ["processOutputStream", "processOutputResult"],
|
|
227
227
|
createProcessor(config) {
|
|
228
|
-
return new
|
|
228
|
+
return new chunkZGOY2O3K_cjs.SystemPromptScrubber(config);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
var BUILT_IN_PROCESSOR_PROVIDERS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnicodeNormalizer, TokenLimiterProcessor, ToolCallFilter, BatchPartsProcessor, ModerationProcessor, PromptInjectionDetector, PIIDetector, LanguageDetector, SystemPromptScrubber } from '../chunk-
|
|
1
|
+
import { UnicodeNormalizer, TokenLimiterProcessor, ToolCallFilter, BatchPartsProcessor, ModerationProcessor, PromptInjectionDetector, PIIDetector, LanguageDetector, SystemPromptScrubber } from '../chunk-FEUHTHXS.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
// src/processor-provider/types.ts
|
|
@@ -1,180 +1,180 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZGOY2O3K_cjs = require('../chunk-ZGOY2O3K.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AgentsMDInjector", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZGOY2O3K_cjs.AgentsMDInjector; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "BaseProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZGOY2O3K_cjs.BaseProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZGOY2O3K_cjs.BatchPartsProcessor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FilePartSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZGOY2O3K_cjs.FilePartSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ImagePartSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZGOY2O3K_cjs.ImagePartSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZGOY2O3K_cjs.LanguageDetector; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MessageContentSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZGOY2O3K_cjs.MessageContentSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MessageHistory", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZGOY2O3K_cjs.MessageHistory; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MessagePartSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZGOY2O3K_cjs.MessagePartSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZGOY2O3K_cjs.ModerationProcessor; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "PIIDetector", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZGOY2O3K_cjs.PIIDetector; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ProcessorInputPhaseSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorInputPhaseSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProcessorInputStepPhaseSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorInputStepPhaseSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProcessorMessageContentSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorMessageContentSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ProcessorMessageSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorMessageSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ProcessorOutputResultPhaseSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorOutputResultPhaseSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ProcessorOutputStepPhaseSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorOutputStepPhaseSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ProcessorOutputStreamPhaseSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorOutputStreamPhaseSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ProcessorRunner", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorRunner; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ProcessorState", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorState; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ProcessorStepInputSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorStepInputSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ProcessorStepOutputSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorStepOutputSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ProcessorStepSchema", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkZGOY2O3K_cjs.ProcessorStepSchema; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkZGOY2O3K_cjs.PromptInjectionDetector; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "ReasoningPartSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkZGOY2O3K_cjs.ReasoningPartSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkZGOY2O3K_cjs.SemanticRecall; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "SkillSearchProcessor", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkZGOY2O3K_cjs.SkillSearchProcessor; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "SkillsProcessor", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkZGOY2O3K_cjs.SkillsProcessor; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "SourcePartSchema", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkZGOY2O3K_cjs.SourcePartSchema; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "StepStartPartSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkZGOY2O3K_cjs.StepStartPartSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkZGOY2O3K_cjs.StructuredOutputProcessor; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkZGOY2O3K_cjs.SystemPromptScrubber; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "TextPartSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkZGOY2O3K_cjs.TextPartSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "TokenLimiter", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkZGOY2O3K_cjs.TokenLimiterProcessor; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkZGOY2O3K_cjs.TokenLimiterProcessor; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "ToolCallFilter", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkZGOY2O3K_cjs.ToolCallFilter; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ToolInvocationPartSchema", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkZGOY2O3K_cjs.ToolInvocationPartSchema; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ToolSearchProcessor", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkZGOY2O3K_cjs.ToolSearchProcessor; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkZGOY2O3K_cjs.UnicodeNormalizer; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkZGOY2O3K_cjs.WorkingMemory; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "WorkspaceInstructionsProcessor", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkZGOY2O3K_cjs.WorkspaceInstructionsProcessor; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "globalEmbeddingCache", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkZGOY2O3K_cjs.globalEmbeddingCache; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "isProcessorWorkflow", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkZGOY2O3K_cjs.isProcessorWorkflow; }
|
|
178
178
|
});
|
|
179
179
|
//# sourceMappingURL=index.cjs.map
|
|
180
180
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-
|
|
1
|
+
export { AgentsMDInjector, BaseProcessor, BatchPartsProcessor, FilePartSchema, ImagePartSchema, LanguageDetector, MessageContentSchema, MessageHistory, MessagePartSchema, ModerationProcessor, PIIDetector, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, WorkspaceInstructionsProcessor, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-FEUHTHXS.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GatewayRegistry, PROVIDER_MODELS, PROVIDER_REGISTRY, getProviderConfig, getRegisteredProviders, isProviderRegistered, isValidModelId, parseModelString } from './chunk-2DOJSEKM.js';
|
|
2
|
+
//# sourceMappingURL=provider-registry-6FR6AKYW.js.map
|
|
3
|
+
//# sourceMappingURL=provider-registry-6FR6AKYW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-6FR6AKYW.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkJ2R537Z7_cjs = require('./chunk-J2R537Z7.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "GatewayRegistry", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkJ2R537Z7_cjs.GatewayRegistry; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "PROVIDER_MODELS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkJ2R537Z7_cjs.PROVIDER_MODELS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkJ2R537Z7_cjs.PROVIDER_REGISTRY; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getProviderConfig", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkJ2R537Z7_cjs.getProviderConfig; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getRegisteredProviders", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkJ2R537Z7_cjs.getRegisteredProviders; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "isProviderRegistered", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkJ2R537Z7_cjs.isProviderRegistered; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isValidModelId", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkJ2R537Z7_cjs.isValidModelId; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "parseModelString", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkJ2R537Z7_cjs.parseModelString; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=provider-registry-DRMNUKIF.cjs.map
|
|
40
|
+
//# sourceMappingURL=provider-registry-DRMNUKIF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-DRMNUKIF.cjs"}
|
|
@@ -1076,8 +1076,8 @@
|
|
|
1076
1076
|
"gemma-3-4b-it",
|
|
1077
1077
|
"gemma-3n-e2b-it",
|
|
1078
1078
|
"gemma-3n-e4b-it",
|
|
1079
|
-
"gemma-4-26b",
|
|
1080
|
-
"gemma-4-31b"
|
|
1079
|
+
"gemma-4-26b-it",
|
|
1080
|
+
"gemma-4-31b-it"
|
|
1081
1081
|
],
|
|
1082
1082
|
"docUrl": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
1083
1083
|
"gateway": "models.dev",
|
|
@@ -2050,6 +2050,7 @@
|
|
|
2050
2050
|
"anthropic/claude-sonnet-4.5",
|
|
2051
2051
|
"anthropic/claude-sonnet-4.6",
|
|
2052
2052
|
"arcee-ai/trinity-large-preview:free",
|
|
2053
|
+
"arcee-ai/trinity-large-thinking",
|
|
2053
2054
|
"arcee-ai/trinity-mini:free",
|
|
2054
2055
|
"black-forest-labs/flux.2-flex",
|
|
2055
2056
|
"black-forest-labs/flux.2-klein-4b",
|
|
@@ -2087,6 +2088,8 @@
|
|
|
2087
2088
|
"google/gemma-3n-e2b-it:free",
|
|
2088
2089
|
"google/gemma-3n-e4b-it",
|
|
2089
2090
|
"google/gemma-3n-e4b-it:free",
|
|
2091
|
+
"google/gemma-4-26b-a4b-it",
|
|
2092
|
+
"google/gemma-4-31b-it",
|
|
2090
2093
|
"inception/mercury",
|
|
2091
2094
|
"inception/mercury-2",
|
|
2092
2095
|
"inception/mercury-coder",
|
|
@@ -3438,7 +3441,7 @@
|
|
|
3438
3441
|
"apiKeyEnvVar": "VULTR_API_KEY",
|
|
3439
3442
|
"apiKeyHeader": "Authorization",
|
|
3440
3443
|
"name": "Vultr",
|
|
3441
|
-
"models": ["DeepSeek-V3.2", "GLM-5-FP8", "Kimi-K2.5", "MiniMax-M2.5"],
|
|
3444
|
+
"models": ["DeepSeek-V3.2", "GLM-5-FP8", "Kimi-K2.5", "MiniMax-M2.5", "gpt-oss-120b"],
|
|
3442
3445
|
"docUrl": "https://api.vultrinference.com/",
|
|
3443
3446
|
"gateway": "models.dev"
|
|
3444
3447
|
},
|
|
@@ -5296,8 +5299,8 @@
|
|
|
5296
5299
|
"gemma-3-4b-it",
|
|
5297
5300
|
"gemma-3n-e2b-it",
|
|
5298
5301
|
"gemma-3n-e4b-it",
|
|
5299
|
-
"gemma-4-26b",
|
|
5300
|
-
"gemma-4-31b"
|
|
5302
|
+
"gemma-4-26b-it",
|
|
5303
|
+
"gemma-4-31b-it"
|
|
5301
5304
|
],
|
|
5302
5305
|
"cloudferro-sherlock": [
|
|
5303
5306
|
"MiniMaxAI/MiniMax-M2.5",
|
|
@@ -6141,6 +6144,7 @@
|
|
|
6141
6144
|
"anthropic/claude-sonnet-4.5",
|
|
6142
6145
|
"anthropic/claude-sonnet-4.6",
|
|
6143
6146
|
"arcee-ai/trinity-large-preview:free",
|
|
6147
|
+
"arcee-ai/trinity-large-thinking",
|
|
6144
6148
|
"arcee-ai/trinity-mini:free",
|
|
6145
6149
|
"black-forest-labs/flux.2-flex",
|
|
6146
6150
|
"black-forest-labs/flux.2-klein-4b",
|
|
@@ -6178,6 +6182,8 @@
|
|
|
6178
6182
|
"google/gemma-3n-e2b-it:free",
|
|
6179
6183
|
"google/gemma-3n-e4b-it",
|
|
6180
6184
|
"google/gemma-3n-e4b-it:free",
|
|
6185
|
+
"google/gemma-4-26b-a4b-it",
|
|
6186
|
+
"google/gemma-4-31b-it",
|
|
6181
6187
|
"inception/mercury",
|
|
6182
6188
|
"inception/mercury-2",
|
|
6183
6189
|
"inception/mercury-coder",
|
|
@@ -7270,7 +7276,7 @@
|
|
|
7270
7276
|
"zai-org/GLM-4.5-Air",
|
|
7271
7277
|
"zai-org/GLM-4.5-FP8"
|
|
7272
7278
|
],
|
|
7273
|
-
"vultr": ["DeepSeek-V3.2", "GLM-5-FP8", "Kimi-K2.5", "MiniMax-M2.5"],
|
|
7279
|
+
"vultr": ["DeepSeek-V3.2", "GLM-5-FP8", "Kimi-K2.5", "MiniMax-M2.5", "gpt-oss-120b"],
|
|
7274
7280
|
"github-models": [
|
|
7275
7281
|
"ai21-labs/ai21-jamba-1.5-large",
|
|
7276
7282
|
"ai21-labs/ai21-jamba-1.5-mini",
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZGOY2O3K_cjs = require('../chunk-ZGOY2O3K.cjs');
|
|
4
4
|
|
|
5
5
|
// src/relevance/relevance-score-provider.ts
|
|
6
6
|
function createSimilarityPrompt(query, text) {
|
|
@@ -17,7 +17,7 @@ Relevance score (0-1):`;
|
|
|
17
17
|
var MastraAgentRelevanceScorer = class {
|
|
18
18
|
agent;
|
|
19
19
|
constructor(name, model) {
|
|
20
|
-
this.agent = new
|
|
20
|
+
this.agent = new chunkZGOY2O3K_cjs.Agent({
|
|
21
21
|
id: `relevance-scorer-${name}`,
|
|
22
22
|
name: `Relevance Scorer ${name}`,
|
|
23
23
|
instructions: `You are a specialized agent for evaluating the relevance of text to queries.
|
|
@@ -37,7 +37,7 @@ Always return just the number, no explanation.`,
|
|
|
37
37
|
const prompt = createSimilarityPrompt(query, text);
|
|
38
38
|
const model = await this.agent.getModel();
|
|
39
39
|
let response;
|
|
40
|
-
if (
|
|
40
|
+
if (chunkZGOY2O3K_cjs.isSupportedLanguageModel(model)) {
|
|
41
41
|
const responseText = await this.agent.generate(prompt);
|
|
42
42
|
response = responseText.text;
|
|
43
43
|
} else {
|
package/dist/relevance/index.js
CHANGED