fix(indexer): prevent token exhaustion and reserve 20% budget for website users

- Lower exhaustion threshold from <10 to <2 (stop wasting remaining tokens)
- Refresh ALL tokens after wait instead of only one
- Fix token/Octokit mismatch by returning token from getBestInstance()
- Add budget checking (20% reserve) to deep-scan, discover-repos, awesome-lists,
  and full-enhanced commands
- Add rate limit error handling with retry in DeepScanCrawler
- Sync translation and query changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
airano
2026-02-14 18:29:39 +03:30
parent e8bf89d311
commit 444a6668d0
11 changed files with 101 additions and 364 deletions

View File

@@ -33,7 +33,7 @@
"docs": "مستندات",
"about": "درباره ما",
"github": "گیت‌هاب",
"sourceCode": "کد منبع (به زودی)",
"sourceCode": "کد منبع",
"sourceCodeShort": "کد منبع",
"switchLanguage": "تغییر به انگلیسی"
},
@@ -203,7 +203,7 @@
"attribution": "تقدیر و تشکر",
"manageSkills": "مدیریت مهارت‌ها"
},
"sourceCode": "کد منبع (به زودی)",
"sourceCode": "کد منبع",
"copyright": "© {year} SkillHub. کد متن‌باز تحت مجوز MIT."
},
"about": {