aidevops 3.0.3 → 3.0.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
- 3.0.3
1
+ 3.0.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: 3.0.3
6
+ # Version: 3.0.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": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -427,6 +427,10 @@ check_requirements() {
427
427
  local missing_deps=()
428
428
  local missing_packages=()
429
429
 
430
+ # Detect package manager once for both package-name resolution and installation
431
+ local pkg_manager
432
+ pkg_manager=$(detect_package_manager)
433
+
430
434
  # Check for required commands
431
435
  # Format: command-name package-name (same when identical)
432
436
  if ! command -v jq >/dev/null 2>&1; then
@@ -443,10 +447,8 @@ check_requirements() {
443
447
  fi
444
448
  if ! command -v sqlite3 >/dev/null 2>&1; then
445
449
  missing_deps+=("sqlite3")
446
- # Package name varies: sqlite3 on Debian/Ubuntu/apt, sqlite on brew/Fedora/Arch/Alpine
447
- local pkg_mgr
448
- pkg_mgr=$(detect_package_manager)
449
- case "$pkg_mgr" in
450
+ # Package name varies: sqlite3 on Debian/Ubuntu (apt), sqlite on Homebrew/Fedora/Arch/Alpine
451
+ case "$pkg_manager" in
450
452
  apt) missing_packages+=("sqlite3") ;;
451
453
  *) missing_packages+=("sqlite") ;;
452
454
  esac
@@ -455,9 +457,6 @@ check_requirements() {
455
457
  if [[ ${#missing_deps[@]} -gt 0 ]]; then
456
458
  print_warning "Missing required dependencies: ${missing_deps[*]}"
457
459
 
458
- local pkg_manager
459
- pkg_manager=$(detect_package_manager)
460
-
461
460
  if [[ "$pkg_manager" == "unknown" ]]; then
462
461
  print_error "Could not detect package manager"
463
462
  echo ""
package/setup.sh CHANGED
@@ -10,7 +10,7 @@ shopt -s inherit_errexit 2>/dev/null || true
10
10
  # AI Assistant Server Access Framework Setup Script
11
11
  # Helps developers set up the framework for their infrastructure
12
12
  #
13
- # Version: 3.0.3
13
+ # Version: 3.0.4
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)