@google/gemini-cli-a2a-server 0.46.0-preview.0 → 0.47.0-nightly.20260604.g4196596f7
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/dist/a2a-server.mjs +53 -38
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -47453,7 +47453,7 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
47453
47453
|
});
|
|
47454
47454
|
var realpath2 = (0, util_1.promisify)((_b = fs89.realpath) !== null && _b !== void 0 ? _b : () => {
|
|
47455
47455
|
});
|
|
47456
|
-
var
|
|
47456
|
+
var lstat3 = (0, util_1.promisify)((_c = fs89.lstat) !== null && _c !== void 0 ? _c : () => {
|
|
47457
47457
|
});
|
|
47458
47458
|
var FileSubjectTokenSupplier = class {
|
|
47459
47459
|
/**
|
|
@@ -47476,7 +47476,7 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
47476
47476
|
let parsedFilePath = this.filePath;
|
|
47477
47477
|
try {
|
|
47478
47478
|
parsedFilePath = await realpath2(parsedFilePath);
|
|
47479
|
-
if (!(await
|
|
47479
|
+
if (!(await lstat3(parsedFilePath)).isFile()) {
|
|
47480
47480
|
throw new Error();
|
|
47481
47481
|
}
|
|
47482
47482
|
} catch (err2) {
|
|
@@ -53581,8 +53581,8 @@ var require_graceful_fs = __commonJS({
|
|
|
53581
53581
|
}
|
|
53582
53582
|
var fs$copyFile = fs90.copyFile;
|
|
53583
53583
|
if (fs$copyFile)
|
|
53584
|
-
fs90.copyFile =
|
|
53585
|
-
function
|
|
53584
|
+
fs90.copyFile = copyFile2;
|
|
53585
|
+
function copyFile2(src, dest, flags2, cb) {
|
|
53586
53586
|
if (typeof flags2 === "function") {
|
|
53587
53587
|
cb = flags2;
|
|
53588
53588
|
flags2 = 0;
|
|
@@ -54225,16 +54225,16 @@ var require_copy = __commonJS({
|
|
|
54225
54225
|
throw new Error(`Unknown file: ${src}`);
|
|
54226
54226
|
}
|
|
54227
54227
|
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
54228
|
-
if (!destStat) return
|
|
54228
|
+
if (!destStat) return copyFile2(srcStat, src, dest, opts);
|
|
54229
54229
|
if (opts.overwrite) {
|
|
54230
54230
|
await fs89.unlink(dest);
|
|
54231
|
-
return
|
|
54231
|
+
return copyFile2(srcStat, src, dest, opts);
|
|
54232
54232
|
}
|
|
54233
54233
|
if (opts.errorOnExist) {
|
|
54234
54234
|
throw new Error(`'${dest}' already exists`);
|
|
54235
54235
|
}
|
|
54236
54236
|
}
|
|
54237
|
-
async function
|
|
54237
|
+
async function copyFile2(srcStat, src, dest, opts) {
|
|
54238
54238
|
await fs89.copyFile(src, dest);
|
|
54239
54239
|
if (opts.preserveTimestamps) {
|
|
54240
54240
|
if (fileIsNotWritable(srcStat.mode)) {
|
|
@@ -54346,18 +54346,18 @@ var require_copy_sync = __commonJS({
|
|
|
54346
54346
|
throw new Error(`Unknown file: ${src}`);
|
|
54347
54347
|
}
|
|
54348
54348
|
function onFile(srcStat, destStat, src, dest, opts) {
|
|
54349
|
-
if (!destStat) return
|
|
54349
|
+
if (!destStat) return copyFile2(srcStat, src, dest, opts);
|
|
54350
54350
|
return mayCopyFile(srcStat, src, dest, opts);
|
|
54351
54351
|
}
|
|
54352
54352
|
function mayCopyFile(srcStat, src, dest, opts) {
|
|
54353
54353
|
if (opts.overwrite) {
|
|
54354
54354
|
fs89.unlinkSync(dest);
|
|
54355
|
-
return
|
|
54355
|
+
return copyFile2(srcStat, src, dest, opts);
|
|
54356
54356
|
} else if (opts.errorOnExist) {
|
|
54357
54357
|
throw new Error(`'${dest}' already exists`);
|
|
54358
54358
|
}
|
|
54359
54359
|
}
|
|
54360
|
-
function
|
|
54360
|
+
function copyFile2(srcStat, src, dest, opts) {
|
|
54361
54361
|
fs89.copyFileSync(src, dest);
|
|
54362
54362
|
if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
|
|
54363
54363
|
return setDestMode(dest, srcStat.mode);
|
|
@@ -85673,7 +85673,7 @@ var require_filesubjecttokensupplier2 = __commonJS({
|
|
|
85673
85673
|
}));
|
|
85674
85674
|
var realpath2 = (0, util_1.promisify)(fs89.realpath ?? (() => {
|
|
85675
85675
|
}));
|
|
85676
|
-
var
|
|
85676
|
+
var lstat3 = (0, util_1.promisify)(fs89.lstat ?? (() => {
|
|
85677
85677
|
}));
|
|
85678
85678
|
var FileSubjectTokenSupplier = class {
|
|
85679
85679
|
filePath;
|
|
@@ -85699,7 +85699,7 @@ var require_filesubjecttokensupplier2 = __commonJS({
|
|
|
85699
85699
|
let parsedFilePath = this.filePath;
|
|
85700
85700
|
try {
|
|
85701
85701
|
parsedFilePath = await realpath2(parsedFilePath);
|
|
85702
|
-
if (!(await
|
|
85702
|
+
if (!(await lstat3(parsedFilePath)).isFile()) {
|
|
85703
85703
|
throw new Error();
|
|
85704
85704
|
}
|
|
85705
85705
|
} catch (err2) {
|
|
@@ -130331,10 +130331,10 @@ function setFlashModels(preview, defaultFlash) {
|
|
|
130331
130331
|
PREVIEW_GEMINI_FLASH_MODEL = preview;
|
|
130332
130332
|
DEFAULT_GEMINI_FLASH_MODEL = defaultFlash;
|
|
130333
130333
|
}
|
|
130334
|
-
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false) {
|
|
130334
|
+
function getAutoModelDescription(hasAccessToPreview, useGemini3_1 = false, useGemini3_5Flash = false) {
|
|
130335
130335
|
const proModel = hasAccessToPreview ? useGemini3_1 ? PREVIEW_GEMINI_3_1_MODEL : PREVIEW_GEMINI_MODEL : DEFAULT_GEMINI_MODEL;
|
|
130336
|
-
const flashModel = hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
130337
|
-
return `Let Gemini CLI decide the best model for the task: ${proModel}, ${flashModel}`;
|
|
130336
|
+
const flashModel = hasAccessToPreview ? useGemini3_5Flash ? DEFAULT_GEMINI_3_5_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
130337
|
+
return `Let Gemini CLI decide the best model for the task: ${getDisplayString(proModel)}, ${getDisplayString(flashModel)}`;
|
|
130338
130338
|
}
|
|
130339
130339
|
function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config3, useGemini3_5Flash = false) {
|
|
130340
130340
|
const normalizedModel = Array.isArray(requestedModel) ? String(requestedModel.at(-1) ?? "").trim() || "" : typeof requestedModel !== "string" ? String(requestedModel ?? "").trim() || "" : requestedModel.trim() || "";
|
|
@@ -130350,7 +130350,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
130350
130350
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
130351
130351
|
}
|
|
130352
130352
|
if (resolved2.includes("flash")) {
|
|
130353
|
-
return
|
|
130353
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
130354
130354
|
}
|
|
130355
130355
|
return DEFAULT_GEMINI_MODEL;
|
|
130356
130356
|
}
|
|
@@ -130379,7 +130379,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
130379
130379
|
break;
|
|
130380
130380
|
}
|
|
130381
130381
|
case GEMINI_MODEL_ALIAS_FLASH: {
|
|
130382
|
-
resolved = useGemini3_5Flash ?
|
|
130382
|
+
resolved = useGemini3_5Flash ? DEFAULT_GEMINI_FLASH_MODEL : PREVIEW_GEMINI_FLASH_MODEL;
|
|
130383
130383
|
break;
|
|
130384
130384
|
}
|
|
130385
130385
|
case GEMINI_MODEL_ALIAS_FLASH_LITE: {
|
|
@@ -130394,13 +130394,13 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
130394
130394
|
if (resolved === "none") {
|
|
130395
130395
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
130396
130396
|
}
|
|
130397
|
-
if (useGemini3_5Flash && isFlashModel(resolved)) {
|
|
130398
|
-
return
|
|
130397
|
+
if (useGemini3_5Flash && isFlashModel(resolved) && normalizedModel !== PREVIEW_GEMINI_FLASH_MODEL) {
|
|
130398
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
130399
130399
|
}
|
|
130400
130400
|
if (!hasAccessToPreview && isPreviewModel(resolved)) {
|
|
130401
130401
|
switch (resolved) {
|
|
130402
130402
|
case PREVIEW_GEMINI_FLASH_MODEL:
|
|
130403
|
-
return
|
|
130403
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
130404
130404
|
case PREVIEW_GEMINI_MODEL:
|
|
130405
130405
|
case PREVIEW_GEMINI_3_1_MODEL:
|
|
130406
130406
|
case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
|
|
@@ -130410,7 +130410,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
130410
130410
|
return DEFAULT_GEMINI_FLASH_LITE_MODEL;
|
|
130411
130411
|
}
|
|
130412
130412
|
if (resolved.includes("flash")) {
|
|
130413
|
-
return
|
|
130413
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
130414
130414
|
}
|
|
130415
130415
|
return DEFAULT_GEMINI_MODEL;
|
|
130416
130416
|
}
|
|
@@ -130418,7 +130418,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
|
|
|
130418
130418
|
return resolved;
|
|
130419
130419
|
}
|
|
130420
130420
|
function isFlashModel(model) {
|
|
130421
|
-
return model === DEFAULT_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === DEFAULT_GEMINI_3_5_FLASH_MODEL || model === "flash" || model.endsWith("flash");
|
|
130421
|
+
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");
|
|
130422
130422
|
}
|
|
130423
130423
|
function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config3, useGemini3_5Flash = false) {
|
|
130424
130424
|
if (config3?.getExperimentalDynamicModelConfiguration?.() === true) {
|
|
@@ -130431,11 +130431,11 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
|
|
|
130431
130431
|
}
|
|
130432
130432
|
if (modelAlias === GEMINI_MODEL_ALIAS_FLASH) {
|
|
130433
130433
|
if (requestedModel === DEFAULT_GEMINI_MODEL_AUTO || requestedModel === DEFAULT_GEMINI_MODEL) {
|
|
130434
|
-
return
|
|
130434
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
130435
130435
|
}
|
|
130436
130436
|
if (requestedModel === PREVIEW_GEMINI_MODEL_AUTO || requestedModel === PREVIEW_GEMINI_MODEL || requestedModel === GEMINI_MODEL_ALIAS_AUTO) {
|
|
130437
130437
|
if (useGemini3_5Flash) {
|
|
130438
|
-
return
|
|
130438
|
+
return DEFAULT_GEMINI_FLASH_MODEL;
|
|
130439
130439
|
}
|
|
130440
130440
|
return hasAccessToPreview ? PREVIEW_GEMINI_FLASH_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
|
|
130441
130441
|
}
|
|
@@ -130451,6 +130451,8 @@ function getDisplayString(model, config3) {
|
|
|
130451
130451
|
}
|
|
130452
130452
|
}
|
|
130453
130453
|
switch (model) {
|
|
130454
|
+
case "gemini-3-flash":
|
|
130455
|
+
return DEFAULT_GEMINI_3_5_FLASH_MODEL;
|
|
130454
130456
|
case GEMINI_MODEL_ALIAS_AUTO:
|
|
130455
130457
|
return "Auto";
|
|
130456
130458
|
case PREVIEW_GEMINI_MODEL_AUTO:
|
|
@@ -130524,7 +130526,7 @@ function supportsMultimodalFunctionResponse(model, config3) {
|
|
|
130524
130526
|
}
|
|
130525
130527
|
return model.startsWith("gemini-3-");
|
|
130526
130528
|
}
|
|
130527
|
-
var PREVIEW_GEMINI_MODEL, PREVIEW_GEMINI_3_1_MODEL, PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL, PREVIEW_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_MODEL, DEFAULT_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_3_5_FLASH_MODEL, DEFAULT_GEMINI_FLASH_LITE_MODEL, PREVIEW_GEMINI_FLASH_LITE_MODEL, GEMMA_4_31B_IT_MODEL, GEMMA_4_26B_A4B_IT_MODEL, PREVIEW_GEMINI_MODEL_AUTO, DEFAULT_GEMINI_MODEL_AUTO, GEMINI_MODEL_ALIAS_AUTO, GEMINI_MODEL_ALIAS_PRO, GEMINI_MODEL_ALIAS_FLASH, GEMINI_MODEL_ALIAS_FLASH_LITE, DEFAULT_GEMINI_EMBEDDING_MODEL, DEFAULT_THINKING_MODE;
|
|
130529
|
+
var PREVIEW_GEMINI_MODEL, PREVIEW_GEMINI_3_1_MODEL, PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL, PREVIEW_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_MODEL, DEFAULT_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_3_5_FLASH_MODEL, SECONDARY_GEMINI_3_5_FLASH_MODEL, DEFAULT_GEMINI_FLASH_LITE_MODEL, PREVIEW_GEMINI_FLASH_LITE_MODEL, GEMMA_4_31B_IT_MODEL, GEMMA_4_26B_A4B_IT_MODEL, PREVIEW_GEMINI_MODEL_AUTO, DEFAULT_GEMINI_MODEL_AUTO, GEMINI_MODEL_ALIAS_AUTO, GEMINI_MODEL_ALIAS_PRO, GEMINI_MODEL_ALIAS_FLASH, GEMINI_MODEL_ALIAS_FLASH_LITE, DEFAULT_GEMINI_EMBEDDING_MODEL, DEFAULT_THINKING_MODE;
|
|
130528
130530
|
var init_models = __esm({
|
|
130529
130531
|
"packages/core/dist/src/config/models.js"() {
|
|
130530
130532
|
"use strict";
|
|
@@ -130535,6 +130537,7 @@ var init_models = __esm({
|
|
|
130535
130537
|
DEFAULT_GEMINI_MODEL = "gemini-2.5-pro";
|
|
130536
130538
|
DEFAULT_GEMINI_FLASH_MODEL = "gemini-2.5-flash";
|
|
130537
130539
|
DEFAULT_GEMINI_3_5_FLASH_MODEL = "gemini-3.5-flash";
|
|
130540
|
+
SECONDARY_GEMINI_3_5_FLASH_MODEL = "gemini-3-flash";
|
|
130538
130541
|
DEFAULT_GEMINI_FLASH_LITE_MODEL = "gemini-3.1-flash-lite";
|
|
130539
130542
|
PREVIEW_GEMINI_FLASH_LITE_MODEL = "none";
|
|
130540
130543
|
GEMMA_4_31B_IT_MODEL = "gemma-4-31b-it";
|
|
@@ -211654,8 +211657,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
211654
211657
|
var init_git_commit = __esm({
|
|
211655
211658
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
211656
211659
|
"use strict";
|
|
211657
|
-
GIT_COMMIT_INFO = "
|
|
211658
|
-
CLI_VERSION = "0.
|
|
211660
|
+
GIT_COMMIT_INFO = "4196596f7";
|
|
211661
|
+
CLI_VERSION = "0.47.0-nightly.20260604.g4196596f7";
|
|
211659
211662
|
}
|
|
211660
211663
|
});
|
|
211661
211664
|
|
|
@@ -332680,7 +332683,7 @@ function getVersion() {
|
|
|
332680
332683
|
}
|
|
332681
332684
|
versionPromise = (async () => {
|
|
332682
332685
|
const pkgJson = await getPackageJson(__dirname4);
|
|
332683
|
-
return "0.
|
|
332686
|
+
return "0.47.0-nightly.20260604.g4196596f7";
|
|
332684
332687
|
})();
|
|
332685
332688
|
return versionPromise;
|
|
332686
332689
|
}
|
|
@@ -374185,6 +374188,7 @@ var init_modelConfigService = __esm({
|
|
|
374185
374188
|
const definitions = this.config.modelDefinitions ?? {};
|
|
374186
374189
|
const shouldShowPreviewModels = context2.hasAccessToPreview ?? false;
|
|
374187
374190
|
const useGemini31 = context2.useGemini3_1 ?? false;
|
|
374191
|
+
const useGemini3_5Flash = context2.useGemini3_5Flash ?? false;
|
|
374188
374192
|
const mainOptions = Object.entries(definitions).filter(([_3, m3]) => {
|
|
374189
374193
|
if (m3.isVisible !== true)
|
|
374190
374194
|
return false;
|
|
@@ -374196,7 +374200,7 @@ var init_modelConfigService = __esm({
|
|
|
374196
374200
|
}).map(([id, m3]) => {
|
|
374197
374201
|
let description = m3.dialogDescription ?? "";
|
|
374198
374202
|
if (id === "auto") {
|
|
374199
|
-
description = getAutoModelDescription(shouldShowPreviewModels, useGemini31);
|
|
374203
|
+
description = getAutoModelDescription(shouldShowPreviewModels, useGemini31, useGemini3_5Flash);
|
|
374200
374204
|
} else if (id === "auto-gemini-3" && useGemini31) {
|
|
374201
374205
|
description = description.replace("gemini-3-pro", "gemini-3.1-pro");
|
|
374202
374206
|
}
|
|
@@ -394727,7 +394731,8 @@ ${formattedHistory}
|
|
|
394727
394731
|
config3.getUseCustomToolModel(),
|
|
394728
394732
|
config3.getHasAccessToPreviewModel()
|
|
394729
394733
|
]);
|
|
394730
|
-
const
|
|
394734
|
+
const useGemini3_5Flash = config3.hasGemini35FlashGAAccess?.() ?? false;
|
|
394735
|
+
const selectedModel = resolveClassifierModel(context2.requestedModel ?? config3.getModel(), routerResponse.model_choice, useGemini3_1, useCustomToolModel, hasAccessToPreview, config3, useGemini3_5Flash);
|
|
394731
394736
|
return {
|
|
394732
394737
|
model: selectedModel,
|
|
394733
394738
|
metadata: {
|
|
@@ -394909,7 +394914,8 @@ Respond *only* in JSON format according to the following schema. Do not include
|
|
|
394909
394914
|
config3.getGemini31Launched(),
|
|
394910
394915
|
config3.getUseCustomToolModel()
|
|
394911
394916
|
]);
|
|
394912
|
-
const
|
|
394917
|
+
const useGemini3_5Flash = config3.hasGemini35FlashGAAccess?.() ?? false;
|
|
394918
|
+
const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), routerResponse.model_choice, useGemini3_1, useCustomToolModel, config3.getHasAccessToPreviewModel?.() ?? true, config3, useGemini3_5Flash));
|
|
394913
394919
|
const service = config3.getModelAvailabilityService();
|
|
394914
394920
|
const snapshot = service.snapshot(selectedModel);
|
|
394915
394921
|
if (!snapshot.available) {
|
|
@@ -395066,7 +395072,8 @@ Model: {"complexity_reasoning": "High-level architecture and strategic planning.
|
|
|
395066
395072
|
config3.getGemini31Launched(),
|
|
395067
395073
|
config3.getUseCustomToolModel()
|
|
395068
395074
|
]);
|
|
395069
|
-
const
|
|
395075
|
+
const useGemini3_5Flash = config3.hasGemini35FlashGAAccess?.() ?? false;
|
|
395076
|
+
const selectedModel = normalizeModelId(resolveClassifierModel(normalizeModelId(model), modelAlias, useGemini3_1, useCustomToolModel, config3.getHasAccessToPreviewModel?.() ?? true, config3, useGemini3_5Flash));
|
|
395070
395077
|
const service = config3.getModelAvailabilityService();
|
|
395071
395078
|
const snapshot = service.snapshot(selectedModel);
|
|
395072
395079
|
if (!snapshot.available) {
|
|
@@ -395250,8 +395257,9 @@ var init_approvalModeStrategy = __esm({
|
|
|
395250
395257
|
config3.getUseCustomToolModel(),
|
|
395251
395258
|
config3.getHasAccessToPreviewModel()
|
|
395252
395259
|
]);
|
|
395260
|
+
const useGemini3_5Flash = config3.hasGemini35FlashGAAccess?.() ?? false;
|
|
395253
395261
|
if (approvalMode === ApprovalMode.PLAN) {
|
|
395254
|
-
const proModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_PRO, useGemini3_1, useCustomToolModel, hasAccessToPreview, config3);
|
|
395262
|
+
const proModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_PRO, useGemini3_1, useCustomToolModel, hasAccessToPreview, config3, useGemini3_5Flash);
|
|
395255
395263
|
return {
|
|
395256
395264
|
model: proModel,
|
|
395257
395265
|
metadata: {
|
|
@@ -395261,7 +395269,7 @@ var init_approvalModeStrategy = __esm({
|
|
|
395261
395269
|
}
|
|
395262
395270
|
};
|
|
395263
395271
|
} else if (approvedPlanPath) {
|
|
395264
|
-
const flashModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_FLASH, useGemini3_1, useCustomToolModel, hasAccessToPreview, config3);
|
|
395272
|
+
const flashModel = resolveClassifierModel(model, GEMINI_MODEL_ALIAS_FLASH, useGemini3_1, useCustomToolModel, hasAccessToPreview, config3, useGemini3_5Flash);
|
|
395265
395273
|
return {
|
|
395266
395274
|
model: flashModel,
|
|
395267
395275
|
metadata: {
|
|
@@ -395840,9 +395848,12 @@ var init_defaultModelConfigs = __esm({
|
|
|
395840
395848
|
"gemini-3-flash-preview": {
|
|
395841
395849
|
default: "gemini-3-flash-preview",
|
|
395842
395850
|
contexts: [
|
|
395843
|
-
{ condition: { useGemini3_5Flash: true }, target: "gemini-3.5-flash" },
|
|
395844
395851
|
{
|
|
395845
|
-
condition: { hasAccessToPreview: false },
|
|
395852
|
+
condition: { hasAccessToPreview: false, useGemini3_5Flash: true },
|
|
395853
|
+
target: "gemini-3.5-flash"
|
|
395854
|
+
},
|
|
395855
|
+
{
|
|
395856
|
+
condition: { hasAccessToPreview: false, useGemini3_5Flash: false },
|
|
395846
395857
|
target: "gemini-2.5-flash"
|
|
395847
395858
|
}
|
|
395848
395859
|
]
|
|
@@ -400685,6 +400696,7 @@ var init_config3 = __esm({
|
|
|
400685
400696
|
"packages/core/dist/src/policy/config.js"() {
|
|
400686
400697
|
"use strict";
|
|
400687
400698
|
init_storage();
|
|
400699
|
+
init_debugLogger();
|
|
400688
400700
|
init_types2();
|
|
400689
400701
|
init_toml_loader();
|
|
400690
400702
|
init_utils4();
|
|
@@ -400692,7 +400704,6 @@ var init_config3 = __esm({
|
|
|
400692
400704
|
init_types4();
|
|
400693
400705
|
init_message_bus();
|
|
400694
400706
|
init_events();
|
|
400695
|
-
init_debugLogger();
|
|
400696
400707
|
init_shell_utils();
|
|
400697
400708
|
init_tool_names();
|
|
400698
400709
|
init_errors2();
|
|
@@ -411519,7 +411530,11 @@ ${sections.join("\n")}
|
|
|
411519
411530
|
return this.experiments?.flags[ExperimentFlags.GEMINI_3_5_FLASH_GA_LAUNCHED]?.boolValue ?? false;
|
|
411520
411531
|
})();
|
|
411521
411532
|
if (hasAccess) {
|
|
411522
|
-
|
|
411533
|
+
if (authType === AuthType2.USE_GEMINI) {
|
|
411534
|
+
setFlashModels("gemini-3-flash-preview", "gemini-3.5-flash");
|
|
411535
|
+
} else {
|
|
411536
|
+
setFlashModels("gemini-3-flash", "gemini-3-flash");
|
|
411537
|
+
}
|
|
411523
411538
|
} else {
|
|
411524
411539
|
setFlashModels("gemini-3-flash-preview", "gemini-2.5-flash");
|
|
411525
411540
|
}
|