llm-usage-metrics 0.1.3 → 0.1.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 +18 -0
- package/dist/index.js +450 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,24 @@ npx --yes llm-usage-metrics daily
|
|
|
25
25
|
|
|
26
26
|
(`npx llm-usage daily` works when the project is already installed locally.)
|
|
27
27
|
|
|
28
|
+
## Update checks
|
|
29
|
+
|
|
30
|
+
When installed globally, the CLI performs a lightweight npm update check on startup.
|
|
31
|
+
|
|
32
|
+
Behavior:
|
|
33
|
+
|
|
34
|
+
- uses a local cache (`~/.cache/llm-usage-metrics/update-check.json`) with TTL
|
|
35
|
+
- skips checks for `--help` / `--version` invocations
|
|
36
|
+
- skips checks when run through `npx`
|
|
37
|
+
- prompts for install + restart only in interactive TTY sessions
|
|
38
|
+
- prints a one-line notice in non-interactive sessions
|
|
39
|
+
|
|
40
|
+
To force-skip startup update checks:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
LLM_USAGE_SKIP_UPDATE_CHECK=1 llm-usage daily
|
|
44
|
+
```
|
|
45
|
+
|
|
28
46
|
## Usage
|
|
29
47
|
|
|
30
48
|
### Daily report (default terminal table)
|