@edihasaj/recall 1.4.0 → 1.4.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-7Q5CBVUT.js → chunk-4UHRAQFG.js} +34 -13
- package/dist/{chunk-7Q5CBVUT.js.map → chunk-4UHRAQFG.js.map} +1 -1
- package/dist/{chunk-53GKSF42.js → chunk-7CFX774S.js} +9 -9
- package/dist/{chunk-MMYLXICL.js → chunk-AFD43EOE.js} +2 -2
- package/dist/{chunk-UWERS646.js → chunk-LWY4Z626.js} +3 -3
- package/dist/{chunk-JO5LRCA2.js → chunk-NAYFAUSM.js} +149 -6
- package/dist/chunk-NAYFAUSM.js.map +1 -0
- package/dist/{chunk-6QFOCUEJ.js → chunk-T274LVWB.js} +104 -18
- package/dist/chunk-T274LVWB.js.map +1 -0
- package/dist/{chunk-65XK27KK.js → chunk-TA4WSV6A.js} +46 -155
- package/dist/chunk-TA4WSV6A.js.map +1 -0
- package/dist/{chunk-JKWK73GY.js → chunk-ZBQGZCFL.js} +3 -3
- package/dist/chunk-ZBQGZCFL.js.map +1 -0
- package/dist/{chunk-JSTZKFZR.js → chunk-ZXCKMEJA.js} +7 -7
- package/dist/{cleanup-RHNBHBNP.js → cleanup-RTL2UETA.js} +4 -4
- package/dist/cli.js +28 -28
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +17 -17
- package/dist/daemon.js.map +1 -1
- package/dist/{dispatcher-ON7LNX6X.js → dispatcher-PP5OKOLS.js} +4 -4
- package/dist/{embeddings-HDNAGCOS.js → embeddings-MILTROKW.js} +2 -2
- package/dist/{ingest-MHPMJPUA.js → ingest-HEXVIAL6.js} +4 -3
- package/dist/mcp.js +8 -8
- package/dist/{memory-value-6JUQEYJZ.js → memory-value-WXI2Q6TO.js} +4 -4
- package/dist/{quality-HVTIOIXP.js → quality-VKQUCL66.js} +5 -5
- package/dist/{retrieval-72EIHKRF.js → retrieval-4MEIABHC.js} +5 -4
- package/dist/{tasks-AJ62N26N.js → tasks-7SE6VHSQ.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-65XK27KK.js.map +0 -1
- package/dist/chunk-6QFOCUEJ.js.map +0 -1
- package/dist/chunk-JKWK73GY.js.map +0 -1
- package/dist/chunk-JO5LRCA2.js.map +0 -1
- /package/dist/{chunk-53GKSF42.js.map → chunk-7CFX774S.js.map} +0 -0
- /package/dist/{chunk-MMYLXICL.js.map → chunk-AFD43EOE.js.map} +0 -0
- /package/dist/{chunk-UWERS646.js.map → chunk-LWY4Z626.js.map} +0 -0
- /package/dist/{chunk-JSTZKFZR.js.map → chunk-ZXCKMEJA.js.map} +0 -0
- /package/dist/{cleanup-RHNBHBNP.js.map → cleanup-RTL2UETA.js.map} +0 -0
- /package/dist/{dispatcher-ON7LNX6X.js.map → dispatcher-PP5OKOLS.js.map} +0 -0
- /package/dist/{embeddings-HDNAGCOS.js.map → embeddings-MILTROKW.js.map} +0 -0
- /package/dist/{ingest-MHPMJPUA.js.map → ingest-HEXVIAL6.js.map} +0 -0
- /package/dist/{memory-value-6JUQEYJZ.js.map → memory-value-WXI2Q6TO.js.map} +0 -0
- /package/dist/{quality-HVTIOIXP.js.map → quality-VKQUCL66.js.map} +0 -0
- /package/dist/{retrieval-72EIHKRF.js.map → retrieval-4MEIABHC.js.map} +0 -0
- /package/dist/{tasks-AJ62N26N.js.map → tasks-7SE6VHSQ.js.map} +0 -0
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-7CFX774S.js";
|
|
27
27
|
import {
|
|
28
28
|
RECALL_DB_USER_VERSION,
|
|
29
29
|
closeDb,
|
|
@@ -69,40 +69,40 @@ import {
|
|
|
69
69
|
summarizeValueRetrievalEval,
|
|
70
70
|
togglePolicy,
|
|
71
71
|
writeRepoContextArtifact
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-4UHRAQFG.js";
|
|
73
73
|
import {
|
|
74
74
|
autoResolveContradictions,
|
|
75
75
|
computeAllHealthScores,
|
|
76
76
|
computeHealthScore,
|
|
77
77
|
detectContradictions,
|
|
78
|
-
formatAuditTrail,
|
|
79
78
|
formatHealthReport,
|
|
80
|
-
getAuditTrail,
|
|
81
|
-
getRecentAudit,
|
|
82
79
|
getRepoQualityProfile,
|
|
83
80
|
inferScope,
|
|
84
81
|
listContradictions,
|
|
85
82
|
processCorrection,
|
|
86
83
|
processReviewFeedback,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} from "./chunk-65XK27KK.js";
|
|
91
|
-
import "./chunk-JSTZKFZR.js";
|
|
84
|
+
resolveContradiction
|
|
85
|
+
} from "./chunk-TA4WSV6A.js";
|
|
86
|
+
import "./chunk-ZXCKMEJA.js";
|
|
92
87
|
import "./chunk-FHEH6QDU.js";
|
|
93
|
-
import "./chunk-CW3XJDH7.js";
|
|
94
88
|
import "./chunk-PUMEMKGF.js";
|
|
95
89
|
import {
|
|
96
90
|
confirmMemory,
|
|
97
91
|
createMemory,
|
|
98
92
|
defineOwn,
|
|
99
93
|
deleteOwn,
|
|
94
|
+
formatAuditTrail,
|
|
95
|
+
getAuditTrail,
|
|
100
96
|
getMemory,
|
|
97
|
+
getRecentAudit,
|
|
101
98
|
listMemories,
|
|
102
99
|
listRepos,
|
|
103
100
|
queryMemories,
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
recordAudit,
|
|
102
|
+
rejectMemory,
|
|
103
|
+
rollbackMemory
|
|
104
|
+
} from "./chunk-NAYFAUSM.js";
|
|
105
|
+
import "./chunk-CW3XJDH7.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-ZBQGZCFL.js";
|
|
121
121
|
import {
|
|
122
122
|
deleteApiKey,
|
|
123
123
|
hasKeychainApiKey,
|
|
@@ -242,7 +242,7 @@ function makeRecallBackend(db) {
|
|
|
242
242
|
await flushEmbeddingJobs();
|
|
243
243
|
return id;
|
|
244
244
|
},
|
|
245
|
-
tombstone: (id) => rejectMemory(db, id),
|
|
245
|
+
tombstone: (id) => rejectMemory(db, id, "ump"),
|
|
246
246
|
capture: async ({ text, repo, path }) => {
|
|
247
247
|
const res = await processCorrection(db, text, {
|
|
248
248
|
// Unique per server process: a constant "ump" session id made
|
|
@@ -4195,7 +4195,7 @@ program.command("reject").description("Reject a memory (never inject again)").ar
|
|
|
4195
4195
|
process.exit(1);
|
|
4196
4196
|
}
|
|
4197
4197
|
const before = JSON.stringify(mem);
|
|
4198
|
-
rejectMemory(db, mem.id);
|
|
4198
|
+
rejectMemory(db, mem.id, "cli");
|
|
4199
4199
|
const after = getMemory(db, mem.id);
|
|
4200
4200
|
recordAudit(
|
|
4201
4201
|
db,
|
|
@@ -4483,7 +4483,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
4483
4483
|
});
|
|
4484
4484
|
let snapshot = null;
|
|
4485
4485
|
if (opts.snapshot) {
|
|
4486
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
4486
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-VKQUCL66.js");
|
|
4487
4487
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
4488
4488
|
snapshot = recordQualitySnapshot(
|
|
4489
4489
|
db,
|
|
@@ -4975,7 +4975,7 @@ graphCmd.command("stats").description("Show entity/relation counts").action(asyn
|
|
|
4975
4975
|
});
|
|
4976
4976
|
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) => {
|
|
4977
4977
|
const db = initDb();
|
|
4978
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4978
|
+
const { ingestMemoryHeuristic } = await import("./ingest-HEXVIAL6.js");
|
|
4979
4979
|
if (opts.rebuild) {
|
|
4980
4980
|
const { clearGraph } = await import("./store-5C7ZKKZF.js");
|
|
4981
4981
|
clearGraph(db);
|
|
@@ -5018,8 +5018,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
5018
5018
|
});
|
|
5019
5019
|
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) => {
|
|
5020
5020
|
const db = initDb();
|
|
5021
|
-
const { graphQuery } = await import("./retrieval-
|
|
5022
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
5021
|
+
const { graphQuery } = await import("./retrieval-4MEIABHC.js");
|
|
5022
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-MILTROKW.js");
|
|
5023
5023
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
5024
5024
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
5025
5025
|
repo: opts.repo,
|
|
@@ -5035,7 +5035,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
5035
5035
|
});
|
|
5036
5036
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
5037
5037
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
5038
|
-
const { getTaskStats } = await import("./tasks-
|
|
5038
|
+
const { getTaskStats } = await import("./tasks-7SE6VHSQ.js");
|
|
5039
5039
|
const db = initDb();
|
|
5040
5040
|
const stats = getTaskStats(db);
|
|
5041
5041
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -5061,7 +5061,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
5063
|
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) => {
|
|
5064
|
-
const { listTasks } = await import("./tasks-
|
|
5064
|
+
const { listTasks } = await import("./tasks-7SE6VHSQ.js");
|
|
5065
5065
|
const db = initDb();
|
|
5066
5066
|
const tasks = listTasks(db, {
|
|
5067
5067
|
status: opts.status,
|
|
@@ -5083,7 +5083,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
5083
5083
|
}
|
|
5084
5084
|
});
|
|
5085
5085
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
5086
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
5086
|
+
const { deleteTask, listTasks } = await import("./tasks-7SE6VHSQ.js");
|
|
5087
5087
|
const db = initDb();
|
|
5088
5088
|
const all = listTasks(db, { limit: 1e4 });
|
|
5089
5089
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -5189,8 +5189,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
5189
5189
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
5190
5190
|
});
|
|
5191
5191
|
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) => {
|
|
5192
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
5193
|
-
const { listTasks } = await import("./tasks-
|
|
5192
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-PP5OKOLS.js");
|
|
5193
|
+
const { listTasks } = await import("./tasks-7SE6VHSQ.js");
|
|
5194
5194
|
const db = initDb();
|
|
5195
5195
|
if (opts.preview) {
|
|
5196
5196
|
const pending = listTasks(db, {
|
|
@@ -5247,7 +5247,7 @@ ${p.prompt.max_output_tokens}
|
|
|
5247
5247
|
console.log(formatDispatchReport(report));
|
|
5248
5248
|
});
|
|
5249
5249
|
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) => {
|
|
5250
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
5250
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-RTL2UETA.js");
|
|
5251
5251
|
const db = initDb();
|
|
5252
5252
|
if (opts.list) {
|
|
5253
5253
|
const runs = listCleanupRuns(db);
|
|
@@ -5301,7 +5301,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
5301
5301
|
recordQualitySnapshot,
|
|
5302
5302
|
listQualitySnapshots,
|
|
5303
5303
|
diffQualitySnapshots
|
|
5304
|
-
} = await import("./quality-
|
|
5304
|
+
} = await import("./quality-VKQUCL66.js");
|
|
5305
5305
|
const db = initDb();
|
|
5306
5306
|
if (opts.history) {
|
|
5307
5307
|
const snaps = listQualitySnapshots(db);
|
|
@@ -5362,7 +5362,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5362
5362
|
const {
|
|
5363
5363
|
backfillMemoryValueEvents,
|
|
5364
5364
|
formatMemoryValueBackfillReport
|
|
5365
|
-
} = await import("./memory-value-
|
|
5365
|
+
} = await import("./memory-value-WXI2Q6TO.js");
|
|
5366
5366
|
const db = initDb();
|
|
5367
5367
|
const report = backfillMemoryValueEvents(db, {
|
|
5368
5368
|
sinceIso: opts.since,
|