claude-quota-bar 0.3.1 → 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 +7 -4
- package/package.json +8 -8
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
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-quota-bar",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Fast Rust statusline for Claude Code — battery-bar 5h/7d quota, ctx, cache age, git",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"node": ">=16"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"claude-quota-bar-darwin-arm64": "0.3.
|
|
33
|
-
"claude-quota-bar-darwin-x64": "0.3.
|
|
34
|
-
"claude-quota-bar-linux-x64": "0.3.
|
|
35
|
-
"claude-quota-bar-linux-x64-musl": "0.3.
|
|
36
|
-
"claude-quota-bar-linux-arm64": "0.3.
|
|
37
|
-
"claude-quota-bar-linux-arm64-musl": "0.3.
|
|
38
|
-
"claude-quota-bar-win32-x64": "0.3.
|
|
32
|
+
"claude-quota-bar-darwin-arm64": "0.3.2",
|
|
33
|
+
"claude-quota-bar-darwin-x64": "0.3.2",
|
|
34
|
+
"claude-quota-bar-linux-x64": "0.3.2",
|
|
35
|
+
"claude-quota-bar-linux-x64-musl": "0.3.2",
|
|
36
|
+
"claude-quota-bar-linux-arm64": "0.3.2",
|
|
37
|
+
"claude-quota-bar-linux-arm64-musl": "0.3.2",
|
|
38
|
+
"claude-quota-bar-win32-x64": "0.3.2"
|
|
39
39
|
}
|
|
40
40
|
}
|