claude-evolve 1.9.1 → 1.9.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.
Files changed (2) hide show
  1. package/lib/ai_cli.py +11 -1
  2. package/package.json +1 -1
package/lib/ai_cli.py CHANGED
@@ -6,6 +6,7 @@ AIDEV-NOTE: This keeps ai-cli.sh as the source of truth for model configs and ti
6
6
 
7
7
  import os
8
8
  import subprocess
9
+ import sys
9
10
  import tempfile
10
11
  from pathlib import Path
11
12
  from typing import Optional, Tuple
@@ -97,15 +98,18 @@ def call_ai(
97
98
  model_file = f"/tmp/.claude-evolve-model-{pid}"
98
99
 
99
100
  # Build the bash command that sources config and calls the AI
100
- # We need to source config.sh first to get LLM_RUN/LLM_IDEATE variables
101
+ # We need to source config.sh and call load_config to get LLM_RUN/LLM_IDEATE variables
101
102
  bash_script = f'''
102
103
  source "{SCRIPT_DIR}/config.sh"
104
+ load_config
103
105
  source "{AI_CLI_PATH}"
104
106
  call_ai_random "$1" "$2"
105
107
  '''
106
108
 
107
109
  # Setup environment
108
110
  env = os.environ.copy()
111
+ if working_dir:
112
+ env['CLAUDE_EVOLVE_WORKING_DIR'] = working_dir
109
113
  if env_vars:
110
114
  env.update(env_vars)
111
115
 
@@ -122,6 +126,12 @@ def call_ai(
122
126
  stderr = result.stderr
123
127
  exit_code = result.returncode
124
128
 
129
+ # Print stderr (contains model selection and debug info)
130
+ if stderr:
131
+ for line in stderr.strip().split('\n'):
132
+ if line:
133
+ print(f" {line}", file=sys.stderr)
134
+
125
135
  # Read model name from temp file
126
136
  model_name = "unknown"
127
137
  if os.path.exists(model_file):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-evolve",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "bin": {
5
5
  "claude-evolve": "bin/claude-evolve",
6
6
  "claude-evolve-main": "bin/claude-evolve-main",