vexp-cli 2.0.12 → 2.0.14
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/autostart.js +24 -4
- package/package.json +6 -6
package/dist/autostart.js
CHANGED
|
@@ -251,12 +251,17 @@ function installWindowsStartup() {
|
|
|
251
251
|
fs.mkdirSync(path.dirname(p), { recursive: true });
|
|
252
252
|
const logPath = path.join(homedir(), ".vexp", "autostart.log");
|
|
253
253
|
fs.mkdirSync(path.dirname(logPath), { recursive: true });
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
// Two-context escaping: cmd.exe and VBScript both quote-double, but the
|
|
255
|
+
// contexts nest. Build the cmd string first, then wrap it as a VBScript
|
|
256
|
+
// string literal. /d /s /c forces legacy single-strip quote semantics so
|
|
257
|
+
// the outer `cmd ... "<inner>"` survives intact.
|
|
258
|
+
const quoteCmdArg = (a) => `"${a.replace(/"/g, '""')}"`;
|
|
259
|
+
const vbString = (s) => `"${s.replace(/"/g, '""')}"`;
|
|
260
|
+
const cmdParts = [launcher.bin, ...launcher.args].map(quoteCmdArg).join(" ");
|
|
261
|
+
const command = `%ComSpec% /d /s /c "${cmdParts} >> ${quoteCmdArg(logPath)} 2>&1"`;
|
|
257
262
|
const script = `' vexp autostart — launches \`vexp serve\` hidden at login.\n` +
|
|
258
263
|
`Set sh = CreateObject("WScript.Shell")\n` +
|
|
259
|
-
`sh.Run
|
|
264
|
+
`sh.Run ${vbString(command)}, 0, False\n`;
|
|
260
265
|
fs.writeFileSync(p, script);
|
|
261
266
|
return { installed: true, mechanism: "windows-startup", path: p };
|
|
262
267
|
}
|
|
@@ -318,6 +323,21 @@ export function uninstallAutostart() {
|
|
|
318
323
|
export function installAutostartIfNeeded() {
|
|
319
324
|
if (process.env.VEXP_NO_AUTOSTART_INSTALL === "1")
|
|
320
325
|
return;
|
|
326
|
+
// 2.0.12 shipped a broken Windows VBS template; rewrite any existing
|
|
327
|
+
// file matching that signature regardless of marker state, so upgraded
|
|
328
|
+
// users get fixed without manual autostart uninstall/install.
|
|
329
|
+
if (process.platform === "win32") {
|
|
330
|
+
try {
|
|
331
|
+
const p = windowsStartupPath();
|
|
332
|
+
if (fs.existsSync(p)) {
|
|
333
|
+
const existing = fs.readFileSync(p, "utf-8");
|
|
334
|
+
if (/sh\.Run\s+"cmd \/c "\s*&/.test(existing)) {
|
|
335
|
+
installWindowsStartup();
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
catch { /* non-fatal */ }
|
|
340
|
+
}
|
|
321
341
|
const marker = installMarkerPath();
|
|
322
342
|
if (fs.existsSync(marker))
|
|
323
343
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vexp-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "Vexp — Context Engine for AI Coding Agents. Pre-indexes your codebase into a dependency graph and delivers ranked context to any MCP-compatible agent. 58% lower cost per task, 90% fewer tool calls (SWE-bench Verified). Works with Claude Code, Cursor, Copilot, Windsurf, Codex, Cline, Aider, and 12+ agents. Local-first. Your code never leaves your machine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -99,10 +99,10 @@
|
|
|
99
99
|
"node": ">=20.0.0"
|
|
100
100
|
},
|
|
101
101
|
"optionalDependencies": {
|
|
102
|
-
"@vexp/core-linux-x64": "2.0.
|
|
103
|
-
"@vexp/core-linux-arm64": "2.0.
|
|
104
|
-
"@vexp/core-darwin-x64": "2.0.
|
|
105
|
-
"@vexp/core-darwin-arm64": "2.0.
|
|
106
|
-
"@vexp/core-win32-x64": "2.0.
|
|
102
|
+
"@vexp/core-linux-x64": "2.0.14",
|
|
103
|
+
"@vexp/core-linux-arm64": "2.0.14",
|
|
104
|
+
"@vexp/core-darwin-x64": "2.0.14",
|
|
105
|
+
"@vexp/core-darwin-arm64": "2.0.14",
|
|
106
|
+
"@vexp/core-win32-x64": "2.0.14"
|
|
107
107
|
}
|
|
108
108
|
}
|