claude-evolve 1.4.3 → 1.4.4

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.
@@ -72,9 +72,12 @@ process_candidate() {
72
72
  import sys
73
73
  sys.path.insert(0, '$SCRIPT_DIR/..')
74
74
  from lib.evolution_csv import EvolutionCSV
75
- csv = EvolutionCSV('$FULL_CSV_PATH')
76
- status = csv.get_candidate_status('$candidate_id')
77
- print(status if status else 'unknown')
75
+ with EvolutionCSV('$FULL_CSV_PATH') as csv:
76
+ candidate = csv.get_candidate_info('$candidate_id')
77
+ if candidate:
78
+ print(candidate.get('status', 'unknown'))
79
+ else:
80
+ print('unknown')
78
81
  ")
79
82
 
80
83
  if [[ "$current_status" == "complete" ]]; then
@@ -131,8 +134,9 @@ Important: Make meaningful changes that match the description. Don't just add co
131
134
  import sys
132
135
  sys.path.insert(0, '$SCRIPT_DIR/..')
133
136
  from lib.evolution_csv import EvolutionCSV
134
- csv = EvolutionCSV('$FULL_CSV_PATH')
135
- csv.update_candidate_status('$candidate_id', 'complete', performance='$score')
137
+ with EvolutionCSV('$FULL_CSV_PATH') as csv:
138
+ csv.update_candidate_status('$candidate_id', 'complete')
139
+ csv.update_candidate_performance('$candidate_id', '$score')
136
140
  "
137
141
  else
138
142
  echo "[WORKER-$$] ERROR: No score found in evaluation output" >&2
@@ -149,8 +153,8 @@ csv.update_candidate_status('$candidate_id', 'complete', performance='$score')
149
153
  import sys
150
154
  sys.path.insert(0, '$SCRIPT_DIR/..')
151
155
  from lib.evolution_csv import EvolutionCSV
152
- csv = EvolutionCSV('$FULL_CSV_PATH')
153
- csv.update_candidate_status('$candidate_id', 'failed')
156
+ with EvolutionCSV('$FULL_CSV_PATH') as csv:
157
+ csv.update_candidate_status('$candidate_id', 'failed')
154
158
  "
155
159
 
156
160
  return $exit_code
@@ -166,10 +170,14 @@ while true; do
166
170
  import sys
167
171
  sys.path.insert(0, '$SCRIPT_DIR/..')
168
172
  from lib.evolution_csv import EvolutionCSV
169
- csv = EvolutionCSV('$FULL_CSV_PATH')
170
- candidate = csv.claim_next_pending()
171
- if candidate:
172
- print(f'{candidate[\"id\"]}|{candidate.get(\"parent_id\", \"\")}|{candidate[\"description\"]}')
173
+ with EvolutionCSV('$FULL_CSV_PATH') as csv:
174
+ result = csv.get_next_pending_candidate()
175
+ if result:
176
+ candidate_id, _ = result
177
+ # Get full candidate info
178
+ candidate = csv.get_candidate_info(candidate_id)
179
+ if candidate:
180
+ print(f'{candidate[\"id\"]}|{candidate.get(\"parent_id\", \"\")}|{candidate[\"description\"]}')
173
181
  ")
174
182
 
175
183
  if [[ -z "$candidate_info" ]]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",