aidevops 3.8.13 → 3.8.15

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.8.13
1
+ 3.8.15
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.13
8
+ # Version: 3.8.15
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, HOME is reset to /root/ by env_reset.
23
- # Resolve the real user's home via SUDO_USER so agent/config paths are correct.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.8.13",
3
+ "version": "3.8.15",
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
@@ -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.13
15
+ # Version: 3.8.15
16
16
  #
17
17
  # Quick Install:
18
18
  # npm install -g aidevops && aidevops update (recommended)