@edihasaj/recall 1.4.16 → 1.4.18
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/README.md +15 -1
- package/dist/{chunk-STSOYDTJ.js → chunk-2KZL4BQ6.js} +9 -9
- package/dist/{chunk-VGVC6TI4.js → chunk-4UEXSOZB.js} +9 -9
- package/dist/{chunk-NUULY6HN.js → chunk-5XY62A7Z.js} +3 -3
- package/dist/chunk-7KJ43RQR.js +3668 -0
- package/dist/chunk-7KJ43RQR.js.map +1 -0
- package/dist/{chunk-6ILX2JCU.js → chunk-A725EQLN.js} +5 -5
- package/dist/{chunk-7KMWCSJO.js → chunk-DNE47UL2.js} +2 -2
- package/dist/{chunk-6ITYXKTU.js → chunk-FI237D4Y.js} +4 -4
- package/dist/{chunk-6ITYXKTU.js.map → chunk-FI237D4Y.js.map} +1 -1
- package/dist/{chunk-ZCTUZHBI.js → chunk-GW6WET36.js} +2 -2
- package/dist/{chunk-GTTCVKF2.js → chunk-IGWHOB6F.js} +4 -4
- package/dist/{chunk-6LKUTMJB.js → chunk-IOYOJRDB.js} +3 -3
- package/dist/{chunk-MZOQHVVD.js → chunk-IUBB5ATF.js} +2 -2
- package/dist/{chunk-MZOQHVVD.js.map → chunk-IUBB5ATF.js.map} +1 -1
- package/dist/{chunk-4VM442I2.js → chunk-KMBPSJ6B.js} +7 -7
- package/dist/{chunk-TAD3XLFA.js → chunk-M6CYA23R.js} +7 -7
- package/dist/{chunk-RHSP4EP2.js → chunk-NWWI2PYI.js} +9 -9
- package/dist/{chunk-WN7HSHQY.js → chunk-OD6M3DWK.js} +2 -2
- package/dist/{chunk-5IXZATFP.js → chunk-OQBMH6NG.js} +5 -5
- package/dist/{chunk-6NGYPNRD.js → chunk-QDSNL6PM.js} +2 -2
- package/dist/{chunk-TNTP6ILA.js → chunk-RU57JAJZ.js} +2 -2
- package/dist/{cleanup-Y7X3YZDW.js → cleanup-SAVG7IDQ.js} +11 -11
- package/dist/cli.js +344 -2464
- package/dist/cli.js.map +1 -1
- package/dist/{codex-trust-HIFEHI7X.js → codex-trust-PM37UGXC.js} +4 -4
- package/dist/daemon.js +136 -17
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-XDBM2EY4.js +22 -0
- package/dist/{embeddings-FWNXO6GK.js → embeddings-KX3FG4W5.js} +5 -5
- package/dist/ingest-YSSZIIGV.js +20 -0
- package/dist/{keychain-I76FJCZF.js → keychain-675KT5UZ.js} +3 -3
- package/dist/mcp.js +15 -15
- package/dist/{memory-value-VOWGTLBV.js → memory-value-UKKTPVVF.js} +11 -11
- package/dist/{provenance-BGVB7HW7.js → provenance-HBF4LGHJ.js} +9 -9
- package/dist/quality-N4F5LTCY.js +25 -0
- package/dist/retrieval-MUGT5TBL.js +15 -0
- package/dist/{store-VEFKN5Z3.js → store-JF27SEIB.js} +4 -4
- package/dist/sync-server.js +2 -2
- package/dist/{tasks-XFKW2ORZ.js → tasks-YQVF2CV3.js} +11 -11
- package/dist/{usage-T6KFTDZW.js → usage-XBJ6RTU7.js} +4 -4
- package/package.json +2 -1
- package/scripts/install.ps1 +258 -0
- package/dist/chunk-3Z3KXVR4.js +0 -1490
- package/dist/chunk-3Z3KXVR4.js.map +0 -1
- package/dist/dispatcher-7GGQWV4W.js +0 -22
- package/dist/ingest-7EMEMHDG.js +0 -20
- package/dist/quality-OFFU4MWY.js +0 -25
- package/dist/retrieval-4T7PADU2.js +0 -15
- /package/dist/{chunk-STSOYDTJ.js.map → chunk-2KZL4BQ6.js.map} +0 -0
- /package/dist/{chunk-VGVC6TI4.js.map → chunk-4UEXSOZB.js.map} +0 -0
- /package/dist/{chunk-NUULY6HN.js.map → chunk-5XY62A7Z.js.map} +0 -0
- /package/dist/{chunk-6ILX2JCU.js.map → chunk-A725EQLN.js.map} +0 -0
- /package/dist/{chunk-7KMWCSJO.js.map → chunk-DNE47UL2.js.map} +0 -0
- /package/dist/{chunk-ZCTUZHBI.js.map → chunk-GW6WET36.js.map} +0 -0
- /package/dist/{chunk-GTTCVKF2.js.map → chunk-IGWHOB6F.js.map} +0 -0
- /package/dist/{chunk-6LKUTMJB.js.map → chunk-IOYOJRDB.js.map} +0 -0
- /package/dist/{chunk-4VM442I2.js.map → chunk-KMBPSJ6B.js.map} +0 -0
- /package/dist/{chunk-TAD3XLFA.js.map → chunk-M6CYA23R.js.map} +0 -0
- /package/dist/{chunk-RHSP4EP2.js.map → chunk-NWWI2PYI.js.map} +0 -0
- /package/dist/{chunk-WN7HSHQY.js.map → chunk-OD6M3DWK.js.map} +0 -0
- /package/dist/{chunk-5IXZATFP.js.map → chunk-OQBMH6NG.js.map} +0 -0
- /package/dist/{chunk-6NGYPNRD.js.map → chunk-QDSNL6PM.js.map} +0 -0
- /package/dist/{chunk-TNTP6ILA.js.map → chunk-RU57JAJZ.js.map} +0 -0
- /package/dist/{cleanup-Y7X3YZDW.js.map → cleanup-SAVG7IDQ.js.map} +0 -0
- /package/dist/{codex-trust-HIFEHI7X.js.map → codex-trust-PM37UGXC.js.map} +0 -0
- /package/dist/{dispatcher-7GGQWV4W.js.map → dispatcher-XDBM2EY4.js.map} +0 -0
- /package/dist/{embeddings-FWNXO6GK.js.map → embeddings-KX3FG4W5.js.map} +0 -0
- /package/dist/{ingest-7EMEMHDG.js.map → ingest-YSSZIIGV.js.map} +0 -0
- /package/dist/{keychain-I76FJCZF.js.map → keychain-675KT5UZ.js.map} +0 -0
- /package/dist/{memory-value-VOWGTLBV.js.map → memory-value-UKKTPVVF.js.map} +0 -0
- /package/dist/{provenance-BGVB7HW7.js.map → provenance-HBF4LGHJ.js.map} +0 -0
- /package/dist/{quality-OFFU4MWY.js.map → quality-N4F5LTCY.js.map} +0 -0
- /package/dist/{retrieval-4T7PADU2.js.map → retrieval-MUGT5TBL.js.map} +0 -0
- /package/dist/{store-VEFKN5Z3.js.map → store-JF27SEIB.js.map} +0 -0
- /package/dist/{tasks-XFKW2ORZ.js.map → tasks-YQVF2CV3.js.map} +0 -0
- /package/dist/{usage-T6KFTDZW.js.map → usage-XBJ6RTU7.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCodexHomes
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FI237D4Y.js";
|
|
4
|
+
import "./chunk-OD6M3DWK.js";
|
|
5
5
|
import {
|
|
6
6
|
init_define_RECALL_BUILD_INFO
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IUBB5ATF.js";
|
|
8
8
|
|
|
9
9
|
// src/doctor/codex-trust.ts
|
|
10
10
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -71,4 +71,4 @@ function probeCodexHome(home) {
|
|
|
71
71
|
export {
|
|
72
72
|
inspectCodexTrust
|
|
73
73
|
};
|
|
74
|
-
//# sourceMappingURL=codex-trust-
|
|
74
|
+
//# sourceMappingURL=codex-trust-PM37UGXC.js.map
|
package/dist/daemon.js
CHANGED
|
@@ -2,21 +2,23 @@ import {
|
|
|
2
2
|
computeQualityReport,
|
|
3
3
|
listQualitySnapshots,
|
|
4
4
|
recordQualitySnapshot
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-A725EQLN.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureDailyBackup,
|
|
8
|
+
getDoctorStatusReport,
|
|
8
9
|
handleAssistantCompletionHook,
|
|
9
10
|
handlePromptHook,
|
|
10
11
|
handleSessionEndHook,
|
|
11
12
|
handleSessionStartHook,
|
|
12
13
|
handleToolHook
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7KJ43RQR.js";
|
|
15
|
+
import "./chunk-FI237D4Y.js";
|
|
14
16
|
import {
|
|
15
17
|
createRecallMcpServer
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4UEXSOZB.js";
|
|
17
19
|
import {
|
|
18
20
|
graphQuery
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OQBMH6NG.js";
|
|
20
22
|
import {
|
|
21
23
|
bootstrapHistoryEmbeddings,
|
|
22
24
|
compileContext,
|
|
@@ -56,7 +58,7 @@ import {
|
|
|
56
58
|
updateHistorySnippet,
|
|
57
59
|
verifyHistoryEmbeddings,
|
|
58
60
|
writeRepoContextArtifact
|
|
59
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2KZL4BQ6.js";
|
|
60
62
|
import {
|
|
61
63
|
DEFAULT_ENQUEUE_CONFIG,
|
|
62
64
|
autoResolveContradictions,
|
|
@@ -74,12 +76,12 @@ import {
|
|
|
74
76
|
processReviewFeedback,
|
|
75
77
|
resolveContradiction,
|
|
76
78
|
runDeterministicCleanup
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-NWWI2PYI.js";
|
|
80
|
+
import "./chunk-KMBPSJ6B.js";
|
|
81
|
+
import "./chunk-RU57JAJZ.js";
|
|
80
82
|
import {
|
|
81
83
|
Sentry
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-QDSNL6PM.js";
|
|
83
85
|
import {
|
|
84
86
|
confirmMemory,
|
|
85
87
|
getAuditTrail,
|
|
@@ -96,9 +98,9 @@ import {
|
|
|
96
98
|
rollbackMemory,
|
|
97
99
|
safeIngestMemoryById,
|
|
98
100
|
statusFromConfidence
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-
|
|
101
|
+
} from "./chunk-M6CYA23R.js";
|
|
102
|
+
import "./chunk-5XY62A7Z.js";
|
|
103
|
+
import "./chunk-OD6M3DWK.js";
|
|
102
104
|
import {
|
|
103
105
|
bootstrapEmbeddings,
|
|
104
106
|
getEmbeddingModelInfo,
|
|
@@ -107,11 +109,11 @@ import {
|
|
|
107
109
|
queueMemoryEmbeddingSync,
|
|
108
110
|
rebuildEmbeddingIndexResponsive,
|
|
109
111
|
verifyEmbeddings
|
|
110
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-IGWHOB6F.js";
|
|
111
113
|
import {
|
|
112
114
|
hasProviderConfigured,
|
|
113
115
|
init_keychain
|
|
114
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-GW6WET36.js";
|
|
115
117
|
import {
|
|
116
118
|
clearGraph,
|
|
117
119
|
countEntities,
|
|
@@ -122,7 +124,7 @@ import {
|
|
|
122
124
|
listEntitiesForMemory,
|
|
123
125
|
listMemoryIdsForEntity,
|
|
124
126
|
neighborsOf
|
|
125
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-IOYOJRDB.js";
|
|
126
128
|
import {
|
|
127
129
|
activityEvents,
|
|
128
130
|
eq,
|
|
@@ -132,11 +134,11 @@ import {
|
|
|
132
134
|
implicitSignals,
|
|
133
135
|
lt,
|
|
134
136
|
memories
|
|
135
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-DNE47UL2.js";
|
|
136
138
|
import {
|
|
137
139
|
define_RECALL_BUILD_INFO_default,
|
|
138
140
|
init_define_RECALL_BUILD_INFO
|
|
139
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-IUBB5ATF.js";
|
|
140
142
|
|
|
141
143
|
// src/daemon.ts
|
|
142
144
|
init_define_RECALL_BUILD_INFO();
|
|
@@ -1246,6 +1248,114 @@ var fallback = {
|
|
|
1246
1248
|
};
|
|
1247
1249
|
var recallBuildInfo = typeof define_RECALL_BUILD_INFO_default === "undefined" ? fallback : define_RECALL_BUILD_INFO_default;
|
|
1248
1250
|
|
|
1251
|
+
// src/updates/check.ts
|
|
1252
|
+
init_define_RECALL_BUILD_INFO();
|
|
1253
|
+
var RELEASE_API = "https://api.github.com/repos/edihasaj/recall/releases/latest";
|
|
1254
|
+
var READY_FOR_INSTALL = [
|
|
1255
|
+
"Recall.app.zip",
|
|
1256
|
+
"Recall.app.zip.sha256",
|
|
1257
|
+
"recall-tray-amd64.exe",
|
|
1258
|
+
"recall-tray-arm64.exe",
|
|
1259
|
+
"Recall-Install.ps1"
|
|
1260
|
+
];
|
|
1261
|
+
var READY_TTL_MS = 30 * 60 * 1e3;
|
|
1262
|
+
var RETRY_TTL_MS = 5 * 60 * 1e3;
|
|
1263
|
+
var FORCE_FLOOR_MS = 60 * 1e3;
|
|
1264
|
+
function compareVersions(left, right) {
|
|
1265
|
+
const parse = (value) => {
|
|
1266
|
+
const match = /^v?(\d+)\.(\d+)\.(\d+)$/.exec(value);
|
|
1267
|
+
if (!match) return null;
|
|
1268
|
+
const numbers = match.slice(1).map(Number);
|
|
1269
|
+
return numbers.every(Number.isSafeInteger) ? numbers : null;
|
|
1270
|
+
};
|
|
1271
|
+
const a = parse(left);
|
|
1272
|
+
const b = parse(right);
|
|
1273
|
+
if (!a || !b) return null;
|
|
1274
|
+
for (let i = 0; i < 3; i++) {
|
|
1275
|
+
if (a[i] !== b[i]) return a[i] > b[i] ? 1 : -1;
|
|
1276
|
+
}
|
|
1277
|
+
return 0;
|
|
1278
|
+
}
|
|
1279
|
+
var ReleaseChecker = class {
|
|
1280
|
+
constructor(fetchRelease = fetch, now = Date.now) {
|
|
1281
|
+
this.fetchRelease = fetchRelease;
|
|
1282
|
+
this.now = now;
|
|
1283
|
+
}
|
|
1284
|
+
fetchRelease;
|
|
1285
|
+
now;
|
|
1286
|
+
cached = null;
|
|
1287
|
+
checkedAtMs = 0;
|
|
1288
|
+
expiresAtMs = 0;
|
|
1289
|
+
pending = null;
|
|
1290
|
+
async check(currentVersion, force = false) {
|
|
1291
|
+
const now = this.now();
|
|
1292
|
+
const canRefresh = !force || now - this.checkedAtMs >= FORCE_FLOOR_MS;
|
|
1293
|
+
if ((now >= this.expiresAtMs || force && canRefresh) && !this.pending) {
|
|
1294
|
+
this.pending = this.load();
|
|
1295
|
+
}
|
|
1296
|
+
if (this.pending) {
|
|
1297
|
+
try {
|
|
1298
|
+
this.cached = await this.pending;
|
|
1299
|
+
this.checkedAtMs = this.now();
|
|
1300
|
+
this.expiresAtMs = this.checkedAtMs + (this.cached.ready ? READY_TTL_MS : RETRY_TTL_MS);
|
|
1301
|
+
} catch {
|
|
1302
|
+
this.checkedAtMs = this.now();
|
|
1303
|
+
this.expiresAtMs = this.checkedAtMs + RETRY_TTL_MS;
|
|
1304
|
+
if (!this.cached) return this.report(currentVersion, "Could not check for updates");
|
|
1305
|
+
} finally {
|
|
1306
|
+
this.pending = null;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
return this.report(currentVersion);
|
|
1310
|
+
}
|
|
1311
|
+
report(currentVersion, error) {
|
|
1312
|
+
const latest = this.cached;
|
|
1313
|
+
const newer = latest ? compareVersions(latest.version, currentVersion) === 1 : false;
|
|
1314
|
+
return {
|
|
1315
|
+
current_version: currentVersion,
|
|
1316
|
+
latest_version: latest?.version ?? null,
|
|
1317
|
+
available: Boolean(latest?.ready && newer),
|
|
1318
|
+
ready: latest?.ready ?? false,
|
|
1319
|
+
release_url: latest ? `https://github.com/edihasaj/recall/releases/tag/v${latest.version}` : null,
|
|
1320
|
+
installer_sha256: latest?.installerSha256 ?? null,
|
|
1321
|
+
checked_at: latest?.checkedAt ?? null,
|
|
1322
|
+
...error ? { error } : {}
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
async load() {
|
|
1326
|
+
const response = await this.fetchRelease(RELEASE_API, {
|
|
1327
|
+
headers: {
|
|
1328
|
+
Accept: "application/vnd.github+json",
|
|
1329
|
+
"User-Agent": "recall-update-check"
|
|
1330
|
+
},
|
|
1331
|
+
signal: AbortSignal.timeout(8e3)
|
|
1332
|
+
});
|
|
1333
|
+
if (!response.ok) throw new Error(`release API returned ${response.status}`);
|
|
1334
|
+
const raw = await response.json();
|
|
1335
|
+
const tag = typeof raw.tag_name === "string" ? raw.tag_name : "";
|
|
1336
|
+
if (raw.draft || raw.prerelease || !/^v\d+\.\d+\.\d+$/.test(tag)) {
|
|
1337
|
+
throw new Error("latest release has no stable version");
|
|
1338
|
+
}
|
|
1339
|
+
const version = tag.slice(1);
|
|
1340
|
+
const uploaded = (Array.isArray(raw.assets) ? raw.assets : []).filter((asset) => typeof asset === "object" && asset !== null && typeof asset.name === "string" && asset.state === "uploaded");
|
|
1341
|
+
const assets = new Set(uploaded.map((asset) => asset.name));
|
|
1342
|
+
const installer = uploaded.find((asset) => asset.name === "Recall-Install.ps1");
|
|
1343
|
+
const installerDigest = /^sha256:([a-fA-F0-9]{64})$/.exec(installer?.digest ?? "");
|
|
1344
|
+
const ready = [
|
|
1345
|
+
...READY_FOR_INSTALL,
|
|
1346
|
+
`edihasaj-recall-${version}.tgz`,
|
|
1347
|
+
`edihasaj-recall-${version}.tgz.sha256`
|
|
1348
|
+
].every((name) => assets.has(name)) && installerDigest !== null;
|
|
1349
|
+
return {
|
|
1350
|
+
version,
|
|
1351
|
+
ready,
|
|
1352
|
+
installerSha256: installerDigest?.[1]?.toLowerCase() ?? null,
|
|
1353
|
+
checkedAt: new Date(this.now()).toISOString()
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
var releaseChecker = new ReleaseChecker();
|
|
1358
|
+
|
|
1249
1359
|
// src/daemon.ts
|
|
1250
1360
|
function safeIngestMemory(memoryId) {
|
|
1251
1361
|
safeIngestMemoryById(db, memoryId);
|
|
@@ -1534,6 +1644,15 @@ var server = createServer2(async (req, res) => {
|
|
|
1534
1644
|
embedding_unavailable_reason: getEmbeddingUnavailableReason()
|
|
1535
1645
|
});
|
|
1536
1646
|
}
|
|
1647
|
+
if (path === "/doctor" && method === "GET") {
|
|
1648
|
+
return send(res, 200, {
|
|
1649
|
+
version: pkg.version,
|
|
1650
|
+
...getDoctorStatusReport()
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
if (path === "/update" && method === "GET") {
|
|
1654
|
+
return send(res, 200, await releaseChecker.check(pkg.version, url.searchParams.get("refresh") === "1"));
|
|
1655
|
+
}
|
|
1537
1656
|
if (path === "/compile" && method === "POST") {
|
|
1538
1657
|
const body = await parseBody(req);
|
|
1539
1658
|
const repo = resolveRepo(body);
|