@edihasaj/recall 0.9.3 → 0.9.4
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-WZ7P5EFR.js → chunk-5GKJR75B.js} +3 -3
- package/dist/{chunk-R7Z6GISJ.js → chunk-AE646XCL.js} +2 -2
- package/dist/{chunk-GRASHRKW.js → chunk-ETQ4ZICM.js} +6 -6
- package/dist/{chunk-K5PIUKRM.js → chunk-ILPPEXXU.js} +3 -3
- package/dist/{chunk-VYZSP23L.js → chunk-IWKO72WH.js} +21 -17
- package/dist/{chunk-VYZSP23L.js.map → chunk-IWKO72WH.js.map} +1 -1
- package/dist/{chunk-D4LBCVUU.js → chunk-LXM75CET.js} +7 -7
- package/dist/{chunk-HJIUBQOH.js → chunk-O2SK7DSZ.js} +6 -5
- package/dist/chunk-O2SK7DSZ.js.map +1 -0
- package/dist/{chunk-HGZOF7YH.js → chunk-U77N3BFL.js} +2 -2
- package/dist/{chunk-AVK3HSTI.js → chunk-UJ3CEOAR.js} +5 -5
- package/dist/{chunk-PQJRYAVG.js → chunk-UZBJBVAW.js} +12 -4
- package/dist/{chunk-PQJRYAVG.js.map → chunk-UZBJBVAW.js.map} +1 -1
- package/dist/{cleanup-665SJZKN.js → cleanup-AXEV7OYT.js} +5 -5
- package/dist/cli.js +22 -22
- package/dist/daemon.js +10 -10
- package/dist/{dispatcher-XAFET3PC.js → dispatcher-KJHTFHYA.js} +5 -5
- package/dist/{embeddings-E362AC3R.js → embeddings-ZFZRA46X.js} +3 -3
- package/dist/{ingest-BLMXKKGP.js → ingest-HET7DF2P.js} +4 -4
- package/dist/{keychain-PWFWKTZW.js → keychain-PA25RZXE.js} +2 -2
- package/dist/mcp.js +8 -8
- package/dist/{memory-value-5626VN6X.js → memory-value-TNQOOIVG.js} +5 -5
- package/dist/{quality-SIPIGROF.js → quality-JMTT3OOA.js} +6 -6
- package/dist/retrieval-2STFA5XU.js +13 -0
- package/dist/{tasks-QH4HRHPR.js → tasks-INHGPSBF.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-HJIUBQOH.js.map +0 -1
- package/dist/retrieval-FHCKFVXX.js +0 -13
- /package/dist/{chunk-WZ7P5EFR.js.map → chunk-5GKJR75B.js.map} +0 -0
- /package/dist/{chunk-R7Z6GISJ.js.map → chunk-AE646XCL.js.map} +0 -0
- /package/dist/{chunk-GRASHRKW.js.map → chunk-ETQ4ZICM.js.map} +0 -0
- /package/dist/{chunk-K5PIUKRM.js.map → chunk-ILPPEXXU.js.map} +0 -0
- /package/dist/{chunk-D4LBCVUU.js.map → chunk-LXM75CET.js.map} +0 -0
- /package/dist/{chunk-HGZOF7YH.js.map → chunk-U77N3BFL.js.map} +0 -0
- /package/dist/{chunk-AVK3HSTI.js.map → chunk-UJ3CEOAR.js.map} +0 -0
- /package/dist/{cleanup-665SJZKN.js.map → cleanup-AXEV7OYT.js.map} +0 -0
- /package/dist/{dispatcher-XAFET3PC.js.map → dispatcher-KJHTFHYA.js.map} +0 -0
- /package/dist/{embeddings-E362AC3R.js.map → embeddings-ZFZRA46X.js.map} +0 -0
- /package/dist/{ingest-BLMXKKGP.js.map → ingest-HET7DF2P.js.map} +0 -0
- /package/dist/{keychain-PWFWKTZW.js.map → keychain-PA25RZXE.js.map} +0 -0
- /package/dist/{memory-value-5626VN6X.js.map → memory-value-TNQOOIVG.js.map} +0 -0
- /package/dist/{quality-SIPIGROF.js.map → quality-JMTT3OOA.js.map} +0 -0
- /package/dist/{retrieval-FHCKFVXX.js.map → retrieval-2STFA5XU.js.map} +0 -0
- /package/dist/{tasks-QH4HRHPR.js.map → tasks-INHGPSBF.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CONFIDENCE,
|
|
3
3
|
PROMOTION,
|
|
4
4
|
queueMemoryEmbeddingSync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UZBJBVAW.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-U77N3BFL.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
recordAudit,
|
|
7
7
|
redactSensitiveValue,
|
|
8
8
|
seedScannedConfidence
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O2SK7DSZ.js";
|
|
10
10
|
import {
|
|
11
11
|
recordInjectionValueEvents,
|
|
12
12
|
recordMemoryInjections,
|
|
13
13
|
recordOutcomeValueEvent,
|
|
14
14
|
resolveMemoryInjectionOutcome
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5GKJR75B.js";
|
|
16
16
|
import {
|
|
17
17
|
textMatchScore
|
|
18
18
|
} from "./chunk-FHEH6QDU.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
recordFeedback,
|
|
35
35
|
rejectMemory,
|
|
36
36
|
statusFromConfidence
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-U77N3BFL.js";
|
|
38
38
|
import {
|
|
39
39
|
CONFIDENCE,
|
|
40
40
|
RetrievalEvalCase,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
readUtf8FileIfExists,
|
|
53
53
|
resolveProvider,
|
|
54
54
|
tagActivitySource
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-UZBJBVAW.js";
|
|
56
56
|
import {
|
|
57
57
|
Column,
|
|
58
58
|
Columns,
|
|
@@ -6535,4 +6535,4 @@ export {
|
|
|
6535
6535
|
pruneMemories,
|
|
6536
6536
|
formatPruneReport
|
|
6537
6537
|
};
|
|
6538
|
-
//# sourceMappingURL=chunk-
|
|
6538
|
+
//# sourceMappingURL=chunk-UJ3CEOAR.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getProviderConfig,
|
|
3
3
|
hasProviderConfigured,
|
|
4
4
|
init_keychain
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IWKO72WH.js";
|
|
6
6
|
import {
|
|
7
7
|
eq,
|
|
8
8
|
llmUsage,
|
|
@@ -1561,7 +1561,9 @@ async function callOpenAi(apiKey, model, input) {
|
|
|
1561
1561
|
{ role: "user", content: input.user }
|
|
1562
1562
|
],
|
|
1563
1563
|
max_completion_tokens: input.max_output_tokens ?? 2048,
|
|
1564
|
-
temperature: input.temperature ?? 0
|
|
1564
|
+
...!isReasoningModel(model) ? { temperature: input.temperature ?? 0 } : {},
|
|
1565
|
+
...input.json_output ? { response_format: { type: "json_object" } } : {},
|
|
1566
|
+
...isReasoningModel(model) ? { reasoning_effort: "low" } : {}
|
|
1565
1567
|
})
|
|
1566
1568
|
});
|
|
1567
1569
|
if (!response.ok) {
|
|
@@ -1603,7 +1605,9 @@ async function callAzureOpenAi(config, deployment, input) {
|
|
|
1603
1605
|
{ role: "user", content: input.user }
|
|
1604
1606
|
],
|
|
1605
1607
|
max_completion_tokens: input.max_output_tokens ?? 2048,
|
|
1606
|
-
temperature: input.temperature ?? 0
|
|
1608
|
+
...!isReasoningModel(deployment) ? { temperature: input.temperature ?? 0 } : {},
|
|
1609
|
+
...input.json_output ? { response_format: { type: "json_object" } } : {},
|
|
1610
|
+
...isReasoningModel(deployment) ? { reasoning_effort: "low" } : {}
|
|
1607
1611
|
})
|
|
1608
1612
|
});
|
|
1609
1613
|
if (!response.ok) {
|
|
@@ -1673,6 +1677,10 @@ function computeCost(model, inputTokens, outputTokens) {
|
|
|
1673
1677
|
if (!rates) return null;
|
|
1674
1678
|
return inputTokens / 1e6 * rates.input + outputTokens / 1e6 * rates.output;
|
|
1675
1679
|
}
|
|
1680
|
+
function isReasoningModel(model) {
|
|
1681
|
+
const normalized = model.trim().toLowerCase();
|
|
1682
|
+
return normalized.startsWith("gpt-5") || /^o[134](?:-|$)/.test(normalized);
|
|
1683
|
+
}
|
|
1676
1684
|
async function recordUsage(db, row) {
|
|
1677
1685
|
await db.insert(llmUsage).values({
|
|
1678
1686
|
id: randomUUID(),
|
|
@@ -2422,4 +2430,4 @@ export {
|
|
|
2422
2430
|
findSemanticDuplicates,
|
|
2423
2431
|
findSimilarRejectedExemplar
|
|
2424
2432
|
};
|
|
2425
|
-
//# sourceMappingURL=chunk-
|
|
2433
|
+
//# sourceMappingURL=chunk-UZBJBVAW.js.map
|