@mastra/memory 1.17.4 → 1.17.5-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.
@@ -4814,6 +4814,13 @@ ${unreflectedContent}` : freshRecord.bufferedReflection;
4814
4814
  `[OM:reflect] blockAfter exceeded (${observationTokens} >= ${this.reflectionConfig.blockAfter}), falling through to sync reflection`
4815
4815
  );
4816
4816
  } else {
4817
+ const activationPoint = reflectThreshold * this.reflectionConfig.bufferActivation;
4818
+ if (observationTokens < activationPoint) {
4819
+ omDebug(
4820
+ `[OM:reflect] skipping async reflection \u2014 observationTokens (${observationTokens}) below activation point (${activationPoint}), triggered by ${activationTriggeredBy}`
4821
+ );
4822
+ return;
4823
+ }
4817
4824
  omDebug(
4818
4825
  `[OM:reflect] async activation failed, no blockAfter or below it (obsTokens=${observationTokens}, blockAfter=${this.reflectionConfig.blockAfter}) \u2014 starting background reflection`
4819
4826
  );
@@ -9343,5 +9350,5 @@ function getObservationsAsOf(activeObservations, asOf) {
9343
9350
  }
9344
9351
 
9345
9352
  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 };
9346
- //# sourceMappingURL=chunk-4C4ERX6N.js.map
9347
- //# sourceMappingURL=chunk-4C4ERX6N.js.map
9353
+ //# sourceMappingURL=chunk-Z5GWA7LB.js.map
9354
+ //# sourceMappingURL=chunk-Z5GWA7LB.js.map