claude-evolve 1.6.13 → 1.6.15
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.
- package/bin/claude-evolve-worker +9 -7
- package/package.json +1 -1
package/bin/claude-evolve-worker
CHANGED
|
@@ -158,11 +158,7 @@ call_ai_for_evolution() {
|
|
|
158
158
|
fi
|
|
159
159
|
fi
|
|
160
160
|
|
|
161
|
-
|
|
162
|
-
# Aider-qwen3/qwen3 handles file modification internally, so for those, ai_output will be empty.
|
|
163
|
-
if [[ -n "$ai_output" ]]; then
|
|
164
|
-
echo "$ai_output" > "$target_file"
|
|
165
|
-
fi
|
|
161
|
+
|
|
166
162
|
|
|
167
163
|
# Check if the target file was actually modified
|
|
168
164
|
local file_was_modified=false
|
|
@@ -324,8 +320,14 @@ with EvolutionCSV('$FULL_CSV_PATH') as csv:
|
|
|
324
320
|
if ! "$PYTHON_CMD" -m py_compile "$target_file" 2>&1; then
|
|
325
321
|
echo "[WORKER-$$] ERROR: Generated Python file has syntax errors!" >&2
|
|
326
322
|
echo "[WORKER-$$] File: $target_file" >&2
|
|
327
|
-
#
|
|
328
|
-
|
|
323
|
+
# Delete the problematic Python file
|
|
324
|
+
rm -f "$target_file"
|
|
325
|
+
echo "[WORKER-$$] Deleted corrupted algorithm file: $target_file" >&2
|
|
326
|
+
# Set status to pending for retry
|
|
327
|
+
update_candidate_status "$candidate_id" "pending"
|
|
328
|
+
# Return 0 to indicate that this specific processing step is handled,
|
|
329
|
+
# and the candidate is now pending for a future retry.
|
|
330
|
+
return 0
|
|
329
331
|
fi
|
|
330
332
|
fi
|
|
331
333
|
fi
|