@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 +9 -0
- package/dist/{chunk-XLJGXHP5.js → chunk-4C4ERX6N.js} +11 -2
- package/dist/chunk-4C4ERX6N.js.map +1 -0
- package/dist/{chunk-BGVQRC2E.cjs → chunk-M6QU3KKP.cjs} +11 -2
- package/dist/chunk-M6QU3KKP.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +26 -26
- package/dist/index.cjs +13 -13
- package/dist/index.js +4 -4
- package/dist/{observational-memory-JAQ5VAO3.cjs → observational-memory-TC2CBKCL.cjs} +26 -26
- package/dist/{observational-memory-JAQ5VAO3.cjs.map → observational-memory-TC2CBKCL.cjs.map} +1 -1
- package/dist/{observational-memory-JX7VDONY.js → observational-memory-ZS2HJPUO.js} +3 -3
- package/dist/{observational-memory-JX7VDONY.js.map → observational-memory-ZS2HJPUO.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/package.json +7 -7
- package/dist/chunk-BGVQRC2E.cjs.map +0 -1
- package/dist/chunk-XLJGXHP5.js.map +0 -1
|
@@ -9177,6 +9177,15 @@ var ObservationalMemoryProcessor = class {
|
|
|
9177
9177
|
if (readOnly) {
|
|
9178
9178
|
return messageList;
|
|
9179
9179
|
}
|
|
9180
|
+
const activeTurn = state.__omTurn ?? this.turn;
|
|
9181
|
+
if (activeTurn && activeTurn.messageList !== messageList) {
|
|
9182
|
+
await activeTurn.end().catch(() => {
|
|
9183
|
+
});
|
|
9184
|
+
if (this.turn === activeTurn) {
|
|
9185
|
+
this.turn = void 0;
|
|
9186
|
+
}
|
|
9187
|
+
state.__omTurn = void 0;
|
|
9188
|
+
}
|
|
9180
9189
|
if (!this.turn || !state.__omTurn) {
|
|
9181
9190
|
if (this.turn && !state.__omTurn) {
|
|
9182
9191
|
await this.turn.end().catch(() => {
|
|
@@ -9366,5 +9375,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
|
|
|
9366
9375
|
exports.stripObservationGroups = stripObservationGroups;
|
|
9367
9376
|
exports.truncateStringByTokens = truncateStringByTokens;
|
|
9368
9377
|
exports.wrapInObservationGroup = wrapInObservationGroup;
|
|
9369
|
-
//# sourceMappingURL=chunk-
|
|
9370
|
-
//# sourceMappingURL=chunk-
|
|
9378
|
+
//# sourceMappingURL=chunk-M6QU3KKP.cjs.map
|
|
9379
|
+
//# sourceMappingURL=chunk-M6QU3KKP.cjs.map
|