aidevops 2.109.0 → 2.110.0
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/README.md +2 -0
- package/VERSION +1 -1
- package/aidevops.sh +21 -1
- package/package.json +1 -1
- package/setup.sh +33 -7
package/README.md
CHANGED
|
@@ -87,6 +87,7 @@ The result: AI agents that work *with* your development process, not around it.
|
|
|
87
87
|
|
|
88
88
|
- `aidevops init` - Initialize in any project
|
|
89
89
|
- `aidevops update` - Update framework
|
|
90
|
+
- `aidevops auto-update` - Automatic update polling (enable/disable/status)
|
|
90
91
|
- `aidevops secret` - Manage secrets (gopass encrypted, AI-safe)
|
|
91
92
|
- `/onboarding` - Interactive setup wizard (in AI assistant)
|
|
92
93
|
|
|
@@ -167,6 +168,7 @@ git clone https://github.com/marcusquinn/aidevops.git ~/Git/aidevops
|
|
|
167
168
|
```bash
|
|
168
169
|
aidevops status # Check what's installed
|
|
169
170
|
aidevops update # Update framework + check registered projects
|
|
171
|
+
aidevops auto-update # Manage automatic update polling (every 10 min)
|
|
170
172
|
aidevops init # Initialize aidevops in any project
|
|
171
173
|
aidevops features # List available features
|
|
172
174
|
aidevops repos # List/add/remove registered projects
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.110.0
|
package/aidevops.sh
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# AI DevOps Framework CLI
|
|
4
4
|
# Usage: aidevops <command> [options]
|
|
5
5
|
#
|
|
6
|
-
# Version: 2.
|
|
6
|
+
# Version: 2.110.0
|
|
7
7
|
|
|
8
8
|
set -euo pipefail
|
|
9
9
|
|
|
@@ -2550,6 +2550,7 @@ cmd_help() {
|
|
|
2550
2550
|
echo " status Check installation status of all components"
|
|
2551
2551
|
echo " update Update aidevops to the latest version (alias: upgrade)"
|
|
2552
2552
|
echo " upgrade Alias for update"
|
|
2553
|
+
echo " auto-update <cmd> Manage automatic update polling (enable/disable/status)"
|
|
2553
2554
|
echo " update-tools Check for outdated tools (--update to auto-update)"
|
|
2554
2555
|
echo " repos [cmd] Manage registered projects (list/add/remove/clean)"
|
|
2555
2556
|
echo " secret <cmd> Manage secrets (set/list/run/init/import/status)"
|
|
@@ -2580,6 +2581,12 @@ cmd_help() {
|
|
|
2580
2581
|
echo " aidevops secret import # Import from credentials.sh to gopass"
|
|
2581
2582
|
echo " aidevops secret status # Show backend status"
|
|
2582
2583
|
echo ""
|
|
2584
|
+
echo "Auto-Update:"
|
|
2585
|
+
echo " aidevops auto-update enable # Poll for updates every 10 min"
|
|
2586
|
+
echo " aidevops auto-update disable # Stop auto-updating"
|
|
2587
|
+
echo " aidevops auto-update status # Show auto-update state"
|
|
2588
|
+
echo " aidevops auto-update check # One-shot check and update now"
|
|
2589
|
+
echo ""
|
|
2583
2590
|
echo "Plugins:"
|
|
2584
2591
|
echo " aidevops plugin add <url> # Install a plugin from git repo"
|
|
2585
2592
|
echo " aidevops plugin list # List installed plugins"
|
|
@@ -2661,6 +2668,19 @@ main() {
|
|
|
2661
2668
|
update|upgrade|u)
|
|
2662
2669
|
cmd_update
|
|
2663
2670
|
;;
|
|
2671
|
+
auto-update|autoupdate)
|
|
2672
|
+
shift
|
|
2673
|
+
local auto_update_helper="$AGENTS_DIR/scripts/auto-update-helper.sh"
|
|
2674
|
+
if [[ ! -f "$auto_update_helper" ]]; then
|
|
2675
|
+
auto_update_helper="$INSTALL_DIR/.agents/scripts/auto-update-helper.sh"
|
|
2676
|
+
fi
|
|
2677
|
+
if [[ -f "$auto_update_helper" ]]; then
|
|
2678
|
+
bash "$auto_update_helper" "$@"
|
|
2679
|
+
else
|
|
2680
|
+
print_error "auto-update-helper.sh not found. Run: aidevops update"
|
|
2681
|
+
exit 1
|
|
2682
|
+
fi
|
|
2683
|
+
;;
|
|
2664
2684
|
update-tools|tools)
|
|
2665
2685
|
shift
|
|
2666
2686
|
cmd_update_tools "$@"
|
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -4,7 +4,7 @@ set -euo pipefail
|
|
|
4
4
|
# AI Assistant Server Access Framework Setup Script
|
|
5
5
|
# Helps developers set up the framework for their infrastructure
|
|
6
6
|
#
|
|
7
|
-
# Version: 2.
|
|
7
|
+
# Version: 2.110.0
|
|
8
8
|
#
|
|
9
9
|
# Quick Install:
|
|
10
10
|
# npm install -g aidevops && aidevops update (recommended)
|
|
@@ -1547,12 +1547,14 @@ setup_shell_compatibility() {
|
|
|
1547
1547
|
|
|
1548
1548
|
for src_file in "${bash_files[@]}"; do
|
|
1549
1549
|
local n
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
n=$(grep -cE '^\s*
|
|
1553
|
-
|
|
1554
|
-
n=$(grep -cE '
|
|
1555
|
-
|
|
1550
|
+
# grep -c outputs "0" on no match (exit 1); "|| true" prevents exit
|
|
1551
|
+
# without appending a second "0" line (which breaks arithmetic)
|
|
1552
|
+
n=$(grep -cE '^\s*export\s+[A-Z]' "$src_file" 2>/dev/null) || true
|
|
1553
|
+
total_exports=$((total_exports + ${n:-0}))
|
|
1554
|
+
n=$(grep -cE '^\s*alias\s+' "$src_file" 2>/dev/null) || true
|
|
1555
|
+
total_aliases=$((total_aliases + ${n:-0}))
|
|
1556
|
+
n=$(grep -cE 'PATH.*=' "$src_file" 2>/dev/null) || true
|
|
1557
|
+
total_paths=$((total_paths + ${n:-0}))
|
|
1556
1558
|
done
|
|
1557
1559
|
|
|
1558
1560
|
if [[ $total_exports -eq 0 && $total_aliases -eq 0 && $total_paths -eq 0 ]]; then
|
|
@@ -5099,6 +5101,30 @@ main() {
|
|
|
5099
5101
|
|
|
5100
5102
|
echo ""
|
|
5101
5103
|
print_success "🎉 Setup complete!"
|
|
5104
|
+
|
|
5105
|
+
# Enable auto-update if not already enabled
|
|
5106
|
+
local auto_update_script="$HOME/.aidevops/agents/scripts/auto-update-helper.sh"
|
|
5107
|
+
if [[ -x "$auto_update_script" ]] && [[ "${AIDEVOPS_AUTO_UPDATE:-true}" != "false" ]]; then
|
|
5108
|
+
if ! crontab -l 2>/dev/null | grep -q "aidevops-auto-update"; then
|
|
5109
|
+
if [[ "$NON_INTERACTIVE" == "true" ]]; then
|
|
5110
|
+
# Non-interactive: enable silently
|
|
5111
|
+
bash "$auto_update_script" enable >/dev/null 2>&1 || true
|
|
5112
|
+
print_info "Auto-update enabled (every 10 min). Disable: aidevops auto-update disable"
|
|
5113
|
+
else
|
|
5114
|
+
echo ""
|
|
5115
|
+
echo "Auto-update keeps aidevops current by checking every 10 minutes."
|
|
5116
|
+
echo "Safe to run while AI sessions are active."
|
|
5117
|
+
echo ""
|
|
5118
|
+
read -r -p "Enable auto-update? [Y/n]: " enable_auto
|
|
5119
|
+
if [[ "$enable_auto" =~ ^[Yy]?$ || -z "$enable_auto" ]]; then
|
|
5120
|
+
bash "$auto_update_script" enable
|
|
5121
|
+
else
|
|
5122
|
+
print_info "Skipped. Enable later: aidevops auto-update enable"
|
|
5123
|
+
fi
|
|
5124
|
+
fi
|
|
5125
|
+
fi
|
|
5126
|
+
fi
|
|
5127
|
+
|
|
5102
5128
|
echo ""
|
|
5103
5129
|
echo "CLI Command:"
|
|
5104
5130
|
echo " aidevops init - Initialize aidevops in a project"
|