9router/open-sse/utils
kwanLeeFrmVi 1c160cc8d9 feat(claude-code): spoof TLS fingerprint and stabilize headers for Anthropic
- Add claudeHeaderCache.js to intercept and cache live Claude Code client headers
- Forward cached headers dynamically to api.anthropic.com via default.js
- Strip first-party identity headers (x-app, claude-code-* beta) for non-Anthropic upstreams
- Validate and sanitize tool call IDs to match Anthropic pattern (^[a-zA-Z0-9_-]+$)
- Skip thinking blocks when applying cache_control; fix max_tokens buffer (+1024)
- Strip cache_control from thinking blocks in openai-to-claude translator
- Comment out thoughtSignature in Gemini translator (kept for reference)
- Expand .gitignore to match all deploy*.sh variants

Co-authored-by: kwanLeeFrmVi <quanle96@outlook.com>
Closes #433

Made-with: Cursor
2026-03-30 16:27:28 +07:00
..
bypassHandler.js feat(chat): Enhance bypass handling and introduce CC filter naming feature 2026-03-13 09:41:40 +07:00
claudeCloaking.js Fix : Claude OAuth 2026-03-03 14:46:05 +07:00
claudeHeaderCache.js feat(claude-code): spoof TLS fingerprint and stabilize headers for Anthropic 2026-03-30 16:27:28 +07:00
cursorChecksum.js Fix : Add custom to model selector 2026-03-11 11:59:07 +07:00
cursorProtobuf.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
error.js Refactor config 2026-03-12 16:20:46 +07:00
ollamaTransform.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
proxyFetch.js feat(claude-code): spoof TLS fingerprint and stabilize headers for Anthropic 2026-03-30 16:27:28 +07:00
requestLogger.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
sessionManager.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
stream.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
streamHandler.js fix: Update abort method in pipeWithDisconnect to return a promise for better error handling 2026-03-14 11:38:33 +07:00
streamHelpers.js feat(ollama): Enhance Ollama support by adding new models, updating API format handling, and integrating translation functionality. 2026-03-12 15:24:10 +07:00
usageTracking.js Fix AG MITM 2026-03-01 18:40:55 +07:00