@edihasaj/recall 0.7.3 → 0.8.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-I5TTXHOM.js → chunk-G7YTYVRH.js} +2 -2
- package/dist/{chunk-2G5DMOVA.js → chunk-MCR3OGUV.js} +11 -6
- package/dist/chunk-MCR3OGUV.js.map +1 -0
- package/dist/{chunk-OLZS3M24.js → chunk-MT552653.js} +2 -2
- package/dist/cli.js +194 -24
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-2G5DMOVA.js.map +0 -1
- /package/dist/{chunk-I5TTXHOM.js.map → chunk-G7YTYVRH.js.map} +0 -0
- /package/dist/{chunk-OLZS3M24.js.map → chunk-MT552653.js.map} +0 -0
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
scanAndStore,
|
|
31
31
|
sessionEndFallback,
|
|
32
32
|
signalOutcomeFallback
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MCR3OGUV.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_LEASE_SECONDS,
|
|
36
36
|
TaskClaimConflictError,
|
|
@@ -1131,4 +1131,4 @@ function createRecallMcpServer(db = initDb()) {
|
|
|
1131
1131
|
export {
|
|
1132
1132
|
createRecallMcpServer
|
|
1133
1133
|
};
|
|
1134
|
-
//# sourceMappingURL=chunk-
|
|
1134
|
+
//# sourceMappingURL=chunk-G7YTYVRH.js.map
|
|
@@ -3613,10 +3613,15 @@ function getDb(dbPath) {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
return _db;
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3617
|
-
const
|
|
3616
|
+
function migrateIfNeeded(db) {
|
|
3617
|
+
const current = Number(db.$client.pragma("user_version", { simple: true }) ?? 0);
|
|
3618
|
+
if (current === RECALL_DB_USER_VERSION) return;
|
|
3618
3619
|
migrate(db, { migrationsFolder: getMigrationsPath() });
|
|
3619
3620
|
setDbUserVersion(db.$client);
|
|
3621
|
+
}
|
|
3622
|
+
function initDb(dbPath) {
|
|
3623
|
+
const db = getDb(dbPath);
|
|
3624
|
+
migrateIfNeeded(db);
|
|
3620
3625
|
return db;
|
|
3621
3626
|
}
|
|
3622
3627
|
function closeDb() {
|
|
@@ -4644,8 +4649,8 @@ function resolveMemoryInjectionOutcome(db, memoryId, sessionId, outcome) {
|
|
|
4644
4649
|
return Number(result.changes ?? 0) > 0;
|
|
4645
4650
|
}
|
|
4646
4651
|
function pathMatchesMemory(mem, targetPath) {
|
|
4647
|
-
if (!targetPath) return mem.scope === "repo" || mem.scope === "team";
|
|
4648
|
-
if (mem.scope === "repo" || mem.scope === "team") return true;
|
|
4652
|
+
if (!targetPath) return mem.scope === "repo" || mem.scope === "team" || mem.scope === "global";
|
|
4653
|
+
if (mem.scope === "repo" || mem.scope === "team" || mem.scope === "global") return true;
|
|
4649
4654
|
if (!mem.path_scope) return true;
|
|
4650
4655
|
const pattern = mem.path_scope;
|
|
4651
4656
|
if (pattern.endsWith("**")) {
|
|
@@ -4665,7 +4670,7 @@ function toolCallTouchesMemory(mem, toolCall) {
|
|
|
4665
4670
|
const inferredPath = extractPath(toolCall.input_summary);
|
|
4666
4671
|
if (inferredPath && pathMatchesMemory(mem, inferredPath)) return true;
|
|
4667
4672
|
}
|
|
4668
|
-
return mem.scope === "repo" || mem.scope === "team";
|
|
4673
|
+
return mem.scope === "repo" || mem.scope === "team" || mem.scope === "global";
|
|
4669
4674
|
}
|
|
4670
4675
|
function rowToMemoryInjection(row) {
|
|
4671
4676
|
return {
|
|
@@ -6524,4 +6529,4 @@ export {
|
|
|
6524
6529
|
signalOutcomeFallback,
|
|
6525
6530
|
sessionEndFallback
|
|
6526
6531
|
};
|
|
6527
|
-
//# sourceMappingURL=chunk-
|
|
6532
|
+
//# sourceMappingURL=chunk-MCR3OGUV.js.map
|