aidevops 3.1.72 → 3.1.74

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 CHANGED
@@ -1 +1 @@
1
- 3.1.72
1
+ 3.1.74
package/aidevops.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI DevOps Framework CLI
4
4
  # Usage: aidevops <command> [options]
5
5
  #
6
- # Version: 3.1.72
6
+ # Version: 3.1.74
7
7
 
8
8
  set -euo pipefail
9
9
 
package/bin/aidevops CHANGED
@@ -1,30 +1,36 @@
1
1
  #!/usr/bin/env bash
2
2
  # AI DevOps Framework CLI wrapper
3
- # This wrapper handles both npm global install and local development
3
+ # This wrapper handles both npm global install and local development.
4
+ #
5
+ # Priority order (highest to lowest):
6
+ # 1. ~/Git/aidevops/aidevops.sh — git repo, always current via 'aidevops update'
7
+ # 2. npm-bundled aidevops.sh — snapshot at npm publish time, may be stale
8
+ #
9
+ # The repo copy is preferred so that 'aidevops update' (git pull) immediately
10
+ # takes effect without requiring 'npm update -g aidevops'.
4
11
 
5
12
  set -euo pipefail
6
13
 
7
- # Resolve symlinks to find the actual script location
14
+ # 1. Prefer the git repo copy always current via 'aidevops update'
15
+ if [[ -f "$HOME/Git/aidevops/aidevops.sh" ]]; then
16
+ exec bash "$HOME/Git/aidevops/aidevops.sh" "$@"
17
+ fi
18
+
19
+ # 2. Fall back to the npm-bundled copy (resolve symlinks first)
8
20
  # npm install -g creates a symlink: /usr/local/bin/aidevops -> .../node_modules/aidevops/bin/aidevops
9
21
  # BASH_SOURCE[0] returns the symlink path, not the target, so we must resolve it
10
22
  SOURCE="${BASH_SOURCE[0]}"
11
23
  while [[ -L "$SOURCE" ]]; do
12
24
  DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
13
25
  SOURCE="$(readlink "$SOURCE")"
14
- # If readlink returned a relative path, resolve it relative to the symlink's directory
15
26
  [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
16
27
  done
17
28
  SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
18
29
 
19
- # Check if we're in an npm global install or local development
20
30
  if [[ -f "$SCRIPT_DIR/../aidevops.sh" ]]; then
21
- # npm install -g or local development
22
31
  exec bash "$SCRIPT_DIR/../aidevops.sh" "$@"
23
- elif [[ -f "$HOME/Git/aidevops/aidevops.sh" ]]; then
24
- # Fallback to standard install location
25
- exec bash "$HOME/Git/aidevops/aidevops.sh" "$@"
26
- else
27
- echo "Error: aidevops.sh not found"
28
- echo "Please run: bash <(curl -fsSL https://aidevops.sh/install)"
29
- exit 1
30
32
  fi
33
+
34
+ echo "Error: aidevops.sh not found"
35
+ echo "Please run: bash <(curl -fsSL https://aidevops.sh/install)"
36
+ exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.1.72",
3
+ "version": "3.1.74",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -81,6 +81,11 @@ cleanup_deprecated_paths() {
81
81
  # rg + fd + LLM comprehension covers the same ground at zero resource cost
82
82
  cleanup_osgrep
83
83
 
84
+ # Remove opencode-antigravity-auth — third-party Google OAuth plugin removed from aidevops.
85
+ # When present but unresolvable it breaks the OpenCode plugin chain, preventing the
86
+ # aidevops pool from injecting tokens and causing "API key missing" errors for all providers.
87
+ cleanup_antigravity_plugin
88
+
84
89
  # Remove oh-my-opencode from plugin array if present — guarded by same setting
85
90
  local opencode_config
86
91
  opencode_config=$(find_opencode_config 2>/dev/null) || true
@@ -184,6 +189,59 @@ cleanup_osgrep() {
184
189
  return 0
185
190
  }
186
191
 
192
+ # Remove opencode-antigravity-auth plugin — third-party Google OAuth plugin removed from aidevops.
193
+ # When present but unresolvable it breaks the OpenCode plugin chain, preventing the aidevops
194
+ # pool from injecting tokens and causing "API key missing" errors for all providers.
195
+ # Affects: opencode.json plugin array, Claude Code settings enabledPlugins.
196
+ cleanup_antigravity_plugin() {
197
+ local cleaned=false
198
+ local plugin_id="opencode-antigravity-auth"
199
+
200
+ # 1. Remove from OpenCode config plugin array
201
+ local opencode_config
202
+ opencode_config=$(find_opencode_config 2>/dev/null) || true
203
+ if [[ -n "$opencode_config" ]] && [[ -f "$opencode_config" ]] && command -v jq &>/dev/null; then
204
+ # Plugin may appear as bare name or with @version suffix
205
+ if jq -e --arg p "$plugin_id" '.plugin // [] | map(. | startswith($p)) | any' "$opencode_config" >/dev/null 2>&1; then
206
+ local tmp_file
207
+ tmp_file=$(mktemp)
208
+ if jq --arg p "$plugin_id" '.plugin = [(.plugin // [])[] | select(startswith($p) | not)]' \
209
+ "$opencode_config" >"$tmp_file" 2>/dev/null; then
210
+ mv "$tmp_file" "$opencode_config"
211
+ print_success "Removed ${plugin_id} from OpenCode plugin list"
212
+ cleaned=true
213
+ else
214
+ rm -f "$tmp_file"
215
+ fi
216
+ fi
217
+ fi
218
+
219
+ # 2. Remove from Claude Code settings enabledPlugins (if present)
220
+ local claude_settings="$HOME/.claude/settings.json"
221
+ if [[ -f "$claude_settings" ]] && command -v jq &>/dev/null; then
222
+ if jq -e --arg p "$plugin_id" '.enabledPlugins // {} | keys[] | startswith($p)' \
223
+ "$claude_settings" >/dev/null 2>&1; then
224
+ local tmp_file
225
+ tmp_file=$(mktemp)
226
+ if jq --arg p "$plugin_id" \
227
+ 'del(.enabledPlugins[(.enabledPlugins // {} | keys[] | select(startswith($p)))])' \
228
+ "$claude_settings" >"$tmp_file" 2>/dev/null; then
229
+ mv "$tmp_file" "$claude_settings"
230
+ print_success "Removed ${plugin_id} from Claude Code settings"
231
+ cleaned=true
232
+ else
233
+ rm -f "$tmp_file"
234
+ fi
235
+ fi
236
+ fi
237
+
238
+ if [[ "$cleaned" == "false" ]]; then
239
+ print_info "${plugin_id} not present — nothing to remove"
240
+ fi
241
+
242
+ return 0
243
+ }
244
+
187
245
  # Remove stale bun-installed opencode if npm version exists (v2.123.5)
188
246
  # Prior to v2.123.1, tool-version-check.sh used `bun install -g opencode-ai`.
189
247
  # This left a binary at ~/.bun/bin/opencode that shadows the npm install
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.72
13
+ # Version: 3.1.74
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)