claude-evolve 1.0.12 → 1.0.14
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-run +4 -0
- package/lib/config.sh +3 -24
- package/package.json +1 -1
package/bin/claude-evolve-run
CHANGED
|
@@ -125,7 +125,9 @@ fi
|
|
|
125
125
|
|
|
126
126
|
# Get row data
|
|
127
127
|
row_data=$(get_csv_row "$row_num")
|
|
128
|
+
echo "[DEBUG] Raw row data: '$row_data'"
|
|
128
129
|
IFS=, read -r id based_on_id description performance status <<<"$row_data"
|
|
130
|
+
echo "[DEBUG] After parsing - ID: '$id', based_on_id: '$based_on_id'"
|
|
129
131
|
|
|
130
132
|
# Check if ID is empty
|
|
131
133
|
if [[ -z $id ]]; then
|
|
@@ -165,7 +167,9 @@ fi
|
|
|
165
167
|
echo "[INFO] Using parent algorithm: $parent_file"
|
|
166
168
|
|
|
167
169
|
# Generate mutation
|
|
170
|
+
echo "[DEBUG] ID is: '$id', FULL_OUTPUT_DIR is: '$FULL_OUTPUT_DIR'"
|
|
168
171
|
output_file="$FULL_OUTPUT_DIR/evolution_id${id}.py"
|
|
172
|
+
echo "[DEBUG] Output file will be: '$output_file'"
|
|
169
173
|
echo "[INFO] Generating algorithm mutation..."
|
|
170
174
|
|
|
171
175
|
# Copy parent algorithm to output file first
|
package/lib/config.sh
CHANGED
|
@@ -57,31 +57,10 @@ load_config() {
|
|
|
57
57
|
done < "$config_file"
|
|
58
58
|
fi
|
|
59
59
|
|
|
60
|
-
# Create full paths
|
|
60
|
+
# Create full paths - ALL paths are relative to evolution_dir
|
|
61
61
|
FULL_EVOLUTION_DIR="$EVOLUTION_DIR"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if [[ $ALGORITHM_FILE == /* ]]; then
|
|
65
|
-
# Absolute path
|
|
66
|
-
FULL_ALGORITHM_PATH="$ALGORITHM_FILE"
|
|
67
|
-
elif [[ $ALGORITHM_FILE == ../* ]]; then
|
|
68
|
-
# Relative to parent directory
|
|
69
|
-
FULL_ALGORITHM_PATH="$ALGORITHM_FILE"
|
|
70
|
-
else
|
|
71
|
-
# Relative to evolution directory
|
|
72
|
-
FULL_ALGORITHM_PATH="$EVOLUTION_DIR/$ALGORITHM_FILE"
|
|
73
|
-
fi
|
|
74
|
-
|
|
75
|
-
# Same for evaluator
|
|
76
|
-
if [[ $EVALUATOR_FILE == /* ]]; then
|
|
77
|
-
FULL_EVALUATOR_PATH="$EVALUATOR_FILE"
|
|
78
|
-
elif [[ $EVALUATOR_FILE == ../* ]]; then
|
|
79
|
-
FULL_EVALUATOR_PATH="$EVALUATOR_FILE"
|
|
80
|
-
else
|
|
81
|
-
FULL_EVALUATOR_PATH="$EVOLUTION_DIR/$EVALUATOR_FILE"
|
|
82
|
-
fi
|
|
83
|
-
|
|
84
|
-
# Brief and CSV are always in evolution dir
|
|
62
|
+
FULL_ALGORITHM_PATH="$EVOLUTION_DIR/$ALGORITHM_FILE"
|
|
63
|
+
FULL_EVALUATOR_PATH="$EVOLUTION_DIR/$EVALUATOR_FILE"
|
|
85
64
|
FULL_BRIEF_PATH="$EVOLUTION_DIR/$BRIEF_FILE"
|
|
86
65
|
FULL_CSV_PATH="$EVOLUTION_DIR/$EVOLUTION_CSV"
|
|
87
66
|
|