@google/gemini-cli 0.36.0-preview.5 → 0.36.0-preview.7
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-JVWUC5YF.js → chunk-2RCLDWUX.js} +5 -4
- package/bundle/{chunk-73XBEEKU.js → chunk-APAYS2LE.js} +5 -4
- package/bundle/{chunk-3TVPPX4I.js → chunk-EHC7O4TG.js} +85 -29
- package/bundle/{chunk-RPB34XBS.js → chunk-GDBDMLKR.js} +85 -29
- package/bundle/{chunk-PXG3YTLU.js → chunk-MYI75E6G.js} +20 -6
- package/bundle/{chunk-GXKW2PIT.js → chunk-NYCY3Q2B.js} +103 -18
- package/bundle/{chunk-UOIPVPAN.js → chunk-QTVUHTZR.js} +5 -4
- package/bundle/{chunk-HLML5SVJ.js → chunk-S2IQOR7T.js} +15 -6
- package/bundle/{chunk-Z65JXKXO.js → chunk-VA3P26WZ.js} +85 -29
- package/bundle/{chunk-QT5UMCOV.js → chunk-YTGZ6CSI.js} +5 -4
- package/bundle/{core-YUBXJKN2.js → core-BHH4RB6L.js} +2 -2
- package/bundle/{devtoolsService-H6BMMMDD.js → devtoolsService-4QGIZO5B.js} +3 -3
- package/bundle/{devtoolsService-LJ5G2C2N.js → devtoolsService-GJALET3B.js} +3 -3
- package/bundle/{devtoolsService-S23HMHOP.js → devtoolsService-Q6LGZKTJ.js} +3 -3
- package/bundle/{devtoolsService-XJE4SD6Y.js → devtoolsService-STAWBGOY.js} +3 -3
- package/bundle/{dist-26FBDZJL.js → dist-SWQPYLLV.js} +2 -2
- package/bundle/{dist-HZG3MZJJ.js → dist-YHAAIIZP.js} +2 -2
- package/bundle/{dist-NWO4TPRO.js → dist-YOBWJF52.js} +2 -2
- package/bundle/docs/reference/configuration.md +25 -1
- package/bundle/gemini.js +9 -9
- package/bundle/{interactiveCli-XLIK7J4T.js → interactiveCli-B6Y3UISW.js} +197 -211
- package/bundle/{interactiveCli-NDBO5LFJ.js → interactiveCli-HYY2W6AF.js} +197 -211
- package/bundle/{interactiveCli-H722RT7T.js → interactiveCli-MEBWWWE7.js} +197 -211
- package/bundle/{interactiveCli-Q24D75I6.js → interactiveCli-YJFA3P4G.js} +197 -211
- package/bundle/{memoryDiscovery-JXHCZBWK.js → memoryDiscovery-BQGYT4OD.js} +1 -1
- package/bundle/{memoryDiscovery-VQKOP6YW.js → memoryDiscovery-FCEPFZ3M.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-J2PS4AXL.js → oauth2-provider-DLPX23GY.js} +2 -2
- package/bundle/{oauth2-provider-GQA3CRCL.js → oauth2-provider-IGY3DL3D.js} +2 -2
- package/bundle/{oauth2-provider-MZZUQG5T.js → oauth2-provider-MKUXMD5I.js} +2 -2
- package/bundle/{oauth2-provider-PVUYATDU.js → oauth2-provider-TIKPJAVU.js} +2 -2
- package/package.json +1 -1
|
@@ -72,6 +72,7 @@ import {
|
|
|
72
72
|
MemoryTool,
|
|
73
73
|
OAUTH_FILE,
|
|
74
74
|
PARAM_ADDITIONAL_PERMISSIONS,
|
|
75
|
+
PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
|
|
75
76
|
PREVIEW_GEMINI_3_1_MODEL,
|
|
76
77
|
PREVIEW_GEMINI_FLASH_MODEL,
|
|
77
78
|
PREVIEW_GEMINI_MODEL,
|
|
@@ -186,7 +187,7 @@ import {
|
|
|
186
187
|
toFriendlyError,
|
|
187
188
|
unescapePath,
|
|
188
189
|
zodToJsonSchema
|
|
189
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-MYI75E6G.js";
|
|
190
191
|
import {
|
|
191
192
|
require_dist as require_dist2,
|
|
192
193
|
require_src
|
|
@@ -237676,7 +237677,7 @@ function getSecureSanitizationConfig(requestedConfig = {}, baseConfig) {
|
|
|
237676
237677
|
allowedEnvironmentVariables: [...new Set(allowed)],
|
|
237677
237678
|
blockedEnvironmentVariables: [...new Set(blocked)],
|
|
237678
237679
|
// Redaction must be enabled for secure configurations
|
|
237679
|
-
enableEnvironmentVariableRedaction:
|
|
237680
|
+
enableEnvironmentVariableRedaction: requestedConfig.enableEnvironmentVariableRedaction ?? baseConfig?.enableEnvironmentVariableRedaction ?? false
|
|
237680
237681
|
};
|
|
237681
237682
|
}
|
|
237682
237683
|
|
|
@@ -250034,8 +250035,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
250034
250035
|
var PointerVector = import_vector.default.PointerVector;
|
|
250035
250036
|
|
|
250036
250037
|
// packages/core/src/generated/git-commit.ts
|
|
250037
|
-
var GIT_COMMIT_INFO = "
|
|
250038
|
-
var CLI_VERSION = "0.36.0-preview.
|
|
250038
|
+
var GIT_COMMIT_INFO = "425d64a96";
|
|
250039
|
+
var CLI_VERSION = "0.36.0-preview.6";
|
|
250039
250040
|
|
|
250040
250041
|
// packages/core/src/ide/detect-ide.ts
|
|
250041
250042
|
var IDE_DEFINITIONS = {
|
|
@@ -273507,6 +273508,7 @@ function getModelPolicyChain(options) {
|
|
|
273507
273508
|
const previewModel = resolveModel(
|
|
273508
273509
|
PREVIEW_GEMINI_MODEL,
|
|
273509
273510
|
options.useGemini31,
|
|
273511
|
+
options.useGemini31FlashLite,
|
|
273510
273512
|
options.useCustomToolModel
|
|
273511
273513
|
);
|
|
273512
273514
|
return [
|
|
@@ -273553,11 +273555,13 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273553
273555
|
const configuredModel = config2.getModel();
|
|
273554
273556
|
let chain2;
|
|
273555
273557
|
const useGemini31 = config2.getGemini31LaunchedSync?.() ?? false;
|
|
273558
|
+
const useGemini31FlashLite = config2.getGemini31FlashLiteLaunchedSync?.() ?? false;
|
|
273556
273559
|
const useCustomToolModel = config2.getUseCustomToolModelSync?.() ?? false;
|
|
273557
273560
|
const hasAccessToPreview = config2.getHasAccessToPreviewModel?.() ?? true;
|
|
273558
273561
|
const resolvedModel = resolveModel(
|
|
273559
273562
|
modelFromConfig,
|
|
273560
273563
|
useGemini31,
|
|
273564
|
+
useGemini31FlashLite,
|
|
273561
273565
|
useCustomToolModel,
|
|
273562
273566
|
hasAccessToPreview,
|
|
273563
273567
|
config2
|
|
@@ -273567,6 +273571,7 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273567
273571
|
if (config2.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
273568
273572
|
const context2 = {
|
|
273569
273573
|
useGemini3_1: useGemini31,
|
|
273574
|
+
useGemini3_1FlashLite: useGemini31FlashLite,
|
|
273570
273575
|
useCustomTools: useCustomToolModel
|
|
273571
273576
|
};
|
|
273572
273577
|
if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
|
|
@@ -273598,6 +273603,7 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273598
273603
|
previewEnabled,
|
|
273599
273604
|
userTier: config2.getUserTier(),
|
|
273600
273605
|
useGemini31,
|
|
273606
|
+
useGemini31FlashLite,
|
|
273601
273607
|
useCustomToolModel
|
|
273602
273608
|
});
|
|
273603
273609
|
} else {
|
|
@@ -273605,6 +273611,7 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273605
273611
|
previewEnabled: false,
|
|
273606
273612
|
userTier: config2.getUserTier(),
|
|
273607
273613
|
useGemini31,
|
|
273614
|
+
useGemini31FlashLite,
|
|
273608
273615
|
useCustomToolModel
|
|
273609
273616
|
});
|
|
273610
273617
|
}
|
|
@@ -276488,7 +276495,7 @@ function getVersion() {
|
|
|
276488
276495
|
}
|
|
276489
276496
|
versionPromise = (async () => {
|
|
276490
276497
|
const pkgJson = await getPackageJson(__dirname4);
|
|
276491
|
-
return "0.36.0-preview.
|
|
276498
|
+
return "0.36.0-preview.6";
|
|
276492
276499
|
})();
|
|
276493
276500
|
return versionPromise;
|
|
276494
276501
|
}
|
|
@@ -278030,6 +278037,7 @@ async function createContentGenerator(config2, gcConfig, sessionId2) {
|
|
|
278030
278037
|
const model = resolveModel(
|
|
278031
278038
|
gcConfig.getModel(),
|
|
278032
278039
|
config2.authType === "gemini-api-key" /* USE_GEMINI */ || config2.authType === "vertex-ai" /* USE_VERTEX_AI */ || (await gcConfig.getGemini31Launched?.() ?? false),
|
|
278040
|
+
config2.authType === "gemini-api-key" /* USE_GEMINI */ || config2.authType === "vertex-ai" /* USE_VERTEX_AI */ || (await gcConfig.getGemini31FlashLiteLaunched?.() ?? false),
|
|
278033
278041
|
false,
|
|
278034
278042
|
gcConfig.getHasAccessToPreviewModel?.() ?? true,
|
|
278035
278043
|
gcConfig
|
|
@@ -310321,19 +310329,23 @@ var GeminiChat = class {
|
|
|
310321
310329
|
const initialActiveModel = this.context.config.getActiveModel();
|
|
310322
310330
|
const apiCall = async () => {
|
|
310323
310331
|
const useGemini3_1 = await this.context.config.getGemini31Launched?.() ?? false;
|
|
310332
|
+
const useGemini3_1FlashLite = await this.context.config.getGemini31FlashLiteLaunched?.() ?? false;
|
|
310333
|
+
const hasAccessToPreview = this.context.config.getHasAccessToPreviewModel?.() ?? true;
|
|
310324
310334
|
let modelToUse = resolveModel(
|
|
310325
310335
|
lastModelToUse,
|
|
310326
310336
|
useGemini3_1,
|
|
310337
|
+
useGemini3_1FlashLite,
|
|
310327
310338
|
false,
|
|
310328
|
-
|
|
310339
|
+
hasAccessToPreview,
|
|
310329
310340
|
this.context.config
|
|
310330
310341
|
);
|
|
310331
310342
|
if (this.context.config.getActiveModel() !== initialActiveModel) {
|
|
310332
310343
|
modelToUse = resolveModel(
|
|
310333
310344
|
this.context.config.getActiveModel(),
|
|
310334
310345
|
useGemini3_1,
|
|
310346
|
+
useGemini3_1FlashLite,
|
|
310335
310347
|
false,
|
|
310336
|
-
|
|
310348
|
+
hasAccessToPreview,
|
|
310337
310349
|
this.context.config
|
|
310338
310350
|
);
|
|
310339
310351
|
}
|
|
@@ -312448,6 +312460,7 @@ var PromptProvider = class {
|
|
|
312448
312460
|
const desiredModel = resolveModel(
|
|
312449
312461
|
context2.config.getActiveModel(),
|
|
312450
312462
|
context2.config.getGemini31LaunchedSync?.() ?? false,
|
|
312463
|
+
context2.config.getGemini31FlashLiteLaunchedSync?.() ?? false,
|
|
312451
312464
|
false,
|
|
312452
312465
|
context2.config.getHasAccessToPreviewModel?.() ?? true,
|
|
312453
312466
|
context2.config
|
|
@@ -312597,6 +312610,7 @@ var PromptProvider = class {
|
|
|
312597
312610
|
const desiredModel = resolveModel(
|
|
312598
312611
|
context2.config.getActiveModel(),
|
|
312599
312612
|
context2.config.getGemini31LaunchedSync?.() ?? false,
|
|
312613
|
+
context2.config.getGemini31FlashLiteLaunchedSync?.() ?? false,
|
|
312600
312614
|
false,
|
|
312601
312615
|
context2.config.getHasAccessToPreviewModel?.() ?? true,
|
|
312602
312616
|
context2.config
|
|
@@ -313749,6 +313763,8 @@ function modelStringToModelConfigAlias(model) {
|
|
|
313749
313763
|
return "chat-compression-3-pro";
|
|
313750
313764
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
313751
313765
|
return "chat-compression-3-flash";
|
|
313766
|
+
case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
|
|
313767
|
+
return "chat-compression-3.1-flash-lite";
|
|
313752
313768
|
case DEFAULT_GEMINI_MODEL:
|
|
313753
313769
|
return "chat-compression-2.5-pro";
|
|
313754
313770
|
case DEFAULT_GEMINI_FLASH_MODEL:
|
|
@@ -314611,6 +314627,7 @@ var GeminiClient = class {
|
|
|
314611
314627
|
return resolveModel(
|
|
314612
314628
|
this.config.getActiveModel(),
|
|
314613
314629
|
this.config.getGemini31LaunchedSync?.() ?? false,
|
|
314630
|
+
this.config.getGemini31FlashLiteLaunchedSync?.() ?? false,
|
|
314614
314631
|
false,
|
|
314615
314632
|
this.config.getHasAccessToPreviewModel?.() ?? true,
|
|
314616
314633
|
this.config
|
|
@@ -321002,6 +321019,7 @@ var DefaultStrategy = class {
|
|
|
321002
321019
|
const defaultModel = resolveModel(
|
|
321003
321020
|
config2.getModel(),
|
|
321004
321021
|
config2.getGemini31LaunchedSync?.() ?? false,
|
|
321022
|
+
config2.getGemini31FlashLiteLaunchedSync?.() ?? false,
|
|
321005
321023
|
false,
|
|
321006
321024
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
321007
321025
|
config2
|
|
@@ -321140,14 +321158,16 @@ var ClassifierStrategy = class {
|
|
|
321140
321158
|
const routerResponse = ClassifierResponseSchema2.parse(jsonResponse);
|
|
321141
321159
|
const reasoning = routerResponse.reasoning;
|
|
321142
321160
|
const latencyMs = Date.now() - startTime;
|
|
321143
|
-
const [useGemini3_1, useCustomToolModel] = await Promise.all([
|
|
321161
|
+
const [useGemini3_1, useGemini3_1FlashLite, useCustomToolModel] = await Promise.all([
|
|
321144
321162
|
config2.getGemini31Launched(),
|
|
321163
|
+
config2.getGemini31FlashLiteLaunched(),
|
|
321145
321164
|
config2.getUseCustomToolModel()
|
|
321146
321165
|
]);
|
|
321147
321166
|
const selectedModel = resolveClassifierModel(
|
|
321148
321167
|
model,
|
|
321149
321168
|
routerResponse.model_choice,
|
|
321150
321169
|
useGemini3_1,
|
|
321170
|
+
useGemini3_1FlashLite,
|
|
321151
321171
|
useCustomToolModel,
|
|
321152
321172
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
321153
321173
|
config2
|
|
@@ -321272,14 +321292,16 @@ var NumericalClassifierStrategy = class {
|
|
|
321272
321292
|
const routerResponse = ClassifierResponseSchema3.parse(jsonResponse);
|
|
321273
321293
|
const score = routerResponse.complexity_score;
|
|
321274
321294
|
const { threshold, groupLabel, modelAlias } = await this.getRoutingDecision(score, config2);
|
|
321275
|
-
const [useGemini3_1, useCustomToolModel] = await Promise.all([
|
|
321295
|
+
const [useGemini3_1, useGemini3_1FlashLite, useCustomToolModel] = await Promise.all([
|
|
321276
321296
|
config2.getGemini31Launched(),
|
|
321297
|
+
config2.getGemini31FlashLiteLaunched(),
|
|
321277
321298
|
config2.getUseCustomToolModel()
|
|
321278
321299
|
]);
|
|
321279
321300
|
const selectedModel = resolveClassifierModel(
|
|
321280
321301
|
model,
|
|
321281
321302
|
modelAlias,
|
|
321282
321303
|
useGemini3_1,
|
|
321304
|
+
useGemini3_1FlashLite,
|
|
321283
321305
|
useCustomToolModel,
|
|
321284
321306
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
321285
321307
|
config2
|
|
@@ -321394,6 +321416,7 @@ var FallbackStrategy = class {
|
|
|
321394
321416
|
const resolvedModel = resolveModel(
|
|
321395
321417
|
requestedModel,
|
|
321396
321418
|
config2.getGemini31LaunchedSync?.() ?? false,
|
|
321419
|
+
config2.getGemini31FlashLiteLaunchedSync?.() ?? false,
|
|
321397
321420
|
false,
|
|
321398
321421
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
321399
321422
|
config2
|
|
@@ -321430,6 +321453,7 @@ var OverrideStrategy = class {
|
|
|
321430
321453
|
model: resolveModel(
|
|
321431
321454
|
overrideModel,
|
|
321432
321455
|
config2.getGemini31LaunchedSync?.() ?? false,
|
|
321456
|
+
config2.getGemini31FlashLiteLaunchedSync?.() ?? false,
|
|
321433
321457
|
false,
|
|
321434
321458
|
config2.getHasAccessToPreviewModel?.() ?? true,
|
|
321435
321459
|
config2
|
|
@@ -321630,6 +321654,8 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
321630
321654
|
switch (key) {
|
|
321631
321655
|
case "useGemini3_1":
|
|
321632
321656
|
return value === context2.useGemini3_1;
|
|
321657
|
+
case "useGemini3_1FlashLite":
|
|
321658
|
+
return value === context2.useGemini3_1FlashLite;
|
|
321633
321659
|
case "useCustomTools":
|
|
321634
321660
|
return value === context2.useCustomTools;
|
|
321635
321661
|
case "hasAccessToPreview":
|
|
@@ -322125,6 +322151,11 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
322125
322151
|
model: "gemini-3-flash-preview"
|
|
322126
322152
|
}
|
|
322127
322153
|
},
|
|
322154
|
+
"chat-compression-3.1-flash-lite": {
|
|
322155
|
+
modelConfig: {
|
|
322156
|
+
model: "gemini-3.1-flash-lite-preview"
|
|
322157
|
+
}
|
|
322158
|
+
},
|
|
322128
322159
|
"chat-compression-2.5-pro": {
|
|
322129
322160
|
modelConfig: {
|
|
322130
322161
|
model: "gemini-2.5-pro"
|
|
@@ -322337,6 +322368,15 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
322337
322368
|
"auto-gemini-2.5": {
|
|
322338
322369
|
default: "gemini-2.5-pro"
|
|
322339
322370
|
},
|
|
322371
|
+
"gemini-3.1-flash-lite-preview": {
|
|
322372
|
+
default: "gemini-3.1-flash-lite-preview",
|
|
322373
|
+
contexts: [
|
|
322374
|
+
{
|
|
322375
|
+
condition: { useGemini3_1FlashLite: false },
|
|
322376
|
+
target: "gemini-2.5-flash-lite"
|
|
322377
|
+
}
|
|
322378
|
+
]
|
|
322379
|
+
},
|
|
322340
322380
|
flash: {
|
|
322341
322381
|
default: "gemini-3-flash-preview",
|
|
322342
322382
|
contexts: [
|
|
@@ -322347,7 +322387,13 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
322347
322387
|
]
|
|
322348
322388
|
},
|
|
322349
322389
|
"flash-lite": {
|
|
322350
|
-
default: "gemini-2.5-flash-lite"
|
|
322390
|
+
default: "gemini-2.5-flash-lite",
|
|
322391
|
+
contexts: [
|
|
322392
|
+
{
|
|
322393
|
+
condition: { useGemini3_1FlashLite: true },
|
|
322394
|
+
target: "gemini-3.1-flash-lite-preview"
|
|
322395
|
+
}
|
|
322396
|
+
]
|
|
322351
322397
|
}
|
|
322352
322398
|
},
|
|
322353
322399
|
classifierIdResolutions: {
|
|
@@ -329880,7 +329926,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
329880
329926
|
return provider;
|
|
329881
329927
|
}
|
|
329882
329928
|
case "oauth2": {
|
|
329883
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
329929
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-IGY3DL3D.js");
|
|
329884
329930
|
const provider = new OAuth2AuthProvider(
|
|
329885
329931
|
authConfig,
|
|
329886
329932
|
options.agentName ?? "unknown",
|
|
@@ -333968,8 +334014,12 @@ var LocalAgentExecutor = class _LocalAgentExecutor {
|
|
|
333968
334014
|
toolsList.push(toolRef);
|
|
333969
334015
|
}
|
|
333970
334016
|
}
|
|
333971
|
-
toolsList.push(...this.toolRegistry.getFunctionDeclarations());
|
|
333972
334017
|
}
|
|
334018
|
+
toolsList.push(
|
|
334019
|
+
...this.toolRegistry.getFunctionDeclarations(
|
|
334020
|
+
this.definition.modelConfig.model
|
|
334021
|
+
)
|
|
334022
|
+
);
|
|
333973
334023
|
const completeTool = {
|
|
333974
334024
|
name: TASK_COMPLETE_TOOL_NAME,
|
|
333975
334025
|
description: outputConfig ? "Call this tool to submit your final answer and complete the task. This is the ONLY way to finish." : "Call this tool to submit your final findings and complete the task. This is the ONLY way to finish.",
|
|
@@ -336618,7 +336668,8 @@ var ExperimentFlags = {
|
|
|
336618
336668
|
MASKING_PRUNABLE_THRESHOLD: 45758818,
|
|
336619
336669
|
MASKING_PROTECT_LATEST_TURN: 45758819,
|
|
336620
336670
|
GEMINI_3_1_PRO_LAUNCHED: 45760185,
|
|
336621
|
-
PRO_MODEL_NO_ACCESS: 45768879
|
|
336671
|
+
PRO_MODEL_NO_ACCESS: 45768879,
|
|
336672
|
+
GEMINI_3_1_FLASH_LITE_LAUNCHED: 45771641
|
|
336622
336673
|
};
|
|
336623
336674
|
|
|
336624
336675
|
// packages/core/src/skills/skillManager.ts
|
|
@@ -351422,7 +351473,11 @@ var Config = class {
|
|
|
351422
351473
|
}
|
|
351423
351474
|
const primaryModel = resolveModel(
|
|
351424
351475
|
this.getModel(),
|
|
351425
|
-
this.getGemini31LaunchedSync()
|
|
351476
|
+
this.getGemini31LaunchedSync(),
|
|
351477
|
+
this.getGemini31FlashLiteLaunchedSync(),
|
|
351478
|
+
this.getUseCustomToolModelSync(),
|
|
351479
|
+
this.getHasAccessToPreviewModel(),
|
|
351480
|
+
this
|
|
351426
351481
|
);
|
|
351427
351482
|
return this.modelQuotas.get(primaryModel)?.remaining;
|
|
351428
351483
|
}
|
|
@@ -351433,7 +351488,11 @@ var Config = class {
|
|
|
351433
351488
|
}
|
|
351434
351489
|
const primaryModel = resolveModel(
|
|
351435
351490
|
this.getModel(),
|
|
351436
|
-
this.getGemini31LaunchedSync()
|
|
351491
|
+
this.getGemini31LaunchedSync(),
|
|
351492
|
+
this.getGemini31FlashLiteLaunchedSync(),
|
|
351493
|
+
this.getUseCustomToolModelSync(),
|
|
351494
|
+
this.getHasAccessToPreviewModel(),
|
|
351495
|
+
this
|
|
351437
351496
|
);
|
|
351438
351497
|
return this.modelQuotas.get(primaryModel)?.limit;
|
|
351439
351498
|
}
|
|
@@ -351444,7 +351503,11 @@ var Config = class {
|
|
|
351444
351503
|
}
|
|
351445
351504
|
const primaryModel = resolveModel(
|
|
351446
351505
|
this.getModel(),
|
|
351447
|
-
this.getGemini31LaunchedSync()
|
|
351506
|
+
this.getGemini31LaunchedSync(),
|
|
351507
|
+
this.getGemini31FlashLiteLaunchedSync(),
|
|
351508
|
+
this.getUseCustomToolModelSync(),
|
|
351509
|
+
this.getHasAccessToPreviewModel(),
|
|
351510
|
+
this
|
|
351448
351511
|
);
|
|
351449
351512
|
return this.modelQuotas.get(primaryModel)?.resetTime;
|
|
351450
351513
|
}
|
|
@@ -351697,7 +351760,7 @@ var Config = class {
|
|
|
351697
351760
|
if (this.experimentalJitContext && this.contextManager) {
|
|
351698
351761
|
await this.contextManager.refresh();
|
|
351699
351762
|
} else {
|
|
351700
|
-
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-
|
|
351763
|
+
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-FCEPFZ3M.js");
|
|
351701
351764
|
await refreshServerHierarchicalMemory2(this);
|
|
351702
351765
|
}
|
|
351703
351766
|
if (this._geminiClient?.isInitialized()) {
|
|
@@ -352245,13 +352308,21 @@ ${sections.join("\n")}
|
|
|
352245
352308
|
return this.experiments?.flags[ExperimentFlags.PRO_MODEL_NO_ACCESS]?.boolValue ?? false;
|
|
352246
352309
|
}
|
|
352247
352310
|
/**
|
|
352248
|
-
* Returns whether Gemini 3.1 has been launched.
|
|
352311
|
+
* Returns whether Gemini 3.1 Pro has been launched.
|
|
352249
352312
|
* This method is async and ensures that experiments are loaded before returning the result.
|
|
352250
352313
|
*/
|
|
352251
352314
|
async getGemini31Launched() {
|
|
352252
352315
|
await this.ensureExperimentsLoaded();
|
|
352253
352316
|
return this.getGemini31LaunchedSync();
|
|
352254
352317
|
}
|
|
352318
|
+
/**
|
|
352319
|
+
* Returns whether Gemini 3.1 Flash Lite has been launched.
|
|
352320
|
+
* This method is async and ensures that experiments are loaded before returning the result.
|
|
352321
|
+
*/
|
|
352322
|
+
async getGemini31FlashLiteLaunched() {
|
|
352323
|
+
await this.ensureExperimentsLoaded();
|
|
352324
|
+
return this.getGemini31FlashLiteLaunchedSync();
|
|
352325
|
+
}
|
|
352255
352326
|
/**
|
|
352256
352327
|
* Returns whether the custom tool model should be used.
|
|
352257
352328
|
*/
|
|
@@ -352284,6 +352355,20 @@ ${sections.join("\n")}
|
|
|
352284
352355
|
}
|
|
352285
352356
|
return this.experiments?.flags[ExperimentFlags.GEMINI_3_1_PRO_LAUNCHED]?.boolValue ?? false;
|
|
352286
352357
|
}
|
|
352358
|
+
/**
|
|
352359
|
+
* Returns whether Gemini 3.1 Flash Lite has been launched.
|
|
352360
|
+
*
|
|
352361
|
+
* Note: This method should only be called after startup, once experiments have been loaded.
|
|
352362
|
+
* If you need to call this during startup or from an async context, use
|
|
352363
|
+
* getGemini31FlashLiteLaunched instead.
|
|
352364
|
+
*/
|
|
352365
|
+
getGemini31FlashLiteLaunchedSync() {
|
|
352366
|
+
const authType = this.contentGeneratorConfig?.authType;
|
|
352367
|
+
if (authType === "gemini-api-key" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
352368
|
+
return true;
|
|
352369
|
+
}
|
|
352370
|
+
return this.experiments?.flags[ExperimentFlags.GEMINI_3_1_FLASH_LITE_LAUNCHED]?.boolValue ?? false;
|
|
352371
|
+
}
|
|
352287
352372
|
async ensureExperimentsLoaded() {
|
|
352288
352373
|
if (!this.experimentsPromise) {
|
|
352289
352374
|
return;
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
tokenLimit,
|
|
165
165
|
uiTelemetryService,
|
|
166
166
|
yellowBright
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-EHC7O4TG.js";
|
|
168
168
|
import {
|
|
169
169
|
ApprovalMode,
|
|
170
170
|
CoreEvent,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
shortenPath,
|
|
194
194
|
tildeifyPath,
|
|
195
195
|
unescapePath
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-S2IQOR7T.js";
|
|
197
197
|
import {
|
|
198
198
|
__commonJS,
|
|
199
199
|
__export,
|
|
@@ -57159,6 +57159,7 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
|
|
|
57159
57159
|
type: "object",
|
|
57160
57160
|
properties: {
|
|
57161
57161
|
useGemini3_1: { type: "boolean" },
|
|
57162
|
+
useGemini3_1FlashLite: { type: "boolean" },
|
|
57162
57163
|
useCustomTools: { type: "boolean" },
|
|
57163
57164
|
hasAccessToPreview: { type: "boolean" },
|
|
57164
57165
|
requestedModels: {
|
|
@@ -83145,7 +83146,7 @@ var authCommand = {
|
|
|
83145
83146
|
import process29 from "node:process";
|
|
83146
83147
|
|
|
83147
83148
|
// packages/cli/src/generated/git-commit.ts
|
|
83148
|
-
var GIT_COMMIT_INFO = "
|
|
83149
|
+
var GIT_COMMIT_INFO = "071076aa5";
|
|
83149
83150
|
|
|
83150
83151
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
83151
83152
|
import * as fsPromises2 from "node:fs/promises";
|
|
@@ -88546,7 +88547,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
88546
88547
|
type: "info",
|
|
88547
88548
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
88548
88549
|
});
|
|
88549
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
88550
|
+
const { MCPOAuthProvider } = await import("./dist-YHAAIIZP.js");
|
|
88550
88551
|
let oauthConfig = server.oauth;
|
|
88551
88552
|
if (!oauthConfig) {
|
|
88552
88553
|
oauthConfig = { enabled: false };
|
|
@@ -42922,10 +42922,11 @@ var GEMINI_MODEL_ALIAS_FLASH = "flash";
|
|
|
42922
42922
|
var GEMINI_MODEL_ALIAS_FLASH_LITE = "flash-lite";
|
|
42923
42923
|
var DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
|
|
42924
42924
|
var DEFAULT_THINKING_MODE = 8192;
|
|
42925
|
-
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
42925
|
+
function resolveModel(requestedModel, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
42926
42926
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
42927
42927
|
const resolved2 = config.modelConfigService.resolveModelId(requestedModel, {
|
|
42928
42928
|
useGemini3_1,
|
|
42929
|
+
useGemini3_1FlashLite,
|
|
42929
42930
|
useCustomTools: useCustomToolModel,
|
|
42930
42931
|
hasAccessToPreview
|
|
42931
42932
|
});
|
|
@@ -42962,7 +42963,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
42962
42963
|
break;
|
|
42963
42964
|
}
|
|
42964
42965
|
case GEMINI_MODEL_ALIAS_FLASH_LITE: {
|
|
42965
|
-
resolved = DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
42966
|
+
resolved = useGemini3_1FlashLite ? PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL : DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
42966
42967
|
break;
|
|
42967
42968
|
}
|
|
42968
42969
|
default: {
|
|
@@ -42974,6 +42975,8 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
42974
42975
|
switch (resolved) {
|
|
42975
42976
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
42976
42977
|
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
42978
|
+
case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
|
|
42979
|
+
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
42977
42980
|
case PREVIEW_GEMINI_MODEL:
|
|
42978
42981
|
case PREVIEW_GEMINI_3_1_MODEL:
|
|
42979
42982
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
@@ -42990,10 +42993,11 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
42990
42993
|
}
|
|
42991
42994
|
return resolved;
|
|
42992
42995
|
}
|
|
42993
|
-
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
42996
|
+
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
42994
42997
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
42995
42998
|
return config.modelConfigService.resolveClassifierModelId(modelAlias, requestedModel, {
|
|
42996
42999
|
useGemini3_1,
|
|
43000
|
+
useGemini3_1FlashLite,
|
|
42997
43001
|
useCustomTools: useCustomToolModel,
|
|
42998
43002
|
hasAccessToPreview
|
|
42999
43003
|
});
|
|
@@ -43007,7 +43011,7 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
|
|
|
43007
43011
|
}
|
|
43008
43012
|
return resolveModel(GEMINI_MODEL_ALIAS_FLASH);
|
|
43009
43013
|
}
|
|
43010
|
-
return resolveModel(requestedModel, useGemini3_1, useCustomToolModel);
|
|
43014
|
+
return resolveModel(requestedModel, useGemini3_1, useGemini3_1FlashLite, useCustomToolModel);
|
|
43011
43015
|
}
|
|
43012
43016
|
function getDisplayString(model, config) {
|
|
43013
43017
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
@@ -43027,6 +43031,8 @@ function getDisplayString(model, config) {
|
|
|
43027
43031
|
return PREVIEW_GEMINI_FLASH_MODEL;
|
|
43028
43032
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
43029
43033
|
return PREVIEW_GEMINI_3_1_MODEL;
|
|
43034
|
+
case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
|
|
43035
|
+
return PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL;
|
|
43030
43036
|
default:
|
|
43031
43037
|
return model;
|
|
43032
43038
|
}
|
|
@@ -43056,7 +43062,7 @@ function isGemini2Model(model) {
|
|
|
43056
43062
|
}
|
|
43057
43063
|
function isCustomModel(model, config) {
|
|
43058
43064
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
43059
|
-
const resolved2 = resolveModel(model, false, false, true, config);
|
|
43065
|
+
const resolved2 = resolveModel(model, false, false, false, true, config);
|
|
43060
43066
|
return config.modelConfigService.getModelDefinition(resolved2)?.tier === "custom" || !resolved2.startsWith("gemini-");
|
|
43061
43067
|
}
|
|
43062
43068
|
const resolved = resolveModel(model);
|
|
@@ -43079,10 +43085,13 @@ function supportsMultimodalFunctionResponse(model, config) {
|
|
|
43079
43085
|
}
|
|
43080
43086
|
return model.startsWith("gemini-3-");
|
|
43081
43087
|
}
|
|
43082
|
-
function isActiveModel(model, useGemini3_1 = false, useCustomToolModel = false) {
|
|
43088
|
+
function isActiveModel(model, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false) {
|
|
43083
43089
|
if (!VALID_GEMINI_MODELS.has(model)) {
|
|
43084
43090
|
return false;
|
|
43085
43091
|
}
|
|
43092
|
+
if (model === PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL) {
|
|
43093
|
+
return useGemini3_1FlashLite;
|
|
43094
|
+
}
|
|
43086
43095
|
if (useGemini3_1) {
|
|
43087
43096
|
if (model === PREVIEW_GEMINI_MODEL) {
|
|
43088
43097
|
return false;
|