aidevops 3.1.57 → 3.1.58

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.1.57
1
+ 3.1.58
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.1.57
6
+ # Version: 3.1.58
7
7
 
8
8
  set -euo pipefail
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.1.57",
3
+ "version": "3.1.58",
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.1.57
13
+ # Version: 3.1.58
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)
@@ -22,7 +22,6 @@ GREEN='\033[0;32m'
22
22
  BLUE='\033[0;34m'
23
23
  YELLOW='\033[1;33m'
24
24
  RED='\033[0;31m'
25
- GRAY='\033[0;90m'
26
25
  NC='\033[0m' # No Color
27
26
 
28
27
  # Global flags
@@ -1608,13 +1607,26 @@ CW_PLIST
1608
1607
  fi
1609
1608
  fi
1610
1609
 
1610
+ # Draft responses — private repo for reviewing AI-drafted replies to external
1611
+ # contributions (t1555). Auto-creates the repo on first setup. Requires both
1612
+ # contribution_watch and draft_responses to be enabled, plus gh CLI authenticated.
1613
+ # Respects config: aidevops config set orchestration.draft_responses false
1614
+ local dr_script="$HOME/.aidevops/agents/scripts/draft-response-helper.sh"
1615
+ if [[ -x "$dr_script" ]] && is_feature_enabled draft_responses 2>/dev/null && is_feature_enabled contribution_watch 2>/dev/null && command -v gh &>/dev/null && gh auth status &>/dev/null 2>&1; then
1616
+ # Init is idempotent — skips if repo already exists
1617
+ if bash "$dr_script" init >/dev/null 2>&1; then
1618
+ print_info "Draft responses repo ready (private, for contribution reply approval)"
1619
+ else
1620
+ print_warning "Draft responses repo setup failed (non-fatal)"
1621
+ fi
1622
+ fi
1623
+
1611
1624
  # Profile README — auto-create repo and seed README if not already set up.
1612
1625
  # Requires gh CLI authenticated. Creates username/username repo, seeds README
1613
1626
  # with stat markers, registers in repos.json with priority: "profile".
1614
1627
  local pr_script="$HOME/.aidevops/agents/scripts/profile-readme-helper.sh"
1615
1628
  local pr_label="sh.aidevops.profile-readme-update"
1616
1629
  local repos_json="$HOME/.config/aidevops/repos.json"
1617
- local has_profile_repo="false"
1618
1630
  if [[ -x "$pr_script" ]] && command -v gh &>/dev/null && gh auth status &>/dev/null; then
1619
1631
  # Initialize profile repo if not already set up.
1620
1632
  # Verify the entry is valid: local dir exists AND README has stat markers.
@@ -1634,23 +1646,16 @@ CW_PLIST
1634
1646
  [[ -f "${profile_path}/README.md" ]] &&
1635
1647
  grep -q '<!-- STATS-START -->' "${profile_path}/README.md" 2>/dev/null; then
1636
1648
  profile_needs_init="false"
1637
- has_profile_repo="true"
1638
1649
  fi
1639
1650
  fi
1640
1651
  if [[ "$profile_needs_init" == "true" ]]; then
1641
1652
  print_info "Setting up GitHub profile README..."
1642
1653
  if bash "$pr_script" init; then
1643
- has_profile_repo="true"
1644
1654
  print_info "Profile README created. Visit your profile repo and click 'Show on profile'."
1645
1655
  else
1646
1656
  print_warning "Profile README setup failed (non-fatal, skipping)"
1647
1657
  fi
1648
1658
  fi
1649
- elif [[ -f "$repos_json" ]] && command -v jq &>/dev/null; then
1650
- # No gh CLI but check if profile repo already registered
1651
- if jq -e '.initialized_repos[]? | select(.priority == "profile")' "$repos_json" >/dev/null 2>&1; then
1652
- has_profile_repo="true"
1653
- fi
1654
1659
  fi
1655
1660
 
1656
1661
  # Profile README auto-update scheduled job.