claude-evolve 1.8.0 → 1.8.1
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 +8 -0
- package/package.json +1 -1
package/bin/claude-evolve-ideate
CHANGED
|
@@ -989,6 +989,8 @@ generate_novel_ideas_direct() {
|
|
|
989
989
|
# Generate the list of IDs this strategy should use
|
|
990
990
|
local next_id_num
|
|
991
991
|
next_id_num=$(echo "$next_id" | grep -o '[0-9]*$')
|
|
992
|
+
# Strip leading zeros to avoid octal interpretation in arithmetic
|
|
993
|
+
next_id_num=$((10#$next_id_num))
|
|
992
994
|
local required_ids=()
|
|
993
995
|
for ((i=0; i<count; i++)); do
|
|
994
996
|
required_ids+=("$(printf "gen%s-%03d" "$CURRENT_GENERATION" $((next_id_num + i)))")
|
|
@@ -1121,6 +1123,8 @@ generate_hill_climbing_direct() {
|
|
|
1121
1123
|
# Generate the list of IDs this strategy should use
|
|
1122
1124
|
local next_id_num
|
|
1123
1125
|
next_id_num=$(echo "$next_id" | grep -o '[0-9]*$')
|
|
1126
|
+
# Strip leading zeros to avoid octal interpretation in arithmetic
|
|
1127
|
+
next_id_num=$((10#$next_id_num))
|
|
1124
1128
|
local required_ids=()
|
|
1125
1129
|
for ((i=0; i<count; i++)); do
|
|
1126
1130
|
required_ids+=("$(printf "gen%s-%03d" "$CURRENT_GENERATION" $((next_id_num + i)))")
|
|
@@ -1251,6 +1255,8 @@ generate_structural_mutation_direct() {
|
|
|
1251
1255
|
# Generate the list of IDs this strategy should use
|
|
1252
1256
|
local next_id_num
|
|
1253
1257
|
next_id_num=$(echo "$next_id" | grep -o '[0-9]*$')
|
|
1258
|
+
# Strip leading zeros to avoid octal interpretation in arithmetic
|
|
1259
|
+
next_id_num=$((10#$next_id_num))
|
|
1254
1260
|
local required_ids=()
|
|
1255
1261
|
for ((i=0; i<count; i++)); do
|
|
1256
1262
|
required_ids+=("$(printf "gen%s-%03d" "$CURRENT_GENERATION" $((next_id_num + i)))")
|
|
@@ -1371,6 +1377,8 @@ generate_crossover_direct() {
|
|
|
1371
1377
|
# Generate the list of IDs this strategy should use
|
|
1372
1378
|
local next_id_num
|
|
1373
1379
|
next_id_num=$(echo "$next_id" | grep -o '[0-9]*$')
|
|
1380
|
+
# Strip leading zeros to avoid octal interpretation in arithmetic
|
|
1381
|
+
next_id_num=$((10#$next_id_num))
|
|
1374
1382
|
local required_ids=()
|
|
1375
1383
|
for ((i=0; i<count; i++)); do
|
|
1376
1384
|
required_ids+=("$(printf "gen%s-%03d" "$CURRENT_GENERATION" $((next_id_num + i)))")
|