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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vg-coder-cli",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "🚀 CLI tool to analyze projects, concatenate source files, count tokens, and export HTML with syntax highlighting and copy functionality",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -5,7 +5,16 @@ class TerminalManager {
5
5
  constructor() {
6
6
  // Map: termId -> { process: pty, socketId: string }
7
7
  this.sessions = new Map();
8
- this.shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
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