@mastra/memory 1.22.1-alpha.0 → 1.22.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/{chunk-KKP6DG65.js → chunk-2NSPHF6Q.js} +10 -4
- package/dist/chunk-2NSPHF6Q.js.map +1 -0
- package/dist/{chunk-KXO2ZPM3.cjs → chunk-YWAAIUB6.cjs} +10 -4
- package/dist/chunk-YWAAIUB6.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +38 -38
- package/dist/docs/references/docs-agents-agent-approval.md +2 -0
- package/dist/docs/references/docs-agents-background-tasks.md +2 -0
- package/dist/docs/references/docs-agents-goals.md +2 -0
- package/dist/docs/references/docs-agents-networks.md +2 -0
- package/dist/docs/references/docs-agents-supervisor-agents.md +2 -0
- package/dist/docs/references/docs-evals-evals-with-memory.md +2 -0
- package/dist/docs/references/docs-memory-memory-processors.md +2 -0
- package/dist/docs/references/docs-memory-message-history.md +2 -0
- package/dist/docs/references/docs-memory-multi-user-threads.md +2 -0
- package/dist/docs/references/docs-memory-observational-memory.md +2 -0
- package/dist/docs/references/docs-memory-overview.md +5 -1
- package/dist/docs/references/docs-memory-semantic-recall.md +2 -0
- package/dist/docs/references/docs-memory-storage.md +6 -0
- package/dist/docs/references/docs-memory-working-memory.md +2 -0
- package/dist/docs/references/reference-core-getMemory.md +2 -0
- package/dist/docs/references/reference-core-listMemory.md +2 -0
- package/dist/docs/references/reference-memory-clone-utilities.md +2 -0
- package/dist/docs/references/reference-memory-cloneThread.md +2 -0
- package/dist/docs/references/reference-memory-createThread.md +2 -0
- package/dist/docs/references/reference-memory-getThreadById.md +2 -0
- package/dist/docs/references/reference-memory-listThreads.md +2 -0
- package/dist/docs/references/reference-memory-memory-class.md +2 -0
- package/dist/docs/references/reference-memory-observational-memory.md +2 -0
- package/dist/docs/references/reference-processors-token-limiter-processor.md +2 -0
- package/dist/docs/references/reference-storage-dsql.md +2 -0
- package/dist/docs/references/reference-storage-dynamodb.md +2 -0
- package/dist/docs/references/reference-storage-libsql.md +2 -0
- package/dist/docs/references/reference-storage-mongodb.md +2 -0
- package/dist/docs/references/reference-storage-postgresql.md +2 -0
- package/dist/docs/references/reference-storage-redis.md +2 -0
- package/dist/docs/references/reference-storage-upstash.md +2 -0
- package/dist/docs/references/reference-vectors-libsql.md +2 -0
- package/dist/docs/references/reference-vectors-mongodb.md +2 -0
- package/dist/docs/references/reference-vectors-pg.md +2 -0
- package/dist/docs/references/reference-vectors-upstash.md +2 -0
- package/dist/index.cjs +13 -13
- package/dist/index.js +1 -1
- package/dist/{observational-memory-GSJXSJXG.cjs → observational-memory-CZ22AU3H.cjs} +28 -28
- package/dist/{observational-memory-GSJXSJXG.cjs.map → observational-memory-CZ22AU3H.cjs.map} +1 -1
- package/dist/{observational-memory-PBLNZABH.js → observational-memory-QL6BKIQX.js} +3 -3
- package/dist/{observational-memory-PBLNZABH.js.map → observational-memory-QL6BKIQX.js.map} +1 -1
- package/dist/processors/index.cjs +26 -26
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/token-counter.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-KKP6DG65.js.map +0 -1
- package/dist/chunk-KXO2ZPM3.cjs.map +0 -1
|
@@ -1,109 +1,109 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYWAAIUB6_cjs = require('./chunk-YWAAIUB6.cjs');
|
|
4
4
|
var chunkD4J4XPGM_cjs = require('./chunk-D4J4XPGM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Extractor", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkYWAAIUB6_cjs.Extractor; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ModelByInputTokens", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYWAAIUB6_cjs.ModelByInputTokens; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYWAAIUB6_cjs.OBSERVER_SYSTEM_PROMPT; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ObservationalMemory", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYWAAIUB6_cjs.ObservationalMemory; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ObservationalMemoryProcessor", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYWAAIUB6_cjs.ObservationalMemoryProcessor; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TokenCounter", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkYWAAIUB6_cjs.TokenCounter; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "WorkingMemoryExtractor", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkYWAAIUB6_cjs.WorkingMemoryExtractor; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "buildObserverPrompt", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkYWAAIUB6_cjs.buildObserverPrompt; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "buildObserverSystemPrompt", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkYWAAIUB6_cjs.buildObserverSystemPrompt; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "combineObservationGroupRanges", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkYWAAIUB6_cjs.combineObservationGroupRanges; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "deriveObservationGroupProvenance", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkYWAAIUB6_cjs.deriveObservationGroupProvenance; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "extractCurrentTask", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkYWAAIUB6_cjs.extractCurrentTask; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "formatMessagesForObserver", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkYWAAIUB6_cjs.formatMessagesForObserver; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getObservationsAsOf", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkYWAAIUB6_cjs.getObservationsAsOf; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "hasCurrentTaskSection", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkYWAAIUB6_cjs.hasCurrentTaskSection; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "injectAnchorIds", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkYWAAIUB6_cjs.injectAnchorIds; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "optimizeObservationsForContext", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkYWAAIUB6_cjs.optimizeObservationsForContext; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "parseAnchorId", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkYWAAIUB6_cjs.parseAnchorId; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "parseObservationGroups", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkYWAAIUB6_cjs.parseObservationGroups; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "parseObserverOutput", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkYWAAIUB6_cjs.parseObserverOutput; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkYWAAIUB6_cjs.reconcileObservationGroupsFromReflection; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "renderObservationGroupsForReflection", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkYWAAIUB6_cjs.renderObservationGroupsForReflection; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "stripEphemeralAnchorIds", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkYWAAIUB6_cjs.stripEphemeralAnchorIds; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "stripObservationGroups", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkYWAAIUB6_cjs.stripObservationGroups; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "wrapInObservationGroup", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkYWAAIUB6_cjs.wrapInObservationGroup; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", {
|
|
109
109
|
enumerable: true,
|
|
@@ -121,5 +121,5 @@ Object.defineProperty(exports, "OBSERVATION_CONTINUATION_HINT", {
|
|
|
121
121
|
enumerable: true,
|
|
122
122
|
get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTINUATION_HINT; }
|
|
123
123
|
});
|
|
124
|
-
//# sourceMappingURL=observational-memory-
|
|
125
|
-
//# sourceMappingURL=observational-memory-
|
|
124
|
+
//# sourceMappingURL=observational-memory-CZ22AU3H.cjs.map
|
|
125
|
+
//# sourceMappingURL=observational-memory-CZ22AU3H.cjs.map
|
package/dist/{observational-memory-GSJXSJXG.cjs.map → observational-memory-CZ22AU3H.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-CZ22AU3H.cjs"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from './chunk-
|
|
1
|
+
export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from './chunk-2NSPHF6Q.js';
|
|
2
2
|
export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from './chunk-LSJJAJAF.js';
|
|
3
|
-
//# sourceMappingURL=observational-memory-
|
|
4
|
-
//# sourceMappingURL=observational-memory-
|
|
3
|
+
//# sourceMappingURL=observational-memory-QL6BKIQX.js.map
|
|
4
|
+
//# sourceMappingURL=observational-memory-QL6BKIQX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-QL6BKIQX.js"}
|
|
@@ -1,109 +1,109 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYWAAIUB6_cjs = require('../chunk-YWAAIUB6.cjs');
|
|
4
4
|
var chunkD4J4XPGM_cjs = require('../chunk-D4J4XPGM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Extractor", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkYWAAIUB6_cjs.Extractor; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ModelByInputTokens", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYWAAIUB6_cjs.ModelByInputTokens; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYWAAIUB6_cjs.OBSERVER_SYSTEM_PROMPT; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ObservationalMemory", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYWAAIUB6_cjs.ObservationalMemory; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ObservationalMemoryProcessor", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYWAAIUB6_cjs.ObservationalMemoryProcessor; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TokenCounter", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkYWAAIUB6_cjs.TokenCounter; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "WorkingMemoryExtractor", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkYWAAIUB6_cjs.WorkingMemoryExtractor; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "buildObserverPrompt", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkYWAAIUB6_cjs.buildObserverPrompt; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "buildObserverSystemPrompt", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkYWAAIUB6_cjs.buildObserverSystemPrompt; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "combineObservationGroupRanges", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkYWAAIUB6_cjs.combineObservationGroupRanges; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "deriveObservationGroupProvenance", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkYWAAIUB6_cjs.deriveObservationGroupProvenance; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "extractCurrentTask", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkYWAAIUB6_cjs.extractCurrentTask; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "formatMessagesForObserver", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkYWAAIUB6_cjs.formatMessagesForObserver; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getObservationsAsOf", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkYWAAIUB6_cjs.getObservationsAsOf; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "hasCurrentTaskSection", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkYWAAIUB6_cjs.hasCurrentTaskSection; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "injectAnchorIds", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkYWAAIUB6_cjs.injectAnchorIds; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "optimizeObservationsForContext", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkYWAAIUB6_cjs.optimizeObservationsForContext; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "parseAnchorId", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkYWAAIUB6_cjs.parseAnchorId; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "parseObservationGroups", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkYWAAIUB6_cjs.parseObservationGroups; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "parseObserverOutput", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkYWAAIUB6_cjs.parseObserverOutput; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkYWAAIUB6_cjs.reconcileObservationGroupsFromReflection; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "renderObservationGroupsForReflection", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkYWAAIUB6_cjs.renderObservationGroupsForReflection; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "stripEphemeralAnchorIds", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkYWAAIUB6_cjs.stripEphemeralAnchorIds; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "stripObservationGroups", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkYWAAIUB6_cjs.stripObservationGroups; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "wrapInObservationGroup", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkYWAAIUB6_cjs.wrapInObservationGroup; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", {
|
|
109
109
|
enumerable: true,
|
package/dist/processors/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from '../chunk-
|
|
1
|
+
export { Extractor, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, wrapInObservationGroup } from '../chunk-2NSPHF6Q.js';
|
|
2
2
|
export { OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT } from '../chunk-LSJJAJAF.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-counter.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/token-counter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAa1D,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAC;CAC3C,CAAC;AAs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AE,GAAG,OAAO,CAAC,MAAM,CAAC;IAOtE;;OAEG;IACH,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAGhD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/memory",
|
|
3
|
-
"version": "1.22.1-alpha.
|
|
3
|
+
"version": "1.22.1-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"typescript": "^6.0.3",
|
|
62
62
|
"typescript-eslint": "^8.57.0",
|
|
63
63
|
"vitest": "4.1.8",
|
|
64
|
-
"@internal/ai-sdk-v5": "0.0.57",
|
|
65
64
|
"@internal/ai-sdk-v4": "0.0.57",
|
|
65
|
+
"@internal/ai-sdk-v5": "0.0.57",
|
|
66
|
+
"@internal/types-builder": "0.0.85",
|
|
66
67
|
"@internal/ai-v6": "0.0.57",
|
|
67
68
|
"@internal/lint": "0.0.110",
|
|
68
|
-
"@
|
|
69
|
-
"@mastra/core": "1.49.0-alpha.1"
|
|
69
|
+
"@mastra/core": "1.49.0-alpha.3"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@mastra/core": ">=1.4.1-0 <2.0.0-0"
|