@edihasaj/recall 1.0.8 → 1.0.10
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-O52XDFLI.js → chunk-KD4OKHYF.js} +101 -21
- package/dist/chunk-KD4OKHYF.js.map +1 -0
- package/dist/{chunk-LKFQ4W3R.js → chunk-LYTIYKXH.js} +2 -2
- package/dist/{chunk-3AXRO4H4.js → chunk-PGTHECO2.js} +3 -3
- package/dist/{chunk-ICF4ZPAO.js → chunk-QAFWA4U6.js} +6 -6
- package/dist/{chunk-63DJ3SBO.js → chunk-SGL4ZDGZ.js} +7 -7
- package/dist/{chunk-B2FPSWII.js → chunk-TGWUGUVH.js} +3 -3
- package/dist/{chunk-HKODGJ25.js → chunk-TYXRTMDK.js} +3 -3
- package/dist/{chunk-4XP6POJG.js → chunk-WD55NWCC.js} +2 -2
- package/dist/{chunk-6RJ3RYKH.js → chunk-YC64D4QN.js} +44 -22
- package/dist/{chunk-6RJ3RYKH.js.map → chunk-YC64D4QN.js.map} +1 -1
- package/dist/{cleanup-FT4VSAVQ.js → cleanup-OJBSLUMO.js} +4 -4
- package/dist/cli.js +29 -20
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +11 -11
- package/dist/daemon.js.map +1 -1
- package/dist/{dispatcher-EPRCW6DH.js → dispatcher-IIFTDIOW.js} +4 -4
- package/dist/{embeddings-ZBTV5M2O.js → embeddings-CLBTYK7N.js} +4 -2
- package/dist/{ingest-5N3L72OM.js → ingest-NX53XWCU.js} +3 -3
- package/dist/mcp.js +7 -7
- package/dist/{memory-value-CHMQBOGG.js → memory-value-LISBUR2V.js} +4 -4
- package/dist/{quality-N6LN7DNU.js → quality-TM5E6JCK.js} +5 -5
- package/dist/{retrieval-G5WXWBOW.js → retrieval-63A775WR.js} +4 -4
- package/dist/{tasks-32Y37M27.js → tasks-UEROYP6D.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-O52XDFLI.js.map +0 -1
- /package/dist/{chunk-LKFQ4W3R.js.map → chunk-LYTIYKXH.js.map} +0 -0
- /package/dist/{chunk-3AXRO4H4.js.map → chunk-PGTHECO2.js.map} +0 -0
- /package/dist/{chunk-ICF4ZPAO.js.map → chunk-QAFWA4U6.js.map} +0 -0
- /package/dist/{chunk-63DJ3SBO.js.map → chunk-SGL4ZDGZ.js.map} +0 -0
- /package/dist/{chunk-B2FPSWII.js.map → chunk-TGWUGUVH.js.map} +0 -0
- /package/dist/{chunk-HKODGJ25.js.map → chunk-TYXRTMDK.js.map} +0 -0
- /package/dist/{chunk-4XP6POJG.js.map → chunk-WD55NWCC.js.map} +0 -0
- /package/dist/{cleanup-FT4VSAVQ.js.map → cleanup-OJBSLUMO.js.map} +0 -0
- /package/dist/{dispatcher-EPRCW6DH.js.map → dispatcher-IIFTDIOW.js.map} +0 -0
- /package/dist/{embeddings-ZBTV5M2O.js.map → embeddings-CLBTYK7N.js.map} +0 -0
- /package/dist/{ingest-5N3L72OM.js.map → ingest-NX53XWCU.js.map} +0 -0
- /package/dist/{memory-value-CHMQBOGG.js.map → memory-value-LISBUR2V.js.map} +0 -0
- /package/dist/{quality-N6LN7DNU.js.map → quality-TM5E6JCK.js.map} +0 -0
- /package/dist/{retrieval-G5WXWBOW.js.map → retrieval-63A775WR.js.map} +0 -0
- /package/dist/{tasks-32Y37M27.js.map → tasks-UEROYP6D.js.map} +0 -0
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
qualityReasons,
|
|
13
13
|
revertCleanupRun,
|
|
14
14
|
runDeterministicCleanup
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TGWUGUVH.js";
|
|
16
16
|
import "./chunk-FHEH6QDU.js";
|
|
17
17
|
import "./chunk-CW3XJDH7.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-WD55NWCC.js";
|
|
19
|
+
import "./chunk-KD4OKHYF.js";
|
|
20
20
|
import "./chunk-WZWXYBP6.js";
|
|
21
21
|
import "./chunk-EAFRT7RX.js";
|
|
22
22
|
import "./chunk-LUIYWYOT.js";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
revertCleanupRun,
|
|
37
37
|
runDeterministicCleanup
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=cleanup-
|
|
39
|
+
//# sourceMappingURL=cleanup-OJBSLUMO.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-QAFWA4U6.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-YC64D4QN.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-TGWUGUVH.js";
|
|
91
|
+
import "./chunk-TYXRTMDK.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-WD55NWCC.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-KD4OKHYF.js";
|
|
121
121
|
import {
|
|
122
122
|
deleteApiKey,
|
|
123
123
|
hasKeychainApiKey,
|
|
@@ -2572,10 +2572,19 @@ function installSystemdUnit(opts = {}) {
|
|
|
2572
2572
|
mkdirSync6(cfg.logDir, { recursive: true });
|
|
2573
2573
|
writeFileSync6(cfg.unitPath, renderUnit(cfg), { mode: 384 });
|
|
2574
2574
|
chmodSync2(cfg.unitPath, 384);
|
|
2575
|
-
|
|
2576
|
-
systemctl(["--user", "enable", "--now", `${cfg.label}.service`]);
|
|
2575
|
+
for (const args of systemdInstallCommands(cfg.label)) systemctl(args);
|
|
2577
2576
|
return getSystemdStatus(cfg.label);
|
|
2578
2577
|
}
|
|
2578
|
+
function systemdInstallCommands(label = DEFAULT_LABEL2) {
|
|
2579
|
+
const service = `${label}.service`;
|
|
2580
|
+
return [
|
|
2581
|
+
["--user", "daemon-reload"],
|
|
2582
|
+
["--user", "enable", service],
|
|
2583
|
+
// `enable --now` leaves an already-active process untouched. Restart so a
|
|
2584
|
+
// package upgrade actually runs the newly installed daemon code.
|
|
2585
|
+
["--user", "restart", service]
|
|
2586
|
+
];
|
|
2587
|
+
}
|
|
2579
2588
|
function uninstallSystemdUnit(label = DEFAULT_LABEL2) {
|
|
2580
2589
|
assertLinux();
|
|
2581
2590
|
const cfg = resolveConfig2({ label });
|
|
@@ -4262,7 +4271,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
4262
4271
|
});
|
|
4263
4272
|
let snapshot = null;
|
|
4264
4273
|
if (opts.snapshot) {
|
|
4265
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
4274
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-TM5E6JCK.js");
|
|
4266
4275
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
4267
4276
|
snapshot = recordQualitySnapshot(
|
|
4268
4277
|
db,
|
|
@@ -4754,7 +4763,7 @@ graphCmd.command("stats").description("Show entity/relation counts").action(asyn
|
|
|
4754
4763
|
});
|
|
4755
4764
|
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) => {
|
|
4756
4765
|
const db = initDb();
|
|
4757
|
-
const { ingestMemoryHeuristic } = await import("./ingest-
|
|
4766
|
+
const { ingestMemoryHeuristic } = await import("./ingest-NX53XWCU.js");
|
|
4758
4767
|
if (opts.rebuild) {
|
|
4759
4768
|
const { clearGraph } = await import("./store-5C7ZKKZF.js");
|
|
4760
4769
|
clearGraph(db);
|
|
@@ -4797,8 +4806,8 @@ graphCmd.command("entities").description("List entities").option("--repo <repo>"
|
|
|
4797
4806
|
});
|
|
4798
4807
|
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) => {
|
|
4799
4808
|
const db = initDb();
|
|
4800
|
-
const { graphQuery } = await import("./retrieval-
|
|
4801
|
-
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-
|
|
4809
|
+
const { graphQuery } = await import("./retrieval-63A775WR.js");
|
|
4810
|
+
const { loadEmbeddingConfigFromEnv: loadEmbeddingConfigFromEnv2 } = await import("./embeddings-CLBTYK7N.js");
|
|
4802
4811
|
const embeddingConfig = loadEmbeddingConfigFromEnv2();
|
|
4803
4812
|
const result = await graphQuery(db, queryTokens.join(" "), embeddingConfig, {
|
|
4804
4813
|
repo: opts.repo,
|
|
@@ -4814,7 +4823,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
|
|
|
4814
4823
|
});
|
|
4815
4824
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
4816
4825
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
4817
|
-
const { getTaskStats } = await import("./tasks-
|
|
4826
|
+
const { getTaskStats } = await import("./tasks-UEROYP6D.js");
|
|
4818
4827
|
const db = initDb();
|
|
4819
4828
|
const stats = getTaskStats(db);
|
|
4820
4829
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -4840,7 +4849,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
4840
4849
|
}
|
|
4841
4850
|
});
|
|
4842
4851
|
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) => {
|
|
4843
|
-
const { listTasks } = await import("./tasks-
|
|
4852
|
+
const { listTasks } = await import("./tasks-UEROYP6D.js");
|
|
4844
4853
|
const db = initDb();
|
|
4845
4854
|
const tasks = listTasks(db, {
|
|
4846
4855
|
status: opts.status,
|
|
@@ -4862,7 +4871,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
4862
4871
|
}
|
|
4863
4872
|
});
|
|
4864
4873
|
maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
|
|
4865
|
-
const { deleteTask, listTasks } = await import("./tasks-
|
|
4874
|
+
const { deleteTask, listTasks } = await import("./tasks-UEROYP6D.js");
|
|
4866
4875
|
const db = initDb();
|
|
4867
4876
|
const all = listTasks(db, { limit: 1e4 });
|
|
4868
4877
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -4968,8 +4977,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
4968
4977
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
4969
4978
|
});
|
|
4970
4979
|
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) => {
|
|
4971
|
-
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-
|
|
4972
|
-
const { listTasks } = await import("./tasks-
|
|
4980
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-IIFTDIOW.js");
|
|
4981
|
+
const { listTasks } = await import("./tasks-UEROYP6D.js");
|
|
4973
4982
|
const db = initDb();
|
|
4974
4983
|
if (opts.preview) {
|
|
4975
4984
|
const pending = listTasks(db, {
|
|
@@ -5026,7 +5035,7 @@ ${p.prompt.max_output_tokens}
|
|
|
5026
5035
|
console.log(formatDispatchReport(report));
|
|
5027
5036
|
});
|
|
5028
5037
|
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) => {
|
|
5029
|
-
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-
|
|
5038
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-OJBSLUMO.js");
|
|
5030
5039
|
const db = initDb();
|
|
5031
5040
|
if (opts.list) {
|
|
5032
5041
|
const runs = listCleanupRuns(db);
|
|
@@ -5080,7 +5089,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
5080
5089
|
recordQualitySnapshot,
|
|
5081
5090
|
listQualitySnapshots,
|
|
5082
5091
|
diffQualitySnapshots
|
|
5083
|
-
} = await import("./quality-
|
|
5092
|
+
} = await import("./quality-TM5E6JCK.js");
|
|
5084
5093
|
const db = initDb();
|
|
5085
5094
|
if (opts.history) {
|
|
5086
5095
|
const snaps = listQualitySnapshots(db);
|
|
@@ -5141,7 +5150,7 @@ maintenanceCmd.command("value-backfill").description("Backfill memory value even
|
|
|
5141
5150
|
const {
|
|
5142
5151
|
backfillMemoryValueEvents,
|
|
5143
5152
|
formatMemoryValueBackfillReport
|
|
5144
|
-
} = await import("./memory-value-
|
|
5153
|
+
} = await import("./memory-value-LISBUR2V.js");
|
|
5145
5154
|
const db = initDb();
|
|
5146
5155
|
const report = backfillMemoryValueEvents(db, {
|
|
5147
5156
|
sinceIso: opts.since,
|