@expiren/opencode-antigravity-auth 1.6.46 → 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,25 +12733,23 @@ 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
- parsed.generationConfig = {
12738
- maxOutputTokens: 1
12739
- };
12740
12736
  pushDebug("cache-warmup-probe: start");
12741
12737
  const probeResponse = await fetch(toUrlString(prepared.request), {
12742
12738
  ...prepared.init,
12743
12739
  method: "POST",
12744
- body: JSON.stringify(parsed)
12740
+ body: bodyStr
12745
12741
  });
12746
12742
  if (probeResponse.body) {
12747
12743
  const reader = probeResponse.body.getReader();
12748
- while (!(await reader.read()).done) {
12749
- }
12750
- } else {
12751
- await probeResponse.text();
12744
+ await reader.read();
12745
+ await reader.cancel();
12752
12746
  }
12753
12747
  const status = probeResponse.status;
12754
- pushDebug(`cache-warmup-probe: done status=${status}`);
12748
+ if (status >= 400) {
12749
+ pushDebug(`cache-warmup-probe: done status=${status}`);
12750
+ } else {
12751
+ pushDebug(`cache-warmup-probe: done status=${status} (aborted after first chunk)`);
12752
+ }
12755
12753
  } catch (error) {
12756
12754
  pushDebug(
12757
12755
  `cache-warmup-probe: failed ${error instanceof Error ? error.message : String(error)}`