@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
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
MessageBusType,
|
|
76
76
|
OAUTH_FILE,
|
|
77
77
|
PARAM_ADDITIONAL_PERMISSIONS,
|
|
78
|
+
PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
|
|
78
79
|
PREVIEW_GEMINI_3_1_MODEL,
|
|
79
80
|
PREVIEW_GEMINI_FLASH_MODEL,
|
|
80
81
|
PREVIEW_GEMINI_MODEL,
|
|
@@ -192,7 +193,7 @@ import {
|
|
|
192
193
|
toFriendlyError,
|
|
193
194
|
unescapePath,
|
|
194
195
|
zodToJsonSchema
|
|
195
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-S2IQOR7T.js";
|
|
196
197
|
import {
|
|
197
198
|
require_dist as require_dist2,
|
|
198
199
|
require_src
|
|
@@ -237670,7 +237671,7 @@ function getSecureSanitizationConfig(requestedConfig = {}, baseConfig) {
|
|
|
237670
237671
|
allowedEnvironmentVariables: [...new Set(allowed)],
|
|
237671
237672
|
blockedEnvironmentVariables: [...new Set(blocked)],
|
|
237672
237673
|
// Redaction must be enabled for secure configurations
|
|
237673
|
-
enableEnvironmentVariableRedaction:
|
|
237674
|
+
enableEnvironmentVariableRedaction: requestedConfig.enableEnvironmentVariableRedaction ?? baseConfig?.enableEnvironmentVariableRedaction ?? false
|
|
237674
237675
|
};
|
|
237675
237676
|
}
|
|
237676
237677
|
|
|
@@ -249986,8 +249987,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
249986
249987
|
var PointerVector = import_vector.default.PointerVector;
|
|
249987
249988
|
|
|
249988
249989
|
// packages/core/dist/src/generated/git-commit.js
|
|
249989
|
-
var GIT_COMMIT_INFO = "
|
|
249990
|
-
var CLI_VERSION = "0.36.0-preview.
|
|
249990
|
+
var GIT_COMMIT_INFO = "425d64a96";
|
|
249991
|
+
var CLI_VERSION = "0.36.0-preview.6";
|
|
249991
249992
|
|
|
249992
249993
|
// packages/core/dist/src/ide/detect-ide.js
|
|
249993
249994
|
var IDE_DEFINITIONS = {
|
|
@@ -273101,7 +273102,7 @@ var FLASH_LITE_CHAIN = [
|
|
|
273101
273102
|
];
|
|
273102
273103
|
function getModelPolicyChain(options) {
|
|
273103
273104
|
if (options.previewEnabled) {
|
|
273104
|
-
const previewModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useCustomToolModel);
|
|
273105
|
+
const previewModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useGemini31FlashLite, options.useCustomToolModel);
|
|
273105
273106
|
return [
|
|
273106
273107
|
definePolicy({ model: previewModel }),
|
|
273107
273108
|
definePolicy({ model: PREVIEW_GEMINI_FLASH_MODEL, isLastResort: true })
|
|
@@ -273146,14 +273147,16 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273146
273147
|
const configuredModel = config2.getModel();
|
|
273147
273148
|
let chain2;
|
|
273148
273149
|
const useGemini31 = config2.getGemini31LaunchedSync?.() ?? false;
|
|
273150
|
+
const useGemini31FlashLite = config2.getGemini31FlashLiteLaunchedSync?.() ?? false;
|
|
273149
273151
|
const useCustomToolModel = config2.getUseCustomToolModelSync?.() ?? false;
|
|
273150
273152
|
const hasAccessToPreview = config2.getHasAccessToPreviewModel?.() ?? true;
|
|
273151
|
-
const resolvedModel = resolveModel(modelFromConfig, useGemini31, useCustomToolModel, hasAccessToPreview, config2);
|
|
273153
|
+
const resolvedModel = resolveModel(modelFromConfig, useGemini31, useGemini31FlashLite, useCustomToolModel, hasAccessToPreview, config2);
|
|
273152
273154
|
const isAutoPreferred = preferredModel ? isAutoModel(preferredModel, config2) : false;
|
|
273153
273155
|
const isAutoConfigured = isAutoModel(configuredModel, config2);
|
|
273154
273156
|
if (config2.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
273155
273157
|
const context2 = {
|
|
273156
273158
|
useGemini3_1: useGemini31,
|
|
273159
|
+
useGemini3_1FlashLite: useGemini31FlashLite,
|
|
273157
273160
|
useCustomTools: useCustomToolModel
|
|
273158
273161
|
};
|
|
273159
273162
|
if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
|
|
@@ -273182,6 +273185,7 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273182
273185
|
previewEnabled,
|
|
273183
273186
|
userTier: config2.getUserTier(),
|
|
273184
273187
|
useGemini31,
|
|
273188
|
+
useGemini31FlashLite,
|
|
273185
273189
|
useCustomToolModel
|
|
273186
273190
|
});
|
|
273187
273191
|
} else {
|
|
@@ -273189,6 +273193,7 @@ function resolvePolicyChain(config2, preferredModel, wrapsAround = false) {
|
|
|
273189
273193
|
previewEnabled: false,
|
|
273190
273194
|
userTier: config2.getUserTier(),
|
|
273191
273195
|
useGemini31,
|
|
273196
|
+
useGemini31FlashLite,
|
|
273192
273197
|
useCustomToolModel
|
|
273193
273198
|
});
|
|
273194
273199
|
}
|
|
@@ -275701,7 +275706,7 @@ function getVersion() {
|
|
|
275701
275706
|
}
|
|
275702
275707
|
versionPromise = (async () => {
|
|
275703
275708
|
const pkgJson = await getPackageJson(__dirname4);
|
|
275704
|
-
return "0.36.0-preview.
|
|
275709
|
+
return "0.36.0-preview.7";
|
|
275705
275710
|
})();
|
|
275706
275711
|
return versionPromise;
|
|
275707
275712
|
}
|
|
@@ -276985,7 +276990,7 @@ async function createContentGenerator(config2, gcConfig, sessionId2) {
|
|
|
276985
276990
|
return new LoggingContentGenerator(fakeGenerator, gcConfig);
|
|
276986
276991
|
}
|
|
276987
276992
|
const version4 = await getVersion();
|
|
276988
|
-
const model = resolveModel(gcConfig.getModel(), config2.authType === AuthType.USE_GEMINI || config2.authType === AuthType.USE_VERTEX_AI || (await gcConfig.getGemini31Launched?.() ?? false), false, gcConfig.getHasAccessToPreviewModel?.() ?? true, gcConfig);
|
|
276993
|
+
const model = resolveModel(gcConfig.getModel(), config2.authType === AuthType.USE_GEMINI || config2.authType === AuthType.USE_VERTEX_AI || (await gcConfig.getGemini31Launched?.() ?? false), config2.authType === AuthType.USE_GEMINI || config2.authType === AuthType.USE_VERTEX_AI || (await gcConfig.getGemini31FlashLiteLaunched?.() ?? false), false, gcConfig.getHasAccessToPreviewModel?.() ?? true, gcConfig);
|
|
276989
276994
|
const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
|
|
276990
276995
|
const clientName = gcConfig.getClientName();
|
|
276991
276996
|
const surface = determineSurface2();
|
|
@@ -308584,9 +308589,11 @@ var GeminiChat = class {
|
|
|
308584
308589
|
const initialActiveModel = this.context.config.getActiveModel();
|
|
308585
308590
|
const apiCall = async () => {
|
|
308586
308591
|
const useGemini3_1 = await this.context.config.getGemini31Launched?.() ?? false;
|
|
308587
|
-
|
|
308592
|
+
const useGemini3_1FlashLite = await this.context.config.getGemini31FlashLiteLaunched?.() ?? false;
|
|
308593
|
+
const hasAccessToPreview = this.context.config.getHasAccessToPreviewModel?.() ?? true;
|
|
308594
|
+
let modelToUse = resolveModel(lastModelToUse, useGemini3_1, useGemini3_1FlashLite, false, hasAccessToPreview, this.context.config);
|
|
308588
308595
|
if (this.context.config.getActiveModel() !== initialActiveModel) {
|
|
308589
|
-
modelToUse = resolveModel(this.context.config.getActiveModel(), useGemini3_1, false,
|
|
308596
|
+
modelToUse = resolveModel(this.context.config.getActiveModel(), useGemini3_1, useGemini3_1FlashLite, false, hasAccessToPreview, this.context.config);
|
|
308590
308597
|
}
|
|
308591
308598
|
if (modelToUse !== lastModelToUse) {
|
|
308592
308599
|
const { generateContentConfig: newConfig } = this.context.config.modelConfigService.getResolvedConfig({
|
|
@@ -310645,7 +310652,7 @@ var PromptProvider = class {
|
|
|
310645
310652
|
const toolNames = context2.toolRegistry.getAllToolNames();
|
|
310646
310653
|
const enabledToolNames = new Set(toolNames);
|
|
310647
310654
|
const approvedPlanPath = context2.config.getApprovedPlanPath();
|
|
310648
|
-
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
|
|
310655
|
+
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, context2.config.getGemini31FlashLiteLaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
|
|
310649
310656
|
const isModernModel = supportsModernFeatures(desiredModel);
|
|
310650
310657
|
const activeSnippets = isModernModel ? snippets_exports : snippets_legacy_exports;
|
|
310651
310658
|
const contextFilenames = getAllGeminiMdFilenames();
|
|
@@ -310743,7 +310750,7 @@ var PromptProvider = class {
|
|
|
310743
310750
|
return sanitizedPrompt;
|
|
310744
310751
|
}
|
|
310745
310752
|
getCompressionPrompt(context2) {
|
|
310746
|
-
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
|
|
310753
|
+
const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, context2.config.getGemini31FlashLiteLaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
|
|
310747
310754
|
const isModernModel = supportsModernFeatures(desiredModel);
|
|
310748
310755
|
const activeSnippets = isModernModel ? snippets_exports : snippets_legacy_exports;
|
|
310749
310756
|
return activeSnippets.getCompressionPrompt(context2.config.getApprovedPlanPath());
|
|
@@ -311822,6 +311829,8 @@ function modelStringToModelConfigAlias(model) {
|
|
|
311822
311829
|
return "chat-compression-3-pro";
|
|
311823
311830
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
311824
311831
|
return "chat-compression-3-flash";
|
|
311832
|
+
case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
|
|
311833
|
+
return "chat-compression-3.1-flash-lite";
|
|
311825
311834
|
case DEFAULT_GEMINI_MODEL:
|
|
311826
311835
|
return "chat-compression-2.5-pro";
|
|
311827
311836
|
case DEFAULT_GEMINI_FLASH_MODEL:
|
|
@@ -312620,7 +312629,7 @@ var GeminiClient = class {
|
|
|
312620
312629
|
if (this.currentSequenceModel) {
|
|
312621
312630
|
return this.currentSequenceModel;
|
|
312622
312631
|
}
|
|
312623
|
-
return resolveModel(this.config.getActiveModel(), this.config.getGemini31LaunchedSync?.() ?? false, false, this.config.getHasAccessToPreviewModel?.() ?? true, this.config);
|
|
312632
|
+
return resolveModel(this.config.getActiveModel(), this.config.getGemini31LaunchedSync?.() ?? false, this.config.getGemini31FlashLiteLaunchedSync?.() ?? false, false, this.config.getHasAccessToPreviewModel?.() ?? true, this.config);
|
|
312624
312633
|
}
|
|
312625
312634
|
async *processTurn(request, signal, prompt_id, boundedTurns, isInvalidStreamRetry, displayContent) {
|
|
312626
312635
|
let turn = new Turn(this.getChat(), prompt_id);
|
|
@@ -318771,7 +318780,7 @@ ${formattedHistory}
|
|
|
318771
318780
|
var DefaultStrategy = class {
|
|
318772
318781
|
name = "default";
|
|
318773
318782
|
async route(_context, config2, _baseLlmClient, _localLiteRtLmClient) {
|
|
318774
|
-
const defaultModel = resolveModel(config2.getModel(), config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
318783
|
+
const defaultModel = resolveModel(config2.getModel(), config2.getGemini31LaunchedSync?.() ?? false, config2.getGemini31FlashLiteLaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
318775
318784
|
return {
|
|
318776
318785
|
model: defaultModel,
|
|
318777
318786
|
metadata: {
|
|
@@ -318904,11 +318913,12 @@ var ClassifierStrategy = class {
|
|
|
318904
318913
|
const routerResponse = ClassifierResponseSchema2.parse(jsonResponse);
|
|
318905
318914
|
const reasoning = routerResponse.reasoning;
|
|
318906
318915
|
const latencyMs = Date.now() - startTime;
|
|
318907
|
-
const [useGemini3_1, useCustomToolModel] = await Promise.all([
|
|
318916
|
+
const [useGemini3_1, useGemini3_1FlashLite, useCustomToolModel] = await Promise.all([
|
|
318908
318917
|
config2.getGemini31Launched(),
|
|
318918
|
+
config2.getGemini31FlashLiteLaunched(),
|
|
318909
318919
|
config2.getUseCustomToolModel()
|
|
318910
318920
|
]);
|
|
318911
|
-
const selectedModel = resolveClassifierModel(model, routerResponse.model_choice, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
318921
|
+
const selectedModel = resolveClassifierModel(model, routerResponse.model_choice, useGemini3_1, useGemini3_1FlashLite, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
318912
318922
|
return {
|
|
318913
318923
|
model: selectedModel,
|
|
318914
318924
|
metadata: {
|
|
@@ -319029,11 +319039,12 @@ var NumericalClassifierStrategy = class {
|
|
|
319029
319039
|
const routerResponse = ClassifierResponseSchema3.parse(jsonResponse);
|
|
319030
319040
|
const score = routerResponse.complexity_score;
|
|
319031
319041
|
const { threshold, groupLabel, modelAlias } = await this.getRoutingDecision(score, config2);
|
|
319032
|
-
const [useGemini3_1, useCustomToolModel] = await Promise.all([
|
|
319042
|
+
const [useGemini3_1, useGemini3_1FlashLite, useCustomToolModel] = await Promise.all([
|
|
319033
319043
|
config2.getGemini31Launched(),
|
|
319044
|
+
config2.getGemini31FlashLiteLaunched(),
|
|
319034
319045
|
config2.getUseCustomToolModel()
|
|
319035
319046
|
]);
|
|
319036
|
-
const selectedModel = resolveClassifierModel(model, modelAlias, useGemini3_1, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
319047
|
+
const selectedModel = resolveClassifierModel(model, modelAlias, useGemini3_1, useGemini3_1FlashLite, useCustomToolModel, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
319037
319048
|
const latencyMs = Date.now() - startTime;
|
|
319038
319049
|
return {
|
|
319039
319050
|
model: selectedModel,
|
|
@@ -319121,7 +319132,7 @@ var FallbackStrategy = class {
|
|
|
319121
319132
|
name = "fallback";
|
|
319122
319133
|
async route(context2, config2, _baseLlmClient, _localLiteRtLmClient) {
|
|
319123
319134
|
const requestedModel = context2.requestedModel ?? config2.getModel();
|
|
319124
|
-
const resolvedModel = resolveModel(requestedModel, config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
319135
|
+
const resolvedModel = resolveModel(requestedModel, config2.getGemini31LaunchedSync?.() ?? false, config2.getGemini31FlashLiteLaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2);
|
|
319125
319136
|
const service = config2.getModelAvailabilityService();
|
|
319126
319137
|
const snapshot = service.snapshot(resolvedModel);
|
|
319127
319138
|
if (snapshot.available) {
|
|
@@ -319151,7 +319162,7 @@ var OverrideStrategy = class {
|
|
|
319151
319162
|
return null;
|
|
319152
319163
|
}
|
|
319153
319164
|
return {
|
|
319154
|
-
model: resolveModel(overrideModel, config2.getGemini31LaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2),
|
|
319165
|
+
model: resolveModel(overrideModel, config2.getGemini31LaunchedSync?.() ?? false, config2.getGemini31FlashLiteLaunchedSync?.() ?? false, false, config2.getHasAccessToPreviewModel?.() ?? true, config2),
|
|
319155
319166
|
metadata: {
|
|
319156
319167
|
source: this.name,
|
|
319157
319168
|
latencyMs: 0,
|
|
@@ -319318,6 +319329,8 @@ var ModelConfigService = class _ModelConfigService {
|
|
|
319318
319329
|
switch (key) {
|
|
319319
319330
|
case "useGemini3_1":
|
|
319320
319331
|
return value === context2.useGemini3_1;
|
|
319332
|
+
case "useGemini3_1FlashLite":
|
|
319333
|
+
return value === context2.useGemini3_1FlashLite;
|
|
319321
319334
|
case "useCustomTools":
|
|
319322
319335
|
return value === context2.useCustomTools;
|
|
319323
319336
|
case "hasAccessToPreview":
|
|
@@ -319784,6 +319797,11 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
319784
319797
|
model: "gemini-3-flash-preview"
|
|
319785
319798
|
}
|
|
319786
319799
|
},
|
|
319800
|
+
"chat-compression-3.1-flash-lite": {
|
|
319801
|
+
modelConfig: {
|
|
319802
|
+
model: "gemini-3.1-flash-lite-preview"
|
|
319803
|
+
}
|
|
319804
|
+
},
|
|
319787
319805
|
"chat-compression-2.5-pro": {
|
|
319788
319806
|
modelConfig: {
|
|
319789
319807
|
model: "gemini-2.5-pro"
|
|
@@ -319996,6 +320014,15 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
319996
320014
|
"auto-gemini-2.5": {
|
|
319997
320015
|
default: "gemini-2.5-pro"
|
|
319998
320016
|
},
|
|
320017
|
+
"gemini-3.1-flash-lite-preview": {
|
|
320018
|
+
default: "gemini-3.1-flash-lite-preview",
|
|
320019
|
+
contexts: [
|
|
320020
|
+
{
|
|
320021
|
+
condition: { useGemini3_1FlashLite: false },
|
|
320022
|
+
target: "gemini-2.5-flash-lite"
|
|
320023
|
+
}
|
|
320024
|
+
]
|
|
320025
|
+
},
|
|
319999
320026
|
flash: {
|
|
320000
320027
|
default: "gemini-3-flash-preview",
|
|
320001
320028
|
contexts: [
|
|
@@ -320006,7 +320033,13 @@ var DEFAULT_MODEL_CONFIGS = {
|
|
|
320006
320033
|
]
|
|
320007
320034
|
},
|
|
320008
320035
|
"flash-lite": {
|
|
320009
|
-
default: "gemini-2.5-flash-lite"
|
|
320036
|
+
default: "gemini-2.5-flash-lite",
|
|
320037
|
+
contexts: [
|
|
320038
|
+
{
|
|
320039
|
+
condition: { useGemini3_1FlashLite: true },
|
|
320040
|
+
target: "gemini-3.1-flash-lite-preview"
|
|
320041
|
+
}
|
|
320042
|
+
]
|
|
320010
320043
|
}
|
|
320011
320044
|
},
|
|
320012
320045
|
classifierIdResolutions: {
|
|
@@ -327095,7 +327128,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
327095
327128
|
return provider;
|
|
327096
327129
|
}
|
|
327097
327130
|
case "oauth2": {
|
|
327098
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
327131
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-DLPX23GY.js");
|
|
327099
327132
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
327100
327133
|
await provider.initialize();
|
|
327101
327134
|
return provider;
|
|
@@ -330602,8 +330635,8 @@ var LocalAgentExecutor = class _LocalAgentExecutor {
|
|
|
330602
330635
|
toolsList.push(toolRef);
|
|
330603
330636
|
}
|
|
330604
330637
|
}
|
|
330605
|
-
toolsList.push(...this.toolRegistry.getFunctionDeclarations());
|
|
330606
330638
|
}
|
|
330639
|
+
toolsList.push(...this.toolRegistry.getFunctionDeclarations(this.definition.modelConfig.model));
|
|
330607
330640
|
const completeTool = {
|
|
330608
330641
|
name: TASK_COMPLETE_TOOL_NAME,
|
|
330609
330642
|
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.",
|
|
@@ -333004,7 +333037,8 @@ var ExperimentFlags = {
|
|
|
333004
333037
|
MASKING_PRUNABLE_THRESHOLD: 45758818,
|
|
333005
333038
|
MASKING_PROTECT_LATEST_TURN: 45758819,
|
|
333006
333039
|
GEMINI_3_1_PRO_LAUNCHED: 45760185,
|
|
333007
|
-
PRO_MODEL_NO_ACCESS: 45768879
|
|
333040
|
+
PRO_MODEL_NO_ACCESS: 45768879,
|
|
333041
|
+
GEMINI_3_1_FLASH_LITE_LAUNCHED: 45771641
|
|
333008
333042
|
};
|
|
333009
333043
|
|
|
333010
333044
|
// packages/core/dist/src/skills/skillManager.js
|
|
@@ -347006,7 +347040,7 @@ var Config = class {
|
|
|
347006
347040
|
if (pooled.remaining !== void 0) {
|
|
347007
347041
|
return pooled.remaining;
|
|
347008
347042
|
}
|
|
347009
|
-
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync());
|
|
347043
|
+
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getGemini31FlashLiteLaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
347010
347044
|
return this.modelQuotas.get(primaryModel)?.remaining;
|
|
347011
347045
|
}
|
|
347012
347046
|
getQuotaLimit() {
|
|
@@ -347014,7 +347048,7 @@ var Config = class {
|
|
|
347014
347048
|
if (pooled.limit !== void 0) {
|
|
347015
347049
|
return pooled.limit;
|
|
347016
347050
|
}
|
|
347017
|
-
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync());
|
|
347051
|
+
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getGemini31FlashLiteLaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
347018
347052
|
return this.modelQuotas.get(primaryModel)?.limit;
|
|
347019
347053
|
}
|
|
347020
347054
|
getQuotaResetTime() {
|
|
@@ -347022,7 +347056,7 @@ var Config = class {
|
|
|
347022
347056
|
if (pooled.resetTime !== void 0) {
|
|
347023
347057
|
return pooled.resetTime;
|
|
347024
347058
|
}
|
|
347025
|
-
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync());
|
|
347059
|
+
const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getGemini31FlashLiteLaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
|
|
347026
347060
|
return this.modelQuotas.get(primaryModel)?.resetTime;
|
|
347027
347061
|
}
|
|
347028
347062
|
getEmbeddingModel() {
|
|
@@ -347263,7 +347297,7 @@ var Config = class {
|
|
|
347263
347297
|
if (this.experimentalJitContext && this.contextManager) {
|
|
347264
347298
|
await this.contextManager.refresh();
|
|
347265
347299
|
} else {
|
|
347266
|
-
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-
|
|
347300
|
+
const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-BQGYT4OD.js");
|
|
347267
347301
|
await refreshServerHierarchicalMemory2(this);
|
|
347268
347302
|
}
|
|
347269
347303
|
if (this._geminiClient?.isInitialized()) {
|
|
@@ -347794,13 +347828,21 @@ ${sections.join("\n")}
|
|
|
347794
347828
|
return this.experiments?.flags[ExperimentFlags.PRO_MODEL_NO_ACCESS]?.boolValue ?? false;
|
|
347795
347829
|
}
|
|
347796
347830
|
/**
|
|
347797
|
-
* Returns whether Gemini 3.1 has been launched.
|
|
347831
|
+
* Returns whether Gemini 3.1 Pro has been launched.
|
|
347798
347832
|
* This method is async and ensures that experiments are loaded before returning the result.
|
|
347799
347833
|
*/
|
|
347800
347834
|
async getGemini31Launched() {
|
|
347801
347835
|
await this.ensureExperimentsLoaded();
|
|
347802
347836
|
return this.getGemini31LaunchedSync();
|
|
347803
347837
|
}
|
|
347838
|
+
/**
|
|
347839
|
+
* Returns whether Gemini 3.1 Flash Lite has been launched.
|
|
347840
|
+
* This method is async and ensures that experiments are loaded before returning the result.
|
|
347841
|
+
*/
|
|
347842
|
+
async getGemini31FlashLiteLaunched() {
|
|
347843
|
+
await this.ensureExperimentsLoaded();
|
|
347844
|
+
return this.getGemini31FlashLiteLaunchedSync();
|
|
347845
|
+
}
|
|
347804
347846
|
/**
|
|
347805
347847
|
* Returns whether the custom tool model should be used.
|
|
347806
347848
|
*/
|
|
@@ -347833,6 +347875,20 @@ ${sections.join("\n")}
|
|
|
347833
347875
|
}
|
|
347834
347876
|
return this.experiments?.flags[ExperimentFlags.GEMINI_3_1_PRO_LAUNCHED]?.boolValue ?? false;
|
|
347835
347877
|
}
|
|
347878
|
+
/**
|
|
347879
|
+
* Returns whether Gemini 3.1 Flash Lite has been launched.
|
|
347880
|
+
*
|
|
347881
|
+
* Note: This method should only be called after startup, once experiments have been loaded.
|
|
347882
|
+
* If you need to call this during startup or from an async context, use
|
|
347883
|
+
* getGemini31FlashLiteLaunched instead.
|
|
347884
|
+
*/
|
|
347885
|
+
getGemini31FlashLiteLaunchedSync() {
|
|
347886
|
+
const authType = this.contentGeneratorConfig?.authType;
|
|
347887
|
+
if (authType === AuthType.USE_GEMINI || authType === AuthType.USE_VERTEX_AI) {
|
|
347888
|
+
return true;
|
|
347889
|
+
}
|
|
347890
|
+
return this.experiments?.flags[ExperimentFlags.GEMINI_3_1_FLASH_LITE_LAUNCHED]?.boolValue ?? false;
|
|
347891
|
+
}
|
|
347836
347892
|
async ensureExperimentsLoaded() {
|
|
347837
347893
|
if (!this.experimentsPromise) {
|
|
347838
347894
|
return;
|
|
@@ -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;
|