@google/gemini-cli 0.46.0-preview.0 → 0.46.0-preview.2
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-4AGOZ7LL.js → chunk-22XWYJCL.js} +7 -7
- package/bundle/{chunk-2GMVQS2Q.js → chunk-27JE2WT6.js} +1 -1
- package/bundle/{chunk-TDYUKPZH.js → chunk-2K6L5FOH.js} +1 -1
- package/bundle/{chunk-QFEJQS5X.js → chunk-3RBWPCUC.js} +1 -1
- package/bundle/{chunk-MFYAVF7Y.js → chunk-5IDNG2OG.js} +67 -54
- package/bundle/{chunk-BOJOJVNV.js → chunk-7JQYEHGG.js} +1 -1
- package/bundle/{chunk-J444UQD3.js → chunk-7PDJUYG7.js} +1 -1
- package/bundle/{chunk-ZXN4VW7M.js → chunk-B5F4VQB4.js} +1 -1
- package/bundle/{chunk-HZNEV3DS.js → chunk-CRQJBWDY.js} +1 -1
- package/bundle/{chunk-5LUCCXOB.js → chunk-CWVF4ZTK.js} +1 -1
- package/bundle/{chunk-HHFFICNK.js → chunk-E5QEVDYZ.js} +48 -25
- package/bundle/{chunk-FIM2LOYZ.js → chunk-EI75YPWJ.js} +42 -25
- package/bundle/chunk-IPUQ7EE3.js +81685 -0
- package/bundle/{chunk-S2ICEQVC.js → chunk-J5LPI3LE.js} +3 -3
- package/bundle/{chunk-RXG3JOOZ.js → chunk-LEOT5EUQ.js} +1 -1
- package/bundle/chunk-NV6UIB5A.js +1571 -0
- package/bundle/{chunk-XRDSBRG4.js → chunk-O6PTG534.js} +7560 -14072
- package/bundle/{chunk-F2LLVPPS.js → chunk-PE7HOVW5.js} +2 -2
- package/bundle/chunk-PIZZXDDG.js +154 -0
- package/bundle/{chunk-LBE2WKE7.js → chunk-PRRK6JDC.js} +3 -3
- package/bundle/{chunk-773AJHDP.js → chunk-QB7YVNGV.js} +7 -7
- package/bundle/{chunk-4K3E3G6Z.js → chunk-QW5AOX4N.js} +8 -5
- package/bundle/{chunk-HMR43ZX2.js → chunk-R4U5N4EA.js} +2 -2
- package/bundle/{chunk-SHFHGDWR.js → chunk-R4UEOSDC.js} +2 -2
- package/bundle/{chunk-GTRQQGSJ.js → chunk-RHCHEKOW.js} +1 -1
- package/bundle/{chunk-YMNECODB.js → chunk-RS7XVABE.js} +9 -8
- package/bundle/{chunk-ZQGZKIDD.js → chunk-SIKHBFAN.js} +3 -3
- package/bundle/chunk-UEE43LJM.js +118 -0
- package/bundle/chunk-UHZJ6CQN.js +17320 -0
- package/bundle/chunk-USOBCNPR.js +394545 -0
- package/bundle/chunk-WUZJ6YCQ.js +398 -0
- package/bundle/chunk-ZXFPRK6W.js +512 -0
- package/bundle/{cleanup-2WXD6UQP.js → cleanup-I5FUY2UQ.js} +2 -2
- package/bundle/{cleanup-L3CLNVX6.js → cleanup-OIBS4TJ5.js} +2 -2
- package/bundle/{cleanup-SUDL37MT.js → cleanup-RODT76X7.js} +2 -2
- package/bundle/cleanup-WY7MMPH7.js +32 -0
- package/bundle/{core-VVRQ2GQD.js → core-DU2UPBEJ.js} +3 -1
- package/bundle/{devtoolsService-GLW7S6PS.js → devtoolsService-C64GR2SQ.js} +2 -2
- package/bundle/{devtoolsService-ZYCBBAV3.js → devtoolsService-EJVCNXD4.js} +2 -2
- package/bundle/{devtoolsService-E62WA3CY.js → devtoolsService-LQXWZBCZ.js} +4 -3
- package/bundle/devtoolsService-U7Z6S7CA.js +856 -0
- package/bundle/{dist-GPCRVPKS.js → dist-CEGGZCD6.js} +3 -1
- package/bundle/{core-MOYKPEYV.js → dist-F4ZLD67R.js} +3 -1
- package/bundle/dist-XLM4ONR2.js +2140 -0
- package/bundle/docs/reference/configuration.md +3 -1
- package/bundle/{gemini-KV5CHM4H.js → gemini-3AA27X7W.js} +18 -15
- package/bundle/{gemini-2JTOIMGM.js → gemini-D5Y26G7I.js} +18 -15
- package/bundle/{gemini-R5NCXCEL.js → gemini-EEFZ4W4N.js} +216 -197
- package/bundle/gemini-TPWWVYVB.js +16409 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-RMWTSIEN.js → interactiveCli-5L4XUO4D.js} +18 -12
- package/bundle/{interactiveCli-HVAQTBJK.js → interactiveCli-B5QE2YQH.js} +18 -12
- package/bundle/{interactiveCli-7SIMXKNU.js → interactiveCli-CFKGEXFE.js} +324 -299
- package/bundle/interactiveCli-S4W3W3HM.js +34742 -0
- package/bundle/{liteRtServerManager-FY23PYSD.js → liteRtServerManager-2IHVDPV4.js} +4 -4
- package/bundle/{liteRtServerManager-LDS45QKP.js → liteRtServerManager-7CA6UZB6.js} +4 -4
- package/bundle/{liteRtServerManager-BP7XKGNU.js → liteRtServerManager-P4UUE4PT.js} +4 -4
- package/bundle/liteRtServerManager-YN3VGMDA.js +65 -0
- package/bundle/{oauth2-provider-VVNBQH45.js → oauth2-provider-5IAYEVTS.js} +1 -1
- package/bundle/{oauth2-provider-4SSSEI6P.js → oauth2-provider-NQK2KDLL.js} +38 -72
- package/bundle/{oauth2-provider-KL44D6HV.js → oauth2-provider-WD62E6UF.js} +1 -1
- package/bundle/oauth2-provider-WGTNZKF7.js +235 -0
- package/bundle/{start-FRM2XDGC.js → start-AAWVXW3L.js} +6 -6
- package/bundle/{start-OEPJINIW.js → start-EHQUCJL4.js} +6 -6
- package/bundle/{start-DLEOBFRC.js → start-EJWSTD4L.js} +6 -6
- package/bundle/start-LAOVDDQF.js +18 -0
- package/package.json +1 -1
|
@@ -276237,6 +276237,7 @@ var PREVIEW_GEMINI_FLASH_MODEL = "gemini-3-flash-preview";
|
|
|
276237
276237
|
var DEFAULT_GEMINI_MODEL = "gemini-2.5-pro";
|
|
276238
276238
|
var DEFAULT_GEMINI_FLASH_MODEL = "gemini-2.5-flash";
|
|
276239
276239
|
var DEFAULT_GEMINI_3_5_FLASH_MODEL = "gemini-3.5-flash";
|
|
276240
|
+
var SECONDARY_GEMINI_3_5_FLASH_MODEL = "gemini-3-flash";
|
|
276240
276241
|
function setFlashModels(preview, defaultFlash) {
|
|
276241
276242
|
PREVIEW_GEMINI_FLASH_MODEL = preview;
|
|
276242
276243
|
DEFAULT_GEMINI_FLASH_MODEL = defaultFlash;
|
|
@@ -276254,6 +276255,7 @@ var VALID_GEMINI_MODELS = /* @__PURE__ */ new Set([
|
|
|
276254
276255
|
DEFAULT_GEMINI_MODEL,
|
|
276255
276256
|
DEFAULT_GEMINI_FLASH_MODEL,
|
|
276256
276257
|
DEFAULT_GEMINI_3_5_FLASH_MODEL,
|
|
276258
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL,
|
|
276257
276259
|
DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
276258
276260
|
GEMMA_4_31B_IT_MODEL,
|
|
276259
276261
|
GEMMA_4_26B_A4B_IT_MODEL
|
|
@@ -276266,10 +276268,10 @@ var GEMINI_MODEL_ALIAS_FLASH = "flash";
|
|
|
276266
276268
|
var GEMINI_MODEL_ALIAS_FLASH_LITE = "flash-lite";
|
|
276267
276269
|
var DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
|
|
276268
276270
|
var DEFAULT_THINKING_MODE = 8192;
|
|
276269
|
-
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false) {
|
|
276271
|
+
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false, useGemini3_5Flash = false) {
|
|
276270
276272
|
const proModel = hasAccessToPreview ? useGemini3_1 ? PREVIEW_GEMINI_3_1_MODEL : PREVIEW_GEMINI_MODEL : DEFAULT_GEMINI_MODEL;
|
|
276271
|
-
const flashModel = hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
276272
|
-
return `Let Gemini CLI decide the best model for the task: ${proModel}, ${flashModel}`;
|
|
276273
|
+
const flashModel = hasAccessToPreview ? useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
276274
|
+
return `Let Gemini CLI decide the best model for the task: ${getDisplayString(proModel)}, ${getDisplayString(flashModel)}`;
|
|
276273
276275
|
}
|
|
276274
276276
|
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
|
|
276275
276277
|
const normalizedModel = Array.isArray(requestedModel) ? String(requestedModel.at(-1) ?? "").trim() || "" : typeof requestedModel !== "string" ? String(requestedModel ?? "").trim() || "" : requestedModel.trim() || "";
|
|
@@ -276285,7 +276287,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
276285
276287
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
276286
276288
|
}
|
|
276287
276289
|
if (resolved2.includes("flash")) {
|
|
276288
|
-
return
|
|
276290
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
276289
276291
|
}
|
|
276290
276292
|
return DEFAULT_GEMINI_MODEL;
|
|
276291
276293
|
}
|
|
@@ -276314,7 +276316,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
276314
276316
|
break;
|
|
276315
276317
|
}
|
|
276316
276318
|
case GEMINI_MODEL_ALIAS_FLASH: {
|
|
276317
|
-
resolved = useGemini3_5Flash ?
|
|
276319
|
+
resolved = useGemini3_5Flash ? DEFAULT_GEMINI_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL;
|
|
276318
276320
|
break;
|
|
276319
276321
|
}
|
|
276320
276322
|
case GEMINI_MODEL_ALIAS_FLASH_LITE: {
|
|
@@ -276329,13 +276331,13 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
276329
276331
|
if (resolved === "none") {
|
|
276330
276332
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
276331
276333
|
}
|
|
276332
|
-
if (useGemini3_5Flash && isFlashModel(resolved)) {
|
|
276333
|
-
return
|
|
276334
|
+
if (useGemini3_5Flash && isFlashModel(resolved) && normalizedModel !== PREVIEW_GEMINI_FLASH_MODEL) {
|
|
276335
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
276334
276336
|
}
|
|
276335
276337
|
if (!hasAccessToPreview && isPreviewModel(resolved)) {
|
|
276336
276338
|
switch (resolved) {
|
|
276337
276339
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
276338
|
-
return
|
|
276340
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
276339
276341
|
case PREVIEW_GEMINI_MODEL:
|
|
276340
276342
|
case PREVIEW_GEMINI_3_1_MODEL:
|
|
276341
276343
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
@@ -276345,7 +276347,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
276345
276347
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
276346
276348
|
}
|
|
276347
276349
|
if (resolved.includes("flash")) {
|
|
276348
|
-
return
|
|
276350
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
276349
276351
|
}
|
|
276350
276352
|
return DEFAULT_GEMINI_MODEL;
|
|
276351
276353
|
}
|
|
@@ -276353,7 +276355,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
276353
276355
|
return resolved;
|
|
276354
276356
|
}
|
|
276355
276357
|
function isFlashModel(model) {
|
|
276356
|
-
return model === DEFAULT_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === DEFAULT_GEMINI_3_5_FLASH_MODEL || model === "flash" || model.endsWith("flash");
|
|
276358
|
+
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");
|
|
276357
276359
|
}
|
|
276358
276360
|
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
|
|
276359
276361
|
if (config2?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
@@ -276370,11 +276372,11 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
|
|
|
276370
276372
|
}
|
|
276371
276373
|
if (modelAlias === GEMINI_MODEL_ALIAS_FLASH) {
|
|
276372
276374
|
if (requestedModel === DEFAULT_GEMINI_MODEL_AUTO || requestedModel === DEFAULT_GEMINI_MODEL) {
|
|
276373
|
-
return
|
|
276375
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
276374
276376
|
}
|
|
276375
276377
|
if (requestedModel === PREVIEW_GEMINI_MODEL_AUTO || requestedModel === PREVIEW_GEMINI_MODEL || requestedModel === GEMINI_MODEL_ALIAS_AUTO) {
|
|
276376
276378
|
if (useGemini3_5Flash) {
|
|
276377
|
-
return
|
|
276379
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
276378
276380
|
}
|
|
276379
276381
|
return hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
276380
276382
|
}
|
|
@@ -276404,6 +276406,8 @@ function getDisplayString(model, config2) {
|
|
|
276404
276406
|
}
|
|
276405
276407
|
}
|
|
276406
276408
|
switch (model) {
|
|
276409
|
+
case "gemini-3-flash":
|
|
276410
|
+
return DEFAULT_GEMINI_3_5_FLASH_MODEL;
|
|
276407
276411
|
case GEMINI_MODEL_ALIAS_AUTO:
|
|
276408
276412
|
return "Auto";
|
|
276409
276413
|
case PREVIEW_GEMINI_MODEL_AUTO:
|
|
@@ -279555,8 +279559,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
279555
279559
|
}
|
|
279556
279560
|
|
|
279557
279561
|
// packages/core/src/generated/git-commit.ts
|
|
279558
|
-
var GIT_COMMIT_INFO = "
|
|
279559
|
-
var CLI_VERSION = "0.46.0-preview.
|
|
279562
|
+
var GIT_COMMIT_INFO = "310cae233";
|
|
279563
|
+
var CLI_VERSION = "0.46.0-preview.1";
|
|
279560
279564
|
|
|
279561
279565
|
// packages/core/src/ide/detect-ide.ts
|
|
279562
279566
|
var IDE_DEFINITIONS = {
|
|
@@ -304025,7 +304029,7 @@ function getVersion() {
|
|
|
304025
304029
|
}
|
|
304026
304030
|
versionPromise = (async () => {
|
|
304027
304031
|
const pkgJson = await getPackageJson(__dirname4);
|
|
304028
|
-
return "0.46.0-preview.
|
|
304032
|
+
return "0.46.0-preview.1";
|
|
304029
304033
|
})();
|
|
304030
304034
|
return versionPromise;
|
|
304031
304035
|
}
|
|
@@ -338369,7 +338373,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
338369
338373
|
return provider;
|
|
338370
338374
|
}
|
|
338371
338375
|
case "oauth2": {
|
|
338372
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
338376
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-WD62E6UF.js");
|
|
338373
338377
|
const provider = new OAuth2AuthProvider(
|
|
338374
338378
|
authConfig,
|
|
338375
338379
|
options.agentName ?? "unknown",
|
|
@@ -338540,6 +338544,7 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
338540
338544
|
const definitions = this.config.modelDefinitions ?? {};
|
|
338541
338545
|
const shouldShowPreviewModels = context2.hasAccessToPreview ?? false;
|
|
338542
338546
|
const useGemini31 = context2.useGemini3_1 ?? false;
|
|
338547
|
+
const useGemini3_5Flash = context2.useGemini3_5Flash ?? false;
|
|
338543
338548
|
const mainOptions = Object.entries(definitions).filter(([_2, m]) => {
|
|
338544
338549
|
if (m.isVisible !== true) return false;
|
|
338545
338550
|
if (m.isPreview && !shouldShowPreviewModels) return false;
|
|
@@ -338550,7 +338555,8 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
338550
338555
|
if (id === "auto") {
|
|
338551
338556
|
description = getAutoModelDescription(
|
|
338552
338557
|
shouldShowPreviewModels,
|
|
338553
|
-
useGemini31
|
|
338558
|
+
useGemini31,
|
|
338559
|
+
useGemini3_5Flash
|
|
338554
338560
|
);
|
|
338555
338561
|
} else if (id === "auto-gemini-3" && useGemini31) {
|
|
338556
338562
|
description = description.replace("gemini-3-pro", "gemini-3.1-pro");
|
|
@@ -360043,13 +360049,15 @@ ${formattedHistory}
|
|
|
360043
360049
|
config2.getUseCustomToolModel(),
|
|
360044
360050
|
config2.getHasAccessToPreviewModel()
|
|
360045
360051
|
]);
|
|
360052
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
360046
360053
|
const selectedModel = resolveClassifierModel(
|
|
360047
360054
|
context2.requestedModel ?? config2.getModel(),
|
|
360048
360055
|
routerResponse.model_choice,
|
|
360049
360056
|
useGemini3_1,
|
|
360050
360057
|
useCustomToolModel,
|
|
360051
360058
|
hasAccessToPreview,
|
|
360052
|
-
config2
|
|
360059
|
+
config2,
|
|
360060
|
+
useGemini3_5Flash
|
|
360053
360061
|
);
|
|
360054
360062
|
return {
|
|
360055
360063
|
model: selectedModel,
|
|
@@ -360222,6 +360230,7 @@ var ClassifierStrategy = class {
|
|
|
360222
360230
|
config2.getGemini31Launched(),
|
|
360223
360231
|
config2.getUseCustomToolModel()
|
|
360224
360232
|
]);
|
|
360233
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
360225
360234
|
const selectedModel = normalizeModelId(
|
|
360226
360235
|
resolveClassifierModel(
|
|
360227
360236
|
normalizeModelId(model),
|
|
@@ -360229,7 +360238,8 @@ var ClassifierStrategy = class {
|
|
|
360229
360238
|
useGemini3_1,
|
|
360230
360239
|
useCustomToolModel,
|
|
360231
360240
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
360232
|
-
config2
|
|
360241
|
+
config2,
|
|
360242
|
+
useGemini3_5Flash
|
|
360233
360243
|
)
|
|
360234
360244
|
);
|
|
360235
360245
|
const service = config2.getModelAvailabilityService();
|
|
@@ -360378,6 +360388,7 @@ var NumericalClassifierStrategy = class {
|
|
|
360378
360388
|
config2.getGemini31Launched(),
|
|
360379
360389
|
config2.getUseCustomToolModel()
|
|
360380
360390
|
]);
|
|
360391
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
360381
360392
|
const selectedModel = normalizeModelId(
|
|
360382
360393
|
resolveClassifierModel(
|
|
360383
360394
|
normalizeModelId(model),
|
|
@@ -360385,7 +360396,8 @@ var NumericalClassifierStrategy = class {
|
|
|
360385
360396
|
useGemini3_1,
|
|
360386
360397
|
useCustomToolModel,
|
|
360387
360398
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
360388
|
-
config2
|
|
360399
|
+
config2,
|
|
360400
|
+
useGemini3_5Flash
|
|
360389
360401
|
)
|
|
360390
360402
|
);
|
|
360391
360403
|
const service = config2.getModelAvailabilityService();
|
|
@@ -360576,6 +360588,7 @@ var ApprovalModeStrategy = class {
|
|
|
360576
360588
|
config2.getUseCustomToolModel(),
|
|
360577
360589
|
config2.getHasAccessToPreviewModel()
|
|
360578
360590
|
]);
|
|
360591
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
360579
360592
|
if (approvalMode === "plan" /* PLAN */) {
|
|
360580
360593
|
const proModel = resolveClassifierModel(
|
|
360581
360594
|
model,
|
|
@@ -360583,7 +360596,8 @@ var ApprovalModeStrategy = class {
|
|
|
360583
360596
|
useGemini3_1,
|
|
360584
360597
|
useCustomToolModel,
|
|
360585
360598
|
hasAccessToPreview,
|
|
360586
|
-
config2
|
|
360599
|
+
config2,
|
|
360600
|
+
useGemini3_5Flash
|
|
360587
360601
|
);
|
|
360588
360602
|
return {
|
|
360589
360603
|
model: proModel,
|
|
@@ -360600,7 +360614,8 @@ var ApprovalModeStrategy = class {
|
|
|
360600
360614
|
useGemini3_1,
|
|
360601
360615
|
useCustomToolModel,
|
|
360602
360616
|
hasAccessToPreview,
|
|
360603
|
-
config2
|
|
360617
|
+
config2,
|
|
360618
|
+
useGemini3_5Flash
|
|
360604
360619
|
);
|
|
360605
360620
|
return {
|
|
360606
360621
|
model: flashModel,
|
|
@@ -361173,9 +361188,12 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
361173
361188
|
"gemini-3-flash-preview": {
|
|
361174
361189
|
default: "gemini-3-flash-preview",
|
|
361175
361190
|
contexts: [
|
|
361176
|
-
{ condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" },
|
|
361177
361191
|
{
|
|
361178
|
-
condition: { hasAccessToPreview: false },
|
|
361192
|
+
condition: { hasAccessToPreview: false, useGemini3_5Flash: true },
|
|
361193
|
+
target: "gemini-3.5-flash"
|
|
361194
|
+
},
|
|
361195
|
+
{
|
|
361196
|
+
condition: { hasAccessToPreview: false, useGemini3_5Flash: false },
|
|
361179
361197
|
target: "gemini-2.5-flash"
|
|
361180
361198
|
}
|
|
361181
361199
|
]
|
|
@@ -381434,7 +381452,11 @@ ${sections.join("\n")}
|
|
|
381434
381452
|
return this.experiments?.flags[ExperimentFlags.GEMINI_3_5_FLASH_GA_LAUNCHED]?.boolValue ?? false;
|
|
381435
381453
|
})();
|
|
381436
381454
|
if (hasAccess) {
|
|
381437
|
-
|
|
381455
|
+
if (authType === "gemini-api-key" /* USE_GEMINI */) {
|
|
381456
|
+
setFlashModels("gemini-3-flash-preview", "gemini-3.5-flash");
|
|
381457
|
+
} else {
|
|
381458
|
+
setFlashModels("gemini-3-flash", "gemini-3-flash");
|
|
381459
|
+
}
|
|
381438
381460
|
} else {
|
|
381439
381461
|
setFlashModels("gemini-3-flash-preview", "gemini-2.5-flash");
|
|
381440
381462
|
}
|
|
@@ -399870,6 +399892,7 @@ export {
|
|
|
399870
399892
|
DEFAULT_GEMINI_MODEL,
|
|
399871
399893
|
DEFAULT_GEMINI_FLASH_MODEL,
|
|
399872
399894
|
DEFAULT_GEMINI_3_5_FLASH_MODEL,
|
|
399895
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL,
|
|
399873
399896
|
setFlashModels,
|
|
399874
399897
|
DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
399875
399898
|
PREVIEW_GEMINI_FLASH_LITE_MODEL,
|
|
@@ -275811,6 +275811,7 @@ 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
275813
|
var DEFAULT_GEMINI_3_5_FLASH_MODEL = "gemini-3.5-flash";
|
|
275814
|
+
var SECONDARY_GEMINI_3_5_FLASH_MODEL = "gemini-3-flash";
|
|
275814
275815
|
function setFlashModels(preview, defaultFlash) {
|
|
275815
275816
|
PREVIEW_GEMINI_FLASH_MODEL = preview;
|
|
275816
275817
|
DEFAULT_GEMINI_FLASH_MODEL = defaultFlash;
|
|
@@ -275828,6 +275829,7 @@ var VALID_GEMINI_MODELS = /* @__PURE__ */ new Set([
|
|
|
275828
275829
|
DEFAULT_GEMINI_MODEL,
|
|
275829
275830
|
DEFAULT_GEMINI_FLASH_MODEL,
|
|
275830
275831
|
DEFAULT_GEMINI_3_5_FLASH_MODEL,
|
|
275832
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL,
|
|
275831
275833
|
DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
275832
275834
|
GEMMA_4_31B_IT_MODEL,
|
|
275833
275835
|
GEMMA_4_26B_A4B_IT_MODEL
|
|
@@ -275840,10 +275842,10 @@ var GEMINI_MODEL_ALIAS_FLASH = "flash";
|
|
|
275840
275842
|
var GEMINI_MODEL_ALIAS_FLASH_LITE = "flash-lite";
|
|
275841
275843
|
var DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
|
|
275842
275844
|
var DEFAULT_THINKING_MODE = 8192;
|
|
275843
|
-
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false) {
|
|
275845
|
+
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false, useGemini3_5Flash = false) {
|
|
275844
275846
|
const proModel = hasAccessToPreview ? useGemini3_1 ? PREVIEW_GEMINI_3_1_MODEL : PREVIEW_GEMINI_MODEL : DEFAULT_GEMINI_MODEL;
|
|
275845
|
-
const flashModel = hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
275846
|
-
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)}`;
|
|
275847
275849
|
}
|
|
275848
275850
|
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
|
|
275849
275851
|
const normalizedModel = Array.isArray(requestedModel) ? String(requestedModel.at(-1) ?? "").trim() || "" : typeof requestedModel !== "string" ? String(requestedModel ?? "").trim() || "" : requestedModel.trim() || "";
|
|
@@ -275859,7 +275861,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275859
275861
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
275860
275862
|
}
|
|
275861
275863
|
if (resolved2.includes("flash")) {
|
|
275862
|
-
return
|
|
275864
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275863
275865
|
}
|
|
275864
275866
|
return DEFAULT_GEMINI_MODEL;
|
|
275865
275867
|
}
|
|
@@ -275888,7 +275890,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275888
275890
|
break;
|
|
275889
275891
|
}
|
|
275890
275892
|
case GEMINI_MODEL_ALIAS_FLASH: {
|
|
275891
|
-
resolved = useGemini3_5Flash ?
|
|
275893
|
+
resolved = useGemini3_5Flash ? DEFAULT_GEMINI_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL;
|
|
275892
275894
|
break;
|
|
275893
275895
|
}
|
|
275894
275896
|
case GEMINI_MODEL_ALIAS_FLASH_LITE: {
|
|
@@ -275903,13 +275905,13 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275903
275905
|
if (resolved === "none") {
|
|
275904
275906
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
275905
275907
|
}
|
|
275906
|
-
if (useGemini3_5Flash && isFlashModel(resolved)) {
|
|
275907
|
-
return
|
|
275908
|
+
if (useGemini3_5Flash && isFlashModel(resolved) && normalizedModel !== PREVIEW_GEMINI_FLASH_MODEL) {
|
|
275909
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275908
275910
|
}
|
|
275909
275911
|
if (!hasAccessToPreview && isPreviewModel(resolved)) {
|
|
275910
275912
|
switch (resolved) {
|
|
275911
275913
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
275912
|
-
return
|
|
275914
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275913
275915
|
case PREVIEW_GEMINI_MODEL:
|
|
275914
275916
|
case PREVIEW_GEMINI_3_1_MODEL:
|
|
275915
275917
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
@@ -275919,7 +275921,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275919
275921
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
275920
275922
|
}
|
|
275921
275923
|
if (resolved.includes("flash")) {
|
|
275922
|
-
return
|
|
275924
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275923
275925
|
}
|
|
275924
275926
|
return DEFAULT_GEMINI_MODEL;
|
|
275925
275927
|
}
|
|
@@ -275927,7 +275929,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
275927
275929
|
return resolved;
|
|
275928
275930
|
}
|
|
275929
275931
|
function isFlashModel(model) {
|
|
275930
|
-
return model === DEFAULT_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === DEFAULT_GEMINI_3_5_FLASH_MODEL || model === "flash" || model.endsWith("flash");
|
|
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");
|
|
275931
275933
|
}
|
|
275932
275934
|
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config2, useGemini3_5Flash = false) {
|
|
275933
275935
|
if (config2?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
@@ -275940,11 +275942,11 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
|
|
|
275940
275942
|
}
|
|
275941
275943
|
if (modelAlias === GEMINI_MODEL_ALIAS_FLASH) {
|
|
275942
275944
|
if (requestedModel === DEFAULT_GEMINI_MODEL_AUTO || requestedModel === DEFAULT_GEMINI_MODEL) {
|
|
275943
|
-
return
|
|
275945
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275944
275946
|
}
|
|
275945
275947
|
if (requestedModel === PREVIEW_GEMINI_MODEL_AUTO || requestedModel === PREVIEW_GEMINI_MODEL || requestedModel === GEMINI_MODEL_ALIAS_AUTO) {
|
|
275946
275948
|
if (useGemini3_5Flash) {
|
|
275947
|
-
return
|
|
275949
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
275948
275950
|
}
|
|
275949
275951
|
return hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
275950
275952
|
}
|
|
@@ -275960,6 +275962,8 @@ function getDisplayString(model, config2) {
|
|
|
275960
275962
|
}
|
|
275961
275963
|
}
|
|
275962
275964
|
switch (model) {
|
|
275965
|
+
case "gemini-3-flash":
|
|
275966
|
+
return DEFAULT_GEMINI_3_5_FLASH_MODEL;
|
|
275963
275967
|
case GEMINI_MODEL_ALIAS_AUTO:
|
|
275964
275968
|
return "Auto";
|
|
275965
275969
|
case PREVIEW_GEMINI_MODEL_AUTO:
|
|
@@ -279296,8 +279300,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
279296
279300
|
}
|
|
279297
279301
|
|
|
279298
279302
|
// packages/core/dist/src/generated/git-commit.js
|
|
279299
|
-
var GIT_COMMIT_INFO = "
|
|
279300
|
-
var CLI_VERSION = "0.46.0-preview.
|
|
279303
|
+
var GIT_COMMIT_INFO = "310cae233";
|
|
279304
|
+
var CLI_VERSION = "0.46.0-preview.1";
|
|
279301
279305
|
|
|
279302
279306
|
// packages/core/dist/src/ide/detect-ide.js
|
|
279303
279307
|
var IDE_DEFINITIONS = {
|
|
@@ -303462,7 +303466,7 @@ function getVersion() {
|
|
|
303462
303466
|
}
|
|
303463
303467
|
versionPromise = (async () => {
|
|
303464
303468
|
const pkgJson = await getPackageJson(__dirname4);
|
|
303465
|
-
return "0.46.0-preview.
|
|
303469
|
+
return "0.46.0-preview.2";
|
|
303466
303470
|
})();
|
|
303467
303471
|
return versionPromise;
|
|
303468
303472
|
}
|
|
@@ -335800,7 +335804,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
335800
335804
|
return provider;
|
|
335801
335805
|
}
|
|
335802
335806
|
case "oauth2": {
|
|
335803
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
335807
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-NQK2KDLL.js");
|
|
335804
335808
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
335805
335809
|
await provider.initialize();
|
|
335806
335810
|
return provider;
|
|
@@ -335944,6 +335948,7 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
335944
335948
|
const definitions = this.config.modelDefinitions ?? {};
|
|
335945
335949
|
const shouldShowPreviewModels = context2.hasAccessToPreview ?? false;
|
|
335946
335950
|
const useGemini31 = context2.useGemini3_1 ?? false;
|
|
335951
|
+
const useGemini3_5Flash = context2.useGemini3_5Flash ?? false;
|
|
335947
335952
|
const mainOptions = Object.entries(definitions).filter(([_2, m]) => {
|
|
335948
335953
|
if (m.isVisible !== true)
|
|
335949
335954
|
return false;
|
|
@@ -335955,7 +335960,7 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
335955
335960
|
}).map(([id, m]) => {
|
|
335956
335961
|
let description = m.dialogDescription ?? "";
|
|
335957
335962
|
if (id === "auto") {
|
|
335958
|
-
description = getAutoModelDescription(shouldShowPreviewModels, useGemini31);
|
|
335963
|
+
description = getAutoModelDescription(shouldShowPreviewModels, useGemini31, useGemini3_5Flash);
|
|
335959
335964
|
} else if (id === "auto-gemini-3" && useGemini31) {
|
|
335960
335965
|
description = description.replace("gemini-3-pro", "gemini-3.1-pro");
|
|
335961
335966
|
}
|
|
@@ -355694,7 +355699,8 @@ ${formattedHistory}
|
|
|
355694
355699
|
config2.getUseCustomToolModel(),
|
|
355695
355700
|
config2.getHasAccessToPreviewModel()
|
|
355696
355701
|
]);
|
|
355697
|
-
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);
|
|
355698
355704
|
return {
|
|
355699
355705
|
model: selectedModel,
|
|
355700
355706
|
metadata: {
|
|
@@ -355855,7 +355861,8 @@ var ClassifierStrategy = class {
|
|
|
355855
355861
|
config2.getGemini31Launched(),
|
|
355856
355862
|
config2.getUseCustomToolModel()
|
|
355857
355863
|
]);
|
|
355858
|
-
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));
|
|
355859
355866
|
const service = config2.getModelAvailabilityService();
|
|
355860
355867
|
const snapshot = service.snapshot(selectedModel);
|
|
355861
355868
|
if (!snapshot.available) {
|
|
@@ -355998,7 +356005,8 @@ var NumericalClassifierStrategy = class {
|
|
|
355998
356005
|
config2.getGemini31Launched(),
|
|
355999
356006
|
config2.getUseCustomToolModel()
|
|
356000
356007
|
]);
|
|
356001
|
-
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));
|
|
356002
356010
|
const service = config2.getModelAvailabilityService();
|
|
356003
356011
|
const snapshot = service.snapshot(selectedModel);
|
|
356004
356012
|
if (!snapshot.available) {
|
|
@@ -356151,8 +356159,9 @@ var ApprovalModeStrategy = class {
|
|
|
356151
356159
|
config2.getUseCustomToolModel(),
|
|
356152
356160
|
config2.getHasAccessToPreviewModel()
|
|
356153
356161
|
]);
|
|
356162
|
+
const useGemini3_5Flash = config2.hasGemini35FlashGAAccess?.() ?? false;
|
|
356154
356163
|
if (approvalMode === ApprovalMode.PLAN) {
|
|
356155
|
-
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);
|
|
356156
356165
|
return {
|
|
356157
356166
|
model: proModel,
|
|
356158
356167
|
metadata: {
|
|
@@ -356162,7 +356171,7 @@ var ApprovalModeStrategy = class {
|
|
|
356162
356171
|
}
|
|
356163
356172
|
};
|
|
356164
356173
|
} else if (approvedPlanPath) {
|
|
356165
|
-
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);
|
|
356166
356175
|
return {
|
|
356167
356176
|
model: flashModel,
|
|
356168
356177
|
metadata: {
|
|
@@ -356712,9 +356721,12 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
356712
356721
|
"gemini-3-flash-preview": {
|
|
356713
356722
|
default: "gemini-3-flash-preview",
|
|
356714
356723
|
contexts: [
|
|
356715
|
-
{ condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" },
|
|
356716
356724
|
{
|
|
356717
|
-
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 },
|
|
356718
356730
|
target: "gemini-2.5-flash"
|
|
356719
356731
|
}
|
|
356720
356732
|
]
|
|
@@ -375627,7 +375639,11 @@ ${sections.join("\n")}
|
|
|
375627
375639
|
return this.experiments?.flags[ExperimentFlags.GEMINI_3_5_FLASH_GA_LAUNCHED]?.boolValue ?? false;
|
|
375628
375640
|
})();
|
|
375629
375641
|
if (hasAccess) {
|
|
375630
|
-
|
|
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
|
+
}
|
|
375631
375647
|
} else {
|
|
375632
375648
|
setFlashModels("gemini-3-flash-preview", "gemini-2.5-flash");
|
|
375633
375649
|
}
|
|
@@ -393341,6 +393357,7 @@ export {
|
|
|
393341
393357
|
DEFAULT_GEMINI_MODEL,
|
|
393342
393358
|
DEFAULT_GEMINI_FLASH_MODEL,
|
|
393343
393359
|
DEFAULT_GEMINI_3_5_FLASH_MODEL,
|
|
393360
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL,
|
|
393344
393361
|
setFlashModels,
|
|
393345
393362
|
DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
393346
393363
|
PREVIEW_GEMINI_FLASH_LITE_MODEL,
|