claude-evolve 1.6.24 → 1.6.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/lib/config.py CHANGED
@@ -43,6 +43,9 @@ class Config:
43
43
 
44
44
  def load(self, config_path=None, working_dir=None):
45
45
  """Load configuration from YAML file."""
46
+ # Initialize working_dir with a default
47
+ self.working_dir = Path('evolution')
48
+
46
49
  # Determine self.working_dir (EVOLUTION_DIR equivalent) based on specified logic
47
50
  if working_dir:
48
51
  self.working_dir = Path(working_dir)
@@ -50,8 +53,6 @@ class Config:
50
53
  self.working_dir = Path('evolution')
51
54
  elif Path('./evolution.csv').exists():
52
55
  self.working_dir = Path('.')
53
- else:
54
- self.working_dir = Path('evolution') # Default
55
56
 
56
57
  # Determine local config file path relative to self.working_dir
57
58
  local_config_path = None
package/lib/config.sh CHANGED
@@ -172,19 +172,8 @@ _load_yaml_config() {
172
172
 
173
173
  # Load configuration from config file
174
174
  load_config() {
175
- # Determine EVOLUTION_DIR based on specified logic
176
- local user_working_dir="$1"
177
- if [[ -n "$user_working_dir" ]]; then
178
- EVOLUTION_DIR="$user_working_dir"
179
- elif [[ -f "evolution/evolution.csv" ]]; then
180
- EVOLUTION_DIR="evolution"
181
- elif [[ -f "./evolution.csv" ]]; then
182
- EVOLUTION_DIR="."
183
- else
184
- EVOLUTION_DIR="$DEFAULT_EVOLUTION_DIR"
185
- fi
186
-
187
175
  # Set defaults first
176
+ EVOLUTION_DIR="$DEFAULT_EVOLUTION_DIR" # Initialize with default
188
177
  ALGORITHM_FILE="$DEFAULT_ALGORITHM_FILE"
189
178
  EVALUATOR_FILE="$DEFAULT_EVALUATOR_FILE"
190
179
  BRIEF_FILE="$DEFAULT_BRIEF_FILE"
@@ -192,6 +181,16 @@ load_config() {
192
181
  OUTPUT_DIR="$DEFAULT_OUTPUT_DIR"
193
182
  PARENT_SELECTION="$DEFAULT_PARENT_SELECTION"
194
183
  PYTHON_CMD="$DEFAULT_PYTHON_CMD"
184
+
185
+ # Determine EVOLUTION_DIR based on specified logic, overriding default if found
186
+ local user_working_dir="$1"
187
+ if [[ -n "$user_working_dir" ]]; then
188
+ EVOLUTION_DIR="$user_working_dir"
189
+ elif [[ -f "evolution/evolution.csv" ]]; then
190
+ EVOLUTION_DIR="evolution"
191
+ elif [[ -f "./evolution.csv" ]]; then
192
+ EVOLUTION_DIR="."
193
+ fi
195
194
 
196
195
  TOTAL_IDEAS="$DEFAULT_TOTAL_IDEAS"
197
196
  NOVEL_EXPLORATION="$DEFAULT_NOVEL_EXPLORATION"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.6.24",
3
+ "version": "1.6.25",
4
4
  "bin": {
5
5
  "claude-evolve": "./bin/claude-evolve",
6
6
  "claude-evolve-main": "./bin/claude-evolve-main",