Add Ralph CLI verification to verify-claude-setup.sh
Changes: - Add section #8: Ralph CLI Check (Advanced - Optional) - Verify Ralph CLI installation and version - Check Ralph auto-trigger hook existence and permissions - Verify hooks.json Ralph configuration - Check ralph-config.env environment file - Update Summary section number from #8 to #9 The verification script now covers all 3 auto-triggering systems: 1. PROACTIVELY agents (built-in to agent definitions) 2. Ralph CLI (optional autonomous looping) 3. Hooks-based event triggers Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -210,7 +210,52 @@ else
|
|||||||
check_warn "sync-agents.sh not found (optional, for updating agents)"
|
check_warn "sync-agents.sh not found (optional, for updating agents)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 8. Summary
|
# 8. Ralph CLI Check (Advanced - Optional)
|
||||||
|
echo ""
|
||||||
|
echo "═══════════════════════════════════════════════════════════"
|
||||||
|
echo "Ralph CLI (Advanced - Optional)"
|
||||||
|
echo "═══════════════════════════════════════════════════════════"
|
||||||
|
|
||||||
|
if command -v ralph &> /dev/null; then
|
||||||
|
check_pass "Ralph CLI is installed"
|
||||||
|
RALPH_VERSION=$(ralph --version 2>/dev/null || echo "unknown")
|
||||||
|
check_info "Ralph version: $RALPH_VERSION"
|
||||||
|
|
||||||
|
# Check Ralph hook
|
||||||
|
if [ -f "$CLAUDE_DIR/hooks/ralph-auto-trigger.sh" ]; then
|
||||||
|
check_pass "Ralph auto-trigger hook exists"
|
||||||
|
if [ -x "$CLAUDE_DIR/hooks/ralph-auto-trigger.sh" ]; then
|
||||||
|
check_pass "Ralph hook is executable"
|
||||||
|
else
|
||||||
|
check_warn "Ralph hook exists but is not executable"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
check_warn "Ralph hook not found (auto-trigger not configured)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check hooks.json
|
||||||
|
if [ -f "$CLAUDE_DIR/hooks.json" ]; then
|
||||||
|
if grep -q "ralph-auto-trigger" "$CLAUDE_DIR/hooks.json" 2>/dev/null; then
|
||||||
|
check_pass "hooks.json configured for Ralph"
|
||||||
|
else
|
||||||
|
check_warn "hooks.json exists but Ralph not configured"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
check_warn "hooks.json not found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check Ralph config
|
||||||
|
if [ -f "$CLAUDE_DIR/ralph-config.env" ]; then
|
||||||
|
check_pass "Ralph configuration file exists"
|
||||||
|
else
|
||||||
|
check_warn "ralph-config.env not found (environment not configured)"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
check_info "Ralph CLI not installed (optional advanced feature)"
|
||||||
|
check_info "Install with: npm install -g @iannuttall/ralph"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 9. Summary
|
||||||
echo ""
|
echo ""
|
||||||
echo "═══════════════════════════════════════════════════════════"
|
echo "═══════════════════════════════════════════════════════════"
|
||||||
echo "Summary"
|
echo "Summary"
|
||||||
|
|||||||
Reference in New Issue
Block a user