@mastra/memory 0.0.2-alpha.6 → 0.0.2-alpha.62

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 CHANGED
@@ -1,5 +1,429 @@
1
1
  # @mastra/memory
2
2
 
3
+ ## 0.0.2-alpha.62
4
+
5
+ ### Patch Changes
6
+
7
+ - 7f5b1b2: @mastra/memory tsup bundling
8
+
9
+ ## 0.0.2-alpha.61
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [327ece7]
14
+ - @mastra/core@0.1.27-alpha.80
15
+
16
+ ## 0.0.2-alpha.60
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [21fe536]
21
+ - @mastra/core@0.1.27-alpha.79
22
+
23
+ ## 0.0.2-alpha.59
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [685108a]
28
+ - Updated dependencies [685108a]
29
+ - @mastra/core@0.1.27-alpha.78
30
+
31
+ ## 0.0.2-alpha.58
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [8105fae]
36
+ - @mastra/core@0.1.27-alpha.77
37
+
38
+ ## 0.0.2-alpha.57
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [ae7bf94]
43
+ - Updated dependencies [ae7bf94]
44
+ - @mastra/core@0.1.27-alpha.76
45
+
46
+ ## 0.0.2-alpha.56
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [23dcb23]
51
+ - @mastra/core@0.1.27-alpha.75
52
+
53
+ ## 0.0.2-alpha.55
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [7b87567]
58
+ - @mastra/core@0.1.27-alpha.74
59
+
60
+ ## 0.0.2-alpha.54
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [3427b95]
65
+ - @mastra/core@0.1.27-alpha.73
66
+
67
+ ## 0.0.2-alpha.53
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [e4d4ede]
72
+ - Updated dependencies [06b2c0a]
73
+ - @mastra/core@0.1.27-alpha.72
74
+
75
+ ## 0.0.2-alpha.52
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [d9c8dd0]
80
+ - @mastra/core@0.1.27-alpha.71
81
+
82
+ ## 0.0.2-alpha.51
83
+
84
+ ### Patch Changes
85
+
86
+ - bdaf834: publish packages
87
+
88
+ ## 0.0.2-alpha.50
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [dd6d87f]
93
+ - Updated dependencies [04434b6]
94
+ - @mastra/core@0.1.27-alpha.70
95
+
96
+ ## 0.0.2-alpha.49
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [1944807]
101
+ - Updated dependencies [9ade36e]
102
+ - @mastra/core@0.1.27-alpha.69
103
+
104
+ ## 0.0.2-alpha.48
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [0be7181]
109
+ - Updated dependencies [0be7181]
110
+ - @mastra/core@0.1.27-alpha.68
111
+
112
+ ## 0.0.2-alpha.47
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [c8ff2f5]
117
+ - @mastra/core@0.1.27-alpha.67
118
+
119
+ ## 0.0.2-alpha.46
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [14064f2]
124
+ - @mastra/core@0.1.27-alpha.66
125
+
126
+ ## 0.0.2-alpha.45
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [e66643a]
131
+ - @mastra/core@0.1.27-alpha.65
132
+
133
+ ## 0.0.2-alpha.44
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [f368477]
138
+ - Updated dependencies [d5ec619]
139
+ - @mastra/core@0.1.27-alpha.64
140
+
141
+ ## 0.0.2-alpha.43
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [e097800]
146
+ - @mastra/core@0.1.27-alpha.63
147
+
148
+ ## 0.0.2-alpha.42
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [93a3719]
153
+ - @mastra/core@0.1.27-alpha.62
154
+
155
+ ## 0.0.2-alpha.41
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [dc90663]
160
+ - @mastra/core@0.1.27-alpha.61
161
+
162
+ ## 0.0.2-alpha.40
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [3967e69]
167
+ - @mastra/core@0.1.27-alpha.60
168
+
169
+ ## 0.0.2-alpha.39
170
+
171
+ ### Patch Changes
172
+
173
+ - Updated dependencies [b524c22]
174
+ - @mastra/core@0.1.27-alpha.59
175
+
176
+ ## 0.0.2-alpha.38
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [1874f40]
181
+ - Updated dependencies [4b1ce2c]
182
+ - @mastra/core@0.1.27-alpha.58
183
+
184
+ ## 0.0.2-alpha.37
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [fd494a3]
189
+ - @mastra/core@0.1.27-alpha.57
190
+
191
+ ## 0.0.2-alpha.36
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [9f3ab05]
196
+ - @mastra/core@0.1.27-alpha.56
197
+
198
+ ## 0.0.2-alpha.35
199
+
200
+ ### Patch Changes
201
+
202
+ - 837a288: MAJOR Revamp of tools, workflows, syncs.
203
+ - 0b74006: Workflow updates
204
+ - Updated dependencies [592e3cf]
205
+ - Updated dependencies [837a288]
206
+ - Updated dependencies [0b74006]
207
+ - @mastra/core@0.1.27-alpha.55
208
+
209
+ ## 0.0.2-alpha.34
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [d2cd535]
214
+ - @mastra/core@0.1.27-alpha.54
215
+
216
+ ## 0.0.2-alpha.33
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [8e7814f]
221
+ - @mastra/core@0.1.27-alpha.53
222
+
223
+ ## 0.0.2-alpha.32
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [eedb829]
228
+ - @mastra/core@0.1.27-alpha.52
229
+
230
+ ## 0.0.2-alpha.31
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [a7b016d]
235
+ - Updated dependencies [da2e8d3]
236
+ - Updated dependencies [538a136]
237
+ - @mastra/core@0.1.27-alpha.51
238
+
239
+ ## 0.0.2-alpha.30
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies [401a4d9]
244
+ - @mastra/core@0.1.27-alpha.50
245
+
246
+ ## 0.0.2-alpha.29
247
+
248
+ ### Patch Changes
249
+
250
+ - Updated dependencies [79acad0]
251
+ - Updated dependencies [f5dfa20]
252
+ - @mastra/core@0.1.27-alpha.49
253
+
254
+ ## 0.0.2-alpha.28
255
+
256
+ ### Patch Changes
257
+
258
+ - Updated dependencies [b726bf5]
259
+ - @mastra/core@0.1.27-alpha.48
260
+
261
+ ## 0.0.2-alpha.27
262
+
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [f6ba259]
266
+ - @mastra/core@0.1.27-alpha.47
267
+
268
+ ## 0.0.2-alpha.26
269
+
270
+ ### Patch Changes
271
+
272
+ - 8ae2bbc: Dane publishing
273
+ - 0bd142c: Fixes learned from docs
274
+ - ee4de15: Dane fixes
275
+ - Updated dependencies [8ae2bbc]
276
+ - Updated dependencies [0bd142c]
277
+ - Updated dependencies [ee4de15]
278
+ - @mastra/core@0.1.27-alpha.46
279
+
280
+ ## 0.0.2-alpha.25
281
+
282
+ ### Patch Changes
283
+
284
+ - 3220d26: Fix lastStep error in agent stream
285
+
286
+ ## 0.0.2-alpha.24
287
+
288
+ ### Patch Changes
289
+
290
+ - 002d6d8: add memory to playground agent
291
+ - Updated dependencies [e608d8c]
292
+ - Updated dependencies [002d6d8]
293
+ - @mastra/core@0.1.27-alpha.45
294
+
295
+ ## 0.0.2-alpha.23
296
+
297
+ ### Patch Changes
298
+
299
+ - Updated dependencies [2fa7f53]
300
+ - @mastra/core@0.1.27-alpha.44
301
+
302
+ ## 0.0.2-alpha.22
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [2e099d2]
307
+ - Updated dependencies [d6d8159]
308
+ - @mastra/core@0.1.27-alpha.43
309
+
310
+ ## 0.0.2-alpha.21
311
+
312
+ ### Patch Changes
313
+
314
+ - Updated dependencies [4a54c82]
315
+ - @mastra/core@0.1.27-alpha.42
316
+
317
+ ## 0.0.2-alpha.20
318
+
319
+ ### Patch Changes
320
+
321
+ - Updated dependencies [5cdfb88]
322
+ - @mastra/core@0.1.27-alpha.41
323
+
324
+ ## 0.0.2-alpha.19
325
+
326
+ ### Patch Changes
327
+
328
+ - Updated dependencies [9029796]
329
+ - @mastra/core@0.1.27-alpha.40
330
+
331
+ ## 0.0.2-alpha.18
332
+
333
+ ### Patch Changes
334
+
335
+ - Updated dependencies [2b01511]
336
+ - @mastra/core@0.1.27-alpha.39
337
+
338
+ ## 0.0.2-alpha.17
339
+
340
+ ### Patch Changes
341
+
342
+ - Updated dependencies [f031a1f]
343
+ - @mastra/core@0.1.27-alpha.38
344
+
345
+ ## 0.0.2-alpha.16
346
+
347
+ ### Patch Changes
348
+
349
+ - b5393f1: New example: Dane and many fixes to make it work
350
+ - Updated dependencies [c872875]
351
+ - Updated dependencies [f6da688]
352
+ - Updated dependencies [b5393f1]
353
+ - @mastra/core@0.1.27-alpha.37
354
+
355
+ ## 0.0.2-alpha.15
356
+
357
+ ### Patch Changes
358
+
359
+ - b898fad: Fix get context window in memory
360
+ - Updated dependencies [f537e33]
361
+ - Updated dependencies [bc40916]
362
+ - Updated dependencies [f7d1131]
363
+ - Updated dependencies [75bf3f0]
364
+ - Updated dependencies [3c4488b]
365
+ - Updated dependencies [d38f7a6]
366
+ - @mastra/core@0.1.27-alpha.36
367
+
368
+ ## 0.0.2-alpha.14
369
+
370
+ ### Patch Changes
371
+
372
+ - 033eda6: More fixes for refactor
373
+ - Updated dependencies [033eda6]
374
+ - @mastra/core@0.1.27-alpha.35
375
+
376
+ ## 0.0.2-alpha.13
377
+
378
+ ### Patch Changes
379
+
380
+ - 837a288: MAJOR Revamp of tools, workflows, syncs.
381
+ - Updated dependencies [837a288]
382
+ - Updated dependencies [5811de6]
383
+ - @mastra/core@0.1.27-alpha.34
384
+
385
+ ## 0.0.2-alpha.12
386
+
387
+ ### Patch Changes
388
+
389
+ - Updated dependencies [e1dd94a]
390
+ - @mastra/core@0.1.27-alpha.33
391
+
392
+ ## 0.0.2-alpha.11
393
+
394
+ ### Patch Changes
395
+
396
+ - Updated dependencies [2712098]
397
+ - @mastra/core@0.1.27-alpha.32
398
+
399
+ ## 0.0.2-alpha.10
400
+
401
+ ### Patch Changes
402
+
403
+ - Updated dependencies [c2dd6b5]
404
+ - @mastra/core@0.1.27-alpha.31
405
+
406
+ ## 0.0.2-alpha.9
407
+
408
+ ### Patch Changes
409
+
410
+ - Updated dependencies [963c15a]
411
+ - @mastra/core@0.1.27-alpha.30
412
+
413
+ ## 0.0.2-alpha.8
414
+
415
+ ### Patch Changes
416
+
417
+ - Updated dependencies [7d87a15]
418
+ - @mastra/core@0.1.27-alpha.29
419
+
420
+ ## 0.0.2-alpha.7
421
+
422
+ ### Patch Changes
423
+
424
+ - Updated dependencies [1ebd071]
425
+ - @mastra/core@0.1.27-alpha.28
426
+
3
427
  ## 0.0.2-alpha.6
4
428
 
5
429
  ### Patch Changes
package/LICENSE ADDED
@@ -0,0 +1,44 @@
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ **Acceptance**
4
+ By using the software, you agree to all of the terms and conditions below.
5
+
6
+ **Copyright License**
7
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
8
+
9
+ **Limitations**
10
+ You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
11
+
12
+ You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
13
+
14
+ You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
15
+
16
+ **Patents**
17
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
18
+
19
+ **Notices**
20
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
21
+
22
+ If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
23
+
24
+ **No Other Rights**
25
+ These terms do not imply any licenses other than those expressly granted in these terms.
26
+
27
+ **Termination**
28
+ If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
29
+
30
+ **No Liability**
31
+ As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
32
+
33
+ **Definitions**
34
+ The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
35
+
36
+ _you_ refers to the individual or entity agreeing to these terms.
37
+
38
+ _your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
39
+
40
+ _your licenses_ are all the licenses granted to you for the software under these terms.
41
+
42
+ _use_ means anything you do with the software requiring one of your licenses.
43
+
44
+ _trademark_ means trademarks, service marks, and similar rights.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './postgres';
2
- export * from './kv/upstash';
1
+
2
+ export { }
package/dist/index.js CHANGED
@@ -1,8 +1 @@
1
1
 
2
- 'use strict'
3
-
4
- if (process.env.NODE_ENV === 'production') {
5
- module.exports = require('./memory.cjs.production.min.js')
6
- } else {
7
- module.exports = require('./memory.cjs.development.js')
8
- }
@@ -1,14 +1,15 @@
1
- import { MastraMemory, MessageType as BaseMastraMessageType, ThreadType, MessageResponse } from '@mastra/core';
1
+ import { MastraMemory, ThreadType, MessageResponse, AiMessageType, MessageType as MessageType$1 } from '@mastra/core';
2
2
  import { Redis } from '@upstash/redis';
3
- import { ToolResultPart, Message as AiMessage } from 'ai';
4
- interface MessageType extends BaseMastraMessageType {
3
+ import { ToolResultPart } from 'ai';
4
+
5
+ interface MessageType extends MessageType$1 {
5
6
  tokens?: number;
6
7
  }
7
8
  interface SerializedThreadType extends Omit<ThreadType, 'createdAt' | 'updatedAt'> {
8
9
  createdAt: string;
9
10
  updatedAt: string;
10
11
  }
11
- export declare class UpstashKVMemory extends MastraMemory {
12
+ declare class UpstashKVMemory extends MastraMemory {
12
13
  private prefix;
13
14
  kv: Redis;
14
15
  constructor(config: {
@@ -51,11 +52,11 @@ export declare class UpstashKVMemory extends MastraMemory {
51
52
  /**
52
53
  * Messages
53
54
  */
54
- getMessages({ threadId }: {
55
+ getMessages({ threadId, }: {
55
56
  threadId: string;
56
57
  }): Promise<{
57
58
  messages: MessageType[];
58
- uiMessages: AiMessage[];
59
+ uiMessages: AiMessageType[];
59
60
  }>;
60
61
  saveMessages({ messages }: {
61
62
  messages: MessageType[];
@@ -68,4 +69,5 @@ export declare class UpstashKVMemory extends MastraMemory {
68
69
  parseThread(thread: SerializedThreadType): ThreadType;
69
70
  parseMessages(messages: MessageType[]): MessageType[];
70
71
  }
71
- export {};
72
+
73
+ export { UpstashKVMemory };