multi-agents-cli 1.0.62 → 1.0.64
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/core/workflow/agent.js +5 -4
- package/init.js +30 -0
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -172,15 +172,16 @@ const openIDE = (worktreePath) => {
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
// ── Open new OS terminal with Claude Code CLI ───────────────────────────────
|
|
175
|
-
|
|
176
175
|
const openTerminal = (worktreePath) => {
|
|
176
|
+
const termCmd = config.terminal && config.terminal.cmd;
|
|
177
|
+
if (!termCmd) return false;
|
|
177
178
|
try {
|
|
178
179
|
if (process.platform === 'darwin') {
|
|
179
|
-
execSync(
|
|
180
|
+
execSync('osascript -e \'tell app "' + termCmd + '" to do script "cd \\"' + worktreePath + '\\" && claude"\'', { stdio: 'pipe' });
|
|
180
181
|
} else if (process.platform === 'win32') {
|
|
181
|
-
execSync(
|
|
182
|
+
execSync('start ' + termCmd + ' /k "cd /d ' + worktreePath + ' && claude"', { stdio: 'pipe' });
|
|
182
183
|
} else {
|
|
183
|
-
execSync(
|
|
184
|
+
execSync(termCmd + ' -- bash -c "cd \'' + worktreePath + '\' && claude; exec bash" &', { stdio: 'pipe' });
|
|
184
185
|
}
|
|
185
186
|
return true;
|
|
186
187
|
} catch { return false; }
|
package/init.js
CHANGED
|
@@ -1013,6 +1013,32 @@ const main = async () => {
|
|
|
1013
1013
|
console.log(dim(' Re-selecting...\n'));
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
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 },
|
|
1036
|
+
];
|
|
1037
|
+
|
|
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
|
+
|
|
1016
1042
|
separator();
|
|
1017
1043
|
|
|
1018
1044
|
// ── Summary ─────────────────────────────────────────────────────────────────
|
|
@@ -1192,6 +1218,10 @@ const main = async () => {
|
|
|
1192
1218
|
orm: backendOrm,
|
|
1193
1219
|
auth: backendAuth,
|
|
1194
1220
|
},
|
|
1221
|
+
terminal: {
|
|
1222
|
+
name: termChoice.name,
|
|
1223
|
+
cmd: termChoice.cmd,
|
|
1224
|
+
},
|
|
1195
1225
|
scaffolded: {
|
|
1196
1226
|
client: false,
|
|
1197
1227
|
backend: false,
|
package/package.json
CHANGED