@mastra/core 1.1.0-alpha.0 → 1.1.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 +28 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-DXTYXWYM.cjs → chunk-4ACKGMN2.cjs} +7 -7
- package/dist/{chunk-DXTYXWYM.cjs.map → chunk-4ACKGMN2.cjs.map} +1 -1
- package/dist/{chunk-ZZCLGEMJ.js → chunk-4KQEQ4NM.js} +192 -353
- package/dist/chunk-4KQEQ4NM.js.map +1 -0
- package/dist/{chunk-6FHHT22W.cjs → chunk-4PERRFZD.cjs} +44 -44
- package/dist/{chunk-6FHHT22W.cjs.map → chunk-4PERRFZD.cjs.map} +1 -1
- package/dist/{chunk-XSRROONT.cjs → chunk-4QJBNJI4.cjs} +5 -5
- package/dist/{chunk-XSRROONT.cjs.map → chunk-4QJBNJI4.cjs.map} +1 -1
- package/dist/{chunk-QGVPEZ5T.js → chunk-BG6DCMO2.js} +20 -10
- package/dist/chunk-BG6DCMO2.js.map +1 -0
- package/dist/{chunk-REH5FX2O.js → chunk-FVVQY6UU.js} +28 -25
- package/dist/chunk-FVVQY6UU.js.map +1 -0
- package/dist/{chunk-Z3XVFOTH.js → chunk-FZZI2V2T.js} +4 -4
- package/dist/{chunk-Z3XVFOTH.js.map → chunk-FZZI2V2T.js.map} +1 -1
- package/dist/{chunk-ACEGVEZF.js → chunk-H4C5NORS.js} +66 -46
- package/dist/chunk-H4C5NORS.js.map +1 -0
- package/dist/{chunk-N2FELMHU.cjs → chunk-HR67B4UM.cjs} +57 -24
- package/dist/chunk-HR67B4UM.cjs.map +1 -0
- package/dist/{chunk-YETWOFQL.js → chunk-KPIJA2R5.js} +21 -31
- package/dist/chunk-KPIJA2R5.js.map +1 -0
- package/dist/{chunk-ETSBNSRY.cjs → chunk-MGOFRL36.cjs} +21 -11
- package/dist/chunk-MGOFRL36.cjs.map +1 -0
- package/dist/{chunk-5VWOGZLE.js → chunk-OSIE5L6N.js} +49 -16
- package/dist/chunk-OSIE5L6N.js.map +1 -0
- package/dist/{chunk-ARMHYWF5.js → chunk-OW7H7G5N.js} +4 -4
- package/dist/{chunk-ARMHYWF5.js.map → chunk-OW7H7G5N.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-WBJMSOYD.cjs → chunk-RYVRCT7Z.cjs} +192 -354
- package/dist/chunk-RYVRCT7Z.cjs.map +1 -0
- package/dist/{chunk-3CXWVB55.cjs → chunk-SLMSUZBA.cjs} +39 -36
- package/dist/{chunk-3CXWVB55.cjs.map → chunk-SLMSUZBA.cjs.map} +1 -1
- package/dist/{chunk-5BEYS33K.js → chunk-VAJRNUEF.js} +3 -3
- package/dist/{chunk-5BEYS33K.js.map → chunk-VAJRNUEF.js.map} +1 -1
- package/dist/{chunk-OZFBUMI3.cjs → chunk-VNGQXHUE.cjs} +7 -7
- package/dist/{chunk-OZFBUMI3.cjs.map → chunk-VNGQXHUE.cjs.map} +1 -1
- package/dist/{chunk-CEYA6FNF.js → chunk-YQMDMIP6.js} +3 -3
- package/dist/{chunk-CEYA6FNF.js.map → chunk-YQMDMIP6.js.map} +1 -1
- 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 +7 -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-B3CGX3OF.js +3 -0
- package/dist/{provider-registry-4RA5NQGH.js.map → provider-registry-B3CGX3OF.js.map} +1 -1
- package/dist/provider-registry-CHV3DFFA.cjs +40 -0
- package/dist/{provider-registry-63ZEAPKK.cjs.map → provider-registry-CHV3DFFA.cjs.map} +1 -1
- package/dist/provider-registry.json +18 -8
- 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.d.ts +1 -1
- package/dist/workspace/index.d.ts.map +1 -1
- 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/skill-source.d.ts +1 -13
- package/dist/workspace/skills/skill-source.d.ts.map +1 -1
- package/dist/workspace/skills/types.d.ts +9 -74
- package/dist/workspace/skills/types.d.ts.map +1 -1
- package/dist/workspace/skills/workspace-skills.d.ts +2 -19
- package/dist/workspace/skills/workspace-skills.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +0 -12
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/llm/model/provider-types.generated.d.ts +7 -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
package/dist/storage/index.cjs
CHANGED
|
@@ -1,405 +1,405 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkYSFYUEEG_cjs = require('../chunk-YSFYUEEG.cjs');
|
|
4
|
+
var chunkRIPKI7ON_cjs = require('../chunk-RIPKI7ON.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AgentsStorage", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkYSFYUEEG_cjs.AgentsStorage; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "InMemoryAgentsStorage", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYSFYUEEG_cjs.InMemoryAgentsStorage; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "InMemoryDB", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYSFYUEEG_cjs.InMemoryDB; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "InMemoryMemory", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYSFYUEEG_cjs.InMemoryMemory; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "InMemoryStore", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYSFYUEEG_cjs.InMemoryStore; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "MastraCompositeStore", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkYSFYUEEG_cjs.MastraCompositeStore; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "MastraStorage", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkYSFYUEEG_cjs.MastraStorage; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MemoryStorage", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkYSFYUEEG_cjs.MemoryStorage; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "MockStore", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkYSFYUEEG_cjs.MockStore; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ObservabilityInMemory", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkYSFYUEEG_cjs.ObservabilityInMemory; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "ObservabilityStorage", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkYSFYUEEG_cjs.ObservabilityStorage; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "ScoresInMemory", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkYSFYUEEG_cjs.ScoresInMemory; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "ScoresStorage", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkYSFYUEEG_cjs.ScoresStorage; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "StorageDomain", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkYSFYUEEG_cjs.StorageDomain; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "StoreOperations", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkYSFYUEEG_cjs.StoreOperations; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "StoreOperationsInMemory", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkYSFYUEEG_cjs.StoreOperationsInMemory; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "WorkflowsInMemory", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkYSFYUEEG_cjs.WorkflowsInMemory; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "WorkflowsStorage", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkYSFYUEEG_cjs.WorkflowsStorage; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "calculatePagination", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkYSFYUEEG_cjs.calculatePagination; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "createStorageErrorId", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkYSFYUEEG_cjs.createStorageErrorId; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "createStoreErrorId", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkYSFYUEEG_cjs.createStoreErrorId; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "createVectorErrorId", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkYSFYUEEG_cjs.createVectorErrorId; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "ensureDate", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkYSFYUEEG_cjs.ensureDate; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "filterByDateRange", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkYSFYUEEG_cjs.filterByDateRange; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "getDefaultValue", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkYSFYUEEG_cjs.getDefaultValue; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "getSqlType", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkYSFYUEEG_cjs.getSqlType; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "jsonValueEquals", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkYSFYUEEG_cjs.jsonValueEquals; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "normalizePerPage", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkYSFYUEEG_cjs.normalizePerPage; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "safelyParseJSON", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkYSFYUEEG_cjs.safelyParseJSON; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "serializeDate", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkYSFYUEEG_cjs.serializeDate; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "transformRow", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkYSFYUEEG_cjs.transformRow; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "transformScoreRow", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkYSFYUEEG_cjs.transformScoreRow; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "AGENTS_SCHEMA", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkRIPKI7ON_cjs.AGENTS_SCHEMA; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "AGENT_VERSIONS_SCHEMA", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkRIPKI7ON_cjs.AGENT_VERSIONS_SCHEMA; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "OLD_SPAN_SCHEMA", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkRIPKI7ON_cjs.OLD_SPAN_SCHEMA; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "SCORERS_SCHEMA", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkRIPKI7ON_cjs.SCORERS_SCHEMA; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "SPAN_SCHEMA", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkRIPKI7ON_cjs.SPAN_SCHEMA; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "TABLE_AGENTS", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_AGENTS; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "TABLE_AGENT_VERSIONS", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_AGENT_VERSIONS; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_MESSAGES; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_RESOURCES; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "TABLE_SCHEMAS", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_SCHEMAS; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_SCORERS; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "TABLE_SPANS", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_SPANS; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_THREADS; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "TABLE_TRACES", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_TRACES; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkRIPKI7ON_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "TraceStatus", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkRIPKI7ON_cjs.TraceStatus; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "batchCreateSpansArgsSchema", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkRIPKI7ON_cjs.batchCreateSpansArgsSchema; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "batchDeleteTracesArgsSchema", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkRIPKI7ON_cjs.batchDeleteTracesArgsSchema; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "batchUpdateSpansArgsSchema", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkRIPKI7ON_cjs.batchUpdateSpansArgsSchema; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "buildStorageSchema", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkRIPKI7ON_cjs.buildStorageSchema; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "computeTraceStatus", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkRIPKI7ON_cjs.computeTraceStatus; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "createSpanArgsSchema", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkRIPKI7ON_cjs.createSpanArgsSchema; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "createSpanRecordSchema", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkRIPKI7ON_cjs.createSpanRecordSchema; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "createdAtField", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkRIPKI7ON_cjs.createdAtField; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "dateRangeSchema", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkRIPKI7ON_cjs.dateRangeSchema; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "dbTimestamps", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkRIPKI7ON_cjs.dbTimestamps; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "entityIdField", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkRIPKI7ON_cjs.entityIdField; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "entityNameField", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkRIPKI7ON_cjs.entityNameField; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "entityTypeField", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkRIPKI7ON_cjs.entityTypeField; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "environmentField", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkRIPKI7ON_cjs.environmentField; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "getRootSpanArgsSchema", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkRIPKI7ON_cjs.getRootSpanArgsSchema; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "getRootSpanResponseSchema", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkRIPKI7ON_cjs.getRootSpanResponseSchema; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "getSpanArgsSchema", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkRIPKI7ON_cjs.getSpanArgsSchema; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "getSpanResponseSchema", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkRIPKI7ON_cjs.getSpanResponseSchema; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "getTraceArgsSchema", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkRIPKI7ON_cjs.getTraceArgsSchema; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "getTraceResponseSchema", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkRIPKI7ON_cjs.getTraceResponseSchema; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "listScoresBySpanResponseSchema", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkRIPKI7ON_cjs.listScoresBySpanResponseSchema; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "listTracesArgsSchema", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkRIPKI7ON_cjs.listTracesArgsSchema; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "listTracesResponseSchema", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkRIPKI7ON_cjs.listTracesResponseSchema; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "organizationIdField", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkRIPKI7ON_cjs.organizationIdField; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "paginationArgsSchema", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkRIPKI7ON_cjs.paginationArgsSchema; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "paginationInfoSchema", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkRIPKI7ON_cjs.paginationInfoSchema; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "requestIdField", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkRIPKI7ON_cjs.requestIdField; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "resourceIdField", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkRIPKI7ON_cjs.resourceIdField; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "runIdField", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkRIPKI7ON_cjs.runIdField; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "scoreTracesRequestSchema", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkRIPKI7ON_cjs.scoreTracesRequestSchema; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "scoreTracesResponseSchema", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkRIPKI7ON_cjs.scoreTracesResponseSchema; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "serviceNameField", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkRIPKI7ON_cjs.serviceNameField; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "sessionIdField", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkRIPKI7ON_cjs.sessionIdField; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "sortDirectionSchema", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkRIPKI7ON_cjs.sortDirectionSchema; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "sourceField", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkRIPKI7ON_cjs.sourceField; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "spanIdField", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkRIPKI7ON_cjs.spanIdField; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "spanIds", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkRIPKI7ON_cjs.spanIds; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "spanIdsSchema", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkRIPKI7ON_cjs.spanIdsSchema; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "spanRecordSchema", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkRIPKI7ON_cjs.spanRecordSchema; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "threadIdField", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkRIPKI7ON_cjs.threadIdField; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "toTraceSpan", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkRIPKI7ON_cjs.toTraceSpan; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "toTraceSpans", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkRIPKI7ON_cjs.toTraceSpans; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "traceIdField", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkRIPKI7ON_cjs.traceIdField; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "traceSpanSchema", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkRIPKI7ON_cjs.traceSpanSchema; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "tracesFilterSchema", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkRIPKI7ON_cjs.tracesFilterSchema; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "tracesOrderByFieldSchema", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkRIPKI7ON_cjs.tracesOrderByFieldSchema; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "tracesOrderBySchema", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkRIPKI7ON_cjs.tracesOrderBySchema; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "updateSpanArgsSchema", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkRIPKI7ON_cjs.updateSpanArgsSchema; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "updateSpanRecordSchema", {
|
|
393
393
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkRIPKI7ON_cjs.updateSpanRecordSchema; }
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "updatedAtField", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkRIPKI7ON_cjs.updatedAtField; }
|
|
399
399
|
});
|
|
400
400
|
Object.defineProperty(exports, "userIdField", {
|
|
401
401
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkRIPKI7ON_cjs.userIdField; }
|
|
403
403
|
});
|
|
404
404
|
//# sourceMappingURL=index.cjs.map
|
|
405
405
|
//# sourceMappingURL=index.cjs.map
|
package/dist/storage/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentsStorage, InMemoryAgentsStorage, InMemoryDB, InMemoryMemory, InMemoryStore, MastraCompositeStore, MastraStorage, MemoryStorage, MockStore, ObservabilityInMemory, ObservabilityStorage, ScoresInMemory, ScoresStorage, StorageDomain, StoreOperations, StoreOperationsInMemory, WorkflowsInMemory, WorkflowsStorage, calculatePagination, createStorageErrorId, createStoreErrorId, createVectorErrorId, ensureDate, filterByDateRange, getDefaultValue, getSqlType, jsonValueEquals, normalizePerPage, safelyParseJSON, serializeDate, transformRow, transformScoreRow } from '../chunk-
|
|
2
|
-
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, TraceStatus, batchCreateSpansArgsSchema, batchDeleteTracesArgsSchema, batchUpdateSpansArgsSchema, buildStorageSchema, computeTraceStatus, createSpanArgsSchema, createSpanRecordSchema, createdAtField, dateRangeSchema, dbTimestamps, entityIdField, entityNameField, entityTypeField, environmentField, getRootSpanArgsSchema, getRootSpanResponseSchema, getSpanArgsSchema, getSpanResponseSchema, getTraceArgsSchema, getTraceResponseSchema, listScoresBySpanResponseSchema, listTracesArgsSchema, listTracesResponseSchema, organizationIdField, paginationArgsSchema, paginationInfoSchema, requestIdField, resourceIdField, runIdField, scoreTracesRequestSchema, scoreTracesResponseSchema, serviceNameField, sessionIdField, sortDirectionSchema, sourceField, spanIdField, spanIds, spanIdsSchema, spanRecordSchema, threadIdField, toTraceSpan, toTraceSpans, traceIdField, traceSpanSchema, tracesFilterSchema, tracesOrderByFieldSchema, tracesOrderBySchema, updateSpanArgsSchema, updateSpanRecordSchema, updatedAtField, userIdField } from '../chunk-
|
|
1
|
+
export { AgentsStorage, InMemoryAgentsStorage, InMemoryDB, InMemoryMemory, InMemoryStore, MastraCompositeStore, MastraStorage, MemoryStorage, MockStore, ObservabilityInMemory, ObservabilityStorage, ScoresInMemory, ScoresStorage, StorageDomain, StoreOperations, StoreOperationsInMemory, WorkflowsInMemory, WorkflowsStorage, calculatePagination, createStorageErrorId, createStoreErrorId, createVectorErrorId, ensureDate, filterByDateRange, getDefaultValue, getSqlType, jsonValueEquals, normalizePerPage, safelyParseJSON, serializeDate, transformRow, transformScoreRow } from '../chunk-H4C5NORS.js';
|
|
2
|
+
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, TraceStatus, batchCreateSpansArgsSchema, batchDeleteTracesArgsSchema, batchUpdateSpansArgsSchema, buildStorageSchema, computeTraceStatus, createSpanArgsSchema, createSpanRecordSchema, createdAtField, dateRangeSchema, dbTimestamps, entityIdField, entityNameField, entityTypeField, environmentField, getRootSpanArgsSchema, getRootSpanResponseSchema, getSpanArgsSchema, getSpanResponseSchema, getTraceArgsSchema, getTraceResponseSchema, listScoresBySpanResponseSchema, listTracesArgsSchema, listTracesResponseSchema, organizationIdField, paginationArgsSchema, paginationInfoSchema, requestIdField, resourceIdField, runIdField, scoreTracesRequestSchema, scoreTracesResponseSchema, serviceNameField, sessionIdField, sortDirectionSchema, sourceField, spanIdField, spanIds, spanIdsSchema, spanRecordSchema, threadIdField, toTraceSpan, toTraceSpans, traceIdField, traceSpanSchema, tracesFilterSchema, tracesOrderByFieldSchema, tracesOrderBySchema, updateSpanArgsSchema, updateSpanRecordSchema, updatedAtField, userIdField } from '../chunk-KPIJA2R5.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/storage/types.d.ts
CHANGED
|
@@ -225,14 +225,15 @@ export interface StorageScorerConfig {
|
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
* that get resolved from Mastra's registries at runtime.
|
|
228
|
+
* Agent version snapshot type containing ALL agent configuration fields.
|
|
229
|
+
* These fields live exclusively in version snapshot rows, not on the agent record.
|
|
231
230
|
*/
|
|
232
|
-
export interface
|
|
233
|
-
|
|
231
|
+
export interface StorageAgentSnapshotType {
|
|
232
|
+
/** Display name of the agent */
|
|
234
233
|
name: string;
|
|
234
|
+
/** Purpose description */
|
|
235
235
|
description?: string;
|
|
236
|
+
/** System instructions/prompt */
|
|
236
237
|
instructions: string;
|
|
237
238
|
/** Model configuration (provider, name, etc.) */
|
|
238
239
|
model: Record<string, unknown>;
|
|
@@ -253,47 +254,59 @@ export interface StorageAgentType {
|
|
|
253
254
|
inputProcessors?: Record<string, unknown>[];
|
|
254
255
|
/** Output processor configurations */
|
|
255
256
|
outputProcessors?: Record<string, unknown>[];
|
|
256
|
-
/** Memory
|
|
257
|
-
memory?: string
|
|
257
|
+
/** Memory configuration object */
|
|
258
|
+
memory?: Record<string, unknown>;
|
|
258
259
|
/** Scorer keys with optional sampling config, to resolve from Mastra's scorer registry */
|
|
259
260
|
scorers?: Record<string, StorageScorerConfig>;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Thin agent record type containing only metadata fields.
|
|
264
|
+
* All configuration lives in version snapshots (StorageAgentSnapshotType).
|
|
265
|
+
*/
|
|
266
|
+
export interface StorageAgentType {
|
|
267
|
+
/** Unique, immutable identifier */
|
|
268
|
+
id: string;
|
|
269
|
+
/** Agent status: 'draft' on creation, 'published' when a version is activated */
|
|
270
|
+
status: string;
|
|
264
271
|
/** FK to agent_versions.id - the currently active version */
|
|
265
272
|
activeVersionId?: string;
|
|
273
|
+
/** Author identifier for multi-tenant filtering */
|
|
274
|
+
authorId?: string;
|
|
275
|
+
/** Additional metadata for the agent */
|
|
276
|
+
metadata?: Record<string, unknown>;
|
|
266
277
|
createdAt: Date;
|
|
267
278
|
updatedAt: Date;
|
|
268
279
|
}
|
|
269
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Resolved agent type that combines the thin agent record with version snapshot config.
|
|
282
|
+
* Returned by getAgentByIdResolved and listAgentsResolved.
|
|
283
|
+
*/
|
|
284
|
+
export type StorageResolvedAgentType = StorageAgentType & StorageAgentSnapshotType;
|
|
285
|
+
/**
|
|
286
|
+
* Input for creating a new agent. Flat union of thin record fields
|
|
287
|
+
* and initial configuration (used to create version 1).
|
|
288
|
+
*/
|
|
289
|
+
export type StorageCreateAgentInput = {
|
|
290
|
+
/** Unique identifier for the agent */
|
|
291
|
+
id: string;
|
|
292
|
+
/** Author identifier for multi-tenant filtering */
|
|
293
|
+
authorId?: string;
|
|
294
|
+
/** Additional metadata for the agent */
|
|
295
|
+
metadata?: Record<string, unknown>;
|
|
296
|
+
} & StorageAgentSnapshotType;
|
|
297
|
+
/**
|
|
298
|
+
* Input for updating an agent. Includes metadata-level fields and optional config fields.
|
|
299
|
+
* The handler layer separates these into agent-record updates vs new-version creation.
|
|
300
|
+
*/
|
|
270
301
|
export type StorageUpdateAgentInput = {
|
|
271
302
|
id: string;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
model?: Record<string, unknown>;
|
|
276
|
-
/** Array of tool keys to resolve from Mastra's tool registry */
|
|
277
|
-
tools?: string[];
|
|
278
|
-
defaultOptions?: Record<string, unknown>;
|
|
279
|
-
/** Array of workflow keys to resolve from Mastra's workflow registry */
|
|
280
|
-
workflows?: string[];
|
|
281
|
-
/** Array of agent keys to resolve from Mastra's agent registry */
|
|
282
|
-
agents?: string[];
|
|
283
|
-
/** Array of specific integration tool IDs (format: provider_toolkitSlug_toolSlug) */
|
|
284
|
-
integrationTools?: string[];
|
|
285
|
-
inputProcessors?: Record<string, unknown>[];
|
|
286
|
-
outputProcessors?: Record<string, unknown>[];
|
|
287
|
-
/** Memory key to resolve from Mastra's memory registry */
|
|
288
|
-
memory?: string;
|
|
289
|
-
/** Scorer keys with optional sampling config */
|
|
290
|
-
scorers?: Record<string, StorageScorerConfig>;
|
|
303
|
+
/** Author identifier for multi-tenant filtering */
|
|
304
|
+
authorId?: string;
|
|
305
|
+
/** Additional metadata for the agent */
|
|
291
306
|
metadata?: Record<string, unknown>;
|
|
292
|
-
/** Owner identifier for multi-tenant filtering */
|
|
293
|
-
ownerId?: string;
|
|
294
307
|
/** FK to agent_versions.id - the currently active version */
|
|
295
308
|
activeVersionId?: string;
|
|
296
|
-
}
|
|
309
|
+
} & Partial<StorageAgentSnapshotType>;
|
|
297
310
|
export type StorageListAgentsInput = {
|
|
298
311
|
/**
|
|
299
312
|
* Number of items per page, or `false` to fetch all records without pagination limit.
|
|
@@ -307,10 +320,10 @@ export type StorageListAgentsInput = {
|
|
|
307
320
|
page?: number;
|
|
308
321
|
orderBy?: StorageOrderBy;
|
|
309
322
|
/**
|
|
310
|
-
* Filter agents by
|
|
311
|
-
* Only agents with matching
|
|
323
|
+
* Filter agents by author identifier (indexed for fast lookups).
|
|
324
|
+
* Only agents with matching authorId will be returned.
|
|
312
325
|
*/
|
|
313
|
-
|
|
326
|
+
authorId?: string;
|
|
314
327
|
/**
|
|
315
328
|
* Filter agents by metadata key-value pairs.
|
|
316
329
|
* All specified key-value pairs must match (AND logic).
|
|
@@ -320,6 +333,9 @@ export type StorageListAgentsInput = {
|
|
|
320
333
|
export type StorageListAgentsOutput = PaginationInfo & {
|
|
321
334
|
agents: StorageAgentType[];
|
|
322
335
|
};
|
|
336
|
+
export type StorageListAgentsResolvedOutput = PaginationInfo & {
|
|
337
|
+
agents: StorageResolvedAgentType[];
|
|
338
|
+
};
|
|
323
339
|
export interface CreateIndexOptions {
|
|
324
340
|
name: string;
|
|
325
341
|
table: string;
|