antigravity-claude-proxy 3.0.0 → 3.0.1

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.
Files changed (45) hide show
  1. package/bin/cli.js +4 -11
  2. package/package.json +1 -1
  3. package/public/app.js +7 -4
  4. package/public/css/src/input.css +0 -7
  5. package/public/css/style.css +1 -1
  6. package/public/js/components/claude-config.js +0 -8
  7. package/public/js/components/dashboard/charts.js +8 -8
  8. package/public/js/components/dashboard/stats.js +1 -1
  9. package/public/js/components/logs-viewer.js +1 -1
  10. package/public/js/components/models.js +2 -3
  11. package/public/js/components/server-config.js +1 -9
  12. package/public/js/data-store.js +2 -2
  13. package/public/js/store.js +1 -1
  14. package/public/js/translations/en.js +0 -2
  15. package/public/js/translations/id.js +0 -1
  16. package/public/js/translations/pt.js +0 -1
  17. package/public/js/translations/tr.js +0 -2
  18. package/public/js/translations/zh.js +0 -2
  19. package/public/js/utils/error-handler.js +0 -2
  20. package/public/js/utils/ui-logger.js +4 -3
  21. package/src/account-manager/index.js +0 -4
  22. package/src/account-manager/rate-limits.js +0 -5
  23. package/src/account-manager/strategies/base-strategy.js +4 -4
  24. package/src/account-manager/strategies/hybrid-strategy.js +3 -3
  25. package/src/auth/database.js +1 -0
  26. package/src/auth/oauth.js +43 -41
  27. package/src/auth/token-extractor.js +1 -1
  28. package/src/cli/accounts.js +2 -1
  29. package/src/cloudcode/model-registry.js +0 -3
  30. package/src/cloudcode/rate-limit-state.js +1 -7
  31. package/src/config.js +1 -1
  32. package/src/constants.js +0 -2
  33. package/src/format/content-converter.js +0 -4
  34. package/src/format/request-converter.js +1 -6
  35. package/src/format/response-converter.js +0 -3
  36. package/src/format/schema-sanitizer.js +3 -22
  37. package/src/format/thinking-utils.js +1 -13
  38. package/src/index.js +1 -6
  39. package/src/modules/usage-stats.js +1 -1
  40. package/src/server.js +1 -28
  41. package/src/utils/claude-config.js +2 -6
  42. package/src/utils/native-module-helper.js +0 -4
  43. package/src/utils/proxy.js +1 -10
  44. package/src/utils/version-detector.js +14 -5
  45. package/src/webui/index.js +1 -37
package/bin/cli.js CHANGED
@@ -20,13 +20,6 @@ const PID_FILE = join(CONFIG_DIR, 'server.pid');
20
20
  const args = process.argv.slice(2);
21
21
  const command = args[0];
22
22
 
23
- // Ensure config directory exists
24
- function ensureConfigDir() {
25
- if (!existsSync(CONFIG_DIR)) {
26
- mkdirSync(CONFIG_DIR, { recursive: true });
27
- }
28
- }
29
-
30
23
  /**
31
24
  * Check if the service is running by reading PID file and verifying process
32
25
  */
@@ -46,7 +39,7 @@ function isServiceRunning() {
46
39
  // Check if process is running (signal 0 doesn't kill, just checks)
47
40
  process.kill(pid, 0);
48
41
  return true;
49
- } catch (e) {
42
+ } catch {
50
43
  // Process doesn't exist
51
44
  cleanupPidFile();
52
45
  return false;
@@ -63,7 +56,7 @@ function getServicePid() {
63
56
  try {
64
57
  const pid = parseInt(readFileSync(PID_FILE, 'utf-8'), 10);
65
58
  return isNaN(pid) ? null : pid;
66
- } catch (e) {
59
+ } catch {
67
60
  return null;
68
61
  }
69
62
  }
@@ -86,7 +79,7 @@ function cleanupPidFile() {
86
79
  try {
87
80
  unlinkSync(PID_FILE);
88
81
  } catch (e) {
89
- // Ignore cleanup errors
82
+ console.warn(`Could not remove PID file ${PID_FILE}: ${e.message}`);
90
83
  }
91
84
  }
92
85
  }
@@ -266,7 +259,7 @@ async function restartServer() {
266
259
  console.log('');
267
260
  // Wait for process to fully terminate
268
261
  await new Promise(resolve => setTimeout(resolve, 1000));
269
- } catch (e) {
262
+ } catch {
270
263
  console.log(' └─ No previous instance found');
271
264
  console.log('');
272
265
  cleanupPidFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-claude-proxy",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
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",
package/public/app.js CHANGED
@@ -42,10 +42,13 @@ document.addEventListener('alpine:init', () => {
42
42
  })
43
43
  .catch(err => {
44
44
  console.error('Failed to load view:', viewName, err);
45
- el.innerHTML = `<div class="p-4 border border-red-500/50 bg-red-500/10 rounded-lg text-red-400 font-mono text-sm">
46
- Error loading view: ${viewName}<br>
47
- <span class="text-xs opacity-75">${err.message}</span>
48
- </div>`;
45
+ const box = document.createElement('div');
46
+ box.className = 'p-4 border border-red-500/50 bg-red-500/10 rounded-lg text-red-400 font-mono text-sm';
47
+ const detail = document.createElement('span');
48
+ detail.className = 'text-xs opacity-75';
49
+ detail.textContent = err.message;
50
+ box.append(`Error loading view: ${viewName}`, document.createElement('br'), detail);
51
+ el.replaceChildren(box);
49
52
  });
50
53
  });
51
54
 
@@ -152,13 +152,6 @@
152
152
  );
153
153
  }
154
154
 
155
- /* Dashboard Grid */
156
- .stats-grid {
157
- display: grid;
158
- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
159
- gap: 1.5rem;
160
- }
161
-
162
155
  /* Tooltip Customization */
163
156
  .tooltip:before {
164
157
  @apply bg-space-800 border border-space-border text-gray-200 font-mono text-xs;