@edihasaj/recall 1.0.11 → 1.1.0
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-3IF7HONQ.js → chunk-5FY3HYGU.js} +73 -18
- package/dist/chunk-5FY3HYGU.js.map +1 -0
- package/dist/{chunk-WD55NWCC.js → chunk-B6KSSZUW.js} +8 -1
- package/dist/chunk-B6KSSZUW.js.map +1 -0
- package/dist/{chunk-TYXRTMDK.js → chunk-JP5YAQPQ.js} +2 -2
- package/dist/{chunk-WVVH7AVR.js → chunk-NFCBG4OH.js} +6 -6
- package/dist/{chunk-6B5OQLIE.js → chunk-PX4FAXGQ.js} +5 -5
- package/dist/{chunk-LYTIYKXH.js → chunk-T5FOKQH2.js} +2 -2
- package/dist/{chunk-PGTHECO2.js → chunk-TUC6GU35.js} +2 -2
- package/dist/{chunk-D57YOEJH.js → chunk-UUCSHXES.js} +26 -18
- package/dist/{chunk-D57YOEJH.js.map → chunk-UUCSHXES.js.map} +1 -1
- package/dist/{cleanup-MDEYU6TC.js → cleanup-PT3VB3CG.js} +3 -3
- package/dist/cli.js +16 -16
- package/dist/daemon.js +9 -9
- package/dist/daemon.js.map +1 -1
- package/dist/{dispatcher-PNYGUIKO.js → dispatcher-2Q6LY57F.js} +3 -3
- package/dist/{ingest-NX53XWCU.js → ingest-ERAUAPMC.js} +2 -2
- package/dist/mcp.js +6 -6
- package/dist/{memory-value-LISBUR2V.js → memory-value-2NDAQNMS.js} +3 -3
- package/dist/{quality-TM5E6JCK.js → quality-WFWVU4FQ.js} +4 -4
- package/dist/{retrieval-63A775WR.js → retrieval-JOC63UXZ.js} +3 -3
- package/dist/{tasks-RR4E4JAG.js → tasks-ANFQXOYX.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3IF7HONQ.js.map +0 -1
- package/dist/chunk-WD55NWCC.js.map +0 -1
- /package/dist/{chunk-TYXRTMDK.js.map → chunk-JP5YAQPQ.js.map} +0 -0
- /package/dist/{chunk-WVVH7AVR.js.map → chunk-NFCBG4OH.js.map} +0 -0
- /package/dist/{chunk-6B5OQLIE.js.map → chunk-PX4FAXGQ.js.map} +0 -0
- /package/dist/{chunk-LYTIYKXH.js.map → chunk-T5FOKQH2.js.map} +0 -0
- /package/dist/{chunk-PGTHECO2.js.map → chunk-TUC6GU35.js.map} +0 -0
- /package/dist/{cleanup-MDEYU6TC.js.map → cleanup-PT3VB3CG.js.map} +0 -0
- /package/dist/{dispatcher-PNYGUIKO.js.map → dispatcher-2Q6LY57F.js.map} +0 -0
- /package/dist/{ingest-NX53XWCU.js.map → ingest-ERAUAPMC.js.map} +0 -0
- /package/dist/{memory-value-LISBUR2V.js.map → memory-value-2NDAQNMS.js.map} +0 -0
- /package/dist/{quality-TM5E6JCK.js.map → quality-WFWVU4FQ.js.map} +0 -0
- /package/dist/{retrieval-63A775WR.js.map → retrieval-JOC63UXZ.js.map} +0 -0
- /package/dist/{tasks-RR4E4JAG.js.map → tasks-ANFQXOYX.js.map} +0 -0
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
qualityReasons,
|
|
14
14
|
revertCleanupRun,
|
|
15
15
|
runDeterministicCleanup
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5FY3HYGU.js";
|
|
17
17
|
import "./chunk-FHEH6QDU.js";
|
|
18
18
|
import "./chunk-CW3XJDH7.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-B6KSSZUW.js";
|
|
20
20
|
import "./chunk-KD4OKHYF.js";
|
|
21
21
|
import "./chunk-WZWXYBP6.js";
|
|
22
22
|
import "./chunk-EAFRT7RX.js";
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
revertCleanupRun,
|
|
39
39
|
runDeterministicCleanup
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=cleanup-
|
|
41
|
+
//# sourceMappingURL=cleanup-PT3VB3CG.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-PX4FAXGQ.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-UUCSHXES.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-5FY3HYGU.js";
|
|
91
|
+
import "./chunk-JP5YAQPQ.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-B6KSSZUW.js";
|
|
106
106
|
import {
|
|
107
107
|
atomicWriteUtf8File,
|
|
108
108
|
bootstrapEmbeddings,
|
|
@@ -4396,7 +4396,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
4396
4396
|
});
|
|
4397
4397
|
let snapshot = null;
|
|
4398
4398
|
if (opts.snapshot) {
|
|
4399
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
4399
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-WFWVU4FQ.js");
|
|
4400
4400
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
4401
4401
|
snapshot = recordQualitySnapshot(
|
|
4402
4402
|
db,
|
|
@@ -4888,7 +4888,7 @@ graphCmd.command("stats").description("Show entity/relation counts").action(asyn
|
|
|
4888
4888
|
});
|
|
4889
4889
|
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) => {
|
|
4890
4890
|
const db = initDb();
|
|
4891
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4891
|
+
const { ingestMemoryHeuristic } = await import("./ingest-ERAUAPMC.js");
|
|
4892
4892
|
if (opts.rebuild) {
|
|
4893
4893
|
const { clearGraph } = await import("./store-5C7ZKKZF.js");
|
|
4894
4894
|
clearGraph(db);
|
|
@@ -4931,7 +4931,7 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
4931
4931
|
});
|
|
4932
4932
|
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) => {
|
|
4933
4933
|
const db = initDb();
|
|
4934
|
-
const { graphQuery } = await import("./retrieval-
|
|
4934
|
+
const { graphQuery } = await import("./retrieval-JOC63UXZ.js");
|
|
4935
4935
|
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-CLBTYK7N.js");
|
|
4936
4936
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
4937
4937
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
@@ -4948,7 +4948,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
4948
4948
|
});
|
|
4949
4949
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
4950
4950
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
4951
|
-
const { getTaskStats } = await import("./tasks-
|
|
4951
|
+
const { getTaskStats } = await import("./tasks-ANFQXOYX.js");
|
|
4952
4952
|
const db = initDb();
|
|
4953
4953
|
const stats = getTaskStats(db);
|
|
4954
4954
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -4974,7 +4974,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
4974
4974
|
}
|
|
4975
4975
|
});
|
|
4976
4976
|
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) => {
|
|
4977
|
-
const { listTasks } = await import("./tasks-
|
|
4977
|
+
const { listTasks } = await import("./tasks-ANFQXOYX.js");
|
|
4978
4978
|
const db = initDb();
|
|
4979
4979
|
const tasks = listTasks(db, {
|
|
4980
4980
|
status: opts.status,
|
|
@@ -4996,7 +4996,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
4996
4996
|
}
|
|
4997
4997
|
});
|
|
4998
4998
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
4999
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
4999
|
+
const { deleteTask, listTasks } = await import("./tasks-ANFQXOYX.js");
|
|
5000
5000
|
const db = initDb();
|
|
5001
5001
|
const all = listTasks(db, { limit: 1e4 });
|
|
5002
5002
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -5102,8 +5102,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
5102
5102
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
5103
5103
|
});
|
|
5104
5104
|
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) => {
|
|
5105
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
5106
|
-
const { listTasks } = await import("./tasks-
|
|
5105
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-2Q6LY57F.js");
|
|
5106
|
+
const { listTasks } = await import("./tasks-ANFQXOYX.js");
|
|
5107
5107
|
const db = initDb();
|
|
5108
5108
|
if (opts.preview) {
|
|
5109
5109
|
const pending = listTasks(db, {
|
|
@@ -5160,7 +5160,7 @@ ${p.prompt.max_output_tokens}
|
|
|
5160
5160
|
console.log(formatDispatchReport(report));
|
|
5161
5161
|
});
|
|
5162
5162
|
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) => {
|
|
5163
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
5163
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-PT3VB3CG.js");
|
|
5164
5164
|
const db = initDb();
|
|
5165
5165
|
if (opts.list) {
|
|
5166
5166
|
const runs = listCleanupRuns(db);
|
|
@@ -5214,7 +5214,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
5214
5214
|
recordQualitySnapshot,
|
|
5215
5215
|
listQualitySnapshots,
|
|
5216
5216
|
diffQualitySnapshots
|
|
5217
|
-
} = await import("./quality-
|
|
5217
|
+
} = await import("./quality-WFWVU4FQ.js");
|
|
5218
5218
|
const db = initDb();
|
|
5219
5219
|
if (opts.history) {
|
|
5220
5220
|
const snaps = listQualitySnapshots(db);
|
|
@@ -5275,7 +5275,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5275
5275
|
const {
|
|
5276
5276
|
backfillMemoryValueEvents,
|
|
5277
5277
|
formatMemoryValueBackfillReport
|
|
5278
|
-
} = await import("./memory-value-
|
|
5278
|
+
} = await import("./memory-value-2NDAQNMS.js");
|
|
5279
5279
|
const db = initDb();
|
|
5280
5280
|
const report = backfillMemoryValueEvents(db, {
|
|
5281
5281
|
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-T5FOKQH2.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-PX4FAXGQ.js";
|
|
14
14
|
import {
|
|
15
15
|
createRecallMcpServer
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NFCBG4OH.js";
|
|
17
17
|
import {
|
|
18
18
|
graphQuery
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TUC6GU35.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-UUCSHXES.js";
|
|
60
60
|
import {
|
|
61
61
|
DEFAULT_ENQUEUE_CONFIG,
|
|
62
62
|
autoResolveContradictions,
|
|
@@ -78,8 +78,8 @@ import {
|
|
|
78
78
|
resolveContradiction,
|
|
79
79
|
rollbackMemory,
|
|
80
80
|
runDeterministicCleanup
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-5FY3HYGU.js";
|
|
82
|
+
import "./chunk-JP5YAQPQ.js";
|
|
83
83
|
import "./chunk-FHEH6QDU.js";
|
|
84
84
|
import "./chunk-CW3XJDH7.js";
|
|
85
85
|
import {
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
rejectMemory,
|
|
96
96
|
safeIngestMemoryById,
|
|
97
97
|
statusFromConfidence
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-B6KSSZUW.js";
|
|
99
99
|
import {
|
|
100
100
|
bootstrapEmbeddings,
|
|
101
101
|
ensureEmbeddingProviderReady,
|
|
@@ -619,7 +619,7 @@ async function runMaintenanceCycle(db2, config = loadMaintenanceConfigFromEnv())
|
|
|
619
619
|
};
|
|
620
620
|
return {
|
|
621
621
|
prune_total: prune.total,
|
|
622
|
-
|
|
622
|
+
stale_archived: prune.stale_archived.length,
|
|
623
623
|
rejected_pruned: prune.rejected_pruned.length,
|
|
624
624
|
transient_pruned: prune.transient_pruned.length,
|
|
625
625
|
unhealthy_demoted: prune.unhealthy_demoted.length,
|