@mastra/memory 1.23.0 → 1.23.1-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 +9 -0
- package/dist/{chunk-6ACCFKAN.js → chunk-2DC67EL3.js} +5 -5
- package/dist/{chunk-6ACCFKAN.js.map → chunk-2DC67EL3.js.map} +1 -1
- package/dist/{chunk-42LZUXJ3.cjs → chunk-OHNH3BMB.cjs} +5 -5
- package/dist/{chunk-42LZUXJ3.cjs.map → chunk-OHNH3BMB.cjs.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +37 -37
- package/dist/docs/references/docs-memory-multi-user-threads.md +4 -4
- package/dist/docs/references/docs-memory-observational-memory.md +1 -1
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.js +1 -1
- package/dist/{observational-memory-OJN26RQ4.js → observational-memory-DH3LMZPZ.js} +3 -3
- package/dist/{observational-memory-OJN26RQ4.js.map → observational-memory-DH3LMZPZ.js.map} +1 -1
- package/dist/{observational-memory-2F4GJOP2.cjs → observational-memory-WJPGK55S.cjs} +29 -29
- package/dist/{observational-memory-2F4GJOP2.cjs.map → observational-memory-WJPGK55S.cjs.map} +1 -1
- package/dist/processors/index.cjs +27 -27
- package/dist/processors/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 1.23.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated the async-buffering compatibility error to include `@mastra/convex` in the list of storage adapters that support Observational Memory. ([#19474](https://github.com/mastra-ai/mastra/pull/19474))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`8a0d145`](https://github.com/mastra-ai/mastra/commit/8a0d145aadbdf7278665aceaaec364b35dd9bd94), [`bd2f1d2`](https://github.com/mastra-ai/mastra/commit/bd2f1d274d05e60e2366f005ea0d94d5cea0d5ff), [`21a0eb8`](https://github.com/mastra-ai/mastra/commit/21a0eb86746ba0b703acea360d4f84c6a5a493f2), [`de86fd7`](https://github.com/mastra-ai/mastra/commit/de86fd7119f0438381d1a642e3d258143c0b9c29), [`2745031`](https://github.com/mastra-ai/mastra/commit/2745031d1d4a4978f037092da371428c32e2842a), [`db650ce`](https://github.com/mastra-ai/mastra/commit/db650ce490348914e85b93651d83acdf8f2a4c31), [`6354eeb`](https://github.com/mastra-ai/mastra/commit/6354eeb32efa9f5f68f51dda394e90e2ee76f1fb)]:
|
|
10
|
+
- @mastra/core@1.51.1-alpha.0
|
|
11
|
+
|
|
3
12
|
## 1.23.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -25385,7 +25385,7 @@ ${workingMemory}`;
|
|
|
25385
25385
|
}
|
|
25386
25386
|
if (omConfig.observation?.bufferTokens !== false && !coreFeatures.has("asyncBuffering")) {
|
|
25387
25387
|
throw new Error(
|
|
25388
|
-
"Observational memory async buffering is enabled by default but the installed version of @mastra/core does not support it. Either upgrade @mastra/core, @mastra/memory, and your storage adapter (@mastra/libsql, @mastra/pg, or @mastra/
|
|
25388
|
+
"Observational memory async buffering is enabled by default but the installed version of @mastra/core does not support it. Either upgrade @mastra/core, @mastra/memory, and your storage adapter (@mastra/libsql, @mastra/pg, @mastra/mongodb, or @mastra/convex) to the latest version, or explicitly disable async buffering by setting `observation: { bufferTokens: false }` in your observationalMemory config."
|
|
25389
25389
|
);
|
|
25390
25390
|
}
|
|
25391
25391
|
if (!coreFeatures.has("request-response-id-rotation")) {
|
|
@@ -25393,7 +25393,7 @@ ${workingMemory}`;
|
|
|
25393
25393
|
"Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
|
|
25394
25394
|
);
|
|
25395
25395
|
}
|
|
25396
|
-
const { ObservationalMemory: OMClass } = await import('./observational-memory-
|
|
25396
|
+
const { ObservationalMemory: OMClass } = await import('./observational-memory-DH3LMZPZ.js');
|
|
25397
25397
|
const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
|
|
25398
25398
|
await this.indexObservation(observation);
|
|
25399
25399
|
} : void 0;
|
|
@@ -26441,7 +26441,7 @@ Notes:
|
|
|
26441
26441
|
if (!effectiveConfig) return null;
|
|
26442
26442
|
const engine = await this.omEngine;
|
|
26443
26443
|
if (!engine) return null;
|
|
26444
|
-
const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-
|
|
26444
|
+
const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-DH3LMZPZ.js');
|
|
26445
26445
|
return new ObservationalMemoryProcessor2(engine, this, {
|
|
26446
26446
|
temporalMarkers: effectiveConfig.temporalMarkers
|
|
26447
26447
|
});
|
|
@@ -31394,5 +31394,5 @@ function getObservationsAsOf(activeObservations, asOf) {
|
|
|
31394
31394
|
}
|
|
31395
31395
|
|
|
31396
31396
|
export { Extractor, Memory, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, SUMMARIZE_THREAD_DEFAULTS, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deepMergeWorkingMemory, deriveObservationGroupProvenance, extractCurrentTask, extractWorkingMemoryContent, extractWorkingMemoryTags, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, removeWorkingMemoryTags, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup };
|
|
31397
|
-
//# sourceMappingURL=chunk-
|
|
31398
|
-
//# sourceMappingURL=chunk-
|
|
31397
|
+
//# sourceMappingURL=chunk-2DC67EL3.js.map
|
|
31398
|
+
//# sourceMappingURL=chunk-2DC67EL3.js.map
|