refactor(registry): B2 migrate to LiteLLM-style schema — unified models[] with kind field

- 71 registry files: flat `media.*Config.models` → `models[]` with `kind` field
- `media` wrapper removed → serviceKinds, *Config fields promoted top-level
- `type` field renamed to `kind` (llm/image/tts/stt/embedding/embedding/video/music)
- providers/index.js: PROVIDER_MEDIA now built from flat top-level media fields
- shared/constants/providers.js: buildProviderEntry reads flat top-level media fields
- route /v1/models: modelKind() uses kind||type; removed subConfig merge block
- models/info route: removed sub-config fallback lookup (all models in PROVIDER_MODELS)
- ttsProviders/index.js: synthesizeViaConfig reads tts models from PROVIDER_MODELS
- test-models route, helpers.js, validate route: kind||type compat
- Baselines: PROVIDERS 62/62 ✅, Alias 90/90 ✅

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-14 14:32:59 +07:00
parent e53ce79abb
commit dd1e0f9bcc
82 changed files with 2518 additions and 3651 deletions

View File

@@ -1,120 +1,90 @@
export default {
"id": "kiro",
"alias": "kr",
id: "kiro",
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"
name: "Kiro AI",
icon: "psychology_alt",
color: "#FF6B35",
website: "https://kiro.dev",
notice: {
signupUrl: "https://kiro.dev",
},
deprecated: true,
deprecationNotice: "RISK_NOTICE",
},
category: "free",
uiAlias: "kr",
"transport": {
"baseUrl": "https://runtime.us-east-1.kiro.dev/generateAssistantResponse",
"baseUrls": [
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"
"https://q.us-east-1.amazonaws.com/generateAssistantResponse",
],
"format": "kiro",
"retry": {
"429": 0
format: "kiro",
retry: {
"429": 0,
},
"headers": {
headers: {
"Content-Type": "application/json",
"Accept": "application/vnd.amazon.eventstream",
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"
"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",
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"
}
limitsPath: "/getUsageLimits",
},
},
"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"]
},
"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)"
}
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)" },
],
features: {"usage":true},
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,
},
};