ccusage-tracker 0.1.2 → 0.1.3
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 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
CLI for [ccusage-tracker](https://github.com/ericcai0814/ccusage-tracker) — a self-hosted Claude Code usage tracker for teams.
|
|
4
4
|
|
|
5
|
-
Install Claude Code SessionStart/SessionEnd hooks that report token usage to a self-hosted tracker server. Runs on macOS, Linux, and Windows.
|
|
5
|
+
Install Claude Code SessionStart/SessionEnd/Stop hooks that report token usage to a self-hosted tracker server. Runs on macOS, Linux, and Windows.
|
|
6
6
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
@@ -24,12 +24,13 @@ After installation, the binary is also available as `tracker` (if installed glob
|
|
|
24
24
|
|
|
25
25
|
## What it does
|
|
26
26
|
|
|
27
|
-
`setup` writes a config file to `~/.config/ccusage-tracker/config.json` and adds
|
|
27
|
+
`setup` writes a config file to `~/.config/ccusage-tracker/config.json` and adds three hooks to your Claude Code `~/.claude/settings.json`:
|
|
28
28
|
|
|
29
29
|
- **SessionStart** — records the model at session start
|
|
30
|
-
- **
|
|
30
|
+
- **Stop** — primary reporting path: POSTs token usage + session metrics after each assistant turn, throttled to once per 5 minutes
|
|
31
|
+
- **SessionEnd** — backup path: same payload at session exit, in case Stop missed the last window
|
|
31
32
|
|
|
32
|
-
Hook scripts are downloaded from your tracker server, so they always match the server version.
|
|
33
|
+
Hook scripts are downloaded from your tracker server, so they always match the server version. Re-running `setup` migrates old (no `--mode`) commands in-place — no manual cleanup needed.
|
|
33
34
|
|
|
34
35
|
## Requirements
|
|
35
36
|
|
package/package.json
CHANGED