@edihasaj/recall 2.0.15 → 2.0.17

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 (84) hide show
  1. package/README.md +22 -4
  2. package/dist/{chunk-UNHFXJ3J.js → chunk-22AJZ7UQ.js} +2 -2
  3. package/dist/{chunk-3XNM4OBY.js → chunk-2COJXGP4.js} +2 -2
  4. package/dist/{chunk-UPBAWEEX.js → chunk-CSBXI3ET.js} +41 -22
  5. package/dist/chunk-CSBXI3ET.js.map +1 -0
  6. package/dist/{chunk-QRRXTZ2D.js → chunk-EY6HIDG2.js} +13 -11
  7. package/dist/chunk-EY6HIDG2.js.map +1 -0
  8. package/dist/{chunk-IP3Y6IVH.js → chunk-FNIIUNW6.js} +2 -2
  9. package/dist/{chunk-5HLPQ4QO.js → chunk-GK7OWVRQ.js} +3 -3
  10. package/dist/{chunk-5VFPRH5H.js → chunk-KLERXJ47.js} +3 -3
  11. package/dist/{chunk-6VNCO5FJ.js → chunk-KVZN35JF.js} +7 -7
  12. package/dist/{chunk-6OSF6UMA.js → chunk-Q22B7YDQ.js} +5 -5
  13. package/dist/{chunk-OICFUTKH.js → chunk-Q7254IPO.js} +908 -43
  14. package/dist/chunk-Q7254IPO.js.map +1 -0
  15. package/dist/{chunk-EKIFJ47B.js → chunk-QQ6YHR7I.js} +11 -11
  16. package/dist/{chunk-S6P6VLHE.js → chunk-RAQT2OBR.js} +7 -7
  17. package/dist/{chunk-6IICQV52.js → chunk-UDLRBKC3.js} +3 -3
  18. package/dist/{chunk-HYJLVJF3.js → chunk-VUVFQJWZ.js} +2 -2
  19. package/dist/{chunk-J5ID5UG6.js → chunk-XRKUJ5B4.js} +2 -2
  20. package/dist/{chunk-KLHMJF5K.js → chunk-YIUBD27J.js} +14 -14
  21. package/dist/chunk-YIUBD27J.js.map +1 -0
  22. package/dist/{chunk-CNVC77BD.js → chunk-YIVOTIDF.js} +5 -5
  23. package/dist/{chunk-WGO53NXP.js → chunk-ZT67CYDS.js} +2 -2
  24. package/dist/chunk-ZT67CYDS.js.map +1 -0
  25. package/dist/{cleanup-KDX5OURB.js → cleanup-4TXIHTJT.js} +11 -11
  26. package/dist/cli.js +55 -36
  27. package/dist/cli.js.map +1 -1
  28. package/dist/{codex-trust-D3GWH24Q.js → codex-trust-2JIY66CP.js} +4 -4
  29. package/dist/daemon.js +1090 -169
  30. package/dist/daemon.js.map +1 -1
  31. package/dist/dispatcher-O6NGADCQ.js +22 -0
  32. package/dist/{embeddings-MYVWUUN3.js → embeddings-AAS7NKGB.js} +5 -5
  33. package/dist/ingest-DW3AG4M5.js +20 -0
  34. package/dist/{keychain-6A4D2OC7.js → keychain-SHRO7W6J.js} +3 -3
  35. package/dist/mcp.js +15 -15
  36. package/dist/{memory-value-GUTJ6GZZ.js → memory-value-R2C7ZSDF.js} +11 -11
  37. package/dist/{provenance-YTXKCFG6.js → provenance-I5GIAP7N.js} +9 -9
  38. package/dist/quality-32MAXPNJ.js +25 -0
  39. package/dist/retrieval-RKYWWNWC.js +15 -0
  40. package/dist/{store-N44KEHDD.js → store-X2B6MRBH.js} +4 -4
  41. package/dist/sync-server.js +2 -2
  42. package/dist/{tasks-WOTNJOMJ.js → tasks-H4NIS6QO.js} +11 -11
  43. package/dist/{usage-LJNNKBGV.js → usage-35HSDMNT.js} +4 -4
  44. package/package.json +6 -5
  45. package/vendor/recall-cloud-sync/PROVENANCE.md +27 -0
  46. package/vendor/recall-cloud-sync/managed-worker.mjs +48 -0
  47. package/vendor/recall-cloud-sync/private-token.mjs +95 -0
  48. package/vendor/recall-cloud-sync/recall-sync-local.mjs +406 -0
  49. package/vendor/recall-cloud-sync/recall-sync.mjs +1266 -0
  50. package/dist/chunk-KLHMJF5K.js.map +0 -1
  51. package/dist/chunk-OICFUTKH.js.map +0 -1
  52. package/dist/chunk-QRRXTZ2D.js.map +0 -1
  53. package/dist/chunk-UPBAWEEX.js.map +0 -1
  54. package/dist/chunk-WGO53NXP.js.map +0 -1
  55. package/dist/dispatcher-3WK6HO5O.js +0 -22
  56. package/dist/ingest-J5BURTVS.js +0 -20
  57. package/dist/quality-JFHCRXD5.js +0 -25
  58. package/dist/retrieval-4V3SVEI6.js +0 -15
  59. /package/dist/{chunk-UNHFXJ3J.js.map → chunk-22AJZ7UQ.js.map} +0 -0
  60. /package/dist/{chunk-3XNM4OBY.js.map → chunk-2COJXGP4.js.map} +0 -0
  61. /package/dist/{chunk-IP3Y6IVH.js.map → chunk-FNIIUNW6.js.map} +0 -0
  62. /package/dist/{chunk-5HLPQ4QO.js.map → chunk-GK7OWVRQ.js.map} +0 -0
  63. /package/dist/{chunk-5VFPRH5H.js.map → chunk-KLERXJ47.js.map} +0 -0
  64. /package/dist/{chunk-6VNCO5FJ.js.map → chunk-KVZN35JF.js.map} +0 -0
  65. /package/dist/{chunk-6OSF6UMA.js.map → chunk-Q22B7YDQ.js.map} +0 -0
  66. /package/dist/{chunk-EKIFJ47B.js.map → chunk-QQ6YHR7I.js.map} +0 -0
  67. /package/dist/{chunk-S6P6VLHE.js.map → chunk-RAQT2OBR.js.map} +0 -0
  68. /package/dist/{chunk-6IICQV52.js.map → chunk-UDLRBKC3.js.map} +0 -0
  69. /package/dist/{chunk-HYJLVJF3.js.map → chunk-VUVFQJWZ.js.map} +0 -0
  70. /package/dist/{chunk-J5ID5UG6.js.map → chunk-XRKUJ5B4.js.map} +0 -0
  71. /package/dist/{chunk-CNVC77BD.js.map → chunk-YIVOTIDF.js.map} +0 -0
  72. /package/dist/{cleanup-KDX5OURB.js.map → cleanup-4TXIHTJT.js.map} +0 -0
  73. /package/dist/{codex-trust-D3GWH24Q.js.map → codex-trust-2JIY66CP.js.map} +0 -0
  74. /package/dist/{dispatcher-3WK6HO5O.js.map → dispatcher-O6NGADCQ.js.map} +0 -0
  75. /package/dist/{embeddings-MYVWUUN3.js.map → embeddings-AAS7NKGB.js.map} +0 -0
  76. /package/dist/{ingest-J5BURTVS.js.map → ingest-DW3AG4M5.js.map} +0 -0
  77. /package/dist/{keychain-6A4D2OC7.js.map → keychain-SHRO7W6J.js.map} +0 -0
  78. /package/dist/{memory-value-GUTJ6GZZ.js.map → memory-value-R2C7ZSDF.js.map} +0 -0
  79. /package/dist/{provenance-YTXKCFG6.js.map → provenance-I5GIAP7N.js.map} +0 -0
  80. /package/dist/{quality-JFHCRXD5.js.map → quality-32MAXPNJ.js.map} +0 -0
  81. /package/dist/{retrieval-4V3SVEI6.js.map → retrieval-RKYWWNWC.js.map} +0 -0
  82. /package/dist/{store-N44KEHDD.js.map → store-X2B6MRBH.js.map} +0 -0
  83. /package/dist/{tasks-WOTNJOMJ.js.map → tasks-H4NIS6QO.js.map} +0 -0
  84. /package/dist/{usage-LJNNKBGV.js.map → usage-35HSDMNT.js.map} +0 -0
package/README.md CHANGED
@@ -44,7 +44,19 @@ The bundled web dashboard (open via the menu bar item *Open Dashboard in Browser
44
44
  - **Timeline** — filterable feed of every daemon event (compile, query, scan, correction, feedback, tool calls…). Click a row to expand the full request/result JSON; jump straight to the linked memories or pivot into the session view.
45
45
  - **Sessions** — every distinct session Recall has seen across MCP, hooks, and CLI traffic, with duration, event count, and type breakdown. Expand a session to see its events inline or hand it off to the Timeline filtered by `session_id`.
46
46
 
47
- ## Benchmarks — Recall vs agentmemory
47
+ ## Benchmarks
48
+
49
+ ### LongMemEval-S answer accuracy
50
+
51
+ Recall answered **474 of 500** LongMemEval-S questions correctly (**94.8%**) in its best experimental run.
52
+
53
+ ![LongMemEval-S accuracy: Recall 94.8%, Hindsight 94.6%, Supermemory 85.9%, Zep 71.2%, GPT-4o 60.2%](docs/longmemeval-chart.svg)
54
+
55
+ Best of two runs of the same setup (474 and 470), answered and judged with Qwen. Other scores are as published by [Hindsight](https://github.com/vectorize-io/hindsight) with different models, so this is not a head-to-head test. See the [results, everything we tried and how we measured it](benchmark/LONGMEMEVAL.md).
56
+
57
+ A separate Cloud Linux backend evidence evaluation also scored **474/500**, with Qwen answering and judging. See its [configuration and scope](benchmark/LONGMEMEVAL.md#cloud-backend-evaluation).
58
+
59
+ ### Retrieval vs agentmemory
48
60
 
49
61
  LongMemEval-S, N=500, including 30 unanswerable question IDs. Same dataset
50
62
  agentmemory publishes; these are retrieval metrics, not answer accuracy.
@@ -59,11 +71,17 @@ The MiniLM row isolates the system contribution (same embedding model agentmemor
59
71
 
60
72
  ## Install
61
73
 
74
+ Cloud is optional. Connecting a server-readable Cloud account enables syncing
75
+ and online retrieval, which sends agent question text to your configured Cloud.
76
+ Turn retrieval off independently in the Cloud tab or with `recall cloud-query off`.
77
+ Existing explicit off settings are preserved.
78
+
62
79
  ### Mac App Store edition
63
80
 
64
- The sandboxed store edition, **Recall: Coding Memory 2.0.7 (1)**, was submitted
65
- to Apple on 14 October 2026 and is **Waiting for Review**. It will be free and
66
- publish automatically after approval.
81
+ The sandboxed store edition, **Recall: Coding Memory**, has the same window as
82
+ the direct app. Version 2.0.7 was rejected on 15 October 2026 (Guidelines 4.3
83
+ and 4.2.6); 2.0.14 (1) was uploaded on 23 October 2026 and is not yet
84
+ submitted. It will be free and publish automatically after approval.
67
85
  It includes its own runtime and connects agents through local HTTP. Memory is
68
86
  stored in the app container, and repository access is granted through a folder
69
87
  picker. See [store release and connection details](docs/mac-app-store.md).
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RECALL_BUILD_INFO
3
- } from "./chunk-WGO53NXP.js";
3
+ } from "./chunk-ZT67CYDS.js";
4
4
 
5
5
  // src/observability/sentry.ts
6
6
  init_define_RECALL_BUILD_INFO();
@@ -32,4 +32,4 @@ initSentry();
32
32
  export {
33
33
  Sentry
34
34
  };
35
- //# sourceMappingURL=chunk-UNHFXJ3J.js.map
35
+ //# sourceMappingURL=chunk-22AJZ7UQ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __export,
3
3
  init_define_RECALL_BUILD_INFO
4
- } from "./chunk-WGO53NXP.js";
4
+ } from "./chunk-ZT67CYDS.js";
5
5
 
6
6
  // node_modules/drizzle-orm/sql/sql.js
7
7
  init_define_RECALL_BUILD_INFO();
@@ -2725,4 +2725,4 @@ export {
2725
2725
  maintenanceCleanupLog,
2726
2726
  schema_exports
2727
2727
  };
2728
- //# sourceMappingURL=chunk-3XNM4OBY.js.map
2728
+ //# sourceMappingURL=chunk-2COJXGP4.js.map
@@ -2,17 +2,17 @@ import {
2
2
  getProviderConfig,
3
3
  hasProviderConfigured,
4
4
  init_keychain
5
- } from "./chunk-IP3Y6IVH.js";
5
+ } from "./chunk-FNIIUNW6.js";
6
6
  import {
7
7
  eq,
8
8
  inArray,
9
9
  llmUsage,
10
10
  memories,
11
11
  memoryEmbeddings
12
- } from "./chunk-3XNM4OBY.js";
12
+ } from "./chunk-2COJXGP4.js";
13
13
  import {
14
14
  init_define_RECALL_BUILD_INFO
15
- } from "./chunk-WGO53NXP.js";
15
+ } from "./chunk-ZT67CYDS.js";
16
16
 
17
17
  // src/embeddings/embeddings.ts
18
18
  init_define_RECALL_BUILD_INFO();
@@ -395,7 +395,7 @@ var MaintenanceEvalMetrics = z.object({
395
395
  total_abandoned: z.number(),
396
396
  abandon_rate: z.number(),
397
397
  mean_completion_ms: z.number().nullable(),
398
- completed_by_kind: z.record(z.number()),
398
+ completed_by_kind: z.record(z.string(), z.number()),
399
399
  merge_precision: z.number().nullable(),
400
400
  merge_rollbacks: z.number()
401
401
  });
@@ -460,7 +460,7 @@ var PolicyRule = z.object({
460
460
  "max_active_per_repo",
461
461
  "require_evidence_count"
462
462
  ]),
463
- config: z.record(z.unknown()),
463
+ config: z.record(z.string(), z.unknown()),
464
464
  enabled: z.boolean(),
465
465
  created_at: z.string(),
466
466
  updated_at: z.string()
@@ -584,6 +584,20 @@ init_define_RECALL_BUILD_INFO();
584
584
  // src/embeddings/providers/all-minilm-l6-v2.ts
585
585
  init_define_RECALL_BUILD_INFO();
586
586
  import { pipeline } from "@huggingface/transformers";
587
+
588
+ // src/embeddings/transformers-cache.ts
589
+ init_define_RECALL_BUILD_INFO();
590
+ import { mkdirSync as mkdirSync2 } from "fs";
591
+ import { join as join2 } from "path";
592
+ import { env } from "@huggingface/transformers";
593
+ function configureTransformersCache() {
594
+ const cacheDir = join2(getEmbeddingCacheRoot(), "shared");
595
+ mkdirSync2(cacheDir, { recursive: true });
596
+ env.cacheDir = cacheDir;
597
+ return cacheDir;
598
+ }
599
+
600
+ // src/embeddings/providers/all-minilm-l6-v2.ts
587
601
  var MINILM_MODEL = "Xenova/all-MiniLM-L6-v2";
588
602
  var MINILM_DIMENSIONS = 384;
589
603
  var extractorPromise = null;
@@ -601,6 +615,7 @@ function getDimensions(config) {
601
615
  return dimensions;
602
616
  }
603
617
  async function getExtractor(config) {
618
+ configureTransformersCache();
604
619
  const cacheDir = ensureEmbeddingCachePath({
605
620
  provider: config.provider,
606
621
  model: getModel(config)
@@ -681,6 +696,7 @@ function getDimensions2(config) {
681
696
  return dimensions;
682
697
  }
683
698
  async function getExtractor2(config) {
699
+ configureTransformersCache();
684
700
  const cacheDir = ensureEmbeddingCachePath({
685
701
  provider: config.provider,
686
702
  model: getModel2(config)
@@ -769,6 +785,7 @@ function prefixTexts(texts, purpose) {
769
785
  return texts.map((text) => `${prefix}${text}`);
770
786
  }
771
787
  async function getExtractor3(config) {
788
+ configureTransformersCache();
772
789
  const cacheDir = ensureEmbeddingCachePath({
773
790
  provider: config.provider,
774
791
  model: getModel3(config)
@@ -858,6 +875,7 @@ function prefixTexts2(texts, purpose) {
858
875
  return texts.map((text) => `${prefix}${text}`);
859
876
  }
860
877
  async function getExtractor4(config) {
878
+ configureTransformersCache();
861
879
  const cacheDir = ensureEmbeddingCachePath({
862
880
  provider: config.provider,
863
881
  model: getModel4(config)
@@ -1477,12 +1495,12 @@ function expandTokenWithSynonyms(token, prefixDisabled, synonymsDisabled) {
1477
1495
  function buildFtsQuery(query, mode) {
1478
1496
  const tokens = query.match(/[A-Za-z0-9_.:/-]+/g)?.map((token) => token.replace(/"/g, '""')).filter(Boolean) ?? [];
1479
1497
  if (tokens.length === 0) return null;
1480
- const join4 = (mode ?? (process.env.RECALL_FTS_MODE === "or" ? "or" : "and")) === "or" ? " OR " : " AND ";
1498
+ const join5 = (mode ?? (process.env.RECALL_FTS_MODE === "or" ? "or" : "and")) === "or" ? " OR " : " AND ";
1481
1499
  const prefixDisabled = process.env.RECALL_FTS_PREFIX === "false";
1482
1500
  const synonymsDisabled = process.env.RECALL_SYNONYMS === "false";
1483
1501
  return tokens.map(
1484
1502
  (token) => expandTokenWithSynonyms(token, prefixDisabled, synonymsDisabled)
1485
- ).join(join4);
1503
+ ).join(join5);
1486
1504
  }
1487
1505
  function getFtsCreateSql(db, table) {
1488
1506
  const row = getSqlite2(db).prepare("select sql from sqlite_master where type = 'table' and name = ?").get(table);
@@ -1668,7 +1686,7 @@ function searchMemoryFtsIndex(db, query, options = {}) {
1668
1686
  // src/embeddings/hyde.ts
1669
1687
  init_define_RECALL_BUILD_INFO();
1670
1688
  import { createHash } from "crypto";
1671
- import { mkdirSync as mkdirSync2 } from "fs";
1689
+ import { mkdirSync as mkdirSync3 } from "fs";
1672
1690
  import { dirname as dirname2 } from "path";
1673
1691
 
1674
1692
  // src/llm/client.ts
@@ -1923,7 +1941,7 @@ import {
1923
1941
  writeFileSync
1924
1942
  } from "fs";
1925
1943
  import { randomUUID as randomUUID2 } from "crypto";
1926
- import { basename, dirname, join as join2 } from "path";
1944
+ import { basename, dirname, join as join3 } from "path";
1927
1945
  function readUtf8FileIfExists(path) {
1928
1946
  let fd;
1929
1947
  try {
@@ -1943,7 +1961,7 @@ function readUtf8FileIfExists(path) {
1943
1961
  }
1944
1962
  }
1945
1963
  function atomicWriteUtf8File(path, content, mode = 384) {
1946
- const tempPath = join2(
1964
+ const tempPath = join3(
1947
1965
  dirname(path),
1948
1966
  `.${basename(path)}.${process.pid}.${randomUUID2()}.tmp`
1949
1967
  );
@@ -2009,7 +2027,7 @@ function persistDiskCache() {
2009
2027
  const path = process.env.RECALL_HYDE_CACHE_PATH;
2010
2028
  if (!path) return;
2011
2029
  try {
2012
- mkdirSync2(dirname2(path), { recursive: true });
2030
+ mkdirSync3(dirname2(path), { recursive: true });
2013
2031
  atomicWriteUtf8File(path, JSON.stringify(diskCache, null, 2));
2014
2032
  } catch {
2015
2033
  }
@@ -2059,8 +2077,8 @@ async function generateHydeText(db, query) {
2059
2077
 
2060
2078
  // src/embeddings/reranker.ts
2061
2079
  init_define_RECALL_BUILD_INFO();
2062
- import { mkdirSync as mkdirSync3, readFileSync as readFileSync3 } from "fs";
2063
- import { isAbsolute, join as join3 } from "path";
2080
+ import { mkdirSync as mkdirSync4, readFileSync as readFileSync3 } from "fs";
2081
+ import { isAbsolute, join as join4 } from "path";
2064
2082
  import {
2065
2083
  AutoModelForSequenceClassification,
2066
2084
  AutoTokenizer
@@ -2123,10 +2141,11 @@ function maxLength() {
2123
2141
  return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_MAX_LENGTH;
2124
2142
  }
2125
2143
  async function loadReranker(model) {
2144
+ configureTransformersCache();
2126
2145
  const options = { dtype: "q8" };
2127
2146
  if (!isAbsolute(model)) {
2128
- const cacheDir = join3(getEmbeddingCacheRoot(), "rerank", ...model.split("/"));
2129
- mkdirSync3(cacheDir, { recursive: true });
2147
+ const cacheDir = join4(getEmbeddingCacheRoot(), "rerank", ...model.split("/"));
2148
+ mkdirSync4(cacheDir, { recursive: true });
2130
2149
  options.cache_dir = cacheDir;
2131
2150
  }
2132
2151
  const [tokenizer, classifier] = await Promise.all([
@@ -2136,7 +2155,7 @@ async function loadReranker(model) {
2136
2155
  let batchSize = BATCH_SIZE;
2137
2156
  if (isAbsolute(model)) {
2138
2157
  try {
2139
- const value = JSON.parse(readFileSync3(join3(model, "config.json"), "utf8")).recall_rerank_batch_size;
2158
+ const value = JSON.parse(readFileSync3(join4(model, "config.json"), "utf8")).recall_rerank_batch_size;
2140
2159
  if (typeof value === "number" && Number.isInteger(value) && value >= 1 && value <= 64) batchSize = value;
2141
2160
  } catch {
2142
2161
  }
@@ -2156,7 +2175,7 @@ function rerankCompanionRatio() {
2156
2175
  if (!configCompanionRatios.has(model)) {
2157
2176
  let ratio = 0;
2158
2177
  try {
2159
- const value = JSON.parse(readFileSync3(join3(model, "config.json"), "utf8")).recall_rerank_companion_ratio;
2178
+ const value = JSON.parse(readFileSync3(join4(model, "config.json"), "utf8")).recall_rerank_companion_ratio;
2160
2179
  if (typeof value === "number" && Number.isFinite(value) && value >= 0 && value <= 1) ratio = value;
2161
2180
  } catch {
2162
2181
  }
@@ -2173,7 +2192,7 @@ function configMinScore(model) {
2173
2192
  if (!configMinScores.has(model)) {
2174
2193
  let value = null;
2175
2194
  try {
2176
- value = parseMinScore(JSON.parse(readFileSync3(join3(model, "config.json"), "utf8")).recall_rerank_min_score);
2195
+ value = parseMinScore(JSON.parse(readFileSync3(join4(model, "config.json"), "utf8")).recall_rerank_min_score);
2177
2196
  } catch {
2178
2197
  value = null;
2179
2198
  }
@@ -2216,9 +2235,9 @@ function rerankFtsMode() {
2216
2235
  return process.env.RECALL_RERANK_FTS_MODE === "and" ? "and" : "or";
2217
2236
  }
2218
2237
  function rerankerTopK() {
2219
- const env = process.env.RECALL_RERANK_TOP_K;
2220
- if (!env) return DEFAULT_TOP_K;
2221
- const parsed = Number.parseInt(env, 10);
2238
+ const env2 = process.env.RECALL_RERANK_TOP_K;
2239
+ if (!env2) return DEFAULT_TOP_K;
2240
+ const parsed = Number.parseInt(env2, 10);
2222
2241
  return Number.isFinite(parsed) && parsed > 0 ? parsed : DEFAULT_TOP_K;
2223
2242
  }
2224
2243
  function sigmoid(logit) {
@@ -2816,4 +2835,4 @@ export {
2816
2835
  findSemanticDuplicates,
2817
2836
  findSimilarRejectedExemplar
2818
2837
  };
2819
- //# sourceMappingURL=chunk-UPBAWEEX.js.map
2838
+ //# sourceMappingURL=chunk-CSBXI3ET.js.map