@mastra/libsql 1.22.3 → 1.22.4-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.
@@ -3,7 +3,7 @@ name: mastra-libsql
3
3
  description: Documentation for @mastra/libsql. Use when working with @mastra/libsql APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/libsql"
6
- version: "1.22.3"
6
+ version: "1.22.4-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.22.3",
2
+ "version": "1.22.4-alpha.0",
3
3
  "package": "@mastra/libsql",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -285,6 +285,8 @@ curl http://localhost:4111/api/agents
285
285
 
286
286
  ### Kubernetes
287
287
 
288
+ > **Helm:** On Kubernetes, the [`mastra-projects` Helm chart](https://mastra.ai/integrations/deploy/kubernetes-helm) renders these deployments for you, with the workers on the same image and environment as the server. It also refuses to install combinations that would run every worker twice. The manifests below are for writing them by hand.
289
+
288
290
  Create separate Deployments for the API, orchestration worker, scheduler worker, and background task worker. Use the same image and Secret for each Deployment. Set only the role-specific environment variables directly on each container.
289
291
 
290
292
  The orchestration worker Deployment has the following shape:
@@ -391,4 +393,5 @@ If the API crashes while a step is executing, that work can be lost and the work
391
393
  - [Workers reference](https://mastra.ai/reference/workers/overview): Details about worker environment variables and types, with a list of supported storage backends
392
394
  - [CLI reference](https://mastra.ai/reference/cli/mastra): `mastra worker build` and `mastra worker start`
393
395
  - [PubSub](https://mastra.ai/docs/server/pubsub): Event delivery backends
396
+ - [Kubernetes (Helm)](https://mastra.ai/integrations/deploy/kubernetes-helm): Deploy worker roles with the official chart
394
397
  - [Scheduled workflows](https://mastra.ai/docs/workflows/scheduled-workflows): Declare cron schedules on workflows
@@ -205,6 +205,7 @@ Each provider page includes installation instructions, configuration parameters,
205
205
  - [libSQL](https://mastra.ai/integrations/databases/libsql)
206
206
  - [Mastra](https://mastra.ai/docs/mastra-platform/database)
207
207
  - [MongoDB](https://mastra.ai/integrations/databases/mongodb)
208
+ - [MySQL](https://mastra.ai/integrations/databases/mysql)
208
209
  - [MSSQL](https://mastra.ai/integrations/databases/mssql)
209
210
  - [Neon Postgres](https://mastra.ai/integrations/databases/neon)
210
211
  - [OracleDB](https://mastra.ai/integrations/databases/oracledb)
package/dist/index.cjs CHANGED
@@ -9353,6 +9353,10 @@ var MemoryLibSQL = class MemoryLibSQL extends _mastra_core_storage.MemoryStorage
9353
9353
  } catch {
9354
9354
  existingChunks = [];
9355
9355
  }
9356
+ if (existingChunks.some((existing) => existing.cycleId === input.chunk.cycleId)) {
9357
+ await tx.commit();
9358
+ return;
9359
+ }
9356
9360
  const newChunk = {
9357
9361
  id: `ombuf-${(0, crypto$1.randomUUID)()}`,
9358
9362
  cycleId: input.chunk.cycleId,
@@ -10459,6 +10463,7 @@ var ObservabilityLibSQL = class ObservabilityLibSQL extends _mastra_core_storage
10459
10463
  }
10460
10464
  }
10461
10465
  async batchDeleteTraces(args) {
10466
+ this.assertUnscopedBatchDeleteTraces(args);
10462
10467
  try {
10463
10468
  const keys = args.traceIds.map((traceId) => ({ traceId }));
10464
10469
  return this.#db.batchDelete({