@vheins/local-memory-mcp 0.8.18 → 0.8.19

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.
@@ -3,8 +3,8 @@ import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
5
5
  var pkgVersion = "0.1.0";
6
- if ("0.8.18") {
7
- pkgVersion = "0.8.18";
6
+ if ("0.8.19") {
7
+ pkgVersion = "0.8.19";
8
8
  } else {
9
9
  let searchDir = __dirname;
10
10
  for (let i = 0; i < 5; i++) {
@@ -2396,8 +2396,8 @@ var TaskUpdateSchema = z.object({
2396
2396
  est_tokens: z.number().int().min(0).optional(),
2397
2397
  force: z.boolean().optional(),
2398
2398
  structured: z.boolean().default(false)
2399
- }).refine((data) => data.id !== void 0 || data.ids !== void 0, {
2400
- message: "Either 'id' or 'ids' must be provided for update"
2399
+ }).refine((data) => data.id !== void 0 || data.ids !== void 0 || data.task_code !== void 0, {
2400
+ message: "Either 'id', 'ids', or 'task_code' must be provided for update"
2401
2401
  }).refine((data) => Object.keys(data).length > 2, {
2402
2402
  message: "At least one field besides repo and id/ids must be provided for update"
2403
2403
  });
@@ -8,7 +8,7 @@ import {
8
8
  createFileSink,
9
9
  listResources,
10
10
  logger
11
- } from "../chunk-JRPFT6T4.js";
11
+ } from "../chunk-TR5SQKA3.js";
12
12
 
13
13
  // src/dashboard/server.ts
14
14
  import express from "express";
@@ -43,7 +43,7 @@ import {
43
43
  setLogLevel,
44
44
  updateSessionFromInitialize,
45
45
  updateSessionRoots
46
- } from "../chunk-JRPFT6T4.js";
46
+ } from "../chunk-TR5SQKA3.js";
47
47
 
48
48
  // src/mcp/server.ts
49
49
  import readline from "readline";
@@ -1267,7 +1267,13 @@ function addRequiredStringField(properties, required, task, field, schema) {
1267
1267
  async function handleTaskUpdate(args, storage, vectors2) {
1268
1268
  const updateData = TaskUpdateSchema.parse(args);
1269
1269
  const { repo, id, ids, comment, force, ...updates } = updateData;
1270
- const targetIds = ids || (id ? [id] : []);
1270
+ let resolvedId = id;
1271
+ if (!resolvedId && !ids && updates.task_code) {
1272
+ const found = storage.tasks.getTaskByCode(repo, updates.task_code);
1273
+ if (!found) throw new Error(`Task not found: ${updates.task_code}`);
1274
+ resolvedId = found.id;
1275
+ }
1276
+ const targetIds = ids || (resolvedId ? [resolvedId] : []);
1271
1277
  if (targetIds.length === 0) {
1272
1278
  throw new Error("Either 'id' or 'ids' must be provided for update");
1273
1279
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vheins/local-memory-mcp",
3
- "version": "0.8.18",
3
+ "version": "0.8.19",
4
4
  "description": "MCP Local Memory Service for coding copilot agents",
5
5
  "mcpName": "io.github.vheins/local-memory-mcp",
6
6
  "type": "module",