aidevops 2.77.1 → 2.77.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.
- package/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/setup.sh +48 -10
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.77.
|
|
1
|
+
2.77.3
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# AI Assistant Server Access Framework Setup Script
|
|
4
4
|
# Helps developers set up the framework for their infrastructure
|
|
5
5
|
#
|
|
6
|
-
# Version: 2.77.
|
|
6
|
+
# Version: 2.77.3
|
|
7
7
|
#
|
|
8
8
|
# Quick Install (one-liner):
|
|
9
9
|
# bash <(curl -fsSL https://aidevops.dev/install)
|
|
@@ -28,6 +28,27 @@ print_success() { echo -e "${GREEN}[SUCCESS]${NC} $1"; }
|
|
|
28
28
|
print_warning() { echo -e "${YELLOW}[WARNING]${NC} $1"; }
|
|
29
29
|
print_error() { echo -e "${RED}[ERROR]${NC} $1"; }
|
|
30
30
|
|
|
31
|
+
# Find best python3 binary (prefer Homebrew/pyenv over system)
|
|
32
|
+
find_python3() {
|
|
33
|
+
local candidates=(
|
|
34
|
+
"/opt/homebrew/bin/python3"
|
|
35
|
+
"/usr/local/bin/python3"
|
|
36
|
+
"$HOME/.pyenv/shims/python3"
|
|
37
|
+
)
|
|
38
|
+
for candidate in "${candidates[@]}"; do
|
|
39
|
+
if [[ -x "$candidate" ]]; then
|
|
40
|
+
echo "$candidate"
|
|
41
|
+
return 0
|
|
42
|
+
fi
|
|
43
|
+
done
|
|
44
|
+
# Fallback to PATH
|
|
45
|
+
if command -v python3 &> /dev/null; then
|
|
46
|
+
command -v python3
|
|
47
|
+
return 0
|
|
48
|
+
fi
|
|
49
|
+
return 1
|
|
50
|
+
}
|
|
51
|
+
|
|
31
52
|
# Confirm step in interactive mode
|
|
32
53
|
# Usage: confirm_step "Step description" && function_to_run
|
|
33
54
|
# Returns: 0 if confirmed or not interactive, 1 if skipped
|
|
@@ -392,6 +413,16 @@ install_packages() {
|
|
|
392
413
|
check_requirements() {
|
|
393
414
|
print_info "Checking system requirements..."
|
|
394
415
|
|
|
416
|
+
# Ensure Homebrew is in PATH (macOS Apple Silicon)
|
|
417
|
+
if [[ -x "/opt/homebrew/bin/brew" ]] && ! echo "$PATH" | grep -q "/opt/homebrew/bin"; then
|
|
418
|
+
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
419
|
+
print_warning "Homebrew not in PATH - added for this session"
|
|
420
|
+
echo ""
|
|
421
|
+
echo " To fix permanently, add to ~/.bash_profile or ~/.zshrc:"
|
|
422
|
+
echo " eval \"\$(/opt/homebrew/bin/brew shellenv)\""
|
|
423
|
+
echo ""
|
|
424
|
+
fi
|
|
425
|
+
|
|
395
426
|
local missing_deps=()
|
|
396
427
|
|
|
397
428
|
# Check for required commands
|
|
@@ -607,7 +638,10 @@ setup_file_discovery_tools() {
|
|
|
607
638
|
pkg_manager=$(detect_package_manager)
|
|
608
639
|
|
|
609
640
|
if [[ "$pkg_manager" != "unknown" ]]; then
|
|
610
|
-
|
|
641
|
+
local install_fd_tools="y"
|
|
642
|
+
if [[ "$INTERACTIVE_MODE" == "true" ]]; then
|
|
643
|
+
read -r -p "Install file discovery tools (${missing_packages[*]}) using $pkg_manager? (y/n): " install_fd_tools
|
|
644
|
+
fi
|
|
611
645
|
|
|
612
646
|
if [[ "$install_fd_tools" == "y" ]]; then
|
|
613
647
|
print_info "Installing ${missing_packages[*]}..."
|
|
@@ -1890,14 +1924,17 @@ setup_python_env() {
|
|
|
1890
1924
|
print_info "Setting up Python environment for DSPy..."
|
|
1891
1925
|
|
|
1892
1926
|
# Check if Python 3 is available
|
|
1893
|
-
|
|
1927
|
+
local python3_bin
|
|
1928
|
+
if ! python3_bin=$(find_python3); then
|
|
1894
1929
|
print_warning "Python 3 not found - DSPy setup skipped"
|
|
1895
1930
|
print_info "Install Python 3.8+ to enable DSPy integration"
|
|
1896
1931
|
return
|
|
1897
1932
|
fi
|
|
1898
1933
|
|
|
1899
|
-
local python_version
|
|
1900
|
-
|
|
1934
|
+
local python_version
|
|
1935
|
+
python_version=$("$python3_bin" --version | cut -d' ' -f2 | cut -d'.' -f1-2)
|
|
1936
|
+
local version_check
|
|
1937
|
+
version_check=$("$python3_bin" -c "import sys; print(1 if sys.version_info >= (3, 8) else 0)")
|
|
1901
1938
|
|
|
1902
1939
|
if [[ "$version_check" != "1" ]]; then
|
|
1903
1940
|
print_warning "Python 3.8+ required for DSPy, found $python_version - DSPy setup skipped"
|
|
@@ -2364,10 +2401,11 @@ setup_ai_orchestration() {
|
|
|
2364
2401
|
|
|
2365
2402
|
local has_python=false
|
|
2366
2403
|
|
|
2367
|
-
# Check Python
|
|
2368
|
-
|
|
2404
|
+
# Check Python (prefer Homebrew/pyenv over system)
|
|
2405
|
+
local python3_bin
|
|
2406
|
+
if python3_bin=$(find_python3); then
|
|
2369
2407
|
local python_version
|
|
2370
|
-
python_version=$(
|
|
2408
|
+
python_version=$("$python3_bin" --version 2>&1 | cut -d' ' -f2)
|
|
2371
2409
|
local major minor
|
|
2372
2410
|
major=$(echo "$python_version" | cut -d. -f1)
|
|
2373
2411
|
minor=$(echo "$python_version" | cut -d. -f2)
|
|
@@ -2635,8 +2673,8 @@ setup_seo_mcps() {
|
|
|
2635
2673
|
has_node=true
|
|
2636
2674
|
fi
|
|
2637
2675
|
|
|
2638
|
-
# Check Python
|
|
2639
|
-
if
|
|
2676
|
+
# Check Python (prefer Homebrew/pyenv over system)
|
|
2677
|
+
if find_python3 &> /dev/null; then
|
|
2640
2678
|
has_python=true
|
|
2641
2679
|
fi
|
|
2642
2680
|
|