@mastra/upstash 0.1.0-alpha.8 → 0.1.0

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.
@@ -0,0 +1,18 @@
1
+
2
+ > @mastra/upstash@0.1.0-alpha.5 build C:\Users\Ward\projects\mastra\mastra\stores\upstash
3
+ > tsup src/index.ts --format esm --experimental-dts --clean --treeshake
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.3.6
8
+ TSC Build start
9
+ TSC ⚡️ Build success in 2872ms
10
+ DTS Build start
11
+ CLI Target: es2022
12
+ Analysis will use the bundled TypeScript version 5.7.3
13
+ Writing package typings: C:\Users\Ward\projects\mastra\mastra\stores\upstash\dist\_tsup-dts-rollup.d.ts
14
+ DTS ⚡️ Build success in 2613ms
15
+ CLI Cleaning output folder
16
+ ESM Build start
17
+ ESM dist\index.js 15.82 KB
18
+ ESM ⚡️ Build success in 166ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,283 @@
1
1
  # @mastra/upstash
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c87eb4e: Combine Upstash packages into `@mastra/upstash`.
8
+
9
+ - Move and combine packages to `stores/upstash`
10
+ - Reorganize source files into `src/vector` and `src/store`
11
+ - Add deprecation notices to old packages
12
+ - Update documentation and examples
13
+ - No breaking changes in functionality
14
+
15
+ - 8b416d9: Breaking changes
16
+
17
+ ### Patch Changes
18
+
19
+ - b97ca96: Tracing into default storage
20
+ - 07c069d: Update build script
21
+ - 9c10484: update all packages
22
+ - 70dabd9: Fix broken publish
23
+ - 4f1d1a1: Enforce types ann cleanup package.json
24
+ - Updated dependencies [f537e33]
25
+ - Updated dependencies [6f2c0f5]
26
+ - Updated dependencies [e4d4ede]
27
+ - Updated dependencies [0be7181]
28
+ - Updated dependencies [dd6d87f]
29
+ - Updated dependencies [9029796]
30
+ - Updated dependencies [6fa4bd2]
31
+ - Updated dependencies [f031a1f]
32
+ - Updated dependencies [8151f44]
33
+ - Updated dependencies [d7d465a]
34
+ - Updated dependencies [4d4f6b6]
35
+ - Updated dependencies [73d112c]
36
+ - Updated dependencies [592e3cf]
37
+ - Updated dependencies [9d1796d]
38
+ - Updated dependencies [e897f1c]
39
+ - Updated dependencies [4a54c82]
40
+ - Updated dependencies [3967e69]
41
+ - Updated dependencies [8ae2bbc]
42
+ - Updated dependencies [e9d1b47]
43
+ - Updated dependencies [016493a]
44
+ - Updated dependencies [bc40916]
45
+ - Updated dependencies [93a3719]
46
+ - Updated dependencies [7d83b92]
47
+ - Updated dependencies [9fb3039]
48
+ - Updated dependencies [d5e12de]
49
+ - Updated dependencies [e1dd94a]
50
+ - Updated dependencies [07c069d]
51
+ - Updated dependencies [5cdfb88]
52
+ - Updated dependencies [837a288]
53
+ - Updated dependencies [685108a]
54
+ - Updated dependencies [c8ff2f5]
55
+ - Updated dependencies [5fdc87c]
56
+ - Updated dependencies [ae7bf94]
57
+ - Updated dependencies [8e7814f]
58
+ - Updated dependencies [66a03ec]
59
+ - Updated dependencies [7d87a15]
60
+ - Updated dependencies [b97ca96]
61
+ - Updated dependencies [23dcb23]
62
+ - Updated dependencies [033eda6]
63
+ - Updated dependencies [8105fae]
64
+ - Updated dependencies [e097800]
65
+ - Updated dependencies [1944807]
66
+ - Updated dependencies [30322ce]
67
+ - Updated dependencies [1874f40]
68
+ - Updated dependencies [685108a]
69
+ - Updated dependencies [f7d1131]
70
+ - Updated dependencies [79acad0]
71
+ - Updated dependencies [7a19083]
72
+ - Updated dependencies [382f4dc]
73
+ - Updated dependencies [1ebd071]
74
+ - Updated dependencies [0b74006]
75
+ - Updated dependencies [2f17a5f]
76
+ - Updated dependencies [f368477]
77
+ - Updated dependencies [7892533]
78
+ - Updated dependencies [9c10484]
79
+ - Updated dependencies [b726bf5]
80
+ - Updated dependencies [70dabd9]
81
+ - Updated dependencies [21fe536]
82
+ - Updated dependencies [176bc42]
83
+ - Updated dependencies [401a4d9]
84
+ - Updated dependencies [2e099d2]
85
+ - Updated dependencies [0b826f6]
86
+ - Updated dependencies [d68b532]
87
+ - Updated dependencies [75bf3f0]
88
+ - Updated dependencies [e6d8055]
89
+ - Updated dependencies [e2e76de]
90
+ - Updated dependencies [ccbc581]
91
+ - Updated dependencies [5950de5]
92
+ - Updated dependencies [fe3dcb0]
93
+ - Updated dependencies [78eec7c]
94
+ - Updated dependencies [a8a459a]
95
+ - Updated dependencies [0be7181]
96
+ - Updated dependencies [7b87567]
97
+ - Updated dependencies [b524c22]
98
+ - Updated dependencies [d7d465a]
99
+ - Updated dependencies [df843d3]
100
+ - Updated dependencies [4534e77]
101
+ - Updated dependencies [d6d8159]
102
+ - Updated dependencies [0bd142c]
103
+ - Updated dependencies [9625602]
104
+ - Updated dependencies [72d1990]
105
+ - Updated dependencies [f6ba259]
106
+ - Updated dependencies [2712098]
107
+ - Updated dependencies [eedb829]
108
+ - Updated dependencies [5285356]
109
+ - Updated dependencies [74b3078]
110
+ - Updated dependencies [cb290ee]
111
+ - Updated dependencies [b4d7416]
112
+ - Updated dependencies [e608d8c]
113
+ - Updated dependencies [06b2c0a]
114
+ - Updated dependencies [002d6d8]
115
+ - Updated dependencies [e448a26]
116
+ - Updated dependencies [8b416d9]
117
+ - Updated dependencies [fd494a3]
118
+ - Updated dependencies [dc90663]
119
+ - Updated dependencies [c872875]
120
+ - Updated dependencies [3c4488b]
121
+ - Updated dependencies [a7b016d]
122
+ - Updated dependencies [fd75f3c]
123
+ - Updated dependencies [7f24c29]
124
+ - Updated dependencies [2017553]
125
+ - Updated dependencies [a10b7a3]
126
+ - Updated dependencies [cf6d825]
127
+ - Updated dependencies [963c15a]
128
+ - Updated dependencies [7365b6c]
129
+ - Updated dependencies [5ee67d3]
130
+ - Updated dependencies [d38f7a6]
131
+ - Updated dependencies [38b7f66]
132
+ - Updated dependencies [2fa7f53]
133
+ - Updated dependencies [1420ae2]
134
+ - Updated dependencies [f6da688]
135
+ - Updated dependencies [3700be1]
136
+ - Updated dependencies [9ade36e]
137
+ - Updated dependencies [10870bc]
138
+ - Updated dependencies [2b01511]
139
+ - Updated dependencies [a870123]
140
+ - Updated dependencies [ccf115c]
141
+ - Updated dependencies [04434b6]
142
+ - Updated dependencies [5811de6]
143
+ - Updated dependencies [9f3ab05]
144
+ - Updated dependencies [66a5392]
145
+ - Updated dependencies [4b1ce2c]
146
+ - Updated dependencies [14064f2]
147
+ - Updated dependencies [f5dfa20]
148
+ - Updated dependencies [327ece7]
149
+ - Updated dependencies [da2e8d3]
150
+ - Updated dependencies [95a4697]
151
+ - Updated dependencies [d5fccfb]
152
+ - Updated dependencies [3427b95]
153
+ - Updated dependencies [538a136]
154
+ - Updated dependencies [e66643a]
155
+ - Updated dependencies [b5393f1]
156
+ - Updated dependencies [d2cd535]
157
+ - Updated dependencies [c2dd6b5]
158
+ - Updated dependencies [67637ba]
159
+ - Updated dependencies [836f4e3]
160
+ - Updated dependencies [5ee2e78]
161
+ - Updated dependencies [cd02c56]
162
+ - Updated dependencies [01502b0]
163
+ - Updated dependencies [16e5b04]
164
+ - Updated dependencies [d9c8dd0]
165
+ - Updated dependencies [9fb59d6]
166
+ - Updated dependencies [a9345f9]
167
+ - Updated dependencies [99f1847]
168
+ - Updated dependencies [04f3171]
169
+ - Updated dependencies [8769a62]
170
+ - Updated dependencies [d5ec619]
171
+ - Updated dependencies [27275c9]
172
+ - Updated dependencies [ae7bf94]
173
+ - Updated dependencies [4f1d1a1]
174
+ - Updated dependencies [ee4de15]
175
+ - Updated dependencies [202d404]
176
+ - Updated dependencies [a221426]
177
+ - @mastra/core@0.2.0
178
+
179
+ ## 0.1.0-alpha.20
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [016493a]
184
+ - Updated dependencies [382f4dc]
185
+ - Updated dependencies [176bc42]
186
+ - Updated dependencies [d68b532]
187
+ - Updated dependencies [fe3dcb0]
188
+ - Updated dependencies [e448a26]
189
+ - Updated dependencies [fd75f3c]
190
+ - Updated dependencies [ccf115c]
191
+ - Updated dependencies [a221426]
192
+ - @mastra/core@0.2.0-alpha.110
193
+
194
+ ## 0.1.0-alpha.19
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [d5fccfb]
199
+ - @mastra/core@0.2.0-alpha.109
200
+
201
+ ## 0.1.0-alpha.18
202
+
203
+ ### Patch Changes
204
+
205
+ - Updated dependencies [5ee67d3]
206
+ - Updated dependencies [95a4697]
207
+ - @mastra/core@0.2.0-alpha.108
208
+
209
+ ## 0.1.0-alpha.17
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [66a5392]
214
+ - @mastra/core@0.2.0-alpha.107
215
+
216
+ ## 0.1.0-alpha.16
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [6f2c0f5]
221
+ - Updated dependencies [a8a459a]
222
+ - @mastra/core@0.2.0-alpha.106
223
+
224
+ ## 0.1.0-alpha.15
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [1420ae2]
229
+ - Updated dependencies [99f1847]
230
+ - @mastra/core@0.2.0-alpha.105
231
+
232
+ ## 0.1.0-alpha.14
233
+
234
+ ### Patch Changes
235
+
236
+ - b97ca96: Tracing into default storage
237
+ - Updated dependencies [5fdc87c]
238
+ - Updated dependencies [b97ca96]
239
+ - Updated dependencies [72d1990]
240
+ - Updated dependencies [cf6d825]
241
+ - Updated dependencies [10870bc]
242
+ - @mastra/core@0.2.0-alpha.104
243
+
244
+ ## 0.1.0-alpha.13
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies [4534e77]
249
+ - @mastra/core@0.2.0-alpha.103
250
+
251
+ ## 0.1.0-alpha.12
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies [a9345f9]
256
+ - @mastra/core@0.2.0-alpha.102
257
+
258
+ ## 0.1.0-alpha.11
259
+
260
+ ### Patch Changes
261
+
262
+ - 4f1d1a1: Enforce types ann cleanup package.json
263
+ - Updated dependencies [66a03ec]
264
+ - Updated dependencies [4f1d1a1]
265
+ - @mastra/core@0.2.0-alpha.101
266
+
267
+ ## 0.1.0-alpha.10
268
+
269
+ ### Patch Changes
270
+
271
+ - Updated dependencies [9d1796d]
272
+ - @mastra/core@0.2.0-alpha.100
273
+
274
+ ## 0.1.0-alpha.9
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [7d83b92]
279
+ - @mastra/core@0.2.0-alpha.99
280
+
3
281
  ## 0.1.0-alpha.8
4
282
 
5
283
  ### Patch Changes
@@ -0,0 +1,129 @@
1
+ import { BaseFilterTranslator } from '@mastra/core/filter';
2
+ import { EvalRow } from '@mastra/core/storage';
3
+ import { Filter } from '@mastra/core/filter';
4
+ import { MastraStorage } from '@mastra/core/storage';
5
+ import { MastraVector } from '@mastra/core/vector';
6
+ import { MessageType } from '@mastra/core/memory';
7
+ import { OperatorSupport } from '@mastra/core/filter';
8
+ import type { QueryResult } from '@mastra/core/vector';
9
+ import { StorageColumn } from '@mastra/core/storage';
10
+ import { StorageGetMessagesArg } from '@mastra/core/storage';
11
+ import { StorageThreadType } from '@mastra/core/memory';
12
+ import { TABLE_NAMES } from '@mastra/core/storage';
13
+ import { WorkflowRunState } from '@mastra/core/workflows';
14
+
15
+ declare interface UpstashConfig {
16
+ url: string;
17
+ token: string;
18
+ }
19
+ export { UpstashConfig }
20
+ export { UpstashConfig as UpstashConfig_alias_1 }
21
+
22
+ export declare class UpstashFilterTranslator extends BaseFilterTranslator {
23
+ protected getSupportedOperators(): OperatorSupport;
24
+ translate(filter?: Filter): string | undefined;
25
+ private translateNode;
26
+ private readonly COMPARISON_OPS;
27
+ private translateOperator;
28
+ private readonly NEGATED_OPERATORS;
29
+ private formatNot;
30
+ private formatValue;
31
+ private formatArray;
32
+ private formatComparison;
33
+ private joinConditions;
34
+ }
35
+
36
+ declare class UpstashStore extends MastraStorage {
37
+ batchInsert({ tableName, records }: {
38
+ tableName: TABLE_NAMES;
39
+ records: Record<string, any>[];
40
+ }): Promise<void>;
41
+ getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
42
+ getTraces({ name, scope, page, perPage, attributes, }: {
43
+ name?: string;
44
+ scope?: string;
45
+ page: number;
46
+ perPage: number;
47
+ attributes?: Record<string, string>;
48
+ }): Promise<any[]>;
49
+ private redis;
50
+ constructor(config: UpstashConfig);
51
+ private getKey;
52
+ private ensureDate;
53
+ private serializeDate;
54
+ createTable({ tableName, schema, }: {
55
+ tableName: TABLE_NAMES;
56
+ schema: Record<string, StorageColumn>;
57
+ }): Promise<void>;
58
+ clearTable({ tableName }: {
59
+ tableName: TABLE_NAMES;
60
+ }): Promise<void>;
61
+ insert({ tableName, record }: {
62
+ tableName: TABLE_NAMES;
63
+ record: Record<string, any>;
64
+ }): Promise<void>;
65
+ load<R>({ tableName, keys }: {
66
+ tableName: TABLE_NAMES;
67
+ keys: Record<string, string>;
68
+ }): Promise<R | null>;
69
+ getThreadById({ threadId }: {
70
+ threadId: string;
71
+ }): Promise<StorageThreadType | null>;
72
+ getThreadsByResourceId({ resourceId }: {
73
+ resourceId: string;
74
+ }): Promise<StorageThreadType[]>;
75
+ saveThread({ thread }: {
76
+ thread: StorageThreadType;
77
+ }): Promise<StorageThreadType>;
78
+ updateThread({ id, title, metadata, }: {
79
+ id: string;
80
+ title: string;
81
+ metadata: Record<string, unknown>;
82
+ }): Promise<StorageThreadType>;
83
+ deleteThread({ threadId }: {
84
+ threadId: string;
85
+ }): Promise<void>;
86
+ private getMessageKey;
87
+ private getThreadMessagesKey;
88
+ saveMessages({ messages }: {
89
+ messages: MessageType[];
90
+ }): Promise<MessageType[]>;
91
+ getMessages<T = unknown>({ threadId, selectBy }: StorageGetMessagesArg): Promise<T[]>;
92
+ persistWorkflowSnapshot(params: {
93
+ namespace: string;
94
+ workflowName: string;
95
+ runId: string;
96
+ snapshot: WorkflowRunState;
97
+ }): Promise<void>;
98
+ loadWorkflowSnapshot(params: {
99
+ namespace: string;
100
+ workflowName: string;
101
+ runId: string;
102
+ }): Promise<WorkflowRunState | null>;
103
+ close(): Promise<void>;
104
+ }
105
+ export { UpstashStore }
106
+ export { UpstashStore as UpstashStore_alias_1 }
107
+
108
+ declare class UpstashVector extends MastraVector {
109
+ private client;
110
+ constructor({ url, token }: {
111
+ url: string;
112
+ token: string;
113
+ });
114
+ upsert(indexName: string, vectors: number[][], metadata?: Record<string, any>[], ids?: string[]): Promise<string[]>;
115
+ transformFilter(filter?: Filter): string | undefined;
116
+ createIndex(_indexName: string, _dimension: number, _metric?: 'cosine' | 'euclidean' | 'dotproduct'): Promise<void>;
117
+ query(indexName: string, queryVector: number[], topK?: number, filter?: Filter, includeVector?: boolean): Promise<QueryResult[]>;
118
+ listIndexes(): Promise<string[]>;
119
+ describeIndex(indexName: string): Promise<{
120
+ dimension: number;
121
+ count: number;
122
+ metric: "cosine" | "euclidean" | "dotproduct";
123
+ }>;
124
+ deleteIndex(indexName: string): Promise<void>;
125
+ }
126
+ export { UpstashVector }
127
+ export { UpstashVector as UpstashVector_alias_1 }
128
+
129
+ export { }
package/dist/index.d.ts CHANGED
@@ -1,88 +1,3 @@
1
- import { StorageThreadType, MessageType } from '@mastra/core/memory';
2
- import { MastraStorage, TABLE_NAMES, StorageColumn, StorageGetMessagesArg } from '@mastra/core/storage';
3
- import { WorkflowRunState } from '@mastra/core/workflows';
4
- import { Filter } from '@mastra/core/filter';
5
- import { MastraVector, QueryResult } from '@mastra/core/vector';
6
-
7
- interface UpstashConfig {
8
- url: string;
9
- token: string;
10
- }
11
- declare class UpstashStore extends MastraStorage {
12
- private redis;
13
- constructor(config: UpstashConfig);
14
- private getKey;
15
- private ensureDate;
16
- private serializeDate;
17
- createTable({ tableName, schema, }: {
18
- tableName: TABLE_NAMES;
19
- schema: Record<string, StorageColumn>;
20
- }): Promise<void>;
21
- clearTable({ tableName }: {
22
- tableName: TABLE_NAMES;
23
- }): Promise<void>;
24
- insert({ tableName, record }: {
25
- tableName: TABLE_NAMES;
26
- record: Record<string, any>;
27
- }): Promise<void>;
28
- load<R>({ tableName, keys }: {
29
- tableName: TABLE_NAMES;
30
- keys: Record<string, string>;
31
- }): Promise<R | null>;
32
- getThreadById({ threadId }: {
33
- threadId: string;
34
- }): Promise<StorageThreadType | null>;
35
- getThreadsByResourceId({ resourceId }: {
36
- resourceId: string;
37
- }): Promise<StorageThreadType[]>;
38
- saveThread({ thread }: {
39
- thread: StorageThreadType;
40
- }): Promise<StorageThreadType>;
41
- updateThread({ id, title, metadata, }: {
42
- id: string;
43
- title: string;
44
- metadata: Record<string, unknown>;
45
- }): Promise<StorageThreadType>;
46
- deleteThread({ threadId }: {
47
- threadId: string;
48
- }): Promise<void>;
49
- private getMessageKey;
50
- private getThreadMessagesKey;
51
- saveMessages({ messages }: {
52
- messages: MessageType[];
53
- }): Promise<MessageType[]>;
54
- getMessages<T = unknown>({ threadId, selectBy }: StorageGetMessagesArg): Promise<T[]>;
55
- persistWorkflowSnapshot(params: {
56
- namespace: string;
57
- workflowName: string;
58
- runId: string;
59
- snapshot: WorkflowRunState;
60
- }): Promise<void>;
61
- loadWorkflowSnapshot(params: {
62
- namespace: string;
63
- workflowName: string;
64
- runId: string;
65
- }): Promise<WorkflowRunState | null>;
66
- close(): Promise<void>;
67
- }
68
-
69
- declare class UpstashVector extends MastraVector {
70
- private client;
71
- constructor({ url, token }: {
72
- url: string;
73
- token: string;
74
- });
75
- upsert(indexName: string, vectors: number[][], metadata?: Record<string, any>[], ids?: string[]): Promise<string[]>;
76
- transformFilter(filter?: Filter): string | undefined;
77
- createIndex(_indexName: string, _dimension: number, _metric?: 'cosine' | 'euclidean' | 'dotproduct'): Promise<void>;
78
- query(indexName: string, queryVector: number[], topK?: number, filter?: Filter, includeVector?: boolean): Promise<QueryResult[]>;
79
- listIndexes(): Promise<string[]>;
80
- describeIndex(indexName: string): Promise<{
81
- dimension: number;
82
- count: number;
83
- metric: "cosine" | "euclidean" | "dotproduct";
84
- }>;
85
- deleteIndex(indexName: string): Promise<void>;
86
- }
87
-
88
- export { type UpstashConfig, UpstashStore, UpstashVector };
1
+ export { UpstashConfig } from './_tsup-dts-rollup.js';
2
+ export { UpstashStore } from './_tsup-dts-rollup.js';
3
+ export { UpstashVector } from './_tsup-dts-rollup.js';
package/dist/index.js CHANGED
@@ -8,6 +8,21 @@ import { BaseFilterTranslator } from '@mastra/core/filter';
8
8
 
9
9
  // src/storage/index.ts
10
10
  var UpstashStore = class extends MastraStorage {
11
+ batchInsert({ tableName, records }) {
12
+ throw new Error("Method not implemented.");
13
+ }
14
+ getEvalsByAgentName(agentName, type) {
15
+ throw new Error("Method not implemented.");
16
+ }
17
+ getTraces({
18
+ name,
19
+ scope,
20
+ page,
21
+ perPage,
22
+ attributes
23
+ }) {
24
+ throw new Error("Method not implemented.");
25
+ }
11
26
  redis;
12
27
  constructor(config) {
13
28
  super({ name: "Upstash" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/upstash",
3
- "version": "0.1.0-alpha.8",
3
+ "version": "0.1.0",
4
4
  "description": "Upstash provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,19 +17,20 @@
17
17
  "dependencies": {
18
18
  "@upstash/redis": "^1.28.3",
19
19
  "@upstash/vector": "^1.1.7",
20
- "@mastra/core": "^0.2.0-alpha.98"
20
+ "@mastra/core": "^0.2.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@tsconfig/recommended": "^1.0.7",
24
- "@types/node": "^22.9.0",
23
+ "@microsoft/api-extractor": "^7.49.2",
24
+ "@types/node": "^22.13.1",
25
25
  "tsup": "^8.0.1",
26
+ "typescript": "^5.7.3",
26
27
  "vitest": "^3.0.4"
27
28
  },
28
29
  "scripts": {
29
30
  "pretest": "docker compose up -d",
30
31
  "test": "vitest run",
31
32
  "posttest": "docker compose down",
32
- "build": "tsup src/index.ts --format esm --dts --clean --treeshake",
33
+ "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake",
33
34
  "build:watch": "pnpm build --watch"
34
35
  }
35
36
  }
@@ -1,5 +1,11 @@
1
1
  import { type StorageThreadType, type MessageType } from '@mastra/core/memory';
2
- import { MastraStorage, type TABLE_NAMES, type StorageColumn, type StorageGetMessagesArg } from '@mastra/core/storage';
2
+ import {
3
+ MastraStorage,
4
+ type TABLE_NAMES,
5
+ type StorageColumn,
6
+ type StorageGetMessagesArg,
7
+ type EvalRow,
8
+ } from '@mastra/core/storage';
3
9
  import { type WorkflowRunState } from '@mastra/core/workflows';
4
10
  import { Redis } from '@upstash/redis';
5
11
 
@@ -9,6 +15,27 @@ export interface UpstashConfig {
9
15
  }
10
16
 
11
17
  export class UpstashStore extends MastraStorage {
18
+ batchInsert({ tableName, records }: { tableName: TABLE_NAMES; records: Record<string, any>[] }): Promise<void> {
19
+ throw new Error('Method not implemented.');
20
+ }
21
+ getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]> {
22
+ throw new Error('Method not implemented.');
23
+ }
24
+ getTraces({
25
+ name,
26
+ scope,
27
+ page,
28
+ perPage,
29
+ attributes,
30
+ }: {
31
+ name?: string;
32
+ scope?: string;
33
+ page: number;
34
+ perPage: number;
35
+ attributes?: Record<string, string>;
36
+ }): Promise<any[]> {
37
+ throw new Error('Method not implemented.');
38
+ }
12
39
  private redis: Redis;
13
40
 
14
41
  constructor(config: UpstashConfig) {
@@ -1,4 +1,4 @@
1
- import { BaseFilterTranslator, Filter, FieldCondition, OperatorSupport } from '@mastra/core/filter';
1
+ import { BaseFilterTranslator, type Filter, type FieldCondition, type OperatorSupport } from '@mastra/core/filter';
2
2
 
3
3
  export class UpstashFilterTranslator extends BaseFilterTranslator {
4
4
  protected override getSupportedOperators(): OperatorSupport {