@vheins/local-memory-mcp 0.8.10 → 0.8.12
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.
|
@@ -166,7 +166,7 @@ function createFileSink(logDir, maxFiles = 5) {
|
|
|
166
166
|
const date = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "");
|
|
167
167
|
const logFile = `${logDir}/mcp-${date}.log`;
|
|
168
168
|
return (payload) => {
|
|
169
|
-
const line = `${(/* @__PURE__ */ new Date()).toISOString()} [${payload.level.toUpperCase()}] ${JSON.stringify(payload.data)}
|
|
169
|
+
const line = `${(/* @__PURE__ */ new Date()).toISOString()} [${payload.level.toUpperCase()}] [pid:${process.pid}] ${JSON.stringify(payload.data)}
|
|
170
170
|
`;
|
|
171
171
|
try {
|
|
172
172
|
fs2.appendFileSync(logFile, line);
|
package/dist/dashboard/server.js
CHANGED
|
@@ -4,9 +4,11 @@ import {
|
|
|
4
4
|
PROMPTS,
|
|
5
5
|
SQLiteStore,
|
|
6
6
|
TOOL_DEFINITIONS,
|
|
7
|
+
addLogSink,
|
|
8
|
+
createFileSink,
|
|
7
9
|
listResources,
|
|
8
10
|
logger
|
|
9
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-PAEKULGL.js";
|
|
10
12
|
|
|
11
13
|
// src/dashboard/server.ts
|
|
12
14
|
import express from "express";
|
|
@@ -858,6 +860,7 @@ var routes_default = router4;
|
|
|
858
860
|
|
|
859
861
|
// src/dashboard/server.ts
|
|
860
862
|
var __dirname3 = path3.dirname(fileURLToPath3(import.meta.url));
|
|
863
|
+
addLogSink(createFileSink(path3.dirname(db.getDbPath())));
|
|
861
864
|
var pkg2 = { version: "0.0.0" };
|
|
862
865
|
try {
|
|
863
866
|
const pkgPath = path3.join(__dirname3, "../../package.json");
|
|
@@ -874,8 +877,9 @@ app.use((req, res, next) => {
|
|
|
874
877
|
const start = Date.now();
|
|
875
878
|
res.on("finish", () => {
|
|
876
879
|
const duration = Date.now() - start;
|
|
880
|
+
logger.info("[Dashboard] request", { method: req.method, path: req.path, status: res.statusCode, ms: duration });
|
|
877
881
|
if (duration > 1e3) {
|
|
878
|
-
logger.warn("
|
|
882
|
+
logger.warn("[Dashboard] slow request", { method: req.method, path: req.path, ms: duration });
|
|
879
883
|
}
|
|
880
884
|
});
|
|
881
885
|
next();
|
package/dist/mcp/server.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
setLogLevel,
|
|
44
44
|
updateSessionFromInitialize,
|
|
45
45
|
updateSessionRoots
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-PAEKULGL.js";
|
|
47
47
|
|
|
48
48
|
// src/mcp/server.ts
|
|
49
49
|
import readline from "readline";
|
|
@@ -1357,6 +1357,8 @@ async function handleTaskUpdate(args, storage, vectors2) {
|
|
|
1357
1357
|
priority: 0.6
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
+
const isCompleted = updates.status === "completed" && updatedCount > 0;
|
|
1361
|
+
const summaryText = isCompleted ? `Updated ${updatedCount} task(s) in repo "${repo}". \u2705 Task marked as completed \u2014 don't forget to commit & push your changes!` : `Updated ${updatedCount} task(s) in repo "${repo}".`;
|
|
1360
1362
|
return createMcpResponse(
|
|
1361
1363
|
{
|
|
1362
1364
|
success: true,
|
|
@@ -1367,7 +1369,7 @@ async function handleTaskUpdate(args, storage, vectors2) {
|
|
|
1367
1369
|
updatedCount,
|
|
1368
1370
|
updatedFields: Object.keys(updates)
|
|
1369
1371
|
},
|
|
1370
|
-
|
|
1372
|
+
summaryText,
|
|
1371
1373
|
{
|
|
1372
1374
|
includeSerializedStructuredContent: updateData.structured,
|
|
1373
1375
|
resourceLinks: resourceLinks.map((link) => ({
|