antigravity-claude-proxy 2.2.2 → 2.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-claude-proxy",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
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",
@@ -125,11 +125,6 @@ document.addEventListener('alpine:init', () => {
125
125
  this.computeQuotaRows();
126
126
 
127
127
  this.lastUpdated = new Date().toLocaleTimeString();
128
-
129
- // Fetch version from config endpoint if not already loaded
130
- if (this.initialLoad) {
131
- this.fetchVersion(password);
132
- }
133
128
  } catch (error) {
134
129
  console.error('Fetch error:', error);
135
130
  const store = Alpine.store('global');
@@ -140,20 +135,6 @@ document.addEventListener('alpine:init', () => {
140
135
  }
141
136
  },
142
137
 
143
- async fetchVersion(password) {
144
- try {
145
- const { response } = await window.utils.request('/api/config', {}, password);
146
- if (response.ok) {
147
- const data = await response.json();
148
- if (data.version) {
149
- Alpine.store('global').version = data.version;
150
- }
151
- }
152
- } catch (error) {
153
- console.warn('Failed to fetch version:', error);
154
- }
155
- },
156
-
157
138
  async performHealthCheck() {
158
139
  try {
159
140
  // Get password from global store
@@ -30,6 +30,23 @@ document.addEventListener('alpine:init', () => {
30
30
  this.activeTab = hash;
31
31
  }
32
32
  });
33
+
34
+ // 4. Fetch version from API
35
+ this.fetchVersion();
36
+ },
37
+
38
+ async fetchVersion() {
39
+ try {
40
+ const response = await fetch('/api/config');
41
+ if (response.ok) {
42
+ const data = await response.json();
43
+ if (data.version) {
44
+ this.version = data.version;
45
+ }
46
+ }
47
+ } catch (error) {
48
+ console.debug('Could not fetch version:', error);
49
+ }
33
50
  },
34
51
 
35
52
  // App State
package/src/server.js CHANGED
@@ -638,7 +638,7 @@ app.post('/refresh-token', async (req, res) => {
638
638
  app.get('/v1/models', async (req, res) => {
639
639
  try {
640
640
  await ensureInitialized();
641
- const account = accountManager.pickNext();
641
+ const { account } = accountManager.selectAccount();
642
642
  if (!account) {
643
643
  return res.status(503).json({
644
644
  type: 'error',