@cortexkit/opencode-antigravity-auth 1.0.0 → 1.1.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 +24 -8
- package/dist/index.js +1450 -467
- package/dist/index.js.map +4 -4
- package/dist/src/plugin/accounts.d.ts +36 -9
- package/dist/src/plugin/accounts.d.ts.map +1 -1
- package/dist/src/plugin/accounts.js +269 -57
- package/dist/src/plugin/accounts.js.map +1 -1
- package/dist/src/plugin/agy-request-metadata.d.ts +2 -0
- package/dist/src/plugin/agy-request-metadata.d.ts.map +1 -0
- package/dist/src/plugin/agy-request-metadata.js +2 -0
- package/dist/src/plugin/agy-request-metadata.js.map +1 -0
- package/dist/src/plugin/auth-doctor.d.ts +1 -1
- package/dist/src/plugin/auth-doctor.d.ts.map +1 -1
- package/dist/src/plugin/auth-doctor.js +9 -0
- package/dist/src/plugin/auth-doctor.js.map +1 -1
- package/dist/src/plugin/debug.d.ts.map +1 -1
- package/dist/src/plugin/debug.js +3 -2
- package/dist/src/plugin/debug.js.map +1 -1
- package/dist/src/plugin/gemini-dump.d.ts.map +1 -1
- package/dist/src/plugin/gemini-dump.js +8 -4
- package/dist/src/plugin/gemini-dump.js.map +1 -1
- package/dist/src/plugin/image-saver.d.ts +2 -21
- package/dist/src/plugin/image-saver.d.ts.map +1 -1
- package/dist/src/plugin/image-saver.js +29 -63
- package/dist/src/plugin/image-saver.js.map +1 -1
- package/dist/src/plugin/request-helpers.d.ts +1 -0
- package/dist/src/plugin/request-helpers.d.ts.map +1 -1
- package/dist/src/plugin/request-helpers.js +9 -4
- package/dist/src/plugin/request-helpers.js.map +1 -1
- package/dist/src/plugin/request.d.ts +15 -4
- package/dist/src/plugin/request.d.ts.map +1 -1
- package/dist/src/plugin/request.js +255 -71
- package/dist/src/plugin/request.js.map +1 -1
- package/dist/src/plugin/session-context.d.ts +21 -0
- package/dist/src/plugin/session-context.d.ts.map +1 -0
- package/dist/src/plugin/session-context.js +63 -0
- package/dist/src/plugin/session-context.js.map +1 -0
- package/dist/src/plugin/storage.d.ts +6 -0
- package/dist/src/plugin/storage.d.ts.map +1 -1
- package/dist/src/plugin/storage.js +27 -6
- package/dist/src/plugin/storage.js.map +1 -1
- package/dist/src/plugin/ui/auth-menu.d.ts +1 -1
- package/dist/src/plugin/ui/auth-menu.d.ts.map +1 -1
- package/dist/src/plugin/ui/auth-menu.js +3 -1
- package/dist/src/plugin/ui/auth-menu.js.map +1 -1
- package/dist/src/plugin/ui/quota-status.d.ts.map +1 -1
- package/dist/src/plugin/ui/quota-status.js +2 -1
- package/dist/src/plugin/ui/quota-status.js.map +1 -1
- package/dist/src/plugin.d.ts +16 -0
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/plugin.js +288 -102
- package/dist/src/plugin.js.map +1 -1
- package/package.json +2 -2
- package/dist/src/plugin/transform/claude.d.ts +0 -92
- package/dist/src/plugin/transform/claude.d.ts.map +0 -1
- package/dist/src/plugin/transform/claude.js +0 -280
- package/dist/src/plugin/transform/claude.js.map +0 -1
- package/dist/src/plugin/transform/gemini.d.ts +0 -100
- package/dist/src/plugin/transform/gemini.d.ts.map +0 -1
- package/dist/src/plugin/transform/gemini.js +0 -446
- package/dist/src/plugin/transform/gemini.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@cortexkit/opencode-antigravity-auth)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
7
|
-
Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth so you can use Antigravity rate limits and access models like `gemini-3.
|
|
7
|
+
Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth so you can use Antigravity rate limits and access models like `gemini-3.6-flash` and `claude-opus-4-6-thinking` with your Google credentials.
|
|
8
8
|
|
|
9
9
|
## What You Get
|
|
10
10
|
|
|
11
|
-
- **Claude Opus 4.6, Sonnet 4.6
|
|
11
|
+
- **Claude Opus 4.6, Sonnet 4.6, Gemini 3.6/3.5 Flash, Gemini 3.1 Pro/Image, and GPT-OSS 120B** via Google OAuth
|
|
12
12
|
- **Multi-account support** — add multiple Google accounts, auto-rotates when rate-limited
|
|
13
13
|
- **Dual quota system** — access both Antigravity and Gemini CLI quotas from one plugin
|
|
14
14
|
- **Thinking models** — extended thinking for Claude and Gemini 3 with configurable budgets
|
|
@@ -104,15 +104,22 @@ opencode run "Hello" --model=google/antigravity-claude-opus-4-6-thinking --varia
|
|
|
104
104
|
|
|
105
105
|
### Model Reference
|
|
106
106
|
|
|
107
|
-
**Antigravity quota
|
|
107
|
+
**Antigravity quota:**
|
|
108
108
|
|
|
109
109
|
| Model | Variants | Notes |
|
|
110
110
|
|-------|----------|-------|
|
|
111
|
-
| `antigravity-gemini-3-
|
|
112
|
-
| `antigravity-gemini-3.
|
|
113
|
-
| `antigravity-gemini-3-
|
|
114
|
-
| `antigravity-
|
|
115
|
-
| `antigravity-claude-
|
|
111
|
+
| `antigravity-gemini-3.6-flash` | low, high | Gemini 3.6 Flash with medium as the default |
|
|
112
|
+
| `antigravity-gemini-3.5-flash` | low, high | Gemini 3.5 Flash with medium as the default |
|
|
113
|
+
| `antigravity-gemini-3.1-pro` | low, high | Gemini 3.1 Pro with thinking |
|
|
114
|
+
| `antigravity-gemini-3.1-flash-image` | — | Gemini 3.1 image generation |
|
|
115
|
+
| `antigravity-claude-sonnet-4-6-thinking` | — | Claude Sonnet 4.6 with thinking |
|
|
116
|
+
| `antigravity-claude-opus-4-6-thinking` | — | Claude Opus 4.6 with thinking |
|
|
117
|
+
| `antigravity-gpt-oss-120b-medium` | — | GPT-OSS 120B medium reasoning |
|
|
118
|
+
|
|
119
|
+
> Gemini 3.5 Flash-Lite is available through the Gemini API but is not present in
|
|
120
|
+
> the AGY 1.1.5 Antigravity or Gemini CLI quota catalogs. Gemini 3.5 Flash Cyber
|
|
121
|
+
> is restricted to a limited-access CodeMender pilot. Neither model is advertised
|
|
122
|
+
> by this plugin.
|
|
116
123
|
|
|
117
124
|
**Gemini CLI quota** (separate from Antigravity; used when `cli_first` is true or as fallback):
|
|
118
125
|
|
|
@@ -160,6 +167,15 @@ Add this to your `~/.config/opencode/opencode.json`:
|
|
|
160
167
|
"high": { "thinkingLevel": "high" }
|
|
161
168
|
}
|
|
162
169
|
},
|
|
170
|
+
"antigravity-gemini-3.6-flash": {
|
|
171
|
+
"name": "Gemini 3.6 Flash (Antigravity)",
|
|
172
|
+
"limit": { "context": 1048576, "output": 65536 },
|
|
173
|
+
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
|
174
|
+
"variants": {
|
|
175
|
+
"low": { "thinkingLevel": "low" },
|
|
176
|
+
"high": { "thinkingLevel": "high" }
|
|
177
|
+
}
|
|
178
|
+
},
|
|
163
179
|
"antigravity-gemini-3.1-pro": {
|
|
164
180
|
"name": "Gemini 3.1 Pro (Antigravity)",
|
|
165
181
|
"limit": { "context": 1048576, "output": 65535 },
|