aidevops 2.70.2 → 2.70.4

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.70.2
1
+ 2.70.4
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.70.2
6
+ # Version: 2.70.4
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.70.2",
3
+ "version": "2.70.4",
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.70.2
6
+ # Version: 2.70.4
7
7
  #
8
8
  # Quick Install (one-liner):
9
9
  # bash <(curl -fsSL https://aidevops.dev/install)
@@ -1374,6 +1374,17 @@ deploy_aidevops_agents() {
1374
1374
  local source_dir="$script_dir/.agent"
1375
1375
  local target_dir="$HOME/.aidevops/agents"
1376
1376
 
1377
+ # Validate source directory exists (catches curl install from wrong directory)
1378
+ if [[ ! -d "$source_dir" ]]; then
1379
+ print_error "Agent source directory not found: $source_dir"
1380
+ print_info "This usually means setup.sh was run from the wrong directory."
1381
+ print_info "The bootstrap should have cloned the repo and re-executed."
1382
+ print_info ""
1383
+ print_info "To fix manually:"
1384
+ print_info " cd ~/Git/aidevops && ./setup.sh"
1385
+ return 1
1386
+ fi
1387
+
1377
1388
  # Create backup if target exists (with rotation)
1378
1389
  if [[ -d "$target_dir" ]]; then
1379
1390
  create_backup_with_rotation "$target_dir" "agents"
@@ -1805,14 +1816,20 @@ setup_python_env() {
1805
1816
 
1806
1817
  # Install DSPy dependencies
1807
1818
  print_info "Installing DSPy dependencies..."
1819
+ # shellcheck source=/dev/null
1808
1820
  source python-env/dspy-env/bin/activate
1809
1821
  pip install --upgrade pip > /dev/null 2>&1
1810
- pip install -r requirements.txt > /dev/null 2>&1
1811
-
1812
- if [[ $? -eq 0 ]]; then
1822
+
1823
+ local pip_output
1824
+ if pip_output=$(pip install -r requirements.txt 2>&1); then
1813
1825
  print_success "DSPy dependencies installed successfully"
1814
1826
  else
1815
- print_warning "Failed to install DSPy dependencies - check requirements.txt"
1827
+ print_warning "Failed to install DSPy dependencies:"
1828
+ # Show last few lines of error for debugging
1829
+ echo "$pip_output" | tail -8 | sed 's/^/ /'
1830
+ echo ""
1831
+ print_info "Check requirements.txt or run manually:"
1832
+ print_info " source python-env/dspy-env/bin/activate && pip install -r requirements.txt"
1816
1833
  fi
1817
1834
  }
1818
1835
 
@@ -2176,11 +2193,16 @@ setup_browser_tools() {
2176
2193
  print_success "dev-browser already installed"
2177
2194
  else
2178
2195
  print_info "Installing dev-browser (stateful browser automation)..."
2179
- if bash "$AGENTS_DIR/scripts/dev-browser-helper.sh" setup 2>/dev/null; then
2196
+ local dev_browser_output
2197
+ if dev_browser_output=$(bash "$HOME/.aidevops/agents/scripts/dev-browser-helper.sh" setup 2>&1); then
2180
2198
  print_success "dev-browser installed"
2181
2199
  print_info "Start server with: bash ~/.aidevops/agents/scripts/dev-browser-helper.sh start"
2182
2200
  else
2183
- print_warning "dev-browser setup failed - run manually:"
2201
+ print_warning "dev-browser setup failed:"
2202
+ # Show last few lines of error output for debugging
2203
+ echo "$dev_browser_output" | tail -5 | sed 's/^/ /'
2204
+ echo ""
2205
+ print_info "Run manually to see full output:"
2184
2206
  print_info " bash ~/.aidevops/agents/scripts/dev-browser-helper.sh setup"
2185
2207
  fi
2186
2208
  fi
@@ -2216,9 +2238,21 @@ setup_ai_orchestration() {
2216
2238
  print_success "Python $python_version found (3.10+ required)"
2217
2239
  else
2218
2240
  print_warning "Python 3.10+ required for AI orchestration, found $python_version"
2241
+ echo ""
2242
+ echo " Upgrade options:"
2243
+ echo " macOS (Homebrew): brew install python@3.12"
2244
+ echo " macOS (pyenv): pyenv install 3.12 && pyenv global 3.12"
2245
+ echo " Ubuntu/Debian: sudo apt install python3.12"
2246
+ echo " Fedora: sudo dnf install python3.12"
2247
+ echo ""
2219
2248
  fi
2220
2249
  else
2221
2250
  print_warning "Python 3 not found - AI orchestration frameworks unavailable"
2251
+ echo ""
2252
+ echo " Install options:"
2253
+ echo " macOS: brew install python@3.12"
2254
+ echo " Linux: sudo apt install python3 (or dnf/pacman)"
2255
+ echo ""
2222
2256
  return 0
2223
2257
  fi
2224
2258