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 CHANGED
@@ -1 +1 @@
1
- 2.172.9
1
+ 2.172.10
package/aidevops.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI DevOps Framework CLI
4
4
  # Usage: aidevops <command> [options]
5
5
  #
6
- # Version: 2.172.9
6
+ # Version: 2.172.10
7
7
 
8
8
  set -euo pipefail
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "2.172.9",
3
+ "version": "2.172.10",
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: 2.172.9
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="$HOME/Git/aidevops"
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
- mkdir -p "$(dirname "$INSTALL_DIR")"
511
- if [[ -d "$INSTALL_DIR/.git" ]]; then
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 "$INSTALL_DIR" || exit 1
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 "$INSTALL_DIR" ]]; then
524
+ if [[ -d "$_bootstrap_install_dir" ]]; then
521
525
  print_warning "Directory exists but is not a git repo — backing up"
522
- mv "$INSTALL_DIR" "$INSTALL_DIR.backup.$(date +%Y%m%d_%H%M%S)"
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 $INSTALL_DIR..."
525
- git clone "$REPO_URL" "$INSTALL_DIR" || {
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 $INSTALL_DIR"
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 "$INSTALL_DIR" || exit 1
538
+ cd "$_bootstrap_install_dir" || exit 1
535
539
  exec bash "./setup.sh" "$@"
536
540
  fi
537
541
  unset _setup_script_dir