claude-evolve 1.5.34 → 1.6.0
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/ai-cli.sh +23 -0
- package/package.json +1 -1
- package/templates/config.yaml +1 -0
package/lib/ai-cli.sh
CHANGED
|
@@ -96,6 +96,29 @@ $prompt"
|
|
|
96
96
|
ai_output=$(timeout 300 opencode -m openrouter/x-ai/grok-4 run "$prompt" 2>&1)
|
|
97
97
|
local ai_exit_code=$?
|
|
98
98
|
;;
|
|
99
|
+
aider-qwen3)
|
|
100
|
+
# Aider with Qwen3-Coder via Ollama
|
|
101
|
+
# Aider edits files in place, so we need to create a temp file
|
|
102
|
+
local temp_file=$(mktemp /tmp/aider-edit-XXXXXX.py)
|
|
103
|
+
|
|
104
|
+
# Extract current algorithm from prompt if present, or create empty file
|
|
105
|
+
# The prompt usually contains the algorithm to improve
|
|
106
|
+
echo "# Algorithm to improve" > "$temp_file"
|
|
107
|
+
|
|
108
|
+
# Run aider with the prompt
|
|
109
|
+
local ai_output
|
|
110
|
+
ai_output=$(timeout 600 aider --yes --no-git --no-show-model-warnings --model ollama/qwen3-coder:30b --message "$prompt" "$temp_file" 2>&1)
|
|
111
|
+
local ai_exit_code=$?
|
|
112
|
+
|
|
113
|
+
# If successful, output the modified file content
|
|
114
|
+
if [[ $ai_exit_code -eq 0 ]]; then
|
|
115
|
+
cat "$temp_file"
|
|
116
|
+
ai_exit_code=$?
|
|
117
|
+
fi
|
|
118
|
+
|
|
119
|
+
# Clean up
|
|
120
|
+
rm -f "$temp_file"
|
|
121
|
+
;;
|
|
99
122
|
*)
|
|
100
123
|
echo "[ERROR] Unknown model: $model_name" >&2
|
|
101
124
|
return 1
|
package/package.json
CHANGED
package/templates/config.yaml
CHANGED