From a98a167140ca1280c1f5e9e4f0f0798bb6d9ed99 Mon Sep 17 00:00:00 2001 From: ikabalzam Date: Wed, 31 Dec 2025 10:31:47 +0700 Subject: [PATCH] fix(install): add lib/ directory copy for response_analyzer.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The install.sh was missing the lib/ directory copy, causing ralph_loop.sh to fail when sourcing response_analyzer.sh and circuit_breaker.sh. Changes: - Add mkdir -p "$RALPH_HOME/lib" to create_install_dirs() - Add cp -r "$SCRIPT_DIR/lib/"* "$RALPH_HOME/lib/" to install_scripts() - Add chmod +x for lib/*.sh scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0186ef7..459930f 100755 --- a/install.sh +++ b/install.sh @@ -75,7 +75,8 @@ create_install_dirs() { mkdir -p "$INSTALL_DIR" mkdir -p "$RALPH_HOME" mkdir -p "$RALPH_HOME/templates" - + mkdir -p "$RALPH_HOME/lib" + log "SUCCESS" "Directories created: $INSTALL_DIR, $RALPH_HOME" } @@ -85,6 +86,9 @@ install_scripts() { # Copy templates to Ralph home cp -r "$SCRIPT_DIR/templates/"* "$RALPH_HOME/templates/" + + # Copy lib scripts (response_analyzer.sh, circuit_breaker.sh) + cp -r "$SCRIPT_DIR/lib/"* "$RALPH_HOME/lib/" # Create the main ralph command cat > "$INSTALL_DIR/ralph" << 'EOF' @@ -141,7 +145,8 @@ EOF chmod +x "$INSTALL_DIR/ralph-import" chmod +x "$RALPH_HOME/ralph_monitor.sh" chmod +x "$RALPH_HOME/ralph_import.sh" - + chmod +x "$RALPH_HOME/lib/"*.sh + log "SUCCESS" "Ralph scripts installed to $INSTALL_DIR" }