ccusage 20.0.3 → 20.0.5
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 +6 -11
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -149,9 +149,9 @@ Full documentation is available at **[ccusage.com](https://ccusage.com/)**
|
|
|
149
149
|
## Development
|
|
150
150
|
|
|
151
151
|
<details>
|
|
152
|
-
<summary>
|
|
152
|
+
<summary>Contributor setup</summary>
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
Contributor setup requires the Nix flake development environment with [nix-direnv](https://github.com/nix-community/nix-direnv). Install [Nix](https://nixos.org/) with the `nix-command` and `flakes` experimental features enabled, then let nix-direnv load the dev shell automatically when you enter the directory:
|
|
155
155
|
|
|
156
156
|
```sh
|
|
157
157
|
# Clone the repository
|
|
@@ -162,13 +162,7 @@ cd ccusage
|
|
|
162
162
|
direnv allow
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
The dev shell provides the pinned `pnpm`, Rust toolchain, GitHub CLI, and project utilities from `flake.nix`. It also installs package dependencies from `pnpm-lock.yaml` when needed.
|
|
166
|
-
|
|
167
|
-
If you do not use direnv, enter the shell manually:
|
|
168
|
-
|
|
169
|
-
```sh
|
|
170
|
-
nix develop
|
|
171
|
-
```
|
|
165
|
+
The dev shell provides the pinned `pnpm`, Rust toolchain, GitHub CLI, git hooks, generated local agent skills, and project utilities from `flake.nix`. It also installs package dependencies from `pnpm-lock.yaml` when needed.
|
|
172
166
|
|
|
173
167
|
Run the usual checks from inside the Nix environment:
|
|
174
168
|
|
|
@@ -188,11 +182,12 @@ nix run github:ryoppippi/ccusage -- codex daily --offline
|
|
|
188
182
|
nix build github:ryoppippi/ccusage
|
|
189
183
|
```
|
|
190
184
|
|
|
191
|
-
Nix builds embed the LiteLLM pricing file from the locked `litellm` flake input, so sandboxed builds do not fetch pricing at build time. To update the locked pricing snapshot
|
|
185
|
+
Nix builds embed the LiteLLM pricing file from the locked `litellm` flake input, so sandboxed builds do not fetch pricing at build time. To update the locked pricing snapshot:
|
|
186
|
+
|
|
187
|
+
Non-Nix Cargo builds read the same locked LiteLLM revision from `flake.lock` and fetch the pricing file from that revision at build time.
|
|
192
188
|
|
|
193
189
|
```bash
|
|
194
190
|
nix flake update litellm
|
|
195
|
-
nix run .#update-pricing-fallback
|
|
196
191
|
nix flake check
|
|
197
192
|
```
|
|
198
193
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccusage",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.5",
|
|
4
4
|
"description": "Analyze coding (agent) CLI token usage and costs from local data",
|
|
5
5
|
"homepage": "https://github.com/ryoppippi/ccusage#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@ccusage/ccusage-darwin-arm64": "20.0.
|
|
27
|
-
"@ccusage/ccusage-darwin-x64": "20.0.
|
|
28
|
-
"@ccusage/ccusage-linux-
|
|
29
|
-
"@ccusage/ccusage-
|
|
30
|
-
"@ccusage/ccusage-win32-
|
|
31
|
-
"@ccusage/ccusage-
|
|
26
|
+
"@ccusage/ccusage-darwin-arm64": "20.0.5",
|
|
27
|
+
"@ccusage/ccusage-darwin-x64": "20.0.5",
|
|
28
|
+
"@ccusage/ccusage-linux-arm64": "20.0.5",
|
|
29
|
+
"@ccusage/ccusage-linux-x64": "20.0.5",
|
|
30
|
+
"@ccusage/ccusage-win32-arm64": "20.0.5",
|
|
31
|
+
"@ccusage/ccusage-win32-x64": "20.0.5"
|
|
32
32
|
}
|
|
33
33
|
}
|