aidevops 3.1.41 → 3.1.43
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 +14 -24
- package/setup-modules/tool-install.sh +47 -0
- package/setup.sh +2 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.43
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -479,39 +479,29 @@ setup_opencode_plugins() {
|
|
|
479
479
|
fi
|
|
480
480
|
pool_plugin_registered="true"
|
|
481
481
|
|
|
482
|
-
# ---
|
|
482
|
+
# --- opencode-cursor-oauth plugin (DISABLED) ---
|
|
483
|
+
# The opencode-cursor-oauth npm plugin crashes during startup and
|
|
484
|
+
# silently prevents ALL plugins from loading (including ours).
|
|
485
|
+
# Filed: https://github.com/ephraimduncan/opencode-cursor/issues/15
|
|
486
|
+
# Re-enable when the upstream fix is released.
|
|
487
|
+
# For now, Cursor accounts can be added via: oauth-pool-helper.sh add cursor
|
|
488
|
+
#
|
|
489
|
+
# If the plugin was previously registered, remove it to prevent the crash
|
|
483
490
|
local cursor_plugin="opencode-cursor-oauth"
|
|
484
|
-
local
|
|
485
|
-
|
|
491
|
+
local cursor_present
|
|
492
|
+
cursor_present=$(jq --arg p "$cursor_plugin" \
|
|
486
493
|
'(.plugin // []) | map(select(. == $p)) | length' \
|
|
487
494
|
"$opencode_config" 2>/dev/null || echo "0")
|
|
488
|
-
|
|
489
|
-
if [[ "$cursor_already" -eq 0 ]]; then
|
|
495
|
+
if [[ "$cursor_present" -gt 0 ]]; then
|
|
490
496
|
local tmp_cursor="${opencode_config}.tmp.$$"
|
|
491
497
|
if jq --arg p "$cursor_plugin" \
|
|
492
|
-
'.plugin =
|
|
498
|
+
'.plugin = [.plugin[] | select(. != $p)]' \
|
|
493
499
|
"$opencode_config" >"$tmp_cursor" 2>/dev/null; then
|
|
494
500
|
mv "$tmp_cursor" "$opencode_config"
|
|
495
|
-
|
|
501
|
+
print_warning "Removed opencode-cursor-oauth plugin (crashes all plugin loading)"
|
|
502
|
+
print_info " Filed: https://github.com/ephraimduncan/opencode-cursor/issues/15"
|
|
496
503
|
else
|
|
497
504
|
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
505
|
fi
|
|
516
506
|
fi
|
|
517
507
|
else
|
|
@@ -1041,6 +1041,53 @@ setup_minisim() {
|
|
|
1041
1041
|
return 0
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
|
+
setup_claudebar() {
|
|
1045
|
+
local claudebar_release_url="https://github.com/tddworks/ClaudeBar/releases/latest"
|
|
1046
|
+
# Only available on macOS (native Swift menu bar app)
|
|
1047
|
+
if [[ "$(uname)" != "Darwin" ]]; then
|
|
1048
|
+
return 0
|
|
1049
|
+
fi
|
|
1050
|
+
|
|
1051
|
+
print_info "Setting up ClaudeBar (AI quota monitor)..."
|
|
1052
|
+
|
|
1053
|
+
# Check if ClaudeBar is already installed
|
|
1054
|
+
if [[ -d "/Applications/ClaudeBar.app" ]]; then
|
|
1055
|
+
print_success "ClaudeBar already installed"
|
|
1056
|
+
return 0
|
|
1057
|
+
fi
|
|
1058
|
+
|
|
1059
|
+
# Check if Homebrew is available (required for cask install)
|
|
1060
|
+
if ! command -v brew >/dev/null 2>&1; then
|
|
1061
|
+
print_warning "Homebrew not found - cannot install ClaudeBar automatically"
|
|
1062
|
+
echo " Download manually: $claudebar_release_url"
|
|
1063
|
+
return 0
|
|
1064
|
+
fi
|
|
1065
|
+
|
|
1066
|
+
print_info "ClaudeBar monitors AI coding assistant usage quotas in your menu bar"
|
|
1067
|
+
echo " Supports: Claude, Codex, Gemini, Copilot, Antigravity, Kimi, Kiro, Amp"
|
|
1068
|
+
echo " Features: real-time quota tracking, status notifications, multiple themes"
|
|
1069
|
+
echo " Requires: macOS 15+, CLI tools for providers you want to monitor"
|
|
1070
|
+
echo ""
|
|
1071
|
+
|
|
1072
|
+
local install_claudebar
|
|
1073
|
+
read -r -p "Install ClaudeBar? [Y/n]: " install_claudebar
|
|
1074
|
+
|
|
1075
|
+
if [[ "$install_claudebar" =~ ^[Yy]?$ ]]; then
|
|
1076
|
+
if run_with_spinner "Installing ClaudeBar" brew install --cask claudebar; then
|
|
1077
|
+
print_success "ClaudeBar installed"
|
|
1078
|
+
print_info "Launch from Applications or Spotlight to start monitoring quotas"
|
|
1079
|
+
else
|
|
1080
|
+
print_warning "Failed to install ClaudeBar via Homebrew"
|
|
1081
|
+
echo " Download manually: $claudebar_release_url"
|
|
1082
|
+
fi
|
|
1083
|
+
else
|
|
1084
|
+
print_info "Skipped ClaudeBar installation"
|
|
1085
|
+
print_info "Install later: brew install --cask claudebar"
|
|
1086
|
+
fi
|
|
1087
|
+
|
|
1088
|
+
return 0
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1044
1091
|
setup_ssh_key() {
|
|
1045
1092
|
print_info "Checking SSH key setup..."
|
|
1046
1093
|
|
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.43
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|
|
@@ -765,6 +765,7 @@ main() {
|
|
|
765
765
|
confirm_step "Check Python version (recommend upgrade if outdated)" && check_python_upgrade_available
|
|
766
766
|
confirm_step "Setup recommended tools (Tabby, Zed, etc.)" && setup_recommended_tools
|
|
767
767
|
confirm_step "Setup MiniSim (iOS/Android emulator launcher)" && setup_minisim
|
|
768
|
+
confirm_step "Setup ClaudeBar (AI quota monitor in menu bar)" && setup_claudebar
|
|
768
769
|
confirm_step "Setup Git CLIs (gh, glab, tea)" && setup_git_clis
|
|
769
770
|
confirm_step "Setup file discovery tools (fd, ripgrep, ripgrep-all)" && setup_file_discovery_tools
|
|
770
771
|
confirm_step "Setup rtk (token-optimized CLI output, 60-90% savings)" && setup_rtk
|