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 +1 -1
- package/aidevops.sh +1 -1
- package/bin/aidevops +18 -12
- package/package.json +1 -1
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.74
|
package/aidevops.sh
CHANGED
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
|
-
#
|
|
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
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.
|
|
13
|
+
# Version: 3.1.74
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|