@vheins/local-memory-mcp 0.16.2 → 0.16.3
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-SXIFTAR7.js → chunk-MSP4MIT7.js} +24 -4
- package/dist/dashboard/public/assets/index-rb4jB2IX.js +149 -0
- package/dist/dashboard/public/index.html +1 -1
- package/dist/dashboard/server.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/prompts/server/instructions.md +1 -1
- package/dist/prompts/task-memory-executor.md +1 -1
- package/package.json +1 -1
- package/dist/dashboard/public/assets/index-DtO8Q1SV.js +0 -150
|
@@ -81,8 +81,8 @@ function loadServerInstructions() {
|
|
|
81
81
|
// src/mcp/capabilities.ts
|
|
82
82
|
var __dirname2 = path2.dirname(fileURLToPath2(import.meta.url));
|
|
83
83
|
var pkgVersion = "0.1.0";
|
|
84
|
-
if ("0.16.
|
|
85
|
-
pkgVersion = "0.16.
|
|
84
|
+
if ("0.16.3") {
|
|
85
|
+
pkgVersion = "0.16.3";
|
|
86
86
|
} else {
|
|
87
87
|
let searchDir = __dirname2;
|
|
88
88
|
for (let i = 0; i < 5; i++) {
|
|
@@ -5770,6 +5770,9 @@ async function completePromptArgument(name, argName, value, contextArguments, da
|
|
|
5770
5770
|
return [];
|
|
5771
5771
|
}
|
|
5772
5772
|
|
|
5773
|
+
// src/mcp/tools/handoff.manage.ts
|
|
5774
|
+
import { randomUUID as randomUUID2 } from "crypto";
|
|
5775
|
+
|
|
5773
5776
|
// src/mcp/utils/mcp-response.ts
|
|
5774
5777
|
import { z as z2 } from "zod";
|
|
5775
5778
|
var McpAnnotationsSchema = z2.object({
|
|
@@ -6015,14 +6018,15 @@ async function handleTaskClaim(args, storage) {
|
|
|
6015
6018
|
const { repo, task_id, task_code, agent, role, metadata, structured } = validated;
|
|
6016
6019
|
let taskId = task_id;
|
|
6017
6020
|
let resolvedTaskCode;
|
|
6021
|
+
let task = null;
|
|
6018
6022
|
if (taskId) {
|
|
6019
|
-
|
|
6023
|
+
task = storage.tasks.getTaskById(taskId);
|
|
6020
6024
|
if (!task || task.repo !== repo) {
|
|
6021
6025
|
throw new Error(`Task not found: ${taskId} in repo ${repo}`);
|
|
6022
6026
|
}
|
|
6023
6027
|
resolvedTaskCode = task.task_code;
|
|
6024
6028
|
} else if (task_code) {
|
|
6025
|
-
|
|
6029
|
+
task = storage.tasks.getTaskByCode(repo, task_code);
|
|
6026
6030
|
if (!task) {
|
|
6027
6031
|
throw new Error(`Task not found: ${task_code} in repo ${repo}`);
|
|
6028
6032
|
}
|
|
@@ -6038,6 +6042,22 @@ async function handleTaskClaim(args, storage) {
|
|
|
6038
6042
|
role,
|
|
6039
6043
|
metadata
|
|
6040
6044
|
});
|
|
6045
|
+
if (task && task.status !== "completed") {
|
|
6046
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
6047
|
+
storage.tasks.updateTask(task.id, { status: "in_progress", in_progress_at: now });
|
|
6048
|
+
storage.taskComments.insertTaskComment({
|
|
6049
|
+
id: randomUUID2(),
|
|
6050
|
+
task_id: task.id,
|
|
6051
|
+
repo,
|
|
6052
|
+
comment: `Claimed by ${agent} \u2014 auto-promoted to in_progress`,
|
|
6053
|
+
agent,
|
|
6054
|
+
role: role || "unknown",
|
|
6055
|
+
model: "system",
|
|
6056
|
+
previous_status: task.status,
|
|
6057
|
+
next_status: "in_progress",
|
|
6058
|
+
created_at: now
|
|
6059
|
+
});
|
|
6060
|
+
}
|
|
6041
6061
|
const responseData = {
|
|
6042
6062
|
...claim,
|
|
6043
6063
|
task_code: resolvedTaskCode
|