@expiren/opencode-antigravity-auth 1.6.39 → 1.6.40

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
@@ -7556,6 +7556,10 @@ function ensureThinkingBeforeToolUseInMessages(messages, signatureSessionKey) {
7556
7556
  }) };
7557
7557
  });
7558
7558
  }
7559
+ var _lastCacheStats = null;
7560
+ function getLastCacheStats() {
7561
+ return _lastCacheStats;
7562
+ }
7559
7563
  function generateSyntheticProjectId() {
7560
7564
  const adjectives = ["useful", "bright", "swift", "calm", "bold"];
7561
7565
  const nouns = ["fuze", "wave", "spark", "flow", "core"];
@@ -8157,6 +8161,7 @@ async function transformAntigravityResponse(response, streaming, debugContext, r
8157
8161
  const status = cacheRead > 0 ? "HIT" : "MISS";
8158
8162
  logCacheStats(effectiveModel, cacheRead, 0, totalInput);
8159
8163
  log6.debug(`[Cache] ${status} model=${effectiveModel} read=${cacheRead} total=${totalInput} hitRate=${hitRate}%`);
8164
+ _lastCacheStats = { model: effectiveModel, read: cacheRead, total: totalInput, hitRate };
8160
8165
  }
8161
8166
  },
8162
8167
  transformThinkingParts
@@ -12323,6 +12328,11 @@ var createAntigravityPlugin = (providerId) => async ({ client, directory }) => {
12323
12328
  debugLines.push(line);
12324
12329
  };
12325
12330
  pushDebug(`request=${urlString}`);
12331
+ const cachedStats = getLastCacheStats();
12332
+ if (cachedStats) {
12333
+ const label = cachedStats.hitRate > 0 ? "HIT" : "MISS";
12334
+ pushDebug(`[Cache] ${label} model=${cachedStats.model} read=${cachedStats.read} total=${cachedStats.total} hitRate=${cachedStats.hitRate}%`);
12335
+ }
12326
12336
  let lastFailure = null;
12327
12337
  let lastError = null;
12328
12338
  const abortSignal = init?.signal ?? void 0;