aidevops 3.1.267 → 3.1.268
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 +1 -1
- package/package.json +1 -1
- package/setup-modules/agent-deploy.sh +16 -7
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.268
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -105,12 +105,11 @@ _deploy_agents_copy() {
|
|
|
105
105
|
local source_dir="$1"
|
|
106
106
|
local target_dir="$2"
|
|
107
107
|
shift 2
|
|
108
|
-
local -a plugin_namespaces=("$@")
|
|
109
108
|
|
|
110
109
|
local deploy_ok=false
|
|
111
110
|
if command -v rsync &>/dev/null; then
|
|
112
111
|
local -a rsync_excludes=("--exclude=loop-state/" "--exclude=custom/" "--exclude=draft/")
|
|
113
|
-
for pns in "
|
|
112
|
+
for pns in "$@"; do
|
|
114
113
|
rsync_excludes+=("--exclude=${pns}/")
|
|
115
114
|
done
|
|
116
115
|
if rsync -a "${rsync_excludes[@]}" "$source_dir/" "$target_dir/"; then
|
|
@@ -119,7 +118,7 @@ _deploy_agents_copy() {
|
|
|
119
118
|
else
|
|
120
119
|
# Fallback: use tar with exclusions to match rsync behavior
|
|
121
120
|
local -a tar_excludes=("--exclude=loop-state" "--exclude=custom" "--exclude=draft")
|
|
122
|
-
for pns in "
|
|
121
|
+
for pns in "$@"; do
|
|
123
122
|
tar_excludes+=("--exclude=$pns")
|
|
124
123
|
done
|
|
125
124
|
if (cd "$source_dir" && tar cf - "${tar_excludes[@]}" .) | (cd "$target_dir" && tar xf -); then
|
|
@@ -290,9 +289,11 @@ deploy_aidevops_agents() {
|
|
|
290
289
|
# If clean mode, remove stale files first (preserving user and plugin directories)
|
|
291
290
|
if [[ "$CLEAN_MODE" == "true" ]]; then
|
|
292
291
|
local -a preserved_dirs=("custom" "draft")
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
292
|
+
if [[ ${#plugin_namespaces[@]} -gt 0 ]]; then
|
|
293
|
+
for pns in "${plugin_namespaces[@]}"; do
|
|
294
|
+
preserved_dirs+=("$pns")
|
|
295
|
+
done
|
|
296
|
+
fi
|
|
296
297
|
_deploy_agents_clean_mode "$target_dir" "${preserved_dirs[@]}" || return 1
|
|
297
298
|
fi
|
|
298
299
|
|
|
@@ -301,7 +302,15 @@ deploy_aidevops_agents() {
|
|
|
301
302
|
# - custom/ (user's private agents, never overwritten)
|
|
302
303
|
# - draft/ (user's experimental agents, never overwritten)
|
|
303
304
|
# - plugin namespace directories (managed separately)
|
|
304
|
-
|
|
305
|
+
local copy_rc
|
|
306
|
+
if [[ ${#plugin_namespaces[@]} -gt 0 ]]; then
|
|
307
|
+
_deploy_agents_copy "$source_dir" "$target_dir" "${plugin_namespaces[@]}"
|
|
308
|
+
copy_rc=$?
|
|
309
|
+
else
|
|
310
|
+
_deploy_agents_copy "$source_dir" "$target_dir"
|
|
311
|
+
copy_rc=$?
|
|
312
|
+
fi
|
|
313
|
+
if [[ "$copy_rc" -eq 0 ]]; then
|
|
305
314
|
print_success "Deployed agents to $target_dir"
|
|
306
315
|
_deploy_agents_post_copy "$target_dir" "$repo_dir" "$source_dir" "$plugins_file"
|
|
307
316
|
else
|
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.
|
|
13
|
+
# Version: 3.1.268
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|