ccstatusline-usage 2.4.1 → 2.4.2
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 +42 -2
- package/dist/ccstatusline.js +10685 -5817
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -100,6 +100,13 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
|
|
|
100
100
|
|
|
101
101
|
## 🆕 Recent Updates
|
|
102
102
|
|
|
103
|
+
### [v2.4.2](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.2) - Upstream sync + Reset Timer editor + JSON model config + provider gate
|
|
104
|
+
|
|
105
|
+
- [sirmalloc/ccstatusline](https://github.com/sirmalloc/ccstatusline): **Upstream sync** — 34 commits merged, including Jujutsu VCS widgets (`jj-branch`, `jj-changes`, `jj-conflicts`, `jj-description`), Voice Status widget, separate Weekly Sonnet and Weekly Opus usage widgets, short bar mode for timer widgets, pinned global install support, context percentage label fixes, and separator collapse improvements.
|
|
106
|
+
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Off-peak widget provider gate** — Hides the Anthropic-only peak-hours indicator for non-Anthropic models (Kimi, GLM, Qwen, MiniMax, …). Introduces optional `getSupportedProviders()` on the Widget interface, with the gate enforced once in `renderer.preRenderAllWidgets()` — declarative per-widget routing that stays clean as new providers are added.
|
|
107
|
+
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Reset Timer editor actions** — `t` toggles date mode, `h` toggles hour format, `l` edits locale, `z` edits timezone directly in the TUI item editor.
|
|
108
|
+
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **JSON-driven model context** — Third-party model context window sizes (Kimi, GLM, MiniMax, Qwen, Devstral, etc.) moved from hardcoded TypeScript to `src/utils/model-context.json` for easier updates and community contributions.
|
|
109
|
+
|
|
103
110
|
### [v2.4.1](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.1) - Weekly Pace: showPercent toggle + decimal precision
|
|
104
111
|
|
|
105
112
|
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **`%` keybind — always show delta on `On Pace`** — Previously `On Pace` was the only pace band that hid its delta. Toggle `showPercent` in the editor to render `D4/7: On Pace +3%` (or `-2%`, or `+0%`) so you can see how close to a band edge you are.
|
|
@@ -264,6 +271,32 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
|
|
|
264
271
|
- **🔗 Git widget link modes (v2.2.6)** - `Git Branch` can render clickable GitHub branch links, and `Git Root Dir` can render clickable IDE links for VS Code and Cursor.
|
|
265
272
|
- **🤝 Better subagent-aware speed reporting** - Token speed calculations continue to include referenced subagent activity so displayed speeds better reflect actual concurrent work.
|
|
266
273
|
|
|
274
|
+
### v2.2.9 - v2.2.12 - GitLab support, reset timers, context, compaction, and git widgets
|
|
275
|
+
|
|
276
|
+
- **🦊 GitLab PR/MR support** - `Git Branch` and `Git PR/MR` now support GitHub, GitLab, and compatible self-hosted remotes, using `gh` or `glab` as appropriate.
|
|
277
|
+
- **🔄 Status line refresh interval** - Installed configs can set Claude Code's `statusLine.refreshInterval` from the TUI when Claude Code >=2.1.97 supports it.
|
|
278
|
+
- **🧭 Wrap-around TUI navigation** - Menu/list navigation and move/reorder modes now wrap at the first and last items.
|
|
279
|
+
- **📋 Clone widget shortcut** - Press `k` in the item editor to duplicate the selected widget, with fresh Powerline background color for cloned Powerline items.
|
|
280
|
+
- **📊 Short bar display modes** - Context percentage, Context Bar, Session Usage, Weekly Usage, Block Timer, and reset timer widgets can use compact bar variants.
|
|
281
|
+
- **⏱️ Usage time cursor** - Session Usage and Weekly Usage progress bars can show the elapsed time position within the current usage window.
|
|
282
|
+
- **🕒 Reset timer timestamps** - Block and Weekly Reset Timer widgets can show exact reset timestamps with compact formatting, 12/24-hour display, IANA time zones, and locale selection.
|
|
283
|
+
- **🪟 Context Window widget** - Added a `Context Window` widget for total model window size, keeping `Context Length` focused on current context usage.
|
|
284
|
+
- **🔁 Compaction Counter widget** - Added a `Compaction Counter` widget that tracks session context compactions, with icon/text/number formats, optional Nerd Font icon, and hide-when-zero behavior.
|
|
285
|
+
- **🧮 Git file status widgets** - Added `Git Staged Files`, `Git Unstaged Files`, `Git Untracked Files`, and `Git Clean Status` for file counts and clean/dirty state.
|
|
286
|
+
- **🏷️ Clear context percentage labels** - `Context %` and `Context % (usable)` now label rendered values as used or left when toggling used/remaining mode.
|
|
287
|
+
- **⚡ More Powerline caps** - The Powerline separator editor now supports more than three start/end caps.
|
|
288
|
+
- **🧠 Thinking Effort updates** - Added `xhigh`, show `default` when no effort is set, mark unknown future effort levels with `?`, and track live status JSON plus `/effort` command changes.
|
|
289
|
+
- **🧮 More accurate token counts** - Streaming duplicate JSONL entries are deduped so token widgets do not overcount live Claude Code output.
|
|
290
|
+
- **🏷️ Cleaner model display** - The Model widget strips trailing context suffixes like `(1M context)`; use `Context Window` when you want the total window size shown.
|
|
291
|
+
- **🧹 Cleaner empty-widget separators** - Manual separators now collapse around widgets that render empty, avoiding dangling separators when hide-when-empty widgets disappear.
|
|
292
|
+
- **🧱 More resilient Git helpers** - Git widgets handle missing or unusual git command output more defensively.
|
|
293
|
+
|
|
294
|
+
### v2.2.8 - Git widgets, smarter picker search, and minimalist mode
|
|
295
|
+
|
|
296
|
+
- **🌿 Git widgets** - Added `Git Branch`, `Git Insertions`, `Git Deletions`, `Git Changes`, `Git PR/MR`, and `Git Worktree` widgets for repository status.
|
|
297
|
+
- **🔎 Smarter widget picker** - Category-based browsing, ranked fuzzy search, and recent/frequent shortcuts make finding and adding widgets faster.
|
|
298
|
+
- **🎨 Minimalist mode** - Global option to strip icons, labels, and extra formatting for a cleaner status line.
|
|
299
|
+
|
|
267
300
|
<br />
|
|
268
301
|
<details>
|
|
269
302
|
<summary><b>Older updates (v2.1.10 and earlier)</b></summary>
|
|
@@ -370,7 +403,7 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
|
|
|
370
403
|
|
|
371
404
|
## ✨ Features
|
|
372
405
|
|
|
373
|
-
- **📊 Real-time Metrics** - Display model name, git branch, token usage, session duration, block timer, and more
|
|
406
|
+
- **📊 Real-time Metrics** - Display model name, git branch, token usage, per-model weekly usage, voice input state, session duration, compaction count, block timer, and more
|
|
374
407
|
- **📈 API Usage Tracking** - Real-time 5-hour session and weekly utilization from Anthropic API with progress bars
|
|
375
408
|
- **⏱️ Reset Timer** - Countdown to when your 5-hour session window resets
|
|
376
409
|
- **🎨 Fully Customizable** - Choose what to display and customize colors for each element
|
|
@@ -406,6 +439,8 @@ npx -y ccstatusline-usage@latest
|
|
|
406
439
|
bunx -y ccstatusline-usage@latest
|
|
407
440
|
```
|
|
408
441
|
|
|
442
|
+
Both commands launch the same TUI. During the initial setup flow, choose **Pinned global install** if you want Claude Code to stay on the ccstatusline version you are running instead of following `@latest`; the TUI will install that version globally with npm or Bun and write the pinned `ccstatusline` command to Claude Code settings. After a pinned install, you can run `ccstatusline` directly to launch the TUI in the future.
|
|
443
|
+
|
|
409
444
|
<br />
|
|
410
445
|
<details>
|
|
411
446
|
<summary><b>Configure ccstatusline</b></summary>
|
|
@@ -415,6 +450,7 @@ The interactive configuration tool provides a terminal UI where you can:
|
|
|
415
450
|
- Add/remove/reorder status line widgets
|
|
416
451
|
- Customize colors for each widget
|
|
417
452
|
- Configure flex separator behavior
|
|
453
|
+
- Configure Claude Code status line refresh interval when supported
|
|
418
454
|
- Edit custom text widgets
|
|
419
455
|
- Install/uninstall to Claude Code settings
|
|
420
456
|
- Preview your status line in real-time
|
|
@@ -443,11 +479,14 @@ When you install from the TUI, ccstatusline writes a `statusLine` command object
|
|
|
443
479
|
"statusLine": {
|
|
444
480
|
"type": "command",
|
|
445
481
|
"command": "npx -y ccstatusline-usage@latest",
|
|
446
|
-
"padding": 0
|
|
482
|
+
"padding": 0,
|
|
483
|
+
"refreshInterval": 10
|
|
447
484
|
}
|
|
448
485
|
}
|
|
449
486
|
```
|
|
450
487
|
|
|
488
|
+
`refreshInterval` is written only when your Claude Code version supports it (>=2.1.97). The TUI can set it to `1-60` seconds, or remove it by leaving the input empty.
|
|
489
|
+
|
|
451
490
|
Other supported command values are:
|
|
452
491
|
- `bunx -y ccstatusline-usage@latest`
|
|
453
492
|
- `ccstatusline` (for self-managed/global installs)
|
|
@@ -1018,6 +1057,7 @@ jq 'del(.statusLine)' ~/.claude/settings.json > /tmp/cs.json && cat /tmp/cs.json
|
|
|
1018
1057
|
- [tweakcc](https://github.com/Piebald-AI/tweakcc) - Customize Claude Code themes, thinking verbs, and more.
|
|
1019
1058
|
- [ccusage](https://github.com/ryoppippi/ccusage) - Track and display Claude Code usage metrics.
|
|
1020
1059
|
- [codachi](https://github.com/vincent-k2026/codachi) - A tamagotchi-style statusline pet that grows with your context window.
|
|
1060
|
+
- [AIWatch](https://ai-watch.dev) - Live status monitor for 30+ AI APIs and apps; pairs with a Custom Command widget to surface provider outages in your status line.
|
|
1021
1061
|
|
|
1022
1062
|
|
|
1023
1063
|
## 🙏 Acknowledgments
|