claude-evolve 1.8.38 → 1.8.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  #!/bin/bash
2
2
 
3
- set -e
3
+ # AIDEV-NOTE: Don't use set -e globally - it causes silent exits on any command failure
4
+ # Instead, handle errors explicitly where needed
5
+ # set -e # DISABLED - was causing silent dispatcher crashes
4
6
 
5
7
  # Load configuration
6
8
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -579,8 +581,8 @@ last_stuck_check=0
579
581
 
580
582
  # Main dispatch loop
581
583
  while true; do
582
- # Clean up finished workers
583
- cleanup_workers
584
+ # Clean up finished workers (with error protection)
585
+ cleanup_workers || echo "[WARN] cleanup_workers had an error, continuing..." >&2
584
586
 
585
587
  # Check if API limit was reached
586
588
  if [[ "$api_limit_reached" == "true" ]]; then
@@ -631,8 +633,17 @@ except Exception as e:
631
633
  fi
632
634
  fi
633
635
 
634
- # Get current status
635
- csv_stats=$(get_csv_stats "$FULL_CSV_PATH")
636
+ # Get current status (with error handling to prevent silent crashes)
637
+ csv_stats=$(get_csv_stats "$FULL_CSV_PATH") || {
638
+ echo "[ERROR] Failed to get CSV stats, retrying in 5 seconds..." >&2
639
+ sleep 5
640
+ continue
641
+ }
642
+ if [[ -z "$csv_stats" ]]; then
643
+ echo "[ERROR] Empty CSV stats, retrying in 5 seconds..." >&2
644
+ sleep 5
645
+ continue
646
+ fi
636
647
  read -r total_rows complete_count pending_count <<< "$csv_stats"
637
648
  active_workers=${#worker_pids[@]}
638
649
 
@@ -729,7 +729,8 @@ with EvolutionCSV('$FULL_CSV_PATH') as csv:
729
729
 
730
730
  if [[ $candidates_processed -ge $WORKER_MAX_CANDIDATES ]]; then
731
731
  echo "[WORKER-$$] Reached maximum candidates ($WORKER_MAX_CANDIDATES), exiting for refresh"
732
- break
732
+ echo "[WORKER-$$] Worker exiting (will be restarted by dispatcher if running via 'claude-evolve run')"
733
+ exit 0
733
734
  fi
734
735
  done
735
736
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.8.38",
3
+ "version": "1.8.39",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",