@expiren/opencode-antigravity-auth 1.6.10 → 1.6.12
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 +11 -9
- package/dist/index.js.map +2 -2
- package/dist/src/plugin/config/models.js +2 -2
- package/dist/src/plugin/config/models.js.map +1 -1
- package/dist/src/plugin/transform/model-resolver.d.ts.map +1 -1
- package/dist/src/plugin/transform/model-resolver.js +21 -15
- package/dist/src/plugin/transform/model-resolver.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1788,8 +1788,8 @@ var OPENCODE_MODEL_DEFINITIONS = {
|
|
|
1788
1788
|
limit: { context: 1048576, output: 65535 },
|
|
1789
1789
|
modalities: DEFAULT_MODALITIES
|
|
1790
1790
|
}),
|
|
1791
|
-
"gemini-3.5-flash
|
|
1792
|
-
name: "Gemini 3.5 Flash
|
|
1791
|
+
"gemini-3.5-flash": defineModel("gemini-3.5-flash", {
|
|
1792
|
+
name: "Gemini 3.5 Flash (Gemini CLI)",
|
|
1793
1793
|
reasoning: true,
|
|
1794
1794
|
limit: { context: 1048576, output: 65536 },
|
|
1795
1795
|
modalities: DEFAULT_MODALITIES
|
|
@@ -5857,10 +5857,9 @@ function resolveModelWithTier(requestedModel, options = {}) {
|
|
|
5857
5857
|
const isGemini3Flash = isGemini3FlashModel(modelWithoutQuota);
|
|
5858
5858
|
let antigravityModel = modelWithoutQuota;
|
|
5859
5859
|
if (skipAlias) {
|
|
5860
|
-
if (isGemini3Pro && !tier && !isImageModel) {
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
antigravityModel = baseName;
|
|
5860
|
+
if ((isGemini3Pro || isGemini3Flash) && !tier && !isImageModel) {
|
|
5861
|
+
const defaultTier = isGemini3Pro ? "low" : "medium";
|
|
5862
|
+
antigravityModel = `${modelWithoutQuota}-${defaultTier}`;
|
|
5864
5863
|
}
|
|
5865
5864
|
}
|
|
5866
5865
|
const actualModel = skipAlias ? antigravityModel : MODEL_ALIASES[modelWithoutQuota] || MODEL_ALIASES[baseName] || baseName;
|
|
@@ -5939,10 +5938,12 @@ function resolveModelForHeaderStyle(requestedModel, headerStyle) {
|
|
|
5939
5938
|
if (headerStyle === "antigravity") {
|
|
5940
5939
|
let transformedModel = requestedModel.replace(/-preview-customtools$/i, "").replace(/-preview$/i, "").replace(/^antigravity-/i, "");
|
|
5941
5940
|
const isGemini3Pro = isGemini3ProModel(transformedModel);
|
|
5941
|
+
const isGemini3Flash = isGemini3FlashModel(transformedModel);
|
|
5942
5942
|
const hasTierSuffix = /-(low|medium|high)$/i.test(transformedModel);
|
|
5943
5943
|
const isImageModel = IMAGE_GENERATION_MODELS.test(transformedModel);
|
|
5944
|
-
if (isGemini3Pro && !hasTierSuffix && !isImageModel) {
|
|
5945
|
-
|
|
5944
|
+
if ((isGemini3Pro || isGemini3Flash) && !hasTierSuffix && !isImageModel) {
|
|
5945
|
+
const defaultTier = isGemini3Pro ? "low" : "medium";
|
|
5946
|
+
transformedModel = `${transformedModel}-${defaultTier}`;
|
|
5946
5947
|
}
|
|
5947
5948
|
const prefixedModel = `antigravity-${transformedModel}`;
|
|
5948
5949
|
return resolveModelWithTier(prefixedModel);
|
|
@@ -5950,7 +5951,8 @@ function resolveModelForHeaderStyle(requestedModel, headerStyle) {
|
|
|
5950
5951
|
if (headerStyle === "gemini-cli") {
|
|
5951
5952
|
let transformedModel = requestedModel.replace(/^antigravity-/i, "").replace(/-(low|medium|high)$/i, "");
|
|
5952
5953
|
const hasPreviewSuffix = /-preview($|-)/i.test(transformedModel);
|
|
5953
|
-
|
|
5954
|
+
const isGemini35Flash = /^gemini-3\.5-flash/i.test(transformedModel);
|
|
5955
|
+
if (!hasPreviewSuffix && !isGemini35Flash) {
|
|
5954
5956
|
transformedModel = `${transformedModel}-preview`;
|
|
5955
5957
|
}
|
|
5956
5958
|
return {
|