mr-memory 2.9.1 → 2.9.3
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/index.ts +4 -2
- package/openclaw.plugin.json +4 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -228,11 +228,12 @@ const memoryRouterPlugin = {
|
|
|
228
228
|
context?: string;
|
|
229
229
|
memories_found?: number;
|
|
230
230
|
tokens_billed?: number;
|
|
231
|
+
memory_tokens?: number;
|
|
231
232
|
};
|
|
232
233
|
|
|
233
234
|
if (data.context) {
|
|
234
235
|
log(
|
|
235
|
-
`memoryrouter: injected ${data.memories_found || 0} memories
|
|
236
|
+
`memoryrouter: injected ${data.memories_found || 0} memories (${data.memory_tokens || 0} memory tokens, ${data.tokens_billed || 0} total billed)`,
|
|
236
237
|
);
|
|
237
238
|
return { prependContext: wrapForInjection(data.context) };
|
|
238
239
|
}
|
|
@@ -329,11 +330,12 @@ const memoryRouterPlugin = {
|
|
|
329
330
|
context?: string;
|
|
330
331
|
memories_found?: number;
|
|
331
332
|
tokens_billed?: number;
|
|
333
|
+
memory_tokens?: number;
|
|
332
334
|
};
|
|
333
335
|
|
|
334
336
|
if (data.context) {
|
|
335
337
|
log(
|
|
336
|
-
`memoryrouter: injected ${data.memories_found || 0} memories (${data.tokens_billed || 0}
|
|
338
|
+
`memoryrouter: injected ${data.memories_found || 0} memories (${data.memory_tokens || 0} memory tokens, ${data.tokens_billed || 0} total billed)`,
|
|
337
339
|
);
|
|
338
340
|
return { prependContext: wrapForInjection(data.context) };
|
|
339
341
|
}
|
package/openclaw.plugin.json
CHANGED