aidevops 3.8.34 → 3.8.36
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 +1 -1
- package/aidevops.sh +112 -91
- package/package.json +1 -1
- package/setup-modules/schedulers.sh +5 -0
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.8.
|
|
1
|
+
3.8.36
|
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.8.
|
|
8
|
+
# Version: 3.8.36
|
|
9
9
|
|
|
10
10
|
set -euo pipefail
|
|
11
11
|
|
|
@@ -3735,31 +3735,124 @@ _dispatch_config() {
|
|
|
3735
3735
|
return 0
|
|
3736
3736
|
}
|
|
3737
3737
|
|
|
3738
|
-
#
|
|
3739
|
-
|
|
3740
|
-
local command="$
|
|
3741
|
-
|
|
3742
|
-
# Auto-detect unregistered repo on any command (silent check)
|
|
3738
|
+
# Emit tip if the current directory has aidevops but isn't registered
|
|
3739
|
+
_main_check_unregistered() {
|
|
3740
|
+
local command="$1"
|
|
3743
3741
|
local unregistered
|
|
3744
3742
|
unregistered=$(detect_unregistered_repo 2>/dev/null) || true
|
|
3745
3743
|
if [[ -n "$unregistered" && "$command" != "detect" && "$command" != "repos" ]]; then
|
|
3746
3744
|
echo -e "${YELLOW}[TIP]${NC} This project uses aidevops but isn't registered. Run: aidevops repos add"
|
|
3747
3745
|
echo ""
|
|
3748
3746
|
fi
|
|
3747
|
+
return 0
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
# Warn when CLI and agents versions differ
|
|
3751
|
+
_main_check_version() {
|
|
3752
|
+
local cli_version agents_version
|
|
3753
|
+
cli_version=$(get_version)
|
|
3754
|
+
[[ -f "$AGENTS_DIR/VERSION" ]] && agents_version=$(cat "$AGENTS_DIR/VERSION") || agents_version="not installed"
|
|
3755
|
+
if [[ "$agents_version" == "not installed" ]]; then
|
|
3756
|
+
echo -e "${YELLOW}[WARN]${NC} Agents not installed. Run: aidevops update"
|
|
3757
|
+
echo ""
|
|
3758
|
+
elif [[ "$cli_version" != "$agents_version" ]]; then
|
|
3759
|
+
echo -e "${YELLOW}[WARN]${NC} Version mismatch - CLI: $cli_version, Agents: $agents_version"
|
|
3760
|
+
echo -e " Run: aidevops update"
|
|
3761
|
+
echo ""
|
|
3762
|
+
fi
|
|
3763
|
+
return 0
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
# Route 'aidevops security [subcommand]' to appropriate helpers
|
|
3767
|
+
_cmd_security() {
|
|
3768
|
+
case "${1:-}" in
|
|
3769
|
+
"")
|
|
3770
|
+
# No args: run ALL security checks (posture + hygiene + advisories)
|
|
3771
|
+
echo ""
|
|
3772
|
+
echo "Running full security assessment..."
|
|
3773
|
+
echo "==================================="
|
|
3774
|
+
echo ""
|
|
3775
|
+
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" status || true
|
|
3776
|
+
echo ""
|
|
3777
|
+
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" scan || true
|
|
3778
|
+
;;
|
|
3779
|
+
scan | scan-secrets | scan-pth | scan-deps | dismiss)
|
|
3780
|
+
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" "$@"
|
|
3781
|
+
;;
|
|
3782
|
+
hygiene)
|
|
3783
|
+
shift
|
|
3784
|
+
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" "${@:-scan}"
|
|
3785
|
+
;;
|
|
3786
|
+
posture | setup)
|
|
3787
|
+
shift || true
|
|
3788
|
+
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" "${@:-setup}"
|
|
3789
|
+
;;
|
|
3790
|
+
status)
|
|
3791
|
+
# Status shows both posture and hygiene summary
|
|
3792
|
+
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" status || true
|
|
3793
|
+
echo ""
|
|
3794
|
+
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" startup-check || true
|
|
3795
|
+
;;
|
|
3796
|
+
*)
|
|
3797
|
+
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" "$@"
|
|
3798
|
+
;;
|
|
3799
|
+
esac
|
|
3800
|
+
return 0
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
# Route 'aidevops client-format [subcommand]' to appropriate helpers
|
|
3804
|
+
_cmd_client_format() {
|
|
3805
|
+
case "${1:-status}" in
|
|
3806
|
+
extract | refresh)
|
|
3807
|
+
_dispatch_helper "cch-extract.sh" "cch-extract.sh" --cache
|
|
3808
|
+
;;
|
|
3809
|
+
check | verify)
|
|
3810
|
+
_dispatch_helper "cch-extract.sh" "cch-extract.sh" --verify
|
|
3811
|
+
;;
|
|
3812
|
+
canary | test)
|
|
3813
|
+
shift || true
|
|
3814
|
+
_dispatch_helper "cch-canary.sh" "cch-canary.sh" --verbose "$@"
|
|
3815
|
+
;;
|
|
3816
|
+
monitor)
|
|
3817
|
+
shift || true
|
|
3818
|
+
_dispatch_helper "cch-traffic-monitor.sh" "cch-traffic-monitor.sh" "$@"
|
|
3819
|
+
;;
|
|
3820
|
+
install-canary)
|
|
3821
|
+
_dispatch_helper "cch-canary.sh" "cch-canary.sh" --install
|
|
3822
|
+
;;
|
|
3823
|
+
status | "")
|
|
3824
|
+
echo ""
|
|
3825
|
+
echo "Client request format alignment"
|
|
3826
|
+
echo "==============================="
|
|
3827
|
+
echo ""
|
|
3828
|
+
_dispatch_helper "cch-extract.sh" "cch-extract.sh" --verify 2>&1 || true
|
|
3829
|
+
echo ""
|
|
3830
|
+
if [[ -f "$HOME/.aidevops/cch-constants.json" ]]; then
|
|
3831
|
+
echo "Cached constants:"
|
|
3832
|
+
cat "$HOME/.aidevops/cch-constants.json"
|
|
3833
|
+
else
|
|
3834
|
+
echo "No cached constants. Run: aidevops client-format extract"
|
|
3835
|
+
fi
|
|
3836
|
+
;;
|
|
3837
|
+
*)
|
|
3838
|
+
print_error "Unknown subcommand: $1"
|
|
3839
|
+
echo "Usage: aidevops client-format [extract|check|canary|monitor|install-canary|status]"
|
|
3840
|
+
exit 1
|
|
3841
|
+
;;
|
|
3842
|
+
esac
|
|
3843
|
+
return 0
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
# Main entry point
|
|
3847
|
+
main() {
|
|
3848
|
+
local command="${1:-help}"
|
|
3849
|
+
|
|
3850
|
+
# Auto-detect unregistered repo on any command (silent check)
|
|
3851
|
+
_main_check_unregistered "$command"
|
|
3749
3852
|
|
|
3750
3853
|
# Check if agents need updating (skip for update command itself)
|
|
3751
3854
|
if [[ "$command" != "update" && "$command" != "upgrade" && "$command" != "u" ]]; then
|
|
3752
|
-
|
|
3753
|
-
cli_version=$(get_version)
|
|
3754
|
-
[[ -f "$AGENTS_DIR/VERSION" ]] && agents_version=$(cat "$AGENTS_DIR/VERSION") || agents_version="not installed"
|
|
3755
|
-
if [[ "$agents_version" == "not installed" ]]; then
|
|
3756
|
-
echo -e "${YELLOW}[WARN]${NC} Agents not installed. Run: aidevops update"
|
|
3757
|
-
echo ""
|
|
3758
|
-
elif [[ "$cli_version" != "$agents_version" ]]; then
|
|
3759
|
-
echo -e "${YELLOW}[WARN]${NC} Version mismatch - CLI: $cli_version, Agents: $agents_version"
|
|
3760
|
-
echo -e " Run: aidevops update"
|
|
3761
|
-
echo ""
|
|
3762
|
-
fi
|
|
3855
|
+
_main_check_version
|
|
3763
3856
|
fi
|
|
3764
3857
|
|
|
3765
3858
|
shift || true
|
|
@@ -3778,84 +3871,12 @@ main() {
|
|
|
3778
3871
|
sources | agent-sources) _dispatch_helper "agent-sources-helper.sh" "agent-sources-helper.sh" "$@" ;;
|
|
3779
3872
|
plugin | plugins) cmd_plugin "$@" ;;
|
|
3780
3873
|
pulse) _dispatch_helper "pulse-session-helper.sh" "pulse-session-helper.sh" "$@" ;;
|
|
3781
|
-
security)
|
|
3782
|
-
case "${1:-}" in
|
|
3783
|
-
"")
|
|
3784
|
-
# No args: run ALL security checks (posture + hygiene + advisories)
|
|
3785
|
-
echo ""
|
|
3786
|
-
echo "Running full security assessment..."
|
|
3787
|
-
echo "==================================="
|
|
3788
|
-
echo ""
|
|
3789
|
-
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" status || true
|
|
3790
|
-
echo ""
|
|
3791
|
-
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" scan || true
|
|
3792
|
-
;;
|
|
3793
|
-
scan | scan-secrets | scan-pth | scan-deps | dismiss)
|
|
3794
|
-
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" "$@"
|
|
3795
|
-
;;
|
|
3796
|
-
hygiene)
|
|
3797
|
-
shift
|
|
3798
|
-
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" "${@:-scan}"
|
|
3799
|
-
;;
|
|
3800
|
-
posture | setup)
|
|
3801
|
-
shift || true
|
|
3802
|
-
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" "${@:-setup}"
|
|
3803
|
-
;;
|
|
3804
|
-
status)
|
|
3805
|
-
# Status shows both posture and hygiene summary
|
|
3806
|
-
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" status || true
|
|
3807
|
-
echo ""
|
|
3808
|
-
_dispatch_helper "secret-hygiene-helper.sh" "secret-hygiene-helper.sh" startup-check || true
|
|
3809
|
-
;;
|
|
3810
|
-
*)
|
|
3811
|
-
_dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" "$@"
|
|
3812
|
-
;;
|
|
3813
|
-
esac
|
|
3814
|
-
;;
|
|
3874
|
+
security) _cmd_security "$@" ;;
|
|
3815
3875
|
doctor | doc) _dispatch_helper "doctor-helper.sh" "doctor-helper.sh" "$@" ;;
|
|
3816
3876
|
detect | scan) cmd_detect ;;
|
|
3817
3877
|
ip-check | ip_check) _dispatch_helper "ip-reputation-helper.sh" "ip-reputation-helper.sh" "$@" ;;
|
|
3818
3878
|
model-accounts-pool | map) _dispatch_helper "oauth-pool-helper.sh" "oauth-pool-helper.sh" "$@" ;;
|
|
3819
|
-
client-format)
|
|
3820
|
-
case "${1:-status}" in
|
|
3821
|
-
extract | refresh)
|
|
3822
|
-
_dispatch_helper "cch-extract.sh" "cch-extract.sh" --cache
|
|
3823
|
-
;;
|
|
3824
|
-
check | verify)
|
|
3825
|
-
_dispatch_helper "cch-extract.sh" "cch-extract.sh" --verify
|
|
3826
|
-
;;
|
|
3827
|
-
canary | test)
|
|
3828
|
-
shift || true
|
|
3829
|
-
_dispatch_helper "cch-canary.sh" "cch-canary.sh" --verbose "$@"
|
|
3830
|
-
;;
|
|
3831
|
-
monitor)
|
|
3832
|
-
shift || true
|
|
3833
|
-
_dispatch_helper "cch-traffic-monitor.sh" "cch-traffic-monitor.sh" "$@"
|
|
3834
|
-
;;
|
|
3835
|
-
install-canary)
|
|
3836
|
-
_dispatch_helper "cch-canary.sh" "cch-canary.sh" --install
|
|
3837
|
-
;;
|
|
3838
|
-
status | "")
|
|
3839
|
-
echo ""
|
|
3840
|
-
echo "Client request format alignment"
|
|
3841
|
-
echo "==============================="
|
|
3842
|
-
echo ""
|
|
3843
|
-
_dispatch_helper "cch-extract.sh" "cch-extract.sh" --verify 2>&1 || true
|
|
3844
|
-
echo ""
|
|
3845
|
-
if [[ -f "$HOME/.aidevops/cch-constants.json" ]]; then
|
|
3846
|
-
echo "Cached constants:"
|
|
3847
|
-
cat "$HOME/.aidevops/cch-constants.json"
|
|
3848
|
-
else
|
|
3849
|
-
echo "No cached constants. Run: aidevops client-format extract"
|
|
3850
|
-
fi
|
|
3851
|
-
;;
|
|
3852
|
-
*)
|
|
3853
|
-
print_error "Unknown subcommand: $1"
|
|
3854
|
-
echo "Usage: aidevops client-format [extract|check|canary|monitor|install-canary|status]"
|
|
3855
|
-
exit 1
|
|
3856
|
-
;;
|
|
3857
|
-
esac
|
|
3858
|
-
;;
|
|
3879
|
+
client-format) _cmd_client_format "$@" ;;
|
|
3859
3880
|
opencode-sandbox | oc-sandbox) _dispatch_helper "opencode-sandbox-helper.sh" "opencode-sandbox-helper.sh" "$@" ;;
|
|
3860
3881
|
secret | secrets) _dispatch_helper "secret-helper.sh" "secret-helper.sh" "$@" ;;
|
|
3861
3882
|
approve) _dispatch_helper "approval-helper.sh" "approval-helper.sh" "$@" ;;
|
package/package.json
CHANGED
|
@@ -491,6 +491,11 @@ _generate_pulse_plist_content() {
|
|
|
491
491
|
<string>${PULSE_STALE_THRESHOLD_SECONDS}</string>
|
|
492
492
|
${_headless_xml_env}
|
|
493
493
|
</dict>
|
|
494
|
+
<key>SoftResourceLimits</key>
|
|
495
|
+
<dict>
|
|
496
|
+
<key>NumberOfFiles</key>
|
|
497
|
+
<integer>4096</integer>
|
|
498
|
+
</dict>
|
|
494
499
|
<key>RunAtLoad</key>
|
|
495
500
|
<true/>
|
|
496
501
|
<key>KeepAlive</key>
|
package/setup.sh
CHANGED
|
@@ -12,7 +12,7 @@ shopt -s inherit_errexit 2>/dev/null || true
|
|
|
12
12
|
# AI Assistant Server Access Framework Setup Script
|
|
13
13
|
# Helps developers set up the framework for their infrastructure
|
|
14
14
|
#
|
|
15
|
-
# Version: 3.8.
|
|
15
|
+
# Version: 3.8.36
|
|
16
16
|
#
|
|
17
17
|
# Quick Install:
|
|
18
18
|
# npm install -g aidevops && aidevops update (recommended)
|