@mastra/memory 1.17.4-alpha.0 → 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 +18 -0
- package/dist/{chunk-BGVQRC2E.cjs → chunk-6ODYOMHN.cjs} +18 -2
- package/dist/chunk-6ODYOMHN.cjs.map +1 -0
- package/dist/{chunk-XLJGXHP5.js → chunk-Z5GWA7LB.js} +18 -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-JAQ5VAO3.cjs → observational-memory-OVSEK47Z.cjs} +26 -26
- package/dist/{observational-memory-JAQ5VAO3.cjs.map → observational-memory-OVSEK47Z.cjs.map} +1 -1
- package/dist/{observational-memory-JX7VDONY.js → observational-memory-UMDC4VC2.js} +3 -3
- package/dist/{observational-memory-JX7VDONY.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/processor.d.ts.map +1 -1
- package/dist/processors/observational-memory/reflector-runner.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-BGVQRC2E.cjs.map +0 -1
- package/dist/chunk-XLJGXHP5.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 1.17.5-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed async reflection buffering incorrectly triggering during idle timeout and provider-change activations when observation tokens are below the reflection activation threshold ([#16076](https://github.com/mastra-ai/mastra/pull/16076))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c05c9a1`](https://github.com/mastra-ai/mastra/commit/c05c9a13230988cef6d438a62f37760f31927bc7), [`e24aacb`](https://github.com/mastra-ai/mastra/commit/e24aacba07bd66f5d95b636dc24016fca26b52cf), [`c721164`](https://github.com/mastra-ai/mastra/commit/c7211643f7ac861f83b19a3757cc921487fc9d75), [`1b55954`](https://github.com/mastra-ai/mastra/commit/1b559541c1e08a10e49d01ffc51a634dfc37a286), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`70017d7`](https://github.com/mastra-ai/mastra/commit/70017d72ab741b5d7040e2a15c251a317782e39e), [`e4942bc`](https://github.com/mastra-ai/mastra/commit/e4942bc7fdc903572f7d84f26d5e15f9d39c763d)]:
|
|
10
|
+
- @mastra/core@1.32.0-alpha.1
|
|
11
|
+
|
|
12
|
+
## 1.17.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 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))
|
|
17
|
+
|
|
18
|
+
- 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)]:
|
|
19
|
+
- @mastra/core@1.30.0
|
|
20
|
+
|
|
3
21
|
## 1.17.4-alpha.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -4821,6 +4821,13 @@ ${unreflectedContent}` : freshRecord.bufferedReflection;
|
|
|
4821
4821
|
`[OM:reflect] blockAfter exceeded (${observationTokens} >= ${this.reflectionConfig.blockAfter}), falling through to sync reflection`
|
|
4822
4822
|
);
|
|
4823
4823
|
} else {
|
|
4824
|
+
const activationPoint = reflectThreshold * this.reflectionConfig.bufferActivation;
|
|
4825
|
+
if (observationTokens < activationPoint) {
|
|
4826
|
+
omDebug(
|
|
4827
|
+
`[OM:reflect] skipping async reflection \u2014 observationTokens (${observationTokens}) below activation point (${activationPoint}), triggered by ${activationTriggeredBy}`
|
|
4828
|
+
);
|
|
4829
|
+
return;
|
|
4830
|
+
}
|
|
4824
4831
|
omDebug(
|
|
4825
4832
|
`[OM:reflect] async activation failed, no blockAfter or below it (obsTokens=${observationTokens}, blockAfter=${this.reflectionConfig.blockAfter}) \u2014 starting background reflection`
|
|
4826
4833
|
);
|
|
@@ -9177,6 +9184,15 @@ var ObservationalMemoryProcessor = class {
|
|
|
9177
9184
|
if (readOnly) {
|
|
9178
9185
|
return messageList;
|
|
9179
9186
|
}
|
|
9187
|
+
const activeTurn = state.__omTurn ?? this.turn;
|
|
9188
|
+
if (activeTurn && activeTurn.messageList !== messageList) {
|
|
9189
|
+
await activeTurn.end().catch(() => {
|
|
9190
|
+
});
|
|
9191
|
+
if (this.turn === activeTurn) {
|
|
9192
|
+
this.turn = void 0;
|
|
9193
|
+
}
|
|
9194
|
+
state.__omTurn = void 0;
|
|
9195
|
+
}
|
|
9180
9196
|
if (!this.turn || !state.__omTurn) {
|
|
9181
9197
|
if (this.turn && !state.__omTurn) {
|
|
9182
9198
|
await this.turn.end().catch(() => {
|
|
@@ -9366,5 +9382,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
|
|
|
9366
9382
|
exports.stripObservationGroups = stripObservationGroups;
|
|
9367
9383
|
exports.truncateStringByTokens = truncateStringByTokens;
|
|
9368
9384
|
exports.wrapInObservationGroup = wrapInObservationGroup;
|
|
9369
|
-
//# sourceMappingURL=chunk-
|
|
9370
|
-
//# sourceMappingURL=chunk-
|
|
9385
|
+
//# sourceMappingURL=chunk-6ODYOMHN.cjs.map
|
|
9386
|
+
//# sourceMappingURL=chunk-6ODYOMHN.cjs.map
|