@edihasaj/recall 0.9.12 → 1.0.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/{chunk-SLED34YJ.js → chunk-QQ65JR35.js} +2 -2
- package/dist/{chunk-UBKOTF3V.js → chunk-U7KQCPL5.js} +2 -2
- package/dist/{chunk-KSKGK5OA.js → chunk-VHW3L7OR.js} +10 -2
- package/dist/{chunk-KSKGK5OA.js.map → chunk-VHW3L7OR.js.map} +1 -1
- package/dist/cli.js +71 -18
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-SLED34YJ.js.map → chunk-QQ65JR35.js.map} +0 -0
- /package/dist/{chunk-UBKOTF3V.js.map → chunk-U7KQCPL5.js.map} +0 -0
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
scanAndStore,
|
|
27
27
|
sessionEndFallback,
|
|
28
28
|
signalOutcomeFallback
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VHW3L7OR.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_LEASE_SECONDS,
|
|
32
32
|
TaskClaimConflictError,
|
|
@@ -1197,4 +1197,4 @@ function createRecallMcpServer(db = initDb()) {
|
|
|
1197
1197
|
export {
|
|
1198
1198
|
createRecallMcpServer
|
|
1199
1199
|
};
|
|
1200
|
-
//# sourceMappingURL=chunk-
|
|
1200
|
+
//# sourceMappingURL=chunk-QQ65JR35.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
listInjectedHistoryIdsForSession,
|
|
12
12
|
signalOutcomeFallback,
|
|
13
13
|
startSessionLifecycle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VHW3L7OR.js";
|
|
15
15
|
import {
|
|
16
16
|
detectCorrections,
|
|
17
17
|
isHighRiskRule,
|
|
@@ -1167,4 +1167,4 @@ export {
|
|
|
1167
1167
|
readCodexSessionEndInputFromStdin,
|
|
1168
1168
|
dispatchCodexNotify
|
|
1169
1169
|
};
|
|
1170
|
-
//# sourceMappingURL=chunk-
|
|
1170
|
+
//# sourceMappingURL=chunk-U7KQCPL5.js.map
|
|
@@ -4927,12 +4927,20 @@ function normalizeQueryForRetrieval(text) {
|
|
|
4927
4927
|
out = out.replace(/\[Image:[^\]]*\]/gi, " ");
|
|
4928
4928
|
out = out.replace(/\bTool (?:loaded|result|use|call)\b[:.]?/gi, " ");
|
|
4929
4929
|
out = out.trim();
|
|
4930
|
-
|
|
4930
|
+
const paragraphs = out.split(/\r?\n\s*\r?\n/).map((part) => part.trim()).filter(Boolean);
|
|
4931
|
+
const hasRecognizableAttachment = paragraphs.length > 1 && paragraphs[0].length <= 500 && /^(?:GitHub\s+(?:PR|Pull Request|Issue)\s+#|Jira\s+(?:Ticket|Issue)|#{1,6}\s|<details\b)/i.test(paragraphs[1]);
|
|
4932
|
+
if (hasRecognizableAttachment) {
|
|
4933
|
+
out = extractLeadingIntent(paragraphs[0]);
|
|
4934
|
+
}
|
|
4935
|
+
if (!hasRecognizableAttachment && out.length > MAX_RETRIEVAL_QUERY_LENGTH) {
|
|
4931
4936
|
const leadingLine = out.split("\n").map((line) => line.trim()).find(Boolean);
|
|
4932
4937
|
if (leadingLine && leadingLine.length <= MAX_LEADING_INTENT_LENGTH) {
|
|
4933
4938
|
out = extractLeadingIntent(leadingLine);
|
|
4934
4939
|
}
|
|
4935
4940
|
}
|
|
4941
|
+
if (/https?:\/\/\S+/i.test(out) || /\b[A-Z][A-Z0-9]+-\d+\b/.test(out)) {
|
|
4942
|
+
out = extractLeadingIntent(out);
|
|
4943
|
+
}
|
|
4936
4944
|
out = out.replace(/\s+/g, " ").trim();
|
|
4937
4945
|
if (out.length > MAX_RETRIEVAL_QUERY_LENGTH) {
|
|
4938
4946
|
out = out.slice(0, MAX_RETRIEVAL_QUERY_LENGTH);
|
|
@@ -6602,4 +6610,4 @@ export {
|
|
|
6602
6610
|
pruneMemories,
|
|
6603
6611
|
formatPruneReport
|
|
6604
6612
|
};
|
|
6605
|
-
//# sourceMappingURL=chunk-
|
|
6613
|
+
//# sourceMappingURL=chunk-VHW3L7OR.js.map
|