refactor(open-sse): P3 provider registry — split into providers/registry/{id}.js

- 100 registry files: transport + models co-located per provider (Mongoose-style)
- providers/shared.js: shared Claude headers + OS/arch helpers (deduped)
- providers/models/helpers.js: withCodexReviewModels (kept dynamic)
- providers/index.js builds PROVIDERS + PROVIDER_MODELS = old API (content byte-for-byte)
- config/providers.js + providerModels.js → barrel re-export, keep accessors + runtime helpers
- Verified: PROVIDERS/MODELS/OAuth/alias byte-for-byte, golden translator tests pass, 0 new regression

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-13 21:08:37 +07:00
co-authored by Cursor
parent 7134dd71db
commit 5a042840fd
108 changed files with 3918 additions and 1340 deletions
+60
View File
@@ -0,0 +1,60 @@
export default {
"id": "qoder",
"alias": "qd",
"transport": {
"baseUrl": "https://api3.qoder.sh/algo/api/v2/service/pro/sse/agent_chat_generation",
"headers": {},
"timeoutMs": 120000,
"stallTimeoutMs": 120000
},
"models": [
{
"id": "auto",
"name": "Qoder Auto"
},
{
"id": "ultimate",
"name": "Qoder Ultimate"
},
{
"id": "performance",
"name": "Qoder Performance"
},
{
"id": "efficient",
"name": "Qoder Efficient"
},
{
"id": "lite",
"name": "Qoder Lite"
},
{
"id": "qmodel",
"name": "Qwen 3.6 Plus (Qoder)"
},
{
"id": "qmodel_latest",
"name": "Qoder Qwen 3.7 Max"
},
{
"id": "dmodel",
"name": "DeepSeek V4 Pro (Qoder)"
},
{
"id": "dfmodel",
"name": "DeepSeek V4 Flash (Qoder)"
},
{
"id": "gm51model",
"name": "GLM 5.1 (Qoder)"
},
{
"id": "kmodel",
"name": "Kimi K2.6 (Qoder)"
},
{
"id": "mmodel",
"name": "MiniMax M2.7 (Qoder)"
}
]
};