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:
frankbria 2025-08-27 09:15:00 -07:00
parent 5e1d8734b1
commit 48bd008701
8 changed files with 571 additions and 5 deletions

View file

@ -94,7 +94,7 @@ update_status() {
local status=$4
local exit_reason=${5:-""}
cat > "$STATUS_FILE" << EOF
cat > "$STATUS_FILE" << STATUSEOF
{
"timestamp": "$(date -Iseconds)",
"loop_count": $loop_count,
@ -105,7 +105,7 @@ update_status() {
"exit_reason": "$exit_reason",
"next_reset": "$(date -d '+1 hour' -Iseconds | cut -d'T' -f2 | cut -d'+' -f1)"
}
EOF
STATUSEOF
}
# Check if we can make another call
@ -312,7 +312,7 @@ main() {
# Help function
show_help() {
cat << EOF
cat << HELPEOF
Ralph Loop for Claude Code
Usage: $0 [OPTIONS]
@ -331,7 +331,7 @@ Files created:
Example:
$0 --calls 50 --prompt my_prompt.md
EOF
HELPEOF
}
# Parse command line arguments