@mastra/pg 1.0.0-beta.1 → 1.0.0-beta.11
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 +548 -0
- package/README.md +3 -0
- package/dist/index.cjs +3239 -2110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3232 -2108
- package/dist/index.js.map +1 -1
- package/dist/shared/config.d.ts +121 -31
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/storage/client.d.ts +91 -0
- package/dist/storage/client.d.ts.map +1 -0
- package/dist/storage/db/index.d.ts +170 -0
- package/dist/storage/db/index.d.ts.map +1 -0
- package/dist/storage/domains/agents/index.d.ts +39 -0
- package/dist/storage/domains/agents/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +30 -11
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +29 -36
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +26 -29
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/utils.d.ts +1 -5
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +30 -19
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +51 -195
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/performance-indexes/performance-test.d.ts +3 -1
- package/dist/storage/performance-indexes/performance-test.d.ts.map +1 -1
- package/dist/storage/test-utils.d.ts.map +1 -1
- package/dist/vector/index.d.ts +42 -6
- package/dist/vector/index.d.ts.map +1 -1
- package/dist/vector/sql-builder.d.ts +4 -0
- package/dist/vector/sql-builder.d.ts.map +1 -1
- package/dist/vector/types.d.ts +10 -0
- package/dist/vector/types.d.ts.map +1 -1
- package/package.json +6 -8
- package/dist/storage/domains/operations/index.d.ts +0 -119
- package/dist/storage/domains/operations/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/observability/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/observability/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAIrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAEV,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,qBAAa,eAAgB,SAAQ,oBAAoB;;IAMvD,oCAAoC;IACpC,MAAM,CAAC,QAAQ,CAAC,cAAc,+BAA0B;gBAE5C,MAAM,EAAE,cAAc;IAU5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B;;OAEG;IACH,0BAA0B,IAAI,kBAAkB,EAAE;IAgElD;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAe3C;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAepC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,IAAoB,eAAe,IAAI;QACrC,SAAS,EAAE,sBAAsB,CAAC;QAClC,SAAS,EAAE,sBAAsB,EAAE,CAAC;KACrC,CAKA;IAEK,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC/C,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IA+C3D,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IA+CvE,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAqD9D,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAoC/C,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAsO7D,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IA+B3D,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmC3D,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;CAoBpE"}
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import type { ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
|
-
import type {
|
|
1
|
+
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
|
+
import type { StoragePagination, CreateIndexOptions } from '@mastra/core/storage';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
|
-
import type {
|
|
5
|
-
import type { StoreOperationsPG } from '../operations/index.js';
|
|
4
|
+
import type { PgDomainConfig } from '../../db/index.js';
|
|
6
5
|
export declare class ScoresPG extends ScoresStorage {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
#private;
|
|
7
|
+
/** Tables managed by this domain */
|
|
8
|
+
static readonly MANAGED_TABLES: readonly ["mastra_scorers"];
|
|
9
|
+
constructor(config: PgDomainConfig);
|
|
10
|
+
init(): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns default index definitions for the scores domain tables.
|
|
13
|
+
*/
|
|
14
|
+
getDefaultIndexDefinitions(): CreateIndexOptions[];
|
|
15
|
+
/**
|
|
16
|
+
* Creates default indexes for optimal query performance.
|
|
17
|
+
*/
|
|
18
|
+
createDefaultIndexes(): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates custom user-defined indexes for this domain's tables.
|
|
21
|
+
*/
|
|
22
|
+
createCustomIndexes(): Promise<void>;
|
|
23
|
+
dangerouslyClearAll(): Promise<void>;
|
|
15
24
|
getScoreById({ id }: {
|
|
16
25
|
id: string;
|
|
17
26
|
}): Promise<ScoreRowData | null>;
|
|
@@ -21,35 +30,23 @@ export declare class ScoresPG extends ScoresStorage {
|
|
|
21
30
|
entityId?: string;
|
|
22
31
|
entityType?: string;
|
|
23
32
|
source?: ScoringSource;
|
|
24
|
-
}): Promise<
|
|
25
|
-
|
|
26
|
-
scores: ScoreRowData[];
|
|
27
|
-
}>;
|
|
28
|
-
saveScore(score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
33
|
+
}): Promise<ListScoresResponse>;
|
|
34
|
+
saveScore(score: SaveScorePayload): Promise<{
|
|
29
35
|
score: ScoreRowData;
|
|
30
36
|
}>;
|
|
31
37
|
listScoresByRunId({ runId, pagination, }: {
|
|
32
38
|
runId: string;
|
|
33
39
|
pagination: StoragePagination;
|
|
34
|
-
}): Promise<
|
|
35
|
-
pagination: PaginationInfo;
|
|
36
|
-
scores: ScoreRowData[];
|
|
37
|
-
}>;
|
|
40
|
+
}): Promise<ListScoresResponse>;
|
|
38
41
|
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
39
42
|
pagination: StoragePagination;
|
|
40
43
|
entityId: string;
|
|
41
44
|
entityType: string;
|
|
42
|
-
}): Promise<
|
|
43
|
-
pagination: PaginationInfo;
|
|
44
|
-
scores: ScoreRowData[];
|
|
45
|
-
}>;
|
|
45
|
+
}): Promise<ListScoresResponse>;
|
|
46
46
|
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
47
47
|
traceId: string;
|
|
48
48
|
spanId: string;
|
|
49
49
|
pagination: StoragePagination;
|
|
50
|
-
}): Promise<
|
|
51
|
-
pagination: PaginationInfo;
|
|
52
|
-
scores: ScoreRowData[];
|
|
53
|
-
}>;
|
|
50
|
+
}): Promise<ListScoresResponse>;
|
|
54
51
|
}
|
|
55
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAIL,aAAa,EAId,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAwB/C,qBAAa,QAAS,SAAQ,aAAa;;IAMzC,oCAAoC;IACpC,MAAM,CAAC,QAAQ,CAAC,cAAc,8BAA4B;gBAE9C,MAAM,EAAE,cAAc;IAU5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B;;OAEG;IACH,0BAA0B,IAAI,kBAAkB,EAAE;IAWlD;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAe3C;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAepC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAoBlE,oBAAoB,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,aAAa,CAAC;KACxB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAsEzB,SAAS,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAuEpE,iBAAiB,CAAC,EACtB,KAAK,EACL,UAAU,GACX,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,iBAAiB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAkDzB,oBAAoB,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,UAAU,GACX,EAAE;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAkDzB,gBAAgB,CAAC,EACrB,OAAO,EACP,MAAM,EACN,UAAU,GACX,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,iBAAiB,CAAC;KAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA0ChC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StorageColumn, TABLE_NAMES } from '@mastra/core/storage';
|
|
2
2
|
export declare function getSchemaName(schema?: string): string | undefined;
|
|
3
3
|
export declare function getTableName({ indexName, schemaName }: {
|
|
4
4
|
indexName: string;
|
|
5
5
|
schemaName?: string;
|
|
6
6
|
}): string;
|
|
7
|
-
/**
|
|
8
|
-
* Build date range filter for queries
|
|
9
|
-
*/
|
|
10
|
-
export declare function buildDateRangeFilter(dateRange: PaginationArgs['dateRange'], fieldName: string): Record<string, any>;
|
|
11
7
|
/**
|
|
12
8
|
* Prepare WHERE clause for PostgreSQL queries
|
|
13
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIvE,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,sBAE5C;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,UAKjG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GACtC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CA6B9B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACrC,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B,GAAG,CAAC,CA+BJ"}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
2
|
-
import type { StorageListWorkflowRunsInput, WorkflowRun, WorkflowRuns } from '@mastra/core/storage';
|
|
2
|
+
import type { UpdateWorkflowStateOptions, StorageListWorkflowRunsInput, WorkflowRun, WorkflowRuns, CreateIndexOptions } from '@mastra/core/storage';
|
|
3
3
|
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
4
|
-
import type {
|
|
5
|
-
import type { StoreOperationsPG } from '../operations/index.js';
|
|
4
|
+
import type { PgDomainConfig } from '../../db/index.js';
|
|
6
5
|
export declare class WorkflowsPG extends WorkflowsStorage {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
#private;
|
|
7
|
+
/** Tables managed by this domain */
|
|
8
|
+
static readonly MANAGED_TABLES: readonly ["mastra_workflow_snapshot"];
|
|
9
|
+
constructor(config: PgDomainConfig);
|
|
10
|
+
/**
|
|
11
|
+
* Returns default index definitions for the workflows domain tables.
|
|
12
|
+
* Currently no default indexes are defined for workflows.
|
|
13
|
+
*/
|
|
14
|
+
getDefaultIndexDefinitions(): CreateIndexOptions[];
|
|
15
|
+
/**
|
|
16
|
+
* Creates default indexes for optimal query performance.
|
|
17
|
+
* Currently no default indexes are defined for workflows.
|
|
18
|
+
*/
|
|
19
|
+
createDefaultIndexes(): Promise<void>;
|
|
20
|
+
init(): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates custom user-defined indexes for this domain's tables.
|
|
23
|
+
*/
|
|
24
|
+
createCustomIndexes(): Promise<void>;
|
|
25
|
+
dangerouslyClearAll(): Promise<void>;
|
|
15
26
|
updateWorkflowResults({}: {
|
|
16
27
|
workflowName: string;
|
|
17
28
|
runId: string;
|
|
@@ -22,19 +33,15 @@ export declare class WorkflowsPG extends WorkflowsStorage {
|
|
|
22
33
|
updateWorkflowState({}: {
|
|
23
34
|
workflowName: string;
|
|
24
35
|
runId: string;
|
|
25
|
-
opts:
|
|
26
|
-
status: string;
|
|
27
|
-
result?: StepResult<any, any, any, any>;
|
|
28
|
-
error?: string;
|
|
29
|
-
suspendedPaths?: Record<string, number[]>;
|
|
30
|
-
waitingPaths?: Record<string, number[]>;
|
|
31
|
-
};
|
|
36
|
+
opts: UpdateWorkflowStateOptions;
|
|
32
37
|
}): Promise<WorkflowRunState | undefined>;
|
|
33
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
38
|
+
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, createdAt, updatedAt, }: {
|
|
34
39
|
workflowName: string;
|
|
35
40
|
runId: string;
|
|
36
41
|
resourceId?: string;
|
|
37
42
|
snapshot: WorkflowRunState;
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
updatedAt?: Date;
|
|
38
45
|
}): Promise<void>;
|
|
39
46
|
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
40
47
|
workflowName: string;
|
|
@@ -44,6 +51,10 @@ export declare class WorkflowsPG extends WorkflowsStorage {
|
|
|
44
51
|
runId: string;
|
|
45
52
|
workflowName?: string;
|
|
46
53
|
}): Promise<WorkflowRun | null>;
|
|
54
|
+
deleteWorkflowRunById({ runId, workflowName }: {
|
|
55
|
+
runId: string;
|
|
56
|
+
workflowName: string;
|
|
57
|
+
}): Promise<void>;
|
|
47
58
|
listWorkflowRuns({ workflowName, fromDate, toDate, perPage, page, resourceId, status, }?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
48
59
|
}
|
|
49
60
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,gBAAgB,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,WAAW,EACX,YAAY,EACZ,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AA8B/C,qBAAa,WAAY,SAAQ,gBAAgB;;IAM/C,oCAAoC;IACpC,MAAM,CAAC,QAAQ,CAAC,cAAc,wCAAsC;gBAExD,MAAM,EAAE,cAAc;IAUlC;;;OAGG;IACH,0BAA0B,IAAI,kBAAkB,EAAE;IAIlD;;;OAGG;IACG,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAW3B;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAepC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,qBAAqB,CACnB,EAMC,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACvC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACrC,GACA,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAG1D,mBAAmB,CACjB,EAIC,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,0BAA0B,CAAC;KAClC,GACA,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAIlC,uBAAuB,CAAC,EAC5B,YAAY,EACZ,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,SAAS,GACV,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,gBAAgB,CAAC;QAC3B,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,SAAS,CAAC,EAAE,IAAI,CAAC;KAClB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBX,oBAAoB,CAAC,EACzB,YAAY,EACZ,KAAK,GACN,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAoB9B,kBAAkB,CAAC,EACvB,KAAK,EACL,YAAY,GACb,EAAE;QACD,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAmDzB,qBAAqB,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBtG,gBAAgB,CAAC,EACrB,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,IAAI,EACJ,UAAU,EACV,MAAM,GACP,GAAE,4BAAiC,GAAG,OAAO,CAAC,YAAY,CAAC;CAqF7D"}
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,211 +1,67 @@
|
|
|
1
|
-
import type { MastraMessageContentV2, MastraDBMessage } from '@mastra/core/agent';
|
|
2
|
-
import type { ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
3
|
-
import type { StorageThreadType } from '@mastra/core/memory';
|
|
4
1
|
import { MastraStorage } from '@mastra/core/storage';
|
|
5
|
-
import type {
|
|
6
|
-
import
|
|
7
|
-
import pgPromise from 'pg-promise';
|
|
2
|
+
import type { StorageDomains } from '@mastra/core/storage';
|
|
3
|
+
import { Pool } from 'pg';
|
|
8
4
|
import type { PostgresStoreConfig } from '../shared/config.js';
|
|
9
|
-
|
|
5
|
+
import type { DbClient } from './client.js';
|
|
6
|
+
import { AgentsPG } from './domains/agents/index.js';
|
|
7
|
+
import { MemoryPG } from './domains/memory/index.js';
|
|
8
|
+
import { ObservabilityPG } from './domains/observability/index.js';
|
|
9
|
+
import { ScoresPG } from './domains/scores/index.js';
|
|
10
|
+
import { WorkflowsPG } from './domains/workflows/index.js';
|
|
11
|
+
export { exportSchemas } from './db/index.js';
|
|
12
|
+
export { AgentsPG, MemoryPG, ObservabilityPG, ScoresPG, WorkflowsPG };
|
|
13
|
+
export { PoolAdapter } from './client.js';
|
|
14
|
+
export type { DbClient, TxClient, QueryValues, Pool, PoolClient, QueryResult } from './client.js';
|
|
15
|
+
export type { PgDomainConfig, PgDomainClientConfig, PgDomainPoolConfig, PgDomainRestConfig } from './db/index.js';
|
|
16
|
+
/**
|
|
17
|
+
* PostgreSQL storage adapter for Mastra.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* // Option 1: Connection string
|
|
22
|
+
* const store = new PostgresStore({
|
|
23
|
+
* id: 'my-store',
|
|
24
|
+
* connectionString: 'postgresql://...',
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* // Option 2: Pre-configured pool
|
|
28
|
+
* const pool = new Pool({ connectionString: 'postgresql://...' });
|
|
29
|
+
* const store = new PostgresStore({ id: 'my-store', pool });
|
|
30
|
+
*
|
|
31
|
+
* // Access domain storage
|
|
32
|
+
* const memory = await store.getStore('memory');
|
|
33
|
+
* await memory?.saveThread({ thread });
|
|
34
|
+
*
|
|
35
|
+
* // Execute custom queries
|
|
36
|
+
* const rows = await store.db.any('SELECT * FROM my_table');
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
10
39
|
export declare class PostgresStore extends MastraStorage {
|
|
11
40
|
#private;
|
|
12
41
|
private schema;
|
|
13
|
-
private
|
|
42
|
+
private isInitialized;
|
|
14
43
|
stores: StorageDomains;
|
|
15
44
|
constructor(config: PostgresStoreConfig);
|
|
45
|
+
private createPool;
|
|
16
46
|
init(): Promise<void>;
|
|
17
|
-
get db(): pgPromise.IDatabase<{}, import("pg-promise/typescript/pg-subset").IClient>;
|
|
18
|
-
get pgp(): pgPromise.IMain<{}, import("pg-promise/typescript/pg-subset").IClient>;
|
|
19
|
-
get supports(): {
|
|
20
|
-
selectByIncludeResourceScope: boolean;
|
|
21
|
-
resourceWorkingMemory: boolean;
|
|
22
|
-
hasColumn: boolean;
|
|
23
|
-
createTable: boolean;
|
|
24
|
-
deleteMessages: boolean;
|
|
25
|
-
observabilityInstance: boolean;
|
|
26
|
-
indexManagement: boolean;
|
|
27
|
-
listScoresBySpan: boolean;
|
|
28
|
-
};
|
|
29
|
-
createTable({ tableName, schema, }: {
|
|
30
|
-
tableName: TABLE_NAMES;
|
|
31
|
-
schema: Record<string, StorageColumn>;
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
alterTable({ tableName, schema, ifNotExists, }: {
|
|
34
|
-
tableName: TABLE_NAMES;
|
|
35
|
-
schema: Record<string, StorageColumn>;
|
|
36
|
-
ifNotExists: string[];
|
|
37
|
-
}): Promise<void>;
|
|
38
|
-
clearTable({ tableName }: {
|
|
39
|
-
tableName: TABLE_NAMES;
|
|
40
|
-
}): Promise<void>;
|
|
41
|
-
dropTable({ tableName }: {
|
|
42
|
-
tableName: TABLE_NAMES;
|
|
43
|
-
}): Promise<void>;
|
|
44
|
-
insert({ tableName, record }: {
|
|
45
|
-
tableName: TABLE_NAMES;
|
|
46
|
-
record: Record<string, any>;
|
|
47
|
-
}): Promise<void>;
|
|
48
|
-
batchInsert({ tableName, records }: {
|
|
49
|
-
tableName: TABLE_NAMES;
|
|
50
|
-
records: Record<string, any>[];
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
load<R>({ tableName, keys }: {
|
|
53
|
-
tableName: TABLE_NAMES;
|
|
54
|
-
keys: Record<string, string>;
|
|
55
|
-
}): Promise<R | null>;
|
|
56
47
|
/**
|
|
57
|
-
*
|
|
48
|
+
* Database client for executing queries.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const rows = await store.db.any('SELECT * FROM users WHERE active = $1', [true]);
|
|
53
|
+
* const user = await store.db.one('SELECT * FROM users WHERE id = $1', [userId]);
|
|
54
|
+
* ```
|
|
58
55
|
*/
|
|
59
|
-
|
|
60
|
-
threadId: string;
|
|
61
|
-
}): Promise<StorageThreadType | null>;
|
|
62
|
-
saveThread({ thread }: {
|
|
63
|
-
thread: StorageThreadType;
|
|
64
|
-
}): Promise<StorageThreadType>;
|
|
65
|
-
updateThread({ id, title, metadata, }: {
|
|
66
|
-
id: string;
|
|
67
|
-
title: string;
|
|
68
|
-
metadata: Record<string, unknown>;
|
|
69
|
-
}): Promise<StorageThreadType>;
|
|
70
|
-
deleteThread({ threadId }: {
|
|
71
|
-
threadId: string;
|
|
72
|
-
}): Promise<void>;
|
|
73
|
-
listMessagesById({ messageIds }: {
|
|
74
|
-
messageIds: string[];
|
|
75
|
-
}): Promise<{
|
|
76
|
-
messages: MastraDBMessage[];
|
|
77
|
-
}>;
|
|
78
|
-
saveMessages(args: {
|
|
79
|
-
messages: MastraDBMessage[];
|
|
80
|
-
}): Promise<{
|
|
81
|
-
messages: MastraDBMessage[];
|
|
82
|
-
}>;
|
|
83
|
-
updateMessages({ messages, }: {
|
|
84
|
-
messages: (Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
85
|
-
id: string;
|
|
86
|
-
content?: {
|
|
87
|
-
metadata?: MastraMessageContentV2['metadata'];
|
|
88
|
-
content?: MastraMessageContentV2['content'];
|
|
89
|
-
};
|
|
90
|
-
})[];
|
|
91
|
-
}): Promise<MastraDBMessage[]>;
|
|
92
|
-
deleteMessages(messageIds: string[]): Promise<void>;
|
|
93
|
-
getResourceById({ resourceId }: {
|
|
94
|
-
resourceId: string;
|
|
95
|
-
}): Promise<StorageResourceType | null>;
|
|
96
|
-
saveResource({ resource }: {
|
|
97
|
-
resource: StorageResourceType;
|
|
98
|
-
}): Promise<StorageResourceType>;
|
|
99
|
-
updateResource({ resourceId, workingMemory, metadata, }: {
|
|
100
|
-
resourceId: string;
|
|
101
|
-
workingMemory?: string;
|
|
102
|
-
metadata?: Record<string, unknown>;
|
|
103
|
-
}): Promise<StorageResourceType>;
|
|
56
|
+
get db(): DbClient;
|
|
104
57
|
/**
|
|
105
|
-
*
|
|
58
|
+
* The underlying pg.Pool for direct database access or ORM integration.
|
|
106
59
|
*/
|
|
107
|
-
|
|
108
|
-
workflowName: string;
|
|
109
|
-
runId: string;
|
|
110
|
-
stepId: string;
|
|
111
|
-
result: StepResult<any, any, any, any>;
|
|
112
|
-
requestContext: Record<string, any>;
|
|
113
|
-
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
114
|
-
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
115
|
-
workflowName: string;
|
|
116
|
-
runId: string;
|
|
117
|
-
opts: {
|
|
118
|
-
status: string;
|
|
119
|
-
result?: StepResult<any, any, any, any>;
|
|
120
|
-
error?: string;
|
|
121
|
-
suspendedPaths?: Record<string, number[]>;
|
|
122
|
-
waitingPaths?: Record<string, number[]>;
|
|
123
|
-
};
|
|
124
|
-
}): Promise<WorkflowRunState | undefined>;
|
|
125
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
126
|
-
workflowName: string;
|
|
127
|
-
runId: string;
|
|
128
|
-
resourceId?: string;
|
|
129
|
-
snapshot: WorkflowRunState;
|
|
130
|
-
}): Promise<void>;
|
|
131
|
-
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
132
|
-
workflowName: string;
|
|
133
|
-
runId: string;
|
|
134
|
-
}): Promise<WorkflowRunState | null>;
|
|
135
|
-
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
136
|
-
getWorkflowRunById({ runId, workflowName, }: {
|
|
137
|
-
runId: string;
|
|
138
|
-
workflowName?: string;
|
|
139
|
-
}): Promise<WorkflowRun | null>;
|
|
140
|
-
close(): Promise<void>;
|
|
141
|
-
/**
|
|
142
|
-
* Tracing / Observability
|
|
143
|
-
*/
|
|
144
|
-
createSpan(span: SpanRecord): Promise<void>;
|
|
145
|
-
updateSpan({ spanId, traceId, updates, }: {
|
|
146
|
-
spanId: string;
|
|
147
|
-
traceId: string;
|
|
148
|
-
updates: Partial<Omit<SpanRecord, 'spanId' | 'traceId'>>;
|
|
149
|
-
}): Promise<void>;
|
|
150
|
-
getTrace(traceId: string): Promise<TraceRecord | null>;
|
|
151
|
-
getTracesPaginated(args: TracesPaginatedArg): Promise<{
|
|
152
|
-
pagination: PaginationInfo;
|
|
153
|
-
spans: SpanRecord[];
|
|
154
|
-
}>;
|
|
155
|
-
batchCreateSpans(args: {
|
|
156
|
-
records: SpanRecord[];
|
|
157
|
-
}): Promise<void>;
|
|
158
|
-
batchUpdateSpans(args: {
|
|
159
|
-
records: {
|
|
160
|
-
traceId: string;
|
|
161
|
-
spanId: string;
|
|
162
|
-
updates: Partial<Omit<SpanRecord, 'spanId' | 'traceId'>>;
|
|
163
|
-
}[];
|
|
164
|
-
}): Promise<void>;
|
|
165
|
-
batchDeleteTraces(args: {
|
|
166
|
-
traceIds: string[];
|
|
167
|
-
}): Promise<void>;
|
|
60
|
+
get pool(): Pool;
|
|
168
61
|
/**
|
|
169
|
-
*
|
|
62
|
+
* Closes the connection pool if it was created by this store.
|
|
63
|
+
* If a pool was passed in via config, it will not be closed.
|
|
170
64
|
*/
|
|
171
|
-
|
|
172
|
-
id: string;
|
|
173
|
-
}): Promise<ScoreRowData | null>;
|
|
174
|
-
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
175
|
-
scorerId: string;
|
|
176
|
-
pagination: StoragePagination;
|
|
177
|
-
entityId?: string;
|
|
178
|
-
entityType?: string;
|
|
179
|
-
source?: ScoringSource;
|
|
180
|
-
}): Promise<{
|
|
181
|
-
pagination: PaginationInfo;
|
|
182
|
-
scores: ScoreRowData[];
|
|
183
|
-
}>;
|
|
184
|
-
saveScore(score: ScoreRowData): Promise<{
|
|
185
|
-
score: ScoreRowData;
|
|
186
|
-
}>;
|
|
187
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
188
|
-
runId: string;
|
|
189
|
-
pagination: StoragePagination;
|
|
190
|
-
}): Promise<{
|
|
191
|
-
pagination: PaginationInfo;
|
|
192
|
-
scores: ScoreRowData[];
|
|
193
|
-
}>;
|
|
194
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
195
|
-
pagination: StoragePagination;
|
|
196
|
-
entityId: string;
|
|
197
|
-
entityType: string;
|
|
198
|
-
}): Promise<{
|
|
199
|
-
pagination: PaginationInfo;
|
|
200
|
-
scores: ScoreRowData[];
|
|
201
|
-
}>;
|
|
202
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
203
|
-
traceId: string;
|
|
204
|
-
spanId: string;
|
|
205
|
-
pagination: StoragePagination;
|
|
206
|
-
}): Promise<{
|
|
207
|
-
pagination: PaginationInfo;
|
|
208
|
-
scores: ScoreRowData[];
|
|
209
|
-
}>;
|
|
65
|
+
close(): Promise<void>;
|
|
210
66
|
}
|
|
211
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAQ1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/F,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAEzG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,aAAc,SAAQ,aAAa;;IAI9C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAkB;IAEvC,MAAM,EAAE,cAAc,CAAC;gBAEX,MAAM,EAAE,mBAAmB;IA0CvC,OAAO,CAAC,UAAU;IA8BZ,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3B;;;;;;;;OAQG;IACH,IAAW,EAAE,IAAI,QAAQ,CAExB;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,IAAI,CAEtB;IAED;;;OAGG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAK7B"}
|
|
@@ -26,13 +26,15 @@ interface PerformanceComparison {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class PostgresPerformanceTest {
|
|
28
28
|
private store;
|
|
29
|
+
private memory;
|
|
30
|
+
private dbOps;
|
|
29
31
|
private config;
|
|
30
32
|
constructor(config: PerformanceTestConfig);
|
|
31
33
|
init(): Promise<void>;
|
|
32
34
|
cleanup(): Promise<void>;
|
|
33
35
|
resetDatabase(): Promise<void>;
|
|
34
36
|
dropPerformanceIndexes(): Promise<void>;
|
|
35
|
-
|
|
37
|
+
createDefaultIndexes(): Promise<void>;
|
|
36
38
|
seedTestData(): Promise<void>;
|
|
37
39
|
measureOperation(name: string, operation: () => Promise<any>, scenario: 'without_indexes' | 'with_indexes'): Promise<PerformanceResult>;
|
|
38
40
|
runPerformanceTests(scenario: 'without_indexes' | 'with_indexes'): Promise<PerformanceResult[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performance-test.d.ts","sourceRoot":"","sources":["../../../src/storage/performance-indexes/performance-test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"performance-test.d.ts","sourceRoot":"","sources":["../../../src/storage/performance-indexes/performance-test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,UAAU,qBAAqB;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,iBAAiB,GAAG,cAAc,CAAC;CAC9C;AAED,UAAU,qBAAqB;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,iBAAiB,CAAC;IAClC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,KAAK,CAAO;IACpB,OAAO,CAAC,MAAM,CAAwB;gBAE1B,MAAM,EAAE,qBAAqB;IAUnC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAmCxB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB9B,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IA2BvC,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAoM7B,gBAAgB,CACpB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,EAC7B,QAAQ,EAAE,iBAAiB,GAAG,cAAc,GAC3C,OAAO,CAAC,iBAAiB,CAAC;IA6BvB,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,cAAc,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IA+B/F,iBAAiB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAoCrD,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B5C,eAAe,CAAC,WAAW,EAAE,qBAAqB,EAAE,GAAG,IAAI;IAwB3D,YAAY,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,IAAI;IAiB1C,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAkBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/storage/test-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/storage/test-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK5D,eAAO,MAAM,WAAW,EAAE,mBAOF,CAAC;AAEzB,eAAO,MAAM,gBAAgB,QAA0K,CAAC;AAExM,wBAAgB,OAAO,SA2rBtB"}
|