@owloops/claude-powerline 1.23.1 → 1.23.3

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 CHANGED
@@ -114,9 +114,9 @@ Requires Node.js 18+, Claude Code, and Git 2.0+. For best display, install a [Ne
114
114
  The interactive wizard walks you through theme, style, font, segment, and budget selection.
115
115
 
116
116
  ```bash
117
- # run inside Claude Code (pick one install method)
118
- /plugin marketplace add Owloops/claude-powerline # from GitHub
119
- /plugin install @owloops/claude-powerline@claude-powerline # or from npm
117
+ # run inside Claude Code, one at a time
118
+ /plugin marketplace add Owloops/claude-powerline
119
+ /plugin install claude-powerline@claude-powerline
120
120
  /powerline
121
121
  ```
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owloops/claude-powerline",
3
- "version": "1.23.1",
3
+ "version": "1.23.3",
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",
@@ -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
- if command -v claude-powerline >/dev/null 2>&1; then
62
- command -v claude-powerline
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
- Display the available themes and tell the user to type their choice:
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:**