@mastra/upstash 0.1.0-alpha.13 → 0.1.0-alpha.14

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mastra/upstash
2
2
 
3
+ ## 0.1.0-alpha.14
4
+
5
+ ### Patch Changes
6
+
7
+ - b97ca96: Tracing into default storage
8
+ - Updated dependencies [5fdc87c]
9
+ - Updated dependencies [b97ca96]
10
+ - Updated dependencies [72d1990]
11
+ - Updated dependencies [cf6d825]
12
+ - Updated dependencies [10870bc]
13
+ - @mastra/core@0.2.0-alpha.104
14
+
3
15
  ## 0.1.0-alpha.13
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,5 @@
1
1
  import { BaseFilterTranslator } from '@mastra/core/filter';
2
+ import { EvalRow } from '@mastra/core/storage';
2
3
  import { Filter } from '@mastra/core/filter';
3
4
  import { MastraStorage } from '@mastra/core/storage';
4
5
  import { MastraVector } from '@mastra/core/vector';
@@ -33,6 +34,18 @@ export declare class UpstashFilterTranslator extends BaseFilterTranslator {
33
34
  }
34
35
 
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[]>;
36
49
  private redis;
37
50
  constructor(config: UpstashConfig);
38
51
  private getKey;
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.13",
3
+ "version": "0.1.0-alpha.14",
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,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@upstash/redis": "^1.28.3",
19
19
  "@upstash/vector": "^1.1.7",
20
- "@mastra/core": "^0.2.0-alpha.103"
20
+ "@mastra/core": "^0.2.0-alpha.104"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@microsoft/api-extractor": "^7.49.2",
@@ -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) {