@mastra/pg 0.17.8 → 1.0.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/pg",
3
- "version": "0.17.8",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "Postgres provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,19 +27,21 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@microsoft/api-extractor": "^7.52.8",
30
- "@types/node": "^20.19.0",
31
- "@types/pg": "^8.15.5",
30
+ "@types/node": "22.13.17",
31
+ "@types/pg": "^8.15.6",
32
+ "@vitest/coverage-v8": "4.0.8",
33
+ "@vitest/ui": "4.0.8",
32
34
  "eslint": "^9.37.0",
33
35
  "tsup": "^8.5.0",
34
36
  "typescript": "^5.8.3",
35
- "vitest": "^3.2.4",
36
- "@internal/lint": "0.0.58",
37
- "@internal/storage-test-utils": "0.0.54",
38
- "@internal/types-builder": "0.0.33",
39
- "@mastra/core": "0.24.0"
37
+ "vitest": "^4.0.8",
38
+ "@internal/lint": "0.0.53",
39
+ "@mastra/core": "1.0.0-beta.3",
40
+ "@internal/types-builder": "0.0.28",
41
+ "@internal/storage-test-utils": "0.0.49"
40
42
  },
41
43
  "peerDependencies": {
42
- "@mastra/core": ">=0.20.1-0 <0.25.0-0"
44
+ "@mastra/core": ">=1.0.0-0 <2.0.0-0"
43
45
  },
44
46
  "files": [
45
47
  "dist",
@@ -54,12 +56,8 @@
54
56
  "bugs": {
55
57
  "url": "https://github.com/mastra-ai/mastra/issues"
56
58
  },
57
- "publishConfig": {
58
- "access": "public",
59
- "publish-branch": [
60
- "main",
61
- "0.x"
62
- ]
59
+ "engines": {
60
+ "node": ">=22.13.0"
63
61
  },
64
62
  "scripts": {
65
63
  "build": "tsup --silent --config tsup.config.ts",
@@ -1,20 +0,0 @@
1
- import { LegacyEvalsStorage } from '@mastra/core/storage';
2
- import type { PaginationArgs, PaginationInfo, EvalRow } from '@mastra/core/storage';
3
- import type { IDatabase } from 'pg-promise';
4
- export declare class LegacyEvalsPG extends LegacyEvalsStorage {
5
- private client;
6
- private schema;
7
- constructor({ client, schema }: {
8
- client: IDatabase<{}>;
9
- schema: string;
10
- });
11
- /** @deprecated use getEvals instead */
12
- getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
13
- getEvals(options?: {
14
- agentName?: string;
15
- type?: 'test' | 'live';
16
- } & PaginationArgs): Promise<PaginationInfo & {
17
- evals: EvalRow[];
18
- }>;
19
- }
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/legacy-evals/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAe,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA2B5C,qBAAa,aAAc,SAAQ,kBAAkB;IACnD,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,MAAM,CAAS;gBACX,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAMzE,uCAAuC;IACjC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAwBlF,QAAQ,CACZ,OAAO,GAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,GAAG,cAAmB,GACtB,OAAO,CAAC,cAAc,GAAG;QAAE,KAAK,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;CAgFlD"}
@@ -1,23 +0,0 @@
1
- import type { PaginationInfo, StorageGetTracesArg, StorageGetTracesPaginatedArg } from '@mastra/core/storage';
2
- import { TracesStorage } from '@mastra/core/storage';
3
- import type { Trace } from '@mastra/core/telemetry';
4
- import type { IDatabase } from 'pg-promise';
5
- import type { StoreOperationsPG } from '../operations/index.js';
6
- export declare class TracesPG extends TracesStorage {
7
- client: IDatabase<{}>;
8
- private operations;
9
- private schema?;
10
- constructor({ client, operations, schema, }: {
11
- client: IDatabase<{}>;
12
- operations: StoreOperationsPG;
13
- schema?: string;
14
- });
15
- getTraces(args: StorageGetTracesArg): Promise<Trace[]>;
16
- getTracesPaginated(args: StorageGetTracesPaginatedArg): Promise<PaginationInfo & {
17
- traces: Trace[];
18
- }>;
19
- batchTraceInsert({ records }: {
20
- records: Record<string, any>[];
21
- }): Promise<void>;
22
- }
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/traces/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAC9G,OAAO,EAAgB,aAAa,EAAmB,MAAM,sBAAsB,CAAC;AACpF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,qBAAa,QAAS,SAAQ,aAAa;IAClC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7B,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,MAAM,CAAC,CAAS;gBAEZ,EACV,MAAM,EACN,UAAU,EACV,MAAM,GACP,EAAE;QACD,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;QACtB,UAAU,EAAE,iBAAiB,CAAC;QAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAOK,SAAS,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAsBtD,kBAAkB,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,cAAc,GAAG;QAAE,MAAM,EAAE,KAAK,EAAE,CAAA;KAAE,CAAC;IAqGrG,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAOvF"}