@mastra/core 1.3.0-alpha.1 → 1.3.0-alpha.2
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 +6 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-DD7377YA.cjs → chunk-6TZKQI4R.cjs} +5 -5
- package/dist/{chunk-DD7377YA.cjs.map → chunk-6TZKQI4R.cjs.map} +1 -1
- package/dist/{chunk-GMSEZYLZ.js → chunk-BXLLXTT4.js} +3 -3
- package/dist/{chunk-GMSEZYLZ.js.map → chunk-BXLLXTT4.js.map} +1 -1
- package/dist/{chunk-5VMWMXSI.cjs → chunk-D5JZT6EK.cjs} +14 -14
- package/dist/{chunk-5VMWMXSI.cjs.map → chunk-D5JZT6EK.cjs.map} +1 -1
- package/dist/{chunk-ZC6IHDHX.cjs → chunk-FLHFB23E.cjs} +12 -12
- package/dist/{chunk-ZC6IHDHX.cjs.map → chunk-FLHFB23E.cjs.map} +1 -1
- package/dist/{chunk-U4EG3D6G.cjs → chunk-GCTAD6B7.cjs} +5 -5
- package/dist/{chunk-U4EG3D6G.cjs.map → chunk-GCTAD6B7.cjs.map} +1 -1
- package/dist/{chunk-LULKG6NF.js → chunk-JQNREL64.js} +4 -4
- package/dist/{chunk-LULKG6NF.js.map → chunk-JQNREL64.js.map} +1 -1
- package/dist/{chunk-SZH2YH74.cjs → chunk-JU6K7UDX.cjs} +8 -8
- package/dist/chunk-JU6K7UDX.cjs.map +1 -0
- package/dist/{chunk-D5B5ON7A.cjs → chunk-KAJNBNWP.cjs} +23 -5
- package/dist/chunk-KAJNBNWP.cjs.map +1 -0
- package/dist/{chunk-MAX37NGP.js → chunk-KL2JPSRX.js} +3 -3
- package/dist/{chunk-MAX37NGP.js.map → chunk-KL2JPSRX.js.map} +1 -1
- package/dist/{chunk-VJDLIS2E.js → chunk-MOOJ3H3C.js} +8 -8
- package/dist/chunk-MOOJ3H3C.js.map +1 -0
- package/dist/{chunk-ELBCIHOB.js → chunk-STKNQDVA.js} +4 -4
- package/dist/{chunk-ELBCIHOB.js.map → chunk-STKNQDVA.js.map} +1 -1
- package/dist/{chunk-DULE2DRR.cjs → chunk-U2CABSMC.cjs} +48 -48
- package/dist/{chunk-DULE2DRR.cjs.map → chunk-U2CABSMC.cjs.map} +1 -1
- package/dist/{chunk-YMXQDOSQ.js → chunk-VVD56FI4.js} +7 -7
- package/dist/{chunk-YMXQDOSQ.js.map → chunk-VVD56FI4.js.map} +1 -1
- package/dist/{chunk-VHAFCFYP.js → chunk-WL3AW3YA.js} +22 -4
- package/dist/chunk-WL3AW3YA.js.map +1 -0
- package/dist/{chunk-ZIWDJWC3.cjs → chunk-XQVYEOI7.cjs} +7 -7
- package/dist/{chunk-ZIWDJWC3.cjs.map → chunk-XQVYEOI7.cjs.map} +1 -1
- package/dist/{chunk-AFF24QUP.js → chunk-ZRUTE56J.js} +4 -4
- package/dist/{chunk-AFF24QUP.js.map → chunk-ZRUTE56J.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +153 -153
- package/dist/docs/references/docs-memory-observational-memory.md +9 -78
- package/dist/docs/references/reference-memory-observational-memory.md +7 -316
- 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/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/llm/index.cjs +10 -10
- package/dist/llm/index.js +2 -2
- package/dist/llm/model/provider-types.generated.d.ts +9 -0
- package/dist/loop/index.cjs +12 -12
- 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 +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-C6XCYX44.cjs +40 -0
- package/dist/{provider-registry-BJJRUX4P.cjs.map → provider-registry-C6XCYX44.cjs.map} +1 -1
- package/dist/provider-registry-NWU4YFQW.js +3 -0
- package/dist/{provider-registry-VZYB342T.js.map → provider-registry-NWU4YFQW.js.map} +1 -1
- package/dist/provider-registry.json +20 -2
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/domains/memory/base.d.ts +4 -4
- package/dist/storage/domains/memory/inmemory.d.ts +1 -1
- package/dist/storage/index.cjs +38 -38
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.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/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/package.json +2 -2
- package/src/llm/model/provider-types.generated.d.ts +9 -0
- package/dist/chunk-D5B5ON7A.cjs.map +0 -1
- package/dist/chunk-SZH2YH74.cjs.map +0 -1
- package/dist/chunk-VHAFCFYP.js.map +0 -1
- package/dist/chunk-VJDLIS2E.js.map +0 -1
- package/dist/provider-registry-BJJRUX4P.cjs +0 -40
- package/dist/provider-registry-VZYB342T.js +0 -3
package/dist/llm/index.cjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGCTAD6B7_cjs = require('../chunk-GCTAD6B7.cjs');
|
|
4
4
|
var chunkXDD5V446_cjs = require('../chunk-XDD5V446.cjs');
|
|
5
5
|
var chunk2P6DD7M5_cjs = require('../chunk-2P6DD7M5.cjs');
|
|
6
6
|
var chunkSH4PCZ3X_cjs = require('../chunk-SH4PCZ3X.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkKAJNBNWP_cjs = require('../chunk-KAJNBNWP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGCTAD6B7_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGCTAD6B7_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGCTAD6B7_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGCTAD6B7_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGCTAD6B7_cjs.resolveModelConfig; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
32
32
|
enumerable: true,
|
|
@@ -42,15 +42,15 @@ Object.defineProperty(exports, "MastraModelGateway", {
|
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkKAJNBNWP_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkKAJNBNWP_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkKAJNBNWP_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
|
56
56
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-BXLLXTT4.js';
|
|
2
2
|
export { ModelsDevGateway } from '../chunk-ZATLLPIH.js';
|
|
3
3
|
export { NetlifyGateway } from '../chunk-GIY5BINT.js';
|
|
4
4
|
export { MastraModelGateway } from '../chunk-SBPPGJL6.js';
|
|
5
|
-
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
5
|
+
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-WL3AW3YA.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -40,6 +40,10 @@ export type ProviderModelsMap = {
|
|
|
40
40
|
'gpt-5.2',
|
|
41
41
|
'gpt-oss-120b',
|
|
42
42
|
'gpt-oss-20b',
|
|
43
|
+
'kimi-k2-thinking',
|
|
44
|
+
'kimi-k2.5',
|
|
45
|
+
'zai-glm-4.7',
|
|
46
|
+
'zai-glm-4.7-flash',
|
|
43
47
|
];
|
|
44
48
|
readonly nova: readonly ['nova-2-lite-v1', 'nova-2-pro-v1'];
|
|
45
49
|
readonly lucidquery: readonly ['lucidnova-rf1-100b', 'lucidquery-nexus-coder'];
|
|
@@ -1006,12 +1010,17 @@ export type ProviderModelsMap = {
|
|
|
1006
1010
|
'devstral-2512',
|
|
1007
1011
|
'devstral-small-2512',
|
|
1008
1012
|
'gemini-2.5-pro',
|
|
1013
|
+
'glm-4p5',
|
|
1014
|
+
'glm-4p5-air',
|
|
1015
|
+
'glm-4p7',
|
|
1009
1016
|
'gpt-4.1',
|
|
1010
1017
|
'gpt-oss-120b',
|
|
1011
1018
|
'intellect-3',
|
|
1012
1019
|
'kimi-k2-instruct',
|
|
1013
1020
|
'kimi-k2-thinking',
|
|
1014
1021
|
'llama-3.1-405b-instruct',
|
|
1022
|
+
'minimax-m2',
|
|
1023
|
+
'minimax-m2p1',
|
|
1015
1024
|
'nova-pro-v1',
|
|
1016
1025
|
'qwen3-32b',
|
|
1017
1026
|
'qwen3-coder-480b-a35b-instruct',
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFLHFB23E_cjs = require('../chunk-FLHFB23E.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkFLHFB23E_cjs.createScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "formatCheckFeedback", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFLHFB23E_cjs.formatCheckFeedback; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "formatCompletionFeedback", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFLHFB23E_cjs.formatCompletionFeedback; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "formatValidationFeedback", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFLHFB23E_cjs.formatValidationFeedback; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "generateFinalResult", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkFLHFB23E_cjs.generateFinalResult; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "generateStructuredFinalResult", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkFLHFB23E_cjs.generateStructuredFinalResult; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "loop", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkFLHFB23E_cjs.loop; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "runChecks", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkFLHFB23E_cjs.runChecks; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "runCompletionScorers", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkFLHFB23E_cjs.runCompletionScorers; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "runDefaultCompletionCheck", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkFLHFB23E_cjs.runDefaultCompletionCheck; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "runValidation", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkFLHFB23E_cjs.runValidation; }
|
|
50
50
|
});
|
|
51
51
|
//# sourceMappingURL=index.cjs.map
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runValidation } from '../chunk-
|
|
1
|
+
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runValidation } from '../chunk-ZRUTE56J.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD5JZT6EK_cjs = require('../chunk-D5JZT6EK.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 chunkD5JZT6EK_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,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFLHFB23E_cjs = require('../chunk-FLHFB23E.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 chunkFLHFB23E_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFLHFB23E_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MockMemory", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFLHFB23E_cjs.MockMemory; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "WORKING_MEMORY_END_TAG", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFLHFB23E_cjs.WORKING_MEMORY_END_TAG; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "WORKING_MEMORY_START_TAG", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkFLHFB23E_cjs.WORKING_MEMORY_START_TAG; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "extractWorkingMemoryContent", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkFLHFB23E_cjs.extractWorkingMemoryContent; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "extractWorkingMemoryTags", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkFLHFB23E_cjs.extractWorkingMemoryTags; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getThreadOMMetadata", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkFLHFB23E_cjs.getThreadOMMetadata; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isObservationalMemoryEnabled", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkFLHFB23E_cjs.isObservationalMemoryEnabled; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkFLHFB23E_cjs.memoryDefaultOptions; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "parseMemoryRequestContext", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkFLHFB23E_cjs.parseMemoryRequestContext; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "removeWorkingMemoryTags", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkFLHFB23E_cjs.removeWorkingMemoryTags; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "setThreadOMMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkFLHFB23E_cjs.setThreadOMMetadata; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/memory/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, MockMemory, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, getThreadOMMetadata, isObservationalMemoryEnabled, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, MockMemory, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, getThreadOMMetadata, isObservationalMemoryEnabled, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-ZRUTE56J.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,168 +1,168 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFLHFB23E_cjs = require('../chunk-FLHFB23E.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "BaseProcessor", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkFLHFB23E_cjs.BaseProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFLHFB23E_cjs.BatchPartsProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FilePartSchema", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFLHFB23E_cjs.FilePartSchema; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ImagePartSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFLHFB23E_cjs.ImagePartSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkFLHFB23E_cjs.LanguageDetector; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "MessageContentSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkFLHFB23E_cjs.MessageContentSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MessageHistory", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkFLHFB23E_cjs.MessageHistory; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MessagePartSchema", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkFLHFB23E_cjs.MessagePartSchema; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkFLHFB23E_cjs.ModerationProcessor; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PIIDetector", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkFLHFB23E_cjs.PIIDetector; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "ProcessorInputPhaseSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorInputPhaseSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ProcessorInputStepPhaseSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorInputStepPhaseSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProcessorMessageContentSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorMessageContentSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProcessorMessageSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorMessageSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ProcessorOutputResultPhaseSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorOutputResultPhaseSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ProcessorOutputStepPhaseSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorOutputStepPhaseSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ProcessorOutputStreamPhaseSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorOutputStreamPhaseSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ProcessorRunner", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorRunner; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ProcessorState", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorState; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ProcessorStepInputSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorStepInputSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ProcessorStepOutputSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorStepOutputSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ProcessorStepSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkFLHFB23E_cjs.ProcessorStepSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkFLHFB23E_cjs.PromptInjectionDetector; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "ReasoningPartSchema", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkFLHFB23E_cjs.ReasoningPartSchema; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkFLHFB23E_cjs.SemanticRecall; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "SkillsProcessor", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkFLHFB23E_cjs.SkillsProcessor; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "SourcePartSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkFLHFB23E_cjs.SourcePartSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "StepStartPartSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkFLHFB23E_cjs.StepStartPartSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkFLHFB23E_cjs.StructuredOutputProcessor; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkFLHFB23E_cjs.SystemPromptScrubber; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "TextPartSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkFLHFB23E_cjs.TextPartSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "TokenLimiter", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkFLHFB23E_cjs.TokenLimiterProcessor; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkFLHFB23E_cjs.TokenLimiterProcessor; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "ToolCallFilter", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkFLHFB23E_cjs.ToolCallFilter; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "ToolInvocationPartSchema", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkFLHFB23E_cjs.ToolInvocationPartSchema; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "ToolSearchProcessor", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkFLHFB23E_cjs.ToolSearchProcessor; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkFLHFB23E_cjs.UnicodeNormalizer; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkFLHFB23E_cjs.WorkingMemory; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "globalEmbeddingCache", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkFLHFB23E_cjs.globalEmbeddingCache; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "isProcessorWorkflow", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkFLHFB23E_cjs.isProcessorWorkflow; }
|
|
166
166
|
});
|
|
167
167
|
//# sourceMappingURL=index.cjs.map
|
|
168
168
|
//# sourceMappingURL=index.cjs.map
|
package/dist/processors/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { 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, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-
|
|
1
|
+
export { 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, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor as TokenLimiter, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, UnicodeNormalizer, WorkingMemory, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-ZRUTE56J.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKAJNBNWP_cjs = require('./chunk-KAJNBNWP.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "GatewayRegistry", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkKAJNBNWP_cjs.GatewayRegistry; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "PROVIDER_MODELS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkKAJNBNWP_cjs.PROVIDER_MODELS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkKAJNBNWP_cjs.PROVIDER_REGISTRY; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getProviderConfig", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkKAJNBNWP_cjs.getProviderConfig; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getRegisteredProviders", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkKAJNBNWP_cjs.getRegisteredProviders; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "isProviderRegistered", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkKAJNBNWP_cjs.isProviderRegistered; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isValidModelId", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkKAJNBNWP_cjs.isValidModelId; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "parseModelString", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkKAJNBNWP_cjs.parseModelString; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=provider-registry-C6XCYX44.cjs.map
|
|
40
|
+
//# sourceMappingURL=provider-registry-C6XCYX44.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-C6XCYX44.cjs"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GatewayRegistry, PROVIDER_MODELS, PROVIDER_REGISTRY, getProviderConfig, getRegisteredProviders, isProviderRegistered, isValidModelId, parseModelString } from './chunk-WL3AW3YA.js';
|
|
2
|
+
//# sourceMappingURL=provider-registry-NWU4YFQW.js.map
|
|
3
|
+
//# sourceMappingURL=provider-registry-NWU4YFQW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-NWU4YFQW.js"}
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
"gpt-5-nano",
|
|
48
48
|
"gpt-5.2",
|
|
49
49
|
"gpt-oss-120b",
|
|
50
|
-
"gpt-oss-20b"
|
|
50
|
+
"gpt-oss-20b",
|
|
51
|
+
"kimi-k2-thinking",
|
|
52
|
+
"kimi-k2.5",
|
|
53
|
+
"zai-glm-4.7",
|
|
54
|
+
"zai-glm-4.7-flash"
|
|
51
55
|
],
|
|
52
56
|
"docUrl": "https://docs.firmware.ai",
|
|
53
57
|
"gateway": "models.dev"
|
|
@@ -1231,12 +1235,17 @@
|
|
|
1231
1235
|
"devstral-2512",
|
|
1232
1236
|
"devstral-small-2512",
|
|
1233
1237
|
"gemini-2.5-pro",
|
|
1238
|
+
"glm-4p5",
|
|
1239
|
+
"glm-4p5-air",
|
|
1240
|
+
"glm-4p7",
|
|
1234
1241
|
"gpt-4.1",
|
|
1235
1242
|
"gpt-oss-120b",
|
|
1236
1243
|
"intellect-3",
|
|
1237
1244
|
"kimi-k2-instruct",
|
|
1238
1245
|
"kimi-k2-thinking",
|
|
1239
1246
|
"llama-3.1-405b-instruct",
|
|
1247
|
+
"minimax-m2",
|
|
1248
|
+
"minimax-m2p1",
|
|
1240
1249
|
"nova-pro-v1",
|
|
1241
1250
|
"qwen3-32b",
|
|
1242
1251
|
"qwen3-coder-480b-a35b-instruct",
|
|
@@ -2899,7 +2908,11 @@
|
|
|
2899
2908
|
"gpt-5-nano",
|
|
2900
2909
|
"gpt-5.2",
|
|
2901
2910
|
"gpt-oss-120b",
|
|
2902
|
-
"gpt-oss-20b"
|
|
2911
|
+
"gpt-oss-20b",
|
|
2912
|
+
"kimi-k2-thinking",
|
|
2913
|
+
"kimi-k2.5",
|
|
2914
|
+
"zai-glm-4.7",
|
|
2915
|
+
"zai-glm-4.7-flash"
|
|
2903
2916
|
],
|
|
2904
2917
|
"nova": ["nova-2-lite-v1", "nova-2-pro-v1"],
|
|
2905
2918
|
"lucidquery": ["lucidnova-rf1-100b", "lucidquery-nexus-coder"],
|
|
@@ -3866,12 +3879,17 @@
|
|
|
3866
3879
|
"devstral-2512",
|
|
3867
3880
|
"devstral-small-2512",
|
|
3868
3881
|
"gemini-2.5-pro",
|
|
3882
|
+
"glm-4p5",
|
|
3883
|
+
"glm-4p5-air",
|
|
3884
|
+
"glm-4p7",
|
|
3869
3885
|
"gpt-4.1",
|
|
3870
3886
|
"gpt-oss-120b",
|
|
3871
3887
|
"intellect-3",
|
|
3872
3888
|
"kimi-k2-instruct",
|
|
3873
3889
|
"kimi-k2-thinking",
|
|
3874
3890
|
"llama-3.1-405b-instruct",
|
|
3891
|
+
"minimax-m2",
|
|
3892
|
+
"minimax-m2p1",
|
|
3875
3893
|
"nova-pro-v1",
|
|
3876
3894
|
"qwen3-32b",
|
|
3877
3895
|
"qwen3-coder-480b-a35b-instruct",
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFLHFB23E_cjs = require('../chunk-FLHFB23E.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 chunkFLHFB23E_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 (chunkFLHFB23E_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