@mastra/libsql 1.29.0-alpha.2 → 1.30.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/docs/SKILL.md +58 -0
  2. package/dist/docs/assets/SOURCE_MAP.json +152 -0
  3. package/dist/docs/references/docs-agents-human-in-the-loop.md +773 -0
  4. package/dist/docs/references/docs-agents-networks.md +186 -0
  5. package/dist/docs/references/docs-deployment-workers.md +404 -0
  6. package/dist/docs/references/docs-knowledge-load-your-content.md +86 -0
  7. package/dist/docs/references/docs-knowledge-overview.md +106 -0
  8. package/dist/docs/references/docs-knowledge-search.md +63 -0
  9. package/dist/docs/references/docs-memory-memory-processors.md +442 -0
  10. package/dist/docs/references/docs-memory-message-history.md +424 -0
  11. package/dist/docs/references/docs-memory-multi-user-threads.md +210 -0
  12. package/dist/docs/references/docs-memory-overview.md +317 -0
  13. package/dist/docs/references/docs-memory-semantic-recall.md +485 -0
  14. package/dist/docs/references/docs-memory-working-memory.md +450 -0
  15. package/dist/docs/references/docs-signals-overview.md +94 -0
  16. package/dist/docs/references/docs-storage.md +224 -0
  17. package/dist/docs/references/docs-studio-editor.md +372 -0
  18. package/dist/docs/references/docs-workflows-snapshots.md +244 -0
  19. package/dist/docs/references/integrations-channels-github.md +156 -0
  20. package/dist/docs/references/integrations-channels-ring.md +322 -0
  21. package/dist/docs/references/integrations-databases-dynamodb.md +286 -0
  22. package/dist/docs/references/integrations-databases-libsql.md +161 -0
  23. package/dist/docs/references/integrations-vectors-libsql.md +325 -0
  24. package/dist/docs/references/reference-ai-sdk-overview.md +144 -0
  25. package/dist/docs/references/reference-core-getMemory.md +53 -0
  26. package/dist/docs/references/reference-core-listMemory.md +59 -0
  27. package/dist/docs/references/reference-core-mastra-class.md +177 -0
  28. package/dist/docs/references/reference-file-based-agents-memory.md +60 -0
  29. package/dist/docs/references/reference-file-based-agents-storage.md +32 -0
  30. package/dist/docs/references/reference-memory-memory-class.md +237 -0
  31. package/dist/docs/references/reference-rag-retrieval.md +672 -0
  32. package/dist/docs/references/reference-storage-composite.md +433 -0
  33. package/dist/docs/references/reference-storage-retention.md +310 -0
  34. package/dist/index.cjs +821 -44
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.js +822 -45
  37. package/dist/index.js.map +1 -1
  38. package/dist/storage/db/index.d.ts +4 -4
  39. package/dist/storage/db/index.d.ts.map +1 -1
  40. package/dist/storage/domains/workflows/index.d.ts +100 -6
  41. package/dist/storage/domains/workflows/index.d.ts.map +1 -1
  42. package/dist/storage/retention.d.ts +3 -1
  43. package/dist/storage/retention.d.ts.map +1 -1
  44. package/package.json +7 -7
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: mastra-libsql
3
+ description: Documentation for @mastra/libsql. Use when working with @mastra/libsql APIs, configuration, or implementation.
4
+ metadata:
5
+ package: "@mastra/libsql"
6
+ version: "1.30.0-alpha.0"
7
+ ---
8
+
9
+ ## When to use
10
+
11
+ Use this skill whenever you are working with @mastra/libsql to obtain the domain-specific knowledge.
12
+
13
+ ## How to use
14
+
15
+ Read the individual reference documents for detailed explanations and code examples.
16
+
17
+ ### Docs
18
+
19
+ - [Human-in-the-loop](references/docs-agents-human-in-the-loop.md) - Add human-in-the-loop controls to Mastra agents with tool approval and suspended execution, so people can provide input before a run resumes or stops.
20
+ - [Agent networks](references/docs-agents-networks.md) - Understand deprecated Mastra agent networks, including multi-agent routing, structured output, tool approvals, and migration to supervisor agents.
21
+ - [Workers](references/docs-deployment-workers.md) - Run Mastra workflow orchestration, schedules, and long-running background tasks in dedicated workers to keep API processes responsive under load.
22
+ - [Load your content](references/docs-knowledge-load-your-content.md) - Load your own content, such as product docs or policies, into Knowledge so agents can search and read it.
23
+ - [Knowledge](references/docs-knowledge-overview.md) - Give agents shared pages and notes they search, read and write, with access decided by your configuration rather than by the model.
24
+ - [Search](references/docs-knowledge-search.md) - How Knowledge search ranks results, and how to add search by meaning.
25
+ - [Memory processors](references/docs-memory-memory-processors.md) - Configure Mastra memory processors to filter, trim, transform, and deduplicate messages before they reach the model while managing context limits.
26
+ - [Message history](references/docs-memory-message-history.md) - Store and retrieve recent Mastra conversation messages, configure history limits and thread titles, and query threads for chat interfaces.
27
+ - [Multi-user threads](references/docs-memory-multi-user-threads.md) - Share one Mastra memory thread across multiple users by preserving speaker identity in messages and combining history with observational or working memory.
28
+ - [Memory](references/docs-memory-overview.md) - Add memory to Mastra agents with message history, observational memory, and working memory across threads and multi-agent delegation.
29
+ - [Semantic recall](references/docs-memory-semantic-recall.md) - Retrieve relevant messages from past Mastra conversations with semantic recall, vector search, embeddings, metadata filters, and configurable storage.
30
+ - [Working memory](references/docs-memory-working-memory.md) - Persist user profiles, preferences, and application data with Mastra working memory using resource- or thread-scoped templates and storage adapters.
31
+ - [Signals](references/docs-signals-overview.md) - Send asynchronous input into a Mastra agent thread while Mastra manages whether the agent is active or idle.
32
+ - [Storage](references/docs-storage.md) - Configure Mastra storage to persist memory, workflow state, observability data, evals, schedules, and long-running agent state across restarts.
33
+ - [Editor](references/docs-studio-editor.md) - Use Mastra Studio Editor so collaborators can change agent instructions and tools without modifying source code, from draft testing through publication.
34
+ - [Snapshots](references/docs-workflows-snapshots.md) - Store and retrieve Mastra workflow snapshots so suspended executions preserve step results and state and can resume reliably across processes.
35
+
36
+ ### Integrations
37
+
38
+ - [GitHub](references/integrations-channels-github.md) - Subscribe Mastra agents to GitHub pull requests with @mastra/github-signals, polling modes, notification signals, and subscription management tools.
39
+ - [Ring](references/integrations-channels-ring.md) - Send Ring doorbell and camera events to Mastra agents as notification signals with @mastra/ring-signals, and fetch snapshots and video clips with agent tools.
40
+ - [DynamoDB](references/integrations-databases-dynamodb.md) - Persist Mastra data in Amazon DynamoDB with a single-table ElectroDB design, configurable indexes, TTL support, credentials, and table initialization.
41
+ - [libSQL](references/integrations-databases-libsql.md) - Persist Mastra messages, workflow snapshots, traces, and eval scores in local or remote libSQL with managed tables and initialization options.
42
+ - [libSQL](references/integrations-vectors-libsql.md) - Store embeddings in a local libSQL database or Turso and run similarity search with metadata filtering from Mastra.
43
+
44
+ ### Reference
45
+
46
+ - [AI SDK overview](references/reference-ai-sdk-overview.md) - Wrap Vercel AI SDK models with Mastra processors and memory using withMastra(), while retaining existing AI SDK generation, streaming, and UI integrations.
47
+ - [Reference: Mastra.getMemory()](references/reference-core-getMemory.md) - The .getMemory() method retrieves a memory instance from the Mastra registry by its key.
48
+ - [Reference: Mastra.listMemory()](references/reference-core-listMemory.md) - The .listMemory() method returns all memory instances registered with the Mastra instance.
49
+ - [Reference: Mastra class](references/reference-core-mastra-class.md) - The Mastra class is the central orchestrator in any Mastra application, managing agents, workflows, storage, logging, observability, and more.
50
+ - [Memory](references/reference-file-based-agents-memory.md) - A file-based agent gets memory from a memory.ts file that default-exports a Memory instance.
51
+ - [Storage](references/reference-file-based-agents-storage.md) - Mastra sets the project's default storage from a storage.ts file directly under src/mastra/.
52
+ - [Reference: Memory class](references/reference-memory-memory-class.md) - The Memory class provides a reliable system for managing conversation history and thread-based message storage in Mastra.
53
+ - [Retrieval, semantic search, reranking](references/reference-rag-retrieval.md) - After storing embeddings, you need to retrieve relevant chunks to answer user queries.
54
+ - [Reference: Composite storage](references/reference-storage-composite.md) - MastraCompositeStore can compose storage domains from different providers. Use it when you need different databases for different purposes.
55
+ - [Reference: Storage retention (prune)](references/reference-storage-retention.md) - prune() deletes rows. It caps growth and is safe to run against large tables (batched, bounded, resumable, cancellable).
56
+
57
+
58
+ Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -0,0 +1,152 @@
1
+ {
2
+ "version": "1.30.0-alpha.0",
3
+ "package": "@mastra/libsql",
4
+ "exports": {
5
+ "AgentsLibSQL": {
6
+ "types": "dist/storage/domains/agents/index.d.ts",
7
+ "implementation": "dist/index.js",
8
+ "line": 2601
9
+ },
10
+ "BackgroundTasksLibSQL": {
11
+ "types": "dist/storage/domains/background-tasks/index.d.ts",
12
+ "implementation": "dist/index.js",
13
+ "line": 3435
14
+ },
15
+ "BlobsLibSQL": {
16
+ "types": "dist/storage/domains/blobs/index.d.ts",
17
+ "implementation": "dist/index.js",
18
+ "line": 3737
19
+ },
20
+ "ChannelsLibSQL": {
21
+ "types": "dist/storage/domains/channels/index.d.ts",
22
+ "implementation": "dist/index.js",
23
+ "line": 3835
24
+ },
25
+ "DatasetsLibSQL": {
26
+ "types": "dist/storage/domains/datasets/index.d.ts",
27
+ "implementation": "dist/index.js",
28
+ "line": 4032
29
+ },
30
+ "DefaultStorage": {
31
+ "types": "dist/storage/index.d.ts",
32
+ "implementation": "dist/index.js",
33
+ "line": 17333
34
+ },
35
+ "LibSQLStore": {
36
+ "types": "dist/storage/index.d.ts",
37
+ "implementation": "dist/index.js",
38
+ "line": 17333
39
+ },
40
+ "ExperimentsLibSQL": {
41
+ "types": "dist/storage/domains/experiments/index.d.ts",
42
+ "implementation": "dist/index.js",
43
+ "line": 5294
44
+ },
45
+ "FavoritesLibSQL": {
46
+ "types": "dist/storage/domains/favorites/index.d.ts",
47
+ "implementation": "dist/index.js",
48
+ "line": 6153
49
+ },
50
+ "HarnessLibSQL": {
51
+ "types": "dist/storage/domains/harness/index.d.ts",
52
+ "implementation": "dist/index.js",
53
+ "line": 6481
54
+ },
55
+ "KnowledgeLibSQL": {
56
+ "types": "dist/storage/domains/knowledge/index.d.ts",
57
+ "implementation": "dist/index.js",
58
+ "line": 8142
59
+ },
60
+ "LIBSQL_PROMPT": {
61
+ "types": "dist/vector/prompt.d.ts",
62
+ "implementation": "dist/index.js",
63
+ "line": 17532
64
+ },
65
+ "LibSQLFactoryStorage": {
66
+ "types": "dist/storage/factory-storage.d.ts",
67
+ "implementation": "dist/index.js",
68
+ "line": 17185
69
+ },
70
+ "LibSQLVector": {
71
+ "types": "dist/vector/index.d.ts",
72
+ "implementation": "dist/index.js",
73
+ "line": 839
74
+ },
75
+ "MCPClientsLibSQL": {
76
+ "types": "dist/storage/domains/mcp-clients/index.d.ts",
77
+ "implementation": "dist/index.js",
78
+ "line": 8337
79
+ },
80
+ "MCPServersLibSQL": {
81
+ "types": "dist/storage/domains/mcp-servers/index.d.ts",
82
+ "implementation": "dist/index.js",
83
+ "line": 8760
84
+ },
85
+ "MemoryLibSQL": {
86
+ "types": "dist/storage/domains/memory/index.d.ts",
87
+ "implementation": "dist/index.js",
88
+ "line": 9316
89
+ },
90
+ "NotificationsLibSQL": {
91
+ "types": "dist/storage/domains/notifications/index.d.ts",
92
+ "implementation": "dist/index.js",
93
+ "line": 11701
94
+ },
95
+ "ObservabilityLibSQL": {
96
+ "types": "dist/storage/domains/observability/index.d.ts",
97
+ "implementation": "dist/index.js",
98
+ "line": 12008
99
+ },
100
+ "PromptBlocksLibSQL": {
101
+ "types": "dist/storage/domains/prompt-blocks/index.d.ts",
102
+ "implementation": "dist/index.js",
103
+ "line": 12524
104
+ },
105
+ "SchedulesLibSQL": {
106
+ "types": "dist/storage/domains/schedules/index.d.ts",
107
+ "implementation": "dist/index.js",
108
+ "line": 13000
109
+ },
110
+ "ScorerDefinitionsLibSQL": {
111
+ "types": "dist/storage/domains/scorer-definitions/index.d.ts",
112
+ "implementation": "dist/index.js",
113
+ "line": 13298
114
+ },
115
+ "ScoresLibSQL": {
116
+ "types": "dist/storage/domains/scores/index.d.ts",
117
+ "implementation": "dist/index.js",
118
+ "line": 13736
119
+ },
120
+ "SkillsLibSQL": {
121
+ "types": "dist/storage/domains/skills/index.d.ts",
122
+ "implementation": "dist/index.js",
123
+ "line": 14078
124
+ },
125
+ "ThreadStateLibSQL": {
126
+ "types": "dist/storage/domains/thread-state/index.d.ts",
127
+ "implementation": "dist/index.js",
128
+ "line": 14634
129
+ },
130
+ "ToolProviderConnectionsLibSQL": {
131
+ "types": "dist/storage/domains/tool-provider-connections/index.d.ts",
132
+ "implementation": "dist/index.js",
133
+ "line": 14777
134
+ },
135
+ "WorkflowDefinitionsLibSQL": {
136
+ "types": "dist/storage/domains/workflow-definitions/index.d.ts",
137
+ "implementation": "dist/index.js",
138
+ "line": 15012
139
+ },
140
+ "WorkflowsLibSQL": {
141
+ "types": "dist/storage/domains/workflows/index.d.ts",
142
+ "implementation": "dist/index.js",
143
+ "line": 15370
144
+ },
145
+ "WorkspacesLibSQL": {
146
+ "types": "dist/storage/domains/workspaces/index.d.ts",
147
+ "implementation": "dist/index.js",
148
+ "line": 16422
149
+ }
150
+ },
151
+ "modules": {}
152
+ }