@mastra/memory 1.17.4-alpha.0 → 1.17.4

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,14 @@
1
1
  # @mastra/memory
2
2
 
3
+ ## 1.17.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed idle timeout and provider-change observation activations blocking on in-progress reflection buffering. These triggers now return immediately, letting the background reflection complete asynchronously. ([#15937](https://github.com/mastra-ai/mastra/pull/15937))
8
+
9
+ - Updated dependencies [[`920c757`](https://github.com/mastra-ai/mastra/commit/920c75799c6bd71787d86deaf654a35af4c839ca), [`d587199`](https://github.com/mastra-ai/mastra/commit/d5871993c0371bde2b0717d6b47194755baa1443), [`1fe2533`](https://github.com/mastra-ai/mastra/commit/1fe2533c4382ca6858aac7c4b63e888c2eac6541), [`f8694b6`](https://github.com/mastra-ai/mastra/commit/f8694b6fa0b7a5cde71d794c3bbef4957c55bcb8)]:
10
+ - @mastra/core@1.30.0
11
+
3
12
  ## 1.17.4-alpha.0
4
13
 
5
14
  ### Patch Changes
@@ -9170,6 +9170,15 @@ var ObservationalMemoryProcessor = class {
9170
9170
  if (readOnly) {
9171
9171
  return messageList;
9172
9172
  }
9173
+ const activeTurn = state.__omTurn ?? this.turn;
9174
+ if (activeTurn && activeTurn.messageList !== messageList) {
9175
+ await activeTurn.end().catch(() => {
9176
+ });
9177
+ if (this.turn === activeTurn) {
9178
+ this.turn = void 0;
9179
+ }
9180
+ state.__omTurn = void 0;
9181
+ }
9173
9182
  if (!this.turn || !state.__omTurn) {
9174
9183
  if (this.turn && !state.__omTurn) {
9175
9184
  await this.turn.end().catch(() => {
@@ -9334,5 +9343,5 @@ function getObservationsAsOf(activeObservations, asOf) {
9334
9343
  }
9335
9344
 
9336
9345
  export { ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, formatToolResultForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, resolveToolResultValue, stripEphemeralAnchorIds, stripObservationGroups, truncateStringByTokens, wrapInObservationGroup };
9337
- //# sourceMappingURL=chunk-XLJGXHP5.js.map
9338
- //# sourceMappingURL=chunk-XLJGXHP5.js.map
9346
+ //# sourceMappingURL=chunk-4C4ERX6N.js.map
9347
+ //# sourceMappingURL=chunk-4C4ERX6N.js.map