@edihasaj/recall 1.3.0 → 1.3.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-G44JMYVI.js → chunk-427VWTG6.js} +6 -6
- package/dist/{chunk-TUC6GU35.js → chunk-6FE2IKPF.js} +3 -3
- package/dist/{chunk-B6KSSZUW.js → chunk-FUDWE6KW.js} +2 -2
- package/dist/{chunk-KD4OKHYF.js → chunk-JKWK73GY.js} +7 -2
- package/dist/chunk-JKWK73GY.js.map +1 -0
- package/dist/{chunk-JP5YAQPQ.js → chunk-MPWXWBSG.js} +3 -3
- package/dist/{chunk-5FY3HYGU.js → chunk-THX57BL4.js} +60 -16
- package/dist/chunk-THX57BL4.js.map +1 -0
- package/dist/{chunk-T5FOKQH2.js → chunk-VP25EEOH.js} +2 -2
- package/dist/{chunk-NFCBG4OH.js → chunk-ZPAXZDWJ.js} +7 -7
- package/dist/{chunk-UUCSHXES.js → chunk-ZXLAD4CS.js} +7 -6
- package/dist/{chunk-UUCSHXES.js.map → chunk-ZXLAD4CS.js.map} +1 -1
- package/dist/{cleanup-PT3VB3CG.js → cleanup-PE3BFDMV.js} +4 -4
- package/dist/cli.js +18 -18
- package/dist/daemon.js +22 -10
- package/dist/daemon.js.map +1 -1
- package/dist/{dispatcher-2Q6LY57F.js → dispatcher-YCWDNYU3.js} +4 -4
- package/dist/{embeddings-CLBTYK7N.js → embeddings-HDNAGCOS.js} +2 -2
- package/dist/{ingest-ERAUAPMC.js → ingest-LZXTAMEZ.js} +3 -3
- package/dist/mcp.js +7 -7
- package/dist/{memory-value-2NDAQNMS.js → memory-value-L4VZNKK5.js} +4 -4
- package/dist/{quality-WFWVU4FQ.js → quality-MEI6N7IW.js} +5 -5
- package/dist/{retrieval-JOC63UXZ.js → retrieval-WDZXSBKB.js} +4 -4
- package/dist/{tasks-ANFQXOYX.js → tasks-6EJMXJQV.js} +4 -4
- package/dist/webui/assets/{index-DSV5JHmg.css → GraphPage-B5DZHykP.css} +1 -1
- package/dist/webui/assets/GraphPage-DJhwG-72.js +5165 -0
- package/dist/webui/assets/GraphPage-DJhwG-72.js.map +1 -0
- package/dist/webui/assets/index-CVWARq15.css +1 -0
- package/dist/webui/assets/index-Cpn2MjW0.js +186 -0
- package/dist/webui/assets/index-Cpn2MjW0.js.map +1 -0
- package/dist/webui/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-5FY3HYGU.js.map +0 -1
- package/dist/chunk-KD4OKHYF.js.map +0 -1
- package/dist/webui/assets/index-2DR_ysOm.js +0 -5348
- package/dist/webui/assets/index-2DR_ysOm.js.map +0 -1
- /package/dist/{chunk-G44JMYVI.js.map → chunk-427VWTG6.js.map} +0 -0
- /package/dist/{chunk-TUC6GU35.js.map → chunk-6FE2IKPF.js.map} +0 -0
- /package/dist/{chunk-B6KSSZUW.js.map → chunk-FUDWE6KW.js.map} +0 -0
- /package/dist/{chunk-JP5YAQPQ.js.map → chunk-MPWXWBSG.js.map} +0 -0
- /package/dist/{chunk-T5FOKQH2.js.map → chunk-VP25EEOH.js.map} +0 -0
- /package/dist/{chunk-NFCBG4OH.js.map → chunk-ZPAXZDWJ.js.map} +0 -0
- /package/dist/{cleanup-PT3VB3CG.js.map → cleanup-PE3BFDMV.js.map} +0 -0
- /package/dist/{dispatcher-2Q6LY57F.js.map → dispatcher-YCWDNYU3.js.map} +0 -0
- /package/dist/{embeddings-CLBTYK7N.js.map → embeddings-HDNAGCOS.js.map} +0 -0
- /package/dist/{ingest-ERAUAPMC.js.map → ingest-LZXTAMEZ.js.map} +0 -0
- /package/dist/{memory-value-2NDAQNMS.js.map → memory-value-L4VZNKK5.js.map} +0 -0
- /package/dist/{quality-WFWVU4FQ.js.map → quality-MEI6N7IW.js.map} +0 -0
- /package/dist/{retrieval-JOC63UXZ.js.map → retrieval-WDZXSBKB.js.map} +0 -0
- /package/dist/{tasks-ANFQXOYX.js.map → tasks-6EJMXJQV.js.map} +0 -0
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
qualityReasons,
|
|
14
14
|
revertCleanupRun,
|
|
15
15
|
runDeterministicCleanup
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-THX57BL4.js";
|
|
17
17
|
import "./chunk-FHEH6QDU.js";
|
|
18
18
|
import "./chunk-CW3XJDH7.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-FUDWE6KW.js";
|
|
20
|
+
import "./chunk-JKWK73GY.js";
|
|
21
21
|
import "./chunk-WZWXYBP6.js";
|
|
22
22
|
import "./chunk-EAFRT7RX.js";
|
|
23
23
|
import "./chunk-LUIYWYOT.js";
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
revertCleanupRun,
|
|
39
39
|
runDeterministicCleanup
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=cleanup-
|
|
41
|
+
//# sourceMappingURL=cleanup-PE3BFDMV.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-427VWTG6.js";
|
|
27
27
|
import {
|
|
28
28
|
RECALL_DB_USER_VERSION,
|
|
29
29
|
closeDb,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
summarizeValueRetrievalEval,
|
|
70
70
|
togglePolicy,
|
|
71
71
|
writeRepoContextArtifact
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ZXLAD4CS.js";
|
|
73
73
|
import {
|
|
74
74
|
autoResolveContradictions,
|
|
75
75
|
computeAllHealthScores,
|
|
@@ -87,8 +87,8 @@ import {
|
|
|
87
87
|
recordAudit,
|
|
88
88
|
resolveContradiction,
|
|
89
89
|
rollbackMemory
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-THX57BL4.js";
|
|
91
|
+
import "./chunk-MPWXWBSG.js";
|
|
92
92
|
import "./chunk-FHEH6QDU.js";
|
|
93
93
|
import "./chunk-CW3XJDH7.js";
|
|
94
94
|
import "./chunk-PUMEMKGF.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
listRepos,
|
|
103
103
|
queryMemories,
|
|
104
104
|
rejectMemory
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-FUDWE6KW.js";
|
|
106
106
|
import {
|
|
107
107
|
atomicWriteUtf8File,
|
|
108
108
|
bootstrapEmbeddings,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
searchMemoryFtsIndex,
|
|
118
118
|
semanticSearch,
|
|
119
119
|
verifyEmbeddings
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-JKWK73GY.js";
|
|
121
121
|
import {
|
|
122
122
|
deleteApiKey,
|
|
123
123
|
hasKeychainApiKey,
|
|
@@ -4481,7 +4481,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
4481
4481
|
});
|
|
4482
4482
|
let snapshot = null;
|
|
4483
4483
|
if (opts.snapshot) {
|
|
4484
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
4484
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-MEI6N7IW.js");
|
|
4485
4485
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
4486
4486
|
snapshot = recordQualitySnapshot(
|
|
4487
4487
|
db,
|
|
@@ -4973,7 +4973,7 @@ graphCmd.command("stats").description("Show entity/relation counts").action(asyn
|
|
|
4973
4973
|
});
|
|
4974
4974
|
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) => {
|
|
4975
4975
|
const db = initDb();
|
|
4976
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4976
|
+
const { ingestMemoryHeuristic } = await import("./ingest-LZXTAMEZ.js");
|
|
4977
4977
|
if (opts.rebuild) {
|
|
4978
4978
|
const { clearGraph } = await import("./store-5C7ZKKZF.js");
|
|
4979
4979
|
clearGraph(db);
|
|
@@ -5016,8 +5016,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
5016
5016
|
});
|
|
5017
5017
|
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) => {
|
|
5018
5018
|
const db = initDb();
|
|
5019
|
-
const { graphQuery } = await import("./retrieval-
|
|
5020
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
5019
|
+
const { graphQuery } = await import("./retrieval-WDZXSBKB.js");
|
|
5020
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-HDNAGCOS.js");
|
|
5021
5021
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
5022
5022
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
5023
5023
|
repo: opts.repo,
|
|
@@ -5033,7 +5033,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
5033
5033
|
});
|
|
5034
5034
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
5035
5035
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
5036
|
-
const { getTaskStats } = await import("./tasks-
|
|
5036
|
+
const { getTaskStats } = await import("./tasks-6EJMXJQV.js");
|
|
5037
5037
|
const db = initDb();
|
|
5038
5038
|
const stats = getTaskStats(db);
|
|
5039
5039
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -5059,7 +5059,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
5059
5059
|
}
|
|
5060
5060
|
});
|
|
5061
5061
|
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) => {
|
|
5062
|
-
const { listTasks } = await import("./tasks-
|
|
5062
|
+
const { listTasks } = await import("./tasks-6EJMXJQV.js");
|
|
5063
5063
|
const db = initDb();
|
|
5064
5064
|
const tasks = listTasks(db, {
|
|
5065
5065
|
status: opts.status,
|
|
@@ -5081,7 +5081,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
5081
5081
|
}
|
|
5082
5082
|
});
|
|
5083
5083
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
5084
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
5084
|
+
const { deleteTask, listTasks } = await import("./tasks-6EJMXJQV.js");
|
|
5085
5085
|
const db = initDb();
|
|
5086
5086
|
const all = listTasks(db, { limit: 1e4 });
|
|
5087
5087
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -5187,8 +5187,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
5187
5187
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
5188
5188
|
});
|
|
5189
5189
|
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) => {
|
|
5190
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
5191
|
-
const { listTasks } = await import("./tasks-
|
|
5190
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-YCWDNYU3.js");
|
|
5191
|
+
const { listTasks } = await import("./tasks-6EJMXJQV.js");
|
|
5192
5192
|
const db = initDb();
|
|
5193
5193
|
if (opts.preview) {
|
|
5194
5194
|
const pending = listTasks(db, {
|
|
@@ -5245,7 +5245,7 @@ ${p.prompt.max_output_tokens}
|
|
|
5245
5245
|
console.log(formatDispatchReport(report));
|
|
5246
5246
|
});
|
|
5247
5247
|
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) => {
|
|
5248
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
5248
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-PE3BFDMV.js");
|
|
5249
5249
|
const db = initDb();
|
|
5250
5250
|
if (opts.list) {
|
|
5251
5251
|
const runs = listCleanupRuns(db);
|
|
@@ -5299,7 +5299,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
5299
5299
|
recordQualitySnapshot,
|
|
5300
5300
|
listQualitySnapshots,
|
|
5301
5301
|
diffQualitySnapshots
|
|
5302
|
-
} = await import("./quality-
|
|
5302
|
+
} = await import("./quality-MEI6N7IW.js");
|
|
5303
5303
|
const db = initDb();
|
|
5304
5304
|
if (opts.history) {
|
|
5305
5305
|
const snaps = listQualitySnapshots(db);
|
|
@@ -5360,7 +5360,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5360
5360
|
const {
|
|
5361
5361
|
backfillMemoryValueEvents,
|
|
5362
5362
|
formatMemoryValueBackfillReport
|
|
5363
|
-
} = await import("./memory-value-
|
|
5363
|
+
} = await import("./memory-value-L4VZNKK5.js");
|
|
5364
5364
|
const db = initDb();
|
|
5365
5365
|
const report = backfillMemoryValueEvents(db, {
|
|
5366
5366
|
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-VP25EEOH.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-427VWTG6.js";
|
|
14
14
|
import {
|
|
15
15
|
createRecallMcpServer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZPAXZDWJ.js";
|
|
17
17
|
import {
|
|
18
18
|
graphQuery
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6FE2IKPF.js";
|
|
20
20
|
import {
|
|
21
21
|
bootstrapHistoryEmbeddings,
|
|
22
22
|
compileContext,
|
|
@@ -56,12 +56,13 @@ import {
|
|
|
56
56
|
updateHistorySnippet,
|
|
57
57
|
verifyHistoryEmbeddings,
|
|
58
58
|
writeRepoContextArtifact
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ZXLAD4CS.js";
|
|
60
60
|
import {
|
|
61
61
|
DEFAULT_ENQUEUE_CONFIG,
|
|
62
62
|
autoResolveContradictions,
|
|
63
63
|
computeAllHealthScores,
|
|
64
64
|
computeHealthScore,
|
|
65
|
+
countContradictionCandidates,
|
|
65
66
|
detectContradictions,
|
|
66
67
|
detectCorrections,
|
|
67
68
|
dispatchPendingTasks,
|
|
@@ -78,8 +79,8 @@ import {
|
|
|
78
79
|
resolveContradiction,
|
|
79
80
|
rollbackMemory,
|
|
80
81
|
runDeterministicCleanup
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-THX57BL4.js";
|
|
83
|
+
import "./chunk-MPWXWBSG.js";
|
|
83
84
|
import "./chunk-FHEH6QDU.js";
|
|
84
85
|
import "./chunk-CW3XJDH7.js";
|
|
85
86
|
import {
|
|
@@ -95,7 +96,7 @@ import {
|
|
|
95
96
|
rejectMemory,
|
|
96
97
|
safeIngestMemoryById,
|
|
97
98
|
statusFromConfidence
|
|
98
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-FUDWE6KW.js";
|
|
99
100
|
import {
|
|
100
101
|
bootstrapEmbeddings,
|
|
101
102
|
ensureEmbeddingProviderReady,
|
|
@@ -104,7 +105,7 @@ import {
|
|
|
104
105
|
queueMemoryEmbeddingSync,
|
|
105
106
|
rebuildEmbeddingIndexResponsive,
|
|
106
107
|
verifyEmbeddings
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-JKWK73GY.js";
|
|
108
109
|
import {
|
|
109
110
|
hasProviderConfigured,
|
|
110
111
|
init_keychain
|
|
@@ -1206,6 +1207,11 @@ var qualitySnapshotConfig = {
|
|
|
1206
1207
|
intervalSeconds: parseInt(process.env.RECALL_QUALITY_SNAPSHOT_INTERVAL_SECONDS ?? "604800", 10)
|
|
1207
1208
|
};
|
|
1208
1209
|
var qualitySnapshotRunning = false;
|
|
1210
|
+
var parsedBackgroundContradictionLimit = parseInt(
|
|
1211
|
+
process.env.RECALL_BACKGROUND_CONTRADICTION_LIMIT ?? "2000",
|
|
1212
|
+
10
|
|
1213
|
+
);
|
|
1214
|
+
var backgroundContradictionLimit = Number.isFinite(parsedBackgroundContradictionLimit) ? Math.max(0, parsedBackgroundContradictionLimit) : 2e3;
|
|
1209
1215
|
var parseBody = parseJsonBody;
|
|
1210
1216
|
function resolveRepo(body) {
|
|
1211
1217
|
return body.repo ?? inferRepoSlugFromPath(body.repo_path) ?? void 0;
|
|
@@ -1314,7 +1320,13 @@ function scheduleCleanupLoop() {
|
|
|
1314
1320
|
suppressions: c.command_suppressions
|
|
1315
1321
|
});
|
|
1316
1322
|
}
|
|
1317
|
-
const
|
|
1323
|
+
const contradictionCandidates = countContradictionCandidates(db);
|
|
1324
|
+
const newContradictions = contradictionCandidates <= backgroundContradictionLimit ? detectContradictions(db) : [];
|
|
1325
|
+
if (contradictionCandidates > backgroundContradictionLimit) {
|
|
1326
|
+
console.log(
|
|
1327
|
+
`[recall] background contradiction scan skipped: ${contradictionCandidates} candidates exceed limit ${backgroundContradictionLimit}`
|
|
1328
|
+
);
|
|
1329
|
+
}
|
|
1318
1330
|
if (newContradictions.length > 0) {
|
|
1319
1331
|
console.log(
|
|
1320
1332
|
`[recall] contradictions detected: ${newContradictions.length} new pair(s)`
|