cc-costline 0.2.2 → 0.2.3
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/dist/statusline.js +3 -3
- package/package.json +1 -1
package/dist/statusline.js
CHANGED
|
@@ -171,10 +171,10 @@ export function render(input) {
|
|
|
171
171
|
const claudeUsage = getClaudeUsage();
|
|
172
172
|
const parts = [];
|
|
173
173
|
// 1. Tokens ~ cost / context % + model
|
|
174
|
-
parts.push(`${FG_GRAY_DIM}
|
|
174
|
+
parts.push(`${FG_GRAY_DIM}∫ ${formatTokens(totalTokens)}${RESET} ${FG_GRAY_DIM}~${RESET} ${FG_YELLOW}${formatCost(cost)}${RESET} ${FG_GRAY_DIM}/${RESET} ${ctxColor(contextPct)}${contextPct}%${RESET} ${FG_GRAY_DIM}by${RESET} ${FG_MODEL}${model}${RESET}`);
|
|
175
175
|
// 2. Claude usage limits (colored by utilization)
|
|
176
176
|
if (claudeUsage) {
|
|
177
|
-
parts.push(`${FG_GRAY_DIM}
|
|
177
|
+
parts.push(`${FG_GRAY_DIM}∝${RESET} ${ctxColor(claudeUsage.fiveHour)}5h: ${claudeUsage.fiveHour}%${RESET} ${FG_GRAY_DIM}/${RESET} ${ctxColor(claudeUsage.sevenDay)}7d: ${claudeUsage.sevenDay}%${RESET}`);
|
|
178
178
|
}
|
|
179
179
|
// 3. Period cost (default 30d, configurable)
|
|
180
180
|
if (cache) {
|
|
@@ -186,7 +186,7 @@ export function render(input) {
|
|
|
186
186
|
const ccclubRank = getCcclubRank();
|
|
187
187
|
if (ccclubRank) {
|
|
188
188
|
const rc = rankColor(ccclubRank.rank);
|
|
189
|
-
parts.push(`${rc}
|
|
189
|
+
parts.push(`${rc}Ω #${ccclubRank.rank}/${ccclubRank.total} ${formatCost(ccclubRank.cost)}${RESET}`);
|
|
190
190
|
}
|
|
191
191
|
return "\n " + parts.join(` ${FG_GRAY}|${RESET} `) + "\n";
|
|
192
192
|
}
|