ccstatusline-usage 2.3.5 → 2.3.7
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 +10 -2
- package/dist/ccstatusline.js +5 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,8 +40,8 @@ This fork adds API-based usage widgets beyond the upstream:
|
|
|
40
40
|
### Enhanced Status Line Preview
|
|
41
41
|
|
|
42
42
|
```
|
|
43
|
-
Session: [████░░░░░░░░░░░] 27.0% | Weekly: [
|
|
44
|
-
Context: [
|
|
43
|
+
Session: [████░░░░░░░░░░░] 27.0% | Weekly: [████░░░░░░░░░░░] 34.0% | 2:03 hr | Model: Opus 4.6 | Session ID: 0109b99d...
|
|
44
|
+
Context: [██████░░░░░░░░░] 389k/1M (39%) | Pace: [░░░░░░█|░░░░░░░] D4/7 -8% | Off-peak (4:03 hr)
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|

|
|
@@ -66,6 +66,14 @@ Session: [████░░░░░░░░░░░] 27.0% | Weekly: [██
|
|
|
66
66
|
|
|
67
67
|
## 🆕 Recent Updates
|
|
68
68
|
|
|
69
|
+
### [v2.3.7](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.7) - Weekly Pace as default layout
|
|
70
|
+
|
|
71
|
+
- [pcvelz/ccstatusline-usage](https://github.com/pcvelz/ccstatusline-usage): **Default layout update** — Weekly Pace widget (pendulum mode) is now included in the default status line layout on line 2, between the context bar and off-peak indicator. Model widget color changed to magenta.
|
|
72
|
+
|
|
73
|
+
### [v2.3.6](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.6) - Remove expired 2x promo code
|
|
74
|
+
|
|
75
|
+
- [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
|
|
76
|
+
|
|
69
77
|
### [v2.3.5](https://github.com/pcvelz/ccstatusline-usage/releases/tag/v2.3.5) - Upstream sync + permanent peak/off-peak widget
|
|
70
78
|
|
|
71
79
|
- [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
|
@@ -52423,12 +52423,14 @@ var init_Settings = __esm(() => {
|
|
|
52423
52423
|
{ id: "sep-battery", type: "separator" },
|
|
52424
52424
|
{ id: "battery", type: "battery", color: "yellow" },
|
|
52425
52425
|
{ id: "sep3", type: "separator" },
|
|
52426
|
-
{ id: "model", type: "model", color: "
|
|
52426
|
+
{ id: "model", type: "model", color: "magenta" },
|
|
52427
52427
|
{ id: "sep4", type: "separator" },
|
|
52428
52428
|
{ id: "session-id", type: "claude-session-id", color: "cyan" }
|
|
52429
52429
|
],
|
|
52430
52430
|
[
|
|
52431
52431
|
{ id: "context-bar", type: "context-bar", color: "blue" },
|
|
52432
|
+
{ id: "sep-weekly-pace", type: "separator" },
|
|
52433
|
+
{ id: "weekly-pace", type: "weekly-pace", color: "brightBlue", metadata: { display: "pendulum" } },
|
|
52432
52434
|
{ id: "sep-off-peak", type: "separator" },
|
|
52433
52435
|
{ id: "off-peak", type: "off-peak", color: "green" }
|
|
52434
52436
|
],
|
|
@@ -54072,7 +54074,7 @@ function getTerminalWidth() {
|
|
|
54072
54074
|
function canDetectTerminalWidth() {
|
|
54073
54075
|
return probeTerminalWidth() !== null;
|
|
54074
54076
|
}
|
|
54075
|
-
var __dirname = "/Users/peter/Documents/Code/ccstatusline-usage/src/utils", PACKAGE_VERSION = "2.3.
|
|
54077
|
+
var __dirname = "/Users/peter/Documents/Code/ccstatusline-usage/src/utils", PACKAGE_VERSION = "2.3.7";
|
|
54076
54078
|
var init_terminal = () => {};
|
|
54077
54079
|
|
|
54078
54080
|
// src/utils/renderer.ts
|
|
@@ -62732,10 +62734,6 @@ function isPeakHour(now2) {
|
|
|
62732
62734
|
const utcHour = now2.getUTCHours();
|
|
62733
62735
|
return utcHour >= PEAK_START_UTC_HOUR && utcHour < PEAK_END_UTC_HOUR;
|
|
62734
62736
|
}
|
|
62735
|
-
function isPromoActive(now2) {
|
|
62736
|
-
const ms = now2.getTime();
|
|
62737
|
-
return ms >= PROMO_START_MS && ms < PROMO_END_MS;
|
|
62738
|
-
}
|
|
62739
62737
|
function isOffPeak(now2) {
|
|
62740
62738
|
if (isWeekend(now2))
|
|
62741
62739
|
return true;
|
|
@@ -62794,12 +62792,6 @@ class OffPeakWidget {
|
|
|
62794
62792
|
const mins = minutesUntilFlip(now2);
|
|
62795
62793
|
const countdown = ` (${formatCountdown(mins)} hr)`;
|
|
62796
62794
|
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
62795
|
if (offPeak) {
|
|
62804
62796
|
return mobile ? `OffPk${countdown}` : `Off-peak${countdown}`;
|
|
62805
62797
|
}
|
|
@@ -62812,11 +62804,7 @@ class OffPeakWidget {
|
|
|
62812
62804
|
return true;
|
|
62813
62805
|
}
|
|
62814
62806
|
}
|
|
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
|
-
});
|
|
62807
|
+
var PEAK_START_UTC_HOUR = 12, PEAK_END_UTC_HOUR = 18;
|
|
62820
62808
|
|
|
62821
62809
|
// src/widgets/index.ts
|
|
62822
62810
|
var init_widgets = __esm(async () => {
|
|
@@ -62838,7 +62826,6 @@ var init_widgets = __esm(async () => {
|
|
|
62838
62826
|
init_Battery();
|
|
62839
62827
|
init_VimMode();
|
|
62840
62828
|
init_WeeklyPace();
|
|
62841
|
-
init_OffPeak();
|
|
62842
62829
|
await __promiseAll([
|
|
62843
62830
|
init_TokensInput(),
|
|
62844
62831
|
init_TokensOutput(),
|