aidevops 3.5.460 → 3.5.462
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/migrations.sh +17 -3
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.5.
|
|
1
|
+
3.5.462
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ cleanup_deprecated_paths() {
|
|
|
71
71
|
# See: ~/.config/aidevops/settings.json { "preserve_oh_my_opencode": true }
|
|
72
72
|
local omo_config="$HOME/.config/opencode/oh-my-opencode.json"
|
|
73
73
|
if [[ -f "$omo_config" ]]; then
|
|
74
|
-
if
|
|
74
|
+
if should_cleanup_oh_my_opencode_artifacts "oh-my-opencode config ($omo_config)"; then
|
|
75
75
|
rm -f "$omo_config"
|
|
76
76
|
print_info "Removed oh-my-opencode config"
|
|
77
77
|
fi
|
|
@@ -91,7 +91,7 @@ cleanup_deprecated_paths() {
|
|
|
91
91
|
opencode_config=$(find_opencode_config 2>/dev/null) || true
|
|
92
92
|
if [[ -n "$opencode_config" ]] && [[ -f "$opencode_config" ]] && command -v jq &>/dev/null; then
|
|
93
93
|
if jq -e '.plugin | index("oh-my-opencode")' "$opencode_config" >/dev/null 2>&1; then
|
|
94
|
-
if
|
|
94
|
+
if should_cleanup_oh_my_opencode_artifacts "oh-my-opencode plugin entry in OpenCode config"; then
|
|
95
95
|
local tmp_file
|
|
96
96
|
tmp_file=$(mktemp)
|
|
97
97
|
trap 'rm -f "${tmp_file:-}"' RETURN
|
|
@@ -104,6 +104,20 @@ cleanup_deprecated_paths() {
|
|
|
104
104
|
return 0
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
# Backward-compatibility guard for oh-my-opencode cleanup migration.
|
|
108
|
+
# setup.sh no longer defines should_overwrite_user_file() in current runtime.
|
|
109
|
+
# Preserve user files by default when the legacy helper is unavailable.
|
|
110
|
+
should_cleanup_oh_my_opencode_artifacts() {
|
|
111
|
+
local description="$1"
|
|
112
|
+
|
|
113
|
+
if type should_overwrite_user_file &>/dev/null; then
|
|
114
|
+
should_overwrite_user_file "preserve_oh_my_opencode" "$description"
|
|
115
|
+
return $?
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
return 1
|
|
119
|
+
}
|
|
120
|
+
|
|
107
121
|
# Remove osgrep completely — one-time cleanup for all aidevops users
|
|
108
122
|
# osgrep consumed 74GB disk (lancedb indexes) and 4 CPU cores on startup.
|
|
109
123
|
# rg + fd + LLM comprehension covers the same ground at zero resource cost.
|
|
@@ -592,7 +606,7 @@ _migrate_mcp_npx_to_binary() {
|
|
|
592
606
|
local bin_name="${mcp_bins[$i]}"
|
|
593
607
|
# Find MCP key using npx/bunx/pipx for this package (single query)
|
|
594
608
|
local mcp_key
|
|
595
|
-
mcp_key=$(jq -r --arg pkg "$pkg" '.mcp | to_entries[] | select(.value.command != null) | select(.value.command | join(" ") | test("npx.*" + $pkg + "|bunx.*" + $pkg + "|pipx.*run.*" + $pkg)) | .key' "$tmp_config" 2>/dev/null | head -1)
|
|
609
|
+
mcp_key=$(jq -r --arg pkg "$pkg" '(.mcp // {}) | to_entries[]? | select(.value.command != null) | select(.value.command | join(" ") | test("npx.*" + $pkg + "|bunx.*" + $pkg + "|pipx.*run.*" + $pkg)) | .key' "$tmp_config" 2>/dev/null | head -1)
|
|
596
610
|
|
|
597
611
|
if [[ -n "$mcp_key" ]]; then
|
|
598
612
|
# Resolve full path for the binary
|
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.5.
|
|
13
|
+
# Version: 3.5.462
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|