@mastra/mongodb 0.14.9 → 1.0.0-beta.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.
- package/CHANGELOG.md +219 -23
- package/README.md +26 -20
- package/dist/index.cjs +279 -546
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +279 -546
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +14 -42
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +17 -17
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +5 -5
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +3 -10
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +34 -81
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/types.d.ts +2 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/vector/index.d.ts +2 -1
- package/dist/vector/index.d.ts.map +1 -1
- package/package.json +8 -12
- package/dist/storage/domains/legacy-evals/index.d.ts +0 -18
- package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
- package/dist/storage/domains/traces/index.d.ts +0 -18
- package/dist/storage/domains/traces/index.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
2
|
-
import type {
|
|
2
|
+
import type { MastraDBMessage, StorageThreadType } from '@mastra/core/memory';
|
|
3
3
|
import { MemoryStorage } from '@mastra/core/storage';
|
|
4
|
-
import type {
|
|
4
|
+
import type { StorageResourceType, StorageListMessagesInput, StorageListMessagesOutput, StorageListThreadsByResourceIdInput, StorageListThreadsByResourceIdOutput } from '@mastra/core/storage';
|
|
5
5
|
import type { StoreOperationsMongoDB } from '../operations/index.js';
|
|
6
6
|
export declare class MemoryStorageMongoDB extends MemoryStorage {
|
|
7
7
|
private operations;
|
|
@@ -10,45 +10,26 @@ export declare class MemoryStorageMongoDB extends MemoryStorage {
|
|
|
10
10
|
});
|
|
11
11
|
private parseRow;
|
|
12
12
|
private _getIncludedMessages;
|
|
13
|
-
|
|
14
|
-
* @deprecated use getMessagesPaginated instead for paginated results.
|
|
15
|
-
*/
|
|
16
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
17
|
-
format?: 'v1';
|
|
18
|
-
}): Promise<MastraMessageV1[]>;
|
|
19
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
20
|
-
format: 'v2';
|
|
21
|
-
}): Promise<MastraMessageV2[]>;
|
|
22
|
-
getMessagesById({ messageIds, format, }: {
|
|
13
|
+
listMessagesById({ messageIds }: {
|
|
23
14
|
messageIds: string[];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}): Promise<PaginationInfo & {
|
|
33
|
-
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
15
|
+
}): Promise<{
|
|
16
|
+
messages: MastraDBMessage[];
|
|
17
|
+
}>;
|
|
18
|
+
listMessages(args: StorageListMessagesInput): Promise<StorageListMessagesOutput>;
|
|
19
|
+
saveMessages({ messages }: {
|
|
20
|
+
messages: MastraDBMessage[];
|
|
21
|
+
}): Promise<{
|
|
22
|
+
messages: MastraDBMessage[];
|
|
34
23
|
}>;
|
|
35
|
-
saveMessages(args: {
|
|
36
|
-
messages: MastraMessageV1[];
|
|
37
|
-
format?: undefined | 'v1';
|
|
38
|
-
}): Promise<MastraMessageV1[]>;
|
|
39
|
-
saveMessages(args: {
|
|
40
|
-
messages: MastraMessageV2[];
|
|
41
|
-
format: 'v2';
|
|
42
|
-
}): Promise<MastraMessageV2[]>;
|
|
43
24
|
updateMessages({ messages, }: {
|
|
44
|
-
messages: (Partial<Omit<
|
|
25
|
+
messages: (Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
45
26
|
id: string;
|
|
46
27
|
content?: {
|
|
47
28
|
metadata?: MastraMessageContentV2['metadata'];
|
|
48
29
|
content?: MastraMessageContentV2['content'];
|
|
49
30
|
};
|
|
50
31
|
})[];
|
|
51
|
-
}): Promise<
|
|
32
|
+
}): Promise<MastraDBMessage[]>;
|
|
52
33
|
getResourceById({ resourceId }: {
|
|
53
34
|
resourceId: string;
|
|
54
35
|
}): Promise<StorageResourceType | null>;
|
|
@@ -63,16 +44,7 @@ export declare class MemoryStorageMongoDB extends MemoryStorage {
|
|
|
63
44
|
getThreadById({ threadId }: {
|
|
64
45
|
threadId: string;
|
|
65
46
|
}): Promise<StorageThreadType | null>;
|
|
66
|
-
|
|
67
|
-
resourceId: string;
|
|
68
|
-
}): Promise<StorageThreadType[]>;
|
|
69
|
-
getThreadsByResourceIdPaginated(args: {
|
|
70
|
-
resourceId: string;
|
|
71
|
-
page: number;
|
|
72
|
-
perPage: number;
|
|
73
|
-
}): Promise<PaginationInfo & {
|
|
74
|
-
threads: StorageThreadType[];
|
|
75
|
-
}>;
|
|
47
|
+
listThreadsByResourceId(args: StorageListThreadsByResourceIdInput): Promise<StorageListThreadsByResourceIdOutput>;
|
|
76
48
|
saveThread({ thread }: {
|
|
77
49
|
thread: StorageThreadType;
|
|
78
50
|
}): Promise<StorageThreadType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/memory/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/memory/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAmB,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,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E,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IA6B5F,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,mBAAmB,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4B3F,cAAc,CAAC,EACnB,UAAU,EACV,aAAa,EACb,QAAQ,GACT,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAkD1B,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAyB7E,uBAAuB,CAClC,IAAI,EAAE,mCAAmC,GACxC,OAAO,CAAC,oCAAoC,CAAC;IAyE1C,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA2BjF,YAAY,CAAC,EACjB,EAAE,EACF,KAAK,EACL,QAAQ,GACT,EAAE;QACD,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+CxB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAoBtE"}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TracingStorageStrategy } from '@mastra/core/observability';
|
|
2
2
|
import { ObservabilityStorage } from '@mastra/core/storage';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SpanRecord, TraceRecord, TracesPaginatedArg, CreateSpanRecord, PaginationInfo, UpdateSpanRecord } from '@mastra/core/storage';
|
|
4
4
|
import type { StoreOperationsMongoDB } from '../operations/index.js';
|
|
5
5
|
export declare class ObservabilityMongoDB extends ObservabilityStorage {
|
|
6
6
|
private operations;
|
|
7
7
|
constructor({ operations }: {
|
|
8
8
|
operations: StoreOperationsMongoDB;
|
|
9
9
|
});
|
|
10
|
-
get
|
|
11
|
-
preferred:
|
|
12
|
-
supported:
|
|
10
|
+
get tracingStrategy(): {
|
|
11
|
+
preferred: TracingStorageStrategy;
|
|
12
|
+
supported: TracingStorageStrategy[];
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
createSpan(span: CreateSpanRecord): Promise<void>;
|
|
15
|
+
getTrace(traceId: string): Promise<TraceRecord | null>;
|
|
16
|
+
updateSpan({ spanId, traceId, updates, }: {
|
|
17
17
|
spanId: string;
|
|
18
18
|
traceId: string;
|
|
19
|
-
updates: Partial<
|
|
19
|
+
updates: Partial<UpdateSpanRecord>;
|
|
20
20
|
}): Promise<void>;
|
|
21
|
-
|
|
21
|
+
getTracesPaginated({ filters, pagination, }: TracesPaginatedArg): Promise<{
|
|
22
22
|
pagination: PaginationInfo;
|
|
23
|
-
spans:
|
|
23
|
+
spans: SpanRecord[];
|
|
24
24
|
}>;
|
|
25
|
-
|
|
26
|
-
records:
|
|
25
|
+
batchCreateSpans(args: {
|
|
26
|
+
records: CreateSpanRecord[];
|
|
27
27
|
}): Promise<void>;
|
|
28
|
-
|
|
28
|
+
batchUpdateSpans(args: {
|
|
29
29
|
records: {
|
|
30
30
|
traceId: string;
|
|
31
31
|
spanId: string;
|
|
32
|
-
updates: Partial<
|
|
32
|
+
updates: Partial<UpdateSpanRecord>;
|
|
33
33
|
}[];
|
|
34
34
|
}): Promise<void>;
|
|
35
|
-
|
|
35
|
+
batchDeleteTraces(args: {
|
|
36
36
|
traceIds: string[];
|
|
37
37
|
}): Promise<void>;
|
|
38
38
|
/**
|
|
39
|
-
* Transform MongoDB document to
|
|
39
|
+
* Transform MongoDB document to SpanRecord format
|
|
40
40
|
*/
|
|
41
41
|
private transformSpanFromMongo;
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/observability/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/observability/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAe,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,qBAAa,oBAAqB,SAAQ,oBAAoB;IAC5D,OAAO,CAAC,UAAU,CAAyB;gBAE/B,EAAE,UAAU,EAAE,EAAE;QAAE,UAAU,EAAE,sBAAsB,CAAA;KAAE;IAKlE,IAAW,eAAe,IAAI;QAC5B,SAAS,EAAE,sBAAsB,CAAC;QAClC,SAAS,EAAE,sBAAsB,EAAE,CAAC;KACrC,CAKA;IAEK,UAAU,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgCjD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IA6BtD,UAAU,CAAC,EACf,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;KACpC,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCX,kBAAkB,CAAC,EACvB,OAAO,EACP,UAAU,GACX,EAAE,kBAAkB,GAAG,OAAO,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,KAAK,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;IAoG9E,gBAAgB,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,gBAAgB,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA+BtE,gBAAgB,CAAC,IAAI,EAAE;QAC3B,OAAO,EAAE;YACP,OAAO,EAAE,MAAM,CAAC;YAChB,MAAM,EAAE,MAAM,CAAC;YACf,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;SACpC,EAAE,CAAC;KACL,GAAG,OAAO,CAAC,IAAI,CAAC;IAsCX,iBAAiB,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBpE;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAoB/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScoreRowData, ScoringSource } from '@mastra/core/
|
|
1
|
+
import type { ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
2
2
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
3
3
|
import type { PaginationInfo, StoragePagination } from '@mastra/core/storage';
|
|
4
4
|
import type { StoreOperationsMongoDB } from '../operations/index.js';
|
|
@@ -13,7 +13,7 @@ export declare class ScoresStorageMongoDB extends ScoresStorage {
|
|
|
13
13
|
saveScore(score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
14
14
|
score: ScoreRowData;
|
|
15
15
|
}>;
|
|
16
|
-
|
|
16
|
+
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
17
17
|
scorerId: string;
|
|
18
18
|
pagination: StoragePagination;
|
|
19
19
|
entityId?: string;
|
|
@@ -23,14 +23,14 @@ export declare class ScoresStorageMongoDB extends ScoresStorage {
|
|
|
23
23
|
pagination: PaginationInfo;
|
|
24
24
|
scores: ScoreRowData[];
|
|
25
25
|
}>;
|
|
26
|
-
|
|
26
|
+
listScoresByRunId({ runId, pagination, }: {
|
|
27
27
|
runId: string;
|
|
28
28
|
pagination: StoragePagination;
|
|
29
29
|
}): Promise<{
|
|
30
30
|
pagination: PaginationInfo;
|
|
31
31
|
scores: ScoreRowData[];
|
|
32
32
|
}>;
|
|
33
|
-
|
|
33
|
+
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
34
34
|
pagination: StoragePagination;
|
|
35
35
|
entityId: string;
|
|
36
36
|
entityType: string;
|
|
@@ -38,7 +38,7 @@ export declare class ScoresStorageMongoDB extends ScoresStorage {
|
|
|
38
38
|
pagination: PaginationInfo;
|
|
39
39
|
scores: ScoreRowData[];
|
|
40
40
|
}>;
|
|
41
|
-
|
|
41
|
+
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
42
42
|
traceId: string;
|
|
43
43
|
spanId: string;
|
|
44
44
|
pagination: StoragePagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAqB,aAAa,EAA6B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAqB,aAAa,EAA6B,MAAM,oBAAoB,CAAC;AAEpH,OAAO,EACL,aAAa,EAKd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AA8G5D,qBAAa,oBAAqB,SAAQ,aAAa;IACrD,OAAO,CAA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AC,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;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CAuDpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
2
|
-
import type { WorkflowRun, WorkflowRuns } from '@mastra/core/storage';
|
|
2
|
+
import type { WorkflowRun, WorkflowRuns, StorageListWorkflowRunsInput } from '@mastra/core/storage';
|
|
3
3
|
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
4
4
|
import type { StoreOperationsMongoDB } from '../operations/index.js';
|
|
5
5
|
export declare class WorkflowsStorageMongoDB extends WorkflowsStorage {
|
|
@@ -12,7 +12,7 @@ export declare class WorkflowsStorageMongoDB extends WorkflowsStorage {
|
|
|
12
12
|
runId: string;
|
|
13
13
|
stepId: string;
|
|
14
14
|
result: StepResult<any, any, any, any>;
|
|
15
|
-
|
|
15
|
+
requestContext: Record<string, any>;
|
|
16
16
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
17
17
|
updateWorkflowState({}: {
|
|
18
18
|
workflowName: string;
|
|
@@ -35,14 +35,7 @@ export declare class WorkflowsStorageMongoDB extends WorkflowsStorage {
|
|
|
35
35
|
workflowName: string;
|
|
36
36
|
runId: string;
|
|
37
37
|
}): Promise<WorkflowRunState | null>;
|
|
38
|
-
|
|
39
|
-
workflowName?: string;
|
|
40
|
-
fromDate?: Date;
|
|
41
|
-
toDate?: Date;
|
|
42
|
-
limit?: number;
|
|
43
|
-
offset?: number;
|
|
44
|
-
resourceId?: string;
|
|
45
|
-
}): Promise<WorkflowRuns>;
|
|
38
|
+
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
46
39
|
getWorkflowRunById(args: {
|
|
47
40
|
runId: string;
|
|
48
41
|
workflowName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAA8D,MAAM,sBAAsB,CAAC;AACpH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,OAAO,CAAC,UAAU,CAAyB;gBAE/B,EAAE,UAAU,EAAE,EAAE;QAAE,UAAU,EAAE,sBAAsB,CAAA;KAAE;IAKlE,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;YACJ,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;YACxC,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;YAC1C,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;SACzC,CAAC;KACH,GACA,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAIlC,uBAAuB,CAAC,EAC5B,YAAY,EACZ,KAAK,EACL,UAAU,EACV,QAAQ,GACT,EAAE;QACD,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,gBAAgB,CAAC;KAC5B,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BX,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;IA4B9B,gBAAgB,CAAC,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,YAAY,CAAC;IA0E5E,kBAAkB,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IA8BrG,OAAO,CAAC,gBAAgB;CAoBzB"}
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
2
|
+
import type { ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
3
|
+
import type { MastraDBMessage, StorageThreadType } from '@mastra/core/memory';
|
|
4
|
+
import type { PaginationInfo, StorageColumn, StorageDomains, StoragePagination, StorageResourceType, TABLE_NAMES, WorkflowRun, WorkflowRuns, SpanRecord, TraceRecord, TracesPaginatedArg, CreateSpanRecord, UpdateSpanRecord, StorageListWorkflowRunsInput } from '@mastra/core/storage';
|
|
5
5
|
import { MastraStorage } from '@mastra/core/storage';
|
|
6
|
-
import type { Trace } from '@mastra/core/telemetry';
|
|
7
6
|
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
8
7
|
import type { MongoDBConfig } from './types.js';
|
|
9
8
|
export declare class MongoDBStore extends MastraStorage {
|
|
@@ -15,7 +14,7 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
15
14
|
hasColumn: boolean;
|
|
16
15
|
createTable: boolean;
|
|
17
16
|
deleteMessages: boolean;
|
|
18
|
-
|
|
17
|
+
listScoresBySpan: boolean;
|
|
19
18
|
};
|
|
20
19
|
constructor(config: MongoDBConfig);
|
|
21
20
|
createTable({ tableName, schema, }: {
|
|
@@ -48,16 +47,6 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
48
47
|
getThreadById({ threadId }: {
|
|
49
48
|
threadId: string;
|
|
50
49
|
}): Promise<StorageThreadType | null>;
|
|
51
|
-
getThreadsByResourceId({ resourceId }: {
|
|
52
|
-
resourceId: string;
|
|
53
|
-
}): Promise<StorageThreadType[]>;
|
|
54
|
-
getThreadsByResourceIdPaginated(_args: {
|
|
55
|
-
resourceId: string;
|
|
56
|
-
page: number;
|
|
57
|
-
perPage: number;
|
|
58
|
-
}): Promise<PaginationInfo & {
|
|
59
|
-
threads: StorageThreadType[];
|
|
60
|
-
}>;
|
|
61
50
|
saveThread({ thread }: {
|
|
62
51
|
thread: StorageThreadType;
|
|
63
52
|
}): Promise<StorageThreadType>;
|
|
@@ -69,68 +58,32 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
69
58
|
deleteThread({ threadId }: {
|
|
70
59
|
threadId: string;
|
|
71
60
|
}): Promise<void>;
|
|
72
|
-
|
|
73
|
-
format?: 'v1';
|
|
74
|
-
}): Promise<MastraMessageV1[]>;
|
|
75
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
76
|
-
format: 'v2';
|
|
77
|
-
}): Promise<MastraMessageV2[]>;
|
|
78
|
-
getMessagesPaginated(_args: StorageGetMessagesArg): Promise<PaginationInfo & {
|
|
79
|
-
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
80
|
-
}>;
|
|
81
|
-
getMessagesById({ messageIds, format }: {
|
|
82
|
-
messageIds: string[];
|
|
83
|
-
format: 'v1';
|
|
84
|
-
}): Promise<MastraMessageV1[]>;
|
|
85
|
-
getMessagesById({ messageIds, format }: {
|
|
61
|
+
listMessagesById({ messageIds }: {
|
|
86
62
|
messageIds: string[];
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
messages: MastraMessageV1[];
|
|
91
|
-
format?: undefined | 'v1';
|
|
92
|
-
}): Promise<MastraMessageV1[]>;
|
|
63
|
+
}): Promise<{
|
|
64
|
+
messages: MastraDBMessage[];
|
|
65
|
+
}>;
|
|
93
66
|
saveMessages(args: {
|
|
94
|
-
messages:
|
|
95
|
-
|
|
96
|
-
|
|
67
|
+
messages: MastraDBMessage[];
|
|
68
|
+
}): Promise<{
|
|
69
|
+
messages: MastraDBMessage[];
|
|
70
|
+
}>;
|
|
97
71
|
updateMessages(_args: {
|
|
98
|
-
messages: Partial<Omit<
|
|
72
|
+
messages: (Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
99
73
|
id: string;
|
|
100
74
|
content?: {
|
|
101
75
|
metadata?: MastraMessageContentV2['metadata'];
|
|
102
76
|
content?: MastraMessageContentV2['content'];
|
|
103
77
|
};
|
|
104
|
-
}[];
|
|
105
|
-
}): Promise<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
traces: Trace[];
|
|
109
|
-
}>;
|
|
110
|
-
batchTraceInsert({ records }: {
|
|
111
|
-
records: Record<string, any>[];
|
|
112
|
-
}): Promise<void>;
|
|
113
|
-
getWorkflowRuns(args?: {
|
|
114
|
-
workflowName?: string;
|
|
115
|
-
fromDate?: Date;
|
|
116
|
-
toDate?: Date;
|
|
117
|
-
limit?: number;
|
|
118
|
-
offset?: number;
|
|
119
|
-
resourceId?: string;
|
|
120
|
-
}): Promise<WorkflowRuns>;
|
|
121
|
-
getEvals(options?: {
|
|
122
|
-
agentName?: string;
|
|
123
|
-
type?: 'test' | 'live';
|
|
124
|
-
} & PaginationArgs): Promise<PaginationInfo & {
|
|
125
|
-
evals: EvalRow[];
|
|
126
|
-
}>;
|
|
127
|
-
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
128
|
-
updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext, }: {
|
|
78
|
+
})[];
|
|
79
|
+
}): Promise<MastraDBMessage[]>;
|
|
80
|
+
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
81
|
+
updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, }: {
|
|
129
82
|
workflowName: string;
|
|
130
83
|
runId: string;
|
|
131
84
|
stepId: string;
|
|
132
85
|
result: StepResult<any, any, any, any>;
|
|
133
|
-
|
|
86
|
+
requestContext: Record<string, any>;
|
|
134
87
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
135
88
|
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
136
89
|
workflowName: string;
|
|
@@ -167,14 +120,14 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
167
120
|
saveScore(score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
168
121
|
score: ScoreRowData;
|
|
169
122
|
}>;
|
|
170
|
-
|
|
123
|
+
listScoresByRunId({ runId, pagination, }: {
|
|
171
124
|
runId: string;
|
|
172
125
|
pagination: StoragePagination;
|
|
173
126
|
}): Promise<{
|
|
174
127
|
pagination: PaginationInfo;
|
|
175
128
|
scores: ScoreRowData[];
|
|
176
129
|
}>;
|
|
177
|
-
|
|
130
|
+
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
178
131
|
pagination: StoragePagination;
|
|
179
132
|
entityId: string;
|
|
180
133
|
entityType: string;
|
|
@@ -182,7 +135,7 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
182
135
|
pagination: PaginationInfo;
|
|
183
136
|
scores: ScoreRowData[];
|
|
184
137
|
}>;
|
|
185
|
-
|
|
138
|
+
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
186
139
|
scorerId: string;
|
|
187
140
|
pagination: StoragePagination;
|
|
188
141
|
entityId?: string;
|
|
@@ -192,7 +145,7 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
192
145
|
pagination: PaginationInfo;
|
|
193
146
|
scores: ScoreRowData[];
|
|
194
147
|
}>;
|
|
195
|
-
|
|
148
|
+
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
196
149
|
traceId: string;
|
|
197
150
|
spanId: string;
|
|
198
151
|
pagination: StoragePagination;
|
|
@@ -215,30 +168,30 @@ export declare class MongoDBStore extends MastraStorage {
|
|
|
215
168
|
metadata?: Record<string, unknown>;
|
|
216
169
|
}): Promise<StorageResourceType>;
|
|
217
170
|
/**
|
|
218
|
-
*
|
|
171
|
+
* Tracing/Observability
|
|
219
172
|
*/
|
|
220
|
-
|
|
221
|
-
|
|
173
|
+
createSpan(span: CreateSpanRecord): Promise<void>;
|
|
174
|
+
updateSpan({ spanId, traceId, updates, }: {
|
|
222
175
|
spanId: string;
|
|
223
176
|
traceId: string;
|
|
224
|
-
updates: Partial<
|
|
177
|
+
updates: Partial<UpdateSpanRecord>;
|
|
225
178
|
}): Promise<void>;
|
|
226
|
-
|
|
227
|
-
|
|
179
|
+
getTrace(traceId: string): Promise<TraceRecord | null>;
|
|
180
|
+
getTracesPaginated(args: TracesPaginatedArg): Promise<{
|
|
228
181
|
pagination: PaginationInfo;
|
|
229
|
-
spans:
|
|
182
|
+
spans: SpanRecord[];
|
|
230
183
|
}>;
|
|
231
|
-
|
|
232
|
-
records:
|
|
184
|
+
batchCreateSpans(args: {
|
|
185
|
+
records: CreateSpanRecord[];
|
|
233
186
|
}): Promise<void>;
|
|
234
|
-
|
|
187
|
+
batchUpdateSpans(args: {
|
|
235
188
|
records: {
|
|
236
189
|
traceId: string;
|
|
237
190
|
spanId: string;
|
|
238
|
-
updates: Partial<
|
|
191
|
+
updates: Partial<UpdateSpanRecord>;
|
|
239
192
|
}[];
|
|
240
193
|
}): Promise<void>;
|
|
241
|
-
|
|
194
|
+
batchDeleteTraces(args: {
|
|
242
195
|
traceIds: string[];
|
|
243
196
|
}): Promise<void>;
|
|
244
197
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE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ler } from './connectors/base.js';
|
|
3
3
|
export type MongoDBConfig = DatabaseConfig | {
|
|
4
|
+
id: string;
|
|
4
5
|
connectorHandler: ConnectorHandler;
|
|
5
6
|
};
|
|
6
7
|
export type DatabaseConfig = {
|
|
8
|
+
id: string;
|
|
7
9
|
url: string;
|
|
8
10
|
dbName: string;
|
|
9
11
|
options?: MongoClientOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,MAAM,aAAa,GACrB,cAAc,GACd;IACE,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/storage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,MAAM,aAAa,GACrB,cAAc,GACd;IACE,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ export declare class MongoDBVector extends MastraVector<MongoDBVectorFilter> {
|
|
|
22
22
|
private readonly documentFieldName;
|
|
23
23
|
private collectionForValidation;
|
|
24
24
|
private mongoMetricMap;
|
|
25
|
-
constructor({ uri, dbName, options }: {
|
|
25
|
+
constructor({ id, uri, dbName, options }: {
|
|
26
|
+
id: string;
|
|
26
27
|
uri: string;
|
|
27
28
|
dbName: string;
|
|
28
29
|
options?: MongoClientOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,kBAAkB,EAA4B,MAAM,SAAS,CAAC;AAK5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGpD,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,UAAU,wBAAyB,SAAQ,iBAAiB,CAAC,mBAAmB,CAAC;IAC/E,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAWD,qBAAa,aAAc,SAAQ,YAAY,CAAC,mBAAmB,CAAC;IAClE,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,EAAE,CAAK;IACf,OAAO,CAAC,WAAW,CAA2C;IAC9D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAe;IAClD,OAAO,CAAC,QAAQ,CAAC,iBA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EAAE,EAAE,MAAM,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8ChF;;;;;;OAMG;IACG,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;YAqB1D,aAAa;YAoBb,wBAAwB;YAmBxB,iBAAiB;IAM/B,OAAO,CAAC,eAAe;IAMvB;;;;;;;OAOG;IACH,OAAO,CAAC,uBAAuB;IAiC/B;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAYxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mongodb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "MongoDB provider for Mastra - includes vector store capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"tsup": "^8.5.0",
|
|
32
32
|
"typescript": "^5.8.3",
|
|
33
33
|
"vitest": "^3.2.4",
|
|
34
|
-
"@internal/lint": "0.0.
|
|
35
|
-
"@internal/storage-test-utils": "0.0.
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
34
|
+
"@internal/lint": "0.0.53",
|
|
35
|
+
"@internal/storage-test-utils": "0.0.49",
|
|
36
|
+
"@mastra/core": "1.0.0-beta.0",
|
|
37
|
+
"@internal/types-builder": "0.0.28"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@mastra/core": ">=0.
|
|
40
|
+
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"dist",
|
|
@@ -52,12 +52,8 @@
|
|
|
52
52
|
"bugs": {
|
|
53
53
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
54
54
|
},
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"publish-branch": [
|
|
58
|
-
"main",
|
|
59
|
-
"0.x"
|
|
60
|
-
]
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22.13.0"
|
|
61
57
|
},
|
|
62
58
|
"scripts": {
|
|
63
59
|
"build": "tsup --silent --config tsup.config.ts",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LegacyEvalsStorage } from '@mastra/core/storage';
|
|
2
|
-
import type { PaginationArgs, PaginationInfo, EvalRow } from '@mastra/core/storage';
|
|
3
|
-
import type { StoreOperationsMongoDB } from '../operations/index.js';
|
|
4
|
-
export declare class LegacyEvalsMongoDB extends LegacyEvalsStorage {
|
|
5
|
-
private operations;
|
|
6
|
-
constructor({ operations }: {
|
|
7
|
-
operations: StoreOperationsMongoDB;
|
|
8
|
-
});
|
|
9
|
-
/** @deprecated use getEvals instead */
|
|
10
|
-
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
11
|
-
getEvals(options?: {
|
|
12
|
-
agentName?: string;
|
|
13
|
-
type?: 'test' | 'live';
|
|
14
|
-
} & PaginationArgs): Promise<PaginationInfo & {
|
|
15
|
-
evals: EvalRow[];
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
18
|
-
//# 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,EAAgC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAkC5D,qBAAa,kBAAmB,SAAQ,kBAAkB;IACxD,OAAO,CAAC,UAAU,CAAyB;gBAE/B,EAAE,UAAU,EAAE,EAAE;QAAE,UAAU,EAAE,sBAAsB,CAAA;KAAE;IAKlE,uCAAuC;IACjC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAgDlF,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;CA4FlD"}
|