forked from Th0rgal/open-ralph-wiggum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
42 lines (33 loc) · 1.01 KB
/
install.ps1
File metadata and controls
42 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Install script for Ralph Wiggum CLI (Windows)
$ErrorActionPreference = "Stop"
Write-Host "Installing Ralph Wiggum CLI..."
# Check for Bun
if (-not (Get-Command bun -ErrorAction SilentlyContinue)) {
Write-Error "Bun is required but not installed. Install Bun: https://bun.sh"
exit 1
}
# Check for OpenCode
if (-not (Get-Command opencode -ErrorAction SilentlyContinue)) {
Write-Error "OpenCode is required but not installed. Install OpenCode: npm install -g opencode-ai"
exit 1
}
# Get script directory
$scriptDir = $PSScriptRoot
# Install dependencies
Write-Host "Installing dependencies..."
Push-Location $scriptDir
bun install
# Link the package (makes 'ralph' command available)
Write-Host "Linking ralph command..."
bun link
Pop-Location
Write-Host ""
Write-Host "Installation complete!"
Write-Host ""
Write-Host "Usage:"
Write-Host ""
Write-Host " CLI Loop:"
Write-Host " ralph \"Your task\" --max-iterations 10"
Write-Host " ralph --help"
Write-Host ""
Write-Host "Learn more: https://ghuntley.com/ralph/"