gusage 1.0.1 → 1.0.4
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 +5 -5
- package/package.json +2 -3
- package/assets/demo.png +0 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A standalone, sub-second CLI to export and monitor Gemini CLI quota and usage statistics.
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="assets/demo.png" width="500" />
|
|
6
|
+
<img src="https://raw.githubusercontent.com/a-hariti/gusage/master/assets/demo.png" width="500" />
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
This tool reverse-engineers the internal API handshakes used by the main Gemini CLI to fetch usage statistics.
|
|
@@ -47,17 +47,17 @@ gusage --watch
|
|
|
47
47
|
gusage --watch 1m20s
|
|
48
48
|
|
|
49
49
|
# Output raw JSON for scripting
|
|
50
|
-
gusage
|
|
50
|
+
gusage --json | jq .
|
|
51
51
|
|
|
52
|
-
#
|
|
53
|
-
gusage --
|
|
52
|
+
# Stream JSON updates every 5 seconds (one line per tick)
|
|
53
|
+
gusage --json --watch 5s | jq .
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
## Options
|
|
57
57
|
|
|
58
58
|
- `-h, --help`: Show help message.
|
|
59
59
|
- `-w, --watch [interval]`: Update live every interval (default: 10s). Supports units like `20s`, `5m`, `1m20s`.
|
|
60
|
-
- `-
|
|
60
|
+
- `-j, --json`: Output raw JSON instead of a table. Can be combined with `--watch` for streaming data.
|
|
61
61
|
- `--no-color`: Disable color output (also respects `NO_COLOR` env var).
|
|
62
62
|
|
|
63
63
|
## Requirements
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gusage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A standalone CLI to export Gemini CLI quota and usage statistics",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/index.js",
|
|
12
12
|
"README.md",
|
|
13
|
-
"LICENSE"
|
|
14
|
-
"assets"
|
|
13
|
+
"LICENSE"
|
|
15
14
|
],
|
|
16
15
|
"author": "Abdellah Hariti <haritiabdellah@gmail.com>",
|
|
17
16
|
"license": "MIT",
|
package/assets/demo.png
DELETED
|
Binary file
|