claude-evolve 1.6.22 → 1.6.23
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.sh +4 -11
- package/package.json +1 -1
package/lib/config.sh
CHANGED
|
@@ -214,10 +214,9 @@ load_config() {
|
|
|
214
214
|
LLM_RUN="$DEFAULT_LLM_RUN"
|
|
215
215
|
LLM_IDEATE="$DEFAULT_LLM_IDEATE"
|
|
216
216
|
|
|
217
|
-
#
|
|
217
|
+
# If a config file is explicitly provided, use it as the local config
|
|
218
218
|
local local_config_file="evolution/config.yaml"
|
|
219
219
|
if [[ -n "$1" ]]; then
|
|
220
|
-
# If a config file is explicitly provided, use it as the local config
|
|
221
220
|
local_config_file="$1"
|
|
222
221
|
fi
|
|
223
222
|
|
|
@@ -227,15 +226,9 @@ load_config() {
|
|
|
227
226
|
# Load global config (overrides local config)
|
|
228
227
|
local global_config_file="$HOME/.config/claude-evolve/config.yaml"
|
|
229
228
|
_load_yaml_config "$global_config_file"
|
|
230
|
-
|
|
231
|
-
#
|
|
232
|
-
|
|
233
|
-
local config_dir=$(dirname "$LAST_CONFIG_FILE_LOADED")
|
|
234
|
-
if [[ "$config_dir" != "" && "$config_dir" != "." ]]; then
|
|
235
|
-
EVOLUTION_DIR="$config_dir"
|
|
236
|
-
echo "[DEBUG] Using evolution directory from last loaded config path: $EVOLUTION_DIR" >&2
|
|
237
|
-
fi
|
|
238
|
-
fi
|
|
229
|
+
|
|
230
|
+
# EVOLUTION_DIR should always be the project's evolution directory, not derived from config file location
|
|
231
|
+
# It is initialized to DEFAULT_EVOLUTION_DIR at the start of load_config and should not be changed here.
|
|
239
232
|
|
|
240
233
|
# Create full paths - ALL paths are relative to evolution_dir
|
|
241
234
|
# Make evolution_dir absolute if it's relative
|