Fix create_files.sh syntax errors and complete Ralph implementation
- 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.
This commit is contained in:
parent
5e1d8734b1
commit
48bd008701
8 changed files with 571 additions and 5 deletions
34
setup.sh
Executable file
34
setup.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue