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": "Docs",
"about": "About",
"github": "GitHub",
"sourceCode": "Source Code (Coming Soon)",
"sourceCode": "Source Code",
"sourceCodeShort": "Source Code",
"switchLanguage": "Switch to Farsi"
},
@@ -203,7 +203,7 @@
"attribution": "Attribution",
"manageSkills": "Manage Skills"
},
"sourceCode": "Source Code (Coming Soon)",
"sourceCode": "Source Code",
"copyright": "© {year} SkillHub. Open source under MIT license."
},
"about": {