@vheins/local-memory-mcp 0.8.13 → 0.8.15
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-54RJM6ZE.js → chunk-4LVZQKWD.js} +1418 -1418
- package/dist/dashboard/server.js +1 -1
- package/dist/mcp/server.js +14 -3
- package/package.json +1 -1
package/dist/dashboard/server.js
CHANGED
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-4LVZQKWD.js";
|
|
47
47
|
|
|
48
48
|
// src/mcp/server.ts
|
|
49
49
|
import readline from "readline";
|
|
@@ -1273,6 +1273,7 @@ async function handleTaskUpdate(args, storage, vectors2) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
let updatedCount = 0;
|
|
1275
1275
|
const updatedTasks = [];
|
|
1276
|
+
const completedTaskIds = [];
|
|
1276
1277
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1277
1278
|
const isStatusChangingGlobal = updates.status !== void 0;
|
|
1278
1279
|
for (const targetId of targetIds) {
|
|
@@ -1332,7 +1333,7 @@ async function handleTaskUpdate(args, storage, vectors2) {
|
|
|
1332
1333
|
});
|
|
1333
1334
|
}
|
|
1334
1335
|
if (updates.status === "completed" && existingTask.status !== "completed") {
|
|
1335
|
-
|
|
1336
|
+
completedTaskIds.push(targetId);
|
|
1336
1337
|
}
|
|
1337
1338
|
updatedTasks.push({ id: targetId, code: updates.task_code || existingTask.task_code });
|
|
1338
1339
|
updatedCount++;
|
|
@@ -1359,7 +1360,7 @@ async function handleTaskUpdate(args, storage, vectors2) {
|
|
|
1359
1360
|
});
|
|
1360
1361
|
const isCompleted = updates.status === "completed" && updatedCount > 0;
|
|
1361
1362
|
const summaryText = isCompleted ? `Updated ${updatedCount} task(s) in repo "${repo}". \u2705 Task marked as completed \u2014 don't forget to commit your changes!` : `Updated ${updatedCount} task(s) in repo "${repo}".`;
|
|
1362
|
-
|
|
1363
|
+
const response = createMcpResponse(
|
|
1363
1364
|
{
|
|
1364
1365
|
success: true,
|
|
1365
1366
|
id: id || void 0,
|
|
@@ -1381,6 +1382,16 @@ async function handleTaskUpdate(args, storage, vectors2) {
|
|
|
1381
1382
|
}))
|
|
1382
1383
|
}
|
|
1383
1384
|
);
|
|
1385
|
+
if (completedTaskIds.length > 0) {
|
|
1386
|
+
setImmediate(() => {
|
|
1387
|
+
for (const taskId of completedTaskIds) {
|
|
1388
|
+
archiveTaskToMemory(taskId, repo, storage, vectors2).catch(
|
|
1389
|
+
(err) => logger.error("Failed to archive task to memory", { taskId, error: String(err) })
|
|
1390
|
+
);
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
return response;
|
|
1384
1395
|
}
|
|
1385
1396
|
async function handleTaskDelete(args, storage) {
|
|
1386
1397
|
const validated = TaskDeleteSchema.parse(args);
|