claude-cleaner 1.2.0 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -81,7 +81,9 @@ claude-cleaner --version
81
81
  | `a` | Select / deselect all visible items |
82
82
  | `n` | Unselect all |
83
83
  | `o` | Select orphaned projects only |
84
- | `enter` | Delete selected session-history directories (confirm screen) |
84
+ | `enter` | Open Project Detail when nothing is selected; otherwise delete selected project session-history directories |
85
+ | `l` | Lock / unlock project (protected projects are skipped by destructive bulk actions) |
86
+ | `X` | Forget project: remove Claude session data + project metadata, never source code |
85
87
  | `p` | Full purge selected projects through Claude CLI when available |
86
88
  | `x` | Force-purge item at cursor — no confirm |
87
89
  | `s` | Cycle sort: recent / size / tokens / name |
@@ -101,6 +103,11 @@ claude-cleaner --version
101
103
  - Displays **token usage** per project — reads `lastTotal*` fields from `~/.claude.json` when available, otherwise aggregates `message.usage` from session `.jsonl` files. Formatted as K / M / B / T / P / E.
102
104
  - Status column `●` (session files on disk) / `○` (config only, no local data).
103
105
  - Windows path dedup — `d:/foo` and `D:/foo` treated as the same project; higher-token entry wins.
106
+ - Project Detail screen with per-conversation JSONL session count, modified time, message count, token usage, and size.
107
+ - Delete individual conversation sessions without removing the entire project history.
108
+ - Protected Projects with `l`: locked projects are excluded from select-all, orphan selection, delete, purge, and forget operations.
109
+ - Forget Project with `X`: removes Claude-owned session data and the matching `~/.claude.json` project entry while preserving the real source project.
110
+ - Project list includes conversation/session counts alongside size, token usage, and last-modified time.
104
111
  - Multi-select with `space`, select all with `a`, confirm with `enter`.
105
112
  - Separate deletion backends: normal **Delete** removes only the selected Claude session-history directory; **Purge** uses `claude project purge` when available and falls back to session-directory removal.
106
113
  - `--dry-run` previews exactly which projects/categories would be cleaned without touching files.
@@ -126,7 +133,9 @@ These folders contain Claude Code session and conversation history. Source code
126
133
 
127
134
  | Mode | Key | Confirm | Scope | How |
128
135
  | --- | --- | --- | --- | --- |
129
- | Delete | `enter` | ✓ screen | selected items | removes only the matching directory under `~/.claude/projects`; never invokes `claude project purge` |
136
+ | Delete | `enter` with selected projects | ✓ screen | selected items | removes only the matching directory under `~/.claude/projects`; never invokes `claude project purge` |
137
+ | Delete conversation | Project Detail → `enter` | ✓ screen | selected JSONL sessions | removes only selected conversation files inside one project |
138
+ | Forget project | `X` | ✓ screen | current/selected projects | removes Claude session data and matching `~/.claude.json` metadata; source code is never touched |
130
139
  | Purge | `p` | ✓ screen | selected items | runs `claude project purge -y <path>` when available; falls back to the matching session directory |
131
140
  | Force-purge | `x` | ✗ | cursor item only | same purge chain as `p`, without a confirm screen |
132
141
  | Delete all | `a` then `enter` | ✓ screen | all visible/selected items | deletes selected session directories individually; does not call `purge --all` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-cleaner",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Safely inspect and delete selected Claude Code project session history from an interactive cross-platform TUI.",
5
5
  "bin": {
6
6
  "claude-cleaner": "scripts/run.js"