vexp-mcp 3.4.0 → 3.4.1

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.
@@ -84,7 +84,7 @@ export function daemonUpgradeDecision(o) {
84
84
  }
85
85
  if (!isOlderVersion(o.running, o.engine))
86
86
  return { replace: false, why: "daemon is not older" };
87
- if (o.exe && /vexp\.vexp-vscode-\d/i.test(o.exe))
87
+ if (o.exe && editorOwnedExe(o.exe))
88
88
  return { replace: false, why: "started by an editor window" };
89
89
  if (o.status !== "healthy")
90
90
  return { replace: false, why: "index not settled" };
@@ -94,6 +94,24 @@ export function daemonUpgradeDecision(o) {
94
94
  }
95
95
  return { replace: true };
96
96
  }
97
+ /**
98
+ * Whether a daemon's executable is the engine inside an editor extension's
99
+ * folder (rule 4). The path is resolved when it exists: a daemon started
100
+ * through vexp's version-free link (<home>/.vexp/bin) reports the link on
101
+ * macOS and Windows, where the engine records the path it was started as,
102
+ * and the link names no extension folder (field report, 2026-11-10).
103
+ */
104
+ function editorOwnedExe(exe) {
105
+ const editor = /vexp\.vexp-vscode-\d/i;
106
+ if (editor.test(exe))
107
+ return true;
108
+ try {
109
+ return editor.test(fs.realpathSync.native(exe));
110
+ }
111
+ catch {
112
+ return false; // gone, or not a path on this machine
113
+ }
114
+ }
97
115
  /**
98
116
  * Where the attempts are remembered: vexp's own state directory, one small
99
117
  * file for the machine, shared by the CLI and the MCP server so that they
@@ -40,8 +40,18 @@ export async function handleGetSkeleton(params, daemon) {
40
40
  const result = await daemon.call("get_skeleton", daemonParams);
41
41
  return formatSkeletonsAsText(result);
42
42
  }
43
- function formatSkeletonsAsText(nodes) {
43
+ export function formatSkeletonsAsText(all) {
44
44
  const lines = [];
45
+ // A requested file with nothing to show says why, in place of a skeleton:
46
+ // a file the index skipped as too large read "files may not be indexed
47
+ // yet" and never would be (field report, 2026-11-10). Lockstep with the
48
+ // Rust server's render_skeleton_result.
49
+ const notIndexed = Array.isArray(all) ? all.filter((n) => typeof n.not_indexed === "string") : [];
50
+ const nodes = Array.isArray(all) ? all.filter((n) => typeof n.not_indexed !== "string") : all;
51
+ const reasons = notIndexed.map((n) => `## \`${n.file_path}\`\n\n*${n.not_indexed}*\n`);
52
+ if (Array.isArray(nodes) && nodes.length === 0 && reasons.length > 0) {
53
+ return ["# File Skeletons", "", ...reasons].join("\n");
54
+ }
45
55
  if (!Array.isArray(nodes) || nodes.length === 0) {
46
56
  lines.push("# File Skeletons");
47
57
  lines.push("");
@@ -78,5 +88,6 @@ function formatSkeletonsAsText(nodes) {
78
88
  lines.push("```");
79
89
  lines.push("");
80
90
  }
91
+ lines.push(...reasons);
81
92
  return lines.join("\n");
82
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vexp-mcp",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "vexp MCP server — AI context tools for coding agents",
6
6
  "type": "module",