antigravity-claude-proxy 1.2.2 → 1.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": "1.2.2",
3
+ "version": "1.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",
@@ -123,14 +123,20 @@ export async function discoverProject(token) {
123
123
  })
124
124
  });
125
125
 
126
- if (!response.ok) continue;
126
+ if (!response.ok) {
127
+ const errorText = await response.text();
128
+ logger.warn(`[AccountManager] Project discovery failed at ${endpoint}: ${response.status} - ${errorText}`);
129
+ continue;
130
+ }
127
131
 
128
132
  const data = await response.json();
129
133
 
130
134
  if (typeof data.cloudaicompanionProject === 'string') {
135
+ logger.success(`[AccountManager] Discovered project: ${data.cloudaicompanionProject}`);
131
136
  return data.cloudaicompanionProject;
132
137
  }
133
138
  if (data.cloudaicompanionProject?.id) {
139
+ logger.success(`[AccountManager] Discovered project: ${data.cloudaicompanionProject.id}`);
134
140
  return data.cloudaicompanionProject.id;
135
141
  }
136
142
  } catch (error) {
@@ -138,7 +144,8 @@ export async function discoverProject(token) {
138
144
  }
139
145
  }
140
146
 
141
- logger.info(`[AccountManager] Using default project: ${DEFAULT_PROJECT_ID}`);
147
+ logger.warn(`[AccountManager] Project discovery failed for all endpoints. Using default project: ${DEFAULT_PROJECT_ID}`);
148
+ logger.warn(`[AccountManager] If you see 404 errors, your account may not have Gemini Code Assist enabled.`);
142
149
  return DEFAULT_PROJECT_ID;
143
150
  }
144
151
 
@@ -28,7 +28,10 @@ export async function loadAccounts(configPath = ACCOUNT_CONFIG_PATH) {
28
28
  ...acc,
29
29
  isRateLimited: acc.isRateLimited || false,
30
30
  rateLimitResetTime: acc.rateLimitResetTime || null,
31
- lastUsed: acc.lastUsed || null
31
+ lastUsed: acc.lastUsed || null,
32
+ // Reset invalid flag on startup - give accounts a fresh chance to refresh
33
+ isInvalid: false,
34
+ invalidReason: null
32
35
  }));
33
36
 
34
37
  const settings = config.settings || {};