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>
92 lines
3.3 KiB
JavaScript
92 lines
3.3 KiB
JavaScript
export default {
|
|
id: "kiro",
|
|
priority: 80,
|
|
alias: "kr",
|
|
uiAlias: "kr",
|
|
display: {
|
|
name: "Kiro AI",
|
|
icon: "psychology_alt",
|
|
color: "#FF6B35",
|
|
website: "https://kiro.dev",
|
|
notice: {
|
|
signupUrl: "https://kiro.dev",
|
|
},
|
|
deprecated: true,
|
|
deprecationNotice: "RISK_NOTICE",
|
|
},
|
|
category: "free",
|
|
transport: {
|
|
baseUrl: "https://runtime.us-east-1.kiro.dev/generateAssistantResponse",
|
|
baseUrls: [
|
|
"https://runtime.us-east-1.kiro.dev/generateAssistantResponse",
|
|
"https://codewhisperer.us-east-1.amazonaws.com/generateAssistantResponse",
|
|
"https://q.us-east-1.amazonaws.com/generateAssistantResponse",
|
|
],
|
|
format: "kiro",
|
|
retry: {
|
|
"429": 0,
|
|
},
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
Accept: "application/vnd.amazon.eventstream",
|
|
"X-Amz-Target": "AmazonCodeWhispererStreamingService.GenerateAssistantResponse",
|
|
"User-Agent": "AWS-SDK-JS/3.0.0 kiro-ide/1.0.0",
|
|
"X-Amz-User-Agent": "aws-sdk-js/3.0.0 kiro-ide/1.0.0",
|
|
},
|
|
tokenUrl: "https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",
|
|
authUrl: "https://prod.us-east-1.auth.desktop.kiro.dev",
|
|
usage: {
|
|
cwHost: "https://codewhisperer.us-east-1.amazonaws.com",
|
|
qHost: "https://q.us-east-1.amazonaws.com",
|
|
limitsPath: "/getUsageLimits",
|
|
},
|
|
},
|
|
models: [
|
|
{ id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5" },
|
|
{ id: "claude-haiku-4.5", name: "Claude Haiku 4.5" },
|
|
{ id: "deepseek-3.2", name: "DeepSeek 3.2", strip: ["image","audio"] },
|
|
{ id: "qwen3-coder-next", name: "Qwen3 Coder Next", strip: ["image","audio"] },
|
|
{ id: "glm-5", name: "GLM 5" },
|
|
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
{ id: "claude-sonnet-4.5-thinking", name: "Claude Sonnet 4.5 (Thinking)" },
|
|
{ id: "claude-haiku-4.5-thinking", name: "Claude Haiku 4.5 (Thinking)" },
|
|
{ id: "claude-sonnet-4.5-agentic", name: "Claude Sonnet 4.5 (Agentic)" },
|
|
{ id: "claude-haiku-4.5-agentic", name: "Claude Haiku 4.5 (Agentic)" },
|
|
{ id: "claude-sonnet-4.5-thinking-agentic", name: "Claude Sonnet 4.5 (Thinking + Agentic)" },
|
|
{ id: "claude-haiku-4.5-thinking-agentic", name: "Claude Haiku 4.5 (Thinking + Agentic)" },
|
|
],
|
|
oauth: {
|
|
ssoOidcEndpoint: "https://oidc.us-east-1.amazonaws.com",
|
|
registerClientUrl: "https://oidc.us-east-1.amazonaws.com/client/register",
|
|
deviceAuthUrl: "https://oidc.us-east-1.amazonaws.com/device_authorization",
|
|
tokenUrl: "https://oidc.us-east-1.amazonaws.com/token",
|
|
startUrl: "https://view.awsapps.com/start",
|
|
clientName: "kiro-oauth-client",
|
|
clientType: "public",
|
|
scopes: [
|
|
"codewhisperer:completions",
|
|
"codewhisperer:analysis",
|
|
"codewhisperer:conversations",
|
|
],
|
|
grantTypes: [
|
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
"refresh_token",
|
|
],
|
|
issuerUrl: "https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",
|
|
socialAuthEndpoint: "https://prod.us-east-1.auth.desktop.kiro.dev",
|
|
socialLoginUrl: "https://prod.us-east-1.auth.desktop.kiro.dev/login",
|
|
socialTokenUrl: "https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",
|
|
socialRefreshUrl: "https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",
|
|
authMethods: [
|
|
"builder-id",
|
|
"idc",
|
|
"google",
|
|
"github",
|
|
"import",
|
|
],
|
|
},
|
|
features: {
|
|
usage: true,
|
|
},
|
|
};
|