antigravity-claude-proxy 2.9.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,7 +45,7 @@ A proxy server that exposes an **Anthropic-compatible API** backed by **Antigrav
45
45
 
46
46
  ## Prerequisites
47
47
 
48
- - **Node.js** 18 or later
48
+ - **Node.js** 22.19.0 or later
49
49
  - **Antigravity** installed (for single-account mode) OR Google account(s) for multi-account mode
50
50
 
51
51
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-claude-proxy",
3
- "version": "2.9.3",
3
+ "version": "3.0.0",
4
4
  "description": "Proxy server to use Antigravity's Claude models with Claude Code CLI",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -59,14 +59,14 @@
59
59
  "url": "https://github.com/badri-s2001/antigravity-claude-proxy/issues"
60
60
  },
61
61
  "engines": {
62
- "node": ">=18.0.0"
62
+ "node": ">=22.19.0"
63
63
  },
64
64
  "dependencies": {
65
65
  "async-mutex": "^0.5.0",
66
- "better-sqlite3": "^12.5.0",
66
+ "better-sqlite3": "^13.0.3",
67
67
  "cors": "^2.8.5",
68
- "express": "^4.18.2",
69
- "undici": "^7.20.0"
68
+ "express": "^5.3.0",
69
+ "undici": "^8.12.4"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@tailwindcss/forms": "^0.5.7",
package/src/server.js CHANGED
@@ -78,6 +78,12 @@ async function ensureInitialized() {
78
78
  // Middleware
79
79
  app.use(cors());
80
80
  app.use(express.json({ limit: REQUEST_BODY_LIMIT }));
81
+ // Express 5 leaves req.body undefined when no body was parsed (Express 4 set {}).
82
+ // Keep the old behavior so handlers can destructure req.body safely.
83
+ app.use((req, res, next) => {
84
+ if (req.body === undefined) req.body = {};
85
+ next();
86
+ });
81
87
 
82
88
  // API Key authentication middleware for /v1/* endpoints
83
89
  app.use('/v1', (req, res, next) => {
@@ -917,8 +923,8 @@ app.post('/v1/messages', async (req, res) => {
917
923
  */
918
924
  usageStats.setupRoutes(app);
919
925
 
920
- app.use('*', (req, res) => {
921
- // Log 404s (use originalUrl since wildcard strips req.path)
926
+ app.use((req, res) => {
927
+ // Log 404s
922
928
  if (logger.isDebugEnabled) {
923
929
  logger.debug(`[API] 404 Not Found: ${req.method} ${req.originalUrl}`);
924
930
  }