aidevops 3.8.14 → 3.8.16
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 +9 -4
- package/package.json +1 -1
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.8.
|
|
1
|
+
3.8.16
|
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.16
|
|
9
9
|
|
|
10
10
|
set -euo pipefail
|
|
11
11
|
|
|
@@ -19,10 +19,15 @@ BOLD='\033[1m'
|
|
|
19
19
|
NC='\033[0m' # No Color
|
|
20
20
|
|
|
21
21
|
# Paths
|
|
22
|
-
# When running under sudo on Linux,
|
|
23
|
-
#
|
|
22
|
+
# When running under sudo on Linux, env_reset rewrites HOME to /root/; SUDO_USER
|
|
23
|
+
# holds the original username. getent passwd is the canonical resolver on Linux.
|
|
24
|
+
# On macOS, sudo preserves HOME by default (env_keep+="HOME MAIL" in /etc/sudoers)
|
|
25
|
+
# and getent is not available, so the fallback to $HOME is correct.
|
|
26
|
+
# The command -v getent guard MUST be present — omitting it crashes aidevops.sh
|
|
27
|
+
# under `set -euo pipefail` on any BSD system and breaks sudo aidevops approve.
|
|
28
|
+
# Mirrors the pattern in .agents/scripts/approval-helper.sh:_resolve_real_home().
|
|
24
29
|
# Security: no escalation — root already has full filesystem access.
|
|
25
|
-
if [[ -n "${SUDO_USER:-}" && "$(id -u)" -eq 0 ]]; then
|
|
30
|
+
if [[ -n "${SUDO_USER:-}" && "$(id -u)" -eq 0 ]] && command -v getent &>/dev/null; then
|
|
26
31
|
_AIDEVOPS_REAL_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6)
|
|
27
32
|
else
|
|
28
33
|
_AIDEVOPS_REAL_HOME="$HOME"
|
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.16
|
|
16
16
|
#
|
|
17
17
|
# Quick Install:
|
|
18
18
|
# npm install -g aidevops && aidevops update (recommended)
|