aidevops 2.172.9 → 2.172.10
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/package.json +1 -1
- package/setup.sh +16 -12
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.172.
|
|
1
|
+
2.172.10
|
package/aidevops.sh
CHANGED
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: 2.172.
|
|
13
|
+
# Version: 2.172.10
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|
|
@@ -37,7 +37,9 @@ export PLATFORM_MACOS PLATFORM_ARM64
|
|
|
37
37
|
readonly PLATFORM_MACOS PLATFORM_ARM64
|
|
38
38
|
# Repo constants — exported; consumed by setup-modules/core.sh, agent-deploy.sh
|
|
39
39
|
REPO_URL="https://github.com/marcusquinn/aidevops.git"
|
|
40
|
-
INSTALL_DIR
|
|
40
|
+
# INSTALL_DIR: resolve from the directory where setup.sh is executed (supports worktrees)
|
|
41
|
+
# For bootstrap (curl install), this will be /dev/fd/NN and trigger re-exec after clone
|
|
42
|
+
INSTALL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
41
43
|
export REPO_URL INSTALL_DIR
|
|
42
44
|
|
|
43
45
|
# Source modular setup functions (t316.2)
|
|
@@ -506,32 +508,34 @@ if [[ ! -d "$_setup_script_dir/setup-modules" ]]; then
|
|
|
506
508
|
fi
|
|
507
509
|
fi
|
|
508
510
|
|
|
509
|
-
# Clone or update the repo
|
|
510
|
-
|
|
511
|
-
|
|
511
|
+
# Clone or update the repo (use hardcoded path for bootstrap)
|
|
512
|
+
# After clone, INSTALL_DIR will be set correctly by the re-exec
|
|
513
|
+
_bootstrap_install_dir="$HOME/Git/aidevops"
|
|
514
|
+
mkdir -p "$(dirname "$_bootstrap_install_dir")"
|
|
515
|
+
if [[ -d "$_bootstrap_install_dir/.git" ]]; then
|
|
512
516
|
print_info "Existing installation found — updating..."
|
|
513
|
-
cd "$
|
|
517
|
+
cd "$_bootstrap_install_dir" || exit 1
|
|
514
518
|
git pull --ff-only || {
|
|
515
519
|
print_warning "Git pull failed — resetting to origin/main"
|
|
516
520
|
git fetch origin
|
|
517
521
|
git reset --hard origin/main
|
|
518
522
|
}
|
|
519
523
|
else
|
|
520
|
-
if [[ -d "$
|
|
524
|
+
if [[ -d "$_bootstrap_install_dir" ]]; then
|
|
521
525
|
print_warning "Directory exists but is not a git repo — backing up"
|
|
522
|
-
mv "$
|
|
526
|
+
mv "$_bootstrap_install_dir" "$_bootstrap_install_dir.backup.$(date +%Y%m%d_%H%M%S)"
|
|
523
527
|
fi
|
|
524
|
-
print_info "Cloning aidevops to $
|
|
525
|
-
git clone "$REPO_URL" "$
|
|
528
|
+
print_info "Cloning aidevops to $_bootstrap_install_dir..."
|
|
529
|
+
git clone "$REPO_URL" "$_bootstrap_install_dir" || {
|
|
526
530
|
print_error "Failed to clone repository"
|
|
527
531
|
exit 1
|
|
528
532
|
}
|
|
529
533
|
fi
|
|
530
534
|
|
|
531
|
-
print_success "Repository ready at $
|
|
535
|
+
print_success "Repository ready at $_bootstrap_install_dir"
|
|
532
536
|
|
|
533
537
|
# Re-execute the local copy (which has setup-modules/ available)
|
|
534
|
-
cd "$
|
|
538
|
+
cd "$_bootstrap_install_dir" || exit 1
|
|
535
539
|
exec bash "./setup.sh" "$@"
|
|
536
540
|
fi
|
|
537
541
|
unset _setup_script_dir
|