@mastra/memory 0.10.5-alpha.1 → 0.11.0-alpha.3

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @mastra/memory@0.10.5-alpha.1 build /home/runner/work/mastra/mastra/packages/memory
2
+ > @mastra/memory@0.11.0-alpha.3 build /home/runner/work/mastra/mastra/packages/memory
3
3
  > pnpm run check && tsup --silent src/index.ts src/processors/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
4
4
 
5
5
 
6
- > @mastra/memory@0.10.5-alpha.1 check /home/runner/work/mastra/mastra/packages/memory
6
+ > @mastra/memory@0.11.0-alpha.3 check /home/runner/work/mastra/mastra/packages/memory
7
7
  > tsc --noEmit
8
8
 
9
9
  Analysis will use the bundled TypeScript version 5.8.3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @mastra/memory
2
2
 
3
+ ## 0.11.0-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a8b194f: Fix double tool call for working memory
8
+ - Updated dependencies [a8b194f]
9
+ - @mastra/core@0.10.7-alpha.4
10
+
11
+ ## 0.11.0-alpha.2
12
+
13
+ ### Minor Changes
14
+
15
+ - 8a3bfd2: Update peerdeps to latest core
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [792c4c0]
20
+ - Updated dependencies [502fe05]
21
+ - Updated dependencies [4efcfa0]
22
+ - @mastra/core@0.10.7-alpha.3
23
+
3
24
  ## 0.10.5-alpha.1
4
25
 
5
26
  ### Patch Changes
@@ -91,11 +91,6 @@ export declare class Memory extends MastraMemory {
91
91
  resourceId?: string;
92
92
  memoryConfig?: MemoryConfig;
93
93
  }): Promise<string | null>;
94
- getUserContextMessage({ threadId, resourceId, memoryConfig, }: {
95
- threadId: string;
96
- resourceId?: string;
97
- memoryConfig?: MemoryConfig;
98
- }): Promise<string | null>;
99
94
  defaultWorkingMemoryTemplate: string;
100
95
  private getWorkingMemoryToolInstruction;
101
96
  getTools(config?: MemoryConfig): Record<string, CoreTool>;
@@ -91,11 +91,6 @@ export declare class Memory extends MastraMemory {
91
91
  resourceId?: string;
92
92
  memoryConfig?: MemoryConfig;
93
93
  }): Promise<string | null>;
94
- getUserContextMessage({ threadId, resourceId, memoryConfig, }: {
95
- threadId: string;
96
- resourceId?: string;
97
- memoryConfig?: MemoryConfig;
98
- }): Promise<string | null>;
99
94
  defaultWorkingMemoryTemplate: string;
100
95
  private getWorkingMemoryToolInstruction;
101
96
  getTools(config?: MemoryConfig): Record<string, CoreTool>;
package/dist/index.cjs CHANGED
@@ -517,23 +517,6 @@ var Memory = class extends memory.MastraMemory {
517
517
  data: workingMemoryData
518
518
  });
519
519
  }
520
- async getUserContextMessage({
521
- threadId,
522
- resourceId,
523
- memoryConfig
524
- }) {
525
- const workingMemory = await this.getWorkingMemory({ threadId, resourceId, memoryConfig });
526
- if (!workingMemory) {
527
- return null;
528
- }
529
- return `The following is the most up-to-date information about the user's state and context:
530
- ${JSON.stringify(workingMemory)}
531
- Use this information as the source of truth when generating responses.
532
- Do not reference or mention this memory directly to the user.
533
- If conversation history shows information that is not in the working memory, use the working memory as the source of truth.
534
- If there is a discrepancy between this information and conversation history, always rely on this information unless the user explicitly asks for an update.
535
- `;
536
- }
537
520
  defaultWorkingMemoryTemplate = `
538
521
  # User Information
539
522
  - **First Name**:
package/dist/index.js CHANGED
@@ -510,23 +510,6 @@ var Memory = class extends MastraMemory {
510
510
  data: workingMemoryData
511
511
  });
512
512
  }
513
- async getUserContextMessage({
514
- threadId,
515
- resourceId,
516
- memoryConfig
517
- }) {
518
- const workingMemory = await this.getWorkingMemory({ threadId, resourceId, memoryConfig });
519
- if (!workingMemory) {
520
- return null;
521
- }
522
- return `The following is the most up-to-date information about the user's state and context:
523
- ${JSON.stringify(workingMemory)}
524
- Use this information as the source of truth when generating responses.
525
- Do not reference or mention this memory directly to the user.
526
- If conversation history shows information that is not in the working memory, use the working memory as the source of truth.
527
- If there is a discrepancy between this information and conversation history, always rely on this information unless the user explicitly asks for an update.
528
- `;
529
- }
530
513
  defaultWorkingMemoryTemplate = `
531
514
  # User Information
532
515
  - **First Name**:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "0.10.5-alpha.1",
3
+ "version": "0.11.0-alpha.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -54,10 +54,10 @@
54
54
  "typescript-eslint": "^8.34.0",
55
55
  "vitest": "^3.2.3",
56
56
  "@internal/lint": "0.0.13",
57
- "@mastra/core": "0.10.7-alpha.2"
57
+ "@mastra/core": "0.10.7-alpha.4"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mastra/core": ">=0.10.4-0 <0.11.0"
60
+ "@mastra/core": ">=0.10.7-0 <0.11.0-0"
61
61
  },
62
62
  "scripts": {
63
63
  "check": "tsc --noEmit",
package/src/index.ts CHANGED
@@ -707,29 +707,6 @@ export class Memory extends MastraMemory {
707
707
  });
708
708
  }
709
709
 
710
- public async getUserContextMessage({
711
- threadId,
712
- resourceId,
713
- memoryConfig,
714
- }: {
715
- threadId: string;
716
- resourceId?: string;
717
- memoryConfig?: MemoryConfig;
718
- }) {
719
- const workingMemory = await this.getWorkingMemory({ threadId, resourceId, memoryConfig });
720
- if (!workingMemory) {
721
- return null;
722
- }
723
-
724
- return `The following is the most up-to-date information about the user's state and context:
725
- ${JSON.stringify(workingMemory)}
726
- Use this information as the source of truth when generating responses.
727
- Do not reference or mention this memory directly to the user.
728
- If conversation history shows information that is not in the working memory, use the working memory as the source of truth.
729
- If there is a discrepancy between this information and conversation history, always rely on this information unless the user explicitly asks for an update.
730
- `;
731
- }
732
-
733
710
  public defaultWorkingMemoryTemplate = `
734
711
  # User Information
735
712
  - **First Name**: