claude-evolve 1.4.1 → 1.4.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.
package/bin/claude-evolve-run
CHANGED
|
@@ -11,7 +11,18 @@ source "$SCRIPT_DIR/../lib/config.sh"
|
|
|
11
11
|
if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
|
|
12
12
|
load_config "$CLAUDE_EVOLVE_CONFIG"
|
|
13
13
|
else
|
|
14
|
-
|
|
14
|
+
# Check if config.yaml exists in current directory
|
|
15
|
+
if [[ -f "config.yaml" ]]; then
|
|
16
|
+
export CLAUDE_EVOLVE_CONFIG="$(pwd)/config.yaml"
|
|
17
|
+
load_config "$CLAUDE_EVOLVE_CONFIG"
|
|
18
|
+
else
|
|
19
|
+
load_config
|
|
20
|
+
fi
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
# Export the config path for workers if not already set
|
|
24
|
+
if [[ -z ${CLAUDE_EVOLVE_CONFIG:-} ]] && [[ -f "config.yaml" ]]; then
|
|
25
|
+
export CLAUDE_EVOLVE_CONFIG="$(pwd)/config.yaml"
|
|
15
26
|
fi
|
|
16
27
|
|
|
17
28
|
# Validate configuration
|
package/bin/claude-evolve-worker
CHANGED
|
@@ -6,6 +6,13 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
|
|
|
6
6
|
source "$SCRIPT_DIR/../lib/config.sh"
|
|
7
7
|
source "$SCRIPT_DIR/../lib/csv-lock.sh"
|
|
8
8
|
|
|
9
|
+
# Load config using the same logic as dispatcher
|
|
10
|
+
if [[ -n ${CLAUDE_EVOLVE_CONFIG:-} ]]; then
|
|
11
|
+
load_config "$CLAUDE_EVOLVE_CONFIG"
|
|
12
|
+
else
|
|
13
|
+
load_config
|
|
14
|
+
fi
|
|
15
|
+
|
|
9
16
|
# Parse arguments
|
|
10
17
|
timeout_seconds=""
|
|
11
18
|
while [[ $# -gt 0 ]]; do
|
|
@@ -56,12 +63,14 @@ process_candidate() {
|
|
|
56
63
|
|
|
57
64
|
# Check if processing should be skipped
|
|
58
65
|
if [[ -f "$target_file" ]]; then
|
|
59
|
-
echo "[WORKER-$$] � Skipping copy - File already exists - skipping all processing"
|
|
60
|
-
echo "[WORKER-$$] � Skipping Claude processing - File already exists - skipping all processing"
|
|
66
|
+
echo "[WORKER-$$] � Skipping copy - File already exists - skipping all processing"
|
|
67
|
+
echo "[WORKER-$$] � Skipping Claude processing - File already exists - skipping all processing"
|
|
61
68
|
|
|
62
69
|
# Check if already evaluated
|
|
63
70
|
local current_status
|
|
64
71
|
current_status=$("$PYTHON_CMD" -c "
|
|
72
|
+
import sys
|
|
73
|
+
sys.path.insert(0, '$SCRIPT_DIR/..')
|
|
65
74
|
from lib.evolution_csv import EvolutionCSV
|
|
66
75
|
csv = EvolutionCSV('$FULL_CSV_PATH')
|
|
67
76
|
status = csv.get_candidate_status('$candidate_id')
|
|
@@ -119,6 +128,8 @@ Important: Make meaningful changes that match the description. Don't just add co
|
|
|
119
128
|
|
|
120
129
|
# Update CSV with result
|
|
121
130
|
"$PYTHON_CMD" -c "
|
|
131
|
+
import sys
|
|
132
|
+
sys.path.insert(0, '$SCRIPT_DIR/..')
|
|
122
133
|
from lib.evolution_csv import EvolutionCSV
|
|
123
134
|
csv = EvolutionCSV('$FULL_CSV_PATH')
|
|
124
135
|
csv.update_candidate_status('$candidate_id', 'complete', performance='$score')
|
|
@@ -135,6 +146,8 @@ csv.update_candidate_status('$candidate_id', 'complete', performance='$score')
|
|
|
135
146
|
|
|
136
147
|
# Mark as failed in CSV
|
|
137
148
|
"$PYTHON_CMD" -c "
|
|
149
|
+
import sys
|
|
150
|
+
sys.path.insert(0, '$SCRIPT_DIR/..')
|
|
138
151
|
from lib.evolution_csv import EvolutionCSV
|
|
139
152
|
csv = EvolutionCSV('$FULL_CSV_PATH')
|
|
140
153
|
csv.update_candidate_status('$candidate_id', 'failed')
|
|
@@ -150,6 +163,8 @@ echo "[WORKER-$$] Worker started"
|
|
|
150
163
|
while true; do
|
|
151
164
|
# Try to claim a pending candidate
|
|
152
165
|
candidate_info=$("$PYTHON_CMD" -c "
|
|
166
|
+
import sys
|
|
167
|
+
sys.path.insert(0, '$SCRIPT_DIR/..')
|
|
153
168
|
from lib.evolution_csv import EvolutionCSV
|
|
154
169
|
csv = EvolutionCSV('$FULL_CSV_PATH')
|
|
155
170
|
candidate = csv.claim_next_pending()
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|