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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-kanban-terminal",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Browser-based terminal with bidirectional shell using Vite, Express, node-pty, xterm.js, and Socket.IO",
5
5
  "main": "server.js",
6
6
  "type": "commonjs",
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
- const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
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.