aidevops 3.32.305 → 3.32.307
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 +1 -1
- package/VERSION +1 -1
- package/aidevops.sh +41 -8
- package/package.json +1 -1
- package/setup.sh +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ The result: an AI operations platform that manages projects across every busines
|
|
|
60
60
|
[](https://github.com/marcusquinn)
|
|
61
61
|
|
|
62
62
|
<!-- Release & Version Info -->
|
|
63
|
-
[](https://github.com/marcusquinn/aidevops/releases)
|
|
64
64
|
[](https://www.npmjs.com/package/aidevops)
|
|
65
65
|
[](https://github.com/marcusquinn/homebrew-tap)
|
|
66
66
|
[](https://github.com/marcusquinn/aidevops)
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.32.
|
|
1
|
+
3.32.307
|
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.32.
|
|
8
|
+
# Version: 3.32.307
|
|
9
9
|
|
|
10
10
|
set -euo pipefail
|
|
11
11
|
|
|
@@ -772,25 +772,55 @@ _repos_list() {
|
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
_repos_add() {
|
|
775
|
+
local bootstrap_slug=""
|
|
776
|
+
local confirmation=""
|
|
777
|
+
while [[ $# -gt 0 ]]; do
|
|
778
|
+
case "$1" in
|
|
779
|
+
--slug)
|
|
780
|
+
bootstrap_slug="${2:-}"
|
|
781
|
+
shift 2
|
|
782
|
+
;;
|
|
783
|
+
--confirm)
|
|
784
|
+
confirmation="${2:-}"
|
|
785
|
+
shift 2
|
|
786
|
+
;;
|
|
787
|
+
*)
|
|
788
|
+
print_error "Usage: aidevops repos add [--slug OWNER/REPO --confirm REGISTER_CANONICAL_REPOSITORY]"
|
|
789
|
+
return 2
|
|
790
|
+
;;
|
|
791
|
+
esac
|
|
792
|
+
done
|
|
775
793
|
git rev-parse --is-inside-work-tree &>/dev/null || {
|
|
776
794
|
print_error "Not in a git repository"
|
|
777
795
|
return 1
|
|
778
796
|
}
|
|
779
797
|
local project_root
|
|
780
798
|
project_root=$(git rev-parse --show-toplevel)
|
|
781
|
-
[[ ! -f "$project_root/.aidevops.json" ]]
|
|
782
|
-
|
|
799
|
+
if [[ ! -f "$project_root/.aidevops.json" ]]; then
|
|
800
|
+
if [[ -z "$bootstrap_slug" || "$confirmation" != "REGISTER_CANONICAL_REPOSITORY" ]]; then
|
|
801
|
+
print_error "No .aidevops.json found - run 'aidevops init' or use the confirmed --slug bootstrap form"
|
|
802
|
+
return 1
|
|
803
|
+
fi
|
|
804
|
+
local recovery_helper="${AGENTS_DIR}/scripts/canonical-recovery-helper.sh"
|
|
805
|
+
[[ -x "$recovery_helper" ]] || {
|
|
806
|
+
print_error "Canonical bootstrap verifier is unavailable"
|
|
807
|
+
return 1
|
|
808
|
+
}
|
|
809
|
+
"$recovery_helper" verify-bootstrap-registration --repo "$project_root" \
|
|
810
|
+
--slug "$bootstrap_slug" --confirm "$confirmation" || return 1
|
|
811
|
+
elif [[ -n "$bootstrap_slug" || -n "$confirmation" ]]; then
|
|
812
|
+
print_error "The --slug bootstrap form is only valid when .aidevops.json is absent"
|
|
783
813
|
return 1
|
|
784
|
-
|
|
814
|
+
fi
|
|
785
815
|
local version features
|
|
786
|
-
if command -v jq &>/dev/null; then
|
|
816
|
+
if [[ -f "$project_root/.aidevops.json" ]] && command -v jq &>/dev/null; then
|
|
787
817
|
version=$(jq -r '.version' "$project_root/.aidevops.json" 2>/dev/null || echo "unknown")
|
|
788
818
|
features=$(jq -r '[.features | to_entries[] | select(.value == true) | .key] | join(",")' "$project_root/.aidevops.json" 2>/dev/null || echo "")
|
|
789
819
|
else
|
|
790
820
|
version="unknown"
|
|
791
821
|
features=""
|
|
792
822
|
fi
|
|
793
|
-
register_repo "$project_root" "$version" "$features"
|
|
823
|
+
register_repo "$project_root" "$version" "$features" "$bootstrap_slug"
|
|
794
824
|
print_success "Registered $(basename "$project_root")"
|
|
795
825
|
return 0
|
|
796
826
|
}
|
|
@@ -873,7 +903,10 @@ cmd_repos() {
|
|
|
873
903
|
local action="${1:-list}"
|
|
874
904
|
case "$action" in
|
|
875
905
|
list | ls) _repos_list ;;
|
|
876
|
-
add)
|
|
906
|
+
add)
|
|
907
|
+
shift
|
|
908
|
+
_repos_add "$@"
|
|
909
|
+
;;
|
|
877
910
|
remove | rm) _repos_remove "${2:-}" ;;
|
|
878
911
|
clean) _repos_clean ;;
|
|
879
912
|
migrate-layout)
|
|
@@ -895,7 +928,7 @@ cmd_repos() {
|
|
|
895
928
|
echo ""
|
|
896
929
|
echo "Commands:"
|
|
897
930
|
echo " list List all registered projects (default)"
|
|
898
|
-
echo " add Register current project"
|
|
931
|
+
echo " add Register current project; confirmed --slug bootstraps config-free canonical repos"
|
|
899
932
|
echo " remove Remove project from registry"
|
|
900
933
|
echo " clean Remove entries for non-existent projects"
|
|
901
934
|
echo " migrate-layout <plan|apply|rollback|status>"
|
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -17,7 +17,7 @@ fi
|
|
|
17
17
|
# AI Assistant Server Access Framework Setup Script
|
|
18
18
|
# Helps developers set up the framework for their infrastructure
|
|
19
19
|
#
|
|
20
|
-
# Version: 3.32.
|
|
20
|
+
# Version: 3.32.307
|
|
21
21
|
#
|
|
22
22
|
# Quick Install:
|
|
23
23
|
# npm install -g aidevops && aidevops update (recommended)
|