zuppaclaude 1.0.2 → 1.2.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/README.md CHANGED
@@ -197,26 +197,48 @@ npx zuppaclaude settings reset # 🔄 Fabrika ayarları
197
197
  | 🔐 API key koruması | Base64 encoded saklama |
198
198
  | 🛡️ Uninstall koruması | Kaldırırken ayarları koruma opsiyonu |
199
199
 
200
- ### 💾 Session Yedekleme
200
+ ### 💾 Yedekleme & Geri Yükleme
201
201
 
202
- Claude Code session'larınızı yedekleyin ve geri yükleyin. Context kaybı, format veya compacting durumlarında kullanışlı.
202
+ Claude Code session'larınızı ve ayarlarınızı yedekleyin. Context kaybı, format veya compacting durumlarında kullanışlı.
203
203
 
204
+ **🔄 Tam Yedekleme (Sessions + Ayarlar):**
205
+ ```bash
206
+ npx zuppaclaude backup # 💾 Lokal tam yedek
207
+ npx zuppaclaude backup --cloud gdrive # ☁️ Google Drive'a yedekle
208
+ npx zuppaclaude restore <id> # ♻️ Yedekten geri yükle
209
+ npx zuppaclaude restore <id> --cloud gdrive # ☁️ Cloud'dan geri yükle
210
+ ```
211
+
212
+ **📋 Sadece Session İşlemleri:**
204
213
  ```bash
205
214
  npx zuppaclaude session list # 📋 Tüm session'ları listele
206
- npx zuppaclaude session backup # 💾 Tüm session'ları yedekle
215
+ npx zuppaclaude session backup # 💾 Sadece session'ları yedekle
207
216
  npx zuppaclaude session backups # 📦 Mevcut yedekleri listele
208
- npx zuppaclaude session restore <id> # ♻️ Yedekten geri yükle
209
- npx zuppaclaude session export <id> # 📤 Belirli session'ı export et
210
217
  ```
211
218
 
212
- **📁 Yedek konumu:** `~/.config/zuppaclaude/backups/`
219
+ ### ☁️ Cloud Yedekleme (rclone)
220
+
221
+ Google Drive, Dropbox, OneDrive, S3, SFTP ve 40+ cloud servise yedekleme.
222
+
223
+ ```bash
224
+ # Kurulum
225
+ brew install rclone # macOS
226
+ rclone config # Remote ayarla (gdrive, dropbox vs.)
227
+
228
+ # Kullanım
229
+ npx zuppaclaude cloud setup # 📖 Kurulum talimatları
230
+ npx zuppaclaude cloud remotes # 📋 Mevcut remote'ları listele
231
+ npx zuppaclaude backup --cloud gdrive # ☁️ Yedekle ve upload et
232
+ npx zuppaclaude cloud backups gdrive # 📦 Cloud'daki yedekleri listele
233
+ ```
213
234
 
214
235
  **✨ Özellikler:**
215
236
  | Özellik | Açıklama |
216
237
  |---------|----------|
217
238
  | 🔒 Güvenli restore | Mevcut session'lar üzerine yazılmaz |
218
- | 📜 History desteği | Command history de yedeklenir |
219
- | 📋 Manifest | Her yedekte metadata saklanır |
239
+ | 📜 Tam yedek | Sessions + Settings + History |
240
+ | ☁️ 40+ cloud | rclone ile Google Drive, Dropbox, S3, SFTP... |
241
+ | 🔐 Encryption | rclone encryption desteği |
220
242
 
221
243
  ### 🗑️ Kaldırma
222
244
 
@@ -444,26 +466,48 @@ npx zuppaclaude settings reset # 🔄 Reset to defaults
444
466
  | 🔐 API key protection | Base64 encoded storage |
445
467
  | 🛡️ Uninstall protection | Option to preserve settings when uninstalling |
446
468
 
447
- ### 💾 Session Backup
469
+ ### 💾 Backup & Restore
448
470
 
449
- Backup and restore your Claude Code sessions. Useful for context loss, formatting, or conversation compacting.
471
+ Backup your Claude Code sessions and settings. Useful for context loss, formatting, or conversation compacting.
450
472
 
473
+ **🔄 Full Backup (Sessions + Settings):**
474
+ ```bash
475
+ npx zuppaclaude backup # 💾 Local full backup
476
+ npx zuppaclaude backup --cloud gdrive # ☁️ Backup to Google Drive
477
+ npx zuppaclaude restore <id> # ♻️ Restore from backup
478
+ npx zuppaclaude restore <id> --cloud gdrive # ☁️ Restore from cloud
479
+ ```
480
+
481
+ **📋 Session-only Operations:**
451
482
  ```bash
452
483
  npx zuppaclaude session list # 📋 List all sessions
453
- npx zuppaclaude session backup # 💾 Backup all sessions
484
+ npx zuppaclaude session backup # 💾 Backup sessions only
454
485
  npx zuppaclaude session backups # 📦 List available backups
455
- npx zuppaclaude session restore <id> # ♻️ Restore from backup
456
- npx zuppaclaude session export <id> # 📤 Export specific session
457
486
  ```
458
487
 
459
- **📁 Backup location:** `~/.config/zuppaclaude/backups/`
488
+ ### ☁️ Cloud Backup (rclone)
489
+
490
+ Backup to Google Drive, Dropbox, OneDrive, S3, SFTP, and 40+ cloud services.
491
+
492
+ ```bash
493
+ # Setup
494
+ brew install rclone # macOS
495
+ rclone config # Configure remote (gdrive, dropbox, etc.)
496
+
497
+ # Usage
498
+ npx zuppaclaude cloud setup # 📖 Setup instructions
499
+ npx zuppaclaude cloud remotes # 📋 List configured remotes
500
+ npx zuppaclaude backup --cloud gdrive # ☁️ Backup and upload
501
+ npx zuppaclaude cloud backups gdrive # 📦 List cloud backups
502
+ ```
460
503
 
461
504
  **✨ Features:**
462
505
  | Feature | Description |
463
506
  |---------|-------------|
464
507
  | 🔒 Safe restore | Existing sessions are not overwritten |
465
- | 📜 History support | Command history is also backed up |
466
- | 📋 Manifest | Metadata saved with each backup |
508
+ | 📜 Full backup | Sessions + Settings + History |
509
+ | ☁️ 40+ clouds | Google Drive, Dropbox, S3, SFTP via rclone |
510
+ | 🔐 Encryption | rclone encryption support |
467
511
 
468
512
  ### 🗑️ Uninstall
469
513
 
@@ -0,0 +1,31 @@
1
+ # ZuppaClaude Commands
2
+
3
+ ZuppaClaude slash commands for Claude Code session and backup management.
4
+
5
+ ## Available Commands
6
+
7
+ | Command | Description |
8
+ |---------|-------------|
9
+ | `/zc:backup` | Full backup (sessions + settings + cloud) |
10
+ | `/zc:restore` | Restore from backup |
11
+ | `/zc:cloud` | Cloud backup management |
12
+ | `/zc:session` | Session management |
13
+ | `/zc:settings` | Settings management |
14
+ | `/zc:help` | Show help and documentation |
15
+
16
+ ## Quick Start
17
+
18
+ ```
19
+ /zc:backup # Create full backup
20
+ /zc:backup --cloud # Backup to cloud
21
+ /zc:restore # Restore from latest backup
22
+ /zc:session list # List all sessions
23
+ ```
24
+
25
+ ## Installation
26
+
27
+ These commands are installed automatically with ZuppaClaude:
28
+
29
+ ```bash
30
+ npx zuppaclaude install
31
+ ```
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: zc:backup
3
+ description: "Full backup of Claude Code sessions, settings, and history with cloud support"
4
+ category: utility
5
+ ---
6
+
7
+ # /zc:backup - Full Backup
8
+
9
+ Create a complete backup of your Claude Code sessions, settings, and command history.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /zc:backup [--cloud <remote>]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Option | Description |
20
+ |--------|-------------|
21
+ | `--cloud <remote>` | Upload backup to cloud (requires rclone) |
22
+
23
+ ## Examples
24
+
25
+ ```
26
+ /zc:backup # Local backup only
27
+ /zc:backup --cloud gdrive # Backup + upload to Google Drive
28
+ /zc:backup --cloud dropbox # Backup + upload to Dropbox
29
+ ```
30
+
31
+ ## What Gets Backed Up
32
+
33
+ - All Claude Code sessions (conversations)
34
+ - Agent sessions
35
+ - Command history
36
+ - ZuppaClaude settings
37
+ - API keys (encoded)
38
+
39
+ ## Execution
40
+
41
+ When this command is invoked, execute the following:
42
+
43
+ ```bash
44
+ npx zuppaclaude backup
45
+ ```
46
+
47
+ If `--cloud` flag is provided:
48
+
49
+ ```bash
50
+ npx zuppaclaude backup --cloud <remote>
51
+ ```
52
+
53
+ ## After Backup
54
+
55
+ Show the user:
56
+ 1. Backup ID (timestamp)
57
+ 2. Number of sessions backed up
58
+ 3. Total size
59
+ 4. Location
60
+ 5. Cloud upload status (if applicable)
61
+
62
+ Suggest: "Run `/zc:restore <backup-id>` to restore this backup later."
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: zc:cloud
3
+ description: "Cloud backup management with rclone integration"
4
+ category: utility
5
+ ---
6
+
7
+ # /zc:cloud - Cloud Backup Management
8
+
9
+ Manage cloud backups using rclone. Supports 40+ cloud providers.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /zc:cloud <action> [remote] [backup-id]
15
+ ```
16
+
17
+ ## Actions
18
+
19
+ | Action | Description |
20
+ |--------|-------------|
21
+ | `setup` | Show rclone installation and configuration |
22
+ | `remotes` | List configured cloud remotes |
23
+ | `upload` | Upload backups to cloud |
24
+ | `download` | Download backups from cloud |
25
+ | `backups` | List backups on cloud |
26
+
27
+ ## Examples
28
+
29
+ ```
30
+ /zc:cloud setup # Setup instructions
31
+ /zc:cloud remotes # List remotes
32
+ /zc:cloud upload gdrive # Upload all backups
33
+ /zc:cloud download gdrive # Download all backups
34
+ /zc:cloud backups gdrive # List cloud backups
35
+ ```
36
+
37
+ ## Execution
38
+
39
+ ### Setup
40
+ ```bash
41
+ npx zuppaclaude cloud setup
42
+ ```
43
+
44
+ ### List Remotes
45
+ ```bash
46
+ npx zuppaclaude cloud remotes
47
+ ```
48
+
49
+ ### Upload
50
+ ```bash
51
+ npx zuppaclaude cloud upload <remote> [backup-id]
52
+ ```
53
+
54
+ ### Download
55
+ ```bash
56
+ npx zuppaclaude cloud download <remote> [backup-id]
57
+ ```
58
+
59
+ ### List Cloud Backups
60
+ ```bash
61
+ npx zuppaclaude cloud backups <remote>
62
+ ```
63
+
64
+ ## Supported Providers
65
+
66
+ | Provider | Remote Name |
67
+ |----------|-------------|
68
+ | Google Drive | gdrive |
69
+ | Dropbox | dropbox |
70
+ | OneDrive | onedrive |
71
+ | Amazon S3 | s3 |
72
+ | SFTP | sftp |
73
+ | FTP | ftp |
74
+ | + 40 more | See rclone docs |
75
+
76
+ ## First Time Setup
77
+
78
+ 1. Install rclone: `brew install rclone`
79
+ 2. Configure remote: `rclone config`
80
+ 3. Use with ZuppaClaude: `/zc:backup --cloud <remote>`
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: zc:help
3
+ description: "ZuppaClaude help and documentation"
4
+ category: utility
5
+ ---
6
+
7
+ # /zc:help - ZuppaClaude Help
8
+
9
+ Display ZuppaClaude commands and documentation.
10
+
11
+ ## Available Commands
12
+
13
+ ### Backup & Restore
14
+
15
+ | Command | Description |
16
+ |---------|-------------|
17
+ | `/zc:backup` | Full backup (sessions + settings) |
18
+ | `/zc:backup --cloud gdrive` | Backup and upload to cloud |
19
+ | `/zc:restore` | Restore from backup |
20
+ | `/zc:restore <id> --cloud gdrive` | Restore from cloud |
21
+
22
+ ### Session Management
23
+
24
+ | Command | Description |
25
+ |---------|-------------|
26
+ | `/zc:session list` | List all sessions |
27
+ | `/zc:session backup` | Backup sessions only |
28
+ | `/zc:session backups` | List available backups |
29
+ | `/zc:session export <id>` | Export specific session |
30
+
31
+ ### Cloud Management
32
+
33
+ | Command | Description |
34
+ |---------|-------------|
35
+ | `/zc:cloud setup` | Show rclone setup |
36
+ | `/zc:cloud remotes` | List cloud remotes |
37
+ | `/zc:cloud upload <r>` | Upload to cloud |
38
+ | `/zc:cloud download <r>` | Download from cloud |
39
+
40
+ ### Settings
41
+
42
+ | Command | Description |
43
+ |---------|-------------|
44
+ | `/zc:settings show` | View settings |
45
+ | `/zc:settings export` | Export settings |
46
+ | `/zc:settings import` | Import settings |
47
+ | `/zc:settings reset` | Reset to defaults |
48
+
49
+ ## Quick Start
50
+
51
+ ```
52
+ # First time? Create a backup:
53
+ /zc:backup
54
+
55
+ # Set up cloud backup:
56
+ /zc:cloud setup
57
+
58
+ # Restore if needed:
59
+ /zc:restore
60
+ ```
61
+
62
+ ## CLI Commands
63
+
64
+ All commands also work from terminal:
65
+
66
+ ```bash
67
+ npx zuppaclaude backup
68
+ npx zuppaclaude restore <id>
69
+ npx zuppaclaude session list
70
+ npx zuppaclaude cloud setup
71
+ npx zuppaclaude settings show
72
+ ```
73
+
74
+ ## Links
75
+
76
+ - GitHub: https://github.com/hasankaantan/zuppaclaude
77
+ - NPM: https://www.npmjs.com/package/zuppaclaude
78
+
79
+ ## Execution
80
+
81
+ When this command is invoked, show this help information to the user.
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: zc:restore
3
+ description: "Restore Claude Code sessions and settings from backup"
4
+ category: utility
5
+ ---
6
+
7
+ # /zc:restore - Restore from Backup
8
+
9
+ Restore your Claude Code sessions and settings from a previous backup.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /zc:restore [backup-id] [--cloud <remote>]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Option | Description |
20
+ |--------|-------------|
21
+ | `backup-id` | Specific backup to restore (e.g., 2026-01-05T12-00-00) |
22
+ | `--cloud <remote>` | Download backup from cloud first |
23
+
24
+ ## Examples
25
+
26
+ ```
27
+ /zc:restore # Show available backups
28
+ /zc:restore 2026-01-05T12-00-00 # Restore specific backup
29
+ /zc:restore latest # Restore most recent backup
30
+ /zc:restore latest --cloud gdrive # Restore from Google Drive
31
+ ```
32
+
33
+ ## Execution Flow
34
+
35
+ ### Step 1: List Available Backups
36
+
37
+ If no backup-id provided, first run:
38
+
39
+ ```bash
40
+ npx zuppaclaude session backups
41
+ ```
42
+
43
+ Show the list and ask user to select a backup.
44
+
45
+ ### Step 2: Restore
46
+
47
+ ```bash
48
+ npx zuppaclaude restore <backup-id>
49
+ ```
50
+
51
+ If `--cloud` flag is provided:
52
+
53
+ ```bash
54
+ npx zuppaclaude restore <backup-id> --cloud <remote>
55
+ ```
56
+
57
+ ## Safety
58
+
59
+ - Existing sessions are NOT overwritten
60
+ - Restored sessions get `.restored` suffix
61
+ - User can manually merge if needed
62
+
63
+ ## After Restore
64
+
65
+ Remind user: "Restart Claude Code to see restored sessions."
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: zc:session
3
+ description: "Claude Code session management - list, backup, restore, export"
4
+ category: utility
5
+ ---
6
+
7
+ # /zc:session - Session Management
8
+
9
+ Manage your Claude Code conversation sessions.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /zc:session <action> [args]
15
+ ```
16
+
17
+ ## Actions
18
+
19
+ | Action | Description |
20
+ |--------|-------------|
21
+ | `list` | List all sessions with details |
22
+ | `backup` | Backup sessions only (not settings) |
23
+ | `backups` | List available backups |
24
+ | `restore` | Restore sessions from backup |
25
+ | `export` | Export a specific session to file |
26
+
27
+ ## Examples
28
+
29
+ ```
30
+ /zc:session list # List all sessions
31
+ /zc:session backup # Backup sessions
32
+ /zc:session backups # List backups
33
+ /zc:session restore 2026-01-05T12-00-00 # Restore from backup
34
+ /zc:session export abc123 ./my-session.jsonl # Export session
35
+ ```
36
+
37
+ ## Execution
38
+
39
+ ### List Sessions
40
+ ```bash
41
+ npx zuppaclaude session list
42
+ ```
43
+
44
+ Shows:
45
+ - Project paths
46
+ - Session IDs
47
+ - Session types (main vs agent)
48
+ - Size and last modified
49
+
50
+ ### Backup Sessions
51
+ ```bash
52
+ npx zuppaclaude session backup
53
+ ```
54
+
55
+ ### List Backups
56
+ ```bash
57
+ npx zuppaclaude session backups
58
+ ```
59
+
60
+ ### Restore Sessions
61
+ ```bash
62
+ npx zuppaclaude session restore <backup-id>
63
+ ```
64
+
65
+ ### Export Session
66
+ ```bash
67
+ npx zuppaclaude session export <session-id> [output-file]
68
+ ```
69
+
70
+ ## Session Types
71
+
72
+ | Icon | Type | Description |
73
+ |------|------|-------------|
74
+ | 💬 | Main | Primary conversation sessions |
75
+ | 🤖 | Agent | Sub-agent sessions |
76
+
77
+ ## Tips
78
+
79
+ - Use `/zc:backup` for full backup (sessions + settings)
80
+ - Sessions are stored in `~/.claude/projects/`
81
+ - Backups are stored in `~/.config/zuppaclaude/backups/`
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: zc:settings
3
+ description: "ZuppaClaude settings management - view, export, import, reset"
4
+ category: utility
5
+ ---
6
+
7
+ # /zc:settings - Settings Management
8
+
9
+ Manage ZuppaClaude configuration and preferences.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /zc:settings <action> [file]
15
+ ```
16
+
17
+ ## Actions
18
+
19
+ | Action | Description |
20
+ |--------|-------------|
21
+ | `show` | Display current settings |
22
+ | `export` | Export settings to file |
23
+ | `import` | Import settings from file |
24
+ | `reset` | Reset to defaults |
25
+ | `path` | Show settings file path |
26
+
27
+ ## Examples
28
+
29
+ ```
30
+ /zc:settings show # View settings
31
+ /zc:settings export ~/backup.json # Export settings
32
+ /zc:settings import ~/backup.json # Import settings
33
+ /zc:settings reset # Reset to defaults
34
+ /zc:settings path # Show file path
35
+ ```
36
+
37
+ ## Execution
38
+
39
+ ### Show Settings
40
+ ```bash
41
+ npx zuppaclaude settings show
42
+ ```
43
+
44
+ ### Export Settings
45
+ ```bash
46
+ npx zuppaclaude settings export <file>
47
+ ```
48
+
49
+ ### Import Settings
50
+ ```bash
51
+ npx zuppaclaude settings import <file>
52
+ ```
53
+
54
+ ### Reset Settings
55
+ ```bash
56
+ npx zuppaclaude settings reset
57
+ ```
58
+
59
+ ### Show Path
60
+ ```bash
61
+ npx zuppaclaude settings path
62
+ ```
63
+
64
+ ## What's Stored
65
+
66
+ | Setting | Description |
67
+ |---------|-------------|
68
+ | `specKit` | Spec Kit installation preference |
69
+ | `claudeZ` | Claude-Z installation preference |
70
+ | `claudeHUD` | Claude HUD installation preference |
71
+ | `zaiApiKey` | Z.AI API key (encoded) |
72
+ | `installedAt` | Installation timestamp |
73
+ | `version` | ZuppaClaude version |
74
+
75
+ ## Settings Location
76
+
77
+ ```
78
+ ~/.config/zuppaclaude/zc-settings.json
79
+ ```
80
+
81
+ ## Tips
82
+
83
+ - Settings are automatically saved after installation
84
+ - Previous settings are used on reinstall
85
+ - Use `/zc:backup` to backup settings with sessions