Skip to content

Commit 47125b3

Browse files
fix(ai-statusline): fix PowerShell script template bugs for Windows
- Replace reserved $input variable with [System.Console]::In.ReadToEnd() - Set [Console]::OutputEncoding to UTF-8 for Unicode character support - Use [char] codes instead of literal Unicode to avoid file encoding issues - Fix progress bar to use Unicode block characters matching bash template - Fix segment separator to use middle dot matching bash template and docs - Quote paths in Split-Path and git -C for directories with spaces - Clarify cost format string to avoid resembling a variable reference - Update plugin version to 1.2.1, marketplace version to 2.0.1 - Add README.md badge version to CLAUDE.md versioning checklist
1 parent 3804f10 commit 47125b3

7 files changed

Lines changed: 31 additions & 13 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"metadata": {
88
"description": "A curated list of custom Claude Code plugins, agents, and skills for developers.",
9-
"version": "2.0.0",
9+
"version": "2.0.1",
1010
"pluginRoot": "./plugins"
1111
},
1212
"plugins": [
@@ -155,7 +155,7 @@
155155
"name": "ai-statusline",
156156
"source": "./plugins/ai-statusline",
157157
"description": "AI-powered status line customization - Interactive setup and edit wizards for configuring Claude Code's status line with progress bars and customizable display options",
158-
"version": "1.2.0",
158+
"version": "1.2.1",
159159
"keywords": [
160160
"ai",
161161
"statusline",

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.0.1] - 2026-02-17
11+
12+
### Fixed
13+
14+
#### AI-Statusline Plugin (v1.2.1)
15+
16+
- **Fixed PowerShell script template bugs**
17+
- Fixed stdin reading using reserved `$input` automatic variable; replaced with `[System.Console]::In.ReadToEnd()` so the script actually receives JSON data when invoked via `-File`
18+
- Fixed progress bar using ASCII `+`/`-` instead of Unicode ``/`` to match bash template and documentation
19+
- Fixed segment separator using `" | "` instead of `" · "` to match bash template and README examples
20+
- Fixed unquoted paths in `Split-Path` and `git -C` that would break on directories with spaces
21+
- Fixed confusing cost format string `'${0:F2}'` that resembles a variable reference; clarified with string concatenation
22+
- Fixed Unicode character encoding by setting `[Console]::OutputEncoding` to UTF-8 and using `[char]` codes instead of literal Unicode in source file
23+
1024
## [2.0.0] - 2026-02-16
1125

1226
### Added
@@ -698,7 +712,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
698712

699713
- README.md, CLAUDE.md, individual plugin READMEs, and MIT license
700714

701-
[Unreleased]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v2.0.0...HEAD
715+
[Unreleased]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v2.0.1...HEAD
716+
[2.0.1]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v2.0.0...v2.0.1
702717
[2.0.0]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.9.1...v2.0.0
703718
[1.9.1]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.9.0...v1.9.1
704719
[1.9.0]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.8.0...v1.9.0

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ When adding new features or fixing bugs in a plugin, follow this workflow:
155155
- Update version comparison links at the bottom
156156

157157
4. **Update README.md**:
158-
- Update the plugin's version in the Available Plugins table
158+
- Update the marketplace version in the badge at the top (e.g., `version-2.0.1-blue`)
159159
- Add any new commands to the Commands column
160160
- Update usage examples if new commands were added
161161

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Claude Code Plugins for Developers
22

3-
[![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/releases)
3+
[![Version](https://img.shields.io/badge/version-2.0.1-blue.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/releases)
44
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
55
[![GitHub Issues](https://img.shields.io/github/issues/charlesjones-dev/claude-code-plugins-dev.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/issues)
66
[![GitHub Stars](https://img.shields.io/github/stars/charlesjones-dev/claude-code-plugins-dev.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/stargazers)

plugins/ai-statusline/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-statusline",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "AI-powered status line customization - Interactive setup and edit wizards for configuring Claude Code's status line with progress bars and customizable display options",
55
"author": {
66
"name": "Charles Jones",

plugins/ai-statusline/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Install jq using your package manager (see Requirements section above).
267267
## Plugin Details
268268

269269
- **Name:** AI-Statusline
270-
- **Version:** 1.2.0
270+
- **Version:** 1.2.1
271271
- **Type:** UI Customization
272272
- **Features:**
273273
- Skills: `/statusline-wizard`, `/statusline-edit`

plugins/ai-statusline/skills/statusline-wizard/SKILL.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,14 @@ $SHOW_VERSION = $true # Show Claude Code version
343343
344344
# =============================================================================
345345
346+
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
347+
346348
# Read JSON from stdin
347-
$inputJson = $input | Out-String
349+
$inputJson = [System.Console]::In.ReadToEnd()
348350
$data = $inputJson | ConvertFrom-Json
349351
350352
$model_name = $data.model.display_name
351-
$current_dir = Split-Path -Leaf $data.workspace.current_dir
353+
$current_dir = Split-Path -Leaf "$($data.workspace.current_dir)"
352354
$version = $data.version
353355
$usage = $data.context_window.current_usage
354356
$cost = $data.cost.total_cost_usd
@@ -357,7 +359,7 @@ $current_time = (Get-Date -Format "h:mmtt").ToLower()
357359
358360
# Format cost
359361
if ($null -ne $cost) {
360-
$cost_fmt = '${0:F2}' -f $cost
362+
$cost_fmt = '$' + ('{0:F2}' -f $cost)
361363
} else {
362364
$cost_fmt = '$0.00'
363365
}
@@ -382,7 +384,7 @@ if ($null -ne $duration_ms) {
382384
383385
# Get git branch
384386
$git_branch = try {
385-
git -C $data.workspace.current_dir branch --show-current 2>$null
387+
git -C "$($data.workspace.current_dir)" branch --show-current 2>$null
386388
} catch { $null }
387389
if ([string]::IsNullOrEmpty($git_branch)) {
388390
$git_branch = '-'
@@ -410,7 +412,7 @@ function Build-ProgressBar {
410412
$filled = [math]::Floor($Percent * $bar_width / 100)
411413
$empty = $bar_width - $filled
412414
413-
$bar = ("#" * $filled) + ("-" * $empty)
415+
$bar = ([string][char]0x2593) * $filled + ([string][char]0x2591) * $empty
414416
return "$Color$bar $Percent%$reset"
415417
}
416418
@@ -501,7 +503,8 @@ if ($SHOW_VERSION) {
501503
$segments += "${gray}v$version$reset"
502504
}
503505
504-
Write-Host -NoNewline ($segments -join " - ")
506+
$sep = " " + [char]0x00B7 + " "
507+
Write-Host -NoNewline ($segments -join $sep)
505508
```
506509

507510
## Configuration Variables

0 commit comments

Comments
 (0)