vg-coder-cli 2.0.23 → 2.0.24
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/package.json
CHANGED
|
@@ -5,7 +5,16 @@ class TerminalManager {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
// Map: termId -> { process: pty, socketId: string }
|
|
7
7
|
this.sessions = new Map();
|
|
8
|
-
|
|
8
|
+
// Use full path to shell to avoid posix_spawnp errors
|
|
9
|
+
if (os.platform() === 'win32') {
|
|
10
|
+
this.shell = 'powershell.exe';
|
|
11
|
+
} else if (os.platform() === 'darwin') {
|
|
12
|
+
// macOS - use zsh (default shell since Catalina)
|
|
13
|
+
this.shell = process.env.SHELL || '/bin/zsh';
|
|
14
|
+
} else {
|
|
15
|
+
// Linux and others
|
|
16
|
+
this.shell = process.env.SHELL || '/bin/bash';
|
|
17
|
+
}
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
createTerminal(socket, termId, cols = 80, rows = 24, cwd) {
|
|
Binary file
|