@mastra/libsql 1.0.0-beta.8 → 1.0.0-beta.9
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 +194 -0
- package/dist/index.cjs +1911 -1780
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1912 -1781
- package/dist/index.js.map +1 -1
- package/dist/storage/db/index.d.ts +264 -0
- package/dist/storage/db/index.d.ts.map +1 -0
- package/dist/storage/{domains → db}/utils.d.ts +5 -12
- package/dist/storage/db/utils.d.ts.map +1 -0
- package/dist/storage/domains/agents/index.d.ts +5 -7
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +5 -8
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +19 -27
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +11 -26
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +9 -14
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +20 -187
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/storage/domains/operations/index.d.ts +0 -110
- package/dist/storage/domains/operations/index.d.ts.map +0 -1
- package/dist/storage/domains/utils.d.ts.map +0 -1
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { Client } from '@libsql/client';
|
|
2
|
-
import type {
|
|
3
|
-
import type { SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
4
|
-
import type { StorageThreadType } from '@mastra/core/memory';
|
|
2
|
+
import type { StorageDomains, StorageSupports } from '@mastra/core/storage';
|
|
5
3
|
import { MastraStorage } from '@mastra/core/storage';
|
|
6
|
-
import type { PaginationInfo, StorageColumn, StoragePagination, StorageResourceType, TABLE_NAMES, WorkflowRun, WorkflowRuns, StorageDomains, SpanRecord, TraceRecord, TracesPaginatedArg, StorageListWorkflowRunsInput, UpdateWorkflowStateOptions } from '@mastra/core/storage';
|
|
7
|
-
import type { StepResult, WorkflowRunState } from '@mastra/core/workflows';
|
|
8
4
|
/**
|
|
9
5
|
* Base configuration options shared across LibSQL configurations
|
|
10
6
|
*/
|
|
@@ -48,194 +44,31 @@ export type LibSQLConfig = (LibSQLBaseConfig & {
|
|
|
48
44
|
}) | (LibSQLBaseConfig & {
|
|
49
45
|
client: Client;
|
|
50
46
|
});
|
|
47
|
+
/**
|
|
48
|
+
* LibSQL/Turso storage adapter for Mastra.
|
|
49
|
+
*
|
|
50
|
+
* Access domain-specific storage via `getStore()`:
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* const storage = new LibSQLStore({ id: 'my-store', url: 'file:./dev.db' });
|
|
55
|
+
*
|
|
56
|
+
* // Access memory domain
|
|
57
|
+
* const memory = await storage.getStore('memory');
|
|
58
|
+
* await memory?.saveThread({ thread });
|
|
59
|
+
*
|
|
60
|
+
* // Access workflows domain
|
|
61
|
+
* const workflows = await storage.getStore('workflows');
|
|
62
|
+
* await workflows?.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
51
65
|
export declare class LibSQLStore extends MastraStorage {
|
|
52
66
|
private client;
|
|
53
67
|
private readonly maxRetries;
|
|
54
68
|
private readonly initialBackoffMs;
|
|
55
69
|
stores: StorageDomains;
|
|
56
70
|
constructor(config: LibSQLConfig);
|
|
57
|
-
get supports():
|
|
58
|
-
selectByIncludeResourceScope: boolean;
|
|
59
|
-
resourceWorkingMemory: boolean;
|
|
60
|
-
hasColumn: boolean;
|
|
61
|
-
createTable: boolean;
|
|
62
|
-
deleteMessages: boolean;
|
|
63
|
-
observabilityInstance: boolean;
|
|
64
|
-
listScoresBySpan: boolean;
|
|
65
|
-
agents: boolean;
|
|
66
|
-
};
|
|
67
|
-
createTable({ tableName, schema, }: {
|
|
68
|
-
tableName: TABLE_NAMES;
|
|
69
|
-
schema: Record<string, StorageColumn>;
|
|
70
|
-
}): Promise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Alters table schema to add columns if they don't exist
|
|
73
|
-
* @param tableName Name of the table
|
|
74
|
-
* @param schema Schema of the table
|
|
75
|
-
* @param ifNotExists Array of column names to add if they don't exist
|
|
76
|
-
*/
|
|
77
|
-
alterTable({ tableName, schema, ifNotExists, }: {
|
|
78
|
-
tableName: TABLE_NAMES;
|
|
79
|
-
schema: Record<string, StorageColumn>;
|
|
80
|
-
ifNotExists: string[];
|
|
81
|
-
}): Promise<void>;
|
|
82
|
-
clearTable({ tableName }: {
|
|
83
|
-
tableName: TABLE_NAMES;
|
|
84
|
-
}): Promise<void>;
|
|
85
|
-
dropTable({ tableName }: {
|
|
86
|
-
tableName: TABLE_NAMES;
|
|
87
|
-
}): Promise<void>;
|
|
88
|
-
insert(args: {
|
|
89
|
-
tableName: TABLE_NAMES;
|
|
90
|
-
record: Record<string, any>;
|
|
91
|
-
}): Promise<void>;
|
|
92
|
-
batchInsert(args: {
|
|
93
|
-
tableName: TABLE_NAMES;
|
|
94
|
-
records: Record<string, any>[];
|
|
95
|
-
}): Promise<void>;
|
|
96
|
-
load<R>({ tableName, keys }: {
|
|
97
|
-
tableName: TABLE_NAMES;
|
|
98
|
-
keys: Record<string, string>;
|
|
99
|
-
}): Promise<R | null>;
|
|
100
|
-
getThreadById({ threadId }: {
|
|
101
|
-
threadId: string;
|
|
102
|
-
}): Promise<StorageThreadType | null>;
|
|
103
|
-
saveThread({ thread }: {
|
|
104
|
-
thread: StorageThreadType;
|
|
105
|
-
}): Promise<StorageThreadType>;
|
|
106
|
-
updateThread({ id, title, metadata, }: {
|
|
107
|
-
id: string;
|
|
108
|
-
title: string;
|
|
109
|
-
metadata: Record<string, unknown>;
|
|
110
|
-
}): Promise<StorageThreadType>;
|
|
111
|
-
deleteThread({ threadId }: {
|
|
112
|
-
threadId: string;
|
|
113
|
-
}): Promise<void>;
|
|
114
|
-
listMessagesById({ messageIds }: {
|
|
115
|
-
messageIds: string[];
|
|
116
|
-
}): Promise<{
|
|
117
|
-
messages: MastraDBMessage[];
|
|
118
|
-
}>;
|
|
119
|
-
saveMessages(args: {
|
|
120
|
-
messages: MastraDBMessage[];
|
|
121
|
-
}): Promise<{
|
|
122
|
-
messages: MastraDBMessage[];
|
|
123
|
-
}>;
|
|
124
|
-
updateMessages({ messages, }: {
|
|
125
|
-
messages: (Partial<Omit<MastraDBMessage, 'createdAt'>> & {
|
|
126
|
-
id: string;
|
|
127
|
-
content?: {
|
|
128
|
-
metadata?: MastraMessageContentV2['metadata'];
|
|
129
|
-
content?: MastraMessageContentV2['content'];
|
|
130
|
-
};
|
|
131
|
-
})[];
|
|
132
|
-
}): Promise<MastraDBMessage[]>;
|
|
133
|
-
deleteMessages(messageIds: string[]): Promise<void>;
|
|
134
|
-
getScoreById({ id }: {
|
|
135
|
-
id: string;
|
|
136
|
-
}): Promise<ScoreRowData | null>;
|
|
137
|
-
saveScore(score: SaveScorePayload): Promise<{
|
|
138
|
-
score: ScoreRowData;
|
|
139
|
-
}>;
|
|
140
|
-
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
141
|
-
scorerId: string;
|
|
142
|
-
entityId?: string;
|
|
143
|
-
entityType?: string;
|
|
144
|
-
source?: ScoringSource;
|
|
145
|
-
pagination: StoragePagination;
|
|
146
|
-
}): Promise<{
|
|
147
|
-
pagination: PaginationInfo;
|
|
148
|
-
scores: ScoreRowData[];
|
|
149
|
-
}>;
|
|
150
|
-
listScoresByRunId({ runId, pagination, }: {
|
|
151
|
-
runId: string;
|
|
152
|
-
pagination: StoragePagination;
|
|
153
|
-
}): Promise<{
|
|
154
|
-
pagination: PaginationInfo;
|
|
155
|
-
scores: ScoreRowData[];
|
|
156
|
-
}>;
|
|
157
|
-
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
158
|
-
pagination: StoragePagination;
|
|
159
|
-
entityId: string;
|
|
160
|
-
entityType: string;
|
|
161
|
-
}): Promise<{
|
|
162
|
-
pagination: PaginationInfo;
|
|
163
|
-
scores: ScoreRowData[];
|
|
164
|
-
}>;
|
|
165
|
-
/**
|
|
166
|
-
* WORKFLOWS
|
|
167
|
-
*/
|
|
168
|
-
updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, }: {
|
|
169
|
-
workflowName: string;
|
|
170
|
-
runId: string;
|
|
171
|
-
stepId: string;
|
|
172
|
-
result: StepResult<any, any, any, any>;
|
|
173
|
-
requestContext: Record<string, any>;
|
|
174
|
-
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
175
|
-
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
176
|
-
workflowName: string;
|
|
177
|
-
runId: string;
|
|
178
|
-
opts: UpdateWorkflowStateOptions;
|
|
179
|
-
}): Promise<WorkflowRunState | undefined>;
|
|
180
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
181
|
-
workflowName: string;
|
|
182
|
-
runId: string;
|
|
183
|
-
resourceId?: string;
|
|
184
|
-
snapshot: WorkflowRunState;
|
|
185
|
-
}): Promise<void>;
|
|
186
|
-
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
187
|
-
workflowName: string;
|
|
188
|
-
runId: string;
|
|
189
|
-
}): Promise<WorkflowRunState | null>;
|
|
190
|
-
listWorkflowRuns(args?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
191
|
-
getWorkflowRunById({ runId, workflowName, }: {
|
|
192
|
-
runId: string;
|
|
193
|
-
workflowName?: string;
|
|
194
|
-
}): Promise<WorkflowRun | null>;
|
|
195
|
-
deleteWorkflowRunById({ runId, workflowName }: {
|
|
196
|
-
runId: string;
|
|
197
|
-
workflowName: string;
|
|
198
|
-
}): Promise<void>;
|
|
199
|
-
getResourceById({ resourceId }: {
|
|
200
|
-
resourceId: string;
|
|
201
|
-
}): Promise<StorageResourceType | null>;
|
|
202
|
-
saveResource({ resource }: {
|
|
203
|
-
resource: StorageResourceType;
|
|
204
|
-
}): Promise<StorageResourceType>;
|
|
205
|
-
updateResource({ resourceId, workingMemory, metadata, }: {
|
|
206
|
-
resourceId: string;
|
|
207
|
-
workingMemory?: string;
|
|
208
|
-
metadata?: Record<string, unknown>;
|
|
209
|
-
}): Promise<StorageResourceType>;
|
|
210
|
-
createSpan(span: SpanRecord): Promise<void>;
|
|
211
|
-
updateSpan(params: {
|
|
212
|
-
spanId: string;
|
|
213
|
-
traceId: string;
|
|
214
|
-
updates: Partial<Omit<SpanRecord, 'spanId' | 'traceId'>>;
|
|
215
|
-
}): Promise<void>;
|
|
216
|
-
getTrace(traceId: string): Promise<TraceRecord | null>;
|
|
217
|
-
getTracesPaginated(args: TracesPaginatedArg): Promise<{
|
|
218
|
-
pagination: PaginationInfo;
|
|
219
|
-
spans: SpanRecord[];
|
|
220
|
-
}>;
|
|
221
|
-
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
222
|
-
traceId: string;
|
|
223
|
-
spanId: string;
|
|
224
|
-
pagination: StoragePagination;
|
|
225
|
-
}): Promise<{
|
|
226
|
-
pagination: PaginationInfo;
|
|
227
|
-
scores: ScoreRowData[];
|
|
228
|
-
}>;
|
|
229
|
-
batchCreateSpans(args: {
|
|
230
|
-
records: SpanRecord[];
|
|
231
|
-
}): Promise<void>;
|
|
232
|
-
batchUpdateSpans(args: {
|
|
233
|
-
records: {
|
|
234
|
-
traceId: string;
|
|
235
|
-
spanId: string;
|
|
236
|
-
updates: Partial<Omit<SpanRecord, 'spanId' | 'traceId'>>;
|
|
237
|
-
}[];
|
|
238
|
-
}): Promise<void>;
|
|
71
|
+
get supports(): StorageSupports;
|
|
239
72
|
}
|
|
240
73
|
export { LibSQLStore as DefaultStorage };
|
|
241
74
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAQrD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,CAAC,gBAAgB,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,GACF,CAAC,gBAAgB,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEP;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,WAAY,SAAQ,aAAa;IAC5C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAE1C,MAAM,EAAE,cAAc,CAAC;gBAEX,MAAM,EAAE,YAAY;IAwDhC,IAAW,QAAQ,IAAI,eAAe,CAYrC;CACF;AAED,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"tsup": "^8.5.0",
|
|
31
31
|
"typescript": "^5.8.3",
|
|
32
32
|
"vitest": "4.0.12",
|
|
33
|
-
"@internal/lint": "0.0.53",
|
|
34
|
-
"@internal/storage-test-utils": "0.0.49",
|
|
35
33
|
"@internal/types-builder": "0.0.28",
|
|
36
|
-
"@
|
|
34
|
+
"@internal/storage-test-utils": "0.0.49",
|
|
35
|
+
"@mastra/core": "1.0.0-beta.15",
|
|
36
|
+
"@internal/lint": "0.0.53"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import type { Client, InValue } from '@libsql/client';
|
|
2
|
-
import { StoreOperations } from '@mastra/core/storage';
|
|
3
|
-
import type { StorageColumn, TABLE_NAMES } from '@mastra/core/storage';
|
|
4
|
-
export declare class StoreOperationsLibSQL extends StoreOperations {
|
|
5
|
-
private client;
|
|
6
|
-
/**
|
|
7
|
-
* Maximum number of retries for write operations if an SQLITE_BUSY error occurs.
|
|
8
|
-
* @default 5
|
|
9
|
-
*/
|
|
10
|
-
maxRetries: number;
|
|
11
|
-
/**
|
|
12
|
-
* Initial backoff time in milliseconds for retrying write operations on SQLITE_BUSY.
|
|
13
|
-
* The backoff time will double with each retry (exponential backoff).
|
|
14
|
-
* @default 100
|
|
15
|
-
*/
|
|
16
|
-
initialBackoffMs: number;
|
|
17
|
-
constructor({ client, maxRetries, initialBackoffMs, }: {
|
|
18
|
-
client: Client;
|
|
19
|
-
maxRetries?: number;
|
|
20
|
-
initialBackoffMs?: number;
|
|
21
|
-
});
|
|
22
|
-
hasColumn(table: string, column: string): Promise<boolean>;
|
|
23
|
-
private getCreateTableSQL;
|
|
24
|
-
createTable({ tableName, schema, }: {
|
|
25
|
-
tableName: TABLE_NAMES;
|
|
26
|
-
schema: Record<string, StorageColumn>;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
protected getSqlType(type: StorageColumn['type']): string;
|
|
29
|
-
private doInsert;
|
|
30
|
-
insert(args: {
|
|
31
|
-
tableName: TABLE_NAMES;
|
|
32
|
-
record: Record<string, any>;
|
|
33
|
-
}): Promise<void>;
|
|
34
|
-
load<R>({ tableName, keys }: {
|
|
35
|
-
tableName: TABLE_NAMES;
|
|
36
|
-
keys: Record<string, string>;
|
|
37
|
-
}): Promise<R | null>;
|
|
38
|
-
loadMany<R>({ tableName, whereClause, orderBy, offset, limit, args, }: {
|
|
39
|
-
tableName: TABLE_NAMES;
|
|
40
|
-
whereClause?: {
|
|
41
|
-
sql: string;
|
|
42
|
-
args: InValue[];
|
|
43
|
-
};
|
|
44
|
-
orderBy?: string;
|
|
45
|
-
offset?: number;
|
|
46
|
-
limit?: number;
|
|
47
|
-
args?: any[];
|
|
48
|
-
}): Promise<R[]>;
|
|
49
|
-
loadTotalCount({ tableName, whereClause, }: {
|
|
50
|
-
tableName: TABLE_NAMES;
|
|
51
|
-
whereClause?: {
|
|
52
|
-
sql: string;
|
|
53
|
-
args: InValue[];
|
|
54
|
-
};
|
|
55
|
-
}): Promise<number>;
|
|
56
|
-
update(args: {
|
|
57
|
-
tableName: TABLE_NAMES;
|
|
58
|
-
keys: Record<string, any>;
|
|
59
|
-
data: Record<string, any>;
|
|
60
|
-
}): Promise<void>;
|
|
61
|
-
private executeUpdate;
|
|
62
|
-
private doBatchInsert;
|
|
63
|
-
batchInsert(args: {
|
|
64
|
-
tableName: TABLE_NAMES;
|
|
65
|
-
records: Record<string, any>[];
|
|
66
|
-
}): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Public batch update method with retry logic
|
|
69
|
-
*/
|
|
70
|
-
batchUpdate(args: {
|
|
71
|
-
tableName: TABLE_NAMES;
|
|
72
|
-
updates: Array<{
|
|
73
|
-
keys: Record<string, any>;
|
|
74
|
-
data: Record<string, any>;
|
|
75
|
-
}>;
|
|
76
|
-
}): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Updates multiple records in batch. Each record can be updated based on single or composite keys.
|
|
79
|
-
*/
|
|
80
|
-
private executeBatchUpdate;
|
|
81
|
-
/**
|
|
82
|
-
* Public batch delete method with retry logic
|
|
83
|
-
*/
|
|
84
|
-
batchDelete({ tableName, keys }: {
|
|
85
|
-
tableName: TABLE_NAMES;
|
|
86
|
-
keys: Array<Record<string, any>>;
|
|
87
|
-
}): Promise<void>;
|
|
88
|
-
/**
|
|
89
|
-
* Deletes multiple records in batch. Each record can be deleted based on single or composite keys.
|
|
90
|
-
*/
|
|
91
|
-
private executeBatchDelete;
|
|
92
|
-
/**
|
|
93
|
-
* Alters table schema to add columns if they don't exist
|
|
94
|
-
* @param tableName Name of the table
|
|
95
|
-
* @param schema Schema of the table
|
|
96
|
-
* @param ifNotExists Array of column names to add if they don't exist
|
|
97
|
-
*/
|
|
98
|
-
alterTable({ tableName, schema, ifNotExists, }: {
|
|
99
|
-
tableName: TABLE_NAMES;
|
|
100
|
-
schema: Record<string, StorageColumn>;
|
|
101
|
-
ifNotExists: string[];
|
|
102
|
-
}): Promise<void>;
|
|
103
|
-
clearTable({ tableName }: {
|
|
104
|
-
tableName: TABLE_NAMES;
|
|
105
|
-
}): Promise<void>;
|
|
106
|
-
dropTable({ tableName }: {
|
|
107
|
-
tableName: TABLE_NAMES;
|
|
108
|
-
}): Promise<void>;
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/operations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,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