claude-evolve 1.7.2 → 1.7.3

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.
@@ -131,17 +131,25 @@ call_ai_for_ideation() {
131
131
  # Try each model until CSV changes
132
132
  for model in "${ordered_models[@]}"; do
133
133
  echo "[AI] Attempting ideate with $model" >&2
134
-
134
+
135
+ # Restore temp CSV before each attempt (in case previous model corrupted it)
136
+ # This ensures each model starts with the original data
137
+ if [[ -f "$FULL_CSV_PATH" ]]; then
138
+ cp "$FULL_CSV_PATH" "$temp_csv_file"
139
+ # Recapture original count in case it changed
140
+ original_csv_count=$(grep -v '^[[:space:]]*$' "$temp_csv_file" | tail -n +2 | wc -l)
141
+ fi
142
+
135
143
  # Call the model directly
136
144
  local ai_output
137
145
  ai_output=$(call_ai_model_configured "$model" "$prompt")
138
146
  local ai_exit_code=$?
139
-
147
+
140
148
  # Check if the file was modified - this is ALL that matters
141
149
  if [[ -f "$temp_csv_file" ]]; then
142
150
  local new_csv_count
143
151
  new_csv_count=$(grep -v '^[[:space:]]*$' "$temp_csv_file" | tail -n +2 | wc -l)
144
-
152
+
145
153
  if [[ $new_csv_count -gt $original_csv_count ]]; then
146
154
  echo "[INFO] CSV was modified by $model ($new_csv_count vs $original_csv_count rows) - validating format..." >&2
147
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",