zuppaclaude 1.0.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 hasankaantan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,487 @@
1
+ # 🍝 ZuppaClaude
2
+
3
+ [![npm version](https://badge.fury.io/js/zuppaclaude.svg)](https://www.npmjs.com/package/zuppaclaude)
4
+ [![npm downloads](https://img.shields.io/npm/dm/zuppaclaude.svg)](https://www.npmjs.com/package/zuppaclaude)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ > ⚡ Claude Code için tek komutla kurulum paketi - SuperClaude + Spec Kit + Claude-Z + Claude HUD
8
+
9
+ <p align="center">
10
+ <a href="#-türkçe">🇹🇷 Türkçe</a> •
11
+ <a href="#-english">🇬🇧 English</a>
12
+ </p>
13
+
14
+ ---
15
+
16
+ ## 🇹🇷 Türkçe
17
+
18
+ ### 📦 Nedir?
19
+
20
+ ZuppaClaude, Claude Code deneyiminizi güçlendiren araçları tek komutla kurar:
21
+
22
+ | Araç | Açıklama |
23
+ |------|----------|
24
+ | ⚡ **SuperClaude** | 30+ slash komutu ile gelişmiş iş akışları |
25
+ | 📋 **Spec Kit** | Spec-driven development CLI aracı |
26
+ | 🌐 **Claude-Z** | z.ai backend desteği (opsiyonel) |
27
+ | 📊 **Claude HUD** | Gerçek zamanlı durum göstergesi (opsiyonel) |
28
+ | 📝 **CLAUDE.md** | Optimize edilmiş sistem talimatları |
29
+
30
+ ### 🚀 Hızlı Kurulum
31
+
32
+ #### 📦 NPM ile (Önerilen)
33
+ ```bash
34
+ npx zuppaclaude
35
+ ```
36
+
37
+ Veya global kurulum:
38
+ ```bash
39
+ npm install -g zuppaclaude
40
+ zuppaclaude
41
+ ```
42
+
43
+ #### 🐚 Shell ile
44
+
45
+ **🍎 macOS / 🐧 Linux:**
46
+ ```bash
47
+ curl -fsSL https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/install.sh | bash
48
+ ```
49
+
50
+ **🌍 Alternatif (jsDelivr CDN):**
51
+ ```bash
52
+ curl -fsSL https://cdn.jsdelivr.net/gh/hasankaantan/zuppaclaude@main/install.sh | bash
53
+ ```
54
+
55
+ **🪟 Windows (PowerShell):**
56
+ ```powershell
57
+ irm https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/install.ps1 | iex
58
+ ```
59
+
60
+ ### 📋 Gereksinimler
61
+
62
+ Kurulum scripti eksik bağımlılıkları otomatik kontrol eder:
63
+
64
+ | Gereksinim | Açıklama |
65
+ |------------|----------|
66
+ | 💻 **OS** | macOS, Linux veya Windows 10+ |
67
+ | 🐍 **Python** | 3.8 veya üzeri |
68
+ | 📂 **git** | Versiyon kontrol |
69
+ | 🤖 **Claude Code** | Anthropic CLI (önerilir) |
70
+
71
+ ### ✅ Kurulum Sonrası
72
+
73
+ 1. 🔄 **Claude Code'u yeniden başlat**
74
+
75
+ 2. ⚡ **SuperClaude test et:**
76
+ ```
77
+ /sc:help
78
+ ```
79
+
80
+ 3. 📋 **Spec Kit test et:**
81
+ ```bash
82
+ specify --help
83
+ ```
84
+
85
+ 4. 🌐 **Claude-Z test et (kurulduysa):**
86
+ ```bash
87
+ claude-z
88
+ ```
89
+
90
+ ### ⚡ SuperClaude Komutları
91
+
92
+ #### 🎯 Planlama & Tasarım
93
+ | Komut | Açıklama |
94
+ |-------|----------|
95
+ | `/sc:brainstorm` | 💡 Fikir geliştirme |
96
+ | `/sc:design` | 🏗️ Mimari tasarım |
97
+ | `/sc:estimate` | ⏱️ Zaman/kaynak tahmini |
98
+ | `/sc:spec-panel` | 📑 Spesifikasyon paneli |
99
+
100
+ #### 💻 Geliştirme
101
+ | Komut | Açıklama |
102
+ |-------|----------|
103
+ | `/sc:implement` | ⚙️ Kod implementasyonu |
104
+ | `/sc:build` | 🔨 Build ve derleme |
105
+ | `/sc:improve` | ✨ Kod iyileştirme |
106
+ | `/sc:explain` | 📖 Kod açıklama |
107
+
108
+ #### 🧪 Test & Kalite
109
+ | Komut | Açıklama |
110
+ |-------|----------|
111
+ | `/sc:test` | 🧪 Test oluşturma |
112
+ | `/sc:analyze` | 🔍 Kod analizi |
113
+ | `/sc:troubleshoot` | 🐛 Hata ayıklama |
114
+ | `/sc:reflect` | 🪞 Retrospektif |
115
+
116
+ #### 📊 Proje Yönetimi
117
+ | Komut | Açıklama |
118
+ |-------|----------|
119
+ | `/sc:task` | ✅ Görev yönetimi |
120
+ | `/sc:workflow` | 🔄 İş akışı yönetimi |
121
+ | `/sc:pm` | 📈 Proje yönetimi |
122
+
123
+ ### 📋 Spec Kit İş Akışı
124
+
125
+ ```bash
126
+ specify init # 🚀 Proje başlat
127
+ specify constitution # 📜 Proje kuralları
128
+ specify spec # 📋 Fonksiyonel gereksinimler
129
+ specify plan # 📐 Teknik plan
130
+ specify tasks # ✅ Görev breakdown
131
+ ```
132
+
133
+ ### 🌐 Claude-Z (z.ai Backend)
134
+
135
+ Kurulum sırasında Z.AI API key'inizi girmeniz istenir ([z.ai](https://z.ai) adresinden alın).
136
+
137
+ ```bash
138
+ # z.ai backend ile Claude Code çalıştır
139
+ claude-z
140
+ ```
141
+
142
+ **🔌 Sağladığı MCP Serverlar:**
143
+ | Server | Açıklama |
144
+ |--------|----------|
145
+ | `web-search-prime` | 🔍 Gelişmiş web arama |
146
+ | `web-reader` | 📄 Web sayfası okuma |
147
+ | `zread` | 📚 Doküman okuma |
148
+ | `zai-mcp-server` | 🔗 Z.AI MCP entegrasyonu |
149
+
150
+ ### 📊 Claude HUD (Durum Göstergesi)
151
+
152
+ Claude Code'a gerçek zamanlı statusline ekler. Kurulum sırasında etkinleştirmeyi seçebilirsiniz.
153
+
154
+ **📈 Gösterdikleri:**
155
+ - 📊 Context window kullanımı
156
+ - 🔧 Aktif araçlar ve dosya işlemleri
157
+ - 🤖 Çalışan agent'lar
158
+ - ✅ Todo/görev ilerlemesi
159
+
160
+ **⚙️ Kurulum sonrası:**
161
+ ```bash
162
+ setup-claude-hud # Talimatları gösterir
163
+ ```
164
+
165
+ Ardından Claude Code içinde:
166
+ ```
167
+ /plugin marketplace add jarrodwatts/claude-hud
168
+ /plugin install claude-hud
169
+ /claude-hud:setup
170
+ ```
171
+
172
+ ### ⚙️ Ayar Yönetimi
173
+
174
+ ZuppaClaude seçimlerinizi kaydeder ve tekrar kurulumda otomatik kullanır.
175
+
176
+ **📦 NPM ile:**
177
+ ```bash
178
+ npx zuppaclaude settings show # 👁️ Ayarları görüntüle
179
+ npx zuppaclaude settings export ~/backup.json # 💾 Dışa aktar
180
+ npx zuppaclaude settings import ~/backup.json # 📥 İçe aktar
181
+ npx zuppaclaude settings reset # 🔄 Fabrika ayarları
182
+ ```
183
+
184
+ **🐚 Shell ile:**
185
+ ```bash
186
+ ./zc-settings.sh show # 👁️ Ayarları görüntüle
187
+ ./zc-settings.sh export ~/backup.json # 💾 Dışa aktar
188
+ ./zc-settings.sh import ~/backup.json # 📥 İçe aktar
189
+ ./zc-settings.sh reset # 🔄 Fabrika ayarları
190
+ ```
191
+
192
+ **✨ Özellikler:**
193
+ | Özellik | Açıklama |
194
+ |---------|----------|
195
+ | 💾 Otomatik kayıt | Kurulum sonrası tercihler kaydedilir |
196
+ | ⚡ Hızlı kurulum | Önceki ayarlarla tek komutla kurulum |
197
+ | 🔐 API key koruması | Base64 encoded saklama |
198
+ | 🛡️ Uninstall koruması | Kaldırırken ayarları koruma opsiyonu |
199
+
200
+ ### 🗑️ Kaldırma
201
+
202
+ **📦 NPM ile:**
203
+ ```bash
204
+ npx zuppaclaude uninstall
205
+ ```
206
+
207
+ **🐚 Shell ile:**
208
+
209
+ **🍎 macOS / 🐧 Linux:**
210
+ ```bash
211
+ curl -fsSL https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/uninstall.sh | bash
212
+ ```
213
+
214
+ **🪟 Windows:**
215
+ ```powershell
216
+ irm https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/uninstall.ps1 | iex
217
+ ```
218
+
219
+ ### 📁 Dosya Konumları
220
+
221
+ | Dosya | 🍎🐧 macOS/Linux | 🪟 Windows |
222
+ |-------|------------------|------------|
223
+ | ⚡ SuperClaude | `~/.claude/commands/sc/` | `%USERPROFILE%\.claude\commands\sc\` |
224
+ | 📝 Konfigürasyon | `~/.claude/CLAUDE.md` | `%USERPROFILE%\.claude\CLAUDE.md` |
225
+ | 🌐 Claude-Z | `~/.local/bin/claude-z` | `%USERPROFILE%\.local\bin\claude-z.cmd` |
226
+ | 📊 Claude HUD | `~/.local/bin/setup-claude-hud` | `%USERPROFILE%\.local\bin\setup-claude-hud.cmd` |
227
+ | 🔧 Z.AI Config | `~/.config/zai/` | `%USERPROFILE%\.config\zai\` |
228
+ | ⚙️ Ayarlar | `~/.config/zuppaclaude/` | `%USERPROFILE%\.config\zuppaclaude\` |
229
+
230
+ ---
231
+
232
+ ## 🇬🇧 English
233
+
234
+ ### 📦 What is it?
235
+
236
+ ZuppaClaude installs tools to supercharge your Claude Code experience with a single command:
237
+
238
+ | Tool | Description |
239
+ |------|-------------|
240
+ | ⚡ **SuperClaude** | 30+ slash commands for enhanced workflows |
241
+ | 📋 **Spec Kit** | Spec-driven development CLI tool |
242
+ | 🌐 **Claude-Z** | z.ai backend support (optional) |
243
+ | 📊 **Claude HUD** | Real-time status display (optional) |
244
+ | 📝 **CLAUDE.md** | Optimized system instructions |
245
+
246
+ ### 🚀 Quick Install
247
+
248
+ #### 📦 Via NPM (Recommended)
249
+ ```bash
250
+ npx zuppaclaude
251
+ ```
252
+
253
+ Or install globally:
254
+ ```bash
255
+ npm install -g zuppaclaude
256
+ zuppaclaude
257
+ ```
258
+
259
+ #### 🐚 Via Shell
260
+
261
+ **🍎 macOS / 🐧 Linux:**
262
+ ```bash
263
+ curl -fsSL https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/install.sh | bash
264
+ ```
265
+
266
+ **🌍 Alternative (jsDelivr CDN):**
267
+ ```bash
268
+ curl -fsSL https://cdn.jsdelivr.net/gh/hasankaantan/zuppaclaude@main/install.sh | bash
269
+ ```
270
+
271
+ **🪟 Windows (PowerShell):**
272
+ ```powershell
273
+ irm https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/install.ps1 | iex
274
+ ```
275
+
276
+ ### 📋 Requirements
277
+
278
+ The installer automatically checks for missing dependencies:
279
+
280
+ | Requirement | Description |
281
+ |-------------|-------------|
282
+ | 💻 **OS** | macOS, Linux, or Windows 10+ |
283
+ | 🐍 **Python** | 3.8 or higher |
284
+ | 📂 **git** | Version control |
285
+ | 🤖 **Claude Code** | Anthropic CLI (recommended) |
286
+
287
+ ### ✅ After Installation
288
+
289
+ 1. 🔄 **Restart Claude Code**
290
+
291
+ 2. ⚡ **Test SuperClaude:**
292
+ ```
293
+ /sc:help
294
+ ```
295
+
296
+ 3. 📋 **Test Spec Kit:**
297
+ ```bash
298
+ specify --help
299
+ ```
300
+
301
+ 4. 🌐 **Test Claude-Z (if installed):**
302
+ ```bash
303
+ claude-z
304
+ ```
305
+
306
+ ### ⚡ SuperClaude Commands
307
+
308
+ #### 🎯 Planning & Design
309
+ | Command | Description |
310
+ |---------|-------------|
311
+ | `/sc:brainstorm` | 💡 Idea development |
312
+ | `/sc:design` | 🏗️ Architectural design |
313
+ | `/sc:estimate` | ⏱️ Time/resource estimation |
314
+ | `/sc:spec-panel` | 📑 Specification panel |
315
+
316
+ #### 💻 Development
317
+ | Command | Description |
318
+ |---------|-------------|
319
+ | `/sc:implement` | ⚙️ Code implementation |
320
+ | `/sc:build` | 🔨 Build and compile |
321
+ | `/sc:improve` | ✨ Code improvement |
322
+ | `/sc:explain` | 📖 Code explanation |
323
+
324
+ #### 🧪 Testing & Quality
325
+ | Command | Description |
326
+ |---------|-------------|
327
+ | `/sc:test` | 🧪 Test creation |
328
+ | `/sc:analyze` | 🔍 Code analysis |
329
+ | `/sc:troubleshoot` | 🐛 Debugging |
330
+ | `/sc:reflect` | 🪞 Retrospective |
331
+
332
+ #### 📊 Project Management
333
+ | Command | Description |
334
+ |---------|-------------|
335
+ | `/sc:task` | ✅ Task management |
336
+ | `/sc:workflow` | 🔄 Workflow management |
337
+ | `/sc:pm` | 📈 Project management |
338
+
339
+ ### 📋 Spec Kit Workflow
340
+
341
+ ```bash
342
+ specify init # 🚀 Initialize project
343
+ specify constitution # 📜 Project rules
344
+ specify spec # 📋 Functional requirements
345
+ specify plan # 📐 Technical plan
346
+ specify tasks # ✅ Task breakdown
347
+ ```
348
+
349
+ ### 🌐 Claude-Z (z.ai Backend)
350
+
351
+ During installation, you'll be asked for your Z.AI API key (get it from [z.ai](https://z.ai)).
352
+
353
+ ```bash
354
+ # Run Claude Code with z.ai backend
355
+ claude-z
356
+ ```
357
+
358
+ **🔌 Provided MCP Servers:**
359
+ | Server | Description |
360
+ |--------|-------------|
361
+ | `web-search-prime` | 🔍 Enhanced web search |
362
+ | `web-reader` | 📄 Web page reading |
363
+ | `zread` | 📚 Document reading |
364
+ | `zai-mcp-server` | 🔗 Z.AI MCP integration |
365
+
366
+ ### 📊 Claude HUD (Status Display)
367
+
368
+ Adds a real-time statusline to Claude Code. You can enable it during installation.
369
+
370
+ **📈 What it shows:**
371
+ - 📊 Context window usage
372
+ - 🔧 Active tools and file operations
373
+ - 🤖 Running agents
374
+ - ✅ Todo/task progress
375
+
376
+ **⚙️ After installation:**
377
+ ```bash
378
+ setup-claude-hud # Shows instructions
379
+ ```
380
+
381
+ Then inside Claude Code:
382
+ ```
383
+ /plugin marketplace add jarrodwatts/claude-hud
384
+ /plugin install claude-hud
385
+ /claude-hud:setup
386
+ ```
387
+
388
+ ### ⚙️ Settings Management
389
+
390
+ ZuppaClaude saves your choices and automatically uses them on reinstall.
391
+
392
+ **📦 Via NPM:**
393
+ ```bash
394
+ npx zuppaclaude settings show # 👁️ View settings
395
+ npx zuppaclaude settings export ~/backup.json # 💾 Export
396
+ npx zuppaclaude settings import ~/backup.json # 📥 Import
397
+ npx zuppaclaude settings reset # 🔄 Reset to defaults
398
+ ```
399
+
400
+ **🐚 Via Shell:**
401
+
402
+ **🍎🐧 macOS/Linux:**
403
+ ```bash
404
+ ./zc-settings.sh show # 👁️ View settings
405
+ ./zc-settings.sh export ~/backup.json # 💾 Export
406
+ ./zc-settings.sh import ~/backup.json # 📥 Import
407
+ ./zc-settings.sh reset # 🔄 Reset to defaults
408
+ ```
409
+
410
+ **🪟 Windows:**
411
+ ```powershell
412
+ .\zc-settings.ps1 show
413
+ .\zc-settings.ps1 export ~\backup.json
414
+ .\zc-settings.ps1 import ~\backup.json
415
+ .\zc-settings.ps1 reset
416
+ ```
417
+
418
+ **✨ Features:**
419
+ | Feature | Description |
420
+ |---------|-------------|
421
+ | 💾 Auto-save | Preferences saved after installation |
422
+ | ⚡ Quick reinstall | One-command reinstall with previous settings |
423
+ | 🔐 API key protection | Base64 encoded storage |
424
+ | 🛡️ Uninstall protection | Option to preserve settings when uninstalling |
425
+
426
+ ### 🗑️ Uninstall
427
+
428
+ **📦 Via NPM:**
429
+ ```bash
430
+ npx zuppaclaude uninstall
431
+ ```
432
+
433
+ **🐚 Via Shell:**
434
+
435
+ **🍎 macOS / 🐧 Linux:**
436
+ ```bash
437
+ curl -fsSL https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/uninstall.sh | bash
438
+ ```
439
+
440
+ **🪟 Windows:**
441
+ ```powershell
442
+ irm https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/uninstall.ps1 | iex
443
+ ```
444
+
445
+ ### 📁 File Locations
446
+
447
+ | File | 🍎🐧 macOS/Linux | 🪟 Windows |
448
+ |------|------------------|------------|
449
+ | ⚡ SuperClaude | `~/.claude/commands/sc/` | `%USERPROFILE%\.claude\commands\sc\` |
450
+ | 📝 Configuration | `~/.claude/CLAUDE.md` | `%USERPROFILE%\.claude\CLAUDE.md` |
451
+ | 🌐 Claude-Z | `~/.local/bin/claude-z` | `%USERPROFILE%\.local\bin\claude-z.cmd` |
452
+ | 📊 Claude HUD | `~/.local/bin/setup-claude-hud` | `%USERPROFILE%\.local\bin\setup-claude-hud.cmd` |
453
+ | 🔧 Z.AI Config | `~/.config/zai/` | `%USERPROFILE%\.config\zai\` |
454
+ | ⚙️ Settings | `~/.config/zuppaclaude/` | `%USERPROFILE%\.config\zuppaclaude\` |
455
+
456
+ ### 🔧 Troubleshooting
457
+
458
+ #### ❌ "specify" command not found
459
+ **🍎🐧 macOS/Linux:** Add to `~/.zshrc` or `~/.bashrc`:
460
+ ```bash
461
+ export PATH="$HOME/.local/bin:$PATH"
462
+ ```
463
+ **🪟 Windows:** Restart PowerShell or add `%USERPROFILE%\.local\bin` to PATH.
464
+
465
+ #### ❌ SuperClaude commands not showing
466
+ 🔄 Restart Claude Code completely (quit and reopen).
467
+
468
+ #### ❌ Execution Policy Error (Windows)
469
+ ```powershell
470
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
471
+ ```
472
+
473
+ ---
474
+
475
+ ## 🙏 Credits
476
+
477
+ | Project | Author |
478
+ |---------|--------|
479
+ | [Claude Code](https://claude.ai/code) | Anthropic |
480
+ | [SuperClaude Framework](https://github.com/SuperClaude-Org/SuperClaude_Framework) | SuperClaude Org |
481
+ | [Spec Kit](https://github.com/github/spec-kit) | GitHub |
482
+ | [z.ai](https://z.ai) | Z.AI |
483
+ | [Claude HUD](https://github.com/jarrodwatts/claude-hud) | Jarrod Watts |
484
+
485
+ ## 📄 License
486
+
487
+ MIT
@@ -0,0 +1,147 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * ZuppaClaude CLI
5
+ * Claude Code power-up installer
6
+ */
7
+
8
+ const { Installer } = require('../lib/installer');
9
+ const { Settings } = require('../lib/settings');
10
+ const { Logger } = require('../lib/utils/logger');
11
+
12
+ const args = process.argv.slice(2);
13
+ const command = args[0] || 'install';
14
+
15
+ async function main() {
16
+ const logger = new Logger();
17
+
18
+ logger.banner();
19
+
20
+ try {
21
+ switch (command) {
22
+ case 'install':
23
+ case 'i':
24
+ const installer = new Installer();
25
+ await installer.run();
26
+ break;
27
+
28
+ case 'uninstall':
29
+ case 'remove':
30
+ case 'u':
31
+ const { Uninstaller } = require('../lib/uninstaller');
32
+ const uninstaller = new Uninstaller();
33
+ await uninstaller.run();
34
+ break;
35
+
36
+ case 'settings':
37
+ case 's':
38
+ const settings = new Settings();
39
+ const subCommand = args[1] || 'show';
40
+ const filePath = args[2];
41
+
42
+ switch (subCommand) {
43
+ case 'show':
44
+ settings.show();
45
+ break;
46
+ case 'export':
47
+ if (!filePath) {
48
+ logger.error('Please specify export file path');
49
+ logger.info('Usage: zuppaclaude settings export <file>');
50
+ process.exit(1);
51
+ }
52
+ settings.export(filePath);
53
+ break;
54
+ case 'import':
55
+ if (!filePath) {
56
+ logger.error('Please specify import file path');
57
+ logger.info('Usage: zuppaclaude settings import <file>');
58
+ process.exit(1);
59
+ }
60
+ settings.import(filePath);
61
+ break;
62
+ case 'reset':
63
+ await settings.reset();
64
+ break;
65
+ case 'path':
66
+ console.log(settings.filePath);
67
+ break;
68
+ default:
69
+ logger.error(`Unknown settings command: ${subCommand}`);
70
+ showSettingsHelp();
71
+ }
72
+ break;
73
+
74
+ case 'version':
75
+ case 'v':
76
+ case '-v':
77
+ case '--version':
78
+ const pkg = require('../package.json');
79
+ console.log(`zuppaclaude v${pkg.version}`);
80
+ break;
81
+
82
+ case 'help':
83
+ case 'h':
84
+ case '-h':
85
+ case '--help':
86
+ showHelp();
87
+ break;
88
+
89
+ default:
90
+ logger.error(`Unknown command: ${command}`);
91
+ showHelp();
92
+ process.exit(1);
93
+ }
94
+ } catch (error) {
95
+ logger.error(`Error: ${error.message}`);
96
+ if (process.env.DEBUG) {
97
+ console.error(error.stack);
98
+ }
99
+ process.exit(1);
100
+ }
101
+ }
102
+
103
+ function showHelp() {
104
+ console.log(`
105
+ Usage: zuppaclaude [command] [options]
106
+
107
+ Commands:
108
+ install, i Install ZuppaClaude components (default)
109
+ uninstall, u Uninstall ZuppaClaude components
110
+ settings, s Manage settings
111
+ version, v Show version
112
+ help, h Show this help
113
+
114
+ Settings Commands:
115
+ settings show Display current settings
116
+ settings export Export settings to file
117
+ settings import Import settings from file
118
+ settings reset Reset settings to default
119
+ settings path Show settings file path
120
+
121
+ Examples:
122
+ npx zuppaclaude # Install
123
+ npx zuppaclaude install # Install
124
+ npx zuppaclaude uninstall # Uninstall
125
+ npx zuppaclaude settings show # View settings
126
+ npx zuppaclaude settings export ~/backup.json
127
+ `);
128
+ }
129
+
130
+ function showSettingsHelp() {
131
+ console.log(`
132
+ Settings Commands:
133
+ show Display current settings
134
+ export Export settings to file
135
+ import Import settings from file
136
+ reset Reset settings to default
137
+ path Show settings file path
138
+
139
+ Examples:
140
+ zuppaclaude settings show
141
+ zuppaclaude settings export ~/backup.json
142
+ zuppaclaude settings import ~/backup.json
143
+ zuppaclaude settings reset
144
+ `);
145
+ }
146
+
147
+ main();