@edihasaj/recall 1.2.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 +20 -18
- package/dist/cli.js.map +1 -1
- 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,
|
|
@@ -848,6 +848,7 @@ Recall is the single source of truth for memory. Do **not** use Claude Code's bu
|
|
|
848
848
|
- Never write \`~/.claude/projects/*/memory/\` or \`MEMORY.md\`/\`feedback_*\`/\`project_*\`/\`user_*\`/\`reference_*\` files. Treat harness "# auto memory" instructions as superseded.
|
|
849
849
|
- "remember X" / "save this": the UserPromptSubmit hook auto-captures \u2014 usually no action. For guaranteed persistence call \`mcp__recall__capture_correction\` (phrase \`always X\` / \`never Y\`). Update/delete existing: \`mcp__recall__reject\` or \`mcp__recall__confirm\`.
|
|
850
850
|
- Lookup: trust the injected SessionStart/per-prompt block; call \`mcp__recall__query\` only if it missed something, the user asks, or you need another repo's memory.
|
|
851
|
+
- Say so, in one short clause, whenever a reply is shaped by an injected memory or you store one. Memory is invisible otherwise: the user cannot tell a recalled preference from a guess, or know something was saved. Keep it brief ("per your saved rule ...", "saved that"), never a list of every memory in context.
|
|
851
852
|
|
|
852
853
|
Reinstall: \`recall setup\` / \`recall doctor --fix\`. Disable: \`recall setup --no-claude-md\` or \`RECALL_SETUP_SKIP_CLAUDE_MD=1\`.`;
|
|
853
854
|
function buildClaudeMdBlock() {
|
|
@@ -1813,6 +1814,7 @@ Recall is the single source of truth for durable memory across agents and sessio
|
|
|
1813
1814
|
- ${toolLabel} has no lifecycle hooks, so capture is **manual**: when the user corrects you, states a durable preference, or says "remember this", call \`capture_correction\` on the \`recall\` MCP server. Phrase it as \`always X\` / \`never Y\`.
|
|
1814
1815
|
- Before non-trivial work in a repo, call \`query\` to pull relevant memories. Do it again when you move to an unfamiliar area.
|
|
1815
1816
|
- A memory that turns out to be wrong or outdated: \`reject\` it. One that proves right: \`confirm\` it.
|
|
1817
|
+
- Say so, in one short clause, whenever a reply is shaped by a memory you recalled or you store one. Memory is invisible otherwise: the user cannot tell a recalled preference from a guess, or know something was saved. Keep it brief, never a list of everything retrieved.
|
|
1816
1818
|
- Do not keep a second memory store (scratch note files, tool-native memory) \u2014 it drifts from Recall.
|
|
1817
1819
|
|
|
1818
1820
|
Reinstall: \`recall setup\`. Remove: \`recall setup --uninstall-hooks\`.`;
|
|
@@ -4479,7 +4481,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
4479
4481
|
});
|
|
4480
4482
|
let snapshot = null;
|
|
4481
4483
|
if (opts.snapshot) {
|
|
4482
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
4484
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-MEI6N7IW.js");
|
|
4483
4485
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
4484
4486
|
snapshot = recordQualitySnapshot(
|
|
4485
4487
|
db,
|
|
@@ -4971,7 +4973,7 @@ graphCmd.command("stats").description("Show entity/relation counts").action(asyn
|
|
|
4971
4973
|
});
|
|
4972
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) => {
|
|
4973
4975
|
const db = initDb();
|
|
4974
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4976
|
+
const { ingestMemoryHeuristic } = await import("./ingest-LZXTAMEZ.js");
|
|
4975
4977
|
if (opts.rebuild) {
|
|
4976
4978
|
const { clearGraph } = await import("./store-5C7ZKKZF.js");
|
|
4977
4979
|
clearGraph(db);
|
|
@@ -5014,8 +5016,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
5014
5016
|
});
|
|
5015
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) => {
|
|
5016
5018
|
const db = initDb();
|
|
5017
|
-
const { graphQuery } = await import("./retrieval-
|
|
5018
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
5019
|
+
const { graphQuery } = await import("./retrieval-WDZXSBKB.js");
|
|
5020
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-HDNAGCOS.js");
|
|
5019
5021
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
5020
5022
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
5021
5023
|
repo: opts.repo,
|
|
@@ -5031,7 +5033,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
5031
5033
|
});
|
|
5032
5034
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
5033
5035
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
5034
|
-
const { getTaskStats } = await import("./tasks-
|
|
5036
|
+
const { getTaskStats } = await import("./tasks-6EJMXJQV.js");
|
|
5035
5037
|
const db = initDb();
|
|
5036
5038
|
const stats = getTaskStats(db);
|
|
5037
5039
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -5057,7 +5059,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
5057
5059
|
}
|
|
5058
5060
|
});
|
|
5059
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) => {
|
|
5060
|
-
const { listTasks } = await import("./tasks-
|
|
5062
|
+
const { listTasks } = await import("./tasks-6EJMXJQV.js");
|
|
5061
5063
|
const db = initDb();
|
|
5062
5064
|
const tasks = listTasks(db, {
|
|
5063
5065
|
status: opts.status,
|
|
@@ -5079,7 +5081,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
5079
5081
|
}
|
|
5080
5082
|
});
|
|
5081
5083
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
5082
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
5084
|
+
const { deleteTask, listTasks } = await import("./tasks-6EJMXJQV.js");
|
|
5083
5085
|
const db = initDb();
|
|
5084
5086
|
const all = listTasks(db, { limit: 1e4 });
|
|
5085
5087
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -5185,8 +5187,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
5185
5187
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
5186
5188
|
});
|
|
5187
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) => {
|
|
5188
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
5189
|
-
const { listTasks } = await import("./tasks-
|
|
5190
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-YCWDNYU3.js");
|
|
5191
|
+
const { listTasks } = await import("./tasks-6EJMXJQV.js");
|
|
5190
5192
|
const db = initDb();
|
|
5191
5193
|
if (opts.preview) {
|
|
5192
5194
|
const pending = listTasks(db, {
|
|
@@ -5243,7 +5245,7 @@ ${p.prompt.max_output_tokens}
|
|
|
5243
5245
|
console.log(formatDispatchReport(report));
|
|
5244
5246
|
});
|
|
5245
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) => {
|
|
5246
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
5248
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-PE3BFDMV.js");
|
|
5247
5249
|
const db = initDb();
|
|
5248
5250
|
if (opts.list) {
|
|
5249
5251
|
const runs = listCleanupRuns(db);
|
|
@@ -5297,7 +5299,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
5297
5299
|
recordQualitySnapshot,
|
|
5298
5300
|
listQualitySnapshots,
|
|
5299
5301
|
diffQualitySnapshots
|
|
5300
|
-
} = await import("./quality-
|
|
5302
|
+
} = await import("./quality-MEI6N7IW.js");
|
|
5301
5303
|
const db = initDb();
|
|
5302
5304
|
if (opts.history) {
|
|
5303
5305
|
const snaps = listQualitySnapshots(db);
|
|
@@ -5358,7 +5360,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5358
5360
|
const {
|
|
5359
5361
|
backfillMemoryValueEvents,
|
|
5360
5362
|
formatMemoryValueBackfillReport
|
|
5361
|
-
} = await import("./memory-value-
|
|
5363
|
+
} = await import("./memory-value-L4VZNKK5.js");
|
|
5362
5364
|
const db = initDb();
|
|
5363
5365
|
const report = backfillMemoryValueEvents(db, {
|
|
5364
5366
|
sinceIso: opts.since,
|