tledger 0.1.3 → 0.2.0
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 +121 -67
- package/bin/token-ledger-rates.mjs +62 -0
- package/bin/token-ledger-terminal.mjs +97 -154
- package/bin/token-ledger-trend-image.mjs +945 -0
- package/bin/token-ledger-trend-terminal.mjs +609 -0
- package/bin/token-ledger-trend.mjs +745 -0
- package/bin/token-ledger-tui.mjs +15 -21
- package/bin/token-ledger.mjs +390 -102
- package/lib/{token-ledger-collector.mjs → token-ledger-importer.mjs} +244 -407
- package/package.json +17 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tledger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A local-only terminal dashboard for Codex token usage",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -19,13 +19,15 @@
|
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "git+https://github.com/jskoiz/token-ledger.git"
|
|
21
21
|
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
22
25
|
"engines": {
|
|
23
26
|
"node": ">=22.13.0"
|
|
24
27
|
},
|
|
25
28
|
"files": [
|
|
26
|
-
"bin
|
|
27
|
-
"lib
|
|
28
|
-
"LICENSE",
|
|
29
|
+
"bin",
|
|
30
|
+
"lib",
|
|
29
31
|
"README.md"
|
|
30
32
|
],
|
|
31
33
|
"bin": {
|
|
@@ -33,13 +35,18 @@
|
|
|
33
35
|
},
|
|
34
36
|
"scripts": {
|
|
35
37
|
"test": "node --test tests/*.test.mjs",
|
|
36
|
-
"test
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"cli:test": "node --test tests/token-ledger-cli.test.mjs",
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"usage:snapshot": "node lib/token-ledger-importer.mjs --output outputs/token-ledger-snapshot.json",
|
|
41
|
+
"usage:day": "node bin/token-ledger.mjs day",
|
|
42
|
+
"usage:week": "node bin/token-ledger.mjs week",
|
|
39
43
|
"prepublishOnly": "npm test"
|
|
40
44
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"eslint": "9.39.4"
|
|
43
47
|
},
|
|
44
|
-
"type": "module"
|
|
48
|
+
"type": "module",
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"sharp": "^0.35.3"
|
|
51
|
+
}
|
|
45
52
|
}
|