ccusage 20.0.9 → 20.0.11
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 +22 -16
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="https://cdn.jsdelivr.net/gh/
|
|
2
|
+
<img src="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/logo.svg" alt="ccusage logo" width="256" height="256">
|
|
3
3
|
<h1>ccusage</h1>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
<a href="https://socket.dev/npm/package/ccusage"><img src="https://socket.dev/api/badge/npm/package/ccusage" alt="Socket Badge" /></a>
|
|
8
8
|
<a href="https://npmjs.com/package/ccusage"><img src="https://img.shields.io/npm/v/ccusage?color=yellow" alt="npm version" /></a>
|
|
9
9
|
<a href="https://tanstack.com/stats/npm?packageGroups=%5B%7B%22packages%22:%5B%7B%22name%22:%22ccusage%22%7D%5D%7D%5D&range=30-days&transform=none&binType=daily&showDataMode=all&height=400"><img src="https://img.shields.io/npm/dt/ccusage" alt="NPM Downloads" /></a>
|
|
10
|
-
<a href="https://deepwiki.com/
|
|
10
|
+
<a href="https://deepwiki.com/ccusage/ccusage"><img src="https://img.shields.io/badge/DeepWiki-ccusage%2Fccusage-blue.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK/AIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06/uv1saEDv4O3n3dV60RfP947Mm9/SQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH//PB8mnKqScAhsD0kYP3j/Yt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY/56ebRWeraTjMt/00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB/imwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h/U4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5/XFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb/vA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26/HfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr/FGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r/cKaoqr+27/XcrS5UwSMbQAAAABJRU5ErkJggg==" alt="DeepWiki"></a>
|
|
11
11
|
<!-- DeepWiki badge generated by https://deepwiki.ryoppippi.com/ -->
|
|
12
12
|
<a href="https://github.com/hesreallyhim/awesome-claude-code"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Claude Code" /></a>
|
|
13
13
|
<a href="https://技術者倫理.com"><img src="https://img.shields.io/badge/%E6%8A%80%E8%A1%93%E8%80%85%E5%80%AB%E7%90%86-%E9%81%B5%E5%AE%88%E6%B8%88%E3%81%BF-0a0a0a?style=for-the-badge&labelColor=ffffff" alt="技術者倫理 遵守済み" /></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<a href="https://trendshift.io/repositories/18533" target="_blank"><img src="https://trendshift.io/api/badge/repositories/18533" alt="
|
|
17
|
+
<a href="https://trendshift.io/repositories/18533" target="_blank"><img src="https://trendshift.io/api/badge/repositories/18533" alt="ccusage%2Fccusage | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
<div align="center">
|
|
21
|
-
<img src="https://cdn.jsdelivr.net/gh/
|
|
21
|
+
<img src="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/screenshot.png" alt="ccusage terminal report screenshot">
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
> Analyze coding (agent) CLI token usage and costs from local data.
|
|
@@ -58,7 +58,7 @@ You can run ccusage directly without a global installation:
|
|
|
58
58
|
bunx ccusage
|
|
59
59
|
|
|
60
60
|
# Nix
|
|
61
|
-
nix run github:
|
|
61
|
+
nix run github:ccusage/ccusage -- daily
|
|
62
62
|
|
|
63
63
|
# Alternative package runners
|
|
64
64
|
pnpm dlx ccusage
|
|
@@ -66,7 +66,7 @@ pnpx ccusage
|
|
|
66
66
|
npx ccusage@latest
|
|
67
67
|
|
|
68
68
|
# PR preview builds
|
|
69
|
-
bunx -p https://pkg.pr.new/
|
|
69
|
+
bunx -p https://pkg.pr.new/ccusage/ccusage@<pr-number> ccusage --offline
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
> [bunx](https://bun.com/docs/pm/bunx) caches the downloaded package, so repeated runs are faster after the first launch.
|
|
@@ -159,7 +159,7 @@ Contributor setup uses the Nix flake development environment with [nix-direnv](h
|
|
|
159
159
|
|
|
160
160
|
```sh
|
|
161
161
|
# Clone the repository
|
|
162
|
-
git clone https://github.com/
|
|
162
|
+
git clone https://github.com/ccusage/ccusage.git
|
|
163
163
|
cd ccusage
|
|
164
164
|
|
|
165
165
|
# Allow direnv to load the Nix dev shell
|
|
@@ -181,9 +181,9 @@ just check
|
|
|
181
181
|
The flake exposes `ccusage` as the default package and app:
|
|
182
182
|
|
|
183
183
|
```sh
|
|
184
|
-
nix run github:
|
|
185
|
-
nix run github:
|
|
186
|
-
nix build github:
|
|
184
|
+
nix run github:ccusage/ccusage
|
|
185
|
+
nix run github:ccusage/ccusage -- codex daily --offline
|
|
186
|
+
nix build github:ccusage/ccusage
|
|
187
187
|
```
|
|
188
188
|
|
|
189
189
|
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:
|
|
@@ -207,12 +207,18 @@ The scheduled `update pricing` workflow runs the same update and validation, the
|
|
|
207
207
|
<p align="center">
|
|
208
208
|
<a href="https://coderabbit.link/ryoppippi">
|
|
209
209
|
<picture>
|
|
210
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/
|
|
211
|
-
<img src="https://cdn.jsdelivr.net/gh/
|
|
210
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/coderabbit-logo-dark.svg">
|
|
211
|
+
<img src="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/coderabbit-logo.svg" alt="CodeRabbit" width="320">
|
|
212
212
|
</picture>
|
|
213
213
|
</a>
|
|
214
214
|
</p>
|
|
215
215
|
|
|
216
|
+
<p align="center">
|
|
217
|
+
<a href="https://blacksmith.sh">
|
|
218
|
+
<img src="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/blacksmith.png" alt="Blacksmith" width="320">
|
|
219
|
+
</a>
|
|
220
|
+
</p>
|
|
221
|
+
|
|
216
222
|
<p align="center">
|
|
217
223
|
<a href="https://github.com/sponsors/ryoppippi">
|
|
218
224
|
<img src="https://sponsors.ryoppippi.com/sponsors.png" alt="Sponsors">
|
|
@@ -221,11 +227,11 @@ The scheduled `update pricing` workflow runs the same update and validation, the
|
|
|
221
227
|
|
|
222
228
|
## Star History
|
|
223
229
|
|
|
224
|
-
<a href="https://www.star-history.com/#
|
|
230
|
+
<a href="https://www.star-history.com/#ccusage/ccusage&Date">
|
|
225
231
|
<picture>
|
|
226
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=
|
|
227
|
-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=
|
|
228
|
-
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=
|
|
232
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date&theme=dark" />
|
|
233
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date" />
|
|
234
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date" />
|
|
229
235
|
</picture>
|
|
230
236
|
</a>
|
|
231
237
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccusage",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.11",
|
|
4
4
|
"description": "Analyze coding (agent) CLI token usage and costs from local data",
|
|
5
|
-
"homepage": "https://github.com/
|
|
5
|
+
"homepage": "https://github.com/ccusage/ccusage#readme",
|
|
6
6
|
"bugs": {
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/ccusage/ccusage/issues"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"author": "ryoppippi",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/
|
|
13
|
+
"url": "git+https://github.com/ccusage/ccusage.git",
|
|
14
14
|
"directory": "apps/ccusage"
|
|
15
15
|
},
|
|
16
|
-
"funding": "https://github.com/ryoppippi
|
|
16
|
+
"funding": "https://github.com/sponsors/ryoppippi",
|
|
17
17
|
"bin": {
|
|
18
18
|
"ccusage": "./dist/cli.js"
|
|
19
19
|
},
|
|
@@ -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-x64": "20.0.
|
|
29
|
-
"@ccusage/ccusage-
|
|
30
|
-
"@ccusage/ccusage-win32-
|
|
31
|
-
"@ccusage/ccusage-
|
|
26
|
+
"@ccusage/ccusage-darwin-arm64": "20.0.11",
|
|
27
|
+
"@ccusage/ccusage-darwin-x64": "20.0.11",
|
|
28
|
+
"@ccusage/ccusage-linux-x64": "20.0.11",
|
|
29
|
+
"@ccusage/ccusage-win32-arm64": "20.0.11",
|
|
30
|
+
"@ccusage/ccusage-win32-x64": "20.0.11",
|
|
31
|
+
"@ccusage/ccusage-linux-arm64": "20.0.11"
|
|
32
32
|
}
|
|
33
33
|
}
|