aidevops 3.1.39 → 3.1.40
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/mcp-setup.sh +41 -1
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.40
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -478,6 +478,42 @@ setup_opencode_plugins() {
|
|
|
478
478
|
print_success "aidevops plugin already registered in opencode.json"
|
|
479
479
|
fi
|
|
480
480
|
pool_plugin_registered="true"
|
|
481
|
+
|
|
482
|
+
# --- Register opencode-cursor-oauth plugin (npm, auto-installed by OpenCode) ---
|
|
483
|
+
local cursor_plugin="opencode-cursor-oauth"
|
|
484
|
+
local cursor_already
|
|
485
|
+
cursor_already=$(jq --arg p "$cursor_plugin" \
|
|
486
|
+
'(.plugin // []) | map(select(. == $p)) | length' \
|
|
487
|
+
"$opencode_config" 2>/dev/null || echo "0")
|
|
488
|
+
|
|
489
|
+
if [[ "$cursor_already" -eq 0 ]]; then
|
|
490
|
+
local tmp_cursor="${opencode_config}.tmp.$$"
|
|
491
|
+
if jq --arg p "$cursor_plugin" \
|
|
492
|
+
'.plugin = ((.plugin // []) + [$p] | unique)' \
|
|
493
|
+
"$opencode_config" >"$tmp_cursor" 2>/dev/null; then
|
|
494
|
+
mv "$tmp_cursor" "$opencode_config"
|
|
495
|
+
print_success "Cursor OAuth plugin registered in opencode.json"
|
|
496
|
+
else
|
|
497
|
+
rm -f "$tmp_cursor"
|
|
498
|
+
print_warning "Failed to register Cursor OAuth plugin"
|
|
499
|
+
fi
|
|
500
|
+
else
|
|
501
|
+
print_success "Cursor OAuth plugin already registered"
|
|
502
|
+
fi
|
|
503
|
+
|
|
504
|
+
# --- Ensure cursor provider stub exists (required by opencode-cursor-oauth) ---
|
|
505
|
+
local has_cursor_provider
|
|
506
|
+
has_cursor_provider=$(jq '.provider.cursor // empty' "$opencode_config" 2>/dev/null || true)
|
|
507
|
+
if [[ -z "$has_cursor_provider" ]]; then
|
|
508
|
+
local tmp_cursor_prov="${opencode_config}.tmp.$$"
|
|
509
|
+
if jq '.provider.cursor = {"name": "Cursor"}' \
|
|
510
|
+
"$opencode_config" >"$tmp_cursor_prov" 2>/dev/null; then
|
|
511
|
+
mv "$tmp_cursor_prov" "$opencode_config"
|
|
512
|
+
print_success "Cursor provider stub added to opencode.json"
|
|
513
|
+
else
|
|
514
|
+
rm -f "$tmp_cursor_prov"
|
|
515
|
+
fi
|
|
516
|
+
fi
|
|
481
517
|
else
|
|
482
518
|
if [[ -z "${opencode_config:-}" ]]; then
|
|
483
519
|
print_info "opencode.json not found — run 'opencode' once to create it, then re-run setup"
|
|
@@ -533,9 +569,13 @@ setup_opencode_plugins() {
|
|
|
533
569
|
print_info " 4. Complete the OAuth flow in your browser"
|
|
534
570
|
print_info " 5. Repeat to add more accounts for automatic rotation"
|
|
535
571
|
print_info " 6. Switch to 'Anthropic' provider and select a model to start chatting"
|
|
572
|
+
print_info ""
|
|
573
|
+
print_info "For Cursor Pro accounts:"
|
|
574
|
+
print_info " Run: opencode auth login --provider cursor"
|
|
575
|
+
print_info " Or from shell: oauth-pool-helper.sh add cursor"
|
|
576
|
+
print_info ""
|
|
536
577
|
print_info " Health check: /models-pool-check"
|
|
537
578
|
print_info " Manage accounts: /model-accounts-pool list|status|remove"
|
|
538
|
-
print_info " Docs: ~/.aidevops/agents/tools/opencode/opencode-anthropic-auth.md"
|
|
539
579
|
else
|
|
540
580
|
print_warning "aidevops OpenCode plugin was not registered; 'Anthropic Pool' may be unavailable"
|
|
541
581
|
print_info "Re-run aidevops setup to register the plugin, then run: opencode auth login"
|
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.40
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|