aidevops 3.1.17 → 3.1.19
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/config.sh +0 -6
- package/setup-modules/mcp-setup.sh +46 -2
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.19
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
package/setup-modules/config.sh
CHANGED
|
@@ -139,12 +139,6 @@ update_claude_config() {
|
|
|
139
139
|
return 0
|
|
140
140
|
fi
|
|
141
141
|
|
|
142
|
-
# Guard: only run if claude binary exists (t1161)
|
|
143
|
-
if ! command -v claude &>/dev/null; then
|
|
144
|
-
print_info "Claude Code not found — skipping Claude config (install: https://claude.ai/download)"
|
|
145
|
-
return 0
|
|
146
|
-
fi
|
|
147
|
-
|
|
148
142
|
print_info "Updating Claude Code configuration..."
|
|
149
143
|
|
|
150
144
|
# Generate Claude Code commands (writes to ~/.claude/commands/)
|
|
@@ -502,18 +502,62 @@ setup_opencode_plugins() {
|
|
|
502
502
|
|
|
503
503
|
# Setup aidevops compaction plugin (local file plugin)
|
|
504
504
|
local aidevops_plugin_path="$HOME/.aidevops/agents/plugins/opencode-aidevops/index.mjs"
|
|
505
|
+
local pool_plugin_registered="false"
|
|
505
506
|
if [[ -f "$aidevops_plugin_path" ]]; then
|
|
506
507
|
add_opencode_plugin "file://$HOME/.aidevops" "file://${aidevops_plugin_path}" "$opencode_config"
|
|
507
508
|
print_success "aidevops compaction plugin registered (preserves context across compaction)"
|
|
508
509
|
setup_track_configured "OpenCode plugins"
|
|
510
|
+
pool_plugin_registered="true"
|
|
509
511
|
fi
|
|
510
512
|
|
|
511
513
|
# Note: opencode-anthropic-auth is built into OpenCode v1.1.36+
|
|
512
514
|
# Adding it as an external plugin causes TypeError due to double-loading.
|
|
513
515
|
# Removed in v2.90.0 - see PR #230.
|
|
514
516
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
+
# Detect OpenCode version to give appropriate auth guidance (t1546, GH#5312)
|
|
518
|
+
# v1.2.30+ removes the built-in anthropic-auth plugin entirely.
|
|
519
|
+
# The aidevops OAuth pool (oauth-pool.mjs) is the replacement for all versions.
|
|
520
|
+
local oc_raw_version
|
|
521
|
+
oc_raw_version=$(opencode --version 2>/dev/null | head -1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "0.0.0")
|
|
522
|
+
|
|
523
|
+
local oc_major oc_minor oc_patch
|
|
524
|
+
oc_major=$(printf '%s' "$oc_raw_version" | cut -d. -f1)
|
|
525
|
+
oc_minor=$(printf '%s' "$oc_raw_version" | cut -d. -f2)
|
|
526
|
+
oc_patch=$(printf '%s' "$oc_raw_version" | cut -d. -f3)
|
|
527
|
+
oc_major="${oc_major:-0}"
|
|
528
|
+
oc_minor="${oc_minor:-0}"
|
|
529
|
+
oc_patch="${oc_patch:-0}"
|
|
530
|
+
|
|
531
|
+
# Compare against 1.2.30 (where built-in anthropic-auth was removed)
|
|
532
|
+
local builtin_auth_removed="false"
|
|
533
|
+
if [[ "$oc_major" -gt 1 ]]; then
|
|
534
|
+
builtin_auth_removed="true"
|
|
535
|
+
elif [[ "$oc_major" -eq 1 && "$oc_minor" -gt 2 ]]; then
|
|
536
|
+
builtin_auth_removed="true"
|
|
537
|
+
elif [[ "$oc_major" -eq 1 && "$oc_minor" -eq 2 && "$oc_patch" -ge 30 ]]; then
|
|
538
|
+
builtin_auth_removed="true"
|
|
539
|
+
fi
|
|
540
|
+
|
|
541
|
+
if [[ "$builtin_auth_removed" == "true" ]]; then
|
|
542
|
+
print_info "OpenCode v${oc_raw_version}: built-in Anthropic OAuth removed in v1.2.30"
|
|
543
|
+
if [[ "$pool_plugin_registered" == "true" ]]; then
|
|
544
|
+
print_info "Use the aidevops OAuth pool (provided by the aidevops plugin above):"
|
|
545
|
+
print_info " 1. Run: opencode auth login"
|
|
546
|
+
print_info " 2. Select: 'Anthropic Pool' (added by aidevops plugin)"
|
|
547
|
+
print_info " 3. Enter your Claude account email"
|
|
548
|
+
print_info " 4. Complete the OAuth flow in your browser"
|
|
549
|
+
print_info " 5. Repeat to add more accounts for automatic rotation"
|
|
550
|
+
print_info " Manage accounts: /model-accounts-pool list|status|remove"
|
|
551
|
+
print_info " Docs: ~/.aidevops/agents/tools/opencode/opencode-anthropic-auth.md"
|
|
552
|
+
else
|
|
553
|
+
print_warning "aidevops OpenCode plugin was not registered; 'Anthropic Pool' may be unavailable"
|
|
554
|
+
print_info "Re-run aidevops setup to register the plugin, then run: opencode auth login"
|
|
555
|
+
fi
|
|
556
|
+
else
|
|
557
|
+
print_info "After setup, authenticate with: opencode auth login"
|
|
558
|
+
print_info " - For Claude OAuth (v1.1.36-v1.2.29): Select 'Anthropic' -> 'Claude Pro/Max' (built-in)"
|
|
559
|
+
print_info " - Or use the aidevops OAuth pool: Select 'Anthropic Pool' for multi-account rotation"
|
|
560
|
+
fi
|
|
517
561
|
|
|
518
562
|
return 0
|
|
519
563
|
}
|
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.19
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|