@expiren/opencode-antigravity-auth 1.6.47 → 1.6.48

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 CHANGED
@@ -12733,35 +12733,22 @@ var createAntigravityPlugin = (providerId) => async ({ client, directory }) => {
12733
12733
  const bodyStr = typeof prepared.init.body === "string" ? prepared.init.body : void 0;
12734
12734
  if (!bodyStr) return;
12735
12735
  try {
12736
- const parsed = JSON.parse(bodyStr);
12737
- const originalThinking = parsed.generationConfig?.thinkingConfig;
12738
- parsed.generationConfig = {
12739
- maxOutputTokens: originalThinking ? 256 : 1,
12740
- ...originalThinking ? { thinkingConfig: { thinkingBudget: 128 } } : {}
12741
- };
12742
12736
  pushDebug("cache-warmup-probe: start");
12743
12737
  const probeResponse = await fetch(toUrlString(prepared.request), {
12744
12738
  ...prepared.init,
12745
12739
  method: "POST",
12746
- body: JSON.stringify(parsed)
12740
+ body: bodyStr
12747
12741
  });
12748
- let probeBody = "";
12749
12742
  if (probeResponse.body) {
12750
12743
  const reader = probeResponse.body.getReader();
12751
- const decoder = new TextDecoder();
12752
- let chunk;
12753
- while (!(chunk = await reader.read()).done) {
12754
- probeBody += decoder.decode(chunk.value, { stream: true });
12755
- }
12756
- } else {
12757
- probeBody = await probeResponse.text();
12744
+ await reader.read();
12745
+ await reader.cancel();
12758
12746
  }
12759
12747
  const status = probeResponse.status;
12760
12748
  if (status >= 400) {
12761
- const errorSnippet = probeBody.slice(0, 200);
12762
- pushDebug(`cache-warmup-probe: done status=${status} error=${errorSnippet}`);
12763
- } else {
12764
12749
  pushDebug(`cache-warmup-probe: done status=${status}`);
12750
+ } else {
12751
+ pushDebug(`cache-warmup-probe: done status=${status} (aborted after first chunk)`);
12765
12752
  }
12766
12753
  } catch (error) {
12767
12754
  pushDebug(