aidevops 3.22.6 → 3.22.8

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/README.md CHANGED
@@ -58,7 +58,7 @@ The result: an AI operations platform that manages projects across every busines
58
58
  [![Copyright](https://img.shields.io/badge/Copyright-Marcus%20Quinn%202025--2026-blue.svg)](https://github.com/marcusquinn)
59
59
 
60
60
  <!-- Release & Version Info -->
61
- [![Version](https://img.shields.io/badge/Version-3.22.6-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
61
+ [![Version](https://img.shields.io/badge/Version-3.22.8-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
62
62
  [![npm version](https://img.shields.io/npm/v/aidevops)](https://www.npmjs.com/package/aidevops)
63
63
  [![Homebrew](https://img.shields.io/badge/homebrew-marcusquinn%2Ftap-orange)](https://github.com/marcusquinn/homebrew-tap)
64
64
  [![GitHub repository](https://img.shields.io/badge/github-repository-181717.svg?logo=github)](https://github.com/marcusquinn/aidevops)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.22.6
1
+ 3.22.8
package/aidevops.sh CHANGED
@@ -5,7 +5,7 @@
5
5
  # AI DevOps Framework CLI
6
6
  # Usage: aidevops <command> [options]
7
7
  #
8
- # Version: 3.22.6
8
+ # Version: 3.22.8
9
9
 
10
10
  set -euo pipefail
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.22.6",
3
+ "version": "3.22.8",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -9,6 +9,7 @@ DEFAULT_APP_DIR="/Applications"
9
9
 
10
10
  usage() {
11
11
  printf 'Usage: %s [--check] [--app-dir DIR]\n' "$0"
12
+ printf 'Environment: AIDEVOPS_GUI_DESKTOP_APP_DIR overrides the default app directory.\n'
12
13
  return 0
13
14
  }
14
15
 
@@ -991,7 +992,7 @@ PLIST
991
992
 
992
993
  main() {
993
994
  local mode="install"
994
- local app_dir="$DEFAULT_APP_DIR"
995
+ local app_dir="${AIDEVOPS_GUI_DESKTOP_APP_DIR:-$DEFAULT_APP_DIR}"
995
996
  local root=""
996
997
 
997
998
  while [[ $# -gt 0 ]]; do
package/setup.sh CHANGED
@@ -12,7 +12,7 @@ shopt -s inherit_errexit 2>/dev/null || true
12
12
  # AI Assistant Server Access Framework Setup Script
13
13
  # Helps developers set up the framework for their infrastructure
14
14
  #
15
- # Version: 3.22.6
15
+ # Version: 3.22.8
16
16
  #
17
17
  # Quick Install:
18
18
  # npm install -g aidevops && aidevops update (recommended)
@@ -458,8 +458,20 @@ _setup_gui_desktop_install_opted_in() {
458
458
  return 1
459
459
  }
460
460
 
461
+ _setup_gui_desktop_app_dir() {
462
+ printf '%s' "${AIDEVOPS_GUI_DESKTOP_APP_DIR:-/Applications}"
463
+ return 0
464
+ }
465
+
466
+ _setup_gui_desktop_app_exists() {
467
+ local app_dir="$1"
468
+ [[ -d "${app_dir}/${SETUP_GUI_APP_NAME}" ]]
469
+ return $?
470
+ }
471
+
461
472
  setup_gui_desktop_app() {
462
473
  local installer="${INSTALL_DIR}/packages/gui-desktop/scripts/install-macos-app.sh"
474
+ local app_dir=""
463
475
  local os=""
464
476
  local rc=0
465
477
 
@@ -476,7 +488,8 @@ setup_gui_desktop_app() {
476
488
  return 0
477
489
  fi
478
490
 
479
- bash "$installer" || rc=$?
491
+ app_dir="$(_setup_gui_desktop_app_dir)"
492
+ bash "$installer" --app-dir "$app_dir" || rc=$?
480
493
  if [[ "$rc" -eq 0 ]]; then
481
494
  setup_track_configured "$SETUP_GUI_APP_NAME"
482
495
  return 0
@@ -489,12 +502,20 @@ setup_gui_desktop_app() {
489
502
 
490
503
  _setup_offer_gui_desktop_app() {
491
504
  local answer=""
505
+ local app_dir=""
492
506
 
493
507
  if _setup_gui_desktop_install_opted_in; then
494
508
  setup_gui_desktop_app
495
509
  return 0
496
510
  fi
497
511
 
512
+ app_dir="$(_setup_gui_desktop_app_dir)"
513
+ if [[ "$(uname -s)" == "$SETUP_OS_DARWIN" ]] && _setup_gui_desktop_app_exists "$app_dir"; then
514
+ print_info "Refreshing existing macOS ${SETUP_GUI_APP_NAME} in ${app_dir}"
515
+ setup_gui_desktop_app
516
+ return 0
517
+ fi
518
+
498
519
  if [[ "$INTERACTIVE_MODE" == "true" ]]; then
499
520
  echo ""
500
521
  echo -e "${YELLOW}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"