@mastra/memory 1.21.1 → 1.21.2-alpha.1
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 +19 -0
- package/dist/{chunk-2ZNDDQ6X.cjs → chunk-LEAP5DKB.cjs} +15 -8
- package/dist/chunk-LEAP5DKB.cjs.map +1 -0
- package/dist/{chunk-3I6H2ABM.js → chunk-UHQBCO7I.js} +15 -8
- package/dist/chunk-UHQBCO7I.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +27 -27
- package/dist/docs/references/docs-agents-background-tasks.md +5 -5
- package/dist/docs/references/docs-agents-goals.md +1 -1
- package/dist/docs/references/docs-agents-supervisor-agents.md +15 -0
- package/dist/docs/references/docs-memory-observational-memory.md +1 -3
- package/dist/docs/references/reference-memory-observational-memory.md +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.js +4 -4
- package/dist/{observational-memory-Y5T2OR2Y.js → observational-memory-NC6DQQWD.js} +3 -3
- package/dist/{observational-memory-Y5T2OR2Y.js.map → observational-memory-NC6DQQWD.js.map} +1 -1
- package/dist/{observational-memory-XZTKSWPR.cjs → observational-memory-WZ6JQ4JY.cjs} +26 -26
- package/dist/{observational-memory-XZTKSWPR.cjs.map → observational-memory-WZ6JQ4JY.cjs.map} +1 -1
- package/dist/processors/index.cjs +24 -24
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
- package/dist/processors/observational-memory/types.d.ts +1 -2
- package/dist/processors/observational-memory/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-2ZNDDQ6X.cjs.map +0 -1
- package/dist/chunk-3I6H2ABM.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 1.21.2-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed unhandled promise rejection when async buffered observation fails due to missing catch handler ([#18026](https://github.com/mastra-ai/mastra/pull/18026))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`0200e75`](https://github.com/mastra-ai/mastra/commit/0200e7552d02d4221cd6040bf4eddf189a97a156), [`06e0d63`](https://github.com/mastra-ai/mastra/commit/06e0d63d42bc2a202e18bc091f3781f409f5e6fb), [`438a971`](https://github.com/mastra-ai/mastra/commit/438a9715c8b4398e5eaf8914a1f19dc8a85dc1de), [`77518cc`](https://github.com/mastra-ai/mastra/commit/77518ccb5bb8cc684875081e64213dc85cffdbee), [`bb2a13b`](https://github.com/mastra-ai/mastra/commit/bb2a13bb4b32e6bb807200fe7b18ae8fa4322118), [`a73cd1a`](https://github.com/mastra-ai/mastra/commit/a73cd1a62a5e4ca023dcc39ba150029f4f1f74c1), [`0b5cc47`](https://github.com/mastra-ai/mastra/commit/0b5cc4726dc18d9a685a27520db39ff1b36bb89a), [`87f38a3`](https://github.com/mastra-ai/mastra/commit/87f38a3de03e24731f2dd6f8ed6a60b6722b85a1), [`d5fa3cd`](https://github.com/mastra-ai/mastra/commit/d5fa3cda1788c3cb93a361a3c6ec47de6ba21e98), [`fe98ef2`](https://github.com/mastra-ai/mastra/commit/fe98ef2e66dbfcbd7d645c88c9ee1e67b458a136), [`793ea0f`](https://github.com/mastra-ai/mastra/commit/793ea0f52f831178837f21c83af6af93bf4ce638), [`507a5c4`](https://github.com/mastra-ai/mastra/commit/507a5c461bdc3136ad80744c0efbb55ce1f18f97), [`79b3626`](https://github.com/mastra-ai/mastra/commit/79b3626f8d647307eb07c8da14c9073c2699719d)]:
|
|
10
|
+
- @mastra/core@1.47.0-alpha.6
|
|
11
|
+
- @mastra/schema-compat@1.3.1-alpha.0
|
|
12
|
+
|
|
13
|
+
## 1.21.2-alpha.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Removed experimental flag from retrieval-mode observational memory. The retrieval API is now stable. ([#18324](https://github.com/mastra-ai/mastra/pull/18324))
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`7f9ae70`](https://github.com/mastra-ai/mastra/commit/7f9ae70826b047e5a66218f9e92f20e54a2d791f), [`1505c07`](https://github.com/mastra-ai/mastra/commit/1505c07603f6346bae12aa82f140e8b88ffea9ab), [`e940f09`](https://github.com/mastra-ai/mastra/commit/e940f099ef5d18b403e6f2b4937e086a4da857b1)]:
|
|
20
|
+
- @mastra/core@1.46.1-alpha.1
|
|
21
|
+
|
|
3
22
|
## 1.21.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -8426,7 +8426,9 @@ ${grouped}` : grouped;
|
|
|
8426
8426
|
writer,
|
|
8427
8427
|
requestContext,
|
|
8428
8428
|
observabilityContext
|
|
8429
|
-
).
|
|
8429
|
+
).catch((err) => {
|
|
8430
|
+
omError("[OM] async buffering observation failed", err);
|
|
8431
|
+
}).finally(() => {
|
|
8430
8432
|
BufferingCoordinator.asyncBufferingOps.delete(bufferKey);
|
|
8431
8433
|
unregisterOp(record.id, "bufferingObservation");
|
|
8432
8434
|
this.storage.setBufferingObservationFlag(record.id, false).catch((err) => {
|
|
@@ -8479,11 +8481,16 @@ ${grouped}` : grouped;
|
|
|
8479
8481
|
}
|
|
8480
8482
|
const messagesToBuffer = candidateMessages;
|
|
8481
8483
|
this.sealMessagesForBuffering(messagesToBuffer);
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8484
|
+
try {
|
|
8485
|
+
await this.messageHistory.persistMessages({
|
|
8486
|
+
messages: messagesToBuffer,
|
|
8487
|
+
threadId,
|
|
8488
|
+
resourceId: freshRecord.resourceId ?? void 0
|
|
8489
|
+
});
|
|
8490
|
+
} catch (err) {
|
|
8491
|
+
omError("[OM] Failed to persist sealed messages before buffering \u2014 skipping observation cycle", err);
|
|
8492
|
+
return;
|
|
8493
|
+
}
|
|
8487
8494
|
const cycleId = `buffer-obs-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
8488
8495
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8489
8496
|
const tokensToBuffer = await this.tokenCounter.countMessagesAsync(messagesToBuffer);
|
|
@@ -10038,5 +10045,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
|
|
|
10038
10045
|
exports.stripObservationGroups = stripObservationGroups;
|
|
10039
10046
|
exports.truncateStringByTokens = truncateStringByTokens;
|
|
10040
10047
|
exports.wrapInObservationGroup = wrapInObservationGroup;
|
|
10041
|
-
//# sourceMappingURL=chunk-
|
|
10042
|
-
//# sourceMappingURL=chunk-
|
|
10048
|
+
//# sourceMappingURL=chunk-LEAP5DKB.cjs.map
|
|
10049
|
+
//# sourceMappingURL=chunk-LEAP5DKB.cjs.map
|