claude-evolve 1.8.48 → 1.8.51

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.
@@ -271,7 +271,7 @@ print(max_gen)
271
271
  while true; do
272
272
  # Zero-pad to 2 digits for consistency (gen01, gen02, etc.)
273
273
  local gen_formatted
274
- gen_formatted=$(printf "%02d" "$candidate_gen")
274
+ gen_formatted=$(printf "%02d" "$((10#$candidate_gen))")
275
275
 
276
276
  # Check if any Python files exist for this generation (check both padded and unpadded)
277
277
  local py_files_exist=false
@@ -1094,16 +1094,12 @@ CRITICAL: You must use your file editing tools (Edit/MultiEdit) to modify the CS
1094
1094
 
1095
1095
  # Get AI to directly edit the CSV file
1096
1096
  local ai_response
1097
- local stderr_file="stderr-$$.txt"
1098
- # Temporarily show stderr for debugging
1099
1097
  if ! ai_response=$(call_ai_for_ideation "$prompt" "$CURRENT_GENERATION" "$count" "$temp_csv_basename"); then
1100
1098
  echo "[ERROR] AI model failed to generate novel ideas" >&2
1101
- cat "$stderr_file" >&2
1102
1099
  safe_popd
1103
- rm -f "$temp_csv" "$stderr_file"
1100
+ rm -f "$temp_csv"
1104
1101
  return 1
1105
1102
  fi
1106
- rm -f "$stderr_file"
1107
1103
 
1108
1104
  # Restore working directory
1109
1105
  safe_popd
@@ -1213,7 +1209,7 @@ If you must read source files:
1213
1209
  - Focus only on finding parameter definitions at the top of the file
1214
1210
  - Do NOT read the entire implementation
1215
1211
 
1216
- Most of the time, you can infer parameters from descriptions like "RSI with threshold 30" or "MA period 20".
1212
+ Most of the time, you can infer parameters from descriptions like 'RSI with threshold 30' or 'MA period 20'.
1217
1213
 
1218
1214
  CRITICAL TASK:
1219
1215
  The CSV file already contains $count stub rows with these IDs: $required_ids_str
@@ -1247,16 +1243,12 @@ CRITICAL INSTRUCTIONS:
1247
1243
 
1248
1244
  # Get AI to directly edit the CSV file
1249
1245
  local ai_response
1250
- local stderr_file="stderr-$$.txt"
1251
- # Temporarily show stderr for debugging
1252
1246
  if ! ai_response=$(call_ai_for_ideation "$prompt" "$CURRENT_GENERATION" "$count" "$temp_csv_basename"); then
1253
1247
  echo "[ERROR] AI model failed to generate hill climbing ideas" >&2
1254
- cat "$stderr_file" >&2
1255
1248
  safe_popd
1256
- rm -f "$temp_csv" "$stderr_file"
1249
+ rm -f "$temp_csv"
1257
1250
  return 1
1258
1251
  fi
1259
- rm -f "$stderr_file"
1260
1252
 
1261
1253
  # Restore working directory
1262
1254
  safe_popd
@@ -1390,16 +1382,12 @@ CRITICAL INSTRUCTIONS:
1390
1382
 
1391
1383
  # Get AI to directly edit the CSV file
1392
1384
  local ai_response
1393
- local stderr_file="stderr-$$.txt"
1394
- # Temporarily show stderr for debugging
1395
1385
  if ! ai_response=$(call_ai_for_ideation "$prompt" "$CURRENT_GENERATION" "$count" "$temp_csv_basename"); then
1396
1386
  echo "[ERROR] AI model failed to generate structural mutation ideas" >&2
1397
- cat "$stderr_file" >&2
1398
1387
  safe_popd
1399
- rm -f "$temp_csv" "$stderr_file"
1388
+ rm -f "$temp_csv"
1400
1389
  return 1
1401
1390
  fi
1402
- rm -f "$stderr_file"
1403
1391
 
1404
1392
  # Restore working directory
1405
1393
  safe_popd
@@ -1533,16 +1521,12 @@ CRITICAL INSTRUCTIONS:
1533
1521
 
1534
1522
  # Get AI to directly edit the CSV file
1535
1523
  local ai_response
1536
- local stderr_file="stderr-$$.txt"
1537
- # Temporarily show stderr for debugging
1538
1524
  if ! ai_response=$(call_ai_for_ideation "$prompt" "$CURRENT_GENERATION" "$count" "$temp_csv_basename"); then
1539
1525
  echo "[ERROR] AI model failed to generate crossover hybrid ideas" >&2
1540
- cat "$stderr_file" >&2
1541
1526
  safe_popd
1542
- rm -f "$temp_csv" "$stderr_file"
1527
+ rm -f "$temp_csv"
1543
1528
  return 1
1544
1529
  fi
1545
- rm -f "$stderr_file"
1546
1530
 
1547
1531
  # Restore working directory
1548
1532
  safe_popd
@@ -1654,15 +1638,12 @@ CRITICAL: You must use your file editing tools (Edit/MultiEdit) to modify the CS
1654
1638
 
1655
1639
  # Get AI to directly edit the CSV file
1656
1640
  local ai_response
1657
- local stderr_file="stderr-$$.txt"
1658
- if ! ai_response=$(call_ai_for_ideation "$prompt" "$CURRENT_GENERATION" "$TOTAL_IDEAS" "$temp_csv_basename" 2>"$stderr_file"); then
1641
+ if ! ai_response=$(call_ai_for_ideation "$prompt" "$CURRENT_GENERATION" "$TOTAL_IDEAS" "$temp_csv_basename"); then
1659
1642
  echo "[ERROR] AI model failed to generate ideas" >&2
1660
- cat "$stderr_file" >&2
1661
1643
  safe_popd
1662
- rm -f "$temp_csv" "$stderr_file"
1644
+ rm -f "$temp_csv"
1663
1645
  return 1
1664
1646
  fi
1665
- rm -f "$stderr_file"
1666
1647
 
1667
1648
  # Restore working directory
1668
1649
  safe_popd
@@ -1733,7 +1714,7 @@ else
1733
1714
  existing_ideas=$(count_generation_ideas "$highest_gen")
1734
1715
  pending_ideas=$(count_generation_pending "$highest_gen")
1735
1716
  # Also check padded format
1736
- padded_gen=$(printf "%02d" "$highest_gen")
1717
+ padded_gen=$(printf "%02d" "$((10#$highest_gen))")
1737
1718
  existing_ideas_padded=$(count_generation_ideas "$padded_gen")
1738
1719
  pending_ideas_padded=$(count_generation_pending "$padded_gen")
1739
1720
  # Use whichever found more (handles both gen1 and gen01 formats)
@@ -1748,7 +1729,7 @@ else
1748
1729
  # Highest generation is full, create a new one
1749
1730
  CURRENT_GENERATION=$(get_next_generation)
1750
1731
  # Ensure it's zero-padded
1751
- CURRENT_GENERATION=$(printf "%02d" "$CURRENT_GENERATION")
1732
+ CURRENT_GENERATION=$(printf "%02d" "$((10#$CURRENT_GENERATION))")
1752
1733
  echo "[INFO] Generation $highest_gen is full ($existing_ideas >= $TOTAL_IDEAS), creating generation $CURRENT_GENERATION"
1753
1734
  elif [[ $pending_ideas -ge $TOTAL_IDEAS ]]; then
1754
1735
  # Already have enough pending, skip ideation
@@ -1757,7 +1738,7 @@ else
1757
1738
  exit 0
1758
1739
  else
1759
1740
  # Continue filling the current highest generation - use padded format
1760
- CURRENT_GENERATION=$(printf "%02d" "$highest_gen")
1741
+ CURRENT_GENERATION=$(printf "%02d" "$((10#$highest_gen))")
1761
1742
  echo "[INFO] Continuing generation $CURRENT_GENERATION (need $((TOTAL_IDEAS - existing_ideas)) more ideas)"
1762
1743
  fi
1763
1744
  fi
package/lib/ai-cli.sh CHANGED
@@ -96,12 +96,12 @@ $prompt"
96
96
  ;;
97
97
  gpt5high)
98
98
  local ai_output
99
- ai_output=$(timeout -k 30 600 codex exec -m gpt-5.1 -c model_reasoning_effort="high" --dangerously-bypass-approvals-and-sandbox "$prompt" 2>&1)
99
+ ai_output=$(timeout -k 30 600 codex exec -m gpt-5.2 -c model_reasoning_effort="high" --dangerously-bypass-approvals-and-sandbox "$prompt" 2>&1)
100
100
  local ai_exit_code=$?
101
101
  ;;
102
102
  gpt5)
103
103
  local ai_output
104
- ai_output=$(timeout -k 30 600 codex exec -m gpt-5.1 --dangerously-bypass-approvals-and-sandbox "$prompt" 2>&1)
104
+ ai_output=$(timeout -k 30 600 codex exec -m gpt-5.2 --dangerously-bypass-approvals-and-sandbox "$prompt" 2>&1)
105
105
  local ai_exit_code=$?
106
106
  ;;
107
107
  o3high)
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.8.48",
3
+ "version": "1.8.51",
4
4
  "bin": {
5
- "claude-evolve": "./bin/claude-evolve",
6
- "claude-evolve-main": "./bin/claude-evolve-main",
7
- "claude-evolve-setup": "./bin/claude-evolve-setup",
8
- "claude-evolve-ideate": "./bin/claude-evolve-ideate",
9
- "claude-evolve-run": "./bin/claude-evolve-run",
10
- "claude-evolve-worker": "./bin/claude-evolve-worker",
11
- "claude-evolve-analyze": "./bin/claude-evolve-analyze",
12
- "claude-evolve-config": "./bin/claude-evolve-config",
13
- "claude-evolve-killall": "./bin/claude-evolve-killall"
5
+ "claude-evolve": "bin/claude-evolve",
6
+ "claude-evolve-main": "bin/claude-evolve-main",
7
+ "claude-evolve-setup": "bin/claude-evolve-setup",
8
+ "claude-evolve-ideate": "bin/claude-evolve-ideate",
9
+ "claude-evolve-run": "bin/claude-evolve-run",
10
+ "claude-evolve-worker": "bin/claude-evolve-worker",
11
+ "claude-evolve-analyze": "bin/claude-evolve-analyze",
12
+ "claude-evolve-config": "bin/claude-evolve-config",
13
+ "claude-evolve-killall": "bin/claude-evolve-killall"
14
14
  },
15
15
  "files": [
16
16
  "bin/",