@mastra/memory 1.23.0-alpha.4 → 1.23.1-alpha.0
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 +60 -0
- package/dist/{chunk-6ACCFKAN.js → chunk-2DC67EL3.js} +5 -5
- package/dist/{chunk-6ACCFKAN.js.map → chunk-2DC67EL3.js.map} +1 -1
- package/dist/{chunk-42LZUXJ3.cjs → chunk-OHNH3BMB.cjs} +5 -5
- package/dist/{chunk-42LZUXJ3.cjs.map → chunk-OHNH3BMB.cjs.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +37 -37
- package/dist/docs/references/docs-memory-multi-user-threads.md +4 -4
- package/dist/docs/references/docs-memory-observational-memory.md +1 -1
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.js +1 -1
- package/dist/{observational-memory-OJN26RQ4.js → observational-memory-DH3LMZPZ.js} +3 -3
- package/dist/{observational-memory-OJN26RQ4.js.map → observational-memory-DH3LMZPZ.js.map} +1 -1
- package/dist/{observational-memory-2F4GJOP2.cjs → observational-memory-WJPGK55S.cjs} +29 -29
- package/dist/{observational-memory-2F4GJOP2.cjs.map → observational-memory-WJPGK55S.cjs.map} +1 -1
- package/dist/processors/index.cjs +27 -27
- package/dist/processors/index.js +1 -1
- package/package.json +9 -9
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.23.
|
|
2
|
+
"version": "1.23.1-alpha.0",
|
|
3
3
|
"package": "@mastra/memory",
|
|
4
4
|
"exports": {
|
|
5
5
|
"Extractor": {
|
|
6
6
|
"types": "dist/processors/index.d.ts",
|
|
7
|
-
"implementation": "dist/chunk-
|
|
7
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
8
8
|
"line": 316
|
|
9
9
|
},
|
|
10
10
|
"ModelByInputTokens": {
|
|
11
11
|
"types": "dist/processors/index.d.ts",
|
|
12
|
-
"implementation": "dist/chunk-
|
|
12
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
13
13
|
"line": 1354
|
|
14
14
|
},
|
|
15
15
|
"OBSERVER_SYSTEM_PROMPT": {
|
|
16
16
|
"types": "dist/processors/index.d.ts",
|
|
17
|
-
"implementation": "dist/chunk-
|
|
17
|
+
"implementation": "dist/chunk-2DC67EL3.js"
|
|
18
18
|
},
|
|
19
19
|
"ObservationalMemory": {
|
|
20
20
|
"types": "dist/processors/index.d.ts",
|
|
21
|
-
"implementation": "dist/chunk-
|
|
21
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
22
22
|
"line": 28518
|
|
23
23
|
},
|
|
24
24
|
"ObservationalMemoryProcessor": {
|
|
25
25
|
"types": "dist/processors/index.d.ts",
|
|
26
|
-
"implementation": "dist/chunk-
|
|
26
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
27
27
|
"line": 31152
|
|
28
28
|
},
|
|
29
29
|
"TokenCounter": {
|
|
30
30
|
"types": "dist/processors/index.d.ts",
|
|
31
|
-
"implementation": "dist/chunk-
|
|
31
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
32
32
|
"line": 22300
|
|
33
33
|
},
|
|
34
34
|
"WorkingMemoryExtractor": {
|
|
35
35
|
"types": "dist/processors/index.d.ts",
|
|
36
|
-
"implementation": "dist/chunk-
|
|
36
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
37
37
|
"line": 22967
|
|
38
38
|
},
|
|
39
39
|
"buildObserverPrompt": {
|
|
40
40
|
"types": "dist/processors/index.d.ts",
|
|
41
|
-
"implementation": "dist/chunk-
|
|
41
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
42
42
|
"line": 4504
|
|
43
43
|
},
|
|
44
44
|
"buildObserverSystemPrompt": {
|
|
45
45
|
"types": "dist/processors/index.d.ts",
|
|
46
|
-
"implementation": "dist/chunk-
|
|
46
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
47
47
|
"line": 3771
|
|
48
48
|
},
|
|
49
49
|
"combineObservationGroupRanges": {
|
|
50
50
|
"types": "dist/processors/index.d.ts",
|
|
51
|
-
"implementation": "dist/chunk-
|
|
51
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
52
52
|
"line": 1446
|
|
53
53
|
},
|
|
54
54
|
"deriveObservationGroupProvenance": {
|
|
55
55
|
"types": "dist/processors/index.d.ts",
|
|
56
|
-
"implementation": "dist/chunk-
|
|
56
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
57
57
|
"line": 1480
|
|
58
58
|
},
|
|
59
59
|
"extractCurrentTask": {
|
|
60
60
|
"types": "dist/processors/index.d.ts",
|
|
61
|
-
"implementation": "dist/chunk-
|
|
61
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
62
62
|
"line": 4627
|
|
63
63
|
},
|
|
64
64
|
"formatMessagesForObserver": {
|
|
65
65
|
"types": "dist/processors/index.d.ts",
|
|
66
|
-
"implementation": "dist/chunk-
|
|
66
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
67
67
|
"line": 4226
|
|
68
68
|
},
|
|
69
69
|
"getObservationsAsOf": {
|
|
70
70
|
"types": "dist/processors/index.d.ts",
|
|
71
|
-
"implementation": "dist/chunk-
|
|
71
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
72
72
|
"line": 31374
|
|
73
73
|
},
|
|
74
74
|
"hasCurrentTaskSection": {
|
|
75
75
|
"types": "dist/processors/index.d.ts",
|
|
76
|
-
"implementation": "dist/chunk-
|
|
76
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
77
77
|
"line": 4615
|
|
78
78
|
},
|
|
79
79
|
"injectAnchorIds": {
|
|
80
80
|
"types": "dist/processors/index.d.ts",
|
|
81
|
-
"implementation": "dist/chunk-
|
|
81
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
82
82
|
"line": 3326
|
|
83
83
|
},
|
|
84
84
|
"optimizeObservationsForContext": {
|
|
85
85
|
"types": "dist/processors/index.d.ts",
|
|
86
|
-
"implementation": "dist/chunk-
|
|
86
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
87
87
|
"line": 4638
|
|
88
88
|
},
|
|
89
89
|
"parseAnchorId": {
|
|
90
90
|
"types": "dist/processors/index.d.ts",
|
|
91
|
-
"implementation": "dist/chunk-
|
|
91
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
92
92
|
"line": 3299
|
|
93
93
|
},
|
|
94
94
|
"parseObservationGroups": {
|
|
95
95
|
"types": "dist/processors/index.d.ts",
|
|
96
|
-
"implementation": "dist/chunk-
|
|
96
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
97
97
|
"line": 1415
|
|
98
98
|
},
|
|
99
99
|
"parseObserverOutput": {
|
|
100
100
|
"types": "dist/processors/index.d.ts",
|
|
101
|
-
"implementation": "dist/chunk-
|
|
101
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
102
102
|
"line": 4518
|
|
103
103
|
},
|
|
104
104
|
"reconcileObservationGroupsFromReflection": {
|
|
105
105
|
"types": "dist/processors/index.d.ts",
|
|
106
|
-
"implementation": "dist/chunk-
|
|
106
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
107
107
|
"line": 1504
|
|
108
108
|
},
|
|
109
109
|
"renderObservationGroupsForReflection": {
|
|
110
110
|
"types": "dist/processors/index.d.ts",
|
|
111
|
-
"implementation": "dist/chunk-
|
|
111
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
112
112
|
"line": 1460
|
|
113
113
|
},
|
|
114
114
|
"stripEphemeralAnchorIds": {
|
|
115
115
|
"types": "dist/processors/index.d.ts",
|
|
116
|
-
"implementation": "dist/chunk-
|
|
116
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
117
117
|
"line": 3356
|
|
118
118
|
},
|
|
119
119
|
"stripObservationGroups": {
|
|
120
120
|
"types": "dist/processors/index.d.ts",
|
|
121
|
-
"implementation": "dist/chunk-
|
|
121
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
122
122
|
"line": 1437
|
|
123
123
|
},
|
|
124
124
|
"summarizeConversation": {
|
|
125
125
|
"types": "dist/processors/index.d.ts",
|
|
126
|
-
"implementation": "dist/chunk-
|
|
126
|
+
"implementation": "dist/chunk-2DC67EL3.js"
|
|
127
127
|
},
|
|
128
128
|
"wrapInObservationGroup": {
|
|
129
129
|
"types": "dist/processors/index.d.ts",
|
|
130
|
-
"implementation": "dist/chunk-
|
|
130
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
131
131
|
"line": 1408
|
|
132
132
|
},
|
|
133
133
|
"OBSERVATIONAL_MEMORY_DEFAULTS": {
|
|
@@ -148,43 +148,43 @@
|
|
|
148
148
|
},
|
|
149
149
|
"Memory": {
|
|
150
150
|
"types": "dist/index.d.ts",
|
|
151
|
-
"implementation": "dist/chunk-
|
|
151
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
152
152
|
"line": 24392
|
|
153
153
|
},
|
|
154
154
|
"MessageHistory": {
|
|
155
155
|
"types": "dist/index.d.ts",
|
|
156
|
-
"implementation": "dist/chunk-
|
|
156
|
+
"implementation": "dist/chunk-2DC67EL3.js"
|
|
157
157
|
},
|
|
158
158
|
"SUMMARIZE_THREAD_DEFAULTS": {
|
|
159
159
|
"types": "dist/index.d.ts",
|
|
160
|
-
"implementation": "dist/chunk-
|
|
160
|
+
"implementation": "dist/chunk-2DC67EL3.js"
|
|
161
161
|
},
|
|
162
162
|
"SemanticRecall": {
|
|
163
163
|
"types": "dist/index.d.ts",
|
|
164
|
-
"implementation": "dist/chunk-
|
|
164
|
+
"implementation": "dist/chunk-2DC67EL3.js"
|
|
165
165
|
},
|
|
166
166
|
"WorkingMemory": {
|
|
167
167
|
"types": "dist/index.d.ts",
|
|
168
|
-
"implementation": "dist/chunk-
|
|
168
|
+
"implementation": "dist/chunk-2DC67EL3.js"
|
|
169
169
|
},
|
|
170
170
|
"deepMergeWorkingMemory": {
|
|
171
171
|
"types": "dist/index.d.ts",
|
|
172
|
-
"implementation": "dist/chunk-
|
|
172
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
173
173
|
"line": 24031
|
|
174
174
|
},
|
|
175
175
|
"extractWorkingMemoryContent": {
|
|
176
176
|
"types": "dist/index.d.ts",
|
|
177
|
-
"implementation": "dist/chunk-
|
|
177
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
178
178
|
"line": 24347
|
|
179
179
|
},
|
|
180
180
|
"extractWorkingMemoryTags": {
|
|
181
181
|
"types": "dist/index.d.ts",
|
|
182
|
-
"implementation": "dist/chunk-
|
|
182
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
183
183
|
"line": 24315
|
|
184
184
|
},
|
|
185
185
|
"removeWorkingMemoryTags": {
|
|
186
186
|
"types": "dist/index.d.ts",
|
|
187
|
-
"implementation": "dist/chunk-
|
|
187
|
+
"implementation": "dist/chunk-2DC67EL3.js",
|
|
188
188
|
"line": 24328
|
|
189
189
|
},
|
|
190
190
|
"WORKING_MEMORY_STATE_ID": {
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"processors": {
|
|
206
206
|
"index": "dist/processors/index.js",
|
|
207
207
|
"chunks": [
|
|
208
|
-
"chunk-
|
|
208
|
+
"chunk-2DC67EL3.js",
|
|
209
209
|
"chunk-LSJJAJAF.js"
|
|
210
210
|
]
|
|
211
211
|
}
|
|
@@ -58,7 +58,7 @@ import { Memory } from '@mastra/memory'
|
|
|
58
58
|
import { LibSQLStore } from '@mastra/libsql'
|
|
59
59
|
|
|
60
60
|
const memory = new Memory({
|
|
61
|
-
storage: new LibSQLStore({ url: 'file:./collab.db' }),
|
|
61
|
+
storage: new LibSQLStore({ id: 'collab-storage', url: 'file:./collab.db' }),
|
|
62
62
|
options: {
|
|
63
63
|
lastMessages: 20,
|
|
64
64
|
},
|
|
@@ -128,7 +128,7 @@ import { Memory } from '@mastra/memory'
|
|
|
128
128
|
import { LibSQLStore } from '@mastra/libsql'
|
|
129
129
|
|
|
130
130
|
const memory = new Memory({
|
|
131
|
-
storage: new LibSQLStore({ url: 'file:./collab.db' }),
|
|
131
|
+
storage: new LibSQLStore({ id: 'collab-storage', url: 'file:./collab.db' }),
|
|
132
132
|
options: {
|
|
133
133
|
lastMessages: 20,
|
|
134
134
|
},
|
|
@@ -148,7 +148,7 @@ import { Memory } from '@mastra/memory'
|
|
|
148
148
|
import { LibSQLStore } from '@mastra/libsql'
|
|
149
149
|
|
|
150
150
|
const memory = new Memory({
|
|
151
|
-
storage: new LibSQLStore({ url: 'file:./collab.db' }),
|
|
151
|
+
storage: new LibSQLStore({ id: 'collab-storage', url: 'file:./collab.db' }),
|
|
152
152
|
options: {
|
|
153
153
|
lastMessages: 20,
|
|
154
154
|
observationalMemory: true,
|
|
@@ -171,7 +171,7 @@ import { Memory } from '@mastra/memory'
|
|
|
171
171
|
import { LibSQLStore } from '@mastra/libsql'
|
|
172
172
|
|
|
173
173
|
const memory = new Memory({
|
|
174
|
-
storage: new LibSQLStore({ url: 'file:./collab.db' }),
|
|
174
|
+
storage: new LibSQLStore({ id: 'collab-storage', url: 'file:./collab.db' }),
|
|
175
175
|
options: {
|
|
176
176
|
lastMessages: 20,
|
|
177
177
|
workingMemory: {
|
|
@@ -47,7 +47,7 @@ See [configuration options](https://mastra.ai/reference/memory/observational-mem
|
|
|
47
47
|
>
|
|
48
48
|
> For an AI SDK example, see [Using Mastra Memory](https://mastra.ai/guides/build-your-ui/ai-sdk-ui).
|
|
49
49
|
|
|
50
|
-
> **Note:** OM currently only supports `@mastra/pg`, `@mastra/libsql`, and `@mastra/
|
|
50
|
+
> **Note:** OM currently only supports `@mastra/pg`, `@mastra/libsql`, `@mastra/mongodb`, and `@mastra/convex` storage adapters. It uses background agents for managing memory. When no model is set, the default model is `google/gemini-2.5-flash`.
|
|
51
51
|
|
|
52
52
|
## Temporal gap markers
|
|
53
53
|
|
|
@@ -403,7 +403,7 @@ By default, working memory reaches the model as part of the system message. You
|
|
|
403
403
|
|
|
404
404
|
```typescript
|
|
405
405
|
const memory = new Memory({
|
|
406
|
-
storage: new LibSQLStore({ url: 'file:./mastra.db' }),
|
|
406
|
+
storage: new LibSQLStore({ id: 'mastra-storage', url: 'file:./mastra.db' }),
|
|
407
407
|
options: {
|
|
408
408
|
workingMemory: {
|
|
409
409
|
enabled: true,
|
package/dist/index.cjs
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOHNH3BMB_cjs = require('./chunk-OHNH3BMB.cjs');
|
|
4
4
|
var chunk43FJOLKM_cjs = require('./chunk-43FJOLKM.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 chunkOHNH3BMB_cjs.Extractor; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "Memory", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkOHNH3BMB_cjs.Memory; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "MessageHistory", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkOHNH3BMB_cjs.MessageHistory; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ModelByInputTokens", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOHNH3BMB_cjs.ModelByInputTokens; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "SUMMARIZE_THREAD_DEFAULTS", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOHNH3BMB_cjs.SUMMARIZE_THREAD_DEFAULTS; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "SemanticRecall", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOHNH3BMB_cjs.SemanticRecall; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "WorkingMemory", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkOHNH3BMB_cjs.WorkingMemory; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "WorkingMemoryExtractor", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkOHNH3BMB_cjs.WorkingMemoryExtractor; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "deepMergeWorkingMemory", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkOHNH3BMB_cjs.deepMergeWorkingMemory; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "extractWorkingMemoryContent", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkOHNH3BMB_cjs.extractWorkingMemoryContent; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "extractWorkingMemoryTags", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkOHNH3BMB_cjs.extractWorkingMemoryTags; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "getObservationsAsOf", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkOHNH3BMB_cjs.getObservationsAsOf; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "removeWorkingMemoryTags", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkOHNH3BMB_cjs.removeWorkingMemoryTags; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "summarizeConversation", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkOHNH3BMB_cjs.summarizeConversation; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "WORKING_MEMORY_STATE_ID", {
|
|
65
65
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Extractor, Memory, MessageHistory, ModelByInputTokens, SUMMARIZE_THREAD_DEFAULTS, SemanticRecall, WorkingMemory, WorkingMemoryExtractor, deepMergeWorkingMemory, extractWorkingMemoryContent, extractWorkingMemoryTags, getObservationsAsOf, removeWorkingMemoryTags, summarizeConversation } from './chunk-
|
|
1
|
+
export { Extractor, Memory, MessageHistory, ModelByInputTokens, SUMMARIZE_THREAD_DEFAULTS, SemanticRecall, WorkingMemory, WorkingMemoryExtractor, deepMergeWorkingMemory, extractWorkingMemoryContent, extractWorkingMemoryTags, getObservationsAsOf, removeWorkingMemoryTags, summarizeConversation } from './chunk-2DC67EL3.js';
|
|
2
2
|
export { WORKING_MEMORY_STATE_ID, WORKING_MEMORY_STATE_PROCESSOR_ID, WorkingMemoryStateProcessor } from './chunk-WCGXQIEN.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -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, summarizeConversation, 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, summarizeConversation, wrapInObservationGroup } from './chunk-2DC67EL3.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-DH3LMZPZ.js.map
|
|
4
|
+
//# sourceMappingURL=observational-memory-DH3LMZPZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-DH3LMZPZ.js"}
|
|
@@ -1,113 +1,113 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOHNH3BMB_cjs = require('./chunk-OHNH3BMB.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 chunkOHNH3BMB_cjs.Extractor; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ModelByInputTokens", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkOHNH3BMB_cjs.ModelByInputTokens; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "OBSERVER_SYSTEM_PROMPT", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkOHNH3BMB_cjs.OBSERVER_SYSTEM_PROMPT; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ObservationalMemory", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOHNH3BMB_cjs.ObservationalMemory; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ObservationalMemoryProcessor", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOHNH3BMB_cjs.ObservationalMemoryProcessor; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TokenCounter", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOHNH3BMB_cjs.TokenCounter; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "WorkingMemoryExtractor", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkOHNH3BMB_cjs.WorkingMemoryExtractor; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "buildObserverPrompt", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkOHNH3BMB_cjs.buildObserverPrompt; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "buildObserverSystemPrompt", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkOHNH3BMB_cjs.buildObserverSystemPrompt; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "combineObservationGroupRanges", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkOHNH3BMB_cjs.combineObservationGroupRanges; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "deriveObservationGroupProvenance", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkOHNH3BMB_cjs.deriveObservationGroupProvenance; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "extractCurrentTask", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkOHNH3BMB_cjs.extractCurrentTask; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "formatMessagesForObserver", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkOHNH3BMB_cjs.formatMessagesForObserver; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "getObservationsAsOf", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkOHNH3BMB_cjs.getObservationsAsOf; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "hasCurrentTaskSection", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkOHNH3BMB_cjs.hasCurrentTaskSection; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "injectAnchorIds", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkOHNH3BMB_cjs.injectAnchorIds; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "optimizeObservationsForContext", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkOHNH3BMB_cjs.optimizeObservationsForContext; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "parseAnchorId", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkOHNH3BMB_cjs.parseAnchorId; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "parseObservationGroups", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkOHNH3BMB_cjs.parseObservationGroups; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "parseObserverOutput", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkOHNH3BMB_cjs.parseObserverOutput; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "reconcileObservationGroupsFromReflection", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkOHNH3BMB_cjs.reconcileObservationGroupsFromReflection; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "renderObservationGroupsForReflection", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkOHNH3BMB_cjs.renderObservationGroupsForReflection; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "stripEphemeralAnchorIds", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkOHNH3BMB_cjs.stripEphemeralAnchorIds; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "stripObservationGroups", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkOHNH3BMB_cjs.stripObservationGroups; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "summarizeConversation", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkOHNH3BMB_cjs.summarizeConversation; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "wrapInObservationGroup", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkOHNH3BMB_cjs.wrapInObservationGroup; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_DEFAULTS", {
|
|
113
113
|
enumerable: true,
|
|
@@ -125,5 +125,5 @@ Object.defineProperty(exports, "OBSERVATION_CONTINUATION_HINT", {
|
|
|
125
125
|
enumerable: true,
|
|
126
126
|
get: function () { return chunkD4J4XPGM_cjs.OBSERVATION_CONTINUATION_HINT; }
|
|
127
127
|
});
|
|
128
|
-
//# sourceMappingURL=observational-memory-
|
|
129
|
-
//# sourceMappingURL=observational-memory-
|
|
128
|
+
//# sourceMappingURL=observational-memory-WJPGK55S.cjs.map
|
|
129
|
+
//# sourceMappingURL=observational-memory-WJPGK55S.cjs.map
|
package/dist/{observational-memory-2F4GJOP2.cjs.map → observational-memory-WJPGK55S.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"observational-memory-WJPGK55S.cjs"}
|