cc-pulse 1.3.0 → 1.3.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/README.md +3 -3
- package/dist/cli.js +11 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Restart Claude Code — the statusline appears above the input area.
|
|
|
32
32
|
|---------|-------------|
|
|
33
33
|
| **Context usage** | Shows % used with color-coded bar — green to red as you approach limits |
|
|
34
34
|
| **Token breakdown** | Input ↓, output ↑, and cache ⟳ tokens at a glance |
|
|
35
|
-
| **Model info** | Shows model with version (e.g., "Opus 4.
|
|
35
|
+
| **Model info** | Shows model with version (e.g., "Opus 4.6", "Sonnet 4.5") |
|
|
36
36
|
| **Cost tracking** | Session cost with color coding ($1 yellow, $2 orange, $5+ red) |
|
|
37
37
|
| **MCP health** | Live connection status for all MCP servers |
|
|
38
38
|
| **Hook monitoring** | Active hooks by event type, with broken path detection |
|
|
@@ -77,8 +77,8 @@ Shows how much of the context window is used. Colors shift as usage increases.
|
|
|
77
77
|
|
|
78
78
|
| Style | Example |
|
|
79
79
|
|-------|---------|
|
|
80
|
-
| `bar`
|
|
81
|
-
| `percent` | `Used 58%` |
|
|
80
|
+
| `bar` | `Used ●●●●●●○○○○ 58%` |
|
|
81
|
+
| `percent` (default) | `Used 58%` |
|
|
82
82
|
| `detailed` | `Used 116.0k/200.0k (58%)` |
|
|
83
83
|
| `both` | `●●●●●●○○○○ 116.0k / 200.0k` |
|
|
84
84
|
|
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.3.
|
|
15
|
+
version: "1.3.2",
|
|
16
16
|
description: "A customizable, real-time statusline for Claude Code",
|
|
17
17
|
type: "module",
|
|
18
18
|
bin: {
|
|
@@ -383,16 +383,18 @@ function getGitInfo() {
|
|
|
383
383
|
let status = "";
|
|
384
384
|
const statusLines = { added: 0, modified: 0, deleted: 0 };
|
|
385
385
|
try {
|
|
386
|
-
branch = execSync("git branch --show-current
|
|
386
|
+
branch = execSync("git branch --show-current", {
|
|
387
387
|
encoding: "utf-8",
|
|
388
|
-
timeout: 1000
|
|
388
|
+
timeout: 1000,
|
|
389
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
389
390
|
}).trim();
|
|
390
391
|
} catch {}
|
|
391
392
|
if (branch) {
|
|
392
393
|
try {
|
|
393
|
-
const porcelain = execSync("git status --porcelain
|
|
394
|
+
const porcelain = execSync("git status --porcelain", {
|
|
394
395
|
encoding: "utf-8",
|
|
395
|
-
timeout: 1000
|
|
396
|
+
timeout: 1000,
|
|
397
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
396
398
|
});
|
|
397
399
|
const lines = porcelain.trim().split(`
|
|
398
400
|
`).filter(Boolean);
|
|
@@ -631,9 +633,10 @@ function getMcpServers() {
|
|
|
631
633
|
servers = state.mcp.servers.map((s) => ({ ...s }));
|
|
632
634
|
} else {
|
|
633
635
|
try {
|
|
634
|
-
const output = execSync2("claude mcp list
|
|
636
|
+
const output = execSync2("claude mcp list", {
|
|
635
637
|
encoding: "utf-8",
|
|
636
|
-
timeout: 3000
|
|
638
|
+
timeout: 3000,
|
|
639
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
637
640
|
});
|
|
638
641
|
servers = parseMcpOutput(output);
|
|
639
642
|
saveState({
|
|
@@ -1115,7 +1118,7 @@ var DEFAULT_CONFIG = {
|
|
|
1115
1118
|
context: {
|
|
1116
1119
|
enabled: true,
|
|
1117
1120
|
label: "Used",
|
|
1118
|
-
style: "
|
|
1121
|
+
style: "percent",
|
|
1119
1122
|
showRate: false,
|
|
1120
1123
|
showTokens: true,
|
|
1121
1124
|
showCompactHint: false,
|