@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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { truncateStringByTokens, resolveToolResultValue, formatToolResultForObserver } from './chunk-LPMZNXSF.js';
2
- export { ModelByInputTokens, getObservationsAsOf } from './chunk-LPMZNXSF.js';
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$1, module) {
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-NL7AQHZV.js');
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-NL7AQHZV.js');
18981
+ const { ObservationalMemoryProcessor } = await import('./observational-memory-7PMPJCPD.js');
18982
18982
  return new ObservationalMemoryProcessor(engine, this, {
18983
18983
  temporalMarkers: effectiveConfig.temporalMarkers
18984
18984
  });