@glaicer/supercode-token-usage-panel 0.1.2 → 0.1.3
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/usage-model.js +1 -1
- package/package.json +1 -1
package/dist/usage-model.js
CHANGED
|
@@ -115,7 +115,7 @@ function buildUsageRows(totals, metrics) {
|
|
|
115
115
|
}];
|
|
116
116
|
}
|
|
117
117
|
function formatLiveSpeed(live) {
|
|
118
|
-
if (!live.hasTicked) return
|
|
118
|
+
if (!live.hasTicked) return `${USAGE_DASH}`;
|
|
119
119
|
const elapsed = (live.now - live.startedAt) / 1_000;
|
|
120
120
|
const value = live.displayedChars / live.charsPerToken / elapsed;
|
|
121
121
|
const rounded = Math.round(value);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@glaicer/supercode-token-usage-panel",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "OpenCode TUI sidebar section: cumulative token usage and cost of the current session family.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|