@edihasaj/recall 0.9.1 → 0.9.2
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-3PPYB7BX.js → chunk-57OKXD4B.js} +6 -6
- package/dist/{chunk-EZUMD27V.js → chunk-CYQPEGXG.js} +42 -17
- package/dist/{chunk-EZUMD27V.js.map → chunk-CYQPEGXG.js.map} +1 -1
- package/dist/{chunk-A27AP4NR.js → chunk-HGZOF7YH.js} +16 -7
- package/dist/chunk-HGZOF7YH.js.map +1 -0
- package/dist/{chunk-G6YAXFT4.js → chunk-IBNDQXUB.js} +46 -7
- package/dist/chunk-IBNDQXUB.js.map +1 -0
- package/dist/{chunk-YDSCPOIJ.js → chunk-K5PIUKRM.js} +2 -2
- package/dist/{chunk-GE5BPNHC.js → chunk-OGZO2WKA.js} +6 -6
- package/dist/{chunk-4W4J7Z24.js → chunk-PLOL3UCO.js} +3 -3
- package/dist/{chunk-DWA2IO5N.js → chunk-QLAFLCY4.js} +10 -3
- package/dist/chunk-QLAFLCY4.js.map +1 -0
- package/dist/{chunk-FNQABJTM.js → chunk-UPSMHCTY.js} +2 -2
- package/dist/{cleanup-MBXKIGT6.js → cleanup-62AZROOV.js} +4 -4
- package/dist/cli.js +17 -17
- package/dist/daemon.js +9 -9
- package/dist/{dispatcher-YN6545TF.js → dispatcher-GJNTZX2I.js} +4 -4
- package/dist/{ingest-7FAOX7YV.js → ingest-BLMXKKGP.js} +2 -2
- package/dist/mcp.js +7 -7
- package/dist/{memory-value-ZLVZTE5M.js → memory-value-B3AQW4IE.js} +4 -4
- package/dist/{quality-UUEBGSAQ.js → quality-MIDMOC3L.js} +5 -5
- package/dist/{retrieval-YU2PLBUS.js → retrieval-FHCKFVXX.js} +3 -3
- package/dist/{tasks-AEKGKZZF.js → tasks-6CDIKOIR.js} +4 -4
- package/dist/webui/assets/{index-DAoAhOb4.js → index-2DR_ysOm.js} +391 -267
- package/dist/webui/assets/{index-DAoAhOb4.js.map → index-2DR_ysOm.js.map} +1 -1
- package/dist/webui/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunk-A27AP4NR.js.map +0 -1
- package/dist/chunk-DWA2IO5N.js.map +0 -1
- package/dist/chunk-G6YAXFT4.js.map +0 -1
- /package/dist/{chunk-3PPYB7BX.js.map → chunk-57OKXD4B.js.map} +0 -0
- /package/dist/{chunk-YDSCPOIJ.js.map → chunk-K5PIUKRM.js.map} +0 -0
- /package/dist/{chunk-GE5BPNHC.js.map → chunk-OGZO2WKA.js.map} +0 -0
- /package/dist/{chunk-4W4J7Z24.js.map → chunk-PLOL3UCO.js.map} +0 -0
- /package/dist/{chunk-FNQABJTM.js.map → chunk-UPSMHCTY.js.map} +0 -0
- /package/dist/{cleanup-MBXKIGT6.js.map → cleanup-62AZROOV.js.map} +0 -0
- /package/dist/{dispatcher-YN6545TF.js.map → dispatcher-GJNTZX2I.js.map} +0 -0
- /package/dist/{ingest-7FAOX7YV.js.map → ingest-BLMXKKGP.js.map} +0 -0
- /package/dist/{memory-value-ZLVZTE5M.js.map → memory-value-B3AQW4IE.js.map} +0 -0
- /package/dist/{quality-UUEBGSAQ.js.map → quality-MIDMOC3L.js.map} +0 -0
- /package/dist/{retrieval-YU2PLBUS.js.map → retrieval-FHCKFVXX.js.map} +0 -0
- /package/dist/{tasks-AEKGKZZF.js.map → tasks-6CDIKOIR.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getMemory
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HGZOF7YH.js";
|
|
4
4
|
import {
|
|
5
5
|
hybridSearch,
|
|
6
6
|
searchMemoryFtsIndex
|
|
@@ -120,4 +120,4 @@ async function graphQuery(db, query, embeddingConfig, options = {}) {
|
|
|
120
120
|
export {
|
|
121
121
|
graphQuery
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk-
|
|
123
|
+
//# sourceMappingURL=chunk-K5PIUKRM.js.map
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
listInjectedHistoryIdsForSession,
|
|
12
12
|
signalOutcomeFallback,
|
|
13
13
|
startSessionLifecycle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CYQPEGXG.js";
|
|
15
15
|
import {
|
|
16
16
|
detectCorrections,
|
|
17
17
|
isHighRiskRule,
|
|
18
18
|
isTriggerTemplateRule,
|
|
19
19
|
peekTasks,
|
|
20
20
|
redactSensitiveText
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IBNDQXUB.js";
|
|
22
22
|
import {
|
|
23
23
|
detectAndRecordRetrievalMissesSemantic,
|
|
24
24
|
listInjectedMemoryIdsForSession,
|
|
@@ -26,17 +26,17 @@ import {
|
|
|
26
26
|
pathMatchesMemory,
|
|
27
27
|
recordCompletionUseValueEventsSemantic,
|
|
28
28
|
toolCallTouchesMemory
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PLOL3UCO.js";
|
|
30
30
|
import {
|
|
31
31
|
textMatches
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QLAFLCY4.js";
|
|
33
33
|
import {
|
|
34
34
|
desc
|
|
35
35
|
} from "./chunk-CW3XJDH7.js";
|
|
36
36
|
import {
|
|
37
37
|
hookCallDedupeKey,
|
|
38
38
|
queryMemories
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HGZOF7YH.js";
|
|
40
40
|
import {
|
|
41
41
|
tagActivitySource
|
|
42
42
|
} from "./chunk-PQJRYAVG.js";
|
|
@@ -1167,4 +1167,4 @@ export {
|
|
|
1167
1167
|
readCodexSessionEndInputFromStdin,
|
|
1168
1168
|
dispatchCodexNotify
|
|
1169
1169
|
};
|
|
1170
|
-
//# sourceMappingURL=chunk-
|
|
1170
|
+
//# sourceMappingURL=chunk-OGZO2WKA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
textMatchScore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLAFLCY4.js";
|
|
4
4
|
import {
|
|
5
5
|
asc,
|
|
6
6
|
desc
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getMemory,
|
|
10
10
|
promoteMemory,
|
|
11
11
|
queryMemories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HGZOF7YH.js";
|
|
13
13
|
import {
|
|
14
14
|
cosineSimilarity,
|
|
15
15
|
generateEmbedding,
|
|
@@ -612,4 +612,4 @@ export {
|
|
|
612
612
|
detectAndRecordRetrievalMissesSemantic,
|
|
613
613
|
computeMemoryValueReport
|
|
614
614
|
};
|
|
615
|
-
//# sourceMappingURL=chunk-
|
|
615
|
+
//# sourceMappingURL=chunk-PLOL3UCO.js.map
|
|
@@ -3,6 +3,7 @@ var STOP_WORDS = /* @__PURE__ */ new Set([
|
|
|
3
3
|
"a",
|
|
4
4
|
"an",
|
|
5
5
|
"and",
|
|
6
|
+
"always",
|
|
6
7
|
"are",
|
|
7
8
|
"as",
|
|
8
9
|
"at",
|
|
@@ -20,13 +21,16 @@ var STOP_WORDS = /* @__PURE__ */ new Set([
|
|
|
20
21
|
"it",
|
|
21
22
|
"its",
|
|
22
23
|
"just",
|
|
24
|
+
"must",
|
|
23
25
|
"of",
|
|
24
26
|
"on",
|
|
25
27
|
"only",
|
|
26
28
|
"or",
|
|
27
29
|
"our",
|
|
28
30
|
"please",
|
|
31
|
+
"required",
|
|
29
32
|
"run",
|
|
33
|
+
"should",
|
|
30
34
|
"that",
|
|
31
35
|
"the",
|
|
32
36
|
"this",
|
|
@@ -71,7 +75,7 @@ function textMatchScore(left, right) {
|
|
|
71
75
|
const smaller = Math.min(leftSet.size, rightSet.size);
|
|
72
76
|
const containment = smaller === 0 ? 0 : intersection / smaller;
|
|
73
77
|
const containmentWeight = smaller < 2 ? 0 : smaller === 2 ? 0.75 : 0.9;
|
|
74
|
-
const exactSingleTokenScore = intersection === 1 && smaller === 1 ? 0.7 : 0;
|
|
78
|
+
const exactSingleTokenScore = intersection === 1 && smaller === 1 && !["not"].includes([...leftSet].find((token) => rightSet.has(token)) ?? "") ? 0.7 : 0;
|
|
75
79
|
const score = Math.max(jaccard, containment * containmentWeight, exactSingleTokenScore);
|
|
76
80
|
return {
|
|
77
81
|
score,
|
|
@@ -83,7 +87,7 @@ function textMatchScore(left, right) {
|
|
|
83
87
|
};
|
|
84
88
|
}
|
|
85
89
|
function matchTokens(text) {
|
|
86
|
-
return text.toLowerCase().replace(/\bdo\s+not\b/g, " not ").replace(/\bdon['’]?t\b/g, " dont ").split(/[^a-z0-9]+/).map(normalizeToken).filter((token) => token.length > 1 && !STOP_WORDS.has(token));
|
|
90
|
+
return text.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().replace(/\bdo\s+not\b/g, " not ").replace(/\bdon['’]?t\b/g, " dont ").split(/[^a-z0-9]+/).map(normalizeToken).filter((token) => token.length > 1 && !STOP_WORDS.has(token));
|
|
87
91
|
}
|
|
88
92
|
function normalizeToken(token) {
|
|
89
93
|
if (NEGATION_WORDS.has(token)) return "not";
|
|
@@ -91,6 +95,9 @@ function normalizeToken(token) {
|
|
|
91
95
|
if (token === "ran" || token === "running" || token === "runs") return "run";
|
|
92
96
|
if (token === "using" || token === "used" || token === "uses") return "use";
|
|
93
97
|
if (token.endsWith("ies") && token.length > 4) return `${token.slice(0, -3)}y`;
|
|
98
|
+
if (/(?:ches|shes|sses|xes|zes)$/.test(token) && token.length > 4) {
|
|
99
|
+
return token.slice(0, -2);
|
|
100
|
+
}
|
|
94
101
|
if (token.endsWith("ing") && token.length > 5) return token.slice(0, -3);
|
|
95
102
|
if (token.endsWith("ed") && token.length > 4) return token.slice(0, -2);
|
|
96
103
|
if (token.endsWith("s") && token.length > 3) return token.slice(0, -1);
|
|
@@ -102,4 +109,4 @@ export {
|
|
|
102
109
|
textMatchScore,
|
|
103
110
|
matchTokens
|
|
104
111
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-QLAFLCY4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/text/match.ts"],"sourcesContent":["const STOP_WORDS = new Set([\n \"a\",\n \"an\",\n \"and\",\n \"always\",\n \"are\",\n \"as\",\n \"at\",\n \"be\",\n \"by\",\n \"call\",\n \"do\",\n \"for\",\n \"from\",\n \"i\",\n \"in\",\n \"import\",\n \"instead\",\n \"is\",\n \"it\",\n \"its\",\n \"just\",\n \"must\",\n \"of\",\n \"on\",\n \"only\",\n \"or\",\n \"our\",\n \"please\",\n \"required\",\n \"run\",\n \"should\",\n \"that\",\n \"the\",\n \"this\",\n \"to\",\n \"use\",\n \"we\",\n \"with\",\n \"you\",\n \"your\",\n]);\n\nconst NEGATION_WORDS = new Set([\n \"avoid\",\n \"dont\",\n \"forbid\",\n \"forbidden\",\n \"never\",\n \"no\",\n \"not\",\n \"stop\",\n]);\n\nexport interface TextMatchScore {\n score: number;\n jaccard: number;\n containment: number;\n intersection: number;\n left_tokens: string[];\n right_tokens: string[];\n}\n\nexport function textMatches(left: string, right: string, threshold: number): boolean {\n return textMatchScore(left, right).score >= threshold;\n}\n\nexport function textMatchScore(left: string, right: string): TextMatchScore {\n const leftTokens = matchTokens(left);\n const rightTokens = matchTokens(right);\n if (leftTokens.length === 0 || rightTokens.length === 0) {\n return {\n score: 0,\n jaccard: 0,\n containment: 0,\n intersection: 0,\n left_tokens: leftTokens,\n right_tokens: rightTokens,\n };\n }\n\n const leftSet = new Set(leftTokens);\n const rightSet = new Set(rightTokens);\n const intersection = [...leftSet].filter((token) => rightSet.has(token)).length;\n const union = new Set([...leftSet, ...rightSet]).size;\n const jaccard = union === 0 ? 0 : intersection / union;\n const smaller = Math.min(leftSet.size, rightSet.size);\n const containment = smaller === 0 ? 0 : intersection / smaller;\n const containmentWeight = smaller < 2 ? 0 : smaller === 2 ? 0.75 : 0.9;\n // Short tool/product queries are common (\"uv\", \"pnpm\", \"shotport\").\n // A one-token side is normally too weak for correction matching, but when\n // that whole distinctive token occurs on the other side it is exactly the\n // user's retrieval intent. Sentence-to-sentence one-token overlap remains\n // unboosted because neither side collapses to one content token.\n const exactSingleTokenScore =\n intersection === 1 &&\n smaller === 1 &&\n ![\"not\"].includes([...leftSet].find((token) => rightSet.has(token)) ?? \"\")\n ? 0.7\n : 0;\n const score = Math.max(jaccard, containment * containmentWeight, exactSingleTokenScore);\n\n return {\n score,\n jaccard,\n containment,\n intersection,\n left_tokens: [...leftSet],\n right_tokens: [...rightSet],\n };\n}\n\nexport function matchTokens(text: string): string[] {\n return text\n .replace(/([a-z0-9])([A-Z])/g, \"$1 $2\")\n .toLowerCase()\n .replace(/\\bdo\\s+not\\b/g, \" not \")\n .replace(/\\bdon['’]?t\\b/g, \" dont \")\n .split(/[^a-z0-9]+/)\n .map(normalizeToken)\n .filter((token) => token.length > 1 && !STOP_WORDS.has(token));\n}\n\nfunction normalizeToken(token: string): string {\n if (NEGATION_WORDS.has(token)) return \"not\";\n if (/^es\\d+$/.test(token)) return \"es\";\n if (token === \"ran\" || token === \"running\" || token === \"runs\") return \"run\";\n if (token === \"using\" || token === \"used\" || token === \"uses\") return \"use\";\n if (token.endsWith(\"ies\") && token.length > 4) return `${token.slice(0, -3)}y`;\n if (/(?:ches|shes|sses|xes|zes)$/.test(token) && token.length > 4) {\n return token.slice(0, -2);\n }\n if (token.endsWith(\"ing\") && token.length > 5) return token.slice(0, -3);\n if (token.endsWith(\"ed\") && token.length > 4) return token.slice(0, -2);\n if (token.endsWith(\"s\") && token.length > 3) return token.slice(0, -1);\n return token;\n}\n"],"mappings":";AAAA,IAAM,aAAa,oBAAI,IAAI;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AA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K,MAAM,SAAS,EAAG,QAAO,MAAM,MAAM,GAAG,EAAE;AACrE,SAAO;AACT;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeMemoryValueReport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PLOL3UCO.js";
|
|
4
4
|
import {
|
|
5
5
|
desc
|
|
6
6
|
} from "./chunk-CW3XJDH7.js";
|
|
@@ -180,4 +180,4 @@ export {
|
|
|
180
180
|
diffQualitySnapshots,
|
|
181
181
|
formatQualityReport
|
|
182
182
|
};
|
|
183
|
-
//# sourceMappingURL=chunk-
|
|
183
|
+
//# sourceMappingURL=chunk-UPSMHCTY.js.map
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
qualityReasons,
|
|
13
13
|
revertCleanupRun,
|
|
14
14
|
runDeterministicCleanup
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-IBNDQXUB.js";
|
|
16
|
+
import "./chunk-QLAFLCY4.js";
|
|
17
17
|
import "./chunk-CW3XJDH7.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-HGZOF7YH.js";
|
|
19
19
|
import "./chunk-PQJRYAVG.js";
|
|
20
20
|
import "./chunk-VYZSP23L.js";
|
|
21
21
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
revertCleanupRun,
|
|
37
37
|
runDeterministicCleanup
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=cleanup-
|
|
39
|
+
//# sourceMappingURL=cleanup-62AZROOV.js.map
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readCodexSessionStartInputFromStdin,
|
|
24
24
|
readCodexToolInputFromStdin,
|
|
25
25
|
restoreBackup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OGZO2WKA.js";
|
|
27
27
|
import {
|
|
28
28
|
RECALL_DB_USER_VERSION,
|
|
29
29
|
compileContext,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
summarizeValueRetrievalEval,
|
|
67
67
|
togglePolicy,
|
|
68
68
|
writeRepoContextArtifact
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-CYQPEGXG.js";
|
|
70
70
|
import {
|
|
71
71
|
autoResolveContradictions,
|
|
72
72
|
computeAllHealthScores,
|
|
@@ -84,9 +84,9 @@ import {
|
|
|
84
84
|
recordAudit,
|
|
85
85
|
resolveContradiction,
|
|
86
86
|
rollbackMemory
|
|
87
|
-
} from "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
87
|
+
} from "./chunk-IBNDQXUB.js";
|
|
88
|
+
import "./chunk-PLOL3UCO.js";
|
|
89
|
+
import "./chunk-QLAFLCY4.js";
|
|
90
90
|
import "./chunk-CW3XJDH7.js";
|
|
91
91
|
import "./chunk-PUMEMKGF.js";
|
|
92
92
|
import {
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
listRepos,
|
|
100
100
|
queryMemories,
|
|
101
101
|
rejectMemory
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-HGZOF7YH.js";
|
|
103
103
|
import {
|
|
104
104
|
atomicWriteUtf8File,
|
|
105
105
|
bootstrapEmbeddings,
|
|
@@ -3833,7 +3833,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
3833
3833
|
});
|
|
3834
3834
|
let snapshot = null;
|
|
3835
3835
|
if (opts.snapshot) {
|
|
3836
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
3836
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-MIDMOC3L.js");
|
|
3837
3837
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
3838
3838
|
snapshot = recordQualitySnapshot(
|
|
3839
3839
|
db,
|
|
@@ -4325,7 +4325,7 @@ graphCmd.command("stats").description("Show entity/relation counts").action(asyn
|
|
|
4325
4325
|
});
|
|
4326
4326
|
graphCmd.command("backfill").description("Run the heuristic extractor over every active memory (idempotent)").option("--repo <repo>", "Limit to a single repo").option("--limit <n>", "Cap rows processed", "10000").option("--rebuild", "Clear all existing entities/relations first, then re-extract").action(async (opts) => {
|
|
4327
4327
|
const db = initDb();
|
|
4328
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4328
|
+
const { ingestMemoryHeuristic } = await import("./ingest-BLMXKKGP.js");
|
|
4329
4329
|
if (opts.rebuild) {
|
|
4330
4330
|
const { clearGraph } = await import("./store-5C7ZKKZF.js");
|
|
4331
4331
|
clearGraph(db);
|
|
@@ -4368,7 +4368,7 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
4368
4368
|
});
|
|
4369
4369
|
graphCmd.command("query <query...>").description("Run graph-aware retrieval for a query").option("--repo <repo>", "Restrict to repo").option("--hops <n>", "Graph hops", "2").option("--limit <n>", "Max hits", "10").action(async (queryTokens, opts) => {
|
|
4370
4370
|
const db = initDb();
|
|
4371
|
-
const { graphQuery } = await import("./retrieval-
|
|
4371
|
+
const { graphQuery } = await import("./retrieval-FHCKFVXX.js");
|
|
4372
4372
|
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-E362AC3R.js");
|
|
4373
4373
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
4374
4374
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
@@ -4385,7 +4385,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
4385
4385
|
});
|
|
4386
4386
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
4387
4387
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
4388
|
-
const { getTaskStats } = await import("./tasks-
|
|
4388
|
+
const { getTaskStats } = await import("./tasks-6CDIKOIR.js");
|
|
4389
4389
|
const db = initDb();
|
|
4390
4390
|
const stats = getTaskStats(db);
|
|
4391
4391
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -4411,7 +4411,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
4411
4411
|
}
|
|
4412
4412
|
});
|
|
4413
4413
|
maintenanceCmd.command("list").description("List tasks (default: pending)").option("-s, --status <status>", "pending|claimed|completed|abandoned", "pending").option("-k, --kind <kind>", "Filter by kind").option("-r, --repo <repo>", "Filter by repo").option("-n, --limit <n>", "Max entries", "20").action(async (opts) => {
|
|
4414
|
-
const { listTasks } = await import("./tasks-
|
|
4414
|
+
const { listTasks } = await import("./tasks-6CDIKOIR.js");
|
|
4415
4415
|
const db = initDb();
|
|
4416
4416
|
const tasks = listTasks(db, {
|
|
4417
4417
|
status: opts.status,
|
|
@@ -4433,7 +4433,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
4433
4433
|
}
|
|
4434
4434
|
});
|
|
4435
4435
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
4436
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
4436
|
+
const { deleteTask, listTasks } = await import("./tasks-6CDIKOIR.js");
|
|
4437
4437
|
const db = initDb();
|
|
4438
4438
|
const all = listTasks(db, { limit: 1e4 });
|
|
4439
4439
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -4539,8 +4539,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
4539
4539
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
4540
4540
|
});
|
|
4541
4541
|
maintenanceCmd.command("dispatch").description("Run the daemon-owned dispatcher once against pending maintenance tasks (requires a configured LLM provider)").option("--provider <provider>", "openai|anthropic|azure-openai (defaults to whichever is configured)").option("--model <model>", "Model override").option("--kind <kind>", "Restrict to a single task kind (repeatable)", (value, acc = []) => [...acc, value], []).option("--repo <repo>", "Restrict to a single repo").option("--max <n>", "Max tasks to run this round", "5").option("--dry-run", "Show which tasks would be dispatched; do not call the LLM").option("--preview", "Show the actual prompts that would be sent (no provider needed; no LLM call)").option("--json", "Emit the raw JSON report").action(async (opts) => {
|
|
4542
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
4543
|
-
const { listTasks } = await import("./tasks-
|
|
4542
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-GJNTZX2I.js");
|
|
4543
|
+
const { listTasks } = await import("./tasks-6CDIKOIR.js");
|
|
4544
4544
|
const db = initDb();
|
|
4545
4545
|
if (opts.preview) {
|
|
4546
4546
|
const pending = listTasks(db, {
|
|
@@ -4597,7 +4597,7 @@ ${p.prompt.max_output_tokens}
|
|
|
4597
4597
|
console.log(formatDispatchReport(report));
|
|
4598
4598
|
});
|
|
4599
4599
|
maintenanceCmd.command("cleanup").description("Run deterministic, LLM-free cleanup for duplicate, low-quality, stale, and mis-scoped memories").option("--apply", "Persist changes (default is dry-run)").option("--only <action>", "Restrict to one action: dedupe_exact_merge|reject_fragment_candidate|promote_repeat_correction|suppress_unproductive_command|globalize_cross_repo|reject_test_fixture_repo|reject_invalid_scope|reject_generic_scanned_tooling").option("--revert <run-id>", "Revert a previous cleanup run (id or 8-char prefix)").option("--list", "List recent cleanup runs").option("--json", "Emit the raw JSON report").action(async (opts) => {
|
|
4600
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
4600
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-62AZROOV.js");
|
|
4601
4601
|
const db = initDb();
|
|
4602
4602
|
if (opts.list) {
|
|
4603
4603
|
const runs = listCleanupRuns(db);
|
|
@@ -4651,7 +4651,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
4651
4651
|
recordQualitySnapshot,
|
|
4652
4652
|
listQualitySnapshots,
|
|
4653
4653
|
diffQualitySnapshots
|
|
4654
|
-
} = await import("./quality-
|
|
4654
|
+
} = await import("./quality-MIDMOC3L.js");
|
|
4655
4655
|
const db = initDb();
|
|
4656
4656
|
if (opts.history) {
|
|
4657
4657
|
const snaps = listQualitySnapshots(db);
|
|
@@ -4712,7 +4712,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
4712
4712
|
const {
|
|
4713
4713
|
backfillMemoryValueEvents,
|
|
4714
4714
|
formatMemoryValueBackfillReport
|
|
4715
|
-
} = await import("./memory-value-
|
|
4715
|
+
} = await import("./memory-value-B3AQW4IE.js");
|
|
4716
4716
|
const db = initDb();
|
|
4717
4717
|
const report = backfillMemoryValueEvents(db, {
|
|
4718
4718
|
sinceIso: opts.since,
|
package/dist/daemon.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
computeQualityReport,
|
|
3
3
|
listQualitySnapshots,
|
|
4
4
|
recordQualitySnapshot
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UPSMHCTY.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureDailyBackup,
|
|
8
8
|
handleAssistantCompletionHook,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
handleSessionEndHook,
|
|
11
11
|
handleSessionStartHook,
|
|
12
12
|
handleToolHook
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OGZO2WKA.js";
|
|
14
14
|
import {
|
|
15
15
|
createRecallMcpServer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-57OKXD4B.js";
|
|
17
17
|
import {
|
|
18
18
|
graphQuery
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-K5PIUKRM.js";
|
|
20
20
|
import {
|
|
21
21
|
bootstrapHistoryEmbeddings,
|
|
22
22
|
compileContext,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
updateHistorySnippet,
|
|
57
57
|
verifyHistoryEmbeddings,
|
|
58
58
|
writeRepoContextArtifact
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CYQPEGXG.js";
|
|
60
60
|
import {
|
|
61
61
|
DEFAULT_ENQUEUE_CONFIG,
|
|
62
62
|
autoResolveContradictions,
|
|
@@ -78,9 +78,9 @@ import {
|
|
|
78
78
|
resolveContradiction,
|
|
79
79
|
rollbackMemory,
|
|
80
80
|
runDeterministicCleanup
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-IBNDQXUB.js";
|
|
82
|
+
import "./chunk-PLOL3UCO.js";
|
|
83
|
+
import "./chunk-QLAFLCY4.js";
|
|
84
84
|
import "./chunk-CW3XJDH7.js";
|
|
85
85
|
import {
|
|
86
86
|
Sentry
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
rejectMemory,
|
|
96
96
|
safeIngestMemoryById,
|
|
97
97
|
statusFromConfidence
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-HGZOF7YH.js";
|
|
99
99
|
import {
|
|
100
100
|
bootstrapEmbeddings,
|
|
101
101
|
ensureEmbeddingProviderReady,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
dispatchPendingTasks,
|
|
4
4
|
formatDispatchReport,
|
|
5
5
|
hasAnyLlmProvider
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-IBNDQXUB.js";
|
|
7
|
+
import "./chunk-QLAFLCY4.js";
|
|
8
8
|
import "./chunk-CW3XJDH7.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-HGZOF7YH.js";
|
|
10
10
|
import "./chunk-PQJRYAVG.js";
|
|
11
11
|
import "./chunk-VYZSP23L.js";
|
|
12
12
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -18,4 +18,4 @@ export {
|
|
|
18
18
|
formatDispatchReport,
|
|
19
19
|
hasAnyLlmProvider
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=dispatcher-
|
|
21
|
+
//# sourceMappingURL=dispatcher-GJNTZX2I.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ingestMemoryHeuristic,
|
|
4
4
|
mergeAndIngest,
|
|
5
5
|
safeIngestMemoryById
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HGZOF7YH.js";
|
|
7
7
|
import "./chunk-PQJRYAVG.js";
|
|
8
8
|
import "./chunk-VYZSP23L.js";
|
|
9
9
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
mergeAndIngest,
|
|
16
16
|
safeIngestMemoryById
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=ingest-
|
|
18
|
+
//# sourceMappingURL=ingest-BLMXKKGP.js.map
|
package/dist/mcp.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRecallMcpServer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-57OKXD4B.js";
|
|
4
|
+
import "./chunk-K5PIUKRM.js";
|
|
5
|
+
import "./chunk-CYQPEGXG.js";
|
|
6
|
+
import "./chunk-IBNDQXUB.js";
|
|
7
|
+
import "./chunk-PLOL3UCO.js";
|
|
8
|
+
import "./chunk-QLAFLCY4.js";
|
|
9
9
|
import "./chunk-CW3XJDH7.js";
|
|
10
10
|
import "./chunk-PUMEMKGF.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HGZOF7YH.js";
|
|
12
12
|
import "./chunk-PQJRYAVG.js";
|
|
13
13
|
import "./chunk-VYZSP23L.js";
|
|
14
14
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
recordInjectionValueEvents,
|
|
11
11
|
recordMemoryValueEvent,
|
|
12
12
|
recordOutcomeValueEvent
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-PLOL3UCO.js";
|
|
14
|
+
import "./chunk-QLAFLCY4.js";
|
|
15
15
|
import "./chunk-CW3XJDH7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-HGZOF7YH.js";
|
|
17
17
|
import "./chunk-PQJRYAVG.js";
|
|
18
18
|
import "./chunk-VYZSP23L.js";
|
|
19
19
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
recordMemoryValueEvent,
|
|
33
33
|
recordOutcomeValueEvent
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=memory-value-
|
|
35
|
+
//# sourceMappingURL=memory-value-B3AQW4IE.js.map
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
formatQualityReport,
|
|
5
5
|
listQualitySnapshots,
|
|
6
6
|
recordQualitySnapshot
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-UPSMHCTY.js";
|
|
8
|
+
import "./chunk-PLOL3UCO.js";
|
|
9
|
+
import "./chunk-QLAFLCY4.js";
|
|
10
10
|
import "./chunk-CW3XJDH7.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HGZOF7YH.js";
|
|
12
12
|
import "./chunk-PQJRYAVG.js";
|
|
13
13
|
import "./chunk-VYZSP23L.js";
|
|
14
14
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
listQualitySnapshots,
|
|
22
22
|
recordQualitySnapshot
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=quality-
|
|
24
|
+
//# sourceMappingURL=quality-MIDMOC3L.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
graphQuery
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-K5PIUKRM.js";
|
|
4
|
+
import "./chunk-HGZOF7YH.js";
|
|
5
5
|
import "./chunk-PQJRYAVG.js";
|
|
6
6
|
import "./chunk-VYZSP23L.js";
|
|
7
7
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -10,4 +10,4 @@ import "./chunk-JYWURG5T.js";
|
|
|
10
10
|
export {
|
|
11
11
|
graphQuery
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=retrieval-
|
|
13
|
+
//# sourceMappingURL=retrieval-FHCKFVXX.js.map
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
submitTask,
|
|
29
29
|
sweepExpiredLeases,
|
|
30
30
|
targetKey
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-IBNDQXUB.js";
|
|
32
|
+
import "./chunk-QLAFLCY4.js";
|
|
33
33
|
import "./chunk-CW3XJDH7.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-HGZOF7YH.js";
|
|
35
35
|
import "./chunk-PQJRYAVG.js";
|
|
36
36
|
import "./chunk-VYZSP23L.js";
|
|
37
37
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -68,4 +68,4 @@ export {
|
|
|
68
68
|
sweepExpiredLeases,
|
|
69
69
|
targetKey
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=tasks-
|
|
71
|
+
//# sourceMappingURL=tasks-6CDIKOIR.js.map
|