@owloops/claude-powerline 1.23.2 → 1.23.4
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 +0 -53
- package/package.json +1 -1
- package/plugin/bin/preview.sh +9 -3
- package/plugin/commands/powerline.md +12 -1
package/README.md
CHANGED
|
@@ -52,59 +52,6 @@ _Live demonstration: real-time usage tracking, git integration, and theme showca
|
|
|
52
52
|
</table>
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
|
-
## Features
|
|
56
|
-
|
|
57
|
-
<table>
|
|
58
|
-
<tr>
|
|
59
|
-
<td width="50%">
|
|
60
|
-
|
|
61
|
-
**Real-time usage tracking**
|
|
62
|
-
|
|
63
|
-
Monitor session costs, 5-hour billing windows, and daily budgets with percentage alerts.
|
|
64
|
-
|
|
65
|
-
</td>
|
|
66
|
-
<td width="50%">
|
|
67
|
-
|
|
68
|
-
**Git integration**
|
|
69
|
-
|
|
70
|
-
Branch status, commits ahead/behind, working tree changes, and repository info at a glance.
|
|
71
|
-
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
<tr>
|
|
75
|
-
<td width="50%">
|
|
76
|
-
|
|
77
|
-
**6 built-in themes**
|
|
78
|
-
|
|
79
|
-
Dark, light, nord, tokyo-night, rose-pine, and gruvbox themes with full custom color support.
|
|
80
|
-
|
|
81
|
-
</td>
|
|
82
|
-
<td width="50%">
|
|
83
|
-
|
|
84
|
-
**Multiple styles**
|
|
85
|
-
|
|
86
|
-
Minimal, powerline, capsule, and TUI panel display with unicode or ASCII character sets.
|
|
87
|
-
|
|
88
|
-
</td>
|
|
89
|
-
</tr>
|
|
90
|
-
<tr>
|
|
91
|
-
<td width="50%">
|
|
92
|
-
|
|
93
|
-
**Auto-wrap layout**
|
|
94
|
-
|
|
95
|
-
Segments automatically wrap to new lines based on terminal width. No more cutoff.
|
|
96
|
-
|
|
97
|
-
</td>
|
|
98
|
-
<td width="50%">
|
|
99
|
-
|
|
100
|
-
**Zero dependencies**
|
|
101
|
-
|
|
102
|
-
Lightweight and fast with no external dependencies to install.
|
|
103
|
-
|
|
104
|
-
</td>
|
|
105
|
-
</tr>
|
|
106
|
-
</table>
|
|
107
|
-
|
|
108
55
|
## Installation
|
|
109
56
|
|
|
110
57
|
Requires Node.js 18+, Claude Code, and Git 2.0+. For best display, install a [Nerd Font](https://www.nerdfonts.com/) or use `--charset=text` for ASCII-only symbols.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owloops/claude-powerline",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.4",
|
|
4
4
|
"description": "Beautiful vim-style powerline statusline for Claude Code with real-time usage tracking, git integration, and custom themes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
package/plugin/bin/preview.sh
CHANGED
|
@@ -51,15 +51,21 @@ cleanup() {
|
|
|
51
51
|
}
|
|
52
52
|
trap cleanup EXIT
|
|
53
53
|
|
|
54
|
+
test_binary() {
|
|
55
|
+
local bin="$1"
|
|
56
|
+
printf '{}' | "${bin}" --help >/dev/null 2>&1
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
find_binary() {
|
|
55
60
|
local npm_bin="${PLUGIN_ROOT}/../bin/claude-powerline"
|
|
56
|
-
if [[ -f "${npm_bin}" ]]; then
|
|
61
|
+
if [[ -f "${npm_bin}" ]] && test_binary "${npm_bin}"; then
|
|
57
62
|
printf '%s' "${npm_bin}"
|
|
58
63
|
return 0
|
|
59
64
|
fi
|
|
60
65
|
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
local path_bin
|
|
67
|
+
if path_bin="$(command -v claude-powerline 2>/dev/null)" && test_binary "${path_bin}"; then
|
|
68
|
+
printf '%s' "${path_bin}"
|
|
63
69
|
return 0
|
|
64
70
|
fi
|
|
65
71
|
|
|
@@ -88,7 +88,18 @@ Then ask:
|
|
|
88
88
|
|
|
89
89
|
## Step 3: Theme Selection
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
Show a preview of all six themes using the bundled preview script.
|
|
92
|
+
|
|
93
|
+
> [!IMPORTANT]
|
|
94
|
+
> You cannot render ANSI escape codes in your text output.
|
|
95
|
+
> You MUST run the preview command below and let the terminal display the result.
|
|
96
|
+
> After running, tell the user to expand the bash output if they cannot see the previews.
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
${CLAUDE_PLUGIN_ROOT}/bin/preview.sh --compare-themes --charset=${charset}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
After running the command, display the theme list and tell the user to check the bash output above for previews:
|
|
92
103
|
|
|
93
104
|
````markdown
|
|
94
105
|
**Available themes:**
|