9router/open-sse/config
Muhammad Mugni Hadi d976f4cc87 feat(xai): add xAI Grok provider with OAuth + API key auth + image
Adapted from PR #1286 (mugnimaestra/feat/xai-grok-provider) to match
existing app architecture. Includes:

- OAuth 2.0 with PKCE on loopback port 56121 (Grok Build)
- API key auth path (console.x.ai)
- Token refresh wiring (open-sse + sse tokenRefresh)
- Dashboard OAuth modal with fixed-port flow + manual code fallback
- Provider registry entries (OAuth + API key)
- xAI image generation via OpenAI-compatible adapter
  (grok-2-image-1212 model, no size/quality/style params)

Excludes (intentionally, to match app patterns):
- Custom xAI Responses executor (DefaultExecutor handles /chat/completions)
- xAI-specific translators (app uses OpenAI as intermediate format)
- Image edits (not supported by current imageGenerationCore)
- Video endpoints (app has no video subsystem yet)
- CLI xai-login command

Refs decolua#1286

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 11:33:18 +07:00
..
appConstants.js chore(gemini-cli): bump version to 0.34.0 and refine user-agent 2026-05-18 15:23:38 +07:00
codexInstructions.js Add proactive token refresh lead times for providers and implement Codex proxy management 2026-04-14 11:41:06 +07:00
constants.js Refactor config 2026-03-12 16:20:46 +07:00
defaultThinkingSignature.js fix(translator): correct thought signatures for AG, Gemini CLI, Vertex; fix missing Vertex response translator 2026-04-05 00:38:36 +07:00
errorConfig.js - Cap maximum cooldown for rate limit handling in account unavailability and single-model chat flows 2026-04-24 16:14:18 +07:00
googleTtsLanguages.js Enhance TTS functionality and security settings 2026-04-11 14:56:35 +07:00
kiroConstants.js https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
models.js Fix bug strip image 2026-04-07 10:18:59 +07:00
ollamaModels.js Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
providerModels.js feat(xai): add xAI Grok provider with OAuth + API key auth + image 2026-05-21 11:33:18 +07:00
providers.js feat(xai): add xAI Grok provider with OAuth + API key auth + image 2026-05-21 11:33:18 +07:00
runtimeConfig.js # v0.4.29 (2026-05-10) 2026-05-10 21:56:40 +07:00
ttsModels.js feat: add STT support, Gemini TTS, and expand usage tracking 2026-05-05 10:32:59 +07:00