@mastra/memory 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645

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 (74) hide show
  1. package/CHANGELOG.md +1378 -4
  2. package/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +7549 -0
  3. package/dist/chunk-DGUM43GV.js +10 -0
  4. package/dist/chunk-DGUM43GV.js.map +1 -0
  5. package/dist/chunk-JEQ2X3Z6.cjs +12 -0
  6. package/dist/chunk-JEQ2X3Z6.cjs.map +1 -0
  7. package/dist/chunk-KMQS2YEC.js +79 -0
  8. package/dist/chunk-KMQS2YEC.js.map +1 -0
  9. package/dist/chunk-MMUHFOCG.js +79 -0
  10. package/dist/chunk-MMUHFOCG.js.map +1 -0
  11. package/dist/chunk-QY6BZOPJ.js +250 -0
  12. package/dist/chunk-QY6BZOPJ.js.map +1 -0
  13. package/dist/chunk-SG3GRV3O.cjs +84 -0
  14. package/dist/chunk-SG3GRV3O.cjs.map +1 -0
  15. package/dist/chunk-W72AYUIF.cjs +252 -0
  16. package/dist/chunk-W72AYUIF.cjs.map +1 -0
  17. package/dist/chunk-WC4XBMZT.js +250 -0
  18. package/dist/chunk-WC4XBMZT.js.map +1 -0
  19. package/dist/chunk-YMNW6DEN.cjs +252 -0
  20. package/dist/chunk-YMNW6DEN.cjs.map +1 -0
  21. package/dist/chunk-ZUQPUTTO.cjs +84 -0
  22. package/dist/chunk-ZUQPUTTO.cjs.map +1 -0
  23. package/dist/docs/README.md +36 -0
  24. package/dist/docs/SKILL.md +42 -0
  25. package/dist/docs/SOURCE_MAP.json +31 -0
  26. package/dist/docs/agents/01-agent-memory.md +166 -0
  27. package/dist/docs/agents/02-networks.md +292 -0
  28. package/dist/docs/agents/03-agent-approval.md +377 -0
  29. package/dist/docs/agents/04-network-approval.md +274 -0
  30. package/dist/docs/core/01-reference.md +114 -0
  31. package/dist/docs/memory/01-overview.md +76 -0
  32. package/dist/docs/memory/02-storage.md +233 -0
  33. package/dist/docs/memory/03-working-memory.md +390 -0
  34. package/dist/docs/memory/04-semantic-recall.md +233 -0
  35. package/dist/docs/memory/05-memory-processors.md +318 -0
  36. package/dist/docs/memory/06-reference.md +687 -0
  37. package/dist/docs/processors/01-reference.md +100 -0
  38. package/dist/docs/storage/01-reference.md +1135 -0
  39. package/dist/docs/vectors/01-reference.md +942 -0
  40. package/dist/index.cjs +14986 -261
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.ts +167 -49
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +14948 -265
  45. package/dist/index.js.map +1 -1
  46. package/dist/token-6GSAFR2W-JV3TZR4M.cjs +63 -0
  47. package/dist/token-6GSAFR2W-JV3TZR4M.cjs.map +1 -0
  48. package/dist/token-6GSAFR2W-K2BTU23I.js +61 -0
  49. package/dist/token-6GSAFR2W-K2BTU23I.js.map +1 -0
  50. package/dist/token-6GSAFR2W-VLY2XUPA.js +61 -0
  51. package/dist/token-6GSAFR2W-VLY2XUPA.js.map +1 -0
  52. package/dist/token-6GSAFR2W-YCB5SK2Z.cjs +63 -0
  53. package/dist/token-6GSAFR2W-YCB5SK2Z.cjs.map +1 -0
  54. package/dist/token-util-NEHG7TUY-7IL6JUVY.cjs +10 -0
  55. package/dist/token-util-NEHG7TUY-7IL6JUVY.cjs.map +1 -0
  56. package/dist/token-util-NEHG7TUY-HF7KBP2H.cjs +10 -0
  57. package/dist/token-util-NEHG7TUY-HF7KBP2H.cjs.map +1 -0
  58. package/dist/token-util-NEHG7TUY-KSXDO2NO.js +8 -0
  59. package/dist/token-util-NEHG7TUY-KSXDO2NO.js.map +1 -0
  60. package/dist/token-util-NEHG7TUY-TIJ3LMSH.js +8 -0
  61. package/dist/token-util-NEHG7TUY-TIJ3LMSH.js.map +1 -0
  62. package/dist/tools/working-memory.d.ts +17 -24
  63. package/dist/tools/working-memory.d.ts.map +1 -1
  64. package/package.json +26 -34
  65. package/dist/processors/index.cjs +0 -165
  66. package/dist/processors/index.cjs.map +0 -1
  67. package/dist/processors/index.d.ts +0 -3
  68. package/dist/processors/index.d.ts.map +0 -1
  69. package/dist/processors/index.js +0 -158
  70. package/dist/processors/index.js.map +0 -1
  71. package/dist/processors/token-limiter.d.ts +0 -32
  72. package/dist/processors/token-limiter.d.ts.map +0 -1
  73. package/dist/processors/tool-call-filter.d.ts +0 -20
  74. package/dist/processors/tool-call-filter.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,50 +1,34 @@
1
- import type { MastraMessageV2, UIMessageWithMetadata } from '@mastra/core/agent';
1
+ import { embedMany } from './_types/@internal_ai-sdk-v4/dist/index.js';
2
+ import type { MastraDBMessage } from '@mastra/core/agent';
3
+ import type { MemoryConfig, SharedMemoryConfig, StorageThreadType, WorkingMemoryTemplate, MessageDeleteInput } from '@mastra/core/memory';
2
4
  import { MastraMemory } from '@mastra/core/memory';
3
- import type { MastraMessageV1, MemoryConfig, SharedMemoryConfig, StorageThreadType, WorkingMemoryTemplate } from '@mastra/core/memory';
4
- import type { StorageGetMessagesArg, ThreadSortOptions, PaginationInfo } from '@mastra/core/storage';
5
+ import type { StorageListThreadsInput, StorageListThreadsOutput, StorageListMessagesInput, MemoryStorage, StorageCloneThreadInput, StorageCloneThreadOutput, ThreadCloneMetadata } from '@mastra/core/storage';
5
6
  import type { ToolAction } from '@mastra/core/tools';
6
- import { embedMany } from 'ai';
7
- import type { CoreMessage } from 'ai';
8
- export type MessageDeleteInput = string[] | {
9
- id: string;
10
- }[];
7
+ import { deepMergeWorkingMemory } from './tools/working-memory.js';
8
+ export { deepMergeWorkingMemory };
9
+ export { extractWorkingMemoryTags, extractWorkingMemoryContent, removeWorkingMemoryTags } from '@mastra/core/memory';
11
10
  /**
12
11
  * Concrete implementation of MastraMemory that adds support for thread configuration
13
12
  * and message injection.
14
13
  */
15
14
  export declare class Memory extends MastraMemory {
16
15
  constructor(config?: SharedMemoryConfig);
16
+ /**
17
+ * Gets the memory storage domain, throwing if not available.
18
+ */
19
+ protected getMemoryStore(): Promise<MemoryStorage>;
17
20
  protected validateThreadIsOwnedByResource(threadId: string, resourceId: string, config: MemoryConfig): Promise<void>;
18
- protected checkStorageFeatureSupport(config: MemoryConfig): void;
19
- query({ threadId, resourceId, selectBy, threadConfig, }: StorageGetMessagesArg & {
21
+ recall(args: StorageListMessagesInput & {
20
22
  threadConfig?: MemoryConfig;
21
- }): Promise<{
22
- messages: CoreMessage[];
23
- uiMessages: UIMessageWithMetadata[];
24
- messagesV2: MastraMessageV2[];
25
- }>;
26
- rememberMessages({ threadId, resourceId, vectorMessageSearch, config, }: {
23
+ vectorSearchString?: string;
27
24
  threadId: string;
28
- resourceId?: string;
29
- vectorMessageSearch?: string;
30
- config?: MemoryConfig;
31
25
  }): Promise<{
32
- messages: MastraMessageV1[];
33
- messagesV2: MastraMessageV2[];
26
+ messages: MastraDBMessage[];
34
27
  }>;
35
28
  getThreadById({ threadId }: {
36
29
  threadId: string;
37
30
  }): Promise<StorageThreadType | null>;
38
- getThreadsByResourceId({ resourceId, orderBy, sortDirection, }: {
39
- resourceId: string;
40
- } & ThreadSortOptions): Promise<StorageThreadType[]>;
41
- getThreadsByResourceIdPaginated({ resourceId, page, perPage, orderBy, sortDirection, }: {
42
- resourceId: string;
43
- page: number;
44
- perPage: number;
45
- } & ThreadSortOptions): Promise<PaginationInfo & {
46
- threads: StorageThreadType[];
47
- }>;
31
+ listThreads(args: StorageListThreadsInput): Promise<StorageListThreadsOutput>;
48
32
  private handleWorkingMemoryFromMetadata;
49
33
  saveThread({ thread, memoryConfig, }: {
50
34
  thread: StorageThreadType;
@@ -86,18 +70,13 @@ export declare class Memory extends MastraMemory {
86
70
  embeddings: Awaited<ReturnType<typeof embedMany>>["embeddings"];
87
71
  dimension: number | undefined;
88
72
  }>;
89
- saveMessages(args: {
90
- messages: (MastraMessageV1 | MastraMessageV2)[] | MastraMessageV1[] | MastraMessageV2[];
73
+ saveMessages({ messages, memoryConfig, }: {
74
+ messages: MastraDBMessage[];
91
75
  memoryConfig?: MemoryConfig | undefined;
92
- format?: 'v1';
93
- }): Promise<MastraMessageV1[]>;
94
- saveMessages(args: {
95
- messages: (MastraMessageV1 | MastraMessageV2)[] | MastraMessageV1[] | MastraMessageV2[];
96
- memoryConfig?: MemoryConfig | undefined;
97
- format: 'v2';
98
- }): Promise<MastraMessageV2[]>;
99
- protected updateMessageToHideWorkingMemory(message: MastraMessageV1): MastraMessageV1 | null;
100
- protected updateMessageToHideWorkingMemoryV2(message: MastraMessageV2): MastraMessageV2 | null;
76
+ }): Promise<{
77
+ messages: MastraDBMessage[];
78
+ }>;
79
+ protected updateMessageToHideWorkingMemoryV2(message: MastraDBMessage): MastraDBMessage | null;
101
80
  protected parseWorkingMemory(text: string): string | null;
102
81
  getWorkingMemory({ threadId, resourceId, memoryConfig, }: {
103
82
  threadId: string;
@@ -129,17 +108,22 @@ export declare class Memory extends MastraMemory {
129
108
  data: string | null;
130
109
  }): string;
131
110
  private isVNextWorkingMemoryConfig;
132
- getTools(config?: MemoryConfig): Record<string, ToolAction<any, any, any>>;
111
+ listTools(config?: MemoryConfig): Record<string, ToolAction<any, any, any>>;
133
112
  /**
134
- * Updates the metadata of a list of messages
135
- * @param messages - The list of messages to update
113
+ * Updates a list of messages and syncs the vector database for semantic recall.
114
+ * When message content is updated, the corresponding vector embeddings are also updated
115
+ * to ensure semantic recall stays in sync with the message content.
116
+ *
117
+ * @param messages - The list of messages to update (must include id, can include partial content)
118
+ * @param memoryConfig - Optional memory configuration to determine if semantic recall is enabled
136
119
  * @returns The list of updated messages
137
120
  */
138
- updateMessages({ messages, }: {
139
- messages: Partial<MastraMessageV2> & {
121
+ updateMessages({ messages, memoryConfig, }: {
122
+ messages: (Partial<MastraDBMessage> & {
140
123
  id: string;
141
- }[];
142
- }): Promise<MastraMessageV2[]>;
124
+ })[];
125
+ memoryConfig?: MemoryConfig;
126
+ }): Promise<MastraDBMessage[]>;
143
127
  /**
144
128
  * Deletes one or more messages
145
129
  * @param input - Must be an array containing either:
@@ -148,5 +132,139 @@ export declare class Memory extends MastraMemory {
148
132
  * @returns Promise that resolves when all messages are deleted
149
133
  */
150
134
  deleteMessages(input: MessageDeleteInput): Promise<void>;
135
+ /**
136
+ * Clone a thread and its messages to create a new independent thread.
137
+ * The cloned thread will have metadata tracking its source.
138
+ *
139
+ * If semantic recall is enabled, the cloned messages will also be embedded
140
+ * and added to the vector store for semantic search.
141
+ *
142
+ * @param args - Clone configuration options
143
+ * @param args.sourceThreadId - ID of the thread to clone
144
+ * @param args.newThreadId - ID for the new cloned thread (if not provided, a random UUID will be generated)
145
+ * @param args.resourceId - Resource ID for the new thread (defaults to source thread's resourceId)
146
+ * @param args.title - Title for the new cloned thread
147
+ * @param args.metadata - Additional metadata to merge with clone metadata
148
+ * @param args.options - Options for filtering which messages to include
149
+ * @param args.options.messageLimit - Maximum number of messages to copy (from most recent)
150
+ * @param args.options.messageFilter - Filter messages by date range or specific IDs
151
+ * @param memoryConfig - Optional memory configuration override
152
+ * @returns The newly created thread and the cloned messages
153
+ *
154
+ * @example
155
+ * ```typescript
156
+ * // Clone entire thread
157
+ * const { thread, clonedMessages } = await memory.cloneThread({
158
+ * sourceThreadId: 'thread-123',
159
+ * });
160
+ *
161
+ * // Clone with custom ID
162
+ * const { thread, clonedMessages } = await memory.cloneThread({
163
+ * sourceThreadId: 'thread-123',
164
+ * newThreadId: 'my-custom-thread-id',
165
+ * });
166
+ *
167
+ * // Clone with message limit
168
+ * const { thread, clonedMessages } = await memory.cloneThread({
169
+ * sourceThreadId: 'thread-123',
170
+ * title: 'My cloned conversation',
171
+ * options: {
172
+ * messageLimit: 10, // Only clone last 10 messages
173
+ * },
174
+ * });
175
+ *
176
+ * // Clone with date filter
177
+ * const { thread, clonedMessages } = await memory.cloneThread({
178
+ * sourceThreadId: 'thread-123',
179
+ * options: {
180
+ * messageFilter: {
181
+ * startDate: new Date('2024-01-01'),
182
+ * endDate: new Date('2024-06-01'),
183
+ * },
184
+ * },
185
+ * });
186
+ * ```
187
+ */
188
+ cloneThread(args: StorageCloneThreadInput, memoryConfig?: MemoryConfig): Promise<StorageCloneThreadOutput>;
189
+ /**
190
+ * Embed cloned messages for semantic recall.
191
+ * This is similar to the embedding logic in saveMessages but operates on already-saved messages.
192
+ */
193
+ private embedClonedMessages;
194
+ /**
195
+ * Get the clone metadata from a thread if it was cloned from another thread.
196
+ *
197
+ * @param thread - The thread to check
198
+ * @returns The clone metadata if the thread is a clone, null otherwise
199
+ *
200
+ * @example
201
+ * ```typescript
202
+ * const thread = await memory.getThreadById({ threadId: 'thread-123' });
203
+ * const cloneInfo = memory.getCloneMetadata(thread);
204
+ * if (cloneInfo) {
205
+ * console.log(`This thread was cloned from ${cloneInfo.sourceThreadId}`);
206
+ * }
207
+ * ```
208
+ */
209
+ getCloneMetadata(thread: StorageThreadType | null): ThreadCloneMetadata | null;
210
+ /**
211
+ * Check if a thread is a clone of another thread.
212
+ *
213
+ * @param thread - The thread to check
214
+ * @returns True if the thread is a clone, false otherwise
215
+ *
216
+ * @example
217
+ * ```typescript
218
+ * const thread = await memory.getThreadById({ threadId: 'thread-123' });
219
+ * if (memory.isClone(thread)) {
220
+ * console.log('This is a cloned thread');
221
+ * }
222
+ * ```
223
+ */
224
+ isClone(thread: StorageThreadType | null): boolean;
225
+ /**
226
+ * Get the source thread that a cloned thread was created from.
227
+ *
228
+ * @param threadId - ID of the cloned thread
229
+ * @returns The source thread if found, null if the thread is not a clone or source doesn't exist
230
+ *
231
+ * @example
232
+ * ```typescript
233
+ * const sourceThread = await memory.getSourceThread('cloned-thread-123');
234
+ * if (sourceThread) {
235
+ * console.log(`Original thread: ${sourceThread.title}`);
236
+ * }
237
+ * ```
238
+ */
239
+ getSourceThread(threadId: string): Promise<StorageThreadType | null>;
240
+ /**
241
+ * List all threads that were cloned from a specific source thread.
242
+ *
243
+ * @param sourceThreadId - ID of the source thread
244
+ * @param resourceId - Optional resource ID to filter by
245
+ * @returns Array of threads that are clones of the source thread
246
+ *
247
+ * @example
248
+ * ```typescript
249
+ * const clones = await memory.listClones('original-thread-123', 'user-456');
250
+ * console.log(`Found ${clones.length} clones of this thread`);
251
+ * ```
252
+ */
253
+ listClones(sourceThreadId: string, resourceId?: string): Promise<StorageThreadType[]>;
254
+ /**
255
+ * Get the clone history chain for a thread (all ancestors back to the original).
256
+ *
257
+ * @param threadId - ID of the thread to get history for
258
+ * @returns Array of threads from oldest ancestor to the given thread (inclusive)
259
+ *
260
+ * @example
261
+ * ```typescript
262
+ * const history = await memory.getCloneHistory('deeply-cloned-thread');
263
+ * // Returns: [originalThread, firstClone, secondClone, deeplyClonedThread]
264
+ * ```
265
+ */
266
+ getCloneHistory(threadId: string): Promise<StorageThreadType[]>;
151
267
  }
268
+ export { SemanticRecall, WorkingMemory, MessageHistory } from '@mastra/core/processors';
269
+ export type { StorageCloneThreadInput, StorageCloneThreadOutput, ThreadCloneMetadata } from '@mastra/core/storage';
152
270
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACrG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAY,MAAM,IAAI,CAAC;AAUhD,MAAM,MAAM,kBAAkB,GAAG,MA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