feat(codex): Cursor compatibility + Next.js 16 proxy migration

- Force streaming for Codex/OpenAI models to fix non-streaming bug
- Strip unsupported params (user, metadata, stream_options, prompt_cache_retention)
- Force response translation from openai-responses to openai format
- Migrate middleware.js to proxy.js for Next.js 16
- Use webpack explicitly in dev/build scripts
- Updated Codex User-Agent
This commit is contained in:
decolua
2026-02-02 09:17:15 +07:00
parent 814e02ae31
commit 7b864a9dcb
7 changed files with 85 additions and 51 deletions
+12 -12
View File
@@ -4,8 +4,8 @@
"description": "9Router web dashboard",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"dev": "next dev --webpack",
"build": "next build --webpack",
"start": "next start"
},
"dependencies": {
@@ -18,21 +18,21 @@
"jose": "^6.1.3",
"lowdb": "^7.0.1",
"monaco-editor": "^0.55.1",
"next": "^15.2.0",
"next": "^16.1.6",
"node-machine-id": "^1.1.12",
"open": "^10.1.0",
"ora": "^5.4.1",
"react": "19.2.1",
"react-dom": "19.2.1",
"socks-proxy-agent": "^8.0.4",
"undici": "^7.16.0",
"open": "^11.0.0",
"ora": "^9.1.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"socks-proxy-agent": "^8.0.5",
"undici": "^7.19.2",
"uuid": "^13.0.0",
"zustand": "^5.0.9"
"zustand": "^5.0.10"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.18",
"eslint": "^9",
"eslint-config-next": "16.0.10",
"eslint-config-next": "16.1.6",
"tailwindcss": "^4"
}
}
}