antigravity-claude-proxy 1.0.4 → 1.0.6
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 +4 -4
- package/package.json +4 -4
- package/src/account-manager.js +6 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Antigravity Claude
|
|
1
|
+
# Antigravity Claude Proxy
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/antigravity-claude-proxy)
|
|
4
4
|
[](https://www.npmjs.com/package/antigravity-claude-proxy)
|
|
@@ -45,8 +45,8 @@ antigravity-claude-proxy start
|
|
|
45
45
|
### Option 2: Clone Repository
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
git clone https://github.com/badri-s2001/
|
|
49
|
-
cd
|
|
48
|
+
git clone https://github.com/badri-s2001/antigravity-claude-proxy.git
|
|
49
|
+
cd antigravity-claude-proxy
|
|
50
50
|
npm install
|
|
51
51
|
npm start
|
|
52
52
|
```
|
|
@@ -322,4 +322,4 @@ MIT
|
|
|
322
322
|
|
|
323
323
|
## Star History
|
|
324
324
|
|
|
325
|
-
[](https://www.star-history.com/#badri-s2001/antigravity-claude-proxy&type=date&legend=top-left)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antigravity-claude-proxy",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
|
-
"url": "git+https://github.com/badri-s2001/
|
|
41
|
+
"url": "git+https://github.com/badri-s2001/antigravity-claude-proxy.git"
|
|
42
42
|
},
|
|
43
|
-
"homepage": "https://github.com/badri-s2001/
|
|
43
|
+
"homepage": "https://github.com/badri-s2001/antigravity-claude-proxy#readme",
|
|
44
44
|
"bugs": {
|
|
45
|
-
"url": "https://github.com/badri-s2001/
|
|
45
|
+
"url": "https://github.com/badri-s2001/antigravity-claude-proxy/issues"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=18.0.0"
|
package/src/account-manager.js
CHANGED
|
@@ -64,6 +64,12 @@ export class AccountManager {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
console.log(`[AccountManager] Loaded ${this.#accounts.length} account(s) from config`);
|
|
67
|
+
|
|
68
|
+
// If config exists but has no accounts, fall back to Antigravity database
|
|
69
|
+
if (this.#accounts.length === 0) {
|
|
70
|
+
console.log('[AccountManager] No accounts in config. Falling back to Antigravity database');
|
|
71
|
+
await this.#loadDefaultAccount();
|
|
72
|
+
}
|
|
67
73
|
} catch (error) {
|
|
68
74
|
if (error.code === 'ENOENT') {
|
|
69
75
|
// No config file - use single account from Antigravity database
|