@edihasaj/recall 1.3.0 → 1.4.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.
Files changed (52) hide show
  1. package/dist/{chunk-G44JMYVI.js → chunk-53GKSF42.js} +6 -6
  2. package/dist/{chunk-5FY3HYGU.js → chunk-65XK27KK.js} +127 -44
  3. package/dist/chunk-65XK27KK.js.map +1 -0
  4. package/dist/{chunk-NFCBG4OH.js → chunk-6QFOCUEJ.js} +10 -10
  5. package/dist/chunk-6QFOCUEJ.js.map +1 -0
  6. package/dist/{chunk-UUCSHXES.js → chunk-7Q5CBVUT.js} +20 -9
  7. package/dist/{chunk-UUCSHXES.js.map → chunk-7Q5CBVUT.js.map} +1 -1
  8. package/dist/{chunk-KD4OKHYF.js → chunk-JKWK73GY.js} +7 -2
  9. package/dist/chunk-JKWK73GY.js.map +1 -0
  10. package/dist/{chunk-B6KSSZUW.js → chunk-JO5LRCA2.js} +2 -6
  11. package/dist/{chunk-B6KSSZUW.js.map → chunk-JO5LRCA2.js.map} +1 -1
  12. package/dist/{chunk-JP5YAQPQ.js → chunk-JSTZKFZR.js} +3 -3
  13. package/dist/{chunk-T5FOKQH2.js → chunk-MMYLXICL.js} +2 -2
  14. package/dist/{chunk-TUC6GU35.js → chunk-UWERS646.js} +3 -3
  15. package/dist/{cleanup-PT3VB3CG.js → cleanup-RHNBHBNP.js} +4 -4
  16. package/dist/cli.js +24 -22
  17. package/dist/cli.js.map +1 -1
  18. package/dist/daemon.js +25 -11
  19. package/dist/daemon.js.map +1 -1
  20. package/dist/{dispatcher-2Q6LY57F.js → dispatcher-ON7LNX6X.js} +4 -4
  21. package/dist/{embeddings-CLBTYK7N.js → embeddings-HDNAGCOS.js} +2 -2
  22. package/dist/{ingest-ERAUAPMC.js → ingest-MHPMJPUA.js} +3 -3
  23. package/dist/mcp.js +7 -7
  24. package/dist/{memory-value-2NDAQNMS.js → memory-value-6JUQEYJZ.js} +4 -4
  25. package/dist/{quality-WFWVU4FQ.js → quality-HVTIOIXP.js} +5 -5
  26. package/dist/{retrieval-JOC63UXZ.js → retrieval-72EIHKRF.js} +4 -4
  27. package/dist/{tasks-ANFQXOYX.js → tasks-AJ62N26N.js} +4 -4
  28. package/dist/webui/assets/{index-DSV5JHmg.css → GraphPage-B5DZHykP.css} +1 -1
  29. package/dist/webui/assets/GraphPage-DJhwG-72.js +5165 -0
  30. package/dist/webui/assets/GraphPage-DJhwG-72.js.map +1 -0
  31. package/dist/webui/assets/index-CVWARq15.css +1 -0
  32. package/dist/webui/assets/index-Cpn2MjW0.js +186 -0
  33. package/dist/webui/assets/index-Cpn2MjW0.js.map +1 -0
  34. package/dist/webui/index.html +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-5FY3HYGU.js.map +0 -1
  37. package/dist/chunk-KD4OKHYF.js.map +0 -1
  38. package/dist/chunk-NFCBG4OH.js.map +0 -1
  39. package/dist/webui/assets/index-2DR_ysOm.js +0 -5348
  40. package/dist/webui/assets/index-2DR_ysOm.js.map +0 -1
  41. /package/dist/{chunk-G44JMYVI.js.map → chunk-53GKSF42.js.map} +0 -0
  42. /package/dist/{chunk-JP5YAQPQ.js.map → chunk-JSTZKFZR.js.map} +0 -0
  43. /package/dist/{chunk-T5FOKQH2.js.map → chunk-MMYLXICL.js.map} +0 -0
  44. /package/dist/{chunk-TUC6GU35.js.map → chunk-UWERS646.js.map} +0 -0
  45. /package/dist/{cleanup-PT3VB3CG.js.map → cleanup-RHNBHBNP.js.map} +0 -0
  46. /package/dist/{dispatcher-2Q6LY57F.js.map → dispatcher-ON7LNX6X.js.map} +0 -0
  47. /package/dist/{embeddings-CLBTYK7N.js.map → embeddings-HDNAGCOS.js.map} +0 -0
  48. /package/dist/{ingest-ERAUAPMC.js.map → ingest-MHPMJPUA.js.map} +0 -0
  49. /package/dist/{memory-value-2NDAQNMS.js.map → memory-value-6JUQEYJZ.js.map} +0 -0
  50. /package/dist/{quality-WFWVU4FQ.js.map → quality-HVTIOIXP.js.map} +0 -0
  51. /package/dist/{retrieval-JOC63UXZ.js.map → retrieval-72EIHKRF.js.map} +0 -0
  52. /package/dist/{tasks-ANFQXOYX.js.map → tasks-AJ62N26N.js.map} +0 -0
package/dist/daemon.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  computeQualityReport,
3
3
  listQualitySnapshots,
4
4
  recordQualitySnapshot
5
- } from "./chunk-T5FOKQH2.js";
5
+ } from "./chunk-MMYLXICL.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-G44JMYVI.js";
13
+ } from "./chunk-53GKSF42.js";
14
14
  import {
15
15
  createRecallMcpServer
16
- } from "./chunk-NFCBG4OH.js";
16
+ } from "./chunk-6QFOCUEJ.js";
17
17
  import {
18
18
  graphQuery
19
- } from "./chunk-TUC6GU35.js";
19
+ } from "./chunk-UWERS646.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-UUCSHXES.js";
59
+ } from "./chunk-7Q5CBVUT.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-5FY3HYGU.js";
82
- import "./chunk-JP5YAQPQ.js";
82
+ } from "./chunk-65XK27KK.js";
83
+ import "./chunk-JSTZKFZR.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-B6KSSZUW.js";
99
+ } from "./chunk-JO5LRCA2.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-KD4OKHYF.js";
108
+ } from "./chunk-JKWK73GY.js";
108
109
  import {
109
110
  hasProviderConfigured,
110
111
  init_keychain
@@ -670,6 +671,7 @@ function promoteRepetitionCandidates(db2) {
670
671
  let promoted = 0;
671
672
  for (const candidate of candidates) {
672
673
  if (!candidate.repo) continue;
674
+ if (candidate.scope === "session") continue;
673
675
  const profile = getRepoQualityProfile(db2, candidate.repo);
674
676
  if (candidate.repetition_count < profile.repeat_sessions_required) continue;
675
677
  const before = getMemory(db2, candidate.id);
@@ -1206,6 +1208,11 @@ var qualitySnapshotConfig = {
1206
1208
  intervalSeconds: parseInt(process.env.RECALL_QUALITY_SNAPSHOT_INTERVAL_SECONDS ?? "604800", 10)
1207
1209
  };
1208
1210
  var qualitySnapshotRunning = false;
1211
+ var parsedBackgroundContradictionLimit = parseInt(
1212
+ process.env.RECALL_BACKGROUND_CONTRADICTION_LIMIT ?? "2000",
1213
+ 10
1214
+ );
1215
+ var backgroundContradictionLimit = Number.isFinite(parsedBackgroundContradictionLimit) ? Math.max(0, parsedBackgroundContradictionLimit) : 2e3;
1209
1216
  var parseBody = parseJsonBody;
1210
1217
  function resolveRepo(body) {
1211
1218
  return body.repo ?? inferRepoSlugFromPath(body.repo_path) ?? void 0;
@@ -1314,7 +1321,13 @@ function scheduleCleanupLoop() {
1314
1321
  suppressions: c.command_suppressions
1315
1322
  });
1316
1323
  }
1317
- const newContradictions = detectContradictions(db);
1324
+ const contradictionCandidates = countContradictionCandidates(db);
1325
+ const newContradictions = contradictionCandidates <= backgroundContradictionLimit ? detectContradictions(db) : [];
1326
+ if (contradictionCandidates > backgroundContradictionLimit) {
1327
+ console.log(
1328
+ `[recall] background contradiction scan skipped: ${contradictionCandidates} candidates exceed limit ${backgroundContradictionLimit}`
1329
+ );
1330
+ }
1318
1331
  if (newContradictions.length > 0) {
1319
1332
  console.log(
1320
1333
  `[recall] contradictions detected: ${newContradictions.length} new pair(s)`
@@ -1689,7 +1702,8 @@ var server = createServer2(async (req, res) => {
1689
1702
  const { ids, pendingTaskId } = await processCorrection(db, body.text, {
1690
1703
  sessionId: body.session_id ?? "hook",
1691
1704
  repo,
1692
- path: body.path
1705
+ path: body.path,
1706
+ force_semantic_capture: true
1693
1707
  });
1694
1708
  createActivityEvent(db, {
1695
1709
  session_id: body.session_id ?? "hook",