@mastra/memory 1.18.0 → 1.18.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 +46 -0
- package/README.md +25 -0
- package/dist/{chunk-LPMZNXSF.js → chunk-KGYJHNI6.js} +29 -2
- package/dist/chunk-KGYJHNI6.js.map +1 -0
- package/dist/{chunk-NRYX4QWV.cjs → chunk-LCRYFBV3.cjs} +29 -2
- package/dist/chunk-LCRYFBV3.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-memory-observational-memory.md +34 -0
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/{observational-memory-TZ67ZA32.cjs → observational-memory-5UNUGOE5.cjs} +26 -26
- package/dist/{observational-memory-TZ67ZA32.cjs.map → observational-memory-5UNUGOE5.cjs.map} +1 -1
- package/dist/{observational-memory-NL7AQHZV.js → observational-memory-7PMPJCPD.js} +3 -3
- package/dist/{observational-memory-NL7AQHZV.js.map → observational-memory-7PMPJCPD.js.map} +1 -1
- package/dist/processors/index.cjs +24 -24
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/token-counter.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-LPMZNXSF.js.map +0 -1
- package/dist/chunk-NRYX4QWV.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { truncateStringByTokens, resolveToolResultValue, formatToolResultForObserver } from './chunk-
|
|
2
|
-
export { ModelByInputTokens, getObservationsAsOf } from './chunk-
|
|
1
|
+
import { truncateStringByTokens, resolveToolResultValue, formatToolResultForObserver } from './chunk-KGYJHNI6.js';
|
|
2
|
+
export { ModelByInputTokens, getObservationsAsOf } from './chunk-KGYJHNI6.js';
|
|
3
3
|
import { ZodFirstPartyTypeKind } from 'zod/v3';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import * as z4 from 'zod/v4';
|
|
@@ -44,7 +44,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
44
|
mod
|
|
45
45
|
));
|
|
46
46
|
var require_secure_json_parse = __commonJS({
|
|
47
|
-
"../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports
|
|
47
|
+
"../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports, module) {
|
|
48
48
|
var hasBuffer = typeof Buffer !== "undefined";
|
|
49
49
|
var suspectProtoRx3 = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
|
|
50
50
|
var suspectConstructorRx3 = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
@@ -18052,7 +18052,7 @@ ${workingMemory}`;
|
|
|
18052
18052
|
"Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
|
|
18053
18053
|
);
|
|
18054
18054
|
}
|
|
18055
|
-
const { ObservationalMemory: OMClass } = await import('./observational-memory-
|
|
18055
|
+
const { ObservationalMemory: OMClass } = await import('./observational-memory-7PMPJCPD.js');
|
|
18056
18056
|
const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
|
|
18057
18057
|
await this.indexObservation(observation);
|
|
18058
18058
|
} : void 0;
|
|
@@ -18978,7 +18978,7 @@ Notes:
|
|
|
18978
18978
|
if (!effectiveConfig) return null;
|
|
18979
18979
|
const engine = await this.omEngine;
|
|
18980
18980
|
if (!engine) return null;
|
|
18981
|
-
const { ObservationalMemoryProcessor } = await import('./observational-memory-
|
|
18981
|
+
const { ObservationalMemoryProcessor } = await import('./observational-memory-7PMPJCPD.js');
|
|
18982
18982
|
return new ObservationalMemoryProcessor(engine, this, {
|
|
18983
18983
|
temporalMarkers: effectiveConfig.temporalMarkers
|
|
18984
18984
|
});
|