aidevops 3.1.73 → 3.1.74

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.1.73
1
+ 3.1.74
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.1.73
6
+ # Version: 3.1.74
7
7
 
8
8
  set -euo pipefail
9
9
 
package/bin/aidevops CHANGED
@@ -1,30 +1,36 @@
1
1
  #!/usr/bin/env bash
2
2
  # AI DevOps Framework CLI wrapper
3
- # This wrapper handles both npm global install and local development
3
+ # This wrapper handles both npm global install and local development.
4
+ #
5
+ # Priority order (highest to lowest):
6
+ # 1. ~/Git/aidevops/aidevops.sh — git repo, always current via 'aidevops update'
7
+ # 2. npm-bundled aidevops.sh — snapshot at npm publish time, may be stale
8
+ #
9
+ # The repo copy is preferred so that 'aidevops update' (git pull) immediately
10
+ # takes effect without requiring 'npm update -g aidevops'.
4
11
 
5
12
  set -euo pipefail
6
13
 
7
- # Resolve symlinks to find the actual script location
14
+ # 1. Prefer the git repo copy always current via 'aidevops update'
15
+ if [[ -f "$HOME/Git/aidevops/aidevops.sh" ]]; then
16
+ exec bash "$HOME/Git/aidevops/aidevops.sh" "$@"
17
+ fi
18
+
19
+ # 2. Fall back to the npm-bundled copy (resolve symlinks first)
8
20
  # npm install -g creates a symlink: /usr/local/bin/aidevops -> .../node_modules/aidevops/bin/aidevops
9
21
  # BASH_SOURCE[0] returns the symlink path, not the target, so we must resolve it
10
22
  SOURCE="${BASH_SOURCE[0]}"
11
23
  while [[ -L "$SOURCE" ]]; do
12
24
  DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
13
25
  SOURCE="$(readlink "$SOURCE")"
14
- # If readlink returned a relative path, resolve it relative to the symlink's directory
15
26
  [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
16
27
  done
17
28
  SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
18
29
 
19
- # Check if we're in an npm global install or local development
20
30
  if [[ -f "$SCRIPT_DIR/../aidevops.sh" ]]; then
21
- # npm install -g or local development
22
31
  exec bash "$SCRIPT_DIR/../aidevops.sh" "$@"
23
- elif [[ -f "$HOME/Git/aidevops/aidevops.sh" ]]; then
24
- # Fallback to standard install location
25
- exec bash "$HOME/Git/aidevops/aidevops.sh" "$@"
26
- else
27
- echo "Error: aidevops.sh not found"
28
- echo "Please run: bash <(curl -fsSL https://aidevops.sh/install)"
29
- exit 1
30
32
  fi
33
+
34
+ echo "Error: aidevops.sh not found"
35
+ echo "Please run: bash <(curl -fsSL https://aidevops.sh/install)"
36
+ exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.1.73",
3
+ "version": "3.1.74",
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.1.73
13
+ # Version: 3.1.74
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)