@mastra/memory 1.16.0-alpha.2 → 1.16.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.
@@ -659,7 +659,7 @@ function sortThreadsByOldestMessage(messagesByThread) {
659
659
  })).sort((a, b) => a.oldestTimestamp - b.oldestTimestamp).map((t) => t.threadId);
660
660
  }
661
661
  function stripThreadTags(observations) {
662
- return observations.replace(/<thread[^>]*>|<\/thread>/gi, "").trim();
662
+ return observations.replace(/<\/?thread\b[^>]{0,1024}>/gi, "").trim();
663
663
  }
664
664
 
665
665
  // src/processors/observational-memory/model-by-input-tokens.ts
@@ -9106,5 +9106,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
9106
9106
  exports.stripObservationGroups = stripObservationGroups;
9107
9107
  exports.truncateStringByTokens = truncateStringByTokens;
9108
9108
  exports.wrapInObservationGroup = wrapInObservationGroup;
9109
- //# sourceMappingURL=chunk-EOHXGI4J.cjs.map
9110
- //# sourceMappingURL=chunk-EOHXGI4J.cjs.map
9109
+ //# sourceMappingURL=chunk-3MHY4GB4.cjs.map
9110
+ //# sourceMappingURL=chunk-3MHY4GB4.cjs.map