@heyhuynhgiabuu/pi-oauth-antigravity 0.1.3 → 0.1.4
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 +5 -0
- package/dist/stream/stream.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.4] - 2026-09-20
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Kept Antigravity tool declarations on the plain JSON-schema compatibility path while retaining `VALIDATED` tool calling, so optional arguments are not rewritten as required by Pi's strict-prefer schema helper.
|
|
12
|
+
|
|
8
13
|
## [0.1.3] - 2026-09-20
|
|
9
14
|
|
|
10
15
|
### Fixed
|
package/dist/stream/stream.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { calculateCost, createAssistantMessageEventStream, } from "@earendil-works/pi-ai";
|
|
2
2
|
import { getJsonSchemaToolParameters, resolveJsonSchemaStrictSampling } from "@earendil-works/pi-ai/api/constrained-sampling";
|
|
3
|
-
import { requiresToolCallId
|
|
3
|
+
import { requiresToolCallId } from "@earendil-works/pi-ai/api/google-shared";
|
|
4
4
|
import { getCurrentSystemPrompt, getCurrentTools } from "./transcript.js";
|
|
5
5
|
import { antigravityHeaders, endpointCandidates, fetchAvailableRuntimeModel, formatRequestDiagnostics, jsonOrTextError, loadCodeAssist, parseApiKey, resolveProjectId, } from "../client/client.js";
|
|
6
6
|
import { getCurrentEndpoint, runWithDiagnostics, setLastEndpoint, setLastError, setLastLatencyMs, setLastProjectId, setLastResolvedRuntimeModel, setLastStatus, } from "../diagnostics/diagnostics.js";
|
|
@@ -456,7 +456,9 @@ export function buildRequest(model, context, projectId, options, runtimeModel, s
|
|
|
456
456
|
if (Object.keys(generationConfig).length)
|
|
457
457
|
request.generationConfig = generationConfig;
|
|
458
458
|
const isClaude = model.id.startsWith("claude-") || runtimeModel.startsWith("claude-");
|
|
459
|
-
const tools = convertTools(getCurrentTools(context), isClaude || model.id.startsWith("gpt-oss-"),
|
|
459
|
+
const tools = convertTools(getCurrentTools(context), isClaude || model.id.startsWith("gpt-oss-"),
|
|
460
|
+
// Keep Antigravity on the plain-schema compatibility path with VALIDATED calls.
|
|
461
|
+
false);
|
|
460
462
|
if (tools) {
|
|
461
463
|
request.tools = tools;
|
|
462
464
|
request.toolConfig = {
|
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.4",
|
|
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",
|