@buckits/claude-statusline 2.1.0 โ 2.2.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/LICENSE +21 -0
- package/README.md +4 -3
- package/bin/install.js +14 -6
- package/package.json +1 -1
- package/statusline.sh +3 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Buckits
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ npx @buckits/claude-statusline
|
|
|
33
33
|
With GSD update available:
|
|
34
34
|
```
|
|
35
35
|
๐ค Opus 4.5 ($14.61) โ [โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโกโโโโโโโโโโโ] 80k/200k
|
|
36
|
-
๐ trellis POC โ โ origin/POC โ15
|
|
36
|
+
๐ trellis POC โ โ origin/POC โ15 | GSD 1.5.0>1.6.4
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## What Each Element Means
|
|
@@ -90,8 +90,9 @@ The bar gradient is calculated relative to the โก threshold (not total capacity
|
|
|
90
90
|
|
|
91
91
|
```json
|
|
92
92
|
{
|
|
93
|
-
"
|
|
94
|
-
"
|
|
93
|
+
"statusLine": {
|
|
94
|
+
"type": "command",
|
|
95
|
+
"command": "/Users/YOUR_USERNAME/.claude/statusline.sh"
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
```
|
package/bin/install.js
CHANGED
|
@@ -35,16 +35,24 @@ if (fs.existsSync(SETTINGS_FILE)) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
//
|
|
39
|
-
|
|
40
|
-
settings.status_line
|
|
38
|
+
// Remove old format if present
|
|
39
|
+
if (settings.status_line) {
|
|
40
|
+
delete settings.status_line;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Set the statusLine configuration (correct camelCase format)
|
|
44
|
+
settings.statusLine = {
|
|
45
|
+
type: "command",
|
|
46
|
+
command: STATUSLINE_DEST
|
|
47
|
+
};
|
|
41
48
|
|
|
42
49
|
fs.writeFileSync(SETTINGS_FILE, JSON.stringify(settings, null, 2));
|
|
43
50
|
|
|
44
51
|
console.log('\nโ
Installation complete!\n');
|
|
45
52
|
console.log('Your Claude Code statusline now features:');
|
|
46
53
|
console.log(' โข Gradient progress bar (green โ yellow โ orange โ red)');
|
|
47
|
-
console.log(' โข
|
|
48
|
-
console.log(' โข
|
|
49
|
-
console.log(' โข
|
|
54
|
+
console.log(' โข โก Compact threshold marker at 78%');
|
|
55
|
+
console.log(' โข Git branch, status, and ahead/behind tracking');
|
|
56
|
+
console.log(' โข Session cost display');
|
|
57
|
+
console.log(' โข GSD update notifications (if installed)');
|
|
50
58
|
console.log('\nRestart Claude Code to see the new statusline.\n');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buckits/claude-statusline",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A beautiful 2-line dashboard statusline for Claude Code with gradient progress bar, compact threshold marker, git status indicators, cost tracking, and GSD update notifications",
|
|
5
5
|
"bin": {
|
|
6
6
|
"claude-statusline": "./bin/install.js"
|
package/statusline.sh
CHANGED
|
@@ -425,7 +425,7 @@ if [ -n "$gsd_version_file" ]; then
|
|
|
425
425
|
|
|
426
426
|
# Compare versions - append to line2 if they differ
|
|
427
427
|
if [ "$latest_ver" != "unknown" ] && [ "$installed_ver" != "$latest_ver" ]; then
|
|
428
|
-
gsd_update_suffix=$(printf "
|
|
428
|
+
gsd_update_suffix=$(printf " | GSD %s>%s" "$installed_ver" "$latest_ver")
|
|
429
429
|
fi
|
|
430
430
|
fi
|
|
431
431
|
fi
|
|
@@ -433,6 +433,5 @@ fi
|
|
|
433
433
|
# Append GSD update to line2 if available
|
|
434
434
|
line2+="$gsd_update_suffix"
|
|
435
435
|
|
|
436
|
-
# Output the dashboard (
|
|
437
|
-
printf "%s\033[K\n" "$line1"
|
|
438
|
-
printf "%s\033[K\n" "$line2"
|
|
436
|
+
# Output the dashboard (2 lines, no trailing newline)
|
|
437
|
+
printf "%s\033[K\n%s\033[K" "$line1" "$line2"
|