@edihasaj/recall 1.0.5 → 1.0.7
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-YHNNSDCJ.js → chunk-2EEWN7HN.js} +8 -9
- package/dist/{chunk-YHNNSDCJ.js.map → chunk-2EEWN7HN.js.map} +1 -1
- package/dist/{chunk-MZWZKD5S.js → chunk-4JWHYIA3.js} +3 -3
- package/dist/{chunk-57YMI65K.js → chunk-5ZEPZ5QW.js} +7 -7
- package/dist/{chunk-Q45VSX2J.js → chunk-DCXFGCSH.js} +2 -2
- package/dist/{chunk-NKOF7N43.js → chunk-EMOJDSNY.js} +6 -6
- package/dist/{chunk-GJKKJYFT.js → chunk-GA2KT2ML.js} +3 -3
- package/dist/{chunk-4PK3YODK.js → chunk-IG4BUAF4.js} +2 -2
- package/dist/{chunk-4LE3UXSJ.js → chunk-M2M4ESTG.js} +3 -3
- package/dist/{chunk-U6FQSWUL.js → chunk-W6MMJHLE.js} +21 -5
- package/dist/chunk-W6MMJHLE.js.map +1 -0
- package/dist/{cleanup-35DR4UG4.js → cleanup-O4OZQGOW.js} +4 -4
- package/dist/cli.js +18 -18
- package/dist/daemon.js +9 -9
- package/dist/{dispatcher-ZFATT7XU.js → dispatcher-UG2PPDT5.js} +4 -4
- package/dist/{embeddings-ER6YQSRM.js → embeddings-53BVUPE5.js} +2 -2
- package/dist/{ingest-S2KB2EY6.js → ingest-BRBJJ5OL.js} +3 -3
- package/dist/mcp.js +7 -7
- package/dist/{memory-value-NM24LKJY.js → memory-value-ARQAZW5U.js} +4 -4
- package/dist/{quality-74KRD5CP.js → quality-CAZATB4M.js} +5 -5
- package/dist/{retrieval-E5LOMDYJ.js → retrieval-2RVT5VOF.js} +4 -4
- package/dist/{tasks-ETMSGUUE.js → tasks-XNROA7VL.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-U6FQSWUL.js.map +0 -1
- /package/dist/{chunk-MZWZKD5S.js.map → chunk-4JWHYIA3.js.map} +0 -0
- /package/dist/{chunk-57YMI65K.js.map → chunk-5ZEPZ5QW.js.map} +0 -0
- /package/dist/{chunk-Q45VSX2J.js.map → chunk-DCXFGCSH.js.map} +0 -0
- /package/dist/{chunk-NKOF7N43.js.map → chunk-EMOJDSNY.js.map} +0 -0
- /package/dist/{chunk-GJKKJYFT.js.map → chunk-GA2KT2ML.js.map} +0 -0
- /package/dist/{chunk-4PK3YODK.js.map → chunk-IG4BUAF4.js.map} +0 -0
- /package/dist/{chunk-4LE3UXSJ.js.map → chunk-M2M4ESTG.js.map} +0 -0
- /package/dist/{cleanup-35DR4UG4.js.map → cleanup-O4OZQGOW.js.map} +0 -0
- /package/dist/{dispatcher-ZFATT7XU.js.map → dispatcher-UG2PPDT5.js.map} +0 -0
- /package/dist/{embeddings-ER6YQSRM.js.map → embeddings-53BVUPE5.js.map} +0 -0
- /package/dist/{ingest-S2KB2EY6.js.map → ingest-BRBJJ5OL.js.map} +0 -0
- /package/dist/{memory-value-NM24LKJY.js.map → memory-value-ARQAZW5U.js.map} +0 -0
- /package/dist/{quality-74KRD5CP.js.map → quality-CAZATB4M.js.map} +0 -0
- /package/dist/{retrieval-E5LOMDYJ.js.map → retrieval-2RVT5VOF.js.map} +0 -0
- /package/dist/{tasks-ETMSGUUE.js.map → tasks-XNROA7VL.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getMemory
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IG4BUAF4.js";
|
|
4
4
|
import {
|
|
5
5
|
hybridSearch,
|
|
6
6
|
searchMemoryFtsIndex
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W6MMJHLE.js";
|
|
8
8
|
import {
|
|
9
9
|
listEntitiesForMemory,
|
|
10
10
|
listMemoryIdsForEntity,
|
|
@@ -120,4 +120,4 @@ async function graphQuery(db, query, embeddingConfig, options = {}) {
|
|
|
120
120
|
export {
|
|
121
121
|
graphQuery
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk-
|
|
123
|
+
//# sourceMappingURL=chunk-4JWHYIA3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
graphQuery
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4JWHYIA3.js";
|
|
4
4
|
import {
|
|
5
5
|
captureCorrectionFallback,
|
|
6
6
|
compileContext,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
scanAndStore,
|
|
27
27
|
sessionEndFallback,
|
|
28
28
|
signalOutcomeFallback
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2EEWN7HN.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_LEASE_SECONDS,
|
|
32
32
|
TaskClaimConflictError,
|
|
@@ -47,21 +47,21 @@ import {
|
|
|
47
47
|
releaseTask,
|
|
48
48
|
rollbackMemory,
|
|
49
49
|
submitTask
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-M2M4ESTG.js";
|
|
51
51
|
import {
|
|
52
52
|
recordCompletionUseValueEventsSemantic
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GA2KT2ML.js";
|
|
54
54
|
import {
|
|
55
55
|
confirmMemory,
|
|
56
56
|
demoteGlobalMemory,
|
|
57
57
|
getMemory,
|
|
58
58
|
queryMemories,
|
|
59
59
|
rejectMemory
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-IG4BUAF4.js";
|
|
61
61
|
import {
|
|
62
62
|
loadEmbeddingConfigFromEnv,
|
|
63
63
|
tagActivitySource
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-W6MMJHLE.js";
|
|
65
65
|
import {
|
|
66
66
|
getEntity,
|
|
67
67
|
listEntities,
|
|
@@ -1197,4 +1197,4 @@ function createRecallMcpServer(db = initDb()) {
|
|
|
1197
1197
|
export {
|
|
1198
1198
|
createRecallMcpServer
|
|
1199
1199
|
};
|
|
1200
|
-
//# sourceMappingURL=chunk-
|
|
1200
|
+
//# sourceMappingURL=chunk-5ZEPZ5QW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeMemoryValueReport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GA2KT2ML.js";
|
|
4
4
|
import {
|
|
5
5
|
desc
|
|
6
6
|
} from "./chunk-CW3XJDH7.js";
|
|
@@ -180,4 +180,4 @@ export {
|
|
|
180
180
|
diffQualitySnapshots,
|
|
181
181
|
formatQualityReport
|
|
182
182
|
};
|
|
183
|
-
//# sourceMappingURL=chunk-
|
|
183
|
+
//# sourceMappingURL=chunk-DCXFGCSH.js.map
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
listInjectedHistoryIdsForSession,
|
|
12
12
|
signalOutcomeFallback,
|
|
13
13
|
startSessionLifecycle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2EEWN7HN.js";
|
|
15
15
|
import {
|
|
16
16
|
detectCorrections,
|
|
17
17
|
isHighRiskRule,
|
|
18
18
|
isTriggerTemplateRule,
|
|
19
19
|
peekTasks,
|
|
20
20
|
redactSensitiveText
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M2M4ESTG.js";
|
|
22
22
|
import {
|
|
23
23
|
detectAndRecordRetrievalMissesSemantic,
|
|
24
24
|
listInjectedMemoryIdsForSession,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
pathMatchesMemory,
|
|
27
27
|
recordCompletionUseValueEventsSemantic,
|
|
28
28
|
toolCallTouchesMemory
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GA2KT2ML.js";
|
|
30
30
|
import {
|
|
31
31
|
textMatches
|
|
32
32
|
} from "./chunk-FHEH6QDU.js";
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
hookCallDedupeKey,
|
|
38
38
|
queryMemories
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IG4BUAF4.js";
|
|
40
40
|
import {
|
|
41
41
|
tagActivitySource
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-W6MMJHLE.js";
|
|
43
43
|
import {
|
|
44
44
|
and,
|
|
45
45
|
eq,
|
|
@@ -1167,4 +1167,4 @@ export {
|
|
|
1167
1167
|
readCodexSessionEndInputFromStdin,
|
|
1168
1168
|
dispatchCodexNotify
|
|
1169
1169
|
};
|
|
1170
|
-
//# sourceMappingURL=chunk-
|
|
1170
|
+
//# sourceMappingURL=chunk-EMOJDSNY.js.map
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
getMemory,
|
|
10
10
|
promoteMemory,
|
|
11
11
|
queryMemories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IG4BUAF4.js";
|
|
13
13
|
import {
|
|
14
14
|
cosineSimilarity,
|
|
15
15
|
generateEmbedding,
|
|
16
16
|
loadEmbedding,
|
|
17
17
|
loadEmbeddingConfigFromEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W6MMJHLE.js";
|
|
19
19
|
import {
|
|
20
20
|
and,
|
|
21
21
|
eq,
|
|
@@ -612,4 +612,4 @@ export {
|
|
|
612
612
|
detectAndRecordRetrievalMissesSemantic,
|
|
613
613
|
computeMemoryValueReport
|
|
614
614
|
};
|
|
615
|
-
//# sourceMappingURL=chunk-
|
|
615
|
+
//# sourceMappingURL=chunk-GA2KT2ML.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CONFIDENCE,
|
|
3
3
|
PROMOTION,
|
|
4
4
|
queueMemoryEmbeddingSync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W6MMJHLE.js";
|
|
6
6
|
import {
|
|
7
7
|
isPlausibleEntityName,
|
|
8
8
|
linkMemoryToEntity,
|
|
@@ -810,4 +810,4 @@ export {
|
|
|
810
810
|
getMemoryFeedbackSummaries,
|
|
811
811
|
feedbackWeightedScore
|
|
812
812
|
};
|
|
813
|
-
//# sourceMappingURL=chunk-
|
|
813
|
+
//# sourceMappingURL=chunk-IG4BUAF4.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
promoteMemory,
|
|
21
21
|
queryMemories,
|
|
22
22
|
updateMemoryCaptureContext
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IG4BUAF4.js";
|
|
24
24
|
import {
|
|
25
25
|
CONFIDENCE,
|
|
26
26
|
LlmCredentialError,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
findSimilarRejectedExemplar,
|
|
31
31
|
loadEmbeddingConfigFromEnv,
|
|
32
32
|
queueMemoryEmbeddingSync
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-W6MMJHLE.js";
|
|
34
34
|
import {
|
|
35
35
|
hasProviderConfigured,
|
|
36
36
|
init_keychain
|
|
@@ -3968,4 +3968,4 @@ export {
|
|
|
3968
3968
|
processCorrection,
|
|
3969
3969
|
processReviewFeedback
|
|
3970
3970
|
};
|
|
3971
|
-
//# sourceMappingURL=chunk-
|
|
3971
|
+
//# sourceMappingURL=chunk-M2M4ESTG.js.map
|
|
@@ -1912,8 +1912,24 @@ async function rerankPairs(query, documents) {
|
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
+
// src/embeddings/responsive-batches.ts
|
|
1916
|
+
var BACKGROUND_EMBEDDING_BATCH_SIZE = 8;
|
|
1917
|
+
function yieldToEventLoop() {
|
|
1918
|
+
return new Promise((resolve) => setImmediate(resolve));
|
|
1919
|
+
}
|
|
1920
|
+
async function processInResponsiveBatches(items, processBatch, options = {}) {
|
|
1921
|
+
const batchSize = options.batchSize ?? BACKGROUND_EMBEDDING_BATCH_SIZE;
|
|
1922
|
+
const yieldControl = options.yieldControl ?? yieldToEventLoop;
|
|
1923
|
+
if (!Number.isInteger(batchSize) || batchSize <= 0) {
|
|
1924
|
+
throw new Error(`Invalid background embedding batch size: ${batchSize}`);
|
|
1925
|
+
}
|
|
1926
|
+
for (let i = 0; i < items.length; i += batchSize) {
|
|
1927
|
+
await processBatch(items.slice(i, i + batchSize));
|
|
1928
|
+
if (i + batchSize < items.length) await yieldControl();
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1915
1932
|
// src/embeddings/embeddings.ts
|
|
1916
|
-
var EMBEDDING_BATCH_SIZE = 100;
|
|
1917
1933
|
var MIN_HYBRID_VECTOR_SIMILARITY = (() => {
|
|
1918
1934
|
const raw = process.env.RECALL_HYBRID_MIN_SIM;
|
|
1919
1935
|
if (!raw) return 0.7;
|
|
@@ -2142,8 +2158,7 @@ async function bootstrapEmbeddings(db, config, options = {}) {
|
|
|
2142
2158
|
}
|
|
2143
2159
|
}
|
|
2144
2160
|
let total = 0;
|
|
2145
|
-
|
|
2146
|
-
const batch = pending.slice(i, i + EMBEDDING_BATCH_SIZE);
|
|
2161
|
+
await processInResponsiveBatches(pending, async (batch) => {
|
|
2147
2162
|
const embeddings = await generateEmbeddings(
|
|
2148
2163
|
batch.map((row) => row.text),
|
|
2149
2164
|
config,
|
|
@@ -2153,7 +2168,7 @@ async function bootstrapEmbeddings(db, config, options = {}) {
|
|
|
2153
2168
|
storeEmbedding(db, batch[j].id, batch[j].text, embeddings[j], config);
|
|
2154
2169
|
total++;
|
|
2155
2170
|
}
|
|
2156
|
-
}
|
|
2171
|
+
});
|
|
2157
2172
|
rebuildMemoryFtsIndex(db, options);
|
|
2158
2173
|
rebuildMemoryVecIndex(db, config, options);
|
|
2159
2174
|
return total;
|
|
@@ -2410,6 +2425,7 @@ export {
|
|
|
2410
2425
|
callLlm,
|
|
2411
2426
|
readUtf8FileIfExists,
|
|
2412
2427
|
atomicWriteUtf8File,
|
|
2428
|
+
processInResponsiveBatches,
|
|
2413
2429
|
loadEmbeddingConfigFromEnv,
|
|
2414
2430
|
getEmbeddingModelInfo,
|
|
2415
2431
|
ensureEmbeddingProviderReady,
|
|
@@ -2431,4 +2447,4 @@ export {
|
|
|
2431
2447
|
findSemanticDuplicates,
|
|
2432
2448
|
findSimilarRejectedExemplar
|
|
2433
2449
|
};
|
|
2434
|
-
//# sourceMappingURL=chunk-
|
|
2450
|
+
//# sourceMappingURL=chunk-W6MMJHLE.js.map
|