@say8425/cc-statusline 3.2.0 → 4.1.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 +7 -7
- package/dist/index.js +329 -414
- package/package.json +14 -14
- package/dist/viewer/index.html +0 -490
- package/dist/viewer/main.js +0 -2842
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Add the following to `~/.claude/settings.json`:
|
|
|
56
56
|
- **Context**: Token usage with percentage (color-coded)
|
|
57
57
|
- **Model**: Current model name and reasoning effort (e.g., `Fable 5 high`; effort shown only for models that support it), with an `⚡ultra` badge when ultracode is enabled in your Claude Code settings and the session reports `xhigh` effort
|
|
58
58
|
- **Git Diff**: File count, insertions, deletions
|
|
59
|
-
- **Clickable Diff Viewer**: Click `✏️` to open a local diff viewer
|
|
59
|
+
- **Clickable Diff Viewer**: Click `✏️` to open a local diff viewer in your browser, powered by [diffdeck](https://github.com/say8425/diffdeck) (installed automatically as a dependency) — file tree, working-tree / vs-base modes, watch mode (auto-refresh), file folding, and in-app search (`Cmd/Ctrl+F`) across the full diff, including deleted lines
|
|
60
60
|
- **PR URL**: Clickable OSC 8 hyperlink
|
|
61
61
|
- **Worktree Support**: Shows real project name when running in a `cc --worktree` session
|
|
62
62
|
- **TrueColor**: Dynamic colors based on thresholds
|
|
@@ -69,8 +69,8 @@ Add the following to `~/.claude/settings.json`:
|
|
|
69
69
|
|
|
70
70
|
| Emoji | Description |
|
|
71
71
|
| ----- | ------------------------ |
|
|
72
|
-
| 📁 | Project folder name
|
|
73
|
-
| 🌲 | Worktree name (
|
|
72
|
+
| 📁 | Project folder name (click to open in file manager) |
|
|
73
|
+
| 🌲 | Worktree name (click to open worktree folder) |
|
|
74
74
|
| 🌿 | Current Git branch |
|
|
75
75
|
| ⏱️ | Session elapsed time |
|
|
76
76
|
| 💰 | Session cost in USD |
|
|
@@ -81,11 +81,11 @@ Add the following to `~/.claude/settings.json`:
|
|
|
81
81
|
| ⏰ | Weekly limit reset time |
|
|
82
82
|
| 📅 | 7-day utilization % |
|
|
83
83
|
| ✏️ | Uncommitted changes (click to open diff viewer) |
|
|
84
|
-
| 📎 | Pull request link
|
|
84
|
+
| 📎 | Pull request link — color-coded state in brackets (`[Open]`/`[Draft]`/`[Merged]`/`[Closed]`) immediately followed by a color-coded CI check summary in parens (`(N passed)`/`(N running)`/`(N failed)`) when checks exist |
|
|
85
85
|
|
|
86
86
|
## Diff Viewer
|
|
87
87
|
|
|
88
|
-
Click `✏️` in the statusline to open a local diff viewer in your browser
|
|
88
|
+
Click `✏️` in the statusline to open a local diff viewer in your browser. The viewer itself is provided by [diffdeck](https://github.com/say8425/diffdeck) ([`@say8425/diffdeck`](https://www.npmjs.com/package/@say8425/diffdeck) on npm), installed automatically as a runtime dependency of cc-statusline — the statusline spawns it as a background daemon and links to it from the `✏️` entry point.
|
|
89
89
|
|
|
90
90
|

|
|
91
91
|
|
|
@@ -101,7 +101,7 @@ Click `✏️` in the statusline to open a local diff viewer in your browser, re
|
|
|
101
101
|

|
|
102
102
|
- **Unified / Split** view toggle
|
|
103
103
|
- **Watch mode**: auto-refresh (~2s polling) that detects changes while preserving scroll position
|
|
104
|
-
- **File tree**: left/right placement
|
|
104
|
+
- **File tree**: left/right placement, drag-resizable width, flatten (collapse empty directories), and hide-sidebar toggles
|
|
105
105
|
- **File folding**: click any file header to collapse/expand; lockfiles and files with more than 1,500 changed lines start collapsed
|
|
106
106
|
- **In-app search** (`Cmd/Ctrl+F`): searches the entire diff including deleted lines, with match navigation and highlighting
|
|
107
107
|
- **Copy path**: hover a file header to copy the file's relative path
|
|
@@ -109,7 +109,7 @@ Click `✏️` in the statusline to open a local diff viewer in your browser, re
|
|
|
109
109
|
|
|
110
110
|
### How It Works (Diff Viewer)
|
|
111
111
|
|
|
112
|
-
The statusline spawns
|
|
112
|
+
The statusline spawns diffdeck as a background daemon on demand at `127.0.0.1:49573` whenever the repo has something to show. Requests are token-protected and bound to localhost.
|
|
113
113
|
|
|
114
114
|
| Environment variable | Effect |
|
|
115
115
|
| -------------------- | ------ |
|