mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
- Bug B1-B7: media UI m.kind||m.type, serviceKinds, gemini mediaPriority, schema kind, models/info lookup by kind - Dead code D1-D6: safeParseJSON, drop PROVIDER_ENDPOINTS, orphan fetcher, GITHUB_CONFIG derive, getProviderConfig internal, legacy kiro file - Translator concerns: toOpenAIUsage, toOpenAIFinish (gemini/kiro/ollama + fix kiro tool finish), thinking effort maps - Reorg helpers/ → concerns/ (logic) + formats/ (per-format) + schema/ (pure enums: roles/blocks/finishReasons/defaults) - Wire ~280 hardcoded role/block/finish/default literals to schema enums across 20+ files - collapseTextParts + extractTextContent dedup - Normalize translator fn names to openaiToXRequest / xToOpenAIResponse - Golden tests lock behavior; 0 regression (byte-for-byte providers/alias, 26=26 known fails) Co-authored-by: Cursor <cursoragent@cursor.com>
52 lines
1.5 KiB
JavaScript
52 lines
1.5 KiB
JavaScript
export default {
|
|
id: "cline",
|
|
priority: 70,
|
|
alias: "cl",
|
|
uiAlias: "cl",
|
|
display: {
|
|
name: "Cline",
|
|
icon: "smart_toy",
|
|
color: "#5B9BD5",
|
|
textIcon: "CL",
|
|
website: "https://cline.bot",
|
|
notice: {
|
|
signupUrl: "https://cline.bot",
|
|
},
|
|
},
|
|
category: "oauth",
|
|
transport: {
|
|
baseUrl: "https://api.cline.bot/api/v1/chat/completions",
|
|
headers: {
|
|
"HTTP-Referer": "https://cline.bot",
|
|
"X-Title": "Cline",
|
|
},
|
|
tokenUrl: "https://api.cline.bot/api/v1/auth/token",
|
|
refreshUrl: "https://api.cline.bot/api/v1/auth/refresh",
|
|
auth: {
|
|
combined: true,
|
|
header: "Authorization",
|
|
scheme: "bearer",
|
|
hooks: [
|
|
"clineHeaders",
|
|
],
|
|
},
|
|
},
|
|
models: [
|
|
{ id: "anthropic/claude-opus-4.7", name: "Claude Opus 4.7" },
|
|
{ id: "anthropic/claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
|
|
{ id: "anthropic/claude-opus-4.6", name: "Claude Opus 4.6" },
|
|
{ id: "openai/gpt-5.3-codex", name: "GPT-5.3 Codex" },
|
|
{ id: "openai/gpt-5.4", name: "GPT-5.4" },
|
|
{ id: "google/gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },
|
|
{ id: "google/gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite Preview" },
|
|
{ id: "kwaipilot/kat-coder-pro", name: "KAT Coder Pro" },
|
|
],
|
|
oauth: {
|
|
appBaseUrl: "https://app.cline.bot",
|
|
apiBaseUrl: "https://api.cline.bot",
|
|
authorizeUrl: "https://api.cline.bot/api/v1/auth/authorize",
|
|
tokenExchangeUrl: "https://api.cline.bot/api/v1/auth/token",
|
|
refreshUrl: "https://api.cline.bot/api/v1/auth/refresh",
|
|
},
|
|
};
|