@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 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 โ”‚ โฌ†๏ธ GSD 1.5.0 โ†’ 1.6.4 /gsd:update
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
- "status_line": {
94
- "script": "/home/YOUR_USERNAME/.claude/statusline.sh"
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
- // Set the status_line configuration
39
- settings.status_line = settings.status_line || {};
40
- settings.status_line.script = STATUSLINE_DEST;
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(' โ€ข Color-coded token count matching progress');
48
- console.log(' โ€ข Auto-compact countdown with color warnings');
49
- console.log(' โ€ข Git branch and project name display');
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.1.0",
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 " \033[2;37mโ”‚\033[0m \033[1;33mโฌ†๏ธ GSD\033[0m \033[2m%s โ†’ %s\033[0m \033[1;36m/gsd:update\033[0m" "$installed_ver" "$latest_ver")
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 (always 2 lines)
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"