@google/gemini-cli-a2a-server 0.11.0-preview.0 → 0.11.0
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 +19 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -288503,8 +288503,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
288503
288503
|
var PointerVector = import_vector.default.PointerVector;
|
|
288504
288504
|
|
|
288505
288505
|
// packages/core/dist/src/generated/git-commit.js
|
|
288506
|
-
var GIT_COMMIT_INFO = "
|
|
288507
|
-
var CLI_VERSION = "0.11.0
|
|
288506
|
+
var GIT_COMMIT_INFO = "c9c2e79d";
|
|
288507
|
+
var CLI_VERSION = "0.11.0";
|
|
288508
288508
|
|
|
288509
288509
|
// packages/core/dist/src/ide/detect-ide.js
|
|
288510
288510
|
var IDE_DEFINITIONS = {
|
|
@@ -291007,7 +291007,7 @@ function createContentGeneratorConfig(config2, authType) {
|
|
|
291007
291007
|
return contentGeneratorConfig;
|
|
291008
291008
|
}
|
|
291009
291009
|
async function createContentGenerator(config2, gcConfig, sessionId2) {
|
|
291010
|
-
const version3 = "0.11.0
|
|
291010
|
+
const version3 = "0.11.0";
|
|
291011
291011
|
const userAgent = `GeminiCLI/${version3} (${process.platform}; ${process.arch})`;
|
|
291012
291012
|
const baseHeaders = {
|
|
291013
291013
|
"User-Agent": userAgent
|
|
@@ -348568,6 +348568,8 @@ var Config = class {
|
|
|
348568
348568
|
policyEngine;
|
|
348569
348569
|
outputSettings;
|
|
348570
348570
|
useModelRouter;
|
|
348571
|
+
initialUseModelRouter;
|
|
348572
|
+
disableModelRouterForAuth;
|
|
348571
348573
|
enableMessageBusIntegration;
|
|
348572
348574
|
codebaseInvestigatorSettings;
|
|
348573
348575
|
continueOnFailedApiCall;
|
|
@@ -348646,7 +348648,11 @@ var Config = class {
|
|
|
348646
348648
|
this.enableToolOutputTruncation = params.enableToolOutputTruncation ?? true;
|
|
348647
348649
|
this.useSmartEdit = params.useSmartEdit ?? true;
|
|
348648
348650
|
this.useWriteTodos = params.useWriteTodos ?? false;
|
|
348649
|
-
this.
|
|
348651
|
+
this.initialUseModelRouter = params.useModelRouter ?? false;
|
|
348652
|
+
this.useModelRouter = this.initialUseModelRouter;
|
|
348653
|
+
this.disableModelRouterForAuth = params.disableModelRouterForAuth ?? [
|
|
348654
|
+
AuthType2.LOGIN_WITH_GOOGLE
|
|
348655
|
+
];
|
|
348650
348656
|
this.enableMessageBusIntegration = params.enableMessageBusIntegration ?? false;
|
|
348651
348657
|
this.codebaseInvestigatorSettings = {
|
|
348652
348658
|
enabled: params.codebaseInvestigatorSettings?.enabled ?? false,
|
|
@@ -348702,6 +348708,15 @@ var Config = class {
|
|
|
348702
348708
|
return this.contentGenerator;
|
|
348703
348709
|
}
|
|
348704
348710
|
async refreshAuth(authMethod) {
|
|
348711
|
+
this.useModelRouter = this.initialUseModelRouter;
|
|
348712
|
+
if (this.disableModelRouterForAuth?.includes(authMethod)) {
|
|
348713
|
+
this.useModelRouter = false;
|
|
348714
|
+
if (this.model === DEFAULT_GEMINI_MODEL_AUTO) {
|
|
348715
|
+
this.model = DEFAULT_GEMINI_MODEL;
|
|
348716
|
+
}
|
|
348717
|
+
} else if (this.useModelRouter && this.model === DEFAULT_GEMINI_MODEL) {
|
|
348718
|
+
this.model = DEFAULT_GEMINI_MODEL_AUTO;
|
|
348719
|
+
}
|
|
348705
348720
|
if (this.contentGeneratorConfig?.authType === AuthType2.USE_GEMINI && authMethod === AuthType2.LOGIN_WITH_GOOGLE) {
|
|
348706
348721
|
this.geminiClient.stripThoughtsFromHistory();
|
|
348707
348722
|
}
|