cc-pulse 1.0.1 → 1.0.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/dist/cli.js +8 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ var __export = (target, all) => {
|
|
|
12
12
|
// package.json
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "cc-pulse",
|
|
15
|
-
version: "1.0.
|
|
15
|
+
version: "1.0.2",
|
|
16
16
|
description: "A customizable, real-time statusline for Claude Code",
|
|
17
17
|
type: "module",
|
|
18
18
|
bin: {
|
|
@@ -131,7 +131,7 @@ function renderContext(input, config, theme) {
|
|
|
131
131
|
const bar = `${color}${"●".repeat(remaining)}${theme.reset}${"○".repeat(depleted)}`;
|
|
132
132
|
const freeLabel = `${color}free:${formatTokens(freeTokens)}${theme.reset}`;
|
|
133
133
|
const usedLabel = `${theme.overlay0}used:${formatTokens(totalUsed)}${theme.reset}`;
|
|
134
|
-
display = style === "both" ? `${bar} ${freeLabel} ${usedLabel}` : `${bar} ${Math.round(remainingPercent)}
|
|
134
|
+
display = style === "both" ? `${bar} ${freeLabel} ${usedLabel}` : `${bar} ${color}${Math.round(remainingPercent)}%${theme.reset}`;
|
|
135
135
|
} else {
|
|
136
136
|
display = `${Math.round(remainingPercent)}%`;
|
|
137
137
|
}
|
|
@@ -354,9 +354,10 @@ function renderBranch(config, theme) {
|
|
|
354
354
|
if (!git.branch) {
|
|
355
355
|
return { text: "" };
|
|
356
356
|
}
|
|
357
|
+
const icon = "⎇ ";
|
|
357
358
|
const label = config.label ?? "";
|
|
358
359
|
const labelStr = label ? `${theme.teal}${label} ${theme.reset}` : "";
|
|
359
|
-
const text = `${labelStr}${theme.teal}${git.branch}${theme.reset}`;
|
|
360
|
+
const text = `${theme.teal}${icon}${theme.reset}${labelStr}${theme.teal}${git.branch}${theme.reset}`;
|
|
360
361
|
return { text };
|
|
361
362
|
}
|
|
362
363
|
function renderStatus(config, theme) {
|
|
@@ -552,7 +553,7 @@ function renderMcp(config, theme) {
|
|
|
552
553
|
if (config.enabled === false) {
|
|
553
554
|
return { text: "" };
|
|
554
555
|
}
|
|
555
|
-
const label = config.label ?? "
|
|
556
|
+
const label = config.label ?? "⬢ MCP";
|
|
556
557
|
const icons = config.icons ?? {
|
|
557
558
|
connected: "✓",
|
|
558
559
|
disconnected: "✗",
|
|
@@ -860,7 +861,8 @@ function renderTier(config, theme) {
|
|
|
860
861
|
color = theme.green;
|
|
861
862
|
label = labels.api;
|
|
862
863
|
}
|
|
863
|
-
const
|
|
864
|
+
const icon = "◆ ";
|
|
865
|
+
const text = `${color}${theme.bold}${icon}${label}${theme.reset}`;
|
|
864
866
|
return { text, action: "/usage" };
|
|
865
867
|
}
|
|
866
868
|
function detectTier() {
|
|
@@ -974,7 +976,7 @@ var DEFAULT_CONFIG = {
|
|
|
974
976
|
},
|
|
975
977
|
mcp: {
|
|
976
978
|
enabled: true,
|
|
977
|
-
label: "MCP",
|
|
979
|
+
label: "⬢ MCP",
|
|
978
980
|
showNames: true,
|
|
979
981
|
showOnlyProblems: false,
|
|
980
982
|
style: "auto",
|