ccstatusline 2.2.0 → 2.2.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 +43 -32
  2. package/dist/ccstatusline.js +55038 -52614
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -46,12 +46,14 @@
46
46
 
47
47
  ## 🆕 Recent Updates
48
48
 
49
- ### v2.2.0 - New Token Speed widgets with optional windows
49
+ ### v2.2.0 - v2.2.2 - Token Speed + Skills widget updates
50
50
 
51
51
  - **🚀 New Token Speed widgets** - Added three widgets: **Input Speed**, **Output Speed**, and **Total Speed**.
52
52
  - Each speed widget supports a configurable window of `0-120` seconds in the widget editor (`w` key).
53
53
  - `0` disables window mode and uses a full-session average speed.
54
54
  - `1-120` calculates recent speed over the selected rolling window.
55
+ - **🧩 New Skills widget controls (v2.2.1)** - Added configurable Skills modes (last/count/list), optional hide-when-empty behavior, and list-size limiting with most-recent-first ordering.
56
+ - **🌐 Usage API proxy support (v2.2.2)** - Usage widgets honor the uppercase `HTTPS_PROXY` environment variable for their direct API call to Anthropic.
55
57
  - **🤝 Better subagent-aware speed reporting** - Token speed calculations continue to include referenced subagent activity so displayed speeds better reflect actual concurrent work.
56
58
 
57
59
  ### v2.1.0 - v2.1.10 - Usage widgets, links, new git insertions / deletions widgets, and reliability fixes
@@ -202,6 +204,8 @@ The interactive configuration tool provides a terminal UI where you can:
202
204
  > $env:CLAUDE_CONFIG_DIR="C:\custom\path\.claude"
203
205
  > ```
204
206
 
207
+ > 🌐 **Usage API proxy:** Usage widgets honor the uppercase `HTTPS_PROXY` environment variable for their direct API call to Anthropic.
208
+
205
209
  ### Claude Code settings.json format
206
210
 
207
211
  When you install from the TUI, ccstatusline writes a `statusLine` command object to your Claude Code settings:
@@ -424,39 +428,43 @@ bun run example
424
428
 
425
429
  ### 📊 Available Widgets
426
430
 
427
- - **Model Name** - Shows the current Claude model (e.g., "Claude 3.5 Sonnet")
428
- - **Git Branch** - Displays current git branch name
429
- - **Git Changes** - Shows uncommitted insertions/deletions (e.g., "+42,-10")
430
- - **Git Insertions** - Shows uncommitted insertions only (e.g., "+42")
431
- - **Git Deletions** - Shows uncommitted deletions only (e.g., "-10")
431
+ - **Model** - Displays the Claude model name (e.g., "Claude 3.5 Sonnet")
432
+ - **Output Style** - Shows the current Claude Code output style
433
+ - **Git Branch** - Shows the current git branch name
434
+ - **Git Changes** - Shows git changes count (`+insertions`, `-deletions`)
435
+ - **Git Insertions** - Shows git insertions count
436
+ - **Git Deletions** - Shows git deletions count
432
437
  - **Git Root Dir** - Shows the git repository root directory name
433
- - **Git Worktree** - Shows the name of the current git worktree
434
- - **Session Clock** - Shows elapsed time since session start (e.g., "2hr 15m")
435
- - **Session Usage** - Shows current 5-hour/session API usage percentage
436
- - **Weekly Usage** - Shows rolling 7-day API usage percentage
437
- - **Session Cost** - Shows total session cost in USD (e.g., "$1.23")
438
- - **Session Name** - Shows the session name set via `/rename` command in Claude Code
438
+ - **Git Worktree** - Shows the current git worktree name
439
+ - **Current Working Dir** - Shows current working directory with segment limit, fish-style abbreviation, and optional `~` home abbreviation
440
+ - **Tokens Input** - Shows input token count for the current session
441
+ - **Tokens Output** - Shows output token count for the current session
442
+ - **Tokens Cached** - Shows cached token count for the current session
443
+ - **Tokens Total** - Shows total token count (`input + output + cache`) for the current session
444
+ - **Input Speed** - Shows session-average input token speed (`tokens/sec`) with optional per-widget window (`0-120` seconds; `0` = full-session average)
445
+ - **Output Speed** - Shows session-average output token speed (`tokens/sec`) with optional per-widget window (`0-120` seconds; `0` = full-session average)
446
+ - **Total Speed** - Shows session-average total token speed (`tokens/sec`) with optional per-widget window (`0-120` seconds; `0` = full-session average)
447
+ - **Context Length** - Shows the current context window size in tokens
448
+ - **Context %** - Shows percentage of context window used or remaining
449
+ - **Context % (usable)** - Shows percentage of usable context used or remaining (80% of max before auto-compact)
450
+ - **Session Clock** - Shows elapsed time since current session started
451
+ - **Session Cost** - Shows the total session cost in USD
452
+ - **Block Timer** - Shows current 5-hour block elapsed time or progress
453
+ - **Terminal Width** - Shows current terminal width in columns
454
+ - **Version** - Shows Claude Code CLI version number
455
+ - **Custom Text** - Displays user-defined custom text
456
+ - **Custom Command** - Executes a custom shell command and displays output (refreshes whenever Claude Code updates the status line)
457
+ - **Link** - Displays a clickable terminal hyperlink using OSC 8
439
458
  - **Claude Session ID** - Shows the current Claude Code session ID from status JSON
440
- - **Block Timer** - Shows time elapsed in current 5-hour block or progress bar
441
- - **Block Reset Timer** - Shows time remaining until the current 5-hour block resets
442
- - **Weekly Reset Timer** - Shows time remaining until the weekly usage window resets
443
- - **Current Working Directory** - Shows current working directory with segment limit, fish-style abbreviation, and optional `~` home abbreviation
444
- - **Version** - Shows Claude Code version
445
- - **Output Style** - Shows the currently set output style in Claude Code
446
- - **Tokens Input** - Shows input tokens used
447
- - **Tokens Output** - Shows output tokens used
448
- - **Tokens Cached** - Shows cached tokens used
449
- - **Tokens Total** - Shows total tokens used
450
- - **Context Length** - Shows current context length in tokens
451
- - **Context Percentage** - Shows percentage of context limit used (dynamic: 1M for model IDs with long-context labels like `[1m]` or `1M context`, 200k otherwise)
452
- - **Context Percentage (usable)** - Shows percentage of usable context (dynamic: 800k for model IDs with long-context labels like `[1m]` or `1M context`, 160k otherwise, accounting for auto-compact at 80%)
459
+ - **Session Name** - Shows the session name set via `/rename` in Claude Code
460
+ - **Memory Usage** - Shows system memory usage (used/total)
461
+ - **Session Usage** - Shows daily/session API usage percentage
462
+ - **Weekly Usage** - Shows weekly API usage percentage
463
+ - **Block Reset Timer** - Shows time remaining until current 5-hour block reset window
464
+ - **Weekly Reset Timer** - Shows time remaining until weekly usage reset
453
465
  - **Context Bar** - Shows context usage as a progress bar with short/full display modes
454
- - **Terminal Width** - Shows detected terminal width (for debugging)
455
- - **Memory Usage** - Shows system memory usage (used/total, e.g., "Mem: 12.4G/16.0G")
456
- - **Custom Text** - Add your own custom text to the status line
457
- - **Custom Command** - Execute shell commands and display their output (refreshes whenever the statusline is updated by Claude Code)
458
- - **Link** - Add clickable terminal hyperlinks (OSC 8) with configurable URL and display text
459
- - **Separator** - Visual divider between widgets (customizable: |, -, comma, space; available when Powerline mode is off and no default separator is configured)
466
+ - **Skills** - Shows skill activity as last used, total count, or unique list (with optional list limit and hide-when-empty toggle)
467
+ - **Separator** - Visual divider between widgets (available when Powerline mode is off and no default separator is configured)
460
468
  - **Flex Separator** - Expands to fill available space (available when Powerline mode is off)
461
469
 
462
470
  ---
@@ -668,9 +676,12 @@ bun run example
668
676
  # Run tests
669
677
  bun test
670
678
 
671
- # Run typecheck + eslint autofix
679
+ # Run typecheck + eslint checks without modifying files
672
680
  bun run lint
673
681
 
682
+ # Apply ESLint auto-fixes intentionally
683
+ bun run lint:fix
684
+
674
685
  # Build for distribution
675
686
  bun run build
676
687