aidevops 3.0.10 → 3.0.12

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.0.10
1
+ 3.0.12
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.0.10
6
+ # Version: 3.0.12
7
7
 
8
8
  set -euo pipefail
9
9
 
@@ -102,6 +102,12 @@ check_file() {
102
102
  [[ -f "$1" ]]
103
103
  }
104
104
 
105
+ # Ensure file ends with a trailing newline (prevents malformed appends)
106
+ ensure_trailing_newline() {
107
+ local file="$1"
108
+ [[ -s "$file" && $(tail -c1 "$file" | wc -l) -eq 0 ]] && printf '\n' >>"$file"
109
+ }
110
+
105
111
  # Initialize repos.json if it doesn't exist
106
112
  init_repos_file() {
107
113
  if [[ ! -f "$REPOS_FILE" ]]; then
@@ -1936,7 +1942,7 @@ SOPSEOF
1936
1942
  # Add runtime artifact ignores
1937
1943
  if ! grep -q "^\.agents/loop-state/" "$gitignore" 2>/dev/null; then
1938
1944
  # Ensure trailing newline before appending (prevents malformed entries like *.zip.agents/loop-state/)
1939
- [[ -s "$gitignore" && $(tail -c1 "$gitignore" | wc -l) -eq 0 ]] && printf '\n' >>"$gitignore"
1945
+ ensure_trailing_newline "$gitignore"
1940
1946
  {
1941
1947
  echo ""
1942
1948
  echo "# aidevops runtime artifacts"
@@ -1958,7 +1964,7 @@ SOPSEOF
1958
1964
  print_info "Untracked .aidevops.json from git (was committed by older version)"
1959
1965
  fi
1960
1966
  # Ensure trailing newline before appending
1961
- [[ -s "$gitignore" && $(tail -c1 "$gitignore" | wc -l) -eq 0 ]] && printf '\n' >>"$gitignore"
1967
+ ensure_trailing_newline "$gitignore"
1962
1968
  echo ".aidevops.json" >>"$gitignore"
1963
1969
  gitignore_updated=true
1964
1970
  fi
@@ -1967,7 +1973,7 @@ SOPSEOF
1967
1973
  if [[ "$enable_beads" == "true" ]]; then
1968
1974
  if ! grep -q "^\.beads$" "$gitignore" 2>/dev/null; then
1969
1975
  # Ensure trailing newline before appending
1970
- [[ -s "$gitignore" && $(tail -c1 "$gitignore" | wc -l) -eq 0 ]] && printf '\n' >>"$gitignore"
1976
+ ensure_trailing_newline "$gitignore"
1971
1977
  echo ".beads" >>"$gitignore"
1972
1978
  print_success "Added .beads to .gitignore"
1973
1979
  gitignore_updated=true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
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.0.10
13
+ # Version: 3.0.12
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)