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.
- package/README.en.md +306 -300
- package/README.md +469 -301
- package/package.json +97 -81
- package/scripts/publish.js +268 -0
- package/scripts/simple-publish.js +59 -0
- package/src/index.js +12 -0
- package/test/enhanced-main-alignment.test.js +298 -0
- package/test/hook-system-integration-test.js +307 -0
- package/test/natural-language-skills-test.js +320 -0
- package/test/nl-integration-test.js +179 -0
- package/test/parameter-parsing-test.js +143 -0
- package/test/real-test.js +435 -0
- package/test/system-compatibility-test.js +447 -0
- package/test/tdd-fixes-test.js +211 -0
- package/test/third-party-skills-test.js +321 -0
- package/test/tool-selection-integration-test.js +157 -0
- package/test/unit/cli-scanner.test.js +291 -0
- package/test/unit/cross-cli-executor.test.js +399 -0
- package/src/adapters/claude/__init__.py +0 -13
- package/src/adapters/claude/claude_skills_integration.py +0 -609
- package/src/adapters/claude/hook_adapter.py +0 -663
- package/src/adapters/claude/install_claude_integration.py +0 -265
- package/src/adapters/claude/skills_hook_adapter.py +0 -841
- package/src/adapters/claude/standalone_claude_adapter.py +0 -384
- package/src/adapters/cline/__init__.py +0 -20
- package/src/adapters/cline/config.py +0 -108
- package/src/adapters/cline/install_cline_integration.py +0 -617
- package/src/adapters/cline/mcp_server.py +0 -713
- package/src/adapters/cline/standalone_cline_adapter.py +0 -459
- package/src/adapters/codebuddy/__init__.py +0 -13
- package/src/adapters/codebuddy/buddy_adapter.py +0 -1125
- package/src/adapters/codebuddy/install_codebuddy_integration.py +0 -279
- package/src/adapters/codebuddy/skills_hook_adapter.py +0 -672
- package/src/adapters/codebuddy/skills_integration.py +0 -395
- package/src/adapters/codebuddy/standalone_codebuddy_adapter.py +0 -403
- package/src/adapters/codex/__init__.py +0 -11
- package/src/adapters/codex/base.py +0 -46
- package/src/adapters/codex/install_codex_integration.py +0 -311
- package/src/adapters/codex/mcp_server.py +0 -493
- package/src/adapters/codex/natural_language_parser.py +0 -82
- package/src/adapters/codex/slash_command_adapter.py +0 -326
- package/src/adapters/codex/standalone_codex_adapter.py +0 -362
- package/src/adapters/copilot/__init__.py +0 -13
- package/src/adapters/copilot/install_copilot_integration.py +0 -564
- package/src/adapters/copilot/mcp_adapter.py +0 -772
- package/src/adapters/copilot/mcp_server.py +0 -168
- package/src/adapters/copilot/standalone_copilot_adapter.py +0 -114
- package/src/adapters/gemini/__init__.py +0 -13
- package/src/adapters/gemini/extension_adapter.py +0 -690
- package/src/adapters/gemini/install_gemini_integration.py +0 -257
- package/src/adapters/gemini/standalone_gemini_adapter.py +0 -366
- package/src/adapters/iflow/__init__.py +0 -7
- package/src/adapters/iflow/hook_adapter.py +0 -1038
- package/src/adapters/iflow/hook_installer.py +0 -536
- package/src/adapters/iflow/install_iflow_integration.py +0 -271
- package/src/adapters/iflow/official_hook_adapter.py +0 -1272
- package/src/adapters/iflow/standalone_iflow_adapter.py +0 -48
- package/src/adapters/iflow/workflow_adapter.py +0 -793
- package/src/adapters/qoder/hook_installer.py +0 -732
- package/src/adapters/qoder/install_qoder_integration.py +0 -265
- package/src/adapters/qoder/notification_hook_adapter.py +0 -863
- package/src/adapters/qoder/standalone_qoder_adapter.py +0 -48
- package/src/adapters/qwen/__init__.py +0 -17
- package/src/adapters/qwencode/__init__.py +0 -13
- package/src/adapters/qwencode/inheritance_adapter.py +0 -818
- package/src/adapters/qwencode/install_qwencode_integration.py +0 -276
- package/src/adapters/qwencode/standalone_qwencode_adapter.py +0 -399
- package/src/atomic_collaboration_handler.py +0 -461
- package/src/cli_collaboration_agent.py +0 -697
- package/src/collaboration/hooks.py +0 -315
- package/src/core/__init__.py +0 -21
- package/src/core/ai_environment_scanner.py +0 -331
- package/src/core/base_adapter.py +0 -220
- package/src/core/cli_hook_integration.py +0 -406
- package/src/core/cross_cli_executor.py +0 -713
- package/src/core/cross_cli_mapping.py +0 -1165
- package/src/core/cross_platform_encoding.py +0 -365
- package/src/core/cross_platform_safe_cli.py +0 -894
- package/src/core/direct_cli_executor.py +0 -805
- package/src/core/direct_cli_hook_system.py +0 -958
- package/src/core/enhanced_init_processor.py +0 -467
- package/src/core/graceful_cli_executor.py +0 -912
- package/src/core/md_enhancer.py +0 -342
- package/src/core/md_generator.py +0 -619
- package/src/core/models.py +0 -218
- package/src/core/parser.py +0 -108
- package/src/core/real_cli_hook_system.py +0 -852
- package/src/core/real_cross_cli_system.py +0 -925
- package/src/core/verified_cross_cli_system.py +0 -961
- package/src/deploy.js +0 -737
- package/src/enhanced-main.js +0 -626
- package/src/enhanced_deploy.js +0 -303
- package/src/enhanced_universal_cli_setup.py +0 -930
- package/src/kimi_wrapper.py +0 -104
- package/src/main.js +0 -1309
- package/src/shell_integration.py +0 -398
- package/src/simple-main.js +0 -315
- package/src/smart_router_creator.py +0 -323
- package/src/universal_cli_setup.py +0 -1289
- package/src/utils/__init__.py +0 -12
- package/src/utils/cli_detector.py +0 -445
- 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
|
-
[](https://nodejs.org)
|
|
8
|
-
[](https://www.npmjs.com/package/stigmergy-cli)
|
|
9
|
-
[](LICENSE)
|
|
10
|
-
[]()
|
|
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
|
-
###
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- **
|
|
56
|
-
- **
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- **
|
|
62
|
-
- **
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
🔴
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
stigmergy-cli
|
|
121
|
-
|
|
122
|
-
#
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
stigmergy-cli
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
│
|
|
146
|
-
│
|
|
147
|
-
├── adapters/
|
|
148
|
-
│ ├── claude/
|
|
149
|
-
│ ├── gemini/
|
|
150
|
-
│
|
|
151
|
-
└──
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
###
|
|
165
|
-
```bash
|
|
166
|
-
npm install -g @
|
|
167
|
-
npm install -g @
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
#
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
#
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
npm run
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
#
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
#
|
|
253
|
-
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
```bash
|
|
258
|
-
#
|
|
259
|
-
npm
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
```bash
|
|
264
|
-
#
|
|
265
|
-
npm
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
+
[](https://nodejs.org)
|
|
8
|
+
[](https://www.npmjs.com/package/stigmergy-cli)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[]()
|
|
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!**
|