aidevops 3.8.6 → 3.8.8
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 +12 -4
- package/package.json +1 -1
- package/setup.sh +8 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.8.
|
|
1
|
+
3.8.8
|
package/aidevops.sh
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# AI DevOps Framework CLI
|
|
6
6
|
# Usage: aidevops <command> [options]
|
|
7
7
|
#
|
|
8
|
-
# Version: 3.8.
|
|
8
|
+
# Version: 3.8.8
|
|
9
9
|
|
|
10
10
|
set -euo pipefail
|
|
11
11
|
|
|
@@ -19,9 +19,17 @@ BOLD='\033[1m'
|
|
|
19
19
|
NC='\033[0m' # No Color
|
|
20
20
|
|
|
21
21
|
# Paths
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
# When running under sudo on Linux, HOME is reset to /root/ by env_reset.
|
|
23
|
+
# Resolve the real user's home via SUDO_USER so agent/config paths are correct.
|
|
24
|
+
# Security: no escalation — root already has full filesystem access.
|
|
25
|
+
if [[ -n "${SUDO_USER:-}" && "$(id -u)" -eq 0 ]]; then
|
|
26
|
+
_AIDEVOPS_REAL_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6)
|
|
27
|
+
else
|
|
28
|
+
_AIDEVOPS_REAL_HOME="$HOME"
|
|
29
|
+
fi
|
|
30
|
+
INSTALL_DIR="$_AIDEVOPS_REAL_HOME/Git/aidevops"
|
|
31
|
+
AGENTS_DIR="$_AIDEVOPS_REAL_HOME/.aidevops/agents"
|
|
32
|
+
CONFIG_DIR="$_AIDEVOPS_REAL_HOME/.config/aidevops"
|
|
25
33
|
REPOS_FILE="$CONFIG_DIR/repos.json"
|
|
26
34
|
# shellcheck disable=SC2034 # Used in fresh install fallback
|
|
27
35
|
REPO_URL="https://github.com/marcusquinn/aidevops.git"
|
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -12,7 +12,7 @@ shopt -s inherit_errexit 2>/dev/null || true
|
|
|
12
12
|
# AI Assistant Server Access Framework Setup Script
|
|
13
13
|
# Helps developers set up the framework for their infrastructure
|
|
14
14
|
#
|
|
15
|
-
# Version: 3.8.
|
|
15
|
+
# Version: 3.8.8
|
|
16
16
|
#
|
|
17
17
|
# Quick Install:
|
|
18
18
|
# npm install -g aidevops && aidevops update (recommended)
|
|
@@ -90,6 +90,8 @@ if [[ -d "$SETUP_MODULES_DIR" ]]; then
|
|
|
90
90
|
# shellcheck disable=SC1091
|
|
91
91
|
source "$SETUP_MODULES_DIR/_privacy_guard.sh"
|
|
92
92
|
# shellcheck disable=SC1091
|
|
93
|
+
source "$SETUP_MODULES_DIR/_task_id_guard.sh"
|
|
94
|
+
# shellcheck disable=SC1091
|
|
93
95
|
source "$SETUP_MODULES_DIR/_canonical_guard.sh"
|
|
94
96
|
fi
|
|
95
97
|
|
|
@@ -926,6 +928,11 @@ _setup_run_non_interactive() {
|
|
|
926
928
|
# directory are warned against (t1995). Complements pre-edit-check.sh's
|
|
927
929
|
# t1990 edit-time check by catching the branch switch itself.
|
|
928
930
|
setup_canonical_guard
|
|
931
|
+
# Install/refresh the task-id collision guard commit-msg hook in every
|
|
932
|
+
# initialized repo so invented t-IDs in commit subjects are rejected
|
|
933
|
+
# at commit time (t2047). Belt-and-braces with the CI check in
|
|
934
|
+
# .github/workflows/task-id-collision-check.yml.
|
|
935
|
+
setup_task_id_guard
|
|
929
936
|
return 0
|
|
930
937
|
}
|
|
931
938
|
|