@mastra/memory 1.39.1-alpha.3 → 1.39.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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +56 -56
- package/dist/docs/references/docs-memory-semantic-recall.md +4 -2
- package/dist/docs/references/reference-memory-cloneThread.md +2 -2
- package/dist/docs/references/reference-memory-memory-class.md +8 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/processors/index.cjs +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/date-utils.d.ts.map +1 -1
- package/dist/{src-kIpEG6XZ.js → src-CLQXrKvR.js} +3 -3
- package/dist/{src-kIpEG6XZ.js.map → src-CLQXrKvR.js.map} +1 -1
- package/dist/{src-IwP0x4uF.cjs → src-DnCjNqwE.cjs} +3 -3
- package/dist/{src-IwP0x4uF.cjs.map → src-DnCjNqwE.cjs.map} +1 -1
- package/package.json +9 -9
|
@@ -27678,7 +27678,7 @@ function formatGapBetweenDates(prevDate, currDate) {
|
|
|
27678
27678
|
else if (diffDays < 14) return `[1 week later]`;
|
|
27679
27679
|
else if (diffDays < 30) return `[${Math.floor(diffDays / 7)} weeks later]`;
|
|
27680
27680
|
else if (diffDays < 60) return `[1 month later]`;
|
|
27681
|
-
|
|
27681
|
+
return `[${Math.floor(diffDays / 30)} months later]`;
|
|
27682
27682
|
}
|
|
27683
27683
|
const MONTH_INDEX = {
|
|
27684
27684
|
jan: 0,
|
|
@@ -44684,7 +44684,7 @@ Notes:
|
|
|
44684
44684
|
messageIds = input.map((item) => {
|
|
44685
44685
|
if (typeof item === "string") return item;
|
|
44686
44686
|
else if (item && typeof item === "object" && "id" in item) return item.id;
|
|
44687
|
-
|
|
44687
|
+
throw new Error("Invalid input: array items must be strings or objects with an id property");
|
|
44688
44688
|
});
|
|
44689
44689
|
if (messageIds.filter((id) => !id || typeof id !== "string").length > 0) throw new Error("All message IDs must be non-empty strings");
|
|
44690
44690
|
const span = this.createMemorySpan("delete", observabilityContext, void 0, { messageCount: messageIds.length });
|
|
@@ -45644,4 +45644,4 @@ Object.defineProperty(exports, "wrapInObservationGroup", {
|
|
|
45644
45644
|
}
|
|
45645
45645
|
});
|
|
45646
45646
|
|
|
45647
|
-
//# sourceMappingURL=src-
|
|
45647
|
+
//# sourceMappingURL=src-DnCjNqwE.cjs.map
|