ccstatusline-usage 2.3.5 → 2.3.6
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 +2 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,6 +66,10 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
|
|
|
66
66
|
|
|
67
67
|
## 🆕 Recent Updates
|
|
68
68
|
|
|
69
|
+
### [v2.3.6](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.6) - Remove expired 2x promo code
|
|
70
|
+
|
|
71
|
+
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Off-Peak cleanup** — Removed expired March 2026 promo (2x) code path, leaving only the permanent peak/off-peak indicator
|
|
72
|
+
|
|
69
73
|
### [v2.3.5](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.5) - Upstream sync + permanent peak/off-peak widget
|
|
70
74
|
|
|
71
75
|
- [sirmalloc/ccstatusline](https://github.com/sirmalloc/ccstatusline): **Major upstream sync** — 180 commits merged, including Weekly Reset Timer widget, new test infrastructure, Windows support, and various improvements
|
package/dist/ccstatusline.js
CHANGED
|
@@ -54072,7 +54072,7 @@ function getTerminalWidth() {
|
|
|
54072
54072
|
function canDetectTerminalWidth() {
|
|
54073
54073
|
return probeTerminalWidth() !== null;
|
|
54074
54074
|
}
|
|
54075
|
-
var __dirname = "/Users/peter/Documents/Code/ccstatusline-usage/src/utils", PACKAGE_VERSION = "2.3.
|
|
54075
|
+
var __dirname = "/Users/peter/Documents/Code/ccstatusline-usage/src/utils", PACKAGE_VERSION = "2.3.6";
|
|
54076
54076
|
var init_terminal = () => {};
|
|
54077
54077
|
|
|
54078
54078
|
// src/utils/renderer.ts
|
|
@@ -62732,10 +62732,6 @@ function isPeakHour(now2) {
|
|
|
62732
62732
|
const utcHour = now2.getUTCHours();
|
|
62733
62733
|
return utcHour >= PEAK_START_UTC_HOUR && utcHour < PEAK_END_UTC_HOUR;
|
|
62734
62734
|
}
|
|
62735
|
-
function isPromoActive(now2) {
|
|
62736
|
-
const ms = now2.getTime();
|
|
62737
|
-
return ms >= PROMO_START_MS && ms < PROMO_END_MS;
|
|
62738
|
-
}
|
|
62739
62735
|
function isOffPeak(now2) {
|
|
62740
62736
|
if (isWeekend(now2))
|
|
62741
62737
|
return true;
|
|
@@ -62794,12 +62790,6 @@ class OffPeakWidget {
|
|
|
62794
62790
|
const mins = minutesUntilFlip(now2);
|
|
62795
62791
|
const countdown = ` (${formatCountdown(mins)} hr)`;
|
|
62796
62792
|
const mobile = (context.terminalWidth ?? 0) > 0 && (context.terminalWidth ?? 0) < 80;
|
|
62797
|
-
if (isPromoActive(now2)) {
|
|
62798
|
-
if (offPeak) {
|
|
62799
|
-
return mobile ? `2x${countdown}` : `Off-peak 2x${countdown}`;
|
|
62800
|
-
}
|
|
62801
|
-
return `Peak${countdown}`;
|
|
62802
|
-
}
|
|
62803
62793
|
if (offPeak) {
|
|
62804
62794
|
return mobile ? `OffPk${countdown}` : `Off-peak${countdown}`;
|
|
62805
62795
|
}
|
|
@@ -62812,11 +62802,7 @@ class OffPeakWidget {
|
|
|
62812
62802
|
return true;
|
|
62813
62803
|
}
|
|
62814
62804
|
}
|
|
62815
|
-
var
|
|
62816
|
-
var init_OffPeak = __esm(() => {
|
|
62817
|
-
PROMO_START_MS = Date.UTC(2026, 2, 13, 7, 0, 0);
|
|
62818
|
-
PROMO_END_MS = Date.UTC(2026, 2, 29, 6, 59, 0);
|
|
62819
|
-
});
|
|
62805
|
+
var PEAK_START_UTC_HOUR = 12, PEAK_END_UTC_HOUR = 18;
|
|
62820
62806
|
|
|
62821
62807
|
// src/widgets/index.ts
|
|
62822
62808
|
var init_widgets = __esm(async () => {
|
|
@@ -62838,7 +62824,6 @@ var init_widgets = __esm(async () => {
|
|
|
62838
62824
|
init_Battery();
|
|
62839
62825
|
init_VimMode();
|
|
62840
62826
|
init_WeeklyPace();
|
|
62841
|
-
init_OffPeak();
|
|
62842
62827
|
await __promiseAll([
|
|
62843
62828
|
init_TokensInput(),
|
|
62844
62829
|
init_TokensOutput(),
|