@mastra/memory 1.17.6-alpha.0 → 1.17.6-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 +9 -0
- package/dist/{chunk-NUYSX3DD.js → chunk-QZGJY67D.js} +9 -5
- package/dist/chunk-QZGJY67D.js.map +1 -0
- package/dist/{chunk-ZUUSLGY6.cjs → chunk-WNLFJKTX.cjs} +9 -5
- package/dist/chunk-WNLFJKTX.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +39 -39
- package/dist/docs/references/docs-agents-background-tasks.md +62 -2
- package/dist/docs/references/docs-memory-observational-memory.md +7 -2
- package/dist/docs/references/docs-memory-overview.md +2 -1
- package/dist/index.cjs +298 -172
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +289 -163
- package/dist/index.js.map +1 -1
- package/dist/{observational-memory-BOXSRJOR.cjs → observational-memory-BJF72NKJ.cjs} +26 -26
- package/dist/{observational-memory-BOXSRJOR.cjs.map → observational-memory-BJF72NKJ.cjs.map} +1 -1
- package/dist/{observational-memory-KH7G7Y6B.js → observational-memory-HAJ3K5JJ.js} +3 -3
- package/dist/{observational-memory-KH7G7Y6B.js.map → observational-memory-HAJ3K5JJ.js.map} +1 -1
- package/dist/processors/index.cjs +24 -24
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/observation-strategies/resource-scoped.d.ts.map +1 -1
- package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-NUYSX3DD.js.map +0 -1
- package/dist/chunk-ZUUSLGY6.cjs.map +0 -1
|
@@ -1696,8 +1696,9 @@ var ResourceScopedObservationStrategy = class extends ObservationStrategy {
|
|
|
1696
1696
|
orderBy: { field: "createdAt", direction: "ASC" },
|
|
1697
1697
|
filter: startDate ? { dateRange: { start: startDate } } : void 0
|
|
1698
1698
|
});
|
|
1699
|
-
|
|
1700
|
-
|
|
1699
|
+
const messages = result.messages.filter((msg) => msg.role !== "system");
|
|
1700
|
+
if (messages.length > 0) {
|
|
1701
|
+
this.messagesByThread.set(thread.id, messages);
|
|
1701
1702
|
}
|
|
1702
1703
|
}
|
|
1703
1704
|
if (currentThreadMessages.length > 0) {
|
|
@@ -7426,6 +7427,9 @@ Async buffering is enabled by default \u2014 this opt-out is only needed when us
|
|
|
7426
7427
|
}
|
|
7427
7428
|
const result = [];
|
|
7428
7429
|
for (const msg of allMessages) {
|
|
7430
|
+
if (msg.role === "system") {
|
|
7431
|
+
continue;
|
|
7432
|
+
}
|
|
7429
7433
|
if (observedMessageIds?.has(msg.id)) {
|
|
7430
7434
|
continue;
|
|
7431
7435
|
}
|
|
@@ -7736,7 +7740,7 @@ ${suggestedResponse}
|
|
|
7736
7740
|
} : void 0
|
|
7737
7741
|
});
|
|
7738
7742
|
}
|
|
7739
|
-
return result.messages;
|
|
7743
|
+
return result.messages.filter((msg) => msg.role !== "system");
|
|
7740
7744
|
}
|
|
7741
7745
|
/**
|
|
7742
7746
|
* Format unobserved messages from other threads as <unobserved-context> blocks.
|
|
@@ -9473,5 +9477,5 @@ exports.stripEphemeralAnchorIds = stripEphemeralAnchorIds;
|
|
|
9473
9477
|
exports.stripObservationGroups = stripObservationGroups;
|
|
9474
9478
|
exports.truncateStringByTokens = truncateStringByTokens;
|
|
9475
9479
|
exports.wrapInObservationGroup = wrapInObservationGroup;
|
|
9476
|
-
//# sourceMappingURL=chunk-
|
|
9477
|
-
//# sourceMappingURL=chunk-
|
|
9480
|
+
//# sourceMappingURL=chunk-WNLFJKTX.cjs.map
|
|
9481
|
+
//# sourceMappingURL=chunk-WNLFJKTX.cjs.map
|