- Fix nested EOF heredoc conflicts in update_status() and show_help() functions - Use unique delimiters (STATUSEOF, HELPEOF) to avoid conflicts - Complete Ralph for Claude Code implementation with all components: - ralph_loop.sh: Main autonomous development loop with rate limiting - ralph_monitor.sh: Live monitoring dashboard - setup.sh: Project initialization script - templates/: Template files for new projects - .gitignore: Comprehensive ignore rules All scripts are now executable and syntax-validated.
34 lines
832 B
Bash
Executable file
34 lines
832 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Ralph Project Setup Script
|
|
set -e
|
|
|
|
PROJECT_NAME=${1:-"my-project"}
|
|
|
|
echo "🚀 Setting up Ralph project: $PROJECT_NAME"
|
|
|
|
# Create project directory
|
|
mkdir -p "$PROJECT_NAME"
|
|
cd "$PROJECT_NAME"
|
|
|
|
# Create structure
|
|
mkdir -p {specs/stdlib,src,examples,logs,docs/generated}
|
|
|
|
# Copy templates
|
|
cp ../templates/PROMPT.md .
|
|
cp ../templates/fix_plan.md @fix_plan.md
|
|
cp ../templates/AGENT.md @AGENT.md
|
|
cp -r ../templates/specs/* specs/ 2>/dev/null || true
|
|
|
|
# Initialize git
|
|
git init
|
|
echo "# $PROJECT_NAME" > README.md
|
|
git add .
|
|
git commit -m "Initial Ralph project setup"
|
|
|
|
echo "✅ Project $PROJECT_NAME created!"
|
|
echo "Next steps:"
|
|
echo " 1. Edit PROMPT.md with your project requirements"
|
|
echo " 2. Update specs/ with your project specifications"
|
|
echo " 3. Run: ../ralph_loop.sh"
|
|
echo " 4. Monitor: ../ralph_monitor.sh"
|