@aexol/spectral 0.9.36 → 0.9.37
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/CHANGELOG.md +15 -0
- package/dist/mcp/npx-resolver.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to `@aexol/spectral` are documented here. Format follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.9.37] - 2026-06-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed MCP servers (e.g. `basecamp-mcp`) failing to start in the packaged
|
|
13
|
+
Electron desktop app with `Executable not found in $PATH: "npx"`. The
|
|
14
|
+
desktop bootstrap now augments the child process PATH with system
|
|
15
|
+
directories such as `/usr/local/bin`, `/opt/homebrew/bin`, `/etc/paths`,
|
|
16
|
+
`/usr/local/git/bin`, the latest nvm Node binary directory, and common
|
|
17
|
+
Windows Node/Git locations, so `npx`/`npm` are discoverable when the app
|
|
18
|
+
is launched from the GUI.
|
|
19
|
+
- Switched `npx-resolver.ts` to use `cross-spawn` instead of
|
|
20
|
+
`node:child_process`, so `npm`/`npx` resolution works on Windows where
|
|
21
|
+
executables have a `.cmd` extension.
|
|
22
|
+
|
|
8
23
|
## [0.8.4] - 2026-06-02
|
|
9
24
|
|
|
10
25
|
### Added
|
package/dist/mcp/npx-resolver.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { existsSync, readFileSync, realpathSync, readdirSync, statSync, writeFileSync, renameSync, mkdirSync, openSync, readSync, closeSync } from "node:fs";
|
|
3
3
|
import { join, dirname, extname, resolve, sep } from "node:path";
|
|
4
4
|
import { getAgentPath } from "./agent-dir.js";
|
|
5
|
-
import
|
|
5
|
+
import spawn from "cross-spawn";
|
|
6
6
|
const CACHE_VERSION = 1;
|
|
7
7
|
const CACHE_TTL_MS = 24 * 60 * 60 * 1000;
|
|
8
8
|
export async function resolveNpxBinary(command, args) {
|
|
@@ -311,7 +311,7 @@ function getNpmCacheDir() {
|
|
|
311
311
|
return npmCacheDirCached;
|
|
312
312
|
}
|
|
313
313
|
try {
|
|
314
|
-
const result =
|
|
314
|
+
const result = spawn.sync("npm", ["config", "get", "cache"], { encoding: "utf-8" });
|
|
315
315
|
if (result.status === 0) {
|
|
316
316
|
const path = String(result.stdout).trim();
|
|
317
317
|
npmCacheDirCached = path || null;
|