@po.dev/pi-usage-dashboard 0.1.9 → 0.1.10
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/index.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1292,7 +1292,7 @@ function setUsageFooter(ctx: Pick<ExtensionCommandContext, "ui" | "model" | "thi
|
|
|
1292
1292
|
if (settings.showToday) {
|
|
1293
1293
|
bodyParts.push(theme.fg("accent", "(Today)") + " · " + theme.fg("accent", formatCost(totals.cost)) + " · " + theme.fg("text", `${formatTokens(totals.tokens.total)} tokens`) + " · " + theme.fg("success", `↑${formatTokens(totals.tokens.input + totals.tokens.cacheWrite)}`) + " · " + theme.fg("warning", `↓${formatTokens(totals.tokens.output)}`) + " · " + theme.fg("thinkingHigh", `${formatTokens(totals.tokens.cacheRead + totals.tokens.cacheWrite)} cache`));
|
|
1294
1294
|
}
|
|
1295
|
-
const usage =
|
|
1295
|
+
const usage = (bodyParts.length ? bodyParts.join(" ") : "") + contextStatus;
|
|
1296
1296
|
const model = theme.fg("accent", footerModelLabel(ctx));
|
|
1297
1297
|
const gap = width - visibleWidth(usage) - visibleWidth(model);
|
|
1298
1298
|
return [gap >= 2 ? usage + " ".repeat(gap) + model : truncateToWidth(usage, width)];
|