@google/gemini-cli-a2a-server 0.28.0-preview.8 → 0.28.1
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 +15 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -327178,6 +327178,10 @@ function resolveClassifierModel(requestedModel, modelAlias, previewFeaturesEnabl
|
|
|
327178
327178
|
function isPreviewModel(model) {
|
|
327179
327179
|
return model === PREVIEW_GEMINI_MODEL || model === PREVIEW_GEMINI_FLASH_MODEL || model === PREVIEW_GEMINI_MODEL_AUTO;
|
|
327180
327180
|
}
|
|
327181
|
+
function isGemini3Model(model, previewFeaturesEnabled = false) {
|
|
327182
|
+
const resolved = resolveModel(model, previewFeaturesEnabled);
|
|
327183
|
+
return /^gemini-3(\.|-|$)/.test(resolved);
|
|
327184
|
+
}
|
|
327181
327185
|
function isGemini2Model(model) {
|
|
327182
327186
|
return /^gemini-2(\.|$)/.test(model);
|
|
327183
327187
|
}
|
|
@@ -327592,7 +327596,7 @@ var __filename = fileURLToPath5(import.meta.url);
|
|
|
327592
327596
|
var __dirname3 = path20.dirname(__filename);
|
|
327593
327597
|
async function getVersion() {
|
|
327594
327598
|
const pkgJson = await getPackageJson(__dirname3);
|
|
327595
|
-
return "0.28.
|
|
327599
|
+
return "0.28.1";
|
|
327596
327600
|
}
|
|
327597
327601
|
|
|
327598
327602
|
// packages/core/dist/src/code_assist/experiments/client_metadata.js
|
|
@@ -331016,8 +331020,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
331016
331020
|
var PointerVector = import_vector.default.PointerVector;
|
|
331017
331021
|
|
|
331018
331022
|
// packages/core/dist/src/generated/git-commit.js
|
|
331019
|
-
var GIT_COMMIT_INFO = "
|
|
331020
|
-
var CLI_VERSION = "0.28.
|
|
331023
|
+
var GIT_COMMIT_INFO = "dc80b6ef6";
|
|
331024
|
+
var CLI_VERSION = "0.28.1";
|
|
331021
331025
|
|
|
331022
331026
|
// packages/core/dist/src/ide/detect-ide.js
|
|
331023
331027
|
var IDE_DEFINITIONS = {
|
|
@@ -392571,7 +392575,8 @@ var ClassifierStrategy = class {
|
|
|
392571
392575
|
async route(context2, config3, baseLlmClient) {
|
|
392572
392576
|
const startTime = Date.now();
|
|
392573
392577
|
try {
|
|
392574
|
-
|
|
392578
|
+
const model = context2.requestedModel ?? config3.getModel();
|
|
392579
|
+
if (await config3.getNumericalRoutingEnabled() && isGemini3Model(model, config3.getPreviewFeatures())) {
|
|
392575
392580
|
return null;
|
|
392576
392581
|
}
|
|
392577
392582
|
const promptId = getPromptIdWithFallback("classifier-router");
|
|
@@ -392589,7 +392594,7 @@ var ClassifierStrategy = class {
|
|
|
392589
392594
|
const routerResponse = ClassifierResponseSchema.parse(jsonResponse);
|
|
392590
392595
|
const reasoning = routerResponse.reasoning;
|
|
392591
392596
|
const latencyMs = Date.now() - startTime;
|
|
392592
|
-
const selectedModel = resolveClassifierModel(
|
|
392597
|
+
const selectedModel = resolveClassifierModel(model, routerResponse.model_choice, config3.getPreviewFeatures());
|
|
392593
392598
|
return {
|
|
392594
392599
|
model: selectedModel,
|
|
392595
392600
|
metadata: {
|
|
@@ -392693,9 +392698,13 @@ var NumericalClassifierStrategy = class {
|
|
|
392693
392698
|
async route(context2, config3, baseLlmClient) {
|
|
392694
392699
|
const startTime = Date.now();
|
|
392695
392700
|
try {
|
|
392701
|
+
const model = context2.requestedModel ?? config3.getModel();
|
|
392696
392702
|
if (!await config3.getNumericalRoutingEnabled()) {
|
|
392697
392703
|
return null;
|
|
392698
392704
|
}
|
|
392705
|
+
if (!isGemini3Model(model, config3.getPreviewFeatures())) {
|
|
392706
|
+
return null;
|
|
392707
|
+
}
|
|
392699
392708
|
const promptId = getPromptIdWithFallback("classifier-router");
|
|
392700
392709
|
const finalHistory = context2.history.slice(-HISTORY_TURNS_FOR_CONTEXT2);
|
|
392701
392710
|
const requestParts = Array.isArray(context2.request) ? context2.request : [context2.request];
|
|
@@ -392719,7 +392728,7 @@ var NumericalClassifierStrategy = class {
|
|
|
392719
392728
|
const routerResponse = ClassifierResponseSchema2.parse(jsonResponse);
|
|
392720
392729
|
const score = routerResponse.complexity_score;
|
|
392721
392730
|
const { threshold, groupLabel, modelAlias } = await this.getRoutingDecision(score, config3, config3.getSessionId() || "unknown-session");
|
|
392722
|
-
const selectedModel = resolveClassifierModel(
|
|
392731
|
+
const selectedModel = resolveClassifierModel(model, modelAlias, config3.getPreviewFeatures());
|
|
392723
392732
|
const latencyMs = Date.now() - startTime;
|
|
392724
392733
|
return {
|
|
392725
392734
|
model: selectedModel,
|