@mingxy/cerebro 1.12.2 → 1.12.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/package.json +1 -1
- package/src/hooks.ts +8 -1
package/package.json
CHANGED
package/src/hooks.ts
CHANGED
|
@@ -509,11 +509,18 @@ export function autoRecallHook(client: CerebroClient, containerTags: string[], t
|
|
|
509
509
|
if (block) {
|
|
510
510
|
output.system.push(block);
|
|
511
511
|
output.system.push(FETCH_POLICY);
|
|
512
|
+
logDebug("autoRecallHook block injected to output.system", {
|
|
513
|
+
sessionId: input.sessionID,
|
|
514
|
+
blockPreview: block.slice(0, 200),
|
|
515
|
+
outputSystemLength: output.system.length,
|
|
516
|
+
});
|
|
517
|
+
} else {
|
|
518
|
+
logDebug("autoRecallHook block was EMPTY — no injection", { sessionId: input.sessionID });
|
|
512
519
|
}
|
|
513
520
|
|
|
514
521
|
const newIds = newResults.map((r) => r.memory.id);
|
|
515
522
|
injectedMemoryIds.set(input.sessionID, new Set([...existingIds, ...newIds]));
|
|
516
|
-
logDebug("autoRecallHook injection complete", { newIds: newIds.length, clustered: !!clustered });
|
|
523
|
+
logDebug("autoRecallHook injection complete", { newIds: newIds.length, clustered: !!clustered, sessionId: input.sessionID });
|
|
517
524
|
|
|
518
525
|
await createEventAndReturn(newResults.length, storedMemoryIds.length, storedDiscardedIds.length);
|
|
519
526
|
|