stigmergy 1.0.57
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/LICENSE +19 -0
- package/README.de.md +301 -0
- package/README.en.md +301 -0
- package/README.es.md +301 -0
- package/README.fr.md +301 -0
- package/README.ja.md +301 -0
- package/README.ko.md +301 -0
- package/README.md +301 -0
- package/README.ru.md +301 -0
- package/README.zh.md +301 -0
- package/package.json +82 -0
- package/src/adapters/claude/__init__.py +13 -0
- package/src/adapters/claude/claude_skills_integration.py +609 -0
- package/src/adapters/claude/hook_adapter.py +663 -0
- package/src/adapters/claude/install_claude_integration.py +265 -0
- package/src/adapters/claude/skills_hook_adapter.py +841 -0
- package/src/adapters/claude/standalone_claude_adapter.py +384 -0
- package/src/adapters/cline/__init__.py +20 -0
- package/src/adapters/cline/config.py +108 -0
- package/src/adapters/cline/install_cline_integration.py +617 -0
- package/src/adapters/cline/mcp_server.py +713 -0
- package/src/adapters/cline/standalone_cline_adapter.py +459 -0
- package/src/adapters/codebuddy/__init__.py +13 -0
- package/src/adapters/codebuddy/buddy_adapter.py +1125 -0
- package/src/adapters/codebuddy/install_codebuddy_integration.py +279 -0
- package/src/adapters/codebuddy/skills_hook_adapter.py +672 -0
- package/src/adapters/codebuddy/skills_integration.py +395 -0
- package/src/adapters/codebuddy/standalone_codebuddy_adapter.py +403 -0
- package/src/adapters/codex/__init__.py +11 -0
- package/src/adapters/codex/base.py +46 -0
- package/src/adapters/codex/install_codex_integration.py +311 -0
- package/src/adapters/codex/mcp_server.py +493 -0
- package/src/adapters/codex/natural_language_parser.py +82 -0
- package/src/adapters/codex/slash_command_adapter.py +326 -0
- package/src/adapters/codex/standalone_codex_adapter.py +362 -0
- package/src/adapters/copilot/__init__.py +13 -0
- package/src/adapters/copilot/install_copilot_integration.py +564 -0
- package/src/adapters/copilot/mcp_adapter.py +772 -0
- package/src/adapters/copilot/mcp_server.py +168 -0
- package/src/adapters/copilot/standalone_copilot_adapter.py +114 -0
- package/src/adapters/gemini/__init__.py +13 -0
- package/src/adapters/gemini/extension_adapter.py +690 -0
- package/src/adapters/gemini/install_gemini_integration.py +257 -0
- package/src/adapters/gemini/standalone_gemini_adapter.py +366 -0
- package/src/adapters/iflow/__init__.py +7 -0
- package/src/adapters/iflow/hook_adapter.py +1038 -0
- package/src/adapters/iflow/hook_installer.py +536 -0
- package/src/adapters/iflow/install_iflow_integration.py +271 -0
- package/src/adapters/iflow/official_hook_adapter.py +1272 -0
- package/src/adapters/iflow/standalone_iflow_adapter.py +48 -0
- package/src/adapters/iflow/workflow_adapter.py +793 -0
- package/src/adapters/qoder/hook_installer.py +732 -0
- package/src/adapters/qoder/install_qoder_integration.py +265 -0
- package/src/adapters/qoder/notification_hook_adapter.py +863 -0
- package/src/adapters/qoder/standalone_qoder_adapter.py +48 -0
- package/src/adapters/qwen/__init__.py +17 -0
- package/src/adapters/qwencode/__init__.py +13 -0
- package/src/adapters/qwencode/inheritance_adapter.py +818 -0
- package/src/adapters/qwencode/install_qwencode_integration.py +276 -0
- package/src/adapters/qwencode/standalone_qwencode_adapter.py +399 -0
- package/src/atomic_collaboration_handler.py +461 -0
- package/src/cli_collaboration_agent.py +697 -0
- package/src/collaboration/hooks.py +315 -0
- package/src/core/__init__.py +21 -0
- package/src/core/ai_environment_scanner.py +331 -0
- package/src/core/base_adapter.py +220 -0
- package/src/core/cli_hook_integration.py +406 -0
- package/src/core/cross_cli_executor.py +713 -0
- package/src/core/cross_cli_mapping.py +1163 -0
- package/src/core/cross_platform_encoding.py +365 -0
- package/src/core/cross_platform_safe_cli.py +894 -0
- package/src/core/direct_cli_executor.py +805 -0
- package/src/core/direct_cli_hook_system.py +958 -0
- package/src/core/enhanced_init_processor.py +427 -0
- package/src/core/graceful_cli_executor.py +912 -0
- package/src/core/md_enhancer.py +342 -0
- package/src/core/md_generator.py +619 -0
- package/src/core/models.py +218 -0
- package/src/core/parser.py +108 -0
- package/src/core/real_cli_hook_system.py +852 -0
- package/src/core/real_cross_cli_system.py +925 -0
- package/src/core/verified_cross_cli_system.py +961 -0
- package/src/deploy.js +737 -0
- package/src/enhanced_deploy.js +303 -0
- package/src/enhanced_universal_cli_setup.py +930 -0
- package/src/kimi_wrapper.py +104 -0
- package/src/main.js +1309 -0
- package/src/shell_integration.py +398 -0
- package/src/simple-main.js +315 -0
- package/src/smart_router_creator.py +323 -0
- package/src/universal_cli_setup.py +1289 -0
- package/src/utils/__init__.py +12 -0
- package/src/utils/cli_detector.py +445 -0
- package/src/utils/file_utils.py +246 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
MIT 许可证
|
|
2
|
+
|
|
3
|
+
版权所有 (c) 2025 Zhang
|
|
4
|
+
|
|
5
|
+
特此授权,任何人免费获得此软件及相关文档文件("软件")的副本,
|
|
6
|
+
有权使用、复制、修改、合并、发布、分发、再许可和/或出售软件的副本,
|
|
7
|
+
并有权授予软件使用许可,但须遵守以下条件:
|
|
8
|
+
|
|
9
|
+
软件中包含以上的版权声明和本许可声明。
|
|
10
|
+
|
|
11
|
+
本软件按"现状"提供,不提供任何形式的明示或暗示担保,
|
|
12
|
+
包括但不限于适销性、特定用途的适用性和非侵权性。
|
|
13
|
+
在任何情况下,作者或版权持有人均不对任何索赔、损害或其他
|
|
14
|
+
责任承担责任,无论是合同诉讼、侵权诉讼还是其它诉讼行为,
|
|
15
|
+
与本软件或本软件的使用有关或与其产生的其他交易有关。
|
|
16
|
+
|
|
17
|
+
联系方式:
|
|
18
|
+
- 项目官网: http://www.socienceAI.com
|
|
19
|
+
- 技术支持: 3061176@qq.com
|
package/README.de.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# 🔧 Stigmergy CLI - Multi-Agents KI CLI Tool Zusammenarbeitssystem
|
|
2
|
+
|
|
3
|
+
> **⚠️ Wichtige Klärung: Dies ist kein eigenständiges CLI-Tool, sondern ein Verbesserungssystem!**
|
|
4
|
+
>
|
|
5
|
+
> Stigmergy CLI ermöglicht es vorhandenen KI CLI-Tools durch ein Plugin-System zusammenzuarbeiten, anstatt sie zu ersetzen.
|
|
6
|
+
|
|
7
|
+
[](https://nodejs.org)
|
|
8
|
+
[](https://www.npmjs.com/package/stigmergy-cli)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[]()
|
|
11
|
+
|
|
12
|
+
## 🚀 Schnellstart
|
|
13
|
+
|
|
14
|
+
### Ein-Klick-Bereitstellung (Empfohlen)
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Ein-Klick-Bereitstellung des vollständigen Zusammenarbeitssystems (Erkennung + Installation + Konfiguration)
|
|
18
|
+
npx -y git+https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git#main quick-deploy
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Oder, wenn Sie stigmergy-cli bereits global installiert haben:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Über die installierte CLI ausführen
|
|
25
|
+
npx stigmergy-cli quick-deploy
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Manuelles Setup
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Globale Installation über NPM
|
|
32
|
+
npm install -g stigmergy-cli
|
|
33
|
+
|
|
34
|
+
# Projekt initialisieren
|
|
35
|
+
stigmergy-cli init
|
|
36
|
+
|
|
37
|
+
# Intelligente Bereitstellung (Umgebung scannen + nachfragen + Auto-Installation)
|
|
38
|
+
stigmergy-cli deploy
|
|
39
|
+
|
|
40
|
+
# Oder npx verwenden (keine Installation erforderlich)
|
|
41
|
+
npx stigmergy-cli init
|
|
42
|
+
npx stigmergy-cli deploy
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## ✨ Hauptfunktionen
|
|
46
|
+
|
|
47
|
+
### 🎯 Direkte CLI-übergreifende Zusammenarbeit
|
|
48
|
+
- **Natürliche Sprachaufrufe**: Andere KI-Tools direkt in jeder unterstützten CLI aufrufen
|
|
49
|
+
- **Nahtlose Integration**: Ändert nicht die bestehende Nutzung von CLI-Tools
|
|
50
|
+
- **Intelligente Weiterleitung**: Erkennt automatisch Zusammenarbeitsabsichten und leitet an das geeignete Tool weiter
|
|
51
|
+
|
|
52
|
+
### 📋 Unterstützte CLI-Tools
|
|
53
|
+
|
|
54
|
+
#### Kern-Tools (Erforderlich)
|
|
55
|
+
- **Claude CLI** - Anthropic Claude CLI-Tool
|
|
56
|
+
- **Gemini CLI** - Google Gemini CLI-Tool
|
|
57
|
+
|
|
58
|
+
#### Erweiterte Tools (Optional)
|
|
59
|
+
- **QwenCode CLI** - Alibaba Cloud QwenCode CLI-Tool
|
|
60
|
+
- **iFlow CLI** - iFlow Workflow CLI-Tool
|
|
61
|
+
- **Qoder CLI** - Qoder Codegenerierungs-CLI-Tool
|
|
62
|
+
- **CodeBuddy CLI** - CodeBuddy Programmierassistent CLI-Tool
|
|
63
|
+
- **GitHub Copilot CLI** - GitHub Copilot CLI-Tool
|
|
64
|
+
- **Codex CLI** - OpenAI Codex Codeanalyse CLI-Tool
|
|
65
|
+
|
|
66
|
+
### 🧩 Intelligente Bereitstellungsplattform
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Intelligente Bereitstellung (empfohlen)
|
|
70
|
+
stigmergy-cli deploy
|
|
71
|
+
|
|
72
|
+
# Beispielausgabe:
|
|
73
|
+
🔍 Scanne System-CLI-Tool-Status...
|
|
74
|
+
|
|
75
|
+
🔴 ❌ Claude CLI | CLI: Nicht installiert | Integration: Nicht installiert
|
|
76
|
+
🟢 ✅ Gemini CLI | CLI: Verfügbar | Integration: Installiert
|
|
77
|
+
🔴 ❌ QwenCode CLI | CLI: Nicht installiert | Integration: Nicht installiert
|
|
78
|
+
|
|
79
|
+
📋 Folgende nicht installierte Tools erkannt:
|
|
80
|
+
|
|
81
|
+
🔴 Nicht installierte CLI-Tools:
|
|
82
|
+
- Claude CLI (erforderlich) - Anthropic Claude CLI-Tool
|
|
83
|
+
- QwenCode CLI (optional) - Alibaba Cloud QwenCode CLI-Tool
|
|
84
|
+
|
|
85
|
+
Möchten Sie versuchen, 2 CLI-Tools automatisch zu installieren? (Y/n): Y
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## 🎯 CLI-übergreifende Zusammenarbeitsbeispiele
|
|
89
|
+
|
|
90
|
+
Nach der Installation können Sie in jeder unterstützten CLI andere Tools direkt aufrufen:
|
|
91
|
+
|
|
92
|
+
### In Claude CLI
|
|
93
|
+
```bash
|
|
94
|
+
# Andere KI-Tools aufrufen
|
|
95
|
+
Bitte verwende gemini, um mir bei der Übersetzung dieses Codes zu helfen
|
|
96
|
+
Rufe qwen auf, um diese Anforderung zu analysieren
|
|
97
|
+
Verwende iflow, um einen Workflow zu erstellen
|
|
98
|
+
Lass qoder Python-Code generieren
|
|
99
|
+
Starte den codebuddy-Assistenten
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### In Gemini CLI
|
|
103
|
+
```bash
|
|
104
|
+
# Werkzeugübergreifende Zusammenarbeit
|
|
105
|
+
Verwende claude, um die Codequalität zu prüfen
|
|
106
|
+
Lass qwen mir bei der Dokumentation helfen
|
|
107
|
+
Nutze copilot, um Code-Schnipsel zu generieren
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## 🛠️ Vollständige Befehlsliste
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Grundbefehle
|
|
114
|
+
stigmergy-cli init # Projekt initialisieren
|
|
115
|
+
stigmergy-cli status # Status anzeigen
|
|
116
|
+
stigmergy-cli scan # Umgebung scannen
|
|
117
|
+
|
|
118
|
+
# Bereitstellungsbefehle
|
|
119
|
+
stigmergy-cli deploy # Intelligente Bereitstellung (Standard)
|
|
120
|
+
stigmergy-cli deploy-all # Vollständige Bereitstellung
|
|
121
|
+
|
|
122
|
+
# Projektmanagement
|
|
123
|
+
stigmergy-cli check-project # Projekt prüfen
|
|
124
|
+
stigmergy-cli validate # Konfiguration validieren
|
|
125
|
+
stigmergy-cli clean # Umgebung bereinigen
|
|
126
|
+
|
|
127
|
+
# Entwicklungsbefehle
|
|
128
|
+
npm run build # Projekt bauen
|
|
129
|
+
npm run publish-to-npm # Auf NPM veröffentlichen
|
|
130
|
+
npm run test # Tests ausführen
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## 📁 Projektstruktur
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
stigmergy-CLI-Multi-Agents/
|
|
137
|
+
├── package.json # NPM-Paketkonfiguration
|
|
138
|
+
├── src/
|
|
139
|
+
│ ├── main.js # Haupt-Einstiegsdatei
|
|
140
|
+
│ ├── deploy.js # Intelligenter Bereitstellungsskript
|
|
141
|
+
│ ├── adapters/ # CLI-Adapter
|
|
142
|
+
│ │ ├── claude/
|
|
143
|
+
│ │ ├── gemini/
|
|
144
|
+
│ │ ├── qwencode/
|
|
145
|
+
│ │ └── ...
|
|
146
|
+
│ └── core/ # Kernmodule
|
|
147
|
+
├── adapters/ # CLI-Installationsskripte
|
|
148
|
+
│ ├── claude/install_claude_integration.py
|
|
149
|
+
│ ├── gemini/install_gemini_integration.py
|
|
150
|
+
│ └── ...
|
|
151
|
+
└── templates/ # Konfigurationsvorlagen
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## 🔧 Automatische CLI-Tool-Installation
|
|
155
|
+
|
|
156
|
+
Das intelligente Bereitstellungsskript unterstützt die automatische Installation aller CLI-Tools:
|
|
157
|
+
|
|
158
|
+
### Kerntools
|
|
159
|
+
```bash
|
|
160
|
+
npm install -g @anthropic-ai/claude-code
|
|
161
|
+
npm install -g @google/gemini-cli
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Erweiterte 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
|
+
## 🎯 Anwendungsfälle
|
|
175
|
+
|
|
176
|
+
### Szenario 1: Persönliche Entwicklerumgebung
|
|
177
|
+
```bash
|
|
178
|
+
# Schnelles Setup für neue Entwicklungsumgebung
|
|
179
|
+
git clone my-project
|
|
180
|
+
cd my-project
|
|
181
|
+
stigmergy-cli deploy
|
|
182
|
+
|
|
183
|
+
# Jetzt können Sie in jeder CLI werkzeugübergreifend zusammenarbeiten
|
|
184
|
+
claude-cli "Bitte verwende gemini, um mir bei der Leistungsoptimierung dieses Codes zu helfen"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Szenario 2: Teamzusammenarbeit
|
|
188
|
+
```bash
|
|
189
|
+
# Teamweite Projektkonfiguration
|
|
190
|
+
git clone team-project
|
|
191
|
+
cd team-project
|
|
192
|
+
stigmergy-cli init
|
|
193
|
+
|
|
194
|
+
# Alle Teammitglieder verwenden denselben Zusammenarbeitskontext
|
|
195
|
+
gemini-cli "Verwende claude, um die Designmuster dieses Moduls zu prüfen"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Szenario 3: Mehrsprachige Entwicklung
|
|
199
|
+
```bash
|
|
200
|
+
# Ergänzung verschiedener KI-Tool-Spezialisierungen
|
|
201
|
+
qwen-cli "Verwende copilot, um Frontend-Komponenten zu generieren"
|
|
202
|
+
iflow-cli "Lass gemini API-Dokumentation erstellen"
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## 🔧 Entwicklungsumgebung einrichten
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
# Projekt klonen
|
|
209
|
+
git clone https://github.com/ptreezh/stigmergy-CLI-Multi-Agents.git
|
|
210
|
+
cd stigmergy-CLI-Multi-Agents
|
|
211
|
+
|
|
212
|
+
# Abhängigkeiten installieren
|
|
213
|
+
npm install
|
|
214
|
+
|
|
215
|
+
# Im Entwicklungsmodus ausführen
|
|
216
|
+
npm run start
|
|
217
|
+
npm run status
|
|
218
|
+
npm run scan
|
|
219
|
+
|
|
220
|
+
# Bauen und veröffentlichen
|
|
221
|
+
npm run build
|
|
222
|
+
npm run publish-to-npm
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## 🚀 Neue Versionen veröffentlichen
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
# Versionsnummer aktualisieren
|
|
229
|
+
npm version patch # Patch-Version
|
|
230
|
+
npm version minor # Unterversion
|
|
231
|
+
npm version major # Hauptversion
|
|
232
|
+
|
|
233
|
+
# Auf NPM veröffentlichen
|
|
234
|
+
npm run publish-to-npm
|
|
235
|
+
|
|
236
|
+
# Veröffentlichung verifizieren
|
|
237
|
+
npx stigmergy-cli --version
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## 🛠️ Fehlerbehebung
|
|
241
|
+
|
|
242
|
+
### Häufige Probleme
|
|
243
|
+
|
|
244
|
+
1. **Node.js-Version inkompatibel**
|
|
245
|
+
```bash
|
|
246
|
+
# Sicherstellen, dass Node.js 16+ verwendet wird
|
|
247
|
+
node --version
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
2. **Berechtigungsfehler**
|
|
251
|
+
```bash
|
|
252
|
+
# Administratorrechte verwenden
|
|
253
|
+
sudo npm install -g stigmergy-cli
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
3. **Netzwerkverbindungsprobleme**
|
|
257
|
+
```bash
|
|
258
|
+
# NPM-Spiegel einstellen
|
|
259
|
+
npm config set registry https://registry.npmmirror.com
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
4. **CLI-Tool-Installationsfehler**
|
|
263
|
+
```bash
|
|
264
|
+
# Bestimmtes Tool manuell installieren
|
|
265
|
+
npm install -g @anthropic-ai/claude-code
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Debug-Modus
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
# Detaillierte Debug-Ausgabe
|
|
272
|
+
DEBUG=stigmergy:* stigmergy-cli deploy
|
|
273
|
+
|
|
274
|
+
# Nur Status-Scan
|
|
275
|
+
stigmergy-cli scan
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## 📚 Weitere Informationen
|
|
279
|
+
|
|
280
|
+
- **GitHub**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents
|
|
281
|
+
- **NPM**: https://www.npmjs.com/package/stigmergy-cli
|
|
282
|
+
- **Dokumentation**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents#readme
|
|
283
|
+
- **Problemfeedback**: https://github.com/ptreezh/stigmergy-CLI-Multi-Agents/issues
|
|
284
|
+
|
|
285
|
+
## 🤝 Mitwirkung
|
|
286
|
+
|
|
287
|
+
Pull Requests und Issues sind willkommen!
|
|
288
|
+
|
|
289
|
+
1. Projekt forken
|
|
290
|
+
2. Feature-Branch erstellen (`git checkout -b feature/AmazingFeature`)
|
|
291
|
+
3. Änderungen committen (`git commit -m 'Add some AmazingFeature'`)
|
|
292
|
+
4. Auf Branch pushen (`git push origin feature/AmazingFeature`)
|
|
293
|
+
5. Pull Request öffnen
|
|
294
|
+
|
|
295
|
+
## 📄 Lizenz
|
|
296
|
+
|
|
297
|
+
Dieses Projekt ist unter der MIT-Lizenz lizenziert - siehe [LICENSE](LICENSE)-Datei für Details.
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
**🎯 Stigmergy CLI - Wahre CLI-übergreifende Zusammenarbeit, die jedem KI-Tool ermöglicht, seinen Wert zu maximieren!
|
package/README.en.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
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
|
+
### 📋 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
|
+
|
|
301
|
+
**🎯 Stigmergy CLI - True cross-CLI collaboration, enabling each AI tool to maximize its value!**
|