@babarot/c-c-statusline 0.1.0 → 0.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/LICENSE +21 -0
  2. package/README.md +10 -7
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 babarot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.2",
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"