claude-evolve 1.8.24 → 1.8.25
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-ideate +7 -6
- package/package.json +1 -1
package/bin/claude-evolve-ideate
CHANGED
|
@@ -335,14 +335,15 @@ print(max_gen)
|
|
|
335
335
|
# Keep incrementing until we find a generation with no Python files
|
|
336
336
|
local candidate_gen=$start_gen
|
|
337
337
|
while true; do
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
# No padding - generation numbers are used as-is in filenames
|
|
339
|
+
local gen_formatted="$candidate_gen"
|
|
340
|
+
|
|
340
341
|
# Check if any Python files exist for this generation
|
|
341
342
|
local py_files_exist=false
|
|
342
343
|
if ls "$FULL_OUTPUT_DIR"/evolution_gen${gen_formatted}-*.py >/dev/null 2>&1; then
|
|
343
344
|
py_files_exist=true
|
|
344
345
|
fi
|
|
345
|
-
|
|
346
|
+
|
|
346
347
|
if [[ "$py_files_exist" == "false" ]]; then
|
|
347
348
|
# This generation is safe to use
|
|
348
349
|
echo "$gen_formatted"
|
|
@@ -350,10 +351,10 @@ print(max_gen)
|
|
|
350
351
|
else
|
|
351
352
|
echo "[WARN] Generation $gen_formatted already has Python files, skipping to next generation" >&2
|
|
352
353
|
candidate_gen=$((candidate_gen + 1))
|
|
353
|
-
|
|
354
|
+
|
|
354
355
|
# Safety check to prevent infinite loop
|
|
355
|
-
if [[ $candidate_gen -gt
|
|
356
|
-
echo "[ERROR] Could not find a safe generation number (checked up to
|
|
356
|
+
if [[ $candidate_gen -gt 9999 ]]; then
|
|
357
|
+
echo "[ERROR] Could not find a safe generation number (checked up to 9999)" >&2
|
|
357
358
|
exit 1
|
|
358
359
|
fi
|
|
359
360
|
fi
|