engrm 0.4.37 → 0.4.38
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/hooks/session-start.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/server.js +9 -2
- package/package.json +1 -1
|
@@ -3225,7 +3225,7 @@ import { existsSync as existsSync3, readFileSync as readFileSync2, writeFileSync
|
|
|
3225
3225
|
import { join as join3 } from "node:path";
|
|
3226
3226
|
import { homedir } from "node:os";
|
|
3227
3227
|
var STATE_PATH = join3(homedir(), ".engrm", "config-fingerprint.json");
|
|
3228
|
-
var CLIENT_VERSION = "0.4.
|
|
3228
|
+
var CLIENT_VERSION = "0.4.38";
|
|
3229
3229
|
function hashFile(filePath) {
|
|
3230
3230
|
try {
|
|
3231
3231
|
if (!existsSync3(filePath))
|
package/dist/hooks/stop.js
CHANGED
|
@@ -3087,7 +3087,7 @@ function buildBeacon(db, config, sessionId, metrics) {
|
|
|
3087
3087
|
sentinel_used: valueSignals.security_findings_count > 0,
|
|
3088
3088
|
risk_score: riskScore,
|
|
3089
3089
|
stacks_detected: stacks,
|
|
3090
|
-
client_version: "0.4.
|
|
3090
|
+
client_version: "0.4.38",
|
|
3091
3091
|
context_observations_injected: metrics?.contextObsInjected ?? 0,
|
|
3092
3092
|
context_total_available: metrics?.contextTotalAvailable ?? 0,
|
|
3093
3093
|
recall_attempts: metrics?.recallAttempts ?? 0,
|
package/dist/server.js
CHANGED
|
@@ -16329,7 +16329,14 @@ async function searchObservations(db, input) {
|
|
|
16329
16329
|
}
|
|
16330
16330
|
}
|
|
16331
16331
|
const safeQuery = sanitizeFtsQuery(query);
|
|
16332
|
-
|
|
16332
|
+
let ftsResults = [];
|
|
16333
|
+
if (safeQuery) {
|
|
16334
|
+
try {
|
|
16335
|
+
ftsResults = db.searchFts(safeQuery, projectId, undefined, limit * 2, input.user_id);
|
|
16336
|
+
} catch {
|
|
16337
|
+
ftsResults = [];
|
|
16338
|
+
}
|
|
16339
|
+
}
|
|
16333
16340
|
let vecResults = [];
|
|
16334
16341
|
const queryEmbedding = await embedText(query);
|
|
16335
16342
|
if (queryEmbedding && db.vecAvailable) {
|
|
@@ -22873,7 +22880,7 @@ process.on("SIGTERM", () => {
|
|
|
22873
22880
|
});
|
|
22874
22881
|
var server = new McpServer({
|
|
22875
22882
|
name: "engrm",
|
|
22876
|
-
version: "0.4.
|
|
22883
|
+
version: "0.4.38"
|
|
22877
22884
|
});
|
|
22878
22885
|
server.tool("save_observation", "Directly save a durable memory item now. Use this when something should be remembered on purpose instead of waiting for an end-of-session digest.", {
|
|
22879
22886
|
type: exports_external.enum([
|
package/package.json
CHANGED