@heyhuynhgiabuu/pi-oauth-antigravity 0.1.6 → 0.1.7
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/CHANGELOG.md +6 -0
- package/README.md +12 -1
- package/dist/models/models.d.ts +9 -1
- package/dist/models/models.js +107 -2
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.7] - 2026-10-15
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Claude Opus 5.5 and Claude Sonnet 5.5 (Low / Medium / High) catalog entries. Context and output limits are provisional same-family estimates.
|
|
14
|
+
- Provisional `gemini-4-argon` (Low / Medium / High) catalog entry, inferred from runtime ids referenced by Antigravity IDE 2.23.0, with fallback to Gemini 3.8 Flash when the backend rejects it. Limits and pricing are unverified.
|
|
15
|
+
|
|
10
16
|
## [0.1.6] - 2026-10-01
|
|
11
17
|
|
|
12
18
|
### Fixed
|
package/README.md
CHANGED
|
@@ -22,15 +22,26 @@ Google Antigravity OAuth provider extension for [Pi](https://pi.dev). Connects P
|
|
|
22
22
|
|
|
23
23
|
| Public Model ID | Backend Wire ID | Max Output | Context Window |
|
|
24
24
|
| :--- | :--- | :--- | :--- |
|
|
25
|
+
| `antigravity/gemini-4-argon` | `gemini-4-argon-{low,medium,high}`† | 65,536† | 1,048,576† |
|
|
25
26
|
| `antigravity/gemini-3.8-flash` | `gemini-3.8-flash-{low,medium,high}` | 65,536 | 1,048,576 |
|
|
26
27
|
| `antigravity/gemini-3.7-flash` | `gemini-3.7-flash-{low,medium,high}` | 65,536 | 1,048,576 |
|
|
27
28
|
| `antigravity/gemini-3.7-flash-thinking` | `gemini-3.7-flash-thinking` | 65,536 | 1,048,576 |
|
|
28
29
|
| `antigravity/gemini-3.6-flash` | `gemini-3.6-flash-{low,medium,high}` | 65,536 | 1,048,576 |
|
|
29
30
|
| `antigravity/gemini-3.1-pro` | `gemini-3.1-pro` | 65,536 | 1,048,576 |
|
|
30
|
-
| `antigravity/claude-sonnet-4-6` | `claude-sonnet-4-6` | 64,000 | 200,000 |
|
|
31
31
|
| `antigravity/claude-opus-4-6` | `claude-opus-4-6` | 64,000 | 200,000 |
|
|
32
|
+
| `antigravity/claude-opus-5-5-low` | `claude-opus-5-5-low` | 64,000* | 250,000* |
|
|
33
|
+
| `antigravity/claude-opus-5-5-medium` | `claude-opus-5-5-medium` | 64,000* | 250,000* |
|
|
34
|
+
| `antigravity/claude-opus-5-5-high` | `claude-opus-5-5-high` | 64,000* | 250,000* |
|
|
35
|
+
| `antigravity/claude-sonnet-4-6` | `claude-sonnet-4-6` | 64,000 | 200,000 |
|
|
36
|
+
| `antigravity/claude-sonnet-5-5-low` | `claude-sonnet-5-5-low` | 64,000* | 200,000* |
|
|
37
|
+
| `antigravity/claude-sonnet-5-5-medium` | `claude-sonnet-5-5-medium` | 64,000* | 200,000* |
|
|
38
|
+
| `antigravity/claude-sonnet-5-5-high` | `claude-sonnet-5-5-high` | 64,000* | 200,000* |
|
|
32
39
|
| `antigravity/gpt-oss-120b` | `gpt-oss-120b` | 8,192 | 131,072 |
|
|
33
40
|
|
|
41
|
+
† Inferred from runtime ids referenced by Antigravity IDE 2.23.0, not yet confirmed against a live model listing; limits and pricing are provisional, and requests fall back to Gemini 3.8 Flash if the backend rejects the model.
|
|
42
|
+
|
|
43
|
+
\* Provisional same-family estimates only; Claude 5.5 backend output/context limits have not been verified.
|
|
44
|
+
|
|
34
45
|
## Installation
|
|
35
46
|
|
|
36
47
|
Install directly into Pi via npm:
|
package/dist/models/models.d.ts
CHANGED
|
@@ -6,14 +6,22 @@ export declare const PROVIDER_NAME = "Antigravity";
|
|
|
6
6
|
* Public selectable model IDs → backend request model IDs by thinking effort.
|
|
7
7
|
*
|
|
8
8
|
* Catalog mirrors `agy models` (Antigravity CLI), which currently advertises:
|
|
9
|
+
* - Gemini 4 Argon (Low / Medium / High) — provisional, see below
|
|
9
10
|
* - Gemini 3.8 Flash (Low / Medium / High)
|
|
10
11
|
* - Gemini 3.7 Flash (Low / Medium / High)
|
|
11
12
|
* - Gemini 3.6 Flash (Low / Medium / High)
|
|
12
13
|
* - Gemini 3.1 Pro (Low / High)
|
|
13
14
|
* - Claude Sonnet 4.6 (Thinking)
|
|
14
15
|
* - Claude Opus 4.6 (Thinking)
|
|
16
|
+
* - Claude Opus 5.5 (Low / Medium / High)
|
|
17
|
+
* - Claude Sonnet 5.5 (Low / Medium / High)
|
|
15
18
|
* - GPT-OSS 120B (Medium)
|
|
16
19
|
*
|
|
20
|
+
* Gemini 4 Argon is inferred from runtime ids referenced by Antigravity IDE 2.23.0
|
|
21
|
+
* (`gemini-4-argon-{low,medium,high}`); it is not yet confirmed against a live
|
|
22
|
+
* `fetchAvailableModels` or `agy models` listing, so its limits and pricing are
|
|
23
|
+
* provisional and requests fall back to Gemini 3.8 Flash when the backend rejects it.
|
|
24
|
+
*
|
|
17
25
|
* Gemini 3.5 Flash is intentionally omitted from the selectable catalog; the
|
|
18
26
|
* stream handler recognizes the reported retirement notice for old model IDs.
|
|
19
27
|
* Pi exposes the remaining models as public IDs and surfaces the exact thinking
|
|
@@ -26,7 +34,7 @@ export declare const ANTIGRAVITY_ROUTING: Record<string, AntigravityRouting>;
|
|
|
26
34
|
*/
|
|
27
35
|
export declare const RUNTIME_MAX_OUTPUT_TOKENS: Record<string, number>;
|
|
28
36
|
export declare function getMaxOutputTokens(modelId: string, runtimeModel?: string): number;
|
|
29
|
-
/**
|
|
37
|
+
/** Selectable provider models; effort variants share public IDs where routing supports them. */
|
|
30
38
|
export declare const ANTIGRAVITY_MODELS: ProviderModelConfig[];
|
|
31
39
|
/** Resolve public model id + thinking effort to Antigravity runtime model id. */
|
|
32
40
|
export declare function getAntigravityRequestModelId(modelId: string, effort: string | undefined): string;
|
package/dist/models/models.js
CHANGED
|
@@ -5,20 +5,39 @@ export const PROVIDER_NAME = "Antigravity";
|
|
|
5
5
|
* Public selectable model IDs → backend request model IDs by thinking effort.
|
|
6
6
|
*
|
|
7
7
|
* Catalog mirrors `agy models` (Antigravity CLI), which currently advertises:
|
|
8
|
+
* - Gemini 4 Argon (Low / Medium / High) — provisional, see below
|
|
8
9
|
* - Gemini 3.8 Flash (Low / Medium / High)
|
|
9
10
|
* - Gemini 3.7 Flash (Low / Medium / High)
|
|
10
11
|
* - Gemini 3.6 Flash (Low / Medium / High)
|
|
11
12
|
* - Gemini 3.1 Pro (Low / High)
|
|
12
13
|
* - Claude Sonnet 4.6 (Thinking)
|
|
13
14
|
* - Claude Opus 4.6 (Thinking)
|
|
15
|
+
* - Claude Opus 5.5 (Low / Medium / High)
|
|
16
|
+
* - Claude Sonnet 5.5 (Low / Medium / High)
|
|
14
17
|
* - GPT-OSS 120B (Medium)
|
|
15
18
|
*
|
|
19
|
+
* Gemini 4 Argon is inferred from runtime ids referenced by Antigravity IDE 2.23.0
|
|
20
|
+
* (`gemini-4-argon-{low,medium,high}`); it is not yet confirmed against a live
|
|
21
|
+
* `fetchAvailableModels` or `agy models` listing, so its limits and pricing are
|
|
22
|
+
* provisional and requests fall back to Gemini 3.8 Flash when the backend rejects it.
|
|
23
|
+
*
|
|
16
24
|
* Gemini 3.5 Flash is intentionally omitted from the selectable catalog; the
|
|
17
25
|
* stream handler recognizes the reported retirement notice for old model IDs.
|
|
18
26
|
* Pi exposes the remaining models as public IDs and surfaces the exact thinking
|
|
19
27
|
* levels advertised by the backend for each model.
|
|
20
28
|
*/
|
|
21
29
|
export const ANTIGRAVITY_ROUTING = {
|
|
30
|
+
"gemini-4-argon": {
|
|
31
|
+
off: "gemini-4-argon-low",
|
|
32
|
+
routing: {
|
|
33
|
+
minimal: "gemini-4-argon-low",
|
|
34
|
+
low: "gemini-4-argon-low",
|
|
35
|
+
medium: "gemini-4-argon-medium",
|
|
36
|
+
high: "gemini-4-argon-high",
|
|
37
|
+
xhigh: "gemini-4-argon-high",
|
|
38
|
+
},
|
|
39
|
+
defaultRequestId: "gemini-4-argon-low",
|
|
40
|
+
},
|
|
22
41
|
"gemini-3.8-flash": {
|
|
23
42
|
off: "gemini-3.8-flash-low",
|
|
24
43
|
routing: {
|
|
@@ -39,6 +58,30 @@ export const ANTIGRAVITY_ROUTING = {
|
|
|
39
58
|
},
|
|
40
59
|
defaultRequestId: "claude-opus-4-6-thinking",
|
|
41
60
|
},
|
|
61
|
+
"claude-opus-5-5-low": {
|
|
62
|
+
routing: { low: "claude-opus-5-5-low" },
|
|
63
|
+
defaultRequestId: "claude-opus-5-5-low",
|
|
64
|
+
},
|
|
65
|
+
"claude-opus-5-5-medium": {
|
|
66
|
+
routing: { medium: "claude-opus-5-5-medium" },
|
|
67
|
+
defaultRequestId: "claude-opus-5-5-medium",
|
|
68
|
+
},
|
|
69
|
+
"claude-opus-5-5-high": {
|
|
70
|
+
routing: { high: "claude-opus-5-5-high" },
|
|
71
|
+
defaultRequestId: "claude-opus-5-5-high",
|
|
72
|
+
},
|
|
73
|
+
"claude-sonnet-5-5-low": {
|
|
74
|
+
routing: { low: "claude-sonnet-5-5-low" },
|
|
75
|
+
defaultRequestId: "claude-sonnet-5-5-low",
|
|
76
|
+
},
|
|
77
|
+
"claude-sonnet-5-5-medium": {
|
|
78
|
+
routing: { medium: "claude-sonnet-5-5-medium" },
|
|
79
|
+
defaultRequestId: "claude-sonnet-5-5-medium",
|
|
80
|
+
},
|
|
81
|
+
"claude-sonnet-5-5-high": {
|
|
82
|
+
routing: { high: "claude-sonnet-5-5-high" },
|
|
83
|
+
defaultRequestId: "claude-sonnet-5-5-high",
|
|
84
|
+
},
|
|
42
85
|
// Live fetchAvailableModels exposes `claude-sonnet-4-6` (display: Thinking), not a separate *-thinking id.
|
|
43
86
|
"claude-sonnet-4-6": {
|
|
44
87
|
off: "claude-sonnet-4-6",
|
|
@@ -103,6 +146,11 @@ export const ANTIGRAVITY_ROUTING = {
|
|
|
103
146
|
* Requesting more than these limits returns a 400 Bad Request from the API.
|
|
104
147
|
*/
|
|
105
148
|
export const RUNTIME_MAX_OUTPUT_TOKENS = {
|
|
149
|
+
// Provisional: family fallback, not a verified Gemini 4 limit.
|
|
150
|
+
"gemini-4-argon": 65536,
|
|
151
|
+
"gemini-4-argon-low": 65536,
|
|
152
|
+
"gemini-4-argon-medium": 65536,
|
|
153
|
+
"gemini-4-argon-high": 65536,
|
|
106
154
|
"gemini-3.8-flash": 65536,
|
|
107
155
|
"gemini-3.8-flash-tiered": 65536,
|
|
108
156
|
"gemini-3.8-flash-low": 65536,
|
|
@@ -136,6 +184,7 @@ export function getMaxOutputTokens(modelId, runtimeModel) {
|
|
|
136
184
|
return RUNTIME_MAX_OUTPUT_TOKENS[modelId];
|
|
137
185
|
}
|
|
138
186
|
if (runtimeModel) {
|
|
187
|
+
// Unlisted Claude models use a family fallback, not a verified per-model limit.
|
|
139
188
|
if (runtimeModel.startsWith("claude-"))
|
|
140
189
|
return 64000;
|
|
141
190
|
if (runtimeModel.startsWith("gpt-oss-"))
|
|
@@ -182,6 +231,15 @@ const thinkingLevelMaps = {
|
|
|
182
231
|
xhigh: null,
|
|
183
232
|
max: null,
|
|
184
233
|
},
|
|
234
|
+
low: {
|
|
235
|
+
off: null,
|
|
236
|
+
minimal: null,
|
|
237
|
+
low: "low",
|
|
238
|
+
medium: null,
|
|
239
|
+
high: null,
|
|
240
|
+
xhigh: null,
|
|
241
|
+
max: null,
|
|
242
|
+
},
|
|
185
243
|
medium: {
|
|
186
244
|
off: null,
|
|
187
245
|
minimal: null,
|
|
@@ -192,8 +250,46 @@ const thinkingLevelMaps = {
|
|
|
192
250
|
max: null,
|
|
193
251
|
},
|
|
194
252
|
};
|
|
195
|
-
|
|
253
|
+
const claude55ThinkingLevelMaps = {
|
|
254
|
+
low: thinkingLevelMaps.low,
|
|
255
|
+
medium: thinkingLevelMaps.medium,
|
|
256
|
+
high: thinkingLevelMaps.thinking,
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Use existing same-family values as provisional estimates only; 5.5-specific
|
|
260
|
+
* cost, context-window, and output-token metadata has not been verified.
|
|
261
|
+
*/
|
|
262
|
+
function claude55Models(family) {
|
|
263
|
+
const familyName = family === "opus" ? "Opus" : "Sonnet";
|
|
264
|
+
const cost = family === "opus" ? claudeOpusCost : claudeSonnetCost;
|
|
265
|
+
const contextWindow = family === "opus" ? 250000 : 200000;
|
|
266
|
+
return ["low", "medium", "high"].map((tier) => {
|
|
267
|
+
const tierName = `${tier[0].toUpperCase()}${tier.slice(1)}`;
|
|
268
|
+
return {
|
|
269
|
+
id: `claude-${family}-5-5-${tier}`,
|
|
270
|
+
name: `Claude ${familyName} 5.5 (${tierName}) (Antigravity)`,
|
|
271
|
+
reasoning: true,
|
|
272
|
+
thinkingLevelMap: claude55ThinkingLevelMaps[tier],
|
|
273
|
+
input: ["text", "image"],
|
|
274
|
+
cost,
|
|
275
|
+
contextWindow,
|
|
276
|
+
maxTokens: 64000,
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/** Selectable provider models; effort variants share public IDs where routing supports them. */
|
|
196
281
|
export const ANTIGRAVITY_MODELS = [
|
|
282
|
+
{
|
|
283
|
+
// Provisional: cost (Pro-tier estimate), context window, and max output are unverified.
|
|
284
|
+
id: "gemini-4-argon",
|
|
285
|
+
name: "Gemini 4 Argon (Antigravity)",
|
|
286
|
+
reasoning: true,
|
|
287
|
+
thinkingLevelMap: thinkingLevelMaps.lowMediumHigh,
|
|
288
|
+
input: ["text", "image"],
|
|
289
|
+
cost: geminiProCost,
|
|
290
|
+
contextWindow: 1048576,
|
|
291
|
+
maxTokens: 65536,
|
|
292
|
+
},
|
|
197
293
|
{
|
|
198
294
|
id: "gemini-3.8-flash",
|
|
199
295
|
name: "Gemini 3.8 Flash (Antigravity)",
|
|
@@ -234,6 +330,8 @@ export const ANTIGRAVITY_MODELS = [
|
|
|
234
330
|
contextWindow: 250000,
|
|
235
331
|
maxTokens: 64000,
|
|
236
332
|
},
|
|
333
|
+
...claude55Models("opus"),
|
|
334
|
+
...claude55Models("sonnet"),
|
|
237
335
|
{
|
|
238
336
|
id: "claude-sonnet-4-6",
|
|
239
337
|
name: "Claude Sonnet 4.6 (Antigravity)",
|
|
@@ -295,6 +393,12 @@ export function getAntigravityRequestModelId(modelId, effort) {
|
|
|
295
393
|
* provide a fallback runtime model ID (e.g. Gemini 3.6 Flash) to maintain availability.
|
|
296
394
|
*/
|
|
297
395
|
export function getFallbackRuntimeModel(runtimeModel, effort) {
|
|
396
|
+
if (runtimeModel === "gemini-4-argon") {
|
|
397
|
+
return "gemini-3.8-flash-low";
|
|
398
|
+
}
|
|
399
|
+
if (runtimeModel.startsWith("gemini-4-argon-")) {
|
|
400
|
+
return runtimeModel.replace("gemini-4-argon-", "gemini-3.8-flash-");
|
|
401
|
+
}
|
|
298
402
|
if (runtimeModel === "gemini-3.8-flash-tiered") {
|
|
299
403
|
return getAntigravityRequestModelId("gemini-3.7-flash", effort);
|
|
300
404
|
}
|
|
@@ -327,7 +431,8 @@ function googleLevel(effort) {
|
|
|
327
431
|
return "LOW";
|
|
328
432
|
}
|
|
329
433
|
export function getThinkingConfig(modelId, effort) {
|
|
330
|
-
if (modelId === "gemini-
|
|
434
|
+
if (modelId === "gemini-4-argon" ||
|
|
435
|
+
modelId === "gemini-3.7-flash" ||
|
|
331
436
|
modelId === "gemini-3.6-flash" ||
|
|
332
437
|
modelId === "gemini-3.8-flash") {
|
|
333
438
|
return { includeThoughts: true, thinkingLevel: googleLevel(effort) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyhuynhgiabuu/pi-oauth-antigravity",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Google Antigravity OAuth provider extension for Pi with Gemini 3.8, prompt cache session affinity, and trajectory chaining.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -59,12 +59,11 @@
|
|
|
59
59
|
"undici": "^8.10.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@earendil-works/pi-ai": "
|
|
63
|
-
"@earendil-works/pi-coding-agent": "
|
|
64
|
-
"@earendil-works/pi-server": "^0.86.0",
|
|
62
|
+
"@earendil-works/pi-ai": "1.2.0",
|
|
63
|
+
"@earendil-works/pi-coding-agent": "1.2.0",
|
|
65
64
|
"@types/node": "^22.20.1",
|
|
66
65
|
"tsx": "^4.20.6",
|
|
67
|
-
"typescript": "^
|
|
66
|
+
"typescript": "^7.0.2"
|
|
68
67
|
},
|
|
69
68
|
"pi": {
|
|
70
69
|
"extensions": [
|