ccstatusline-usage 2.4.0 → 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.
Files changed (3) hide show
  1. package/README.md +49 -5
  2. package/dist/ccstatusline.js +10746 -5836
  3. package/package.json +11 -3
package/README.md CHANGED
@@ -1,5 +1,3 @@
1
- <div align="center">
2
-
3
1
  <pre>
4
2
  _ _ _ _
5
3
  ___ ___ ___| |_ __ _| |_ _ _ ___| (_)_ __ ___
@@ -82,7 +80,6 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
82
80
 
83
81
  ![Demo](https://raw.githubusercontent.com/sirmalloc/ccstatusline/main/screenshots/demo.gif)
84
82
 
85
- </div>
86
83
  <br />
87
84
 
88
85
  ## 📚 Table of Contents
@@ -103,6 +100,20 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
103
100
 
104
101
  ## 🆕 Recent Updates
105
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
+
110
+ ### [v2.4.1](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.1) - Weekly Pace: showPercent toggle + decimal precision
111
+
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.
113
+ - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **`.` keybind — decimal precision** — Cycles 0 → 1 → 2 → 3 → 0 decimal places for all deltas (Warm/Cool/Overcooking/Underusing, `On Pace` when `showPercent` is on, and the pendulum bar). Replaces `Math.round()` with `toFixed(decimals)` in a shared `formatDelta` helper.
114
+ - Both toggles are metadata-gated and orthogonal — omitted keys behave identically to before.
115
+ - Thanks to @BenIsLegit ([#3](https://github.com/pcvelz/ccstatusline-usage/pull/3)).
116
+
106
117
  ### [v2.4.0](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.0) - Multi-provider router for usage widgets
107
118
 
108
119
  - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Provider pattern end-to-end** — Usage widgets now dispatch through `resolveProvider(modelId)` in `src/utils/usage/resolver.ts`. Anthropic models (`opus`/`sonnet`/`haiku`) fetch from the usage API; opencode/local models (`glm`, `kimi`, `minimax`, `mm-`, `qwen`, `owen`, `mimo`) skip the fetch entirely so heavy local-model sessions no longer trigger needless Anthropic API calls or rate-limiting.
@@ -260,6 +271,32 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
260
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.
261
272
  - **🤝 Better subagent-aware speed reporting** - Token speed calculations continue to include referenced subagent activity so displayed speeds better reflect actual concurrent work.
262
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
+
263
300
  <br />
264
301
  <details>
265
302
  <summary><b>Older updates (v2.1.10 and earlier)</b></summary>
@@ -366,7 +403,7 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
366
403
 
367
404
  ## ✨ Features
368
405
 
369
- - **📊 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
370
407
  - **📈 API Usage Tracking** - Real-time 5-hour session and weekly utilization from Anthropic API with progress bars
371
408
  - **⏱️ Reset Timer** - Countdown to when your 5-hour session window resets
372
409
  - **🎨 Fully Customizable** - Choose what to display and customize colors for each element
@@ -402,6 +439,8 @@ npx -y ccstatusline-usage@latest
402
439
  bunx -y ccstatusline-usage@latest
403
440
  ```
404
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
+
405
444
  <br />
406
445
  <details>
407
446
  <summary><b>Configure ccstatusline</b></summary>
@@ -411,6 +450,7 @@ The interactive configuration tool provides a terminal UI where you can:
411
450
  - Add/remove/reorder status line widgets
412
451
  - Customize colors for each widget
413
452
  - Configure flex separator behavior
453
+ - Configure Claude Code status line refresh interval when supported
414
454
  - Edit custom text widgets
415
455
  - Install/uninstall to Claude Code settings
416
456
  - Preview your status line in real-time
@@ -439,11 +479,14 @@ When you install from the TUI, ccstatusline writes a `statusLine` command object
439
479
  "statusLine": {
440
480
  "type": "command",
441
481
  "command": "npx -y ccstatusline-usage@latest",
442
- "padding": 0
482
+ "padding": 0,
483
+ "refreshInterval": 10
443
484
  }
444
485
  }
445
486
  ```
446
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
+
447
490
  Other supported command values are:
448
491
  - `bunx -y ccstatusline-usage@latest`
449
492
  - `ccstatusline` (for self-managed/global installs)
@@ -1014,6 +1057,7 @@ jq 'del(.statusLine)' ~/.claude/settings.json > /tmp/cs.json && cat /tmp/cs.json
1014
1057
  - [tweakcc](https://github.com/Piebald-AI/tweakcc) - Customize Claude Code themes, thinking verbs, and more.
1015
1058
  - [ccusage](https://github.com/ryoppippi/ccusage) - Track and display Claude Code usage metrics.
1016
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.
1017
1061
 
1018
1062
 
1019
1063
  ## 🙏 Acknowledgments