@edihasaj/recall 2.0.0 → 2.0.2

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 (72) hide show
  1. package/dist/{chunk-KZD2JDE6.js → chunk-7TWMJ53T.js} +75 -26
  2. package/dist/chunk-7TWMJ53T.js.map +1 -0
  3. package/dist/{chunk-HN4D2DY5.js → chunk-AM4OHO5U.js} +3 -3
  4. package/dist/{chunk-U3FQMZ3L.js → chunk-CKGK6ZOT.js} +2 -2
  5. package/dist/{chunk-NOYIFPKZ.js → chunk-D2NM3EGI.js} +2 -2
  6. package/dist/{chunk-SIPPH6BQ.js → chunk-EFZO25YJ.js} +2 -2
  7. package/dist/{chunk-OZ745MJO.js → chunk-FZVZLLAT.js} +3 -3
  8. package/dist/{chunk-5TKJMYHL.js → chunk-G7RN2EUN.js} +7 -7
  9. package/dist/{chunk-A4BPE5JF.js → chunk-GKFIYSGI.js} +5 -5
  10. package/dist/{chunk-IFQ6XGEJ.js → chunk-HAA7DS27.js} +5 -5
  11. package/dist/{chunk-5OINDHZX.js → chunk-IYC7MSF7.js} +10 -10
  12. package/dist/{chunk-Y247NGUR.js → chunk-LECL6BBT.js} +9 -9
  13. package/dist/{chunk-VQUBZHJ3.js → chunk-MHJX62DR.js} +2 -2
  14. package/dist/{chunk-VQUBZHJ3.js.map → chunk-MHJX62DR.js.map} +1 -1
  15. package/dist/{chunk-7NNSGT54.js → chunk-NNPY24PC.js} +7 -7
  16. package/dist/{chunk-XBRSGU75.js → chunk-OZCRMR5Z.js} +4 -4
  17. package/dist/{chunk-DBT75RQV.js → chunk-PPCHX44I.js} +3 -3
  18. package/dist/{chunk-3QYS57WE.js → chunk-PTO4PTLM.js} +9 -9
  19. package/dist/{chunk-B6CMONK7.js → chunk-X26SYUUW.js} +2 -2
  20. package/dist/{chunk-FODMIXSP.js → chunk-ZLS3DNNZ.js} +2 -2
  21. package/dist/{cleanup-IY4BJS2F.js → cleanup-LQCBTZ4K.js} +11 -11
  22. package/dist/cli.js +36 -36
  23. package/dist/{codex-trust-RY3H4ZFY.js → codex-trust-2U5JSC55.js} +4 -4
  24. package/dist/daemon.js +18 -18
  25. package/dist/dispatcher-2TQ3GIIU.js +22 -0
  26. package/dist/{embeddings-LDYSUVMQ.js → embeddings-I6TWMGTM.js} +5 -5
  27. package/dist/ingest-HAOGC2JE.js +20 -0
  28. package/dist/{keychain-RVIDTJNO.js → keychain-QNACZRMK.js} +3 -3
  29. package/dist/mcp.js +15 -15
  30. package/dist/{memory-value-5FVSRSHI.js → memory-value-OOEX7UKE.js} +11 -11
  31. package/dist/{provenance-A7QFX2EV.js → provenance-XS5G7Z4Z.js} +9 -9
  32. package/dist/quality-L3ODCHKV.js +25 -0
  33. package/dist/retrieval-XBZYDM7R.js +15 -0
  34. package/dist/{store-X7E4MC7X.js → store-MP2WR6M3.js} +4 -4
  35. package/dist/sync-server.js +2 -2
  36. package/dist/{tasks-KBGHP3YX.js → tasks-ETRRVUD3.js} +11 -11
  37. package/dist/{usage-XRBNDA56.js → usage-QY344YAW.js} +4 -4
  38. package/package.json +1 -1
  39. package/dist/chunk-KZD2JDE6.js.map +0 -1
  40. package/dist/dispatcher-PAHW6SUJ.js +0 -22
  41. package/dist/ingest-ZFDMRBZP.js +0 -20
  42. package/dist/quality-UPL7DJFO.js +0 -25
  43. package/dist/retrieval-ZUBK33XA.js +0 -15
  44. /package/dist/{chunk-HN4D2DY5.js.map → chunk-AM4OHO5U.js.map} +0 -0
  45. /package/dist/{chunk-U3FQMZ3L.js.map → chunk-CKGK6ZOT.js.map} +0 -0
  46. /package/dist/{chunk-NOYIFPKZ.js.map → chunk-D2NM3EGI.js.map} +0 -0
  47. /package/dist/{chunk-SIPPH6BQ.js.map → chunk-EFZO25YJ.js.map} +0 -0
  48. /package/dist/{chunk-OZ745MJO.js.map → chunk-FZVZLLAT.js.map} +0 -0
  49. /package/dist/{chunk-5TKJMYHL.js.map → chunk-G7RN2EUN.js.map} +0 -0
  50. /package/dist/{chunk-A4BPE5JF.js.map → chunk-GKFIYSGI.js.map} +0 -0
  51. /package/dist/{chunk-IFQ6XGEJ.js.map → chunk-HAA7DS27.js.map} +0 -0
  52. /package/dist/{chunk-5OINDHZX.js.map → chunk-IYC7MSF7.js.map} +0 -0
  53. /package/dist/{chunk-Y247NGUR.js.map → chunk-LECL6BBT.js.map} +0 -0
  54. /package/dist/{chunk-7NNSGT54.js.map → chunk-NNPY24PC.js.map} +0 -0
  55. /package/dist/{chunk-XBRSGU75.js.map → chunk-OZCRMR5Z.js.map} +0 -0
  56. /package/dist/{chunk-DBT75RQV.js.map → chunk-PPCHX44I.js.map} +0 -0
  57. /package/dist/{chunk-3QYS57WE.js.map → chunk-PTO4PTLM.js.map} +0 -0
  58. /package/dist/{chunk-B6CMONK7.js.map → chunk-X26SYUUW.js.map} +0 -0
  59. /package/dist/{chunk-FODMIXSP.js.map → chunk-ZLS3DNNZ.js.map} +0 -0
  60. /package/dist/{cleanup-IY4BJS2F.js.map → cleanup-LQCBTZ4K.js.map} +0 -0
  61. /package/dist/{codex-trust-RY3H4ZFY.js.map → codex-trust-2U5JSC55.js.map} +0 -0
  62. /package/dist/{dispatcher-PAHW6SUJ.js.map → dispatcher-2TQ3GIIU.js.map} +0 -0
  63. /package/dist/{embeddings-LDYSUVMQ.js.map → embeddings-I6TWMGTM.js.map} +0 -0
  64. /package/dist/{ingest-ZFDMRBZP.js.map → ingest-HAOGC2JE.js.map} +0 -0
  65. /package/dist/{keychain-RVIDTJNO.js.map → keychain-QNACZRMK.js.map} +0 -0
  66. /package/dist/{memory-value-5FVSRSHI.js.map → memory-value-OOEX7UKE.js.map} +0 -0
  67. /package/dist/{provenance-A7QFX2EV.js.map → provenance-XS5G7Z4Z.js.map} +0 -0
  68. /package/dist/{quality-UPL7DJFO.js.map → quality-L3ODCHKV.js.map} +0 -0
  69. /package/dist/{retrieval-ZUBK33XA.js.map → retrieval-XBZYDM7R.js.map} +0 -0
  70. /package/dist/{store-X7E4MC7X.js.map → store-MP2WR6M3.js.map} +0 -0
  71. /package/dist/{tasks-KBGHP3YX.js.map → tasks-ETRRVUD3.js.map} +0 -0
  72. /package/dist/{usage-XRBNDA56.js.map → usage-QY344YAW.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  hasCommand,
4
4
  resolveCodexHomes,
5
5
  resolveUserHomeDir
6
- } from "./chunk-HN4D2DY5.js";
6
+ } from "./chunk-AM4OHO5U.js";
7
7
  import {
8
8
  RECALL_DB_USER_VERSION,
9
9
  captureCorrectionFallback,
@@ -20,7 +20,7 @@ import {
20
20
  resolveLocalRepoPath,
21
21
  signalOutcomeFallback,
22
22
  startSessionLifecycle
23
- } from "./chunk-5OINDHZX.js";
23
+ } from "./chunk-IYC7MSF7.js";
24
24
  import {
25
25
  detectCorrections,
26
26
  isHighRiskRule,
@@ -28,7 +28,7 @@ import {
28
28
  isWorkspaceRootAlias,
29
29
  peekTasks,
30
30
  redactSensitiveText
31
- } from "./chunk-Y247NGUR.js";
31
+ } from "./chunk-LECL6BBT.js";
32
32
  import {
33
33
  detectAndRecordRetrievalMissesSemantic,
34
34
  listInjectedMemoryIdsForSession,
@@ -36,10 +36,10 @@ import {
36
36
  pathMatchesMemory,
37
37
  recordCompletionUseValueEventsSemantic,
38
38
  toolCallTouchesMemory
39
- } from "./chunk-7NNSGT54.js";
39
+ } from "./chunk-NNPY24PC.js";
40
40
  import {
41
41
  textMatches
42
- } from "./chunk-SIPPH6BQ.js";
42
+ } from "./chunk-EFZO25YJ.js";
43
43
  import {
44
44
  appendEvidence,
45
45
  createMemory,
@@ -48,35 +48,35 @@ import {
48
48
  queryMemories,
49
49
  recordAudit,
50
50
  rejectMemory
51
- } from "./chunk-5TKJMYHL.js";
51
+ } from "./chunk-G7RN2EUN.js";
52
52
  import {
53
53
  desc
54
- } from "./chunk-DBT75RQV.js";
54
+ } from "./chunk-PPCHX44I.js";
55
55
  import {
56
56
  defineOwn,
57
57
  deleteOwn
58
- } from "./chunk-FODMIXSP.js";
58
+ } from "./chunk-ZLS3DNNZ.js";
59
59
  import {
60
60
  atomicWriteUtf8File,
61
61
  getEmbeddingModelInfo,
62
62
  readUtf8FileIfExists,
63
63
  tagActivitySource
64
- } from "./chunk-XBRSGU75.js";
64
+ } from "./chunk-OZCRMR5Z.js";
65
65
  import {
66
66
  init_keychain,
67
67
  keychain_exports
68
- } from "./chunk-B6CMONK7.js";
68
+ } from "./chunk-X26SYUUW.js";
69
69
  import {
70
70
  activityEvents,
71
71
  and,
72
72
  eq,
73
73
  hookCalls,
74
74
  sql
75
- } from "./chunk-NOYIFPKZ.js";
75
+ } from "./chunk-D2NM3EGI.js";
76
76
  import {
77
77
  __toCommonJS,
78
78
  init_define_RECALL_BUILD_INFO
79
- } from "./chunk-VQUBZHJ3.js";
79
+ } from "./chunk-MHJX62DR.js";
80
80
 
81
81
  // src/adapters/markdown.ts
82
82
  init_define_RECALL_BUILD_INFO();
@@ -1647,7 +1647,57 @@ init_define_RECALL_BUILD_INFO();
1647
1647
  import { chmodSync as chmodSync2, existsSync as existsSync2, mkdirSync as mkdirSync3, rmSync as rmSync2, writeFileSync } from "fs";
1648
1648
  import { homedir } from "os";
1649
1649
  import { dirname as dirname2, join as join3, resolve as resolve2 } from "path";
1650
+ import { execFileSync as execFileSync4 } from "child_process";
1651
+
1652
+ // src/daemon/launchd-start.ts
1653
+ init_define_RECALL_BUILD_INFO();
1650
1654
  import { execFileSync as execFileSync3 } from "child_process";
1655
+ function ensureLaunchdStarted(domain, label, plist, run = (args) => {
1656
+ execFileSync3("launchctl", args, { stdio: "pipe" });
1657
+ }, pause = () => {
1658
+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 100);
1659
+ }) {
1660
+ const target = `${domain}/${label}`;
1661
+ let lastError;
1662
+ for (let attempt = 0; attempt < 3; attempt++) {
1663
+ let loaded = false;
1664
+ try {
1665
+ run(["print", target]);
1666
+ loaded = true;
1667
+ } catch {
1668
+ }
1669
+ if (!loaded) {
1670
+ try {
1671
+ run(["bootstrap", domain, plist]);
1672
+ } catch (error) {
1673
+ lastError = error;
1674
+ try {
1675
+ run(["print", target]);
1676
+ loaded = true;
1677
+ } catch {
1678
+ }
1679
+ if (!loaded) {
1680
+ if (attempt < 2) pause();
1681
+ continue;
1682
+ }
1683
+ }
1684
+ }
1685
+ try {
1686
+ run(["kickstart", target]);
1687
+ return;
1688
+ } catch (error) {
1689
+ lastError = error;
1690
+ try {
1691
+ run(["print", target]);
1692
+ } catch {
1693
+ if (attempt < 2) pause();
1694
+ continue;
1695
+ }
1696
+ throw error;
1697
+ }
1698
+ }
1699
+ throw lastError;
1700
+ }
1651
1701
 
1652
1702
  // src/daemon/provider-env.ts
1653
1703
  init_define_RECALL_BUILD_INFO();
@@ -1690,9 +1740,9 @@ function installLaunchAgent(opts = {}) {
1690
1740
  writeFileSync(cfg.plistPath, renderPlist(cfg), { mode: 384 });
1691
1741
  chmodSync2(cfg.plistPath, 384);
1692
1742
  tryRun("launchctl", ["bootout", domainTarget(), cfg.plistPath]);
1693
- execFileSync3("launchctl", ["bootstrap", domainTarget(), cfg.plistPath], stdioOpts());
1694
- execFileSync3("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1695
- execFileSync3("launchctl", ["kickstart", "-k", `${domainTarget()}/${cfg.label}`], stdioOpts());
1743
+ execFileSync4("launchctl", ["bootstrap", domainTarget(), cfg.plistPath], stdioOpts());
1744
+ execFileSync4("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1745
+ execFileSync4("launchctl", ["kickstart", `${domainTarget()}/${cfg.label}`], stdioOpts());
1696
1746
  return getLaunchAgentStatus(cfg.label);
1697
1747
  }
1698
1748
  function uninstallLaunchAgent(label = DEFAULT_LABEL) {
@@ -1709,9 +1759,8 @@ function startLaunchAgent(label = DEFAULT_LABEL) {
1709
1759
  if (!exists(cfg.plistPath)) {
1710
1760
  throw new Error(`LaunchAgent not installed: ${cfg.plistPath}`);
1711
1761
  }
1712
- execFileSync3("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1713
- tryRun("launchctl", ["bootstrap", domainTarget(), cfg.plistPath]);
1714
- execFileSync3("launchctl", ["kickstart", "-k", `${domainTarget()}/${cfg.label}`], stdioOpts());
1762
+ execFileSync4("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1763
+ ensureLaunchdStarted(domainTarget(), cfg.label, cfg.plistPath);
1715
1764
  return getLaunchAgentStatus(cfg.label);
1716
1765
  }
1717
1766
  function stopLaunchAgent(label = DEFAULT_LABEL) {
@@ -1867,14 +1916,14 @@ function extractState(output) {
1867
1916
  }
1868
1917
  function tryRun(cmd, args) {
1869
1918
  try {
1870
- execFileSync3(cmd, args, stdioOpts());
1919
+ execFileSync4(cmd, args, stdioOpts());
1871
1920
  } catch {
1872
1921
  return;
1873
1922
  }
1874
1923
  }
1875
1924
  function tryOutput(cmd, args) {
1876
1925
  try {
1877
- const output = execFileSync3(cmd, args, {
1926
+ const output = execFileSync4(cmd, args, {
1878
1927
  encoding: "utf8",
1879
1928
  stdio: ["ignore", "pipe", "pipe"]
1880
1929
  });
@@ -1889,7 +1938,7 @@ function tryOutput(cmd, args) {
1889
1938
  function readInstalledConfig(plistPath) {
1890
1939
  if (!exists(plistPath)) return null;
1891
1940
  try {
1892
- const raw = execFileSync3("plutil", ["-convert", "json", "-o", "-", plistPath], {
1941
+ const raw = execFileSync4("plutil", ["-convert", "json", "-o", "-", plistPath], {
1893
1942
  encoding: "utf8",
1894
1943
  stdio: ["ignore", "pipe", "pipe"]
1895
1944
  });
@@ -1938,7 +1987,7 @@ import { chmodSync as chmodSync3, existsSync as existsSync3, mkdirSync as mkdirS
1938
1987
  import { homedir as homedir2 } from "os";
1939
1988
  import { dirname as dirname3, join as join4, resolve as resolve3 } from "path";
1940
1989
  import { fileURLToPath } from "url";
1941
- import { execFileSync as execFileSync4 } from "child_process";
1990
+ import { execFileSync as execFileSync5 } from "child_process";
1942
1991
  var DEFAULT_LABEL2 = "recall-daemon";
1943
1992
  function installSystemdUnit(opts = {}) {
1944
1993
  assertLinux();
@@ -2146,18 +2195,18 @@ function unescapeSystemdValue(value) {
2146
2195
  return value.replaceAll("%%", "%").replaceAll('\\"', '"').replaceAll("\\\\", "\\");
2147
2196
  }
2148
2197
  function systemctl(args) {
2149
- execFileSync4("systemctl", args, { stdio: "pipe" });
2198
+ execFileSync5("systemctl", args, { stdio: "pipe" });
2150
2199
  }
2151
2200
  function trySystemctl(args) {
2152
2201
  try {
2153
- execFileSync4("systemctl", args, { stdio: "pipe" });
2202
+ execFileSync5("systemctl", args, { stdio: "pipe" });
2154
2203
  } catch {
2155
2204
  return;
2156
2205
  }
2157
2206
  }
2158
2207
  function trySystemctlOutput(args) {
2159
2208
  try {
2160
- const output = execFileSync4("systemctl", args, {
2209
+ const output = execFileSync5("systemctl", args, {
2161
2210
  encoding: "utf8",
2162
2211
  stdio: ["ignore", "pipe", "pipe"]
2163
2212
  });
@@ -3773,4 +3822,4 @@ export {
3773
3822
  getDoctorReport,
3774
3823
  formatDoctorReport
3775
3824
  };
3776
- //# sourceMappingURL=chunk-KZD2JDE6.js.map
3825
+ //# sourceMappingURL=chunk-7TWMJ53T.js.map