@expiren/opencode-antigravity-auth 1.6.50 → 1.6.51
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/dist/index.js +1 -13
- package/dist/index.js.map +2 -2
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/plugin.js +7 -19
- package/dist/src/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12734,22 +12734,10 @@ var createAntigravityPlugin = (providerId) => async ({ client, directory }) => {
|
|
|
12734
12734
|
if (!bodyStr) return;
|
|
12735
12735
|
try {
|
|
12736
12736
|
pushDebug("cache-warmup-probe: start");
|
|
12737
|
-
let probeBody = bodyStr;
|
|
12738
|
-
try {
|
|
12739
|
-
const parsed = JSON.parse(bodyStr);
|
|
12740
|
-
if (parsed.request && typeof parsed.request === "object") {
|
|
12741
|
-
const req = { ...parsed.request };
|
|
12742
|
-
delete req.generationConfig;
|
|
12743
|
-
delete req.thinkingConfig;
|
|
12744
|
-
delete req.safetySettings;
|
|
12745
|
-
probeBody = JSON.stringify({ ...parsed, request: req });
|
|
12746
|
-
}
|
|
12747
|
-
} catch {
|
|
12748
|
-
}
|
|
12749
12737
|
const probeResponse = await fetch(toUrlString(prepared.request), {
|
|
12750
12738
|
...prepared.init,
|
|
12751
12739
|
method: "POST",
|
|
12752
|
-
body:
|
|
12740
|
+
body: bodyStr
|
|
12753
12741
|
});
|
|
12754
12742
|
if (probeResponse.body) {
|
|
12755
12743
|
const reader = probeResponse.body.getReader();
|