@edihasaj/recall 0.8.19 → 0.9.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 (71) hide show
  1. package/README.md +13 -0
  2. package/dist/{chunk-6I5U6KS3.js → chunk-5K2LTXNW.js} +17 -15
  3. package/dist/chunk-5K2LTXNW.js.map +1 -0
  4. package/dist/{chunk-O4KCMCJG.js → chunk-A27AP4NR.js} +21 -6
  5. package/dist/chunk-A27AP4NR.js.map +1 -0
  6. package/dist/{chunk-VT5VAEHY.js → chunk-CW3XJDH7.js} +2 -2
  7. package/dist/{chunk-K6AFGQWR.js → chunk-DRAOZ2RN.js} +4 -4
  8. package/dist/{chunk-M7OKBKKU.js → chunk-EAFRT7RX.js} +2 -2
  9. package/dist/{chunk-ZBIJDXA7.js → chunk-FPZ3GBXP.js} +5 -5
  10. package/dist/{chunk-4CV4JOE5.js → chunk-JYWURG5T.js} +8 -3
  11. package/dist/{chunk-55KCGAOX.js → chunk-LUIYWYOT.js} +2 -2
  12. package/dist/{chunk-S7FJMV5O.js → chunk-OADI5XD2.js} +8 -8
  13. package/dist/{chunk-KG7YFARS.js → chunk-PQJRYAVG.js} +92 -14
  14. package/dist/chunk-PQJRYAVG.js.map +1 -0
  15. package/dist/{chunk-QKN6IWJ3.js → chunk-SISLEKTR.js} +54 -68
  16. package/dist/chunk-SISLEKTR.js.map +1 -0
  17. package/dist/{chunk-DNFKAHS6.js → chunk-VYZSP23L.js} +95 -12
  18. package/dist/chunk-VYZSP23L.js.map +1 -0
  19. package/dist/{chunk-3Z6XZX7N.js → chunk-XRWHIL74.js} +76 -20
  20. package/dist/chunk-XRWHIL74.js.map +1 -0
  21. package/dist/{chunk-NAYZL5XI.js → chunk-YDSCPOIJ.js} +4 -4
  22. package/dist/{cleanup-HWQCVPY4.js → cleanup-3JDS7MHX.js} +9 -9
  23. package/dist/cli.js +950 -161
  24. package/dist/cli.js.map +1 -1
  25. package/dist/daemon.js +112 -56
  26. package/dist/daemon.js.map +1 -1
  27. package/dist/dispatcher-LV6WGHR2.js +20 -0
  28. package/dist/{embeddings-LNMNKWB7.js → embeddings-E362AC3R.js} +5 -5
  29. package/dist/ingest-7FAOX7YV.js +18 -0
  30. package/dist/{keychain-5QG52ANO.js → keychain-PWFWKTZW.js} +3 -3
  31. package/dist/mcp.js +12 -12
  32. package/dist/{memory-value-GH67CBQP.js → memory-value-V4MH2DYO.js} +9 -9
  33. package/dist/quality-5SB4S5G2.js +23 -0
  34. package/dist/retrieval-YU2PLBUS.js +13 -0
  35. package/dist/{store-OPRTGS73.js → store-5C7ZKKZF.js} +4 -4
  36. package/dist/sync-server.js +1 -1
  37. package/dist/{tasks-LOZ7XWON.js → tasks-DT6QPIKV.js} +9 -9
  38. package/dist/{usage-CAAACLUR.js → usage-VQ5LJCNH.js} +4 -4
  39. package/dist/webui/assets/{index-BODg2A9d.js → index-DAoAhOb4.js} +244 -244
  40. package/dist/webui/assets/{index-BODg2A9d.js.map → index-DAoAhOb4.js.map} +1 -1
  41. package/dist/webui/index.html +1 -1
  42. package/package.json +34 -2
  43. package/dist/chunk-3Z6XZX7N.js.map +0 -1
  44. package/dist/chunk-6I5U6KS3.js.map +0 -1
  45. package/dist/chunk-DNFKAHS6.js.map +0 -1
  46. package/dist/chunk-KG7YFARS.js.map +0 -1
  47. package/dist/chunk-O4KCMCJG.js.map +0 -1
  48. package/dist/chunk-QKN6IWJ3.js.map +0 -1
  49. package/dist/dispatcher-RU25CZK3.js +0 -20
  50. package/dist/ingest-QSOE5XJZ.js +0 -18
  51. package/dist/quality-PZ36JND4.js +0 -23
  52. package/dist/retrieval-HIE5MASN.js +0 -13
  53. /package/dist/{chunk-VT5VAEHY.js.map → chunk-CW3XJDH7.js.map} +0 -0
  54. /package/dist/{chunk-K6AFGQWR.js.map → chunk-DRAOZ2RN.js.map} +0 -0
  55. /package/dist/{chunk-M7OKBKKU.js.map → chunk-EAFRT7RX.js.map} +0 -0
  56. /package/dist/{chunk-ZBIJDXA7.js.map → chunk-FPZ3GBXP.js.map} +0 -0
  57. /package/dist/{chunk-4CV4JOE5.js.map → chunk-JYWURG5T.js.map} +0 -0
  58. /package/dist/{chunk-55KCGAOX.js.map → chunk-LUIYWYOT.js.map} +0 -0
  59. /package/dist/{chunk-S7FJMV5O.js.map → chunk-OADI5XD2.js.map} +0 -0
  60. /package/dist/{chunk-NAYZL5XI.js.map → chunk-YDSCPOIJ.js.map} +0 -0
  61. /package/dist/{cleanup-HWQCVPY4.js.map → cleanup-3JDS7MHX.js.map} +0 -0
  62. /package/dist/{dispatcher-RU25CZK3.js.map → dispatcher-LV6WGHR2.js.map} +0 -0
  63. /package/dist/{embeddings-LNMNKWB7.js.map → embeddings-E362AC3R.js.map} +0 -0
  64. /package/dist/{ingest-QSOE5XJZ.js.map → ingest-7FAOX7YV.js.map} +0 -0
  65. /package/dist/{keychain-5QG52ANO.js.map → keychain-PWFWKTZW.js.map} +0 -0
  66. /package/dist/{memory-value-GH67CBQP.js.map → memory-value-V4MH2DYO.js.map} +0 -0
  67. /package/dist/{quality-PZ36JND4.js.map → quality-5SB4S5G2.js.map} +0 -0
  68. /package/dist/{retrieval-HIE5MASN.js.map → retrieval-YU2PLBUS.js.map} +0 -0
  69. /package/dist/{store-OPRTGS73.js.map → store-5C7ZKKZF.js.map} +0 -0
  70. /package/dist/{tasks-LOZ7XWON.js.map → tasks-DT6QPIKV.js.map} +0 -0
  71. /package/dist/{usage-CAAACLUR.js.map → usage-VQ5LJCNH.js.map} +0 -0
package/README.md CHANGED
@@ -146,6 +146,19 @@ recall setup --uninstall-hooks --yes # remove Recall-managed hooks
146
146
 
147
147
  By default the hooks inject repo memory once at `SessionStart` (minimal format) and stay silent on every subsequent `UserPromptSubmit`. To re-enable per-prompt injection or wire provider credentials so the daemon can run memory maintenance on a schedule, see [docs/configuration.md](docs/configuration.md).
148
148
 
149
+ Supported runtimes, and how deep the integration goes:
150
+
151
+ | Runtime | Integration | Capture |
152
+ | --- | --- | --- |
153
+ | Claude Code | MCP + lifecycle hooks + managed `~/.claude/CLAUDE.md` block | automatic |
154
+ | Codex | MCP + `hooks.json` (legacy `notify` bridge below 0.115.0) | automatic |
155
+ | GitHub Copilot | MCP (`~/.copilot/mcp-config.json`) + `.github/copilot-instructions.md` | model-driven |
156
+ | opencode | MCP (`~/.config/opencode/opencode.json`) + `~/.config/opencode/AGENTS.md` | model-driven |
157
+ | Cursor | MCP (`~/.cursor/mcp.json`) + `.cursor/rules/recall.mdc` | model-driven |
158
+ | Windsurf | MCP (`~/.codeium/windsurf/mcp_config.json`) + global rules | model-driven |
159
+
160
+ Runtimes without a lifecycle-hook API can't be called on prompt/tool/session events, so Recall installs a managed rules block instructing the agent to call `capture_correction` and `query` itself. Capture there depends on the model following it — the hook-based runtimes do not.
161
+
149
162
  Install + setup behavior:
150
163
 
151
164
  - Routine app launch, daemon start, and daemon restart are non-mutating for agent integrations. They do not re-add hooks or repo instruction files after you remove them.
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  desc
3
- } from "./chunk-VT5VAEHY.js";
3
+ } from "./chunk-CW3XJDH7.js";
4
4
  import {
5
5
  appendEvidence,
6
6
  countDistinctCorrectionSessions,
7
7
  createMemory,
8
+ defineOwn,
8
9
  demoteMemory,
9
10
  getMemory,
10
11
  getMemoryFeedback,
@@ -15,7 +16,7 @@ import {
15
16
  promoteMemory,
16
17
  queryMemories,
17
18
  updateMemoryCaptureContext
18
- } from "./chunk-O4KCMCJG.js";
19
+ } from "./chunk-A27AP4NR.js";
19
20
  import {
20
21
  CONFIDENCE,
21
22
  LlmCredentialError,
@@ -24,11 +25,11 @@ import {
24
25
  findSimilarRejectedExemplar,
25
26
  loadEmbeddingConfigFromEnv,
26
27
  queueMemoryEmbeddingSync
27
- } from "./chunk-KG7YFARS.js";
28
+ } from "./chunk-PQJRYAVG.js";
28
29
  import {
29
30
  hasProviderConfigured,
30
31
  init_keychain
31
- } from "./chunk-DNFKAHS6.js";
32
+ } from "./chunk-VYZSP23L.js";
32
33
  import {
33
34
  activityEvents,
34
35
  and,
@@ -49,7 +50,7 @@ import {
49
50
  memoryMaintenanceTasks,
50
51
  or,
51
52
  sql
52
- } from "./chunk-55KCGAOX.js";
53
+ } from "./chunk-LUIYWYOT.js";
53
54
 
54
55
  // src/maintenance/tasks.ts
55
56
  import { randomUUID as randomUUID5 } from "crypto";
@@ -720,8 +721,8 @@ function formatDispatchReport(report) {
720
721
  import { createHash } from "crypto";
721
722
 
722
723
  // src/capture/scope.ts
723
- import { execSync } from "child_process";
724
- import { dirname, extname, basename } from "path";
724
+ import { existsSync, readFileSync } from "fs";
725
+ import { dirname, extname, basename, join } from "path";
725
726
  var SCOPE_MARKERS = [
726
727
  {
727
728
  pattern: /\b(in this file|this file only|just this file)\b/i,
@@ -953,16 +954,17 @@ function inferFromAssistantTurn(assistantTurn) {
953
954
  }
954
955
  function inferFromGitOwnership(filePath, repoPath) {
955
956
  try {
956
- const codeowners = execSync(
957
- `cat .github/CODEOWNERS 2>/dev/null || cat CODEOWNERS 2>/dev/null || echo ""`,
958
- { cwd: repoPath, encoding: "utf-8" }
959
- ).trim();
957
+ const candidates = [
958
+ join(repoPath, ".github", "CODEOWNERS"),
959
+ join(repoPath, "CODEOWNERS")
960
+ ];
961
+ const codeownersPath = candidates.find((candidate) => existsSync(candidate));
962
+ const codeowners = codeownersPath ? readFileSync(codeownersPath, "utf-8").trim() : "";
960
963
  if (codeowners) {
961
- const dir = dirname(filePath);
962
964
  for (const line of codeowners.split("\n")) {
963
965
  if (line.startsWith("#") || !line.trim()) continue;
964
966
  const parts = line.trim().split(/\s+/);
965
- if (parts.length >= 2 && filePath.includes(parts[0].replace("*", ""))) {
967
+ if (parts.length >= 2 && filePath.includes(parts[0].replaceAll("*", ""))) {
966
968
  return {
967
969
  scope: "path",
968
970
  path_scope: `${parts[0]}`,
@@ -2241,7 +2243,7 @@ function redactSensitiveValue(value) {
2241
2243
  if (!value || typeof value !== "object") return value;
2242
2244
  const out = {};
2243
2245
  for (const [key, entry] of Object.entries(value)) {
2244
- out[key] = redactSensitiveValue(entry);
2246
+ defineOwn(out, key, redactSensitiveValue(entry));
2245
2247
  }
2246
2248
  return out;
2247
2249
  }
@@ -3856,4 +3858,4 @@ export {
3856
3858
  processCorrection,
3857
3859
  processReviewFeedback
3858
3860
  };
3859
- //# sourceMappingURL=chunk-6I5U6KS3.js.map
3861
+ //# sourceMappingURL=chunk-5K2LTXNW.js.map