multi-agents-cli 1.0.65 → 1.0.66

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/init.js +24 -24
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -1014,32 +1014,32 @@ const main = async () => {
1014
1014
  }
1015
1015
 
1016
1016
 
1017
- // ── Terminal selection ────────────────────────────────────────────────────────
1018
-
1019
- const TERMINAL_OPTIONS = process.platform === 'darwin'
1020
- ? [
1021
- { name: 'Terminal.app', cmd: 'Terminal' },
1022
- { name: 'iTerm2', cmd: 'iTerm2' },
1023
- { name: 'Warp', cmd: 'Warp' },
1024
- { name: 'Other / skip', cmd: null },
1025
- ]
1026
- : process.platform === 'win32'
1027
- ? [
1028
- { name: 'Command Prompt', cmd: 'cmd' },
1029
- { name: 'PowerShell', cmd: 'powershell' },
1030
- { name: 'Other / skip', cmd: null },
1031
- ]
1032
- : [
1033
- { name: 'gnome-terminal', cmd: 'gnome-terminal' },
1034
- { name: 'xterm', cmd: 'xterm' },
1035
- { name: 'Other / skip', cmd: null },
1017
+ // ── Terminal detection ────────────────────────────────────────────────────────
1018
+
1019
+ const detectTerminal = () => {
1020
+ const platform = process.platform;
1021
+ if (platform === 'darwin') {
1022
+ const apps = [
1023
+ { name: 'iTerm2', cmd: 'iTerm2', path: '/Applications/iTerm.app' },
1024
+ { name: 'Warp', cmd: 'Warp', path: '/Applications/Warp.app' },
1025
+ { name: 'Terminal.app', cmd: 'Terminal', path: '/System/Applications/Utilities/Terminal.app' },
1036
1026
  ];
1027
+ return apps.find(a => fs.existsSync(a.path)) || { name: 'Terminal.app', cmd: 'Terminal' };
1028
+ } else if (platform === 'win32') {
1029
+ const wtPath = process.env.LOCALAPPDATA + '\\Microsoft\\WindowsApps\\wt.exe';
1030
+ if (fs.existsSync(wtPath)) return { name: 'Windows Terminal', cmd: 'wt' };
1031
+ return { name: 'Command Prompt', cmd: 'cmd' };
1032
+ } else {
1033
+ const terms = ['gnome-terminal', 'konsole', 'xterm'];
1034
+ for (const t of terms) {
1035
+ try { execSync('which ' + t, { stdio: 'pipe' }); return { name: t, cmd: t }; } catch {}
1036
+ }
1037
+ return { name: 'xterm', cmd: 'xterm' };
1038
+ }
1039
+ };
1037
1040
 
1038
- const termIdx = await arrowSelect('* Preferred terminal (for Claude Code CLI):', TERMINAL_OPTIONS.map(t => ({ label: t.name })), rl);
1039
- const termChoice = TERMINAL_OPTIONS[termIdx];
1040
- console.log(` ${green('✓')} ${termChoice.name}`);
1041
-
1042
- separator();
1041
+ const termChoice = detectTerminal();
1042
+ console.log(dim(' Terminal detected: ') + green(termChoice.name));
1043
1043
 
1044
1044
  // ── Summary ─────────────────────────────────────────────────────────────────
1045
1045
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "Multi-agent workflow orchestration for Claude Code — isolated git worktrees, structured state tracking, autonomous task chaining",
5
5
  "keywords": [
6
6
  "claude-code",