@expiren/opencode-antigravity-auth 1.6.9 → 1.6.11

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
@@ -1698,16 +1698,6 @@ function defineModel(id, model) {
1698
1698
  };
1699
1699
  }
1700
1700
  var OPENCODE_MODEL_DEFINITIONS = {
1701
- "antigravity-gemini-3-pro": defineModel("antigravity-gemini-3-pro", {
1702
- name: "Gemini 3 Pro (Antigravity)",
1703
- reasoning: true,
1704
- limit: { context: 1048576, output: 65535 },
1705
- modalities: DEFAULT_MODALITIES,
1706
- variants: {
1707
- low: { thinkingLevel: "low" },
1708
- high: { thinkingLevel: "high" }
1709
- }
1710
- }),
1711
1701
  "antigravity-gemini-3.1-pro": defineModel("antigravity-gemini-3.1-pro", {
1712
1702
  name: "Gemini 3.1 Pro (Antigravity)",
1713
1703
  reasoning: true,
@@ -1718,18 +1708,6 @@ var OPENCODE_MODEL_DEFINITIONS = {
1718
1708
  high: { thinkingLevel: "high" }
1719
1709
  }
1720
1710
  }),
1721
- "antigravity-gemini-3-flash": defineModel("antigravity-gemini-3-flash", {
1722
- name: "Gemini 3 Flash (Antigravity)",
1723
- reasoning: true,
1724
- limit: { context: 1048576, output: 65536 },
1725
- modalities: DEFAULT_MODALITIES,
1726
- variants: {
1727
- minimal: { thinkingLevel: "minimal" },
1728
- low: { thinkingLevel: "low" },
1729
- medium: { thinkingLevel: "medium" },
1730
- high: { thinkingLevel: "high" }
1731
- }
1732
- }),
1733
1711
  "antigravity-gemini-3.5-flash": defineModel("antigravity-gemini-3.5-flash", {
1734
1712
  name: "Gemini 3.5 Flash (Antigravity)",
1735
1713
  reasoning: true,
@@ -5879,10 +5857,9 @@ function resolveModelWithTier(requestedModel, options = {}) {
5879
5857
  const isGemini3Flash = isGemini3FlashModel(modelWithoutQuota);
5880
5858
  let antigravityModel = modelWithoutQuota;
5881
5859
  if (skipAlias) {
5882
- if (isGemini3Pro && !tier && !isImageModel) {
5883
- antigravityModel = `${modelWithoutQuota}-low`;
5884
- } else if (isGemini3Flash && tier) {
5885
- antigravityModel = baseName;
5860
+ if ((isGemini3Pro || isGemini3Flash) && !tier && !isImageModel) {
5861
+ const defaultTier = isGemini3Pro ? "low" : "medium";
5862
+ antigravityModel = `${modelWithoutQuota}-${defaultTier}`;
5886
5863
  }
5887
5864
  }
5888
5865
  const actualModel = skipAlias ? antigravityModel : MODEL_ALIASES[modelWithoutQuota] || MODEL_ALIASES[baseName] || baseName;
@@ -5961,10 +5938,12 @@ function resolveModelForHeaderStyle(requestedModel, headerStyle) {
5961
5938
  if (headerStyle === "antigravity") {
5962
5939
  let transformedModel = requestedModel.replace(/-preview-customtools$/i, "").replace(/-preview$/i, "").replace(/^antigravity-/i, "");
5963
5940
  const isGemini3Pro = isGemini3ProModel(transformedModel);
5941
+ const isGemini3Flash = isGemini3FlashModel(transformedModel);
5964
5942
  const hasTierSuffix = /-(low|medium|high)$/i.test(transformedModel);
5965
5943
  const isImageModel = IMAGE_GENERATION_MODELS.test(transformedModel);
5966
- if (isGemini3Pro && !hasTierSuffix && !isImageModel) {
5967
- transformedModel = `${transformedModel}-low`;
5944
+ if ((isGemini3Pro || isGemini3Flash) && !hasTierSuffix && !isImageModel) {
5945
+ const defaultTier = isGemini3Pro ? "low" : "medium";
5946
+ transformedModel = `${transformedModel}-${defaultTier}`;
5968
5947
  }
5969
5948
  const prefixedModel = `antigravity-${transformedModel}`;
5970
5949
  return resolveModelWithTier(prefixedModel);