@asifkibria/claude-code-toolkit 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 +165 -214
- package/dist/CLAUDE.md +7 -0
- package/dist/__tests__/dashboard.test.d.ts +2 -0
- package/dist/__tests__/dashboard.test.d.ts.map +1 -0
- package/dist/__tests__/dashboard.test.js +606 -0
- package/dist/__tests__/dashboard.test.js.map +1 -0
- package/dist/__tests__/mcp-validator.test.d.ts +2 -0
- package/dist/__tests__/mcp-validator.test.d.ts.map +1 -0
- package/dist/__tests__/mcp-validator.test.js +217 -0
- package/dist/__tests__/mcp-validator.test.js.map +1 -0
- package/dist/__tests__/scanner.test.js +350 -1
- package/dist/__tests__/scanner.test.js.map +1 -1
- package/dist/__tests__/security.test.d.ts +2 -0
- package/dist/__tests__/security.test.d.ts.map +1 -0
- package/dist/__tests__/security.test.js +375 -0
- package/dist/__tests__/security.test.js.map +1 -0
- package/dist/__tests__/session-recovery.test.d.ts +2 -0
- package/dist/__tests__/session-recovery.test.d.ts.map +1 -0
- package/dist/__tests__/session-recovery.test.js +230 -0
- package/dist/__tests__/session-recovery.test.js.map +1 -0
- package/dist/__tests__/storage.test.d.ts +2 -0
- package/dist/__tests__/storage.test.d.ts.map +1 -0
- package/dist/__tests__/storage.test.js +241 -0
- package/dist/__tests__/storage.test.js.map +1 -0
- package/dist/__tests__/trace.test.d.ts +2 -0
- package/dist/__tests__/trace.test.d.ts.map +1 -0
- package/dist/__tests__/trace.test.js +376 -0
- package/dist/__tests__/trace.test.js.map +1 -0
- package/dist/cli.js +501 -20
- package/dist/cli.js.map +1 -1
- package/dist/index.js +950 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/dashboard-ui.d.ts +2 -0
- package/dist/lib/dashboard-ui.d.ts.map +1 -0
- package/dist/lib/dashboard-ui.js +2075 -0
- package/dist/lib/dashboard-ui.js.map +1 -0
- package/dist/lib/dashboard.d.ts +15 -0
- package/dist/lib/dashboard.d.ts.map +1 -0
- package/dist/lib/dashboard.js +1422 -0
- package/dist/lib/dashboard.js.map +1 -0
- package/dist/lib/logs.d.ts +42 -0
- package/dist/lib/logs.d.ts.map +1 -0
- package/dist/lib/logs.js +166 -0
- package/dist/lib/logs.js.map +1 -0
- package/dist/lib/mcp-validator.d.ts +86 -0
- package/dist/lib/mcp-validator.d.ts.map +1 -0
- package/dist/lib/mcp-validator.js +463 -0
- package/dist/lib/mcp-validator.js.map +1 -0
- package/dist/lib/scanner.d.ts +187 -2
- package/dist/lib/scanner.d.ts.map +1 -1
- package/dist/lib/scanner.js +1224 -14
- package/dist/lib/scanner.js.map +1 -1
- package/dist/lib/security.d.ts +57 -0
- package/dist/lib/security.d.ts.map +1 -0
- package/dist/lib/security.js +423 -0
- package/dist/lib/security.js.map +1 -0
- package/dist/lib/session-recovery.d.ts +60 -0
- package/dist/lib/session-recovery.d.ts.map +1 -0
- package/dist/lib/session-recovery.js +433 -0
- package/dist/lib/session-recovery.js.map +1 -0
- package/dist/lib/storage.d.ts +68 -0
- package/dist/lib/storage.d.ts.map +1 -0
- package/dist/lib/storage.js +500 -0
- package/dist/lib/storage.js.map +1 -0
- package/dist/lib/trace.d.ts +119 -0
- package/dist/lib/trace.d.ts.map +1 -0
- package/dist/lib/trace.js +649 -0
- package/dist/lib/trace.js.map +1 -0
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -2,321 +2,272 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@asifkibria/claude-code-toolkit)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[](https://github.com/asifkibria/claude-code-toolkit)
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
Maintain, optimize, secure, and troubleshoot your Claude Code installation. Fix broken sessions, manage storage, detect secrets, and monitor everything through a web dashboard.
|
|
8
7
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
When you upload an oversized image, PDF, or document to Claude Code, it gets base64-encoded into your conversation history. That corrupted data then gets sent with **every future request**, causing API errors like:
|
|
12
|
-
|
|
13
|
-
- `API Error: 400 - image dimensions exceed max allowed size`
|
|
14
|
-
- `PDF too large. Try reading the file a different way...`
|
|
15
|
-
- Various timeout and context errors
|
|
16
|
-
|
|
17
|
-
**The worst part?** Nothing works anymore. Not your next message. Not `/compact`. Your entire conversation is bricked.
|
|
18
|
-
|
|
19
|
-
The "official" fix is to clear your conversation and lose everything. This toolkit offers a better solution.
|
|
20
|
-
|
|
21
|
-
## What It Fixes
|
|
22
|
-
|
|
23
|
-
| Content Type | Detection Threshold | Replacement Message |
|
|
24
|
-
|-------------|---------------------|---------------------|
|
|
25
|
-
| Images | >100KB base64 | `[Image removed - exceeded size limit]` |
|
|
26
|
-
| PDFs | >100KB base64 | `[PDF removed - exceeded size limit]` |
|
|
27
|
-
| Documents | >100KB base64 | `[Document removed - exceeded size limit]` |
|
|
28
|
-
| Large Text | >500KB | `[Large text content removed - exceeded size limit]` |
|
|
29
|
-
|
|
30
|
-
The toolkit surgically removes only the problematic content while preserving your entire conversation history, tool results, and context.
|
|
31
|
-
|
|
32
|
-
## Quick Start
|
|
33
|
-
|
|
34
|
-
### Fix Your Broken Session Right Now
|
|
8
|
+
## Quick Fix
|
|
35
9
|
|
|
36
10
|
```bash
|
|
37
|
-
#
|
|
38
|
-
npx @asifkibria/claude-code-toolkit scan
|
|
39
|
-
|
|
40
|
-
# Fix them (creates backups automatically)
|
|
11
|
+
# Your session is broken? Fix it in 10 seconds
|
|
41
12
|
npx @asifkibria/claude-code-toolkit fix
|
|
42
|
-
```
|
|
43
13
|
|
|
44
|
-
Restart Claude Code
|
|
14
|
+
# Restart Claude Code - you're back
|
|
15
|
+
```
|
|
45
16
|
|
|
46
|
-
|
|
17
|
+
## Installation
|
|
47
18
|
|
|
48
19
|
```bash
|
|
20
|
+
# Global install (recommended)
|
|
49
21
|
npm install -g @asifkibria/claude-code-toolkit
|
|
50
22
|
|
|
51
|
-
# Use the short alias
|
|
23
|
+
# Use the short alias everywhere
|
|
52
24
|
cct health
|
|
53
|
-
cct
|
|
54
|
-
cct fix
|
|
25
|
+
cct dashboard
|
|
55
26
|
```
|
|
56
27
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Option 1: MCP Server (Let Claude Maintain Itself)
|
|
28
|
+
### Add as MCP Server
|
|
60
29
|
|
|
61
|
-
|
|
30
|
+
Let Claude maintain itself:
|
|
62
31
|
|
|
63
32
|
```bash
|
|
64
33
|
claude mcp add --scope user toolkit -- npx -y @asifkibria/claude-code-toolkit claude-code-toolkit-server
|
|
65
34
|
```
|
|
66
35
|
|
|
67
|
-
Then
|
|
68
|
-
- "Check your health"
|
|
69
|
-
- "Are there any issues with your conversation files?"
|
|
70
|
-
- "Fix any problems you find"
|
|
36
|
+
Then ask Claude: "Check your health" or "Fix any issues"
|
|
71
37
|
|
|
72
|
-
|
|
38
|
+
---
|
|
73
39
|
|
|
74
|
-
|
|
75
|
-
# Global install
|
|
76
|
-
npm install -g @asifkibria/claude-code-toolkit
|
|
40
|
+
## Core Features
|
|
77
41
|
|
|
78
|
-
|
|
79
|
-
npx @asifkibria/claude-code-toolkit <command>
|
|
80
|
-
```
|
|
42
|
+
### 1. Fix Broken Sessions
|
|
81
43
|
|
|
82
|
-
|
|
44
|
+
When you upload an oversized image/PDF, your entire conversation breaks. This fixes it.
|
|
83
45
|
|
|
84
46
|
```bash
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
npm install && npm run build && npm test
|
|
47
|
+
cct scan # See what's wrong
|
|
48
|
+
cct fix # Fix it (creates backup automatically)
|
|
88
49
|
```
|
|
89
50
|
|
|
90
|
-
|
|
51
|
+
### 2. Web Dashboard
|
|
91
52
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Start here. Shows overall status and recommendations.
|
|
53
|
+
Visual management of your entire Claude Code installation.
|
|
95
54
|
|
|
96
55
|
```bash
|
|
97
|
-
|
|
56
|
+
cct dashboard
|
|
57
|
+
```
|
|
98
58
|
|
|
99
|
-
|
|
59
|
+
14 tabs: Overview, Storage, Sessions, Security, Traces, MCP, Logs, Config, Snapshots, Analytics, Backups, Context, Maintenance, About
|
|
100
60
|
|
|
101
|
-
|
|
102
|
-
Total size: 156.2 MB
|
|
103
|
-
Backups: 5
|
|
104
|
-
Oversized content: 3
|
|
61
|
+
### 3. Security Scanning
|
|
105
62
|
|
|
106
|
-
|
|
107
|
-
Size: 45.2 MB
|
|
63
|
+
Find leaked secrets in your conversations.
|
|
108
64
|
|
|
109
|
-
|
|
65
|
+
```bash
|
|
66
|
+
cct security-scan # Scan all conversations
|
|
67
|
+
cct audit abc123 # Full audit trail of session
|
|
110
68
|
```
|
|
111
69
|
|
|
112
|
-
###
|
|
113
|
-
|
|
114
|
-
Shows exactly what's wrong without making changes.
|
|
70
|
+
### 4. Storage Management
|
|
115
71
|
|
|
116
72
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-Users-me-projects-myapp/conversation1.jsonl
|
|
122
|
-
Line 142: 🖼️ image (~2.3 MB)
|
|
123
|
-
Line 856: 📄 pdf (~1.1 MB)
|
|
124
|
-
|
|
125
|
-
-Users-me-projects-another/conversation2.jsonl
|
|
126
|
-
Line 45: 📎 document (~890 KB)
|
|
127
|
-
|
|
128
|
-
Found 3 issue(s) in 2 file(s).
|
|
129
|
-
Run 'cct fix' to fix them.
|
|
73
|
+
cct clean # Remove debug logs, old snapshots
|
|
74
|
+
cct archive --days 60 # Archive old conversations
|
|
75
|
+
cct trace clean # Selective trace cleanup
|
|
130
76
|
```
|
|
131
77
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Removes problematic content and creates backups.
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
$ cct fix
|
|
78
|
+
---
|
|
138
79
|
|
|
139
|
-
|
|
80
|
+
## Common Problems & Solutions
|
|
140
81
|
|
|
141
|
-
|
|
142
|
-
Fixed 2 issue(s)
|
|
143
|
-
Backup: conversation1.jsonl.backup.2024-01-15T10-30-00
|
|
82
|
+
### 🚨 Out of Memory / API Error
|
|
144
83
|
|
|
145
|
-
|
|
146
|
-
Fixed 1 issue(s)
|
|
147
|
-
Backup: conversation2.jsonl.backup.2024-01-15T10-30-01
|
|
84
|
+
Uploaded a large image or PDF and now Claude won't respond? The conversation file is too big for the API.
|
|
148
85
|
|
|
149
|
-
|
|
150
|
-
|
|
86
|
+
```bash
|
|
87
|
+
cct scan # Identify oversized content
|
|
88
|
+
cct fix # Remove problematic content (creates backup)
|
|
89
|
+
# Restart Claude Code - you're back
|
|
151
90
|
```
|
|
152
91
|
|
|
153
|
-
###
|
|
92
|
+
### 🔐 Leaked Secrets
|
|
154
93
|
|
|
155
|
-
|
|
94
|
+
Accidentally pasted API keys, passwords, or tokens in chat? Find and audit them before they're exposed.
|
|
156
95
|
|
|
157
96
|
```bash
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
Conversation Statistics
|
|
161
|
-
|
|
162
|
-
Total: 23 conversations, 156.2 MB
|
|
163
|
-
Messages: 12,456, Images: 89, Documents: 23
|
|
164
|
-
Problematic content: 3
|
|
165
|
-
|
|
166
|
-
Top 5 by size:
|
|
167
|
-
|
|
168
|
-
-Users-me-projects-myapp/abc123.jsonl
|
|
169
|
-
Size: 45.2 MB, Messages: 2,341
|
|
170
|
-
Images: 34, Documents: 12 (2 oversized)
|
|
171
|
-
Modified: 2024-01-15 10:30:00
|
|
172
|
-
...
|
|
97
|
+
cct security-scan # Scan for AWS keys, tokens, passwords
|
|
98
|
+
cct audit abc123 # Full audit trail of what was accessed
|
|
173
99
|
```
|
|
174
100
|
|
|
175
|
-
###
|
|
101
|
+
### 🛑 Broken Sessions
|
|
176
102
|
|
|
177
|
-
|
|
103
|
+
Claude crashed mid-conversation and `--resume` doesn't work? Recover and repair corrupted session files.
|
|
178
104
|
|
|
179
105
|
```bash
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
conversation1.jsonl.backup.2024-01-15T10-30-00
|
|
185
|
-
Size: 23.4 MB, Created: 2024-01-15 10:30:00
|
|
186
|
-
...
|
|
106
|
+
cct sessions # List all sessions with health status
|
|
107
|
+
cct recover abc123 # Diagnose the session
|
|
108
|
+
cct recover abc123 --repair # Fix corrupted lines
|
|
109
|
+
cct recover abc123 --extract # Extract salvageable content
|
|
187
110
|
```
|
|
188
111
|
|
|
189
|
-
###
|
|
112
|
+
### 💾 Disk Space
|
|
190
113
|
|
|
191
|
-
|
|
114
|
+
Months of conversation history eating up GBs? Clean old traces and archive inactive sessions.
|
|
192
115
|
|
|
193
116
|
```bash
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
117
|
+
cct stats # See what's using space
|
|
118
|
+
cct clean --dry-run # Preview cleanup
|
|
119
|
+
cct clean # Remove debug logs, old snapshots
|
|
120
|
+
cct archive --days 30 # Archive old conversations
|
|
198
121
|
```
|
|
199
122
|
|
|
200
|
-
###
|
|
123
|
+
### 👁 Privacy / Trace Cleanup
|
|
201
124
|
|
|
202
|
-
|
|
125
|
+
Corporate security requires clearing Claude traces? Full inventory of 18 trace categories with secure wipe.
|
|
203
126
|
|
|
204
127
|
```bash
|
|
205
|
-
#
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
conversation2.jsonl.backup.2024-01-02T00-00-00
|
|
211
|
-
conversation3.jsonl.backup.2024-01-03T00-00-00
|
|
128
|
+
cct trace # Full inventory of stored data
|
|
129
|
+
cct trace clean --days 7 # Remove traces older than 7 days
|
|
130
|
+
cct trace wipe --confirm # Secure wipe everything
|
|
131
|
+
cct trace guard --mode paranoid # Auto-delete going forward
|
|
132
|
+
```
|
|
212
133
|
|
|
213
|
-
|
|
134
|
+
### 📦 Backup & Restore
|
|
214
135
|
|
|
215
|
-
|
|
216
|
-
$ cct cleanup --days 7
|
|
136
|
+
Need to undo a fix or restore a conversation? Automatic backups before every change.
|
|
217
137
|
|
|
218
|
-
|
|
138
|
+
```bash
|
|
139
|
+
cct backups # List available backups
|
|
140
|
+
cct restore /path/to/backup # Restore original
|
|
141
|
+
cct cleanup --days 30 # Delete old backups
|
|
219
142
|
```
|
|
220
143
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
| Option | Description |
|
|
224
|
-
|--------|-------------|
|
|
225
|
-
| `-f, --file <path>` | Target a specific file instead of all conversations |
|
|
226
|
-
| `-d, --dry-run` | Preview changes without making them |
|
|
227
|
-
| `--no-backup` | Skip creating backups when fixing (not recommended) |
|
|
228
|
-
| `--days <n>` | For cleanup: delete backups older than n days (default: 7) |
|
|
229
|
-
| `--limit <n>` | For stats: limit number of results (default: 10) |
|
|
230
|
-
| `--sort <field>` | For stats: sort by `size`, `messages`, `images`, or `modified` |
|
|
231
|
-
| `-h, --help` | Show help message |
|
|
232
|
-
| `-v, --version` | Show version |
|
|
144
|
+
### 📷 Storage Snapshots
|
|
233
145
|
|
|
234
|
-
|
|
146
|
+
Track how Claude's storage grows over time. Compare snapshots to see what changed.
|
|
235
147
|
|
|
236
|
-
|
|
148
|
+
```bash
|
|
149
|
+
cct dashboard # Snapshots tab in web UI
|
|
150
|
+
# Or via MCP: snapshot, compare, delete-snapshot actions
|
|
151
|
+
```
|
|
237
152
|
|
|
238
|
-
|
|
239
|
-
|------|-------------|
|
|
240
|
-
| `health_check` | Quick health check with recommendations |
|
|
241
|
-
| `get_conversation_stats` | Detailed statistics about conversations |
|
|
242
|
-
| `scan_image_issues` | Scan for oversized content (images, PDFs, documents) |
|
|
243
|
-
| `fix_image_issues` | Fix detected issues with automatic backups |
|
|
244
|
-
| `list_backups` | List all backup files |
|
|
245
|
-
| `restore_backup` | Restore a conversation from backup |
|
|
246
|
-
| `cleanup_backups` | Delete old backups to free space |
|
|
153
|
+
### 📜 Debug Logs
|
|
247
154
|
|
|
248
|
-
|
|
155
|
+
Something went wrong but you don't know what? Search and filter debug logs by level, component, or text.
|
|
249
156
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
- Documents with base64 data >100KB
|
|
256
|
-
- Text content >500KB
|
|
257
|
-
4. **Reports** findings with file paths, line numbers, and sizes
|
|
258
|
-
5. **Fixes** by replacing problematic content with placeholder text
|
|
259
|
-
6. **Backs up** original files before any modification
|
|
157
|
+
```bash
|
|
158
|
+
cct dashboard # Logs tab with search and filtering
|
|
159
|
+
# Filter by level (DEBUG, INFO, WARN, ERROR)
|
|
160
|
+
# Search by component or message text
|
|
161
|
+
```
|
|
260
162
|
|
|
261
|
-
|
|
163
|
+
### 🔌 MCP Servers Not Connecting
|
|
262
164
|
|
|
263
|
-
|
|
165
|
+
MCP servers aren't working? Validate configs and test connectivity.
|
|
264
166
|
|
|
265
167
|
```bash
|
|
266
|
-
cct
|
|
267
|
-
cct
|
|
268
|
-
#
|
|
168
|
+
cct mcp-validate # Check all MCP configs
|
|
169
|
+
cct mcp-validate --test # Test actual connectivity
|
|
170
|
+
cct dashboard # MCP tab shows tools/resources per server
|
|
269
171
|
```
|
|
270
172
|
|
|
271
|
-
###
|
|
173
|
+
### 📊 Visual Dashboard
|
|
174
|
+
|
|
175
|
+
Want a visual overview of everything? 14 tabs for complete management.
|
|
272
176
|
|
|
273
177
|
```bash
|
|
274
|
-
cct
|
|
178
|
+
cct dashboard # Opens web UI at localhost:1405
|
|
179
|
+
cct dashboard --port 9000 # Custom port
|
|
180
|
+
cct dashboard --daemon # Run in background
|
|
275
181
|
```
|
|
276
182
|
|
|
277
|
-
###
|
|
183
|
+
### 📤 Export Conversations
|
|
184
|
+
|
|
185
|
+
Need to export a conversation for backup or sharing?
|
|
278
186
|
|
|
279
187
|
```bash
|
|
280
|
-
cct
|
|
188
|
+
cct export -f /path/to/conversation.jsonl
|
|
189
|
+
cct export -f conversation.jsonl --format json
|
|
281
190
|
```
|
|
282
191
|
|
|
283
|
-
|
|
192
|
+
---
|
|
284
193
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
194
|
+
## All Commands
|
|
195
|
+
|
|
196
|
+
| Command | What it does |
|
|
197
|
+
|---------|--------------|
|
|
198
|
+
| `cct health` | Quick system health check |
|
|
199
|
+
| `cct scan` | Find issues without fixing |
|
|
200
|
+
| `cct fix` | Fix issues (with backup) |
|
|
201
|
+
| `cct dashboard` | Launch web dashboard |
|
|
202
|
+
| `cct stats` | Conversation statistics |
|
|
203
|
+
| `cct context` | Token/context usage |
|
|
204
|
+
| `cct analytics` | Usage trends and patterns |
|
|
205
|
+
| `cct duplicates` | Find duplicate content |
|
|
206
|
+
| `cct clean` | Clean .claude directory |
|
|
207
|
+
| `cct archive` | Archive old conversations |
|
|
208
|
+
| `cct maintenance` | Automated maintenance |
|
|
209
|
+
| `cct sessions` | List all sessions |
|
|
210
|
+
| `cct recover` | Repair crashed sessions |
|
|
211
|
+
| `cct security-scan` | Find leaked secrets |
|
|
212
|
+
| `cct audit` | Session audit trail |
|
|
213
|
+
| `cct retention` | Apply data retention |
|
|
214
|
+
| `cct trace` | Trace inventory |
|
|
215
|
+
| `cct trace clean` | Selective cleanup |
|
|
216
|
+
| `cct trace wipe` | Secure wipe |
|
|
217
|
+
| `cct mcp-validate` | Validate MCP configs |
|
|
218
|
+
| `cct backups` | List backups |
|
|
219
|
+
| `cct restore` | Restore from backup |
|
|
220
|
+
| `cct cleanup` | Delete old backups |
|
|
221
|
+
| `cct export` | Export conversation |
|
|
222
|
+
|
|
223
|
+
## Common Options
|
|
224
|
+
|
|
225
|
+
| Option | Used with | Description |
|
|
226
|
+
|--------|-----------|-------------|
|
|
227
|
+
| `--dry-run` | Most commands | Preview without changes |
|
|
228
|
+
| `--days N` | clean, archive, retention | Age threshold |
|
|
229
|
+
| `-f, --file` | scan, fix, export | Target specific file |
|
|
230
|
+
| `--port N` | dashboard | Custom port (default: 1405) |
|
|
231
|
+
| `--test` | mcp-validate | Test connectivity |
|
|
232
|
+
| `--repair` | recover | Attempt repair |
|
|
233
|
+
| `--extract` | recover | Extract content |
|
|
234
|
+
| `--confirm` | trace wipe | Required for wipe |
|
|
289
235
|
|
|
290
|
-
|
|
236
|
+
---
|
|
291
237
|
|
|
292
|
-
|
|
293
|
-
cct cleanup --days 30 --dry-run # Preview
|
|
294
|
-
cct cleanup --days 30 # Delete
|
|
295
|
-
```
|
|
238
|
+
## MCP Server Tools
|
|
296
239
|
|
|
297
|
-
|
|
240
|
+
When installed as MCP server, Claude can use these tools directly:
|
|
298
241
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
242
|
+
- `health_check` - System health
|
|
243
|
+
- `scan_image_issues` / `fix_image_issues` - Content fixes
|
|
244
|
+
- `security_scan` / `audit_session` - Security
|
|
245
|
+
- `clean_claude_directory` / `clean_traces` - Cleanup
|
|
246
|
+
- `list_sessions` / `recover_session` - Session management
|
|
247
|
+
- `validate_mcp_config` - MCP validation
|
|
248
|
+
- `start_dashboard` - Launch dashboard
|
|
306
249
|
|
|
307
|
-
|
|
250
|
+
---
|
|
308
251
|
|
|
309
|
-
|
|
252
|
+
## How It Works
|
|
310
253
|
|
|
311
|
-
|
|
254
|
+
1. Locates Claude Code data in `~/.claude/projects/`
|
|
255
|
+
2. Scans `.jsonl` conversation files
|
|
256
|
+
3. Detects oversized content (images >100KB, PDFs, large text)
|
|
257
|
+
4. Replaces problematic content with placeholders
|
|
258
|
+
5. Creates backups before any modification
|
|
312
259
|
|
|
313
|
-
|
|
260
|
+
---
|
|
314
261
|
|
|
315
262
|
## Links
|
|
316
263
|
|
|
317
|
-
- [npm
|
|
318
|
-
- [GitHub
|
|
319
|
-
- [
|
|
264
|
+
- [npm](https://www.npmjs.com/package/@asifkibria/claude-code-toolkit)
|
|
265
|
+
- [GitHub](https://github.com/asifkibria/claude-code-toolkit)
|
|
266
|
+
- [Website](https://asifkibria.github.io/claude-code-toolkit)
|
|
267
|
+
|
|
268
|
+
## License
|
|
269
|
+
|
|
270
|
+
MIT
|
|
320
271
|
|
|
321
272
|
---
|
|
322
273
|
|
package/dist/CLAUDE.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/dashboard.test.ts"],"names":[],"mappings":""}
|