@mastra/libsql 0.0.0-working-memory-undefined-20260212204651 → 0.0.0-workshop-yj-20260903030708
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/LICENSE.md +17 -0
- package/README.md +13 -107
- package/dist/docs/SKILL.md +30 -27
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-human-in-the-loop.md +682 -0
- package/dist/docs/references/docs-agents-networks.md +109 -213
- package/dist/docs/references/docs-deployment-workers.md +394 -0
- package/dist/docs/references/docs-memory-memory-processors.md +162 -91
- package/dist/docs/references/docs-memory-message-history.md +160 -70
- package/dist/docs/references/docs-memory-multi-user-threads.md +210 -0
- package/dist/docs/references/docs-memory-overview.md +248 -25
- package/dist/docs/references/docs-memory-semantic-recall.md +228 -79
- package/dist/docs/references/docs-memory-working-memory.md +104 -70
- package/dist/docs/references/docs-storage.md +222 -0
- package/dist/docs/references/docs-studio-editor.md +353 -0
- package/dist/docs/references/docs-workflows-snapshots.md +51 -45
- package/dist/docs/references/integrations-channels-github.md +152 -0
- package/dist/docs/references/{reference-storage-dynamodb.md → integrations-databases-dynamodb.md} +48 -44
- package/dist/docs/references/{reference-storage-libsql.md → integrations-databases-libsql.md} +54 -28
- package/dist/docs/references/{guides-agent-frameworks-ai-sdk.md → reference-ai-sdk-overview.md} +42 -38
- package/dist/docs/references/reference-core-getMemory.md +19 -16
- package/dist/docs/references/reference-core-listMemory.md +21 -18
- package/dist/docs/references/reference-core-mastra-class.md +119 -28
- package/dist/docs/references/reference-file-based-agents-memory.md +62 -0
- package/dist/docs/references/reference-file-based-agents-storage.md +34 -0
- package/dist/docs/references/reference-memory-memory-class.md +48 -44
- package/dist/docs/references/{docs-rag-retrieval.md → reference-rag-retrieval.md} +286 -152
- package/dist/docs/references/reference-storage-composite.md +223 -59
- package/dist/docs/references/reference-storage-retention.md +250 -0
- package/dist/docs/references/reference-vectors-libsql.md +77 -73
- package/dist/index.cjs +14255 -7157
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14222 -7140
- package/dist/index.js.map +1 -1
- package/dist/storage/db/client.d.ts +31 -0
- package/dist/storage/db/client.d.ts.map +1 -0
- package/dist/storage/db/index.d.ts +86 -2
- package/dist/storage/db/index.d.ts.map +1 -1
- package/dist/storage/db/utils.d.ts +17 -1
- package/dist/storage/db/utils.d.ts.map +1 -1
- package/dist/storage/db/write-lock.d.ts +8 -0
- package/dist/storage/db/write-lock.d.ts.map +1 -0
- package/dist/storage/domains/agents/index.d.ts +1 -0
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/background-tasks/index.d.ts +29 -0
- package/dist/storage/domains/background-tasks/index.d.ts.map +1 -0
- package/dist/storage/domains/blobs/index.d.ts +17 -0
- package/dist/storage/domains/blobs/index.d.ts.map +1 -0
- package/dist/storage/domains/channels/index.d.ts +20 -0
- package/dist/storage/domains/channels/index.d.ts.map +1 -0
- package/dist/storage/domains/datasets/index.d.ts +43 -0
- package/dist/storage/domains/datasets/index.d.ts.map +1 -0
- package/dist/storage/domains/experiments/index.d.ts +55 -0
- package/dist/storage/domains/experiments/index.d.ts.map +1 -0
- package/dist/storage/domains/favorites/index.d.ts +17 -0
- package/dist/storage/domains/favorites/index.d.ts.map +1 -0
- package/dist/storage/domains/harness/index.d.ts +17 -0
- package/dist/storage/domains/harness/index.d.ts.map +1 -0
- package/dist/storage/domains/knowledge/index.d.ts +81 -0
- package/dist/storage/domains/knowledge/index.d.ts.map +1 -0
- package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -1
- package/dist/storage/domains/mcp-servers/index.d.ts +26 -0
- package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +30 -5
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/notifications/index.d.ts +23 -0
- package/dist/storage/domains/notifications/index.d.ts.map +1 -0
- package/dist/storage/domains/observability/index.d.ts +9 -1
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/prompt-blocks/index.d.ts.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts +27 -0
- package/dist/storage/domains/schedules/index.d.ts.map +1 -0
- package/dist/storage/domains/scorer-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +15 -5
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/skills/index.d.ts +27 -0
- package/dist/storage/domains/skills/index.d.ts.map +1 -0
- package/dist/storage/domains/thread-state/index.d.ts +38 -0
- package/dist/storage/domains/thread-state/index.d.ts.map +1 -0
- package/dist/storage/domains/tool-provider-connections/index.d.ts +14 -0
- package/dist/storage/domains/tool-provider-connections/index.d.ts.map +1 -0
- package/dist/storage/domains/utils.d.ts +34 -0
- package/dist/storage/domains/utils.d.ts.map +1 -0
- package/dist/storage/domains/workflow-definitions/index.d.ts +14 -0
- package/dist/storage/domains/workflow-definitions/index.d.ts.map +1 -0
- package/dist/storage/domains/workflows/index.d.ts +9 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/domains/workspaces/index.d.ts +26 -0
- package/dist/storage/domains/workspaces/index.d.ts.map +1 -0
- package/dist/storage/factory-storage.d.ts +28 -0
- package/dist/storage/factory-storage.d.ts.map +1 -0
- package/dist/storage/index.d.ts +85 -3
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/retention.d.ts +77 -0
- package/dist/storage/retention.d.ts.map +1 -0
- package/dist/vector/filter.d.ts.map +1 -1
- package/dist/vector/index.d.ts +26 -1
- package/dist/vector/index.d.ts.map +1 -1
- package/dist/vector/sql-builder.d.ts.map +1 -1
- package/dist/vector/write-lock.d.ts +7 -0
- package/dist/vector/write-lock.d.ts.map +1 -0
- package/package.json +20 -19
- package/CHANGELOG.md +0 -3696
- package/dist/docs/references/docs-agents-agent-approval.md +0 -377
- package/dist/docs/references/docs-agents-agent-memory.md +0 -212
- package/dist/docs/references/docs-agents-network-approval.md +0 -275
- package/dist/docs/references/docs-memory-storage.md +0 -261
- package/dist/docs/references/docs-observability-overview.md +0 -70
- package/dist/docs/references/docs-observability-tracing-exporters-default.md +0 -211
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type SqliteValue = null | string | number | bigint | ArrayBuffer;
|
|
2
|
+
export type SqliteInValue = SqliteValue | boolean | Date | Uint8Array;
|
|
3
|
+
export type SqliteInArgs = SqliteInValue[] | Record<string, SqliteInValue>;
|
|
4
|
+
export interface SqliteStatement {
|
|
5
|
+
sql: string;
|
|
6
|
+
args?: SqliteInArgs;
|
|
7
|
+
}
|
|
8
|
+
export interface SqliteResultSet {
|
|
9
|
+
columns: string[];
|
|
10
|
+
columnTypes: string[];
|
|
11
|
+
rows: Array<Record<string, SqliteValue>>;
|
|
12
|
+
rowsAffected: number;
|
|
13
|
+
lastInsertRowid?: bigint;
|
|
14
|
+
}
|
|
15
|
+
export type SqliteTransactionMode = 'write' | 'read' | 'deferred';
|
|
16
|
+
export interface SqliteTransaction {
|
|
17
|
+
execute(statement: string | SqliteStatement): Promise<SqliteResultSet>;
|
|
18
|
+
commit(): Promise<void>;
|
|
19
|
+
rollback(): Promise<void>;
|
|
20
|
+
close(): void;
|
|
21
|
+
readonly closed: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface SqliteClient {
|
|
24
|
+
execute(statement: string | SqliteStatement): Promise<SqliteResultSet>;
|
|
25
|
+
batch(statements: Array<string | SqliteStatement>, mode?: SqliteTransactionMode): Promise<SqliteResultSet[]>;
|
|
26
|
+
transaction(mode?: SqliteTransactionMode): Promise<SqliteTransaction>;
|
|
27
|
+
close(): void | Promise<void>;
|
|
28
|
+
readonly closed: boolean;
|
|
29
|
+
readonly protocol: string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/storage/db/client.ts"],"names":[],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CAAC,IAAI,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtE,KAAK,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Client, InValue } from '@libsql/client';
|
|
2
1
|
import { MastraBase } from '@mastra/core/base';
|
|
3
2
|
import type { TABLE_NAMES, StorageColumn } from '@mastra/core/storage';
|
|
3
|
+
import type { SqliteClient as Client, SqliteInValue as InValue } from './client.js';
|
|
4
4
|
/**
|
|
5
5
|
* Base configuration options shared across LibSQL domain configurations
|
|
6
6
|
*/
|
|
@@ -16,7 +16,22 @@ export type LibSQLDomainBaseConfig = {
|
|
|
16
16
|
* @default 100
|
|
17
17
|
*/
|
|
18
18
|
initialBackoffMs?: number;
|
|
19
|
+
/**
|
|
20
|
+
* SQLite `busy_timeout` (in milliseconds) applied to the underlying connection
|
|
21
|
+
* for local (`file:`/`:memory:`) databases. Lets a write wait for a lock to
|
|
22
|
+
* clear instead of failing immediately with `SQLITE_BUSY`. Requires
|
|
23
|
+
* `@libsql/client` >= 0.17.4 (see libsql-client-ts#288/#345). Ignored when an
|
|
24
|
+
* existing `client` is supplied.
|
|
25
|
+
* @default 5000
|
|
26
|
+
*/
|
|
27
|
+
connectionTimeoutMs?: number;
|
|
19
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Default SQLite `busy_timeout` (ms) for local LibSQL connections. Chosen to
|
|
31
|
+
* comfortably exceed the write-retry backoff window so contended writes block
|
|
32
|
+
* briefly rather than surfacing as `SQLITE_BUSY` errors.
|
|
33
|
+
*/
|
|
34
|
+
export declare const DEFAULT_CONNECTION_TIMEOUT_MS = 5000;
|
|
20
35
|
/**
|
|
21
36
|
* Configuration for LibSQL domains - accepts either credentials or an existing client
|
|
22
37
|
*/
|
|
@@ -42,11 +57,23 @@ export declare class LibSQLDB extends MastraBase {
|
|
|
42
57
|
maxRetries: number;
|
|
43
58
|
initialBackoffMs: number;
|
|
44
59
|
executeWriteOperationWithRetry: <T>(operationFn: () => Promise<T>, operationDescription: string) => Promise<T>;
|
|
60
|
+
/** Cache of actual table columns: tableName -> Promise<Set<columnName>> (stores in-flight promise to coalesce concurrent calls) */
|
|
61
|
+
private tableColumnsCache;
|
|
45
62
|
constructor({ client, maxRetries, initialBackoffMs, }: {
|
|
46
63
|
client: Client;
|
|
47
64
|
maxRetries?: number;
|
|
48
65
|
initialBackoffMs?: number;
|
|
49
66
|
});
|
|
67
|
+
/**
|
|
68
|
+
* Gets the set of column names that actually exist in the database table.
|
|
69
|
+
* Results are cached; the cache is invalidated when alterTable() adds new columns.
|
|
70
|
+
*/
|
|
71
|
+
private getTableColumns;
|
|
72
|
+
/**
|
|
73
|
+
* Filters a record to only include columns that exist in the actual database table.
|
|
74
|
+
* Unknown columns are silently dropped to ensure forward compatibility.
|
|
75
|
+
*/
|
|
76
|
+
private filterRecordToKnownColumns;
|
|
50
77
|
/**
|
|
51
78
|
* Checks if a column exists in the specified table.
|
|
52
79
|
*
|
|
@@ -70,6 +97,11 @@ export declare class LibSQLDB extends MastraBase {
|
|
|
70
97
|
tableName: TABLE_NAMES;
|
|
71
98
|
record: Record<string, any>;
|
|
72
99
|
}): Promise<void>;
|
|
100
|
+
/** Inserts a record without replacing an existing primary key. */
|
|
101
|
+
insertOnly(args: {
|
|
102
|
+
tableName: TABLE_NAMES;
|
|
103
|
+
record: Record<string, any>;
|
|
104
|
+
}): Promise<void>;
|
|
73
105
|
/**
|
|
74
106
|
* Internal update implementation without retry logic.
|
|
75
107
|
*/
|
|
@@ -223,9 +255,10 @@ export declare class LibSQLDB extends MastraBase {
|
|
|
223
255
|
* @param args.tableName - The name of the table to create
|
|
224
256
|
* @param args.schema - The schema definition for the table columns
|
|
225
257
|
*/
|
|
226
|
-
createTable({ tableName, schema, }: {
|
|
258
|
+
createTable({ tableName, schema, compositePrimaryKey, }: {
|
|
227
259
|
tableName: TABLE_NAMES;
|
|
228
260
|
schema: Record<string, StorageColumn>;
|
|
261
|
+
compositePrimaryKey?: string[];
|
|
229
262
|
}): Promise<void>;
|
|
230
263
|
/**
|
|
231
264
|
* Migrates the spans table schema from OLD_SPAN_SCHEMA to current SPAN_SCHEMA.
|
|
@@ -301,5 +334,56 @@ export declare class LibSQLDB extends MastraBase {
|
|
|
301
334
|
deleteData({ tableName }: {
|
|
302
335
|
tableName: TABLE_NAMES;
|
|
303
336
|
}): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Delete up to `limit` of the oldest rows whose `column` timestamp is strictly
|
|
339
|
+
* before `cutoffMs`, in a single bounded statement. Returns the number of rows
|
|
340
|
+
* removed so the caller can decide whether more batches remain.
|
|
341
|
+
*
|
|
342
|
+
* Deletes by `rowid` so the range scan is bounded by LIMIT and the write set
|
|
343
|
+
* stays small — short locks, bounded WAL growth. Requires an index on
|
|
344
|
+
* `column` to be fast at scale (see ensureIndex).
|
|
345
|
+
*/
|
|
346
|
+
pruneBatch({ tableName, column, cutoff, limit, }: {
|
|
347
|
+
tableName: TABLE_NAMES;
|
|
348
|
+
column: string;
|
|
349
|
+
/**
|
|
350
|
+
* Exclusive upper bound for the anchor column. Must match the column's
|
|
351
|
+
* stored type — the memory/observability timestamp anchors are stored as
|
|
352
|
+
* ISO-8601 strings, which sort lexicographically in chronological order, so
|
|
353
|
+
* the caller passes an ISO string cutoff.
|
|
354
|
+
*/
|
|
355
|
+
cutoff: string | number;
|
|
356
|
+
limit: number;
|
|
357
|
+
}): Promise<number>;
|
|
358
|
+
/**
|
|
359
|
+
* Delete up to `limit` aged parent rows *and* their child rows together, in a
|
|
360
|
+
* single transaction. Used for whole-unit (parent-driven) pruning where
|
|
361
|
+
* children must die with their parent (e.g. an aged experiment and its
|
|
362
|
+
* experiment_results) — deleting per unit means a bound or abort between
|
|
363
|
+
* batches never leaves a parent hollow (kept, but with its children gone) or
|
|
364
|
+
* children orphaned.
|
|
365
|
+
*
|
|
366
|
+
* Both deletes target the same parent set via an identical deterministic
|
|
367
|
+
* subquery (`ORDER BY rowid LIMIT ?`); the batch runs as one write
|
|
368
|
+
* transaction, so the set cannot change between the two statements.
|
|
369
|
+
*/
|
|
370
|
+
pruneUnitsBatch({ parentTable, parentKey, parentColumn, childTable, childForeignKey, cutoff, limit, }: {
|
|
371
|
+
parentTable: TABLE_NAMES;
|
|
372
|
+
parentKey: string;
|
|
373
|
+
parentColumn: string;
|
|
374
|
+
childTable: TABLE_NAMES;
|
|
375
|
+
childForeignKey: string;
|
|
376
|
+
cutoff: string | number;
|
|
377
|
+
limit: number;
|
|
378
|
+
}): Promise<{
|
|
379
|
+
parents: number;
|
|
380
|
+
children: number;
|
|
381
|
+
}>;
|
|
382
|
+
/** Create an index if it does not already exist. */
|
|
383
|
+
ensureIndex({ indexName, tableName, column, }: {
|
|
384
|
+
indexName: string;
|
|
385
|
+
tableName: TABLE_NAMES;
|
|
386
|
+
column: string;
|
|
387
|
+
}): Promise<void>;
|
|
304
388
|
}
|
|
305
389
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/db/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/db/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAS/C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEvE,OAAO,KAAK,EAAE,YAAY,IAAI,MAAM,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAUjF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,UAAU,CAAC,EAAE,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AAC,IAAI,CAAC,CAuChB;IAED;;;;;;OAMG;IACG,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBzE;IAWD;;;;;;;;OAQG;IACG,UAAU,CAAC,EACf,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,GACN,EAAE;QACD,SAAS,EAAE,WAAW,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf;;;;;WAKG;QACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,MAAM,CAAC,CAUlB;IAED;;;;;;;;;;;OAWG;IACG,eAAe,CAAC,EACpB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,UAAU,EACV,eAAe,EACf,MAAM,EACN,KAAK,GACN,EAAE;QACD,WAAW,EAAE,WAAW,CAAC;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,WAAW,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;QACxB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAiCjD;IAED,oDAAoD;IAC9C,WAAW,CAAC,EAChB,SAAS,EACT,SAAS,EACT,MAAM,GACP,EAAE;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,WAAW,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAKhB;CACF"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import type { InValue } from '@libsql/client';
|
|
2
1
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
3
2
|
import type { StorageColumn, TABLE_NAMES } from '@mastra/core/storage';
|
|
3
|
+
import type { SqliteInValue as InValue } from './client.js';
|
|
4
|
+
/**
|
|
5
|
+
* Safely serializes a value to JSON string with pre-sanitization.
|
|
6
|
+
* Handles RPC proxies (Cloudflare Workers), functions, symbols, BigInt, and circular references.
|
|
7
|
+
*
|
|
8
|
+
* Pre-sanitization is required because RPC proxies throw on toJSON property access,
|
|
9
|
+
* which happens before JSON.stringify's replacer can intervene.
|
|
10
|
+
*
|
|
11
|
+
* @param value - The value to serialize
|
|
12
|
+
* @returns JSON string representation, with non-serializable values removed
|
|
13
|
+
*/
|
|
14
|
+
export declare const safeStringify: (value: unknown) => string;
|
|
4
15
|
/**
|
|
5
16
|
* Builds a SQL column list for SELECT statements, wrapping JSONB columns with json()
|
|
6
17
|
* to convert binary JSONB to TEXT.
|
|
@@ -16,6 +27,11 @@ import type { StorageColumn, TABLE_NAMES } from '@mastra/core/storage';
|
|
|
16
27
|
* @returns A comma-separated column list with json() wrappers for JSONB columns
|
|
17
28
|
*/
|
|
18
29
|
export declare function buildSelectColumns(tableName: TABLE_NAMES): string;
|
|
30
|
+
/**
|
|
31
|
+
* Same as `buildSelectColumns` but qualifies each column with the given table alias.
|
|
32
|
+
* Used by queries that JOIN multiple tables and need unambiguous column references.
|
|
33
|
+
*/
|
|
34
|
+
export declare function buildSelectColumnsWithAlias(tableName: TABLE_NAMES, alias: string): string;
|
|
19
35
|
/**
|
|
20
36
|
* Checks if an error is a SQLite lock/busy error that should be retried
|
|
21
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/db/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/storage/db/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,E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,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CA6BA;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,EAAE,kBAAkB,GAAE,OAAe,GAAG,OAAO,CAc5F;AAED,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE;IAAE,SAAS,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,GAAG;IAClH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAQA;AAED,KAAK,UAAU,GAAG,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnE,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GACpC;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAqBA;AA+CD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,EACrC,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B,GAAG,CAAC,CA2CJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SqliteClient } from './client.js';
|
|
2
|
+
/**
|
|
3
|
+
* Runs `fn` after every previously-enqueued write on `client` has settled, and
|
|
4
|
+
* returns its result. The chain advances regardless of whether `fn` resolves or
|
|
5
|
+
* rejects, so one failed write never wedges the queue.
|
|
6
|
+
*/
|
|
7
|
+
export declare function withClientWriteLock<T>(client: SqliteClient, fn: () => Promise<T>): Promise<T>;
|
|
8
|
+
//# sourceMappingURL=write-lock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-lock.d.ts","sourceRoot":"","sources":["../../../src/storage/db/write-lock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA0B7C;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAY7F"}
|
|
@@ -17,6 +17,7 @@ export declare class AgentsLibSQL extends AgentsStorage {
|
|
|
17
17
|
list(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
|
|
18
18
|
createVersion(input: CreateVersionInput): Promise<AgentVersion>;
|
|
19
19
|
getVersion(id: string): Promise<AgentVersion | null>;
|
|
20
|
+
getVersions(ids: string[]): Promise<AgentVersion[]>;
|
|
20
21
|
getVersionByNumber(agentId: string, versionNumber: number): Promise<AgentVersion | null>;
|
|
21
22
|
getLatestVersion(agentId: string): Promise<AgentVersion | null>;
|
|
22
23
|
listVersions(input: ListVersionsInput): Promise<ListVersionsOutput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EASd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA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GAAG,OAAO,CAAC,IAAI,CAAC,CAkB7C;IAEK,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8B9D;IAEK,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpD;IAMD,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,eAAe;CA+BxB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { BackgroundTask, TaskFilter, TaskListResult, UpdateBackgroundTask } from '@mastra/core/background-tasks';
|
|
2
|
+
import { BackgroundTasksStorage } from '@mastra/core/storage';
|
|
3
|
+
import type { PruneOptions, PruneResult, RetentionTablesDescriptor, TableRetentionPolicy } from '@mastra/core/storage';
|
|
4
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
5
|
+
export declare class BackgroundTasksLibSQL extends BackgroundTasksStorage {
|
|
6
|
+
#private;
|
|
7
|
+
/**
|
|
8
|
+
* Completed/failed task records accumulate. Anchored on `completedAt`, which
|
|
9
|
+
* is NULL while a task is in-flight (pending/running/suspended) — so `completedAt
|
|
10
|
+
* < cutoff` never prunes a live task, no explicit status filter needed.
|
|
11
|
+
*/
|
|
12
|
+
static readonly retentionTables: RetentionTablesDescriptor;
|
|
13
|
+
constructor(config: LibSQLDomainConfig);
|
|
14
|
+
init(): Promise<void>;
|
|
15
|
+
dangerouslyClearAll(): Promise<void>;
|
|
16
|
+
/** Delete completed tasks older than the `backgroundTasks` policy's `maxAge`, batched. */
|
|
17
|
+
prune(policies: Record<string, TableRetentionPolicy>, options?: PruneOptions): Promise<PruneResult[]>;
|
|
18
|
+
createTask(task: BackgroundTask): Promise<void>;
|
|
19
|
+
updateTask(taskId: string, update: UpdateBackgroundTask, options?: {
|
|
20
|
+
expectedStatus?: BackgroundTask['status'];
|
|
21
|
+
}): Promise<boolean>;
|
|
22
|
+
getTask(taskId: string): Promise<BackgroundTask | null>;
|
|
23
|
+
listTasks(filter: TaskFilter): Promise<TaskListResult>;
|
|
24
|
+
deleteTask(taskId: string): Promise<void>;
|
|
25
|
+
deleteTasks(filter: TaskFilter): Promise<void>;
|
|
26
|
+
getRunningCount(): Promise<number>;
|
|
27
|
+
getRunningCountByAgent(agentId: string): Promise<number>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/background-tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,UAAU,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAyC,MAAM,sBAAsB,CAAC;AACrG,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEvH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA8CnD,qBAAa,qBAAsB,SAAQ,sBAAsB;;IAC/D;;;;OAIG;IACH,gBAAyB,eAAe,EAAE,yBAAyB,CAEjE;IAKF,YAAY,MAAM,EAAE,kBAAkB,EAKrC;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAW1B;IAEK,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzC;IAED,0FAA0F;IACpF,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAO1G;IAEK,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BpD;IAEK,UAAU,CACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAA;KAAE,GACtD,OAAO,CAAC,OAAO,CAAC,CAkDlB;IAEK,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAO5D;IAEK,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,CAmF3D;IAEK,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK9C;IAEK,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAyCnD;IAEK,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAMvC;IAEK,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7D;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BlobStore } from '@mastra/core/storage';
|
|
2
|
+
import type { StorageBlobEntry } from '@mastra/core/storage';
|
|
3
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
4
|
+
export declare class BlobsLibSQL extends BlobStore {
|
|
5
|
+
#private;
|
|
6
|
+
static readonly MANAGED_TABLES: readonly ["mastra_skill_blobs"];
|
|
7
|
+
constructor(config: LibSQLDomainConfig);
|
|
8
|
+
init(): Promise<void>;
|
|
9
|
+
put(entry: StorageBlobEntry): Promise<void>;
|
|
10
|
+
get(hash: string): Promise<StorageBlobEntry | null>;
|
|
11
|
+
has(hash: string): Promise<boolean>;
|
|
12
|
+
delete(hash: string): Promise<boolean>;
|
|
13
|
+
putMany(entries: StorageBlobEntry[]): Promise<void>;
|
|
14
|
+
getMany(hashes: string[]): Promise<Map<string, StorageBlobEntry>>;
|
|
15
|
+
dangerouslyClearAll(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/blobs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD,qBAAa,WAAY,SAAQ,SAAS;;IAIxC,MAAM,CAAC,QAAQ,CAAC,cAAc,kCAAgC;IAE9D,YAAY,MAAM,EAAE,kBAAkB,EAKrC;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;IAEK,GAAG,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhD;IAEK,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAOxD;IAEK,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMxC;IAEK,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAM3C;IAEK,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAYxD;IAEK,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAmBtE;IAEK,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzC;CAWF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChannelsStorage } from '@mastra/core/storage';
|
|
2
|
+
import type { ChannelInstallation, ChannelConfig } from '@mastra/core/storage';
|
|
3
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
4
|
+
export declare class ChannelsLibSQL extends ChannelsStorage {
|
|
5
|
+
#private;
|
|
6
|
+
static readonly MANAGED_TABLES: readonly ["mastra_channel_installations", "mastra_channel_config"];
|
|
7
|
+
constructor(config: LibSQLDomainConfig);
|
|
8
|
+
init(): Promise<void>;
|
|
9
|
+
dangerouslyClearAll(): Promise<void>;
|
|
10
|
+
saveInstallation(installation: ChannelInstallation): Promise<void>;
|
|
11
|
+
getInstallation(id: string): Promise<ChannelInstallation | null>;
|
|
12
|
+
getInstallationByAgent(platform: string, agentId: string): Promise<ChannelInstallation | null>;
|
|
13
|
+
getInstallationByWebhookId(webhookId: string): Promise<ChannelInstallation | null>;
|
|
14
|
+
listInstallations(platform: string): Promise<ChannelInstallation[]>;
|
|
15
|
+
deleteInstallation(id: string): Promise<void>;
|
|
16
|
+
saveConfig(config: ChannelConfig): Promise<void>;
|
|
17
|
+
getConfig(platform: string): Promise<ChannelConfig | null>;
|
|
18
|
+
deleteConfig(platform: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/channels/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAIhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,qBAAa,cAAe,SAAQ,eAAe;;IAIjD,MAAM,CAAC,QAAQ,CAAC,cAAc,qEAAgE;IAE9F,YAAY,MAAM,EAAE,kBAAkB,EAKrC;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAwB1B;IAEK,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAGzC;IAEK,gBAAgB,CAAC,YAAY,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BvE;IAEK,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAOrE;IAEK,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAOnG;IAEK,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAOvF;IAEK,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAMxE;IAEK,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKlD;IAEK,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAWrD;IAEK,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAY/D;IAEK,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKlD;CAgBF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DatasetsStorage } from '@mastra/core/storage';
|
|
2
|
+
import type { DatasetRecord, DatasetItem, DatasetItemRow, DatasetVersion, CreateDatasetInput, UpdateDatasetInput, AddDatasetItemInput, UpdateDatasetItemInput, DeleteDatasetItemInput, ListDatasetsInput, ListDatasetsOutput, ListDatasetItemsInput, ListDatasetItemsOutput, ListDatasetVersionsInput, ListDatasetVersionsOutput, BatchInsertItemsInput, BatchDeleteItemsInput, DatasetTenancyFilters } from '@mastra/core/storage';
|
|
3
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
4
|
+
export declare class DatasetsLibSQL extends DatasetsStorage {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(config: LibSQLDomainConfig);
|
|
7
|
+
init(): Promise<void>;
|
|
8
|
+
dangerouslyClearAll(): Promise<void>;
|
|
9
|
+
private experimentTablesExist;
|
|
10
|
+
private transformDatasetRow;
|
|
11
|
+
private transformItemRow;
|
|
12
|
+
private transformItemRowFull;
|
|
13
|
+
private transformDatasetVersionRow;
|
|
14
|
+
createDataset(input: CreateDatasetInput): Promise<DatasetRecord>;
|
|
15
|
+
getDatasetById({ id, filters, }: {
|
|
16
|
+
id: string;
|
|
17
|
+
filters?: DatasetTenancyFilters;
|
|
18
|
+
}): Promise<DatasetRecord | null>;
|
|
19
|
+
protected _doUpdateDataset(args: UpdateDatasetInput): Promise<DatasetRecord>;
|
|
20
|
+
deleteDataset({ id, filters }: {
|
|
21
|
+
id: string;
|
|
22
|
+
filters?: DatasetTenancyFilters;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
listDatasets(args: ListDatasetsInput): Promise<ListDatasetsOutput>;
|
|
25
|
+
protected _doAddItem(args: AddDatasetItemInput): Promise<DatasetItem>;
|
|
26
|
+
protected _doUpdateItem(args: UpdateDatasetItemInput): Promise<DatasetItem>;
|
|
27
|
+
protected _doDeleteItem({ id, datasetId }: DeleteDatasetItemInput): Promise<void>;
|
|
28
|
+
getItemById(args: {
|
|
29
|
+
id: string;
|
|
30
|
+
datasetVersion?: number;
|
|
31
|
+
}): Promise<DatasetItem | null>;
|
|
32
|
+
getItemsByVersion({ datasetId, version }: {
|
|
33
|
+
datasetId: string;
|
|
34
|
+
version: number;
|
|
35
|
+
}): Promise<DatasetItem[]>;
|
|
36
|
+
getItemHistory(itemId: string): Promise<DatasetItemRow[]>;
|
|
37
|
+
listItems(args: ListDatasetItemsInput): Promise<ListDatasetItemsOutput>;
|
|
38
|
+
createDatasetVersion(datasetId: string, version: number): Promise<DatasetVersion>;
|
|
39
|
+
listDatasetVersions(input: ListDatasetVersionsInput): Promise<ListDatasetVersionsOutput>;
|
|
40
|
+
protected _doBatchInsertItems(input: BatchInsertItemsInput): Promise<DatasetItem[]>;
|
|
41
|
+
protected _doBatchDeleteItems(input: BatchDeleteItemsInput): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|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AAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmF/E;CACF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ExperimentsStorage } from '@mastra/core/storage';
|
|
2
|
+
import type { Experiment, ExperimentResult, ExperimentReviewCounts, ExperimentTenancyFilters, CreateExperimentInput, UpdateExperimentInput, AddExperimentResultInput, UpdateExperimentResultInput, UpsertExperimentResultInput, ListExperimentsInput, ListExperimentsOutput, ListExperimentResultsInput, ListExperimentResultsOutput, PruneOptions, PruneResult, RetentionTablesDescriptor, TableRetentionPolicy } from '@mastra/core/storage';
|
|
3
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
4
|
+
export declare class ExperimentsLibSQL extends ExperimentsStorage {
|
|
5
|
+
#private;
|
|
6
|
+
/**
|
|
7
|
+
* An experiment is pruned as a whole unit: when `experiments.completedAt` is
|
|
8
|
+
* older than the policy, the run and all its `experiment_results` rows are
|
|
9
|
+
* deleted together (results cascade with their parent, matching
|
|
10
|
+
* `deleteExperiment`). Results are not an independent retention key. NULL
|
|
11
|
+
* `completedAt` (still running) is never pruned.
|
|
12
|
+
*/
|
|
13
|
+
static readonly retentionTables: RetentionTablesDescriptor;
|
|
14
|
+
constructor(config: LibSQLDomainConfig);
|
|
15
|
+
init(): Promise<void>;
|
|
16
|
+
dangerouslyClearAll(): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Prune whole experiments older than the `experiments` policy's `maxAge`.
|
|
19
|
+
*
|
|
20
|
+
* Each batch selects up to `batchSize` aged experiments and deletes their
|
|
21
|
+
* `experiment_results` rows and the experiment rows in one transaction —
|
|
22
|
+
* mirroring `deleteExperiment` — so hitting `maxBatches`/`maxRows` or the
|
|
23
|
+
* abort signal between batches never leaves a run hollow (parent kept,
|
|
24
|
+
* results gone). NULL `completedAt` (still running) is excluded by the
|
|
25
|
+
* `< cutoff` predicate. Bounds count whole experiments, not rows.
|
|
26
|
+
*/
|
|
27
|
+
prune(policies: Record<string, TableRetentionPolicy>, options?: PruneOptions): Promise<PruneResult[]>;
|
|
28
|
+
private transformExperimentRow;
|
|
29
|
+
private transformExperimentResultRow;
|
|
30
|
+
createExperiment(input: CreateExperimentInput): Promise<Experiment>;
|
|
31
|
+
updateExperiment(input: UpdateExperimentInput): Promise<Experiment>;
|
|
32
|
+
getExperimentById(args: {
|
|
33
|
+
id: string;
|
|
34
|
+
filters?: ExperimentTenancyFilters;
|
|
35
|
+
}): Promise<Experiment | null>;
|
|
36
|
+
listExperiments(args: ListExperimentsInput): Promise<ListExperimentsOutput>;
|
|
37
|
+
deleteExperiment(args: {
|
|
38
|
+
id: string;
|
|
39
|
+
filters?: ExperimentTenancyFilters;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
addExperimentResult(input: AddExperimentResultInput): Promise<ExperimentResult>;
|
|
42
|
+
upsertExperimentResult(input: UpsertExperimentResultInput): Promise<ExperimentResult>;
|
|
43
|
+
updateExperimentResult(input: UpdateExperimentResultInput): Promise<ExperimentResult>;
|
|
44
|
+
getExperimentResultById(args: {
|
|
45
|
+
id: string;
|
|
46
|
+
filters?: ExperimentTenancyFilters;
|
|
47
|
+
}): Promise<ExperimentResult | null>;
|
|
48
|
+
listExperimentResults(args: ListExperimentResultsInput): Promise<ListExperimentResultsOutput>;
|
|
49
|
+
deleteExperimentResults(args: {
|
|
50
|
+
experimentId: string;
|
|
51
|
+
filters?: ExperimentTenancyFilters;
|
|
52
|
+
}): Promise<void>;
|
|
53
|
+
getReviewSummary(): Promise<ExperimentReviewCounts[]>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/experiments/index.ts"],"names":[],"mappings":"AACA,OAAO,EAML,kBAAkB,EAMnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,wBAAw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AAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA4B9F;IAGK,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAgEpF;IAEK,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAmF1F;IAEK,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAwE1F;IAEK,uBAAuB,CAAC,IAAI,EAAE;QAClC,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,CAAC,EAAE,wBAAwB,CAAC;KACpC,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAkBnC;IAEK,qBAAqB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAyElG;IAEK,uBAAuB,CAAC,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,wBAAwB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B/G;IAEK,gBAAgB,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC,CA+B1D;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FavoritesStorage } from '@mastra/core/storage';
|
|
2
|
+
import type { StorageDeleteFavoritesForEntityInput, StorageIsFavoritedBatchInput, StorageListFavoritesInput, StorageFavoriteKey } from '@mastra/core/storage';
|
|
3
|
+
import type { FavoriteToggleResult } from '@mastra/core/storage/domains/favorites';
|
|
4
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
5
|
+
export declare class FavoritesLibSQL extends FavoritesStorage {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(config: LibSQLDomainConfig);
|
|
8
|
+
init(): Promise<void>;
|
|
9
|
+
dangerouslyClearAll(): Promise<void>;
|
|
10
|
+
favorite(input: StorageFavoriteKey): Promise<FavoriteToggleResult>;
|
|
11
|
+
unfavorite(input: StorageFavoriteKey): Promise<FavoriteToggleResult>;
|
|
12
|
+
isFavorited(input: StorageFavoriteKey): Promise<boolean>;
|
|
13
|
+
isFavoritedBatch(input: StorageIsFavoritedBatchInput): Promise<Set<string>>;
|
|
14
|
+
listFavoritedIds(input: StorageListFavoritesInput): Promise<string[]>;
|
|
15
|
+
deleteFavoritesForEntity(input: StorageDeleteFavoritesForEntityInput): Promise<number>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/favorites/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAMjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EAEzB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAWnD,qBAAa,eAAgB,SAAQ,gBAAgB;;IAInD,YAAY,MAAM,EAAE,kBAAkB,EAKrC;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAW1B;IAEK,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAczC;IAEK,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA8DvE;IAEK,UAAU,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA4DzE;IAEK,WAAW,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAkB7D;IAEK,gBAAgB,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CA6BhF;IAEK,gBAAgB,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkB1E;IAEK,wBAAwB,CAAC,KAAK,EAAE,oCAAoC,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC3F;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HarnessStorage } from '@mastra/core/storage';
|
|
2
|
+
import type { SessionRecord, PruneOptions, PruneResult, RetentionTablesDescriptor, TableRetentionPolicy } from '@mastra/core/storage';
|
|
3
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
4
|
+
export declare class HarnessLibSQL extends HarnessStorage {
|
|
5
|
+
#private;
|
|
6
|
+
/** Session records accumulate over time. Single table, anchored on `createdAt`. */
|
|
7
|
+
static readonly retentionTables: RetentionTablesDescriptor;
|
|
8
|
+
constructor(config: LibSQLDomainConfig);
|
|
9
|
+
init(): Promise<void>;
|
|
10
|
+
dangerouslyClearAll(): Promise<void>;
|
|
11
|
+
/** Delete harness sessions older than the `sessions` policy's `maxAge`, batched. */
|
|
12
|
+
prune(policies: Record<string, TableRetentionPolicy>, options?: PruneOptions): Promise<PruneResult[]>;
|
|
13
|
+
loadSession(sessionId: string): Promise<SessionRecord | null>;
|
|
14
|
+
saveSession(record: SessionRecord): Promise<void>;
|
|
15
|
+
listSessions(): Promise<SessionRecord[]>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/harness/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAyC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAGV,aAAa,EACb,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAgHnD,qBAAa,aAAc,SAAQ,cAAc;;IAC/C,mFAAmF;IACnF,gBAAyB,eAAe,EAAE,yBAAyB,CAEjE;IAIF,YAAY,MAAM,EAAE,kBAAkB,EAIrC;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAK1B;IAEK,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzC;IAED,oFAAoF;IAC9E,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAO1G;IAEK,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAMlE;IAEK,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAKtD;IAEK,YAAY,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAM7C;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { KnowledgeStorage } from '@mastra/core/storage';
|
|
2
|
+
import type { AppendKnowledgeInput, ClaimKnowledgeSemanticOutboxInput, CreateKnowledgeNodeInput, KnowledgeActivityEvent, KnowledgeCurationCursor, KnowledgeNode, KnowledgeRecord, KnowledgeScope, KnowledgeSemanticOutboxEntry, QueryKnowledgeBySourceInput, QueryKnowledgeInput, QueryKnowledgeOutput, ListKnowledgeNodesInput, SearchKnowledgeInput, SearchKnowledgeResult, UpdateKnowledgeNodeInput } from '@mastra/core/storage';
|
|
3
|
+
import type { LibSQLDomainConfig } from '../../db/index.js';
|
|
4
|
+
export declare class KnowledgeLibSQL extends KnowledgeStorage {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(config: LibSQLDomainConfig);
|
|
7
|
+
init(): Promise<void>;
|
|
8
|
+
dangerouslyClearAll(): Promise<void>;
|
|
9
|
+
createNode(input: CreateKnowledgeNodeInput): Promise<KnowledgeNode>;
|
|
10
|
+
getNode(id: string): Promise<KnowledgeNode | null>;
|
|
11
|
+
getNodeByName(input: {
|
|
12
|
+
name: string;
|
|
13
|
+
scope: KnowledgeScope;
|
|
14
|
+
}): Promise<KnowledgeNode | null>;
|
|
15
|
+
resolveNode(input: {
|
|
16
|
+
name: string;
|
|
17
|
+
scope: KnowledgeScope;
|
|
18
|
+
}): Promise<KnowledgeNode | null>;
|
|
19
|
+
listNodes(input: ListKnowledgeNodesInput): Promise<KnowledgeNode[]>;
|
|
20
|
+
updateNode(input: UpdateKnowledgeNodeInput): Promise<KnowledgeNode>;
|
|
21
|
+
mergeNodes(input: {
|
|
22
|
+
sourceId: string;
|
|
23
|
+
targetId: string;
|
|
24
|
+
sourceVersion: number;
|
|
25
|
+
}): Promise<KnowledgeNode>;
|
|
26
|
+
appendKnowledge(input: AppendKnowledgeInput): Promise<KnowledgeRecord>;
|
|
27
|
+
getKnowledge(input: {
|
|
28
|
+
id: string;
|
|
29
|
+
includeDeleted?: boolean;
|
|
30
|
+
}): Promise<KnowledgeRecord | null>;
|
|
31
|
+
listKnowledgeAbout(input: QueryKnowledgeInput): Promise<QueryKnowledgeOutput>;
|
|
32
|
+
listKnowledgeMentioning(input: QueryKnowledgeInput): Promise<QueryKnowledgeOutput>;
|
|
33
|
+
listKnowledgeRelatedTo(input: QueryKnowledgeInput): Promise<QueryKnowledgeOutput>;
|
|
34
|
+
knowledgeBySource(input: QueryKnowledgeBySourceInput): Promise<QueryKnowledgeOutput>;
|
|
35
|
+
removeKnowledge(input: {
|
|
36
|
+
id: string;
|
|
37
|
+
deletedBy: string;
|
|
38
|
+
}): Promise<KnowledgeRecord>;
|
|
39
|
+
restoreKnowledge(input: {
|
|
40
|
+
id: string;
|
|
41
|
+
}): Promise<KnowledgeRecord>;
|
|
42
|
+
rescopeKnowledge(input: {
|
|
43
|
+
id: string;
|
|
44
|
+
scope: KnowledgeScope;
|
|
45
|
+
}): Promise<KnowledgeRecord>;
|
|
46
|
+
raiseKnowledgeCeiling(input: {
|
|
47
|
+
id: string;
|
|
48
|
+
maxScope?: KnowledgeRecord['maxScope'];
|
|
49
|
+
}): Promise<KnowledgeRecord>;
|
|
50
|
+
search(input: SearchKnowledgeInput): Promise<SearchKnowledgeResult[]>;
|
|
51
|
+
getCurationCursor(input: {
|
|
52
|
+
sourceThreadId: string;
|
|
53
|
+
agent: string;
|
|
54
|
+
}): Promise<KnowledgeCurationCursor | null>;
|
|
55
|
+
advanceCurationCursor(input: {
|
|
56
|
+
sourceThreadId: string;
|
|
57
|
+
agent: string;
|
|
58
|
+
lastKnowledgeId: string;
|
|
59
|
+
}): Promise<KnowledgeCurationCursor>;
|
|
60
|
+
listActivity(input: {
|
|
61
|
+
scope: KnowledgeScope;
|
|
62
|
+
after?: string;
|
|
63
|
+
limit?: number;
|
|
64
|
+
}): Promise<KnowledgeActivityEvent[]>;
|
|
65
|
+
listSemanticOutbox(input?: {
|
|
66
|
+
status?: KnowledgeSemanticOutboxEntry['status'];
|
|
67
|
+
scope?: KnowledgeScope;
|
|
68
|
+
limit?: number;
|
|
69
|
+
}): Promise<KnowledgeSemanticOutboxEntry[]>;
|
|
70
|
+
claimSemanticOutbox(input: ClaimKnowledgeSemanticOutboxInput): Promise<KnowledgeSemanticOutboxEntry[]>;
|
|
71
|
+
completeSemanticOutbox(input: {
|
|
72
|
+
ids: string[];
|
|
73
|
+
workerId: string;
|
|
74
|
+
}): Promise<void>;
|
|
75
|
+
releaseSemanticOutbox(input: {
|
|
76
|
+
ids: string[];
|
|
77
|
+
workerId: string;
|
|
78
|
+
retryAt?: Date;
|
|
79
|
+
}): Promise<void>;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAiBL,gBAAgB,EASjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,oBAAoB,EACp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