ai-kanban-terminal 0.3.0 → 0.4.0
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 +1 -1
- package/server.js +7 -1
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -48,7 +48,13 @@ io.on('connection', (socket) => {
|
|
|
48
48
|
|
|
49
49
|
try {
|
|
50
50
|
// Determine shell based on OS
|
|
51
|
-
|
|
51
|
+
let shell;
|
|
52
|
+
if (os.platform() === 'win32') {
|
|
53
|
+
shell = process.env.COMSPEC || 'cmd.exe';
|
|
54
|
+
} else {
|
|
55
|
+
// Use SHELL environment variable (user's default shell) or fallback to common shells
|
|
56
|
+
shell = process.env.SHELL || '/bin/sh';
|
|
57
|
+
}
|
|
52
58
|
|
|
53
59
|
// Create pseudo-terminal
|
|
54
60
|
// NOTE: Uses HOME directory as working directory for development.
|