aidevops 3.1.67 → 3.1.69

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/README.md CHANGED
@@ -366,6 +366,52 @@ See `.agents/tools/git/opencode-github-security.md` for the full security docume
366
366
  - **[Tabby](https://tabby.sh/)** - Recommended terminal. Colour-coded Profiles per project/repo, **auto-syncs tab title with git repo/branch.**
367
367
  - **[Zed](https://zed.dev/)** - Recommended editor. High-performance with AI integration (use with the OpenCode Agent Extension).
368
368
 
369
+ ### Troubleshooting Auth
370
+
371
+ If you see **"Anthropic Key Missing"**, **"OpenAI Key Missing"**, or the model stops responding, run these commands from any terminal — no working model session required.
372
+
373
+ **Step 1 — Check pool health**
374
+
375
+ ```bash
376
+ aidevops model-accounts-pool status # counts: available / rate-limited / auth-error
377
+ aidevops model-accounts-pool check # live token validity test per account
378
+ ```
379
+
380
+ **Step 2 — Fix based on what you see**
381
+
382
+ | Symptom | Command |
383
+ |---------|---------|
384
+ | Account shows `rate-limited` | `aidevops model-accounts-pool rotate anthropic` |
385
+ | All accounts in cooldown | `aidevops model-accounts-pool reset-cooldowns` |
386
+ | Account shows `auth-error` | `aidevops model-accounts-pool add anthropic` (re-auth) |
387
+ | Pool is empty (no accounts) | `aidevops model-accounts-pool add anthropic` |
388
+ | Recently re-authed, still broken | `aidevops model-accounts-pool assign-pending anthropic` |
389
+
390
+ **Step 3 — If still broken, re-add the account**
391
+
392
+ ```bash
393
+ aidevops model-accounts-pool add anthropic # Claude Pro/Max — opens browser OAuth
394
+ aidevops model-accounts-pool add openai # ChatGPT Plus/Pro
395
+ aidevops model-accounts-pool add cursor # Cursor Pro (reads from local IDE)
396
+ aidevops model-accounts-pool import claude-cli # Import from existing Claude CLI auth
397
+ ```
398
+
399
+ Restart OpenCode after any `add`, `rotate`, or `reset-cooldowns` to pick up the new credentials.
400
+
401
+ **Full command reference**
402
+
403
+ ```bash
404
+ aidevops model-accounts-pool status # Pool health at a glance
405
+ aidevops model-accounts-pool list # Per-account detail + expiry
406
+ aidevops model-accounts-pool check # Live API validity test
407
+ aidevops model-accounts-pool rotate [provider] # Switch to next available account NOW
408
+ aidevops model-accounts-pool reset-cooldowns # Clear all rate-limit cooldowns
409
+ aidevops model-accounts-pool assign-pending <p># Assign stranded pending token
410
+ aidevops model-accounts-pool remove <p> <email># Remove an account
411
+ ```
412
+
413
+ > **Note:** `reset-cooldowns` clears cooldowns in the pool file. If OpenCode is already running, the in-memory token endpoint cooldown is only cleared when OpenCode restarts or when you use the `/model-accounts-pool reset-cooldowns` slash command inside an active session.
414
+
369
415
  ### Terminal Tab Title Sync
370
416
 
371
417
  Your terminal tab/window title automatically shows `repo/branch` context when working in git repositories. This helps identify which codebase and branch you're working on across multiple terminal sessions.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.67
1
+ 3.1.69
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.67
6
+ # Version: 3.1.69
7
7
 
8
8
  set -euo pipefail
9
9
 
@@ -3606,6 +3606,7 @@ cmd_help() {
3606
3606
  echo " repo-sync <cmd> Daily git pull for repos in parent dirs (enable/disable/status/dirs)"
3607
3607
  echo " update-tools Check for outdated tools (--update to auto-update)"
3608
3608
  echo " repos [cmd] Manage registered projects (list/add/remove/clean)"
3609
+ echo " model-accounts-pool OAuth account pool (list/check/add/rotate/reset-cooldowns)"
3609
3610
  echo " security <cmd> Security posture (check/audit/setup/status/summary)"
3610
3611
  echo " ip-check <cmd> IP reputation checks (check/batch/report/providers)"
3611
3612
  echo " secret <cmd> Manage secrets (set/list/run/init/import/status)"
@@ -3644,6 +3645,26 @@ cmd_help() {
3644
3645
  echo " aidevops ip-check providers # List available providers"
3645
3646
  echo " aidevops ip-check cache-stats# Show cache statistics"
3646
3647
  echo ""
3648
+ echo "Model Accounts Pool (OAuth):"
3649
+ echo " aidevops model-accounts-pool status # Pool health at a glance"
3650
+ echo " aidevops model-accounts-pool list # Per-account detail"
3651
+ echo " aidevops model-accounts-pool check # Live token validity test"
3652
+ echo " aidevops model-accounts-pool rotate [provider] # Switch to next account NOW"
3653
+ echo " aidevops model-accounts-pool reset-cooldowns # Clear rate-limit cooldowns"
3654
+ echo " aidevops model-accounts-pool add anthropic # Add Claude Pro/Max account"
3655
+ echo " aidevops model-accounts-pool add openai # Add ChatGPT Plus/Pro account"
3656
+ echo " aidevops model-accounts-pool add cursor # Add Cursor Pro account"
3657
+ echo " aidevops model-accounts-pool import claude-cli # Import from Claude CLI auth"
3658
+ echo " aidevops model-accounts-pool assign-pending <p># Assign stranded token"
3659
+ echo " aidevops model-accounts-pool remove <p> <email># Remove an account"
3660
+ echo ""
3661
+ echo " Auth recovery (run these in order if model is broken):"
3662
+ echo " aidevops model-accounts-pool status # 1. Check pool health"
3663
+ echo " aidevops model-accounts-pool check # 2. Test token validity"
3664
+ echo " aidevops model-accounts-pool rotate anthropic# 3. Switch account if rate-limited"
3665
+ echo " aidevops model-accounts-pool reset-cooldowns # 4. Clear cooldowns if all stuck"
3666
+ echo " aidevops model-accounts-pool add anthropic # 5. Re-add if pool empty"
3667
+ echo ""
3647
3668
  echo "Secrets:"
3648
3669
  echo " aidevops secret set NAME # Store a secret (hidden input)"
3649
3670
  echo " aidevops secret list # List secret names (never values)"
@@ -3893,6 +3914,19 @@ main() {
3893
3914
  exit 1
3894
3915
  fi
3895
3916
  ;;
3917
+ model-accounts-pool | map)
3918
+ shift
3919
+ local oauth_pool_helper="$AGENTS_DIR/scripts/oauth-pool-helper.sh"
3920
+ if [[ ! -f "$oauth_pool_helper" ]]; then
3921
+ oauth_pool_helper="$INSTALL_DIR/.agents/scripts/oauth-pool-helper.sh"
3922
+ fi
3923
+ if [[ -f "$oauth_pool_helper" ]]; then
3924
+ bash "$oauth_pool_helper" "$@"
3925
+ else
3926
+ print_error "oauth-pool-helper.sh not found. Run: aidevops update"
3927
+ exit 1
3928
+ fi
3929
+ ;;
3896
3930
  secret | secrets)
3897
3931
  shift
3898
3932
  local secret_helper="$AGENTS_DIR/scripts/secret-helper.sh"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.1.67",
3
+ "version": "3.1.69",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
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.67
13
+ # Version: 3.1.69
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)