ccstatusline-usage 2.3.12 → 2.3.13
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 +4 -0
- package/dist/ccstatusline.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,6 +67,10 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
|
|
|
67
67
|
|
|
68
68
|
## 🆕 Recent Updates
|
|
69
69
|
|
|
70
|
+
### [v2.3.13](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.13) - Fix timer color regression from v2.3.12
|
|
71
|
+
|
|
72
|
+
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Fix timer color** — In v2.3.12, the Reset Timer widget color setting was applied to both the `Extra: €X/€Y` output and the countdown timer (e.g. `4:28 hr`), causing the timer to appear red. The dark red is now applied inline only to the `Extra:` path; the countdown timer respects the widget's configured color as before.
|
|
73
|
+
|
|
70
74
|
### [v2.3.12](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.12) - Split bar for extra usage, stable effective-total, 100% clamp
|
|
71
75
|
|
|
72
76
|
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Split bar at 100%** — Session and Weekly usage bars switch to a split display when the limit is reached and extra usage is active: left half (full) shows the base usage, right half (dark red) shows how much of the extra budget has been spent.
|
package/dist/ccstatusline.js
CHANGED
|
@@ -55593,7 +55593,7 @@ function getTerminalWidth() {
|
|
|
55593
55593
|
function canDetectTerminalWidth() {
|
|
55594
55594
|
return probeTerminalWidth() !== null;
|
|
55595
55595
|
}
|
|
55596
|
-
var __dirname = "/Users/peter/Documents/Code/ccstatusline-usage/src/utils", PACKAGE_VERSION = "2.3.
|
|
55596
|
+
var __dirname = "/Users/peter/Documents/Code/ccstatusline-usage/src/utils", PACKAGE_VERSION = "2.3.13";
|
|
55597
55597
|
var init_terminal = () => {};
|
|
55598
55598
|
|
|
55599
55599
|
// src/utils/renderer.ts
|
|
@@ -63297,7 +63297,7 @@ class ResetTimerWidget {
|
|
|
63297
63297
|
const used = formatCents(data.extraUsageUsed);
|
|
63298
63298
|
const effectiveTotal = computeEffectiveTotal(data.extraUsageUsed, data.extraUsageLimit, settings.extraUsageBalance);
|
|
63299
63299
|
const limit = formatCents(effectiveTotal);
|
|
63300
|
-
return
|
|
63300
|
+
return `${DARK_RED_OPEN2}Extra: ${used}/${limit}${DARK_RED_CLOSE2}`;
|
|
63301
63301
|
}
|
|
63302
63302
|
if (!data.sessionResetAt)
|
|
63303
63303
|
return null;
|
|
@@ -63370,7 +63370,7 @@ class ContextBarWidget {
|
|
|
63370
63370
|
return true;
|
|
63371
63371
|
}
|
|
63372
63372
|
}
|
|
63373
|
-
var MOBILE_THRESHOLD = 134, MEDIUM_THRESHOLD2 = 178, MOBILE_BAR_WIDTH = 4, MEDIUM_BAR_WIDTH = 8, DEFAULT_BAR_WIDTH = 15;
|
|
63373
|
+
var DARK_RED_OPEN2 = "\x1B[38;2;204;0;0m", DARK_RED_CLOSE2 = "\x1B[39m", MOBILE_THRESHOLD = 134, MEDIUM_THRESHOLD2 = 178, MOBILE_BAR_WIDTH = 4, MEDIUM_BAR_WIDTH = 8, DEFAULT_BAR_WIDTH = 15;
|
|
63374
63374
|
var init_ApiUsage = __esm(() => {
|
|
63375
63375
|
init_usage();
|
|
63376
63376
|
});
|