claude-evolve 1.8.48 → 1.8.49

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
@@ -1733,7 +1733,7 @@ else
1733
1733
  existing_ideas=$(count_generation_ideas "$highest_gen")
1734
1734
  pending_ideas=$(count_generation_pending "$highest_gen")
1735
1735
  # Also check padded format
1736
- padded_gen=$(printf "%02d" "$highest_gen")
1736
+ padded_gen=$(printf "%02d" "$((10#$highest_gen))")
1737
1737
  existing_ideas_padded=$(count_generation_ideas "$padded_gen")
1738
1738
  pending_ideas_padded=$(count_generation_pending "$padded_gen")
1739
1739
  # Use whichever found more (handles both gen1 and gen01 formats)
@@ -1748,7 +1748,7 @@ else
1748
1748
  # Highest generation is full, create a new one
1749
1749
  CURRENT_GENERATION=$(get_next_generation)
1750
1750
  # Ensure it's zero-padded
1751
- CURRENT_GENERATION=$(printf "%02d" "$CURRENT_GENERATION")
1751
+ CURRENT_GENERATION=$(printf "%02d" "$((10#$CURRENT_GENERATION))")
1752
1752
  echo "[INFO] Generation $highest_gen is full ($existing_ideas >= $TOTAL_IDEAS), creating generation $CURRENT_GENERATION"
1753
1753
  elif [[ $pending_ideas -ge $TOTAL_IDEAS ]]; then
1754
1754
  # Already have enough pending, skip ideation
@@ -1757,7 +1757,7 @@ else
1757
1757
  exit 0
1758
1758
  else
1759
1759
  # Continue filling the current highest generation - use padded format
1760
- CURRENT_GENERATION=$(printf "%02d" "$highest_gen")
1760
+ CURRENT_GENERATION=$(printf "%02d" "$((10#$highest_gen))")
1761
1761
  echo "[INFO] Continuing generation $CURRENT_GENERATION (need $((TOTAL_IDEAS - existing_ideas)) more ideas)"
1762
1762
  fi
1763
1763
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.8.48",
3
+ "version": "1.8.49",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",