feat(ralph-wiggum): Add Windows PowerShell support#99
Open
WeSolveX wants to merge 1 commit intoanthropics:mainfrom
Open
feat(ralph-wiggum): Add Windows PowerShell support#99WeSolveX wants to merge 1 commit intoanthropics:mainfrom
WeSolveX wants to merge 1 commit intoanthropics:mainfrom
Conversation
- Add PowerShell scripts for Windows compatibility - scripts/setup-ralph-loop.ps1: Windows setup script - scripts/cancel-ralph-loop.ps1: Windows cancel script - hooks/stop-hook.ps1: Windows stop hook - Update hooks.json to invoke PowerShell with ExecutionPolicy Bypass - Update command files to invoke PowerShell scripts - Fix documentation typo in help.md (incorrect state file path) Tested on Windows 11 with PowerShell 5.1 and 7+
|
good fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Windows PowerShell support for Ralph Wiggum plugin
Summary
Added PowerShell (.ps1) scripts for full Windows compatibility, replacing the Unix shell scripts with native Windows equivalents.
Problem
The Ralph Wiggum plugin was originally designed for Unix/macOS systems using
.shshell scripts. Windows users could not use the plugin as-is.Solution
Created PowerShell equivalents of all scripts that:
Changes
New/Modified Scripts:
scripts/setup-ralph-loop.ps1- Windows version of setup scriptscripts/cancel-ralph-loop.ps1- Windows version of cancel scripthooks/stop-hook.ps1- Windows version of stop hookhooks/hooks.json- Updated to invoke PowerShell with-ExecutionPolicy Bypasscommands/ralph-loop.md- Updated to invoke PowerShell scriptcommands/cancel-ralph.md- Updated to invoke PowerShell scriptDocumentation Fix:
commands/help.md- Fixed typo:.claude/.ralph-loop.local.md→.claude/ralph-loop.local.md(lines 49, 69)Testing
Thoroughly tested on Windows 11 with both PowerShell 5.1 and PowerShell 7+:
/ralph-loop)/cancel-ralph)Live test: Successfully ran 12 consecutive iterations proving full functionality.
Compatibility
\r?\nregex patternsSecurity
Invoke-Expressionor similar dangerous cmdletsConvertTo-JsonNotes
The PowerShell scripts are functionally equivalent to the original shell scripts, maintaining the same:
.claude/ralph-loop.local.md)