ccstatusline-usage 2.4.1 → 2.4.3

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 +47 -3
  2. package/dist/ccstatusline.js +11079 -5838
  3. package/package.json +11 -3
package/README.md CHANGED
@@ -29,7 +29,7 @@
29
29
  This fork adds API-based usage widgets beyond the upstream:
30
30
 
31
31
  - **Session/Weekly Usage** - Real utilization from Anthropic API with progress bars
32
- - **Weekly Pace** - Pendulum bar showing if you're ahead or behind expected usage pace
32
+ - **Weekly Pace** - Pendulum bar showing if you're ahead or behind expected usage pace (optional Off Hours window subtracts sleep time from the expected % calc)
33
33
  - **Reset Timer** - Time until weekly reset (when at 100% / on a charged model); otherwise time until 5-hour session window resets
34
34
  - **Context Window Display** - Visual bar showing context usage
35
35
  - **Off Peak** - Shows peak/off-peak status with countdown timer (peak hours drain sessions faster)
@@ -100,6 +100,17 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
100
100
 
101
101
  ## 🆕 Recent Updates
102
102
 
103
+ ### [v2.4.3](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.3) - Off Hours for Weekly Pace
104
+
105
+ - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Off Hours configuration for Weekly Pace** — Optional recurring window (e.g. `22:00 → 07:00`) that Weekly Pace subtracts from both sides of its expected-% calculation, so the delta doesn't drift negative while you sleep. Wall-clock `dayOfWeek` still tracks calendar (D4/7 = Wednesday regardless of off-hours state). New TUI menu: `(e)` toggle, `(s)` / `(n)` edit start/end, `(r)` reset. Off by default — existing configs parse unchanged. Thanks to @BenIsLegit ([#4](https://github.com/pcvelz/ccstatusline-usage/pull/4)).
106
+
107
+ ### [v2.4.2](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.2) - Upstream sync + Reset Timer editor + JSON model config + provider gate
108
+
109
+ - [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.
110
+ - [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.
111
+ - [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.
112
+ - [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.
113
+
103
114
  ### [v2.4.1](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.4.1) - Weekly Pace: showPercent toggle + decimal precision
104
115
 
105
116
  - [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 +275,32 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
264
275
  - **🔗 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
276
  - **🤝 Better subagent-aware speed reporting** - Token speed calculations continue to include referenced subagent activity so displayed speeds better reflect actual concurrent work.
266
277
 
278
+ ### v2.2.9 - v2.2.12 - GitLab support, reset timers, context, compaction, and git widgets
279
+
280
+ - **🦊 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.
281
+ - **🔄 Status line refresh interval** - Installed configs can set Claude Code's `statusLine.refreshInterval` from the TUI when Claude Code >=2.1.97 supports it.
282
+ - **🧭 Wrap-around TUI navigation** - Menu/list navigation and move/reorder modes now wrap at the first and last items.
283
+ - **📋 Clone widget shortcut** - Press `k` in the item editor to duplicate the selected widget, with fresh Powerline background color for cloned Powerline items.
284
+ - **📊 Short bar display modes** - Context percentage, Context Bar, Session Usage, Weekly Usage, Block Timer, and reset timer widgets can use compact bar variants.
285
+ - **⏱️ Usage time cursor** - Session Usage and Weekly Usage progress bars can show the elapsed time position within the current usage window.
286
+ - **🕒 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.
287
+ - **🪟 Context Window widget** - Added a `Context Window` widget for total model window size, keeping `Context Length` focused on current context usage.
288
+ - **🔁 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.
289
+ - **🧮 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.
290
+ - **🏷️ Clear context percentage labels** - `Context %` and `Context % (usable)` now label rendered values as used or left when toggling used/remaining mode.
291
+ - **⚡ More Powerline caps** - The Powerline separator editor now supports more than three start/end caps.
292
+ - **🧠 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.
293
+ - **🧮 More accurate token counts** - Streaming duplicate JSONL entries are deduped so token widgets do not overcount live Claude Code output.
294
+ - **🏷️ Cleaner model display** - The Model widget strips trailing context suffixes like `(1M context)`; use `Context Window` when you want the total window size shown.
295
+ - **🧹 Cleaner empty-widget separators** - Manual separators now collapse around widgets that render empty, avoiding dangling separators when hide-when-empty widgets disappear.
296
+ - **🧱 More resilient Git helpers** - Git widgets handle missing or unusual git command output more defensively.
297
+
298
+ ### v2.2.8 - Git widgets, smarter picker search, and minimalist mode
299
+
300
+ - **🌿 Git widgets** - Added `Git Branch`, `Git Insertions`, `Git Deletions`, `Git Changes`, `Git PR/MR`, and `Git Worktree` widgets for repository status.
301
+ - **🔎 Smarter widget picker** - Category-based browsing, ranked fuzzy search, and recent/frequent shortcuts make finding and adding widgets faster.
302
+ - **🎨 Minimalist mode** - Global option to strip icons, labels, and extra formatting for a cleaner status line.
303
+
267
304
  <br />
268
305
  <details>
269
306
  <summary><b>Older updates (v2.1.10 and earlier)</b></summary>
@@ -370,7 +407,7 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
370
407
 
371
408
  ## ✨ Features
372
409
 
373
- - **📊 Real-time Metrics** - Display model name, git branch, token usage, session duration, block timer, and more
410
+ - **📊 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
411
  - **📈 API Usage Tracking** - Real-time 5-hour session and weekly utilization from Anthropic API with progress bars
375
412
  - **⏱️ Reset Timer** - Countdown to when your 5-hour session window resets
376
413
  - **🎨 Fully Customizable** - Choose what to display and customize colors for each element
@@ -406,6 +443,8 @@ npx -y ccstatusline-usage@latest
406
443
  bunx -y ccstatusline-usage@latest
407
444
  ```
408
445
 
446
+ 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.
447
+
409
448
  <br />
410
449
  <details>
411
450
  <summary><b>Configure ccstatusline</b></summary>
@@ -415,6 +454,7 @@ The interactive configuration tool provides a terminal UI where you can:
415
454
  - Add/remove/reorder status line widgets
416
455
  - Customize colors for each widget
417
456
  - Configure flex separator behavior
457
+ - Configure Claude Code status line refresh interval when supported
418
458
  - Edit custom text widgets
419
459
  - Install/uninstall to Claude Code settings
420
460
  - Preview your status line in real-time
@@ -443,11 +483,14 @@ When you install from the TUI, ccstatusline writes a `statusLine` command object
443
483
  "statusLine": {
444
484
  "type": "command",
445
485
  "command": "npx -y ccstatusline-usage@latest",
446
- "padding": 0
486
+ "padding": 0,
487
+ "refreshInterval": 10
447
488
  }
448
489
  }
449
490
  ```
450
491
 
492
+ `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.
493
+
451
494
  Other supported command values are:
452
495
  - `bunx -y ccstatusline-usage@latest`
453
496
  - `ccstatusline` (for self-managed/global installs)
@@ -1018,6 +1061,7 @@ jq 'del(.statusLine)' ~/.claude/settings.json > /tmp/cs.json && cat /tmp/cs.json
1018
1061
  - [tweakcc](https://github.com/Piebald-AI/tweakcc) - Customize Claude Code themes, thinking verbs, and more.
1019
1062
  - [ccusage](https://github.com/ryoppippi/ccusage) - Track and display Claude Code usage metrics.
1020
1063
  - [codachi](https://github.com/vincent-k2026/codachi) - A tamagotchi-style statusline pet that grows with your context window.
1064
+ - [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
1065
 
1022
1066
 
1023
1067
  ## 🙏 Acknowledgments