aidevops 3.1.81 → 3.1.83

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.81
1
+ 3.1.83
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.81
6
+ # Version: 3.1.83
7
7
 
8
8
  set -euo pipefail
9
9
 
package/bin/aidevops CHANGED
@@ -1,22 +1,48 @@
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 npm/brew/bun global installs and local development.
4
4
  #
5
5
  # Priority order (highest to lowest):
6
6
  # 1. ~/Git/aidevops/aidevops.sh — git repo, always current via 'aidevops update'
7
- # 2. npm-bundled aidevops.shsnapshot at npm publish time, may be stale
7
+ # 2. Auto-clone the git repofirst-run bootstrap for package manager installs
8
+ # 3. npm-bundled aidevops.sh — snapshot at npm publish time, may be stale
8
9
  #
9
10
  # The repo copy is preferred so that 'aidevops update' (git pull) immediately
10
11
  # takes effect without requiring 'npm update -g aidevops'.
11
12
 
12
13
  set -euo pipefail
13
14
 
15
+ REPO_DIR="$HOME/Git/aidevops"
16
+ REPO_URL="https://github.com/marcusquinn/aidevops.git"
17
+
14
18
  # 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" "$@"
19
+ if [[ -f "$REPO_DIR/aidevops.sh" ]]; then
20
+ exec bash "$REPO_DIR/aidevops.sh" "$@"
21
+ fi
22
+
23
+ # 2. Git repo not found — bootstrap it automatically
24
+ # This runs once on first use after a package manager install (npm/brew/bun).
25
+ # After this, step 1 will always match and the git repo runs directly.
26
+ if command -v git >/dev/null 2>&1; then
27
+ echo "[aidevops] First run — cloning git repo to $REPO_DIR for transparent updates..."
28
+ mkdir -p "$(dirname "$REPO_DIR")"
29
+ if git clone "$REPO_URL" "$REPO_DIR" 2>/dev/null; then
30
+ echo "[aidevops] Running setup..."
31
+ if [[ -f "$REPO_DIR/setup.sh" ]]; then
32
+ bash "$REPO_DIR/setup.sh" --non-interactive
33
+ fi
34
+ echo ""
35
+ echo "[aidevops] Setup complete. The git repo at $REPO_DIR is now your canonical install."
36
+ echo "[aidevops] Run 'aidevops update' to stay current. You can safely remove the"
37
+ echo "[aidevops] package manager copy (npm/brew/bun) — it's no longer needed."
38
+ echo ""
39
+ exec bash "$REPO_DIR/aidevops.sh" "$@"
40
+ else
41
+ echo "[aidevops] Git clone failed — falling back to bundled copy." >&2
42
+ fi
17
43
  fi
18
44
 
19
- # 2. Fall back to the npm-bundled copy (resolve symlinks first)
45
+ # 3. Fall back to the npm-bundled copy (resolve symlinks first)
20
46
  # npm install -g creates a symlink: /usr/local/bin/aidevops -> .../node_modules/aidevops/bin/aidevops
21
47
  # BASH_SOURCE[0] returns the symlink path, not the target, so we must resolve it
22
48
  SOURCE="${BASH_SOURCE[0]}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.1.81",
3
+ "version": "3.1.83",
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.81
13
+ # Version: 3.1.83
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)