9router/open-sse/executors
Simon Shi 935462ce8f test(qoder): add regression coverage for review-fix changes
Adds 18 new tests covering the bugs fixed in the previous commit so they
can't silently regress:

- parseExpiry (7 tests): numeric ms-epoch input, numeric strings handled
  before Date.parse so "1700000000" doesn't get year-interpreted, RFC3339
  strings, expires_in:0 honored as already-expired, 30-day fallback only
  when both inputs are missing/invalid

- normalizeMessages (4 tests): system hoisting, multipart text flatten,
  multiple system joining, empty input

- wrapQoderSSE (6 tests): the fixed cases — trailing partial line drained
  in flush(), no chunks forwarded after [DONE], embedded newlines stripped
  from inner body, error envelope produces error chunk + [DONE], non-ok
  responses returned unchanged

- expose parseExpiry from auth.js, expose normalizeMessages/wrapQoderSSE
  via __test__ from the executor (internals only — not part of the public
  API). Marked with comment so the surface is intentional.

42 tests total (24 original + 18 new). Build still clean.
2026-05-29 17:36:27 +07:00
..
antigravity.js Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
azure.js feat: add Azure OpenAI provider support 2026-04-24 10:04:59 +07:00
base.js Fix codex 2026-05-26 11:35:39 +07:00
codex.js Fix codex 2026-05-26 11:35:39 +07:00
commandcode.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
cursor.js fix: decode Composer cursor thinking output (#1310) 2026-05-21 09:52:30 +07:00
default.js fix: implement json_schema fallback for OpenAI-compatible providers (#1343) 2026-05-26 11:35:39 +07:00
gemini-cli.js feat(gemini-cli): wrap CloudCode payload and surface 429 retryDelay 2026-05-18 15:23:38 +07:00
github.js fix: never route GitHub Copilot Gemini/Claude models to /responses (#1062) (#1536) 2026-05-29 15:40:42 +07:00
grok-web.js feat: add support for Grok Web and Perplexity Web providers 2026-04-22 11:58:53 +07:00
iflow.js fix(iflow): inject stream_options for usage data in streaming 2026-03-23 12:03:11 +07:00
index.js feat: add CommandCode provider support 2026-05-07 23:01:33 +07:00
kiro.js https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
ollama-local.js feat: add OllamaLocalExecutor and update provider handling 2026-05-07 16:42:36 +07:00
opencode-go.js Fix : Add reasoning_content placeholder for DeepSeek thinking models 2026-04-29 09:34:24 +07:00
opencode.js Refactor error handling to config-driven approach with centralized error rules 2026-04-15 11:46:47 +07:00
perplexity-web.js feat: add support for Grok Web and Perplexity Web providers 2026-04-22 11:58:53 +07:00
qoder.js test(qoder): add regression coverage for review-fix changes 2026-05-29 17:36:27 +07:00
qwen.js fix: strip stream_options for qwen non-streaming Claude Code requests (closes #557) (#663) 2026-05-03 15:21:43 +07:00
vertex.js fix: use project-scoped Vertex URL for SA JSON auth and add ?alt=sse for streaming (closes #388) 2026-03-27 11:03:49 +07:00