@heyhuynhgiabuu/pi-oauth-antigravity 0.1.7 → 0.1.8
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/dist/client/client.js +2 -1
- package/dist/stream/stream.js +5 -3
- package/package.json +1 -1
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.8] - 2026-10-15
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Default Antigravity client version raised from 2.8.0 to 2.23.0, since Cloud Code rejects newer models such as Gemini 4 Argon (reported as 429 "Resource has been exhausted") for older clients. Override with `ANTIGRAVITY_HUB_VERSION`.
|
|
14
|
+
- A transient 429 on a non-default endpoint now falls through to the remaining endpoints instead of failing immediately; plan-quota 429s still fail fast.
|
|
15
|
+
|
|
10
16
|
## [0.1.7] - 2026-10-15
|
|
11
17
|
|
|
12
18
|
### Added
|
package/dist/client/client.js
CHANGED
|
@@ -45,7 +45,8 @@ export function endpointCandidates(preferredEndpoint) {
|
|
|
45
45
|
}
|
|
46
46
|
return ENDPOINT_FALLBACKS;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
// Cloud Code rejects newer models (e.g. Gemini 4 Argon) for clients below 2.23.0.
|
|
49
|
+
const DEFAULT_ANTIGRAVITY_VERSION = "2.23.0";
|
|
49
50
|
const DEFAULT_ANTIGRAVITY_CL = "963137146";
|
|
50
51
|
function defaultUserAgent() {
|
|
51
52
|
const version = antigravityEnv("HUB_VERSION") || DEFAULT_ANTIGRAVITY_VERSION;
|
package/dist/stream/stream.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { calculateCost, createAssistantMessageEventStream, } from "@earendil-works/pi-ai";
|
|
2
2
|
import { getJsonSchemaToolParameters, requiresToolCallId, resolveJsonSchemaStrictSampling, } from "./provider-helpers.js";
|
|
3
3
|
import { getCurrentSystemPrompt, getCurrentTools } from "./transcript.js";
|
|
4
|
-
import { antigravityHeaders, endpointCandidates, fetchAvailableRuntimeModel, formatRequestDiagnostics, jsonOrTextError, loadCodeAssist, parseApiKey, resolveProjectId, } from "../client/client.js";
|
|
4
|
+
import { antigravityHeaders, DEFAULT_ENDPOINT, endpointCandidates, fetchAvailableRuntimeModel, formatRequestDiagnostics, jsonOrTextError, loadCodeAssist, parseApiKey, resolveProjectId, } from "../client/client.js";
|
|
5
5
|
import { getCurrentEndpoint, runWithDiagnostics, setLastEndpoint, setLastError, setLastLatencyMs, setLastProjectId, setLastResolvedRuntimeModel, setLastStatus, } from "../diagnostics/diagnostics.js";
|
|
6
6
|
import { AntigravityRequestType, AntigravityUserAgent, GeminiRole, GeminiToolCallingMode, StopReason, ToolChoice, } from "../types/enums.js";
|
|
7
7
|
import { ANTIGRAVITY_ROUTING, getMaxOutputTokens, getAntigravityRequestModelId, getFallbackRuntimeModel, getThinkingConfig, PROVIDER_ID, } from "../models/models.js";
|
|
@@ -990,8 +990,10 @@ export function streamAntigravity(model, context, options) {
|
|
|
990
990
|
}
|
|
991
991
|
if (response.ok)
|
|
992
992
|
break;
|
|
993
|
-
// 429s were already retried above
|
|
994
|
-
|
|
993
|
+
// 429s were already retried above and endpoints usually share one throttle,
|
|
994
|
+
// but a sticky non-default endpoint may not serve this model: try the rest once.
|
|
995
|
+
if (response.status === 429 &&
|
|
996
|
+
(endpoint === DEFAULT_ENDPOINT || isPlanQuotaError(response.status, lastText)))
|
|
995
997
|
break;
|
|
996
998
|
if (![403, 404, 500, 502, 503, 504].includes(response.status))
|
|
997
999
|
break;
|
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.8",
|
|
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",
|