aidevops 3.1.86 → 3.1.87

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.86
1
+ 3.1.87
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.86
6
+ # Version: 3.1.87
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.86",
3
+ "version": "3.1.87",
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.86
13
+ # Version: 3.1.87
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)
@@ -1645,32 +1645,16 @@ CW_PLIST
1645
1645
  local repos_json="$HOME/.config/aidevops/repos.json"
1646
1646
  if [[ -x "$pr_script" ]] && command -v gh &>/dev/null && gh auth status &>/dev/null; then
1647
1647
  # Initialize profile repo if not already set up.
1648
- # Verify the entry is valid: local dir exists AND README has stat markers.
1649
- # If the repo was deleted or local clone removed, re-run init to recreate.
1650
- local profile_needs_init="true"
1651
- if [[ -f "$repos_json" ]] && command -v jq &>/dev/null; then
1652
- local profile_path
1653
- profile_path=$(jq -r '
1654
- if .initialized_repos then
1655
- .initialized_repos[] | select(.priority == "profile") | .path
1656
- else
1657
- to_entries[] | select(.value.priority == "profile") | .value.path
1658
- end
1659
- ' "$repos_json" 2>/dev/null | head -1)
1660
- if [[ -n "$profile_path" && "$profile_path" != "null" ]] &&
1661
- [[ -d "$profile_path" ]] &&
1662
- [[ -f "${profile_path}/README.md" ]] &&
1663
- grep -q '<!-- STATS-START -->' "${profile_path}/README.md" 2>/dev/null; then
1664
- profile_needs_init="false"
1665
- fi
1666
- fi
1667
- if [[ "$profile_needs_init" == "true" ]]; then
1668
- print_info "Setting up GitHub profile README..."
1669
- if bash "$pr_script" init; then
1670
- print_info "Profile README created. Visit your profile repo and click 'Show on profile'."
1671
- else
1672
- print_warning "Profile README setup failed (non-fatal, skipping)"
1673
- fi
1648
+ # Always run init it's idempotent and handles:
1649
+ # - Fresh installs (no profile repo)
1650
+ # - Missing markers (injects them into existing README)
1651
+ # - Diverged history (repo deleted and recreated on GitHub)
1652
+ # - Already-initialized repos (returns early with no changes)
1653
+ print_info "Checking GitHub profile README..."
1654
+ if bash "$pr_script" init; then
1655
+ print_info "Profile README ready."
1656
+ else
1657
+ print_warning "Profile README setup failed (non-fatal, skipping)"
1674
1658
  fi
1675
1659
  fi
1676
1660