@vheins/local-memory-mcp 0.18.7 → 0.18.8

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.
@@ -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.18.7") {
85
- pkgVersion = "0.18.7";
84
+ if ("0.18.8") {
85
+ pkgVersion = "0.18.8";
86
86
  } else {
87
87
  let searchDir = __dirname2;
88
88
  for (let i = 0; i < 5; i++) {
@@ -16,7 +16,7 @@ import {
16
16
  handleTaskClaim,
17
17
  listResources,
18
18
  logger
19
- } from "../chunk-OLPQSNH4.js";
19
+ } from "../chunk-PXTBSGN4.js";
20
20
 
21
21
  // src/dashboard/server.ts
22
22
  import express from "express";
@@ -63,7 +63,7 @@ import {
63
63
  toContextSlug,
64
64
  updateSessionFromInitialize,
65
65
  updateSessionRoots
66
- } from "../chunk-OLPQSNH4.js";
66
+ } from "../chunk-PXTBSGN4.js";
67
67
 
68
68
  // src/mcp/server.ts
69
69
  import readline from "readline";
@@ -1307,6 +1307,14 @@ async function handleTaskUpdate(args, storage, vectors2) {
1307
1307
  if (updates.est_tokens === void 0) {
1308
1308
  throw new Error("est_tokens is required when changing task status to completed");
1309
1309
  }
1310
+ const children = storage.tasks.getChildrenByParentId(targetId);
1311
+ const incompleteChildren = children.filter((c) => c.status !== "completed");
1312
+ if (incompleteChildren.length > 0) {
1313
+ const childList = incompleteChildren.map((c) => `[${c.task_code}] ${c.title} (${c.status})`).join("; ");
1314
+ throw new Error(
1315
+ `Cannot complete task [${existingTask.task_code}] "${existingTask.title}" \u2014 it has ${incompleteChildren.length} incomplete child task(s). Complete the following child task(s) first: ${childList}`
1316
+ );
1317
+ }
1310
1318
  }
1311
1319
  if (updates.task_code && storage.tasks.isTaskCodeDuplicate(owner, repo, updates.task_code, targetId)) {
1312
1320
  throw new Error(`Duplicate task_code: '${updates.task_code}' already exists`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.18.7",
3
+ "version": "0.18.8",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",