gcusage 0.1.2 → 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/dist/core/aggregate.js +4 -0
- package/dist/index.js +0 -0
- package/package.json +6 -2
package/dist/core/aggregate.js
CHANGED
|
@@ -39,6 +39,10 @@ function buildSessionSummaries(points) {
|
|
|
39
39
|
for (const item of entry.lastByModelType.values()) {
|
|
40
40
|
addTypeValue(totals, item.type, item.value);
|
|
41
41
|
}
|
|
42
|
+
// input is inclusive of cache, so we subtract cache to get the net input
|
|
43
|
+
if (totals.input >= totals.cache) {
|
|
44
|
+
totals.input -= totals.cache;
|
|
45
|
+
}
|
|
42
46
|
summaries.push({
|
|
43
47
|
sessionId,
|
|
44
48
|
sessionStartMs: entry.sessionStartMs,
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gcusage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Gemini CLI usage statistics",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/black-lattice/gcusage.git"
|
|
8
|
+
},
|
|
5
9
|
"license": "MIT",
|
|
6
10
|
"type": "commonjs",
|
|
7
11
|
"bin": {
|
|
@@ -21,4 +25,4 @@
|
|
|
21
25
|
"@types/node": "^20.11.0",
|
|
22
26
|
"typescript": "^5.3.3"
|
|
23
27
|
}
|
|
24
|
-
}
|
|
28
|
+
}
|