claude-prism 1.2.1 → 1.2.2
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/package.json
CHANGED
|
@@ -102,7 +102,7 @@ function formatUsageData(data) {
|
|
|
102
102
|
? Math.max(0, Math.round((new Date(data.fiveHourResetsAt) - now) / 60000))
|
|
103
103
|
: 0;
|
|
104
104
|
const weeklyReset = data.weeklyResetsAt ? new Date(data.weeklyResetsAt) : null;
|
|
105
|
-
const dayNames = ['
|
|
105
|
+
const dayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
106
106
|
return {
|
|
107
107
|
session: data.fiveHourPercent,
|
|
108
108
|
weekly: data.weeklyPercent,
|
|
@@ -288,7 +288,7 @@ try {
|
|
|
288
288
|
const line3 = [];
|
|
289
289
|
if (planUsage) {
|
|
290
290
|
const warn = (planUsage.session > 95 || planUsage.weekly > 95) ? '\uD83D\uDD34' : (planUsage.session > 80 || planUsage.weekly > 80) ? '\u26A0\uFE0F' : '';
|
|
291
|
-
line3.push(`\uD83D\uDCCA ${planUsage.session}%(${planUsage.sessionResetMin}m) \u2502
|
|
291
|
+
line3.push(`\uD83D\uDCCA ${planUsage.session}%(${planUsage.sessionResetMin}m) \u2502 Wkly ${planUsage.weekly}%(${planUsage.weeklyResetLabel})${warn}`);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
// ── Compose ──
|