stigmergy 1.0.81 → 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.
package/STIGMERGY.md ADDED
@@ -0,0 +1,42 @@
1
+ # Stigmergy Multi-AI CLI Collaboration
2
+
3
+ This project is configured for Stigmergy-based multi-AI CLI collaboration.
4
+
5
+ ## Available AI CLI Tools
6
+
7
+
8
+
9
+ ## Usage Examples
10
+
11
+ ### Cross-CLI Collaboration
12
+ ```bash
13
+ # Use Claude to analyze code
14
+ stigmergy call claude "analyze this function"
15
+
16
+ # Use Gemini for documentation
17
+ stigmergy call gemini "generate docs for this file"
18
+
19
+ # Use Qwen for translation
20
+ stigmergy call qwen "translate to English"
21
+ ```
22
+
23
+ ### Project Initialization
24
+ ```bash
25
+ # Initialize with Claude as primary AI
26
+ stigmergy init --primary claude
27
+
28
+ # Initialize with multiple AI tools
29
+ stigmergy init --all-tools
30
+ ```
31
+
32
+ ## Configuration
33
+
34
+ Global configuration: `~/.stigmergy/config.json`
35
+
36
+ ## Getting Started
37
+
38
+ 1. Run `stigmergy status` to verify setup
39
+ 2. Use `stigmergy call <ai-tool> "<prompt>"` to collaborate with AI CLI tools
40
+ 3. Check project-specific configurations in individual CLI tool directories
41
+
42
+ For more information: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stigmergy",
3
- "version": "1.0.81",
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",
@@ -45,7 +45,11 @@
45
45
  "templates/**/*.md",
46
46
  "bin/**/*.cmd",
47
47
  "test/**/*.js",
48
- "scripts/**/*.js"
48
+ "scripts/**/*.js",
49
+ "package.json",
50
+ "README.md",
51
+ "LICENSE",
52
+ "STIGMERGY.md"
49
53
  ],
50
54
  "repository": {
51
55
  "type": "git",
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Build script for Stigmergy CLI
3
+ * Creates a distributable package
4
+ */
5
+
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+ const { execSync } = require('child_process');
9
+
10
+ console.log('=== Building Stigmergy CLI ===\n');
11
+
12
+ // Check if we're in the right directory
13
+ const packageJsonPath = path.join(__dirname, '..', 'package.json');
14
+ if (!fs.existsSync(packageJsonPath)) {
15
+ console.error('Error: package.json not found. Make sure you are in the project root directory.');
16
+ process.exit(1);
17
+ }
18
+
19
+ // Read package.json
20
+ const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
21
+ console.log(`Building version ${pkg.version} of ${pkg.name}`);
22
+
23
+ // Verify required files exist
24
+ const requiredFiles = [
25
+ 'src/main_english.js',
26
+ 'package.json',
27
+ 'README.md',
28
+ 'LICENSE'
29
+ ];
30
+
31
+ for (const file of requiredFiles) {
32
+ if (!fs.existsSync(path.join(__dirname, '..', file))) {
33
+ console.error(`Error: Required file missing: ${file}`);
34
+ process.exit(1);
35
+ }
36
+ }
37
+
38
+ console.log('✅ All required files are present');
39
+
40
+ // Check dependencies
41
+ console.log('\nChecking dependencies...');
42
+ try {
43
+ execSync('npm list inquirer', { stdio: 'pipe' });
44
+ console.log('✅ Inquirer dependency is available');
45
+ } catch (error) {
46
+ console.log('⚠️ Inquirer may not be installed locally, but it should be available in production');
47
+ }
48
+
49
+ // Run basic syntax check
50
+ console.log('\nRunning syntax checks...');
51
+ try {
52
+ execSync('node -c src/main_english.js', { stdio: 'inherit' });
53
+ console.log('✅ Main file syntax is valid');
54
+ } catch (error) {
55
+ console.error('❌ Syntax error in main file:', error.message);
56
+ process.exit(1);
57
+ }
58
+
59
+ // Show build info
60
+ console.log('\n=== Build Information ===');
61
+ console.log(`Name: ${pkg.name}`);
62
+ console.log(`Version: ${pkg.version}`);
63
+ console.log(`Description: ${pkg.description}`);
64
+ console.log(`Entry point: ${pkg.main}`);
65
+ console.log(`Binary: ${JSON.stringify(pkg.bin)}`);
66
+ console.log(`Files to be included: ${pkg.files ? pkg.files.length : 'default'}`);
67
+
68
+ // Show the commands to publish
69
+ console.log('\n=== Next Steps for Publishing ===');
70
+ console.log('1. To test locally: npm install -g .');
71
+ console.log('2. To publish to npm: npm publish');
72
+ console.log('3. To publish a new version: npm version [patch|minor|major] && npm publish');
73
+
74
+ console.log('\n=== Build Complete ===');