stigmergy 1.0.68 → 1.0.70

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 (102) hide show
  1. package/README.en.md +306 -300
  2. package/README.md +469 -301
  3. package/package.json +97 -81
  4. package/scripts/publish.js +268 -0
  5. package/scripts/simple-publish.js +59 -0
  6. package/src/index.js +12 -0
  7. package/test/enhanced-main-alignment.test.js +298 -0
  8. package/test/hook-system-integration-test.js +307 -0
  9. package/test/natural-language-skills-test.js +320 -0
  10. package/test/nl-integration-test.js +179 -0
  11. package/test/parameter-parsing-test.js +143 -0
  12. package/test/real-test.js +435 -0
  13. package/test/system-compatibility-test.js +447 -0
  14. package/test/tdd-fixes-test.js +211 -0
  15. package/test/third-party-skills-test.js +321 -0
  16. package/test/tool-selection-integration-test.js +157 -0
  17. package/test/unit/cli-scanner.test.js +291 -0
  18. package/test/unit/cross-cli-executor.test.js +399 -0
  19. package/src/adapters/claude/__init__.py +0 -13
  20. package/src/adapters/claude/claude_skills_integration.py +0 -609
  21. package/src/adapters/claude/hook_adapter.py +0 -663
  22. package/src/adapters/claude/install_claude_integration.py +0 -265
  23. package/src/adapters/claude/skills_hook_adapter.py +0 -841
  24. package/src/adapters/claude/standalone_claude_adapter.py +0 -384
  25. package/src/adapters/cline/__init__.py +0 -20
  26. package/src/adapters/cline/config.py +0 -108
  27. package/src/adapters/cline/install_cline_integration.py +0 -617
  28. package/src/adapters/cline/mcp_server.py +0 -713
  29. package/src/adapters/cline/standalone_cline_adapter.py +0 -459
  30. package/src/adapters/codebuddy/__init__.py +0 -13
  31. package/src/adapters/codebuddy/buddy_adapter.py +0 -1125
  32. package/src/adapters/codebuddy/install_codebuddy_integration.py +0 -279
  33. package/src/adapters/codebuddy/skills_hook_adapter.py +0 -672
  34. package/src/adapters/codebuddy/skills_integration.py +0 -395
  35. package/src/adapters/codebuddy/standalone_codebuddy_adapter.py +0 -403
  36. package/src/adapters/codex/__init__.py +0 -11
  37. package/src/adapters/codex/base.py +0 -46
  38. package/src/adapters/codex/install_codex_integration.py +0 -311
  39. package/src/adapters/codex/mcp_server.py +0 -493
  40. package/src/adapters/codex/natural_language_parser.py +0 -82
  41. package/src/adapters/codex/slash_command_adapter.py +0 -326
  42. package/src/adapters/codex/standalone_codex_adapter.py +0 -362
  43. package/src/adapters/copilot/__init__.py +0 -13
  44. package/src/adapters/copilot/install_copilot_integration.py +0 -564
  45. package/src/adapters/copilot/mcp_adapter.py +0 -772
  46. package/src/adapters/copilot/mcp_server.py +0 -168
  47. package/src/adapters/copilot/standalone_copilot_adapter.py +0 -114
  48. package/src/adapters/gemini/__init__.py +0 -13
  49. package/src/adapters/gemini/extension_adapter.py +0 -690
  50. package/src/adapters/gemini/install_gemini_integration.py +0 -257
  51. package/src/adapters/gemini/standalone_gemini_adapter.py +0 -366
  52. package/src/adapters/iflow/__init__.py +0 -7
  53. package/src/adapters/iflow/hook_adapter.py +0 -1038
  54. package/src/adapters/iflow/hook_installer.py +0 -536
  55. package/src/adapters/iflow/install_iflow_integration.py +0 -271
  56. package/src/adapters/iflow/official_hook_adapter.py +0 -1272
  57. package/src/adapters/iflow/standalone_iflow_adapter.py +0 -48
  58. package/src/adapters/iflow/workflow_adapter.py +0 -793
  59. package/src/adapters/qoder/hook_installer.py +0 -732
  60. package/src/adapters/qoder/install_qoder_integration.py +0 -265
  61. package/src/adapters/qoder/notification_hook_adapter.py +0 -863
  62. package/src/adapters/qoder/standalone_qoder_adapter.py +0 -48
  63. package/src/adapters/qwen/__init__.py +0 -17
  64. package/src/adapters/qwencode/__init__.py +0 -13
  65. package/src/adapters/qwencode/inheritance_adapter.py +0 -818
  66. package/src/adapters/qwencode/install_qwencode_integration.py +0 -276
  67. package/src/adapters/qwencode/standalone_qwencode_adapter.py +0 -399
  68. package/src/atomic_collaboration_handler.py +0 -461
  69. package/src/cli_collaboration_agent.py +0 -697
  70. package/src/collaboration/hooks.py +0 -315
  71. package/src/core/__init__.py +0 -21
  72. package/src/core/ai_environment_scanner.py +0 -331
  73. package/src/core/base_adapter.py +0 -220
  74. package/src/core/cli_hook_integration.py +0 -406
  75. package/src/core/cross_cli_executor.py +0 -713
  76. package/src/core/cross_cli_mapping.py +0 -1165
  77. package/src/core/cross_platform_encoding.py +0 -365
  78. package/src/core/cross_platform_safe_cli.py +0 -894
  79. package/src/core/direct_cli_executor.py +0 -805
  80. package/src/core/direct_cli_hook_system.py +0 -958
  81. package/src/core/enhanced_init_processor.py +0 -467
  82. package/src/core/graceful_cli_executor.py +0 -912
  83. package/src/core/md_enhancer.py +0 -342
  84. package/src/core/md_generator.py +0 -619
  85. package/src/core/models.py +0 -218
  86. package/src/core/parser.py +0 -108
  87. package/src/core/real_cli_hook_system.py +0 -852
  88. package/src/core/real_cross_cli_system.py +0 -925
  89. package/src/core/verified_cross_cli_system.py +0 -961
  90. package/src/deploy.js +0 -737
  91. package/src/enhanced-main.js +0 -626
  92. package/src/enhanced_deploy.js +0 -303
  93. package/src/enhanced_universal_cli_setup.py +0 -930
  94. package/src/kimi_wrapper.py +0 -104
  95. package/src/main.js +0 -1309
  96. package/src/shell_integration.py +0 -398
  97. package/src/simple-main.js +0 -315
  98. package/src/smart_router_creator.py +0 -323
  99. package/src/universal_cli_setup.py +0 -1289
  100. package/src/utils/__init__.py +0 -12
  101. package/src/utils/cli_detector.py +0 -445
  102. package/src/utils/file_utils.py +0 -246
package/README.en.md CHANGED
@@ -1,301 +1,307 @@
1
- # 🔧 Stigmergy CLI - Multi-Agents Cross-AI CLI Tool Collaboration System
2
-
3
- > **⚠️ Important Clarification: This is not a standalone CLI tool, but an enhancement system!**
4
- >
5
- > Stigmergy CLI enables existing AI CLI tools to collaborate with each other through a plugin system, rather than replacing them.
6
-
7
- [![Node.js](https://img.shields.io/badge/node-16+-green.svg)](https://nodejs.org)
8
- [![NPM](https://img.shields.io/badge/npm-stigmergy-cli-blue.svg)](https://www.npmjs.com/package/stigmergy-cli)
9
- [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
10
- [![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey.svg)]()
11
-
12
- ## 🚀 Quick Start
13
-
14
- ### One-Click Deployment (Recommended)
15
-
16
- ```bash
17
- # One-click deployment of the complete collaboration system (detection + installation + configuration)
18
- npx -y git+https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git#main quick-deploy
19
- ```
20
-
21
- Or, if you have already installed stigmergy-cli globally:
22
-
23
- ```bash
24
- # Run through the installed CLI
25
- npx stigmergy-cli quick-deploy
26
- ```
27
-
28
- ### Manual Installation
29
-
30
- ```bash
31
- # Install globally via NPM
32
- npm install -g stigmergy-cli
33
-
34
- # Initialize project
35
- stigmergy-cli init
36
-
37
- # Intelligent deployment (scan environment + prompt + auto-install)
38
- stigmergy-cli deploy
39
-
40
- # Or use npx (no installation required)
41
- npx stigmergy-cli init
42
- npx stigmergy-cli deploy
43
- ```
44
-
45
- ## ✨ Core Features
46
-
47
- ### 🎯 Direct Cross-CLI Collaboration
48
- - **Natural Language Invocation**: Directly invoke other AI tools in any supported CLI
49
- - **Seamless Integration**: Does not change the existing usage of CLI tools
50
- - **Smart Routing**: Automatically identifies collaboration intent and delegates to the appropriate tool
51
-
52
- ### 📋 Supported CLI Tools
53
-
54
- #### Core Tools (Required)
55
- - **Claude CLI** - Anthropic Claude CLI tool
56
- - **Gemini CLI** - Google Gemini CLI tool
57
-
58
- #### Extended Tools (Optional)
59
- - **QwenCode CLI** - Alibaba Cloud QwenCode CLI tool
60
- - **iFlow CLI** - iFlow workflow CLI tool
61
- - **Qoder CLI** - Qoder code generation CLI tool
62
- - **CodeBuddy CLI** - CodeBuddy programming assistant CLI tool
63
- - **GitHub Copilot CLI** - GitHub Copilot CLI tool
64
- - **Codex CLI** - OpenAI Codex code analysis CLI tool
65
-
66
- ### 🧩 Intelligent Deployment System
67
-
68
- ```bash
69
- # Intelligent deployment (recommended)
70
- stigmergy-cli deploy
71
-
72
- # Sample output:
73
- 🔍 Scanning system CLI tool status...
74
-
75
- 🔴 Claude CLI | CLI: Not installed | Integration: Not installed
76
- 🟢 ✅ Gemini CLI | CLI: Available | Integration: Installed
77
- 🔴 ❌ QwenCode CLI | CLI: Not installed | Integration: Not installed
78
-
79
- 📋 Detected the following uninstalled tools:
80
-
81
- 🔴 Uninstalled CLI tools:
82
- - Claude CLI (required) - Anthropic Claude CLI tool
83
- - QwenCode CLI (optional) - Alibaba Cloud QwenCode CLI tool
84
-
85
- Do you want to try automatically installing 2 CLI tools? (Y/n): Y
86
- ```
87
-
88
- ## 🎯 Cross-CLI Collaboration Examples
89
-
90
- After installation, you can directly invoke other tools in any supported CLI:
91
-
92
- ### In Claude CLI
93
- ```bash
94
- # Invoke other AI tools
95
- Please use gemini to help me translate this code
96
- Call qwen to analyze this requirement
97
- Use iflow to create a workflow
98
- Let qoder generate Python code
99
- Start codebuddy assistant
100
- ```
101
-
102
- ### In Gemini CLI
103
- ```bash
104
- # Cross-tool collaboration
105
- Use claude to check code quality
106
- Let qwen help me write documentation
107
- Use copilot to generate code snippets
108
- ```
109
-
110
- ## 🛠️ Complete Command List
111
-
112
- ```bash
113
- # Basic commands
114
- stigmergy-cli init # Initialize project
115
- stigmergy-cli status # View status
116
- stigmergy-cli scan # Scan environment
117
-
118
- # Deployment commands
119
- stigmergy-cli deploy # Intelligent deployment (default)
120
- stigmergy-cli deploy-all # Full deployment
121
-
122
- # Project management
123
- stigmergy-cli check-project # Check project
124
- stigmergy-cli validate # Validate configuration
125
- stigmergy-cli clean # Clean environment
126
-
127
- # Development commands
128
- npm run build # Build project
129
- npm run publish-to-npm # Publish to NPM
130
- npm run test # Run tests
131
- ```
132
-
133
- ## 📁 Project Structure
134
-
135
- ```
136
- stigmergy-CLI-Multi-Agents/
137
- ├── package.json # NPM package configuration
138
- ├── src/
139
- │ ├── main.js # Main entry file
140
- │ ├── deploy.js # Intelligent deployment script
141
- │ ├── adapters/ # CLI adapters
142
- │ │ ├── claude/
143
- │ │ ├── gemini/
144
- │ │ ├── qwencode/
145
- │ └── ...
146
- └── core/ # Core modules
147
- ├── adapters/ # CLI installation scripts
148
- │ ├── claude/install_claude_integration.py
149
- │ ├── gemini/install_gemini_integration.py
150
- └── ...
151
- └── templates/ # Configuration templates
152
- ```
153
-
154
- ## 🔧 Automatic CLI Tool Installation
155
-
156
- The intelligent deployment script supports automatic installation of all CLI tools:
157
-
158
- ### Core Tools
159
- ```bash
160
- npm install -g @anthropic-ai/claude-code
161
- npm install -g @google/gemini-cli
162
- ```
163
-
164
- ### Extended Tools
165
- ```bash
166
- npm install -g @qwen-code/qwen-code@latest
167
- npm install -g @iflow-ai/iflow-cli@latest
168
- npm install -g @qoder-ai/qodercli
169
- npm install -g @tencent-ai/codebuddy-code
170
- npm install -g @github/copilot
171
- npm i -g @openai/codex --registry=https://registry.npmmirror.com
172
- ```
173
-
174
- ## 🎯 Use Cases
175
-
176
- ### Scenario 1: Individual Developer Environment
177
- ```bash
178
- # Quick setup for new development environment
179
- git clone my-project
180
- cd my-project
181
- stigmergy-cli deploy
182
-
183
- # Now you can collaborate across tools in any CLI
184
- claude-cli "Please use gemini to help me optimize the performance of this code"
185
- ```
186
-
187
- ### Scenario 2: Team Collaboration
188
- ```bash
189
- # Team-shared project configuration
190
- git clone team-project
191
- cd team-project
192
- stigmergy-cli init
193
-
194
- # All team members use the same collaboration context
195
- gemini-cli "Use claude to check the design patterns of this module"
196
- ```
197
-
198
- ### Scenario 3: Multi-Language Development
199
- ```bash
200
- # Complementing different AI tool specializations
201
- qwen-cli "Use copilot to generate front-end components"
202
- iflow-cli "Let gemini create API documentation"
203
- ```
204
-
205
- ## 🔧 Development Environment Setup
206
-
207
- ```bash
208
- # Clone project
209
- git clone https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git
210
- cd stigmergy-CLI-Multi-Agents
211
-
212
- # Install dependencies
213
- npm install
214
-
215
- # Run in development mode
216
- npm run start
217
- npm run status
218
- npm run scan
219
-
220
- # Build and publish
221
- npm run build
222
- npm run publish-to-npm
223
- ```
224
-
225
- ## 🚀 Publishing New Versions
226
-
227
- ```bash
228
- # Update version number
229
- npm version patch # Patch version
230
- npm version minor # Minor version
231
- npm version major # Major version
232
-
233
- # Publish to NPM
234
- npm run publish-to-npm
235
-
236
- # Verify publication
237
- npx stigmergy-cli --version
238
- ```
239
-
240
- ## 🛠️ Troubleshooting
241
-
242
- ### Common Issues
243
-
244
- 1. **Node.js version incompatible**
245
- ```bash
246
- # Ensure Node.js 16+ is used
247
- node --version
248
- ```
249
-
250
- 2. **Permission errors**
251
- ```bash
252
- # Use administrator privileges
253
- sudo npm install -g stigmergy-cli
254
- ```
255
-
256
- 3. **Network connection issues**
257
- ```bash
258
- # Set NPM mirror
259
- npm config set registry https://registry.npmmirror.com
260
- ```
261
-
262
- 4. **CLI tool installation failed**
263
- ```bash
264
- # Manually install specific tool
265
- npm install -g @anthropic-ai/claude-code
266
- ```
267
-
268
- ### Debug Mode
269
-
270
- ```bash
271
- # Detailed debug output
272
- DEBUG=stigmergy:* stigmergy-cli deploy
273
-
274
- # Status scan only
275
- stigmergy-cli scan
276
- ```
277
-
278
- ## 📚 More Information
279
-
280
- - **GitHub**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents
281
- - **NPM**: https://www.npmjs.com/package/stigmergy-cli
282
- - **Documentation**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents#readme
283
- - **Issue Feedback**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents/issues
284
-
285
- ## 🤝 Contributing
286
-
287
- Pull Requests and Issues are welcome!
288
-
289
- 1. Fork the project
290
- 2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
291
- 3. Commit changes (`git commit -m 'Add some AmazingFeature'`)
292
- 4. Push to branch (`git push origin feature/AmazingFeature`)
293
- 5. Open a Pull Request
294
-
295
- ## 📄 License
296
-
297
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
298
-
299
- ---
300
-
1
+ # 🔧 Stigmergy CLI - Multi-Agents Cross-AI CLI Tool Collaboration System
2
+
3
+ > **⚠️ Important Clarification: This is not a standalone CLI tool, but an enhancement system!**
4
+ >
5
+ > Stigmergy CLI enables existing AI CLI tools to collaborate with each other through a plugin system, rather than replacing them.
6
+
7
+ [![Node.js](https://img.shields.io/badge/node-16+-green.svg)](https://nodejs.org)
8
+ [![NPM](https://img.shields.io/badge/npm-stigmergy-cli-blue.svg)](https://www.npmjs.com/package/stigmergy-cli)
9
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
10
+ [![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey.svg)]()
11
+
12
+ ## 🚀 Quick Start
13
+
14
+ ### One-Click Deployment (Recommended)
15
+
16
+ ```bash
17
+ # One-click deployment of the complete collaboration system (detection + installation + configuration)
18
+ npx -y git+https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git#main quick-deploy
19
+ ```
20
+
21
+ Or, if you have already installed stigmergy-cli globally:
22
+
23
+ ```bash
24
+ # Run through the installed CLI
25
+ npx stigmergy-cli quick-deploy
26
+ ```
27
+
28
+ ### Manual Installation
29
+
30
+ ```bash
31
+ # Install globally via NPM
32
+ npm install -g stigmergy-cli
33
+
34
+ # Initialize project
35
+ stigmergy-cli init
36
+
37
+ # Intelligent deployment (scan environment + prompt + auto-install)
38
+ stigmergy-cli deploy
39
+
40
+ # Or use npx (no installation required)
41
+ npx stigmergy-cli init
42
+ npx stigmergy-cli deploy
43
+ ```
44
+
45
+ ## ✨ Core Features
46
+
47
+ ### 🎯 Direct Cross-CLI Collaboration
48
+ - **Natural Language Invocation**: Directly invoke other AI tools in any supported CLI
49
+ - **Seamless Integration**: Does not change the existing usage of CLI tools
50
+ - **Smart Routing**: Automatically identifies collaboration intent and delegates to the appropriate tool
51
+
52
+ ### 🔧 Enhanced CLI Help Information Parsing
53
+ - **Real-time Extraction**: Dynamically parses actual CLI `--help` output to get latest command specifications
54
+ - **Smart Options Detection**: Automatically identifies global options, subcommands, and parameters
55
+ - **Graceful Fallback**: Falls back to preset templates when real-time parsing fails
56
+ - **Persistent Updates**: Stores parsed results for future use, continuously improving accuracy
57
+
58
+ ### 📋 Supported CLI Tools
59
+
60
+ #### Core Tools (Required)
61
+ - **Claude CLI** - Anthropic Claude CLI tool
62
+ - **Gemini CLI** - Google Gemini CLI tool
63
+
64
+ #### Extended Tools (Optional)
65
+ - **QwenCode CLI** - Alibaba Cloud QwenCode CLI tool
66
+ - **iFlow CLI** - iFlow workflow CLI tool
67
+ - **Qoder CLI** - Qoder code generation CLI tool
68
+ - **CodeBuddy CLI** - CodeBuddy programming assistant CLI tool
69
+ - **GitHub Copilot CLI** - GitHub Copilot CLI tool
70
+ - **Codex CLI** - OpenAI Codex code analysis CLI tool
71
+
72
+ ### 🧩 Intelligent Deployment System
73
+
74
+ ```bash
75
+ # Intelligent deployment (recommended)
76
+ stigmergy-cli deploy
77
+
78
+ # Sample output:
79
+ 🔍 Scanning system CLI tool status...
80
+
81
+ 🔴 Claude CLI | CLI: Not installed | Integration: Not installed
82
+ 🟢 Gemini CLI | CLI: Available | Integration: Installed
83
+ 🔴 QwenCode CLI | CLI: Not installed | Integration: Not installed
84
+
85
+ 📋 Detected the following uninstalled tools:
86
+
87
+ 🔴 Uninstalled CLI tools:
88
+ - Claude CLI (required) - Anthropic Claude CLI tool
89
+ - QwenCode CLI (optional) - Alibaba Cloud QwenCode CLI tool
90
+
91
+ Do you want to try automatically installing 2 CLI tools? (Y/n): Y
92
+ ```
93
+
94
+ ## 🎯 Cross-CLI Collaboration Examples
95
+
96
+ After installation, you can directly invoke other tools in any supported CLI:
97
+
98
+ ### In Claude CLI
99
+ ```bash
100
+ # Invoke other AI tools
101
+ Please use gemini to help me translate this code
102
+ Call qwen to analyze this requirement
103
+ Use iflow to create a workflow
104
+ Let qoder generate Python code
105
+ Start codebuddy assistant
106
+ ```
107
+
108
+ ### In Gemini CLI
109
+ ```bash
110
+ # Cross-tool collaboration
111
+ Use claude to check code quality
112
+ Let qwen help me write documentation
113
+ Use copilot to generate code snippets
114
+ ```
115
+
116
+ ## 🛠️ Complete Command List
117
+
118
+ ```bash
119
+ # Basic commands
120
+ stigmergy-cli init # Initialize project
121
+ stigmergy-cli status # View status
122
+ stigmergy-cli scan # Scan environment
123
+
124
+ # Deployment commands
125
+ stigmergy-cli deploy # Intelligent deployment (default)
126
+ stigmergy-cli deploy-all # Full deployment
127
+
128
+ # Project management
129
+ stigmergy-cli check-project # Check project
130
+ stigmergy-cli validate # Validate configuration
131
+ stigmergy-cli clean # Clean environment
132
+
133
+ # Development commands
134
+ npm run build # Build project
135
+ npm run publish-to-npm # Publish to NPM
136
+ npm run test # Run tests
137
+ ```
138
+
139
+ ## 📁 Project Structure
140
+
141
+ ```
142
+ stigmergy-CLI-Multi-Agents/
143
+ ├── package.json # NPM package configuration
144
+ ├── src/
145
+ ├── main.js # Main entry file
146
+ ├── deploy.js # Intelligent deployment script
147
+ ├── adapters/ # CLI adapters
148
+ ├── claude/
149
+ ├── gemini/
150
+ │ ├── qwencode/
151
+ │ │ └── ...
152
+ │ └── core/ # Core modules
153
+ ├── adapters/ # CLI installation scripts
154
+ │ ├── claude/install_claude_integration.py
155
+ │ ├── gemini/install_gemini_integration.py
156
+ │ └── ...
157
+ └── templates/ # Configuration templates
158
+ ```
159
+
160
+ ## 🔧 Automatic CLI Tool Installation
161
+
162
+ The intelligent deployment script supports automatic installation of all CLI tools:
163
+
164
+ ### Core Tools
165
+ ```bash
166
+ npm install -g @anthropic-ai/claude-code
167
+ npm install -g @google/gemini-cli
168
+ ```
169
+
170
+ ### Extended Tools
171
+ ```bash
172
+ npm install -g @qwen-code/qwen-code@latest
173
+ npm install -g @iflow-ai/iflow-cli@latest
174
+ npm install -g @qoder-ai/qodercli
175
+ npm install -g @tencent-ai/codebuddy-code
176
+ npm install -g @github/copilot
177
+ npm i -g @openai/codex --registry=https://registry.npmmirror.com
178
+ ```
179
+
180
+ ## 🎯 Use Cases
181
+
182
+ ### Scenario 1: Individual Developer Environment
183
+ ```bash
184
+ # Quick setup for new development environment
185
+ git clone my-project
186
+ cd my-project
187
+ stigmergy-cli deploy
188
+
189
+ # Now you can collaborate across tools in any CLI
190
+ claude-cli "Please use gemini to help me optimize the performance of this code"
191
+ ```
192
+
193
+ ### Scenario 2: Team Collaboration
194
+ ```bash
195
+ # Team-shared project configuration
196
+ git clone team-project
197
+ cd team-project
198
+ stigmergy-cli init
199
+
200
+ # All team members use the same collaboration context
201
+ gemini-cli "Use claude to check the design patterns of this module"
202
+ ```
203
+
204
+ ### Scenario 3: Multi-Language Development
205
+ ```bash
206
+ # Complementing different AI tool specializations
207
+ qwen-cli "Use copilot to generate front-end components"
208
+ iflow-cli "Let gemini create API documentation"
209
+ ```
210
+
211
+ ## 🔧 Development Environment Setup
212
+
213
+ ```bash
214
+ # Clone project
215
+ git clone https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git
216
+ cd stigmergy-CLI-Multi-Agents
217
+
218
+ # Install dependencies
219
+ npm install
220
+
221
+ # Run in development mode
222
+ npm run start
223
+ npm run status
224
+ npm run scan
225
+
226
+ # Build and publish
227
+ npm run build
228
+ npm run publish-to-npm
229
+ ```
230
+
231
+ ## 🚀 Publishing New Versions
232
+
233
+ ```bash
234
+ # Update version number
235
+ npm version patch # Patch version
236
+ npm version minor # Minor version
237
+ npm version major # Major version
238
+
239
+ # Publish to NPM
240
+ npm run publish-to-npm
241
+
242
+ # Verify publication
243
+ npx stigmergy-cli --version
244
+ ```
245
+
246
+ ## 🛠️ Troubleshooting
247
+
248
+ ### Common Issues
249
+
250
+ 1. **Node.js version incompatible**
251
+ ```bash
252
+ # Ensure Node.js 16+ is used
253
+ node --version
254
+ ```
255
+
256
+ 2. **Permission errors**
257
+ ```bash
258
+ # Use administrator privileges
259
+ sudo npm install -g stigmergy-cli
260
+ ```
261
+
262
+ 3. **Network connection issues**
263
+ ```bash
264
+ # Set NPM mirror
265
+ npm config set registry https://registry.npmmirror.com
266
+ ```
267
+
268
+ 4. **CLI tool installation failed**
269
+ ```bash
270
+ # Manually install specific tool
271
+ npm install -g @anthropic-ai/claude-code
272
+ ```
273
+
274
+ ### Debug Mode
275
+
276
+ ```bash
277
+ # Detailed debug output
278
+ DEBUG=stigmergy:* stigmergy-cli deploy
279
+
280
+ # Status scan only
281
+ stigmergy-cli scan
282
+ ```
283
+
284
+ ## 📚 More Information
285
+
286
+ - **GitHub**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents
287
+ - **NPM**: https://www.npmjs.com/package/stigmergy-cli
288
+ - **Documentation**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents#readme
289
+ - **Issue Feedback**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents/issues
290
+
291
+ ## 🤝 Contributing
292
+
293
+ Pull Requests and Issues are welcome!
294
+
295
+ 1. Fork the project
296
+ 2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
297
+ 3. Commit changes (`git commit -m 'Add some AmazingFeature'`)
298
+ 4. Push to branch (`git push origin feature/AmazingFeature`)
299
+ 5. Open a Pull Request
300
+
301
+ ## 📄 License
302
+
303
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
304
+
305
+ ---
306
+
301
307
  **🎯 Stigmergy CLI - True cross-CLI collaboration, enabling each AI tool to maximize its value!**