@edihasaj/recall 2.0.0 → 2.0.1
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-XBRSGU75.js → chunk-3DJ2KGRK.js} +4 -4
- package/dist/{chunk-Y247NGUR.js → chunk-3IHAL65K.js} +9 -9
- package/dist/{chunk-HN4D2DY5.js → chunk-CRM6LMRE.js} +3 -3
- package/dist/{chunk-7NNSGT54.js → chunk-E5KZUBVH.js} +7 -7
- package/dist/{chunk-B6CMONK7.js → chunk-EOX2CG3F.js} +2 -2
- package/dist/{chunk-5TKJMYHL.js → chunk-GMOIE4I3.js} +7 -7
- package/dist/{chunk-SIPPH6BQ.js → chunk-IZCPU6BK.js} +2 -2
- package/dist/{chunk-A4BPE5JF.js → chunk-JIU4K7GZ.js} +5 -5
- package/dist/{chunk-3QYS57WE.js → chunk-JMSUNFRY.js} +9 -9
- package/dist/{chunk-NOYIFPKZ.js → chunk-LE2KGCJ6.js} +2 -2
- package/dist/{chunk-IFQ6XGEJ.js → chunk-LOGJLGIP.js} +5 -5
- package/dist/{chunk-U3FQMZ3L.js → chunk-TQP2WYKL.js} +2 -2
- package/dist/{chunk-VQUBZHJ3.js → chunk-TRAC5TYZ.js} +2 -2
- package/dist/{chunk-VQUBZHJ3.js.map → chunk-TRAC5TYZ.js.map} +1 -1
- package/dist/{chunk-DBT75RQV.js → chunk-UOSD2BW5.js} +3 -3
- package/dist/{chunk-5OINDHZX.js → chunk-UQT7UEDK.js} +10 -10
- package/dist/{chunk-FODMIXSP.js → chunk-VZCE6TVU.js} +2 -2
- package/dist/{chunk-KZD2JDE6.js → chunk-WW3U252C.js} +75 -26
- package/dist/chunk-WW3U252C.js.map +1 -0
- package/dist/{chunk-OZ745MJO.js → chunk-XNNR4OWM.js} +3 -3
- package/dist/{cleanup-IY4BJS2F.js → cleanup-MZHQXTIF.js} +11 -11
- package/dist/cli.js +36 -36
- package/dist/{codex-trust-RY3H4ZFY.js → codex-trust-YZ7ANVLF.js} +4 -4
- package/dist/daemon.js +18 -18
- package/dist/dispatcher-EWHBR3CD.js +22 -0
- package/dist/{embeddings-LDYSUVMQ.js → embeddings-XIIBF2UJ.js} +5 -5
- package/dist/ingest-2KV7AOO7.js +20 -0
- package/dist/{keychain-RVIDTJNO.js → keychain-IM4UG4CQ.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-5FVSRSHI.js → memory-value-MLKKV2X5.js} +11 -11
- package/dist/{provenance-A7QFX2EV.js → provenance-3GYCZ7TW.js} +9 -9
- package/dist/quality-7LZ6LB2P.js +25 -0
- package/dist/retrieval-G3FPP7VT.js +15 -0
- package/dist/{store-X7E4MC7X.js → store-QTHP65MI.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-KBGHP3YX.js → tasks-UDUMKMZ2.js} +11 -11
- package/dist/{usage-XRBNDA56.js → usage-WV5OT2H6.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-KZD2JDE6.js.map +0 -1
- package/dist/dispatcher-PAHW6SUJ.js +0 -22
- package/dist/ingest-ZFDMRBZP.js +0 -20
- package/dist/quality-UPL7DJFO.js +0 -25
- package/dist/retrieval-ZUBK33XA.js +0 -15
- /package/dist/{chunk-XBRSGU75.js.map → chunk-3DJ2KGRK.js.map} +0 -0
- /package/dist/{chunk-Y247NGUR.js.map → chunk-3IHAL65K.js.map} +0 -0
- /package/dist/{chunk-HN4D2DY5.js.map → chunk-CRM6LMRE.js.map} +0 -0
- /package/dist/{chunk-7NNSGT54.js.map → chunk-E5KZUBVH.js.map} +0 -0
- /package/dist/{chunk-B6CMONK7.js.map → chunk-EOX2CG3F.js.map} +0 -0
- /package/dist/{chunk-5TKJMYHL.js.map → chunk-GMOIE4I3.js.map} +0 -0
- /package/dist/{chunk-SIPPH6BQ.js.map → chunk-IZCPU6BK.js.map} +0 -0
- /package/dist/{chunk-A4BPE5JF.js.map → chunk-JIU4K7GZ.js.map} +0 -0
- /package/dist/{chunk-3QYS57WE.js.map → chunk-JMSUNFRY.js.map} +0 -0
- /package/dist/{chunk-NOYIFPKZ.js.map → chunk-LE2KGCJ6.js.map} +0 -0
- /package/dist/{chunk-IFQ6XGEJ.js.map → chunk-LOGJLGIP.js.map} +0 -0
- /package/dist/{chunk-U3FQMZ3L.js.map → chunk-TQP2WYKL.js.map} +0 -0
- /package/dist/{chunk-DBT75RQV.js.map → chunk-UOSD2BW5.js.map} +0 -0
- /package/dist/{chunk-5OINDHZX.js.map → chunk-UQT7UEDK.js.map} +0 -0
- /package/dist/{chunk-FODMIXSP.js.map → chunk-VZCE6TVU.js.map} +0 -0
- /package/dist/{chunk-OZ745MJO.js.map → chunk-XNNR4OWM.js.map} +0 -0
- /package/dist/{cleanup-IY4BJS2F.js.map → cleanup-MZHQXTIF.js.map} +0 -0
- /package/dist/{codex-trust-RY3H4ZFY.js.map → codex-trust-YZ7ANVLF.js.map} +0 -0
- /package/dist/{dispatcher-PAHW6SUJ.js.map → dispatcher-EWHBR3CD.js.map} +0 -0
- /package/dist/{embeddings-LDYSUVMQ.js.map → embeddings-XIIBF2UJ.js.map} +0 -0
- /package/dist/{ingest-ZFDMRBZP.js.map → ingest-2KV7AOO7.js.map} +0 -0
- /package/dist/{keychain-RVIDTJNO.js.map → keychain-IM4UG4CQ.js.map} +0 -0
- /package/dist/{memory-value-5FVSRSHI.js.map → memory-value-MLKKV2X5.js.map} +0 -0
- /package/dist/{provenance-A7QFX2EV.js.map → provenance-3GYCZ7TW.js.map} +0 -0
- /package/dist/{quality-UPL7DJFO.js.map → quality-7LZ6LB2P.js.map} +0 -0
- /package/dist/{retrieval-ZUBK33XA.js.map → retrieval-G3FPP7VT.js.map} +0 -0
- /package/dist/{store-X7E4MC7X.js.map → store-QTHP65MI.js.map} +0 -0
- /package/dist/{tasks-KBGHP3YX.js.map → tasks-UDUMKMZ2.js.map} +0 -0
- /package/dist/{usage-XRBNDA56.js.map → usage-WV5OT2H6.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
hasCommand,
|
|
4
4
|
resolveCodexHomes,
|
|
5
5
|
resolveUserHomeDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CRM6LMRE.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-
|
|
23
|
+
} from "./chunk-UQT7UEDK.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-
|
|
31
|
+
} from "./chunk-3IHAL65K.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-
|
|
39
|
+
} from "./chunk-E5KZUBVH.js";
|
|
40
40
|
import {
|
|
41
41
|
textMatches
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IZCPU6BK.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-
|
|
51
|
+
} from "./chunk-GMOIE4I3.js";
|
|
52
52
|
import {
|
|
53
53
|
desc
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UOSD2BW5.js";
|
|
55
55
|
import {
|
|
56
56
|
defineOwn,
|
|
57
57
|
deleteOwn
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-VZCE6TVU.js";
|
|
59
59
|
import {
|
|
60
60
|
atomicWriteUtf8File,
|
|
61
61
|
getEmbeddingModelInfo,
|
|
62
62
|
readUtf8FileIfExists,
|
|
63
63
|
tagActivitySource
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-3DJ2KGRK.js";
|
|
65
65
|
import {
|
|
66
66
|
init_keychain,
|
|
67
67
|
keychain_exports
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EOX2CG3F.js";
|
|
69
69
|
import {
|
|
70
70
|
activityEvents,
|
|
71
71
|
and,
|
|
72
72
|
eq,
|
|
73
73
|
hookCalls,
|
|
74
74
|
sql
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-LE2KGCJ6.js";
|
|
76
76
|
import {
|
|
77
77
|
__toCommonJS,
|
|
78
78
|
init_define_RECALL_BUILD_INFO
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-TRAC5TYZ.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", "-k", 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
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1743
|
+
execFileSync4("launchctl", ["bootstrap", domainTarget(), cfg.plistPath], stdioOpts());
|
|
1744
|
+
execFileSync4("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
|
|
1745
|
+
execFileSync4("launchctl", ["kickstart", "-k", `${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
|
-
|
|
1713
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
2198
|
+
execFileSync5("systemctl", args, { stdio: "pipe" });
|
|
2150
2199
|
}
|
|
2151
2200
|
function trySystemctl(args) {
|
|
2152
2201
|
try {
|
|
2153
|
-
|
|
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 =
|
|
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-
|
|
3825
|
+
//# sourceMappingURL=chunk-WW3U252C.js.map
|