aidevops 3.5.0 → 3.5.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
- 3.5.0
1
+ 3.5.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: 3.5.0
6
+ # Version: 3.5.2
7
7
 
8
8
  set -euo pipefail
9
9
 
@@ -715,6 +715,32 @@ _update_check_tools() {
715
715
  return 0
716
716
  }
717
717
 
718
+ # Check for stale Homebrew-installed copy after git update (GH#11470)
719
+ _update_check_homebrew() {
720
+ command -v brew &>/dev/null || return 0
721
+ brew list aidevops &>/dev/null 2>&1 || return 0
722
+ local brew_version=""
723
+ brew_version=$(brew info aidevops --json=v2 2>/dev/null | jq -r '.formulae[0].installed[0].version // empty' 2>/dev/null || true)
724
+ [[ -z "$brew_version" ]] && return 0
725
+ local current_version
726
+ current_version=$(get_version)
727
+ [[ -z "$current_version" ]] && return 0
728
+ if [[ "$brew_version" != "$current_version" ]]; then
729
+ echo ""
730
+ print_warning "Homebrew-installed copy is outdated ($brew_version vs $current_version)"
731
+ print_info "The Homebrew wrapper should prefer your git copy, but if your PATH"
732
+ print_info "resolves the Homebrew libexec copy directly, you'll run the old version."
733
+ echo ""
734
+ read -r -p "Run 'brew upgrade aidevops' now? [y/N] " response
735
+ if [[ "$response" =~ ^[Yy]$ ]]; then
736
+ brew upgrade aidevops 2>&1 || print_warning "brew upgrade failed — run manually: brew upgrade aidevops"
737
+ else
738
+ print_info "Run 'brew upgrade aidevops' to sync the Homebrew copy"
739
+ fi
740
+ fi
741
+ return 0
742
+ }
743
+
718
744
  # Update/upgrade command
719
745
  cmd_update() {
720
746
  local skip_project_sync=false
@@ -802,6 +828,7 @@ cmd_update() {
802
828
  fi
803
829
 
804
830
  _update_sync_projects "$skip_project_sync" "$(get_version)"
831
+ _update_check_homebrew
805
832
  _update_check_planning
806
833
  _update_check_tools
807
834
  return 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
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.5.0
13
+ # Version: 3.5.2
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)