@mastra/memory 1.41.3-alpha.0 → 1.41.3-alpha.2

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.
Files changed (90) hide show
  1. package/dist/docs/SKILL.md +1 -1
  2. package/dist/docs/assets/SOURCE_MAP.json +71 -71
  3. package/dist/docs/references/docs-memory-observational-memory.md +3 -3
  4. package/dist/docs/references/docs-memory-working-memory.md +33 -0
  5. package/dist/hooks.cjs +0 -2
  6. package/dist/hooks.js +0 -2
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.d.ts +26 -3
  9. package/dist/index.js +1 -1
  10. package/dist/processors/index.cjs +1 -1
  11. package/dist/processors/index.js +1 -1
  12. package/dist/processors/working-memory-instruction-compat.d.ts +54 -0
  13. package/dist/{src-ibq9d-g9.cjs → src-BC-wnTHt.cjs} +239 -43
  14. package/dist/{src-CTZXQELy.js → src-CRmfe-8x.js} +239 -43
  15. package/package.json +6 -5
  16. package/dist/hooks.cjs.map +0 -1
  17. package/dist/hooks.d.ts.map +0 -1
  18. package/dist/hooks.js.map +0 -1
  19. package/dist/index.d.ts.map +0 -1
  20. package/dist/persistence-projection.test-utils.d.ts.map +0 -1
  21. package/dist/processors/index.d.ts.map +0 -1
  22. package/dist/processors/observational-memory/activation-ttl.d.ts.map +0 -1
  23. package/dist/processors/observational-memory/anchor-ids.d.ts.map +0 -1
  24. package/dist/processors/observational-memory/auto-model.d.ts.map +0 -1
  25. package/dist/processors/observational-memory/buffering-coordinator.d.ts.map +0 -1
  26. package/dist/processors/observational-memory/built-in-extractors.d.ts.map +0 -1
  27. package/dist/processors/observational-memory/commit-queue.d.ts.map +0 -1
  28. package/dist/processors/observational-memory/constants.d.ts.map +0 -1
  29. package/dist/processors/observational-memory/date-utils.d.ts.map +0 -1
  30. package/dist/processors/observational-memory/debug.d.ts.map +0 -1
  31. package/dist/processors/observational-memory/error.d.ts.map +0 -1
  32. package/dist/processors/observational-memory/extracted-values.d.ts.map +0 -1
  33. package/dist/processors/observational-memory/extraction-runner.d.ts.map +0 -1
  34. package/dist/processors/observational-memory/extractor.d.ts.map +0 -1
  35. package/dist/processors/observational-memory/hooks.d.ts.map +0 -1
  36. package/dist/processors/observational-memory/index.d.ts.map +0 -1
  37. package/dist/processors/observational-memory/internal-request-context.d.ts.map +0 -1
  38. package/dist/processors/observational-memory/markers.d.ts.map +0 -1
  39. package/dist/processors/observational-memory/measure-image-buffer.d.ts.map +0 -1
  40. package/dist/processors/observational-memory/message-utils.d.ts.map +0 -1
  41. package/dist/processors/observational-memory/model-by-input-tokens.d.ts.map +0 -1
  42. package/dist/processors/observational-memory/model-context.d.ts.map +0 -1
  43. package/dist/processors/observational-memory/observation-groups.d.ts.map +0 -1
  44. package/dist/processors/observational-memory/observation-strategies/async-buffer.d.ts.map +0 -1
  45. package/dist/processors/observational-memory/observation-strategies/base.d.ts.map +0 -1
  46. package/dist/processors/observational-memory/observation-strategies/index.d.ts.map +0 -1
  47. package/dist/processors/observational-memory/observation-strategies/resource-scoped.d.ts.map +0 -1
  48. package/dist/processors/observational-memory/observation-strategies/sync.d.ts.map +0 -1
  49. package/dist/processors/observational-memory/observation-strategies/thread-title.d.ts.map +0 -1
  50. package/dist/processors/observational-memory/observation-strategies/types.d.ts.map +0 -1
  51. package/dist/processors/observational-memory/observation-turn/index.d.ts.map +0 -1
  52. package/dist/processors/observational-memory/observation-turn/load-memory-context.d.ts.map +0 -1
  53. package/dist/processors/observational-memory/observation-turn/safe-buffer-prefix.d.ts.map +0 -1
  54. package/dist/processors/observational-memory/observation-turn/step.d.ts.map +0 -1
  55. package/dist/processors/observational-memory/observation-turn/turn.d.ts.map +0 -1
  56. package/dist/processors/observational-memory/observation-turn/types.d.ts.map +0 -1
  57. package/dist/processors/observational-memory/observation-utils.d.ts.map +0 -1
  58. package/dist/processors/observational-memory/observational-memory.d.ts.map +0 -1
  59. package/dist/processors/observational-memory/observer-agent.d.ts.map +0 -1
  60. package/dist/processors/observational-memory/observer-runner.d.ts.map +0 -1
  61. package/dist/processors/observational-memory/operation-registry.d.ts.map +0 -1
  62. package/dist/processors/observational-memory/processor.d.ts.map +0 -1
  63. package/dist/processors/observational-memory/record-lineage.d.ts.map +0 -1
  64. package/dist/processors/observational-memory/reflector-agent.d.ts.map +0 -1
  65. package/dist/processors/observational-memory/reflector-runner.d.ts.map +0 -1
  66. package/dist/processors/observational-memory/repro-capture.d.ts.map +0 -1
  67. package/dist/processors/observational-memory/retry.d.ts.map +0 -1
  68. package/dist/processors/observational-memory/string-utils.d.ts.map +0 -1
  69. package/dist/processors/observational-memory/summarize.d.ts.map +0 -1
  70. package/dist/processors/observational-memory/temporal-markers.d.ts.map +0 -1
  71. package/dist/processors/observational-memory/temporary-memory.d.ts.map +0 -1
  72. package/dist/processors/observational-memory/thresholds.d.ts.map +0 -1
  73. package/dist/processors/observational-memory/token-counter.d.ts.map +0 -1
  74. package/dist/processors/observational-memory/tool-argument-helpers.d.ts.map +0 -1
  75. package/dist/processors/observational-memory/tool-result-helpers.d.ts.map +0 -1
  76. package/dist/processors/observational-memory/tracing.d.ts.map +0 -1
  77. package/dist/processors/observational-memory/transform-hooks.d.ts.map +0 -1
  78. package/dist/processors/observational-memory/types.d.ts.map +0 -1
  79. package/dist/processors/observational-memory/wait-with-abort.d.ts.map +0 -1
  80. package/dist/processors/observational-memory/working-memory-extractor.d.ts.map +0 -1
  81. package/dist/processors/working-memory-state/index.d.ts.map +0 -1
  82. package/dist/processors/working-memory-state/processor.d.ts.map +0 -1
  83. package/dist/removed-subconscious.d.ts.map +0 -1
  84. package/dist/src-CTZXQELy.js.map +0 -1
  85. package/dist/src-ibq9d-g9.cjs.map +0 -1
  86. package/dist/system-reminders.d.ts.map +0 -1
  87. package/dist/tools/om-observations.d.ts.map +0 -1
  88. package/dist/tools/om-search-context.d.ts.map +0 -1
  89. package/dist/tools/om-tools.d.ts.map +0 -1
  90. package/dist/tools/working-memory.d.ts.map +0 -1
@@ -30359,6 +30359,65 @@ var WorkingMemoryExtractor = class extends Extractor {
30359
30359
  }, false, true);
30360
30360
  }
30361
30361
  };
30362
+ // src/processors/working-memory-instruction-compat.ts
30363
+ /**
30364
+ * Stand-in for core's `WorkingMemory` input processor on `@mastra/core` versions whose processor renders its own
30365
+ * built-in instruction text and has no instruction provider (every core before `getWorkingMemoryInstruction`
30366
+ * was added to `MastraMemory`, including 1.86.0-alpha.1 through 1.86.0-alpha.5). `Memory.getInputProcessors()`
30367
+ * swaps it in for the auto-created processor on those cores, so `Memory` subclass instruction overrides reach
30368
+ * the model there too (#29752).
30369
+ *
30370
+ * Loading and caching match core's `WorkingMemory.processInput` exactly; only the instruction comes from the
30371
+ * memory instance. Keep it in sync with packages/core/src/processors/memory/working-memory.ts.
30372
+ */
30373
+ var WorkingMemoryInstructionCompat = class {
30374
+ options;
30375
+ id = "working-memory";
30376
+ name = "WorkingMemory";
30377
+ constructor(options) {
30378
+ this.options = options;
30379
+ }
30380
+ async processInput(args) {
30381
+ const { messageList, requestContext } = args;
30382
+ const memoryContext = parseMemoryRequestContext(requestContext);
30383
+ const threadId = memoryContext?.thread?.id;
30384
+ const resourceId = memoryContext?.resourceId;
30385
+ if (!memoryContext || !threadId && !resourceId) return messageList;
30386
+ const scope = this.options.scope || "resource";
30387
+ const memoryRunState = memoryContext.runState?.();
30388
+ let workingMemoryData = null;
30389
+ if (scope === "thread" && threadId) {
30390
+ const stored = (memoryRunState?.thread ?? await this.options.storage.getThreadById({ threadId }))?.metadata?.workingMemory;
30391
+ workingMemoryData = typeof stored === "string" && stored ? stored : null;
30392
+ } else if (scope === "resource" && resourceId) {
30393
+ const loadWorkingMemory = async () => {
30394
+ const resource = await this.options.storage.getResourceById({ resourceId });
30395
+ return typeof resource?.workingMemory === "string" && resource.workingMemory ? resource.workingMemory : null;
30396
+ };
30397
+ workingMemoryData = memoryRunState ? await memoryRunState.load(`working-memory:resource:${resourceId}`, loadWorkingMemory) : await loadWorkingMemory();
30398
+ }
30399
+ const loadTemplate = () => this.options.getWorkingMemoryTemplate({ memoryConfig: memoryContext.memoryConfig });
30400
+ const template = (memoryRunState ? await memoryRunState.load("working-memory:template", loadTemplate) : await loadTemplate()) || this.options.template || {
30401
+ format: "markdown",
30402
+ content: this.options.defaultTemplate
30403
+ };
30404
+ const workingMemoryConfig = memoryContext.memoryConfig?.workingMemory;
30405
+ const isConfiguredReadOnly = Boolean(this.options.readOnly || memoryContext.memoryConfig?.readOnly);
30406
+ const isAppManaged = this.options.agentManaged === false || typeof workingMemoryConfig === "object" && workingMemoryConfig.agentManaged === false;
30407
+ const instruction = this.options.renderInstruction(isConfiguredReadOnly || isAppManaged ? {
30408
+ kind: "read-only",
30409
+ template,
30410
+ data: workingMemoryData,
30411
+ autoUpdated: !isConfiguredReadOnly
30412
+ } : {
30413
+ kind: this.options.useVNext ? "vnext" : "tool",
30414
+ template,
30415
+ data: workingMemoryData
30416
+ });
30417
+ if (instruction) messageList.addSystem(instruction, "memory");
30418
+ return messageList;
30419
+ }
30420
+ };
30362
30421
  // src/removed-subconscious.ts
30363
30422
  /**
30364
30423
  * Subconscious was removed. These stubs keep code written against older `@mastra/memory`
@@ -30492,13 +30551,57 @@ function getUnobservedPartsPreservingToolCallPairs(message) {
30492
30551
  if (id) unobservedResultIds.add(id);
30493
30552
  }
30494
30553
  if (unobservedResultIds.size === 0) return unobservedParts;
30495
- const preservedCalls = parts.slice(0, endMarkerIndex).filter((part) => {
30554
+ const preserved = [];
30555
+ let pendingReasoning = [];
30556
+ let toolSinceReasoning = false;
30557
+ let keptAnything = false;
30558
+ for (let i = 0; i < endMarkerIndex; i++) {
30559
+ const part = parts[i];
30496
30560
  const id = getToolInvocationId(part, "call");
30497
- return id !== void 0 && unobservedResultIds.has(id);
30498
- });
30499
- return preservedCalls.length > 0 ? [...preservedCalls, ...unobservedParts] : unobservedParts;
30561
+ if (id !== void 0 && unobservedResultIds.has(id)) {
30562
+ for (const index of pendingReasoning) preserved.push(parts[index]);
30563
+ pendingReasoning = [];
30564
+ toolSinceReasoning = true;
30565
+ preserved.push(part);
30566
+ keptAnything = true;
30567
+ continue;
30568
+ }
30569
+ if (part?.type === "reasoning" && hasReplayableReasoningMetadata(part)) {
30570
+ if (toolSinceReasoning) pendingReasoning = [];
30571
+ toolSinceReasoning = false;
30572
+ pendingReasoning.push(i);
30573
+ continue;
30574
+ }
30575
+ if (part?.type === "tool-invocation") {
30576
+ toolSinceReasoning = true;
30577
+ continue;
30578
+ }
30579
+ if (part?.type === "step-start") {
30580
+ if (toolSinceReasoning) pendingReasoning = [];
30581
+ continue;
30582
+ }
30583
+ if (part?.type === "text") continue;
30584
+ pendingReasoning = [];
30585
+ }
30586
+ return keptAnything ? [...preserved, ...unobservedParts] : unobservedParts;
30500
30587
  }
30501
30588
  /**
30589
+ * Reasoning part metadata a provider can replay (a signature, redacted payload, item id).
30590
+ * Mirrors `hasReplayableReasoningMetadata` in `@mastra/core`'s message-list utils.
30591
+ */
30592
+ function hasReplayableReasoningMetadata(part) {
30593
+ const metadata = part.providerMetadata;
30594
+ if (!metadata || typeof metadata !== "object") return false;
30595
+ return Object.values(metadata).some((value) => !!value && typeof value === "object" && REPLAYABLE_REASONING_KEYS.some((key) => key in value));
30596
+ }
30597
+ const REPLAYABLE_REASONING_KEYS = [
30598
+ "signature",
30599
+ "redactedData",
30600
+ "itemId",
30601
+ "reasoningEncryptedContent",
30602
+ "thoughtSignature"
30603
+ ];
30604
+ /**
30502
30605
  * Get the messages Observational Memory is allowed to work with.
30503
30606
  *
30504
30607
  * Messages supplied through the `context` option and the synthetic `om-continuation`
@@ -40755,6 +40858,26 @@ function isTransientSignalMessage(message) {
40755
40858
  const metadata = message.content.metadata;
40756
40859
  return isRecord(metadata) && isRecord(metadata.signal) && !Array.isArray(metadata.signal) && metadata.signal.transient === true;
40757
40860
  }
40861
+ const DEFAULT_WORKING_MEMORY_TEMPLATE = `
40862
+ # User Information
40863
+ - **First Name**:
40864
+ - **Last Name**:
40865
+ - **Location**:
40866
+ - **Occupation**:
40867
+ - **Interests**:
40868
+ - **Goals**:
40869
+ - **Events**:
40870
+ - **Facts**:
40871
+ - **Projects**:
40872
+ `;
40873
+ /**
40874
+ * True when the installed `@mastra/core` builds its WorkingMemory processor with the memory instance as the
40875
+ * instruction provider. Cores from before `MastraMemory.getWorkingMemoryInstruction` existed (up to and
40876
+ * including 1.86.0-alpha.5) don't, and render their own built-in text. Checked per call, not at import.
40877
+ */
40878
+ function coreRendersWorkingMemoryInstructionThroughMemory() {
40879
+ return "getWorkingMemoryInstruction" in MastraMemory.prototype;
40880
+ }
40758
40881
  function normalizeObservationalMemoryConfig(config) {
40759
40882
  if (config === true) return { model: "auto" };
40760
40883
  if (config === false || config === void 0) return void 0;
@@ -41629,7 +41752,11 @@ ${workingMemory}`;
41629
41752
  updateMessageToHideWorkingMemoryV2(message) {
41630
41753
  const newMessage = { ...message };
41631
41754
  if (message.content && typeof message.content === "object" && !Array.isArray(message.content)) newMessage.content = { ...message.content };
41632
- if (typeof newMessage.content?.content === "string" && newMessage.content.content.length > 0) newMessage.content.content = removeWorkingMemoryTags(newMessage.content.content).trim();
41755
+ const hideTags = (text) => {
41756
+ const cleaned = removeWorkingMemoryTags(text);
41757
+ return cleaned === text ? text : cleaned.trim();
41758
+ };
41759
+ if (typeof newMessage.content?.content === "string" && newMessage.content.content.length > 0) newMessage.content.content = hideTags(newMessage.content.content);
41633
41760
  if (Array.isArray(newMessage.content?.parts)) {
41634
41761
  if (Array.isArray(newMessage.content.toolInvocations)) newMessage.content.toolInvocations = removeWorkingMemoryToolInvocations(newMessage.content.toolInvocations);
41635
41762
  const lastOriginalPart = newMessage.content.parts.at(-1);
@@ -41639,7 +41766,7 @@ ${workingMemory}`;
41639
41766
  const text = typeof part.text === "string" ? part.text : "";
41640
41767
  return {
41641
41768
  ...part,
41642
- text: removeWorkingMemoryTags(text).trim()
41769
+ text: hideTags(text)
41643
41770
  };
41644
41771
  }
41645
41772
  return part;
@@ -41682,10 +41809,14 @@ ${workingMemory}`;
41682
41809
  if (scope === "resource" && !resourceId) throw new Error("Memory error: Resource-scoped working memory is enabled but no resourceId was provided. Either provide a resourceId or explicitly set workingMemory.scope to 'thread'.");
41683
41810
  if (scope === "resource" && resourceId) {
41684
41811
  const loadWorkingMemory = async () => {
41685
- return (await (await this.getMemoryStore()).getResourceById({ resourceId }))?.workingMemory || null;
41812
+ const resource = await (await this.getMemoryStore()).getResourceById({ resourceId });
41813
+ return typeof resource?.workingMemory === "string" && resource.workingMemory ? resource.workingMemory : null;
41686
41814
  };
41687
41815
  workingMemoryData = runState ? await runState.load(`working-memory:resource:${resourceId}`, loadWorkingMemory) : await loadWorkingMemory();
41688
- } else workingMemoryData = (runState?.threadLoaded ? runState.thread : await this.getThreadById({ threadId }))?.metadata?.workingMemory;
41816
+ } else {
41817
+ const stored = (runState?.threadLoaded ? runState.thread : await this.getThreadById({ threadId }))?.metadata?.workingMemory;
41818
+ workingMemoryData = typeof stored === "string" && stored ? stored : null;
41819
+ }
41689
41820
  if (!workingMemoryData) return null;
41690
41821
  return workingMemoryData;
41691
41822
  }
@@ -41732,18 +41863,17 @@ ${workingMemory}`;
41732
41863
  });
41733
41864
  if (!workingMemoryTemplate) return null;
41734
41865
  const workingMemoryConfig = config.workingMemory;
41735
- if (config?.readOnly || workingMemoryConfig.agentManaged === false) return this.getReadOnlyWorkingMemoryInstruction({
41866
+ const args = config?.readOnly || workingMemoryConfig.agentManaged === false ? {
41867
+ kind: "read-only",
41736
41868
  template: workingMemoryTemplate,
41737
41869
  data: workingMemoryData,
41738
41870
  autoUpdated: !config?.readOnly
41739
- });
41740
- return this.isVNextWorkingMemoryConfig(memoryConfig) ? this.__experimental_getWorkingMemoryToolInstructionVNext({
41741
- template: workingMemoryTemplate,
41742
- data: workingMemoryData
41743
- }) : this.getWorkingMemoryToolInstruction({
41871
+ } : {
41872
+ kind: "version" in workingMemoryConfig && workingMemoryConfig.version === "vnext" ? "vnext" : "tool",
41744
41873
  template: workingMemoryTemplate,
41745
41874
  data: workingMemoryData
41746
- });
41875
+ };
41876
+ return (this.getWorkingMemoryInstruction(args) ?? this.renderBuiltInWorkingMemoryInstruction(args)) || null;
41747
41877
  }
41748
41878
  /** Fetch current stored copies of messages in a resumed turn, bypassing run-state history caches. */
41749
41879
  async getPersistedMessages(threadId, ids) {
@@ -41990,19 +42120,8 @@ ${workingMemory}`;
41990
42120
  } : void 0
41991
42121
  });
41992
42122
  }
41993
- defaultWorkingMemoryTemplate = `
41994
- # User Information
41995
- - **First Name**:
41996
- - **Last Name**:
41997
- - **Location**:
41998
- - **Occupation**:
41999
- - **Interests**:
42000
- - **Goals**:
42001
- - **Events**:
42002
- - **Facts**:
42003
- - **Projects**:
42004
- `;
42005
- getWorkingMemoryToolInstruction({ template, data }) {
42123
+ defaultWorkingMemoryTemplate = DEFAULT_WORKING_MEMORY_TEMPLATE;
42124
+ builtInWorkingMemoryToolInstruction({ template, data }) {
42006
42125
  const emptyWorkingMemoryTemplateObject = template.format === "json" ? generateEmptyFromSchema(template.content) : null;
42007
42126
  const hasEmptyWorkingMemoryTemplateObject = emptyWorkingMemoryTemplateObject && Object.keys(emptyWorkingMemoryTemplateObject).length > 0;
42008
42127
  return `WORKING_MEMORY_SYSTEM_INSTRUCTION:
@@ -42038,7 +42157,8 @@ Notes:
42038
42157
  - IMPORTANT: You MUST call updateWorkingMemory in every response to a prompt where you received relevant information.
42039
42158
  - IMPORTANT: Preserve the ${template.format === "json" ? "JSON" : "Markdown"} formatting structure above while updating the content.`;
42040
42159
  }
42041
- __experimental_getWorkingMemoryToolInstructionVNext({ template, data }) {
42160
+ builtInWorkingMemoryToolInstructionVNext({ template, data }) {
42161
+ const templateContent = typeof template.content === "string" ? template.content : JSON.stringify(template.content);
42042
42162
  return `WORKING_MEMORY_SYSTEM_INSTRUCTION:
42043
42163
  Store and update any conversation-relevant information by calling the updateWorkingMemory tool.
42044
42164
 
@@ -42051,7 +42171,7 @@ Guidelines:
42051
42171
  6. Information not being relevant to the current conversation is not a valid reason to replace or remove working memory information. Your working memory spans across multiple conversations and may be needed again later, even if it's not currently relevant.
42052
42172
 
42053
42173
  <working_memory_template>
42054
- ${template.content}
42174
+ ${templateContent}
42055
42175
  </working_memory_template>
42056
42176
 
42057
42177
  <working_memory_data>
@@ -42060,7 +42180,7 @@ ${data || "No working memory data available."}
42060
42180
 
42061
42181
  Notes:
42062
42182
  - Update memory whenever referenced information changes
42063
- ${template.content !== this.defaultWorkingMemoryTemplate ? `- Only store information if it's in the working memory template, do not store other information unless the user asks you to remember it, as that non-template information may be irrelevant` : `- If you're unsure whether to store something, store it (eg if the user tells you information about themselves, call updateWorkingMemory immediately to update it)
42183
+ ${templateContent !== DEFAULT_WORKING_MEMORY_TEMPLATE ? `- Only store information if it's in the working memory template, do not store other information unless the user asks you to remember it, as that non-template information may be irrelevant` : `- If you're unsure whether to store something, store it (eg if the user tells you information about themselves, call updateWorkingMemory immediately to update it)
42064
42184
  `}
42065
42185
  - This system is here so that you can maintain the conversation when your context window is very short. Update your working memory because you may need it to maintain the conversation without the full conversation history
42066
42186
  - REMEMBER: the way you update your working memory is by calling the updateWorkingMemory tool with the ${template.format === "json" ? "JSON" : "Markdown"} content. The system will store it for you. The user will not see it.
@@ -42068,12 +42188,7 @@ ${template.content !== this.defaultWorkingMemoryTemplate ? `- Only store informa
42068
42188
  - IMPORTANT: Preserve the ${template.format === "json" ? "JSON" : "Markdown"} formatting structure above while updating the content.
42069
42189
  `;
42070
42190
  }
42071
- /**
42072
- * Generate read-only working memory instructions.
42073
- * This provides the working memory context without any tool update instructions.
42074
- * Used when memory is in readOnly mode, or with `autoUpdated` when the app updates it (agentManaged: false).
42075
- */
42076
- getReadOnlyWorkingMemoryInstruction({ data, autoUpdated = false }) {
42191
+ builtInReadOnlyWorkingMemoryInstruction({ data, autoUpdated = false }) {
42077
42192
  return `WORKING_MEMORY_SYSTEM_INSTRUCTION (${autoUpdated ? "AUTO-UPDATED" : "READ-ONLY"}):
42078
42193
  The following is your working memory - persistent information about the user and conversation collected over previous interactions. This data is provided for context to help you maintain continuity.
42079
42194
 
@@ -42090,6 +42205,46 @@ Notes:
42090
42205
  - This system is here so that you can maintain the conversation when your context window is very short
42091
42206
  - The user will not see the working memory data directly`;
42092
42207
  }
42208
+ /** Instruction for agents that update working memory with the updateWorkingMemory tool. Override to customize it. */
42209
+ getWorkingMemoryToolInstruction(args) {
42210
+ return this.builtInWorkingMemoryToolInstruction(args);
42211
+ }
42212
+ /** Instruction for `version: 'vnext'` template working memory. Override to customize it. */
42213
+ __experimental_getWorkingMemoryToolInstructionVNext(args) {
42214
+ return this.builtInWorkingMemoryToolInstructionVNext(args);
42215
+ }
42216
+ /**
42217
+ * Generate read-only working memory instructions.
42218
+ * This provides the working memory context without any tool update instructions.
42219
+ * Used when memory is in readOnly mode, or with `autoUpdated` when the app updates it (agentManaged: false).
42220
+ * Override to customize it.
42221
+ */
42222
+ getReadOnlyWorkingMemoryInstruction(args) {
42223
+ return this.builtInReadOnlyWorkingMemoryInstruction(args);
42224
+ }
42225
+ /**
42226
+ * Renders the working memory instruction an agent receives, using the instruction methods above,
42227
+ * so a subclass that overrides them changes what the model sees. Return `undefined` to use the
42228
+ * built-in instruction, or an empty string to send none.
42229
+ */
42230
+ getWorkingMemoryInstruction(args) {
42231
+ switch (args.kind) {
42232
+ case "read-only": return this.getReadOnlyWorkingMemoryInstruction(args);
42233
+ case "vnext": return this.__experimental_getWorkingMemoryToolInstructionVNext(args);
42234
+ case "tool": return this.getWorkingMemoryToolInstruction(args);
42235
+ }
42236
+ }
42237
+ /**
42238
+ * The built-in text, ignoring subclass overrides of the instruction methods. Used when
42239
+ * getWorkingMemoryInstruction returns `undefined`, matching the agent processor's own fallback.
42240
+ */
42241
+ renderBuiltInWorkingMemoryInstruction(args) {
42242
+ switch (args.kind) {
42243
+ case "read-only": return this.builtInReadOnlyWorkingMemoryInstruction(args);
42244
+ case "vnext": return this.builtInWorkingMemoryToolInstructionVNext(args);
42245
+ case "tool": return this.builtInWorkingMemoryToolInstruction(args);
42246
+ }
42247
+ }
42093
42248
  isVNextWorkingMemoryConfig(config) {
42094
42249
  if (!config?.workingMemory) return false;
42095
42250
  const isMDWorkingMemory = !(`schema` in config.workingMemory) && (typeof config.workingMemory.template === `string` || config.workingMemory.template) && config.workingMemory;
@@ -42789,8 +42944,11 @@ Notes:
42789
42944
  };
42790
42945
  }
42791
42946
  const moved = /* @__PURE__ */ new Set();
42792
- for (;;) {
42793
- const pending = (await vector.query({
42947
+ const deadline = Date.now() + 12e4;
42948
+ let retryDelayMs = 1e3;
42949
+ let complete = false;
42950
+ migration: while (Date.now() < deadline) {
42951
+ const stale = await vector.query({
42794
42952
  indexName,
42795
42953
  ...readParams,
42796
42954
  topK: 20,
@@ -42798,9 +42956,21 @@ Notes:
42798
42956
  thread_id: threadId,
42799
42957
  resource_id: { $ne: resourceId }
42800
42958
  }
42801
- })).filter((result) => !moved.has(result.id));
42802
- if (pending.length === 0) break;
42959
+ });
42960
+ if (stale.length === 0) {
42961
+ complete = true;
42962
+ break;
42963
+ }
42964
+ const pending = stale.filter((result) => !moved.has(result.id));
42965
+ if (pending.length === 0) {
42966
+ const delayMs = Math.min(retryDelayMs, Math.max(0, deadline - Date.now()));
42967
+ await new Promise((resolve) => setTimeout(resolve, delayMs));
42968
+ retryDelayMs = Math.min(retryDelayMs * 2, 3e4);
42969
+ continue;
42970
+ }
42971
+ retryDelayMs = 1e3;
42803
42972
  for (const result of pending) {
42973
+ if (Date.now() >= deadline) break migration;
42804
42974
  moved.add(result.id);
42805
42975
  if (!result.metadata) {
42806
42976
  this.logger.warn("Skipping observation vector without metadata during thread transfer", {
@@ -42822,6 +42992,7 @@ Notes:
42822
42992
  });
42823
42993
  }
42824
42994
  }
42995
+ if (!complete) throw new Error(`Observation vector migration in index "${indexName}" did not complete within 120 seconds (${moved.size} vector IDs processed). The store may still be returning stale results; retry the transfer.`);
42825
42996
  }
42826
42997
  }
42827
42998
  /**
@@ -43022,6 +43193,10 @@ Notes:
43022
43193
  */
43023
43194
  async getInputProcessors(configuredProcessors = [], context) {
43024
43195
  const processors = await super.getInputProcessors(configuredProcessors, context);
43196
+ if (!coreRendersWorkingMemoryInstructionThroughMemory()) {
43197
+ const index = processors.findIndex((p) => p.id === "working-memory" && !configuredProcessors.includes(p));
43198
+ if (index !== -1) processors[index] = await this.createWorkingMemoryInstructionCompatProcessor(context);
43199
+ }
43025
43200
  const om = await this.createOMProcessor(configuredProcessors, context);
43026
43201
  if (om) processors.push(om);
43027
43202
  const wm = await this.createWorkingMemoryStateProcessor(configuredProcessors, context);
@@ -43070,6 +43245,29 @@ Notes:
43070
43245
  return new ObservationalMemoryProcessor(engine, this, { temporalMarkers: effectiveConfig.temporalMarkers });
43071
43246
  }
43072
43247
  /**
43248
+ * Builds the WorkingMemory input processor for cores without an instruction provider, from the same
43249
+ * config core's `MastraMemory.getInputProcessors()` uses for the processor it replaces.
43250
+ */
43251
+ async createWorkingMemoryInstructionCompatProcessor(context) {
43252
+ const runtimeMemory = context?.get("MastraMemory");
43253
+ const effectiveConfig = runtimeMemory?.memoryConfig ? this.getMergedThreadConfig(runtimeMemory.memoryConfig) : this.threadConfig;
43254
+ const workingMemory = typeof effectiveConfig.workingMemory === "object" ? effectiveConfig.workingMemory : void 0;
43255
+ return new WorkingMemoryInstructionCompat({
43256
+ storage: await this.getMemoryStore(),
43257
+ template: workingMemory?.template ? {
43258
+ format: "markdown",
43259
+ content: workingMemory.template
43260
+ } : void 0,
43261
+ scope: workingMemory?.scope,
43262
+ useVNext: workingMemory !== void 0 && "version" in workingMemory && workingMemory.version === "vnext",
43263
+ readOnly: effectiveConfig.readOnly,
43264
+ agentManaged: workingMemory?.agentManaged,
43265
+ defaultTemplate: DEFAULT_WORKING_MEMORY_TEMPLATE,
43266
+ getWorkingMemoryTemplate: (args) => this.getWorkingMemoryTemplate(args),
43267
+ renderInstruction: (args) => this.getWorkingMemoryInstruction(args) ?? this.renderBuiltInWorkingMemoryInstruction(args)
43268
+ });
43269
+ }
43270
+ /**
43073
43271
  * Creates a WorkingMemoryStateProcessor when working memory is enabled and the
43074
43272
  * `useStateSignals` opt-in is set. Returns null otherwise or if the processor
43075
43273
  * is already present in the user's configured processors.
@@ -43086,5 +43284,3 @@ Notes:
43086
43284
  }
43087
43285
  };
43088
43286
  export { WorkingMemoryExtractor as A, hasCurrentTaskSection as B, reconcileObservationGroupsFromReflection as C, KnowledgeSemanticIndexCoordinator as D, wrapInObservationGroup as E, OBSERVER_SYSTEM_PROMPT as F, stripEphemeralAnchorIds as G, parseObserverOutput as H, buildObserverPrompt as I, OBSERVATION_CONTEXT_INSTRUCTIONS as J, Extractor as K, buildObserverSystemPrompt as L, SUMMARIZE_THREAD_DEFAULTS as M, summarizeConversation as N, StaleKnowledgeSemanticIndexError as O, TokenCounter as P, getObservationContextPrompt as Q, extractCurrentTask as R, parseObservationGroups as S, stripObservationGroups as T, injectAnchorIds as U, optimizeObservationsForContext as V, parseAnchorId as W, OBSERVATION_CONTEXT_PROMPT_THREAD as X, OBSERVATION_CONTEXT_PROMPT as Y, OBSERVATION_CONTINUATION_HINT as Z, WORKING_MEMORY_STATE_PROCESSOR_ID as _, asUserTurn as a, combineObservationGroupRanges as b, extractWorkingMemoryTags as c, getObservationsAsOf as d, ObservationalMemoryProcessor as f, WORKING_MEMORY_STATE_ID as g, resolveAutoModelId as h, WorkingMemory as i, deepMergeWorkingMemory as j, Subconscious as k, removeWorkingMemoryTags as l, AUTO_MODEL_BY_PROVIDER as m, MessageHistory$1 as n, escapeTurnMarkup as o, ObservationalMemory as p, OBSERVATIONAL_MEMORY_DEFAULTS as q, SemanticRecall as r, extractWorkingMemoryContent as s, Memory as t, sealTurnMarkup as u, WorkingMemoryStateProcessor as v, renderObservationGroupsForReflection as w, deriveObservationGroupProvenance as x, ModelByInputTokens as y, formatMessagesForObserver as z };
43089
-
43090
- //# sourceMappingURL=src-CTZXQELy.js.map
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "1.41.3-alpha.0",
3
+ "version": "1.41.3-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "!dist/**/*.d.*ts.map"
10
11
  ],
11
12
  "exports": {
12
13
  ".": {
@@ -52,7 +53,7 @@
52
53
  "probe-image-size": "^7.4.0",
53
54
  "xxhash-wasm": "^1.1.0",
54
55
  "zod": "^4.6.7",
55
- "@mastra/schema-compat": "1.4.0"
56
+ "@mastra/schema-compat": "1.4.1-alpha.0"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.139",
@@ -68,11 +69,11 @@
68
69
  "vitest": "5.1.0",
69
70
  "@internal/ai-sdk-v4": "0.0.98",
70
71
  "@internal/ai-sdk-v5": "0.0.98",
71
- "@internal/ai-v6": "0.0.98",
72
72
  "@internal/ai-v7": "0.0.98",
73
+ "@internal/ai-v6": "0.0.98",
73
74
  "@internal/lint": "0.0.151",
74
75
  "@internal/types-builder": "0.0.126",
75
- "@mastra/core": "1.85.1-alpha.0"
76
+ "@mastra/core": "1.86.0-alpha.6"
76
77
  },
77
78
  "peerDependencies": {
78
79
  "@mastra/core": ">=1.85.1-0 <2.0.0-0"
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.cjs","names":[],"sources":["../src/processors/observational-memory/hooks.ts"],"sourcesContent":["import type { MastraDBMessage } from '@mastra/core/agent';\n\nimport type { ObserveTransformHooks } from './types';\n\ntype MessagePart = MastraDBMessage['content']['parts'][number];\n\ntype ToolInvocationPart = Extract<MessagePart, { type: 'tool-invocation' }>;\n\ntype BeforeObservationHook = NonNullable<ObserveTransformHooks['beforeObservation']>;\n\ntype ToolInvocations = NonNullable<MastraDBMessage['content']['toolInvocations']>;\ntype StoredToolInvocation = ToolInvocations[number];\n\n/**\n * Tool ids of the built-in Agent Skills tools created by `createSkillTools()`\n * in `@mastra/core` (`packages/core/src/workspace/skills/tools.ts`).\n */\nexport const SKILL_TOOL_NAMES = ['skill', 'skill_search', 'skill_read'] as const;\n\n/**\n * A `beforeObservation` transform hook: it only rewrites messages. It receives\n * the messages about to be sent to the Observer and returns `{ messages }` to\n * replace them, or `undefined` to pass the payload through unchanged.\n */\nexport type ObserverMessageTransform = (\n ...args: Parameters<BeforeObservationHook>\n) => { messages: MastraDBMessage[] } | undefined;\n\nexport interface SkillResultRedactorOptions {\n /**\n * Tool names whose results are redacted. Defaults to\n * {@link SKILL_TOOL_NAMES}.\n */\n toolNames?: readonly string[];\n}\n\n/**\n * Written in place of a redacted tool result. The Observer still records the\n * call and its outcome; only the payload is replaced.\n */\nconst REDACTED_TOOL_RESULT = '[tool result omitted]';\n\nfunction isRedactableToolResult(part: MessagePart, toolNames: Set<string>): part is ToolInvocationPart {\n if (part?.type !== 'tool-invocation') return false;\n // Only `state: 'result'` parts render a `Tool Result <name>` body, so only\n // those carry the tool's output.\n if (part.toolInvocation.state !== 'result') return false;\n const toolName = part.toolInvocation.toolName;\n if (typeof toolName !== 'string' || !toolNames.has(toolName)) return false;\n // Nothing to redact when the tool returned no payload.\n return part.toolInvocation.result !== undefined || hasStoredModelOutput(part);\n}\n\nfunction hasStoredModelOutput(part: MessagePart): boolean {\n if (part?.type !== 'tool-invocation') return false;\n const mastra = part.providerMetadata?.mastra;\n return !!mastra && typeof mastra === 'object' && 'modelOutput' in mastra;\n}\n\n/**\n * Legacy messages carry tool calls in a second `toolInvocations` array, which\n * `AIV5Adapter` falls back to when `parts` holds no tool invocation\n * (`AIV5Adapter.ts:264`). Leave it alone and a redacted result can be\n * resurrected from that array downstream. Only rewritten when it actually\n * holds a matching result, so non-legacy messages keep their array by\n * reference.\n */\nfunction redactLegacyToolInvocations(\n toolInvocations: ToolInvocations | undefined,\n toolNames: Set<string>,\n): { toolInvocations: ToolInvocations | undefined; changed: boolean } {\n if (!Array.isArray(toolInvocations)) return { toolInvocations, changed: false };\n\n let changed = false;\n const next: ToolInvocations = toolInvocations.map(invocation => {\n if (\n invocation?.state !== 'result' ||\n typeof invocation.toolName !== 'string' ||\n !toolNames.has(invocation.toolName) ||\n invocation.result === undefined\n ) {\n return invocation;\n }\n changed = true;\n return { ...invocation, result: REDACTED_TOOL_RESULT } as StoredToolInvocation;\n });\n\n return changed ? { toolInvocations: next, changed: true } : { toolInvocations, changed: false };\n}\n\n/**\n * Replace the result payload of a tool invocation with a placeholder, keeping\n * the call's identity (tool name, arguments, terminal state). The Observer\n * still records that the tool ran and what it was called with.\n */\nfunction redactToolResult(part: ToolInvocationPart): ToolInvocationPart {\n const redacted: ToolInvocationPart = {\n ...part,\n toolInvocation: { ...part.toolInvocation, result: REDACTED_TOOL_RESULT },\n };\n\n // `resolveToolResultValue` prefers `providerMetadata.mastra.modelOutput` over\n // `toolInvocation.result`, so a stored model output has to be replaced too.\n // Copy rather than mutate: these message objects are shared with the stored\n // history, which keeps the full result.\n if (hasStoredModelOutput(part)) {\n const providerMetadata = part.providerMetadata ?? {};\n const mastra = providerMetadata.mastra as Record<string, unknown>;\n return {\n ...redacted,\n providerMetadata: { ...providerMetadata, mastra: { ...mastra, modelOutput: REDACTED_TOOL_RESULT } },\n };\n }\n\n return redacted;\n}\n\n/**\n * Build a `beforeObservation` hook that keeps Agent Skills results out of the\n * Observer payload.\n *\n * The `skill` tool returns a skill's instructions verbatim as its result, and\n * `skill_read` / `skill_search` return skill file contents, so without redaction\n * the Observer re-observes the full skill text every time a skill is used.\n * `skillResultRedactor()` replaces the result payload with a placeholder and\n * leaves the tool call in place, so the Observer still records which skill was\n * used without the skill text.\n *\n * ```typescript\n * const memory = new Memory({\n * options: {\n * observationalMemory: {\n * model: 'google/gemini-2.5-flash',\n * hooks: { beforeObservation: skillResultRedactor() },\n * },\n * },\n * });\n * ```\n *\n * Because a hook is a function over the messages, this composes with your own\n * transforms by chaining the outputs. Await each chained hook so an async one\n * doesn't resolve to a promise that gets discarded:\n *\n * ```typescript\n * const dropSkillResults = skillResultRedactor();\n *\n * hooks: {\n * beforeObservation: async input => {\n * const messages = (await dropSkillResults(input))?.messages ?? input.messages;\n * return { messages: messages.filter(m => m.role !== 'signal') };\n * },\n * }\n * ```\n */\nexport function skillResultRedactor(options?: SkillResultRedactorOptions): ObserverMessageTransform {\n const toolNames = new Set<string>(options?.toolNames ?? SKILL_TOOL_NAMES);\n\n return ({ messages }) => {\n let changed = false;\n\n const transformed = messages.map(message => {\n const parts = message.content?.parts;\n\n let messageChanged = false;\n\n // Legacy-only messages carry no `parts` at all, so this runs before the\n // parts check rather than being skipped by it.\n const legacy = redactLegacyToolInvocations(message.content?.toolInvocations, toolNames);\n if (legacy.changed) messageChanged = true;\n\n let nextParts = parts;\n if (Array.isArray(parts)) {\n nextParts = parts.map(part => {\n if (!isRedactableToolResult(part, toolNames)) return part;\n messageChanged = true;\n return redactToolResult(part);\n });\n }\n\n if (!messageChanged) return message;\n\n changed = true;\n return {\n ...message,\n content: { ...message.content, parts: nextParts, toolInvocations: legacy.toolInvocations },\n };\n });\n\n // `undefined` means \"pass through unchanged\", so leave untouched payloads alone.\n return changed ? { messages: transformed } : undefined;\n };\n}\n"],"mappings":";;;;;;AAiBA,MAAa,mBAAmB;CAAC;CAAS;CAAgB;AAAY;;;;;AAuBtE,MAAM,uBAAuB;AAE7B,SAAS,uBAAuB,MAAmB,WAAoD;CACrG,IAAI,MAAM,SAAS,mBAAmB,OAAO;CAG7C,IAAI,KAAK,eAAe,UAAU,UAAU,OAAO;CACnD,MAAM,WAAW,KAAK,eAAe;CACrC,IAAI,OAAO,aAAa,YAAY,CAAC,UAAU,IAAI,QAAQ,GAAG,OAAO;CAErE,OAAO,KAAK,eAAe,WAAW,KAAA,KAAa,qBAAqB,IAAI;AAC9E;AAEA,SAAS,qBAAqB,MAA4B;CACxD,IAAI,MAAM,SAAS,mBAAmB,OAAO;CAC7C,MAAM,SAAS,KAAK,kBAAkB;CACtC,OAAO,CAAC,CAAC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,KAAK,GACrB,YAAY,MAAM,KAAI,SAAQ;IAC5B,IAAI,CAAC,uBAAuB,MAAM,SAAS,GAAG,OAAO;IACrD,iBAAiB;IACjB,OAAO,iBAAiB,IAAI;GAC9B,CAAC;GAGH,IAAI,CAAC,gBAAgB,OAAO;GAE5B,UAAU;GACV,OAAO;IACL,GAAG;IACH,SAAS;KAAE,GAAG,QAAQ;KAAS,OAAO;KAAW,iBAAiB,OAAO;IAAgB;GAC3F;EACF,CAAC;EAGD,OAAO,UAAU,EAAE,UAAU,YAAY,IAAI,KAAA;CAC/C;AACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChG,YAAY,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC"}
package/dist/hooks.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.js","names":[],"sources":["../src/processors/observational-memory/hooks.ts"],"sourcesContent":["import type { MastraDBMessage } from '@mastra/core/agent';\n\nimport type { ObserveTransformHooks } from './types';\n\ntype MessagePart = MastraDBMessage['content']['parts'][number];\n\ntype ToolInvocationPart = Extract<MessagePart, { type: 'tool-invocation' }>;\n\ntype BeforeObservationHook = NonNullable<ObserveTransformHooks['beforeObservation']>;\n\ntype ToolInvocations = NonNullable<MastraDBMessage['content']['toolInvocations']>;\ntype StoredToolInvocation = ToolInvocations[number];\n\n/**\n * Tool ids of the built-in Agent Skills tools created by `createSkillTools()`\n * in `@mastra/core` (`packages/core/src/workspace/skills/tools.ts`).\n */\nexport const SKILL_TOOL_NAMES = ['skill', 'skill_search', 'skill_read'] as const;\n\n/**\n * A `beforeObservation` transform hook: it only rewrites messages. It receives\n * the messages about to be sent to the Observer and returns `{ messages }` to\n * replace them, or `undefined` to pass the payload through unchanged.\n */\nexport type ObserverMessageTransform = (\n ...args: Parameters<BeforeObservationHook>\n) => { messages: MastraDBMessage[] } | undefined;\n\nexport interface SkillResultRedactorOptions {\n /**\n * Tool names whose results are redacted. Defaults to\n * {@link SKILL_TOOL_NAMES}.\n */\n toolNames?: readonly string[];\n}\n\n/**\n * Written in place of a redacted tool result. The Observer still records the\n * call and its outcome; only the payload is replaced.\n */\nconst REDACTED_TOOL_RESULT = '[tool result omitted]';\n\nfunction isRedactableToolResult(part: MessagePart, toolNames: Set<string>): part is ToolInvocationPart {\n if (part?.type !== 'tool-invocation') return false;\n // Only `state: 'result'` parts render a `Tool Result <name>` body, so only\n // those carry the tool's output.\n if (part.toolInvocation.state !== 'result') return false;\n const toolName = part.toolInvocation.toolName;\n if (typeof toolName !== 'string' || !toolNames.has(toolName)) return false;\n // Nothing to redact when the tool returned no payload.\n return part.toolInvocation.result !== undefined || hasStoredModelOutput(part);\n}\n\nfunction hasStoredModelOutput(part: MessagePart): boolean {\n if (part?.type !== 'tool-invocation') return false;\n const mastra = part.providerMetadata?.mastra;\n return !!mastra && typeof mastra === 'object' && 'modelOutput' in mastra;\n}\n\n/**\n * Legacy messages carry tool calls in a second `toolInvocations` array, which\n * `AIV5Adapter` falls back to when `parts` holds no tool invocation\n * (`AIV5Adapter.ts:264`). Leave it alone and a redacted result can be\n * resurrected from that array downstream. Only rewritten when it actually\n * holds a matching result, so non-legacy messages keep their array by\n * reference.\n */\nfunction redactLegacyToolInvocations(\n toolInvocations: ToolInvocations | undefined,\n toolNames: Set<string>,\n): { toolInvocations: ToolInvocations | undefined; changed: boolean } {\n if (!Array.isArray(toolInvocations)) return { toolInvocations, changed: false };\n\n let changed = false;\n const next: ToolInvocations = toolInvocations.map(invocation => {\n if (\n invocation?.state !== 'result' ||\n typeof invocation.toolName !== 'string' ||\n !toolNames.has(invocation.toolName) ||\n invocation.result === undefined\n ) {\n return invocation;\n }\n changed = true;\n return { ...invocation, result: REDACTED_TOOL_RESULT } as StoredToolInvocation;\n });\n\n return changed ? { toolInvocations: next, changed: true } : { toolInvocations, changed: false };\n}\n\n/**\n * Replace the result payload of a tool invocation with a placeholder, keeping\n * the call's identity (tool name, arguments, terminal state). The Observer\n * still records that the tool ran and what it was called with.\n */\nfunction redactToolResult(part: ToolInvocationPart): ToolInvocationPart {\n const redacted: ToolInvocationPart = {\n ...part,\n toolInvocation: { ...part.toolInvocation, result: REDACTED_TOOL_RESULT },\n };\n\n // `resolveToolResultValue` prefers `providerMetadata.mastra.modelOutput` over\n // `toolInvocation.result`, so a stored model output has to be replaced too.\n // Copy rather than mutate: these message objects are shared with the stored\n // history, which keeps the full result.\n if (hasStoredModelOutput(part)) {\n const providerMetadata = part.providerMetadata ?? {};\n const mastra = providerMetadata.mastra as Record<string, unknown>;\n return {\n ...redacted,\n providerMetadata: { ...providerMetadata, mastra: { ...mastra, modelOutput: REDACTED_TOOL_RESULT } },\n };\n }\n\n return redacted;\n}\n\n/**\n * Build a `beforeObservation` hook that keeps Agent Skills results out of the\n * Observer payload.\n *\n * The `skill` tool returns a skill's instructions verbatim as its result, and\n * `skill_read` / `skill_search` return skill file contents, so without redaction\n * the Observer re-observes the full skill text every time a skill is used.\n * `skillResultRedactor()` replaces the result payload with a placeholder and\n * leaves the tool call in place, so the Observer still records which skill was\n * used without the skill text.\n *\n * ```typescript\n * const memory = new Memory({\n * options: {\n * observationalMemory: {\n * model: 'google/gemini-2.5-flash',\n * hooks: { beforeObservation: skillResultRedactor() },\n * },\n * },\n * });\n * ```\n *\n * Because a hook is a function over the messages, this composes with your own\n * transforms by chaining the outputs. Await each chained hook so an async one\n * doesn't resolve to a promise that gets discarded:\n *\n * ```typescript\n * const dropSkillResults = skillResultRedactor();\n *\n * hooks: {\n * beforeObservation: async input => {\n * const messages = (await dropSkillResults(input))?.messages ?? input.messages;\n * return { messages: messages.filter(m => m.role !== 'signal') };\n * },\n * }\n * ```\n */\nexport function skillResultRedactor(options?: SkillResultRedactorOptions): ObserverMessageTransform {\n const toolNames = new Set<string>(options?.toolNames ?? SKILL_TOOL_NAMES);\n\n return ({ messages }) => {\n let changed = false;\n\n const transformed = messages.map(message => {\n const parts = message.content?.parts;\n\n let messageChanged = false;\n\n // Legacy-only messages carry no `parts` at all, so this runs before the\n // parts check rather than being skipped by it.\n const legacy = redactLegacyToolInvocations(message.content?.toolInvocations, toolNames);\n if (legacy.changed) messageChanged = true;\n\n let nextParts = parts;\n if (Array.isArray(parts)) {\n nextParts = parts.map(part => {\n if (!isRedactableToolResult(part, toolNames)) return part;\n messageChanged = true;\n return redactToolResult(part);\n });\n }\n\n if (!messageChanged) return message;\n\n changed = true;\n return {\n ...message,\n content: { ...message.content, parts: nextParts, toolInvocations: legacy.toolInvocations },\n };\n });\n\n // `undefined` means \"pass through unchanged\", so leave untouched payloads alone.\n return changed ? { messages: transformed } : undefined;\n };\n}\n"],"mappings":";;;;;AAiBA,MAAa,mBAAmB;CAAC;CAAS;CAAgB;AAAY;;;;;AAuBtE,MAAM,uBAAuB;AAE7B,SAAS,uBAAuB,MAAmB,WAAoD;CACrG,IAAI,MAAM,SAAS,mBAAmB,OAAO;CAG7C,IAAI,KAAK,eAAe,UAAU,UAAU,OAAO;CACnD,MAAM,WAAW,KAAK,eAAe;CACrC,IAAI,OAAO,aAAa,YAAY,CAAC,UAAU,IAAI,QAAQ,GAAG,OAAO;CAErE,OAAO,KAAK,eAAe,WAAW,KAAA,KAAa,qBAAqB,IAAI;AAC9E;AAEA,SAAS,qBAAqB,MAA4B;CACxD,IAAI,MAAM,SAAS,mBAAmB,OAAO;CAC7C,MAAM,SAAS,KAAK,kBAAkB;CACtC,OAAO,CAAC,CAAC,UAAU,OAAO,WAAW,YAAY,iBAAiB;AACpE;;;;;;;;;AAUA,SAAS,4BACP,iBACA,WACoE;CACpE,IAAI,CAAC,MAAM,QAAQ,eAAe,GAAG,OAAO;EAAE;EAAiB,SAAS;CAAM;CAE9E,IAAI,UAAU;CACd,MAAM,OAAwB,gBAAg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,EAAO,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,cAAc,EAAE,CAAC,CAe3B;IAED;;;;OAIG;IACG,mBAAmB,CACvB,oBAAoB,GAAE,yBAAyB,EAAO,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,EAAE,CAAC,CAS5B;IAED;;;;OAIG;IACG,kBAAkB,CACtB,oBAAoB,GAAE,wBAAwB,EAAO,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,cAAc,EAAE,CAAC,CAS3B;IAED;;;;OAIG;YACW,iBAAiB;IAuC/B;;;;OAIG;YACW,iCAAiC;CAwBhD;AAGD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGxF,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGnH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxE,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,mCAAmC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"persistence-projection.test-utils.d.ts","sourceRoot":"","sources":["../src/persistence-projection.test-utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AA8FjE,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,QAiZ3F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/processors/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"activation-ttl.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/activation-ttl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAkCtG,+GAA+G;AAC/G,wBAAgB,sBAAsB,CACpC,iBAAiB,EAAE,qBAAqB,GAAG,sBAAsB,GAAG,SAAS,GAC5E,qBAAqB,GAAG,SAAS,CAEnC;AAcD,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,qBAAqB,GAAG,sBAAsB,GAAG,SAAS,EAC7E,YAAY,CAAC,EAAE,uBAAuB,GACrC,MAAM,GAAG,SAAS,CAcpB;AAED,wBAAgB,wBAAwB,CAAC,YAAY,CAAC,EAAE,uBAAuB,GAAG,MAAM,CAmBvF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"anchor-ids.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/anchor-ids.ts"],"names":[],"mappings":"AAUA,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGzD;AAiCD,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAmC5D;AAED,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAMpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"auto-model.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/auto-model.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMnE,CAAC;AAKF,MAAM,WAAW,yBAAyB;IACxC,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;CAClD;AAMD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,OAAO,CAAC,EAAE,yBAAyB,GAClC,MAAM,GAAG,SAAS,CAcpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"buffering-coordinator.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/buffering-coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAKtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGnF;;;;;;GAMG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA4B;IAC9D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA2B;IAC5D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAE9C;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,6BAAoC;IAE5D;;;;;;;;;OASG;IACH,MAAM,CAAC,kBAAkB,6BAAoC;IAE7D;;;OAGG;IACH,MAAM,CAAC,oBAAoB,sBAA6B;IAExD;;;;OAIG;IACH,MAAM,CAAC,yBAAyB,sBAA6B;IAE7D,iFAAiF;IACjF,MAAM,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAIrF;IAED,MAAM,CAAC,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAExE;IAED;;;OAGG;IACH,MAAM,CAAC,kBAAkB,oBAA2B;IAEpD;;;OAGG;IACH,MAAM,CAAC,wBAAwB,sBAA6B;IAE5D,YAAY,IAAI,EAAE;QAChB,iBAAiB,EAAE,yBAAyB,CAAC;QAC7C,gBAAgB,EAAE,wBAAwB,CAAC;QAC3C,KAAK,EAAE,QAAQ,GAAG,UAAU,CAAC;KAC9B,EAIA;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAE7F;IAED,yBAAyB,IAAI,OAAO,CAEnC;IAED,wBAAwB,IAAI,OAAO,CAElC;IAED,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/C;IAED,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9C;IAED,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAErD;IAED;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,IAAI,CAUpD;IAED;;OAEG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAqBpG;IAED;;OAEG;IACH,6BAA6B,CAC3B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE;QAAE,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,EACnF,sBAAsB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAgCT;IAED;;OAEG;IACH,OAAa,cAAc,CACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACnC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACrC,KAAK,EAAE,QAAQ,GAAG,UAAU,EAC5B,SAAS,SAAQ,EACjB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,IAAI,CAAC,CA+Bf;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"built-in-extractors.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/built-in-extractors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAyB,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,E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CAAC;AAEzC,+FAA+F;AAC/F,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,GAAG,UAAU,EAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACnC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACpC,MAAM,CAKR;AAuCD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,EAAE,QAAmB,EAAE,WAAW,EAAE,GAAE;IAAE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,GACpG,OAAO,CAAC,CAAC,CAAC,CAuEZ;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAGpF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,6BAA6B;aACxC,WAAW;iBACT,KAAK,EAAE,yBAAyB;iBAChC,aAAa,EAAE,KAAM;iBACrB,aAAa;qBACX,WAAW,EAAE,GAAG;qBAChB,eAAe,EAAE,MAAO;;iBAE1B,eAAe;qBACb,MAAM;yBACJ,cAAc;6BACZ,cAAc,EAAE,GAAG;;;;iBAIzB,iBAAiB,EAAE,KAAM;iBACzB,kBAAkB,YAAG,SAAS,EAAE,iBAAiB;iBAEjD,YAAY,EAAS,MAAM,GAAG,SAAS;iBACvC,gBAAgB,EAAS,MAAM,G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G,MAAM,GAAG,MAAM,CAYhG;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAEjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/debug.ts"],"names":[],"mappings":"AAKA,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,QAOlC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,QAIjD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAA2B,MAAM,4BAA4B,CAAC;AASnF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAqBjE;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAEjE,qBAAa,qBAAsB,SAAQ,KAAK;;IAO5C,QAAQ,CAAC,WAAW,EAAE,aAAa;IAJrC,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAEvC;IACD,YACW,WAAW,EAAE,aAAa,EACnC,KAAK,EAAE,OAAO,EACd,YAAY,CAAC,EAAE,OAAO,EAevB;CACF;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAMtF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe;;;;;;;EAsBlF;AAED,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiDpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"extracted-values.d.ts","sourceRoot":"","sources":["../../../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gBAAgB,CAAC,OAAO,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC5C,eAAe,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC,GAAG,OAAO,CAAC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAAC,CA+DhF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"extraction-runner.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/extraction-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9D,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAwBD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,EAAE,eAAe,CAA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