multi-agents-cli 1.0.34 → 1.0.36

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 +9 -9
  2. package/package.json +1 -1
package/init.js CHANGED
@@ -683,8 +683,8 @@ const main = async () => {
683
683
  }
684
684
 
685
685
  if (active.length === 0) {
686
- console.log(yellow('\n No active processes found.\n'));
687
- return false;
686
+ console.log(yellow('\n No active processes found. Nothing to restart.\n'));
687
+ return 'empty';
688
688
  }
689
689
 
690
690
  separator();
@@ -702,7 +702,7 @@ const main = async () => {
702
702
  ],
703
703
  }, { onCancel: () => process.exit(0) });
704
704
 
705
- if (!pickRes.value || pickRes.value === '__back__') return false;
705
+ if (!pickRes.value || pickRes.value === '__back__') return 'back';
706
706
  const idx = active.findIndex(a => a.agent === pickRes.value);
707
707
  if (idx < 0) return false;
708
708
  const { scope, agent, data } = active[idx];
@@ -730,7 +730,7 @@ const main = async () => {
730
730
  }
731
731
  }
732
732
 
733
- if (deps.length > 0) {
733
+ if (affectedAgents.length > 1) {
734
734
  console.log(`\n ${yellow('Dependent processes will also be wiped.')}`);
735
735
  }
736
736
 
@@ -739,7 +739,7 @@ const main = async () => {
739
739
  const confirmRes = await prompts({
740
740
  type: 'select',
741
741
  name: 'value',
742
- message: 'This cannot be undone. Continue?',
742
+ message: 'Confirm restart?',
743
743
  choices: [
744
744
  { title: 'Yes - wipe and restart', value: 'y' },
745
745
  { title: 'Cancel', value: 'n' },
@@ -748,7 +748,7 @@ const main = async () => {
748
748
 
749
749
  if (confirmRes.value !== 'y') {
750
750
  console.log(dim('\n Cancelled.\n'));
751
- return false;
751
+ return 'back';
752
752
  }
753
753
 
754
754
  // Perform wipe
@@ -765,7 +765,7 @@ const main = async () => {
765
765
 
766
766
  fs.writeFileSync(trackingPath, JSON.stringify(tracking, null, 2), 'utf8');
767
767
  console.log(`\n ${green('✓')} Restart complete.\n`);
768
- return true;
768
+ return 'done';
769
769
  };
770
770
 
771
771
  if (prompts && process.stdin.isTTY) {
@@ -791,8 +791,8 @@ const main = async () => {
791
791
  child.on('exit', (code) => process.exit(code));
792
792
  return;
793
793
  } else if (res.value === '2') {
794
- const didRestart = await showRestartProcess();
795
- if (!didRestart) continue; // Back — show menu again
794
+ const restartResult = await showRestartProcess();
795
+ if (restartResult === 'back') continue; // Back — show menu again
796
796
  lockLoop = false;
797
797
  return;
798
798
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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",