mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 09:25:59 +03:00
[PR #321] [CLOSED] feat(provider-pool): add deterministic priority-based provider selection #338
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/321
Author: @Asoubra12
Created: 2/11/2026
Status: ❌ Closed
Base:
main← Head:pr/provider-priority-filter-clean📝 Commits (10+)
b662b82feat(provider-pool): add deterministic priority-based provider selection6fc6041feat(risk+ui): strict lifecycle admission, enterprise SSO PKCE, BitBrowser isolated login45de3b3fix(ui): avoid BusyBox ps -p by reading /proc for process cpu3985ab7feat(kiro): add AWS import wizard node setup and attach flowe5a5635feat(isolated-browser): add local chromium provider for Xpra/noVNC/Kasm workflows5fd9dc7Fix local Chromium proxy handling and isolated browser badge label961f348kiro: resolve accountId and persist machineId on import5eba12cdocker: add chromium + noVNC browser GUI stack1624ea0docker: expose only noVNC port (6080)0f0f3c8docker: remove VNC port from EXPOSE📊 Changes
51 files changed (+10571 additions, -341 deletions)
View changed files
📝
.gitignore(+17 -0)📝
Dockerfile(+29 -10)📝
README.md(+116 -1)📝
configs/config.json.example(+14 -1)📝
configs/provider_pools.json.example(+17 -1)📝
docker/docker-compose.build.yml(+9 -2)📝
docker/docker-compose.yml(+6 -0)➕
docker/entrypoint.sh(+56 -0)📝
src/auth/kiro-oauth.js(+843 -55)📝
src/core/config-manager.js(+149 -2)📝
src/providers/adapter.js(+61 -12)📝
src/providers/claude/claude-kiro.js(+208 -101)📝
src/providers/provider-pool-manager.js(+928 -16)➕
src/risk/constants.js(+82 -0)➕
src/risk/error-normalizer.js(+177 -0)➕
src/risk/index.js(+13 -0)➕
src/risk/lifecycle-store.js(+228 -0)➕
src/risk/provider-account-policy.js(+202 -0)➕
src/risk/risk-manager.js(+635 -0)➕
src/risk/risk-policy-engine.js(+92 -0)...and 31 more files
📄 Description
Summary
Add deterministic provider selection priority inside each provider pool.
What This PR Changes
priorityfield inprovider_pools.json.100) for omitted/invalid values.Why
Current score/LRU rotation is great for balancing but cannot guarantee strict primary->backup behavior. This PR adds deterministic tiering without changing token/OAuth mechanisms.
Validation
tests/provider-pool-priority.test.js:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.