9router/open-sse/handlers
long2ice 6994cd1f70 fix(cursor): HTTP/2 AgentService support + version bump to 3.12.17
Real Cursor IDE now uses AgentService at agent.api5.cursor.sh (HTTP/2-only)
while 9router still spoke the retired ChatService at api2.cursor.sh with
outdated headers, producing HTTP 429 "Update Required". Add an executeAgent
path that builds an agent.v1.RunRequest Connect RPC over a raw http2 stream
and fetches the account-specific usable model catalog via GetUsableModels.

Also implement MCP tool calling over AgentService: encode OpenAI tools as
AgentRunRequest.mcp_tools (McpToolDefinition with google.protobuf.Value
input_schema), decode McpArgs tool calls, and forward them to the client as
OpenAI tool_calls so the client runs the tool and resumes in the next turn.
Reply to request_context_args with a non-empty RequestContext, to server
heartbeats with client_heartbeat, and to KV blob get/set with empty results,
so action queries no longer stall the stream. Fold the client system prompt
into the user message (custom_system_prompt makes the server return an empty
turn). Bump clientVersion to 3.12.17 and add the x-cursor-client-commit
header so the gateway identifies as a current Cursor IDE release.
2026-07-20 15:39:55 +07:00
..
chatCore fix(kiro): validate terminal streams before emitting output 2026-07-20 10:55:33 +07:00
embeddingProviders refactor(open-sse): B1 consolidate media endpoint URLs into registry 2026-06-14 13:58:12 +07:00
fetch Enhance token refresh functionality across multiple executors 2026-04-28 17:28:57 +07:00
imageProviders feat(antigravity): native image generation support 2026-06-21 17:54:32 +07:00
search feat(perplexity): add Agent API provider (#2492) 2026-07-10 11:57:15 +07:00
ttsProviders fix(tts): resolve Gemini TTS models from catalog 2026-06-26 10:32:34 +07:00
chatCore.js fix(cursor): HTTP/2 AgentService support + version bump to 3.12.17 2026-07-20 15:39:55 +07:00
embeddingsCore.js Feat : Skills 2026-05-04 11:29:02 +07:00
imageGenerationCore.js feat(antigravity): native image generation support 2026-06-21 17:54:32 +07:00
responsesHandler.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
sttCore.js refactor(open-sse): remove reverse coupling open-sse -> src (E2) 2026-06-13 16:35:07 +07:00
ttsCore.js feat: add STT support, Gemini TTS, and expand usage tracking 2026-05-05 10:32:59 +07:00
videoCore.js feat(xai): add Grok Imagine video generation (/v1/videos) + CLI 2026-07-16 15:29:52 +07:00