gitnexus 1.6.6-rc.17 → 1.6.6-rc.18
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/cli/setup.js +6 -4
- package/package.json +1 -1
package/dist/cli/setup.js
CHANGED
|
@@ -48,11 +48,13 @@ function resolveGitnexusBin() {
|
|
|
48
48
|
.map((l) => l.trim())
|
|
49
49
|
.filter(Boolean);
|
|
50
50
|
if (isWin) {
|
|
51
|
-
// On Windows,
|
|
52
|
-
//
|
|
53
|
-
//
|
|
51
|
+
// On Windows, npm global installs can surface multiple launchers for the
|
|
52
|
+
// same package (e.g. a POSIX shell shim plus .cmd/.bat wrappers). Claude
|
|
53
|
+
// and the other MCP hosts need a directly spawnable command path, so only
|
|
54
|
+
// accept the Windows wrapper. If it is missing, fall back to the slower
|
|
55
|
+
// npx entry instead of persisting a non-spawnable shim path.
|
|
54
56
|
const cmdLine = lines.find((l) => /\.(cmd|bat)$/i.test(l));
|
|
55
|
-
return cmdLine ||
|
|
57
|
+
return cmdLine || null;
|
|
56
58
|
}
|
|
57
59
|
return lines[0] || null;
|
|
58
60
|
}
|
package/package.json
CHANGED