@say8425/cc-statusline 6.0.0 → 6.1.0
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/index.js +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ Add the following to `~/.claude/settings.json`:
|
|
|
64
64
|
- **Block Usage**: 5-hour utilization percentage
|
|
65
65
|
- **Weekly Reset Timer**: Weekly limit reset time (MM/DD HH:MM)
|
|
66
66
|
- **Weekly Usage**: 7-day utilization percentage
|
|
67
|
-
- **Session ID**: Full session UUID at the end of the
|
|
67
|
+
- **Session ID**: Full session UUID at the end of the session-time line (to the right of the model segment), with no emoji label — ready to copy into `claude --resume <id>` or a log lookup
|
|
68
68
|
|
|
69
69
|
## Emoji Guide
|
|
70
70
|
|
|
@@ -77,11 +77,11 @@ Add the following to `~/.claude/settings.json`:
|
|
|
77
77
|
| 💰 | Session cost in USD (hidden by default — see [Configuration](#configuration)) |
|
|
78
78
|
| 🧠 | Context window usage |
|
|
79
79
|
| 🤖 | Current model and effort |
|
|
80
|
+
| _(none)_ | Session ID — the full UUID, shown after 🤖 (or at the end of the session-time line) without an emoji label |
|
|
80
81
|
| ⏳ | Limit reset time |
|
|
81
82
|
| 📊 | 5-hour utilization % |
|
|
82
83
|
| ⏰ | Weekly limit reset time |
|
|
83
84
|
| 📅 | 7-day utilization % |
|
|
84
|
-
| _(none)_ | Session ID — the full UUID, shown after 📅 without an emoji label |
|
|
85
85
|
| ✏️ | Uncommitted changes (click to open diff viewer) |
|
|
86
86
|
| 📎 | Pull request link — color-coded state in brackets (`[Open]`/`[Draft]`/`[Merged]`/`[Closed]`) immediately followed by a color-coded CI check summary in parens (`(N passed)`/`(N running)`/`(N failed)`) when checks exist |
|
|
87
87
|
|
|
@@ -163,7 +163,7 @@ Claude Code passes `rate_limits` in the stdin JSON input (CLI 2.1.80+):
|
|
|
163
163
|
|
|
164
164
|
Usage metrics are **automatically displayed** when `rate_limits` is present in the stdin JSON. No additional flags or configuration needed.
|
|
165
165
|
|
|
166
|
-
The session ID (`session_id`)
|
|
166
|
+
The session ID (`session_id`) lives on the session-time line instead — see [Features](#features) — since it comes from a separate field and doesn't depend on `rate_limits`.
|
|
167
167
|
|
|
168
168
|
> [!NOTE]
|
|
169
169
|
> `rate_limits` is only available for Claude.ai subscribers (Pro/Max) after the first API response. See the [official statusline docs](https://code.claude.com/docs/en/statusline) for the full JSON schema.
|
package/dist/index.js
CHANGED
|
@@ -536,6 +536,10 @@ var renderStatusLine = (ctx) => {
|
|
|
536
536
|
modelText += " \u26A1ultra";
|
|
537
537
|
line2 += ` | ${C.WHITE}\uD83E\uDD16 ${modelText}${C.RESET}`;
|
|
538
538
|
}
|
|
539
|
+
const sessionId = ctx.claudeJson.session_id;
|
|
540
|
+
if (sessionId) {
|
|
541
|
+
line2 += ` | ${C.WHITE}${sessionId}${C.RESET}`;
|
|
542
|
+
}
|
|
539
543
|
lines.push(line2);
|
|
540
544
|
const usageParts = [];
|
|
541
545
|
if (ctx.rateLimits?.five_hour) {
|
|
@@ -558,10 +562,6 @@ var renderStatusLine = (ctx) => {
|
|
|
558
562
|
const weekColor = getUsageColor(used_percentage);
|
|
559
563
|
usageParts.push(`${weekColor}\uD83D\uDCC5 ${Math.round(used_percentage)}/100${C.RESET}`);
|
|
560
564
|
}
|
|
561
|
-
const sessionId = ctx.claudeJson.session_id;
|
|
562
|
-
if (sessionId) {
|
|
563
|
-
usageParts.push(`${C.WHITE}${sessionId}${C.RESET}`);
|
|
564
|
-
}
|
|
565
565
|
if (usageParts.length > 0) {
|
|
566
566
|
lines.push(usageParts.join(" | "));
|
|
567
567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@say8425/cc-statusline",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Custom statusline for Claude Code",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"typecheck": "tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@say8425/diffdeck": "1.
|
|
30
|
+
"@say8425/diffdeck": "1.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/bun": "^1.3.14",
|