@mastra/core 1.1.0-alpha.0 → 1.1.0-alpha.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/CHANGELOG.md +26 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-Z3XVFOTH.js → chunk-64LMKFD3.js} +4 -4
- package/dist/{chunk-Z3XVFOTH.js.map → chunk-64LMKFD3.js.map} +1 -1
- package/dist/{chunk-WBJMSOYD.cjs → chunk-66462UTX.cjs} +192 -140
- package/dist/chunk-66462UTX.cjs.map +1 -0
- package/dist/{chunk-N2FELMHU.cjs → chunk-BKUNHQZ4.cjs} +57 -24
- package/dist/chunk-BKUNHQZ4.cjs.map +1 -0
- package/dist/{chunk-DXTYXWYM.cjs → chunk-C6YO523J.cjs} +7 -7
- package/dist/{chunk-DXTYXWYM.cjs.map → chunk-C6YO523J.cjs.map} +1 -1
- package/dist/{chunk-OZFBUMI3.cjs → chunk-EZWVMAC6.cjs} +7 -7
- package/dist/{chunk-OZFBUMI3.cjs.map → chunk-EZWVMAC6.cjs.map} +1 -1
- package/dist/{chunk-ACEGVEZF.js → chunk-H4C5NORS.js} +66 -46
- package/dist/chunk-H4C5NORS.js.map +1 -0
- package/dist/{chunk-5VWOGZLE.js → chunk-HKD4NSHR.js} +49 -16
- package/dist/chunk-HKD4NSHR.js.map +1 -0
- package/dist/{chunk-3CXWVB55.cjs → chunk-IKS5Z56O.cjs} +39 -36
- package/dist/{chunk-3CXWVB55.cjs.map → chunk-IKS5Z56O.cjs.map} +1 -1
- package/dist/{chunk-YETWOFQL.js → chunk-KPIJA2R5.js} +21 -31
- package/dist/chunk-KPIJA2R5.js.map +1 -0
- package/dist/{chunk-XSRROONT.cjs → chunk-LMNHODU4.cjs} +5 -5
- package/dist/{chunk-XSRROONT.cjs.map → chunk-LMNHODU4.cjs.map} +1 -1
- package/dist/{chunk-ZZCLGEMJ.js → chunk-NVRAVZZM.js} +192 -139
- package/dist/chunk-NVRAVZZM.js.map +1 -0
- package/dist/{chunk-6FHHT22W.cjs → chunk-O7II2PSR.cjs} +44 -44
- package/dist/{chunk-6FHHT22W.cjs.map → chunk-O7II2PSR.cjs.map} +1 -1
- package/dist/{chunk-ARMHYWF5.js → chunk-QT56V3PE.js} +4 -4
- package/dist/{chunk-ARMHYWF5.js.map → chunk-QT56V3PE.js.map} +1 -1
- package/dist/{chunk-TV4DA7RI.cjs → chunk-RIPKI7ON.cjs} +21 -31
- package/dist/chunk-RIPKI7ON.cjs.map +1 -0
- package/dist/{chunk-5BEYS33K.js → chunk-RQGER4J4.js} +3 -3
- package/dist/{chunk-5BEYS33K.js.map → chunk-RQGER4J4.js.map} +1 -1
- package/dist/{chunk-REH5FX2O.js → chunk-SFICZTYL.js} +28 -25
- package/dist/chunk-SFICZTYL.js.map +1 -0
- package/dist/{chunk-CEYA6FNF.js → chunk-SJUNV5AS.js} +3 -3
- package/dist/{chunk-CEYA6FNF.js.map → chunk-SJUNV5AS.js.map} +1 -1
- package/dist/{chunk-ETSBNSRY.cjs → chunk-TO7IB5JE.cjs} +17 -9
- package/dist/chunk-TO7IB5JE.cjs.map +1 -0
- package/dist/{chunk-QGVPEZ5T.js → chunk-UJRSZGKO.js} +16 -8
- package/dist/chunk-UJRSZGKO.js.map +1 -0
- package/dist/{chunk-RFTFSXJY.cjs → chunk-YSFYUEEG.cjs} +72 -52
- package/dist/chunk-YSFYUEEG.cjs.map +1 -0
- package/dist/docs/README.md +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/SOURCE_MAP.json +271 -271
- package/dist/docs/agents/01-overview.md +2 -2
- package/dist/docs/evals/01-overview.md +5 -5
- package/dist/docs/mcp/01-overview.md +2 -2
- package/dist/docs/observability/01-overview.md +1 -1
- package/dist/docs/observability/03-overview.md +3 -3
- package/dist/docs/rag/01-overview.md +1 -1
- package/dist/docs/tools-mcp/01-mcp-overview.md +2 -2
- package/dist/docs/voice/01-overview.md +1 -1
- package/dist/docs/workflows/01-overview.md +5 -5
- package/dist/docs/workspace/01-overview.md +32 -29
- package/dist/docs/workspace/02-filesystem.md +13 -0
- package/dist/docs/workspace/03-sandbox.md +11 -4
- package/dist/docs/workspace/05-search.md +1 -1
- package/dist/docs/workspace/06-reference.md +304 -12
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +9 -9
- package/dist/llm/index.js +2 -2
- package/dist/llm/model/provider-types.generated.d.ts +6 -2
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +3 -3
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +11 -11
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +40 -40
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-JZ6QRIVL.cjs +40 -0
- package/dist/{provider-registry-63ZEAPKK.cjs.map → provider-registry-JZ6QRIVL.cjs.map} +1 -1
- package/dist/provider-registry-SQTJTKSM.js +3 -0
- package/dist/{provider-registry-4RA5NQGH.js.map → provider-registry-SQTJTKSM.js.map} +1 -1
- package/dist/provider-registry.json +14 -6
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +16 -16
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/base.d.ts +17 -23
- package/dist/storage/domains/agents/base.d.ts.map +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +101 -101
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.ts +53 -37
- package/dist/storage/types.d.ts.map +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 +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +32 -32
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/skills/schemas.d.ts +17 -47
- package/dist/workspace/skills/schemas.d.ts.map +1 -1
- package/dist/workspace/skills/types.d.ts +4 -4
- package/dist/workspace/skills/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/llm/model/provider-types.generated.d.ts +6 -2
- package/dist/chunk-5VWOGZLE.js.map +0 -1
- package/dist/chunk-ACEGVEZF.js.map +0 -1
- package/dist/chunk-ETSBNSRY.cjs.map +0 -1
- package/dist/chunk-N2FELMHU.cjs.map +0 -1
- package/dist/chunk-QGVPEZ5T.js.map +0 -1
- package/dist/chunk-REH5FX2O.js.map +0 -1
- package/dist/chunk-RFTFSXJY.cjs.map +0 -1
- package/dist/chunk-TV4DA7RI.cjs.map +0 -1
- package/dist/chunk-WBJMSOYD.cjs.map +0 -1
- package/dist/chunk-YETWOFQL.js.map +0 -1
- package/dist/chunk-ZZCLGEMJ.js.map +0 -1
- package/dist/provider-registry-4RA5NQGH.js +0 -3
- package/dist/provider-registry-63ZEAPKK.cjs +0 -40
|
@@ -1,164 +1,164 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIKS5Z56O_cjs = require('../chunk-IKS5Z56O.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 chunkIKS5Z56O_cjs.BaseProcessor; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "BatchPartsProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkIKS5Z56O_cjs.BatchPartsProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FilePartSchema", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIKS5Z56O_cjs.FilePartSchema; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ImagePartSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIKS5Z56O_cjs.ImagePartSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "LanguageDetector", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkIKS5Z56O_cjs.LanguageDetector; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "MessageContentSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkIKS5Z56O_cjs.MessageContentSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MessageHistory", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkIKS5Z56O_cjs.MessageHistory; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "MessagePartSchema", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkIKS5Z56O_cjs.MessagePartSchema; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "ModerationProcessor", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkIKS5Z56O_cjs.ModerationProcessor; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PIIDetector", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkIKS5Z56O_cjs.PIIDetector; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "ProcessorInputPhaseSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorInputPhaseSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ProcessorInputStepPhaseSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorInputStepPhaseSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProcessorMessageContentSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorMessageContentSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProcessorMessageSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorMessageSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ProcessorOutputResultPhaseSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorOutputResultPhaseSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ProcessorOutputStepPhaseSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorOutputStepPhaseSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ProcessorOutputStreamPhaseSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorOutputStreamPhaseSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ProcessorRunner", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorRunner; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ProcessorState", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorState; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ProcessorStepInputSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorStepInputSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ProcessorStepOutputSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorStepOutputSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "ProcessorStepSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkIKS5Z56O_cjs.ProcessorStepSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "PromptInjectionDetector", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkIKS5Z56O_cjs.PromptInjectionDetector; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "ReasoningPartSchema", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkIKS5Z56O_cjs.ReasoningPartSchema; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkIKS5Z56O_cjs.SemanticRecall; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "SkillsProcessor", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkIKS5Z56O_cjs.SkillsProcessor; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "SourcePartSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkIKS5Z56O_cjs.SourcePartSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "StepStartPartSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkIKS5Z56O_cjs.StepStartPartSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "StructuredOutputProcessor", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkIKS5Z56O_cjs.StructuredOutputProcessor; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "SystemPromptScrubber", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkIKS5Z56O_cjs.SystemPromptScrubber; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "TextPartSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkIKS5Z56O_cjs.TextPartSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "TokenLimiter", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkIKS5Z56O_cjs.TokenLimiterProcessor; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "TokenLimiterProcessor", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkIKS5Z56O_cjs.TokenLimiterProcessor; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "ToolCallFilter", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkIKS5Z56O_cjs.ToolCallFilter; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "ToolInvocationPartSchema", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkIKS5Z56O_cjs.ToolInvocationPartSchema; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "UnicodeNormalizer", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkIKS5Z56O_cjs.UnicodeNormalizer; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkIKS5Z56O_cjs.WorkingMemory; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "globalEmbeddingCache", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkIKS5Z56O_cjs.globalEmbeddingCache; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "isProcessorWorkflow", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkIKS5Z56O_cjs.isProcessorWorkflow; }
|
|
162
162
|
});
|
|
163
163
|
//# sourceMappingURL=index.cjs.map
|
|
164
164
|
//# 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, 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, UnicodeNormalizer, WorkingMemory, globalEmbeddingCache, isProcessorWorkflow } from '../chunk-SFICZTYL.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTO7IB5JE_cjs = require('./chunk-TO7IB5JE.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "GatewayRegistry", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkTO7IB5JE_cjs.GatewayRegistry; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "PROVIDER_MODELS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkTO7IB5JE_cjs.PROVIDER_MODELS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkTO7IB5JE_cjs.PROVIDER_REGISTRY; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getProviderConfig", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkTO7IB5JE_cjs.getProviderConfig; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "getRegisteredProviders", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkTO7IB5JE_cjs.getRegisteredProviders; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "isProviderRegistered", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkTO7IB5JE_cjs.isProviderRegistered; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "isValidModelId", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkTO7IB5JE_cjs.isValidModelId; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "parseModelString", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkTO7IB5JE_cjs.parseModelString; }
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=provider-registry-JZ6QRIVL.cjs.map
|
|
40
|
+
//# sourceMappingURL=provider-registry-JZ6QRIVL.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-JZ6QRIVL.cjs"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { GatewayRegistry, PROVIDER_MODELS, PROVIDER_REGISTRY, getProviderConfig, getRegisteredProviders, isProviderRegistered, isValidModelId, parseModelString } from './chunk-UJRSZGKO.js';
|
|
2
|
+
//# sourceMappingURL=provider-registry-SQTJTKSM.js.map
|
|
3
|
+
//# sourceMappingURL=provider-registry-SQTJTKSM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"provider-registry-SQTJTKSM.js"}
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"apiKeyHeader": "Authorization",
|
|
32
32
|
"name": "Firmware",
|
|
33
33
|
"models": [
|
|
34
|
-
"cerebras-gpt-oss-120b",
|
|
35
|
-
"cerebras-zai-glm-4.7",
|
|
36
34
|
"claude-haiku-4-5",
|
|
37
35
|
"claude-opus-4-5",
|
|
38
36
|
"claude-sonnet-4-5",
|
|
@@ -47,9 +45,14 @@
|
|
|
47
45
|
"gpt-5-mini",
|
|
48
46
|
"gpt-5-nano",
|
|
49
47
|
"gpt-5.2",
|
|
48
|
+
"gpt-oss-120b",
|
|
50
49
|
"grok-4-fast-non-reasoning",
|
|
51
50
|
"grok-4-fast-reasoning",
|
|
52
|
-
"grok-code-fast-1"
|
|
51
|
+
"grok-code-fast-1",
|
|
52
|
+
"kimi-k2-thinking",
|
|
53
|
+
"kimi-k2-thinking-turbo",
|
|
54
|
+
"kimi-k2.5",
|
|
55
|
+
"zai-glm-4.7"
|
|
53
56
|
],
|
|
54
57
|
"docUrl": "https://docs.firmware.ai",
|
|
55
58
|
"gateway": "models.dev"
|
|
@@ -1482,6 +1485,7 @@
|
|
|
1482
1485
|
"kimi-k2",
|
|
1483
1486
|
"kimi-k2-thinking",
|
|
1484
1487
|
"kimi-k2.5",
|
|
1488
|
+
"kimi-k2.5-free",
|
|
1485
1489
|
"minimax-m2.1",
|
|
1486
1490
|
"minimax-m2.1-free",
|
|
1487
1491
|
"qwen3-coder"
|
|
@@ -2654,8 +2658,6 @@
|
|
|
2654
2658
|
"kimi-k2.5"
|
|
2655
2659
|
],
|
|
2656
2660
|
"firmware": [
|
|
2657
|
-
"cerebras-gpt-oss-120b",
|
|
2658
|
-
"cerebras-zai-glm-4.7",
|
|
2659
2661
|
"claude-haiku-4-5",
|
|
2660
2662
|
"claude-opus-4-5",
|
|
2661
2663
|
"claude-sonnet-4-5",
|
|
@@ -2670,9 +2672,14 @@
|
|
|
2670
2672
|
"gpt-5-mini",
|
|
2671
2673
|
"gpt-5-nano",
|
|
2672
2674
|
"gpt-5.2",
|
|
2675
|
+
"gpt-oss-120b",
|
|
2673
2676
|
"grok-4-fast-non-reasoning",
|
|
2674
2677
|
"grok-4-fast-reasoning",
|
|
2675
|
-
"grok-code-fast-1"
|
|
2678
|
+
"grok-code-fast-1",
|
|
2679
|
+
"kimi-k2-thinking",
|
|
2680
|
+
"kimi-k2-thinking-turbo",
|
|
2681
|
+
"kimi-k2.5",
|
|
2682
|
+
"zai-glm-4.7"
|
|
2676
2683
|
],
|
|
2677
2684
|
"lucidquery": ["lucidnova-rf1-100b", "lucidquery-nexus-coder"],
|
|
2678
2685
|
"moonshotai": [
|
|
@@ -3841,6 +3848,7 @@
|
|
|
3841
3848
|
"kimi-k2",
|
|
3842
3849
|
"kimi-k2-thinking",
|
|
3843
3850
|
"kimi-k2.5",
|
|
3851
|
+
"kimi-k2.5-free",
|
|
3844
3852
|
"minimax-m2.1",
|
|
3845
3853
|
"minimax-m2.1-free",
|
|
3846
3854
|
"qwen3-coder"
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIKS5Z56O_cjs = require('../chunk-IKS5Z56O.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 chunkIKS5Z56O_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 (chunkIKS5Z56O_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
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRIPKI7ON_cjs = require('../chunk-RIPKI7ON.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AGENTS_SCHEMA", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkRIPKI7ON_cjs.AGENTS_SCHEMA; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AGENT_VERSIONS_SCHEMA", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkRIPKI7ON_cjs.AGENT_VERSIONS_SCHEMA; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "OLD_SPAN_SCHEMA", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkRIPKI7ON_cjs.OLD_SPAN_SCHEMA; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "SCORERS_SCHEMA", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRIPKI7ON_cjs.SCORERS_SCHEMA; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "SPAN_SCHEMA", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRIPKI7ON_cjs.SPAN_SCHEMA; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "TABLE_AGENTS", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_AGENTS; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "TABLE_AGENT_VERSIONS", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_AGENT_VERSIONS; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_MESSAGES; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_RESOURCES; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "TABLE_SCHEMAS", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_SCHEMAS; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_SCORERS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "TABLE_SPANS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_SPANS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_THREADS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "TABLE_TRACES", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_TRACES; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
66
66
|
});
|
|
67
67
|
//# sourceMappingURL=constants.cjs.map
|
|
68
68
|
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/storage/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAClE,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,WAAW,oBAAoB,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AAoB,CAAC;AAEhC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAoCxD,CAAC;AAEF,eAAO,MAAM,WAAW,oaAAuC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAmBzD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAQvD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAsB/D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CA+D5E,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AGENTS_SCHEMA, AGENT_VERSIONS_SCHEMA, OLD_SPAN_SCHEMA, SCORERS_SCHEMA, SPAN_SCHEMA, TABLE_AGENTS, TABLE_AGENT_VERSIONS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_SPANS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-
|
|
1
|
+
export { AGENTS_SCHEMA, AGENT_VERSIONS_SCHEMA, OLD_SPAN_SCHEMA, SCORERS_SCHEMA, SPAN_SCHEMA, TABLE_AGENTS, TABLE_AGENT_VERSIONS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_SPANS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-KPIJA2R5.js';
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
|
3
3
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import type { StorageAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageOrderBy, ThreadOrderBy, ThreadSortDirection } from '../../types.js';
|
|
1
|
+
import type { StorageAgentType, StorageAgentSnapshotType, StorageResolvedAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageListAgentsResolvedOutput, StorageOrderBy, ThreadOrderBy, ThreadSortDirection } from '../../types.js';
|
|
2
2
|
import { StorageDomain } from '../base.js';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a stored version of an agent configuration.
|
|
5
|
+
* The config fields are top-level on the version row (no nested snapshot object).
|
|
5
6
|
*/
|
|
6
|
-
export interface AgentVersion {
|
|
7
|
+
export interface AgentVersion extends StorageAgentSnapshotType {
|
|
7
8
|
/** UUID identifier for this version */
|
|
8
9
|
id: string;
|
|
9
10
|
/** ID of the agent this version belongs to */
|
|
10
11
|
agentId: string;
|
|
11
12
|
/** Sequential version number (1, 2, 3, ...) */
|
|
12
13
|
versionNumber: number;
|
|
13
|
-
/** Optional vanity name for this version */
|
|
14
|
-
name?: string;
|
|
15
|
-
/** Full agent configuration snapshot */
|
|
16
|
-
snapshot: StorageAgentType;
|
|
17
14
|
/** Array of field names that changed from the previous version */
|
|
18
15
|
changedFields?: string[];
|
|
19
16
|
/** Optional message describing the changes */
|
|
@@ -23,18 +20,15 @@ export interface AgentVersion {
|
|
|
23
20
|
}
|
|
24
21
|
/**
|
|
25
22
|
* Input for creating a new agent version.
|
|
23
|
+
* Config fields are top-level (no nested snapshot object).
|
|
26
24
|
*/
|
|
27
|
-
export interface CreateVersionInput {
|
|
25
|
+
export interface CreateVersionInput extends StorageAgentSnapshotType {
|
|
28
26
|
/** UUID identifier for this version */
|
|
29
27
|
id: string;
|
|
30
28
|
/** ID of the agent this version belongs to */
|
|
31
29
|
agentId: string;
|
|
32
30
|
/** Sequential version number */
|
|
33
31
|
versionNumber: number;
|
|
34
|
-
/** Optional vanity name for this version */
|
|
35
|
-
name?: string;
|
|
36
|
-
/** Full agent configuration snapshot */
|
|
37
|
-
snapshot: StorageAgentType;
|
|
38
32
|
/** Array of field names that changed from the previous version */
|
|
39
33
|
changedFields?: string[];
|
|
40
34
|
/** Optional message describing the changes */
|
|
@@ -85,36 +79,36 @@ export interface ListVersionsOutput {
|
|
|
85
79
|
export declare abstract class AgentsStorage extends StorageDomain {
|
|
86
80
|
constructor();
|
|
87
81
|
/**
|
|
88
|
-
* Retrieves an agent by its unique identifier (raw, without version resolution).
|
|
82
|
+
* Retrieves an agent by its unique identifier (raw thin record, without version resolution).
|
|
89
83
|
* @param id - The unique identifier of the agent
|
|
90
|
-
* @returns The agent if found, null otherwise
|
|
84
|
+
* @returns The thin agent record if found, null otherwise
|
|
91
85
|
*/
|
|
92
86
|
abstract getAgentById({ id }: {
|
|
93
87
|
id: string;
|
|
94
88
|
}): Promise<StorageAgentType | null>;
|
|
95
89
|
/**
|
|
96
|
-
* Retrieves an agent by its unique identifier, resolving from the active version
|
|
90
|
+
* Retrieves an agent by its unique identifier, resolving config from the active version.
|
|
97
91
|
* This is the preferred method for fetching stored agents as it ensures the returned
|
|
98
92
|
* configuration matches the active version.
|
|
99
93
|
*
|
|
100
94
|
* @param id - The unique identifier of the agent
|
|
101
|
-
* @returns The agent
|
|
95
|
+
* @returns The resolved agent (metadata + version config), or null if not found
|
|
102
96
|
*/
|
|
103
97
|
getAgentByIdResolved({ id }: {
|
|
104
98
|
id: string;
|
|
105
|
-
}): Promise<
|
|
99
|
+
}): Promise<StorageResolvedAgentType | null>;
|
|
106
100
|
/**
|
|
107
101
|
* Lists all agents with version resolution.
|
|
108
|
-
* For each agent that has an activeVersionId, the config is resolved from the version
|
|
102
|
+
* For each agent that has an activeVersionId, the config is resolved from the version.
|
|
109
103
|
*
|
|
110
104
|
* @param args - Pagination and ordering options
|
|
111
105
|
* @returns Paginated list of resolved agents
|
|
112
106
|
*/
|
|
113
|
-
listAgentsResolved(args?: StorageListAgentsInput): Promise<
|
|
107
|
+
listAgentsResolved(args?: StorageListAgentsInput): Promise<StorageListAgentsResolvedOutput>;
|
|
114
108
|
/**
|
|
115
109
|
* Creates a new agent in storage.
|
|
116
|
-
* @param agent - The agent data to create
|
|
117
|
-
* @returns The created agent with timestamps
|
|
110
|
+
* @param agent - The agent data to create (thin record fields + initial snapshot)
|
|
111
|
+
* @returns The created thin agent record with timestamps
|
|
118
112
|
*/
|
|
119
113
|
abstract createAgent({ agent }: {
|
|
120
114
|
agent: StorageCreateAgentInput;
|
|
@@ -123,7 +117,7 @@ export declare abstract class AgentsStorage extends StorageDomain {
|
|
|
123
117
|
* Updates an existing agent in storage.
|
|
124
118
|
* @param id - The unique identifier of the agent to update
|
|
125
119
|
* @param updates - The fields to update
|
|
126
|
-
* @returns The updated agent
|
|
120
|
+
* @returns The updated thin agent record
|
|
127
121
|
*/
|
|
128
122
|
abstract updateAgent({ id, ...updates }: StorageUpdateAgentInput): Promise<StorageAgentType>;
|
|
129
123
|
/**
|
|
@@ -136,12 +130,12 @@ export declare abstract class AgentsStorage extends StorageDomain {
|
|
|
136
130
|
/**
|
|
137
131
|
* Lists all agents with optional pagination.
|
|
138
132
|
* @param args - Pagination and ordering options
|
|
139
|
-
* @returns Paginated list of
|
|
133
|
+
* @returns Paginated list of thin agent records
|
|
140
134
|
*/
|
|
141
135
|
abstract listAgents(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
|
|
142
136
|
/**
|
|
143
137
|
* Creates a new version record for an agent.
|
|
144
|
-
* @param input - The version data to create
|
|
138
|
+
* @param input - The version data to create (config fields are top-level)
|
|
145
139
|
* @returns The created version with timestamp
|
|
146
140
|
*/
|
|
147
141
|
abstract createVersion(input: CreateVersionInput): Promise<AgentVersion>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,mBAAmB,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAMxC
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,cAAc,EACd,aAAa,EACb,mBAAmB,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAMxC;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,wBAAwB;IAC5D,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB;IAClE,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,WAAW,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,iB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E,KAAK,EAAE,aAAa,CAAC;QAAC,SAAS,EAAE,mBAAmB,CAAA;KAAE;IAQ3D;;OAEG;IACH,SAAS,CAAC,mBAAmB,CAC3B,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,EACtC,gBAAgB,GAAE,oBAA6B,GAC9C;QAAE,KAAK,EAAE,cAAc,CAAC;QAAC,SAAS,EAAE,oBAAoB,CAAA;KAAE;CAO9D"}
|
|
@@ -28,7 +28,7 @@ export declare class InMemoryAgentsStorage extends AgentsStorage {
|
|
|
28
28
|
deleteVersionsByAgentId(agentId: string): Promise<void>;
|
|
29
29
|
countVersions(agentId: string): Promise<number>;
|
|
30
30
|
/**
|
|
31
|
-
* Deep copy
|
|
31
|
+
* Deep copy a thin agent record to prevent external mutation of stored data
|
|
32
32
|
*/
|
|
33
33
|
private deepCopyAgent;
|
|
34
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inmemory.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/inmemory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EAGxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAGnB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,qBAAa,qBAAsB,SAAQ,aAAa;IACtD,OAAO,CAAC,EAAE,CAAa;gBAEX,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,UAAU,CAAA;KAAE;IAKhC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IASpC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;K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