@expiren/opencode-antigravity-auth 1.6.49 → 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 -15
- package/dist/index.js.map +2 -2
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/plugin.js +7 -21
- package/dist/src/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12734,24 +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.tools;
|
|
12745
|
-
delete req.toolConfig;
|
|
12746
|
-
delete req.safetySettings;
|
|
12747
|
-
probeBody = JSON.stringify({ ...parsed, request: req });
|
|
12748
|
-
}
|
|
12749
|
-
} catch {
|
|
12750
|
-
}
|
|
12751
12737
|
const probeResponse = await fetch(toUrlString(prepared.request), {
|
|
12752
12738
|
...prepared.init,
|
|
12753
12739
|
method: "POST",
|
|
12754
|
-
body:
|
|
12740
|
+
body: bodyStr
|
|
12755
12741
|
});
|
|
12756
12742
|
if (probeResponse.body) {
|
|
12757
12743
|
const reader = probeResponse.body.getReader();
|