@mastra/libsql 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645
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 +1784 -3
- package/README.md +30 -20
- package/dist/docs/README.md +39 -0
- package/dist/docs/SKILL.md +40 -0
- package/dist/docs/SOURCE_MAP.json +6 -0
- package/dist/docs/agents/01-agent-memory.md +166 -0
- package/dist/docs/agents/02-networks.md +292 -0
- package/dist/docs/agents/03-agent-approval.md +377 -0
- package/dist/docs/agents/04-network-approval.md +274 -0
- package/dist/docs/core/01-reference.md +151 -0
- package/dist/docs/guides/01-ai-sdk.md +141 -0
- package/dist/docs/memory/01-overview.md +76 -0
- package/dist/docs/memory/02-storage.md +233 -0
- package/dist/docs/memory/03-working-memory.md +390 -0
- package/dist/docs/memory/04-semantic-recall.md +233 -0
- package/dist/docs/memory/05-memory-processors.md +318 -0
- package/dist/docs/memory/06-reference.md +133 -0
- package/dist/docs/observability/01-overview.md +64 -0
- package/dist/docs/observability/02-default.md +177 -0
- package/dist/docs/rag/01-retrieval.md +548 -0
- package/dist/docs/storage/01-reference.md +538 -0
- package/dist/docs/vectors/01-reference.md +213 -0
- package/dist/docs/workflows/01-snapshots.md +240 -0
- package/dist/index.cjs +2732 -1814
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2728 -1815
- package/dist/index.js.map +1 -1
- package/dist/storage/db/index.d.ts +305 -0
- package/dist/storage/db/index.d.ts.map +1 -0
- package/dist/storage/{domains → db}/utils.d.ts +21 -13
- package/dist/storage/db/utils.d.ts.map +1 -0
- package/dist/storage/domains/agents/index.d.ts +23 -0
- package/dist/storage/domains/agents/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +20 -53
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts +43 -28
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +19 -31
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +19 -32
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +59 -245
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/vector/index.d.ts +12 -4
- package/dist/vector/index.d.ts.map +1 -1
- package/dist/vector/sql-builder.d.ts.map +1 -1
- package/package.json +16 -11
- 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/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
|
@@ -1,54 +1,42 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ScoreRowData, ScoringSource } from '@mastra/core/scores';
|
|
1
|
+
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '@mastra/core/evals';
|
|
3
2
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
3
|
+
import type { StoragePagination } from '@mastra/core/storage';
|
|
4
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
6
5
|
export declare class ScoresLibSQL extends ScoresStorage {
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
getScoresByRunId({ runId, pagination, }: {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(config: LibSQLDomainConfig);
|
|
8
|
+
init(): Promise<void>;
|
|
9
|
+
dangerouslyClearAll(): Promise<void>;
|
|
10
|
+
listScoresByRunId({ runId, pagination, }: {
|
|
14
11
|
runId: string;
|
|
15
12
|
pagination: StoragePagination;
|
|
16
|
-
}): Promise<
|
|
17
|
-
|
|
18
|
-
scores: ScoreRowData[];
|
|
19
|
-
}>;
|
|
20
|
-
getScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
13
|
+
}): Promise<ListScoresResponse>;
|
|
14
|
+
listScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
21
15
|
scorerId: string;
|
|
22
16
|
entityId?: string;
|
|
23
17
|
entityType?: string;
|
|
24
18
|
source?: ScoringSource;
|
|
25
19
|
pagination: StoragePagination;
|
|
26
|
-
}): Promise<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
}): Promise<ListScoresResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* LibSQL-specific score row transformation.
|
|
23
|
+
*/
|
|
30
24
|
private transformScoreRow;
|
|
31
25
|
getScoreById({ id }: {
|
|
32
26
|
id: string;
|
|
33
27
|
}): Promise<ScoreRowData | null>;
|
|
34
|
-
saveScore(score:
|
|
28
|
+
saveScore(score: SaveScorePayload): Promise<{
|
|
35
29
|
score: ScoreRowData;
|
|
36
30
|
}>;
|
|
37
|
-
|
|
31
|
+
listScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
38
32
|
pagination: StoragePagination;
|
|
39
33
|
entityId: string;
|
|
40
34
|
entityType: string;
|
|
41
|
-
}): Promise<
|
|
42
|
-
|
|
43
|
-
scores: ScoreRowData[];
|
|
44
|
-
}>;
|
|
45
|
-
getScoresBySpan({ traceId, spanId, pagination, }: {
|
|
35
|
+
}): Promise<ListScoresResponse>;
|
|
36
|
+
listScoresBySpan({ traceId, spanId, pagination, }: {
|
|
46
37
|
traceId: string;
|
|
47
38
|
spanId: string;
|
|
48
39
|
pagination: StoragePagination;
|
|
49
|
-
}): Promise<
|
|
50
|
-
pagination: PaginationInfo;
|
|
51
|
-
scores: ScoreRowData[];
|
|
52
|
-
}>;
|
|
40
|
+
}): Promise<ListScoresResponse>;
|
|
53
41
|
}
|
|
54
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/scores/index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;KAAE,CAAC;IAiDpE,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;IAwDzB,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;CA2ChC"}
|
|
@@ -1,44 +1,34 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { WorkflowRun, WorkflowRuns } from '@mastra/core/storage';
|
|
1
|
+
import type { WorkflowRun, WorkflowRuns, StorageListWorkflowRunsInput, UpdateWorkflowStateOptions } from '@mastra/core/storage';
|
|
3
2
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
4
3
|
import type { WorkflowRunState, StepResult } from '@mastra/core/workflows';
|
|
5
|
-
import type {
|
|
4
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
6
5
|
export declare class WorkflowsLibSQL extends WorkflowsStorage {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
client: Client;
|
|
14
|
-
maxRetries?: number;
|
|
15
|
-
initialBackoffMs?: number;
|
|
16
|
-
});
|
|
6
|
+
#private;
|
|
7
|
+
private readonly executeWithRetry;
|
|
8
|
+
constructor(config: LibSQLDomainConfig);
|
|
9
|
+
private parseWorkflowRun;
|
|
10
|
+
init(): Promise<void>;
|
|
11
|
+
dangerouslyClearAll(): Promise<void>;
|
|
17
12
|
private setupPragmaSettings;
|
|
18
|
-
|
|
19
|
-
updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext, }: {
|
|
13
|
+
updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, }: {
|
|
20
14
|
workflowName: string;
|
|
21
15
|
runId: string;
|
|
22
16
|
stepId: string;
|
|
23
17
|
result: StepResult<any, any, any, any>;
|
|
24
|
-
|
|
18
|
+
requestContext: Record<string, any>;
|
|
25
19
|
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
26
20
|
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
27
21
|
workflowName: string;
|
|
28
22
|
runId: string;
|
|
29
|
-
opts:
|
|
30
|
-
status: string;
|
|
31
|
-
result?: StepResult<any, any, any, any>;
|
|
32
|
-
error?: string;
|
|
33
|
-
suspendedPaths?: Record<string, number[]>;
|
|
34
|
-
waitingPaths?: Record<string, number[]>;
|
|
35
|
-
};
|
|
23
|
+
opts: UpdateWorkflowStateOptions;
|
|
36
24
|
}): Promise<WorkflowRunState | undefined>;
|
|
37
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
25
|
+
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, createdAt, updatedAt, }: {
|
|
38
26
|
workflowName: string;
|
|
39
27
|
runId: string;
|
|
40
28
|
resourceId?: string;
|
|
41
29
|
snapshot: WorkflowRunState;
|
|
30
|
+
createdAt?: Date;
|
|
31
|
+
updatedAt?: Date;
|
|
42
32
|
}): Promise<void>;
|
|
43
33
|
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
44
34
|
workflowName: string;
|
|
@@ -48,13 +38,10 @@ export declare class WorkflowsLibSQL extends WorkflowsStorage {
|
|
|
48
38
|
runId: string;
|
|
49
39
|
workflowName?: string;
|
|
50
40
|
}): Promise<WorkflowRun | null>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
offset?: number;
|
|
57
|
-
resourceId?: string;
|
|
58
|
-
}): Promise<WorkflowRuns>;
|
|
41
|
+
deleteWorkflowRunById({ runId, workflowName }: {
|
|
42
|
+
runId: string;
|
|
43
|
+
workflowName: string;
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
listWorkflowRuns({ workflowName, fromDate, toDate, page, perPage, resourceId, status, }?: StorageListWorkflowRunsInput): Promise<WorkflowRuns>;
|
|
59
46
|
}
|
|
60
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/workflows/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAKL,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,qBAAa,eAAgB,SAAQ,gBAAgB;;IAGnD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiF;gBAEtG,MAAM,EAAE,kBAAkB;IAqBtC,OAAO,CAAC,gBAAgB;IAmBlB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAWrB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;YAI5B,mBAAmB;IA0B3B,qBAAqB,CAAC,EAC1B,YAAY,EACZ,KAAK,EACL,MAAM,EACN,MAAM,EACN,cAAc,GACf,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,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,EACP,UAAU,EACV,MAAM,GACP,GAAE,4BAAiC,GAAG,OAAO,CAAC,YAAY,CAAC;CAuE7D"}
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import type { Client } from '@libsql/client';
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import type { StorageDomains } from '@mastra/core/storage';
|
|
3
|
+
import { MastraCompositeStore } from '@mastra/core/storage';
|
|
4
|
+
import { AgentsLibSQL } from './domains/agents/index.js';
|
|
5
|
+
import { MemoryLibSQL } from './domains/memory/index.js';
|
|
6
|
+
import { ObservabilityLibSQL } from './domains/observability/index.js';
|
|
7
|
+
import { ScoresLibSQL } from './domains/scores/index.js';
|
|
8
|
+
import { WorkflowsLibSQL } from './domains/workflows/index.js';
|
|
9
|
+
export { AgentsLibSQL, MemoryLibSQL, ObservabilityLibSQL, ScoresLibSQL, WorkflowsLibSQL };
|
|
10
|
+
export type { LibSQLDomainConfig } from './db/index.js';
|
|
11
|
+
/**
|
|
12
|
+
* Base configuration options shared across LibSQL configurations
|
|
13
|
+
*/
|
|
14
|
+
export type LibSQLBaseConfig = {
|
|
15
|
+
id: string;
|
|
11
16
|
/**
|
|
12
17
|
* Maximum number of retries for write operations if an SQLITE_BUSY error occurs.
|
|
13
18
|
* @default 5
|
|
@@ -19,248 +24,57 @@ export type LibSQLConfig = {
|
|
|
19
24
|
* @default 100
|
|
20
25
|
*/
|
|
21
26
|
initialBackoffMs?: number;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
/**
|
|
28
|
+
* When true, automatic initialization (table creation/migrations) is disabled.
|
|
29
|
+
* This is useful for CI/CD pipelines where you want to:
|
|
30
|
+
* 1. Run migrations explicitly during deployment (not at runtime)
|
|
31
|
+
* 2. Use different credentials for schema changes vs runtime operations
|
|
32
|
+
*
|
|
33
|
+
* When disableInit is true:
|
|
34
|
+
* - The storage will not automatically create/alter tables on first use
|
|
35
|
+
* - You must call `storage.init()` explicitly in your CI/CD scripts
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* // In CI/CD script:
|
|
39
|
+
* const storage = new LibSQLStore({ ...config, disableInit: false });
|
|
40
|
+
* await storage.init(); // Explicitly run migrations
|
|
41
|
+
*
|
|
42
|
+
* // In runtime application:
|
|
43
|
+
* const storage = new LibSQLStore({ ...config, disableInit: true });
|
|
44
|
+
* // No auto-init, tables must already exist
|
|
45
|
+
*/
|
|
46
|
+
disableInit?: boolean;
|
|
26
47
|
};
|
|
27
|
-
export
|
|
48
|
+
export type LibSQLConfig = (LibSQLBaseConfig & {
|
|
49
|
+
url: string;
|
|
50
|
+
authToken?: string;
|
|
51
|
+
}) | (LibSQLBaseConfig & {
|
|
52
|
+
client: Client;
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* LibSQL/Turso storage adapter for Mastra.
|
|
56
|
+
*
|
|
57
|
+
* Access domain-specific storage via `getStore()`:
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* const storage = new LibSQLStore({ id: 'my-store', url: 'file:./dev.db' });
|
|
62
|
+
*
|
|
63
|
+
* // Access memory domain
|
|
64
|
+
* const memory = await storage.getStore('memory');
|
|
65
|
+
* await memory?.saveThread({ thread });
|
|
66
|
+
*
|
|
67
|
+
* // Access workflows domain
|
|
68
|
+
* const workflows = await storage.getStore('workflows');
|
|
69
|
+
* await workflows?.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare class LibSQLStore extends MastraCompositeStore {
|
|
28
73
|
private client;
|
|
29
74
|
private readonly maxRetries;
|
|
30
75
|
private readonly initialBackoffMs;
|
|
31
76
|
stores: StorageDomains;
|
|
32
77
|
constructor(config: LibSQLConfig);
|
|
33
|
-
get supports(): {
|
|
34
|
-
selectByIncludeResourceScope: boolean;
|
|
35
|
-
resourceWorkingMemory: boolean;
|
|
36
|
-
hasColumn: boolean;
|
|
37
|
-
createTable: boolean;
|
|
38
|
-
deleteMessages: boolean;
|
|
39
|
-
aiTracing: boolean;
|
|
40
|
-
getScoresBySpan: boolean;
|
|
41
|
-
};
|
|
42
|
-
createTable({ tableName, schema, }: {
|
|
43
|
-
tableName: TABLE_NAMES;
|
|
44
|
-
schema: Record<string, StorageColumn>;
|
|
45
|
-
}): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Alters table schema to add columns if they don't exist
|
|
48
|
-
* @param tableName Name of the table
|
|
49
|
-
* @param schema Schema of the table
|
|
50
|
-
* @param ifNotExists Array of column names to add if they don't exist
|
|
51
|
-
*/
|
|
52
|
-
alterTable({ tableName, schema, ifNotExists, }: {
|
|
53
|
-
tableName: TABLE_NAMES;
|
|
54
|
-
schema: Record<string, StorageColumn>;
|
|
55
|
-
ifNotExists: string[];
|
|
56
|
-
}): Promise<void>;
|
|
57
|
-
clearTable({ tableName }: {
|
|
58
|
-
tableName: TABLE_NAMES;
|
|
59
|
-
}): Promise<void>;
|
|
60
|
-
dropTable({ tableName }: {
|
|
61
|
-
tableName: TABLE_NAMES;
|
|
62
|
-
}): Promise<void>;
|
|
63
|
-
insert(args: {
|
|
64
|
-
tableName: TABLE_NAMES;
|
|
65
|
-
record: Record<string, any>;
|
|
66
|
-
}): Promise<void>;
|
|
67
|
-
batchInsert(args: {
|
|
68
|
-
tableName: TABLE_NAMES;
|
|
69
|
-
records: Record<string, any>[];
|
|
70
|
-
}): Promise<void>;
|
|
71
|
-
load<R>({ tableName, keys }: {
|
|
72
|
-
tableName: TABLE_NAMES;
|
|
73
|
-
keys: Record<string, string>;
|
|
74
|
-
}): Promise<R | null>;
|
|
75
|
-
getThreadById({ threadId }: {
|
|
76
|
-
threadId: string;
|
|
77
|
-
}): Promise<StorageThreadType | null>;
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated use getThreadsByResourceIdPaginated instead for paginated results.
|
|
80
|
-
*/
|
|
81
|
-
getThreadsByResourceId(args: {
|
|
82
|
-
resourceId: string;
|
|
83
|
-
} & ThreadSortOptions): Promise<StorageThreadType[]>;
|
|
84
|
-
getThreadsByResourceIdPaginated(args: {
|
|
85
|
-
resourceId: string;
|
|
86
|
-
page: number;
|
|
87
|
-
perPage: number;
|
|
88
|
-
} & ThreadSortOptions): Promise<PaginationInfo & {
|
|
89
|
-
threads: StorageThreadType[];
|
|
90
|
-
}>;
|
|
91
|
-
saveThread({ thread }: {
|
|
92
|
-
thread: StorageThreadType;
|
|
93
|
-
}): Promise<StorageThreadType>;
|
|
94
|
-
updateThread({ id, title, metadata, }: {
|
|
95
|
-
id: string;
|
|
96
|
-
title: string;
|
|
97
|
-
metadata: Record<string, unknown>;
|
|
98
|
-
}): Promise<StorageThreadType>;
|
|
99
|
-
deleteThread({ threadId }: {
|
|
100
|
-
threadId: string;
|
|
101
|
-
}): Promise<void>;
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated use getMessagesPaginated instead for paginated results.
|
|
104
|
-
*/
|
|
105
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
106
|
-
format?: 'v1';
|
|
107
|
-
}): Promise<MastraMessageV1[]>;
|
|
108
|
-
getMessages(args: StorageGetMessagesArg & {
|
|
109
|
-
format: 'v2';
|
|
110
|
-
}): Promise<MastraMessageV2[]>;
|
|
111
|
-
getMessagesById({ messageIds, format }: {
|
|
112
|
-
messageIds: string[];
|
|
113
|
-
format: 'v1';
|
|
114
|
-
}): Promise<MastraMessageV1[]>;
|
|
115
|
-
getMessagesById({ messageIds, format }: {
|
|
116
|
-
messageIds: string[];
|
|
117
|
-
format?: 'v2';
|
|
118
|
-
}): Promise<MastraMessageV2[]>;
|
|
119
|
-
getMessagesPaginated(args: StorageGetMessagesArg & {
|
|
120
|
-
format?: 'v1' | 'v2';
|
|
121
|
-
}): Promise<PaginationInfo & {
|
|
122
|
-
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
123
|
-
}>;
|
|
124
|
-
saveMessages(args: {
|
|
125
|
-
messages: MastraMessageV1[];
|
|
126
|
-
format?: undefined | 'v1';
|
|
127
|
-
}): Promise<MastraMessageV1[]>;
|
|
128
|
-
saveMessages(args: {
|
|
129
|
-
messages: MastraMessageV2[];
|
|
130
|
-
format: 'v2';
|
|
131
|
-
}): Promise<MastraMessageV2[]>;
|
|
132
|
-
updateMessages({ messages, }: {
|
|
133
|
-
messages: (Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
134
|
-
id: string;
|
|
135
|
-
content?: {
|
|
136
|
-
metadata?: MastraMessageContentV2['metadata'];
|
|
137
|
-
content?: MastraMessageContentV2['content'];
|
|
138
|
-
};
|
|
139
|
-
})[];
|
|
140
|
-
}): Promise<MastraMessageV2[]>;
|
|
141
|
-
deleteMessages(messageIds: string[]): Promise<void>;
|
|
142
|
-
/** @deprecated use getEvals instead */
|
|
143
|
-
getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
144
|
-
getEvals(options?: {
|
|
145
|
-
agentName?: string;
|
|
146
|
-
type?: 'test' | 'live';
|
|
147
|
-
} & PaginationArgs): Promise<PaginationInfo & {
|
|
148
|
-
evals: EvalRow[];
|
|
149
|
-
}>;
|
|
150
|
-
getScoreById({ id }: {
|
|
151
|
-
id: string;
|
|
152
|
-
}): Promise<ScoreRowData | null>;
|
|
153
|
-
saveScore(score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>): Promise<{
|
|
154
|
-
score: ScoreRowData;
|
|
155
|
-
}>;
|
|
156
|
-
getScoresByScorerId({ scorerId, entityId, entityType, source, pagination, }: {
|
|
157
|
-
scorerId: string;
|
|
158
|
-
entityId?: string;
|
|
159
|
-
entityType?: string;
|
|
160
|
-
source?: ScoringSource;
|
|
161
|
-
pagination: StoragePagination;
|
|
162
|
-
}): Promise<{
|
|
163
|
-
pagination: PaginationInfo;
|
|
164
|
-
scores: ScoreRowData[];
|
|
165
|
-
}>;
|
|
166
|
-
getScoresByRunId({ runId, pagination, }: {
|
|
167
|
-
runId: string;
|
|
168
|
-
pagination: StoragePagination;
|
|
169
|
-
}): Promise<{
|
|
170
|
-
pagination: PaginationInfo;
|
|
171
|
-
scores: ScoreRowData[];
|
|
172
|
-
}>;
|
|
173
|
-
getScoresByEntityId({ entityId, entityType, pagination, }: {
|
|
174
|
-
pagination: StoragePagination;
|
|
175
|
-
entityId: string;
|
|
176
|
-
entityType: string;
|
|
177
|
-
}): Promise<{
|
|
178
|
-
pagination: PaginationInfo;
|
|
179
|
-
scores: ScoreRowData[];
|
|
180
|
-
}>;
|
|
181
|
-
/**
|
|
182
|
-
* WORKFLOWS
|
|
183
|
-
*/
|
|
184
|
-
updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext, }: {
|
|
185
|
-
workflowName: string;
|
|
186
|
-
runId: string;
|
|
187
|
-
stepId: string;
|
|
188
|
-
result: StepResult<any, any, any, any>;
|
|
189
|
-
runtimeContext: Record<string, any>;
|
|
190
|
-
}): Promise<Record<string, StepResult<any, any, any, any>>>;
|
|
191
|
-
updateWorkflowState({ workflowName, runId, opts, }: {
|
|
192
|
-
workflowName: string;
|
|
193
|
-
runId: string;
|
|
194
|
-
opts: {
|
|
195
|
-
status: string;
|
|
196
|
-
result?: StepResult<any, any, any, any>;
|
|
197
|
-
error?: string;
|
|
198
|
-
suspendedPaths?: Record<string, number[]>;
|
|
199
|
-
waitingPaths?: Record<string, number[]>;
|
|
200
|
-
};
|
|
201
|
-
}): Promise<WorkflowRunState | undefined>;
|
|
202
|
-
persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot, }: {
|
|
203
|
-
workflowName: string;
|
|
204
|
-
runId: string;
|
|
205
|
-
resourceId?: string;
|
|
206
|
-
snapshot: WorkflowRunState;
|
|
207
|
-
}): Promise<void>;
|
|
208
|
-
loadWorkflowSnapshot({ workflowName, runId, }: {
|
|
209
|
-
workflowName: string;
|
|
210
|
-
runId: string;
|
|
211
|
-
}): Promise<WorkflowRunState | null>;
|
|
212
|
-
getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId, }?: {
|
|
213
|
-
workflowName?: string;
|
|
214
|
-
fromDate?: Date;
|
|
215
|
-
toDate?: Date;
|
|
216
|
-
limit?: number;
|
|
217
|
-
offset?: number;
|
|
218
|
-
resourceId?: string;
|
|
219
|
-
}): Promise<WorkflowRuns>;
|
|
220
|
-
getWorkflowRunById({ runId, workflowName, }: {
|
|
221
|
-
runId: string;
|
|
222
|
-
workflowName?: string;
|
|
223
|
-
}): Promise<WorkflowRun | null>;
|
|
224
|
-
getResourceById({ resourceId }: {
|
|
225
|
-
resourceId: string;
|
|
226
|
-
}): Promise<StorageResourceType | null>;
|
|
227
|
-
saveResource({ resource }: {
|
|
228
|
-
resource: StorageResourceType;
|
|
229
|
-
}): Promise<StorageResourceType>;
|
|
230
|
-
updateResource({ resourceId, workingMemory, metadata, }: {
|
|
231
|
-
resourceId: string;
|
|
232
|
-
workingMemory?: string;
|
|
233
|
-
metadata?: Record<string, unknown>;
|
|
234
|
-
}): Promise<StorageResourceType>;
|
|
235
|
-
createAISpan(span: AISpanRecord): Promise<void>;
|
|
236
|
-
updateAISpan(params: {
|
|
237
|
-
spanId: string;
|
|
238
|
-
traceId: string;
|
|
239
|
-
updates: Partial<Omit<AISpanRecord, 'spanId' | 'traceId'>>;
|
|
240
|
-
}): Promise<void>;
|
|
241
|
-
getAITrace(traceId: string): Promise<AITraceRecord | null>;
|
|
242
|
-
getAITracesPaginated(args: AITracesPaginatedArg): Promise<{
|
|
243
|
-
pagination: PaginationInfo;
|
|
244
|
-
spans: AISpanRecord[];
|
|
245
|
-
}>;
|
|
246
|
-
getScoresBySpan({ traceId, spanId, pagination, }: {
|
|
247
|
-
traceId: string;
|
|
248
|
-
spanId: string;
|
|
249
|
-
pagination: StoragePagination;
|
|
250
|
-
}): Promise<{
|
|
251
|
-
pagination: PaginationInfo;
|
|
252
|
-
scores: ScoreRowData[];
|
|
253
|
-
}>;
|
|
254
|
-
batchCreateAISpans(args: {
|
|
255
|
-
records: AISpanRecord[];
|
|
256
|
-
}): Promise<void>;
|
|
257
|
-
batchUpdateAISpans(args: {
|
|
258
|
-
records: {
|
|
259
|
-
traceId: string;
|
|
260
|
-
spanId: string;
|
|
261
|
-
updates: Partial<Omit<AISpanRecord, 'spanId' | 'traceId'>>;
|
|
262
|
-
}[];
|
|
263
|
-
}): Promise<void>;
|
|
264
78
|
}
|
|
265
79
|
export { LibSQLStore as DefaultStorage };
|
|
266
80
|
//# 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,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAC1F,YAAY,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C;;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,oBAAoB;IACnD,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;CAuDjC;AAED,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,CAAC"}
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { MastraVector } from '@mastra/core/vector';
|
|
2
|
-
import type { IndexStats, QueryResult, QueryVectorParams, CreateIndexParams, UpsertVectorParams, DescribeIndexParams, DeleteIndexParams, DeleteVectorParams, UpdateVectorParams } from '@mastra/core/vector';
|
|
2
|
+
import type { IndexStats, QueryResult, QueryVectorParams, CreateIndexParams, UpsertVectorParams, DescribeIndexParams, DeleteIndexParams, DeleteVectorParams, UpdateVectorParams, DeleteVectorsParams } from '@mastra/core/vector';
|
|
3
3
|
import type { LibSQLVectorFilter } from './filter.js';
|
|
4
4
|
interface LibSQLQueryVectorParams extends QueryVectorParams<LibSQLVectorFilter> {
|
|
5
5
|
minScore?: number;
|
|
6
6
|
}
|
|
7
7
|
export interface LibSQLVectorConfig {
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The URL of the LibSQL database.
|
|
10
|
+
* Examples: 'file:./dev.db', 'file::memory:', 'libsql://your-db.turso.io'
|
|
11
|
+
*/
|
|
12
|
+
url: string;
|
|
9
13
|
authToken?: string;
|
|
10
14
|
syncUrl?: string;
|
|
11
15
|
syncInterval?: number;
|
|
@@ -25,7 +29,9 @@ export declare class LibSQLVector extends MastraVector<LibSQLVectorFilter> {
|
|
|
25
29
|
private turso;
|
|
26
30
|
private readonly maxRetries;
|
|
27
31
|
private readonly initialBackoffMs;
|
|
28
|
-
constructor({
|
|
32
|
+
constructor({ url, authToken, syncUrl, syncInterval, maxRetries, initialBackoffMs, id, }: LibSQLVectorConfig & {
|
|
33
|
+
id: string;
|
|
34
|
+
});
|
|
29
35
|
private executeWriteOperationWithRetry;
|
|
30
36
|
transformFilter(filter?: LibSQLVectorFilter): LibSQLVectorFilter;
|
|
31
37
|
query({ indexName, queryVector, topK, filter, includeVector, minScore, }: LibSQLQueryVectorParams): Promise<QueryResult[]>;
|
|
@@ -54,7 +60,7 @@ export declare class LibSQLVector extends MastraVector<LibSQLVectorFilter> {
|
|
|
54
60
|
* @returns A promise that resolves when the update is complete.
|
|
55
61
|
* @throws Will throw an error if no updates are provided or if the update operation fails.
|
|
56
62
|
*/
|
|
57
|
-
updateVector(args: UpdateVectorParams): Promise<void>;
|
|
63
|
+
updateVector(args: UpdateVectorParams<LibSQLVectorFilter>): Promise<void>;
|
|
58
64
|
private doUpdateVector;
|
|
59
65
|
/**
|
|
60
66
|
* Deletes a vector by its ID.
|
|
@@ -65,6 +71,8 @@ export declare class LibSQLVector extends MastraVector<LibSQLVectorFilter> {
|
|
|
65
71
|
*/
|
|
66
72
|
deleteVector(args: DeleteVectorParams): Promise<void>;
|
|
67
73
|
private doDeleteVector;
|
|
74
|
+
deleteVectors(args: DeleteVectorsParams<LibSQLVectorFilter>): Promise<void>;
|
|
75
|
+
private doDeleteVectors;
|
|
68
76
|
truncateIndex(args: DeleteIndexParams): Promise<void>;
|
|
69
77
|
private _doTruncateIndex;
|
|
70
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vector/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAqC,MAAM,qBAAqB,CAAC;AACtF,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD,UAAU,uBAAwB,SAAQ,iBAAiB,CAAC,kBAAkB,CAAC;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,YAAa,SAAQ,YAAY,CAAC,kBAAkB,CAAC;IAChE,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;gBAE9B,EACV,GAAG,EACH,SAAS,EACT,OAAO,EACP,YAAY,EACZ,UAAc,EACd,g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":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAS9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"sql-builder.d.ts","sourceRoot":"","sources":["../../src/vector/sql-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAS9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA+WnD,UAAU,YAAY;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,EAAE,CAAC;CACnB;AA6BD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,YAAY,CAkBzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "0.0.0-bundle-
|
|
3
|
+
"version": "0.0.0-bundle-version-20260121091645",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,19 +23,20 @@
|
|
|
23
23
|
"@libsql/client": "^0.15.15"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
26
|
+
"@types/node": "22.13.17",
|
|
27
|
+
"@vitest/coverage-v8": "4.0.12",
|
|
28
|
+
"@vitest/ui": "4.0.12",
|
|
28
29
|
"eslint": "^9.37.0",
|
|
29
30
|
"tsup": "^8.5.0",
|
|
30
|
-
"typescript": "^5.
|
|
31
|
-
"vitest": "
|
|
32
|
-
"@internal/lint": "0.0.0-bundle-
|
|
33
|
-
"@internal/
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
31
|
+
"typescript": "^5.9.3",
|
|
32
|
+
"vitest": "4.0.16",
|
|
33
|
+
"@internal/lint": "0.0.0-bundle-version-20260121091645",
|
|
34
|
+
"@internal/types-builder": "0.0.0-bundle-version-20260121091645",
|
|
35
|
+
"@internal/storage-test-utils": "0.0.51",
|
|
36
|
+
"@mastra/core": "0.0.0-bundle-version-20260121091645"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
|
-
"@mastra/core": "0.0.0-bundle-
|
|
39
|
+
"@mastra/core": "0.0.0-bundle-version-20260121091645"
|
|
39
40
|
},
|
|
40
41
|
"files": [
|
|
41
42
|
"dist",
|
|
@@ -50,8 +51,12 @@
|
|
|
50
51
|
"bugs": {
|
|
51
52
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
52
53
|
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=22.13.0"
|
|
56
|
+
},
|
|
53
57
|
"scripts": {
|
|
54
|
-
"build": "tsup --silent --config tsup.config.ts",
|
|
58
|
+
"build:lib": "tsup --silent --config tsup.config.ts",
|
|
59
|
+
"build:docs": "pnpx tsx ../../scripts/generate-package-docs.ts stores/libsql",
|
|
55
60
|
"build:watch": "tsup --watch --silent --config tsup.config.ts",
|
|
56
61
|
"test": "vitest run",
|
|
57
62
|
"lint": "eslint ."
|