stigmergy 1.0.82 → 1.0.84

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 +2 -2
  2. package/src/main_english.js +52 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stigmergy",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "type": "commonjs",
5
5
  "description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
6
6
  "main": "src/main_english.js",
@@ -22,7 +22,7 @@
22
22
  "dev": "node --watch src/index.js",
23
23
  "lint": "eslint src/",
24
24
  "format": "prettier --write src/",
25
- "postinstall": "node src/main_english.js auto-install"
25
+ "postinstall": "node src/main_english.js setup"
26
26
  },
27
27
  "keywords": [
28
28
  "ai",
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System
5
5
  * International Version - Pure English & ANSI Only
6
- * Version: 1.0.81
6
+ * Version: 1.0.84
7
7
  */
8
8
 
9
9
  const { spawn, spawnSync } = require('child_process');
@@ -452,8 +452,9 @@ class StigmergyInstaller {
452
452
  const installCmd = toolInfo.install.split(' ');
453
453
  const result = spawnSync(installCmd[0], installCmd.slice(1), {
454
454
  encoding: 'utf8',
455
- timeout: 120000,
456
- stdio: 'inherit'
455
+ timeout: 300000, // Increased to 5 minutes for CLI tools that download binaries
456
+ stdio: 'inherit',
457
+ env: process.env
457
458
  });
458
459
 
459
460
  if (result.status === 0) {
@@ -504,7 +505,7 @@ class StigmergyInstaller {
504
505
 
505
506
  const configFile = path.join(this.configDir, 'config.json');
506
507
  const config = {
507
- version: '1.0.81',
508
+ version: '1.0.84',
508
509
  initialized: true,
509
510
  createdAt: new Date().toISOString(),
510
511
  lastUpdated: new Date().toISOString(),
@@ -558,7 +559,7 @@ async function main() {
558
559
 
559
560
  if (args.length === 0 || args.includes('--help') || args.includes('-h')) {
560
561
  console.log('Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System');
561
- console.log('Version: 1.0.81');
562
+ console.log('Version: 1.0.84');
562
563
  console.log('');
563
564
  console.log('[SYSTEM] Automated Installation and Deployment System');
564
565
  console.log('');
@@ -589,7 +590,7 @@ async function main() {
589
590
  switch (command) {
590
591
  case 'version':
591
592
  case '--version':
592
- console.log('Stigmergy CLI v1.0.81');
593
+ console.log('Stigmergy CLI v1.0.84');
593
594
  break;
594
595
 
595
596
  case 'status':
@@ -645,7 +646,7 @@ async function main() {
645
646
  toolsToInstall = options.filter(opt => answers.selectedTools.includes(opt.toolName));
646
647
  }
647
648
 
648
- console.log('\n[INFO] Installing selected tools...');
649
+ console.log('\n[INFO] Installing selected tools (this may take several minutes for tools that download binaries)...');
649
650
  await installer.installTools(toolsToInstall, missingTools);
650
651
  }
651
652
  } else {
@@ -665,8 +666,48 @@ async function main() {
665
666
  const setupOptions = await installer.showInstallOptions(setupMissing);
666
667
 
667
668
  if (setupOptions.length > 0) {
668
- console.log('\n[INFO] Installing all missing tools...');
669
- await installer.installTools(setupOptions, setupMissing);
669
+ // Use inquirer for interactive selection during setup as well
670
+ const inquirer = require('inquirer');
671
+
672
+ const choices = setupOptions.map(opt => ({
673
+ name: `${opt.toolInfo.name} - ${opt.toolInfo.install}`,
674
+ value: opt.toolName
675
+ }));
676
+
677
+ choices.push(new inquirer.Separator(' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ='),
678
+ { name: 'All missing tools', value: 'all' },
679
+ { name: 'Skip installation', value: 'skip' });
680
+
681
+ const answers = await inquirer.prompt([
682
+ {
683
+ type: 'checkbox',
684
+ name: 'selectedTools',
685
+ message: 'Select tools to install during setup (Space to select, Enter to confirm):',
686
+ choices: choices,
687
+ validate: function (answer) {
688
+ if (answer.length < 1) {
689
+ return 'You must choose at least one option.';
690
+ }
691
+ return true;
692
+ }
693
+ }
694
+ ]);
695
+
696
+ if (answers.selectedTools.includes('skip')) {
697
+ console.log('[INFO] Skipping CLI tool installation during setup');
698
+ } else {
699
+ let toolsToInstall;
700
+ if (answers.selectedTools.includes('all')) {
701
+ toolsToInstall = setupOptions;
702
+ } else {
703
+ toolsToInstall = setupOptions.filter(opt => answers.selectedTools.includes(opt.toolName));
704
+ }
705
+
706
+ console.log('\n[INFO] Installing selected tools (this may take several minutes for tools that download binaries)...');
707
+ await installer.installTools(toolsToInstall, setupMissing);
708
+ }
709
+ } else {
710
+ console.log('\n[INFO] All required tools are already installed!');
670
711
  }
671
712
 
672
713
  await installer.deployHooks(setupAvailable);
@@ -712,7 +753,8 @@ async function main() {
712
753
 
713
754
  // Show final message to guide users
714
755
  console.log('\n[SUCCESS] Stigmergy CLI installed successfully!');
715
- console.log('[USAGE] Run "stigmergy install" to install missing AI CLI tools.');
756
+ console.log('[USAGE] Run "stigmergy setup" to complete full configuration and install missing AI CLI tools.');
757
+ console.log('[USAGE] Run "stigmergy install" to install only missing AI CLI tools.');
716
758
  console.log('[USAGE] Run "stigmergy --help" to see all available commands.');
717
759
  break;
718
760