@google/gemini-cli 0.45.0 → 0.46.0-preview.1
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/bundle/{chunk-SG46YSQ3.js → chunk-24H54ISH.js} +7 -7
- package/bundle/{chunk-YI3KORH5.js → chunk-3EC3ZLRQ.js} +2 -2
- package/bundle/{chunk-EORX7LYI.js → chunk-3WW2LTMX.js} +1 -1
- package/bundle/{chunk-2ARYG3KE.js → chunk-4B7MDBUK.js} +1 -1
- package/bundle/{chunk-EUYIPFPA.js → chunk-5CWORGE3.js} +1 -1
- package/bundle/{chunk-K6WTIGVC.js → chunk-5IBYZHR7.js} +2 -2
- package/bundle/{chunk-TWSSMLUS.js → chunk-7Y6NU65D.js} +1 -1
- package/bundle/{chunk-4KOU3QNT.js → chunk-EG7USKV5.js} +8 -5
- package/bundle/{chunk-PNU4GACG.js → chunk-EZDKSTIF.js} +2 -2
- package/bundle/{chunk-THZMPVCN.js → chunk-GRD2P7HY.js} +1 -1
- package/bundle/chunk-HQNVDCXK.js +154 -0
- package/bundle/chunk-ILHDA6XU.js +17320 -0
- package/bundle/{chunk-6T7N6JF2.js → chunk-ITC7TFJU.js} +156 -50
- package/bundle/{chunk-53SRWMUU.js → chunk-JF6RJW53.js} +1 -1
- package/bundle/chunk-JPYTHGMI.js +398 -0
- package/bundle/{chunk-XV2YFH7B.js → chunk-KOJR46UO.js} +7654 -14056
- package/bundle/{chunk-4EBMYFID.js → chunk-KQ4V7ZN4.js} +67 -54
- package/bundle/chunk-O3UKVEBS.js +81685 -0
- package/bundle/{chunk-VL3FKVC7.js → chunk-ONUDATHO.js} +3 -3
- package/bundle/{chunk-N6QPQL7E.js → chunk-QEVRJ7HY.js} +183 -50
- package/bundle/{chunk-3TWZMAJU.js → chunk-QFWAILKU.js} +3 -3
- package/bundle/{chunk-GVEZJIV3.js → chunk-QMCEWHRR.js} +1 -1
- package/bundle/{chunk-IL7J46PP.js → chunk-R4LEIQZM.js} +3 -3
- package/bundle/{chunk-JLFE3KRS.js → chunk-RXYIE5L5.js} +1 -1
- package/bundle/{chunk-Z5F25543.js → chunk-UM53YDCH.js} +1 -1
- package/bundle/{chunk-PXEK5ENZ.js → chunk-VEHSYWQT.js} +9 -8
- package/bundle/chunk-VETILJQA.js +1571 -0
- package/bundle/chunk-VOFVOS4I.js +118 -0
- package/bundle/chunk-WRWCUHAM.js +512 -0
- package/bundle/chunk-XVDCGVTF.js +394545 -0
- package/bundle/{chunk-HFVEWB6N.js → chunk-YINW7YTJ.js} +1 -1
- package/bundle/{chunk-KSNTXH4E.js → chunk-YIOYXRDP.js} +7 -7
- package/bundle/{cleanup-3SMSXJJA.js → cleanup-4ZTB4WMN.js} +2 -2
- package/bundle/{cleanup-FNQ3LEWG.js → cleanup-7LLX4OFN.js} +2 -2
- package/bundle/{cleanup-I56KHTTC.js → cleanup-GI5426XS.js} +2 -2
- package/bundle/cleanup-ZBLVGXIK.js +32 -0
- package/bundle/{core-KGXBOJTX.js → core-3UQQYNJF.js} +7 -1
- package/bundle/{devtoolsService-EW3B2Y63.js → devtoolsService-GJWWZ2KK.js} +2 -2
- package/bundle/{devtoolsService-F7PHNBEQ.js → devtoolsService-UNQILSWI.js} +4 -3
- package/bundle/devtoolsService-Z2YXVMYF.js +856 -0
- package/bundle/{devtoolsService-VFEFRDYG.js → devtoolsService-ZYGDAPOV.js} +2 -2
- package/bundle/{dist-2G5KTD32.js → dist-4NVM6I2N.js} +7 -1
- package/bundle/{core-AQUUQTX2.js → dist-LIQULVXZ.js} +7 -1
- package/bundle/dist-XPP357J7.js +2140 -0
- package/bundle/docs/changelogs/index.md +14 -0
- package/bundle/docs/changelogs/latest.md +202 -199
- package/bundle/docs/changelogs/preview.md +44 -200
- package/bundle/docs/issue-and-pr-automation.md +29 -1
- package/bundle/docs/reference/configuration.md +71 -0
- package/bundle/{gemini-ORQHD633.js → gemini-5WY2YO7R.js} +18 -15
- package/bundle/{gemini-JMMBFICD.js → gemini-7GZVH4VW.js} +216 -197
- package/bundle/{gemini-4KS2EZX6.js → gemini-QDOVPRKF.js} +18 -15
- package/bundle/gemini-RBKWBGCC.js +16409 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-XUZZOZXX.js → interactiveCli-BMKHWEH4.js} +29 -13
- package/bundle/{interactiveCli-ESB66RW7.js → interactiveCli-OEFOYFJU.js} +335 -300
- package/bundle/interactiveCli-OGE5OTZB.js +34742 -0
- package/bundle/{interactiveCli-ZJXV4DW7.js → interactiveCli-W3CMLQIM.js} +29 -13
- package/bundle/{liteRtServerManager-HELKQKOZ.js → liteRtServerManager-3QOJEGNL.js} +4 -4
- package/bundle/{liteRtServerManager-RNNHEQJI.js → liteRtServerManager-HPVNUYFX.js} +4 -4
- package/bundle/{liteRtServerManager-DORIWEMR.js → liteRtServerManager-Q6LTEYH4.js} +4 -4
- package/bundle/liteRtServerManager-YL4YRHOA.js +65 -0
- package/bundle/{oauth2-provider-2IJNOFOO.js → oauth2-provider-3WXIASQA.js} +1 -1
- package/bundle/{oauth2-provider-7N4OFPTL.js → oauth2-provider-CTPS7JLT.js} +1 -1
- package/bundle/{oauth2-provider-YYLBPESU.js → oauth2-provider-K52EY6RG.js} +38 -72
- package/bundle/oauth2-provider-PJJE326A.js +235 -0
- package/bundle/{start-IGG6LDST.js → start-25W6VZG6.js} +6 -6
- package/bundle/{start-R7DTCFCN.js → start-JBJSIKIB.js} +6 -6
- package/bundle/{start-66KF6MVV.js → start-PK22QMBT.js} +6 -6
- package/bundle/start-XAEHV6FV.js +18 -0
- package/package.json +1 -1
|
@@ -275810,6 +275810,12 @@ var PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL = "gemini-3.1-pro-preview-customtools"
|
|
|
275810
275810
|
var PREVIEW_GEMINI_FLASH_MODEL = "gemini-3-flash-preview";
|
|
275811
275811
|
var DEFAULT_GEMINI_MODEL = "gemini-2.5-pro";
|
|
275812
275812
|
var DEFAULT_GEMINI_FLASH_MODEL = "gemini-2.5-flash";
|
|
275813
|
+
var DEFAULT_GEMINI_3_5_FLASH_MODEL = "gemini-3.5-flash";
|
|
275814
|
+
var SECONDARY_GEMINI_3_5_FLASH_MODEL = "gemini-3-flash";
|
|
275815
|
+
function setFlashModels(preview, defaultFlash) {
|
|
275816
|
+
PREVIEW_GEMINI_FLASH_MODEL = preview;
|
|
275817
|
+
DEFAULT_GEMINI_FLASH_MODEL = defaultFlash;
|
|
275818
|
+
}
|
|
275813
275819
|
var DEFAULT_GEMINI_FLASH_LITE_MODEL = "gemini-3.1-flash-lite";
|
|
275814
275820
|
var PREVIEW_GEMINI_FLASH_LITE_MODEL = "none";
|
|
275815
275821
|
var GEMMA_4_31B_IT_MODEL = "gemma-4-31b-it";
|
|
@@ -275822,6 +275828,8 @@ var VALID_GEMINI_MODELS = /* @__PURE__ */ new Set([
|
|
|
275822
275828
|
PREVIEW_GEMINI_FLASH_LITE_MODEL,
|
|
275823
275829
|
DEFAULT_GEMINI_MODEL,
|
|
275824
275830
|
DEFAULT_GEMINI_FLASH_MODEL,
|
|
275831
|
+
DEFAULT_GEMINI_3_5_FLASH_MODEL,
|
|
275832
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL,
|
|
275825
275833
|
DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
275826
275834
|
GEMMA_4_31B_IT_MODEL,
|
|
275827
275835
|
GEMMA_4_26B_A4B_IT_MODEL
|
|
@@ -275834,18 +275842,19 @@ var GEMINI_MODEL_ALIAS_FLASH = "flash";
|
|
|
275834
275842
|
var GEMINI_MODEL_ALIAS_FLASH_LITE = "flash-lite";
|
|
275835
275843
|
var DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
|
|
275836
275844
|
var DEFAULT_THINKING_MODE = 8192;
|
|
275837
|
-
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false) {
|
|
275845
|
+
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false, useGemini3_5Flash = false) {
|
|
275838
275846
|
const proModel = hasAccessToPreview ? useGemini3_1 ? PREVIEW_GEMINI_3_1_MODEL : PREVIEW_GEMINI_MODEL : DEFAULT_GEMINI_MODEL;
|
|
275839
|
-
const flashModel = hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
275840
|
-
return `Let Gemini CLI decide the best model for the task: ${proModel}, ${flashModel}`;
|
|
275847
|
+
const flashModel = hasAccessToPreview ? useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
275848
|
+
return `Let Gemini CLI decide the best model for the task: ${getDisplayString(proModel)}, ${getDisplayString(flashModel)}`;
|
|
275841
275849
|
}
|
|
275842
|
-
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2) {
|
|
275850
|
+
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
|
|
275843
275851
|
const normalizedModel = Array.isArray(requestedModel) ? String(requestedModel.at(-1) ?? "").trim() || "" : typeof requestedModel !== "string" ? String(requestedModel ?? "").trim() || "" : requestedModel.trim() || "";
|
|
275844
275852
|
if (config2?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
275845
275853
|
const resolved2 = config2.modelConfigService.resolveModelId(normalizedModel, {
|
|
275846
275854
|
useGemini3_1,
|
|
275847
275855
|
useCustomTools: useCustomToolModel,
|
|
275848
|
-
hasAccessToPreview
|
|
275856
|
+
hasAccessToPreview,
|
|
275857
|
+
useGemini3_5Flash
|
|
275849
275858
|
});
|
|
275850
275859
|
if (!hasAccessToPreview && isPreviewModel(resolved2, config2)) {
|
|
275851
275860
|
if (resolved2.includes("flash-lite")) {
|
|
@@ -275881,7 +275890,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275881
275890
|
break;
|
|
275882
275891
|
}
|
|
275883
275892
|
case GEMINI_MODEL_ALIAS_FLASH: {
|
|
275884
|
-
resolved = PREVIEW_GEMINI_FLASH_MODEL;
|
|
275893
|
+
resolved = useGemini3_5Flash ? DEFAULT_GEMINI_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL;
|
|
275885
275894
|
break;
|
|
275886
275895
|
}
|
|
275887
275896
|
case GEMINI_MODEL_ALIAS_FLASH_LITE: {
|
|
@@ -275896,6 +275905,9 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275896
275905
|
if (resolved === "none") {
|
|
275897
275906
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
275898
275907
|
}
|
|
275908
|
+
if (useGemini3_5Flash && isFlashModel(resolved) && normalizedModel !== PREVIEW_GEMINI_FLASH_MODEL) {
|
|
275909
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275910
|
+
}
|
|
275899
275911
|
if (!hasAccessToPreview && isPreviewModel(resolved)) {
|
|
275900
275912
|
switch (resolved) {
|
|
275901
275913
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
@@ -275916,12 +275928,16 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275916
275928
|
}
|
|
275917
275929
|
return resolved;
|
|
275918
275930
|
}
|
|
275919
|
-
function
|
|
275931
|
+
function isFlashModel(model) {
|
|
275932
|
+
return model === DEFAULT_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === DEFAULT_GEMINI_3_5_FLASH_MODEL || model === SECONDARY_GEMINI_3_5_FLASH_MODEL || model === "flash" || model.endsWith("flash");
|
|
275933
|
+
}
|
|
275934
|
+
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
|
|
275920
275935
|
if (config2?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
275921
275936
|
return config2.modelConfigService.resolveClassifierModelId(modelAlias, requestedModel, {
|
|
275922
275937
|
useGemini3_1,
|
|
275923
275938
|
useCustomTools: useCustomToolModel,
|
|
275924
|
-
hasAccessToPreview
|
|
275939
|
+
hasAccessToPreview,
|
|
275940
|
+
useGemini3_5Flash
|
|
275925
275941
|
});
|
|
275926
275942
|
}
|
|
275927
275943
|
if (modelAlias === GEMINI_MODEL_ALIAS_FLASH) {
|
|
@@ -275929,11 +275945,14 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
|
|
|
275929
275945
|
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275930
275946
|
}
|
|
275931
275947
|
if (requestedModel === PREVIEW_GEMINI_MODEL_AUTO || requestedModel === PREVIEW_GEMINI_MODEL || requestedModel === GEMINI_MODEL_ALIAS_AUTO) {
|
|
275948
|
+
if (useGemini3_5Flash) {
|
|
275949
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275950
|
+
}
|
|
275932
275951
|
return hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
275933
275952
|
}
|
|
275934
|
-
return resolveModel(GEMINI_MODEL_ALIAS_FLASH, false, false, hasAccessToPreview);
|
|
275953
|
+
return resolveModel(GEMINI_MODEL_ALIAS_FLASH, false, false, hasAccessToPreview, config2, useGemini3_5Flash);
|
|
275935
275954
|
}
|
|
275936
|
-
return resolveModel(requestedModel, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2);
|
|
275955
|
+
return resolveModel(requestedModel, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
|
|
275937
275956
|
}
|
|
275938
275957
|
function getDisplayString(model, config2) {
|
|
275939
275958
|
if (config2?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
@@ -275943,6 +275962,8 @@ function getDisplayString(model, config2) {
|
|
|
275943
275962
|
}
|
|
275944
275963
|
}
|
|
275945
275964
|
switch (model) {
|
|
275965
|
+
case "gemini-3-flash":
|
|
275966
|
+
return DEFAULT_GEMINI_3_5_FLASH_MODEL;
|
|
275946
275967
|
case GEMINI_MODEL_ALIAS_AUTO:
|
|
275947
275968
|
return "Auto";
|
|
275948
275969
|
case PREVIEW_GEMINI_MODEL_AUTO:
|
|
@@ -279279,8 +279300,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
279279
279300
|
}
|
|
279280
279301
|
|
|
279281
279302
|
// packages/core/dist/src/generated/git-commit.js
|
|
279282
|
-
var GIT_COMMIT_INFO = "
|
|
279283
|
-
var CLI_VERSION = "0.
|
|
279303
|
+
var GIT_COMMIT_INFO = "700c96118";
|
|
279304
|
+
var CLI_VERSION = "0.46.0-preview.1";
|
|
279284
279305
|
|
|
279285
279306
|
// packages/core/dist/src/ide/detect-ide.js
|
|
279286
279307
|
var IDE_DEFINITIONS = {
|
|
@@ -303445,7 +303466,7 @@ function getVersion() {
|
|
|
303445
303466
|
}
|
|
303446
303467
|
versionPromise = (async () => {
|
|
303447
303468
|
const pkgJson = await getPackageJson(__dirname4);
|
|
303448
|
-
return "0.
|
|
303469
|
+
return "0.46.0-preview.1";
|
|
303449
303470
|
})();
|
|
303450
303471
|
return versionPromise;
|
|
303451
303472
|
}
|
|
@@ -304279,7 +304300,7 @@ var FLASH_LITE_CHAIN = [
|
|
|
304279
304300
|
function getModelPolicyChain(options) {
|
|
304280
304301
|
const isAuto = options.isAutoSelection ?? false;
|
|
304281
304302
|
if (options.previewEnabled) {
|
|
304282
|
-
const proModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useCustomToolModel);
|
|
304303
|
+
const proModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useCustomToolModel, true, void 0, options.useGemini3_5Flash);
|
|
304283
304304
|
return [
|
|
304284
304305
|
definePolicy({
|
|
304285
304306
|
model: proModel,
|
|
@@ -304354,15 +304375,17 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
304354
304375
|
const useGemini31 = config2.getGemini31LaunchedSync?.() ?? false;
|
|
304355
304376
|
const useCustomToolModel = config2.getUseCustomToolModelSync?.() ?? false;
|
|
304356
304377
|
const hasAccessToPreview = config2.getHasAccessToPreviewModel?.() ?? false;
|
|
304378
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
304357
304379
|
const isOriginallyGemini3 = isGemini3Model(modelFromConfig, config2);
|
|
304358
|
-
const resolvedModel = normalizeModelId(resolveModel(modelFromConfig, useGemini31, useCustomToolModel, hasAccessToPreview, config2));
|
|
304380
|
+
const resolvedModel = normalizeModelId(resolveModel(modelFromConfig, useGemini31, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash));
|
|
304359
304381
|
const isAutoPreferred = normalizedPreferredModel ? isAutoModel(normalizedPreferredModel, config2) : false;
|
|
304360
304382
|
const isAutoConfigured = isAutoModel(configuredModel, config2);
|
|
304361
304383
|
const effectiveWrapsAround = wrapsAround || isAutoPreferred || isAutoConfigured || isOriginallyGemini3;
|
|
304362
304384
|
if (config2.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
304363
304385
|
const context2 = {
|
|
304364
304386
|
useGemini3_1: useGemini31,
|
|
304365
|
-
useCustomTools: useCustomToolModel
|
|
304387
|
+
useCustomTools: useCustomToolModel,
|
|
304388
|
+
useGemini3_5Flash
|
|
304366
304389
|
};
|
|
304367
304390
|
if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
|
|
304368
304391
|
chain2 = config2.modelConfigService.resolveChain("lite", context2);
|
|
@@ -304394,7 +304417,8 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
304394
304417
|
isAutoSelection,
|
|
304395
304418
|
userTier: config2.getUserTier(),
|
|
304396
304419
|
useGemini31,
|
|
304397
|
-
useCustomToolModel
|
|
304420
|
+
useCustomToolModel,
|
|
304421
|
+
useGemini3_5Flash
|
|
304398
304422
|
});
|
|
304399
304423
|
} else {
|
|
304400
304424
|
chain2 = getModelPolicyChain({
|
|
@@ -304402,7 +304426,8 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
304402
304426
|
isAutoSelection,
|
|
304403
304427
|
userTier: config2.getUserTier(),
|
|
304404
304428
|
useGemini31,
|
|
304405
|
-
useCustomToolModel
|
|
304429
|
+
useCustomToolModel,
|
|
304430
|
+
useGemini3_5Flash
|
|
304406
304431
|
});
|
|
304407
304432
|
}
|
|
304408
304433
|
} else {
|
|
@@ -308219,7 +308244,7 @@ async function createContentGenerator(config2, gcConfig, sessionId) {
|
|
|
308219
308244
|
return new LoggingContentGenerator(fakeGenerator, gcConfig);
|
|
308220
308245
|
}
|
|
308221
308246
|
const version4 = await getVersion();
|
|
308222
|
-
const model = resolveModel(gcConfig.getModel(), config2.authType === AuthType2.USE_GEMINI || config2.authType === AuthType2.USE_VERTEX_AI || (await gcConfig.getGemini31Launched?.() ?? false), false, gcConfig.getHasAccessToPreviewModel?.() ?? true, gcConfig);
|
|
308247
|
+
const model = resolveModel(gcConfig.getModel(), config2.authType === AuthType2.USE_GEMINI || config2.authType === AuthType2.USE_VERTEX_AI || (await gcConfig.getGemini31Launched?.() ?? false), false, gcConfig.getHasAccessToPreviewModel?.() ?? true, gcConfig, gcConfig.hasGemini35FlashGAAccess?.() ?? false);
|
|
308223
308248
|
const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
|
|
308224
308249
|
const clientName = gcConfig.getClientName();
|
|
308225
308250
|
const surface = determineSurface2();
|
|
@@ -321143,16 +321168,18 @@ ${result2.output}`;
|
|
|
321143
321168
|
}
|
|
321144
321169
|
signal.removeEventListener("abort", onAbort);
|
|
321145
321170
|
timeoutController.signal.removeEventListener("abort", onAbort);
|
|
321146
|
-
if (
|
|
321147
|
-
|
|
321148
|
-
|
|
321149
|
-
|
|
321171
|
+
if (!this.params.is_background) {
|
|
321172
|
+
if (tempFilePath) {
|
|
321173
|
+
try {
|
|
321174
|
+
await fsPromises9.unlink(tempFilePath);
|
|
321175
|
+
} catch {
|
|
321176
|
+
}
|
|
321150
321177
|
}
|
|
321151
|
-
|
|
321152
|
-
|
|
321153
|
-
|
|
321154
|
-
|
|
321155
|
-
|
|
321178
|
+
if (tempDir) {
|
|
321179
|
+
try {
|
|
321180
|
+
await fsPromises9.rm(tempDir, { recursive: true, force: true });
|
|
321181
|
+
} catch {
|
|
321182
|
+
}
|
|
321156
321183
|
}
|
|
321157
321184
|
}
|
|
321158
321185
|
}
|
|
@@ -328146,9 +328173,9 @@ var GeminiChat = class {
|
|
|
328146
328173
|
const apiCall = async () => {
|
|
328147
328174
|
const useGemini3_1 = await this.context.config.getGemini31Launched?.() ?? false;
|
|
328148
328175
|
const hasAccessToPreview = this.context.config.getHasAccessToPreviewModel?.() ?? true;
|
|
328149
|
-
let modelToUse = resolveModel(lastModelToUse, useGemini3_1, false, hasAccessToPreview, this.context.config);
|
|
328176
|
+
let modelToUse = resolveModel(lastModelToUse, useGemini3_1, false, hasAccessToPreview, this.context.config, this.context.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
328150
328177
|
if (this.context.config.getActiveModel() !== initialActiveModel) {
|
|
328151
|
-
modelToUse = resolveModel(this.context.config.getActiveModel(), useGemini3_1, false, hasAccessToPreview, this.context.config);
|
|
328178
|
+
modelToUse = resolveModel(this.context.config.getActiveModel(), useGemini3_1, false, hasAccessToPreview, this.context.config, this.context.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
328152
328179
|
}
|
|
328153
328180
|
if (modelToUse !== lastModelToUse) {
|
|
328154
328181
|
const { generateContentConfig: newConfig } = this.context.config.modelConfigService.getResolvedConfig({
|
|
@@ -328187,7 +328214,7 @@ var GeminiChat = class {
|
|
|
328187
328214
|
throw new AgentExecutionBlockedError(beforeModelResult.reason || "Model call blocked by hook", syntheticResponse);
|
|
328188
328215
|
}
|
|
328189
328216
|
if (beforeModelResult.modifiedModel) {
|
|
328190
|
-
modelToUse = resolveModel(beforeModelResult.modifiedModel, useGemini3_1, false, hasAccessToPreview, this.context.config);
|
|
328217
|
+
modelToUse = resolveModel(beforeModelResult.modifiedModel, useGemini3_1, false, hasAccessToPreview, this.context.config, this.context.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
328191
328218
|
lastModelToUse = modelToUse;
|
|
328192
328219
|
contentsToUse = supportsModernFeatures(modelToUse) ? [...contentsForPreviewModel] : [...requestContents];
|
|
328193
328220
|
}
|
|
@@ -330545,7 +330572,7 @@ var PromptProvider = class {
|
|
|
330545
330572
|
const isTopicUpdateNarrationEnabled = topicUpdateNarrationOverride ?? context2.config.isTopicUpdateNarrationEnabled();
|
|
330546
330573
|
const enabledToolNames = new Set(toolNames);
|
|
330547
330574
|
const approvedPlanPath = context2.config.getApprovedPlanPath();
|
|
330548
|
-
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
|
|
330575
|
+
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config, context2.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
330549
330576
|
const isModernModel = supportsModernFeatures(desiredModel);
|
|
330550
330577
|
const activeSnippets = isModernModel ? snippets_exports : snippets_legacy_exports;
|
|
330551
330578
|
const contextFilenames = getAllGeminiMdFilenames();
|
|
@@ -330663,7 +330690,7 @@ var PromptProvider = class {
|
|
|
330663
330690
|
return sanitizedPrompt;
|
|
330664
330691
|
}
|
|
330665
330692
|
getCompressionPrompt(context2) {
|
|
330666
|
-
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
|
|
330693
|
+
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config, context2.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
330667
330694
|
const isModernModel = supportsModernFeatures(desiredModel);
|
|
330668
330695
|
const activeSnippets = isModernModel ? snippets_exports : snippets_legacy_exports;
|
|
330669
330696
|
return activeSnippets.getCompressionPrompt(context2.config.getApprovedPlanPath());
|
|
@@ -335777,7 +335804,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
335777
335804
|
return provider;
|
|
335778
335805
|
}
|
|
335779
335806
|
case "oauth2": {
|
|
335780
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
335807
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-PJJE326A.js");
|
|
335781
335808
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
335782
335809
|
await provider.initialize();
|
|
335783
335810
|
return provider;
|
|
@@ -335921,6 +335948,7 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
335921
335948
|
const definitions = this.config.modelDefinitions ?? {};
|
|
335922
335949
|
const shouldShowPreviewModels = context2.hasAccessToPreview ?? false;
|
|
335923
335950
|
const useGemini31 = context2.useGemini3_1 ?? false;
|
|
335951
|
+
const useGemini3_5Flash = context2.useGemini3_5Flash ?? false;
|
|
335924
335952
|
const mainOptions = Object.entries(definitions).filter(([_2, m]) => {
|
|
335925
335953
|
if (m.isVisible !== true)
|
|
335926
335954
|
return false;
|
|
@@ -335932,7 +335960,7 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
335932
335960
|
}).map(([id, m]) => {
|
|
335933
335961
|
let description = m.dialogDescription ?? "";
|
|
335934
335962
|
if (id === "auto") {
|
|
335935
|
-
description = getAutoModelDescription(shouldShowPreviewModels, useGemini31);
|
|
335963
|
+
description = getAutoModelDescription(shouldShowPreviewModels, useGemini31, useGemini3_5Flash);
|
|
335936
335964
|
} else if (id === "auto-gemini-3" && useGemini31) {
|
|
335937
335965
|
description = description.replace("gemini-3-pro", "gemini-3.1-pro");
|
|
335938
335966
|
}
|
|
@@ -336002,6 +336030,8 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
336002
336030
|
return value === context2.useGemini3_1;
|
|
336003
336031
|
case "useGemini3_1FlashLite":
|
|
336004
336032
|
return value === context2.useGemini3_1FlashLite;
|
|
336033
|
+
case "useGemini3_5Flash":
|
|
336034
|
+
return value === context2.useGemini3_5Flash;
|
|
336005
336035
|
case "useCustomTools":
|
|
336006
336036
|
return value === context2.useCustomTools;
|
|
336007
336037
|
case "hasAccessToPreview":
|
|
@@ -342168,7 +342198,7 @@ var GeminiClient = class {
|
|
|
342168
342198
|
if (this.currentSequenceModel) {
|
|
342169
342199
|
return this.currentSequenceModel;
|
|
342170
342200
|
}
|
|
342171
|
-
return resolveModel(this.config.getActiveModel(), this.config.getGemini31LaunchedSync?.() ?? false, false, this.config.getHasAccessToPreviewModel?.() ?? true, this.config);
|
|
342201
|
+
return resolveModel(this.config.getActiveModel(), this.config.getGemini31LaunchedSync?.() ?? false, false, this.config.getHasAccessToPreviewModel?.() ?? true, this.config, this.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
342172
342202
|
}
|
|
342173
342203
|
async *processTurn(request, signal, prompt_id, boundedTurns, displayContent) {
|
|
342174
342204
|
let turn = new Turn(this.getChat(), prompt_id);
|
|
@@ -355669,7 +355699,8 @@ ${formattedHistory}
|
|
|
355669
355699
|
config2.getUseCustomToolModel(),
|
|
355670
355700
|
config2.getHasAccessToPreviewModel()
|
|
355671
355701
|
]);
|
|
355672
|
-
const
|
|
355702
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
355703
|
+
const selectedModel = resolveClassifierModel(context2.requestedModel ?? config2.getModel(), routerResponse.model_choice, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
|
|
355673
355704
|
return {
|
|
355674
355705
|
model: selectedModel,
|
|
355675
355706
|
metadata: {
|
|
@@ -355689,7 +355720,7 @@ ${formattedHistory}
|
|
|
355689
355720
|
var DefaultStrategy = class {
|
|
355690
355721
|
name = "default";
|
|
355691
355722
|
async route(_context, config2, _baseLlmClient, _localLiteRtLmClient) {
|
|
355692
|
-
const defaultModel = resolveModel(config2.getModel(), config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
355723
|
+
const defaultModel = resolveModel(config2.getModel(), config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2, config2.hasGemini35FlashGAAccess?.() ?? false);
|
|
355693
355724
|
return {
|
|
355694
355725
|
model: defaultModel,
|
|
355695
355726
|
metadata: {
|
|
@@ -355830,7 +355861,8 @@ var ClassifierStrategy = class {
|
|
|
355830
355861
|
config2.getGemini31Launched(),
|
|
355831
355862
|
config2.getUseCustomToolModel()
|
|
355832
355863
|
]);
|
|
355833
|
-
const
|
|
355864
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
355865
|
+
const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), routerResponse.model_choice, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2, useGemini3_5Flash));
|
|
355834
355866
|
const service = config2.getModelAvailabilityService();
|
|
355835
355867
|
const snapshot = service.snapshot(selectedModel);
|
|
355836
355868
|
if (!snapshot.available) {
|
|
@@ -355973,7 +356005,8 @@ var NumericalClassifierStrategy = class {
|
|
|
355973
356005
|
config2.getGemini31Launched(),
|
|
355974
356006
|
config2.getUseCustomToolModel()
|
|
355975
356007
|
]);
|
|
355976
|
-
const
|
|
356008
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
356009
|
+
const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), modelAlias, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2, useGemini3_5Flash));
|
|
355977
356010
|
const service = config2.getModelAvailabilityService();
|
|
355978
356011
|
const snapshot = service.snapshot(selectedModel);
|
|
355979
356012
|
if (!snapshot.available) {
|
|
@@ -356067,7 +356100,7 @@ var FallbackStrategy = class {
|
|
|
356067
356100
|
name = "fallback";
|
|
356068
356101
|
async route(context2, config2, _baseLlmClient, _localLiteRtLmClient) {
|
|
356069
356102
|
const requestedModel = context2.requestedModel ?? config2.getModel();
|
|
356070
|
-
const resolvedModel = resolveModel(requestedModel, config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
356103
|
+
const resolvedModel = resolveModel(requestedModel, config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2, config2.hasGemini35FlashGAAccess?.() ?? false);
|
|
356071
356104
|
const service = config2.getModelAvailabilityService();
|
|
356072
356105
|
const snapshot = service.snapshot(resolvedModel);
|
|
356073
356106
|
if (snapshot.available) {
|
|
@@ -356097,7 +356130,7 @@ var OverrideStrategy = class {
|
|
|
356097
356130
|
return null;
|
|
356098
356131
|
}
|
|
356099
356132
|
return {
|
|
356100
|
-
model: resolveModel(overrideModel, config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2),
|
|
356133
|
+
model: resolveModel(overrideModel, config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2, config2.hasGemini35FlashGAAccess?.() ?? false),
|
|
356101
356134
|
metadata: {
|
|
356102
356135
|
source: this.name,
|
|
356103
356136
|
latencyMs: 0,
|
|
@@ -356126,8 +356159,9 @@ var ApprovalModeStrategy = class {
|
|
|
356126
356159
|
config2.getUseCustomToolModel(),
|
|
356127
356160
|
config2.getHasAccessToPreviewModel()
|
|
356128
356161
|
]);
|
|
356162
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
356129
356163
|
if (approvalMode === ApprovalMode.PLAN) {
|
|
356130
|
-
const proModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_PRO, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2);
|
|
356164
|
+
const proModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_PRO, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
|
|
356131
356165
|
return {
|
|
356132
356166
|
model: proModel,
|
|
356133
356167
|
metadata: {
|
|
@@ -356137,7 +356171,7 @@ var ApprovalModeStrategy = class {
|
|
|
356137
356171
|
}
|
|
356138
356172
|
};
|
|
356139
356173
|
} else if (approvedPlanPath) {
|
|
356140
|
-
const flashModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_FLASH, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2);
|
|
356174
|
+
const flashModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_FLASH, useGemini3_1, useCustomToolModel, hasAccessToPreview, config2, useGemini3_5Flash);
|
|
356141
356175
|
return {
|
|
356142
356176
|
model: flashModel,
|
|
356143
356177
|
metadata: {
|
|
@@ -356334,6 +356368,12 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356334
356368
|
model: "gemini-3.1-flash-lite"
|
|
356335
356369
|
}
|
|
356336
356370
|
},
|
|
356371
|
+
"gemini-3.5-flash": {
|
|
356372
|
+
extends: "chat-base-3",
|
|
356373
|
+
modelConfig: {
|
|
356374
|
+
model: "gemini-3.5-flash"
|
|
356375
|
+
}
|
|
356376
|
+
},
|
|
356337
356377
|
"gemma-4-31b-it": {
|
|
356338
356378
|
extends: "chat-base-3",
|
|
356339
356379
|
modelConfig: {
|
|
@@ -356359,6 +356399,12 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356359
356399
|
model: "gemini-3-flash-preview"
|
|
356360
356400
|
}
|
|
356361
356401
|
},
|
|
356402
|
+
"gemini-3.5-flash-base": {
|
|
356403
|
+
extends: "base",
|
|
356404
|
+
modelConfig: {
|
|
356405
|
+
model: "gemini-3.5-flash"
|
|
356406
|
+
}
|
|
356407
|
+
},
|
|
356362
356408
|
classifier: {
|
|
356363
356409
|
extends: "base",
|
|
356364
356410
|
modelConfig: {
|
|
@@ -356566,6 +356612,13 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356566
356612
|
isVisible: true,
|
|
356567
356613
|
features: { thinking: false, multimodalToolUse: true }
|
|
356568
356614
|
},
|
|
356615
|
+
"gemini-3.5-flash": {
|
|
356616
|
+
tier: "flash",
|
|
356617
|
+
family: "gemini-3",
|
|
356618
|
+
isPreview: false,
|
|
356619
|
+
isVisible: true,
|
|
356620
|
+
features: { thinking: false, multimodalToolUse: true }
|
|
356621
|
+
},
|
|
356569
356622
|
"gemini-2.5-pro": {
|
|
356570
356623
|
tier: "pro",
|
|
356571
356624
|
family: "gemini-2.5",
|
|
@@ -356669,11 +356722,34 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356669
356722
|
default: "gemini-3-flash-preview",
|
|
356670
356723
|
contexts: [
|
|
356671
356724
|
{
|
|
356672
|
-
condition: { hasAccessToPreview: false },
|
|
356725
|
+
condition: { hasAccessToPreview: false, useGemini3_5Flash: true },
|
|
356726
|
+
target: "gemini-3.5-flash"
|
|
356727
|
+
},
|
|
356728
|
+
{
|
|
356729
|
+
condition: { hasAccessToPreview: false, useGemini3_5Flash: false },
|
|
356673
356730
|
target: "gemini-2.5-flash"
|
|
356674
356731
|
}
|
|
356675
356732
|
]
|
|
356676
356733
|
},
|
|
356734
|
+
"gemini-3.5-flash": {
|
|
356735
|
+
default: "gemini-3.5-flash",
|
|
356736
|
+
contexts: [
|
|
356737
|
+
{
|
|
356738
|
+
condition: { useGemini3_5Flash: false, hasAccessToPreview: false },
|
|
356739
|
+
target: "gemini-2.5-flash"
|
|
356740
|
+
},
|
|
356741
|
+
{
|
|
356742
|
+
condition: { useGemini3_5Flash: false },
|
|
356743
|
+
target: "gemini-3-flash-preview"
|
|
356744
|
+
}
|
|
356745
|
+
]
|
|
356746
|
+
},
|
|
356747
|
+
"gemini-2.5-flash": {
|
|
356748
|
+
default: "gemini-2.5-flash",
|
|
356749
|
+
contexts: [
|
|
356750
|
+
{ condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" }
|
|
356751
|
+
]
|
|
356752
|
+
},
|
|
356677
356753
|
"gemini-3-pro-preview": {
|
|
356678
356754
|
default: "gemini-3-pro-preview",
|
|
356679
356755
|
contexts: [
|
|
@@ -356722,6 +356798,7 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356722
356798
|
flash: {
|
|
356723
356799
|
default: "gemini-3-flash-preview",
|
|
356724
356800
|
contexts: [
|
|
356801
|
+
{ condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" },
|
|
356725
356802
|
{
|
|
356726
356803
|
condition: { hasAccessToPreview: false },
|
|
356727
356804
|
target: "gemini-2.5-flash"
|
|
@@ -356753,6 +356830,7 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356753
356830
|
flash: {
|
|
356754
356831
|
default: "gemini-3-flash-preview",
|
|
356755
356832
|
contexts: [
|
|
356833
|
+
{ condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" },
|
|
356756
356834
|
{
|
|
356757
356835
|
condition: { hasAccessToPreview: false },
|
|
356758
356836
|
target: "gemini-2.5-flash"
|
|
@@ -360054,7 +360132,8 @@ var ExperimentFlags = {
|
|
|
360054
360132
|
MASKING_PROTECT_LATEST_TURN: 45758819,
|
|
360055
360133
|
GEMINI_3_1_PRO_LAUNCHED: 45760185,
|
|
360056
360134
|
PRO_MODEL_NO_ACCESS: 45768879,
|
|
360057
|
-
DEFAULT_REQUEST_TIMEOUT: 45773134
|
|
360135
|
+
DEFAULT_REQUEST_TIMEOUT: 45773134,
|
|
360136
|
+
GEMINI_3_5_FLASH_GA_LAUNCHED: 45780819
|
|
360058
360137
|
};
|
|
360059
360138
|
|
|
360060
360139
|
// packages/core/dist/src/skills/skillManager.js
|
|
@@ -374525,7 +374604,7 @@ var Config = class {
|
|
|
374525
374604
|
if (!isAutoModel(model, this)) {
|
|
374526
374605
|
return {};
|
|
374527
374606
|
}
|
|
374528
|
-
const primaryModel = resolveModel(model, this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
374607
|
+
const primaryModel = resolveModel(model, this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this, this.hasGemini35FlashGAAccess());
|
|
374529
374608
|
const isPreview2 = isPreviewModel(primaryModel, this);
|
|
374530
374609
|
const proModel = primaryModel;
|
|
374531
374610
|
const flashModel = isPreview2 ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
@@ -374546,7 +374625,7 @@ var Config = class {
|
|
|
374546
374625
|
if (pooled.remaining !== void 0) {
|
|
374547
374626
|
return pooled.remaining;
|
|
374548
374627
|
}
|
|
374549
|
-
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
374628
|
+
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this, this.hasGemini35FlashGAAccess());
|
|
374550
374629
|
return this.modelQuotas.get(primaryModel)?.remaining;
|
|
374551
374630
|
}
|
|
374552
374631
|
getQuotaLimit() {
|
|
@@ -374554,7 +374633,7 @@ var Config = class {
|
|
|
374554
374633
|
if (pooled.limit !== void 0) {
|
|
374555
374634
|
return pooled.limit;
|
|
374556
374635
|
}
|
|
374557
|
-
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
374636
|
+
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this, this.hasGemini35FlashGAAccess());
|
|
374558
374637
|
return this.modelQuotas.get(primaryModel)?.limit;
|
|
374559
374638
|
}
|
|
374560
374639
|
getQuotaResetTime() {
|
|
@@ -374562,7 +374641,7 @@ var Config = class {
|
|
|
374562
374641
|
if (pooled.resetTime !== void 0) {
|
|
374563
374642
|
return pooled.resetTime;
|
|
374564
374643
|
}
|
|
374565
|
-
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
374644
|
+
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this, this.hasGemini35FlashGAAccess());
|
|
374566
374645
|
return this.modelQuotas.get(primaryModel)?.resetTime;
|
|
374567
374646
|
}
|
|
374568
374647
|
getEmbeddingModel() {
|
|
@@ -375546,6 +375625,30 @@ ${sections.join("\n")}
|
|
|
375546
375625
|
isGemini31LaunchedForAuthType(authType) {
|
|
375547
375626
|
return authType === AuthType2.USE_GEMINI || authType === AuthType2.USE_VERTEX_AI || authType === AuthType2.GATEWAY;
|
|
375548
375627
|
}
|
|
375628
|
+
/**
|
|
375629
|
+
* Returns whether Gemini 3.5 Flash GA has been launched.
|
|
375630
|
+
*
|
|
375631
|
+
* Note: This method should only be called after startup, once experiments have been loaded.
|
|
375632
|
+
*/
|
|
375633
|
+
hasGemini35FlashGAAccess() {
|
|
375634
|
+
const authType = this.contentGeneratorConfig?.authType;
|
|
375635
|
+
const hasAccess = (() => {
|
|
375636
|
+
if (this.isGemini31LaunchedForAuthType(authType)) {
|
|
375637
|
+
return true;
|
|
375638
|
+
}
|
|
375639
|
+
return this.experiments?.flags[ExperimentFlags.GEMINI_3_5_FLASH_GA_LAUNCHED]?.boolValue ?? false;
|
|
375640
|
+
})();
|
|
375641
|
+
if (hasAccess) {
|
|
375642
|
+
if (authType === AuthType2.USE_GEMINI) {
|
|
375643
|
+
setFlashModels("gemini-3-flash-preview", "gemini-3.5-flash");
|
|
375644
|
+
} else {
|
|
375645
|
+
setFlashModels("gemini-3-flash", "gemini-3-flash");
|
|
375646
|
+
}
|
|
375647
|
+
} else {
|
|
375648
|
+
setFlashModels("gemini-3-flash-preview", "gemini-2.5-flash");
|
|
375649
|
+
}
|
|
375650
|
+
return hasAccess;
|
|
375651
|
+
}
|
|
375549
375652
|
/**
|
|
375550
375653
|
* Returns whether Gemini 3.1 has been launched.
|
|
375551
375654
|
*
|
|
@@ -393253,6 +393356,9 @@ export {
|
|
|
393253
393356
|
PREVIEW_GEMINI_FLASH_MODEL,
|
|
393254
393357
|
DEFAULT_GEMINI_MODEL,
|
|
393255
393358
|
DEFAULT_GEMINI_FLASH_MODEL,
|
|
393359
|
+
DEFAULT_GEMINI_3_5_FLASH_MODEL,
|
|
393360
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL,
|
|
393361
|
+
setFlashModels,
|
|
393256
393362
|
DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
393257
393363
|
PREVIEW_GEMINI_FLASH_LITE_MODEL,
|
|
393258
393364
|
GEMMA_4_31B_IT_MODEL,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GRD2P7HY.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|