@mastra/server 1.58.0-alpha.13 → 1.58.0-alpha.14

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.58.0-alpha.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`210cb7a`](https://github.com/mastra-ai/mastra/commit/210cb7a167998c7bbf72cb3b93e6eb0563330239), [`5f798b3`](https://github.com/mastra-ai/mastra/commit/5f798b3362e9bdf4d690f85245606e146eef60b9), [`01a2943`](https://github.com/mastra-ai/mastra/commit/01a2943a7d886edefdff072bfa51f055bab54437), [`01a2943`](https://github.com/mastra-ai/mastra/commit/01a2943a7d886edefdff072bfa51f055bab54437), [`25ca73d`](https://github.com/mastra-ai/mastra/commit/25ca73d25dee7ce9f0ca72939e3a505c4db7257e), [`e1cead1`](https://github.com/mastra-ai/mastra/commit/e1cead17b5f3653cf00d2f90cc19b113119c02ba), [`01a2943`](https://github.com/mastra-ai/mastra/commit/01a2943a7d886edefdff072bfa51f055bab54437)]:
8
+ - @mastra/core@1.58.0-alpha.14
9
+
3
10
  ## 1.58.0-alpha.13
4
11
 
5
12
  ### Minor Changes
@@ -4693,7 +4693,7 @@ function splitLines(text) {
4693
4693
  return result;
4694
4694
  }
4695
4695
  //#endregion
4696
- //#region ../memory/dist/src-B_n15_Xg.js
4696
+ //#region ../memory/dist/src-DGdlH4fo.js
4697
4697
  var __defProp$3 = Object.defineProperty;
4698
4698
  var __exportAll = (all, no_symbols) => {
4699
4699
  let target = {};
@@ -25971,7 +25971,7 @@ var SyncObservationStrategy = class extends ObservationStrategy {
25971
25971
  },
25972
25972
  lastObservedMessageCursor: getLastObservedMessageCursor(messages)
25973
25973
  });
25974
- await this.storage.updateThread({
25974
+ await this.storage.patchThread({
25975
25975
  id: threadId,
25976
25976
  ...shouldUpdateThreadTitle ? { title: newTitle } : {},
25977
25977
  metadata: newMetadata
@@ -26161,7 +26161,7 @@ var AsyncBufferObservationStrategy = class extends ObservationStrategy {
26161
26161
  ...metadataUpdate.extracted ?? {}
26162
26162
  }
26163
26163
  });
26164
- await this.storage.updateThread({
26164
+ await this.storage.patchThread({
26165
26165
  id: threadId,
26166
26166
  ...shouldUpdateThreadTitle ? { title: newTitle } : {},
26167
26167
  metadata: newMetadata
@@ -26504,7 +26504,7 @@ var ResourceScopedObservationStrategy = class extends ObservationStrategy {
26504
26504
  },
26505
26505
  lastObservedMessageCursor: update.lastObservedMessageCursor
26506
26506
  });
26507
- await this.storage.updateThread({
26507
+ await this.storage.patchThread({
26508
26508
  id: update.threadId,
26509
26509
  ...shouldUpdateThreadTitle ? { title: newTitle } : {},
26510
26510
  metadata: newMetadata
@@ -27435,7 +27435,7 @@ async function persistThreadExtractedValues(storage, extractors, threadId, value
27435
27435
  ...metadataUpdate.extracted ?? {}
27436
27436
  }
27437
27437
  });
27438
- await storage.updateThread({
27438
+ await storage.patchThread({
27439
27439
  id: threadId,
27440
27440
  metadata: newMetadata
27441
27441
  });
@@ -30402,7 +30402,7 @@ ${formattedMessages}
30402
30402
  const oldTitle = thread.title?.trim();
30403
30403
  const newTitle = chunkThreadTitle?.trim();
30404
30404
  const shouldUpdateThreadTitle = !!newTitle && newTitle.length >= 3 && newTitle !== oldTitle;
30405
- await this.storage.updateThread({
30405
+ await this.storage.patchThread({
30406
30406
  id: threadId,
30407
30407
  ...shouldUpdateThreadTitle ? { title: newTitle } : {},
30408
30408
  metadata: newMetadata
@@ -30620,7 +30620,7 @@ ${formattedMessages}
30620
30620
  ...metadataUpdate.extracted ?? {}
30621
30621
  }
30622
30622
  });
30623
- await this.storage.updateThread({
30623
+ await this.storage.patchThread({
30624
30624
  id: threadId,
30625
30625
  metadata: newMetadata
30626
30626
  });
@@ -31647,7 +31647,7 @@ var Memory = class extends MastraMemory {
31647
31647
  return savedThread;
31648
31648
  }
31649
31649
  async updateThread({ id, title, metadata, memoryConfig }) {
31650
- const updatedThread = await (await this.getMemoryStore()).updateThread({
31650
+ const updatedThread = await (await this.getMemoryStore()).patchThread({
31651
31651
  id,
31652
31652
  title,
31653
31653
  metadata
@@ -31738,7 +31738,7 @@ var Memory = class extends MastraMemory {
31738
31738
  else {
31739
31739
  const thread = await this.getThreadById({ threadId });
31740
31740
  if (!thread) throw new Error(`Thread ${threadId} not found`);
31741
- await memoryStore.updateThread({
31741
+ await memoryStore.patchThread({
31742
31742
  id: threadId,
31743
31743
  metadata: {
31744
31744
  ...thread.metadata,
@@ -31826,7 +31826,7 @@ ${workingMemory}`;
31826
31826
  } else {
31827
31827
  const thread = await this.getThreadById({ threadId });
31828
31828
  if (!thread) throw new Error(`Thread ${threadId} not found`);
31829
- await memoryStore.updateThread({
31829
+ await memoryStore.patchThread({
31830
31830
  id: threadId,
31831
31831
  metadata: {
31832
31832
  ...thread.metadata,
@@ -43543,4 +43543,4 @@ const agentBuilderWorkflows = {
43543
43543
  //#endregion
43544
43544
  export { agentBuilderWorkflows };
43545
43545
 
43546
- //# sourceMappingURL=dist-CzzxT_L5.js.map
43546
+ //# sourceMappingURL=dist-7r8jzEWH.js.map