aidevops 3.8.17 → 3.8.19

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.17
1
+ 3.8.19
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.17
8
+ # Version: 3.8.19
9
9
 
10
10
  set -euo pipefail
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.8.17",
3
+ "version": "3.8.19",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -534,14 +534,21 @@ _systemd_user_available() {
534
534
  return 0
535
535
  }
536
536
 
537
- # Escape a value for safe embedding in a systemd unit Environment= directive.
538
- # systemd interprets % as specifiers (%h, %n, %t, etc.) and spaces as
539
- # key-value separators. This helper:
537
+ # Escape a value for safe embedding in a systemd unit Environment= or ExecStart=
538
+ # directive. systemd interprets % as specifiers (%h, %n, %t, etc.) and spaces
539
+ # as key-value separators. This helper:
540
540
  # 1. Escapes \ → \\ (must be first to avoid double-escaping)
541
541
  # 2. Doubles % → %% (escape specifiers)
542
542
  # 3. Escapes embedded " → \"
543
543
  # 4. Wraps the result in "..." (handles spaces and other shell metacharacters)
544
544
  # Usage: escaped=$(_systemd_escape "$value")
545
+ #
546
+ # WARNING: Do NOT use for StandardOutput= or StandardError= directives.
547
+ # systemd does not strip outer quotes from those values — "append:/path" is
548
+ # treated as a literal filename with quote characters, failing silently.
549
+ # Use bare values for StandardOutput=/StandardError=:
550
+ # StandardOutput=append:${log_file} ← correct
551
+ # StandardOutput=$(_systemd_escape "append:${log_file}") ← WRONG
545
552
  _systemd_escape() {
546
553
  local _val="$1"
547
554
  # Step 1: escape backslashes
@@ -660,8 +667,8 @@ Type=oneshot
660
667
  KillMode=process
661
668
  ExecStart=/bin/bash -lc $(_systemd_escape "$exec_command")
662
669
  TimeoutStartSec=${timeout_sec}
663
- ${_service_extra}${_env_lines}StandardOutput=$(_systemd_escape "append:${log_file}")
664
- StandardError=$(_systemd_escape "append:${log_file}")
670
+ ${_service_extra}${_env_lines}StandardOutput=append:${log_file}
671
+ StandardError=append:${log_file}
665
672
  " >"$service_file"
666
673
 
667
674
  local _timer_lines=""
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.17
15
+ # Version: 3.8.19
16
16
  #
17
17
  # Quick Install:
18
18
  # npm install -g aidevops && aidevops update (recommended)