@babarot/c-c-statusline 0.1.0 → 0.2.1

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 (2) hide show
  1. package/README.md +10 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,7 +33,7 @@ deno run -A https://raw.githubusercontent.com/babarot/c-c-statusline/main/bin/in
33
33
  | `--path-style` | `parent`, `full`, `short`, `basename` | `parent` | Directory display style |
34
34
  | `--theme` | See [Themes](#themes) | `default` | Color theme |
35
35
  | `--time-style` | `absolute`, `relative` | `absolute` | Reset time format |
36
- | `--ctx-label` | `ctx`, `unicode`, `minimal` | `ctx` | Context window label |
36
+ | `--ctx-format` | Format string | `ctx {used}/{total} ({pct}%)` | Context display format |
37
37
 
38
38
  **Bar styles:**
39
39
 
@@ -59,13 +59,16 @@ deno run -A https://raw.githubusercontent.com/babarot/c-c-statusline/main/bin/in
59
59
  | `absolute` | `8:00pm`, `Mar 12, 2:00pm` |
60
60
  | `relative` | `1h 30m left`, `2d 5h left` |
61
61
 
62
- **Context window labels:**
62
+ **Context format** (`--ctx-format`):
63
63
 
64
- | Style | Example |
64
+ Use `{used}`, `{total}`, `{pct}` placeholders to build any format.
65
+
66
+ | Format string | Example |
65
67
  |---|---|
66
- | `ctx` | `ctx 32%` |
67
- | `unicode` | `◈ 32%` |
68
- | `minimal` | `32%` |
68
+ | `ctx {used}/{total} ({pct}%)` | `ctx 28k/200k (14%)` |
69
+ | `{pct}% ({used}/{total})` | `14% (28k/200k)` |
70
+ | `{pct}%` | `14%` |
71
+ | `{used} of {total}` | `28k of 200k` |
69
72
 
70
73
  ### Themes
71
74
 
@@ -89,7 +92,7 @@ Built-in color themes using 24-bit True Color (RGB). Each theme defines 8 semant
89
92
 
90
93
  ## What it shows
91
94
 
92
- **Line 1:** Model name, context usage %, directory, git status, session duration, effort level
95
+ **Line 1:** Model name, context usage (tokens + %), directory, git status, session duration, effort level
93
96
 
94
97
  **Lines 2+:** Rate limit usage (current 5-hour window, weekly, extra credits when active)
95
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babarot/c-c-statusline",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "A Deno-powered status line for Claude Code CLI showing model, context usage, rate limits, and more",
5
5
  "bin": {
6
6
  "c-c-statusline": "./bin/install.js"