@mastra/lance 0.0.0-netlify-no-bundle-20251127120354 → 0.0.0-partial-response-backport-20251204204441
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 +50 -408
- package/README.md +4 -61
- package/dist/index.cjs +647 -297
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +647 -297
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/legacy-evals/index.d.ts +25 -0
- package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +39 -15
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +5 -6
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/traces/index.d.ts +34 -0
- package/dist/storage/domains/traces/index.d.ts.map +1 -0
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +4 -4
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +81 -27
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/vector/filter.d.ts +5 -5
- package/dist/vector/index.d.ts +1 -3
- package/dist/vector/index.d.ts.map +1 -1
- package/package.json +15 -13
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
+
import { LegacyEvalsStorage } from '@mastra/core/storage';
|
|
3
|
+
import type { EvalRow, PaginationInfo } from '@mastra/core/storage';
|
|
4
|
+
export declare class StoreLegacyEvalsLance extends LegacyEvalsStorage {
|
|
5
|
+
private client;
|
|
6
|
+
constructor({ client }: {
|
|
7
|
+
client: Connection;
|
|
8
|
+
});
|
|
9
|
+
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
10
|
+
getEvals(options: {
|
|
11
|
+
agentName?: string;
|
|
12
|
+
type?: 'test' | 'live';
|
|
13
|
+
page?: number;
|
|
14
|
+
perPage?: number;
|
|
15
|
+
fromDate?: Date;
|
|
16
|
+
toDate?: Date;
|
|
17
|
+
dateRange?: {
|
|
18
|
+
start?: Date;
|
|
19
|
+
end?: Date;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<PaginationInfo & {
|
|
22
|
+
evals: EvalRow[];
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/legacy-evals/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAe,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEpE,qBAAa,qBAAsB,SAAQ,kBAAkB;IAC3D,OAAO,CAAC,MAAM,CAAa;gBACf,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE;IAKxC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IA4ClF,QAAQ,CAAC,OAAO,EAAE;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,SAAS,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,IAAI,CAAC;YAAC,GAAG,CAAC,EAAE,IAAI,CAAA;SAAE,CAAC;KAC1C,GAAG,OAAO,CAAC,cAAc,GAAG;QAAE,KAAK,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC;CA2FnD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Connection } from '@lancedb/lancedb';
|
|
2
2
|
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
|
-
import type {
|
|
3
|
+
import type { MastraMessageV1, MastraMessageV2, StorageThreadType } from '@mastra/core/memory';
|
|
4
4
|
import { MemoryStorage } from '@mastra/core/storage';
|
|
5
|
-
import type {
|
|
5
|
+
import type { PaginationInfo, StorageGetMessagesArg, StorageResourceType } from '@mastra/core/storage';
|
|
6
6
|
import type { StoreOperationsLance } from '../operations/index.js';
|
|
7
7
|
export declare class StoreMemoryLance extends MemoryStorage {
|
|
8
8
|
private client;
|
|
@@ -11,10 +11,12 @@ export declare class StoreMemoryLance extends MemoryStorage {
|
|
|
11
11
|
client: Connection;
|
|
12
12
|
operations: StoreOperationsLance;
|
|
13
13
|
});
|
|
14
|
-
private escapeSql;
|
|
15
14
|
getThreadById({ threadId }: {
|
|
16
15
|
threadId: string;
|
|
17
16
|
}): Promise<StorageThreadType | null>;
|
|
17
|
+
getThreadsByResourceId({ resourceId }: {
|
|
18
|
+
resourceId: string;
|
|
19
|
+
}): Promise<StorageThreadType[]>;
|
|
18
20
|
/**
|
|
19
21
|
* Saves a thread to the database. This function doesn't overwrite existing threads.
|
|
20
22
|
* @param thread - The thread to save
|
|
@@ -32,18 +34,35 @@ export declare class StoreMemoryLance extends MemoryStorage {
|
|
|
32
34
|
threadId: string;
|
|
33
35
|
}): Promise<void>;
|
|
34
36
|
private normalizeMessage;
|
|
35
|
-
|
|
37
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
38
|
+
format?: 'v1';
|
|
39
|
+
}): Promise<MastraMessageV1[]>;
|
|
40
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
41
|
+
format: 'v2';
|
|
42
|
+
}): Promise<MastraMessageV2[]>;
|
|
43
|
+
getMessagesById({ messageIds, format, }: {
|
|
36
44
|
messageIds: string[];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
45
|
+
format: 'v1';
|
|
46
|
+
}): Promise<MastraMessageV1[]>;
|
|
47
|
+
getMessagesById({ messageIds, format, }: {
|
|
48
|
+
messageIds: string[];
|
|
49
|
+
format?: 'v2';
|
|
50
|
+
}): Promise<MastraMessageV2[]>;
|
|
41
51
|
saveMessages(args: {
|
|
42
|
-
messages:
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
messages: MastraMessageV1[];
|
|
53
|
+
format?: undefined | 'v1';
|
|
54
|
+
}): Promise<MastraMessageV1[]>;
|
|
55
|
+
saveMessages(args: {
|
|
56
|
+
messages: MastraMessageV2[];
|
|
57
|
+
format: 'v2';
|
|
58
|
+
}): Promise<MastraMessageV2[]>;
|
|
59
|
+
getThreadsByResourceIdPaginated(args: {
|
|
60
|
+
resourceId: string;
|
|
61
|
+
page?: number;
|
|
62
|
+
perPage?: number;
|
|
63
|
+
}): Promise<PaginationInfo & {
|
|
64
|
+
threads: StorageThreadType[];
|
|
45
65
|
}>;
|
|
46
|
-
listThreadsByResourceId(args: StorageListThreadsByResourceIdInput): Promise<StorageListThreadsByResourceIdOutput>;
|
|
47
66
|
/**
|
|
48
67
|
* Processes messages to include context messages based on withPreviousMessages and withNextMessages
|
|
49
68
|
* @param records - The sorted array of records to process
|
|
@@ -51,19 +70,24 @@ export declare class StoreMemoryLance extends MemoryStorage {
|
|
|
51
70
|
* @returns The processed array with context messages included
|
|
52
71
|
*/
|
|
53
72
|
private processMessagesWithContext;
|
|
73
|
+
getMessagesPaginated(args: StorageGetMessagesArg & {
|
|
74
|
+
format?: 'v1' | 'v2';
|
|
75
|
+
}): Promise<PaginationInfo & {
|
|
76
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
77
|
+
}>;
|
|
54
78
|
/**
|
|
55
|
-
* Parse message data from LanceDB record format to
|
|
79
|
+
* Parse message data from LanceDB record format to MastraMessageV2 format
|
|
56
80
|
*/
|
|
57
81
|
private parseMessageData;
|
|
58
82
|
updateMessages(args: {
|
|
59
|
-
messages: Partial<Omit<
|
|
83
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
60
84
|
id: string;
|
|
61
85
|
content?: {
|
|
62
86
|
metadata?: MastraMessageContentV2['metadata'];
|
|
63
87
|
content?: MastraMessageContentV2['content'];
|
|
64
88
|
};
|
|
65
89
|
}[];
|
|
66
|
-
}): Promise<
|
|
90
|
+
}): Promise<MastraMessageV2[]>;
|
|
67
91
|
getResourceById({ resourceId }: {
|
|
68
92
|
resourceId: string;
|
|
69
93
|
}): Promise<StorageResourceType | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,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":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EACL,aAAa,EAKd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACvG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,UAAU,CAA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C,OAAO,CAAC,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAA;aAAE,CAAC;SAC1G,EAAE,CAAC;KACP,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAgGxB,eAAe,CAAC,EAAE,UAAU,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAiG5F,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,mBAAmB,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAyB3F,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;CA+DjC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
-
import type { ScoreRowData, ScoringSource } from '@mastra/core/
|
|
2
|
+
import type { ScoreRowData, ScoringSource } from '@mastra/core/scores';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
4
|
import type { PaginationInfo, StoragePagination } from '@mastra/core/storage';
|
|
5
5
|
export declare class StoreScoresLance extends ScoresStorage {
|
|
@@ -13,8 +13,7 @@ export declare class StoreScoresLance extends ScoresStorage {
|
|
|
13
13
|
getScoreById({ id }: {
|
|
14
14
|
id: string;
|
|
15
15
|
}): Promise<ScoreRowData | null>;
|
|
16
|
-
|
|
17
|
-
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
16
|
+
getScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
|
|
18
17
|
scorerId: string;
|
|
19
18
|
pagination: StoragePagination;
|
|
20
19
|
entityId?: string;
|
|
@@ -24,14 +23,14 @@ export declare class StoreScoresLance extends ScoresStorage {
|
|
|
24
23
|
pagination: PaginationInfo;
|
|
25
24
|
scores: ScoreRowData[];
|
|
26
25
|
}>;
|
|
27
|
-
|
|
26
|
+
getScoresByRunId({ runId, pagination, }: {
|
|
28
27
|
runId: string;
|
|
29
28
|
pagination: StoragePagination;
|
|
30
29
|
}): Promise<{
|
|
31
30
|
pagination: PaginationInfo;
|
|
32
31
|
scores: ScoreRowData[];
|
|
33
32
|
}>;
|
|
34
|
-
|
|
33
|
+
getScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
35
34
|
pagination: StoragePagination;
|
|
36
35
|
entityId: string;
|
|
37
36
|
entityType: string;
|
|
@@ -39,7 +38,7 @@ export declare class StoreScoresLance extends ScoresStorage {
|
|
|
39
38
|
pagination: PaginationInfo;
|
|
40
39
|
scores: ScoreRowData[];
|
|
41
40
|
}>;
|
|
42
|
-
|
|
41
|
+
getScoresBySpan({ traceId, spanId, pagination, }: {
|
|
43
42
|
traceId: string;
|
|
44
43
|
spanId: string;
|
|
45
44
|
pagination: StoragePagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAA6B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAA6B,MAAM,qBAAqB,CAAC;AAElG,OAAO,EAAE,aAAa,EAAiB,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB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EACpB,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;CAqCpE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
+
import type { TraceType } from '@mastra/core/memory';
|
|
3
|
+
import { TracesStorage } from '@mastra/core/storage';
|
|
4
|
+
import type { PaginationInfo, StorageGetTracesPaginatedArg } from '@mastra/core/storage';
|
|
5
|
+
import type { Trace } from '@mastra/core/telemetry';
|
|
6
|
+
import type { StoreOperationsLance } from '../operations/index.js';
|
|
7
|
+
export declare class StoreTracesLance extends TracesStorage {
|
|
8
|
+
private client;
|
|
9
|
+
private operations;
|
|
10
|
+
constructor({ client, operations }: {
|
|
11
|
+
client: Connection;
|
|
12
|
+
operations: StoreOperationsLance;
|
|
13
|
+
});
|
|
14
|
+
saveTrace({ trace }: {
|
|
15
|
+
trace: TraceType;
|
|
16
|
+
}): Promise<TraceType>;
|
|
17
|
+
getTraceById({ traceId }: {
|
|
18
|
+
traceId: string;
|
|
19
|
+
}): Promise<TraceType>;
|
|
20
|
+
getTraces({ name, scope, page, perPage, attributes, }: {
|
|
21
|
+
name?: string;
|
|
22
|
+
scope?: string;
|
|
23
|
+
page: number;
|
|
24
|
+
perPage: number;
|
|
25
|
+
attributes?: Record<string, string>;
|
|
26
|
+
}): Promise<Trace[]>;
|
|
27
|
+
getTracesPaginated(args: StorageGetTracesPaginatedArg): Promise<PaginationInfo & {
|
|
28
|
+
traces: Trace[];
|
|
29
|
+
}>;
|
|
30
|
+
batchTraceInsert({ records }: {
|
|
31
|
+
records: Record<string, any>[];
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
}
|
|
34
|
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EAAE,CAAC;IAoDd,kBAAkB,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,cAAc,GAAG;QAAE,MAAM,EAAE,KAAK,EAAE,CAAA;KAAE,CAAC;IAgFrG,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAOvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAgB,cAAc,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAa,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAgB,cAAc,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,EAAE,CAS/D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,UAAU,GAAG,IAAI,CA4BzF;AAED,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EACtD,WAAW,EAAE,UAAU,GACtB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAqD7C;AAED,wBAAsB,cAAc,CAAC,EACnC,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,UAAU,CAAC;CACpB,GAAG,OAAO,CAAC,UAAU,CAAC,CA6CtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Connection } from '@lancedb/lancedb';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StepResult, WorkflowRunState, WorkflowRuns } from '@mastra/core';
|
|
3
|
+
import type { StorageListWorkflowRunsInput } from '@mastra/core/storage';
|
|
3
4
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
4
|
-
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
5
5
|
export declare class StoreWorkflowsLance extends WorkflowsStorage {
|
|
6
6
|
client: Connection;
|
|
7
7
|
constructor({ client }: {
|
|
@@ -12,7 +12,7 @@ export declare class StoreWorkflowsLance extends WorkflowsStorage {
|
|
|
12
12
|
runId: string;
|
|
13
13
|
stepId: string;
|
|
14
14
|
result: StepResult<any, any, any, any>;
|
|
15
|
-
|
|
15
|
+
runtimeContext: Record<string, any>;
|
|
16
16
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
17
17
|
updateWorkflowState({}: {
|
|
18
18
|
workflowName: string;
|
|
@@ -45,6 +45,6 @@ export declare class StoreWorkflowsLance extends WorkflowsStorage {
|
|
|
45
45
|
createdAt: Date;
|
|
46
46
|
updatedAt: Date;
|
|
47
47
|
} | null>;
|
|
48
|
-
|
|
48
|
+
getWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
49
49
|
}
|
|
50
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1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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;IA4CX,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;IAmB9B,kBAAkB,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAChF,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,GAAG,CAAC;QACd,SAAS,EAAE,IAAI,CAAC;QAChB,SAAS,EAAE,IAAI,CAAC;KACjB,GAAG,IAAI,CAAC;IAyBH,eAAe,CAAC,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,YAAY,CAAC;CAuElF"}
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { ConnectionOptions } from '@lancedb/lancedb';
|
|
2
2
|
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { MastraMessageV1, MastraMessageV2, StorageThreadType, TraceType } from '@mastra/core/memory';
|
|
4
|
+
import type { ScoreRowData, ScoringSource } from '@mastra/core/scores';
|
|
5
5
|
import { MastraStorage } from '@mastra/core/storage';
|
|
6
|
-
import type { TABLE_NAMES, PaginationInfo, StorageColumn, WorkflowRuns, StoragePagination, StorageDomains, StorageResourceType, StorageListWorkflowRunsInput } from '@mastra/core/storage';
|
|
6
|
+
import type { TABLE_NAMES, PaginationInfo, StorageGetMessagesArg, StorageColumn, EvalRow, WorkflowRuns, StoragePagination, StorageDomains, StorageGetTracesPaginatedArg, StorageResourceType, StorageListWorkflowRunsInput } from '@mastra/core/storage';
|
|
7
|
+
import type { Trace } from '@mastra/core/telemetry';
|
|
7
8
|
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
8
9
|
export declare class LanceStorage extends MastraStorage {
|
|
9
10
|
stores: StorageDomains;
|
|
10
11
|
private lanceClient;
|
|
11
12
|
/**
|
|
12
13
|
* Creates a new instance of LanceStorage
|
|
13
|
-
* @param id The unique identifier for this storage instance
|
|
14
|
-
* @param name The name for this storage instance
|
|
15
14
|
* @param uri The URI to connect to LanceDB
|
|
16
15
|
* @param options connection options
|
|
17
16
|
*
|
|
@@ -19,20 +18,20 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
19
18
|
*
|
|
20
19
|
* Connect to a local database
|
|
21
20
|
* ```ts
|
|
22
|
-
* const store = await LanceStorage.create('
|
|
21
|
+
* const store = await LanceStorage.create('/path/to/db');
|
|
23
22
|
* ```
|
|
24
23
|
*
|
|
25
24
|
* Connect to a LanceDB cloud database
|
|
26
25
|
* ```ts
|
|
27
|
-
* const store = await LanceStorage.create('
|
|
26
|
+
* const store = await LanceStorage.create('db://host:port');
|
|
28
27
|
* ```
|
|
29
28
|
*
|
|
30
29
|
* Connect to a cloud database
|
|
31
30
|
* ```ts
|
|
32
|
-
* const store = await LanceStorage.create('
|
|
31
|
+
* const store = await LanceStorage.create('s3://bucket/db', { storageOptions: { timeout: '60s' } });
|
|
33
32
|
* ```
|
|
34
33
|
*/
|
|
35
|
-
static create(
|
|
34
|
+
static create(name: string, uri: string, options?: ConnectionOptions): Promise<LanceStorage>;
|
|
36
35
|
/**
|
|
37
36
|
* @internal
|
|
38
37
|
* Private constructor to enforce using the create factory method
|
|
@@ -68,6 +67,9 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
68
67
|
getThreadById({ threadId }: {
|
|
69
68
|
threadId: string;
|
|
70
69
|
}): Promise<StorageThreadType | null>;
|
|
70
|
+
getThreadsByResourceId({ resourceId }: {
|
|
71
|
+
resourceId: string;
|
|
72
|
+
}): Promise<StorageThreadType[]>;
|
|
71
73
|
/**
|
|
72
74
|
* Saves a thread to the database. This function doesn't overwrite existing threads.
|
|
73
75
|
* @param thread - The thread to save
|
|
@@ -90,7 +92,7 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
90
92
|
hasColumn: boolean;
|
|
91
93
|
createTable: boolean;
|
|
92
94
|
deleteMessages: boolean;
|
|
93
|
-
|
|
95
|
+
getScoresBySpan: boolean;
|
|
94
96
|
};
|
|
95
97
|
getResourceById({ resourceId }: {
|
|
96
98
|
resourceId: string;
|
|
@@ -110,26 +112,78 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
110
112
|
* @returns The processed array with context messages included
|
|
111
113
|
*/
|
|
112
114
|
private processMessagesWithContext;
|
|
113
|
-
|
|
115
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
116
|
+
format?: 'v1';
|
|
117
|
+
}): Promise<MastraMessageV1[]>;
|
|
118
|
+
getMessages(args: StorageGetMessagesArg & {
|
|
119
|
+
format: 'v2';
|
|
120
|
+
}): Promise<MastraMessageV2[]>;
|
|
121
|
+
getMessagesById({ messageIds, format }: {
|
|
114
122
|
messageIds: string[];
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
123
|
+
format: 'v1';
|
|
124
|
+
}): Promise<MastraMessageV1[]>;
|
|
125
|
+
getMessagesById({ messageIds, format }: {
|
|
126
|
+
messageIds: string[];
|
|
127
|
+
format?: 'v2';
|
|
128
|
+
}): Promise<MastraMessageV2[]>;
|
|
118
129
|
saveMessages(args: {
|
|
119
|
-
messages:
|
|
120
|
-
|
|
121
|
-
|
|
130
|
+
messages: MastraMessageV1[];
|
|
131
|
+
format?: undefined | 'v1';
|
|
132
|
+
}): Promise<MastraMessageV1[]>;
|
|
133
|
+
saveMessages(args: {
|
|
134
|
+
messages: MastraMessageV2[];
|
|
135
|
+
format: 'v2';
|
|
136
|
+
}): Promise<MastraMessageV2[]>;
|
|
137
|
+
getThreadsByResourceIdPaginated(args: {
|
|
138
|
+
resourceId: string;
|
|
139
|
+
page: number;
|
|
140
|
+
perPage: number;
|
|
141
|
+
}): Promise<PaginationInfo & {
|
|
142
|
+
threads: StorageThreadType[];
|
|
143
|
+
}>;
|
|
144
|
+
getMessagesPaginated(args: StorageGetMessagesArg & {
|
|
145
|
+
format?: 'v1' | 'v2';
|
|
146
|
+
}): Promise<PaginationInfo & {
|
|
147
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
122
148
|
}>;
|
|
123
149
|
updateMessages(_args: {
|
|
124
|
-
messages:
|
|
150
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
125
151
|
id: string;
|
|
126
152
|
content?: {
|
|
127
153
|
metadata?: MastraMessageContentV2['metadata'];
|
|
128
154
|
content?: MastraMessageContentV2['content'];
|
|
129
155
|
};
|
|
130
|
-
}
|
|
131
|
-
}): Promise<
|
|
132
|
-
|
|
156
|
+
}[];
|
|
157
|
+
}): Promise<MastraMessageV2[]>;
|
|
158
|
+
getTraceById(args: {
|
|
159
|
+
traceId: string;
|
|
160
|
+
}): Promise<TraceType>;
|
|
161
|
+
getTraces(args: {
|
|
162
|
+
name?: string;
|
|
163
|
+
scope?: string;
|
|
164
|
+
page: number;
|
|
165
|
+
perPage: number;
|
|
166
|
+
attributes?: Record<string, string>;
|
|
167
|
+
}): Promise<Trace[]>;
|
|
168
|
+
getTracesPaginated(args: StorageGetTracesPaginatedArg): Promise<PaginationInfo & {
|
|
169
|
+
traces: Trace[];
|
|
170
|
+
}>;
|
|
171
|
+
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
172
|
+
getEvals(options: {
|
|
173
|
+
agentName?: string;
|
|
174
|
+
type?: 'test' | 'live';
|
|
175
|
+
page?: number;
|
|
176
|
+
perPage?: number;
|
|
177
|
+
fromDate?: Date;
|
|
178
|
+
toDate?: Date;
|
|
179
|
+
dateRange?: {
|
|
180
|
+
start?: Date;
|
|
181
|
+
end?: Date;
|
|
182
|
+
};
|
|
183
|
+
}): Promise<PaginationInfo & {
|
|
184
|
+
evals: EvalRow[];
|
|
185
|
+
}>;
|
|
186
|
+
getWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
133
187
|
getWorkflowRunById(args: {
|
|
134
188
|
runId: string;
|
|
135
189
|
workflowName?: string;
|
|
@@ -140,12 +194,12 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
140
194
|
createdAt: Date;
|
|
141
195
|
updatedAt: Date;
|
|
142
196
|
} | null>;
|
|
143
|
-
updateWorkflowResults({ workflowName, runId, stepId, result,
|
|
197
|
+
updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext, }: {
|
|
144
198
|
workflowName: string;
|
|
145
199
|
runId: string;
|
|
146
200
|
stepId: string;
|
|
147
201
|
result: StepResult<any, any, any, any>;
|
|
148
|
-
|
|
202
|
+
runtimeContext: Record<string, any>;
|
|
149
203
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
150
204
|
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
151
205
|
workflowName: string;
|
|
@@ -171,7 +225,7 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
171
225
|
getScoreById({ id: _id }: {
|
|
172
226
|
id: string;
|
|
173
227
|
}): Promise<ScoreRowData | null>;
|
|
174
|
-
|
|
228
|
+
getScoresByScorerId({ scorerId, source, entityId, entityType, pagination, }: {
|
|
175
229
|
scorerId: string;
|
|
176
230
|
pagination: StoragePagination;
|
|
177
231
|
source?: ScoringSource;
|
|
@@ -184,14 +238,14 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
184
238
|
saveScore(_score: ScoreRowData): Promise<{
|
|
185
239
|
score: ScoreRowData;
|
|
186
240
|
}>;
|
|
187
|
-
|
|
241
|
+
getScoresByRunId({ runId, pagination, }: {
|
|
188
242
|
runId: string;
|
|
189
243
|
pagination: StoragePagination;
|
|
190
244
|
}): Promise<{
|
|
191
245
|
pagination: PaginationInfo;
|
|
192
246
|
scores: ScoreRowData[];
|
|
193
247
|
}>;
|
|
194
|
-
|
|
248
|
+
getScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
195
249
|
pagination: StoragePagination;
|
|
196
250
|
entityId: string;
|
|
197
251
|
entityType: string;
|
|
@@ -199,7 +253,7 @@ export declare class LanceStorage extends MastraStorage {
|
|
|
199
253
|
pagination: PaginationInfo;
|
|
200
254
|
scores: ScoreRowData[];
|
|
201
255
|
}>;
|
|
202
|
-
|
|
256
|
+
getScoresBySpan({ traceId, spanId, pagination, }: {
|
|
203
257
|
traceId: string;
|
|
204
258
|
spanId: string;
|
|
205
259
|
pagination: StoragePagination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,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":"AACA,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC1G,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EA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AO,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;CAGpE"}
|
package/dist/vector/filter.d.ts
CHANGED
|
@@ -29,12 +29,12 @@ export declare class LanceFilterTranslator extends BaseFilterTranslator<LanceVec
|
|
|
29
29
|
*/
|
|
30
30
|
protected getSupportedOperators(): {
|
|
31
31
|
custom: string[];
|
|
32
|
-
logical: import("@mastra/core
|
|
33
|
-
basic: import("@mastra/core
|
|
34
|
-
numeric: import("@mastra/core
|
|
35
|
-
array: import("@mastra/core
|
|
32
|
+
logical: import("@mastra/core").LogicalOperator[];
|
|
33
|
+
basic: import("@mastra/core").BasicOperator[];
|
|
34
|
+
numeric: import("@mastra/core").NumericOperator[];
|
|
35
|
+
array: import("@mastra/core").ArrayOperator[];
|
|
36
36
|
element: "$exists"[];
|
|
37
|
-
regex: import("@mastra/core
|
|
37
|
+
regex: import("@mastra/core").RegexOperator[];
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export {};
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -43,9 +43,7 @@ export declare class LanceVectorStore extends MastraVector<LanceVectorFilter> {
|
|
|
43
43
|
* const store = await LanceVectorStore.create('s3://bucket/db', { storageOptions: { timeout: '60s' } });
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
static create(uri: string, options?: ConnectionOptions
|
|
47
|
-
id: string;
|
|
48
|
-
}): Promise<LanceVectorStore>;
|
|
46
|
+
static create(uri: string, options?: ConnectionOptions): Promise<LanceVectorStore>;
|
|
49
47
|
/**
|
|
50
48
|
* @internal
|
|
51
49
|
* Private constructor to enforce using the create factory method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,iBAAiB,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG5G,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,UAAU,sBAAuB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,uBAAwB,SAAQ,kBAAkB;IAC1D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,sBAAuB,SAAQ,iBAAiB,CAAC,iBAAiB,CAAC;IAC3E,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,iBAAiB,CAAC;IACnE,OAAO,CAAC,WAAW,CAAc;IAEjC;;;;;;;;;;;;;;;;;;;;;OAqBG;WACiB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":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AAE,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAuExE;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiCjB,aAAa,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CA6HvG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/lance",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-partial-response-backport-20251204204441",
|
|
4
4
|
"description": "Lance provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,25 +19,23 @@
|
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@lancedb/lancedb": "^0.22.
|
|
22
|
+
"@lancedb/lancedb": "^0.22.2",
|
|
23
23
|
"apache-arrow": "^18.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@microsoft/api-extractor": "^7.52.8",
|
|
27
|
-
"@types/node": "
|
|
28
|
-
"@vitest/coverage-v8": "4.0.12",
|
|
29
|
-
"@vitest/ui": "4.0.12",
|
|
27
|
+
"@types/node": "^20.19.0",
|
|
30
28
|
"eslint": "^9.37.0",
|
|
31
29
|
"tsup": "^8.5.0",
|
|
32
30
|
"typescript": "^5.8.3",
|
|
33
|
-
"vitest": "
|
|
34
|
-
"@internal/lint": "0.0.0-
|
|
35
|
-
"@internal/storage-test-utils": "0.0.
|
|
36
|
-
"@internal/types-builder": "0.0.0-
|
|
37
|
-
"@mastra/core": "0.0.0-
|
|
31
|
+
"vitest": "^3.2.4",
|
|
32
|
+
"@internal/lint": "0.0.0-partial-response-backport-20251204204441",
|
|
33
|
+
"@internal/storage-test-utils": "0.0.60",
|
|
34
|
+
"@internal/types-builder": "0.0.0-partial-response-backport-20251204204441",
|
|
35
|
+
"@mastra/core": "0.0.0-partial-response-backport-20251204204441"
|
|
38
36
|
},
|
|
39
37
|
"peerDependencies": {
|
|
40
|
-
"@mastra/core": "0.0.0-
|
|
38
|
+
"@mastra/core": "0.0.0-partial-response-backport-20251204204441"
|
|
41
39
|
},
|
|
42
40
|
"files": [
|
|
43
41
|
"dist",
|
|
@@ -52,8 +50,12 @@
|
|
|
52
50
|
"bugs": {
|
|
53
51
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
54
52
|
},
|
|
55
|
-
"
|
|
56
|
-
"
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public",
|
|
55
|
+
"publish-branch": [
|
|
56
|
+
"main",
|
|
57
|
+
"0.x"
|
|
58
|
+
]
|
|
57
59
|
},
|
|
58
60
|
"scripts": {
|
|
59
61
|
"build": "tsup --silent --config tsup.config.ts",
|