ccstatusline-usage 2.1.4 โ†’ 2.1.6

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 +32 -40
  2. package/dist/ccstatusline.js +1006 -185
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -46,26 +46,22 @@
46
46
 
47
47
  ## ๐Ÿ†• Recent Updates
48
48
 
49
- ### [v2.1.4](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.1.4) - Compact mode widget-boundary wrapping
49
+ ### [v2.1.6](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.1.6) - Upstream sync
50
50
 
51
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Widget-boundary wrapping** โ€” compact mode now wraps at widget boundaries instead of mid-widget, using a dedicated compact renderer (`compact-renderer.ts`). Widgets that don't fit on the current line cleanly wrap to the next:
52
- ```
53
- S: [โ–‘โ–‘โ–‘โ–‘] 2.0% | W: [โ–ˆโ–ˆโ–‘โ–‘] 43.0% | 4:36 hr
54
- M: o4.6 โ–Œโ–Œโ–Œ | S: 5647528d | C: [โ–ˆโ–ˆโ–‘โ–‘] 119k/200k
55
- ```
56
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Terminal-agnostic compact detection** โ€” compact mode now triggers on any narrow terminal (< 80 columns), not just tmux
51
+ - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Upstream sync** โ€” merged 9 upstream commits: Session Name widget, Git Root Dir widget, CWD home abbreviation, block timer caching, git widget refactor, Windows UTF-8 fix, widget picker UX, TUI editor input fix
57
52
 
58
- ### [v2.1.3](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.1.3) - Mobile/compact mode and thinking effort bars
53
+ ### v2.0.26 - v2.0.28 - Performance, git internals, and workflow improvements
59
54
 
60
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Mobile/compact mode** โ€” in narrow terminals (< 80 effective columns, e.g. tmux panes), widgets auto-switch to compact rendering: `M: o4.6` instead of `Model: claude-opus-4-6`, session ID truncated to 8 chars, and multiple status lines merge into one
61
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Thinking effort bars** โ€” Model widget shows `โ–Œโ–Œโ–Œ` bars indicating Claude Code's effort level (1=low, 2=medium, 3=high). Reads from `CLAUDE_CODE_EFFORT_LEVEL` env var or `~/.claude/settings.json`
62
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Tmux pane width detection** โ€” correctly detects actual pane width via `tmux display-message` instead of falling back to default 80 columns
63
-
64
- ### [v2.1.2](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.1.2) - Token auth fallback and 401 handling
65
-
66
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): macOS file credential fallback โ€” reads `~/.claude/.credentials.json` when Keychain entry is missing
67
- - [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): 401 auth error handling โ€” invalidates cached token so next call re-reads from disk after `/login`
68
- - Synced with upstream (101 commits)
55
+ - **โšก Block timer cache (v2.0.28)** - Cache block timer metrics to reduce JSONL parsing on every render, with per-config hashed cache files and automatic 5-hour block invalidation.
56
+ - **๐Ÿงฑ Git widget command refactor (v2.0.28)** - Refactored git widgets to use shared git command helpers and expanded coverage for failure and edge-case tests.
57
+ - **๐ŸชŸ Windows UTF-8 piped output fix (v2.0.28)** - Sets the Windows UTF-8 code page for piped status line rendering.
58
+ - **๐Ÿ“ Git Root Dir widget (v2.0.27)** - Added a new Git widget that shows the repository root directory name.
59
+ - **๐Ÿท๏ธ Session Name widget (v2.0.26)** - Added a new widget that shows the current Claude Code session name from `/rename`.
60
+ - **๐Ÿ  Current Working Directory home abbreviation (v2.0.26)** - Added a `~` abbreviation option for CWD display in both preview and live rendering.
61
+ - **๐Ÿง  Context model suffix fix (v2.0.26)** - Context widgets now recognize the `[1m]` suffix across models, not just a single model path.
62
+ - **๐Ÿงญ Widget picker UX updates (v2.0.26)** - Improved widget discovery/navigation and added clearer, safer clear-line behavior.
63
+ - **โŒจ๏ธ TUI editor input fix (v2.0.26)** - Prevented shortcut/input leakage into widget editor flows.
64
+ - **๐Ÿ“„ Repo docs update (v2.0.26)** - Migrated guidance from `CLAUDE.md` to `AGENTS.md` (with symlink compatibility).
69
65
 
70
66
  ### v2.0.16 - Add fish style path abbreviation toggle to Current Working Directory widget
71
67
 
@@ -370,12 +366,13 @@ Once configured, ccstatusline automatically formats your Claude Code status line
370
366
 
371
367
  ### ๐Ÿ“Š Available Widgets
372
368
 
373
- - **Model Name** - Shows the current Claude model with thinking effort bars (`โ–Œโ–Œโ–Œ`) indicating low/medium/high effort
369
+ - **Model Name** - Shows the current Claude model (e.g., "Claude 3.5 Sonnet")
374
370
  - **Git Branch** - Displays current git branch name
375
371
  - **Git Changes** - Shows uncommitted insertions/deletions (e.g., "+42,-10")
376
372
  - **Git Worktree** - Shows the name of the current git worktree
377
373
  - **Session Clock** - Shows elapsed time since session start (e.g., "2hr 15m")
378
374
  - **Session Cost** - Shows total session cost in USD (e.g., "$1.23")
375
+ - **Session Name** - Shows the session name set via `/rename` command in Claude Code
379
376
  - **Block Timer** - Shows time elapsed in current 5-hour block or progress bar
380
377
  - **Current Working Directory** - Shows current working directory with configurable path segments
381
378
  - **Version** - Shows Claude Code version
@@ -385,8 +382,8 @@ Once configured, ccstatusline automatically formats your Claude Code status line
385
382
  - **Tokens Cached** - Shows cached tokens used
386
383
  - **Tokens Total** - Shows total tokens used
387
384
  - **Context Length** - Shows current context length in tokens
388
- - **Context Percentage** - Shows percentage of context limit used (dynamic: 1M for Sonnet 4.5/Opus 4.6 with `[1m]` suffix, 200k otherwise)
389
- - **Context Percentage (usable)** - Shows percentage of usable context (dynamic: 800k for Sonnet 4.5/Opus 4.6 with `[1m]` suffix, 160k otherwise, accounting for auto-compact at 80%)
385
+ - **Context Percentage** - Shows percentage of context limit used (dynamic: 1M for Sonnet 4.5 with `[1m]` suffix, 200k otherwise)
386
+ - **Context Percentage (usable)** - Shows percentage of usable context (dynamic: 800k for Sonnet 4.5 with `[1m]` suffix, 160k otherwise, accounting for auto-compact at 80%)
390
387
  - **Terminal Width** - Shows detected terminal width (for debugging)
391
388
  - **Custom Text** - Add your own custom text to the status line
392
389
  - **Custom Command** - Execute shell commands and display their output (refreshes whenever the statusline is updated by Claude Code)
@@ -456,7 +453,7 @@ The Block Timer widget helps you track your progress through Claude Code's 5-hou
456
453
  ### ๐Ÿ”ค Raw Value Mode
457
454
 
458
455
  Some widgets support "raw value" mode which displays just the value without a label:
459
- - Normal: `Model: Claude Opus 4.6` โ†’ Raw: `Claude Opus 4.6`
456
+ - Normal: `Model: Claude 3.5 Sonnet` โ†’ Raw: `Claude 3.5 Sonnet`
460
457
  - Normal: `Session: 2hr 15m` โ†’ Raw: `2hr 15m`
461
458
  - Normal: `Block: 3hr 45m` โ†’ Raw: `3hr 45m`
462
459
  - Normal: `Ctx: 18.6k` โ†’ Raw: `18.6k`
@@ -633,11 +630,6 @@ Contributions are welcome! Please feel free to submit a Pull Request.
633
630
 
634
631
  - GitHub: [@sirmalloc](https://github.com/sirmalloc)
635
632
 
636
- **Fork maintained by Peter van Velzen**
637
-
638
- - GitHub: [@pcvelz](https://github.com/pcvelz)
639
- - Fork: [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage)
640
-
641
633
  ---
642
634
 
643
635
  ## ๐Ÿ”— Related Projects
@@ -657,11 +649,11 @@ Contributions are welcome! Please feel free to submit a Pull Request.
657
649
 
658
650
  ## Star History
659
651
 
660
- <a href="https://www.star-history.com/#pcvelz/ccstatusline-usage&Timeline">
652
+ <a href="https://www.star-history.com/#sirmalloc/ccstatusline&Timeline">
661
653
  <picture>
662
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=pcvelz/ccstatusline-usage&type=Timeline&theme=dark" />
663
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=pcvelz/ccstatusline-usage&type=Timeline" />
664
- <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=pcvelz/ccstatusline-usage&type=Timeline" />
654
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=sirmalloc/ccstatusline&type=Timeline&theme=dark" />
655
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=sirmalloc/ccstatusline&type=Timeline" />
656
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=sirmalloc/ccstatusline&type=Timeline" />
665
657
  </picture>
666
658
  </a>
667
659
 
@@ -671,21 +663,21 @@ Contributions are welcome! Please feel free to submit a Pull Request.
671
663
 
672
664
  Give a โญ if this project helped you!
673
665
 
674
- [![GitHub stars](https://img.shields.io/github/stars/pcvelz/ccstatusline-usage?style=social)](https://github.com/pcvelz/ccstatusline-usage/stargazers)
675
- [![GitHub forks](https://img.shields.io/github/forks/pcvelz/ccstatusline-usage?style=social)](https://github.com/pcvelz/ccstatusline-usage/network/members)
676
- [![GitHub watchers](https://img.shields.io/github/watchers/pcvelz/ccstatusline-usage?style=social)](https://github.com/pcvelz/ccstatusline-usage/watchers)
666
+ [![GitHub stars](https://img.shields.io/github/stars/sirmalloc/ccstatusline?style=social)](https://github.com/sirmalloc/ccstatusline/stargazers)
667
+ [![GitHub forks](https://img.shields.io/github/forks/sirmalloc/ccstatusline?style=social)](https://github.com/sirmalloc/ccstatusline/network/members)
668
+ [![GitHub watchers](https://img.shields.io/github/watchers/sirmalloc/ccstatusline?style=social)](https://github.com/sirmalloc/ccstatusline/watchers)
677
669
 
678
- [![npm version](https://img.shields.io/npm/v/ccstatusline-usage.svg)](https://www.npmjs.com/package/ccstatusline-usage)
679
- [![npm downloads](https://img.shields.io/npm/dm/ccstatusline-usage.svg)](https://www.npmjs.com/package/ccstatusline-usage)
680
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/pcvelz/ccstatusline-usage/blob/main/LICENSE)
670
+ [![npm version](https://img.shields.io/npm/v/ccstatusline.svg)](https://www.npmjs.com/package/ccstatusline)
671
+ [![npm downloads](https://img.shields.io/npm/dm/ccstatusline.svg)](https://www.npmjs.com/package/ccstatusline)
672
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/sirmalloc/ccstatusline/blob/main/LICENSE)
681
673
  [![Made with Bun](https://img.shields.io/badge/Made%20with-Bun-000000.svg?logo=bun)](https://bun.sh)
682
674
 
683
- [![Issues](https://img.shields.io/github/issues/pcvelz/ccstatusline-usage)](https://github.com/pcvelz/ccstatusline-usage/issues)
684
- [![Pull Requests](https://img.shields.io/github/issues-pr/pcvelz/ccstatusline-usage)](https://github.com/pcvelz/ccstatusline-usage/pulls)
685
- [![Contributors](https://img.shields.io/github/contributors/pcvelz/ccstatusline-usage)](https://github.com/pcvelz/ccstatusline-usage/graphs/contributors)
675
+ [![Issues](https://img.shields.io/github/issues/sirmalloc/ccstatusline)](https://github.com/sirmalloc/ccstatusline/issues)
676
+ [![Pull Requests](https://img.shields.io/github/issues-pr/sirmalloc/ccstatusline)](https://github.com/sirmalloc/ccstatusline/pulls)
677
+ [![Contributors](https://img.shields.io/github/contributors/sirmalloc/ccstatusline)](https://github.com/sirmalloc/ccstatusline/graphs/contributors)
686
678
 
687
679
  ### ๐Ÿ’ฌ Connect
688
680
 
689
- [Report Bug](https://github.com/pcvelz/ccstatusline-usage/issues) ยท [Request Feature](https://github.com/pcvelz/ccstatusline-usage/issues) ยท [Discussions](https://github.com/pcvelz/ccstatusline-usage/discussions)
681
+ [Report Bug](https://github.com/sirmalloc/ccstatusline/issues) ยท [Request Feature](https://github.com/sirmalloc/ccstatusline/issues) ยท [Discussions](https://github.com/sirmalloc/ccstatusline/discussions)
690
682
 
691
683
  </div>