multi-agents-cli 1.0.61 → 1.0.62

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.
@@ -1385,6 +1385,100 @@ ${excludedUrls}
1385
1385
  separator();
1386
1386
  console.log(`\n${bold(' Workspace is set up and ready.')}\n`);
1387
1387
 
1388
+ sessionLoop: while (true) {
1389
+ const sessionIdx = await arrowSelect('How would you like to start the session?', [
1390
+ { label: `${green('→')} IDE + new terminal ${dim('(Claude Code CLI)')} ${dim('← recommended')}` },
1391
+ { label: `${green('→')} IDE only` },
1392
+ { label: `${green('→')} Claude Code CLI only ${dim('(new terminal)')}` },
1393
+ { label: `${dim('?')} I'll continue from here, where do I start?` },
1394
+ ], rl);
1395
+
1396
+ if (sessionIdx === 0) {
1397
+ const openedIDE = openIDE(worktreePath);
1398
+ if (openedIDE) console.log(` ${green('✓')} ${openedIDE} opened`);
1399
+ else console.log(` ${yellow('!')} Could not open IDE - open manually at: ${dim(worktreePath)}`);
1400
+ const termOpened = openTerminal(worktreePath);
1401
+ if (termOpened) console.log(` ${green('✓')} New terminal opened with Claude Code CLI`);
1402
+ else console.log(` ${yellow('!')} Could not open terminal - run ${cyan('claude')} manually in: ${dim(worktreePath)}`);
1403
+ separator();
1404
+ console.log(`\n ${dim('When the agent is done, run:')} ${cyan('npm run complete')}\n`);
1405
+ break sessionLoop;
1406
+
1407
+ } else if (sessionIdx === 1) {
1408
+ const openedIDE = openIDE(worktreePath);
1409
+ if (openedIDE) console.log(` ${green('✓')} ${openedIDE} opened`);
1410
+ else console.log(` ${yellow('!')} Could not open IDE - open manually at: ${dim(worktreePath)}`);
1411
+ separator();
1412
+ console.log(`\n ${dim('Open a NEW Claude Code session and type')} ${cyan('go')} ${dim('to start.')}\n`);
1413
+ console.log(` ${dim('When done, run:')} ${cyan('npm run complete')}\n`);
1414
+ break sessionLoop;
1415
+
1416
+ } else if (sessionIdx === 2) {
1417
+ const termOpened = openTerminal(worktreePath);
1418
+ if (termOpened) console.log(` ${green('✓')} New terminal opened with Claude Code CLI`);
1419
+ else console.log(` ${yellow('!')} Could not open terminal - run ${cyan('claude')} manually in: ${dim(worktreePath)}`);
1420
+ separator();
1421
+ console.log(`\n ${dim('When the agent is done, run:')} ${cyan('npm run complete')}\n`);
1422
+ break sessionLoop;
1423
+
1424
+ } else {
1425
+ separator();
1426
+ const subIdx = await arrowSelect('What would you like to view?', [
1427
+ { label: 'View instructions' },
1428
+ { label: 'View folder structure' },
1429
+ { label: 'View available agents' },
1430
+ { label: `${dim('←')} Back to session options` },
1431
+ ], rl);
1432
+
1433
+ if (subIdx === 3) { continue sessionLoop; }
1434
+
1435
+ if (subIdx === 0) {
1436
+ separator();
1437
+ console.log(`\n ${bold('How to start your agent session:')}\n`);
1438
+ console.log(` ${bold('1.')} Open your IDE at:`);
1439
+ console.log(` ${cyan(worktreePath)}\n`);
1440
+ console.log(` ${bold('2.')} Open a NEW Claude Code session and type ${cyan('go')} to start`);
1441
+ console.log(dim(' Do NOT reuse a previous session.\n'));
1442
+ console.log(` ${bold('3.')} Let the agent run autonomously\n`);
1443
+ console.log(` ${bold('4.')} When done, run: ${cyan('npm run complete')} to merge into main\n`);
1444
+ separator();
1445
+ console.log('');
1446
+ await arrowSelect('Press enter to continue', [{ label: 'OK, got it' }], rl);
1447
+ continue sessionLoop;
1448
+
1449
+ } else if (subIdx === 1) {
1450
+ const framework = config.client?.framework || config.backend?.framework || '';
1451
+ displayWorkspaceTree(worktreeName, worktreePath, project, agent, framework);
1452
+ separator();
1453
+ console.log('');
1454
+ await arrowSelect('Press enter to continue', [{ label: 'OK, got it' }], rl);
1455
+ continue sessionLoop;
1456
+
1457
+ } else if (subIdx === 2) {
1458
+ const allAgents = AGENTS[project] || [];
1459
+ const completed = buildEntries.filter(e => e.scope === project && e.status === 'COMPLETED').map(e => e.agent);
1460
+ separator();
1461
+ console.log(`\n ${bold('Available agents for ' + project + ':')}\n`);
1462
+ allAgents.forEach(a => {
1463
+ const done = completed.includes(a);
1464
+ const current = a === agent;
1465
+ const icon = current ? cyan('→') : done ? green('✓') : dim('·');
1466
+ const label = current ? bold(cyan(a)) : done ? dim(a + ' (completed)') : a;
1467
+ console.log(` ${icon} ${label}`);
1468
+ });
1469
+ console.log('');
1470
+ separator();
1471
+ console.log('');
1472
+ await arrowSelect('Press enter to continue', [{ label: 'OK, got it' }], rl);
1473
+ continue sessionLoop;
1474
+ }
1475
+ }
1476
+ } // end sessionLoop
1477
+ // ── Session start selection ─────────────────────────────────────────────────
1478
+
1479
+ separator();
1480
+ console.log(`\n${bold(' Workspace is set up and ready.')}\n`);
1481
+
1388
1482
  const sessionIdx = await arrowSelect('How would you like to start the session?', [
1389
1483
  { label: `${green('→')} IDE + new terminal ${dim('(Claude Code CLI)')} ${dim('← recommended')}` },
1390
1484
  { label: `${green('→')} IDE only` },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
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",