devbonzai 2.2.305 → 2.2.306
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,4 +1,5 @@
|
|
|
1
1
|
const pty = require('node-pty');
|
|
2
|
+
const fs = require('fs');
|
|
2
3
|
|
|
3
4
|
// Store active terminal sessions
|
|
4
5
|
const terminals = new Map();
|
|
@@ -8,7 +9,10 @@ function handleTerminalConnection(ws, workingDirectory) {
|
|
|
8
9
|
const shell = process.platform === 'win32' ? 'powershell.exe' : (process.env.SHELL || '/bin/zsh');
|
|
9
10
|
const cwd = workingDirectory || process.env.HOME;
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
// Debug logging
|
|
13
|
+
console.log('🖥️ Terminal session starting...');
|
|
14
|
+
console.log(' Shell:', shell, '| Exists:', fs.existsSync(shell));
|
|
15
|
+
console.log(' CWD:', cwd, '| Exists:', fs.existsSync(cwd));
|
|
12
16
|
|
|
13
17
|
const ptyProcess = pty.spawn(shell, [], {
|
|
14
18
|
name: 'xterm-256color',
|