claude-quota-bar-linux-x64 0.3.0 → 0.3.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.
- package/README.md +9 -6
- package/bin/claude-quota-bar +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Fast Rust statusline for [Claude Code](https://github.com/anthropics/claude-code).
|
|
4
4
|
Battery-style 5-hour / 7-day quota bars, context-window indicator, prompt-cache
|
|
5
|
-
state, and `dir:branch *N` — at ~2.5ms cold start and a
|
|
5
|
+
state, and `dir:branch *N` — at ~2.5ms cold start and a ~0.5MB binary.
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
5h[███42%░░░░]⏰26m | 7d[███35%░░░░]⏰8d3h | Opus 4.7(71.0k/
|
|
8
|
+
5h[███42%░░░░]⏰26m | 7d[███35%░░░░]⏰8d3h | Opus 4.7(71.0k/1.0M) | cache 4m12s | proj:main *3
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Why this and not the Python ones
|
|
@@ -22,8 +22,8 @@ state, and `dir:branch *N` — at ~2.5ms cold start and a 459KB binary.
|
|
|
22
22
|
# npm (recommended — works on any platform with Node ≥ 16)
|
|
23
23
|
npm install -g claude-quota-bar
|
|
24
24
|
|
|
25
|
-
# cargo
|
|
26
|
-
cargo install
|
|
25
|
+
# cargo (compiles from source — npm ships a prebuilt binary, so it's faster)
|
|
26
|
+
cargo install claude-quota-bar
|
|
27
27
|
|
|
28
28
|
# pre-built binary (macOS arm64 example)
|
|
29
29
|
curl -L https://github.com/xrf9268-hue/claude-quota-bar/releases/latest/download/claude-quota-bar-aarch64-apple-darwin.tar.gz | tar xz
|
|
@@ -50,7 +50,7 @@ Default layout: `5h,7d,model,cache,dir`.
|
|
|
50
50
|
|---------|--------|---------------|
|
|
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
|
-
| `model` | `model` + `context_window` | `Opus 4.7(
|
|
53
|
+
| `model` | `model` + `context_window` | `Opus 4.7(71.0k/1.0M)` — model + ctx tokens used / window |
|
|
54
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
|
|
|
@@ -76,7 +76,7 @@ Severity thresholds (green / yellow / red) flip at 30% and 70% quota used.
|
|
|
76
76
|
Requires Rust ≥ 1.85 (Edition 2024).
|
|
77
77
|
|
|
78
78
|
```sh
|
|
79
|
-
cargo test
|
|
79
|
+
cargo test
|
|
80
80
|
cargo clippy --all-targets -- -D warnings
|
|
81
81
|
cargo fmt --all -- --check
|
|
82
82
|
|
|
@@ -90,6 +90,9 @@ cat <<EOF | cargo run --release
|
|
|
90
90
|
EOF
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
+
Releases are fully automated (release-plz Release PR → crates.io + npm + GitHub
|
|
94
|
+
Release via OIDC). See [docs/RELEASING.md](docs/RELEASING.md).
|
|
95
|
+
|
|
93
96
|
## License
|
|
94
97
|
|
|
95
98
|
MIT — see [LICENSE](./LICENSE).
|
package/bin/claude-quota-bar
CHANGED
|
Binary file
|
package/package.json
CHANGED