@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.
- package/CHANGELOG.md +9 -0
- package/dist/{chunk-M6QU3KKP.cjs → chunk-6ODYOMHN.cjs} +9 -2
- package/dist/chunk-6ODYOMHN.cjs.map +1 -0
- package/dist/{chunk-4C4ERX6N.js → chunk-Z5GWA7LB.js} +9 -2
- package/dist/chunk-Z5GWA7LB.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +29 -29
- package/dist/docs/references/docs-agents-supervisor-agents.md +16 -0
- package/dist/docs/references/reference-vectors-mongodb.md +0 -2
- package/dist/index.cjs +13 -13
- package/dist/index.js +4 -4
- package/dist/{observational-memory-TC2CBKCL.cjs → observational-memory-OVSEK47Z.cjs} +26 -26
- package/dist/{observational-memory-TC2CBKCL.cjs.map → observational-memory-OVSEK47Z.cjs.map} +1 -1
- package/dist/{observational-memory-ZS2HJPUO.js → observational-memory-UMDC4VC2.js} +3 -3
- package/dist/{observational-memory-ZS2HJPUO.js.map → observational-memory-UMDC4VC2.js.map} +1 -1
- package/dist/processors/index.cjs +24 -24
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/reflector-runner.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-4C4ERX6N.js.map +0 -1
- package/dist/chunk-M6QU3KKP.cjs.map +0 -1
|
@@ -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-
|
|
9347
|
-
//# sourceMappingURL=chunk-
|
|
9353
|
+
//# sourceMappingURL=chunk-Z5GWA7LB.js.map
|
|
9354
|
+
//# sourceMappingURL=chunk-Z5GWA7LB.js.map
|