claude-quota-bar-linux-arm64 0.2.0 → 0.3.0
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.
- package/README.md +3 -2
- package/bin/claude-quota-bar +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Battery-style 5-hour / 7-day quota bars, context-window indicator, prompt-cache
|
|
|
5
5
|
state, and `dir:branch *N` — at ~2.5ms cold start and a 459KB binary.
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
5h[███42%░░░░]⏰26m | 7d[███35%░░░░]⏰8d3h | Opus 4.7(71.0k/200.0k) | proj:main *3
|
|
8
|
+
5h[███42%░░░░]⏰26m | 7d[███35%░░░░]⏰8d3h | Opus 4.7(71.0k/200.0k) | cache 4m12s | proj:main *3
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Why this and not the Python ones
|
|
@@ -51,7 +51,7 @@ Default layout: `5h,7d,model,cache,dir`.
|
|
|
51
51
|
| `5h` | `rate_limits.five_hour` | Battery bar with `%` inside, plus `⏰` countdown to reset |
|
|
52
52
|
| `7d` | `rate_limits.seven_day` | Same, weekly window |
|
|
53
53
|
| `model` | `model` + `context_window` | `Opus 4.7(71k/200k)` — model + ctx tokens used / window |
|
|
54
|
-
| `cache` | transcript scan |
|
|
54
|
+
| `cache` | transcript scan | Time left on the prompt cache (`4m12s`), or `COLD` once it has expired |
|
|
55
55
|
| `dir` | `workspace.current_dir` + git | `proj:main *3 ↑1 ↓2` — dir, branch, dirty count, ahead/behind |
|
|
56
56
|
|
|
57
57
|
When Anthropic hasn't yet shipped `rate_limits` (first few renders of a fresh
|
|
@@ -66,6 +66,7 @@ Configured via environment variables:
|
|
|
66
66
|
| Variable | Default | Meaning |
|
|
67
67
|
|----------|---------|---------|
|
|
68
68
|
| `STATUSLINE_LAYOUT` | `5h,7d,model,cache,dir` | Comma-separated segment names (order matters) |
|
|
69
|
+
| `STATUSLINE_CACHE_TTL` | `3600` | Prompt-cache lifetime in seconds. The default assumes the 1-hour extended cache that Claude.ai Pro/Max accounts get automatically; set `300` for the standard 5-minute cache. The active TTL isn't exposed to the statusline, so it can't be auto-detected. |
|
|
69
70
|
| `NO_COLOR` | unset | If set, strips all ANSI — falls back to `█`/`░` glyphs |
|
|
70
71
|
|
|
71
72
|
Severity thresholds (green / yellow / red) flip at 30% and 70% quota used.
|
package/bin/claude-quota-bar
CHANGED
|
Binary file
|
package/package.json
CHANGED