@mastra/spanner 1.6.0-alpha.1 → 1.6.0-alpha.3

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
@@ -6324,6 +6324,7 @@ function buildSpannerMessageMetadataFilter(metadataFilter) {
6324
6324
  * (the durable state surface used by `@mastra/memory`).
6325
6325
  */
6326
6326
  var MemorySpanner = class MemorySpanner extends MemoryStorage {
6327
+ supportsPartialThreadUpdate = true;
6327
6328
  database;
6328
6329
  db;
6329
6330
  skipDefaultIndexes;
@@ -6602,7 +6603,7 @@ var MemorySpanner = class MemorySpanner extends MemoryStorage {
6602
6603
  text: `Thread ${id} not found`,
6603
6604
  details: {
6604
6605
  threadId: id,
6605
- title
6606
+ title: title ?? null
6606
6607
  }
6607
6608
  });
6608
6609
  existingThread = this.formatThreadRow(row);
@@ -6614,7 +6615,7 @@ var MemorySpanner = class MemorySpanner extends MemoryStorage {
6614
6615
  tableName: TABLE_THREADS,
6615
6616
  keys: { id },
6616
6617
  data: {
6617
- title,
6618
+ title: title ?? existingThread.title,
6618
6619
  metadata: merged,
6619
6620
  updatedAt: now
6620
6621
  },
@@ -6642,7 +6643,7 @@ var MemorySpanner = class MemorySpanner extends MemoryStorage {
6642
6643
  category: ErrorCategory.THIRD_PARTY,
6643
6644
  details: {
6644
6645
  threadId: id,
6645
- title
6646
+ title: title ?? null
6646
6647
  }
6647
6648
  }, error);
6648
6649
  }