@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.
package/dist/index.js CHANGED
@@ -9352,6 +9352,10 @@ var MemoryLibSQL = class MemoryLibSQL extends MemoryStorage {
9352
9352
  } catch {
9353
9353
  existingChunks = [];
9354
9354
  }
9355
+ if (existingChunks.some((existing) => existing.cycleId === input.chunk.cycleId)) {
9356
+ await tx.commit();
9357
+ return;
9358
+ }
9355
9359
  const newChunk = {
9356
9360
  id: `ombuf-${randomUUID()}`,
9357
9361
  cycleId: input.chunk.cycleId,
@@ -10458,6 +10462,7 @@ var ObservabilityLibSQL = class ObservabilityLibSQL extends ObservabilityStorage
10458
10462
  }
10459
10463
  }
10460
10464
  async batchDeleteTraces(args) {
10465
+ this.assertUnscopedBatchDeleteTraces(args);
10461
10466
  try {
10462
10467
  const keys = args.traceIds.map((traceId) => ({ traceId }));
10463
10468
  return this.#db.batchDelete({