@mingxy/cerebro 1.5.1 → 1.5.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/client.ts +1 -1
- package/src/hooks.ts +2 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
package/src/hooks.ts
CHANGED
|
@@ -152,6 +152,8 @@ export function autoRecallHook(client: OmemClient, containerTags: string[], tui:
|
|
|
152
152
|
const query_text = userMessages[userMessages.length - 1]?.content || firstMessages.get(input.sessionID) || "";
|
|
153
153
|
const last_query_text = userMessages.length >= 2 ? userMessages[userMessages.length - 2].content : undefined;
|
|
154
154
|
|
|
155
|
+
if (!query_text.trim()) return;
|
|
156
|
+
|
|
155
157
|
const projectTags = containerTags.filter(t => t.startsWith("omem_project_"));
|
|
156
158
|
const shouldRecallRes = await client.shouldRecall(query_text, last_query_text, input.sessionID, similarityThreshold, maxRecallResults, projectTags.length > 0 ? projectTags : undefined);
|
|
157
159
|
|