aidevops 3.1.39 → 3.1.41

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.39
1
+ 3.1.41
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.39
6
+ # Version: 3.1.41
7
7
 
8
8
  set -euo pipefail
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.1.39",
3
+ "version": "3.1.41",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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.39
13
+ # Version: 3.1.41
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)
@@ -1534,9 +1534,10 @@ ST_PLIST
1534
1534
  fi
1535
1535
 
1536
1536
  # Profile README auto-update scheduled job.
1537
- # Only installed if user has a profile repo (priority: "profile") in repos.json.
1537
+ # Installed whenever gh CLI is available the update script self-heals
1538
+ # (discovers/creates the profile repo on first run via _resolve_profile_repo).
1538
1539
  # macOS: launchd plist (hourly) | Linux: cron (hourly)
1539
- if [[ -x "$pr_script" ]] && [[ "$has_profile_repo" == "true" ]]; then
1540
+ if [[ -x "$pr_script" ]] && command -v gh &>/dev/null; then
1540
1541
  mkdir -p "$HOME/.aidevops/.agent-workspace/logs"
1541
1542
 
1542
1543
  if [[ "$(uname -s)" == "Darwin" ]]; then