claude-evolve 1.5.19 → 1.5.21

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.
@@ -1374,13 +1374,48 @@ CRITICAL: Do NOT use any git commands (git add, git commit, git reset, etc.). On
1374
1374
  CURRENT_GENERATION=$(get_next_generation)
1375
1375
  echo "[INFO] Starting ideation for generation $CURRENT_GENERATION"
1376
1376
 
1377
- # Main execution
1378
- if [[ $use_strategies == true ]]; then
1379
- echo "[INFO] Multi-strategy AI generation mode"
1380
- ideate_ai_strategies
1381
- echo "[INFO] Ideation complete! Check $EVOLUTION_CSV for new ideas."
1382
- else
1383
- echo "[INFO] Legacy AI generation mode"
1384
- ideate_ai_legacy
1385
- echo "[INFO] Ideation complete! Check $EVOLUTION_CSV for new ideas."
1386
- fi
1377
+ # Main execution with retry logic and exponential backoff
1378
+ retry_count=0
1379
+ wait_seconds=300 # Start with 5 minutes
1380
+ max_wait_seconds=1800 # Cap at 30 minutes
1381
+
1382
+ while true; do
1383
+ if [[ $use_strategies == true ]]; then
1384
+ echo "[INFO] Multi-strategy AI generation mode"
1385
+ if ideate_ai_strategies; then
1386
+ echo "[INFO] Ideation complete! Check $EVOLUTION_CSV for new ideas."
1387
+ exit 0
1388
+ fi
1389
+ else
1390
+ echo "[INFO] Legacy AI generation mode"
1391
+ if ideate_ai_legacy; then
1392
+ echo "[INFO] Ideation complete! Check $EVOLUTION_CSV for new ideas."
1393
+ exit 0
1394
+ fi
1395
+ fi
1396
+
1397
+ # If we reach here, ideation failed
1398
+ ((retry_count++))
1399
+
1400
+ echo "[WARN] All ideation attempts failed (retry #$retry_count)" >&2
1401
+ echo "[INFO] This could be temporary API rate limits or service issues" >&2
1402
+ echo "[INFO] Waiting $wait_seconds seconds ($(($wait_seconds / 60)) minutes) before retrying..." >&2
1403
+
1404
+ # Sleep with countdown
1405
+ remaining=$wait_seconds
1406
+ while [[ $remaining -gt 0 ]]; do
1407
+ if [[ $((remaining % 60)) -eq 0 ]]; then
1408
+ echo "[INFO] Retrying in $((remaining / 60)) minutes..." >&2
1409
+ fi
1410
+ sleep 60
1411
+ remaining=$((remaining - 60))
1412
+ done
1413
+
1414
+ echo "[INFO] Retrying ideation (attempt #$((retry_count + 1)))..." >&2
1415
+
1416
+ # Exponential backoff: double the wait time, up to max
1417
+ wait_seconds=$((wait_seconds * 2))
1418
+ if [[ $wait_seconds -gt $max_wait_seconds ]]; then
1419
+ wait_seconds=$max_wait_seconds
1420
+ fi
1421
+ done
package/lib/config.sh CHANGED
@@ -55,7 +55,7 @@ DEFAULT_MEMORY_LIMIT_MB=12288
55
55
 
56
56
  # Default LLM CLI configuration - use simple variables instead of arrays
57
57
  DEFAULT_LLM_RUN="sonnet gpt5 cursor-sonnet"
58
- DEFAULT_LLM_IDEATE="gemini opus-think sonnet-think gpt5high o3high cursor-opus"
58
+ DEFAULT_LLM_IDEATE="gemini opus-think sonnet-think sonnet-think sonnet-think gpt5high o3high cursor-opus"
59
59
 
60
60
  # Load configuration from config file
61
61
  load_config() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.5.19",
3
+ "version": "1.5.21",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",