@mastra/memory 1.41.0-alpha.0 → 1.41.0-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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +51 -51
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/processors/index.cjs +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/observer-agent.d.ts.map +1 -1
- package/dist/{src-Co4un1ux.js → src-CBYx0iwC.js} +20 -2
- package/dist/{src-Co4un1ux.js.map → src-CBYx0iwC.js.map} +1 -1
- package/dist/{src-C83MwpMb.cjs → src-GDwZ0vzw.cjs} +20 -2
- package/dist/{src-C83MwpMb.cjs.map → src-GDwZ0vzw.cjs.map} +1 -1
- package/package.json +5 -5
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,209 +1,209 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.41.0-alpha.
|
|
2
|
+
"version": "1.41.0-alpha.1",
|
|
3
3
|
"package": "@mastra/memory",
|
|
4
4
|
"exports": {
|
|
5
5
|
"d": {
|
|
6
6
|
"types": "dist/processors/index.d.ts",
|
|
7
|
-
"implementation": "dist/src-
|
|
7
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
8
8
|
},
|
|
9
9
|
"U": {
|
|
10
10
|
"types": "dist/processors/index.d.ts",
|
|
11
|
-
"implementation": "dist/src-
|
|
11
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
12
12
|
},
|
|
13
13
|
"g": {
|
|
14
14
|
"types": "dist/processors/index.d.ts",
|
|
15
|
-
"implementation": "dist/src-
|
|
15
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
16
16
|
},
|
|
17
17
|
"W": {
|
|
18
18
|
"types": "dist/processors/index.d.ts",
|
|
19
|
-
"implementation": "dist/src-
|
|
19
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
20
20
|
},
|
|
21
21
|
"G": {
|
|
22
22
|
"types": "dist/processors/index.d.ts",
|
|
23
|
-
"implementation": "dist/src-
|
|
23
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
24
24
|
},
|
|
25
25
|
"K": {
|
|
26
26
|
"types": "dist/processors/index.d.ts",
|
|
27
|
-
"implementation": "dist/src-
|
|
27
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
28
28
|
},
|
|
29
29
|
"q": {
|
|
30
30
|
"types": "dist/processors/index.d.ts",
|
|
31
|
-
"implementation": "dist/src-
|
|
31
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
32
32
|
},
|
|
33
33
|
"J": {
|
|
34
34
|
"types": "dist/processors/index.d.ts",
|
|
35
|
-
"implementation": "dist/src-
|
|
35
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
36
36
|
},
|
|
37
37
|
"M": {
|
|
38
38
|
"types": "dist/processors/index.d.ts",
|
|
39
|
-
"implementation": "dist/src-
|
|
39
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
40
40
|
},
|
|
41
41
|
"u": {
|
|
42
42
|
"types": "dist/processors/index.d.ts",
|
|
43
|
-
"implementation": "dist/src-
|
|
43
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
44
44
|
},
|
|
45
45
|
"l": {
|
|
46
46
|
"types": "dist/processors/index.d.ts",
|
|
47
|
-
"implementation": "dist/src-
|
|
47
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
48
48
|
},
|
|
49
49
|
"j": {
|
|
50
50
|
"types": "dist/processors/index.d.ts",
|
|
51
|
-
"implementation": "dist/src-
|
|
51
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
52
52
|
},
|
|
53
53
|
"D": {
|
|
54
54
|
"types": "dist/processors/index.d.ts",
|
|
55
|
-
"implementation": "dist/src-
|
|
55
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
56
56
|
},
|
|
57
57
|
"N": {
|
|
58
58
|
"types": "dist/processors/index.d.ts",
|
|
59
|
-
"implementation": "dist/src-
|
|
59
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
60
60
|
},
|
|
61
61
|
"P": {
|
|
62
62
|
"types": "dist/processors/index.d.ts",
|
|
63
|
-
"implementation": "dist/src-
|
|
63
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
64
64
|
},
|
|
65
65
|
"_": {
|
|
66
66
|
"types": "dist/processors/index.d.ts",
|
|
67
|
-
"implementation": "dist/src-
|
|
67
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
68
68
|
},
|
|
69
69
|
"v": {
|
|
70
70
|
"types": "dist/processors/index.d.ts",
|
|
71
|
-
"implementation": "dist/src-
|
|
71
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
72
72
|
},
|
|
73
73
|
"F": {
|
|
74
74
|
"types": "dist/processors/index.d.ts",
|
|
75
|
-
"implementation": "dist/src-
|
|
75
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
76
76
|
},
|
|
77
77
|
"I": {
|
|
78
78
|
"types": "dist/processors/index.d.ts",
|
|
79
|
-
"implementation": "dist/src-
|
|
79
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
80
80
|
},
|
|
81
81
|
"Y": {
|
|
82
82
|
"types": "dist/processors/index.d.ts",
|
|
83
|
-
"implementation": "dist/src-
|
|
83
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
84
84
|
},
|
|
85
85
|
"c": {
|
|
86
86
|
"types": "dist/processors/index.d.ts",
|
|
87
|
-
"implementation": "dist/src-
|
|
87
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
88
88
|
},
|
|
89
89
|
"L": {
|
|
90
90
|
"types": "dist/processors/index.d.ts",
|
|
91
|
-
"implementation": "dist/src-
|
|
91
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
92
92
|
},
|
|
93
93
|
"B": {
|
|
94
94
|
"types": "dist/processors/index.d.ts",
|
|
95
|
-
"implementation": "dist/src-
|
|
95
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
96
96
|
},
|
|
97
97
|
"R": {
|
|
98
98
|
"types": "dist/processors/index.d.ts",
|
|
99
|
-
"implementation": "dist/src-
|
|
99
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
100
100
|
},
|
|
101
101
|
"V": {
|
|
102
102
|
"types": "dist/processors/index.d.ts",
|
|
103
|
-
"implementation": "dist/src-
|
|
103
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
104
104
|
},
|
|
105
105
|
"y": {
|
|
106
106
|
"types": "dist/processors/index.d.ts",
|
|
107
|
-
"implementation": "dist/src-
|
|
107
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
108
108
|
},
|
|
109
109
|
"z": {
|
|
110
110
|
"types": "dist/processors/index.d.ts",
|
|
111
|
-
"implementation": "dist/src-
|
|
111
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
112
112
|
},
|
|
113
113
|
"b": {
|
|
114
114
|
"types": "dist/processors/index.d.ts",
|
|
115
|
-
"implementation": "dist/src-
|
|
115
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
116
116
|
},
|
|
117
117
|
"x": {
|
|
118
118
|
"types": "dist/processors/index.d.ts",
|
|
119
|
-
"implementation": "dist/src-
|
|
119
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
120
120
|
},
|
|
121
121
|
"f": {
|
|
122
122
|
"types": "dist/processors/index.d.ts",
|
|
123
|
-
"implementation": "dist/src-
|
|
123
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
124
124
|
},
|
|
125
125
|
"H": {
|
|
126
126
|
"types": "dist/processors/index.d.ts",
|
|
127
|
-
"implementation": "dist/src-
|
|
127
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
128
128
|
},
|
|
129
129
|
"S": {
|
|
130
130
|
"types": "dist/processors/index.d.ts",
|
|
131
|
-
"implementation": "dist/src-
|
|
131
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
132
132
|
},
|
|
133
133
|
"A": {
|
|
134
134
|
"types": "dist/processors/index.d.ts",
|
|
135
|
-
"implementation": "dist/src-
|
|
135
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
136
136
|
},
|
|
137
137
|
"C": {
|
|
138
138
|
"types": "dist/processors/index.d.ts",
|
|
139
|
-
"implementation": "dist/src-
|
|
139
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
140
140
|
},
|
|
141
141
|
"w": {
|
|
142
142
|
"types": "dist/index.d.ts",
|
|
143
|
-
"implementation": "dist/src-
|
|
143
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
144
144
|
},
|
|
145
145
|
"t": {
|
|
146
146
|
"types": "dist/index.d.ts",
|
|
147
|
-
"implementation": "dist/src-
|
|
147
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
148
148
|
},
|
|
149
149
|
"n": {
|
|
150
150
|
"types": "dist/index.d.ts",
|
|
151
|
-
"implementation": "dist/src-
|
|
151
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
152
152
|
},
|
|
153
153
|
"k": {
|
|
154
154
|
"types": "dist/index.d.ts",
|
|
155
|
-
"implementation": "dist/src-
|
|
155
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
156
156
|
},
|
|
157
157
|
"r": {
|
|
158
158
|
"types": "dist/index.d.ts",
|
|
159
|
-
"implementation": "dist/src-
|
|
159
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
160
160
|
},
|
|
161
161
|
"T": {
|
|
162
162
|
"types": "dist/index.d.ts",
|
|
163
|
-
"implementation": "dist/src-
|
|
163
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
164
164
|
},
|
|
165
165
|
"E": {
|
|
166
166
|
"types": "dist/index.d.ts",
|
|
167
|
-
"implementation": "dist/src-
|
|
167
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
168
168
|
},
|
|
169
169
|
"p": {
|
|
170
170
|
"types": "dist/index.d.ts",
|
|
171
|
-
"implementation": "dist/src-
|
|
171
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
172
172
|
},
|
|
173
173
|
"m": {
|
|
174
174
|
"types": "dist/index.d.ts",
|
|
175
|
-
"implementation": "dist/src-
|
|
175
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
176
176
|
},
|
|
177
177
|
"i": {
|
|
178
178
|
"types": "dist/index.d.ts",
|
|
179
|
-
"implementation": "dist/src-
|
|
179
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
180
180
|
},
|
|
181
181
|
"h": {
|
|
182
182
|
"types": "dist/index.d.ts",
|
|
183
|
-
"implementation": "dist/src-
|
|
183
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
184
184
|
},
|
|
185
185
|
"O": {
|
|
186
186
|
"types": "dist/index.d.ts",
|
|
187
|
-
"implementation": "dist/src-
|
|
187
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
188
188
|
},
|
|
189
189
|
"a": {
|
|
190
190
|
"types": "dist/index.d.ts",
|
|
191
|
-
"implementation": "dist/src-
|
|
191
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
192
192
|
},
|
|
193
193
|
"o": {
|
|
194
194
|
"types": "dist/index.d.ts",
|
|
195
|
-
"implementation": "dist/src-
|
|
195
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
196
196
|
},
|
|
197
197
|
"s": {
|
|
198
198
|
"types": "dist/index.d.ts",
|
|
199
|
-
"implementation": "dist/src-
|
|
199
|
+
"implementation": "dist/src-CBYx0iwC.js"
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
"modules": {
|
|
203
203
|
"processors": {
|
|
204
204
|
"index": "dist/processors/index.js",
|
|
205
205
|
"chunks": [
|
|
206
|
-
"src-
|
|
206
|
+
"src-CBYx0iwC.js"
|
|
207
207
|
]
|
|
208
208
|
}
|
|
209
209
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-GDwZ0vzw.cjs");
|
|
3
3
|
let _mastra_core_processors = require("@mastra/core/processors");
|
|
4
4
|
exports.AUTO_MODEL_BY_PROVIDER = require_src.AUTO_MODEL_BY_PROVIDER;
|
|
5
5
|
exports.Extractor = require_src.Extractor;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { d as AUTO_MODEL_BY_PROVIDER, U as Extractor, w as KnowledgeSemanticIndexCoordinator, t as Memory, n as MessageHistory, g as ModelByInputTokens, k as SUMMARIZE_THREAD_DEFAULTS, r as SemanticRecall, T as StaleKnowledgeSemanticIndexError, E as Subconscious, p as WORKING_MEMORY_STATE_ID, m as WORKING_MEMORY_STATE_PROCESSOR_ID, i as WorkingMemory, D as WorkingMemoryExtractor, h as WorkingMemoryStateProcessor, O as deepMergeWorkingMemory, a as extractWorkingMemoryContent, o as extractWorkingMemoryTags, c as getObservationsAsOf, s as removeWorkingMemoryTags, f as resolveAutoModelId, A as summarizeConversation } from "./src-
|
|
1
|
+
export { d as AUTO_MODEL_BY_PROVIDER, U as Extractor, w as KnowledgeSemanticIndexCoordinator, t as Memory, n as MessageHistory, g as ModelByInputTokens, k as SUMMARIZE_THREAD_DEFAULTS, r as SemanticRecall, T as StaleKnowledgeSemanticIndexError, E as Subconscious, p as WORKING_MEMORY_STATE_ID, m as WORKING_MEMORY_STATE_PROCESSOR_ID, i as WorkingMemory, D as WorkingMemoryExtractor, h as WorkingMemoryStateProcessor, O as deepMergeWorkingMemory, a as extractWorkingMemoryContent, o as extractWorkingMemoryTags, c as getObservationsAsOf, s as removeWorkingMemoryTags, f as resolveAutoModelId, A as summarizeConversation } from "./src-CBYx0iwC.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-GDwZ0vzw.cjs");
|
|
3
3
|
exports.AUTO_MODEL_BY_PROVIDER = require_src.AUTO_MODEL_BY_PROVIDER;
|
|
4
4
|
exports.Extractor = require_src.Extractor;
|
|
5
5
|
exports.ModelByInputTokens = require_src.ModelByInputTokens;
|
package/dist/processors/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { d as AUTO_MODEL_BY_PROVIDER, U as Extractor, g as ModelByInputTokens, W as OBSERVATIONAL_MEMORY_DEFAULTS, G as OBSERVATION_CONTEXT_INSTRUCTIONS, K as OBSERVATION_CONTEXT_PROMPT, q as OBSERVATION_CONTEXT_PROMPT_THREAD, J as OBSERVATION_CONTINUATION_HINT, M as OBSERVER_SYSTEM_PROMPT, u as ObservationalMemory, l as ObservationalMemoryProcessor, j as TokenCounter, D as WorkingMemoryExtractor, N as buildObserverPrompt, P as buildObserverSystemPrompt, _ as combineObservationGroupRanges, v as deriveObservationGroupProvenance, F as extractCurrentTask, I as formatMessagesForObserver, Y as getObservationContextPrompt, c as getObservationsAsOf, L as hasCurrentTaskSection, B as injectAnchorIds, R as optimizeObservationsForContext, V as parseAnchorId, y as parseObservationGroups, z as parseObserverOutput, b as reconcileObservationGroupsFromReflection, x as renderObservationGroupsForReflection, f as resolveAutoModelId, H as stripEphemeralAnchorIds, S as stripObservationGroups, A as summarizeConversation, C as wrapInObservationGroup } from "../src-
|
|
1
|
+
export { d as AUTO_MODEL_BY_PROVIDER, U as Extractor, g as ModelByInputTokens, W as OBSERVATIONAL_MEMORY_DEFAULTS, G as OBSERVATION_CONTEXT_INSTRUCTIONS, K as OBSERVATION_CONTEXT_PROMPT, q as OBSERVATION_CONTEXT_PROMPT_THREAD, J as OBSERVATION_CONTINUATION_HINT, M as OBSERVER_SYSTEM_PROMPT, u as ObservationalMemory, l as ObservationalMemoryProcessor, j as TokenCounter, D as WorkingMemoryExtractor, N as buildObserverPrompt, P as buildObserverSystemPrompt, _ as combineObservationGroupRanges, v as deriveObservationGroupProvenance, F as extractCurrentTask, I as formatMessagesForObserver, Y as getObservationContextPrompt, c as getObservationsAsOf, L as hasCurrentTaskSection, B as injectAnchorIds, R as optimizeObservationsForContext, V as parseAnchorId, y as parseObservationGroups, z as parseObserverOutput, b as reconcileObservationGroupsFromReflection, x as renderObservationGroupsForReflection, f as resolveAutoModelId, H as stripEphemeralAnchorIds, S as stripObservationGroups, A as summarizeConversation, C as wrapInObservationGroup } from "../src-CBYx0iwC.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer-agent.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/observer-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAgB7C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAE1D,KAAK,qBAAqB,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAC5C,kHAAkH;IAClH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,2ucAuPoE,CAAC;AAElH;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B,QAA8B,CAAC;AAEvE;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,CAAC,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,CA4CxF;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,6sDAgByD,CAAC;AAE1F;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,OAAe,EAC5B,WAAW,CAAC,EAAE,MAAM,EACpB,kBAAkB,GAAE,OAAe,EACnC,UAAU,CAAC,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,GACrC,MAAM,CA8IR;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAC;IAErB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE1C,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAE5D,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,sGAAsG;IACtG,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"observer-agent.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/observer-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAgB7C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAE1D,KAAK,qBAAqB,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAA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ters) {
|
|
|
26428
26428
|
if (args === void 0) return maybeTruncate("[arguments unavailable]", maxCharacters);
|
|
26429
26429
|
return formatToolArgumentsForObserver(args, { maxCharacters: maxCharacters || void 0 });
|
|
26430
26430
|
}
|
|
26431
|
+
const OBSERVER_SIGNAL_ATTRIBUTE_NAME = /^[A-Za-z_][A-Za-z0-9_.-]*$/;
|
|
26432
|
+
const OBSERVER_SIGNAL_ATTRIBUTE_MAX_COUNT = 8;
|
|
26433
|
+
const OBSERVER_SIGNAL_ATTRIBUTE_MAX_VALUE_LENGTH = 80;
|
|
26434
|
+
/**
|
|
26435
|
+
* Renders a user signal's attributes (e.g. `name`, `role`) as ` (name="Jim" role="editor")` so
|
|
26436
|
+
* the Observer can tell speakers apart in a shared thread. Attribute data is caller-supplied,
|
|
26437
|
+
* so names must be plain identifiers, values are length-capped and JSON-quoted (no raw quotes
|
|
26438
|
+
* or line breaks), and only the first few attributes are kept to bound the label.
|
|
26439
|
+
*/
|
|
26440
|
+
function formatObserverSignalAttributes(attributes) {
|
|
26441
|
+
if (!isRecord$1(attributes)) return "";
|
|
26442
|
+
const rendered = Object.entries(attributes).filter((entry) => OBSERVER_SIGNAL_ATTRIBUTE_NAME.test(entry[0]) && (typeof entry[1] === "string" || typeof entry[1] === "number" || typeof entry[1] === "boolean")).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).slice(0, OBSERVER_SIGNAL_ATTRIBUTE_MAX_COUNT).map(([key, value]) => {
|
|
26443
|
+
const text = String(value);
|
|
26444
|
+
const clipped = text.length > OBSERVER_SIGNAL_ATTRIBUTE_MAX_VALUE_LENGTH ? `${text.slice(0, OBSERVER_SIGNAL_ATTRIBUTE_MAX_VALUE_LENGTH)}...` : text;
|
|
26445
|
+
return `${key}=${JSON.stringify(clipped)}`;
|
|
26446
|
+
});
|
|
26447
|
+
return rendered.length > 0 ? ` (${rendered.join(" ")})` : "";
|
|
26448
|
+
}
|
|
26431
26449
|
/**
|
|
26432
26450
|
* Labels signals and system reminders by their tag instead of as "User", so the Observer
|
|
26433
26451
|
* does not record runtime instructions as things the user said (#22195).
|
|
@@ -26435,7 +26453,7 @@ function formatObserverToolArguments(args, maxCharacters) {
|
|
|
26435
26453
|
function getObserverMessageLabel(msg) {
|
|
26436
26454
|
if (msg.role === "signal") {
|
|
26437
26455
|
const signal = msg.content?.metadata?.signal;
|
|
26438
|
-
return signal?.type === "user" ?
|
|
26456
|
+
return signal?.type === "user" ? `User${formatObserverSignalAttributes(signal.attributes)}` : signal?.tagName ?? signal?.type ?? "Signal";
|
|
26439
26457
|
}
|
|
26440
26458
|
if (isSystemReminderMessage(msg)) return "system-reminder";
|
|
26441
26459
|
return msg.role.charAt(0).toUpperCase() + msg.role.slice(1);
|
|
@@ -42411,4 +42429,4 @@ Notes:
|
|
|
42411
42429
|
};
|
|
42412
42430
|
export { summarizeConversation as A, injectAnchorIds as B, wrapInObservationGroup as C, WorkingMemoryExtractor as D, Subconscious as E, extractCurrentTask as F, OBSERVATION_CONTEXT_INSTRUCTIONS as G, stripEphemeralAnchorIds as H, formatMessagesForObserver as I, OBSERVATION_CONTINUATION_HINT as J, OBSERVATION_CONTEXT_PROMPT as K, hasCurrentTaskSection as L, OBSERVER_SYSTEM_PROMPT as M, buildObserverPrompt as N, deepMergeWorkingMemory as O, buildObserverSystemPrompt as P, optimizeObservationsForContext as R, stripObservationGroups as S, StaleKnowledgeSemanticIndexError as T, Extractor as U, parseAnchorId as V, OBSERVATIONAL_MEMORY_DEFAULTS as W, getObservationContextPrompt as Y, combineObservationGroupRanges as _, extractWorkingMemoryContent as a, reconcileObservationGroupsFromReflection as b, getObservationsAsOf as c, AUTO_MODEL_BY_PROVIDER as d, resolveAutoModelId as f, ModelByInputTokens as g, WorkingMemoryStateProcessor as h, WorkingMemory as i, TokenCounter as j, SUMMARIZE_THREAD_DEFAULTS as k, ObservationalMemoryProcessor as l, WORKING_MEMORY_STATE_PROCESSOR_ID as m, MessageHistory$1 as n, extractWorkingMemoryTags as o, WORKING_MEMORY_STATE_ID as p, OBSERVATION_CONTEXT_PROMPT_THREAD as q, SemanticRecall as r, removeWorkingMemoryTags as s, Memory as t, ObservationalMemory as u, deriveObservationGroupProvenance as v, KnowledgeSemanticIndexCoordinator as w, renderObservationGroupsForReflection as x, parseObservationGroups as y, parseObserverOutput as z };
|
|
42413
42431
|
|
|
42414
|
-
//# sourceMappingURL=src-
|
|
42432
|
+
//# sourceMappingURL=src-CBYx0iwC.js.map
|