9router/open-sse
Z User 8daa953ef6 fix(oauth): align antigravity OAuth metadata with official client headers
Fixes #1226

The Antigravity OAuth flow sent inconsistent client metadata between
the token acquisition phase and the API usage phase. String enum values
(IDE_UNSPECIFIED, PLATFORM_UNSPECIFIED) were used during OAuth token
exchange + loadCodeAssist + onboardUser, while numeric enums (ideType: 9,
platform: <computed>, pluginType: 2) were used in runtime API calls.
Google detected this fingerprint mismatch and blocked 9router accounts.

Replace all string enum occurrences with the correct numeric values:

- src/lib/oauth/constants/oauth.js: loadCodeAssistClientMetadata now
  uses getOAuthPlatformEnum() for platform and numeric 9/2 for
  ideType/pluginType, matching getOAuthClientMetadata()
- src/lib/oauth/services/antigravity.js: getMetadata() now delegates
  to getOAuthClientMetadata() instead of returning hardcoded strings
- src/lib/oauth/providers.js: postExchange metadata now uses
  getOAuthClientMetadata() instead of inline string enums
- open-sse/services/usage.js: getGeminiSubscriptionInfo body now uses
  CLIENT_METADATA (already imported from appConstants.js) instead of
  inline string enums
2026-05-18 15:23:37 +07:00
..
config Add Vercel AI Gateway provider support (#1183) 2026-05-17 15:16:25 +07:00
executors https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
handlers feat: add DeepSeek TUI as CLI tool in dashboard (#1088) 2026-05-13 22:40:42 +07:00
rtk feat(rtk): add Kiro format support for tool result compression (#1194) 2026-05-17 15:13:37 +07:00
services fix(oauth): align antigravity OAuth metadata with official client headers 2026-05-18 15:23:37 +07:00
transformer feat: enhance request handling and error management in chatCore and streamToJsonConverter 2026-02-15 12:02:53 +07:00
translator # v0.4.52 (2026-05-17) 2026-05-17 16:37:26 +07:00
utils fix: enhance stall detection in stream handling for improved disconne… (#1243) 2026-05-18 12:00:33 +07:00
.npmignore 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
index.js Refactor config 2026-03-12 16:20:46 +07:00