@unravel-tech/ccusage 18.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/LICENSE +21 -0
- package/README.md +187 -0
- package/config-schema.json +708 -0
- package/dist/_types-BFL_bTNX.js +588 -0
- package/dist/calculate-cost-CKH-OC_c.js +23 -0
- package/dist/calculate-cost.d.ts +74 -0
- package/dist/calculate-cost.js +3 -0
- package/dist/data-loader-BOH2QCE7.d.ts +2318 -0
- package/dist/data-loader-Bc5I0krC.js +5978 -0
- package/dist/data-loader.d.ts +2 -0
- package/dist/data-loader.js +4 -0
- package/dist/debug-CNNEJR7-.js +148 -0
- package/dist/debug.d.ts +64 -0
- package/dist/debug.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3651 -0
- package/dist/logger-CvT2vpg9.js +873 -0
- package/dist/logger.d.ts +25 -0
- package/dist/logger.js +2 -0
- package/dist/prompt-XEKR514o.js +843 -0
- package/package.json +53 -0
- package/src/index.ts +16 -0
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unravel-tech/ccusage",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "18.0.5",
|
|
5
|
+
"description": "Usage analysis tool for Claude Code",
|
|
6
|
+
"author": "ryoppippi",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"funding": "https://github.com/ryoppippi/ccusage?sponsor=1",
|
|
9
|
+
"homepage": "https://github.com/ryoppippi/ccusage#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/ryoppippi/ccusage.git",
|
|
13
|
+
"directory": "apps/ccusage"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/ryoppippi/ccusage/issues"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./src/index.ts",
|
|
20
|
+
"./calculate-cost": "./src/calculate-cost.ts",
|
|
21
|
+
"./data-loader": "./src/data-loader.ts",
|
|
22
|
+
"./debug": "./src/debug.ts",
|
|
23
|
+
"./logger": "./src/logger.ts",
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"module": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"bin": {
|
|
30
|
+
"ccusage": "./src/index.ts"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"config-schema.json",
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"bin": {
|
|
38
|
+
"ccusage": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"access": "public",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": "./dist/index.js",
|
|
43
|
+
"./calculate-cost": "./dist/calculate-cost.js",
|
|
44
|
+
"./data-loader": "./dist/data-loader.js",
|
|
45
|
+
"./debug": "./dist/debug.js",
|
|
46
|
+
"./logger": "./dist/logger.js",
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=20.19.4"
|
|
52
|
+
}
|
|
53
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview Main entry point for ccusage CLI tool
|
|
5
|
+
*
|
|
6
|
+
* This is the main entry point for the ccusage command-line interface tool.
|
|
7
|
+
* It provides analysis of Claude Code usage data from local JSONL files.
|
|
8
|
+
*
|
|
9
|
+
* @module index
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* eslint-disable antfu/no-top-level-await */
|
|
13
|
+
|
|
14
|
+
import { run } from './commands/index.ts';
|
|
15
|
+
|
|
16
|
+
await run();
|