aidevops 2.77.1 → 2.77.2

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 CHANGED
@@ -1 +1 @@
1
- 2.77.1
1
+ 2.77.2
package/aidevops.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI DevOps Framework CLI
4
4
  # Usage: aidevops <command> [options]
5
5
  #
6
- # Version: 2.77.1
6
+ # Version: 2.77.2
7
7
 
8
8
  set -euo pipefail
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "2.77.1",
3
+ "version": "2.77.2",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "main": "index.js",
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.1
6
+ # Version: 2.77.2
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
@@ -1890,14 +1921,17 @@ setup_python_env() {
1890
1921
  print_info "Setting up Python environment for DSPy..."
1891
1922
 
1892
1923
  # Check if Python 3 is available
1893
- if ! command -v python3 &> /dev/null; then
1924
+ local python3_bin
1925
+ if ! python3_bin=$(find_python3); then
1894
1926
  print_warning "Python 3 not found - DSPy setup skipped"
1895
1927
  print_info "Install Python 3.8+ to enable DSPy integration"
1896
1928
  return
1897
1929
  fi
1898
1930
 
1899
- local python_version=$(python3 --version | cut -d' ' -f2 | cut -d'.' -f1-2)
1900
- local version_check=$(python3 -c "import sys; print(1 if sys.version_info >= (3, 8) else 0)")
1931
+ local python_version
1932
+ python_version=$("$python3_bin" --version | cut -d' ' -f2 | cut -d'.' -f1-2)
1933
+ local version_check
1934
+ version_check=$("$python3_bin" -c "import sys; print(1 if sys.version_info >= (3, 8) else 0)")
1901
1935
 
1902
1936
  if [[ "$version_check" != "1" ]]; then
1903
1937
  print_warning "Python 3.8+ required for DSPy, found $python_version - DSPy setup skipped"
@@ -2364,10 +2398,11 @@ setup_ai_orchestration() {
2364
2398
 
2365
2399
  local has_python=false
2366
2400
 
2367
- # Check Python
2368
- if command -v python3 &> /dev/null; then
2401
+ # Check Python (prefer Homebrew/pyenv over system)
2402
+ local python3_bin
2403
+ if python3_bin=$(find_python3); then
2369
2404
  local python_version
2370
- python_version=$(python3 --version 2>&1 | cut -d' ' -f2)
2405
+ python_version=$("$python3_bin" --version 2>&1 | cut -d' ' -f2)
2371
2406
  local major minor
2372
2407
  major=$(echo "$python_version" | cut -d. -f1)
2373
2408
  minor=$(echo "$python_version" | cut -d. -f2)
@@ -2635,8 +2670,8 @@ setup_seo_mcps() {
2635
2670
  has_node=true
2636
2671
  fi
2637
2672
 
2638
- # Check Python
2639
- if command -v python3 &> /dev/null; then
2673
+ # Check Python (prefer Homebrew/pyenv over system)
2674
+ if find_python3 &> /dev/null; then
2640
2675
  has_python=true
2641
2676
  fi
2642
2677