@google/gemini-cli 0.36.0-preview.6 → 0.36.0-preview.8
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-PDW366WH.js → chunk-5JDHTAA3.js} +85 -29
- package/bundle/{chunk-U2JBMR75.js → chunk-5Y6Y7SEB.js} +85 -29
- package/bundle/{chunk-4P6XQ35T.js → chunk-642LNT3F.js} +7382 -2769
- package/bundle/{chunk-5JYGJANN.js → chunk-FWCJAF6L.js} +7382 -2769
- package/bundle/{chunk-PXG3YTLU.js → chunk-MYI75E6G.js} +20 -6
- package/bundle/{chunk-OE54FCNN.js → chunk-N22U7LIR.js} +103 -18
- package/bundle/{chunk-QTNBTOHX.js → chunk-QBLIM2T2.js} +7382 -2769
- package/bundle/{chunk-HLML5SVJ.js → chunk-S2IQOR7T.js} +15 -6
- package/bundle/{chunk-NBSN2ZY6.js → chunk-UUJ4JLTB.js} +7382 -2769
- package/bundle/{chunk-I3Z6XPMI.js → chunk-X6CSYCBW.js} +85 -29
- package/bundle/{core-NSYWNIRO.js → core-N4UNRLQA.js} +2 -2
- package/bundle/{devtoolsService-3NAUMYXJ.js → devtoolsService-7D3WUF33.js} +3 -3
- package/bundle/{devtoolsService-MQCND52T.js → devtoolsService-NA7MR5UO.js} +3 -3
- package/bundle/{devtoolsService-2I6GE4QG.js → devtoolsService-VU7N6PSG.js} +3 -3
- package/bundle/{devtoolsService-FPXH5TOL.js → devtoolsService-Y53ZUB56.js} +3 -3
- package/bundle/{dist-2L2ZZ6UU.js → dist-HD2ZHBHJ.js} +2 -2
- package/bundle/{dist-ECE6U2CF.js → dist-JYY2GAAR.js} +2 -2
- package/bundle/{dist-JYBWVV27.js → dist-QEB25IFU.js} +2 -2
- package/bundle/docs/reference/configuration.md +26 -2
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-T2GH3MML.js → interactiveCli-2JRQPNZP.js} +210 -223
- package/bundle/{interactiveCli-HNW3RGAN.js → interactiveCli-A6H7VTMC.js} +210 -223
- package/bundle/{interactiveCli-NZ7FBLY6.js → interactiveCli-LFO7EWZS.js} +210 -223
- package/bundle/{interactiveCli-MKWLBXZL.js → interactiveCli-R5N55BDV.js} +210 -223
- 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-CD23TXNI.js → oauth2-provider-2WD22PTI.js} +2 -2
- package/bundle/{oauth2-provider-Q3ET7DXL.js → oauth2-provider-34BPLPQX.js} +2 -2
- package/bundle/{oauth2-provider-TMPMYL3F.js → oauth2-provider-MZAUZWUS.js} +2 -2
- package/bundle/{oauth2-provider-3IFRA7CZ.js → oauth2-provider-QOWLZC44.js} +2 -2
- package/package.json +1 -1
|
@@ -42993,10 +42993,11 @@ var GEMINI_MODEL_ALIAS_FLASH = "flash";
|
|
|
42993
42993
|
var GEMINI_MODEL_ALIAS_FLASH_LITE = "flash-lite";
|
|
42994
42994
|
var DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
|
|
42995
42995
|
var DEFAULT_THINKING_MODE = 8192;
|
|
42996
|
-
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
42996
|
+
function resolveModel(requestedModel, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
42997
42997
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
42998
42998
|
const resolved2 = config.modelConfigService.resolveModelId(requestedModel, {
|
|
42999
42999
|
useGemini3_1,
|
|
43000
|
+
useGemini3_1FlashLite,
|
|
43000
43001
|
useCustomTools: useCustomToolModel,
|
|
43001
43002
|
hasAccessToPreview
|
|
43002
43003
|
});
|
|
@@ -43033,7 +43034,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
43033
43034
|
break;
|
|
43034
43035
|
}
|
|
43035
43036
|
case GEMINI_MODEL_ALIAS_FLASH_LITE: {
|
|
43036
|
-
resolved = DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
43037
|
+
resolved = useGemini3_1FlashLite ? PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL : DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
43037
43038
|
break;
|
|
43038
43039
|
}
|
|
43039
43040
|
default: {
|
|
@@ -43045,6 +43046,8 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
43045
43046
|
switch (resolved) {
|
|
43046
43047
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
43047
43048
|
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
43049
|
+
case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
|
|
43050
|
+
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
43048
43051
|
case PREVIEW_GEMINI_MODEL:
|
|
43049
43052
|
case PREVIEW_GEMINI_3_1_MODEL:
|
|
43050
43053
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
@@ -43061,13 +43064,14 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
43061
43064
|
}
|
|
43062
43065
|
return resolved;
|
|
43063
43066
|
}
|
|
43064
|
-
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
43067
|
+
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false, hasAccessToPreview = true, config) {
|
|
43065
43068
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
43066
43069
|
return config.modelConfigService.resolveClassifierModelId(
|
|
43067
43070
|
modelAlias,
|
|
43068
43071
|
requestedModel,
|
|
43069
43072
|
{
|
|
43070
43073
|
useGemini3_1,
|
|
43074
|
+
useGemini3_1FlashLite,
|
|
43071
43075
|
useCustomTools: useCustomToolModel,
|
|
43072
43076
|
hasAccessToPreview
|
|
43073
43077
|
}
|
|
@@ -43082,7 +43086,12 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
|
|
|
43082
43086
|
}
|
|
43083
43087
|
return resolveModel(GEMINI_MODEL_ALIAS_FLASH);
|
|
43084
43088
|
}
|
|
43085
|
-
return resolveModel(
|
|
43089
|
+
return resolveModel(
|
|
43090
|
+
requestedModel,
|
|
43091
|
+
useGemini3_1,
|
|
43092
|
+
useGemini3_1FlashLite,
|
|
43093
|
+
useCustomToolModel
|
|
43094
|
+
);
|
|
43086
43095
|
}
|
|
43087
43096
|
function getDisplayString(model, config) {
|
|
43088
43097
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
@@ -43102,6 +43111,8 @@ function getDisplayString(model, config) {
|
|
|
43102
43111
|
return PREVIEW_GEMINI_FLASH_MODEL;
|
|
43103
43112
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
43104
43113
|
return PREVIEW_GEMINI_3_1_MODEL;
|
|
43114
|
+
case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
|
|
43115
|
+
return PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL;
|
|
43105
43116
|
default:
|
|
43106
43117
|
return model;
|
|
43107
43118
|
}
|
|
@@ -43131,7 +43142,7 @@ function isGemini2Model(model) {
|
|
|
43131
43142
|
}
|
|
43132
43143
|
function isCustomModel(model, config) {
|
|
43133
43144
|
if (config?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
43134
|
-
const resolved2 = resolveModel(model, false, false, true, config);
|
|
43145
|
+
const resolved2 = resolveModel(model, false, false, false, true, config);
|
|
43135
43146
|
return config.modelConfigService.getModelDefinition(resolved2)?.tier === "custom" || !resolved2.startsWith("gemini-");
|
|
43136
43147
|
}
|
|
43137
43148
|
const resolved = resolveModel(model);
|
|
@@ -43153,10 +43164,13 @@ function supportsMultimodalFunctionResponse(model, config) {
|
|
|
43153
43164
|
}
|
|
43154
43165
|
return model.startsWith("gemini-3-");
|
|
43155
43166
|
}
|
|
43156
|
-
function isActiveModel(model, useGemini3_1 = false, useCustomToolModel = false) {
|
|
43167
|
+
function isActiveModel(model, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false) {
|
|
43157
43168
|
if (!VALID_GEMINI_MODELS.has(model)) {
|
|
43158
43169
|
return false;
|
|
43159
43170
|
}
|
|
43171
|
+
if (model === PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL) {
|
|
43172
|
+
return useGemini3_1FlashLite;
|
|
43173
|
+
}
|
|
43160
43174
|
if (useGemini3_1) {
|
|
43161
43175
|
if (model === PREVIEW_GEMINI_MODEL) {
|
|
43162
43176
|
return false;
|
|
@@ -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
|
|
@@ -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 = "201c74c03";
|
|
250039
|
+
var CLI_VERSION = "0.36.0-preview.7";
|
|
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.7";
|
|
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-QOWLZC44.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
|
|
@@ -350880,7 +350931,7 @@ var Config = class {
|
|
|
350880
350931
|
this.modelConfigService = new ModelConfigService(
|
|
350881
350932
|
modelConfigServiceConfig ?? DEFAULT_MODEL_CONFIGS
|
|
350882
350933
|
);
|
|
350883
|
-
this.experimentalJitContext = params.experimentalJitContext ??
|
|
350934
|
+
this.experimentalJitContext = params.experimentalJitContext ?? false;
|
|
350884
350935
|
this.experimentalMemoryManager = params.experimentalMemoryManager ?? false;
|
|
350885
350936
|
this.topicUpdateNarration = params.topicUpdateNarration ?? false;
|
|
350886
350937
|
this.modelSteering = params.modelSteering ?? false;
|
|
@@ -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;
|