@anthonyhaussman/opencode-agy-auth 1.1.5 → 1.1.6-alpha.0

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
@@ -17053,7 +17053,15 @@ import { randomUUID as randomUUID2 } from "crypto";
17053
17053
  // src/sdk/request/shared.ts
17054
17054
  var REQUEST_MODEL_FALLBACKS = {
17055
17055
  "gemini-2.5-flash-image": "gemini-2.5-flash",
17056
- "gemini-3.1-pro-high": "gemini-pro-agent"
17056
+ "gemini-3.1-pro-high": "gemini-pro-agent",
17057
+ // Safety net: the gemini-3.5-flash-low/medium/high tier ids no longer
17058
+ // exist server-side. If any stale URL still contains them, remap to the
17059
+ // current live ids. Primary fix is TIER_MAPPING in plugin.ts.
17060
+ // medium -> gemini-3.5-flash-low (enum M20, display "Gemini 3.5 Flash (Medium)")
17061
+ // high -> gemini-3-flash-agent (enum M84, display "Gemini 3.5 Flash (High)")
17062
+ // low -> gemini-3.5-flash-extra-low (enum M187, display "Gemini 3.5 Flash (Low)")
17063
+ "gemini-3.5-flash-medium": "gemini-3.5-flash-low",
17064
+ "gemini-3.5-flash-high": "gemini-3-flash-agent"
17057
17065
  };
17058
17066
  var GENERATIVE_LANGUAGE_HOST = new URL(AGY_GENERATIVE_LANGUAGE_ENDPOINT).host;
17059
17067
  var CODE_ASSIST_HOST_SUFFIX = "cloudcode-pa.googleapis.com";
@@ -18055,9 +18063,9 @@ var TIER_MAPPING = {
18055
18063
  high: "gemini-3.6-flash-high"
18056
18064
  },
18057
18065
  "gemini-3.5-flash": {
18058
- low: "gemini-3.5-flash-low",
18059
- medium: "gemini-3.5-flash-medium",
18060
- high: "gemini-3.5-flash-high"
18066
+ low: "gemini-3.5-flash-extra-low",
18067
+ medium: "gemini-3.5-flash-low",
18068
+ high: "gemini-3-flash-agent"
18061
18069
  },
18062
18070
  "gemini-3.1-pro": {
18063
18071
  low: "gemini-3.1-pro-low",