@anthonyhaussman/opencode-agy-auth 1.0.13 → 1.0.14-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
@@ -17936,7 +17936,6 @@ var TIER_MAPPING = {
17936
17936
  },
17937
17937
  "gemini-3.1-pro": {
17938
17938
  low: "gemini-3.1-pro-low",
17939
- medium: "gemini-3.1-pro-high",
17940
17939
  high: "gemini-3.1-pro-high"
17941
17940
  }
17942
17941
  };
@@ -17947,7 +17946,7 @@ var buildModelFromSimple = (modelId, simple) => {
17947
17946
  if (TIER_MAPPING[modelId]) {
17948
17947
  variants = {
17949
17948
  "low": { id: "low", name: "low", displayName: "low", title: "low", label: "low", options: { name: "low" }, headers: { "x-agy-tier": "low" } },
17950
- "medium": { id: "medium", name: "medium", displayName: "medium", title: "medium", label: "medium", options: { name: "medium" }, headers: { "x-agy-tier": "medium" } },
17949
+ ...TIER_MAPPING[modelId].medium !== void 0 ? { "medium": { id: "medium", name: "medium", displayName: "medium", title: "medium", label: "medium", options: { name: "medium" }, headers: { "x-agy-tier": "medium" } } } : {},
17951
17950
  "high": { id: "high", name: "high", displayName: "high", title: "high", label: "high", options: { name: "high" }, headers: { "x-agy-tier": "high" } }
17952
17951
  };
17953
17952
  }
@@ -18082,7 +18081,7 @@ function resolveModelTier(baseModelId, init) {
18082
18081
  if (requestedTier && Object.prototype.hasOwnProperty.call(mapping, requestedTier)) {
18083
18082
  return mapping[requestedTier] || baseModelId;
18084
18083
  }
18085
- return mapping["medium"];
18084
+ return mapping["medium"] ?? mapping["high"];
18086
18085
  }
18087
18086
  var AgyCLIOAuthPlugin = async ({ client }) => {
18088
18087
  let latestConfig;